:root {
  color-scheme: dark; --bg: #0d1422; --panel: #141e30; --text: #edf2fa;
  --muted: #a5b3cb; --border: #2a3850; --primary: #8cadff; --success: #76d6b1;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 90% 0, #17294a 0, transparent 50%), var(--bg); color: var(--text); min-height: 100vh; line-height: 1.55; }
a { color: var(--primary); } button, input { font: inherit; } button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a, button, input { outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--primary); }
.skip-link { position: fixed; top: -90px; left: 20px; z-index: 20; background: var(--text); color: var(--bg); padding: 10px; }
.skip-link:focus { top: 10px; }
.navbar { border-bottom: 1px solid var(--border); background: #0d1422cc; }
.navbar .container { max-width: 1152px; margin: auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--text); letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--primary); color: #101c33; border-radius: 9px; font-size: 17px; }
.nav-links { display: flex; gap: 6px; } .nav-links a { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current] { background: #21304b; color: var(--text); }
.content { max-width: 1152px; margin: auto; padding: 28px 24px 32px; }
.workspace-line { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; min-height: 28px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.demo-label { margin-left: auto; padding: 3px 8px; border: 1px solid var(--border); border-radius: 5px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 28px 0; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--primary); margin: 0 0 10px; }
h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -.045em; margin: 0 0 12px; }
h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 10px; }
p { margin: 0 0 12px; } .muted { color: var(--muted); } .small { font-size: 12px; line-height: 1.6; }
.grid { display: grid; gap: 20px; margin-top: 20px; } .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .stat { background: linear-gradient(120deg, #172238, #131d2f); border: 1px solid var(--border); border-radius: 16px; padding: 24px; min-width: 0; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-heading h2, .card-heading p { margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; }
.stat > span { font-size: 12px; } .stat > strong { font-size: 36px; line-height: 1.3; letter-spacing: -.04em; }
.stat .stat-text { font-size: 21px; min-height: 47px; display: flex; align-items: center; }
.step { display: block; color: var(--primary); font-size: 12px; margin-bottom: 20px; }
.action-card p { max-width: 400px; } .text-link { display: inline-flex; gap: 20px; align-items: center; font-size: 13px; text-decoration: none; font-weight: 600; margin-top: 6px; }
.text-link:hover { text-decoration: underline; }
.notice { margin-top: 22px; background: #13273166; border: 1px solid #31534e; border-radius: 12px; padding: 18px 22px; font-size: 13px; }
.notice p { color: var(--muted); margin: 6px 0 0; max-width: 940px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-align: center; border: 1px solid transparent; border-radius: 9px; padding: 10px 15px; background: var(--primary); color: #0b1730; font-weight: 650; font-size: 13px; text-decoration: none; min-height: 42px; transition: background .15s; }
.btn:hover { background: #a9c2ff; } .btn.secondary { background: #18253b; border-color: #3a4b66; color: var(--text); }
.btn.secondary:hover { background: #243653; } .btn.danger { background: #933d4a; color: #fff; border-color: #c16471; }
.btn.danger:hover { background: #ac4858; } .btn.compact { padding: 6px 10px; min-height: 34px; font-size: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.field { display: grid; gap: 6px; margin-top: 16px; } label { font-size: 13px; font-weight: 600; }
.optional { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
input { width: 100%; padding: 11px 12px; border: 1px solid #3a4b66; border-radius: 9px; background: #0d1728; color: var(--text); }
input::placeholder { color: #7e90ae; } #capture-note { margin-top: 14px; }
.video-shell { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; border: 1px solid #344563; border-radius: 12px; background: #0b1322; overflow: hidden; }
video { display: block; width: 100%; height: 100%; object-fit: contain; }
.camera-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; padding: 20px; color: var(--muted); font-size: 12px; pointer-events: none; }
.camera-placeholder strong { font-size: 16px; color: var(--text); font-weight: 500; }
.camera-outline { display: block; width: 64px; height: 76px; border: 1px dashed #53739e; border-radius: 30px 30px 24px 24px; margin-bottom: 8px; }
.camera-card > .small { margin: 14px 0 0; } .pill { display: inline-flex; padding: 3px 8px; background: #24334d; color: #c5d7f4; border-radius: 6px; font-size: 10px; line-height: 1.6; }
.feedback { padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; line-height: 1.6; margin: 16px 0 0; background: #0f192b; }
.feedback.success { border-color: #36715e; color: #a5edd2; background: #153329; }
.feedback.error { border-color: #a85c67; color: #ffc5ce; background: #371c28; }
.status-box { border: 1px solid #3e7766; background: #16352e; border-radius: 10px; padding: 15px; margin-top: 14px; font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.metric { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .metric .label { font-size: 10px; color: #a7cebe; }
.metric .value { font-size: 13px; overflow-wrap: anywhere; }
.profile-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.profile-list li { padding: 14px; background: #0e192b; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-list strong { display: block; overflow-wrap: anywhere; font-size: 14px; } .profile-list .user-detail { font-size: 12px; color: var(--muted); margin-top: 3px; }
.profile-list .empty { min-height: 90px; justify-content: center; text-align: center; font-size: 13px; color: var(--muted); }
.profiles-card { margin-top: 20px; }
dialog { color: var(--text); background: #172238; border: 1px solid #405373; border-radius: 16px; padding: 28px; max-width: min(460px, calc(100vw - 32px)); width: 100%; }
dialog::backdrop { background: #040a17bb; } dialog p { color: var(--muted); font-size: 13px; }
dialog .delete-name { color: var(--text); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; } .dialog-actions { justify-content: flex-end; }
.footer { max-width: 1152px; margin: auto; padding: 0 24px 30px; font-size: 11px; color: #90a2be; } .footer p { margin: 0 0 5px; }
.hidden, [hidden] { display: none !important; }
@media (max-width: 760px) {
  .navbar .container { align-items: flex-start; flex-direction: column; padding: 16px; } .nav-links { width: 100%; justify-content: space-between; } .nav-links a { padding: 8px 12px; }
  .content { padding: 20px 16px; } .page-heading { align-items: flex-start; flex-direction: column; margin: 20px 0; }
  .stats-grid { grid-template-columns: 1fr; } .stat { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .stat strong, .stat .stat-text { grid-column: 2; grid-row: 1/3; min-height: 0; font-size: 23px; justify-content: flex-end; }
  .two { grid-template-columns: 1fr; } .card { padding: 20px; } .card-heading { flex-wrap: wrap; } .metrics { gap: 6px; }
  .footer { padding: 8px 16px 24px; } .workspace-line { align-items: flex-start; } .demo-label { white-space: nowrap; } .btn { min-height: 44px; }
  .profile-list li { align-items: flex-start; } .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
