/* פורטל שכבה – הכתרה. בנוי על משתני האתר (--ink, --gold וכו') */
.sh-open .sh-card,.sh-card{background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:16px;padding:1.1rem 1.1rem 1.2rem;margin:0 0 1rem}
.sh-card h2{font-family:var(--serif);color:var(--gold);font-size:1.25rem;margin:0 0 .6rem}
.sh-card h3{margin:.2rem 0 .4rem;color:var(--cream);font-size:1.05rem}
.sh-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.5rem 0}
.sh-err{color:#f19a8f}
.sh-back{display:inline-block;margin:.4rem 0}
.sh-app{max-width:760px;margin:0 auto;padding:0 0 4rem}
.sh-top{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.6rem 0;border-bottom:1px solid var(--line);margin-bottom:.6rem}
.sh-top b{font-family:var(--serif);color:var(--gold);font-size:1.15rem}
.sh-me{display:block;color:var(--muted);font-size:.85rem}
.sh-demo{background:rgba(216,179,95,.14);border:1px dashed var(--gold-soft);color:var(--cream);border-radius:10px;padding:.45rem .7rem;font-size:.88rem;margin:.4rem 0}
.sh-tabs,.sh-sub{display:flex;gap:.3rem;overflow-x:auto;padding:.3rem 0 .6rem;scrollbar-width:none;position:sticky;top:0;z-index:5;background:var(--ink)}
.sh-sub{position:static;background:none}
.sh-tabs::-webkit-scrollbar,.sh-sub::-webkit-scrollbar{display:none}
.sh-tabs button,.sh-sub button{flex:0 0 auto;font:inherit;font-size:.92rem;padding:.5rem .85rem;min-height:44px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--body);cursor:pointer}
.sh-tabs button[aria-selected=true],.sh-sub button[aria-selected=true]{background:var(--gold);color:var(--ink);border-color:var(--gold);font-weight:700}
.sh-view{min-height:50vh}
.sh-hero{text-align:center;padding:1rem 0 .6rem}
.sh-count{font-family:var(--serif);font-size:1.5rem;color:var(--cream)}
.sh-count b{color:var(--gold);font-size:2.6rem;display:block;line-height:1.1}
.sh-prog{height:10px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden;margin:.6rem auto .2rem;max-width:420px}
.sh-prog span{display:block;height:100%;background:linear-gradient(90deg,var(--gold-soft),var(--gold));border-radius:99px}
.sh-tl,.sh-tasks,.sh-clist,.sh-mlist,.sh-codes,.sh-folders{list-style:none;margin:0;padding:0}
.sh-tl li,.sh-mlist li{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.45rem 0;border-bottom:1px solid rgba(255,255,255,.06)}
.sh-tl small,.sh-mlist small{color:var(--muted)}
.sh-late{color:#f19a8f!important}
.sh-codes li{padding:.3rem 0}.sh-codes b{color:var(--gold);letter-spacing:.08em;font-size:1.1rem}
.sh-folders li{padding:.25rem 0}
.sh-clist li a{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;padding:.7rem .2rem;border-bottom:1px solid rgba(255,255,255,.07);text-decoration:none;color:var(--cream)}
.sh-clist small{flex-basis:100%;color:var(--muted)}
.sh-badge{background:var(--gold);color:var(--ink);border-radius:99px;padding:0 .5rem;font-size:.8rem;font-weight:700}
.sh-task{padding:.6rem 0;border-bottom:1px solid rgba(255,255,255,.07)}
.sh-task small{display:block;color:var(--muted);margin:.15rem 0}
.sh-done span{text-decoration:line-through;opacity:.65}
.sh-check{display:flex;gap:.5rem;align-items:center;cursor:pointer;min-height:36px}
.sh-check input{width:20px;height:20px;accent-color:var(--gold)}
.sh-owner,.sh-task select,.sh-mlist select,.sh-inline select{font:inherit;font-size:.9rem;padding:.35rem .5rem;border-radius:8px;border:1px solid var(--line);background:rgba(0,0,0,.25);color:var(--cream);min-height:38px}
.sh-owner{flex:1;min-width:110px}
.sh-prod{border:1px solid var(--line);border-radius:14px;padding:.8rem .9rem;margin:.6rem 0;background:rgba(0,0,0,.15)}
.sh-prod-h{display:flex;justify-content:space-between;gap:.5rem;font-size:.8rem;color:var(--muted)}
.sh-state{background:rgba(255,255,255,.08);border-radius:99px;padding:.05rem .55rem;color:var(--cream)}
.sh-st-approved .sh-state{background:#2f6b4f}.sh-st-replace .sh-state{background:#7a3a33}.sh-st-melave .sh-state,.sh-st-head .sh-state{background:var(--gold-soft)}
.sh-meta{color:var(--muted);font-size:.85rem;margin:.1rem 0 .5rem}
.sh-body{white-space:normal;line-height:1.6}
.sh-note{background:rgba(216,179,95,.1);border-inline-start:3px solid var(--gold);padding:.4rem .6rem;border-radius:6px;font-size:.9rem}
.sh-acts{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem}
.sh-acts .btn{min-height:40px}
.sh-danger{color:#f19a8f!important;border-color:rgba(241,154,143,.4)!important}
.sh-hist{margin-top:.5rem;font-size:.85rem;color:var(--muted)}
.sh-hist ul{padding-inline-start:1rem;margin:.3rem 0}
.sh-flash{animation:shFlash 1.6s ease 2}
@keyframes shFlash{50%{box-shadow:0 0 0 3px var(--gold)}}
.sh-light{display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;margin:.3rem 0;color:var(--body)}
.sh-light i{width:12px;height:12px;border-radius:50%;display:inline-block;flex:0 0 12px}
.sh-l-green i{background:#4cc38a}.sh-l-yellow i{background:#f0c24b}.sh-l-red i{background:#e5534b}.sh-l-none{opacity:.6}
.sh-lines{padding-inline-start:1.2rem;margin:.4rem 0}
.sh-lines li{margin:.3rem 0}
.sh-orig{display:block;color:var(--muted);font-size:.82rem}
.sh-meme-prev canvas{width:100%;max-width:360px;height:auto;border-radius:10px;display:block;margin:.3rem auto}
.sh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.5rem;margin-top:.5rem}
.sh-chat{display:flex;flex-direction:column;gap:.5rem;margin:.8rem 0;max-height:60vh;overflow-y:auto}
.sh-msg{background:rgba(255,255,255,.06);border-radius:12px;padding:.6rem .8rem;line-height:1.55;align-self:flex-start;max-width:92%}
.sh-mine{background:rgba(216,179,95,.18);align-self:flex-end}
.sh-dlg{border:1px solid var(--gold-soft);border-radius:16px;background:var(--ink-2,#152826);color:var(--body);padding:1.1rem;width:min(92vw,440px)}
.sh-dlg::backdrop{background:rgba(0,0,0,.6)}
.sh-dlg h3{margin:0 0 .6rem;color:var(--gold);font-family:var(--serif)}
.sh-dlg textarea,.sh-dlg input{width:100%}
.sh-toast{position:fixed;bottom:1.2rem;inset-inline:1rem;margin:auto;max-width:420px;background:var(--cream);color:var(--ink);padding:.7rem 1rem;border-radius:12px;text-align:center;z-index:50;box-shadow:0 6px 24px rgba(0,0,0,.4);font-weight:600}
/* יצירה */
.sh-stage{position:relative;max-width:420px;margin:.5rem auto}
.sh-stage canvas{width:100%;height:auto;border-radius:12px;display:block;touch-action:none;background:#000}
.sh-pal{display:flex;flex-wrap:wrap;gap:.35rem}
.sh-pal button{width:36px;height:36px;border-radius:8px;border:2px solid transparent;cursor:pointer}
.sh-pal button[aria-pressed=true]{border-color:var(--gold)}
.sh-stk button{font-size:1.4rem;background:none;border:1px solid var(--line);border-radius:8px;width:44px;height:44px;cursor:pointer}
.sh-caps button{display:block;width:100%;text-align:start;margin:.3rem 0}
.sh-tline{display:grid;gap:.25rem;padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.07)}
.sh-tline input{font:inherit;padding:.4rem .5rem;border-radius:8px;border:1px solid var(--line);background:rgba(0,0,0,.25);color:var(--cream)}
.sh-syl{font-size:.78rem;color:var(--muted)}
.sh-syl.bad{color:#f0c24b}
.sh-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:.5rem;margin:.5rem 0}
.sh-thumbs figure{margin:0;position:relative}
.sh-thumbs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}
.sh-thumbs input{width:100%;font-size:.78rem;margin-top:.2rem;padding:.25rem;border-radius:6px;border:1px solid var(--line);background:rgba(0,0,0,.3);color:var(--cream)}
.sh-thumbs button{position:absolute;top:2px;inset-inline-end:2px;background:rgba(0,0,0,.6);color:#fff;border:0;border-radius:50%;width:26px;height:26px;cursor:pointer}
.sh-chips{display:flex;flex-wrap:wrap;gap:.3rem}
.sh-chips button{font:inherit;font-size:.82rem;padding:.25rem .6rem;border-radius:99px;border:1px solid var(--line);background:transparent;color:var(--body);cursor:pointer}
.sh-chips button[aria-pressed=true]{background:#2f6b4f;border-color:#2f6b4f;color:#fff}
.sh-warn{background:rgba(240,194,75,.12);border:1px solid rgba(240,194,75,.35);border-radius:10px;padding:.5rem .7rem;font-size:.88rem}
.sh-tap{font-size:1.2rem;min-height:72px;width:100%}
.sh-cur{color:var(--gold);font-weight:700}
@media (max-width:520px){.sh-card{padding:.9rem .8rem}.sh-count b{font-size:2.2rem}}
@media (prefers-reduced-motion:reduce){.sh-flash{animation:none}}
/* קיוסק וכסף */
.sh-table th,.sh-table td{padding:.35rem .4rem;border-bottom:1px solid var(--line);text-align:center}
.sh-table th:first-child,.sh-table td:first-child{text-align:start}
.sh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;margin:.6rem 0}
.sh-tap{min-height:76px;font-size:1rem}
.sh-warn{border:1px solid #c98a2b;background:rgba(201,138,43,.12);border-radius:10px;padding:.6rem .8rem;margin:.5rem 0}
.sh-sub{display:flex;gap:.3rem;overflow-x:auto;margin-bottom:.7rem;padding-bottom:.2rem}
.sh-sub button{flex:none;font:inherit;padding:.4rem .8rem;border-radius:99px;border:1px solid var(--line);background:transparent;color:var(--body);cursor:pointer}
.sh-sub button[aria-selected=true]{background:var(--gold,#d8b35f);color:#16130f;border-color:transparent}
@media print{.sh-top,.sh-tabs,.sh-sub,.sh-row,.sh-acts{display:none!important}}
.sh-card ol{padding-inline-start:1.6rem}

/* שבת זכור: גופן רש"י ודף גמרא */
@font-face{font-family:"Noto Rashi Hebrew";font-weight:400;font-display:swap;src:url("fonts/NotoRashiHebrew-400.ttf") format("truetype")}
@font-face{font-family:"Noto Rashi Hebrew";font-weight:700;font-display:swap;src:url("fonts/NotoRashiHebrew-700.ttf") format("truetype")}
.sh-paper{background:#f6efdc;color:#1d1608;border-radius:10px;padding:.8rem;overflow-x:auto}
.sh-torah{max-width:34rem;margin:0 auto;line-height:1.7}
.sh-torah h3{text-align:center;margin:.2rem 0 .6rem}
.sh-badge{display:block;width:max-content;margin:0 auto .4rem;padding:.15rem .9rem;border:2px solid #7a2e1a;color:#7a2e1a;border-radius:99px;font-weight:800;letter-spacing:.04em}
.sh-src{font-size:.88rem;padding-inline-start:1.2rem}
.gm-spread{display:flex;flex-direction:column;align-items:center;gap:1rem}
.gm-amud{--ink:#16110a;--paper:#fbf7ea;--acc:#8a2a17;--fr:#1f5c2a;--rc:#16110a;--tc:#16110a;--dh:#16110a;--bar:transparent;--barink:#16110a;width:760px;flex:none;box-sizing:border-box;background:var(--paper);color:var(--ink);padding:14px 12px 10px;box-shadow:0 2px 10px rgba(0,0,0,.25);font-family:"Frank Ruhl Libre","David Libre","Times New Roman",serif;direction:rtl}
.gm-head{display:grid;grid-template-columns:70px 1fr 70px;align-items:end;margin-bottom:5px}
.gm-hc{display:flex;align-items:baseline;justify-content:center;gap:22px;position:relative}
.gm-a .gm-num{position:absolute;left:4px}.gm-b .gm-num{position:absolute;right:4px}
.gm-num{font-size:26px;font-weight:900;line-height:1}
.gm-run{display:flex;gap:30px;font-size:27px;font-weight:900;letter-spacing:.06em;line-height:1}
.gm-mt{font-size:10.5px;font-weight:800;text-align:center;line-height:1.1}
.gm-body{display:grid;grid-template-columns:70px 1fr 70px;gap:0}
.gm-mar{font-size:8.2px;line-height:1.25;padding-inline:3px;text-align:justify}
.gm-mar p{margin:0 0 4px}.gm-mar b{font-size:11px}
.gm-purim{margin-top:14px!important;text-align:center;font-weight:900;font-size:11px!important;color:var(--acc);border-block:1.5px solid var(--acc);padding:3px 0}
.gm-core{position:relative;display:flex;margin-inline:6px}
.gm-half{flex:1 1 50%;min-width:0;font-family:"Noto Rashi Hebrew","Frank Ruhl Libre",serif;font-size:11.2px;line-height:14.6px;text-align:justify;hyphens:none}
.gm-half>i{display:block;font-style:normal}
.gm-half:first-child{padding-left:4px}.gm-half+.gm-half{padding-right:4px}
.gm-half:first-child>i{float:left}.gm-half+.gm-half>i{float:right}
.gm-half:first-child>.gm-hole{clear:left}.gm-half+.gm-half>.gm-hole{clear:right}
.gm-strut{width:.1px}
.gm-half b{font-family:"Frank Ruhl Libre",serif;font-weight:800;font-size:11.6px}
.gm-tos .gm-e:first-of-type b,.gm-rashi .gm-e:first-of-type b{font-size:12px}
.gm-big{font-size:21px;font-weight:900;line-height:1}
.gm-gem{position:absolute;top:0;left:0;right:0;font-size:15.2px;line-height:19.4px;text-align:justify;hyphens:none}
.gm-gem>i{display:block;height:0}.gm-wr{float:right}.gm-wl{float:left}
.gm-gem b{font-weight:800}
.gm-mark{font-size:17px;font-weight:900}
.gm-frame{display:flow-root;overflow:hidden;margin:0 0 6px;padding:7px;box-sizing:border-box;border:2px solid var(--ink);outline:1px solid var(--ink);outline-offset:-6px;background:radial-gradient(circle,var(--ink) 1.1px,transparent 1.4px) 0 0/7px 7px,var(--paper);text-align:center}
.gm-frame span{display:block;background:var(--paper);border:2px double var(--ink);margin:6px;padding:6px 4px 4px;font-size:38px;font-weight:900;line-height:1;color:var(--fr);letter-spacing:.04em}
.gm-foot{margin-top:6px;border-top:1px solid var(--ink);padding-top:3px;font-size:8.6px;line-height:1.3;text-align:center}
.gm-foot b{font-size:10px;margin-inline-end:6px}
.gm-rashi{color:var(--rc)}.gm-tos{color:var(--tc)}.gm-half b{color:var(--dh)}
.gm-head{background:var(--bar);color:var(--barink);padding:3px 4px}
.gm-n{font-size:11px}
.gm-t2 .gm-amud{--paper:#fffdf6;--ink:#15110b;--rc:#14367a;--tc:#17552f;--dh:#8a1f12;--acc:#a3201b;--fr:#a3201b;--bar:linear-gradient(90deg,#17285c,#2d4b97);--barink:#ffe9a8;border:3px double #17285c;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.gm-t2 .gm-mar{background:#fbf0d2}.gm-t2 .gm-outer{background:#e7eefb}
.gm-t2 .gm-purim{background:#a3201b;color:#fff;border-color:#a3201b}
.gm-t2 .gm-mark,.gm-t2 .gm-num{color:#a3201b}
.gm-t2 .gm-frame{border-color:#17285c;outline-color:#17285c;background:radial-gradient(circle,#17285c 1.1px,transparent 1.4px) 0 0/7px 7px,#fffdf6}
.gm-t2 .gm-frame span{background:#fff4cf;border-color:#17285c}
.gm-t2 .gm-foot{border-color:#17285c;color:#17285c}
.gm-t2 .gm-head .gm-num,.gm-t2 .gm-head .gm-mt{color:#ffe9a8}
.gm-t3 .gm-amud{--paper:#fff;--ink:#000;--acc:#000;--fr:#000;--rc:#000;--tc:#000;--dh:#000;--bar:#000;--barink:#fff;border:3px solid #000;box-shadow:none;outline:1px solid #000;outline-offset:-7px;padding:16px 14px 12px}
.gm-t3 .gm-gem{font-weight:600}.gm-t3 .gm-gem b{font-weight:900}
.gm-t3 .gm-half{font-weight:700;font-size:11.4px}
.gm-t3 .gm-tos b{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:2px}
.gm-t3 .gm-mt,.gm-t3 .gm-num{color:#fff}
.gm-t3 .gm-mar{border-inline:1.5px solid #000;font-weight:700}
.gm-t3 .gm-purim{background:#000;color:#fff}
.gm-t3 .gm-frame{border:3px solid #000;outline:1.5px solid #000;background:#fff}
.gm-t3 .gm-frame span{border:3px double #000;color:#000}
.gm-t3 .gm-foot{border-top:2px solid #000}
.sh-themes{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.4rem}.sh-hint{font-size:.85rem;margin:.2rem 0 .7rem;opacity:.85}
.gm-promo{margin-top:6px;padding:4px 8px;text-align:center;font-size:17px;font-weight:900;letter-spacing:.05em;color:var(--paper);background:var(--acc);border-radius:2px}
.gm-t1 .gm-promo{background:#8a2a17}.gm-t2 .gm-promo{background:linear-gradient(90deg,#a3201b,#d4381c);color:#ffe9a8}
.gm-t3 .gm-promo{background:#000;color:#fff;border:2px solid #000;outline:1.5px solid #000;outline-offset:2px;font-size:19px}
@media print{.gm-spread{display:block}.gm-amud,.gm-amud *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.gm-amud{zoom:.93;box-shadow:none;margin:0 auto;break-after:page}.gm-amud:last-child{break-after:auto}}
.sb-book{font-family:"Frank Ruhl Libre",serif;color:#1d1608}
.sb-book h2{text-align:center;border-bottom:3px double #7a2e1a;padding-bottom:.3rem}
.sb-song{break-inside:avoid;margin:1rem 0}
.sb-tune{font-size:.8rem;opacity:.7;margin:0}
.sb-song p{margin:.1rem 0;font-size:1.1rem}
.sh-links{padding-inline-start:1.2rem;line-height:1.9}
#shPrintRoot{display:none}
@media print{
  @page{size:A4;margin:12mm}
  body.sh-printing>*:not(#shPrintRoot){display:none!important}
  #shPrintRoot{display:block!important;background:#fff;color:#000}
}

.sh-gimchips{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}.sh-gimchips small{opacity:.75}.gim-val{font-size:1.05rem;margin:.4rem 0}
