:root {
  --font-sans: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;

  --ink: #171717;
  --paper: #fafafa;
  --surface: #ffffff;
  --line: #ebebeb;
  --muted: #808080;
  --faint: #a3a3a3;
  --soft: #f4f4f6;
  --rail-avatar: #ebebeb;

  --ic-blue: #38598C;
  --ic-blue-text: #2f4e7d;
  --ic-blue-tint: #EAF1FB;
  --ic-green: #3F6B50;
  --ic-green-text: #31573F;
  --ic-green-tint: #EAF4ED;
  --ic-amber: #d97706;
  --ic-amber-text: #b45309;
  --ic-amber-tint: #fffbeb;
  --ic-hot: #A84B44;
  --ic-hot-text: #8F3E38;
  --ic-hot-tint: rgba(168, 75, 68, 0.08);

  --ring-subtle: rgba(0, 0, 0, 0.08) 0 0 0 1px;
  --ring-soft: rgb(235, 235, 235) 0 0 0 1px;
  --ring-toolbar: rgba(0, 0, 0, 0.06) 0 1px 0;
  --ring-search: rgba(0, 0, 0, 0.1) 0 0 0 1px;
  --ring-card: rgba(0, 0, 0, 0.08) 0 0 0 1px, 0 2px 2px rgba(0, 0, 0, 0.04), 0 8px 8px -8px rgba(0, 0, 0, 0.04);
  --ring-modal: rgba(0, 0, 0, 0.08) 0 0 0 1px, rgba(0, 0, 0, 0.22) 0 24px 64px -16px;
  --ring-live: rgba(63, 107, 80, 0.25) 0 0 0 1px;
  --ring-amber: rgba(180, 83, 9, 0.3) 0 0 0 1px;
  --ring-blue: rgba(56, 89, 140, 0.25) 0 0 0 1px;
  --ring-hot: rgba(168, 75, 68, 0.28) 0 0 0 1px;
  --focus-ring: rgba(56, 89, 140, 0.35) 0 0 0 2px;

  /* Workshop refinement. Exact values from the approved UI spec. */
  --wb-page: #f6f7f8;
  --wb-surface: #ffffff;
  --wb-ink: #17191c;
  --wb-secondary: #606570;
  --wb-line: #e3e5e9;
  --wb-shadow: 0 1px 2px rgb(0 0 0 / 0.03);

  /* Approved workshop face. Hex lives here so the shell can reference tokens. */
  --ws-bg: #f6f7f8;
  --ws-surface: #ffffff;
  --ws-ink: #17191c;
  --ws-muted: #626873;
  --ws-line: #e3e5e9;
  --ws-soft: #f1f2f4;
  --ws-green: #17654d;
  --ws-amber: #8a531a;
  --ws-amber-bg: #fff8ec;
  --ws-red: #ad3941;
  --ws-purple: #65528a;
  --ws-focus: #3863a2;
  --ws-dot: #747981;
  --ws-white: #ffffff;
  --ws-step-border: #d3d7dd;
  --ws-mode-bg: #eaecef;
  --ws-mode-shadow: 0 1px 3px #17191c14;
  --ws-queue-hover: #eef0f2;
  --ws-choice-border: #d7dbe1;
  --ws-choice-ink: #353b44;
  --ws-choice-hover-border: #9399a2;
  --ws-choice-hover-bg: #fafbfc;
  --ws-choice-dot: #bcc2cb;
  --ws-choice-on: #f5f6f7;
  --ws-button-hover: #353941;
  --ws-disabled-bg: #e8eaed;
  --ws-disabled-ink: #79808a;
  --ws-disabled-border: #e1e4e8;
  --ws-secondary-border: #d5d9df;
  --ws-secondary-disabled-bg: #fafbfc;
  --ws-secondary-disabled-ink: #9198a1;
  --ws-danger: #a92d3d;
  --ws-placeholder: #7b818a;
  --ws-input-border: #ced3db;
  --ws-action-on: #f0f3f1;
  --ws-saved: #454c56;
  --ws-reason-ink: #535963;
  --ws-reason-border: #9299a2;
  --ws-reason-bg: #f7f8f9;
  --ws-track: #e8eaee;
  --ws-toast: #252931;
  --ws-backdrop: #20263266;
  --ws-dialog-shadow: 0 24px 90px #10182830;
  --ws-complete-border: #b5cfc3;
  --ws-serial: #464c56;
  --ws-exception-border: #c89d62;
  --ws-exception-ink: #715b39;
  --ws-completion: #4b535e;
  --ws-panel-shadow: 0 1px 2px #141c2a03;
  --ws-footer-h: 108px;

  /* Spacing, radius and control sizes. 4px sub-grid, 8px primary rhythm. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --control-touch: 44px;
  --control-desktop: 36px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
}

@keyframes ic-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes ic-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@font-face {
  font-family: "Geist";
  src:
    url("/assets/Geist-Variable-DPGgOCY9.woff2") format("woff2-variations"),
    url("/assets/Geist-Variable-DPGgOCY9.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src:
    url("/assets/GeistMono-Variable-Vc9u_qg9.woff2") format("woff2-variations"),
    url("/assets/GeistMono-Variable-Vc9u_qg9.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.ic-ring-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--ring-card);
}

.ic-ring-card[data-pad="sm"] {
  padding: 12px;
}

.ic-ring-card[data-pad="md"] {
  padding: 14px;
}

.ic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ic-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  flex: 0 0 auto;
}

.ic-pill[data-variant="live"],
.ic-pill[data-variant="green"] {
  color: var(--ic-green-text);
  background: var(--ic-green-tint);
  box-shadow: var(--ring-live);
}

.ic-pill[data-variant="live"] .ic-pill-dot {
  background: var(--ic-green);
  animation: ic-pulse 2s infinite;
}

.ic-pill[data-variant="green"] .ic-pill-dot {
  background: var(--ic-green);
}

.ic-pill[data-variant="amber"] {
  color: var(--ic-amber-text);
  background: var(--ic-amber-tint);
  box-shadow: var(--ring-amber);
}

.ic-pill[data-variant="amber"] .ic-pill-dot {
  background: var(--ic-amber);
}

.ic-pill[data-variant="blue"] {
  color: var(--ic-blue-text);
  background: var(--ic-blue-tint);
  box-shadow: var(--ring-blue);
}

.ic-pill[data-variant="blue"] .ic-pill-dot {
  background: var(--ic-blue);
}

.ic-pill[data-variant="hot"] {
  color: var(--ic-hot-text);
  background: var(--ic-hot-tint);
  box-shadow: var(--ring-hot);
}

.ic-pill[data-variant="hot"] .ic-pill-dot {
  background: var(--ic-hot);
}

.ic-rail-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0;
}

.ic-rail-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-rail-button span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.ic-rail-button[data-active="true"] {
  color: var(--ink);
  background: var(--soft);
  box-shadow: var(--ring-soft);
  border-radius: 10px;
  padding: 8px 0;
}

.ic-topbar {
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--ring-toolbar);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.ic-topbar-title-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ic-topbar-lane {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ic-topbar-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ic-topbar h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.ic-topbar-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ic-toolbar {
  flex: 0 0 auto;
  background: var(--surface);
  box-shadow: rgba(0, 0, 0, 0.06) 0 1px 0;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
}

.ic-toolbar-spacer {
  flex: 1;
}

.ic-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
  max-width: 38vw;
  min-width: 150px;
  background: var(--paper);
  box-shadow: var(--ring-search);
  border-radius: 8px;
  padding: 7px 11px;
}

.ic-search:focus-within {
  box-shadow: var(--ring-search), var(--focus-ring);
}

.ic-search svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.ic-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
}

.ic-search button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
}
.jarvis,
.jarvis * {
  box-sizing: border-box;
}

.jarvis {
  --jarvis-panel-w: 420px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ws-ink);
}

.jarvis button,
.jarvis textarea {
  font: inherit;
}

.jarvis textarea {
  color: inherit;
}

.jarvis button {
  cursor: pointer;
}

.jarvis button:disabled {
  cursor: not-allowed;
}

.jarvis :focus-visible {
  outline: 2px solid var(--ws-focus);
  outline-offset: 2px;
}

.jarvis h2,
.jarvis p,
.jarvis ol,
.jarvis ul {
  margin: 0;
  padding: 0;
}

.jarvis ol,
.jarvis ul {
  list-style: none;
}

.jarvis .jarvis-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jarvis .jarvis-glyph {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* The trigger can be portaled into a host footer, so it is styled outside .jarvis. */
button.jarvis-fab {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--ws-secondary-border);
  background: var(--ws-white);
  color: var(--ws-ink);
}

button.jarvis-fab:hover {
  background: var(--ws-soft);
}

button.jarvis-fab:focus-visible {
  outline: 2px solid var(--ws-focus);
  outline-offset: 2px;
}

.jarvis-fab .jarvis-glyph {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Docked in the host footer: compact icon button, never over content. */
button.jarvis-fab--docked {
  flex-shrink: 0;
  width: calc(var(--space-6) * 2);
  height: calc(var(--space-6) * 2);
  padding: 0;
  border-radius: var(--radius-md);
}

/* Floating pill for wide screens. The footer publishes its height as --ws-footer-h. */
button.jarvis-fab--floating {
  position: fixed;
  right: var(--space-6);
  bottom: calc(var(--ws-footer-h) + var(--space-4));
  z-index: 30;
  min-height: var(--control-desktop);
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  box-shadow: var(--ws-mode-shadow);
}

.jarvis .jarvis-backdrop {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: var(--ws-backdrop);
}

/* Mobile: full-height sheet. */
.jarvis .jarvis-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  background: var(--ws-surface);
  color: var(--ws-ink);
}

.jarvis .jarvis-head {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--ws-line);
}

.jarvis .jarvis-head-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.jarvis .jarvis-head h2 {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.5;
}

.jarvis .jarvis-badge {
  padding: 0 var(--space-2);
  border: 1px solid var(--ws-exception-border);
  border-radius: var(--radius-pill);
  background: var(--ws-amber-bg);
  color: var(--ws-amber);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.5;
}

.jarvis .jarvis-icon-btn {
  display: grid;
  place-items: center;
  width: var(--control-touch);
  height: var(--control-touch);
  margin-left: auto;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ws-muted);
}

.jarvis .jarvis-icon-btn:hover {
  background: var(--ws-soft);
}

.jarvis .jarvis-context {
  min-width: 0;
  overflow-wrap: anywhere;
}

.jarvis .jarvis-note {
  color: var(--ws-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.jarvis .jarvis-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4);
}

.jarvis .jarvis-empty {
  display: grid;
  gap: var(--space-3);
  color: var(--ws-muted);
}

.jarvis .jarvis-messages {
  display: grid;
  gap: var(--space-4);
}

.jarvis .jarvis-message {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.jarvis .jarvis-message[data-role="user"] {
  justify-items: end;
}

.jarvis .jarvis-sender {
  color: var(--ws-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.jarvis .jarvis-bubble {
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--ws-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.jarvis .jarvis-message[data-role="user"] .jarvis-bubble {
  background: var(--ws-ink);
  color: var(--ws-white);
}

.jarvis .jarvis-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.jarvis .jarvis-strip {
  margin-inline: calc(var(--space-4) * -1);
  padding-inline: var(--space-4);
  overflow-x: auto;
}

.jarvis .jarvis-strip .jarvis-chips {
  flex-wrap: nowrap;
  width: max-content;
}

.jarvis .jarvis-chip {
  min-height: var(--control-touch);
  padding: 0 var(--space-3);
  border: 1px solid var(--ws-secondary-border);
  border-radius: var(--radius-pill);
  background: var(--ws-surface);
  color: var(--ws-ink);
  white-space: nowrap;
}

.jarvis .jarvis-empty .jarvis-chip {
  white-space: normal;
  text-align: left;
}

.jarvis .jarvis-chip:hover {
  background: var(--ws-soft);
}

.jarvis .jarvis-composer {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ws-line);
}

.jarvis .jarvis-warning {
  color: var(--ws-danger);
  font-size: var(--text-xs);
}

.jarvis .jarvis-input {
  width: 100%;
  min-height: var(--control-touch);
  max-height: calc(var(--control-touch) * 3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--ws-input-border);
  border-radius: var(--radius-md);
  background: var(--ws-surface);
  font-size: var(--text-md);
  line-height: 1.5;
  resize: none;
  field-sizing: content;
}

.jarvis .jarvis-input::placeholder {
  color: var(--ws-placeholder);
}

.jarvis .jarvis-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.jarvis .jarvis-attach {
  display: grid;
  place-items: center;
  width: var(--control-touch);
  height: var(--control-touch);
  border: 1px dashed var(--ws-secondary-border);
  border-radius: var(--radius-md);
  background: var(--ws-secondary-disabled-bg);
  color: var(--ws-secondary-disabled-ink);
}

.jarvis .jarvis-attach-note {
  color: var(--ws-muted);
  font-size: var(--text-xs);
}

.jarvis .jarvis-send {
  min-width: calc(var(--space-8) * 2);
  min-height: var(--control-touch);
  margin-left: auto;
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--ws-ink);
  color: var(--ws-white);
  font-weight: 600;
}

.jarvis .jarvis-send:hover:not(:disabled) {
  background: var(--ws-button-hover);
}

.jarvis .jarvis-send:disabled {
  background: var(--ws-disabled-bg);
  border-color: var(--ws-disabled-border);
  color: var(--ws-disabled-ink);
}

/* Desktop: side panel and 32-40px controls. */
@media (min-width: 960px) {
  .jarvis .jarvis-panel {
    inset: 0 0 0 auto;
    width: min(100%, var(--jarvis-panel-w));
    border-left: 1px solid var(--ws-line);
    box-shadow: var(--ws-dialog-shadow);
  }

  .jarvis .jarvis-head {
    padding: var(--space-4) var(--space-6);
  }

  .jarvis .jarvis-list {
    padding: var(--space-4) var(--space-6);
  }

  .jarvis .jarvis-composer {
    padding: var(--space-3) var(--space-6) var(--space-4);
  }

  .jarvis .jarvis-strip {
    margin-inline: calc(var(--space-6) * -1);
    padding-inline: var(--space-6);
  }

  .jarvis .jarvis-icon-btn,
  .jarvis .jarvis-attach {
    width: var(--control-desktop);
    height: var(--control-desktop);
  }

  .jarvis .jarvis-chip,
  .jarvis .jarvis-send {
    min-height: var(--control-desktop);
  }

  .jarvis .jarvis-input {
    min-height: calc(var(--control-desktop) * 2);
    font-size: var(--text-sm);
  }
}
html:has(.repair-page) {
  scroll-padding-bottom: calc(var(--ws-footer-h) + 24px);
}

.repair-page,
.repair-page * {
  box-sizing: border-box;
}

.repair-page:has(.jarvis-fab--floating) {
  padding-bottom: calc(var(--ws-footer-h) + var(--space-8) + var(--control-touch) + var(--space-4));
}

.repair-page .footer-jarvis:empty {
  display: none;
}

/* Wide screens float the Jarvis pill. Below ~1408px the page content reaches its x-range, so reserve a right gutter. */
@media (min-width: 960px) and (max-width: 1407px) {
  .repair-page:has(.jarvis-fab--floating) .page {
    padding-right: calc(var(--space-8) * 5);
  }
}

.repair-page {
  min-height: 100vh;
  color: var(--ws-ink);
  background: var(--ws-bg);
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: calc(var(--ws-footer-h) + 32px);
}

.repair-page button,
.repair-page input,
.repair-page textarea,
.repair-page select {
  font: inherit;
}

.repair-page button,
.repair-page summary {
  cursor: pointer;
}

.repair-page button:disabled {
  cursor: not-allowed;
}

.repair-page button svg {
  pointer-events: none;
}

.repair-page svg {
  flex-shrink: 0;
}

.repair-page h1,
.repair-page h2,
.repair-page h3,
.repair-page p,
.repair-page dl,
.repair-page dd {
  margin: 0;
}

.repair-page .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.repair-page .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;
}

.repair-page [hidden] {
  display: none !important;
}

.repair-page .skip {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 100;
  padding: 12px;
  border-radius: 8px;
  background: var(--ws-ink);
  color: var(--ws-white);
}

.repair-page .skip:focus {
  top: 12px;
}

.repair-page :focus-visible {
  outline: 3px solid var(--ws-focus);
  outline-offset: 3px;
}

.repair-page :focus:not(:focus-visible) {
  outline: none;
}

.repair-page .tech-screen {
  display: block;
  overflow: visible;
  min-height: 0;
  background: transparent;
  color: inherit;
}

.repair-page .topbar {
  height: 64px;
  background: var(--ws-surface);
  border-bottom: 1px solid var(--ws-line);
}

.repair-page .topbar-inner {
  max-width: 1180px;
  height: 100%;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.repair-page .brand-group,
.repair-page .topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.repair-page .brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1.3px;
}

.repair-page .brand-dot {
  color: var(--ws-dot);
}

.repair-page .brand-divider {
  width: 1px;
  height: 19px;
  background: var(--ws-line);
}

.repair-page .workspace-label,
.repair-page .job-reference {
  font-size: 13px;
  color: var(--ws-muted);
}

.repair-page .job-reference {
  font-variant-numeric: tabular-nums;
}

.repair-page .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: var(--ws-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}

.repair-page .text-btn:hover {
  color: var(--ws-ink);
  background: var(--ws-soft);
}

.repair-page .text-btn .icon {
  width: 16px;
  height: 16px;
}

.repair-page .page {
  max-width: 1180px;
  margin: auto;
  padding: 28px 28px 0;
}

.repair-page .job-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.repair-page .hero-title {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.8px;
  line-height: 1.3;
}

.repair-page .hero-subtitle {
  margin-top: 4px;
  color: var(--ws-muted);
  font-size: 14px;
}

.repair-page .job-due {
  text-align: right;
  flex-shrink: 0;
}

.repair-page .job-due span {
  display: block;
  color: var(--ws-muted);
  font-size: 12px;
}

.repair-page .job-due strong {
  display: block;
  margin-top: 3px;
  color: var(--ws-amber);
  font-size: 14px;
  font-weight: 600;
}

.repair-page .layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.repair-page .job-aside {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.repair-page .panel {
  background: var(--ws-surface);
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  box-shadow: var(--ws-panel-shadow);
}

.repair-page details > summary {
  list-style: none;
}

.repair-page details > summary::-webkit-details-marker {
  display: none;
}

.repair-page details > summary .chevron {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: var(--ws-muted);
  transition: transform 0.15s;
}

.repair-page details[open] > summary .chevron {
  transform: rotate(180deg);
}

.repair-page .job-panel {
  overflow: hidden;
}

.repair-page .job-disclosure {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
}

.repair-page .job-preview {
  display: none;
  font-weight: 400;
  color: var(--ws-muted);
  margin-left: auto;
  font-size: 12px;
}

.repair-page .job-fields {
  padding: 3px 20px 18px;
}

.repair-page .job-data {
  display: grid;
  gap: 12px;
}

.repair-page .job-data > div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.repair-page .job-data dt {
  font-size: 12px;
  color: var(--ws-muted);
}

.repair-page .job-data dd {
  text-align: right;
  font-size: 13px;
  font-weight: 500;
}

.repair-page .job-booked {
  border-top: 1px solid var(--ws-line);
  padding-top: var(--space-3);
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.repair-page .job-booked h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ws-muted);
}

.repair-page .job-booked ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.repair-page .job-booked li {
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: var(--space-1) var(--space-2);
  border-radius: 8px;
  background: var(--ws-soft);
}

.repair-page .serials {
  border-top: 1px solid var(--ws-line);
  padding-top: 14px;
  margin-top: 17px;
  display: grid;
  gap: 7px;
}

.repair-page .serial-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.repair-page .serial-line span {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--ws-muted);
}

.repair-page .serial-line code {
  font: 11px/1.4 var(--font-mono);
  overflow-wrap: anywhere;
  min-width: 0;
  text-align: right;
  color: var(--ws-serial);
}

.repair-page .intake-notes {
  padding: 17px 20px;
  border-top: 1px solid var(--ws-line);
}

.repair-page .intake-notes h2 {
  font-size: 12px;
  color: var(--ws-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.repair-page .intake-notes p {
  font-size: 13px;
  line-height: 1.65;
}

.repair-page .intake-tests {
  border-top: 1px solid var(--ws-line);
}

.repair-page .intake-tests summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 500;
}

.repair-page .test-list {
  padding: 0 20px 12px;
}

.repair-page .test-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--ws-line);
  font-size: 12px;
}

.repair-page .test-result {
  color: var(--ws-muted);
  text-align: right;
}

.repair-page .test-result.fail,
.repair-page .test-result .fail {
  color: var(--ws-red);
}

.repair-page .test-result.pass,
.repair-page .test-result .pass {
  color: var(--ws-green);
}

.repair-page .test-awareness {
  color: var(--ws-muted);
}

.repair-page .work-area {
  min-width: 0;
  scroll-margin-top: 20px;
}

.repair-page .phase-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 16px;
  min-height: 44px;
}

.repair-page .stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repair-page .step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 500;
}

.repair-page .step-num {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ws-step-border);
  border-radius: 50%;
  font-size: 11px;
}

.repair-page .step.active {
  color: var(--ws-ink);
  font-weight: 600;
}

.repair-page .step.active .step-num {
  background: var(--ws-ink);
  border-color: var(--ws-ink);
  color: var(--ws-white);
}

.repair-page .step.complete .step-num {
  color: var(--ws-green);
  border-color: var(--ws-complete-border);
}

.repair-page .phase-history {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 44px;
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 500;
}

.repair-page .phase-history.active {
  color: var(--ws-ink);
  font-weight: 600;
}

.repair-page .phase-history:hover {
  color: var(--ws-ink);
}

.repair-page .step-num .icon {
  width: 13px;
  height: 13px;
}

.repair-page .step-link {
  width: 40px;
  height: 1px;
  background: var(--ws-line);
}

.repair-page .unresolved {
  color: var(--ws-amber);
}

.repair-page .finding-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.repair-page .finding-title {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.repair-page .finding-title.small {
  font-size: 17px;
  letter-spacing: -0.2px;
}

.repair-page .finding-detail {
  color: var(--ws-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 6px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.repair-page .choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.repair-page .choice,
.repair-page .outcome-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  min-height: 50px;
  border: 1px solid var(--ws-choice-border);
  border-radius: 8px;
  background: var(--ws-white);
  color: var(--ws-choice-ink);
  font-size: 14px;
  text-align: left;
}

.repair-page .choice:hover,
.repair-page .outcome-choice:hover {
  border-color: var(--ws-choice-hover-border);
  background: var(--ws-choice-hover-bg);
}

.repair-page .selection-dot {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1px solid var(--ws-choice-dot);
  border-radius: 50%;
  background: var(--ws-white);
}

.repair-page .choice[aria-pressed="true"],
.repair-page .outcome-choice[aria-pressed="true"] {
  background: var(--ws-choice-on);
  border-color: var(--ws-ink);
  box-shadow: inset 0 0 0 0.4px var(--ws-ink);
  color: var(--ws-ink);
}

.repair-page [aria-pressed="true"] > .selection-dot {
  background: var(--ws-ink);
  border: 4px solid var(--ws-ink);
  box-shadow: inset 0 0 0 2px var(--ws-white);
}

.repair-page .check-note {
  margin-top: 8px;
}

.repair-page .check-note summary {
  display: flex;
  gap: 9px;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: var(--ws-muted);
  font-size: 12px;
}

.repair-page .check-note summary .chevron {
  width: 12px;
  height: 12px;
}

.repair-page .reason-select {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.repair-page .reason-select select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--ws-input-border);
  border-radius: 8px;
  background: var(--ws-white);
  color: var(--ws-ink);
}

.repair-page textarea,
.repair-page input[type="text"],
.repair-page input[type="search"] {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--ws-input-border);
  border-radius: 8px;
  background: var(--ws-white);
  color: var(--ws-ink);
  font-size: 14px;
  line-height: 1.5;
}

.repair-page textarea {
  min-height: 88px;
  resize: vertical;
}

.repair-page textarea::placeholder,
.repair-page input::placeholder {
  color: var(--ws-placeholder);
}

.repair-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ws-ink);
  color: var(--ws-white);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
}

.repair-page .button:hover:not(:disabled) {
  background: var(--ws-button-hover);
}

.repair-page .button:active:not(:disabled) {
  transform: translateY(1px);
}

.repair-page .button:disabled {
  background: var(--ws-disabled-bg);
  color: var(--ws-disabled-ink);
  border-color: var(--ws-disabled-border);
}

.repair-page .button.secondary {
  background: var(--ws-white);
  color: var(--ws-ink);
  border-color: var(--ws-secondary-border);
}

.repair-page .button.secondary:hover:not(:disabled) {
  background: var(--ws-soft);
}

.repair-page .button.secondary:disabled {
  background: var(--ws-secondary-disabled-bg);
  border-color: var(--ws-line);
  color: var(--ws-secondary-disabled-ink);
}

.repair-page .button.danger {
  background: var(--ws-danger);
}

.repair-page .button .icon {
  width: 16px;
  height: 16px;
}

.repair-page .subtle {
  color: var(--ws-muted);
}

.repair-page .add-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.repair-page .add-btn {
  color: var(--ws-ink);
  padding-left: 2px;
}

.repair-page .help-btn {
  padding-right: 2px;
}

.repair-page .fast-list {
  display: grid;
  gap: 12px;
}

.repair-page .fast-card {
  padding: 20px;
}

.repair-page .fast-card .choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.repair-page .fast-card .choice {
  min-height: 48px;
  padding: 12px;
  gap: 8px;
  font-size: 14px;
}

.repair-page .fast-card .selection-dot {
  width: 14px;
  height: 14px;
}

.repair-page .fast-card .finding-detail {
  font-size: 13px;
}

.repair-page .badge {
  display: inline-flex;
  width: fit-content;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ws-muted);
}

.repair-page .badge .icon {
  width: 14px;
  height: 14px;
}

.repair-page .badge.green {
  color: var(--ws-green);
}

.repair-page .badge.amber {
  color: var(--ws-amber);
}

.repair-page .badge.purple {
  color: var(--ws-purple);
}

.repair-page .badge.dark {
  color: var(--ws-ink);
}

.repair-page .outcome-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}

.repair-page .repair-editor {
  padding-top: 22px;
}

.repair-page .field-title {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.repair-page .action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 2px;
}

.repair-page .action-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}

.repair-page .action-option:hover {
  background: var(--ws-soft);
}

.repair-page .action-option:has(input:checked) {
  background: var(--ws-action-on);
}

.repair-page input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--ws-ink);
  cursor: pointer;
}

.repair-page .other-field {
  margin-top: 16px;
}

.repair-page .editor-validation {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ws-muted);
}

.repair-page .editor-validation:empty {
  display: none;
}

.repair-page .reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.repair-page .reason-chip {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--ws-line);
  border-radius: 7px;
  background: var(--ws-reason-bg);
  color: var(--ws-reason-ink);
  font-size: 12px;
}

.repair-page .reason-chip:hover {
  border-color: var(--ws-reason-border);
}

.repair-page .empty-state {
  padding: 28px 24px;
}

.repair-page .empty-state h2 {
  font-size: 20px;
  font-weight: 600;
}

.repair-page .empty-state p {
  color: var(--ws-muted);
  margin-top: 8px;
}

.repair-page .bottom-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  border-top: 1px solid var(--ws-line);
  background: var(--ws-surface);
  padding: 16px 28px calc(16px + env(safe-area-inset-bottom));
}

.repair-page .bottom-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1124px;
  margin: auto;
  padding-left: 324px;
}

.repair-page .footer-progress {
  flex: 1;
  min-width: 0;
}

.repair-page .progress-copy {
  font-size: 13px;
  margin-bottom: 8px;
}

.repair-page .progress-copy strong {
  font-weight: 600;
}

.repair-page .progress-track {
  height: 3px;
  background: var(--ws-track);
  border-radius: 3px;
  overflow: hidden;
}

.repair-page .progress-fill {
  height: 100%;
  background: var(--ws-ink);
}

.repair-page .progress-fill.complete {
  background: var(--ws-green);
}

.repair-page .footer-hint {
  font-size: 12px;
  color: var(--ws-muted);
  margin-top: 7px;
  line-height: 1.45;
}

.repair-page .footer-hint:empty {
  display: none;
}

.repair-page .footer-action {
  min-height: 48px;
  min-width: 160px;
}

.repair-page .toast {
  position: fixed;
  bottom: calc(var(--ws-footer-h) + 16px);
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 45;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ws-toast);
  color: var(--ws-white);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
}

.repair-page .toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.repair-page dialog {
  padding: 0;
  width: calc(100% - 40px);
  max-width: 520px;
  max-height: calc(100dvh - 64px);
  overflow: hidden;
  color: var(--ws-ink);
  background: var(--ws-surface);
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  box-shadow: var(--ws-dialog-shadow);
}

.repair-page dialog[open] {
  display: flex;
  flex-direction: column;
}

.repair-page dialog.wide {
  max-width: 840px;
}

.repair-page dialog::backdrop {
  background: var(--ws-backdrop);
}

.repair-page .dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ws-line);
  flex-shrink: 0;
}

.repair-page .dialog-head h2 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.repair-page .dialog-head p {
  color: var(--ws-muted);
  font-size: 13px;
  margin-top: 5px;
}

.repair-page .icon-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ws-muted);
}

.repair-page .icon-button:hover {
  background: var(--ws-soft);
}

.repair-page .dialog-body {
  padding: 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.repair-page .dialog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--ws-line);
  flex-shrink: 0;
}

.repair-page .dialog-foot .button {
  min-width: 136px;
}

.repair-page .dialog-foot .footer-status {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--ws-muted);
}

.repair-page .footer-status .icon {
  width: 14px;
  height: 14px;
}

.repair-page .dialog-field {
  margin-bottom: 18px;
}

.repair-page .dialog-field > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
}

.repair-page .dialog-field label .subtle {
  font-size: 12px;
  font-weight: 400;
}

.repair-page .field-help {
  margin-top: 8px;
  color: var(--ws-muted);
  font-size: 12px;
}

.repair-page input[type="text"],
.repair-page input[type="search"] {
  min-height: 48px;
}

.repair-page .confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
}

.repair-page .confirm-check input {
  margin-top: 2px;
}

.repair-page .fast-card .declined-ack {
  align-items: center;
  margin-top: 24px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ws-soft);
}

.repair-page .result-status {
  margin-bottom: 8px;
  color: var(--ws-muted);
  font-size: 12px;
}

.repair-page .result-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.repair-page .result-option {
  width: 100%;
  min-height: 48px;
}

.repair-page .result-list[aria-busy="true"] {
  opacity: 0.6;
}

.repair-page .add-empty {
  display: grid;
  gap: 4px;
  justify-items: start;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  background: var(--ws-soft);
  color: var(--ws-ink);
}

.repair-page .find-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}

.repair-page .browse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  background: var(--ws-soft);
  color: var(--ws-ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.repair-page .browse-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.repair-page .browse-toggle .chevron {
  width: 16px;
  height: 16px;
  color: var(--ws-muted);
  transition: transform 0.15s;
}

.repair-page .browse-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.repair-page .add-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--ws-ink);
  border-radius: 8px;
  background: var(--ws-choice-on);
}

.repair-page .add-selected > div {
  display: grid;
  min-width: 0;
}

.repair-page .add-selected strong {
  overflow-wrap: anywhere;
}

.repair-page .back-to-search {
  margin: 0 0 8px -8px;
}

/* Part used picker */
.repair-page .part-used {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--ws-line);
  display: grid;
  gap: var(--space-2);
}

.repair-page .part-add {
  width: 100%;
  min-height: 44px;
  margin-top: 0;
}

.repair-page .part-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border: 1px solid var(--ws-ink);
  border-radius: 8px;
  background: var(--ws-choice-on);
}

.repair-page .part-chip-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.repair-page .part-chip-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.repair-page .part-sheet {
  display: grid;
  gap: var(--space-3);
}

.repair-page .part-sheet-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ws-muted);
}

.repair-page .part-row {
  width: 100%;
  min-height: 48px;
}

.repair-page .part-row-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.repair-page .part-row--zero {
  background: var(--ws-soft);
}

.repair-page .part-stock {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
}

.repair-page .part-stock--zero {
  color: var(--ws-amber);
}

.repair-page .part-stock--ok {
  color: var(--ws-green);
}

.repair-page .part-none {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  margin-top: 0;
}

.repair-page .part-search {
  display: grid;
  gap: var(--space-2);
}

.repair-page .part-current {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--ws-line);
}

.repair-page .part-current .subtle {
  font-size: 12px;
}

.repair-page .part-current strong {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.repair-page .part-error {
  color: var(--ws-amber);
}

.repair-page .part-summary {
  color: var(--ws-completion);
}

.repair-page .field-help[data-tone="warn"] {
  color: var(--ws-amber);
}

.repair-page .modal-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ws-muted);
  font-size: 13px;
  margin-top: 16px;
}

.repair-page .handoff-group + .handoff-group {
  margin-top: 24px;
}

.repair-page .handoff-group h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.repair-page .handoff-group h3 span {
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 400;
}

.repair-page .handoff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ws-line);
  font-size: 13px;
}

.repair-page .transition-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--ws-muted);
}

.repair-page .help-definitions {
  display: grid;
  gap: 18px;
}

.repair-page .help-definitions dt {
  font-weight: 600;
  font-size: 13px;
}

.repair-page .help-definitions dd {
  font-size: 13px;
  color: var(--ws-muted);
  margin-top: 3px;
}

.repair-page .help-note {
  color: var(--ws-muted);
  font-size: 13px;
  margin-top: 20px;
}

.repair-page .summary-counts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ws-muted);
}

.repair-page .summary-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 13px;
}

.repair-page .summary-table thead {
  text-align: left;
}

.repair-page .summary-table th {
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--ws-line);
}

.repair-page .summary-table th:first-child {
  width: 34%;
}

.repair-page .summary-table th:nth-child(2) {
  width: 25%;
}

.repair-page .summary-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--ws-line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.repair-page .summary-table td strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.repair-page .summary-table td small {
  display: block;
  color: var(--ws-muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 5px;
}

.repair-page .summary-table .completion-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ws-completion);
  line-height: 1.65;
  white-space: pre-line;
}

.repair-page .pause-banner {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--ws-surface);
  border: 1px solid var(--ws-line);
  border-radius: 8px;
}

.repair-page .pause-banner h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.repair-page .pause-banner p {
  font-size: 14px;
  line-height: 20px;
}

.repair-page .pause-banner .button {
  justify-self: start;
  min-height: 44px;
}

.repair-page .answer-list,
.repair-page .pass-list {
  display: grid;
  gap: 12px;
}

.repair-page .answer-list .choice-grid {
  grid-template-columns: minmax(0, 1fr);
}

.repair-page .pass-list {
  margin-top: 16px;
}

.repair-page .pass-list > h2 {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.repair-page .repair-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.repair-page .repair-fields:disabled {
  opacity: 0.72;
}

.repair-page .exception-box {
  padding: 16px;
  margin-top: 20px;
  background: var(--ws-amber-bg);
  border-left: 2px solid var(--ws-exception-border);
  border-radius: 0 6px 6px 0;
}

.repair-page .exception-box h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ws-amber);
}

.repair-page .exception-box p {
  font-size: 12px;
  color: var(--ws-exception-ink);
  margin-top: 8px;
}

.repair-page .exception-box .confirm-check {
  color: var(--ws-exception-ink);
  padding-bottom: 0;
}

.repair-page .qc-reminder {
  font-size: 12px;
  color: var(--ws-muted);
  margin-top: 20px;
}

.repair-page .done-card {
  padding: 28px;
}

.repair-page .done-card h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.repair-page .done-card > p {
  color: var(--ws-muted);
  font-size: 13px;
  margin-top: 7px;
}

.repair-page .done-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 959px) {
  .repair-page .page {
    max-width: 680px;
    padding: 24px 24px 0;
  }

  .repair-page .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .repair-page .job-aside {
    position: static;
  }

  .repair-page .job-preview {
    display: inline;
  }

  .repair-page .job-panel[open] > .job-disclosure .job-preview {
    display: none;
  }

  .repair-page .bottom-inner {
    max-width: 632px;
    padding-left: 0;
  }

  .repair-page .bottom-bar {
    padding-inline: 24px;
  }
}

@media (max-width: 599px) {
  .repair-page .topbar {
    height: 57px;
  }

  .repair-page .topbar-inner {
    padding: 0 16px;
  }

  .repair-page .brand {
    font-size: 23px;
  }

  .repair-page .brand-group,
  .repair-page .topbar-actions {
    gap: 10px;
  }

  .repair-page .workspace-label,
  .repair-page .brand-divider {
    display: none;
  }

  .repair-page .page {
    padding: 20px 16px 0;
  }

  .repair-page .job-hero {
    gap: 12px;
    margin-bottom: 18px;
  }

  .repair-page .hero-title {
    font-size: 24px;
    letter-spacing: -0.6px;
  }

  .repair-page .hero-subtitle {
    font-size: 12px;
  }

  .repair-page .job-due strong {
    font-size: 13px;
  }

  .repair-page .choice-grid,
  .repair-page .outcome-choices {
    margin-top: 20px;
  }

  .repair-page .fast-card .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .repair-page .answer-list .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .repair-page .action-option {
    font-size: 12px;
    padding: 8px 7px;
    gap: 7px;
    min-height: 46px;
  }

  .repair-page textarea,
  .repair-page input[type="text"],
  .repair-page input[type="search"] {
    font-size: 16px;
  }

  .repair-page .bottom-bar {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .repair-page .bottom-inner {
    gap: 16px;
  }

  .repair-page .footer-action {
    min-width: 128px;
    padding-inline: 14px;
  }

  .repair-page dialog,
  .repair-page dialog.wide {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 16px);
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
  }

  .repair-page .summary-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .repair-page .summary-table,
  .repair-page .summary-table tbody {
    display: block;
  }

  .repair-page .summary-table tr {
    display: block;
    border-bottom: 1px solid var(--ws-line);
    padding: 12px 0;
  }

  .repair-page .summary-table td {
    display: grid;
    grid-template-columns: 89px minmax(0, 1fr);
    gap: 12px;
    border: 0;
    padding: 8px 0;
  }

  .repair-page .summary-table td::before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--ws-muted);
    margin-top: 1px;
  }
}

@media (max-width: 359px) {
  .repair-page .action-grid {
    grid-template-columns: 1fr;
  }

  .repair-page .job-reference {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .repair-page *,
  .repair-page *::before,
  .repair-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.tech-screen {
  color: var(--wb-ink);
  font-size: 14px;
  line-height: 1.45;
}

.tech-layout {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 24px;
}

.tech-card {
  display: grid;
  gap: 12px;
}

.tech-section-label {
  margin: 0;
  color: var(--wb-ink);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.tech-notes,
.tech-context-row dd {
  margin: 0;
  color: var(--wb-ink);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tech-context {
  display: grid;
  gap: 12px;
}

.tech-context-row {
  display: grid;
  gap: 4px;
}

.tech-context-row dt {
  margin: 0;
  color: var(--wb-secondary);
  font-size: 12px;
}

.tech-actions {
  display: flex;
  justify-content: flex-end;
}

.tech-secondary {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  border: 1px solid var(--wb-line);
  background: var(--wb-surface);
  color: var(--wb-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.tech-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--wb-secondary);
}

.tech-status[data-tone="error"] {
  color: var(--ic-hot-text);
}

.tech-status[data-tone="ok"] {
  color: var(--ic-green-text);
}

.tech-qc-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-qc-row {
  display: grid;
  gap: 4px;
}

.tech-qc-row strong {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.tech-qc-row span {
  color: var(--wb-secondary);
  font-size: 14px;
  line-height: 1.45;
}
* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.4 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell-screen {
  position: relative;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.shell-rail {
  width: 78px;
  flex: 0 0 78px;
  background: var(--surface);
  box-shadow: color-mix(in srgb, var(--ink) 8%, transparent) -1px 0 0 0 inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 0;
  z-index: 6;
}

.shell-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  font: 700 14px/1 var(--font-mono);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.shell-rail-spacer {
  flex: 1;
}

.shell-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--rail-avatar);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.shell-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shell-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.shell-loading,
.shell-blocked {
  margin: 24px;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  box-shadow: var(--ring-subtle);
  border-radius: 8px;
  padding: 14px 16px;
}

.shell-auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
}

.shell-auth-panel {
  width: min(360px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.shell-auth-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  font: 700 15px/1 var(--font-mono);
  letter-spacing: 0;
}

.shell-auth-brand {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.shell-auth-panel h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.shell-google-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--ring-search);
  text-decoration: none;
  font-weight: 600;
}

.shell-google-button:focus-visible,
.shell-signout:focus-visible,
.shell-secondary-action:focus-visible,
.shell-password-form input:focus-visible,
.shell-password-form button:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.shell-google-g {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  box-shadow: var(--ring-soft);
  font-weight: 700;
}

.shell-signout {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--ring-soft);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.shell-password-form {
  width: 100%;
  display: grid;
  gap: 12px;
}

.shell-password-form label {
  display: grid;
  gap: 5px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.shell-password-form input {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--ring-search);
  padding: 0 10px;
}

.shell-password-form button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
}

.shell-password-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.shell-auth-error {
  width: 100%;
  border-radius: 6px;
  background: var(--ic-hot-tint);
  color: var(--ic-hot-text);
  box-shadow: var(--ring-hot);
  padding: 9px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}

.shell-auth-divider {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.shell-auth-divider span {
  height: 1px;
  background: var(--line);
}

.shell-auth-divider b {
  font: inherit;
}

.shell-account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shell-secondary-action {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  box-shadow: var(--ring-soft);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.shell-password-dialog {
  position: relative;
  width: min(360px, 94vw);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--ring-modal);
  padding: 20px;
}

.shell-password-dialog h2 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

.shell-blocked strong {
  font: 700 12px/1 var(--font-mono);
  color: var(--ic-hot-text);
}

.shell-blocked span,
.shell-loading {
  color: var(--muted);
  font-size: 12.5px;
}

.shell-ticker-portal {
  position: absolute;
  left: 78px;
  right: 0;
  bottom: 44px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.shell-ticker-portal > * {
  pointer-events: auto;
}

.shell-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  backdrop-filter: blur(4px);
}

.shell-modal-card {
  position: relative;
  width: min(720px, 96vw);
  max-height: min(620px, 92vh);
  overflow: auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--ring-modal);
  padding: 20px;
  animation: ic-rise 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.shell-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9999px;
  background: var(--paper);
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  box-shadow: var(--ring-soft);
}
