@import url("oh-tokens.css");
/* Or Hachaim | gabbai back-office design system, direction A "אבן ירושלים מודרני".
   Stage A (2026-11-03). The rules below are lifted LITERALLY from the approved
   mockups (backoffice_redesign/mockups/A_*.html): same colours, sizes, spacing,
   radii and shadows. Only the selectors were scoped, so nothing here can change
   the inner pages:
   - ".oha" marks the new parts (the gabbai home page body, the top bar, the phone
     bottom bar). Every component rule only works inside ".oha".
   - ".oha-page" marks a wrapped inner page (admin, finance, congregant, backup,
     restore): it gets the stone background and the colour tokens only.
   - the top bar is ".oha-topbar" and the phone bottom bar ".oha-bnav", so the
     old ".topbar" rules in theme.css never touch them.
   Fonts and the stone texture come from the repo (src/assets), the logo is
   src/assets/logo.svg in its original colours. No red or burgundy anywhere. */
/* ===== the menu of screens (.tvm): the Screen menu (gabbai/tv/) and the Print menu (gabbai/print/) =====
   Moved here from admin/prayer-times.css (step 3, batch 2, 2026-11-25) so both menus share ONE shell from the
   design system. One screen at a time: the menu as one grouped card of large rows, each screen under ONE header
   (.tvm-head: back when there is a level above, the verb title, one how-to line). 960px and up: the same menu
   as a sidebar beside the content. Placed first in this file so the cascade on gabbai/tv/ is as before. */
.tvm{max-width:760px;margin:6px auto 56px;direction:rtl;color:var(--ink)}
body.gated .tvm{display:none}
.tvm [hidden]{display:none!important}
/* a list of rows: one grouped card, hairlines between the rows (as a settings app) */
.tvm-list{list-style:none;margin:0;padding:0;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow);overflow:hidden}
.tvm-list>li{margin:0;padding:0}
.tvm-row{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr) 22px;align-items:center;column-gap:16px;min-height:88px;padding:18px 20px;color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:background-color .18s var(--ease)}
.tvm-list>li:not([hidden])~li:not([hidden])>.tvm-row::before{content:"";position:absolute;top:0;inset-inline-start:88px;inset-inline-end:0;border-top:1px solid var(--line)}
.tvm-row:hover{background:var(--parchment)}
.tvm-row:active{background:var(--gold-tint)}
.tvm-row:focus-visible{outline:3px solid var(--gold);outline-offset:-3px;border-radius:var(--radius-card)}
.tvm-ico{display:grid;place-items:center;width:52px;height:52px;border-radius:var(--radius-btn);background:linear-gradient(160deg,var(--marble) 0%,var(--gold-tint) 100%);border:1px solid var(--gold-hair);box-shadow:inset 0 1px 0 var(--surface)}
.tvm-ico svg{width:26px;height:26px;fill:none;stroke:var(--navy);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tvm-row-txt{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:2px;min-width:0}
.tvm-row-t{font-size:1.16rem;font-weight:800;line-height:1.25;color:var(--navy)}
.tvm-row-d{flex-basis:100%;font-size:.94rem;line-height:1.45;color:var(--ink-soft)}
.tvm-chev{width:22px;height:22px;fill:none;stroke:var(--gold);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s var(--ease)}
.tvm-row:hover .tvm-chev{transform:translateX(-3px)}
.tvm-sublist{display:none}
/* design system demo (2026-11-25): the one header of every screen of the menu */
.tvm-head{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:10px 6px 20px}
.tvm-head .tvm-lead{margin:0;color:var(--muted);font-size:var(--fs-body)}
.tvm-row-sub .tvm-row-d{display:none}
.tvm-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 18px 8px 14px;border-radius:999px;background:var(--paper);border:1px solid var(--line);color:var(--navy);font-weight:800;font-size:.98rem;text-decoration:none;transition:background-color .18s var(--ease),border-color .18s var(--ease)}
.tvm-back:hover{background:var(--parchment);border-color:var(--gold-hair)}
.tvm-back:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.tvm-back-chev{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.tvm-title{margin:4px 0 0;font-family:var(--font-display-he);font-size:clamp(1.85rem,6.5vw,2.3rem);font-weight:700;line-height:1.12;color:var(--navy);outline:none}
.tvm-screen{animation:tvmIn .28s var(--ease) both}
@keyframes tvmIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tvm-lead{margin:0 4px 16px;color:var(--ink-soft);font-size:1rem;line-height:1.5}
@media (max-width:959.98px){
  .tvm:not(.is-home)>.tvm-nav{display:none}
  /* room for the site's fixed bottom bar on a phone */
  .tvm{padding:0 2px calc(104px + env(safe-area-inset-bottom, 0px))}
  .tvm-row{padding-inline:18px}
}
@media (max-width:420px){
  .tvm-row{padding-inline:16px}
  .tvm-row{grid-template-columns:46px minmax(0,1fr) 20px;column-gap:14px;min-height:82px}
  .tvm-ico{width:46px;height:46px;border-radius:var(--radius-btn)}
  .tvm-ico svg{width:23px;height:23px}
  .tvm-list>li:not([hidden])~li:not([hidden])>.tvm-row::before{inset-inline-start:76px}
}
/* wide: the menu as a sidebar on the left, the content on the right */
@media (min-width:960px){
  .tvm{max-width:1220px;display:grid;grid-template-columns:minmax(0,1fr) 340px;column-gap:36px;align-items:start;margin-top:14px}
  .tvm-main{grid-column:1;grid-row:2;min-width:0}
  .tvm-nav{grid-column:2;grid-row:2;position:sticky;top:96px}
  .tvm-head{grid-column:1/-1;grid-row:1}
  .tvm-nav .tvm-row{min-height:66px;padding:12px 16px;grid-template-columns:42px minmax(0,1fr) 18px;column-gap:13px}
  .tvm-nav .tvm-ico{width:42px;height:42px;border-radius:var(--radius-btn)}
  .tvm-nav .tvm-ico svg{width:22px;height:22px}
  .tvm-nav .tvm-row-d{display:none}
  .tvm-nav .tvm-chev{width:18px;height:18px}
  .tvm-nav .tvm-list>li:not([hidden])~li:not([hidden])>.tvm-row::before{inset-inline-start:71px}
  .tvm-nav .tvm-row[aria-current="page"]{background:var(--navy)}
  .tvm-nav .tvm-row[aria-current="page"] .tvm-row-t{color:var(--on-navy)}
  .tvm-nav .tvm-row[aria-current="page"] .tvm-ico{background:var(--navy-soft);border-color:var(--hair);box-shadow:none}
  .tvm-nav .tvm-row[aria-current="page"] .tvm-ico svg,.tvm-nav .tvm-row[aria-current="page"] .tvm-chev{stroke:var(--gold-on-navy)}
  .tvm-nav .tvm-row[aria-current="page"]::before,.tvm-nav li:has(> .tvm-row[aria-current="page"])+li>.tvm-row::before{border-top-color:transparent!important}
  /* inside Computer control: the parent row is marked softly, the open part is the navy one below it */
  .tvm-nav .tvm-row.is-in{background:var(--parchment)}
  .tvm-nav .tvm-row.is-in .tvm-ico{background:var(--paper);border-color:var(--gold)}
  .tvm-nav .tvm-row.is-in .tvm-chev{transform:rotate(-90deg)}
  .tvm[data-top="pi"] .tvm-sublist{display:block;list-style:none;margin:0;padding:8px 10px 12px;background:var(--parchment);border-top:1px solid var(--line)}
  .tvm-sublist>li{margin:2px 0}
  .tvm-nav .tvm-sublist .tvm-row{min-height:46px;padding:8px 12px;border-radius:var(--radius-btn);grid-template-columns:30px minmax(0,1fr) 14px;column-gap:10px}
  .tvm-nav .tvm-sublist .tvm-row::before{display:none}
  .tvm-nav .tvm-sublist .tvm-ico{width:30px;height:30px;border-radius:9px}
  .tvm-nav .tvm-sublist .tvm-ico svg{width:17px;height:17px}
  .tvm-nav .tvm-sublist .tvm-row-t{font-size:.98rem;font-weight:700}
  .tvm-nav .tvm-sublist .tvm-chev{width:14px;height:14px}
  .tvm-nav .tvm-sublist .tvm-row:not([aria-current]):hover{background:var(--surface)}
  .tvm-back.is-top{display:none}
  .tvm-title{font-size:2.2rem}
}
@media (prefers-reduced-motion:reduce){.tvm-screen{animation:none}.tvm-row,.tvm-chev,.tvm-back{transition:none}}
@font-face{font-family:"Assistant";src:url("../assets/fonts/assistant-var.woff2") format("woff2");font-weight:200 800;font-display:block}
.oha,.oha *{box-sizing:border-box}
body.oha{margin:0}
body.oha{display:flow-root;font-family:"Assistant","Segoe UI",Arial,sans-serif;font-size:17px;line-height:1.55;color:var(--ink);background:var(--bg);min-height:100vh;-webkit-font-smoothing:antialiased}
body.oha,body.oha-page{background-color:#f1e9dc;background-image:radial-gradient(1200px 600px at 85% -10%,rgba(255,255,255,.85),transparent 60%),radial-gradient(900px 500px at 0% 110%,rgba(230,203,146,.25),transparent 60%),linear-gradient(rgba(248,243,234,.5),rgba(248,243,234,.5)),url("../assets/textures/jerusalem-stone.webp");background-size:auto,auto,auto,520px}
.oha .ic{width:24px;height:24px;flex:none}
.oha a{color:inherit;text-decoration:none}
.oha .en{display:block;font-size:13px;letter-spacing:.02em;color:var(--muted);font-weight:500;direction:ltr;text-align:right}
.oha-topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:18px;padding:12px 36px;background:var(--topbar);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--hair)}
.oha .brand{display:flex;align-items:center;gap:14px}
.oha .logo-badge{display:flex;align-items:center;justify-content:center;height:52px;padding:4px 12px;border-radius:12px}
.oha .logo-badge img{height:44px;width:auto;display:block}
.oha .brand-txt{display:flex;flex-direction:column;line-height:1.2;padding-inline-start:14px;border-inline-start:1px solid var(--hair)}
.oha .brand-txt b{font-size:18px;font-weight:700}
.oha .brand-txt span{font-size:13px;color:var(--muted)}
.oha .tb-spacer{flex:1}
.oha .tb-link{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border-radius:999px;font-weight:600;font-size:16px;color:var(--ink2);border:1px solid transparent}
.oha .tb-link:hover{background:var(--surface2);border-color:var(--hair-soft)}
.oha .tb-link.on{background:var(--surface2);border-color:var(--hair);color:var(--ink)}
.oha .tb-link .ic{width:22px;height:22px;color:var(--gold-text)}
.oha .who{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 16px;border-radius:999px;border:1px solid var(--hair);background:var(--surface)}
.oha .avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:17px;background:var(--navy);color:var(--gold-soft);box-shadow:inset 0 0 0 1.5px var(--gold)}
.oha .who-txt{display:flex;flex-direction:column;line-height:1.15}
.oha .who-txt b{font-size:16px}
.oha .who-txt span{font-size:13px;color:var(--muted)}
.oha .tb-out{color:var(--muted)}
.oha .wrap{max-width:1280px;margin:0 auto;padding:40px 36px 96px;position:relative}
.oha h1{font-size:44px;line-height:1.1;margin:0;font-weight:800;letter-spacing:-.01em}
.oha .lead{font-size:19px;color:var(--ink2);margin:10px 0 0;max-width:720px}
.oha .card{background:var(--surface);border:1px solid var(--hair-soft);border-radius:var(--radius-card);box-shadow:var(--shadow);position:relative}
.oha .card.goldframe{border-color:var(--hair)}
.oha .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 26px;border-radius:16px;font:inherit;font-weight:700;font-size:18px;cursor:pointer;border:1px solid var(--hair);background:var(--surface2);color:var(--ink);white-space:nowrap}
.oha .btn .ic{width:22px;height:22px}
.oha .btn.primary{background:var(--primary-bg);color:var(--primary-ink);border-color:transparent;box-shadow:0 10px 24px -12px rgba(14,44,76,.65),inset 0 1px 0 rgba(255,255,255,.18);min-height:60px;font-size:19px;padding:0 30px}
.oha .btn.primary{box-shadow:0 0 0 1px var(--hair-strong),0 12px 28px -12px rgba(14,44,76,.7),inset 0 1px 0 rgba(255,255,255,.15)}
.oha .btn.ghost{background:transparent;border-color:transparent;color:var(--gold-text);padding:0 14px}
.oha .btn.small{min-height:48px;font-size:16px;padding:0 18px;border-radius:14px}
.oha .btn.wide{width:100%}
.oha .hero{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:stretch;margin-bottom:28px}
.oha .hello{padding:38px 40px;display:flex;flex-direction:column;justify-content:center}
.oha .hello .date{display:inline-flex;align-items:center;gap:8px;color:var(--gold-text);font-weight:600;font-size:16px;margin-bottom:14px}
.oha .hello .date .ic{width:18px;height:18px}
.oha .hello h1{font-size:54px}
.oha .hello p{font-size:20px;color:var(--ink2);margin:10px 0 26px}
.oha .hello .row{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.oha .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:34px}
.oha .stat{padding:20px 22px;display:flex;gap:16px;align-items:center}
.oha .stat .sic{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--ic-bg);color:var(--ic-ink);border:1px solid var(--hair-soft);flex:none}
.oha .stat .sic .ic{width:26px;height:26px}
.oha .stat .k{font-size:15px;color:var(--muted);font-weight:600}
.oha .stat .v{font-size:24px;font-weight:800;line-height:1.2}
.oha .stat .v small{font-size:16px;font-weight:600;color:var(--ink2)}
.oha .ok{color:var(--ok);display:inline-flex;align-items:center;gap:6px}
.oha .ok .ic{width:20px;height:20px}
.oha .sec-title{display:flex;align-items:baseline;gap:12px;margin:0 0 16px;font-size:22px;font-weight:800}
.oha .sec-title span{font-size:14px;color:var(--muted);font-weight:500;direction:ltr}
.oha .tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.oha .tiles.t3{grid-template-columns:repeat(3,1fr)}
.oha .tile{padding:26px 24px 22px;display:flex;flex-direction:column;gap:10px;min-height:208px;transition:transform .25s,box-shadow .25s}
.oha .tile:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.oha .tile .tic{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:var(--ic-bg);color:var(--ic-ink);border:1px solid var(--hair-soft);margin-bottom:6px}
.oha .tile .tic .ic{width:32px;height:32px;stroke-width:1.6}
.oha .tile h3{margin:0;font-size:22px;font-weight:800;line-height:1.2}
.oha .tile p{margin:0;color:var(--ink2);font-size:16.5px;line-height:1.45}
.oha .tile .go{margin-top:auto;display:flex;align-items:center;gap:6px;color:var(--gold-text);font-weight:700;font-size:15px}
.oha .tile .go .ic{width:18px;height:18px}
.oha .tile .count{position:absolute;top:20px;left:20px;font-size:14px;font-weight:700;background:var(--chip);color:var(--gold-text);border:1px solid var(--hair-soft);padding:2px 12px;border-radius:999px}
.oha .noaccess{margin-top:24px;display:flex;gap:14px;align-items:center;padding:18px 22px;color:var(--ink2);font-size:16.5px}
.oha .noaccess .ic{color:var(--muted)}
.oha .seg{display:inline-flex;gap:6px;padding:6px;border-radius:18px;background:var(--surface);border:1px solid var(--hair-soft)}
.oha .seg button{font:inherit;font-weight:700;font-size:17px;min-height:48px;padding:0 20px;border-radius:13px;border:0;background:transparent;color:var(--ink2);display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.oha .seg button.on{background:var(--surface-solid);color:var(--ink);box-shadow:0 0 0 1px var(--hair),0 6px 16px -10px rgba(0,0,0,.4)}
.oha .seg .n{font-size:14px;background:var(--chip);color:var(--gold-text);border-radius:999px;padding:0 9px;min-width:26px;text-align:center}
.oha .items{display:flex;flex-direction:column;gap:14px;margin-top:20px}
.oha .item{display:flex;align-items:center;gap:18px;padding:16px 18px}
.oha .item .meta{flex:1;min-width:0}
.oha .item .meta b{display:block;font-size:19px;font-weight:800;line-height:1.25}
.oha .item .meta span{font-size:15.5px;color:var(--muted)}
.oha .pill{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;padding:3px 12px;border-radius:999px;background:var(--chip);color:var(--gold-text);border:1px solid var(--hair-soft);margin-inline-end:8px;vertical-align:2px}
.oha .pill.ok{background:var(--ok-soft);color:var(--ok);border-color:transparent}
.oha .pill .ic{width:14px;height:14px}
.oha .item .acts{display:flex;gap:8px}
.oha .side{position:sticky;top:100px;display:flex;flex-direction:column;gap:18px}
.oha .side .card{padding:20px}
.oha .side h3{margin:0 0 12px;font-size:19px;display:flex;align-items:center;gap:10px}
.oha .side h3 .ic{color:var(--gold-text)}
.oha .hint{display:flex;gap:12px;align-items:flex-start;font-size:16px;color:var(--ink2);line-height:1.5}
.oha .hint .ic{color:var(--gold-text);margin-top:2px}
.oha .steps{display:flex;align-items:center;gap:0;margin:0 0 30px;counter-reset:s}
.oha .step{display:flex;align-items:center;gap:12px;font-weight:700;font-size:17px;color:var(--muted)}
.oha .step .n{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--hair);font-weight:800;background:var(--surface)}
.oha .step.done .n{background:var(--ok-soft);color:var(--ok);border-color:transparent}
.oha .step.done .n .ic{width:20px;height:20px}
.oha .step.cur{color:var(--ink)}
.oha .step.cur .n{background:var(--primary-bg);color:var(--primary-ink);border-color:transparent;box-shadow:0 0 0 4px var(--hair-soft)}
.oha .types{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.oha .type{padding:26px 18px 22px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;min-height:230px;cursor:pointer;transition:transform .25s,box-shadow .25s}
.oha .type:hover,.oha .type.sel{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.oha .type.sel{border-color:var(--gold);outline:2px solid var(--gold);outline-offset:-1px}
.oha .type .tic{width:76px;height:76px;border-radius:24px;display:grid;place-items:center;background:var(--ic-bg);color:var(--ic-ink);border:1px solid var(--hair-soft)}
.oha .type .tic .ic{width:38px;height:38px;stroke-width:1.5}
.oha .type h3{margin:4px 0 0;font-size:22px;font-weight:800}
.oha .type p{margin:0;font-size:15.5px;color:var(--ink2);line-height:1.4}
.oha .more{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.oha .chip{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 20px;border-radius:16px;border:1px solid var(--hair-soft);background:var(--surface);font-weight:700;font-size:17px}
.oha .chip .ic{width:22px;height:22px;color:var(--gold-text)}
.oha .form{padding:30px 32px;display:flex;flex-direction:column;gap:22px}
.oha .field label{display:block;font-weight:800;font-size:18px;margin-bottom:8px}
.oha .field label small{font-weight:500;color:var(--muted);font-size:15px;margin-inline-start:6px}
.oha .input{width:100%;min-height:58px;border-radius:14px;border:1px solid var(--hair);background:var(--field);padding:12px 18px;font:inherit;font-size:19px;color:var(--ink);display:flex;align-items:center}
.oha .input.focus{border-color:var(--gold);box-shadow:0 0 0 4px var(--hair-soft)}
.oha .input .ph{color:var(--muted)}
.oha .drop{border:1.5px dashed var(--hair);border-radius:16px;padding:20px;display:flex;align-items:center;gap:16px;background:var(--surface)}
.oha .drop .tic{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:var(--ic-bg);color:var(--ic-ink)}
.oha .drop b{display:block;font-size:17px}
.oha .drop span{font-size:15px;color:var(--muted)}
.oha .seg.full{display:flex}
.oha .seg.full button{flex:1;justify-content:center}
.oha .safe{display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:14px;background:var(--ok-soft);color:var(--ink2);font-size:16px}
.oha .safe .ic{color:var(--ok)}
.oha .details{display:flex;align-items:center;justify-content:space-between;padding:14px 4px;border-top:1px solid var(--hair-soft);color:var(--ink2);font-weight:700}
.oha .actions{display:flex;align-items:center;gap:14px;padding-top:6px}
.oha .actions .btn.primary{flex:1;min-height:66px;font-size:21px}
.oha .seg.sm button{min-height:44px;font-size:15px;padding:0 14px}
.oha .search{display:flex;align-items:center;gap:14px;min-height:72px;padding:0 24px;border-radius:20px;border:1px solid var(--hair);background:var(--field);font-size:21px;box-shadow:var(--shadow)}
.oha .search .ic{width:28px;height:28px;color:var(--gold-text)}
.oha .search .ph{color:var(--muted)}
.oha .quick{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 28px}
.oha .people{display:flex;flex-direction:column;gap:12px}
.oha .person{display:flex;align-items:center;gap:14px;padding:14px 16px;min-height:76px}
.oha .person.sel{border-color:var(--gold);outline:2px solid var(--gold);outline-offset:-1px}
.oha .person .avatar{width:46px;height:46px;font-size:17px}
.oha .person .meta{flex:1}
.oha .person b{display:block;font-size:18px}
.oha .person span{font-size:15px;color:var(--muted)}
.oha .bal{font-weight:800;font-size:18px;direction:ltr}
.oha .bal.zero{color:var(--ok)}
.oha .num{padding:16px 18px;border-radius:16px;border:1px solid var(--hair-soft);background:var(--surface)}
.oha .num .k{font-size:15px;color:var(--muted);font-weight:700}
.oha .num .v{font-size:28px;font-weight:800;direction:ltr;text-align:right}
.oha .num.big{background:var(--primary-bg);color:var(--primary-ink);border-color:transparent}
.oha .num.big .k{color:inherit;opacity:.85}
.oha .num.big .v{font-size:34px}
.oha .ledger{margin-top:26px}
.oha .ledger h3{font-size:19px;margin:0 0 10px;display:flex;justify-content:space-between;align-items:center}
.oha .tag{font-size:14px;font-weight:800;padding:3px 10px;border-radius:999px;justify-self:start}
.oha .tag.c{background:var(--chip);color:var(--gold-text)}
.oha .tag.p{background:var(--ok-soft);color:var(--ok)}
.oha .tag.x{background:rgba(42,74,110,.12);color:var(--navy2)}
.oha .note{display:flex;gap:12px;align-items:center;padding:14px 18px;border-radius:14px;border:1px solid var(--hair-soft);background:var(--surface);font-size:16px;color:var(--ink2);margin-top:18px}
.oha .note .ic{color:var(--gold-text)}
.oha .can{display:flex;align-items:center;gap:14px;padding:14px 14px;border-radius:16px;border:1px solid var(--hair-soft);background:var(--surface2);min-height:72px}
.oha .can .t{flex:1;line-height:1.3}
.oha .can .t b{display:block;font-size:17px}
.oha .can .t span{font-size:14.5px;color:var(--muted)}
.oha .can.off{opacity:.62}
.oha .sw{width:58px;height:34px;border-radius:999px;background:rgba(122,111,97,.28);position:relative;flex:none;border:1px solid var(--hair-soft)}
.oha .sw::after{content:"";position:absolute;top:3px;right:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:.2s}
.oha .sw.on{background:var(--navy)}
.oha .sw.on::after{right:27px}
.oha .saved{display:inline-flex;align-items:center;gap:6px;color:var(--ok);font-weight:700}
.oha .saved .ic{width:18px;height:18px}
.oha-bnav{display:none}
@media (max-width:640px){
 body.oha{font-size:17px}
 .oha-topbar{padding:10px 16px;gap:10px;flex-wrap:wrap;row-gap:8px}
 .oha .brand-txt,.oha .tb-link,.oha .who-txt,.oha .tb-out{display:none}
 .oha .logo-badge{height:46px;padding:3px 8px}
 .oha .logo-badge img{height:38px}
 .oha .who{padding:4px;border:0;background:transparent}
 .oha .wrap{padding:20px 16px 40px}
 .oha h1{font-size:32px}
 .oha .hello h1{font-size:36px}
 .oha .hero{grid-template-columns:1fr;gap:16px;margin-bottom:16px}
 .oha .hello .date{font-size:14px;margin-bottom:8px}
 .oha .hello{padding:24px 22px}
 .oha .hello p{font-size:18px;margin:8px 0 18px}
 .oha .hello .btn.primary,.oha .hello #ohPrintBtn{width:100%}
 .oha .stats{grid-template-columns:repeat(3,72%);overflow-x:auto;gap:12px;margin:0 -16px 26px;padding:0 16px 6px;scrollbar-width:none}
 .oha .stat{padding:16px}
 .oha .tiles,.oha .tiles.t3{grid-template-columns:1fr;gap:12px}
 .oha .tile{flex-direction:row;align-items:center;min-height:92px;padding:16px;gap:14px}
 .oha .tile .tic{width:56px;height:56px;margin:0;border-radius:17px}
 .oha .tile .tic .ic{width:28px;height:28px}
 .oha .tile .tb{flex:1}
 .oha .tile h3{font-size:19px}
 .oha .tile p{font-size:15px}
 .oha .tile .go{margin:0}
 .oha .tile .go b{display:none}
 .oha .tile .count{position:static;order:3}
 .oha .tile:hover{transform:none}
 .oha-bnav{display:grid;grid-template-columns:repeat(3,1fr);position:fixed;bottom:0;left:0;right:0;z-index:8;min-height:var(--bnav-h);background:var(--topbar);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--hair);padding:4px max(8px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))}
 .oha-bnav a,.oha-bnav button{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:56px;justify-content:center;font:inherit;font-size:14px;font-weight:700;color:var(--ink2);background:transparent;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
 .oha-bnav .ic{color:var(--gold-text)}
 .oha-bnav a.on{color:var(--ink)}
 .oha-bnav a.on .ic{color:var(--navy)}
 .oha .lead{font-size:17px}
 .oha .side{position:static}
 .oha .seg{width:100%;display:grid;grid-template-columns:1fr 1fr}
 .oha .seg button{padding:0 10px;font-size:16px;white-space:nowrap;justify-content:center}
 .oha .seg.full{grid-template-columns:repeat(3,1fr)}
 .oha .seg.full button{font-size:15px;padding:0 4px;white-space:normal;line-height:1.15}
 .oha .seg.sm{display:inline-flex;width:auto}
 .oha .item{flex-wrap:wrap;gap:12px}
 .oha .item .meta b{font-size:17px}
 .oha .item .acts{width:100%}
 .oha .item .acts .btn{flex:1}
 .oha .steps{margin-bottom:20px}
 .oha .step>span:not(.n){display:none}
 .oha .step.cur>span:not(.n){display:inline;font-size:16px}
 .oha .types{grid-template-columns:1fr 1fr;gap:12px}
 .oha .type{min-height:0;padding:18px 12px}
 .oha .type .tic{width:60px;height:60px}
 .oha .type h3{font-size:19px}
 .oha .type p{font-size:14px}
 .oha .types .type:first-child{grid-column:1/-1}
 .oha .form{padding:20px 18px;gap:18px}
 .oha .actions{position:fixed;bottom:0;left:0;right:0;z-index:8;padding:12px 16px 18px;background:var(--topbar);backdrop-filter:blur(14px);border-top:1px solid var(--hair);flex-direction:row-reverse}
 .oha .actions .btn.primary{min-height:60px;font-size:19px}
 .oha .search{min-height:62px;font-size:18px}
 .oha .quick{flex-wrap:nowrap;overflow-x:auto;margin:14px -16px 20px;padding:0 16px}
 .oha .quick .chip{white-space:nowrap}
 .oha .num.big{grid-column:1/-1}
}
.oha .hero>*{min-width:0}
.oha .tiles.two{grid-template-columns:1fr 1fr}
@media (max-width:640px){
 .oha .tiles.two{grid-template-columns:1fr}
 .oha .tiles.two .tile{flex-direction:column;align-items:flex-start}
 .oha .tiles.two .tile .btn{width:100%}
}

/* ---------- Stage A additions (not in the mockup CSS, needed for real pages) ---------- */
body.oha-page{font-family:"Assistant","Segoe UI",Arial,sans-serif}
/* the old technical status line ("Firebase: signed in") is replaced by the top bar */
body.oha #ohFirebaseStatusBar,body.oha-page #ohFirebaseStatusBar{display:none!important}
.oha-topbar,.oha-bnav{direction:rtl}
body.oha-page [id]{scroll-margin-top:96px}
.oha-topbar [hidden]{display:none!important}
.oha-topbar .logo-badge img{height:44px}
button.tb-link{font:inherit;background:transparent;cursor:pointer}
.oha-topbar .tb-link:focus-visible,.oha-bnav a:focus-visible,.oha a:focus-visible,.oha button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* live TV card: the real public screen (/tv/), scaled into the card */
.oha .stat .v.wait{color:var(--muted);font-weight:600}
.oha .gate{max-width:640px;margin:40px auto;padding:38px 40px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.oha .gate h1{font-size:34px;margin:0}
.oha .gate p{margin:6px 0 18px;color:var(--ink2);font-size:18px}
.oha .gate .btn.primary{min-width:260px}
.oha .gate .msg{min-height:24px;color:var(--ink2);font-size:16px}
/* phone bottom bar switch: OH_LABELS.bottomBar = false removes the bar and its space */
body.oha-no-bnav .oha-bnav{display:none!important}
@media (max-width:640px){
 .oha .gate{padding:28px 20px;margin:20px auto}
 .oha .gate .btn.primary{width:100%;min-width:0}
 /* the content always clears the bottom nav and the phone's home bar: nothing hides behind it */
 body.oha-has-bnav{padding-bottom:calc(var(--bnav-h) + env(safe-area-inset-bottom,0px) + var(--sp-2))}
 body.oha.oha-no-bnav .wrap{padding-bottom:40px}
}
@media print{.oha-topbar,.oha-bnav{display:none!important}}

/* ---------- 2040 phase 1: segmented pill control (language), Hanoch's reference ---------- */
.oh-seg{position:relative;display:inline-flex;align-items:stretch;gap:0;padding:4px;min-height:48px;box-sizing:border-box;border-radius:999px;
 background:linear-gradient(180deg,#0b2541,#12355b);border:1px solid rgba(201,162,92,.75);
 box-shadow:inset 0 2px 5px rgba(0,0,0,.38),inset 0 -1px 0 rgba(255,255,255,.06),0 1px 2px rgba(14,44,76,.12);
 font-family:"Assistant",system-ui,sans-serif;isolation:isolate;flex-shrink:0;direction:rtl}
.oh-seg-pill{position:absolute;top:4px;bottom:4px;left:0;width:0;border-radius:999px;z-index:0;
 background:linear-gradient(180deg,#fffdf8,#f3ead9);border:1px solid rgba(201,162,92,.55);
 box-shadow:0 3px 9px rgba(0,0,0,.32),0 1px 2px rgba(0,0,0,.2),inset 0 1px 0 #fff;
 transition:transform .2s ease,width .2s ease;opacity:0}
.oh-seg.ready .oh-seg-pill{opacity:1}
.oh-seg-b{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;min-width:48px;padding:0 18px;border:0;border-radius:999px;
 background:transparent;color:rgba(232,238,246,.78);font:inherit;font-size:16px;font-weight:600;cursor:pointer;white-space:nowrap;transition:color .2s ease;-webkit-tap-highlight-color:transparent}
.oh-seg-b:hover{color:#fff}
.oh-seg-b.on{color:var(--navy);font-weight:800}
.oh-seg:not(.ready) .oh-seg-b.on{background:#fbf7ef}
.oh-seg-b:focus-visible{outline:2px solid #e3c486;outline-offset:2px}
.oh-seg-b .flag{width:23px;height:17px;flex-shrink:0;border-radius:4px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.oh-seg-short{display:none}
@media (prefers-reduced-motion:reduce){.oh-seg-pill,.oh-seg-b{transition:none!important}}
.oha-topbar .oh-seg{margin-inline:6px}
@media (max-width:640px){
 .oha-topbar .oh-seg-b{padding:0 11px;gap:6px;font-size:15px}
 .oha-topbar .oh-seg-full{display:none}.oha-topbar .oh-seg-short{display:inline}
}
/* English (left to right): the shared bars follow the page direction */
html.oh-en body{font-family:"Assistant",system-ui,sans-serif}
html.oh-en .oha-topbar,html.oh-en .oha-bnav{direction:ltr}
html.oh-en .oha .en,html.oh-en .oha .sec-title span{direction:rtl;text-align:left}
html.oh-en .oha-topbar .oh-seg{direction:rtl}

/* 2040 phase 1: the one Settings button (Hanoch 5:49 AM) */
.oha .tb-gear{display:inline-flex;align-items:center;gap:8px;min-height:48px;min-width:48px;justify-content:center;padding:0 16px;border-radius:999px;font-weight:700;font-size:16px;color:var(--navy);border:1px solid var(--hair);background:#fffdf8}
.oha .tb-gear:hover{background:var(--surface2)}
.oha .tb-gear[aria-current="page"]{background:var(--navy);color:var(--on-navy);border-color:var(--navy)}
.oha .tb-gear .ic{width:22px;height:22px;color:var(--gold-text)}
.oha .tb-gear[aria-current="page"] .ic{color:var(--gold-soft)}
.oha .tb-gear[hidden]{display:none}
@media (max-width:640px){
 .oha .tb-gear{padding:0;width:48px}
 .oha .tb-gear span{display:none}
 .oha-topbar .who{display:none!important}
 .oha-topbar .tb-spacer{display:none}
 .oha-topbar .oh-seg{margin-inline:4px}
}

/* top bar: the Settings button never squeezes (English words are longer) */
@media (min-width:641px){.oha-topbar .tb-gear{flex-shrink:0;white-space:nowrap}}
@media (min-width:1101px){.oha-topbar .tb-out,.oha-topbar .who-txt,.oha-topbar .brand-txt{white-space:nowrap}}
/* tablets: the compact pill (עב / EN), the gear without its word, no name next to the avatar */
@media (min-width:641px) and (max-width:1399px){.oha .tb-gear{padding:0;width:48px}.oha .tb-gear span{display:none}.oha-topbar .oh-seg-b{padding:0 11px;gap:6px;font-size:15px}.oha-topbar .oh-seg-full{display:none}.oha-topbar .oh-seg-short{display:inline}.oha-topbar .who-txt{display:none}}
@media (min-width:641px) and (max-width:1023px){.oha-topbar{flex-wrap:wrap;row-gap:8px;padding:10px 20px;gap:12px}}
@media (min-width:1400px) and (max-width:1599px){html[lang="en"] .oha .tb-gear{padding:0;width:48px}html[lang="en"] .oha .tb-gear span{display:none}html[lang="en"] .oha-topbar .who-txt{display:none}}

/* Help text (design system foundation, 2026-11-25; retires the 2040 phase 2 rule that hid
   every .oh-help from everyone but the super admin). Two classes now:
   - .oh-help        how-to-use text: shown to EVERYONE who can use the feature (content and
                     finance gabbaim included), so every tile, card and form explains itself;
   - .oh-note-admin  a note for the super admin only (technical status lines). oh-shell.js adds
                     "oh-sa" to <html> once the signed-in account is the super admin; hidden
                     until then (no flash). */
html:not(.oh-sa) .oh-note-admin{display:none !important}

/* text cleanup (Nov 5): only the active language is shown; the small second-language lines are hidden */
.oha .sec-title span,.oha .tile .en,#ptSection .ohpt-head h2 small{display:none}

/* ===========================================================================
   Install popup + footer link + notifications bell (combined package, 2026-11-05)
   Direction A only: stone/gold/navy, no red or burgundy anywhere, touch
   targets at least 48px, RTL. Signed-in dashboard pages only (built by
   src/ui/oh-shell.js, which never runs on the public landing page).
   =========================================================================== */

/* ---- bell in the top bar ---- */
.oha-bell-wrap{position:relative}
.oha .tb-bell{position:relative;min-width:48px;padding:0 14px}
.oha-bell-badge{position:absolute;top:2px;inset-inline-end:2px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--gold-dark);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 0 2px var(--topbar)}
.oha-bell-panel{position:absolute;top:calc(100% + 10px);inset-inline-end:0;width:min(360px,88vw);max-height:70vh;overflow:auto;background:var(--surface-solid);border:1px solid var(--hair);border-radius:16px;box-shadow:var(--shadow-lift);z-index:20;padding:14px}
.oha-bell-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.oha-bell-head b{font-size:17px}
.oha-bell-markall{background:transparent;border:none;color:var(--gold-text);font-weight:700;font-size:14px;cursor:pointer;min-height:36px;padding:0 6px}
.oha-bell-enable{border:1px solid var(--hair-soft);border-radius:12px;padding:10px;margin-bottom:10px;background:var(--sky-pale)}
.oha-bell-enable .btn{width:100%}
.oha-bell-list{display:flex;flex-direction:column;gap:6px}
.oha-bell-item{display:block;width:100%;text-align:start;background:var(--surface2);border:1px solid var(--hair-soft);border-radius:12px;padding:10px 12px;cursor:pointer;min-height:48px}
.oha-bell-item b{display:block;font-size:15px}
.oha-bell-item span{display:block;font-size:14px;color:var(--ink2);margin-top:2px}
.oha-bell-item small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.oha-bell-item.unread{background:var(--chip);border-color:var(--hair)}
.oha-bell-item.unread b::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--gold-dark);margin-inline-end:8px;vertical-align:1px}

/* ---- the auth error line, next to sign-in/out in the top bar ---- */
.oha-auth-msg{font-size:14px;color:var(--gold-text);max-width:220px}
.oha-auth-msg[hidden]{display:none}

/* ---- install popup: one small calm dialog, shown once ---- */
.oha-install-popup{position:fixed;inset:0;background:rgba(14,44,76,.38);display:flex;align-items:flex-end;justify-content:center;z-index:50;padding:16px}
.oha-install-popup[hidden]{display:none}
.oha-install-card{background:var(--surface-solid);border:1px solid var(--hair);border-radius:18px;box-shadow:var(--shadow-lift);max-width:400px;width:100%;padding:22px;text-align:center}
.oha-install-title{font-family:var(--font-display-he);font-size:21px;font-weight:700;color:var(--navy);margin:0 0 8px}
.oha-install-body{font-size:16px;color:var(--ink2);margin:0 0 16px;line-height:1.5}
.oha-install-actions{display:flex;gap:10px;flex-wrap:wrap}
.oha-install-actions .btn{flex:1 1 auto;min-width:120px}

/* ---- footer install link: one small line, dashboard pages only ---- */
.oha-install-foot{text-align:center;padding:22px 16px 28px}
.oha-install-foot[hidden]{display:none}
.oha-install-foot button{background:transparent;border:none;color:var(--gold-text);font:inherit;font-weight:700;font-size:15px;cursor:pointer;min-height:48px;padding:0 10px;text-decoration:underline}

/* ---- retroactive payment date field (finance) ---- */

/* The bell must stay visible on mobile even though the existing mobile rule
   hides every .tb-link (those move to the bottom nav bar instead; the bell
   has no bottom-nav equivalent, so it stays in the top bar at every width). */
@media (max-width:640px){
  .oha .tb-bell{display:inline-flex !important}
}

/* Mobile: the bell panel anchors to the viewport instead of the button's own
   position, since the button itself can wrap to its own line at this width
   (see the topbar flex-wrap rule above) and a panel anchored to a wrapped
   button's exact x can run past the screen edge. */
@media (max-width:640px){
  .oha-bell-panel{position:fixed;top:112px;inset-inline-end:10px;inset-inline-start:10px;width:auto;max-width:none}
}

/* ===========================================================================
   THE component set (design system foundation, 2026-11-25)
   Built from the winners already in the repo (the stage A home, the 2040 parts, the
   finance toast, the oh-home.js loading watchdog). Global "oh-" classes, so any page
   that loads this file can use them. Every value is a token from src/ui/oh-tokens.css.
   Look: navy for the frame and the primary action only, gold for accents only, white
   space, no card inside a card, one 16 / 20 / 28 type scale, the title on the right
   (the start side), the cream texture only behind the page (body), never inside a card.
   JS parts: src/ui/oh-ui.js (ask / tell / toast / loading / empty / error),
   src/ui/oh-gate.js (the gate), src/ui/oh-shell.js (top bar, bottom nav).
   =========================================================================== */
.oh-ic{width:22px;height:22px;flex:none}
.oh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- page head: title (28) + one lead line, on the start (right) side ---- */
.oh-page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--sp-2);margin:0 0 var(--sp-4);text-align:start}
.oh-page-head>div:first-child{flex:1 1 320px;min-width:0}
.oh-title{margin:0;font-family:var(--font-body);font-size:var(--fs-h1);line-height:1.2;font-weight:800;color:var(--ink)}
.oh-lead{margin:var(--sp-1) 0 0;font-size:var(--fs-body);line-height:var(--lh);color:var(--ink2);max-width:62ch}

/* ---- card: solid surface, one radius; a card inside a card is flattened to a section ---- */
.oh-card{background:var(--surface);border:1px solid var(--hair-soft);border-radius:var(--radius-card);box-shadow:var(--shadow);padding:var(--sp-3);position:relative}
.oh-card h2,.oh-card-t{margin:0 0 var(--sp-1);font-family:var(--font-body);font-size:var(--fs-h2);line-height:1.3;font-weight:800;color:var(--ink)}
.oh-card .oh-card{background:transparent;border:0;border-top:1px solid var(--hair-soft);border-radius:0;box-shadow:none;padding:var(--sp-2) 0 0;margin-top:var(--sp-2)}

/* ---- buttons: primary (navy, 56px), secondary (the base), ghost, danger ---- */
.oh-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-1);min-height:var(--tap);padding:0 20px;border-radius:var(--radius-btn);border:1px solid var(--hair);background:var(--surface);color:var(--ink);font:inherit;font-family:var(--font-body);font-size:var(--fs-body);font-weight:700;line-height:1.2;cursor:pointer;text-decoration:none;white-space:nowrap;width:auto}
.oh-btn:hover{border-color:var(--gold)}
.oh-btn.primary{min-height:var(--btn-h);padding:0 28px;background:var(--navy);border-color:var(--navy);color:var(--on-navy)}
.oh-btn.primary:hover{background:var(--navy2);border-color:var(--navy2)}
.oh-btn.ghost{background:transparent;border-color:transparent;color:var(--gold-text);padding:0 12px}
.oh-btn.ghost:hover{border-color:var(--hair-soft)}
.oh-btn.danger{background:var(--surface);border:2px solid var(--err-line);color:var(--ink)}
.oh-btn:disabled{opacity:.55;cursor:default}
.oh-btn:focus-visible,.oh-chip:focus-visible,.oh-dlg-acts button:focus-visible,.oh-toast button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* ---- chip: quiet, the chosen one framed in gold (not filled navy) ---- */
.oh-chip{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);padding:0 16px;border-radius:var(--radius-pill);border:1px solid var(--hair-soft);background:var(--chip);color:var(--ink2);font:inherit;font-family:var(--font-body);font-size:var(--fs-sm);font-weight:600;cursor:pointer;text-decoration:none}
.oh-chip.on,.oh-chip[aria-pressed="true"]{background:var(--surface);border-color:var(--gold);color:var(--ink);box-shadow:inset 0 0 0 1px var(--gold)}

/* ---- hint, warning, error: told apart at a glance, without red ----
   hint:    muted words, no frame, no mark
   warning: amber background, a thin gold frame
   error:   a mark, bold words, a strong dark frame (thicker on the start side) */
.oh-hint{margin:var(--sp-1) 0 0;font-size:var(--fs-sm);line-height:1.5;color:var(--muted)}
.oh-warn{display:flex;gap:10px;align-items:flex-start;padding:12px 16px;border:1px solid var(--gold);border-radius:var(--radius-btn);background:var(--warn-bg);color:var(--warn-ink);font-weight:600}
.oh-error{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:var(--sp-2) 20px;border:2px solid var(--err-line);border-inline-start-width:8px;border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);text-align:start}
.oh-error>.oh-ic{width:26px;height:26px;color:var(--ink)}
.oh-error-t{flex:1 1 200px;min-width:0;font-weight:800}
.oh-error.slow{border:1px solid var(--gold);border-inline-start-width:6px;background:var(--warn-bg);color:var(--warn-ink)}
.oh-error.slow>.oh-ic{color:var(--warn-ink)}

/* ---- a status line under a form or a button (step 3, 2026-11-25): ok / error / busy ----
   ok: a green tick line; error: the error look (bold, a strong dark frame, never red); busy: muted.
   Used by every screen of the Screen menu and by finance (OH_UI.say). */
.oh-msg{margin:var(--sp-1) 0 0;font-size:var(--fs-sm);line-height:1.5;color:var(--muted)}
.oh-msg:empty{display:none}
.oh-msg.is-ok{color:var(--ok);font-weight:700}
.oh-msg.is-busy{color:var(--muted);font-weight:600}
.oh-msg.is-err{padding:12px 16px;border:2px solid var(--err-line);border-inline-start-width:8px;border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);font-weight:800}
.oh-msg.is-warn{padding:12px 16px;border:1px solid var(--gold);border-radius:var(--radius-btn);background:var(--warn-bg);color:var(--warn-ink);font-weight:700}
/* a hidden button or status line stays hidden (the class sets display) */
.oh-btn[hidden],.oh-msg[hidden],.oh-acts[hidden]{display:none!important}
/* a smaller button for rows and lists (same look, 48px tall) */
.oh-btn.small{min-height:var(--tap);padding:0 16px;font-size:var(--fs-sm)}
.oh-btn.primary.small{min-height:var(--tap);padding:0 18px}
/* a row of buttons */
.oh-acts{display:flex;flex-wrap:wrap;gap:var(--sp-1);align-items:center;margin-top:var(--sp-2)}
/* a "back to the menu" link for a page of the Screen menu that is its own page (gabbai/tv/content/) */
.oh-back{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);padding:0 16px;border-radius:var(--radius-pill);border:1px solid var(--hair-soft);background:var(--surface);color:var(--navy);font-weight:800;font-size:var(--fs-sm);text-decoration:none}
.oh-back:hover{border-color:var(--gold)}
.oh-back:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.oh-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* ---- loading (skeleton or "טוען..."), empty ---- */
.oh-state{display:flex;flex-direction:column;align-items:center;gap:var(--sp-2);padding:var(--sp-4) var(--sp-2);text-align:center;color:var(--ink2)}
.oh-state-t{margin:0;font-size:var(--fs-body)}
.oh-loading .oh-state-t{color:var(--muted)}
.oh-loading:has(.oh-skel){align-items:stretch;gap:12px;padding:var(--sp-2) 0}
.oh-skel{display:block;height:18px;border-radius:8px;background:linear-gradient(90deg,var(--chip) 25%,var(--surface) 50%,var(--chip) 75%);background-size:200% 100%;animation:ohSkel 1.4s ease-in-out infinite}
.oh-skel:nth-child(3n+2){width:82%}
.oh-skel:nth-child(3n){width:64%}
@keyframes ohSkel{0%{background-position:100% 0}100%{background-position:-100% 0}}
.oh-empty>.oh-ic{width:44px;height:44px;color:var(--gold-text)}

/* ---- dialog: ask / tell, and the destructive variant ---- */
.oh-dlg{border:1px solid var(--hair);border-radius:var(--radius-card);padding:var(--sp-3);max-width:min(460px,calc(100vw - 32px));width:100%;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lift);font:inherit;font-family:var(--font-body);font-size:var(--fs-body);line-height:var(--lh)}
.oh-dlg::backdrop{background:rgba(8,27,48,.45)}
.oh-dlg p{margin:0 0 6px}
.oh-dlg .oh-dlg-t{display:flex;align-items:flex-start;gap:10px;font-weight:800;font-size:var(--fs-h2);line-height:1.35}
.oh-dlg .oh-dlg-t>.oh-ic{width:26px;height:26px;margin-top:2px}
.oh-dlg-acts{display:flex;gap:10px;justify-content:flex-start;flex-wrap:wrap;margin-top:var(--sp-3)}
.oh-dlg-acts button{font:inherit;font-weight:700;min-height:var(--tap);padding:0 22px;border-radius:var(--radius-btn);cursor:pointer;border:1px solid var(--hair);background:var(--surface);color:var(--ink)}
.oh-dlg-acts button.ok{background:var(--navy);border-color:var(--navy);color:var(--on-navy)}
/* delete / void / cancel: a heavy dark frame, the mark, and the confirm outlined in dark,
   never the navy of a save; the safe "no" keeps the focus */
.oh-dlg.danger{border:2px solid var(--err-line);border-top-width:8px}
.oh-dlg-acts button.ok.danger{background:var(--surface);border:2px solid var(--err-line);color:var(--ink)}
.oh-dlg.error{border:2px solid var(--err-line)}

/* ---- toast: one line at the bottom, above the phone bottom nav, "בטל" where undo exists ---- */
.oh-toast{position:fixed;inset-inline:0;margin-inline:auto;bottom:calc(var(--sp-2) + env(safe-area-inset-bottom,0px));width:min(560px,calc(100% - 32px));background:var(--navy);color:var(--on-navy);border-radius:var(--radius-btn);padding:12px 14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;box-shadow:0 18px 40px -16px rgba(0,0,0,.5);z-index:60;font-family:var(--font-body);font-size:var(--fs-sm)}
.oh-toast .oh-toast-t{flex:1;min-width:0;font-weight:600}
.oh-toast button{background:transparent;border:1px solid currentColor;color:inherit;border-radius:10px;min-height:40px;padding:0 12px;font:inherit;font-weight:700;cursor:pointer}
@media (max-width:640px){body.oha-has-bnav .oh-toast{bottom:calc(var(--bnav-h) + 12px + env(safe-area-inset-bottom,0px))}}
/* 2026-11-30 (owner, on his phone): the finance toast was cut off on the left in Hebrew. It carries .fn-toast too
   (src/ui/oh-finance.css: left:50% + translateX(-50%)), and that fought the centring here (inset-inline:0 + auto
   margins): right to left the box kept its right edge on the screen edge and was then pushed half its width out
   to the left. Below the wide layout (960px) one centring only, and a long word wraps instead of running out.
   From 960px up nothing changes. */
@media (max-width:959.98px){.oh-toast.fn-toast{left:0;transform:none}.oh-toast .oh-toast-t{overflow-wrap:anywhere}}
@media print{.oh-toast{display:none!important}}

/* ---- the gate (src/ui/oh-gate.js): one card, the logo, one title, the one Google button ---- */
.gate-card.oh-gate{border:1px solid var(--hair-soft);border-radius:var(--radius-card);box-shadow:var(--shadow);background:var(--surface);padding:var(--sp-4) var(--sp-3);max-width:560px;text-align:center}
.gate-card.oh-gate::before{display:none}
.oh-gate{text-align:center}
.oh-gate [hidden]{display:none!important}
.oh-gate-logo{display:block;height:72px;width:auto;margin:0 auto var(--sp-2)}
.oh-gate .oh-gate-t{margin:0 0 var(--sp-1);font-family:var(--font-body);font-size:var(--fs-h1);line-height:1.2;font-weight:800;color:var(--ink)}
.oh-gate .oh-gate-p{margin:0 0 var(--sp-2);color:var(--ink2);font-size:var(--fs-body)}
.oh-gate .oh-gate-msg{margin:var(--sp-2) 0 0;min-height:1em;color:var(--ink);font-weight:700}
.oh-gate .oh-gate-msg:empty{display:none}
.oh-gate .gw-slow{display:flex;flex-direction:column;align-items:center;gap:var(--sp-1);margin-top:var(--sp-2)}
.oh-gate .gw-text{margin:0;color:var(--warn-ink);font-weight:700}
/* the one Google button (also styled in theme.css for the pages that load it) */
button.oh-gsi{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:280px;min-height:52px;margin-top:var(--sp-1);padding:12px 24px;background:#fff;color:#1f1f1f;border:1px solid #dadce0;border-radius:var(--radius-pill);font-family:var(--font-body);font-size:var(--fs-body);font-weight:600;cursor:pointer;box-shadow:0 1px 2px rgba(60,64,67,.15),0 2px 8px rgba(60,64,67,.06)}
button.oh-gsi:hover{background:#f8f9fa}
button.oh-gsi svg{width:22px;height:22px;flex:none}
@media (max-width:640px){.gate-card.oh-gate{padding:var(--sp-3) 20px}button.oh-gsi{min-width:0;width:100%}}

/* ---------- THE shell (design system foundation, 2026-11-25): src/ui/oh-shell.js ----------
   Top bar: logo, the page title, language pill, bell, settings, who, sign-out (it asks
   first). Phone bottom nav: דף הבית / המסך / עוד, signing out is NOT in the tab bar.
   Both clear the content and the phone's notch / home bar (safe-area insets). */
.oha-topbar{padding-top:max(12px,env(safe-area-inset-top,0px))}
.oha-topbar .tb-title{min-width:0;max-width:34ch;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--fs-h2);font-weight:800;color:var(--ink);padding-inline-start:14px;border-inline-start:1px solid var(--hair)}
.oha-topbar .tb-title:empty{display:none}
.oha-more .oha-more-who{align-items:center}
.oha-more .oha-more-who .avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none;font-weight:800;background:var(--navy);color:var(--gold-soft)}
.oha-more .oha-more-who small{display:block;font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.oha-more .oha-more-list{display:flex;flex-direction:column;gap:var(--sp-1);margin-top:var(--sp-2)}
.oha-more .oha-more-list .oh-btn{justify-content:flex-start;width:100%}
.oha-more .oha-more-list .ic{width:22px;height:22px;color:var(--gold-text)}
.oha-more .oha-more-list .oh-btn.primary .ic{color:var(--gold-soft)}
.oha .hello.narrow{max-width:640px}
.oha a.noaccess{min-height:var(--tap)}
@media (min-width:641px) and (max-width:1100px){.oha-topbar .brand-txt{display:none}.oha-topbar .tb-title{border:0;padding:0}}
@media (max-width:640px){
 .oha-topbar{padding:max(8px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px))}
 /* row 1: the logo and the language pill; row 2: the page title, the settings gear, the bell, sign-out.
    2026-11-30 (owner): the gear shows on a phone too (it was display:none here, so a gabbai on a phone had
    no gear at all; it is still in "עוד" as well). An icon only, in row 2; the title gives up the room
    (40% and it shortens with "..."), so the bar stays two short rows. Who may see it is unchanged
    (src/ui/oh-shell.js sets its hidden attribute; .tb-gear[hidden] stays display:none). */
 .oha-topbar{row-gap:4px}
 .oha-topbar .brand{margin-inline-end:auto}
 .oha-topbar .tb-gear{order:11;flex:none}
 .oha-topbar .tb-title{order:10;flex:1 1 40%;max-width:none;padding:0;border:0;font-size:var(--fs-body)}
 .oha-topbar .oha-bell-wrap{order:11}
 .oha-topbar .tb-out{order:12}
 .oha-topbar .oha-auth-msg{order:13;flex-basis:100%}
 /* signing out stays in the top bar on a phone (icon only); it asks first */
 .oha-topbar .tb-out:not([hidden]){display:inline-flex;min-width:var(--tap);justify-content:center;padding:0 10px}
 .oha-topbar .tb-out span{display:none}
 .oha-bell-panel{top:calc(env(safe-area-inset-top,0px) + 116px)}
 body.oha-page [id]{scroll-margin-top:128px}
}

/* ===========================================================================
   Design system demo (2026-11-25): the gabbai home as a "today" page.
   hello + today (next prayer, next zman) / alerts as buttons / four big actions /
   status tiles / every tool / the command bar below the menus. Tokens only.
   =========================================================================== */
.oha .hero.today{grid-template-columns:1.05fr .95fr}
.oha .today-next{padding:var(--sp-3);display:flex;flex-direction:column;gap:var(--sp-2)}
.oha .today-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2)}
.oha .today-head h2{margin:0;font-size:var(--fs-h2);font-weight:800}
.oha .today-head a{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);font-size:var(--fs-sm);font-weight:700;color:var(--gold-text)}
.oha .today-head a .ic{width:18px;height:18px}
.oha .today-row{display:flex;gap:var(--sp-2);align-items:center}
.oha .today-row .sic{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--ic-bg);color:var(--navy);border:1px solid var(--hair-soft);flex:none}
.oha .today-row .sic .ic{width:26px;height:26px}
.oha .today-row .k{display:block;font-size:var(--fs-sm);color:var(--muted);font-weight:700}
.oha .today-row .v{display:block;font-size:24px;font-weight:800;line-height:1.25;color:var(--ink)}
.oha .today-row .v small{font-size:var(--fs-sm);font-weight:700;color:var(--ink2)}
.oha .today-row .today-t{white-space:nowrap}
.oha .today-row .today-in{color:var(--gold-text)}
/* the four big actions */
/* 2026-11-30 (owner): the Screen tile at the top of the home, inside the hero (src/ui/oh-home.js, .tile-top):
   one row across the hero; on a phone it sits right under the hello card, above "היום" */
.oha .hero .tile-top{grid-column:1/-1;flex-direction:row;align-items:center;min-height:92px;padding:16px 24px;gap:var(--sp-2)}
.oha .hero .tile-top .tic{margin:0;flex:none}
.oha .hero .tile-top .tb{flex:1;min-width:0}
.oha .hero .tile-top .go{margin:0}
.oha .acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-2);margin:0 0 var(--sp-4)}
.oha .act{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:132px;padding:var(--sp-3) 20px;border-radius:var(--radius-card);background:var(--surface);border:1px solid var(--hair);box-shadow:var(--shadow);color:var(--ink);text-decoration:none;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.oha .act:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift)}
.oha .act .act-ic{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--ic-bg);color:var(--navy);border:1px solid var(--hair-soft);margin-bottom:4px}
.oha .act .act-ic .ic{width:26px;height:26px}
.oha .act .act-t{font-size:var(--fs-h2);font-weight:800;line-height:1.2}
.oha .act .act-d{font-size:var(--fs-sm);color:var(--ink2);line-height:1.4}
.oha .act.primary{background:var(--primary-bg);border-color:var(--gold);color:var(--on-navy)}
.oha .act.primary .act-ic{background:var(--navy2);border-color:var(--gold-soft);color:var(--gold-soft)}
.oha .act.primary .act-d{color:var(--gold-soft)}
.oha .stats{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.oha .home-cmd{margin-top:var(--sp-4)}
/* alerts: each one is the button to its fix */
.ohx .al-item.al-btn{font:inherit;text-align:start;color:var(--ink);text-decoration:none;cursor:pointer;min-height:var(--tap);transition:transform .2s var(--ease),box-shadow .2s var(--ease),border-color .2s}
.ohx .al-item.al-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift);border-color:var(--gold)}
.ohx .al-item.al-btn:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.ohx .al-txt{display:flex;flex-direction:column;min-width:0}
.ohx .al-go{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:4px;font-weight:800;font-size:var(--fs-sm);color:var(--gold-text)}
.ohx .al-item.hi .al-go{color:var(--navy)}
.ohx .al-go .ic{width:18px;height:18px}
.ohx .al-empty{margin-top:12px}
@media (max-width:900px){.oha .acts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
 .oha .hero.today{grid-template-columns:1fr}
 .oha .hero .tile-top{order:1;padding:16px}
 .oha .hero .today-next{order:2}
 .oha .today-next{padding:20px}
 .oha .today-row .v{font-size:20px}
 .oha .acts{gap:12px;margin-bottom:var(--sp-3)}
 .oha .act{min-height:120px;padding:16px}
 .oha .act .act-t{font-size:18px}
 .oha .stats{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin:0 0 var(--sp-3);padding:0}
 .oha .stat{padding:14px;gap:10px}
 .oha .stat .sic{width:40px;height:40px;border-radius:12px}
 .oha .stat .v{font-size:20px}
}
.oha .noaccess[hidden],.oha .card[hidden]{display:none}
/* the top bar always fits (step 3, batch 4, 2026-11-26): from tablet width up, the page title is the one item that
   gives way: it shrinks with an ellipsis, so the brand, every link and the sign-out button stay whole and on the
   screen (no sideways scroll at 1280 px in Hebrew or English). Phones keep their own layout (the title on its own line). */
@media (min-width:641px){
 .oha-topbar>*:not(.tb-title):not(.tb-spacer){flex-shrink:0}
 .oha-topbar .tb-link{white-space:nowrap}
 .oha-topbar .tb-title{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
}
/* up to 1599 px the bar is tighter (gaps, side padding, link padding), so a page with an extra link (backup / restore)
   still fits in English, the longer language, with the title shortened */
@media (min-width:1024px) and (max-width:1599px){.oha-topbar{gap:10px;padding-inline:24px}.oha-topbar .tb-link{padding:0 12px}.oha-topbar .tb-bell{padding:0 12px}}
/* below 1280 px a bar that still does not fit goes onto a second row (as tablets already do), never past the screen */
@media (min-width:1024px) and (max-width:1279px){.oha-topbar{flex-wrap:wrap;row-gap:8px}}

/* ---- a progress bar: the native <progress> (no inline width), on the tokens (step 3, batch 2) ---- */
.oh-progress{display:block;width:100%;height:8px;border:0;border-radius:var(--radius-pill);background:var(--chip);color:var(--navy);overflow:hidden;-webkit-appearance:none;appearance:none}
.oh-progress::-webkit-progress-bar{background:var(--chip);border-radius:var(--radius-pill)}
.oh-progress::-webkit-progress-value{background:var(--navy);border-radius:var(--radius-pill);transition:width .2s}
.oh-progress::-moz-progress-bar{background:var(--navy);border-radius:var(--radius-pill)}

/* ---- "הדפס בבית הכנסת" at every document point (src/ui/oh-print-here.js): the dialog ----
   Until step 3, batch 2 these rules were a <style> the script injected, with colour literals of its own.
   The choices are framed in gold (not filled navy), the buttons are .oh-btn, a failure is .oh-msg.is-err. */
.ohph{border:1px solid var(--hair);border-radius:var(--radius-card);padding:0;width:min(440px,calc(100vw - 32px));max-height:calc(100vh - 32px);color:var(--ink);background:var(--surface);box-shadow:var(--shadow-lift);font-family:var(--font-body)}
.ohph::backdrop{background:rgba(8,27,48,.45)}
.ohph-in{padding:var(--sp-3) 20px 18px;display:grid;gap:14px}
.ohph h2{margin:0;font-family:var(--font-body);font-size:var(--fs-h2);line-height:1.3;font-weight:800;color:var(--ink)}
.ohph-doc{margin:-6px 0 0;color:var(--ink2);font-size:var(--fs-sm);overflow-wrap:anywhere}
.ohph-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ohph-k{font-weight:700;font-size:var(--fs-sm)}
.ohph-seg{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--hair-soft);border-radius:var(--radius-btn);background:var(--chip)}
.ohph-seg button{min-height:var(--tap);padding:0 14px;border:1px solid transparent;border-radius:10px;background:none;font:inherit;font-size:var(--fs-sm);font-weight:700;color:var(--ink2);cursor:pointer}
.ohph-seg button[aria-checked=true]{background:var(--surface);border-color:var(--gold);color:var(--ink);box-shadow:inset 0 0 0 1px var(--gold)}
.ohph-cp{display:inline-flex;align-items:center;gap:10px}
.ohph-cp button{width:var(--tap);height:var(--tap);border-radius:var(--radius-btn);border:1px solid var(--hair);background:var(--surface);font-size:22px;line-height:1;color:var(--ink);cursor:pointer}
.ohph-cp button:disabled{opacity:.4;cursor:default}
.ohph-cp b{min-width:2ch;text-align:center;font-size:var(--fs-h2);font-variant-numeric:tabular-nums}
.ohph-acts{display:flex;gap:10px;flex-wrap:wrap}
.ohph-acts .oh-btn{flex:1 1 auto}
.ohph-note{margin:0;padding:10px 12px;border-radius:var(--radius-btn);background:var(--chip);color:var(--ink2);font-size:var(--fs-sm)}
.ohph-st{display:grid;gap:4px;padding:12px 14px;border-radius:var(--radius-btn);background:var(--chip);border:1px solid var(--hair-soft)}
.ohph-st b{font-size:var(--fs-h2)}
.ohph-st span{font-size:var(--fs-sm);color:var(--ink2)}
.ohph-st.is-done{background:var(--ok-soft);border-color:var(--ok)}
.ohph-st.is-done b{color:var(--ok)}
.ohph-st.is-failed{background:var(--surface);border:2px solid var(--err-line);border-inline-start-width:8px}
.ohph-st.is-cancelled{background:var(--warn-bg);border-color:var(--gold)}
.ohph-busy .oh-progress{margin:0}
.ohph-busy .ohph-doc{margin:8px 0 0}
.ohph-seg button:focus-visible,.ohph-cp button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
