/* מערכת הנוכחות והלימוד: עיצוב עצמאי. ירוק-טורקיז רגוע, טקסט גדול כברירת מחדל, בהיר וכהה.
   כל סטטוס מוצג בצבע, בסמל ובטקסט יחד. מסכי מילוי רווחיים, לוחות וסיכומים צפופים. */
:root {
  --bg: #f2f7f6; --surface: #ffffff; --surface-2: #e9f1ef; --ink: #10201e; --muted: #4b605d; --line: #cfdcd9;
  --brand: #0f766e; --brand-ink: #ffffff; --brand-soft: #d6efea; --brand-deep: #0b5a54;
  --ok: #14632f; --ok-soft: #dcf5e4;
  --bad: #b3261e; --bad-soft: #fde4e1;
  --warn: #8a4b00; --warn-soft: #fdeccc;
  --flag: #6430b8; --flag-soft: #ece4fb;
  --acc: #1b4fb8; --acc-soft: #dbe7fc;
  --shadow: 0 1px 2px rgba(16, 32, 30, .07), 0 4px 14px rgba(16, 32, 30, .06);
  --font: "Assistant", "Segoe UI", system-ui, Arial, sans-serif;
  --r: 16px; --tap: 3.1rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1615; --surface: #142321; --surface-2: #1b2f2c; --ink: #e6f2f0; --muted: #a2bab6; --line: #2a403c;
    --brand: #4fd1c0; --brand-ink: #06231f; --brand-soft: #17433e; --brand-deep: #7fe5d8;
    --ok: #6fdc95; --ok-soft: #143a24; --bad: #ff9b92; --bad-soft: #43201d; --warn: #f5c066; --warn-soft: #42300f;
    --flag: #c9a9fa; --flag-soft: #2f2250; --acc: #8fb5ff; --acc-soft: #1a2d54; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1615; --surface: #142321; --surface-2: #1b2f2c; --ink: #e6f2f0; --muted: #a2bab6; --line: #2a403c;
  --brand: #4fd1c0; --brand-ink: #06231f; --brand-soft: #17433e; --brand-deep: #7fe5d8;
  --ok: #6fdc95; --ok-soft: #143a24; --bad: #ff9b92; --bad-soft: #43201d; --warn: #f5c066; --warn-soft: #42300f;
  --flag: #c9a9fa; --flag-soft: #2f2250; --acc: #8fb5ff; --acc-soft: #1a2d54; --shadow: none; color-scheme: dark;
}
html { font-size: 18px; }
html[data-size="m"] { font-size: 16px; }
html[data-size="xl"] { font-size: 21px; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.45; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
h1 { font-size: 1.45rem; margin: 0; } h2 { font-size: 1.15rem; margin: 0; } h3 { font-size: 1rem; margin: 0; }
.sub { color: var(--muted); font-size: .85rem; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: .6rem; }
.center { text-align: center; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }

/* מבנה: כותרת, באנרים, ניווט, תוכן */
#app { display: flex; flex-direction: column; min-height: 100vh; }
#app > header { order: 1; } #app > .banner { order: 2; } #app > .tabbar { order: 3; } #app > main { order: 4; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 70rem; margin: 0 auto; padding: .7rem 1rem; display: flex; gap: .8rem; align-items: center; }
.top h1 { font-size: 1.2rem; line-height: 1.15; }
.logo-ph, .top img { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; object-fit: contain; }
.who { text-align: start; line-height: 1.2; } .who b { display: block; } .who span { font-size: .8rem; color: var(--muted); }
.banner { background: var(--warn-soft); color: var(--warn); text-align: center; padding: .45rem 1rem; font-size: .85rem; font-weight: 600; }
main { width: 100%; max-width: 70rem; margin: 0 auto; padding: 1rem 1rem 2rem; display: grid; gap: 1rem; align-content: start; }
main:focus { outline: none; }

/* ניווט: סרגל תחתון בפלאפון, סרגל עליון במחשב */
.tabbar { display: flex; background: var(--surface); border-bottom: 1px solid var(--line); padding-inline: max(.5rem, env(safe-area-inset-right)); overflow-x: auto; }
.tabbar button { flex: 1; min-width: 5rem; border: 0; background: none; padding: .7rem .6rem; cursor: pointer; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .1rem; border-bottom: 4px solid transparent; }
.tabbar i { font-style: normal; font-size: 1.3rem; line-height: 1; }
.tabbar span { font-size: .85rem; }
.tabbar button[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
@media (max-width: 819px) {
  .tabbar { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; border-bottom: 0; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
  .tabbar button { border-bottom: 0; border-top: 4px solid transparent; padding: .45rem .3rem; }
  .tabbar button[aria-current="page"] { border-top-color: var(--brand); background: var(--brand-soft); }
  main { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .wk-desk, .wk-desk-only, .btns, .only-desk { display: none !important; }
}
@media (min-width: 820px) { .wk-phone, .only-phone { display: none !important; } }
@media (orientation: landscape) and (max-height: 520px) { .top-in { padding-block: .3rem; } .top .sub, .who span { display: none; } .tabbar button { flex-direction: row; justify-content: center; gap: .4rem; padding-block: .35rem; } }

/* כרטיסים ורכיבים */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; box-shadow: var(--shadow); display: grid; gap: .7rem; min-width: 0; }
.card.dense { padding: .6rem; gap: .5rem; }
.card.calm { background: var(--ok-soft); color: var(--ok); border-color: transparent; font-weight: 700; grid-auto-flow: column; justify-content: start; align-items: center; }
.card.bad { border-color: var(--bad); }
.empty { color: var(--muted); text-align: center; padding: 1.4rem; border: 2px dashed var(--line); border-radius: var(--r); }
.note { border-radius: 12px; padding: .6rem .8rem; font-weight: 600; }
.note.warn { background: var(--warn-soft); color: var(--warn); } .note.bad { background: var(--bad-soft); color: var(--bad); }
.btn { border: 2px solid var(--line); background: var(--surface); border-radius: 14px; min-height: var(--tap); padding: .45rem 1.1rem; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.bad { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn.sm { min-height: 2.5rem; padding: .25rem .8rem; font-size: .9rem; }
.btn.big { min-height: 3.4rem; font-size: 1.1rem; padding-inline: 1.6rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row-btn { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; text-align: start; width: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.seg > button, .seg > .radio { border: 0; background: transparent; min-height: 2.7rem; padding: .3rem 1rem; cursor: pointer; font-weight: 700; border-inline-start: 1px solid var(--line); display: inline-flex; align-items: center; }
.seg > :first-child { border-inline-start: 0; }
.seg > .on, .seg > button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.seg .radio input { position: absolute; opacity: 0; } .seg .radio:has(input:checked) { background: var(--brand); color: var(--brand-ink); } .seg .radio:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: -3px; }
.pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; min-height: 2.5rem; padding: .2rem 1rem; font-weight: 700; cursor: pointer; }
.pill.on, .pill[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.count { display: inline-block; background: var(--bad); color: #fff; border-radius: 999px; font-size: .8rem; padding: 0 .55rem; vertical-align: middle; }
.linkish { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: start; font: inherit; }

/* תגי סטטוס: צבע + סמל + טקסט */
.st { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .1rem .7rem; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.st i { font-style: normal; }
.st-p { background: var(--ok-soft); color: var(--ok); } .st-a { background: var(--bad-soft); color: var(--bad); } .st-l { background: var(--warn-soft); color: var(--warn); }
.st-s { background: var(--flag-soft); color: var(--flag); } .st-ok { background: var(--acc-soft); color: var(--acc); }
.tag { display: inline-block; min-width: 2.2rem; text-align: center; border-radius: 8px; padding: 0 .45rem; font-weight: 800; background: var(--surface-2); }
.tag.ok, .tag.k-p { background: var(--ok-soft); color: var(--ok); } .tag.warn, .tag.k-l { background: var(--warn-soft); color: var(--warn); } .tag.bad, .tag.k-a { background: var(--bad-soft); color: var(--bad); }
.tag.k-s { background: var(--flag-soft); color: var(--flag); } .tag.k-ok { background: var(--acc-soft); color: var(--acc); }
.zero { color: var(--line); }

/* טבלאות */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: start; padding: .45rem; vertical-align: middle; }
thead th { color: var(--muted); font-size: .8rem; font-weight: 700; }
.stbl td:not(:first-child), .stbl th:not(:first-child) { text-align: center; }
.stbl tbody tr { border-top: 1px solid var(--line); }
table.week { border-collapse: separate; border-spacing: .3rem; table-layout: fixed; min-width: 38rem; }
table.week thead th { text-align: center; color: var(--ink); font-size: .85rem; } table.week thead th div { color: var(--muted); font-weight: 600; }
table.week thead th.is-today { background: var(--brand-soft); border-radius: 10px; color: var(--brand-deep); }
table.week tbody th { width: 7.5rem; font-size: .9rem; }
.empty-cell { background: repeating-linear-gradient(45deg, transparent 0 6px, var(--surface-2) 6px 7px); border-radius: 10px; }
.cellstack { display: grid; gap: .25rem; }
.weeknav { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* תא יחידה: ירוק מולא, אדום לא מולא, אפור טרם/חופשה/בוטל. ביחידה שאינה שלי: רק מסגרת */
.slot { --c: var(--muted); --cs: var(--surface-2); width: 100%; min-height: 2.9rem; border: 2px solid transparent; background: var(--cs); color: var(--c); border-radius: 12px; padding: .3rem .5rem; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; font-weight: 800; font-size: .82rem; text-align: start; }
.slot .si i { font-style: normal; margin-inline-end: .25rem; }
.slot .tg { background: var(--surface); color: var(--ink); border-radius: 6px; padding: 0 .35rem; }
.slot .mini { font-size: .75rem; background: var(--surface); border-radius: 6px; padding: 0 .3rem; } .slot .mini.a { color: var(--bad); } .slot .mini.ok { color: var(--acc); }
.slot .wh { flex-basis: 100%; font-weight: 600; font-size: .75rem; color: var(--muted); }
.s-done { --c: var(--ok); --cs: var(--ok-soft); } .s-open { --c: var(--bad); --cs: var(--bad-soft); border-color: var(--bad); }
.s-future, .s-holiday, .s-cancel { --c: var(--muted); --cs: var(--surface-2); }
.slot.other { background: var(--surface); border-color: var(--c); }
.slot.compact { justify-content: center; flex-direction: column; flex-wrap: nowrap; gap: .1rem; min-height: 3.3rem; padding: .25rem .1rem; }
.slot .si.big i { font-size: 1.35rem; margin: 0; }
.slot:hover { filter: brightness(.97); }
.ucard { display: flex; gap: .7rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .9rem; }
.ucard .slot { width: auto; min-width: 8rem; justify-content: center; min-height: 3rem; }
.daychips { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; margin-bottom: .6rem; }
.daychips .pill { padding-inline: .2rem; font-size: .9rem; white-space: nowrap; }
.wk-phone { display: grid; gap: .6rem; }

/* התראות */
.alert { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .9rem; border-inline-start: 6px solid var(--muted); }
.alert.bad { border-inline-start-color: var(--bad); } .alert.warn { border-inline-start-color: var(--warn); } .alert.acc { border-inline-start-color: var(--acc); }

/* מסך מילוי: רווחי, כפתורים גדולים */
.fillhead { display: flex; gap: .8rem; align-items: center; }
.tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.hint { margin: 0; }
.shiur-h { color: var(--brand-deep); border-bottom: 3px solid var(--brand-soft); padding: .5rem .1rem .2rem; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.arow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .35rem .6rem; display: flex; align-items: center; gap: .4rem .8rem; flex-wrap: wrap; border-inline-start: 6px solid var(--ok-soft); }
.arow.k-a { border-inline-start-color: var(--bad); } .arow.k-l { border-inline-start-color: var(--warn); } .arow.k-s { border-inline-start-color: var(--flag); } .arow.k-ok { border-inline-start-color: var(--acc); }
.nm { flex: 1; min-width: 11rem; min-height: var(--tap); background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .6rem; text-align: start; font-weight: 700; font-size: 1.05rem; }
.nm .n small.ext { font-weight: 600; color: var(--muted); font-size: .72rem; border: 1px solid var(--line); border-radius: 6px; padding: 0 .3rem; margin-inline-start: .3rem; }
.btns { display: flex; gap: .35rem; flex-wrap: wrap; }
.mk { border: 2px solid var(--line); background: var(--surface-2); border-radius: 12px; min-height: 2.8rem; min-width: 4.4rem; padding: .2rem .7rem; font-weight: 700; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.mk i { font-style: normal; }
.mk.on { color: #fff; border-color: transparent; }
.mk.k-p.on { background: var(--ok); } .mk.k-a.on { background: var(--bad); } .mk.k-l.on { background: var(--warn); } .mk.k-s.on { background: var(--flag); } .mk.k-ok.on { background: var(--acc); }
:root[data-theme="dark"] .mk.on { color: #0b1514; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk.on { color: #0b1514; } }
.notebtn { border: 2px dashed var(--line); background: transparent; border-radius: 12px; min-height: 2.8rem; min-width: 2.8rem; cursor: pointer; font-weight: 700; color: var(--muted); }
.notebtn.on { border-style: solid; color: var(--ink); border-color: var(--ink); }
.note-t { flex-basis: 100%; font-size: .85rem; color: var(--muted); padding-inline: .3rem; }
.savebar { position: sticky; bottom: calc(5.4rem + env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; background: var(--surface); border: 3px solid var(--brand); border-radius: 18px; padding: .7rem .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
@media (min-width: 820px) { .savebar { bottom: 1rem; } }

/* טפסים וחלונות */
label.f, div.f { display: grid; gap: .3rem; font-weight: 700; font-size: .9rem; }
input[type=text], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  border: 2px solid var(--line); background: var(--surface); border-radius: 12px; min-height: var(--tap); padding: .5rem .8rem; width: 100%; min-width: 0; font-weight: 500;
}
textarea { min-height: 6rem; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .7rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.6rem; cursor: pointer; font-weight: 600; }
.check input { width: 1.4rem; height: 1.4rem; accent-color: var(--brand); }
.checks { display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
.hebhint { color: var(--brand-deep); font-size: .85rem; font-weight: 700; min-height: 1.2rem; }
.modal-back { position: fixed; inset: 0; background: rgba(8, 20, 18, .55); z-index: 60; display: grid; align-items: end; justify-items: center; }
@media (min-width: 700px) { .modal-back { align-items: center; } }
.modal { background: var(--bg); width: min(42rem, 100%); max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); display: grid; gap: .8rem; }
@media (min-width: 700px) { .modal { border-radius: 22px; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; position: sticky; top: -1rem; background: var(--bg); padding: .2rem 0; }
#toast-root { position: fixed; bottom: calc(6rem + env(safe-area-inset-bottom)); inset-inline: 0; display: grid; justify-items: center; gap: .5rem; z-index: 70; pointer-events: none; }
@media (min-width: 820px) { #toast-root { bottom: 1.5rem; } }
.toast { background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 12px; font-weight: 700; max-width: 90vw; }
.toast.bad { background: var(--bad); color: #fff; }
.pre { white-space: pre-wrap; font-size: .8rem; background: var(--surface-2); border-radius: 10px; padding: .6rem; max-height: 20rem; overflow: auto; }
details.card > summary { cursor: pointer; font-weight: 800; }

/* כניסה */
.login { max-width: 26rem; margin: 6vh auto 0; padding: 0 1rem; display: grid; gap: 1rem; }
.brandbig { text-align: center; display: grid; gap: .3rem; justify-items: center; }
.brandbig h1 { font-size: 1.9rem; }
.logo-big { width: 4rem; height: 4rem; border-radius: 18px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; }

/* תלמידים ולוח נוכחות */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .8rem; }
.kpi b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; } .kpi span { font-size: .8rem; color: var(--muted); }
.kpi b.ok { color: var(--ok); } .kpi b.warn { color: var(--warn); } .kpi b.bad { color: var(--bad); }
.lrow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding: .5rem 0; } .card > .lrow:first-of-type { border-top: 0; }
table.heat { width: auto; border-collapse: separate; border-spacing: 3px; }
table.heat th, table.heat td { padding: 0; text-align: center; font-size: .7rem; font-weight: 700; }
table.heat tbody th { text-align: start; padding-inline-end: .5rem; white-space: nowrap; font-size: .85rem; color: var(--ink); }
table.heat td i, .legend i { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 6px; font-style: normal; font-size: .8rem; background: var(--surface-2); color: var(--muted); }
i.c-p { background: var(--ok-soft) !important; } i.c-a { background: var(--bad) !important; color: #fff !important; } i.c-ok { background: var(--acc) !important; color: #fff !important; }
i.c-l { background: var(--warn) !important; color: #fff !important; } i.c-s { background: var(--flag) !important; color: #fff !important; }
.legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: .35rem; }
@media (prefers-reduced-motion: no-preference) { .btn, .slot, .mk, .pill { transition: background .12s, filter .12s; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .tabbar, .top, .banner, .savebar, .btn, .noprint, #toast-root { display: none !important; } body { background: #fff; color: #000; } main { padding: 0; max-width: none; } .report { box-shadow: none; border: 0; padding: 0; } .rep-tbl th, .rep-tbl td { border: 1px solid #999; } }
.rep-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .4rem; margin-bottom: .5rem; }
.report h3 { margin-top: .8rem; border-bottom: 1px solid var(--line); padding-bottom: .15rem; }
.rep-tbl th, .rep-tbl td { border: 1px solid var(--line); padding: .3rem .5rem; text-align: start; font-size: .85rem; }
.rep-tbl thead th { background: var(--surface-2); }

/* לימוד: מבחנים והערכות */
.testcard { width: 100%; text-align: start; cursor: pointer; color: inherit; font: inherit; }
.gl { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; color: var(--muted); }
.gl input { width: 5.5rem; text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.nm.static { cursor: default; }
.evcard { gap: .5rem; }
.area { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.area > span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.lv { display: flex; gap: .3rem; flex-wrap: wrap; }
.lvb { border: 2px solid var(--line); background: var(--surface-2); border-radius: 12px; min-height: 2.6rem; padding: .1rem .7rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.lvb.on { color: #fff; border-color: transparent; }
.lvb.l5, .lvb.l4 { background: var(--ok); } .lvb.l3 { background: var(--warn); } .lvb.l2, .lvb.l1 { background: var(--bad); }
:root[data-theme="dark"] .lvb.on { color: #0b1514; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lvb.on { color: #0b1514; } }
.sheet-in { width: 5rem; text-align: center; }

.arow.frozen, .stu-row.frozen { opacity: .45; filter: grayscale(1); pointer-events: none; }

.daykind { font-size: .72rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 0 .5rem; margin-top: .2rem; display: inline-block; }

/* שדות שעה: תמיד משמאל לימין (בספארי בעברית הם מוצגים הפוך) */
input[type="time"] { direction: ltr !important; text-align: right; }
input[type="time"]::-webkit-datetime-edit, input[type="time"]::-webkit-datetime-edit-fields-wrapper { direction: ltr; unicode-bidi: isolate; }

/* לוח השעות: היחידות שאני ממלא בולטות, ושל אחרים מעומעמות */
.slot.mine { min-height: 4.4rem; border: 3px solid var(--c); background: var(--cs); box-shadow: 0 3px 10px rgba(0,0,0,.14); font-size: .9rem; }
.slot.mine.s-future { --c: var(--brand); border-style: solid; background: var(--surface); }
.slot .mine-tag { flex-basis: 100%; display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; color: var(--brand-ink); background: var(--brand); border-radius: 6px; padding: 0 .4rem; width: max-content; }
.slot .mine-tag i { font-style: normal; }
.slot.compact .mine-tag { flex-basis: auto; }
.slot.other { min-height: 2.5rem; border-width: 1px; border-style: dashed; opacity: .7; font-weight: 700; font-size: .78rem; }
.slot.other:hover { opacity: 1; }
