/* מרכז עדכונים · מכון לייבעדיק */
/* Layout: sticky navy header, centered 1180px page, tile grid grouped by category */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #faf8f4; --ink: #1f2a44; --ink-soft: #5b6478;
  --line: #e6e1d6; --brand: #1f2a44; --brand-hover: #2b3a5c; --on-brand: #ffffff;
  --accent: #c8963e; --accent-soft: #f4ead8; --accent-ink: #7a5617;
  --danger: #b0473a; --danger-soft: #fbeeec; --green-soft: #e6f1ee; --green-ink: #2c5e50;
  --pill: #eef1f6; --backdrop: rgba(31,42,68,.45);
  --shadow: 0 1px 2px rgba(31,42,68,.06), 0 6px 20px rgba(31,42,68,.06);
  --radius: 14px; --font: 'Assistant', 'Segoe UI', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #141a28; --surface: #1d2537; --surface-2: #232c40; --ink: #e9ecf3; --ink-soft: #a3abbd;
  --line: #313b52; --brand: #0f1522; --brand-hover: #2b3a5c; --on-brand: #ffffff;
  --accent: #d6a654; --accent-soft: #3a3020; --accent-ink: #f0d39b;
  --danger: #e2786b; --danger-soft: #3b2522; --green-soft: #1f3530; --green-ink: #9fd2c3;
  --pill: #2a3349; --backdrop: rgba(0,0,0,.6); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #141a28; --surface: #1d2537; --surface-2: #232c40; --ink: #e9ecf3; --ink-soft: #a3abbd;
  --line: #313b52; --brand: #0f1522; --brand-hover: #2b3a5c; --on-brand: #ffffff;
  --accent: #d6a654; --accent-soft: #3a3020; --accent-ink: #f0d39b;
  --danger: #e2786b; --danger-soft: #3b2522; --green-soft: #1f3530; --green-ink: #9fd2c3;
  --pill: #2a3349; --backdrop: rgba(0,0,0,.6); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; margin: 0; direction: rtl; }
h1, h2 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.1rem; font-weight: 700; }
.muted { color: var(--ink-soft); margin: .25rem 0 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }


.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .7rem 1.5rem; background: var(--brand); color: var(--on-brand); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.brand { display: flex; align-items: center; gap: .65rem; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; padding: 0; text-align: start; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #1f2a44; font-size: 1.4rem; font-weight: 800; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { opacity: .7; font-size: .8rem; }
.topbar-date { display: flex; flex-direction: column; align-items: center; text-align: center; }
.clock { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dates { font-size: .82rem; opacity: .8; }
.topbar-user { display: flex; align-items: center; gap: .9rem; }
.admin-nav { display: flex; gap: .25rem; }
.admin-nav button { background: none; border: 0; color: inherit; font: inherit; padding: .35rem .7rem; border-radius: 8px; font-weight: 600; font-size: .92rem; opacity: .85; cursor: pointer; }
.admin-nav button:hover, .admin-nav button.active { background: rgba(255,255,255,.14); opacity: 1; }
.user-chip { display: flex; align-items: center; gap: .55rem; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); font-weight: 700; }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta small { opacity: .7; font-size: .78rem; }
.topbar .btn-ghost { color: var(--on-brand); border-color: rgba(255,255,255,.3); }

.page { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.hero { margin-bottom: 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.tile-group { margin-bottom: 2rem; }
.tile-group h2 { margin-bottom: .8rem; color: var(--ink-soft); font-size: .95rem; letter-spacing: .02em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.tile { --tile-accent: var(--accent); position: relative; display: flex; flex-direction: column; gap: .35rem; min-height: 128px; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tile-accent); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(31,42,68,.14); }
.tile-icon { font-size: 1.9rem; line-height: 1; }
.tile-title { font-weight: 700; font-size: 1.05rem; margin-top: auto; }
.tile-sub { font-size: .85rem; color: var(--ink-soft); }
.tile-disabled { cursor: default; opacity: .65; border-top-color: var(--line); }
.tile-disabled:hover { transform: none; box-shadow: var(--shadow); }
.tile .badge { position: absolute; top: .75rem; left: .75rem; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .75rem; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .35rem .65rem; font-size: .88rem; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; flex: 1; min-width: 0; }
.field > span { font-weight: 600; font-size: .9rem; }
.field input, .field select { font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.field-row { display: flex; gap: 1rem; }
.field-color { flex: 0 0 90px; }
.field-color input { padding: .2rem; height: 46px; }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.alert { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: .6rem .8rem; margin-bottom: 1rem; font-weight: 600; }
.icon-picker { display: flex; flex-wrap: wrap; gap: .35rem; }
.icon-picker button { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.icon-picker button.on { border-color: var(--accent); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: .9rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.login-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem 16px; background: radial-gradient(ellipse at top, #2b3a5c 0%, #1f2a44 60%); }
.login-card { width: 100%; max-width: 400px; padding: 2.2rem 2rem; background: var(--surface); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-card h1 { margin-top: .9rem; }
.login-card .muted { margin-bottom: 1.6rem; }
.login-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #1f2a44; font-size: 1.9rem; font-weight: 800; }
.hint { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; text-align: center; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: start; font-size: .82rem; color: var(--ink-soft); font-weight: 700; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.cell-ltr { direction: ltr; text-align: right; }
.actions { display: flex; gap: .25rem; justify-content: flex-end; white-space: nowrap; }
.row-muted { opacity: .55; }
.pill { padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--pill); white-space: nowrap; }
.pill-ADMIN { background: var(--brand); color: var(--on-brand); }
.pill-MORNING_SECRETARY { background: var(--accent-soft); color: var(--accent-ink); }
.pill-NOON_SECRETARY { background: var(--green-soft); color: var(--green-ink); }

.admin-group { padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.admin-group h2 { margin-bottom: .6rem; }
.button-list { list-style: none; margin: 0; padding: 0; }
.button-list li { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.button-list li:first-child { border-top: none; }
.swatch { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; }
.bl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bl-text small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.bl-tags { display: flex; gap: .3rem; flex-wrap: wrap; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: var(--backdrop); }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--surface); border-radius: 18px; padding: 1.6rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h2 { margin-bottom: 1.2rem; font-size: 1.3rem; }
.modal-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.toast { position: fixed; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--on-brand); padding: .6rem 1.2rem; border-radius: 10px; font-weight: 600; z-index: 60; box-shadow: var(--shadow); }

@media (max-width: 1024px) {
  .topbar { grid-template-columns: 1fr auto; padding: .6rem 1rem; }
  .topbar-date { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: .8rem; justify-content: center; flex-wrap: wrap; }
  .clock { font-size: 1.1rem; }
  .page { padding: 1.5rem 1rem 3rem; }
}
@media (max-width: 640px) {
  .brand-text small, .user-meta, .admin-nav { display: none; }
  .dates { font-size: .75rem; }
  .field-row { flex-direction: column; gap: 0; }
  .field-color { flex: auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .tile { min-height: 110px; padding: .9rem; }
  .table thead { display: none; }
  .table tr { display: block; padding: .6rem .4rem; border-bottom: 1px solid var(--line); }
  .table td { display: flex; justify-content: space-between; gap: 1rem; border: none; padding: .3rem .6rem; }
  .table td[data-label]::before { content: attr(data-label); color: var(--ink-soft); font-size: .85rem; }
  .button-list li { flex-wrap: wrap; }
  .button-list .actions { width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* ── שאלון סוף יום ── */
:root { --ok: #2e7d5b; --ok-soft: #e3f2ea; --warn: #b7791f; --warn-soft: #fbf0d9; --info: #2f5d8a; --info-soft: #e4edf6; --paper: #ffffff; --paper-ink: #1f2a44; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok: #6cc59a; --ok-soft: #1c3329; --warn: #e5b45f; --warn-soft: #3a2f1a; --info: #8fb4dc; --info-soft: #1e2c3f; } }
:root[data-theme="dark"] { --ok: #6cc59a; --ok-soft: #1c3329; --warn: #e5b45f; --warn-soft: #3a2f1a; --info: #8fb4dc; --info-soft: #1e2c3f; }

.rp-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.4rem; }
.rp-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent-soft); display: inline-block; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.rp-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { font: inherit; font-weight: 700; font-size: .92rem; border: 0; background: transparent; color: var(--ink-soft); padding: .45rem .9rem; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.rp-select { font: inherit; font-weight: 700; padding: .5rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

.rp-section { padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; }
.rp-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1rem; }
.rp-section-head h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; }
.step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .9rem; font-weight: 800; flex: none; }
.step.done { background: var(--ok); }
.rp-sub { color: var(--ink-soft); font-size: .9rem; margin: -.6rem 0 1rem; }

.att-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.att-tab { font: inherit; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; display: inline-flex; gap: .45rem; align-items: center; }
.att-tab.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.att-tab .cnt { font-size: .78rem; opacity: .8; font-variant-numeric: tabular-nums; }

.t-list { display: flex; flex-direction: column; gap: .55rem; }
.t-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); border-inline-start: 4px solid var(--line); }
.t-row.s-present { border-inline-start-color: var(--ok); }
.t-row.s-late { border-inline-start-color: var(--warn); }
.t-row.s-absent { border-inline-start-color: var(--danger); }
.t-row.s-sub { border-inline-start-color: var(--info); }
.t-row.missing { border-color: var(--danger); background: var(--danger-soft); }
.t-who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.t-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.t-name { font-weight: 700; }
.t-info { font-size: .84rem; color: var(--ink-soft); }
.status { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.status button { font: inherit; font-size: .88rem; font-weight: 700; padding: .4rem .75rem; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); cursor: pointer; min-width: 64px; }
.status button.on[data-st="present"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.status button.on[data-st="late"] { background: var(--warn); border-color: var(--warn); color: #fff; }
.status button.on[data-st="absent"] { background: var(--danger); border-color: var(--danger); color: #fff; }
.status button.on[data-st="sub"] { background: var(--info); border-color: var(--info); color: #fff; }
.t-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .2rem; }
.t-extra .field { margin: 0; flex: 1 1 180px; }
.t-extra .field > span { font-size: .8rem; color: var(--ink-soft); }
.t-extra input, .t-extra select { padding: .45rem .65rem; }

.mini-field { display: flex; flex-direction: column; gap: .3rem; }
.mini-field > span { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.mini-field input, .mini-field select, .mini-field textarea, .rp-textarea { font: inherit; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.rp-textarea { min-height: 110px; resize: vertical; }

.fault { display: grid; grid-template-columns: 1fr 1fr 2fr auto auto; gap: .6rem; align-items: end; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: .55rem; }
.urg { display: inline-flex; gap: 3px; }
.urg button { font: inherit; font-size: .85rem; font-weight: 700; padding: .5rem .7rem; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.urg button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.urg button.on.hot { background: var(--danger); border-color: var(--danger); color: #fff; }
.icon-btn { font: inherit; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--danger); cursor: pointer; font-size: 1.1rem; }
.add-btn { font: inherit; font-weight: 700; width: 100%; padding: .7rem; border-radius: 12px; border: 2px dashed var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; }
.add-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.none-note { color: var(--ink-soft); font-size: .92rem; margin: 0 0 .7rem; }

.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.counter strong { font-size: .95rem; }
.stepper { display: inline-flex; align-items: center; gap: .5rem; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.stepper span { min-width: 1.6rem; text-align: center; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.follow { display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: .6rem; align-items: end; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: .55rem; }

.rp-bar { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 15; margin: 1.5rem -.5rem 0; padding: .8rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 -4px 24px rgba(31,42,68,.12); }
.sum-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sum-chip { font-size: .85rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.c-ok { background: var(--ok-soft); color: var(--ok); }
.c-warn { background: var(--warn-soft); color: var(--warn); }
.c-bad { background: var(--danger-soft); color: var(--danger); }
.c-info { background: var(--info-soft); color: var(--info); }
.c-left { background: var(--pill); color: var(--ink-soft); }
.progress { flex: 1 1 160px; height: 8px; border-radius: 999px; background: var(--pill); overflow: hidden; min-width: 120px; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 999px; transition: width .2s; }

/* ── הדוח שנשלח (תצוגת PDF) ── */
.sent { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 700; margin-bottom: 1.4rem; flex-wrap: wrap; }
.sent .big { font-size: 1.6rem; }
.paper { background: var(--paper); color: var(--paper-ink); max-width: 780px; margin: 0 auto 1.5rem; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 18px 50px rgba(31,42,68,.18); padding: 2.4rem 2.4rem 2rem; overflow-x: auto; }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 3px solid #1f2a44; flex-wrap: wrap; }
.paper-brand { display: flex; align-items: center; gap: .7rem; }
.paper-brand .brand-mark { width: 46px; height: 46px; }
.paper h3 { margin: 0; font-size: 1.35rem; }
.paper .pm { color: #5b6478; font-size: .88rem; }
.paper-date { text-align: left; font-size: .9rem; color: #5b6478; }
.paper-date strong { color: #1f2a44; display: block; font-size: 1rem; }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1.2rem 0; }
.p-stat { border: 1px solid #e6e1d6; border-radius: 10px; padding: .6rem .7rem; text-align: center; }
.p-stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.p-stat span { font-size: .8rem; color: #5b6478; }
.p-h { font-size: 1rem; margin: 1.3rem 0 .5rem; padding-bottom: .3rem; border-bottom: 1px solid #e6e1d6; color: #1f2a44; }
.p-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.p-table th { text-align: start; background: #f6f4ef; padding: .45rem .6rem; font-size: .8rem; color: #5b6478; }
.p-table td { padding: .45rem .6rem; border-bottom: 1px solid #efebe2; }
.p-tag { font-weight: 700; font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.p-present { background: #e3f2ea; color: #2e7d5b; } .p-late { background: #fbf0d9; color: #8a5a12; }
.p-absent { background: #fbeeec; color: #b0473a; } .p-sub { background: #e4edf6; color: #2f5d8a; }
.p-note { background: #faf8f4; border-radius: 8px; padding: .7rem .9rem; font-size: .92rem; white-space: pre-wrap; }
.p-foot { margin-top: 1.6rem; padding-top: .7rem; border-top: 1px solid #e6e1d6; font-size: .78rem; color: #8a90a0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ── שאלות ── */
.qs { display: flex; flex-direction: column; gap: 1.3rem; }
.q { display: flex; flex-direction: column; gap: .55rem; padding: .2rem 0; scroll-margin: 120px; }
.q-label { display: flex; gap: .6rem; align-items: baseline; font-weight: 700; font-size: 1.02rem; cursor: default; }
.q-num { flex: none; font-size: .78rem; font-weight: 800; color: var(--ink-soft); background: var(--pill); border-radius: 6px; padding: .05rem .4rem; font-variant-numeric: tabular-nums; }
.req { color: var(--danger); }
.qi { font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; resize: vertical; }
.qi:focus, .money input:focus, .qrow input:focus, .qrow select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-hl { background: var(--accent-soft); border-radius: 14px; padding: .9rem 1rem; }
.q-hl .qi { background: var(--surface); }
.q-missing .q-label { color: var(--danger); }
.q-missing .qi, .q-missing .money, .q-missing .seg, .q-missing .checklist { box-shadow: 0 0 0 2px var(--danger); border-radius: 10px; }
.q-hint { font-size: .85rem; color: var(--ink-soft); }
.money { display: flex; align-items: center; max-width: 240px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.money span { padding: 0 .8rem; font-weight: 800; color: var(--ink-soft); border-inline-end: 1px solid var(--line); align-self: stretch; display: grid; place-items: center; }
.money input { font: inherit; font-weight: 700; font-size: 1.1rem; border: 0; background: transparent; color: var(--ink); padding: .6rem .8rem; width: 100%; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.seg.yn button { min-width: 72px; }
.seg.yn button.on.yes { background: var(--ok); color: #fff; }
.seg.yn button.on.no { background: var(--danger); color: #fff; }
.stepper.big button { width: 40px; height: 40px; }
.stepper.big span { font-size: 1.4rem; min-width: 2.2rem; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .45rem; }
.ck { position: relative; display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; font-size: .95rem; }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; font-weight: 800; font-size: .8rem; }
.ck.on { border-color: var(--ok); background: var(--ok-soft); }
.ck.on .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.ck:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.qrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .6rem; align-items: end; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.qrow input, .qrow select { font: inherit; padding: .5rem .65rem; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.t-tools { display: flex; justify-content: flex-start; }
.imp-legend { display: flex; flex-wrap: wrap; gap: .35rem; }
.imp-l { font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.imp { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.imp button { font: inherit; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); cursor: pointer; font-size: 1.05rem; }
.imp .imp-txt { display: none; font-size: .85rem; font-weight: 700; }
.imp button.on .imp-txt { display: inline; }
.t-ok, .imp button.on.t-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.t-info, .imp button.on.t-info { background: var(--info-soft); color: var(--info); border-color: var(--info); }
.t-warn, .imp button.on.t-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.t-bad, .imp button.on.t-bad { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.t-neutral, .imp button.on.t-neutral { background: var(--pill); color: var(--ink); border-color: var(--ink-soft); }
.imp button:not(.on) { background: var(--surface-2); color: var(--ink-soft); border-color: var(--line); }
.t-info.t-info { font-size: inherit; }
.t-row .t-info { font-size: .84rem; color: var(--ink-soft); background: none; border: 0; }

/* ── כרטיס מאחראית הסניף ── */
.brief { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.3rem 1.4rem; margin-bottom: 1.3rem; border-top: 5px solid var(--accent); display: flex; flex-direction: column; gap: .9rem; }
.brief-empty { border-top-color: var(--line); }
.brief-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; }
.brief-kicker { font-weight: 800; font-size: 1.05rem; }
.brief-by { font-size: .85rem; color: var(--ink-soft); }
.brief-label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: .25rem; }
.brief-hl { background: var(--accent-soft); color: var(--ink); border-radius: 12px; padding: .8rem 1rem; font-size: 1.1rem; font-weight: 700; line-height: 1.45; }
.brief-hl .brief-label { color: var(--accent-ink); }
.brief-task { border: 2px dashed var(--accent); border-radius: 12px; padding: .7rem 1rem; font-weight: 700; }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.4rem; }
.brief-grid .span2 { grid-column: 1 / -1; }
.brief-list { margin: 0; padding-inline-start: 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.brief-none { margin: 0; }
.brief-num { margin: 0; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.brief-foot { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; padding-top: .3rem; border-top: 1px solid var(--line); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.6rem; }
.cta-row.center { justify-content: center; }
.mystatus { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.mystatus .cta-row { margin: 0; }
.mystatus.attn { border-top: 5px solid var(--accent); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.sec-head h2 { margin: 0 !important; }

/* ── לוח מצב ── */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.b-head { font-weight: 800; font-size: 1.05rem; margin-bottom: .2rem; }
.b-line { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; font: inherit; font-size: .9rem; color: var(--ink-soft); background: none; border: 0; padding: .25rem .3rem; border-radius: 8px; text-align: start; }
button.b-line { cursor: pointer; }
button.b-line:hover { background: var(--surface-2); }
.b-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.b-line.ok { color: var(--ink); }
.b-line.ok .dot { background: var(--ok); }
.b-val { font-variant-numeric: tabular-nums; font-size: .85rem; }

/* ── רשימת תגובות ── */
.filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; padding: .8rem 1rem; margin: 1.5rem 0; }
.lock { font-weight: 700; padding: .45rem .8rem; border-radius: 12px; background: var(--pill); }
.day-group { margin-bottom: 1.5rem; }
.day-h { font-size: 1rem; margin: 0 0 .6rem; }
.day-h span { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.resp-list { display: flex; flex-direction: column; gap: .45rem; }
.resp-row { font: inherit; color: inherit; text-align: start; display: grid; grid-template-columns: 140px minmax(0, 180px) minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.resp-row:hover { border-color: var(--accent); }
.rtype { font-weight: 800; font-size: .85rem; padding: .2rem .6rem; border-radius: 999px; justify-self: start; }
.rtype.morning { background: var(--accent-soft); color: var(--accent-ink); }
.rtype.day { background: var(--info-soft); color: var(--info); }
.r-main { display: flex; flex-direction: column; min-width: 0; }
.r-main small { color: var(--ink-soft); }
.r-flags { display: flex; flex-wrap: wrap; gap: .3rem; }
.r-go { color: var(--ink-soft); font-size: 1.3rem; }

/* ── תגובה בתצוגת PDF ── */
.p-ack { margin: 1rem 0; padding: .55rem .8rem; border-radius: 8px; background: #fbf0d9; color: #8a5a12; font-weight: 700; font-size: .9rem; }
.p-ack.ok { background: #e3f2ea; color: #2e7d5b; }
.p-q { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: .3rem 1rem; padding: .5rem 0; border-bottom: 1px solid #efebe2; font-size: .92rem; }
.p-q.wide { grid-template-columns: 1fr; }
.p-ql { color: #5b6478; font-weight: 600; }
.p-text { white-space: pre-wrap; }
.p-empty { color: #b7bccb; }
.p-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .2rem .8rem; }
.p-check li.yes { color: #2e7d5b; }
.p-check li.no { color: #a8aebb; text-decoration: line-through; }
.p-ok { background: #e3f2ea; color: #2e7d5b; } .p-info { background: #e4edf6; color: #2f5d8a; }
.p-warn { background: #fbf0d9; color: #8a5a12; } .p-bad { background: #fbeeec; color: #b0473a; } .p-neutral { background: #eef1f6; color: #1f2a44; }

.t-sub { font-size: .84rem; color: var(--ink-soft); }
.late-box { background: var(--warn-soft); border-radius: 10px; padding: .7rem .8rem; margin-top: .2rem; }
.late-box .field > span { color: var(--ink); font-weight: 700; }
.late-box input { background: var(--surface) !important; }
.f-miss input { box-shadow: 0 0 0 2px var(--danger); }

/* ── מעבר בין סניפים ── */
.br-switch { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); border-radius: 10px; padding: .25rem .3rem .25rem .6rem; font-size: .82rem; font-weight: 700; }
.br-switch select { font: inherit; font-weight: 700; font-size: .9rem; border: 0; border-radius: 7px; padding: .3rem .5rem; background: var(--surface); color: var(--ink); }
.multi-note { background: var(--info-soft); color: var(--info); padding: .6rem .9rem; border-radius: 12px; margin: 0 0 1rem; font-size: .92rem; }
.br-tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--pill); margin: .1rem 0; white-space: nowrap; }

/* ── מרכז הקישורים ── */
.search { font: inherit; flex: 1 1 260px; min-width: 0; padding: .6rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filters .seg { flex-wrap: wrap; }
.link-group { margin-bottom: 1.6rem; }
.link-group h2 { color: var(--ink-soft); font-size: .95rem; margin-bottom: .6rem; }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .5rem; }
.link-row { display: flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .3rem .4rem .3rem .3rem; }
.link-row:hover { border-color: var(--accent); }
.link-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .35rem .4rem; text-decoration: none; color: inherit; font: inherit; background: none; border: 0; cursor: pointer; text-align: start; border-radius: 9px; }
.link-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; }
.link-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-txt small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.link-go { color: var(--ink-soft); font-size: 1.1rem; }

/* ── דשבורד ── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin: 0 0 1.4rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.kpi b { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-weight: 700; }
.kpi small { color: var(--ink-soft); font-size: .8rem; }
.kpi.k-ok b { color: var(--ok); } .kpi.k-warn b { color: var(--warn); } .kpi.k-bad b { color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.chart-card, .dash-table, .dash-attn { padding: 1.2rem 1.3rem; }
.chart-card h2, .dash-table h2, .dash-attn h2 { margin-bottom: 1rem; }
.dash-table, .dash-attn { margin-bottom: 1rem; }
.hbars { display: flex; flex-direction: column; gap: .7rem; }
.hbar { display: grid; grid-template-columns: 90px 1fr 2.2rem; gap: .6rem; align-items: center; font-size: .9rem; }
.hb-track { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--info); border-radius: 4px; min-width: 2px; }
.hb-v { font-weight: 800; font-variant-numeric: tabular-nums; }
.cols { display: flex; align-items: flex-end; gap: .35rem; height: 170px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.col-v { font-size: .78rem; font-weight: 800; height: 1rem; font-variant-numeric: tabular-nums; }
.col-track { flex: 1; width: 100%; max-width: 26px; display: flex; align-items: flex-end; }
.col-track i { display: block; width: 100%; background: var(--warn); border-radius: 4px 4px 0 0; min-height: 2px; }
.col-l { font-size: .68rem; color: var(--ink-soft); white-space: nowrap; height: 1.1rem; overflow: hidden; max-width: 100%; text-overflow: clip; }
.num-warn { color: var(--warn); font-weight: 800; }
.attn-list { display: flex; flex-direction: column; gap: .35rem; }
.attn-row { display: flex; align-items: center; gap: .7rem; text-align: start; font: inherit; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
button.attn-row { cursor: pointer; }
button.attn-row:hover { border-color: var(--accent); }
.p-row-late td { background: #fdf8ee; }
.p-muted { color: #5b6478; }
.p-scroll { overflow-x: auto; }

@media (max-width: 760px) {
  .brief-grid { grid-template-columns: 1fr; }
  .link-list { grid-template-columns: 1fr; }
  .br-switch span { display: none; }
  .col-l { font-size: .6rem; }
  .qrow { grid-template-columns: 1fr 1fr; }
  .resp-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .resp-row .r-flags { grid-column: 1 / -1; grid-row: 2; }
  .p-q { grid-template-columns: 1fr; }
  .imp button { padding: .4rem .5rem; }
}

@media (max-width: 760px) {
  .t-row { grid-template-columns: 1fr; }
  .status button { flex: 1; min-width: 0; }
  .status { display: flex; }
  .fault, .follow { grid-template-columns: 1fr 1fr; }
  .fault .wide, .follow .wide { grid-column: 1 / -1; }
  .p-stats { grid-template-columns: repeat(2, 1fr); }
  .paper { padding: 1.4rem 1.1rem; }
  .rp-section { padding: 1.1rem 1rem; }
}

/* ── עמוד בית ממורכז עם כפתורים עגולים ── */
.home { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.home-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding-top: .5rem; }
.home-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.01em; }
.hero-date { font-size: .85rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: .2rem .8rem; border-radius: 999px; }
.launch { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem .9rem; padding: 1.6rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.circ { width: 104px; display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.disc { position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: color-mix(in srgb, var(--c) 13%, var(--surface)); border: 3px solid color-mix(in srgb, var(--c) 70%, var(--surface)); transition: transform .18s ease, box-shadow .18s ease, background .18s; }
.circ:hover .disc, .circ:focus-visible .disc { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 30%, transparent); background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.circ:focus-visible { outline: none; }
.circ:focus-visible .disc { outline: 3px solid var(--accent); outline-offset: 3px; }
.lbl { font-weight: 700; font-size: .9rem; line-height: 1.25; text-align: center; text-wrap: balance; }
.c-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); font-variant-numeric: tabular-nums; }
.c-soon { position: absolute; bottom: -8px; font-size: .62rem; font-weight: 800; background: var(--pill); color: var(--ink-soft); padding: .05rem .4rem; border-radius: 999px; }
.circ.soon { cursor: default; opacity: .55; }
.circ.soon .disc { --c: #8a90a0; }
.home-today .board { margin-top: 0; }
.home-today .mystatus { margin: 0; }
.home-today .brief { margin-bottom: .9rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; border-radius: 14px; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(1.08); }
.center-txt { text-align: center; }
.home-tasks { padding: 1.2rem 1.3rem; }
.home-tasks .count, .nav-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .78rem; font-weight: 800; vertical-align: middle; }
.mini-tasks { display: flex; flex-direction: column; gap: .45rem; }
.mini-task { display: flex; align-items: center; gap: .7rem; text-align: start; font: inherit; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-inline-start: 4px solid var(--warn); border-radius: 12px; padding: .6rem .8rem; cursor: pointer; }
.mini-task.old { border-inline-start-color: var(--danger); }
.mini-task:hover { border-color: var(--accent); }
.mt-ic { font-size: 1.3rem; }
.mt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-txt small { color: var(--ink-soft); }
.all-clear { text-align: center; font-weight: 700; color: var(--ok); margin: .5rem 0; }

/* ── לוח השיאים ── */
.records { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%, var(--surface) 55%); border: 1px solid var(--line); border-radius: 28px; padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.4rem; }
.rec-head { text-align: center; }
.rec-head h2 { font-size: 1.5rem; }
.rec-podium-wrap h3 { text-align: center; font-size: 1rem; margin: 0 0 .8rem; color: var(--ink-soft); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: end; max-width: 520px; margin: 0 auto; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; min-width: 0; }
.pod strong { font-size: .95rem; line-height: 1.2; }
.medal { font-size: 2rem; }
.pod-num { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pod-lbl { font-size: .75rem; color: var(--ink-soft); }
.pod-step { width: 100%; margin-top: .4rem; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--on-brand); background: var(--brand); }
.p1 .pod-step { height: 92px; background: var(--accent); color: #1f2a44; }
.p2 .pod-step { height: 64px; }
.p3 .pod-step { height: 44px; opacity: .8; }
.you { font-size: .7rem; font-weight: 800; background: var(--ok); color: #fff; padding: .05rem .45rem; border-radius: 999px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.rec { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.rec-ic { font-size: 1.7rem; }
.rec-t { font-size: .8rem; font-weight: 800; letter-spacing: .03em; color: var(--ink-soft); }
.rec-v { font-size: 1.4rem; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.rec small { color: var(--ink-soft); font-size: .78rem; }

/* ── משימות ── */
.task-tabs { margin-bottom: 1.2rem; flex-wrap: wrap; }
.task-tabs .cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pill); font-size: .75rem; }
.task-list { display: flex; flex-direction: column; gap: .8rem; }
.task { background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--warn); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem; }
.task.old { border-inline-start-color: var(--danger); }
.task.done { border-inline-start-color: var(--ok); box-shadow: none; }
.task-top { display: flex; align-items: flex-start; gap: .8rem; }
.task-ic { font-size: 1.5rem; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.task-main { flex: 1; min-width: 0; }
.task-main h3 { margin: 0 0 .3rem; font-size: 1.02rem; line-height: 1.35; }
.task-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; font-size: .85rem; color: var(--ink-soft); }
.task-meta strong { color: var(--ink); }
.age-old { color: var(--danger); font-weight: 700; }
.age-ok { color: var(--ok); font-weight: 700; }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--info); text-decoration: underline; cursor: pointer; }
.task-act { display: flex; gap: .4rem; flex: none; }
.t-panel { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; padding: .8rem; border-radius: 12px; background: var(--ok-soft); }
.t-panel.fwd { background: var(--info-soft); }
.t-panel .mini-field { flex: 1 1 200px; }
.t-panel-act { display: flex; gap: .4rem; }
.trail { list-style: none; margin: 0; padding: 0 .3rem 0 0; display: flex; flex-direction: column; gap: .3rem; border-inline-start: 2px solid var(--line); margin-inline-start: 1.3rem; padding-inline-start: .9rem; }
.trail li { position: relative; display: flex; flex-wrap: wrap; gap: .2rem .6rem; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); }
.trail li strong { color: var(--ink); }
.trail time { font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-dot { position: absolute; inset-inline-start: calc(-.9rem - 6px); top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 2px solid var(--surface); }
.trail li:last-child .tr-dot { background: var(--accent); }
.task.done .trail li:last-child .tr-dot { background: var(--ok); }

@media (max-width: 640px) {
  .launch { gap: 1.2rem .3rem; padding: 1.2rem .5rem; border-radius: 22px; }
  .circ { width: 84px; }
  .disc { width: 62px; height: 62px; font-size: 1.6rem; }
  .lbl { font-size: .8rem; }
  .podium { gap: .4rem; }
  .medal { font-size: 1.6rem; } .pod-num { font-size: 1.4rem; }
  .task-top { flex-wrap: wrap; }
  .task-act { width: 100%; }
  .task-act .btn { flex: 1; }
}

/* ── תוספות לגרסה החיה ── */
.t-group { margin: .9rem 0 .5rem; font-size: .9rem; font-weight: 800; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.t-group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.p-sec td { background: #eef1f6; font-weight: 800; font-size: .82rem; color: #1f2a44; }
.sync-report { padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.sync-row { padding: .55rem .8rem; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: .4rem; }
.sync-row.ok { background: var(--ok-soft); }
.sync-row.bad { background: var(--danger-soft); }
.splash { text-align: center; padding: 0 16px; }

[hidden] { display: none !important; }

/* ── צ'אט ── */
.page-chat { max-width: 1180px; padding-bottom: 1.5rem; }
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 150px); min-height: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.chat-list { border-inline-end: 1px solid var(--line); overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .2rem; background: var(--surface-2); }
.chat-list .search { flex: none; margin-bottom: .4rem; background: var(--surface); }
.chat-list h3 { font-size: .75rem; font-weight: 800; letter-spacing: .05em; color: var(--ink-soft); margin: .8rem .4rem .3rem; }
.chan { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: start; font: inherit; color: inherit; background: none; border: 0; border-radius: 12px; padding: .55rem .6rem; cursor: pointer; }
.chan:hover { background: var(--surface); }
.chan.on { background: var(--surface); box-shadow: var(--shadow); }
.chan-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.chan-ava.person { background: var(--info-soft); color: var(--info); font-size: 1rem; }
.chan-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chan-txt small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan.unread .chan-txt strong, .chan.unread .chan-txt small { color: var(--ink); font-weight: 800; }
.chan-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; font-size: .72rem; color: var(--ink-soft); }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.chat-head div { display: flex; flex-direction: column; line-height: 1.25; }
.chat-head small { color: var(--ink-soft); font-size: .8rem; }
.chat-back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; background: var(--bg); }
.day-sep { text-align: center; margin: .8rem 0 .4rem; }
.day-sep span { font-size: .75rem; font-weight: 700; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: .15rem .7rem; border-radius: 999px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-name { font-size: .75rem; font-weight: 700; color: var(--accent-ink); margin: .3rem .5rem .1rem; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: .5rem .8rem .35rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.msg.mine .bubble { background: var(--brand); color: var(--on-brand); border-color: var(--brand); border-radius: 16px 16px 4px 16px; }
.bubble time { display: block; font-size: .68rem; opacity: .65; margin-top: .15rem; text-align: end; font-variant-numeric: tabular-nums; }
.chat-first { text-align: center; color: var(--ink-soft); margin: auto; }
.composer { display: flex; gap: .5rem; align-items: flex-end; padding: .7rem .8rem; border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { flex: 1; font: inherit; resize: none; padding: .6rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); max-height: 160px; }
.composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-empty { margin: auto; text-align: center; color: var(--ink-soft); }
.chat-empty span { font-size: 3rem; }
@media (max-width: 760px) {
  .page-chat { padding: .6rem .5rem; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 140px); border-radius: 16px; }
  .chat.has-chan .chat-list { display: none; }
  .chat:not(.has-chan) .chat-pane { display: none; }
  .chat-back { display: inline-flex; }
  .msg { max-width: 88%; }
}

/* ── מרכז עדכונים ── */
.ann-banner { display: flex; flex-direction: column; gap: .7rem; }
.ann-banner .sec-head { margin-bottom: 0; }
.ann-list { display: flex; flex-direction: column; gap: .8rem; }
.ann { background: var(--surface); border: 1px solid var(--line); border-inline-start: 6px solid var(--info); border-radius: 16px; padding: 1rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .45rem; }
.ann-important { border-inline-start-color: var(--accent); }
.ann-urgent { border-inline-start-color: var(--danger); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.ann.is-read { box-shadow: none; opacity: .85; }
.ann h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.ann-top { display: flex; flex-wrap: wrap; gap: .3rem .8rem; justify-content: space-between; align-items: center; }
.ann-lvl { font-size: .8rem; font-weight: 800; }
.ann-urgent .ann-lvl { color: var(--danger); }
.ann-meta { font-size: .8rem; color: var(--ink-soft); }
.ann-body { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.ann-foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.ann-readers { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .8rem; border-radius: 10px; background: var(--surface-2); font-size: .9rem; }
.ann-readers strong { margin-inline-end: .4rem; }
.br-tag.warn { background: var(--warn-soft); color: var(--warn); }

/* ── שונות ── */
.user-chip { font: inherit; color: inherit; background: none; border: 0; padding: .2rem .4rem; border-radius: 10px; cursor: pointer; text-align: start; }
.user-chip:hover { background: rgba(255,255,255,.1); }
.load-err { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* סרגל עליון במסכי מחשב נייד: התאריך עובר לשורה שנייה */
@media (max-width: 1280px) {
  .topbar { grid-template-columns: 1fr auto; padding: .6rem 1rem; }
  .topbar-date { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: .8rem; justify-content: center; flex-wrap: wrap; }
  .clock { font-size: 1.05rem; }
}

/* ── עורך שאלונים ── */
.form-cards { display: flex; flex-direction: column; gap: .7rem; }
.form-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; flex-wrap: wrap; }
.fc-ic { font-size: 2rem; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.fc-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: .1rem; }
.fc-main h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.fc-main small { color: var(--ink-soft); }
.fc-act { display: flex; gap: .4rem; }
.fe-settings { padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.fe-sec { padding: 1rem 1.2rem; margin-bottom: 1rem; }
.fe-sec-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.fe-sec-title { flex: 1; min-width: 180px; font: inherit; font-weight: 800; font-size: 1.1rem; padding: .4rem .6rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); }
.fe-sec-title:hover { border-color: var(--line); }
.fe-sec-title:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.qe-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.qe { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.qe-hidden { opacity: .55; }
.qe-num { flex: none; width: 26px; text-align: center; font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.qe-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.qe-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.qe-badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.qb { font-size: .74rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: var(--pill); color: var(--ink-soft); }
.qb.b-req { background: var(--danger-soft); color: var(--danger); }
.qb.b-cond { background: var(--info-soft); color: var(--info); }
.qb.b-task { background: var(--warn-soft); color: var(--warn); }
.qb.b-sys { background: var(--accent-soft); color: var(--accent-ink); }
.qb.b-hid { background: var(--surface); border: 1px dashed var(--line); }
.modal-wide { max-width: 640px; }
.qm-box { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem .2rem; margin: 0 0 1rem; }
.qm-box legend { font-weight: 800; font-size: .9rem; padding: 0 .4rem; }
.preview-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; background: var(--info-soft); color: var(--info); font-weight: 700; padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.opt { font: inherit; font-weight: 700; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.opt.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.rtype { background: var(--pill); color: var(--ink); }
@media (max-width: 640px) {
  .qe { flex-wrap: wrap; }
  .qe .actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

/* עדכונים שפרסמתי – מעקב קריאה */
.ann-track { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; border-top: 5px solid var(--accent); }
.ann-track .sec-head { margin-bottom: 0; }
.at-row { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .8rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.at-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; }
.at-count { font-weight: 800; color: var(--warn); font-variant-numeric: tabular-nums; white-space: nowrap; }
.at-row .progress { flex: none; width: 100%; }
.at-missing { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }

/* ═══ שורטס מהערוץ ═══ */
.shorts { max-width: 880px; margin: -2.5rem auto 3rem; padding: 1.2rem 1.3rem; }
@media (max-width: 920px) { .shorts { margin-inline: 16px; } }
.sh-stage { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.sh-frame { width: min(300px, 72vw); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #0d1220; box-shadow: var(--shadow); }
.sh-frame iframe, .sh-frame #sh-player { width: 100%; height: 100%; border: 0; display: block; }
.sh-nav { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sh-nav:hover { background: var(--surface-2); }
.sh-hint { text-align: center; font-size: .85rem; margin: .6rem 0 .4rem; }
.sh-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem .1rem .5rem; scrollbar-width: thin; }
.sh-thumb { flex: none; width: 64px; aspect-ratio: 9 / 16; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-thumb.on, .sh-thumb:hover { opacity: 1; border-color: var(--accent); }

/* ═══ לוגו ═══ */
.brand-logo { height: 30px; width: auto; display: block; }
.login-logo { display: flex; justify-content: center; }
.login-logo .logo-img { width: 190px; max-width: 70%; height: auto; }
.login-card .login-logo { margin-bottom: .4rem; }
.login-card h1 { text-align: center; }
.login-card > .muted { text-align: center; }
.splash .login-logo .logo-img { width: 220px; animation: logo-breathe 1.6s ease-in-out infinite; }
.splash-logo { width: 220px; max-width: 70%; }
@keyframes logo-breathe { 50% { opacity: .55; } }
.paper-logo { flex: none; } .paper-logo .logo-img { width: 92px; height: auto; }
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .on-light { display: none; } :root:not([data-theme="light"]) .on-dark { display: block; } }
:root[data-theme="dark"] .on-light { display: none; } :root[data-theme="dark"] .on-dark { display: block; }
@media print { .on-dark { display: none !important; } .on-light { display: block !important; } }

/* ═══ בקרה · הרשאות · ניתוב משימות · העלאת עובדים ═══ */
.pill-CONTROL { background: var(--info-soft, #e8eef6); color: var(--info, #2f5d8a); }
.perm-table th small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .8rem; }
.perm-table td small, .rt-table td small { display: block; font-size: .82rem; line-height: 1.35; }
.perm-table th:not(:first-child), .perm-table .pc { text-align: center; width: 120px; }
.perm-group td { background: var(--surface-2); font-weight: 800; font-size: .9rem; color: var(--ink-soft); padding-block: .5rem; }
.perm-on { color: var(--ok, #3e7c6b); font-weight: 800; }
.perm-ck { display: inline-grid; place-items: center; cursor: pointer; }
.perm-ck input { width: 22px; height: 22px; accent-color: var(--brand); cursor: pointer; }
.rt-h { margin: 1.6rem 0 .8rem; font-size: 1.15rem; }
.rt-form { margin-bottom: 1rem; }
.rt-form h2 { font-size: 1.05rem; }
.rt-n { font-size: .85rem; font-weight: 400; }
.rt-q { margin-top: .15rem; }
.rt-table select { min-width: 160px; max-width: 100%; }
.rt-fb { color: var(--warn, #b07a1e); margin-top: .25rem; }
.bulk-modal { max-width: min(980px, calc(100vw - 32px)); }
.bulk-table td { font-size: .9rem; padding: .5rem .7rem; }
.row-bad td { background: var(--danger-soft); }
@media (max-width: 640px) {
  .perm-table th:not(:first-child), .perm-table .pc { width: auto; text-align: start; }
  .perm-table thead { display: none; }
  .perm-group td { display: block; }
  .rt-table select { min-width: 0; width: 100%; }
}
