/* Pubzuno design system — Create. Schedule. Grow. */
:root {
  --primary: #6C4DFF; --primary-600: #5a3df0; --primary-50: #f0ecff; --primary-100: #e2dbff;
  --teal: #21C7B7; --teal-50: #e3f8f6; --orange: #FF9B54; --orange-50: #fff1e6;
  --navy: #18243B; --navy-2: #2a3752; --snow: #F8FAFC; --white: #fff;
  --text: #18243B; --muted: #64708a; --line: #e5e9f2; --line-2: #eef1f7;
  --danger: #e5484d; --danger-50: #fdecec; --warn: #d98a16; --warn-50: #fff6e5; --ok: #17a398;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(24,36,59,.06), 0 6px 24px rgba(24,36,59,.06);
  --shadow-lg: 0 20px 60px rgba(24,36,59,.18);
  --font: "Segoe UI", "Noto Sans Arabic", "Tahoma", system-ui, -apple-system, Arial, sans-serif;
  --sidebar: 252px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--snow); color: var(--text); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; color: var(--navy); }
h1 { font-size: 1.55rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: .9em; direction: ltr; unicode-bidi: embed; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 2px; border-radius: 6px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #cfd6e6; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.sidebar .brand img { width: 150px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #cfd6e6; font-weight: 500; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(108,77,255,.35); }
.sidebar nav a .count { margin-inline-start: auto; background: var(--orange); color: var(--navy); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.sidebar .section { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7d8aa6; padding: 12px 12px 4px; }
.sidebar .ico { width: 18px; height: 18px; flex: none; opacity: .9; }
.project-switch { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; color: #fff; width: 100%; font: inherit; text-align: start; }
.project-switch .dot { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; }
.project-switch small { color: #9aa6c0; display: block; font-size: 11px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(248,250,252,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 24px; display: flex; align-items: center; gap: 12px; }
.topbar .title { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.topbar .spacer { flex: 1; }
.content { padding: 24px; max-width: 1400px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-nav { display: none; }

/* ---------- components ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.card.flat { box-shadow: none; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .actions { margin-inline-start: auto; display: flex; gap: 6px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.kpi { padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 12.5px; }
.kpi .value { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.kpi .delta { font-size: 12px; font-weight: 600; }
.kpi .delta.up { color: var(--ok); } .kpi .delta.down { color: var(--danger); }
.kpi.accent { background: linear-gradient(135deg, var(--primary), #8b72ff); color: #fff; border: 0; }
.kpi.accent .label, .kpi.accent .value { color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .15s; text-decoration: none !important; }
.btn:hover { border-color: #cdd4e3; background: #fbfcfe; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(108,77,255,.3); }
.btn.primary:hover { background: var(--primary-600); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn.danger { color: var(--danger); border-color: #f3c2c4; }
.btn.danger:hover { background: var(--danger-50); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 7px; width: 36px; height: 36px; }
.btn .ico { width: 16px; height: 16px; }
.btn.loading { pointer-events: none; opacity: .7; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

label.field { display: block; margin-bottom: 12px; }
label.field > span, .field-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--navy); }
label.field > small { display: block; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font: inherit; color: var(--text); transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
input[type=color] { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.input-group { display: flex; gap: 8px; }
.counter { font-size: 12px; color: var(--muted); text-align: end; }
.counter.over { color: var(--danger); font-weight: 700; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--navy-2); white-space: nowrap; }
.badge.draft { background: #eef1f7; color: #4b5873; }
.badge.in_review { background: var(--warn-50); color: #9a5f00; }
.badge.changes_requested { background: var(--orange-50); color: #b45a14; }
.badge.approved { background: var(--primary-50); color: var(--primary-600); }
.badge.scheduled { background: #e8f0ff; color: #2f5bd8; }
.badge.publishing, .badge.queued { background: #e6f6ff; color: #0b7bb5; }
.badge.published, .badge.manual_done, .badge.active { background: var(--teal-50); color: #0f8a80; }
.badge.partial, .badge.manual_due, .badge.uncertain { background: var(--orange-50); color: #b45a14; }
.badge.failed, .badge.expired, .badge.error { background: var(--danger-50); color: var(--danger); }
.badge.archived, .badge.skipped, .badge.disabled, .badge.pending { background: #f1f2f5; color: #7a8399; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; }
.pill.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary-600); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }

.plat { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; font-size: 11px; font-weight: 800; flex: none; letter-spacing: -.3px; }
.plat.sm { width: 20px; height: 20px; font-size: 9.5px; border-radius: 6px; }
.plat.facebook { background: #1877f2; } .plat.instagram { background: linear-gradient(45deg, #f9a03f, #e1306c, #833ab4); }
.plat.threads { background: #111; } .plat.linkedin { background: #0a66c2; } .plat.x { background: #000; }
.plat.youtube { background: #ff0000; } .plat.tiktok { background: #111; box-shadow: inset -2px 0 #25f4ee, inset 2px 0 #fe2c55; }
.plat.pinterest { background: #e60023; } .plat.telegram { background: #229ed9; } .plat.manual { background: var(--orange); color: var(--navy); }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--primary-50); display: inline-grid; place-items: center; font-weight: 700; color: var(--primary); flex: none; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; position: relative; }
.account-chip.on { border-color: var(--primary); background: var(--primary-50); }
.account-chip.bad { opacity: .6; }

table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: start; vertical-align: middle; }
.table th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fbfcfe; position: sticky; top: 0; }
.table tr:hover td { background: #fbfcff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 6px; }

.alert { padding: 10px 14px; border-radius: 10px; border: 1px solid; font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.alert.err { background: var(--danger-50); border-color: #f6c9cb; color: #a3262b; }
.alert.warn { background: var(--warn-50); border-color: #f7dfae; color: #8a5800; }
.alert.ok { background: var(--teal-50); border-color: #b9ebe6; color: #0d7068; }
.alert.info { background: var(--primary-50); border-color: var(--primary-100); color: #4c35c5; }
.alert + .alert { margin-top: 6px; }

/* toast + modal */
.toasts { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 420px; animation: pop .2s ease; }
.toast.err { background: var(--danger); } .toast.ok { background: #0f8a80; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.overlay { position: fixed; inset: 0; background: rgba(24,36,59,.45); z-index: 900; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(960px, 100%); }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal header h2 { margin: 0; font-size: 1.1rem; }
.modal header .x { margin-inline-start: auto; }
.modal .body { padding: 18px 20px; overflow-y: auto; }
.modal footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.dropdown { position: absolute; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 260px; max-height: 70vh; overflow: auto; padding: 6px; }
.dropdown .item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); }
.dropdown .item:hover { background: var(--line-2); text-decoration: none; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal .dow { padding: 8px; font-size: 12px; font-weight: 700; color: var(--muted); background: #fbfcfe; border-bottom: 1px solid var(--line); text-align: center; }
.cal .day { min-height: 118px; border-inline-end: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 6px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.cal .day:nth-child(7n) { border-inline-end: 0; }
.cal .day.other { background: #fcfdff; } .cal .day.other .num { color: #b4bccd; }
.cal .day.today .num { background: var(--primary); color: #fff; }
.cal .day.drop { background: var(--primary-50); }
.cal .num { font-size: 12px; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cal .add { position: absolute; top: 5px; inset-inline-end: 5px; opacity: 0; border: 0; background: var(--primary-50); color: var(--primary); border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-weight: 700; }
.cal .day:hover .add { opacity: 1; }
.chip { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 7px; font-size: 11.5px; background: var(--line-2); border-inline-start: 3px solid var(--muted); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--navy); }
.chip:hover { filter: brightness(.97); text-decoration: none; }
.chip.scheduled { border-color: #2f5bd8; background: #eef3ff; } .chip.published { border-color: var(--teal); background: var(--teal-50); }
.chip.in_review { border-color: var(--warn); background: var(--warn-50); } .chip.failed, .chip.partial { border-color: var(--danger); background: var(--danger-50); }
.chip.approved { border-color: var(--primary); background: var(--primary-50); } .chip.draft, .chip.changes_requested { border-color: #9aa3b5; }
.chip .t { font-weight: 700; flex: none; direction: ltr; }
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.week .h { font-size: 11px; color: var(--muted); padding: 4px; border-top: 1px solid var(--line-2); text-align: center; }
.week .slot { border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); min-height: 44px; padding: 2px; }
.week .slot.drop { background: var(--primary-50); }

/* ---------- composer & previews ---------- */
.composer textarea.caption { min-height: 200px; font-size: 15px; }
.media-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.media-thumb { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; position: relative; background: var(--line-2); border: 1px solid var(--line); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .rm { position: absolute; top: 4px; inset-inline-end: 4px; background: rgba(24,36,59,.75); color: #fff; border: 0; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; }
.media-thumb .tag { position: absolute; bottom: 4px; inset-inline-start: 4px; background: rgba(24,36,59,.75); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; }
.media-add { width: 92px; height: 92px; border-radius: 10px; border: 2px dashed #cfd6e6; display: grid; place-items: center; cursor: pointer; color: var(--muted); background: #fff; font-size: 26px; }
.preview { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; max-width: 380px; margin: 0 auto; font-size: 13.5px; }
.preview .ph { display: flex; gap: 8px; align-items: center; padding: 10px 12px; }
.preview .ph b { display: block; font-size: 13px; } .preview .ph small { font-size: 11px; }
.preview .txt { padding: 0 12px 10px; white-space: pre-wrap; word-wrap: break-word; }
.preview .txt .more { color: var(--muted); }
.preview .img { background: #eef1f7; aspect-ratio: 1; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.preview .img img, .preview .img video { width: 100%; height: 100%; object-fit: cover; }
.preview .img.portrait { aspect-ratio: 4/5; } .preview .img.story { aspect-ratio: 9/16; } .preview .img.wide { aspect-ratio: 1.91; }
.preview .bar { display: flex; gap: 16px; padding: 8px 12px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line-2); }
.preview.dark { background: #000; color: #fff; border-color: #222; }
.score { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; background: conic-gradient(var(--c, var(--primary)) calc(var(--v) * 1%), var(--line-2) 0); position: relative; }
.score::before { content: ""; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.score span { position: relative; }
.bar-h { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar-h > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.heat { display: grid; grid-template-columns: 40px repeat(24, 1fr); gap: 2px; font-size: 10px; }
.heat div { aspect-ratio: 1; border-radius: 3px; background: var(--line-2); }
.heat .l { aspect-ratio: auto; background: none; color: var(--muted); }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.lib-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; position: relative; }
.lib-item.sel { outline: 3px solid var(--primary); }
.lib-item .thumb { aspect-ratio: 1; background: var(--line-2); display: grid; place-items: center; overflow: hidden; }
.lib-item .thumb img, .lib-item .thumb video { width: 100%; height: 100%; object-fit: cover; }
.lib-item .meta { padding: 6px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropzone { border: 2px dashed #cfd6e6; border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); background: #fff; }
.dropzone.over { border-color: var(--primary); background: var(--primary-50); }
.designer canvas { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.timeline { border-inline-start: 2px solid var(--line); padding-inline-start: 14px; }
.timeline .ev { position: relative; padding-bottom: 12px; font-size: 13px; }
.timeline .ev::before { content: ""; position: absolute; inset-inline-start: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.timeline .ev.success::before { background: var(--teal); } .timeline .ev.error::before { background: var(--danger); } .timeline .ev.warn::before { background: var(--orange); }
.bubble { background: var(--line-2); border-radius: 12px; padding: 8px 12px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .hero { background: radial-gradient(1200px 600px at 80% -10%, #8b72ff 0, transparent 60%), linear-gradient(160deg, var(--navy) 30%, #2b2266); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .hero h1 { color: #fff; font-size: 2.2rem; }
.auth .hero .feat { display: grid; gap: 12px; margin-top: 24px; }
.auth .hero .feat div { display: flex; gap: 10px; align-items: center; color: #dfe4f2; }
.auth .hero .feat b { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.1); flex: none; }
.auth .panel { display: grid; place-items: center; padding: 32px; }
.auth form { width: min(400px, 100%); }
.spinner-page { min-height: 60vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--primary-100); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }

@media (max-width: 1100px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.side { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 300; transform: translateX(100%); transition: transform .2s; }
  [dir=ltr] .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none !important; box-shadow: var(--shadow-lg); }
  .content { padding: 16px 14px 90px; }
  .topbar { padding: 10px 14px; }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; inset-inline: 0; background: #fff; border-top: 1px solid var(--line); z-index: 200; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); gap: 2px; padding: 4px 8px; }
  .mobile-nav a.active { color: var(--primary); }
  .mobile-nav .ico { width: 22px; height: 22px; }
  .auth { grid-template-columns: 1fr; } .auth .hero { display: none; }
  .cal .day { min-height: 80px; } .cal .chip .ttl { display: none; }
}
@media print { .sidebar, .topbar, .mobile-nav, .no-print { display: none !important; } .shell { display: block; } .card { box-shadow: none; break-inside: avoid; } }
#menuBtn { display: none; }
@media (max-width: 860px) { #menuBtn { display: inline-flex; } .topbar .btn.primary .lbl { display: none; } }
