:root {
  --ink: #0E2340;
  --ink-2: #1B3557;
  --frost: #EEF4F7;
  --frost-2: #E1EBF0;
  --paper: #FFFFFF;
  --cryo: #22A9DC;
  --cryo-deep: #0F7FAE;
  --cryo-wash: #DDF1FA;
  --steel: #5A6A7E;
  --line: #D3DEE5;
  --amber: #E89A2C;
  --amber-wash: #FCEFD9;
  --green: #2E9466;
  --green-wash: #DDF2E7;
  --red: #C8463B;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--frost);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cryo); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 600; margin: 0; line-height: 1.1; letter-spacing: .01em; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0; }
.muted { color: var(--steel); }
.num { font-family: var(--cond); font-weight: 600; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: 56px; padding: 0 20px;
  background: var(--ink); color: #fff;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.flake { width: 24px; height: 24px; color: var(--cryo); }
.wordmark { font-family: var(--cond); font-weight: 700; font-size: 23px; letter-spacing: .06em; }
.roles { display: flex; gap: 4px; background: var(--ink-2); padding: 4px; border-radius: 9px; }
.roles a {
  text-decoration: none; padding: 6px 14px; border-radius: 6px;
  font-weight: 500; font-size: 14px; color: #B9C8D8;
}
.roles a:hover { color: #fff; }
.roles a[aria-current="true"] { background: var(--paper); color: var(--ink); }
.mock-tag { margin-left: auto; font-size: 13px; color: #8EA3BA; }

/* ---------- shared bits ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 99px; font-size: 13px; font-weight: 500;
  background: var(--frost-2); color: var(--ink); white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.ok { background: var(--green-wash); color: #1F6E4B; }
.pill.warn { background: var(--amber-wash); color: #94590A; }
.pill.live { background: var(--cryo-wash); color: var(--cryo-deep); }
.pill.off { background: #F4DEDB; color: var(--red); }
.pill.plain::before { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none;
}
.btn:hover { border-color: var(--steel); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-2); }
.btn.cold { background: var(--cryo); border-color: var(--cryo); color: #fff; }
.btn.cold:hover { background: var(--cryo-deep); }
.btn.big { height: 52px; padding: 0 26px; font-size: 17px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 10px; }
.panel-head a { font-size: 14px; color: var(--cryo-deep); text-decoration: none; font-weight: 500; }

/* ---------- operations shell ---------- */
.ops { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 56px); }
.rail { border-right: 1px solid var(--line); padding: 20px 12px; background: var(--paper); }
.rail a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 7px; text-decoration: none; font-weight: 500; color: var(--steel);
}
.rail a:hover { background: var(--frost); color: var(--ink); }
.rail a[aria-current="page"] { background: var(--frost-2); color: var(--ink); }
.rail .count { font-size: 12px; background: var(--amber); color: #fff; border-radius: 99px; padding: 0 7px; font-weight: 600; }
.rail-foot { margin-top: 28px; padding: 12px; font-size: 13px; color: var(--steel); border-top: 1px solid var(--line); }
.ops-main { padding: 26px 32px 48px; max-width: 1360px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head p { margin-top: 4px; }

.band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); color: #fff; border-radius: 12px; margin-bottom: 22px; overflow: hidden;
}
.band > div { padding: 16px 22px; border-left: 1px solid #ffffff1f; }
.band > div:first-child { border-left: 0; }
.band .v { font-family: var(--cond); font-size: 38px; font-weight: 600; line-height: 1; }
.band .v small { font-size: 18px; font-weight: 500; color: #9FB4C9; margin-left: 3px; }
.band .k { font-size: 14px; color: #B9C8D8; margin-top: 6px; }
.band .d { font-size: 13px; color: #7FD3F2; margin-top: 2px; }

.ops-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }

/* sites board */
.sites { width: 100%; border-collapse: collapse; }
.sites th { text-align: left; font-weight: 500; font-size: 13px; color: var(--steel); padding: 6px 20px 8px; }
.sites td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.sites tr.click { cursor: pointer; }
.sites tr.click:hover td { background: #F7FAFC; }
.site-name { font-weight: 600; }
.site-sub { font-size: 13px; color: var(--steel); }
.dayline { position: relative; height: 24px; background: var(--frost); border-radius: 5px; min-width: 220px; }
.dayline span { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: var(--ink); }
.dayline span.run { background: var(--cryo); box-shadow: 0 0 0 2px #22a9dc40; }
.dayline span.next { background: transparent; border: 1.5px dashed #9AAEC0; }
.dayline i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--red); }
.dayline-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--steel); margin-top: 3px; }
.hopper { display: flex; align-items: center; gap: 10px; }
.hopper-bar { width: 70px; height: 9px; border-radius: 99px; background: var(--frost-2); overflow: hidden; }
.hopper-bar b { display: block; height: 100%; background: var(--cryo); border-radius: 99px; }
.hopper-bar.low b { background: var(--amber); }
.hopper small { font-size: 13px; color: var(--steel); white-space: nowrap; }

/* alerts */
.alerts { list-style: none; margin: 0; padding: 0 8px 8px; }
.alerts li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; padding: 12px; border-radius: 8px; }
.alerts li + li { border-top: 1px solid var(--line); border-radius: 0; }
.alerts .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--amber); }
.alerts .dot.info { background: var(--cryo); }
.alerts .dot.bad { background: var(--red); }
.alerts strong { display: block; font-weight: 600; }
.alerts p { font-size: 14px; color: var(--steel); margin-top: 2px; }
.alerts .act { margin-top: 8px; display: flex; gap: 8px; }
.alerts .act button { height: 30px; font-size: 13px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; }

/* chart */
.chart-wrap { padding: 4px 20px 18px; }
.chart-legend { display: flex; gap: 18px; font-size: 13px; color: var(--steel); padding: 0 20px; }
.chart-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--ink); }
.chart-legend span.l2::before { height: 3px; background: var(--cryo); vertical-align: 3px; }

/* robots table */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--steel); font-size: 13px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.service-meter { display: flex; align-items: center; gap: 8px; }
.service-meter .track { width: 64px; height: 6px; background: var(--frost-2); border-radius: 99px; overflow: hidden; }
.service-meter .track b { display: block; height: 100%; background: var(--green); }
.service-meter.soon .track b { background: var(--amber); }

.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.stock-row { display: grid; grid-template-columns: 1.3fr 2fr .8fr 1fr; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.stock-row .bar { height: 12px; background: var(--frost-2); border-radius: 99px; overflow: hidden; position: relative; }
.stock-row .bar b { display: block; height: 100%; background: var(--cryo); }
.stock-row .bar.low b { background: var(--amber); }
.stock-row .bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .35; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 4px 20px 18px; font-size: 14px; }
.kv dt { color: var(--steel); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- service centre ---------- */
.centre { max-width: 1280px; margin: 0 auto; padding: 22px 28px 48px; }
.centre-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.shift { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--steel); flex-wrap: wrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; }
.avatar.b { background: var(--cryo-deep); }
.avatar.c { background: #6A7B90; }
.robot-strip { display: flex; align-items: center; gap: 22px; padding: 12px 18px; margin-bottom: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; flex-wrap: wrap; }
.robot-strip strong { font-weight: 600; }

.lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lane h3 { display: flex; justify-content: space-between; font-size: 16px; padding: 0 4px 10px; }
.lane h3 span { color: var(--steel); font-family: var(--body); font-weight: 500; font-size: 14px; }
.lane-body { display: flex; flex-direction: column; gap: 10px; min-height: 120px; padding: 8px; border-radius: 12px; background: var(--frost-2); }
.jobcard {
  display: block; text-align: left; width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px;
  text-decoration: none;
}
.jobcard:hover { border-color: var(--steel); }
.jobcard.active { border-color: var(--cryo); box-shadow: 0 0 0 3px #22a9dc2e; }
.jobcard .car { font-weight: 600; }
.plate { display: inline-block; font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 0 6px; border: 1.5px solid var(--ink); border-radius: 4px; background: #fff; }
.jobcard .meta { font-size: 13px; color: var(--steel); margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.jobcard .prog { height: 4px; background: var(--frost-2); border-radius: 99px; margin-top: 9px; overflow: hidden; }
.jobcard .prog b { display: block; height: 100%; background: var(--cryo); }

/* job screen */
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.job-top .back { text-decoration: none; color: var(--steel); font-size: 14px; font-weight: 500; }
.job-owner { text-align: right; }
.job-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stepper { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 18px; counter-reset: s; }
.stepper button {
  position: relative; text-align: left; padding: 10px 12px 11px; border: 0; border-radius: 9px;
  background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--steel);
}
.stepper button .n { display: block; font-family: var(--cond); font-size: 13px; font-weight: 600; color: var(--steel); }
.stepper button.done { color: var(--ink); }
.stepper button.done .n::after { content: " done"; color: var(--green); }
.stepper button.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper button.current .n { color: #7FD3F2; }
.step-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.step-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.side-card { padding: 18px; }
.side-card h3 { margin-bottom: 10px; }
.side-card .kv { padding: 0; }

/* inspection */
.zones { width: 100%; border-collapse: collapse; }
.zones td { padding: 13px 20px; border-top: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--paper); padding: 7px 13px; font-size: 14px; font-weight: 500; color: var(--steel); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button[aria-pressed="true"].heavy { background: var(--amber); }
.recipe-box { margin: 4px 20px 20px; padding: 14px 16px; border-radius: 10px; background: var(--cryo-wash); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.recipe-box strong { font-weight: 600; }
.note { margin: 0 20px 20px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 9px; font-size: 14px; color: var(--steel); }

/* photos */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 4px 20px 20px; }
.shot { position: relative; border-radius: 10px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; border: 0; padding: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-size: 13px; font-weight: 600; text-align: left; background: linear-gradient(transparent, #0e2340d9); }
.shot .tick { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.shot.todo { background: var(--frost); border: 2px dashed #A9BBC9; display: grid; place-items: center; color: var(--steel); }
.shot.todo .cap { background: none; color: var(--steel); }
.frame-guide { width: 58%; aspect-ratio: 4/3; border: 2px solid #A9BBC9; border-radius: 6px; position: relative; }
.frame-guide::before, .frame-guide::after { content: ""; position: absolute; background: #A9BBC9; }
.frame-guide::before { left: 50%; top: -8px; bottom: -8px; width: 1px; }
.frame-guide::after { top: 50%; left: -8px; right: -8px; height: 1px; }
.odo { display: grid; place-items: center; height: 100%; background: #0A1A2E; }
.odo span { font-family: var(--cond); font-size: 34px; color: #7FD3F2; letter-spacing: .08em; }

/* cleaning cycle - the instrument */
.instrument { background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 24px 20px; }
.inst-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.inst-top .recipe { font-size: 14px; color: #B9C8D8; }
.inst-top .recipe b { color: #fff; font-weight: 600; }
.inst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.inst-stack { display: grid; gap: 18px; }
.gauge-card, .clock-card, .hopper-card { background: #ffffff0d; border: 1px solid #ffffff17; border-radius: 12px; padding: 16px; }
.gauge-card h3, .clock-card h3, .hopper-card h3 { font-family: var(--body); font-size: 13px; font-weight: 500; color: #9FB4C9; }
.gauge { width: 100%; max-width: 280px; display: block; margin: 6px auto 0; }
.gauge-read { text-align: center; margin-top: -30px; }
.gauge-read .v { font-family: var(--cond); font-size: 48px; font-weight: 600; line-height: 1; }
.gauge-read .u { font-size: 14px; color: #9FB4C9; }
.gauge-read .band-note { font-size: 13px; color: #7FD3F2; margin-top: 4px; }
.clock { font-family: var(--cond); font-size: 64px; font-weight: 600; line-height: 1; margin-top: 10px; }
.clock small { font-size: 22px; color: #9FB4C9; font-weight: 500; }
.clock-bar { height: 8px; background: #ffffff1a; border-radius: 99px; margin: 14px 0 8px; overflow: hidden; }
.clock-bar b { display: block; height: 100%; background: var(--cryo); border-radius: 99px; transition: width .4s linear; }
.clock-meta { display: flex; justify-content: space-between; font-size: 13px; color: #9FB4C9; }
.hopper-vis { display: flex; gap: 16px; align-items: flex-end; margin-top: 10px; }
.tank { width: 56px; height: 120px; border: 2px solid #ffffff4d; border-radius: 6px 6px 12px 12px; position: relative; overflow: hidden; }
.tank b { position: absolute; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(135deg, #7FD3F2 0 6px, #22A9DC 6px 12px); transition: height .4s linear; }
.hopper-vis .v { font-family: var(--cond); font-size: 44px; font-weight: 600; line-height: 1; }
.hopper-vis .u { font-size: 14px; color: #9FB4C9; }
.hopper-vis .sub { font-size: 13px; color: #9FB4C9; margin-top: 6px; }
.inst-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 18px; background: #ffffff17; border-radius: 12px; overflow: hidden; }
.inst-row > div { background: #132B4C; padding: 12px 14px; }
.inst-row .k { font-size: 13px; color: #9FB4C9; }
.inst-row .v { font-family: var(--cond); font-size: 24px; font-weight: 600; margin-top: 2px; }
.zone-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 18px; }
.zone-track div { font-size: 13px; padding: 9px 10px; border-radius: 8px; background: #ffffff0d; color: #9FB4C9; }
.zone-track div b { display: block; height: 3px; border-radius: 99px; background: #ffffff1a; margin-bottom: 7px; overflow: hidden; }
.zone-track div b i { display: block; height: 100%; background: var(--cryo); transition: width .4s linear; }
.zone-track div.on { color: #fff; background: #22a9dc26; }
.zone-track div.done { color: #fff; }
.inst-actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.inst-actions .btn { border-color: #ffffff33; background: transparent; color: #fff; }
.inst-actions .btn.cold { background: var(--cryo); border-color: var(--cryo); }
.inst-actions .hint { font-size: 13px; color: #9FB4C9; margin-left: auto; }
.log { list-style: none; margin: 0; padding: 0 18px 14px; font-size: 13px; max-height: 260px; overflow: auto; }
.log li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log time { color: var(--steel); font-family: var(--cond); font-weight: 600; font-size: 14px; }

/* QC */
.qc-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.mini-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 160px; }
.mini-pair img { aspect-ratio: 4/3; object-fit: cover; border-radius: 5px; }
.flip { transform: scaleX(-1); }

/* certificate */
.cert {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 34px; overflow: hidden;
}
.cert::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--ink), var(--cryo)); }
.cert-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cert-head .brand { color: var(--ink); }
.cert h2 { font-size: 30px; margin-top: 18px; }
.cert .lede { color: var(--steel); margin-top: 6px; max-width: 56ch; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cert-grid .k { font-size: 13px; color: var(--steel); }
.cert-grid .v { font-family: var(--cond); font-size: 22px; font-weight: 600; }
.cert-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.cert-pairs figure { margin: 0; }
.cert-pairs .two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cert-pairs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.cert-pairs figcaption { font-size: 13px; color: var(--steel); margin-top: 6px; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 22px; font-size: 13px; color: var(--steel); }
.qr { width: 76px; height: 76px; }
.sent { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--green-wash); border-radius: 10px; color: #1F6E4B; font-weight: 500; margin-top: 12px; }

/* ---------- car owner (phone) ---------- */
.owner-stage { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 360px); gap: 56px; justify-content: center; align-items: start; padding: 32px 24px 56px; }
.phone { width: 390px; max-width: 100%; height: 800px; border-radius: 46px; background: #0A1A2E; padding: 12px; box-shadow: 0 30px 60px -20px #0e234059; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--frost); display: flex; flex-direction: column; }
.status-bar { display: flex; justify-content: space-between; padding: 12px 26px 4px; font-size: 13px; font-weight: 600; }
.scroll { flex: 1; overflow: auto; padding: 8px 18px 18px; }
.tabbar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--paper); padding: 8px 8px 18px; }
.tabbar a { text-align: center; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--steel); padding: 6px; }
.tabbar a svg { display: block; margin: 0 auto 3px; width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] svg { color: var(--cryo); }
.hello { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 14px; }
.hello h1 { font-size: 26px; }
.carcard { background: var(--ink); color: #fff; border-radius: 18px; padding: 18px; }
.carcard .plate { color: var(--ink); border-color: #fff; }
.live-steps { list-style: none; margin: 16px 0 0; padding: 0; }
.live-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; color: #9FB4C9; }
.live-steps li .b { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ffffff4d; margin: 0 auto; }
.live-steps li.done { color: #fff; }
.live-steps li.done .b { background: var(--green); border-color: var(--green); }
.live-steps li.now { color: #fff; font-weight: 600; }
.live-steps li.now .b { background: var(--cryo); border-color: var(--cryo); box-shadow: 0 0 0 5px #22a9dc40; }
.live-steps time { font-size: 12px; color: #9FB4C9; font-weight: 500; }
.eta { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ffffff1f; display: flex; justify-content: space-between; font-size: 14px; }
.eta b { font-family: var(--cond); font-size: 20px; }
.sect { margin-top: 20px; }
.sect h2 { font-size: 18px; margin-bottom: 10px; }
.hist { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.hist a { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; }
.hist a + a { border-top: 1px solid var(--line); }
.hist img { width: 54px; height: 42px; object-fit: cover; border-radius: 6px; }
.hist .t { font-weight: 600; font-size: 14px; }
.hist .s { font-size: 13px; color: var(--steel); }
.compare { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; user-select: none; touch-action: pan-y; background: var(--ink); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after-clip { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 8px #0006; }
.compare .handle svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; width: 20px; height: 20px; color: var(--ink); }
.compare .lab { position: absolute; top: 10px; padding: 2px 8px; border-radius: 6px; background: #0e2340b3; color: #fff; font-size: 12px; font-weight: 600; }
.compare .lab.l { left: 10px; }
.compare .lab.r { right: 10px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ztabs { display: flex; gap: 6px; margin-bottom: 10px; }
.ztabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--steel); }
.ztabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; }
.stats3 > div { padding: 12px 6px; text-align: center; }
.stats3 > div + div { border-left: 1px solid var(--line); }
.stats3 .v { font-family: var(--cond); font-size: 24px; font-weight: 600; }
.stats3 .k { font-size: 12px; color: var(--steel); }
.reco { background: var(--amber-wash); border-radius: 14px; padding: 14px; font-size: 14px; }
.reco strong { display: block; margin-bottom: 2px; }
.pkg { display: grid; gap: 10px; }
.pkg label { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.pkg label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg .t { font-weight: 600; }
.pkg .p { font-family: var(--cond); font-weight: 600; font-size: 19px; }
.pkg .s { grid-column: 1 / -1; font-size: 13px; color: var(--steel); }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.days button, .slots button { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 0; font-size: 13px; font-weight: 600; }
.days button b { display: block; font-family: var(--cond); font-size: 20px; }
.days button[aria-pressed="true"], .slots button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slots button:disabled { color: #A9BBC9; text-decoration: line-through; cursor: not-allowed; }
.cta-bar { padding: 12px 18px; background: var(--paper); border-top: 1px solid var(--line); }
.cta-bar .btn { width: 100%; }
.owner-notes h2 { font-size: 24px; margin-bottom: 10px; }
.owner-notes p { color: var(--steel); max-width: 42ch; }
.owner-notes ul { padding-left: 18px; color: var(--steel); }
.owner-notes li { margin: 6px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 500; z-index: 40; box-shadow: 0 10px 30px -10px #0e234080; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ops-grid, .step-body { grid-template-columns: minmax(0, 1fr); }
  .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owner-stage { grid-template-columns: 1fr; justify-items: center; }
  .owner-notes { order: -1; text-align: center; }
  .owner-notes p, .owner-notes ul { margin-left: auto; margin-right: auto; }
  .owner-notes ul { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar { gap: 12px; padding: 0 12px; }
  .mock-tag { display: none; }
  .wordmark { display: none; }
  .roles { flex: 1; justify-content: space-between; }
  .roles a { padding: 6px 9px; font-size: 13px; }
  .ops { grid-template-columns: minmax(0, 1fr); }
  .page-head { flex-wrap: wrap; align-items: flex-start; }
  .rail { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail a { flex: none; }
  .rail-foot { display: none; }
  .ops-main, .centre { padding: 18px 16px 40px; }
  .band { grid-template-columns: 1fr 1fr; }
  .band > div:nth-child(3) { border-left: 0; }
  .band > div:nth-child(n+3) { border-top: 1px solid #ffffff1f; }
  .sites th:nth-child(2), .sites td:nth-child(2) { display: none; }
  .sites td, .sites th { padding-left: 14px; padding-right: 14px; }
  .scroll-x { overflow-x: auto; }
  .lanes { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: 1fr 1fr; }
  .inst-grid { grid-template-columns: 1fr; }
  .inst-row { grid-template-columns: 1fr 1fr; }
  .zone-track { grid-template-columns: repeat(3, 1fr); }
  .cert { padding: 24px 18px; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .cert-pairs { grid-template-columns: 1fr; }
  .qc-row { grid-template-columns: 1fr; }
  .job-owner { text-align: left; }
  .split2 { grid-template-columns: 1fr; }
  .stock-row { grid-template-columns: 1fr 1fr; }
  .owner-stage { padding: 0; }
  .phone { width: 100%; height: calc(100vh - 56px); border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; }
  .status-bar { display: none; }
  .owner-notes { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
