
:root{--ink:#17202b;--muted:#5d6b7a;--line:#dfe4ea;--bg:#f4f6f9;--card:#fff;--navy:#1f3a5f;--blue:#2563eb;--green:#1e8e4f;--greenbg:#e5f6ec;--amber:#b45309;--amberbg:#fff4d6;--flag:#ffe58a;--auto:#ffd2a8;--red:#c0392b}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans Hebrew","Arial Hebrew",Arial,sans-serif;-webkit-text-size-adjust:100%}
a{color:var(--blue)}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem .9rem;padding-top:max(.55rem,env(safe-area-inset-top));background:var(--navy);color:#fff}
.brand{display:flex;align-items:center;gap:.55rem;color:#fff;text-decoration:none;font-weight:700;font-size:1.05rem}
.brand small{display:block;font-weight:400;font-size:.72rem;opacity:.8}
.brand .crest{height:44px;width:auto;flex:0 0 auto;display:block}
@media (min-width:761px){.brand .crest{height:54px}}
.login-crest{display:block;height:104px;width:auto;margin:.2rem auto .6rem}
main{max-width:1200px;margin:0 auto;padding:.9rem .75rem 4rem}
.pad{padding:2rem 1rem}.center{text-align:center}.muted{color:var(--muted)}.small{font-size:.85rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1rem;margin:0 0 .9rem;box-shadow:0 1px 2px rgba(0,0,0,.03)}
h1{font-size:1.3rem;margin:.2rem 0 .7rem}h2{font-size:1.1rem;margin:.2rem 0 .6rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:9px;padding:.6rem 1rem;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;min-height:44px}
.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn-green{background:var(--green);border-color:var(--green);color:#fff}
.btn-sm{padding:.35rem .75rem;min-height:36px;font-size:.92rem}
.btn:disabled{opacity:.55;cursor:default}
.btn-wa{background:#25d366;border-color:#25d366;color:#fff}
input,select,textarea{font:inherit;border:1px solid #c8d0da;border-radius:9px;padding:.6rem .7rem;background:#fff;min-height:44px;width:100%}
label{display:block;font-weight:600;margin:.8rem 0 .3rem}
.row{display:flex;gap:.6rem;flex-wrap:wrap;align-items:flex-end}.row>*{flex:1 1 140px}
.seg{display:flex;border:1px solid #c8d0da;border-radius:10px;overflow:hidden;background:#fff}
.seg button{flex:1;border:0;background:transparent;padding:.6rem .4rem;font:inherit;font-weight:600;cursor:pointer;min-height:44px;color:var(--ink)}
.seg button+button{border-left:1px solid #c8d0da}
.seg button.on{background:var(--navy);color:#fff}
.err{color:var(--red);font-weight:600;margin:.6rem 0}
.ok{background:var(--greenbg);border:1px solid #b6e2c6;border-radius:12px;padding:1rem}
.pill{display:inline-block;border-radius:99px;padding:.12rem .55rem;font-size:.78rem;font-weight:700;white-space:nowrap}
.st-uploaded{background:#e8eefc;color:#1d4ed8}.st-entered{background:var(--amberbg);color:var(--amber)}.st-checked{background:var(--greenbg);color:var(--green)}
.filters{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-bottom:.8rem}
.filters select{width:auto;min-width:9rem}
.filters .seg{min-width:200px}
.classes{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:.7rem}
.cls{background:#fff;border:1px solid var(--line);border-radius:12px;padding:.6rem .7rem}
.cls-h{display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:1.05rem;margin-bottom:.35rem}
.cls-b{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.slot{background:#f8fafc;border:1px solid #eef1f5;border-radius:9px;padding:.4rem .5rem;min-height:64px}
.slot-h{display:flex;flex-wrap:wrap;gap:.2rem .5rem;justify-content:space-between;align-items:center;font-size:.78rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.02em;margin-bottom:.25rem}
.slot-h a{white-space:nowrap;font-size:.8rem;text-transform:none;letter-spacing:0;text-decoration:none;font-weight:700}
.up{display:flex;justify-content:space-between;align-items:center;gap:.4rem;padding:.3rem 0;border-top:1px dashed #e3e8ee;text-decoration:none;color:inherit;font-size:.88rem}
.up:first-of-type{border-top:0}
.empty{font-size:.82rem;color:#9aa5b1}
.drop{border:2px dashed #b9c4d2;border-radius:12px;padding:1.2rem;text-align:center;background:#fafcff;cursor:pointer}
.drop.has{border-color:var(--green);background:var(--greenbg)}
.filelist{font-size:.9rem;margin:.5rem 0 0;padding-left:1.2rem;text-align:left}
.progress{height:10px;background:#e6ebf1;border-radius:99px;overflow:hidden;margin:.8rem 0 .2rem}.progress>div{height:100%;width:0;background:var(--blue);transition:width .2s}
.kv{display:flex;flex-wrap:wrap;gap:.4rem 1rem;font-size:.92rem;color:var(--muted)}
.kv b{color:var(--ink)}
.legend{display:flex;flex-wrap:wrap;gap:.4rem .9rem;font-size:.85rem;color:var(--muted);margin:.4rem 0}
.sw{display:inline-block;width:1.1em;height:1.1em;border-radius:4px;vertical-align:-.2em;margin-right:.25em;border:1px solid rgba(0,0,0,.15)}
.toolbar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between;margin:.6rem 0}
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:12px;background:#fff}
table.rep{border-collapse:separate;border-spacing:0;width:100%;font-size:.95rem}
table.rep th,table.rep td{border-bottom:1px solid #edf0f4;padding:.35rem .4rem;vertical-align:middle;text-align:center}
table.rep thead th{position:sticky;top:0;background:#f3f6fa;z-index:2;font-size:.82rem;line-height:1.2}
table.rep th.colh{border-left:2px solid #d5dce5}
table.rep td.sc{border-left:2px solid #d5dce5;padding:.2rem .25rem}
table.rep td.en{padding:.2rem .45rem}
table.rep .stu{position:sticky;left:0;background:#fff;z-index:1;text-align:left;min-width:8.5rem;max-width:11rem;box-shadow:1px 0 0 #edf0f4}
table.rep thead .stu{background:#f3f6fa;z-index:3}
table.rep tr.done td{background:#f3fbf6}
table.rep tr.done .stu{background:#eaf7ef}
.stu .nm{font-weight:700;line-height:1.15}.stu .he{direction:rtl;unicode-bidi:isolate;color:var(--muted);font-size:.85rem}
.stu button{all:unset;cursor:pointer;display:block}
.stu .rowlink{font-size:.75rem;color:var(--blue);font-weight:600}
.mark{display:inline-block;min-width:2.4em;padding:.2rem .35rem;border-radius:6px;font-size:1.25rem;font-weight:700;direction:ltr;unicode-bidi:isolate;font-family:"Arial Hebrew","Noto Sans Hebrew",Arial,sans-serif;line-height:1.2}
.mark.blank{color:#b7c0ca;font-weight:400;font-size:1rem}
.mark.auto{background:var(--auto)}
.mark.flag{background:var(--flag);box-shadow:inset 0 0 0 2px #e0b400}
.fnote{display:block;font-size:.7rem;color:var(--amber);max-width:9rem;margin:.1rem auto 0;line-height:1.15}
.crop{position:relative;overflow:hidden;background:#eee;border-radius:4px;display:block}
.crop img{position:absolute;max-width:none;display:block;user-select:none;-webkit-user-drag:none}
.cell-crop{width:74px;margin:0 auto;cursor:zoom-in;box-shadow:0 0 0 1px #d8dee6}
.strip{width:100%;cursor:zoom-in;box-shadow:0 0 0 1px #d8dee6}
tr.striprow td{background:#fbfcfe;padding:.4rem .5rem .7rem;text-align:left}
.chk{width:30px;height:30px;accent-color:var(--green);cursor:pointer;min-height:0}
.comment-text{direction:rtl;unicode-bidi:plaintext;text-align:start;font-size:1.05rem;white-space:pre-wrap;padding:.3rem .5rem;border-radius:6px;min-width:12rem}
.comment-text.flag{background:var(--flag)}
.comment-text.blank{color:#b7c0ca}
td.ccrop{min-width:220px;width:45%}
.pages{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:.8rem;align-items:start}
.pageimg{width:100%;border:1px solid var(--line);border-radius:8px;display:block;background:#fff}
.sticky{position:sticky;top:64px}
.pagecard{margin-bottom:1rem}
.note{background:#f8fafc;border-left:4px solid var(--navy);padding:.5rem .7rem;border-radius:6px;font-size:.92rem;white-space:pre-wrap}
.zoom{position:fixed;inset:0;background:rgba(10,15,25,.88);z-index:50;display:flex;align-items:center;justify-content:center;padding:1rem}
.zoom[hidden]{display:none}
.zoom-inner{width:min(1100px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:10px;padding:.5rem}
.zoom-inner .crop{width:100%}
.zoom-close{position:fixed;top:max(10px,env(safe-area-inset-top));right:12px;width:46px;height:46px;border-radius:50%;border:0;background:#fff;font-size:1.8rem;line-height:1;cursor:pointer}
.login{max-width:380px;margin:12vh auto 0}
.hide{display:none!important}
@media (max-width:760px){
  main{padding:.6rem .5rem 4rem}
  .pages{grid-template-columns:1fr}
  .sticky{position:static}
  .classes{grid-template-columns:1fr}
  .cell-crop{width:62px}
  table.rep .stu{min-width:7rem;max-width:8.5rem}
  .mark{font-size:1.15rem;min-width:2.1em}
  h1{font-size:1.15rem}
}
.stuin{display:flex;align-items:center;gap:.5rem}
.stuin .chk{flex:0 0 auto}
.fnote bdi,.note bdi{font-weight:700}
table.rep td.cpair{text-align:right;padding:.35rem .5rem .5rem}
.cscan{overflow-x:auto;direction:rtl;-webkit-overflow-scrolling:touch;max-width:min(940px,calc(100vw - 15rem));margin-left:auto}
.cstrip{--h:58px;height:var(--h);cursor:zoom-in;box-shadow:0 0 0 1px #d8dee6;display:inline-block;max-width:none}
.cpair .comment-text{display:inline-block;margin-top:.35rem;font-size:1.2rem;min-width:0}
.cflag{margin:.15rem 0 0 auto;max-width:none;text-align:right}
.mark[data-note]{cursor:pointer}
@media (max-width:760px){
  .fnote{display:none}
  .cflag{display:block}
  .cstrip{--h:44px}
  .cscan{max-width:calc(100vw - 10.5rem)}
  .stu .nm{font-size:.92rem}
  .mark[data-note]::after{content:"?";font-size:.6em;vertical-align:super;margin-left:1px;color:#8a6d00}
}

/* departments (Hebrew / English), 2026-10-20 */
.seg.dept{margin-bottom:.8rem;font-size:1.05rem}
.seg.dept button{padding:.7rem .4rem}
.seg .cnt{display:inline-block;min-width:1.4em;padding:0 .35em;margin-left:.3em;border-radius:999px;background:#e6ebf1;color:var(--navy);font-size:.8rem;line-height:1.4em}
.seg button.on .cnt{background:rgba(255,255,255,.25);color:#fff}
.dept-h{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;margin:.1rem 0 .4rem}
.dept-h h2{margin:0;font-size:1.15rem}
.dept-h a{font-weight:700;white-space:nowrap;text-decoration:none}
.tag{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:.1rem .45rem;border-radius:6px;background:#e6ebf1;color:var(--navy)}
.tag-english{background:#e7f4ec;color:#1d6b3c}
.addrow{display:flex;gap:.5rem;align-items:stretch}
.addrow input{flex:1;min-width:0;margin:0}
.addrow .btn{white-space:nowrap}
.emptycard{max-width:520px}
.emptycard h2{margin-top:0}
.clist{list-style:none;padding:0;margin:.8rem 0 .4rem}
.clist li{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem 0;border-top:1px solid var(--line)}
.clist li:first-child{border-top:0}
.clist .cn{font-weight:700;overflow-wrap:anywhere}
.clist .cb{display:flex;gap:.35rem;flex-shrink:0}
.btn.danger{color:var(--red)}

/* School building picture in the top bar, after the name — added Oct 23 2026 (David: "put it on banner") */
.brand .bldg{height:44px;width:auto;flex:0 0 auto;display:block;margin-left:.2rem;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
@media (min-width:761px){.brand .bldg{height:56px}}
@media (max-width:480px){.brand .bldg{height:34px}}
@media (max-width:360px){.brand .bldg{height:28px}}
