@font-face{font-family:'Plex';font-style:normal;font-weight:400;font-display:swap;src:url('assets/ibm-plex-sans-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Plex';font-style:normal;font-weight:500;font-display:swap;src:url('assets/ibm-plex-sans-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Plex';font-style:normal;font-weight:600;font-display:swap;src:url('assets/ibm-plex-sans-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'PlexAr';font-style:normal;font-weight:400;font-display:swap;src:url('assets/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF;}
@font-face{font-family:'PlexAr';font-style:normal;font-weight:600;font-display:swap;src:url('assets/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF;}
@font-face{font-family:'Bricolage';font-style:normal;font-weight:200 800;font-display:swap;src:url('assets/bricolage-grotesque-latin-wght-normal.woff2') format('woff2')-variations;}

:root {
  --paper: #E8EDEB; --panel: #FBFCFB; --panel2: #F0F4F2; --ink: #12262B; --ink2: #44585D; --ink3: #6C8185; --line: #CFD9D6; --line2: #E1E8E6;
  --rail: #0E3A40; --railInk: #D9EAEB; --railDim: #86A9AD;
  --teal: #0B5D66; --teal2: #084A52; --tealS: #D3EAEC;
  --red: #B42318; --redS: #FBE3E0; --amber: #8F5A00; --amberF: #E5A11C; --amberS: #FBEFD3;
  --green: #2A7A4B; --greenS: #DCF0E3; --blue: #2A66A8; --blueS: #DFEAF6;
  --shadow: 0 12px 40px rgba(8, 28, 32, .28);
  --font: 'Plex', 'PlexAr', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --display: 'Bricolage', 'Plex', 'PlexAr', system-ui, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[data-theme=dark] {
  --paper: #0C1517; --panel: #132124; --panel2: #192B2F; --ink: #E2EBE9; --ink2: #A6B8BA; --ink3: #7B9093; --line: #2A4045; --line2: #213539;
  --rail: #08100F; --railInk: #D3E2E3; --railDim: #6F8C90;
  --teal: #5CBFC9; --teal2: #7BD0D9; --tealS: #17383D;
  --red: #FF8A7D; --redS: #3C1E1C; --amber: #F0B94A; --amberF: #E5A11C; --amberS: #3A2C0F; --green: #6CCB93; --greenS: #17321F; --blue: #7FB1EA; --blueS: #182B42;
  --shadow: 0 12px 40px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 27px; line-height: 1.15; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { flex: none; }
.sp { margin-left: auto; }
.mute { color: var(--ink3); }
.t-red { color: var(--red); } .t-amber { color: var(--amber); } .t-green { color: var(--green); } .t-blue { color: var(--blue); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.bidi { unicode-bidi: plaintext; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; background: var(--rail); color: var(--railInk); }
.brand { padding: 4px 8px 16px; }
.brand b { display: block; font: 600 17px/1.2 var(--display); }
.brand span { display: block; color: var(--railDim); font-size: 12.5px; margin-top: 3px; overflow-wrap: anywhere; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button, .rail-foot button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; color: inherit; text-align: left; }
.nav button:hover, .rail-foot button:hover { background: rgba(255, 255, 255, .08); }
.nav button[aria-current=page] { background: rgba(255, 255, 255, .13); box-shadow: inset 3px 0 0 var(--amberF); font-weight: 600; }
.nav .badge { margin-left: auto; background: var(--amberF); color: #2a1b00; border-radius: 999px; font-size: 11.5px; padding: 0 7px; font-weight: 600; }
.nav .badge.red { background: #FF8A7D; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.rail-foot .stat { padding: 8px 10px; color: var(--railDim); font-size: 12.5px; }
.main { padding: 24px 30px 64px; max-width: 1560px; width: 100%; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.top .sub { color: var(--ink2); margin-top: 4px; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); font-weight: 500; }
.btn:hover { background: var(--panel2); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
:root[data-theme=dark] .btn.primary { color: #06272b; }
.btn.primary:hover { background: var(--teal2); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; background: none; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.input, .select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.input:focus, .select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--tealS); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label, .lbl { font-weight: 500; font-size: 13px; }
.field .hint { color: var(--ink3); font-size: 12.5px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.check input { margin-top: 3px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.seg button:hover { background: var(--panel2); }
.seg button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.seg .n { opacity: .65; margin-left: 4px; }
.search { position: relative; display: inline-flex; align-items: center; }
.search .ic { position: absolute; left: 9px; color: var(--ink3); }
.search input { padding: 6px 10px 6px 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); min-width: 200px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--panel2); color: var(--ink2); white-space: nowrap; }
.chip.red { background: var(--redS); color: var(--red); } .chip.amber { background: var(--amberS); color: var(--amber); }
.chip.green { background: var(--greenS); color: var(--green); } .chip.blue { background: var(--blueS); color: var(--blue); } .chip.teal { background: var(--tealS); color: var(--teal); }

/* ---------- panels, KPIs ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.panel-h .hint { color: var(--ink3); font-size: 12.5px; }
.panel-b { padding: 16px; }
.panel-b.flush { padding: 0; }
.note { padding: 11px 14px; border-radius: 8px; background: var(--amberS); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--amberF); font-size: 13px; }
.note.info { background: var(--blueS); border-left-color: var(--blue); }
.note b { font-weight: 600; }
.kgroup { margin-top: 2px; }
.kgroup > .kh { font: 600 13px var(--font); color: var(--ink2); margin: 0 2px 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kpi { padding: 13px 16px; box-shadow: 1px 0 0 var(--line2), 0 1px 0 var(--line2); text-align: left; background: none; border: 0; min-width: 0; }
button.kpi:hover { background: var(--panel2); }
.kpi .l { color: var(--ink2); font-size: 12.5px; }
.kpi .v { font: 600 27px/1.15 var(--display); margin-top: 3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .s { color: var(--ink3); font-size: 12px; margin-top: 2px; }
.kpi.red .v { color: var(--red); } .kpi.amber .v { color: var(--amber); } .kpi.green .v { color: var(--green); }

/* ---------- inbound timeline (hero) ---------- */
.tl-scroll { overflow-x: auto; padding-bottom: 4px; }
.tl, .tl-axis { display: flex; gap: 3px; min-width: 640px; }
.tl { align-items: flex-end; height: 168px; border-bottom: 1px solid var(--line); }
.tl .d { flex: 1; min-width: 8px; height: 100%; display: flex; align-items: flex-end; padding: 0; border: 0; background: none; position: relative; }
.tl .d i { display: block; width: 100%; background: var(--teal); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .88; transform-origin: bottom; }
.tl .d:hover i, .tl .d:focus-visible i { opacity: 1; }
.tl .d.late i { background: var(--red); }
.tl .d.today i { background: var(--amberF); opacity: 1; }
.tl .d.none i { background: var(--ink3); }
.tl .d.wide { flex: 2.4; }
.tl .d.today::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed var(--amberF); pointer-events: none; }
.tl .d.empty i { opacity: .25; }
.tl-axis { margin-top: 6px; }
.tl-axis span { flex: 1; min-width: 8px; font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.tl-axis span.wide { flex: 2.4; }
.tl-axis span.tt { color: var(--amber); font-weight: 600; }
.buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.bk { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 9px 12px; border-left: 4px solid var(--edge, var(--line)); }
.bk:hover { background: var(--panel2); }
.bk .l { font-size: 12.5px; color: var(--ink2); }
.bk .v { font: 600 19px var(--display); font-variant-numeric: tabular-nums; }
.bk .s { font-size: 12px; color: var(--ink3); }

/* ---------- management brief ---------- */
.brief-i { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line2); align-items: center; }
.brief-i:last-child { border-bottom: 0; }
.brief-i .bar { align-self: stretch; border-radius: 3px; background: var(--tone, var(--line)); }
.brief-i b { display: block; font-weight: 600; }
.brief-i p { color: var(--ink2); margin-top: 2px; font-size: 13px; }

/* ---------- tables ---------- */
.tbl-tools { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
.tbl-count { color: var(--ink3); font-size: 12.5px; }
.tbl-scroll { overflow: auto; max-height: 72vh; border-top: 1px solid var(--line2); }
table.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--panel2); text-align: left; font-weight: 600; font-size: 12px; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; cursor: pointer; }
.tbl th.r, .tbl td.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th[aria-sort=ascending]::after { content: ' \25B2'; font-size: 9px; } .tbl th[aria-sort=descending]::after { content: ' \25BC'; font-size: 9px; }
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.tbl tbody tr:hover td { background: var(--panel2); }
.tbl tr.click { cursor: pointer; }
.tbl td.edge { box-shadow: inset 3px 0 0 var(--edge); }
.tbl .nm { max-width: 300px; min-width: 120px; unicode-bidi: plaintext; }
.tbl .nm small { display: block; color: var(--ink3); font-size: 11.5px; }
.tbl .empty { padding: 28px; text-align: center; color: var(--ink3); }
.pager { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line2); color: var(--ink3); font-size: 12.5px; }
.pager:empty { display: none; }
.bar-mini { display: inline-block; width: 54px; height: 6px; border-radius: 3px; background: var(--line2); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.bar-mini i { display: block; height: 100%; background: var(--teal); }

/* ---------- action tabs ---------- */
.atabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.atab { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; border-top: 4px solid var(--edge, var(--line)); }
.atab:hover { background: var(--panel2); }
.atab[aria-pressed=true] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.atab[aria-pressed=true] .s, .atab[aria-pressed=true] .l { color: inherit; opacity: .8; }
.atab .l { font-size: 12.5px; color: var(--ink2); }
.atab .v { font: 600 24px var(--display); font-variant-numeric: tabular-nums; }
.atab .s { font-size: 12px; color: var(--ink3); }
.rule { padding: 10px 16px; color: var(--ink2); font-size: 13px; border-bottom: 1px solid var(--line2); }

/* ---------- delivery board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.col { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; display: flex; flex-direction: column; max-height: 76vh; min-width: 0; }
.col-h { padding: 10px 12px; border-bottom: 1px solid var(--line2); border-top: 4px solid var(--edge, var(--line)); border-radius: 10px 10px 0 0; }
.col-h b { display: block; font: 600 14px var(--display); }
.col-h span { color: var(--ink3); font-size: 12px; }
.col-b { padding: 8px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.pc { display: block; text-align: left; width: 100%; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--edge, var(--line)); border-radius: 6px; padding: 8px 10px; }
.pc:hover { border-color: var(--teal); }
.pc .r1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.pc .r2 { color: var(--ink2); font-size: 12.5px; margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.pc .r3 { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink3); align-items: center; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 18, 21, .5); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 40; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(800px, 100vw); background: var(--panel); transform: translateX(102%); transition: transform .2s ease; box-shadow: var(--shadow); z-index: 50; display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.dr-h { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dr-h h2 { font-size: 19px; overflow-wrap: anywhere; }
.dr-sub { color: var(--ink2); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dr-b { padding: 18px 20px 40px; overflow: auto; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mini > div { padding: 9px 12px; box-shadow: 1px 0 0 var(--line2), 0 1px 0 var(--line2); min-width: 0; }
.mini .l { font-size: 12px; color: var(--ink3); } .mini .v { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.msgbox { white-space: pre-wrap; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 12px; font-size: 13px; max-height: 240px; overflow: auto; unicode-bidi: plaintext; }
.advice { padding: 12px 14px; border-radius: 8px; background: var(--tealS); border-left: 4px solid var(--teal); }
.canvas-box { position: relative; height: 240px; }
.canvas-box.sm { height: 190px; }

/* ---------- login and loading ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 30px 30px 24px; }
.login-card h1 { font-size: 30px; margin-bottom: 6px; }
.login-card .lead { color: var(--ink2); margin-bottom: 22px; }
.pw { position: relative; }
.pw button { position: absolute; right: 4px; top: 4px; bottom: 4px; border: 0; background: none; padding: 0 10px; color: var(--ink3); border-radius: 5px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); margin-top: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink3); flex: none; }
.dot.ok { background: var(--green); } .dot.bad { background: var(--red); }
.errbox { padding: 11px 14px; border-radius: 8px; background: var(--redS); color: var(--ink); border-left: 4px solid var(--red); margin-bottom: 14px; font-size: 13px; }
.errbox b { color: var(--red); }
.steps { display: flex; flex-direction: column; margin: 8px 0 18px; }
.step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line2); align-items: center; }
.step:last-child { border-bottom: 0; }
.step .st { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.step.loading .st { border-color: var(--teal); border-top-color: transparent; animation: spin .8s linear infinite; }
.step.done .st { background: var(--green); border-color: var(--green); }
.step.error .st { background: var(--red); border-color: var(--red); }
.step small { display: block; color: var(--ink3); }
@keyframes spin { to { transform: rotate(360deg); } }
.srcs td, .srcs th { padding: 8px 10px; }
.srcs select { min-width: 200px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; }
.form-grid .field { margin: 0; }
.pre { font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 12px; max-height: 300px; overflow: auto; }
.loc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lc { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.lc:hover { border-color: var(--teal); }
.lc h3 { font-size: 16px; font-family: var(--display); }
.lc dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 10px 0 0; font-size: 13px; }
.lc dt { color: var(--ink2); } .lc dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--ink2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: var(--panel); padding: 9px 15px; border-radius: 8px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 6px; padding: 8px 10px; overflow-x: auto; }
  .brand, .rail-foot .stat { display: none; }
  .nav { flex-direction: row; gap: 4px; }
  .nav button, .rail-foot button { width: auto; white-space: nowrap; padding: 8px 10px; }
  .rail-foot { margin: 0 0 0 auto; flex-direction: row; }
  .main { padding: 16px 14px 56px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 23px; }
  .login-card { padding: 22px 18px; }
  .kpi .v { font-size: 22px; }
}
@media (max-width: 700px) {
  .srcs, .srcs tbody, .srcs tr, .srcs td { display: block; width: 100%; }
  .srcs thead { display: none; }
  .srcs tr { border-bottom: 1px solid var(--line2); padding: 8px 0; }
  .srcs td { border: 0; padding: 3px 0; }
  .srcs select { width: 100%; min-width: 0; }
  .pubs { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .rail, .top-actions, .tbl-tools, .pager, #toasts { display: none !important; } .app { display: block; } .main { padding: 0; } }

/* ---------- authentication page (NAV / BC14) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.auth-side { background: var(--rail); color: var(--railInk); padding: 40px 36px; display: flex; flex-direction: column; gap: 22px; }
.auth-side h1 { font-size: 31px; color: #fff; }
.auth-side .kick { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amberF); font-weight: 600; }
.auth-side p { color: var(--railDim); }
.auth-side ul { margin: 0; padding-left: 18px; color: var(--railDim); display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.auth-side ul b { color: var(--railInk); font-weight: 600; }
.auth-side .safe { margin-top: auto; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; font-size: 12.5px; color: var(--railDim); }
.auth-main { padding: 36px 40px 60px; overflow: auto; }
.auth-card { width: min(680px, 100%); margin: 0 auto; }
.auth-card > h2 { font-size: 22px; margin-bottom: 4px; }
.auth-card > .lead { color: var(--ink2); margin-bottom: 20px; }
.tabs { display: flex; gap: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: none; border-radius: 6px; padding: 7px 10px; font-weight: 500; color: var(--ink2); }
.tabs button[aria-pressed=true] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.preview { font: 12.5px/1.5 ui-monospace, Consolas, monospace; background: var(--panel2); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; word-break: break-all; color: var(--ink2); margin-bottom: 16px; }
.preview b { color: var(--teal); font-weight: 600; }
.radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.radios label { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: var(--panel); cursor: pointer; }
.radios label:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px var(--tealS); }
.radios input { margin-top: 3px; }
.radios b { display: block; font-size: 13.5px; }
.radios span { color: var(--ink3); font-size: 12px; }
details.help { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); margin-top: 16px; }
details.help > summary { padding: 11px 14px; cursor: pointer; font-weight: 500; list-style: none; display: flex; align-items: center; gap: 8px; }
details.help > summary::-webkit-details-marker { display: none; }
details.help > summary::after { content: '+'; margin-left: auto; color: var(--ink3); font-size: 17px; }
details.help[open] > summary::after { content: '\2212'; }
details.help .in { padding: 0 14px 14px; color: var(--ink2); font-size: 13px; }
details.help ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
details.help code { background: var(--panel2); border: 1px solid var(--line2); border-radius: 4px; padding: 0 4px; font-size: 12.5px; }
.pubs { width: 100%; font-size: 12.5px; border-collapse: collapse; margin-top: 10px; }
.pubs th, .pubs td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line2); }
.pubs th { color: var(--ink3); font-weight: 600; }
.pubs td:first-child { font-variant-numeric: tabular-nums; color: var(--ink3); }
.auth-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 24px 18px; gap: 14px; }
  .auth-side h1 { font-size: 25px; } .auth-side ul, .auth-side .safe { display: none; }
  .auth-main { padding: 20px 16px 50px; }
}
