:root {
  --bg: var(--theme-learning-surface-315);
  --bench: var(--theme-learning-page-316);
  --panel: var(--theme-learning-surface-317);
  --panel-2: var(--theme-learning-surface-318);
  --line: var(--theme-learning-border-319);
  --line-soft: var(--theme-learning-border-320);
  --green: var(--theme-component-primary-100);
  --green-2: var(--theme-component-primary-1);
  --cyan: var(--theme-learning-info-321);
  --yellow: var(--theme-learning-warning-322);
  --orange: var(--theme-learning-error-323);
  --red: var(--theme-learning-error-324);
  --text: var(--theme-learning-ink-325);
  --muted: var(--theme-learning-muted-326);
  --font-title: "Rajdhani","Segoe UI",sans-serif;
  --font-body: 'Geist', sans-serif;
  --font-code: "JetBrains Mono",Consolas,monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-body);
  background: linear-gradient(var(--theme-learning-success-bg-327) 1px, transparent 1px),
      linear-gradient(90deg, var(--theme-learning-success-bg-327) 1px, transparent 1px),
      radial-gradient(circle at 20% 8%, var(--theme-learning-success-bg-328), transparent 34%),
      radial-gradient(circle at 82% 24%, var(--theme-learning-info-bg-329), transparent 30%),
      var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(var(--theme-learning-surface-330) 50%, var(--theme-learning-page-331) 50%);
  background-size: 100% 4px;
  opacity: .32;
}

button, select {
  font: 900 14px var(--font-body);
}

.nav-bar {
  position: relative;
  z-index: 2;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  padding-right: 170px;
  background: var(--theme-learning-page-332);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 28px var(--theme-learning-success-333);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  color: var(--text);
  text-decoration: none;
}

.brand-link img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--green);
  background: var(--theme-learning-page-334);
  box-shadow: 0 0 18px var(--theme-learning-success-335);
}

.brand-kicker {
  display: block;
  color: var(--green);
  font: 800 14px var(--font-code);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-title {
  display: block;
  color: var(--theme-component-ink-5);
  font: 900 20px var(--font-title);
  letter-spacing: .7px;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.tab-switch {
  border: 1px solid var(--theme-learning-info-336);
  color: var(--text);
  background: var(--theme-learning-info-bg-337);
  border-radius: 5px;
  padding: 9px 14px;
  cursor: pointer;
}

.tab-switch.active {
  background: var(--green-2);
  color: var(--theme-learning-ink-338);
  border-color: var(--green-2);
}

.return-link {
  color: var(--theme-learning-ink-339);
  text-decoration: none;
  border: 1px solid var(--cyan);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: var(--theme-learning-info-bg-340);
  white-space: nowrap;
}

.app {
  position: relative;
  z-index: 2;
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  overflow: hidden;
}

.main {
  overflow: auto;
  padding: 8px 20px 14px;
}

.side {
  margin: 14px 12px 0 0;
  height: calc(100vh - 92px);
  max-height: 860px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--theme-learning-page-341);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.side-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.side-head h2, .panel-head h2, .card h2 {
  margin: 0;
  color: var(--green);
  font: 900 14px var(--font-code);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.side-actions {
  display: flex;
  gap: 8px;
}

.side-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  flex: 1;
}

.card, .panel, .field-box {
  border: 1px solid var(--line);
  background: var(--theme-learning-success-bg-327);
  border-radius: 8px;
}

.card {
  padding: 8px 11px;
}

.card p, .card li {
  margin: 0;
  color: var(--theme-learning-primary-342);
  font-size: 15px;
  line-height: 1.32;
}

.card ul {
  margin: 0;
  padding-left: 17px;
}

.brief-row {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 8px;
  margin-bottom: 8px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--theme-learning-info-343);
  background: var(--theme-learning-info-bg-344);
  border-radius: 7px;
  padding: 4px 9px;
  min-height: 32px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .7px;
  white-space: nowrap;
}

.metric strong {
  display: block;
  color: var(--theme-component-ink-5);
  font: 900 22px var(--font-title);
  margin-top: 0;
  line-height: 1;
  white-space: nowrap;
}

.workspace {
  display: grid;
  gap: 8px;
}

.panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--theme-learning-page-345);
}

.panel-body {
  padding: 8px 12px;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 8px;
}

.ticket-card {
  min-height: 70px;
  text-align: left;
  color: var(--text);
  background: var(--theme-learning-surface-346);
  border: 1px solid var(--theme-learning-success-347);
  border-radius: 7px;
  padding: 8px;
  cursor: pointer;
}

.ticket-card.active {
  border-color: var(--cyan);
  box-shadow: 0 0 18px var(--theme-learning-info-348);
}

.ticket-card.closed {
  border-color: var(--theme-learning-success-349);
  background: var(--theme-learning-success-bg-350);
}

.ticket-card.review {
  border-color: var(--theme-learning-warning-351);
}

.ticket-title {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  align-items: flex-start;
  color: var(--theme-component-ink-5);
  font: 900 14px var(--font-code);
}

.ticket-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.18;
}

.badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font: 900 14px var(--font-code);
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.open {
  color: var(--theme-learning-on-primary-352);
  background: var(--yellow);
}

.badge.done {
  color: var(--theme-learning-on-primary-353);
  background: var(--green);
}

.badge.info {
  color: var(--theme-learning-ink-339);
  border: 1px solid var(--theme-learning-info-354);
  background: var(--theme-learning-info-bg-340);
}

.ticket-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 10px;
}

.station {
  min-height: 438px;
  border: 1px solid var(--theme-learning-info-355);
  background: linear-gradient(var(--theme-learning-surface-346) 1px, transparent 1px),
      linear-gradient(90deg, var(--theme-learning-surface-346) 1px, transparent 1px),
      linear-gradient(180deg, var(--theme-learning-success-bg-356), var(--theme-component-page-71)),
      var(--theme-learning-page-358);
  background-size: 28px 28px, 28px 28px, auto, auto;
  border-radius: 8px;
  overflow: hidden;
}

.station-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.station-head h2 {
  margin: 0;
  color: var(--theme-component-ink-5);
  font: 900 28px var(--font-title);
}

.station-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.view-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
}

.view-btn {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 5px;
  border: 1px solid var(--theme-learning-info-336);
  color: var(--theme-learning-ink-339);
  background: var(--theme-learning-info-bg-359);
  cursor: pointer;
}

.view-btn.active {
  color: var(--theme-learning-on-primary-353);
  background: var(--cyan);
  border-color: var(--cyan);
}

.view-btn.label-toggle {
  border-color: var(--theme-learning-success-360);
  color: var(--theme-learning-ink-361);
  background: var(--theme-learning-success-bg-362);
}

.view-btn.label-toggle.active {
  color: var(--theme-learning-on-primary-353);
  background: var(--green);
  border-color: var(--green);
}

.printer-bay {
  position: relative;
  min-height: 334px;
  padding: 10px;
}

.printer-svg {
  width: 100%;
  height: 320px;
  display: block;
}

.printer-svg.laser-svg {
  height: 480px;
}

.printer-shell {
  fill: var(--theme-learning-inset-363);
  stroke: var(--theme-learning-info-321);
  stroke-width: 2;
}

.printer-dark {
  fill: var(--theme-learning-page-364);
  stroke: var(--theme-learning-success-365);
  stroke-width: 1.5;
}

.printer-mid {
  fill: var(--theme-learning-inset-366);
  stroke: var(--theme-learning-success-367);
  stroke-width: 1;
}

.printer-paper {
  fill: var(--theme-learning-surface-368);
  opacity: .92;
}

.printer-warn {
  fill: var(--theme-learning-error-323);
  opacity: .88;
}

.printer-blue {
  fill: var(--theme-learning-info-bg-369);
  stroke: var(--theme-learning-info-321);
  stroke-width: 1.2;
}

.printer-green {
  fill: var(--theme-learning-success-bg-370);
  stroke: var(--theme-learning-success-371);
  stroke-width: 1.2;
}

.zone {
  position: absolute;
  display: grid;
  place-items: center;
  width: 144px;
  min-height: 54px;
  padding: 6px;
  border: 2px dashed var(--theme-learning-success-372);
  background: var(--theme-component-page-66);
  color: var(--theme-learning-ink-374);
  border-radius: 7px;
  font: 900 14px var(--font-code);
  text-align: center;
  text-transform: uppercase;
  z-index: 4;
  box-shadow: 0 0 14px var(--theme-learning-success-375), inset 0 0 10px var(--theme-learning-success-376);
}

.zone.drag-over {
  background: var(--theme-learning-success-bg-377);
  border-color: var(--theme-learning-border-378);
  box-shadow: 0 0 26px var(--theme-learning-success-379), 0 0 10px var(--theme-learning-info-380), inset 0 0 16px var(--theme-learning-success-381);
}

.zone.good {
  border-style: solid;
  border-color: var(--green);
  background: var(--theme-learning-success-bg-382);
}

.zone.bad {
  border-style: solid;
  border-color: var(--red);
  background: var(--theme-learning-error-bg-383);
}

.zone .placed {
  width: 100%;
  border: 1px solid var(--theme-learning-info-354);
  border-radius: 5px;
  color: var(--theme-learning-ink-384);
  background: var(--theme-learning-info-bg-385);
  padding: 5px 6px;
}

.zone.empty-target span:empty {
  display: none;
}

.zone.empty-target {
  background: transparent;
  padding: 0;
  box-shadow: 0 0 18px var(--theme-learning-success-386), 0 0 4px var(--theme-learning-border-387), inset 0 0 12px var(--theme-learning-success-333);
}

.zone.label-assist {
  background: var(--theme-learning-page-388);
  padding: 6px;
}

.zone.label-assist span {
  display: block;
}

.ticket-notes {
  display: grid;
  gap: 10px;
  align-content: start;
}

.note-box {
  border: 1px solid var(--theme-learning-success-347);
  background: var(--theme-component-page-59);
  border-radius: 7px;
  padding: 10px;
}

.note-box h3 {
  margin: 0 0 8px;
  color: var(--cyan);
  font: 900 15px var(--font-code);
  letter-spacing: .8px;
  text-transform: uppercase;
}

.note-box p, .note-box li {
  color: var(--theme-learning-ink-374);
  font-size: 15px;
  line-height: 1.4;
}

.note-box ul {
  margin: 0;
  padding-left: 18px;
}

.pbq-scenario {
  border-color: var(--theme-learning-info-390);
  background: linear-gradient(135deg, var(--theme-learning-info-bg-340), var(--theme-learning-success-bg-327));
}

.pbq-scenario p {
  margin: 0 0 10px;
}

.pbq-scenario .work-order {
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
  color: var(--theme-component-ink-5);
}

.parts-bank {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 222px;
  overflow: auto;
  padding-right: 4px;
}

.part {
  border: 1px solid var(--theme-learning-success-391);
  background: var(--theme-learning-success-bg-392);
  color: var(--theme-learning-ink-361);
  border-radius: 6px;
  padding: 9px;
  min-height: 48px;
  font: 900 14px var(--font-code);
  cursor: grab;
  text-align: left;
}

.part:active {
  cursor: grabbing;
}

label {
  display: block;
  color: var(--muted);
  font: 900 14px var(--font-code);
  letter-spacing: .7px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

select {
  width: 100%;
  color: var(--text);
  background: var(--theme-learning-page-393);
  border: 1px solid var(--theme-learning-success-375);
  border-radius: 6px;
  padding: 9px 10px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--theme-catalog-surface-35);
  cursor: pointer;
  padding: 8px 10px;
}

button.primary {
  color: var(--theme-learning-on-primary-353);
  background: var(--green-2);
  border-color: var(--green-2);
}

button.secondary {
  background: var(--theme-learning-success-bg-362);
}

button.danger {
  background: var(--theme-learning-error-bg-395);
  border-color: var(--theme-learning-error-396);
}

.full {
  grid-column: 1 / -1;
}

.progress-wrap, .decision-tray, .feedback {
  border: 1px solid var(--line);
  background: var(--theme-learning-success-bg-327);
  border-radius: 8px;
  padding: 10px;
}

.progress-bar {
  height: 9px;
  border: 1px solid var(--theme-learning-success-335);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.decision-tray {
  flex: 1;
  min-height: 128px;
  overflow: auto;
}

.chip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--theme-learning-info-336);
  background: var(--theme-learning-info-bg-340);
  border-radius: 6px;
  padding: 7px 8px;
  margin-bottom: 7px;
  color: var(--theme-learning-ink-384);
  font: 900 14px var(--font-code);
}

.chip small {
  display: block;
  color: var(--muted);
  font: 800 15px var(--font-body);
  margin-top: 3px;
}

.chip button {
  min-height: 24px;
  padding: 0 6px;
}

.feedback {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.feedback.good {
  color: var(--theme-learning-success-397);
  border-color: var(--theme-learning-success-398);
  background: var(--theme-learning-success-bg-362);
}

.feedback.bad {
  color: var(--theme-learning-primary-399);
  border-color: var(--theme-learning-error-400);
  background: var(--theme-learning-error-bg-401);
}

.process-view, .ticket-detail {
  display: none;
}

.process-view.active {
  display: block;
}

.ticket-detail.active {
  display: grid;
}

.repair-view {
  display: block;
}

.process-grid {
  display: grid;
  gap: 8px;
}

.step-list {
  display: grid;
  gap: 8px;
}

.step-row {
  display: grid;
  grid-template-columns: 42px minmax(180px, .7fr) minmax(240px, 1.3fr);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--theme-learning-success-347);
  background: var(--theme-component-page-59);
  border-radius: 7px;
  padding: 8px;
}

.step-order {
  height: 42px;
  border: 1px solid var(--theme-learning-info-402);
  border-radius: 6px;
  background: var(--theme-learning-info-bg-359);
  display: grid;
  place-items: center;
  color: var(--cyan);
  font: 900 15px var(--font-code);
}

.step-row select {
  min-height: 42px;
}

.step-cell label {
  color: var(--cyan);
  font-size: 14px;
  margin-bottom: 5px;
}

.process-diagram {
  display: none;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--theme-learning-page-403);
  padding: 12px;
}

.process-diagram.active {
  display: block;
}

.process-svg {
  width: 100%;
  height: auto;
  display: block;
}

.process-node {
  fill: var(--theme-learning-page-404);
  stroke: var(--theme-learning-success-371);
  stroke-width: 2;
}

.process-arrow {
  stroke: var(--theme-learning-info-321);
  stroke-width: 3;
  marker-end: url(#arrowHead);
}

.process-text {
  fill: var(--theme-learning-surface-405);
  font: 900 14px Consolas, monospace;
}

.process-small {
  fill: var(--theme-learning-inset-406);
  font: 700 15px Segoe UI, sans-serif;
}

.modal, .success {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  background: var(--theme-learning-page-407);
  padding: 24px;
}

.modal-card {
  width: min(980px, 96vw);
  max-height: 86vh;
  overflow: auto;
  border: 1px solid var(--theme-learning-border-408);
  border-radius: 8px;
  background: var(--theme-learning-page-409);
  box-shadow: 0 28px 80px var(--theme-learning-shadow-color-410);
  padding: 28px 40px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--theme-learning-border-411);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.modal-card h2 {
  color: var(--theme-component-ink-5);
  font: 900 28px var(--font-title);
  margin: 0;
}

.modal-card h3 {
  color: var(--green);
  border-left: 4px solid var(--green);
  padding-left: 12px;
  font: 900 18px var(--font-title);
  margin: 22px 0 10px;
}

.modal-card p, .modal-card li {
  color: var(--theme-learning-ink-412);
  font-size: 15px;
  line-height: 1.65;
}

.modal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
}

.modal-card th, .modal-card td {
  border: 1px solid var(--theme-learning-border-408);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.modal-card th {
  color: var(--green);
  background: var(--theme-learning-surface-413);
}

.close-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  min-height: auto;
}

.success-card {
  width: min(560px, 92vw);
  border: 1px solid var(--green);
  background: var(--theme-learning-page-414);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 0 45px var(--theme-learning-success-415);
}

.success-card h2 {
  color: var(--green);
  font: 900 34px var(--font-title);
  margin: 0 0 8px;
}

.success-card p {
  color: var(--theme-learning-ink-374);
  margin-bottom: 18px;
}

#matrix-success-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 25;
  pointer-events: none;
  background: var(--theme-component-page-22);
}

@media (max-width:1200px) {

  body {
    overflow: auto;
  }

  .app {
    height: auto;
    grid-template-columns: 1fr;
  }

  .side {
    height: auto;
    max-height: none;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .ticket-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .ticket-detail, .brief-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width:720px) {

  .nav-bar {
    grid-template-columns: 1fr;
  }

  .brand-link {
    min-width: 0;
  }

  .metric-row, .parts-bank {
    grid-template-columns: 1fr;
  }

  .step-row {
    grid-template-columns: 1fr;
  }

  .ticket-grid {
    grid-template-columns: 1fr;
  }

  .station-head {
    grid-template-columns: 1fr;
  }
}

/* Border geometry retained from the retired palette layer. */
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .tab-switch{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .metric{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .ticket-card{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .badge.info{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .station{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .view-btn{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .zone{border-width:2px;border-style:dashed;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .zone .placed{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .note-box{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .part{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] select{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .progress-bar{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .chip{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .step-row{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .step-order{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .modal-card{border-width:1px;border-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .modal-head{border-bottom-width:1px;border-bottom-style:solid;}
html.bb-page-9a1293846b[data-bb-theme="patriotic"] .modal-card th, html.bb-page-9a1293846b[data-bb-theme="patriotic"] .modal-card td{border-width:1px;border-style:solid;}

/* Repair actions sit in their own full-width panel under the ticket title, above the printer (2026-10-25). */
.station .bench-bank { margin: 10px 0 12px; }
.station .bench-bank .parts-bank { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); max-height: none; overflow: visible; padding-right: 0; }
.station .bench-bank .part { min-height: 0; padding: 8px 10px; }
/* Every width: the repair actions are a compact chip strip above the printer, so nothing covers its drop spots (Brett 2026-10-26). */
.station .bench-bank { padding: 8px 12px; }
.station .bench-bank h3 { margin: 0 0 6px; font-size: 13px; }
.station .bench-bank .parts-bank { display: flex; flex-wrap: wrap; gap: 6px; }
.station .bench-bank .part { padding: 6px 10px; font-size: 13px; line-height: 1.2; }
.view-tools { display: grid; justify-items: end; gap: 4px; }
.view-note { margin: 0; max-width: 520px; font-size: 13px; line-height: 1.35; color: var(--muted); text-align: right; }
.view-note:empty, .feedback[hidden] { display: none; }
/* The page scrolls when the bench grows (ticket decisions) so nothing is cut off below the fold; the console scrolls inside itself. */
html.bb-page-9a1293846b, html.bb-page-9a1293846b body { overflow-y: auto !important; }
.side-body { overflow-y: auto; }
/* PBQ scenario lives at the top of the Repair Console, so the printer station gets the full middle width; the empty strip under the header is gone (2026-10-26). */
.ticket-detail, .ticket-detail.active { grid-template-columns: minmax(0, 1fr); }
@media (min-width:1201px) { .app { grid-template-columns: minmax(0, 1fr) 470px; } }
.side-body > .ticket-notes .note-box { margin: 0; }
.side-body > .ticket-notes[hidden] { display: none; }
.decision-tray { flex: none; min-height: 0; }
