/* IndoAvis LARAS — design system (pure CSS) */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 264px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #060b18;
  --bg-2: #09122a;
  --surface: #0d172d;
  --surface-2: #121f3a;
  --surface-3: #172744;
  --border: #1c2a47;
  --border-strong: #29406a;
  --text: #e7eefa;
  --muted: #8d9dbb;
  --subtle: #5e7092;
  --primary: #2f9bff;
  --primary-strong: #1683f2;
  --primary-soft: rgba(47, 155, 255, .14);
  --primary-ink: #ffffff;
  --c-exceeds: #2fd6a3;
  --c-meets: #2f9bff;
  --c-improve: #f6b545;
  --c-critical: #f2606e;
  --c-std: #c7d3ea;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -18px rgba(0, 0, 0, .7);
  --glow: radial-gradient(1200px 500px at 85% -10%, rgba(47, 155, 255, .12), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(47, 214, 163, .06), transparent 60%);
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-2: #eaf0f8;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --surface-3: #eaf0f9;
  --border: #e0e7f1;
  --border-strong: #c7d3e5;
  --text: #0a1633;
  --muted: #56688a;
  --subtle: #8796b0;
  --primary: #0b6fe0;
  --primary-strong: #075bbd;
  --primary-soft: rgba(11, 111, 224, .1);
  --primary-ink: #ffffff;
  --c-exceeds: #0f9f73;
  --c-meets: #0b6fe0;
  --c-improve: #d48806;
  --c-critical: #d93847;
  --c-std: #44526e;
  --shadow: 0 1px 2px rgba(10, 22, 51, .04), 0 10px 30px -20px rgba(10, 22, 51, .25);
  --glow: radial-gradient(1200px 500px at 85% -10%, rgba(11, 111, 224, .07), transparent 60%);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image: var(--glow);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }

/* ------------------------------------------------------------ layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  display: flex; flex-direction: column; gap: 6px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  transition: transform .25s var(--ease);
}
[hidden] { display: none !important; }
html[data-saving="true"]::after { content: 'Saving to encrypted database…'; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 12px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; z-index: 9999; }
.brand { display: flex; justify-content: center; padding: 0 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; text-decoration: none !important; }
.brand-logo { width: 168px; height: 140px; object-fit: cover; }
html[data-theme='dark'] .logo-on-light, html[data-theme='light'] .logo-on-dark { display: none !important; }
.user-card .icon-btn { flex: none; }
.sidebar-dev { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 10px; color: var(--subtle); }
.sidebar-product { display: inline-flex; align-items: center; gap: 5px; text-align: left; white-space: nowrap; }
.sidebar-dev img { height: 22px; width: auto; }
.sidebar-powered { margin-left: auto; max-width: 90px; text-align: right; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu button.menu-danger { color: var(--c-critical); }
.menu button.menu-danger .ic { font-size: 16px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--subtle); padding: 14px 10px 6px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  color: var(--muted); font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.nav a .ic { font-size: 17px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current='page'] { background: var(--primary-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--primary); }
.nav a[aria-current='page'] .ic { color: var(--primary); }
.nav .pill { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--c-critical) 18%, transparent); color: var(--c-critical); font-weight: 600; }
.sidebar-foot { border-top: 1px solid var(--border); padding-top: 12px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.user-card .meta { min-width: 0; flex: 1; }
.user-card strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .meta > span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 12px 28px; min-height: 62px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; min-width: 0; }
.crumbs a { color: var(--muted); }
.crumbs strong { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.view { padding: 26px 28px 60px; outline: none; max-width: 1640px; width: 100%; margin: 0 auto; }
.scrim { position: fixed; inset: 0; background: rgba(3, 7, 18, .55); z-index: 35; }
.only-mobile { display: none !important; }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
  .main { margin-left: 0; }
  .only-mobile { display: inline-flex !important; }
  .view { padding: 18px 16px 48px; }
  .topbar { padding: 10px 16px; }
}

/* ------------------------------------------------------------ page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 70ch; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------ grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-9 { grid-column: span 9; } .span-12 { grid-column: span 12; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 16px; }
@media (max-width: 1280px) { .span-3 { grid-column: span 6; } .span-4, .span-5 { grid-column: span 6; } .span-7, .span-8 { grid-column: span 12; } }
@media (max-width: 760px) { .grid > [class*='span-'] { grid-column: span 12; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }

/* ------------------------------------------------------------ card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card.flush .card-head { padding: 16px 18px 0; }
.card-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title .ic { color: var(--primary); }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 16px; }
.kpi-icon.t-success { background: color-mix(in srgb, var(--c-exceeds) 15%, transparent); color: var(--c-exceeds); }
.kpi-icon.t-warning { background: color-mix(in srgb, var(--c-improve) 16%, transparent); color: var(--c-improve); }
.kpi-icon.t-danger { background: color-mix(in srgb, var(--c-critical) 15%, transparent); color: var(--c-critical); }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-value small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.kpi-sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; }
.delta.up { color: var(--c-exceeds); } .delta.down { color: var(--c-critical); } .delta.flat { color: var(--muted); }

/* ------------------------------------------------------------ buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
  text-decoration: none !important;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: color-mix(in srgb, var(--c-critical) 14%, transparent); border-color: color-mix(in srgb, var(--c-critical) 40%, transparent); color: var(--c-critical); }
.btn-danger:hover { background: color-mix(in srgb, var(--c-critical) 22%, transparent); }
.btn-ai { background: linear-gradient(135deg, var(--primary), #7c5cff); border: 0; color: #fff; }
.btn-ai:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--primary), #7c5cff); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--muted); font-size: 17px; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn.sm { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 11.5px; color: var(--subtle); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input.sm, .select.sm { height: 32px; font-size: 12.5px; border-radius: 8px; }
.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.search .input { padding-left: 34px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-section-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin: 6px 0 10px; display: flex; align-items: center; gap: 8px; }
.form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ------------------------------------------------------------ badges, chips, avatars */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--muted); border: 1px solid transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.t-success { background: color-mix(in srgb, var(--c-exceeds) 14%, transparent); color: var(--c-exceeds); }
.badge.t-info { background: var(--primary-soft); color: var(--primary); }
.badge.t-warning { background: color-mix(in srgb, var(--c-improve) 15%, transparent); color: var(--c-improve); }
.badge.t-danger { background: color-mix(in srgb, var(--c-critical) 14%, transparent); color: var(--c-critical); }
.badge.t-outline { background: transparent; border-color: var(--border-strong); color: var(--muted); }
.badge.t-violet { background: rgba(124, 92, 255, .16); color: #a28bff; }
html[data-theme='light'] .badge.t-violet { color: #6a46f0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed='true'] { background: var(--primary-soft); border-color: var(--primary); color: var(--text); }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; color: #fff; line-height: 1; text-align: center; letter-spacing: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; border-radius: 20px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.score { display: inline-grid; place-items: center; min-width: 40px; height: 24px; padding: 0 7px; border-radius: 7px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.cat-exceeds { color: var(--c-exceeds); } .cat-meets { color: var(--c-meets); } .cat-improve { color: var(--c-improve); } .cat-critical { color: var(--c-critical); } .cat-none { color: var(--muted); }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr:hover { background: var(--surface-2); }
.table .right { text-align: right; }
.table .center { text-align: center; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cell-person strong { display: block; font-weight: 600; }
.cell-person > div > span { display: block; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: var(--text); border-bottom-color: var(--primary); }
.tab .count { font-size: 11px; background: var(--surface-3); padding: 0 6px; border-radius: 99px; color: var(--muted); }
.seg-group { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; gap: 2px; }
.seg-group button { border: 0; background: transparent; color: var(--muted); padding: 5px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.seg-group button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* ------------------------------------------------------------ charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-family: var(--font); font-size: 11px; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11.5px; font-weight: 500; }
.chart [data-tip] { cursor: pointer; }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); border-radius: 9px; padding: 7px 10px; font-size: 12px; line-height: 1.45; white-space: pre-line; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-width: 280px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.dash { height: 0; width: 16px; border-top: 2px dashed; border-radius: 0; background: none !important; }
.hbars { display: flex; flex-direction: column; gap: 11px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 52px; align-items: center; gap: 12px; font-size: 12.5px; }
.hbar .lbl { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { position: relative; height: 9px; background: var(--surface-3); border-radius: 99px; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; transition: width .6s var(--ease); }
.hbar .target { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--c-std); border-radius: 2px; opacity: .8; }
.hbar .val { text-align: right; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.stackbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.stackbar > span { display: block; height: 100%; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--primary); }

/* ------------------------------------------------------------ heat matrix */
.heat { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 12.5px; }
.heat th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle); font-weight: 600; padding: 6px 4px; text-align: center; white-space: nowrap; }
.heat th.left, .heat td.left { text-align: left; }
.heat td { padding: 0; }
.heat .cell { height: 32px; display: grid; place-items: center; border-radius: 7px; font-family: var(--mono); font-size: 12px; font-weight: 600; min-width: 48px; }
.heat .rowhead { padding: 4px 10px 4px 2px; white-space: nowrap; }
.heat tr.group-row td.rowhead { font-weight: 700; padding-top: 12px; }
.heat tr.group-row .cell { outline: 1px solid var(--border-strong); }

/* ------------------------------------------------------------ modal / toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 7, 18, .6); backdrop-filter: blur(3px); z-index: 70; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .15s ease; }
.modal { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: pop .2s var(--ease); }
.modal.lg { max-width: 920px; }
.modal.sm { max-width: 440px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 16px; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 18px 18px; }
.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface-3); border: 1px solid var(--border-strong); border-left: 3px solid var(--primary); border-radius: 11px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); font-size: 13px; animation: pop .2s var(--ease); max-width: 380px; }
.toast.t-success { border-left-color: var(--c-exceeds); } .toast.t-danger { border-left-color: var(--c-critical); } .toast.t-warning { border-left-color: var(--c-improve); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 300px; max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); padding: 6px; z-index: 60; animation: pop .15s var(--ease); }
.menu-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); padding: 10px 10px 4px; font-weight: 600; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; }
.menu button:hover, .menu button[aria-current='true'] { background: var(--surface-2); }
.menu button small { display: block; color: var(--muted); font-size: 11.5px; }
.persona { position: relative; display: flex; align-items: center; gap: 8px; }
.persona-btn { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.persona-btn .meta { text-align: left; line-height: 1.2; }
.persona-btn strong { display: block; font-size: 12.5px; }
.persona-btn .meta > span { display: block; font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .persona-btn .meta { display: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ------------------------------------------------------------ misc */
.empty { text-align: center; padding: 42px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { font-size: 30px; color: var(--subtle); }
.empty strong { color: var(--text); font-size: 15px; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item strong { display: block; font-size: 13px; font-weight: 600; }
.list-item small { display: block; color: var(--muted); font-size: 12px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 18px; }
.kv div span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.kv div strong { font-weight: 600; font-size: 13.5px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); font-size: 13px; }
.callout.t-warning { background: color-mix(in srgb, var(--c-improve) 10%, transparent); border-color: color-mix(in srgb, var(--c-improve) 35%, transparent); }
.callout.t-danger { background: color-mix(in srgb, var(--c-critical) 10%, transparent); border-color: color-mix(in srgb, var(--c-critical) 35%, transparent); }
.callout .ic { flex: none; margin-top: 2px; }

/* profile hero */
.hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero h1 { font-size: 24px; }
.hero .meta { flex: 1; min-width: 240px; }
.hero .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring .lbl strong { font-size: 20px; font-family: var(--mono); }
.ring .lbl span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* AI */
.ai-card { position: relative; border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, color-mix(in srgb, var(--primary) 70%, transparent), rgba(124, 92, 255, .6), color-mix(in srgb, var(--c-exceeds) 40%, transparent)) border-box; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: linear-gradient(135deg, var(--primary), #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-tag .ic { color: var(--primary); }
.ai-text p { margin-bottom: 10px; color: var(--text); }
.ai-text p:last-child { margin-bottom: 0; }
.ai-text b { color: var(--text); }
.ai-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ai-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.ai-list li .ic { margin-top: 3px; flex: none; }
.rec { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.rec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-head strong { font-size: 13.5px; }
.rec p { font-size: 12.8px; color: var(--muted); }
.thinking { display: inline-flex; gap: 4px; align-items: center; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: blink 1s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.priority-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.priority-row:last-child { border-bottom: 0; }
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.msg { max-width: 92%; padding: 10px 13px; border-radius: 13px; font-size: 13px; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.bot ul { margin: 6px 0 0; padding-left: 18px; }

/* ------------------------------------------------------------ assessment form */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.form-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1200px) { .form-layout { grid-template-columns: 1fr; } .form-side { position: static; } }
.check-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px 7px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 12.5px; background: var(--surface-2); }
.ct.active { border-color: color-mix(in srgb, var(--primary) 50%, transparent); background: var(--primary-soft); }
.trc { display: inline-flex; gap: 3px; }
.trc button { width: 26px; height: 24px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; color: var(--muted); }
.trc button[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: #fff; }
.trc button[data-v='C'][aria-pressed='true'] { background: var(--c-exceeds); border-color: var(--c-exceeds); }
.trc button[data-v='R'][aria-pressed='true'] { background: var(--c-improve); border-color: var(--c-improve); }
.sec { border: 1px solid var(--border); border-radius: 13px; overflow: hidden; margin-bottom: 12px; background: var(--surface); }
.sec-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; }
.sec-head h3 { font-size: 13.5px; font-weight: 700; flex: 1; }
.sec-head .chev { transition: transform .2s; color: var(--muted); }
.sec.collapsed .sec-head .chev { transform: rotate(-90deg); }
.sec.collapsed .sec-body { display: none; }
.sec.na { opacity: .6; }
.sec-body { padding: 4px 0; }
.item { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px; border-bottom: 1px dashed var(--border); }
.item:last-child { border-bottom: 0; }
.item .lbl { font-size: 13px; display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.item .comp { font-size: 10px; font-family: var(--mono); color: var(--subtle); border: 1px solid var(--border); padding: 0 5px; border-radius: 5px; }
.item .input { height: 30px; max-width: 240px; font-size: 12.5px; }
.dual { display: flex; gap: 14px; flex-wrap: wrap; }
.dual > div { display: flex; align-items: center; gap: 6px; }
.dual > div > span { font-size: 10.5px; font-weight: 700; color: var(--muted); width: 22px; }
.scale { display: inline-flex; gap: 3px; }
.grade-control { display: inline-flex; align-items: center; gap: 10px; }
.technical-outcome { display: inline-flex; gap: 4px; }
.outcome-box { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 36px; height: 28px; padding: 0 4px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--muted); font: 600 11px var(--mono); }
.outcome-box input { width: 12px; height: 12px; margin: 0; opacity: 1; }
.outcome-box.unsatisfactory { border-color: var(--c-critical); color: var(--c-critical); }
.outcome-box.unsatisfactory input { accent-color: var(--c-critical); }
.outcome-box.satisfactory { border-color: var(--c-exceeds); color: var(--c-exceeds); }
.outcome-box.satisfactory input { accent-color: var(--c-exceeds); }
.outcome-box.selected.unsatisfactory { background: #dc2626; border-color: #dc2626; color: #fff; }
.outcome-box.selected.satisfactory { background: #15803d; border-color: #15803d; color: #fff; }
.outcome-box.selected input { appearance: none; border: 1px solid #ffffffb3; border-radius: 2px; background: transparent; position: relative; }
.outcome-box.selected input:checked::after { content: '✓'; display: grid; place-items: center; width: 10px; height: 10px; color: #fff; font: 700 10px/1 sans-serif; }
.dual.technical-dual { flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .item { grid-template-columns: 1fr; gap: 8px; } .grade-control { gap: 8px; } }
.scale button { width: 30px; height: 28px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--surface-2); font-family: var(--mono); font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted); transition: background .1s, color .1s; }
.scale button:hover:not(:disabled) { border-color: var(--primary); color: var(--text); }
.scale button:disabled { cursor: default; }
.scale button[aria-pressed='true'][data-v='1'] { background: var(--c-critical); border-color: var(--c-critical); color: #fff; }
.scale button[aria-pressed='true'][data-v='2'] { background: var(--c-improve); border-color: var(--c-improve); color: #111; }
.scale button[aria-pressed='true'][data-v='3'] { background: var(--subtle); border-color: var(--subtle); color: #fff; }
.scale button[aria-pressed='true'][data-v='4'] { background: var(--c-meets); border-color: var(--c-meets); color: #fff; }
.scale button[aria-pressed='true'][data-v='5'] { background: var(--c-exceeds); border-color: var(--c-exceeds); color: #04140e; }
.scale-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.scale-legend b { font-family: var(--mono); color: var(--text); margin-right: 4px; }
.result-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.result-opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 11px; cursor: pointer; font-weight: 600; font-size: 13px; background: var(--surface-2); }
.result-opt input { accent-color: var(--primary); }
.result-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.live-score { text-align: center; padding: 6px 0 2px; }
.live-score strong { font-size: 40px; font-family: var(--mono); line-height: 1; }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 14px; margin-top: 14px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 13px; }

.assessment-print { display: none; }
@page { size: A4 portrait; margin: 10mm; }
@media print {
  .sidebar, .topbar, .form-actions, .form-side .no-print, .no-print { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; color: #000; }
  .view { padding: 0; }
  .form-layout { grid-template-columns: 1fr; }
  .card, .sec { box-shadow: none; break-inside: avoid; }
  .sec.collapsed .sec-body { display: block; }
  body:has(.assessment-print) .view > :not(.assessment-print), body:has(.assessment-print) #modalRoot, body:has(.assessment-print) #toastRoot, body:has(.assessment-print) #chartTip, body:has(.assessment-print) .skip-link { display: none !important; }
  .assessment-print { display: block; color: #111827; background: #fff; font: 8pt/1.2 'Inter', sans-serif; --primary: #0b6fe0; --c-std: #64748b; --muted: #475569; --subtle: #64748b; --text: #111827; --border: #cbd5e1; --border-strong: #cbd5e1; --surface: #fff; --surface-2: #f8fafc; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-page { position: relative; min-height: 275mm; padding-bottom: 7mm; box-sizing: border-box; }
  .print-page-one { break-after: page; }
  .print-report-head { display: flex; align-items: center; gap: 4mm; border-bottom: 0.4mm solid #0b6fe0; padding-bottom: 1mm; margin-bottom: 2mm; }
  .print-report-head img { width: 17mm; height: 11mm; object-fit: contain; }
  .print-report-head h1 { font-size: 13pt; margin: 0 0 1mm; }
  .print-report-head p { font-size: 7.5pt; color: #475569; }
  .print-panel { border: 0.2mm solid #cbd5e1; border-radius: 1.5mm; padding: 1.5mm; margin-bottom: 2mm; }
  .assessment-print h2 { font-size: 9pt; margin: 0 0 1.5mm; color: #0f172a; }
  .assessment-print h2 small { font-size: 6.5pt; font-weight: 400; }
  .print-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1mm 3mm; }
  .print-field { min-width: 0; overflow-wrap: anywhere; }
  .print-field > span { display: block; font-size: 6.5pt; color: #475569; margin-bottom: 0.5mm; }
  .print-field > strong { font-size: 7.5pt; }
  .print-page-one .print-field > span { display: inline; margin: 0; }
  .print-page-one .print-field > span::after { content: ': '; }
  .print-checks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0.5mm 3mm; font-size: 6.5pt; }
  .print-checks > div { display: flex; align-items: baseline; gap: 1mm; }
  .print-checks b { border: 0.2mm solid #94a3b8; min-width: 3.5mm; text-align: center; }
  .print-checks .chosen b { background: #dbeafe; color: #0b539c; border-color: #0b539c; }
  .print-skills { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4mm; align-items: start; }
  .print-section { break-inside: avoid; margin-bottom: 0.8mm; }
  .print-section h3 { display: flex; justify-content: space-between; gap: 1mm; font-size: 7.2pt; line-height: 1.1; background: #e8eff8; padding: 0.4mm 0.8mm; margin: 0; }
  .print-section h3 > small { flex: none; color: #475569; }
  .print-section table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 6.8pt; line-height: 1.1; }
  .print-section th { font-size: 6pt; color: #475569; text-align: left; font-weight: 500; }
  .print-section td, .print-section th { padding: 0.25mm 0.8mm; border-bottom: 0.15mm solid #e2e8f0; vertical-align: top; }
  .print-section td:not(:first-child), .print-section th:not(:first-child) { width: 9mm; text-align: center; white-space: nowrap; }
  .print-section small { font-size: 5.5pt; color: #64748b; }
  .print-grade { font-family: var(--mono); font-size: 7pt; }
  .print-outcome { display: inline-block; min-width: 2.5mm; border-radius: 0.5mm; color: #fff; padding: 0.2mm; font-size: 5.5pt; }
  .print-outcome.u { background: #dc2626; }
  .print-outcome.s { background: #15803d; }
  .print-crm-heading { break-after: avoid; }
  .print-report-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 3mm; border-top: 0.2mm solid #cbd5e1; padding-top: 1.5mm; font-size: 6pt; color: #475569; }
  .print-comment { margin: 2mm 0; break-inside: avoid; }
  .print-comment h3 { font-size: 8pt; margin: 0 0 1mm; }
  .print-comment > div { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 17mm; border: 0.2mm solid #e2e8f0; padding: 2mm; font-size: 8pt; line-height: 1.35; }
  .print-debrief { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3mm; align-items: start; }
  .print-debrief > h2 { grid-column: 1 / -1; }
  .print-debrief .print-comment { min-width: 0; margin: 0; }
  .print-debrief .print-comment > div { min-height: 35mm; font-size: 7.3pt; line-height: 1.2; }
  .print-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; align-items: start; }
  .print-result { font-size: 16pt; font-weight: 700; margin: 2mm 0 4mm; }
  .summary-fields { grid-template-columns: 1fr 1fr; }
  .print-radar { min-width: 0; text-align: center; }
  .print-radar h3 { font-size: 9pt; }
  .print-radar svg { display: block; width: 100%; height: auto; max-height: 80mm; }
  .print-radar p { font-size: 7pt; margin-top: 1mm; }
  .print-recommend { margin-top: 3mm; font-size: 8pt; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------ auth / login */
.auth { min-height: 100vh; display: flex; background: var(--bg); }
.auth-hero { position: relative; flex: 1.2; min-width: 0; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 56px; color: #fff; }
.auth-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 10, 26, .45) 0%, rgba(4, 10, 26, .35) 35%, rgba(4, 10, 26, .94) 100%), linear-gradient(90deg, rgba(4, 10, 26, .55), transparent 70%); }
.auth-hero-top { position: absolute; top: 36px; left: 56px; right: 56px; display: flex; align-items: center; }
.auth-hero-content { max-width: 620px; }
.auth-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 18px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.auth-chip .ic { color: #f2c14e; }
.auth-hero h2 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.auth-hero h2 em { font-style: normal; color: #f2c14e; }
.auth-hero-content > p { margin-top: 14px; color: rgba(231, 238, 250, .84); font-size: 15px; line-height: 1.6; text-wrap: pretty; }

.auth-panel { width: min(520px, 100%); flex: none; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); padding: 20px 40px; min-height: 100vh; }
.auth-panel-top { display: flex; justify-content: flex-end; }
.auth-card { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 380px; margin: 0 auto; padding: 8px 0 24px; }
.auth-logo { width: min(288px, 80%); aspect-ratio: 1.2; height: auto; object-fit: cover; margin: 0 auto; }
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.input-wrap { position: relative; }
.input-wrap > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--subtle); font-size: 16px; pointer-events: none; }
.input-wrap .input { padding-left: 40px; height: 44px; }
.input-wrap .input.has-toggle { padding-right: 46px; }
.input-wrap .pw-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border-color: transparent; background: transparent; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-weight: 600; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.btn-block { width: 100%; height: 44px; font-size: 14px; }
.auth-error { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--c-critical) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c-critical) 35%, transparent); color: var(--c-critical); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; color: var(--subtle); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.demo-list { display: flex; flex-direction: column; gap: 8px; }
.demo-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; text-align: left; color: var(--text); transition: border-color .15s, background .15s; }
.demo-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.demo-btn > .ic { color: var(--subtle); }
.demo-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 16px; flex: none; }
.demo-btn .meta { flex: 1; min-width: 0; line-height: 1.3; }
.demo-role { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.demo-btn strong { display: block; font-size: 13px; }
.demo-btn small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-note { margin-top: 14px; text-align: center; font-size: 12px; color: var(--subtle); }
.auth-note code { font-family: var(--mono); color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border); }
.auth-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--subtle); padding-top: 14px; border-top: 1px solid var(--border); }
.dev-by { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--subtle); }
.dev-by img { height: 28px; width: auto; }
.dev-by.on-hero { color: rgba(231, 238, 250, .75); font-size: 12px; }
.dev-by.on-hero img { height: 40px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 960px) {
  .auth-hero { display: none; }
  .auth-panel { width: 100%; border-left: 0; padding: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) { .shake, .spinner { animation: none; } }
