/* Repair desk — simple, clear, touch-friendly (no external fonts) */

:root {
  --bg:        #f0f3f8;
  --card:      #ffffff;
  --ink:       #0f172a;
  --muted:     #5b6b7c;
  --line:      #dde3ec;
  --brand:     #1e4fd8;
  --brand-ink: #ffffff;
  --brand-soft:#e8eefc;

  --slate:  #64748b;
  --blue:   #2563eb;
  --amber:  #b45309;
  --indigo: #4338ca;
  --green:  #15803d;
  --red:    #b91c1c;

  --radius: 12px;
  --shadow: 0 1px 3px rgba(15,23,42,.06);
  --tap:    44px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans Devanagari", "Mangal", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 .55rem; line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1.02rem; }

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.right  { text-align: right; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }
.mono   { font-family: Consolas, "Courier New", monospace; letter-spacing: .02em; }

/* ------------------------------------------------------------- top bar -- */

.topbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: .65rem;
  background: #101a2b; color: #fff;
  padding: .65rem 1rem;
  position: sticky; top: 0; z-index: 30;
  min-height: 52px;
}
.topbar .brand { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.topbar .brand:hover { text-decoration: none; opacity: .92; }
.topbar .who { text-align: right; line-height: 1.15; }
.topbar .who span { display: block; font-size: .9rem; font-weight: 600; }
.topbar .who small { color: #93a4bd; font-size: .75rem; }
.menu-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 1.45rem; cursor: pointer; padding: .25rem .4rem;
  min-width: var(--tap); min-height: var(--tap);
}

/* ------------------------------------------------------------- layout -- */

.layout { display: flex; align-items: flex-start; min-height: calc(100vh - 110px); }

.sidebar {
  width: 228px; flex: none;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: .75rem .55rem;
  position: sticky; top: 52px;
  align-self: stretch;
}
.sidebar a {
  display: flex; align-items: center; gap: .45rem;
  padding: .65rem .75rem; border-radius: 10px;
  color: var(--ink); font-size: .95rem; font-weight: 500;
  min-height: var(--tap);
}
.sidebar a:hover { background: #eef2f9; text-decoration: none; }
.sidebar a.on   { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.sidebar a.warn { color: var(--red); font-weight: 700; }
.sidebar .pill {
  margin-left: auto;
  background: var(--red); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px; min-width: 1.35rem;
  text-align: center;
}
.sidebar hr { border: 0; border-top: 1px solid var(--line); margin: .55rem .35rem; }

.content { flex: 1; padding: 1.15rem 1.25rem 2.5rem; min-width: 0; }

.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem; }

/* --------------------------------------------------------------- card -- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.05rem 1.15rem; margin-bottom: 1rem;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }

.grid  { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.grid > * { min-width: 0; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: .9rem;
}
.page-head h1 {
  margin: 0;
  flex: 1 1 220px;
  min-width: 0;
  word-break: break-word;
}
.page-head .btn-row { flex: 0 1 auto; }

.filters-form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.filters-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .7rem;
  align-items: end;
}
.filters-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .7rem;
  align-items: end;
}
.filters-dates > label { min-width: 0; }
.filters-actions { margin-top: .15rem; }
.filters-fields > *,
.filters-form > * { min-width: 0; }

/* --------------------------------------------------------------- stat -- */

.stat {
  background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--slate);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.05rem; display: block; color: var(--ink);
  min-height: 88px;
}
.stat:hover { text-decoration: none; border-color: #c5d0e0; background: #fafbff; }
.stat .n { font-size: 2.1rem; font-weight: 800; line-height: 1.05; }
.stat .t { color: var(--muted); font-size: .9rem; margin-top: .2rem; font-weight: 500; }
.stat.blue   { border-left-color: var(--blue); }
.stat.blue .n   { color: var(--blue); }
.stat.amber  { border-left-color: var(--amber); }
.stat.amber .n  { color: var(--amber); }
.stat.green  { border-left-color: var(--green); }
.stat.green .n  { color: var(--green); }
.stat.red    { border-left-color: var(--red); }
.stat.red .n    { color: var(--red); }
.stat.indigo { border-left-color: var(--indigo); }
.stat.indigo .n { color: var(--indigo); }

/* -------------------------------------------------------------- badge -- */

.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; white-space: normal;
  border: 1px solid currentColor; line-height: 1.3; max-width: 100%;
}
.badge.slate  { color: var(--slate);  background: #f1f5f9; }
.badge.blue   { color: var(--blue);   background: #eff6ff; }
.badge.amber  { color: var(--amber);  background: #fffbeb; }
.badge.indigo { color: var(--indigo); background: #eef2ff; }
.badge.green  { color: var(--green);  background: #f0fdf4; }
.badge.red    { color: var(--red);    background: #fef2f2; }

.pill {
  background: var(--red); color: #fff; border-radius: 999px;
  padding: 0 .45rem; font-size: .75rem; font-weight: 700; margin-left: auto;
}
.tag-urgent {
  background: #fee2e2; color: var(--red); border: 1px solid var(--red);
  border-radius: 6px; padding: .1rem .4rem; font-size: .75rem; font-weight: 700;
}

/* -------------------------------------------------------------- table -- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td {
  padding: .7rem .65rem; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.4;
}
table.data .tag-urgent { display: inline-block; margin-top: .2rem; }
table.data th { background: #f7f9fc; color: var(--muted); font-weight: 700; font-size: .8rem; white-space: nowrap; }
table.data tbody tr:hover { background: #f8fafc; }
table.data tr.alert-row { background: #fff7ed; }
table.data tr.alert-row:hover { background: #ffedd5; }
table.data a.mono { font-weight: 700; }

/* --------------------------------------------------------------- form -- */

.stack { display: grid; gap: .85rem; }

label { display: block; font-size: .9rem; color: var(--muted); font-weight: 600; }

input[type=text], input[type=password], input[type=number], input[type=date],
input[type=email], input[type=tel], input:not([type]), select, textarea {
  width: 100%; margin-top: .28rem;
  padding: .7rem .75rem;
  min-height: var(--tap);
  border: 1px solid #c5d0de; border-radius: 10px;
  background: #fff; color: var(--ink);
  font: inherit; font-weight: 400;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid #c9d7f8; border-color: var(--brand);
}

.bs-date { display: grid; gap: .25rem; min-width: 0; }
.bs-date-row {
  display: grid;
  grid-template-columns: minmax(4.2rem, 0.85fr) minmax(5.5rem, 1.35fr) minmax(3.6rem, 0.7fr);
  gap: .35rem;
  align-items: center;
  min-width: 0;
}
.bs-date-row select {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: .55rem .35rem;
  font-size: .9rem;
  min-height: var(--tap);
}
@media (max-width: 560px) {
  .bs-date-row { grid-template-columns: 1fr; }
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  margin: 0 0 1rem;
  background: #fafbfd;
  display: grid;
  gap: .75rem;
}
fieldset legend {
  font-weight: 700; font-size: .95rem; padding: 0 .4rem; color: var(--ink);
}

.row2, .row3 {
  display: grid;
  gap: .75rem;
  align-items: end;
}
.row2 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.row3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.row2 > *, .row3 > * { min-width: 0; }

.check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .4rem .55rem;
  font-weight: 400;
}
.check-row input[type=checkbox] {
  width: 1.15rem; height: 1.15rem;
  flex: none;
  margin-top: .2rem;
}

.table-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .45rem;
  min-width: 0;
}
.table-actions .btn { width: 100%; }
.table-actions .btn-row { width: 100%; }

.req::after { content: " *"; color: var(--red); }

/* --------------------------------------------------------------- btns -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: .7rem 1.05rem; border-radius: 10px;
  border: 1px solid #c5d0de; background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; text-align: center;
  min-height: var(--tap);
  line-height: 1.2;
}
.btn:hover { text-decoration: none; background: #f1f5f9; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #1a44bd; }
.btn.danger  { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost   { background: transparent; border-color: #ffffff55; color: #fff; min-height: 38px; padding: .45rem .75rem; }
.btn.ghost:hover { background: #ffffff1a; }
.btn.small   { padding: .45rem .75rem; font-size: .88rem; min-height: 38px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  min-width: 0;
}
.btn-row > * { max-width: 100%; }
.btn-row select,
.btn-row input:not([type=checkbox]):not([type=hidden]):not([type=submit]) {
  min-width: 0;
  flex: 1 1 140px;
}

/* -------------------------------------------------------------- alert -- */

.alert {
  padding: .85rem 1rem; border-radius: var(--radius);
  border: 1px solid; margin-bottom: 1rem; font-size: .95rem; font-weight: 500;
}
.alert.ok   { background: #f0fdf4; border-color: #86efac; color: #14532d; }
.alert.err  { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.alert.warn { background: #fffbeb; border-color: #fcd34d; color: #78350f; }

/* -------------------------------------------------------- definition -- */

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .88rem; font-weight: 600; }
dl.kv dd { margin: 0; font-weight: 500; }

/* ---------------------------------------------------------- timeline -- */

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.15rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1rem .35rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.5rem; top: .45rem;
  width: .65rem; height: .65rem; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff;
}
.timeline .when { color: var(--muted); font-size: .82rem; margin-top: .2rem; }

/* -------------------------------------------------------- auth pages -- */

.auth-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 1.25rem;
  background: #101a2b;
}
.auth-card {
  background: #fff; border-radius: 16px; padding: 1.75rem 1.5rem;
  width: 100%; max-width: 400px; box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.auth-card.wide { max-width: 620px; }
.auth-logo {
  display: block; width: 168px; height: 168px; object-fit: contain;
  margin: 0 auto 1rem;
}
.auth-card h1 { font-size: 1.2rem; margin: 0 0 .25rem; text-align: center; }
.auth-card > .muted { text-align: center; }
.auth-card .btn.primary { width: 100%; }

/* --------------------------------------------------------- QR / slip -- */

.qr svg { display: block; width: 100%; height: auto; image-rendering: pixelated; }

.slip {
  width: 80mm; margin: 0 auto; padding: 4mm;
  background: #fff; color: #000; font-size: 11px; line-height: 1.4;
}
.slip h2 { text-align: center; font-size: 14px; margin: 0 0 2px; }
.slip .center { text-align: center; }
.slip hr { border: 0; border-top: 1px dashed #000; margin: 5px 0; }
.slip table { width: 100%; border-collapse: collapse; font-size: 11px; }
.slip table td { padding: 1px 0; vertical-align: top; }
.slip table td:first-child { color: #333; width: 32%; }
.slip .jobno { font-size: 17px; font-weight: 700; text-align: center; letter-spacing: .5px; }
.slip .qr { width: 34mm; margin: 3px auto; }
.slip .terms { font-size: 9.5px; line-height: 1.35; white-space: pre-line; }

/* ------------------------------------------------------------- print -- */

@media print {
  .topbar, .sidebar, .foot, .no-print { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .layout { display: block; }
  .content { padding: 0; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .slip { width: auto; padding: 0; }
  a { color: #000; }
  @page { margin: 6mm; }
}

/* ------------------------------------------------------- job tabs -- */

.job-tabs {
  display: flex; flex-wrap: nowrap; gap: .2rem;
  margin: 0 0 1rem; padding: .35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: sticky; top: 52px; z-index: 15;
}
.job-tab {
  appearance: none; border: 0; background: transparent;
  padding: .7rem .9rem; border-radius: 8px;
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  color: var(--muted); white-space: nowrap;
  border-bottom: 3px solid transparent;
  min-height: var(--tap);
}
.job-tab:hover { background: var(--brand-soft); color: var(--ink); }
.job-tab.on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  border-bottom-color: var(--brand);
}
.job-view-body {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: stretch;
}
.job-view-body .tab-card[hidden] { display: none !important; }

.job-next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .85rem 1rem;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  background: #f5f8ff;
  border: 1px solid #c9d7f8;
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
}
.job-next-label {
  font-size: .75rem; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .2rem;
}
.job-next-hint { color: var(--ink); font-size: 1rem; font-weight: 600; }
.job-next-cta .inline-form { display: inline; margin: 0; }
.job-next-cta .btn { white-space: nowrap; min-width: 9rem; }

.workflow-card {
  border-left: 5px solid var(--brand);
  background: #f8faff;
}
.workflow-card ol {
  margin: .35rem 0 0; padding-left: 1.25rem;
}
.workflow-card li {
  margin: .45rem 0;
  font-size: 1rem;
  font-weight: 500;
}

/* ------------------------------------------------------ new job form -- */

.job-new-form { padding-bottom: 5.5rem; }
.job-new-steps { font-weight: 600; }
.job-new-optional label,
label.job-new-optional { font-weight: 500; color: var(--muted); }
.job-new-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  padding: .75rem 1rem;
  margin: 0 -1.25rem -2.5rem;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(15,23,42,.06);
}
.content .job-new-bar { margin-left: -1.25rem; margin-right: -1.25rem; }

/* ---------------------------------------------- technician workshop -- */

.tech-status-flow {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 .85rem;
}
.tech-step-form { margin: 0; display: inline; }
.tech-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .95rem;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
button.tech-step:hover { border-color: #94a3b8; background: #f8fafc; }
.tech-step.on {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
  cursor: default;
}
.tech-step.off {
  opacity: .45;
  cursor: default;
  background: #f1f5f9;
}
.work-notes-form { padding-bottom: 4.5rem; }
.work-notes-bar { margin-top: .5rem; }

.tech-parts-steps {
  margin: 0 0 .85rem;
  padding-left: 1.2rem;
}
.tech-parts-steps li { margin: .35rem 0; }
.tech-verify-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
}
.tech-verify-ok {
  width: 100%;
  min-height: 48px;
  font-size: 1.05rem;
}
.tech-verify-wrong summary.btn {
  width: 100%;
  text-align: center;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-verify-wrong summary::-webkit-details-marker { display: none; }

.tech-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .85rem 0 0;
}
.tech-chip {
  display: flex;
  flex-direction: column;
  min-width: 5.5rem;
  flex: 1 1 5.5rem;
  max-width: 9rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.tech-chip:hover { border-color: #94a3b8; }
.tech-chip.empty { opacity: .55; }
.tech-chip.on {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 2px rgba(30, 58, 95, .18);
}
.tech-job-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 .85rem;
}
.tech-chip-n {
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.1;
}
.tech-chip-t {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .15rem;
  line-height: 1.25;
}

.dash-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 .85rem;
}
.dash-pipe {
  flex: 1 1 5.2rem;
  min-width: 5.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.dash-pipe:hover { border-color: #94a3b8; }
.dash-pipe.empty { opacity: .5; }
.dash-pipe-n {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}
.dash-pipe-t { font-weight: 700; font-size: .92rem; margin-top: .15rem; }
.dash-pipe-en { font-size: .72rem; }
.dash-today { margin-top: .15rem; }

.admin-command {
  margin: 0 0 1rem;
  padding: .85rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 70%);
}
.admin-command-head {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 .65rem;
  color: var(--ink);
}
.admin-command-grid { gap: .75rem; }
.admin-command-notes {
  margin-top: .75rem;
  flex-wrap: wrap;
}

.used-parts-prefill {
  padding: .75rem;
  border: 2px solid #86efac;
  border-radius: 12px;
  background: #f0fdf4;
}

/* ---------------------------------------------------- device label -- */

.label-page {
  background: #e9edf3;
  margin: 0;
  padding: 0;
}
.label-toolbar {
  text-align: center;
  padding: .9rem 1rem;
}
.label-toolbar .btn { margin: .2rem; }
.device-label {
  width: 58mm;
  min-height: 28mm;
  margin: 3mm auto;
  padding: 3mm 4mm;
  background: #fff;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  page-break-inside: avoid;
  break-inside: avoid;
}
.device-label-no {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  text-align: center;
  line-height: 1.15;
  color: #000;
}

@media print {
  .label-page { background: #fff; }
  .device-label {
    border: 0;
    margin: 0 auto 2mm;
    width: 58mm;
    min-height: 25mm;
  }
  .device-label-no { font-size: 24px; }
}

/* ---------------------------------------------------- public track -- */

.track-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #dbeafe 0%, transparent 55%),
    var(--bg, #eef2f7);
}
.track-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}
.track-brand {
  text-align: center;
  margin-bottom: 1.15rem;
}
.track-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0f172a;
}
.track-brand-meta { margin: .25rem 0 0; }
.track-card { margin-bottom: .9rem; }
.track-h1 {
  margin: 0 0 .35rem;
  font-size: 1.45rem;
}
.track-h2 {
  margin: 0 0 .65rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.track-lead { margin: 0 0 1rem; line-height: 1.45; }
.track-hint { margin: .85rem 0 0; }
.track-submit {
  width: 100%;
  min-height: 48px;
  font-size: 1.05rem;
}
.track-status-hero {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--line);
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.track-jobno {
  font-size: .95rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .35rem;
}
.track-status-label {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: .4rem;
}
.track-status-msg {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #334155;
}
.track-status-hero.color-green { border-color: #86efac; }
.track-status-hero.color-green .track-status-label { color: var(--green); }
.track-status-hero.color-blue { border-color: #93c5fd; }
.track-status-hero.color-blue .track-status-label { color: var(--blue); }
.track-status-hero.color-indigo { border-color: #a5b4fc; }
.track-status-hero.color-indigo .track-status-label { color: var(--indigo); }
.track-status-hero.color-amber { border-color: #fcd34d; }
.track-status-hero.color-amber .track-status-label { color: var(--amber); }
.track-status-hero.color-red { border-color: #fca5a5; }
.track-status-hero.color-red .track-status-label { color: var(--red); }
.track-status-hero.color-slate { border-color: #cbd5e1; }
.track-status-hero.color-slate .track-status-label { color: #475569; }

.track-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .15rem;
  margin: 0 0 1rem;
  padding: .85rem .55rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow-x: auto;
}
.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  flex: 1 1 0;
  min-width: 3.4rem;
  text-align: center;
}
.track-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
}
.track-step-text {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  line-height: 1.15;
}
.track-step-text strong { font-size: .78rem; }
.track-step-text small { font-size: .65rem; color: var(--muted); }
.track-step.done .track-step-dot {
  background: #16a34a;
  color: #fff;
}
.track-step.current .track-step-dot {
  background: #1e3a5f;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, .2);
}
.track-step.current .track-step-text strong { color: #1e3a5f; }
.track-step-line {
  flex: 0 0 8px;
  height: 3px;
  margin-top: 12px;
  background: #e2e8f0;
  border-radius: 2px;
  align-self: flex-start;
}
.track-step-line.on { background: #86efac; }

.track-kv { margin: 0; }
.track-fail { margin-bottom: 1rem; }
.track-history summary.track-h2 { margin-bottom: 0; }
.track-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: .35rem 0 0;
}
.track-cta {
  width: 100%;
  min-height: 48px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 650;
}
.track-foot { margin-top: 1.5rem; }

/* ------------------------------------------------------------ mobile -- */

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar .who { display: none; }
  .sidebar {
    position: fixed; top: 52px; bottom: 0; left: 0; z-index: 25;
    transform: translateX(-100%); transition: transform .18s ease;
    width: 260px; overflow-y: auto;
  }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .content { padding: .95rem; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .filters-dates { grid-template-columns: 1fr; }
  .page-head .btn-row { width: 100%; }
  .page-head .btn-row .btn { flex: 1 1 auto; }
  dl.kv { grid-template-columns: 1fr; }
  dl.kv dt { margin-top: .35rem; }
  .job-tabs { top: 52px; }
  .job-next { flex-direction: column; align-items: stretch; }
  .job-next-cta .btn { width: 100%; }
  .btn-row .btn.primary { flex: 1 1 100%; }
  .job-new-bar {
    margin-left: -.95rem;
    margin-right: -.95rem;
    margin-bottom: -2.5rem;
  }
  .job-new-bar .btn.primary { flex: 1 1 auto; }
  .tech-status-flow { gap: .4rem; }
  .tech-step { flex: 1 1 calc(50% - .4rem); }
  .tech-chip { max-width: none; }
}
