:root {
  color-scheme: light;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: #141414;
  background: #f5f5f5;
  line-height: 1.45;
  --ink: #141414;
  --header: #141414;
  --muted: #505050;
  --border: #d6d6d6;
  --canvas: #f5f5f5;
  --surface: #ffffff;
  --accent: #d71920;
  --accent-pressed: #bd151c;
  --accent-ink: #171717;
  --accent-wash: #eeeeee;
  --danger: #171717;
  --focus: #d71920;
  --radius: 13px;
  --shadow: 0 1px 2px #00000016;
  --stage-ink: #222222;
  --stage-dye: #777777;
  --stage-fill: #efefef;
  --stage-edge: #d6d6d6;
}

[data-status="ready"] {
  --stage-ink: #141414;
  --stage-dye: #383838;
  --stage-fill: #ffffff;
  --stage-edge: #d6d6d6;
}
[data-status="reserved"] {
  --stage-ink: #141414;
  --stage-dye: #717171;
  --stage-fill: #fafafa;
  --stage-edge: #d6d6d6;
  --stage-mark: repeating-linear-gradient(135deg, var(--stage-dye) 0 2px, #eeeeee 2px 4px);
}
[data-status="checkedOut"] {
  --stage-ink: #141414;
  --stage-dye: #141414;
  --stage-fill: #f2f2f2;
  --stage-edge: #d6d6d6;
}
[data-status="needsInspection"] {
  --stage-ink: #141414;
  --stage-dye: #676767;
  --stage-fill: #ffffff;
  --stage-edge: #d6d6d6;
  --stage-mark: repeating-linear-gradient(135deg, var(--stage-dye) 0 2px, #eeeeee 2px 4px);
}
[data-status="hold"] {
  --stage-ink: #141414;
  --stage-dye: #d71920;
  --stage-fill: #ffffff;
  --stage-edge: #d6d6d6;
}
[data-status="needsVerification"] {
  --stage-ink: #141414;
  --stage-dye: #535353;
  --stage-fill: #f7f7f7;
  --stage-edge: #d6d6d6;
  --stage-mark: repeating-linear-gradient(135deg, var(--stage-dye) 0 2px, #eeeeee 2px 4px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(1.58rem, 4.5vw, 2.15rem); }
h2 { font-size: 1.12rem; }
h3 { font-size: 1.02rem; }
img { max-width: 100%; }

.masthead {
  position: sticky;
  z-index: 5;
  inset-block-start: 0;
  background: var(--header);
  color: #fff;
  border-bottom: 1px solid #363636;
  padding-top: env(safe-area-inset-top);
}
.bar-inner {
  width: min(100% - 30px, 1250px);
  margin-inline: auto;
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 30px;
  height: 30px;
  padding: 2px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: #d71920;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: .81rem;
  font-weight: 750;
  line-height: 1.12;
}
.brand-copy small { color: #d8d8d8; font-size: .69rem; font-weight: 620; }
.masthead .button.quiet, .masthead .back-button { color: #ffffff; }
.masthead .button.quiet:hover, .masthead .back-button:hover { background: #333333; }
.top-actions { display: flex; align-items: center; gap: 5px; min-width: 0; }
.role-control { min-width: 0; }
.role-control select {
  color-scheme: dark;
  display: block;
  width: 100%;
  min-height: 44px;
  max-width: 160px;
  padding: 7px 11px;
  border: 1px solid #666666;
  border-radius: 8px;
  color: #fff;
  background: #252525;
  font-size: 1rem;
}
.masthead :focus-visible { outline-color: #bd151c; }
.icon-button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}
.icon-button:hover { background: #ffffff16; }
.help-icon, .icon-button > [aria-hidden="true"] {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #bcbcbc;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1;
}

.app-layout { width: min(100% - 28px, 1250px); margin-inline: auto; }
.workspace-shell {
  min-width: 0;
  padding-block: 17px calc(83px + env(safe-area-inset-bottom));
}
.workspace, .guide-strip { min-width: 0; scroll-margin-top: calc(69px + env(safe-area-inset-top)); }
.tabs {
  position: fixed;
  z-index: 4;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 2px;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -2px 13px #00000021;
}
.tabs button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 50px;
  padding: 4px 5px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: center;
  font-size: .75rem;
  font-weight: 720;
}
.tabs button[aria-current="page"] { color: var(--accent-ink); background: var(--accent-wash); box-shadow: inset 0 -3px var(--accent); }
.tabs button:hover:not([aria-current="page"]) { background: #eeeeee; }
.nav-icon { display: block; position: relative; width: 19px; height: 19px; flex: none; color: inherit; }
.nav-icon::before, .nav-icon::after { content: ""; display: block; position: absolute; }
[data-value="board"] .nav-icon::before {
  width: 7px;
  height: 7px;
  top: 2px;
  left: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 8px 0, 0 8px, 8px 8px;
}
[data-value="equipment"] .nav-icon::before {
  inset: 3px 1px 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
[data-value="equipment"] .nav-icon::after {
  top: 5px;
  left: 6px;
  right: 6px;
  border-top: 2px solid currentColor;
}
[data-value="jobs"] .nav-icon::before { inset: 2px 2px 1px; border: 2px solid currentColor; border-radius: 2px; }
[data-value="jobs"] .nav-icon::after { top: 7px; left: 6px; right: 6px; height: 2px; background: currentColor; box-shadow: 0 4px; }
[data-value="repairs"] .nav-icon::before {
  width: 17px;
  height: 5px;
  top: 7px;
  left: 1px;
  transform: rotate(-45deg);
  background: currentColor;
  border-radius: 2px;
}
[data-value="repairs"] .nav-icon::after {
  width: 8px;
  height: 8px;
  top: 1px;
  right: 1px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  background: var(--surface);
}

.page-head, .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 40px;
  margin-bottom: 9px;
}
.page-head p, .section-head p, .job-meta, .muted { font-size: .875rem; color: var(--muted); }
.page-head .actions { margin: 0; }
.page-head .button { min-height: 43px; }
.board-sections { display: grid; gap: 15px; }
.board-section { min-width: 0; }
.section-heading {
  min-height: 33px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  margin-bottom: 3px;
}
.section-heading h2 { font-size: 1rem; }
.section-heading small, .section-heading p { color: var(--muted); font-size: .875rem; }
.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stage-card {
  position: relative;
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  padding: 8px 9px 8px 11px;
  text-align: left;
  border: 1px solid var(--stage-edge);
  border-radius: 10px;
  background: var(--stage-fill);
  color: var(--stage-ink);
  box-shadow: var(--shadow);
}
.stage-card:hover { border-color: var(--stage-dye); }
.stage-card[data-status="hold"] { border-inline-start: 3px solid var(--accent); }
.stage-card[data-status="ready"] .stage-signal { border-radius: 50%; }
.stage-card[data-status="checkedOut"] .stage-signal { border-radius: 0; }
.stage-card[data-status="reserved"] .stage-signal { transform: rotate(45deg); }
.stage-card[data-status="needsInspection"] .stage-signal { border-radius: 50%; }
.stage-card[data-status="needsVerification"] .stage-signal { width: 10px; height: 6px; }
.stage-card:active { transform: translateY(1px); }
.stage-count { font-size: 1.74rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.055em; }
.stage-name { max-width: 100%; overflow-wrap: anywhere; font-size: .83rem; font-weight: 750; line-height: 1.19; }
.stage-signal {
  position: absolute;
  inset: 9px 9px auto auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--stage-mark, var(--stage-dye));
}

.location-list { display: grid; gap: 5px; }
.location-card {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 53px;
  padding: 7px 9px 9px;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow);
}
.location-card:hover { border-color: #d71920; }
.location-top { display: flex; align-items: center; gap: 7px; line-height: 1.25; }
.location-name { font-size: .9rem; font-weight: 770; }
.location-total { margin-inline-start: auto; color: var(--muted); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.location-total strong { color: var(--ink); font-size: .97rem; font-weight: 810; }
.location-icon { position: relative; flex: none; width: 17px; height: 17px; color: #434343; }
.location-icon::before, .location-icon::after { content: ""; position: absolute; display: block; }
.location-icon::before { inset: 3px 2px; border: 1.5px solid currentColor; border-radius: 2px; }
.location-icon::after { inset: 7px 5px 5px; border-top: 1.5px solid currentColor; }
.location-icon[data-location^="truck"]::before { inset: 4px 3px 5px 0; border-radius: 2px 4px 1px 1px; }
.location-icon[data-location^="truck"]::after {
  inset: auto auto 2px 2px;
  width: 3px;
  height: 3px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 7px 0 currentColor;
}
.location-bar {
  display: flex;
  gap: 1px;
  height: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: #dddddd;
}
.location-segment { display: block; flex: var(--units, 1) 1 0; background: var(--stage-mark, var(--stage-dye)); }
.location-breakdown { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; line-height: 1.2; }
.location-breakdown > * {
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--stage-ink);
  background: var(--stage-fill);
  font-size: .75rem;
  font-weight: 720;
  white-space: nowrap;
}

.guide-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 50px;
  margin-bottom: 12px;
  padding: 7px 8px 7px 10px;
  border: 1px solid #d6d6d6;
  border-inline-start: 4px solid var(--accent);
  border-radius: 9px;
  background: #ffffff;
  color: var(--accent-ink);
}
.guide-text { flex: 1 1 135px; min-width: 0; font-size: .89rem; font-weight: 760; }
.guide-text small, .guide-text p { display: block; font-size: .82rem; font-weight: 560; }
.guide-progress { color: #464646; font-size: .77rem; font-weight: 750; white-space: nowrap; }
.guide-strip .button { min-height: 44px; }
.guide-strip .icon-button { color: var(--accent-ink); }
.guide-strip .icon-button:hover { background: #dedede; }

.search-row { display: flex; align-items: flex-end; gap: 7px; }
.search-field { flex: 1; min-width: 0; }
.search-field > span { font-size: .875rem; font-weight: 700; }
.search-field input { width: 100%; min-height: 47px; }
.filter-toggle { flex: none; }
.quick-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-block: 8px; }
.chip {
  min-height: 44px;
  padding: 5px 9px;
  border: 1px solid var(--stage-edge);
  border-radius: 7px;
  background: var(--surface);
  color: var(--stage-ink);
  font-size: .79rem;
  font-weight: 710;
}
.chip[aria-pressed="true"] { background: var(--stage-fill); border-color: var(--stage-dye); box-shadow: inset 0 0 0 1px var(--stage-dye); }
.chip:hover { background: var(--stage-fill); }
.filters-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 9px; margin-block: 8px; padding: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.filter-group { display: grid; align-content: start; gap: 4px; }
.filter-summary, .list-label { color: var(--muted); font-size: .84rem; margin-block: 7px; }
.list-label, .filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.board-guide { margin-top: 6px; }

.equipment-list { display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.equipment-row {
  width: 100%;
  min-height: 61px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}
.equipment-row + .equipment-row { border-top: 1px solid #d6d6d6; }
.equipment-row:hover { background: #f5f5f5; }
.equipment-row:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.equipment-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: #ececec;
  color: #202020;
  font-size: .67rem;
  font-weight: 790;
}
.equipment-meta { min-width: 0; display: grid; }
.equipment-meta > * { min-width: 0; overflow-wrap: anywhere; }
.asset-id { font-size: .92rem; font-weight: 790; font-variant-numeric: tabular-nums; }
.equipment-meta > span:not(.asset-id), .equipment-meta small { font-size: .78rem; color: var(--muted); }
.equipment-side { display: grid; justify-items: end; gap: 2px; min-width: 0; text-align: right; }
.equipment-location { display: block; color: var(--muted); font-size: .74rem; font-weight: 630; }
.pill, .stage-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  color: var(--stage-ink);
  background: var(--stage-fill);
  border-radius: 5px;
  font-size: .73rem;
  font-weight: 750;
  line-height: 1.25;
}
.stage-pill { padding: 5px 7px; font-size: .78rem; }

.detail-grid, .detail-main, .detail-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.card, .job-card, .history-box, .empty {
  min-width: 0;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card, .job-card, .empty { padding: 12px; }
.unit-card { display: grid; gap: 10px; }
.unit-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.unit-heading p { color: var(--muted); font-size: .88rem; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(115px, 100%), 1fr)); gap: 4px 10px; }
.facts dt { color: var(--muted); font-size: .8rem; }
.facts dd { margin: 0; font-size: .94rem; font-weight: 690; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.unit-card .actions .primary { flex: 1 1 145px; }
.history-box > summary {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 760;
}
.history-box > summary::-webkit-details-marker { display: none; }
.history-box > summary::after { content: "+"; float: inline-end; color: var(--muted); }
.history-box[open] > summary::after { content: "−"; }
.history-box .timeline { padding: 0 12px 8px; }
.timeline { display: grid; padding: 0; margin: 0; list-style: none; }
.timeline-event { padding: 9px 0 9px 9px; border-inline-start: 2px solid #9c9c9c; overflow-wrap: anywhere; }
.timeline-event p { white-space: pre-wrap; }
.timeline-event small { display: block; color: var(--muted); font-size: .8rem; }
.timeline-event + .timeline-event { border-top: 1px solid #dddddd; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100px, 100%), 1fr)); gap: 5px; margin-top: 7px; }
.photo-grid img { display: block; width: 100%; max-height: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }

.job-grid { display: grid; gap: 7px; }
.job-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 5px;
  width: 100%;
  text-align: left;
}
button.job-card:hover { border-color: #d71920; }
.job-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: .84rem; }
.job-card .section-head { width: 100%; margin: 0; }
.job-card .eyebrow, .eyebrow { color: var(--muted); font-size: .75rem; font-weight: 750; }
.list { display: grid; list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding: 7px 0; }
.list-item + .list-item { border-top: 1px solid #d6d6d6; }
.list-item > div { min-width: 0; }
.list-item small { display: block; color: var(--muted); font-size: .8rem; }
.task-card > * + * { margin-top: 7px; }
.task-card .section-head { margin: 0; }
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  color: var(--accent-ink);
  background: transparent;
  font-weight: 730;
  text-align: left;
}
.text-button:hover { text-decoration: underline; }
.alternate { margin-block: 7px; border-color: #d6d6d6; }
.alternate .button { margin-top: 6px; }
.empty { color: var(--muted); }

.button, .back-button, .filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #a5a5a5;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 730;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}
.button:hover, .filter-toggle:hover { background: #efefef; }
.button.primary { color: #ffffff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-pressed); border-color: var(--accent-pressed); }
.button.quiet, .back-button {
  width: fit-content;
  padding-inline: 3px;
  border-color: transparent;
  background: transparent;
  color: var(--accent-ink);
}
.button.quiet:hover, .back-button:hover { background: var(--accent-wash); }
.button.danger { color: var(--danger); border-color: #d71920; background: #f5f5f5; }
.button.danger:hover { background: #eeeeee; }
.button.icon { width: 44px; padding: 0; }
.alert {
  margin-bottom: 8px;
  padding: 8px 9px;
  color: #141414;
  background: #f5f5f5;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-size: .875rem;
}
.alert[data-tone="error"] { color: #1e1e1e; background: #f5f5f5; border-color: #d71920; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px; padding-top: 10px; color: var(--muted); font-size: .8rem; }

label:not(.role-control):not(.chip) { display: grid; align-content: start; gap: 3px; color: var(--ink); font-size: .9rem; font-weight: 675; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid #a5a5a5;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}
input::placeholder, textarea::placeholder { opacity: 1; color: #626262; }
textarea { resize: vertical; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); }
input[type="file"] { max-width: 100%; }
input::file-selector-button { border: 0; border-radius: 4px; background: var(--accent-wash); color: var(--accent-ink); font: inherit; }
.dialog {
  background: var(--surface);
  width: min(100% - 21px, 490px);
  max-height: min(calc(100% - 24px), 780px);
  padding: 13px;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 16px 70px #00000090;
}
.dialog::backdrop { background: #000000bd; }
.dialog h2 { margin-bottom: 7px; font-size: 1.26rem; }
.dialog p { margin-bottom: 6px; }
.dialog .actions { margin-top: 8px; }
.dialog .actions .primary { flex: 1 1 150px; }
.form-grid { display: grid; gap: 7px; }
.checklist, .photo-inputs {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
}
.checklist legend, .photo-inputs legend { padding: 0; margin-bottom: 2px; font-size: .9rem; font-weight: 735; }
.check-row { display: flex; align-items: center; gap: 5px 8px; justify-content: space-between; flex-wrap: wrap; padding-block: 3px; border-bottom: 1px solid #d6d6d6; }
.check-row > :first-child { flex: 1 1 118px; min-width: 0; font-size: .82rem; }
.check-options { display: flex; flex-wrap: wrap; gap: 3px; }
.check-options label {
  display: inline-flex !important;
  min-height: 44px;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  border: 1px solid #a2a2a2;
  border-radius: 5px;
  font-size: .76rem !important;
  white-space: nowrap;
}
.check-options label:has(input[value="pass"]:checked) { background: #f5f5f5; border-color: #a5a5a5; color: #141414; }
.check-options label:has(input[value="fail"]:checked) { background: #f3f3f3; border-color: #d71920; color: #222222; }
.photo-inputs small { color: var(--muted); font-size: .8rem; }
.form-error { color: var(--accent); }
.guide-steps { display: grid; gap: 5px; padding-inline-start: 18px; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 339px) {
  .bar-inner, .app-layout { width: calc(100% - 18px); }
  .brand-copy small { display: none; }
  .role-control select { max-width: 132px; }
  .stage-grid { gap: 4px; }
  .stage-card { padding-inline: 7px; }
  .stage-name { font-size: .77rem; }
  .stage-signal { inset-inline-end: 6px; }
}
@media (min-width: 520px) {
  .bar-inner, .app-layout { width: min(100% - 44px, 1250px); }
  .stage-grid { gap: 8px; }
  .stage-card { min-height: 87px; padding-inline: 13px; }
  .stage-count { font-size: 2rem; }
  .stage-name { font-size: .92rem; }
  .equipment-row { gap: 9px 12px; padding-inline: 11px; }
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 790px) {
  .app-layout { display: grid; grid-template-columns: 143px minmax(0, 1fr); gap: 16px; }
  .workspace-shell { padding-block: 23px 34px; }
  .tabs {
    position: sticky;
    align-self: start;
    inset: calc(75px + env(safe-area-inset-top)) auto auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin-top: 23px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: var(--shadow);
  }
  .tabs button[aria-current="page"] { box-shadow: inset 3px 0 var(--accent); }
  .tabs button { flex-direction: row; justify-content: flex-start; gap: 7px; padding-inline: 8px; font-size: .88rem; min-height: 44px; text-align: left; }
  .detail-grid { grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); }
  .job-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .app-layout { grid-template-columns: 158px minmax(0, 1fr); gap: 22px; }
  .board-sections { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; align-items: start; }
  .stage-card { min-height: 97px; }
  .location-card { min-height: 61px; }
  .card, .job-card, .empty { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

/* Model reference photos distinguish inventory without obscuring lifecycle status. */
.equipment-thumb{width:50px;height:46px;background:#fff;border:1px solid #e4e4e4;border-radius:7px;display:grid;place-items:center;overflow:hidden;flex:none}
.equipment-photo{display:block;width:100%;height:100%;object-fit:contain;padding:2px}
.equipment-detail{grid-template-columns:minmax(105px,30%) minmax(0,1fr);align-items:start;gap:14px}
.equipment-figure{margin:0;min-width:0}
.equipment-figure .equipment-photo{height:clamp(108px,20vw,176px);border:1px solid #e4e4e4;border-radius:9px;background:#fff}
.equipment-figure figcaption,.job-truck figcaption{font-size:.67rem;color:var(--muted);line-height:1.35;margin-top:4px;overflow-wrap:anywhere}
.equipment-figure a,.job-truck a{text-underline-offset:2px}
.equipment-summary{display:grid;min-width:0;gap:9px}
.equipment-summary .unit-heading{flex-wrap:wrap}
.equipment-summary .unit-heading p{overflow-wrap:anywhere}
.assigned-equipment{display:flex;align-items:center;gap:8px;min-width:0}
.assigned-equipment>div{min-width:0}
.location-content{display:grid;align-content:center;gap:4px;min-width:0}
.location-card.with-truck{grid-template-columns:clamp(64px,18vw,110px) minmax(0,1fr);align-items:center;gap:9px}
.location-preview{min-width:0}
.truck-photo{display:block;width:100%;height:auto;border-radius:7px;background:#ededed}
.vehicle-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,1.1fr);align-items:center;gap:12px}
.vehicle-card .actions{margin-top:7px}
.job-truck{margin:0;min-width:0}
.repair-filters{margin-block:5px 10px}
.repair-filters .chip span{font-variant-numeric:tabular-nums;margin-inline-start:3px;opacity:.75}
.repair-list-card .repair-card-meta,.repair-held-note{font-size:.82rem;color:var(--muted)}
.repair-facts{padding:9px;border:1px solid var(--border);border-radius:8px;background:#f5f5f5}
@media(max-width:375px){.equipment-thumb{width:42px;height:40px}.equipment-detail{grid-template-columns:92px minmax(0,1fr);gap:9px}.vehicle-card{grid-template-columns:1fr}.job-truck{max-width:100%}}
.truck-credit{margin:4px 0 0;font-size:.68rem;color:var(--muted);line-height:1.35}
.truck-credit a{text-underline-offset:2px}
