:root {
  --ink: #171c29;
  --ink-soft: #384052;
  --yellow: #ffcf22;
  --yellow-light: #fff7d4;
  --paper: #fffefa;
  --canvas: #f7f7f3;
  --line: #171c29;
  --muted: #657080;
  --green: #1c7154;
  --border: #d8dce0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
}
body { background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button { border: 2px solid var(--ink); border-radius: 0; color: var(--ink); background: #fff; font-weight: 750; transition: transform .15s, box-shadow .15s, background .15s; }
button:not(:disabled):hover { background: var(--yellow-light); box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px,-2px); }
button:not(:disabled):active { transform: translate(0,0); box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
button:disabled { opacity: .48; }
.primary { background: var(--yellow); border-color: var(--ink); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.primary:hover { background: #ffe271; }
a { color: #765900; }
aside { width: 262px; background: var(--ink); color: #fff; border-right: 3px solid var(--ink); padding: 30px 18px 22px; }
.brand { gap: 12px; padding: 1px 8px; color: #fff; font-size: 25px; font-weight: 800; letter-spacing: -.9px; }
.brand span { color: inherit; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; background: var(--yellow); color: var(--ink)!important; border: 2px solid #fff; box-shadow: 3px 3px 0 #fff; font-size: 22px; line-height: 1; transform: rotate(-4deg); }
.brand-period { color: var(--yellow)!important; }
.workspace { margin: 52px 11px 13px; display: flex; justify-content: space-between; gap: 6px; color: #a8b0bc; font-weight: 750; letter-spacing: 1.2px; }
.workspace span { color: var(--yellow); }
.sidebar-intro { display: none; margin: 62px 10px 0; }
.sidebar-intro > span { color: var(--yellow); font-size: 10px; letter-spacing: 1.8px; font-weight: 850; }
.sidebar-intro strong { display: block; margin-top: 16px; color: #fff; font-size: 32px; line-height: 1.12; letter-spacing: -1.5px; }
.sidebar-intro strong span { color: var(--yellow); }
.sidebar-intro p { margin-top: 20px; color: #a9b1bd; font-size: 12px; }
body:not(.is-authenticated) aside nav { display: none; }
body:not(.is-authenticated) .sidebar-intro { display: block; }
nav { gap: 5px; }
.nav { width: 100%; padding: 13px 12px; color: #d3d6df; font-size: 12px; border: 2px solid transparent; background: transparent; text-align: left; font-weight: 650; line-height: 1.2; }
.nav:hover:not(:disabled) { background: #2b3243; color: #fff; box-shadow: none; transform: none; }
.nav.active { background: var(--yellow); color: var(--ink); border-color: #fff; box-shadow: 3px 3px 0 #fff; font-weight: 800; }
.nav.active:hover:not(:disabled) { background: var(--yellow); color: var(--ink); }
.nav span { float: right; min-width: 18px; text-align: center; background: var(--yellow); color: var(--ink); font-size: 10px; }
.nav.active span { background: var(--ink); color: #fff; }
.lab-nav { margin-top: 15px; border-top: 1px solid #475061; padding-top: 17px; }
.sidebar-bottom { border-top: 1px solid #475061; padding: 20px 10px 4px; color: #fff; }
.sidebar-status { display: flex; align-items: center; gap: 3px; font-weight: 700; }
.sidebar-bottom small { color: #a8b0bc; display: block; margin-top: 4px; }
.dot { background: #5edbaa; box-shadow: 0 0 0 3px #5edbaa33; }
main { margin-left: 262px; }
header { height: 79px; padding: 0 clamp(22px,3vw,50px); border-bottom: 2px solid var(--ink); background: #fff; }
.breadcrumb { font-weight: 800; color: #7d8490; letter-spacing: 1.5px; }
.breadcrumb span { color: #a2aab5; }
.breadcrumb b { color: var(--ink); font-weight: 800; }
.header-right { display: flex; align-items: center; gap: 17px; }
.header-time { border-right: 1px solid #cdd1d7; padding-right: 18px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: #8b929e; }
#connection { padding: 8px 12px; border: 1px solid #d5d9df; background: #f8f9f7; color: var(--ink-soft); font-weight: 700; font-size: 11px; }
.page { max-width: 1700px; width: 100%; margin: 0 auto; padding: clamp(24px,3.2vw,52px) clamp(22px,3vw,50px) 56px; }
.eyebrow { color: #9d7300; font-weight: 900; letter-spacing: 1.8px; font-size: 10px; }
h1 { color: var(--ink); font-size: clamp(34px,3.6vw,54px); line-height: 1.09; letter-spacing: -2.5px; font-weight: 820; }
h2 { color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
p { color: var(--muted); line-height: 1.65; }
.accent { color: #e4ad00; }
.title-row { gap: 28px; align-items: end; }
.title-row p { margin-bottom: 0; max-width: 640px; font-size: 14px; }
.title-row > button { white-space: nowrap; min-height: 43px; background: #fff; }
.overview-hero { position: relative; padding: 32px 36px; border: 2px solid var(--ink); background: #fff; box-shadow: 7px 7px 0 var(--ink); overflow: hidden; }
.overview-hero::after { content: ''; position: absolute; right: 10%; top: -92px; width: 290px; height: 290px; border-radius: 50%; background: radial-gradient(circle,#ffcf2244 0%,#ffcf2211 52%,transparent 70%); pointer-events: none; }
.overview-hero h1 { margin: 13px 0 14px; }
.overview-hero .eyebrow { display: inline-block; padding: 7px 10px; background: var(--yellow); border: 1px solid var(--ink); color: var(--ink); }
.overview-hero button { position: relative; z-index: 1; }
.stats { gap: 17px; margin-top: 28px; }
.stats article { min-width: 0; padding: 21px 22px 19px; border: 2px solid var(--ink); border-radius: 0; background: #fff; box-shadow: 4px 4px 0 #dfe1e1; }
.stats article:nth-child(3) { background: var(--yellow-light); }
.stats article:nth-child(4) { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.stats span { color: var(--ink-soft); font-weight: 750; font-size: 11px; }
.stats strong { margin: 18px 0 10px; font-size: clamp(31px,3vw,43px); font-weight: 850; letter-spacing: -2px; line-height: 1; }
.stats small { color: #69717c; font-size: 10px; line-height: 1.4; }
.stats article:nth-child(4) span, .stats article:nth-child(4) small { color: #c8cfdb; }
.stats article:nth-child(4) strong { color: var(--yellow); font-size: clamp(29px,2.6vw,40px); }
.section-heading { margin: 44px 0 10px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: 23px; }
.pill { background: var(--yellow-light); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; font-size: 10px; padding: 6px 9px; font-weight: 800; }
.pill.online { background: #dbf2e7; color: #165540; }
.pill.offline { background: #edf0f1; color: #5c6570; }
.pill.review { background: #fff1c0; color: #745200; }
.pill.rejected { background: #fce3dc; color: #803d30; }
.presence-help { color: #66707d; font-size: 12px; }
.grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.device, .match, .panel { border: 2px solid var(--ink); border-radius: 0; background: #fff; box-shadow: 4px 4px 0 #dfe1e1; }
.device { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.device h3 { color: var(--ink); font-size: 18px; letter-spacing: -.4px; }
.device small { color: var(--muted); }
.device .device-top { padding-bottom: 13px; border-bottom: 1px solid #e0e3e7; }
.device .activity-status { padding: 9px 11px; background: #f4f5f2; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.device dl { margin: 19px 0; padding: 13px 0; border-top: 1px solid #e3e6e8; border-bottom: 1px solid #e3e6e8; color: var(--ink-soft); }
.device dd { color: var(--ink); font-weight: 800; }
.device button { margin-top: 9px; }
.device-camera {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  background: #161c27;
  overflow: hidden;
}
.device-camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.device-camera-status {
  z-index: 1;
  max-width: 90%;
  padding: 5px 8px;
  background: #161c27;
  color: #f2f4f8;
  font-size: 12px;
  text-align: center;
}
.device-camera-status.is-live { position: absolute; top: 8px; left: 8px; font-weight: 800; letter-spacing: .08em; }
.device-camera-status.is-live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #ff5656; }
.device-diagnostics { min-width: 240px; max-width: 300px; white-space: normal; }
.device-diagnostics small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.5; }
.empty { border: 2px dashed #aab1ba; border-radius: 0; background: #fff; color: var(--muted); }
.empty b { color: var(--ink); font-weight: 800; }
.callout { margin-top: 33px; padding: 19px 23px; background: #fff9df; border: 2px solid var(--ink); border-left: 9px solid var(--yellow); border-radius: 0; font-size: 12px; }
.callout b { color: var(--ink); font-size: 13px; }
.callout p { color: var(--ink-soft); }
label { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
input, select { border: 2px solid #a8afb9; border-radius: 0; color: var(--ink); padding: 11px 12px; background: #fff; }
input:hover, select:hover { border-color: var(--ink); }
input:focus, select:focus { outline: 3px solid #ffe17b; outline-offset: 2px; border-color: var(--ink); }
.filters { padding: 17px; border: 2px solid var(--ink); background: #fff; align-items: end; }
.filters button { min-height: 43px; }
.table-wrap { border: 2px solid var(--ink); border-radius: 0; box-shadow: 4px 4px 0 #dfe1e1; }
th { background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; font-weight: 800; }
td { border-top: 1px solid #e0e3e6; color: var(--ink-soft); }
tbody tr:nth-child(even) { background: #fafaf6; }
tbody tr:hover { background: #fff9df; }
.pagination { color: var(--ink-soft); font-weight: 700; }
.match { gap: 24px; }
.match h3 { font-size: 20px; color: var(--ink); }
.match p { color: var(--ink-soft); }
.panel { padding: 27px; }
.panel li { color: var(--ink-soft); }
pre { background: #f4f5f2; color: var(--ink-soft); border: 1px solid #cbd1d6; border-radius: 0; }
.login { width: min(700px,calc(100% - 40px)); max-width: none; margin: clamp(32px,7vh,100px) auto; padding: clamp(30px,4vw,55px); box-shadow: 8px 8px 0 var(--ink); }
.login h1 { font-size: clamp(37px,4vw,55px); line-height: 1.07; margin: 15px 0 22px; }
.login > p { max-width: 520px; font-size: 15px; }
.login form { display: grid; gap: 16px; }
.login .primary { margin: 15px 0; min-height: 48px; }
.login small { color: var(--muted); }
.demo-label { color: #7d6000; font-weight: 900; }
.notice { color: #783c27; }
.notice:not(:empty) { border: 2px solid #a34e30; border-radius: 0; background: #fff0e8; }
footer { background: #fff; border-top: 2px solid var(--ink); color: #737b85; font-size: 11px; font-weight: 700; }
footer span { color: var(--ink); }
dialog { border: 2px solid var(--ink); border-radius: 0; box-shadow: 9px 9px 0 var(--ink); padding: 28px; }
dialog::backdrop { background: #101624b8; }
.map-canvas { border: 2px solid var(--ink); border-radius: 0; }
.map-user { border: 2px solid #bcc3cb; text-align: left; background: #fff; }
.map-user:hover:not(:disabled) { border-color: var(--ink); }
.map-dot.online { background: #209568; }.map-dot.stale { background: #dba900; }.map-dot.offline { background: #7a8490; }
.map-empty { border: 1px solid var(--ink); border-radius: 0; box-shadow: 3px 3px 0 var(--ink); }
.settings-form .toggle { color: var(--ink); font-weight: 700; }
.settings-form #settings-status { color: var(--green); }
.replay-grid article { border-radius: 0; border-color: var(--ink); }
@media(max-width:1200px) { .stats { grid-template-columns: repeat(2,minmax(0,1fr)); } .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:900px) { aside { width: 220px; } main { margin-left: 220px; } .header-time { display: none; } .overview-hero { align-items: start; flex-direction: column; } }
@media(max-width:760px) {
  aside { position: static; width: 100%; padding: 16px 16px 12px; }
  .brand { font-size: 20px; }.brand-mark { width: 31px; height: 31px; font-size: 18px; }
  .workspace, .sidebar-bottom { display: none; }
  .sidebar-intro, body:not(.is-authenticated) .sidebar-intro { display: none; }
  nav { display: flex; margin-top: 17px; gap: 10px; padding: 4px 0 8px; overflow-x: auto; scrollbar-width: thin; }
  .nav { flex: 0 0 auto; width: auto; white-space: nowrap; color: #e7eaf0; padding: 9px 12px; }
  .nav.active { box-shadow: 2px 2px 0 #fff; }.lab-nav { margin: 0; border: 0; padding: 9px 12px; }
  main { margin-left: 0; }.page { padding: 23px 17px 45px; }
  header { height: 57px; padding: 0 17px; }.breadcrumb { font-size: 9px; letter-spacing: .5px; }
  #connection { font-size: 9px; padding: 6px; max-width: 160px; text-align: right; }
  .overview-hero { padding: 24px; box-shadow: 5px 5px 0 var(--ink); }
  .overview-hero h1 { font-size: clamp(31px,8vw,43px); letter-spacing: -1.6px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 22px; }
  .stats article { padding: 17px 14px; }.stats span { font-size: 10px; }.stats strong { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }.section-heading { margin-top: 34px; }
  .filters { gap: 12px; }.filters label { min-width: min(100%,160px); }
  .login { width: calc(100% - 34px); margin: 30px auto; padding: 28px 23px; }
  .map-toolbar { gap: 10px; }.map-toolbar label { min-width: 130px; }
  footer { padding: 18px; }.match { align-items: stretch; }.actions button { flex: 1; }
}
@media(max-width:420px) { .stats { grid-template-columns: 1fr 1fr; } .stats article { min-height: 120px; } .stats small { font-size: 9px; } .breadcrumb { max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media(prefers-reduced-motion:reduce) { button { transition: none; } }
