/* ==================================================================
   TraceLink — stylesheet
   Layout: fixed dark rail + light workspace. Data-dense, low chrome.
   Serial numbers and IDs are always mono — they are the spine of the
   product, so they get their own typeface.
   ================================================================== */

/* ------------------------------------------------------------ tokens */
:root {
  --ink:        #11151B;
  --ink-2:      #191F28;
  --ink-3:      #232B36;
  --canvas:     #F2F4F6;
  --surface:    #FFFFFF;
  --line:       #E3E7EC;
  --line-soft:  #EDF0F3;
  --text:       #171C24;
  --text-2:     #4C5563;
  --muted:      #79818E;

  --accent:     #2B54D4;
  --accent-ink: #1C3A9B;
  --accent-bg:  #EDF1FD;

  --ok:         #0F6B48;
  --ok-bg:      #E6F3ED;
  --warn:       #8A5A05;
  --warn-bg:    #FBF1DF;
  --bad:        #A02C2C;
  --bad-bg:     #FAEAEA;
  --neutral:    #55606E;
  --neutral-bg: #EDEFF2;

  --radius:     7px;
  --radius-lg:  10px;
  --shadow:     0 1px 2px rgba(17, 21, 27, .05), 0 1px 3px rgba(17, 21, 27, .04);
  --shadow-lg:  0 10px 34px rgba(17, 21, 27, .16);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --rail: 232px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; margin: 0; }
h1 { font-size: 21px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .92em; letter-spacing: -.02em; }
.num  { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny  { font-size: 11px; }
.upper { text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ------------------------------------------------------------- shell */
.shell { display: flex; min-height: 100vh; }

.rail {
  width: var(--rail); flex: 0 0 var(--rail);
  background: var(--ink); color: #C7CEDA;
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 40;
}

.rail-brand {
  padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 10px;
}
.mark {
  width: 26px; height: 26px; border-radius: 6px; flex: 0 0 26px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 13px;
}
.rail-brand b { color: #fff; font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.rail-brand span { display: block; font-size: 10.5px; color: #7F8A9C; letter-spacing: .04em; text-transform: uppercase; }

.rail-nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nav-group { margin-bottom: 16px; }
.nav-group > p {
  margin: 0 0 6px; padding: 0 8px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6A7484; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 6px; margin-bottom: 1px;
  color: #B9C2CF; font-size: 13.5px; cursor: pointer;
  text-decoration: none;
}
.nav-item:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.nav-item.on { background: var(--ink-3); color: #fff; font-weight: 500; box-shadow: inset 2px 0 0 var(--accent); }
.nav-item .ic { width: 15px; flex: 0 0 15px; opacity: .8; }
.nav-item .pill {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 20px;
}
.nav-item .pill.amber { background: #B87A11; }

.rail-foot { border-top: 1px solid rgba(255,255,255,.07); padding: 12px; }
.who { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  background: var(--ink-3); color: #fff; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 600; font-family: var(--display);
}
.who b { color: #fff; font-size: 12.5px; font-weight: 500; display: block; line-height: 1.25; }
.who span { color: #7F8A9C; font-size: 11px; }
.linkout {
  display: block; margin-top: 10px; text-align: center;
  font-size: 11.5px; color: #8A94A4; padding: 5px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,.09); cursor: pointer;
}
.linkout:hover { background: var(--ink-2); color: #fff; text-decoration: none; }

/* ------------------------------------------------------------- main */
.main { flex: 1; margin-left: var(--rail); min-width: 0; }

.topbar {
  height: 54px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
}
.crumb { font-size: 13px; color: var(--muted); }
.crumb b { color: var(--text); font-weight: 500; }

.omni {
  flex: 1; max-width: 420px; position: relative;
}
.omni input {
  width: 100%; height: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 12px 0 32px; font-size: 13px; font-family: var(--sans); background: #FAFBFC;
}
.omni input:focus { background: #fff; border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-bg); }
.omni .sicon { position: absolute; left: 11px; top: 9px; color: var(--muted); }
.omni-results {
  position: absolute; top: 40px; left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto; z-index: 50;
}
.omni-results div { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.omni-results div:hover { background: var(--accent-bg); }

.role-switch { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.role-switch select {
  height: 32px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 8px; font-size: 12.5px; font-family: var(--sans); background: #fff; color: var(--text);
}

.page { padding: 22px; max-width: 1440px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 240px; }
.page-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card-head {
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
}
.card-head .grow { flex: 1; }
.card-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.card-body { padding: 16px; }
.card-foot { padding: 11px 16px; border-top: 1px solid var(--line-soft); background: #FAFBFC; border-radius: 0 0 var(--radius-lg) var(--radius-lg); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 12px; }

.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
.g-6 { grid-template-columns: repeat(6, 1fr); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.mb { margin-bottom: 14px; }
.mb-lg { margin-bottom: 22px; }

/* stat tile */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 15px; box-shadow: var(--shadow); }
.stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.stat .d.up { color: var(--ok); }
.stat .d.warn { color: var(--warn); }
.stat.accent { border-left: 3px solid var(--accent); }
.stat.hot { border-left: 3px solid var(--warn); }

/* ----------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; padding: 9px 14px; background: #FAFBFC;
  border-bottom: 1px solid var(--line); color: var(--muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; white-space: nowrap;
}
table.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tbody tr:hover { background: #FAFBFD; }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tr.fresh { background: #FEFBEF; animation: flash 2.4s ease-out; }
@keyframes flash { 0% { background: #FDF0C8; } 100% { background: #FEFBEF; } }
.tbl .strong { font-weight: 500; }

/* ----------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 500;
  background: var(--neutral-bg); color: var(--neutral); white-space: nowrap;
}
.badge.ok   { background: var(--ok-bg);   color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad  { background: var(--bad-bg);  color: var(--bad); }
.badge.info { background: var(--accent-bg); color: var(--accent-ink); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 13px; font-family: var(--sans); font-weight: 500; cursor: pointer;
  white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: #F7F8FA; border-color: #D2D8E0; text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.danger { background: #fff; border-color: #E7C7C7; color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--neutral-bg); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.block { width: 100%; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg button {
  border: 0; background: #fff; padding: 6px 12px; font-size: 12.5px; font-family: var(--sans);
  cursor: pointer; color: var(--text-2); border-right: 1px solid var(--line);
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: #fff; font-weight: 500; }

/* ------------------------------------------------------------ forms */
.field { margin-bottom: 13px; }
.field > label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; font-size: 13px; font-family: var(--sans); background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
textarea { min-height: 74px; resize: vertical; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.inline > * { flex: 1; min-width: 140px; }
.err { color: var(--bad); font-size: 12px; margin-top: 5px; display: none; }
.err.show { display: block; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #FCFCFD; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.filters input, .filters select { width: auto; min-width: 130px; height: 32px; padding: 0 9px; font-size: 12.5px; }
.filters .grow { flex: 1; min-width: 180px; }

/* ------------------------------------------------------------ modal */
.scrim {
  position: fixed; inset: 0; background: rgba(17,21,27,.42);
  display: grid; place-items: center; z-index: 90; padding: 20px;
  animation: fade .14s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column;
  animation: pop .16s cubic-bezier(.2,.9,.3,1);
}
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6; } }
.modal.wide { max-width: 820px; }
.modal-head { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; }
.modal-head .grow { flex: 1; }
.modal-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; justify-content: flex-end; background: #FAFBFC; border-radius: 0 0 12px 12px; }
.x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 6px; border-radius: 5px; }
.x:hover { background: var(--neutral-bg); color: var(--text); }

/* ------------------------------------------------------------ toast */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 120; display: flex; flex-direction: column; gap: 9px; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 15px; border-radius: 8px;
  font-size: 13px; box-shadow: var(--shadow-lg); max-width: 380px;
  display: flex; gap: 9px; align-items: flex-start;
  animation: slidein .2s cubic-bezier(.2,.9,.3,1);
}
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }
.toast .tick { color: #6EE7B7; font-weight: 700; }
.toast b { display: block; font-weight: 500; }
.toast span { color: #A9B3C2; font-size: 12px; }

/* --------------------------------------------------------- skeleton */
.skel { background: linear-gradient(90deg, #EEF0F3 25%, #F6F7F9 50%, #EEF0F3 75%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 5px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skel-row { height: 13px; margin: 12px 14px; }

/* --------------------------------------------------------- timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline:before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:before {
  content: ''; position: absolute; left: -23px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--muted);
}
.tl-item.produced:before  { border-color: var(--neutral); }
.tl-item.qr:before        { border-color: var(--accent); }
.tl-item.dispatch:before  { border-color: #8A5A05; }
.tl-item.delivered:before { border-color: #0F6B48; }
.tl-item.installed:before { border-color: var(--accent); background: var(--accent); }
.tl-item.warranty:before  { border-color: #0F6B48; background: #0F6B48; }
.tl-item b { font-weight: 500; font-size: 13.5px; display: block; }
.tl-item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------- misc */
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 9px 14px; font-size: 13px; align-items: baseline; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; }

.bar { height: 6px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .5s ease; }
.bar.ok > span { background: var(--ok); }
.bar.warn > span { background: #C08A1E; }

.chart { display: flex; align-items: flex-end; gap: 7px; height: 168px; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart .col i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; transition: height .6s cubic-bezier(.2,.9,.3,1); }
.chart .col i.b2 { background: #9BB0EC; }
.chart .col small { font-size: 10.5px; color: var(--muted); }

.split { display: flex; gap: 3px; height: 9px; border-radius: 5px; overflow: hidden; }
.split i { display: block; height: 100%; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-weight: 500; margin-bottom: 5px; font-size: 14px; }

.note { background: var(--accent-bg); border: 1px solid #D7E0FA; color: var(--accent-ink); padding: 10px 13px; border-radius: var(--radius); font-size: 12.5px; }
.note.warn { background: var(--warn-bg); border-color: #EFDCB6; color: var(--warn); }

/* --------------------------------------------------------- QR sheet */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 11px; }
.qr-cell { border: 1px solid var(--line); border-radius: 7px; padding: 9px; text-align: center; background: #fff; }
.qr-cell canvas, .qr-cell img { width: 100%; height: auto; image-rendering: pixelated; display: block; }
.qr-cell .sn { font-family: var(--mono); font-size: 9.5px; margin-top: 6px; word-break: break-all; color: var(--text-2); }

.progress-wrap { text-align: center; padding: 12px 0; }
.progress-wrap .n { font-family: var(--display); font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- field / PWA */
.phone-stage { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.phone {
  width: 348px; flex: 0 0 348px; background: var(--ink); border-radius: 30px; padding: 11px;
  box-shadow: 0 22px 50px rgba(17,21,27,.24);
}
.phone-screen { background: #F5F6F8; border-radius: 22px; overflow: hidden; height: 660px; display: flex; flex-direction: column; }
.phone-status { background: var(--ink); color: #fff; font-size: 11px; padding: 5px 16px 7px; display: flex; justify-content: space-between; }
.phone-top { background: #fff; padding: 12px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.phone-top b { font-family: var(--display); font-size: 15px; }
.phone-body { flex: 1; overflow-y: auto; padding: 14px; }
.phone-body::-webkit-scrollbar { width: 0; }
.phone-tabs { display: flex; background: #fff; border-top: 1px solid var(--line); }
.phone-tabs button { flex: 1; border: 0; background: none; padding: 9px 4px 11px; font-size: 10.5px; color: var(--muted); cursor: pointer; font-family: var(--sans); }
.phone-tabs button.on { color: var(--accent); font-weight: 600; }
.phone-tabs button .ic { display: block; font-size: 16px; margin-bottom: 2px; }

.scanner {
  background: #10141A; border-radius: 12px; height: 236px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.scan-frame { width: 152px; height: 152px; border: 2px solid rgba(255,255,255,.85); border-radius: 12px; position: relative; }
.scan-frame:before, .scan-frame:after { content: ''; position: absolute; background: var(--accent); }
.scan-line { position: absolute; left: 6px; right: 6px; height: 2px; background: #4ADE80; box-shadow: 0 0 10px #4ADE80; top: 8px; animation: scan 2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 8px; } 50% { top: 140px; } }
.scan-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #C7CEDA; font-size: 11.5px; }

.f-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px; margin-bottom: 11px; }
.f-card .t { font-size: 12px; color: var(--muted); }
.f-card .v { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.phone .field > label { font-size: 11.5px; }
.phone input, .phone select, .phone textarea { font-size: 12.5px; padding: 7px 9px; }
.photo-drop {
  border: 1.5px dashed #C9D0DA; border-radius: 10px; padding: 22px 12px; text-align: center;
  color: var(--muted); font-size: 12.5px; cursor: pointer; background: #FAFBFC;
}
.photo-drop:hover { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-ink); }
.photo-thumb { width: 100%; border-radius: 9px; display: block; border: 1px solid var(--line); }

.stage-note { flex: 1; min-width: 260px; }
.stage-note ol { padding-left: 18px; margin: 10px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.85; }

/* -------------------------------------------------------- login page */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
}
.auth-left {
  background: var(--ink); color: #fff; padding: 52px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(circle at 88% 8%, rgba(43,84,212,.28), transparent 46%);
}
.auth-left h1 { font-size: 34px; line-height: 1.18; letter-spacing: -.028em; max-width: 15ch; }
.auth-left .lede { color: #97A2B3; font-size: 15px; max-width: 44ch; margin-top: 16px; line-height: 1.65; }
.auth-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 30px; margin-top: 40px; max-width: 460px; }
.auth-facts div b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; }
.auth-facts div span { color: #7F8A9C; font-size: 12px; }
.auth-right { display: grid; place-items: center; padding: 40px 28px; background: var(--surface); }
.auth-box { width: 100%; max-width: 372px; }
.auth-box h2 { font-size: 21px; }
.auth-box > p { color: var(--muted); font-size: 13.5px; margin: 5px 0 24px; }
.acct-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.acct {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft); background: #fff;
}
.acct:last-child { border-bottom: 0; }
.acct:hover { background: var(--accent-bg); }
.acct b { font-size: 12.5px; font-weight: 500; display: block; }
.acct span { font-size: 11.5px; color: var(--muted); }
.acct .badge { margin-left: auto; }

/* ------------------------------------------------------ verify page */
.verify-wrap { max-width: 560px; margin: 0 auto; padding: 26px 18px 60px; }
.verify-head { text-align: center; padding: 26px 0 22px; }
.verify-head .mark { margin: 0 auto 12px; width: 34px; height: 34px; font-size: 15px; }
.verify-head h1 { font-size: 19px; }
.verify-head p { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.verify-status {
  border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 16px;
  border: 1px solid; 
}
.verify-status.ok   { background: var(--ok-bg);   border-color: #BFE0D0; color: var(--ok); }
.verify-status.warn { background: var(--warn-bg); border-color: #EDD8B0; color: var(--warn); }
.verify-status.bad  { background: var(--bad-bg);  border-color: #E9C6C6; color: var(--bad); }
.verify-status .big { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.verify-status .sub { font-size: 13px; margin-top: 4px; opacity: .9; }
.verify-photo { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }

/* ------------------------------------------------------ print sheet */
@media print {
  .rail, .topbar, .page-actions, .no-print { display: none !important; }
  .main { margin-left: 0; }
  .card { box-shadow: none; border-color: #ccc; }
  body { background: #fff; }
}

/* ------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .g-6 { grid-template-columns: repeat(3, 1fr); }
  .g-5 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-2-1, .g-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { transform: translateX(-100%); transition: transform .2s; width: 232px; flex-basis: 232px; }
  .rail.open { transform: none; }
  .main { margin-left: 0; }
  .burger { display: inline-flex !important; }
  .auth { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .g-3, .g-4, .g-5, .g-6, .g-2 { grid-template-columns: 1fr 1fr; }
  .omni { max-width: none; }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4, .g-5, .g-6 { grid-template-columns: 1fr; }
  .page { padding: 14px; }
  .phone { width: 100%; flex-basis: auto; }
}
.burger { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
