/* MOVE Content Operations Hub — brand tokens taken from MOVE's own assets:
   forest green #083F20 (ID card / brand), charcoal #1C2028 (logo), grey #D6D6D8 (card base),
   green tint scale #2B4B34 → #98A59C (ID card chevrons). */
:root {
  --brand: #083F20; --brand-2: #0E3A21; --brand-hover: #0B5129;
  --tint-1: #2B4B34; --tint-2: #455E4B; --tint-3: #5E7362; --tint-4: #79897C; --tint-5: #98A59C;
  --brand-soft: #E4EDE7; --brand-ink: #083F20;
  --ink: #1C2028; --muted: #5C6560; --faint: #8A928D;
  --bg: #EFF0EF; --surface: #FFFFFF; --sunk: #F5F6F5; --line: #D6D6D8; --line-2: #E6E7E6;
  --side-bg: #083F20; --side-ink: #E8EFEA; --side-muted: #A9BDB0; --side-active: rgba(255,255,255,.12);
  --ok: #1E7A3E; --ok-bg: #E3F2E7; --warn: #8A5A00; --warn-bg: #FBF0D9; --bad: #B42318; --bad-bg: #FDECEA;
  --info: #1D5C85; --info-bg: #E2EDF5; --vio: #6B3FA0; --vio-bg: #F0E9F8; --grey-bg: #ECEDEC;
  --c-pub: #2F8F57; --c-plan: #7A5CC7;
  --shadow: 0 1px 2px rgba(16,24,20,.06), 0 2px 8px rgba(16,24,20,.05);
  --radius: 10px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand: #3F9B66; --brand-2: #2F7F51; --brand-hover: #4DAE76; --brand-soft: #18291F; --brand-ink: #8FD3A8;
  --ink: #E6ECE8; --muted: #9DABA3; --faint: #75827A;
  --bg: #0E1411; --surface: #151D18; --sunk: #1A231E; --line: #2A3530; --line-2: #222C27;
  --side-bg: #0A1F13; --side-ink: #E3ECE6; --side-muted: #8FA597; --side-active: rgba(255,255,255,.08);
  --ok: #7FD39A; --ok-bg: #173022; --warn: #E8C26A; --warn-bg: #352A12; --bad: #FF8A7E; --bad-bg: #3A1D1B;
  --info: #8CC1E6; --info-bg: #1C3040; --vio: #C3A3EC; --vio-bg: #2E2440; --grey-bg: #222A26;
  --c-pub: #47A56E; --c-plan: #9C7FE0; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --brand: #3F9B66; --brand-2: #2F7F51; --brand-hover: #4DAE76; --brand-soft: #18291F; --brand-ink: #8FD3A8;
  --ink: #E6ECE8; --muted: #9DABA3; --faint: #75827A;
  --bg: #0E1411; --surface: #151D18; --sunk: #1A231E; --line: #2A3530; --line-2: #222C27;
  --side-bg: #0A1F13; --side-ink: #E3ECE6; --side-muted: #8FA597; --side-active: rgba(255,255,255,.08);
  --ok: #7FD39A; --ok-bg: #173022; --warn: #E8C26A; --warn-bg: #352A12; --bad: #FF8A7E; --bad-bg: #3A1D1B;
  --info: #8CC1E6; --info-bg: #1C3040; --vio: #C3A3EC; --vio-bg: #2E2440; --grey-bg: #222A26;
  --c-pub: #47A56E; --c-plan: #9C7FE0; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
h1 { font-size: 22px; font-weight: 700; } h2 { font-size: 17px; font-weight: 650; } h3 { font-size: 14.5px; font-weight: 650; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
[dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side-bg); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 22px 20px 6px; } .side .logo img { width: 128px; display: block; }
.side .logo .sub { font-size: 11px; letter-spacing: .08em; color: var(--side-muted); margin-top: 6px; text-transform: uppercase; }
.side nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side .grp { font-size: 11px; color: var(--side-muted); padding: 14px 12px 4px; letter-spacing: .04em; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--side-ink); text-decoration: none; font-weight: 500; }
.side a.nav:hover { background: var(--side-active); }
.side a.nav.on { background: #fff; color: #083F20; }
:root[data-theme="dark"] .side a.nav.on { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side a.nav.on { background: var(--brand); color: #fff; } }
.side a.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.side a.nav .badge { margin-inline-start: auto; }
.side .me { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.side .me .role { color: var(--side-muted); font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .crumb { font-weight: 650; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .menu-btn { display: none; }
.page { padding: 22px 24px 60px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---- primitives ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 7px 13px; border-radius: 8px; cursor: pointer; font-weight: 550; font-size: 13.5px; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--tint-4); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { border: 0; background: transparent; padding: 6px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; position: relative; color: var(--ink); }
.icon-btn:hover { background: var(--sunk); } .icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 2px; inset-inline-end: 0; min-width: 17px; height: 17px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 16px 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-b { padding: 14px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.sep { height: 1px; background: var(--line-2); margin: 14px 0; }

.kpi { padding: 14px 16px; } .kpi .lbl { color: var(--muted); font-size: 12.5px; } .kpi .val { font-size: 26px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .val.bad { color: var(--bad); } .kpi .hint { font-size: 12px; color: var(--faint); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--grey-bg); color: var(--muted); white-space: nowrap; line-height: 1.7; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); } .b-bad { background: var(--bad-bg); color: var(--bad); }
.b-info { background: var(--info-bg); color: var(--info); } .b-vio { background: var(--vio-bg); color: var(--vio); } .b-brand { background: var(--brand-soft); color: var(--brand-ink); }
.dotc { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* stage pipeline colours (badges + calendar chips) */
.st-idea { --sc: var(--faint); } .st-briefing { --sc: var(--info); } .st-production { --sc: var(--warn); } .st-medical_review { --sc: var(--vio); }
.st-management_approval { --sc: #B5541C; } .st-scheduled { --sc: var(--brand-ink); } .st-published { --sc: var(--ok); } .st-performance_review { --sc: #0E7065; }
.stage { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 1px 8px 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--sc) 13%, transparent); color: var(--sc); white-space: nowrap; line-height: 1.7; }
.stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc); }

/* forms */
label.f { display: block; } label.f > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; font-weight: 550; }
input.i, select.i, textarea.i { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 10px; outline: none; }
textarea.i { resize: vertical; min-height: 70px; }
input.i:focus, select.i:focus, textarea.i:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input.i:disabled, textarea.i:disabled, select.i:disabled { background: var(--sunk); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } .form-grid .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; } .checks label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: start; font-weight: 600; color: var(--muted); font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--sunk); white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--sunk); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .i { width: auto; min-width: 130px; } .toolbar .search { min-width: 220px; flex: 1; max-width: 360px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-weight: 550; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--brand); color: #fff; }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.note { border: 1px solid var(--line); border-inline-start: 4px solid var(--info); background: var(--info-bg); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.note.warn { border-inline-start-color: var(--warn); background: var(--warn-bg); } .note.bad { border-inline-start-color: var(--bad); background: var(--bad-bg); } .note.ok { border-inline-start-color: var(--ok); background: var(--ok-bg); }

/* calendar */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-head .title { font-weight: 700; font-size: 16px; min-width: 170px; text-align: center; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.month-grid .dow { padding: 6px 8px; font-size: 12px; color: var(--muted); font-weight: 600; background: var(--sunk); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.month-grid .day { min-height: 118px; padding: 5px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.month-grid .day.out { background: var(--sunk); } .month-grid .day.out .dn { color: var(--faint); }
.month-grid .day.today { box-shadow: inset 0 0 0 2px var(--brand); }
.month-grid .day.drop { background: var(--brand-soft); }
.dn { font-size: 12px; font-weight: 650; display: flex; justify-content: space-between; gap: 4px; }
.occ-tag { font-size: 10.5px; color: var(--vio); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: block; border-radius: 6px; padding: 3px 6px; font-size: 12px; line-height: 1.35; background: color-mix(in srgb, var(--sc) 10%, var(--surface)); border-inline-start: 3px solid var(--sc); cursor: pointer; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); }
.chip:hover { background: color-mix(in srgb, var(--sc) 18%, var(--surface)); }
.chip[draggable=true] { cursor: grab; }
.chip.late { box-shadow: inset 0 0 0 1px var(--bad); }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; }
.week-grid .col { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-height: 260px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.week-grid .col.today { border-color: var(--brand); } .week-grid .col.drop { background: var(--brand-soft); }
.wcard { border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; background: var(--surface); border-inline-start: 3px solid var(--sc); }
.wcard:hover { border-color: var(--tint-4); } .wcard .tt { font-weight: 600; font-size: 13px; }
.year-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.mini { padding: 10px; } .mini h3 { margin-bottom: 6px; cursor: pointer; }
.mini .mg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini .md { aspect-ratio: 1; border-radius: 3px; font-size: 9.5px; display: grid; place-items: center; background: color-mix(in srgb, var(--sc, var(--line)) 22%, transparent); color: var(--ink); cursor: pointer; }
.mini .md.blank { background: transparent; cursor: default; }
.mini .md.occ { box-shadow: inset 0 0 0 1.5px var(--vio); }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.kanban .col { background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow-y: auto; }
.kanban .col h4 { font-size: 12.5px; display: flex; justify-content: space-between; padding: 2px 4px 6px; position: sticky; top: -8px; background: var(--sunk); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }

/* post workspace */
.ws-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pipeline { display: flex; gap: 0; overflow-x: auto; margin: 14px 0 4px; }
.pipeline .s { flex: 1; min-width: 104px; text-align: center; font-size: 11.5px; color: var(--faint); padding: 8px 4px 0; border-top: 4px solid var(--line); position: relative; font-weight: 550; }
.pipeline .s.done { border-top-color: var(--tint-4); color: var(--muted); } .pipeline .s.cur { border-top-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 9px 14px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.statusline { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.statusline > div { background: var(--sunk); border-radius: 8px; padding: 8px 10px; } .statusline .k { font-size: 11.5px; color: var(--muted); }
.task { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.task:last-child { border-bottom: 0; }
.task .kind { font-weight: 650; min-width: 90px; }
.timeline { font-size: 12.5px; } .timeline > div { padding: 6px 0; border-bottom: 1px dashed var(--line-2); display: flex; gap: 8px; }
.timeline .when { color: var(--faint); min-width: 112px; }
.comment { background: var(--sunk); border-radius: 8px; padding: 8px 10px; } .comment .who { font-weight: 600; font-size: 12.5px; }

/* ideas */
.idea-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.idea { padding: 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.idea:hover { border-color: var(--tint-4); }
.idea .tt { font-weight: 650; font-size: 14.5px; } .idea .ds { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prio-high { color: var(--bad); } .prio-medium { color: var(--warn); } .prio-low { color: var(--faint); }

/* strategy */
.month-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.month-card .mh { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.month-card .mn { font-size: 12px; font-weight: 700; color: var(--brand-ink); letter-spacing: .04em; }
.month-card ul { margin: 0; padding-inline-start: 18px; } .month-card li { margin: 2px 0; }
.month-card .lbl { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* charts */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gl { stroke: var(--line-2); } .chart .ax { fill: var(--muted); font-size: 11px; }
.chart .tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--surface); font-size: 12px; padding: 6px 9px; border-radius: 6px; z-index: 90; white-space: nowrap; display: none; }
.hbar { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 58px; gap: 8px; align-items: center; font-size: 12.5px; margin: 6px 0; }
.hbar .track { height: 14px; background: var(--line-2); border-radius: 4px; overflow: hidden; } .hbar .fill { height: 100%; background: var(--c-pub); border-radius: 4px; }

/* modal, drawer, toast */
.overlay { position: fixed; inset: 0; background: rgba(10,20,14,.45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 880px; }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.modal .mb { padding: 16px 18px; } .modal .mf { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; align-items: center; }
[dir="rtl"] .toasts { transform: translateX(50%); }
.toast { background: var(--ink); color: var(--surface); padding: 9px 16px; border-radius: 8px; font-size: 13.5px; box-shadow: var(--shadow); max-width: 90vw; }
.toast.err { background: var(--bad); color: #fff; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 100vw); background: var(--surface); z-index: 70; box-shadow: -10px 0 40px rgba(0,0,0,.15); display: flex; flex-direction: column; }
.drawer .dh { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer .db { overflow-y: auto; flex: 1; }
.notif { padding: 11px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; } .notif.unread { background: var(--brand-soft); } .notif .nt { font-weight: 600; font-size: 13px; } .notif .nb { font-size: 12.5px; color: var(--muted); }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #083F20 0%, #0E3A21 55%, #1C2028 100%); }
.auth .box { background: var(--surface); width: 100%; max-width: 400px; border-radius: 14px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.auth .brandline { text-align: center; margin-bottom: 18px; } .auth .brandline img { width: 150px; }
:root[data-theme="dark"] .auth .brandline img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth .brandline img { filter: invert(1); } }

/* responsive */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-main, .g3 { grid-template-columns: 1fr; } .year-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 260px; z-index: 80; transform: translateX(-105%); transition: transform .2s; }
  [dir="rtl"] .side { transform: translateX(105%); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 70; }
  .top { padding: 10px 16px; } .top .menu-btn { display: inline-grid; }
  .page { padding: 16px 16px 60px; }
  .g2, .form-grid { grid-template-columns: 1fr; }
  .year-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .week-grid { grid-template-columns: 1fr; } .week-grid .col { min-height: 0; }
  .month-grid .day { min-height: 78px; } .chip { -webkit-line-clamp: 1; font-size: 11px; }
  .hide-sm { display: none !important; }
}
@media print { .side, .top, .toolbar, .btn { display: none !important; } .shell { display: block; } body { background: #fff; } }
