/* ============================================================
 * UMG v3 — premium dark theme (matches UMG v2 look & feel)
 * ========================================================== */
:root {
  --bg:        #0a0a0a;
  --surface:   #111111;
  --surface-2: #1a1a1a;
  --border:    #222222;
  --border-2:  #333333;
  --text:      #ffffff;
  --muted:     #888888;
  --muted-2:   #666666;
  --accent:    #ff0050;
  --accent-2:  #ff4444;
  --green:     #22c55e;
  --amber:     #ffaa00;
  --purple:    #9933ff;
  --radius:    12px;
  --nav-h:     60px;
  --pad-x:     40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Slick dark scrollbars everywhere (Chrome/Safari + Firefox) */
* { scrollbar-width: thin; scrollbar-color: #333 transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: #444; }
*::-webkit-scrollbar-corner { background: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.muted  { color: var(--muted); }
.small  { font-size: 12px; }
.meta   { color: var(--muted-2); font-size: 12px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header / top nav ---------- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
}
.header-inner {
  height: 100%; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-size: 18px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo-accent { color: var(--accent); }
.logo-icon {
  width: 32px; height: 32px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: #fff;
  box-shadow: 0 2px 12px rgba(255, 0, 80, 0.35);
}
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none;
  padding: 9px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  transition: all .18s ease;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(255, 0, 80, .15); }
.nav-icon { font-size: 15px; opacity: .9; }

.header-right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.user-email { color: var(--muted); font-size: 13px; }
.admin-badge {
  background: rgba(255,0,80,.15); color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 9px; border-radius: 6px;
}
.btn-signout {
  background: var(--surface-2); border: 1px solid var(--border-2); color: #fff;
  font-size: 13px; padding: 7px 14px; border-radius: 8px; cursor: pointer;
  transition: all .18s;
}
.btn-signout:hover { border-color: #555; }

/* ---------- Page layout ---------- */
.view { padding-top: var(--nav-h); min-height: 100vh; }
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 30px var(--pad-x) 20px;
}
.page-head h2 { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.view > *:not(.page-head) { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.view > *:last-child { padding-bottom: 48px; }

/* ---------- Cards / panels ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 22px;
}
.panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.panel h3 .small { font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  background: var(--surface-2); border: 1px solid var(--border-2); color: #fff;
  padding: 9px 15px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: #555; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; color: #fff; font-weight: 600;
  box-shadow: 0 2px 14px rgba(255,0,80,.28);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255,68,68,.12); border-color: rgba(255,68,68,.4); color: #ff8080; }
.btn.danger:hover { background: rgba(255,68,68,.2); border-color: rgba(255,68,68,.6); }
.btn.small { padding: 5px 11px; font-size: 12px; }

/* ---------- Forms ---------- */
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); flex: 1 1 180px; }
input, select, textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 14px;
  font-family: inherit; transition: border-color .18s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
select { cursor: pointer; }
input[type="date"] { color-scheme: dark; }
.form-error { color: var(--accent-2); font-size: 13px; min-height: 18px; }

/* ---------- Tables ---------- */
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 22px;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; color: var(--muted-2);
  padding: 14px 16px; border-bottom: 1px solid var(--border); background: #0d0d0d;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.02); }
table select, table input { padding: 7px 10px; font-size: 13px; }

/* ---------- Badges / status ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  background: rgba(255,255,255,.08); color: #ccc; text-transform: uppercase;
}
.badge.st-PLANNED    { background: rgba(255,255,255,.08); color: #aaa; }
.badge.st-QUEUED     { background: rgba(255,170,0,.15);  color: var(--amber); }
.badge.st-RENDERING  { background: rgba(153,51,255,.15); color: #c08cff; }
.badge.st-QC         { background: rgba(153,51,255,.15); color: #c08cff; }
.badge.st-READY      { background: rgba(74,158,255,.15); color: #4a9eff; }
.badge.st-DELIVERING { background: rgba(255,0,80,.15);   color: #ff5c8a; }
.badge.st-DONE       { background: rgba(34,197,94,.15);  color: var(--green); }
.badge.st-FAILED     { background: rgba(255,68,68,.15);  color: var(--accent-2); }
.badge.st-SKIPPED    { background: rgba(255,255,255,.06); color: var(--muted-2); }
.badge.st-RELEASE     { background: rgba(34,197,94,.15);  color: var(--green); }
.badge.st-CATALOG     { background: rgba(74,158,255,.15); color: #4a9eff; }
.badge.st-PRIORITY    { background: rgba(153,51,255,.18); color: #c08cff; }
.badge.st-OPPORTUNITY { background: rgba(255,170,0,.15);  color: var(--amber); }
.badge.promoted       { background: rgba(255,0,80,.15);   color: #ff5c8a; }
.badge.tiny           { padding: 1px 7px; font-size: 10px; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted);
}
.qc-pass { color: var(--green); font-size: 12px; font-weight: 600; }
.qc-fail { color: var(--accent-2); font-size: 12px; font-weight: 600; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.kpi {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 16px; text-align: center;
}
.kpi .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.kpi .l { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted-2); margin-top: 4px; }

/* ---------- List items (pools / artists / hosts) ---------- */
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); margin-bottom: 8px; cursor: pointer; transition: all .15s;
}
.list-item:hover { border-color: #444; }
.list-item.selected { border-color: var(--accent); background: rgba(255,0,80,.06); }

/* ---------- Host accordion (Accounts page) ---------- */
.host-block { margin-bottom: 8px; }
.host-block .host-head { margin-bottom: 0; }
.host-name { display: flex; align-items: center; gap: 8px; }
.host-caret { color: var(--muted-2); font-size: 15px; transition: transform .18s; }
.host-block.open .host-caret { transform: rotate(90deg); }
.host-block.open .host-head { border-color: #444; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.host-accounts { display: none; }
.host-block.open .host-accounts {
  display: block;
  border: 1px solid #444; border-top: none; border-radius: 0 0 10px 10px;
  background: rgba(255,255,255,.02);
  animation: hostOpen .18s ease;
}
@keyframes hostOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.host-account {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 10px 36px; font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.host-account:first-child { border-top: none; }
.host-account-name { font-weight: 500; }
.host-account-meta { display: flex; align-items: center; gap: 10px; }

/* ---------- Dropzone + clips ---------- */
.dropzone {
  border: 2px dashed var(--border-2); border-radius: 10px; padding: 26px;
  text-align: center; color: var(--muted); cursor: pointer; transition: all .18s; margin-bottom: 14px;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); color: #fff; background: rgba(255,0,80,.05); }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.clip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.clip .name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Render grid (Ops) ---------- */
.render-headline { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.render-headline .n { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.render-headline .l { font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .6px; }

/* ---------- Ops: host performance ---------- */
.warn { color: var(--amber); font-size: 12px; font-weight: 600; }

/* Segmented range switcher (Today / 7 days / 30 days) */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 2px; gap: 2px; }
.seg .btn { border: none; background: transparent; border-radius: 7px; }
.seg .btn:hover { background: rgba(255,255,255,.05); }
.seg .btn.primary { background: var(--accent); }

.inline-date {
  width: auto; display: inline-block; margin-left: 6px; padding: 3px 8px;
  font-size: 12px; vertical-align: middle;
}

.ops-headline { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.ops-hero { min-width: 260px; }
.ops-hero .n { font-size: 46px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.ops-hero .l { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted-2); margin-top: 4px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 3px; background: var(--muted-2); transition: width .3s ease; }
.meter span.qc-pass-bg { background: var(--green); }
.meter span.warn-bg    { background: var(--amber); }
.meter span.qc-fail-bg { background: var(--accent-2); }

/* Host leaderboard */
.ops-hosts .host-row { cursor: pointer; }
.ops-hosts .host-row:hover { background: rgba(255,255,255,.03); }
.ops-hosts .expander { width: 22px; color: var(--muted-2); user-select: none; }
.ops-hosts td { vertical-align: middle; }
.ops-hosts .meta { margin-top: 2px; }
.host-detail > td { background: rgba(255,255,255,.02); padding: 0 !important; }
.detail-slot { padding: 12px 16px 14px 38px; }
table.sub { width: 100%; border-collapse: collapse; font-size: 13px; }
table.sub th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted-2); font-weight: 600; padding: 4px 10px 6px 0;
}
table.sub td { padding: 6px 10px 6px 0; border-top: 1px solid var(--border); }

/* Per-day posting bars: one bar per day in the range, sized against the daily target. */
.daybars { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.daybars.dense { gap: 1px; }
.daybars i { width: 7px; border-radius: 2px; background: var(--green); display: block; }
.daybars.dense i { width: 4px; }
.daybars i.part { background: var(--amber); }
.daybars i.zero { background: var(--accent-2); }   /* owed and posted nothing */
.daybars i.idle { background: #2a2a2a; }           /* nothing was scheduled */

/* ---------- Calendar (v2-style: promoted-songs sidebar + week grid) ---------- */
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-label { min-width: 190px; text-align: center; font-weight: 600; font-size: 15px; }
.btn.icon { padding: 6px 12px; font-size: 16px; line-height: 1; }

.cal-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
@media (max-width: 980px) { .cal-layout { grid-template-columns: 1fr; } }

.cal-sidebar { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; }
.promo-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; max-height: 60vh; overflow-y: auto; }
.promo-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
  cursor: pointer; transition: all .15s;
}
.promo-item:hover { border-color: #444; }
.promo-item.selected { border-color: var(--accent); background: rgba(255,0,80,.07); }
.promo-check {
  width: 18px; height: 18px; flex: none; border-radius: 5px; border: 1.5px solid var(--border-2);
  display: grid; place-items: center; font-size: 12px; color: #fff;
}
.promo-item.selected .promo-check { background: var(--accent); border-color: var(--accent); }
.promo-info { flex: 1; min-width: 0; }
.promo-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.promo-count {
  flex: none; min-width: 24px; text-align: center; font-size: 13px; font-weight: 700;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 2px 6px;
}
.cal-plan-btn { width: 100%; justify-content: center; padding: 12px; }

.cal-main { min-width: 0; }
.slots-summary {
  display: flex; align-items: center; gap: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 22px; margin-bottom: 18px;
}
.ss-item { display: flex; flex-direction: column; }
.ss-n { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ss-l { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted-2); margin-top: 2px; }

.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
@media (max-width: 1200px) { .week-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .week-grid { grid-template-columns: repeat(2, 1fr); } }
.wday {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 8px;
}
.wday-head { display: flex; align-items: baseline; justify-content: space-between; }
.wday-name { font-size: 11px; font-weight: 700; color: var(--muted-2); letter-spacing: .5px; }
.wday-num { font-size: 16px; font-weight: 700; }
.wday-count { font-size: 11px; color: var(--muted); }
.wday-count.full { color: var(--green); font-weight: 600; }
.wday-posts { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wday-empty { color: var(--muted-2); font-size: 12px; text-align: center; padding: 16px 0; }
.wday-actions { display: flex; gap: 6px; }
.wday-actions .btn { flex: 1; justify-content: center; }

.wpost {
  display: flex; align-items: center; gap: 7px; padding: 7px 8px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  border-left: 3px solid var(--border-2);
}
.wpost.tier-PRIORITY    { border-left-color: var(--purple); }
.wpost.tier-RELEASE     { border-left-color: var(--green); }
.wpost.tier-OPPORTUNITY { border-left-color: var(--amber); }
.wpost-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #888; }
.wpost-dot.s-QUEUED, .wpost-dot.s-RENDERING { background: var(--amber); }
.wpost-dot.s-QC, .wpost-dot.s-READY { background: #4a9eff; }
.wpost-dot.s-DELIVERING { background: #ff5c8a; }
.wpost-dot.s-DONE { background: var(--green); }
.wpost-dot.s-FAILED { background: var(--accent-2); }
.wpost-body { flex: 1; min-width: 0; }
.wpost-song { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpost-acc { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Song modal: promote toggle */
.promote-toggle { display: flex; align-items: center; gap: 9px; flex-direction: row; font-size: 13px; color: var(--muted); cursor: pointer; }
.promote-toggle input { width: auto; }

/* ---------- Preflight problems ---------- */
.problems {
  background: rgba(255,68,68,.06); border: 1px solid rgba(255,68,68,.3);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 20px;
}
.problems h4 { color: var(--accent-2); margin-bottom: 10px; font-size: 14px; }
.problems ul { margin-left: 18px; font-size: 13px; line-height: 1.7; }
.problems.ok { background: rgba(34,197,94,.06); border-color: rgba(34,197,94,.3); }
.problems.ok h4 { color: var(--green); }

/* ---------- Empty / loading ---------- */
.empty { text-align: center; color: var(--muted-2); padding: 30px; font-size: 14px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px; }
.spinner {
  width: 16px; height: 16px; border: 2px solid var(--border-2);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(2px); }
.modal-body {
  position: relative; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 22px; max-width: 92vw; max-height: 90vh; overflow: auto;
}
.modal-body video { max-height: 78vh; max-width: 100%; border-radius: 8px; display: block; }
.modal-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #fff; }

/* ---------- Songs: card list + edit modal ---------- */
.song-list { display: flex; flex-direction: column; gap: 10px; }
.song-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.song-card:hover { border-color: var(--border-2); background: var(--surface-2); }
.song-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.song-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-size: 22px;
}
.song-main { flex: 1 1 auto; min-width: 0; }
.song-title { font-weight: 600; font-size: 15px; color: #fff; }
.song-tags { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.song-modal .form-label { display: block; font-size: 13px; color: var(--muted); }
.song-modal { width: 480px; max-width: 90vw; }
.song-modal .modal-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.audio-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.audio-name { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-actions { display: flex; gap: 6px; flex: 0 0 auto; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--surface); border: 1px solid var(--border-2); color: #fff;
  padding: 12px 16px; border-radius: 10px; font-size: 13px; min-width: 200px; max-width: 340px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: slidein .2s ease;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--accent-2); }
.toast.info    { border-left: 3px solid #4a9eff; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }

/* ---------- Login ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(1200px 600px at 50% -10%, rgba(255,0,80,.10), transparent 60%), var(--bg); }
.login-card {
  width: 340px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; text-align: center;
}
.login-logo { display: flex; justify-content: center; margin-bottom: 4px; }
.login-logo .logo-icon { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; }
.login-card h1 { font-size: 26px; font-weight: 800; }
.login-card p { margin-bottom: 8px; }
.login-card label { text-align: left; }
.login-card .btn { justify-content: center; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  :root { --pad-x: 18px; }
  .header-inner { gap: 10px; overflow-x: auto; }
  .user-email { display: none; }
  .nav a { padding: 8px 10px; }
  .nav a span:not(.nav-icon) { display: none; } /* icons only on small screens */
}
