@font-face { font-family: "Open Sans"; src: url(/static/fonts/OpenSans-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/static/fonts/OpenSans-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/static/fonts/OpenSans-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
:root {
  color-scheme: light;
  --gold: #d09b34; --charcoal: #232323;
  --bg: #f4f3ef; --surface: #fcfcfb; --surface-2: #f0efea; --border: #e3e1da;
  --text: #0b0b0b; --text-2: #52514e; --text-3: #7d7b75; --accent: #1c5cab;
  --good: #1f8a4c; --warn: #b26a00; --crit: #c22f2e; --info: #1c5cab;
  --radius: 14px;
  --font: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110; --surface: #1a1a19; --surface-2: #232321; --border: #2e2e2b;
    --text: #f0efec; --text-2: #c3c2b7; --text-3: #8f8d86; --accent: #6da7ec;
    --good: #3fb96f; --warn: #e0a030; --crit: #e66767; --info: #6da7ec;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1a1a19; --surface-2: #232321; --border: #2e2e2b;
  --text: #f0efec; --text-2: #c3c2b7; --text-3: #8f8d86; --accent: #6da7ec;
  --good: #3fb96f; --warn: #e0a030; --crit: #e66767; --info: #6da7ec;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1 { font-size: 24px; letter-spacing: -0.01em; margin: 8px 0 14px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.muted { color: var(--text-3); }
.bad { color: var(--crit); } .warn { color: var(--warn); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px 20px; align-items: center; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo { height: 36px; width: auto; display: block; } .logo-lg { height: 72px; width: auto; display: block; margin: 0 auto 6px; }
picture { display: contents; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current] { background: var(--text); color: var(--surface); }
.who { margin-left: auto; font-size: 14px; color: var(--text-3); }
.who a { color: var(--text-2); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: var(--text-3); font-size: 12px; padding: 24px 16px 32px; }

/* building blocks */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: flex-end; }
.row > label { flex: 1 1 200px; }
.row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 16px; align-items: start; }
.narrow { max-width: 480px; }
.crumb { margin: 0; font-size: 14px; color: var(--text-3); }
.crumb a { color: var(--text-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn.ghost { background: none; }
.btn.danger { color: var(--crit); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.pill.good { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--crit) 15%, transparent); color: var(--crit); }
.pill.info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; border: 1px solid; }
.flash.ok { background: color-mix(in srgb, var(--good) 10%, var(--surface)); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.flash.warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.flash.bad { background: color-mix(in srgb, var(--crit) 9%, var(--surface)); border-color: color-mix(in srgb, var(--crit) 40%, transparent); color: var(--crit); }

/* forms */
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
input, select, textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; min-height: 42px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 0; border-color: var(--accent); }
.form > label, .form .row, .form .sub { margin-bottom: 12px; }
label.chk { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; color: var(--text); font-weight: 500; }
label.chk input { width: 20px; min-height: 20px; height: 20px; }
.sub { border-left: 3px solid var(--border); padding-left: 12px; }
.login { max-width: 380px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.login label { text-align: left; }
.inline { display: inline; }

/* tables */
.tw { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.act { text-align: right; white-space: nowrap; }
td a { text-decoration: none; }
tr.off td { opacity: .55; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
dt { color: var(--text-3); font-size: 14px; } dd { margin: 0; }

/* home + tiles */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.module { text-decoration: none; color: var(--text); display: block; transition: border-color .15s; }
a.module:hover { border-color: var(--text-3); }
.module.soon { opacity: .6; }
.stats { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; }
.stats b { font-size: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.tile b { font-size: 28px; line-height: 1.1; } .tile span { color: var(--text-3); font-size: 13px; }
.tile.is-bad { border-color: color-mix(in srgb, var(--crit) 45%, var(--border)); } .tile.is-bad b { color: var(--crit); }
.kit { margin: 0; padding-left: 20px; columns: 2 220px; } .kit li { margin-bottom: 4px; break-inside: avoid; }
.events { list-style: none; margin: 0; padding: 0; font-size: 14px; } .events li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.events li:last-child { border: 0; }

/* checklist */
.check-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text-3); font-size: 14px; }
.ci { display: grid; grid-template-columns: minmax(180px, 1.3fr) auto minmax(180px, 1fr); gap: 8px 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; border-left-width: 4px; }
.ci.ok { border-left-color: var(--good); } .ci.damaged { border-left-color: var(--warn); } .ci.missing { border-left-color: var(--crit); }
.ci-note { min-height: 38px; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg label { flex-direction: row; align-items: center; gap: 0; font-size: 14px; color: var(--text); cursor: pointer; min-height: 38px; padding: 0 12px; position: relative; }
.seg label + label { border-left: 1px solid var(--border); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg .s-ok:has(input:checked) { background: var(--good); color: #fff; }
.seg .s-damaged:has(input:checked) { background: var(--warn); color: #fff; }
.seg .s-missing:has(input:checked) { background: var(--crit); color: #fff; }
.c-ok { color: var(--good); font-weight: 600; } .c-damaged { color: var(--warn); font-weight: 600; } .c-missing { color: var(--crit); font-weight: 600; }
@media (max-width: 720px) { .ci { grid-template-columns: 1fr; } .seg { width: 100%; } .seg label { flex: 1; justify-content: center; } }

/* kit editor */
.kit-ed { margin-bottom: 12px; }
.kr { display: grid; grid-template-columns: 2fr 1.2fr 80px 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.kh { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; }
@media (max-width: 600px) { .kr { grid-template-columns: 1fr 70px 40px; } .kr input[name=item_serial] { grid-column: 1 / 2; grid-row: 2; } .kh span:nth-child(2) { display: none; } }
details summary { list-style: none; } details summary::-webkit-details-marker { display: none; }
details[open] { background: var(--surface-2); padding: 10px; border-radius: 10px; text-align: left; }
details[open] form { margin-top: 10px; }

@media (max-width: 720px) { .top { position: static; } .who { margin-left: 0; } }
.tile.is-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); } .tile.is-warn b { color: var(--warn); }

/* 1.2.0: bookings, calendar, print form */
.pill.gold { background: color-mix(in srgb, var(--gold) 22%, transparent); color: color-mix(in srgb, var(--gold) 70%, var(--text)); }
.tile.is-gold { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.ref { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; flex-wrap: wrap; counter-reset: s; }
.steps li { counter-increment: s; padding: 6px 12px 6px 8px; border-radius: 20px; background: var(--surface-2); color: var(--text-3); font-size: 13px; font-weight: 600; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 6px; background: var(--border); color: var(--text-2); font-size: 12px; }
.steps li.on { background: var(--charcoal); color: #fff; } .steps li.on::before { background: var(--gold); color: var(--charcoal); }
.steps li.done::before { content: "✓"; background: var(--good); color: #fff; }
.terms { white-space: pre-line; line-height: 1.55; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); max-height: 420px; overflow: auto; margin-bottom: 14px; }
label.chk.big { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; line-height: 1.4; }
label.chk.big input { margin-top: 1px; flex: none; }
label.chk.big:has(input:checked) { border-color: var(--good); background: color-mix(in srgb, var(--good) 7%, var(--surface)); }
code.path { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); font-size: 13px; word-break: break-all; }
.tickbox { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.dates label { flex: 1 1 150px; }

/* calendar */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.lg { display: inline-block; width: 22px; height: 10px; border-radius: 3px; margin-right: -8px; vertical-align: middle; }
.cal-wrap { padding: 0; overflow-x: auto; }
.cal { display: grid; grid-template-columns: 170px repeat(var(--n), minmax(30px, 1fr)); grid-auto-rows: 52px; min-width: calc(170px + var(--n) * 30px); position: relative; }
.cal > * { grid-row-start: auto; }
.cal-corner, .cal-day { grid-row: 1; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 3; }
.cal-corner { grid-column: 1; align-items: flex-start; padding-left: 14px; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; left: 0; z-index: 4; }
.cal-day small { font-size: 10px; color: var(--text-3); font-weight: 600; }
.cal-day.today { color: var(--surface); background: var(--charcoal); border-radius: 0 0 8px 8px; } .cal-day.today small { color: var(--gold); }
.cal-name { grid-column: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 14px; font-size: 14px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; left: 0; z-index: 2; text-decoration: none; color: var(--text); }
.cal-name small { font-size: 11px; }
.cal-cell { border-bottom: 1px solid var(--border); border-left: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.cal-cell.we { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.cal-cell.today { background: color-mix(in srgb, var(--gold) 12%, transparent); }
a.cal-cell:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); }
.cal-bar { align-self: center; height: 26px; margin: 0 2px; border-radius: 7px; z-index: 1; display: flex; align-items: center; overflow: hidden; text-decoration: none; font-size: 12px; font-weight: 700; padding: 0 7px; margin-top: -6px; }
.cal-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.cal-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.cal-log { align-self: end; height: 4px; margin: 0 4px 8px; border-radius: 2px; background: var(--gold); z-index: 1; pointer-events: none; }
.cal-bar.reserved, .lg.reserved { background: color-mix(in srgb, var(--gold) 20%, var(--surface)); border: 1.5px dashed var(--gold); color: var(--text); }
.cal-bar.out, .lg.out { background: var(--charcoal); color: #fff; }
:root[data-theme="dark"] .cal-bar.out, :root[data-theme="dark"] .lg.out { background: #e9e7e1; color: #111; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-bar.out, :root:not([data-theme="light"]) .lg.out { background: #e9e7e1; color: #111; } }
.cal-bar.late, .lg.late { background: var(--crit); color: #fff; }
.cal-bar.cleaning, .lg.cleaning { background: color-mix(in srgb, var(--warn) 30%, var(--surface)); color: var(--text); border: 1px solid var(--warn); }
.cal-bar.closed, .lg.closed { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
.lg.logline { height: 4px; background: var(--gold); }

/* print: the booking form */
.printonly { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  .top, .foot, .noprint, .flash, .crumb { display: none !important; }
  .printonly { display: block; }
  html, body { background: #fff !important; } body { color: #000; font-size: 12px; font-family: "Open Sans", var(--font); }
  .wrap { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; margin-bottom: 10px; background: none; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  h1 { font-size: 18px; margin: 4px 0 8px; } h2 { font-size: 13px; margin-bottom: 6px; border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
  .printhead { display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--gold); padding-bottom: 8px; margin-bottom: 10px; }
  .printhead b { letter-spacing: .04em; } .printhead .ph-ref { margin-left: auto; text-align: right; font-size: 14px; }
  table { font-size: 11px; } td, th { padding: 5px 6px; } .tw { overflow: visible; }
  .pill { border: 1px solid #999; }
  .signoff h3 { font-size: 13px; margin: 14px 0 4px; }
  .accept { font-size: 11px; margin: 4px 0; }
  .sig { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 16px; margin-top: 22px; }
  .sig span { border-top: 1px solid #000; padding-top: 3px; font-size: 10px; color: #333; }
  .terms-page { break-before: page; }
  .terms-page .terms { max-height: none; overflow: visible; border: 0; background: none; padding: 0; font-size: 11px; }
}

/* client picker */
.picker { position: relative; margin-bottom: 12px; }
.pk-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .12); max-height: 340px; overflow: auto; }
.pk-item { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: inherit; cursor: pointer; }
.pk-item:hover, .pk-item:focus { background: var(--surface-2); outline: none; }
.pk-new { color: var(--accent); font-weight: 600; border-bottom: 0; }
.pk-msg { padding: 10px 14px; color: var(--text-3); }
.pk-chosen { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--good); border-radius: 12px; background: color-mix(in srgb, var(--good) 6%, var(--surface)); }
.wide-first { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
@media (max-width: 800px) { .wide-first { grid-template-columns: 1fr; } }
.pk-chosen[hidden], .pk-list[hidden], .picker input[hidden] { display: none; }

table.clients { table-layout: fixed; }
table.clients th:nth-child(1) { width: 26%; } table.clients th:nth-child(2) { width: 22%; } table.clients th:nth-child(3) { width: 30%; }
table.clients th:nth-child(4) { width: 12%; } table.clients th:nth-child(5) { width: 70px; }
table.clients td { overflow-wrap: anywhere; }

/* module layout: menu down the left */
.shell { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 8px; align-items: start; }
.side { position: sticky; top: 64px; padding: 20px 0 20px 16px; }
.side-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding: 0 12px 10px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side a { padding: 9px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; border-left: 3px solid transparent; }
.side a:hover { background: var(--surface-2); color: var(--text); }
.side a[aria-current] { background: var(--surface); color: var(--text); border-left-color: var(--gold); box-shadow: 0 0 0 1px var(--border); }
.side-sep { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 14px 12px 4px; }
.wrap.in-shell { max-width: none; margin: 0; min-width: 0; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; padding: 8px 16px 0; overflow-x: auto; }
  .side-title { display: none; }
  .side nav { flex-direction: row; gap: 6px; white-space: nowrap; }
  .side a { border-left: 0; border-bottom: 3px solid transparent; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
  .side a[aria-current] { border-bottom-color: var(--gold); box-shadow: none; background: var(--surface); }
  .side-sep { display: none; }
}
@media print { .side { display: none !important; } .shell { display: block; } }

/* print: keep the booking and release form on one A4 page (terms follow on their own page) */
@media print {
  @page { size: A4; margin: 10mm 12mm; }
  body { font-size: 10px; line-height: 1.35; }
  .printhead { padding-bottom: 5px; margin-bottom: 6px; gap: 10px; }
  .printhead img { width: 44px; height: auto; }
  h1 { font-size: 14px; margin: 0 0 4px; }
  h2 { font-size: 11px; margin: 0 0 3px; padding-bottom: 2px; }
  .card { margin-bottom: 5px; }
  .grid2 { gap: 0 14px; }
  dl { gap: 0 10px; margin-bottom: 3px; } dt, dd { font-size: 9.5px; line-height: 1.35; }
  .card p { margin: 2px 0; font-size: 9.5px; }
  table.cl td, table.cl th { padding: 2px 5px; font-size: 9.5px; line-height: 1.3; }
  .tickbox { font-size: 9px; }
  .signoff h3 { font-size: 11px; margin: 6px 0 2px; }
  .accept { font-size: 9.5px; margin: 2px 0; line-height: 1.35; }
  .sig-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .sig-cols h4 { font-size: 10px; margin: 6px 0 0; }
  .sig { grid-template-columns: 1.4fr 1.4fr 0.8fr; gap: 8px; margin-top: 20px; }
  .sig span { font-size: 8.5px; }
  .terms-page .terms { font-size: 9.5px; line-height: 1.4; }
}
@media screen { .sig-cols h4 { display: none; } }

/* service exchange */
.tile.is-good { border-color: color-mix(in srgb, var(--good) 45%, var(--border)); } .tile.is-good b { color: var(--good); }
.live { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.bar { display: inline-block; vertical-align: middle; width: 70px; height: 6px; border-radius: 3px; background: var(--surface-2); margin-left: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--good); }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.unit-chip { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; background: var(--surface); min-width: 0; }
.unit-chip:hover { border-color: var(--text-3); }
.unit-chip.st-available { border-left-color: var(--good); } .unit-chip.st-reserved { border-left-color: var(--gold); }
.unit-chip.st-out { border-left-color: var(--info); } .unit-chip.st-testing, .unit-chip.st-repair { border-left-color: var(--warn); }
.unit-chip.st-faulty { border-left-color: var(--crit); }
.uc-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.uc-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-name { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tests { margin-bottom: 14px; }
.tr { display: grid; grid-template-columns: minmax(160px, 1.4fr) minmax(90px, .8fr) minmax(140px, 1fr) auto; gap: 8px 14px; align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-left-width: 4px; border-radius: 12px; margin-bottom: 8px; }
.tr.th { border: 0; padding-bottom: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.tr.pass { border-left-color: var(--good); } .tr.fail { border-left-color: var(--crit); }
.meas { display: flex; align-items: center; gap: 6px; } .meas input { max-width: 130px; }
.outcome { display: grid; gap: 8px; margin-bottom: 12px; }
.outcome select { display: inline-block; width: auto; min-height: 34px; margin-left: 4px; }
@media (max-width: 720px) { .tr { grid-template-columns: 1fr 1fr; } .tr.th { display: none; } .tr .seg { grid-column: 1 / -1; } .board { grid-template-columns: 1fr 1fr; } }
@media print { .live { display: none; } }
table.users select { min-height: 34px; padding: 4px 8px; font-size: 14px; min-width: 150px; }
