@import url("/quotefleet-font-system.00692c01ac.css");
:root {
  color-scheme: light;
  --ink: #2c2c2c;
  --muted: #767676;
  --line: #e0e0e0;
  --paper: #fff;
  --bg: #f4f4f4;
  --accent: #484848;
  --accent-light: #ebebeb;
  --warning: #5c5c5c;
  --warn-bg: #f2f2f2;
  --error: #5e5e5e;
  --radius: 14px;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #6b6b6b;
  outline-offset: 3px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 550;
}
button:hover:not(:disabled) {
  background: var(--accent-light);
  border-color: #b6b6b6;
}
input,
select {
  width: 100%;
  height: 41px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  min-width: 0;
}
input:focus,
select:focus {
  outline: 2px solid #a4a4a4;
  outline-offset: 1px;
}
input::placeholder {
  color: #979797;
}
input[aria-invalid="true"] {
  border-color: var(--error);
  background: #fafafa;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
label input,
label select {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 450;
}
.topbar {
  height: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 4.2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.7px;
  color: var(--ink);
}
.brand span {
  font-size: 14px;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 0;
}
.topbar > a:last-child {
  font-size: 12px;
}
main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 4.2vw 24px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 750;
  color: var(--accent);
  margin: 0 0 12px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin: 0 0 12px;
}
h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 680;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  margin: 0;
}
.lede {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.button {
  padding: 12px 16px;
  border-radius: 8px;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.primary:hover:not(:disabled) {
  background: #383838;
  border-color: #383838;
}
.secondary {
  background: var(--paper);
}
.setup-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 145px auto;
  align-items: start;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px;
  margin-bottom: 24px;
}
.save-control {
  padding-top: 24px;
  text-align: center;
}
.save-control button {
  min-height: 41px;
  width: 100%;
}
#save-state {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
  max-width: 220px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.25fr);
  gap: 24px;
  align-items: start;
}
.equipment-panel,
.preview-panel,
.axle-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-intro {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 24px 16px;
  line-height: 1.6;
}
.segmented {
  display: flex;
  gap: 4px;
  background: #f2f2f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}
.segmented button {
  border: 0;
  padding: 8px 12px;
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
  border-radius: 6px;
}
.segmented button[aria-pressed="true"] {
  background: var(--paper);
  box-shadow: 0 1px 3px #3131311a;
  color: var(--accent);
}
.unit-card {
  margin: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.unit-heading {
  padding: 12px 16px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.unit-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.unit-number {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #e4e4e4;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 750;
  font-size: 11px;
}
.unit-heading .mini-actions {
  display: flex;
  gap: 4px;
}
.mini-actions button {
  font-size: 10px;
  padding: 4px 8px;
}
.unit-body {
  padding: 16px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-grid .wide {
  grid-column: 1/-1;
}
.source-pill {
  display: inline-block;
  font-size: 10px;
  color: var(--warning);
  border-radius: 6px;
  background: var(--warn-bg);
  padding: 0px 4px;
  margin-left: 4px;
  font-weight: 500;
}
.source-pill.checked {
  color: var(--accent);
  background: var(--accent-light);
}
.unit-details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.unit-details > summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 12px;
}
.field-help {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}
.confirm-measurements {
  margin-top: 12px;
  font-size: 10px;
  border-style: dashed;
  width: 100%;
  color: var(--accent);
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
}
.inline-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}
.add-units {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}
.add-units button {
  font-size: 11px;
  border-style: dashed;
}
.live-pill {
  font-size: 10px;
  color: var(--accent);
  display: flex;
  gap: 4px;
  align-items: center;
}
.live-pill span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #787878;
}
.preview-panel {
  position: sticky;
  top: 16px;
}
.preview-controls {
  display: flex;
  justify-content: space-between;
  padding: 16px 16px 12px;
}
.preview-actions {
  display: flex;
  gap: 8px;
}
.preview-actions button {
  font-size: 11px;
}
.preview-stage {
  height: 360px;
  position: relative;
  margin: 0 16px;
  background: radial-gradient(ellipse at center, #f3f3f3 0%, #efefef 100%);
  border-radius: 12px;
  overflow: hidden;
}
#view-3d,
#view-2d {
  position: absolute;
  inset: 0;
}
#view-3d[hidden],
#view-2d[hidden] {
  display: none;
}
#view-3d canvas {
  width: 100%;
  height: 100%;
  display: block;
}
#view-2d {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
#view-2d svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.preview-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 10px;
  color: #6c6c6c;
  background: #ffffffc9;
  border-radius: 6px;
  padding: 4px 8px;
  pointer-events: none;
}
.graphics-note {
  font-size: 10px;
  color: var(--muted);
  margin: 12px 24px 0;
  line-height: 1.5;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  gap: 12px;
}
.stat > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.stat strong {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
.stat small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.preview-readiness {
  padding: 0 24px 16px;
  font-size: 11px;
  line-height: 1.6;
}
.readiness-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 0 4px 4px 0;
  background: var(--accent-light);
  color: var(--accent);
}
.readiness-tag.warn {
  color: var(--warning);
  background: var(--warn-bg);
}
.readiness-tag.error {
  background: #f3f3f3;
  color: var(--error);
}
.preview-readiness p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.extension-controls {
  padding: 0 24px;
}
.extension-controls:empty {
  display: none;
}
.extension-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.extension-row label {
  font-size: 11px;
}
.extension-row output {
  font-size: 12px;
  color: var(--accent);
  font-weight: 650;
}
.extension-row input {
  grid-column: 1/-1;
  accent-color: var(--accent);
  height: 25px;
  padding: 0;
}
.geometry-details {
  margin: 12px 24px 16px;
}
.geometry-details summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.geometry-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-top: 12px;
}
.geometry-details th,
.geometry-details td {
  text-align: left;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.axle-panel {
  margin-top: 24px;
}
.presets {
  display: flex;
  align-items: center;
  gap: 8px;
}
.presets span {
  font-size: 10px;
  color: var(--muted);
  margin-right: 8px;
}
.presets button {
  font-size: 11px;
  padding: 8px 12px;
}
#axle-units {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
  margin: 0 24px 24px;
}
.axle-unit {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.axle-unit > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  background: #f7f7f7;
  gap: 8px;
}
.axle-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  white-space: nowrap;
}
.axle-count button {
  font-size: 13px;
  width: 25px;
  height: 25px;
  padding: 0;
}
.axle-list {
  padding: 8px 12px;
}
.axle-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.axle-row:last-child {
  border: 0;
}
.axle-dot {
  width: 27px;
  height: 27px;
  border: 2px solid #8c8c8c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
  margin-top: 8px;
}
.axle-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.axle-fields > label:first-child {
  grid-column: 1/-1;
}
.axle-fields label {
  font-size: 10px;
}
.axle-fields input,
.axle-fields select {
  font-size: 11px;
  height: 32px;
  padding: 4px 8px;
}
.axle-reference {
  font-size: 10px;
  color: var(--muted);
  padding-top: 12px;
}
.tire-options {
  font-size: 10px;
  margin: 8px 12px;
}
.tire-options summary {
  cursor: pointer;
  color: var(--muted);
}
.tire-options > .field-grid {
  margin-top: 12px;
}
.coupling-note {
  margin: 0 12px 12px;
  padding: 8px;
  background: #f1f1f1;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.coupling-note strong {
  color: var(--ink);
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.editor-footer > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.editor-footer button {
  font-size: 11px;
  background: transparent;
}
.page-footnote {
  font-size: 10px;
  color: var(--muted);
  margin: 24px 0;
}
.notice {
  padding: 16px 16px;
  border: 1px solid #cccccc;
  background: #f6f6f6;
  border-radius: 8px;
  margin: 0 0 24px;
  color: #555555;
  font-size: 12px;
  line-height: 1.6;
}
.notice ul {
  padding-left: 16px;
  margin: 8px 0;
}
.notice button {
  font-size: 11px;
}
.notice[hidden],
.toast[hidden] {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(620px, calc(100vw - 28px));
  max-height: 85vh;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 24px 80px #2a2a2a30;
}
dialog::backdrop {
  background: #21212159;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dialog-heading > button {
  border: 0;
  font-size: 24px;
  padding: 4px 8px;
}
.dialog-heading .eyebrow {
  margin-bottom: 8px;
}
.library-search {
  margin-bottom: 24px;
}
.library-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.library-item h3 {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.library-item p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}
.library-item .item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.library-item button {
  font-size: 11px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
#library-message {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: #2e2e2e;
  color: var(--paper);
  border-radius: 8px;
  box-shadow: 0 8px 30px #2c2c2c26;
  font-size: 12px;
  max-width: 90vw;
  z-index: 10;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--paper);
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 12px;
}
.error-text {
  font-size: 10px;
  color: var(--error);
  margin-top: 4px;
}
.print-only {
  display: none;
}
@media (min-width: 1500px) {
  .preview-stage {
    height: 420px;
  }
}
@media (max-width: 1050px) {
  main {
    padding: 32px 24px;
  }
  .setup-bar {
    grid-template-columns: 1fr 160px 140px;
    gap: 12px;
  }
  .save-control {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 0;
    text-align: left;
  }
  .save-control button {
    width: auto;
  }
  .save-control span {
    margin: 0;
  }
  .workspace {
    grid-template-columns: 1fr 1.1fr;
    gap: 16px;
  }
  .panel-heading {
    padding: 16px;
  }
  .unit-card {
    margin-left: 12px;
    margin-right: 12px;
  }
  .stats {
    margin-left: 16px;
    margin-right: 16px;
  }
  .stat strong {
    font-size: 16px;
  }
  .panel-intro {
    margin-left: 16px;
    margin-right: 16px;
  }
  .preview-stage {
    height: 330px;
  }
  .segmented button {
    padding: 8px 8px;
  }
  .equipment-panel > .panel-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  main {
    padding: 24px 16px 16px;
  }
  .topbar {
    padding: 0 16px;
    height: 57px;
  }
  .brand {
    font-size: 20px;
  }
  .brand span {
    font-size: 12px;
  }
  .topbar > a:last-child {
    font-size: 10px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 12px;
  }
  .page-heading > .button {
    font-size: 11px;
    padding: 8px 12px;
  }
  h1 {
    font-size: 28px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .lede {
    font-size: 11px;
    line-height: 1.6;
  }
  .setup-bar {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 12px;
  }
  .name-field {
    grid-column: 1/-1;
  }
  .save-control {
    display: block;
  }
  .save-control button {
    width: 100%;
  }
  .save-control span {
    max-width: none;
    text-align: center;
    margin-top: 8px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
    grid-row: 1;
  }
  .preview-stage {
    height: 300px;
  }
  .equipment-panel > .panel-heading {
    flex-wrap: nowrap;
  }
  .preview-panel .stats {
    margin-top: 16px;
    margin-bottom: 12px;
  }
  .stat strong {
    font-size: 18px;
  }
  .axle-panel > .panel-heading {
    flex-wrap: wrap;
  }
  .presets {
    flex-wrap: wrap;
  }
  .editor-footer {
    margin-top: 16px;
    gap: 12px;
  }
  #axle-units {
    grid-template-columns: 1fr;
    margin: 0 16px 16px;
  }
  .page-footnote {
    line-height: 1.6;
  }
  .field-grid {
    gap: 12px;
  }
  .graphics-note {
    margin-left: 16px;
  }
  .geometry-details {
    margin-left: 16px;
    margin-right: 16px;
  }
}
@media print {
  body {
    background: var(--paper);
    font-size: 11px;
  }
  .topbar,
  .page-heading > .button,
  .save-control,
  .editor-footer,
  .add-units,
  .confirm-measurements,
  .mini-actions,
  .preview-controls,
  .preview-hint,
  .extension-controls input,
  .page-footnote,
  .segmented,
  .presets,
  .skip,
  .toast {
    display: none !important;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .page-heading {
    margin-bottom: 16px;
  }
  h1 {
    font-size: 24px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .preview-panel,
  .equipment-panel {
    width: 100%;
    position: static;
    break-inside: avoid;
    overflow: visible;
  }
  .preview-panel {
    order: 0;
  }
  .equipment-panel {
    order: 1;
  }
  .setup-bar {
    grid-template-columns: 2fr 1fr 1fr;
    padding: 12px;
  }
  .setup-bar input,
  .setup-bar select {
    border: 0;
    padding: 0;
    height: auto;
    appearance: none;
  }
  .unit-card {
    break-inside: avoid;
  }
  .unit-details {
    display: block;
  }
  .unit-details > summary {
    display: none;
  }
  .unit-details:not([open]) > .field-grid {
    display: grid;
  }
  .preview-stage {
    height: 250px;
  }
  #view-3d {
    display: none !important;
  }
  #view-2d {
    display: flex !important;
  }
  .stats {
    margin: 12px 24px;
  }
  .geometry-details {
    display: block;
  }
  .geometry-details:not([open]) > div {
    display: block;
  }
  .axle-panel {
    overflow: visible;
    break-inside: auto;
  }
  #axle-units {
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  .axle-unit {
    break-inside: avoid;
  }
  .axle-count button {
    display: none;
  }
  .tire-options:not([open]) > .field-grid {
    display: grid;
  }
  .tire-options summary {
    display: none;
  }
  input,
  select {
    color: #292929;
    box-shadow: none !important;
  }
  .notice {
    break-inside: avoid;
  }
  .print-only {
    display: block;
  }
  .graphics-note {
    display: none;
  }
  dialog {
    display: none !important;
  }
}

.source-pill[hidden] {
  display: none;
}
@media print {
  .page-heading,
  #editor,
  .page-footnote {
    display: none !important;
  }
  #print-spec {
    display: block !important;
    font-size: 10px;
    line-height: 1.5;
  }
  #print-spec h1 {
    font-size: 23px;
    margin: 0 0 8px;
  }
  #print-spec h2 {
    font-size: 14px;
    margin: 0 0 8px;
  }
  #print-spec h3 {
    font-size: 12px;
    margin: 0 0 8px;
  }
  #print-spec svg {
    display: block;
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
  }
  #print-spec table {
    border-collapse: collapse;
    width: 100%;
    font-size: 10px;
    margin-bottom: 12px;
  }
  #print-spec td,
  #print-spec th {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 4px 8px;
  }
  #print-spec article {
    break-inside: avoid;
    margin: 0 0 16px;
  }
  #print-spec .print-title {
    margin-bottom: 16px;
  }
  .print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
/* Reference editor: neutral technical form, no decorative accent colours. */
:root {
  --ink: #252525;
  --muted: #666;
  --line: #d7d7d7;
  --bg: #fff;
  --paper: #fff;
  --accent: #333;
  --accent-light: #ededed;
  --warning: #555;
  --warn-bg: #f3f3f3;
  --error: #333;
  --radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  background: var(--paper);
}
button,
input,
select {
  border-radius: 6px;
}
button {
  font-weight: 400;
}
button:hover:not(:disabled) {
  border-color: #999;
  background: #eee;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus,
select:focus {
  outline: 2px solid #777;
}
input,
select {
  border-color: #ccc;
  height: 36px;
}
input[aria-invalid="true"] {
  background: #f5f5f5;
  border: 2px solid #555;
}
input[type="checkbox"],
input[type="range"] {
  accent-color: #555;
}
.topbar {
  height: 44px;
  padding: 0 3%;
  font-size: 12px;
}
.brand {
  font-size: 17px;
}
.eyebrow,
.lede,
.page-heading .eyebrow,
.live-pill,
.panel-intro,
.presets > span {
  display: none;
}
main {
  max-width: 1500px;
  padding: 16px 24px;
  margin: 0 auto;
}
.page-heading {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  padding: 24px;
  margin: 0;
  border-radius: 6px 6px 0 0;
  text-align: center;
}
h1 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
}
.page-heading #open-library {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 8px;
  font-size: 12px;
}
#editor {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 16px;
}
.setup-bar {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.setup-bar label {
  font-size: 11px;
  width: 150px;
}
.setup-bar input,
.setup-bar select {
  height: 30px;
  font-size: 12px;
}
.required-summary {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 0 0 16px;
  font-size: 14px;
}
.workspace {
  grid-template-columns: minmax(400px, 1.45fr) minmax(340px, 1fr);
  gap: 24px;
  align-items: stretch;
}
.equipment-panel,
.preview-panel,
.axle-panel {
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: var(--paper);
}
.preview-panel {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel-heading {
  min-height: 60px;
  padding: 16px;
  justify-content: center;
  border-bottom: 1px solid #ddd;
}
.equipment-panel > .panel-heading {
  position: relative;
}
.equipment-panel > .panel-heading .segmented {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 9px;
  padding: 0;
  border: 0;
  background: transparent;
}
.equipment-panel > .panel-heading .segmented button {
  padding: 0px 4px;
  font-size: 9px;
}
h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}
.reference-main {
  padding: 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
}
.reference-field {
  display: grid;
  grid-template-columns: minmax(155px, 0.53fr) minmax(180px, 1fr);
  column-gap: 24px;
  align-items: start;
  margin: 0 0 12px;
  font-size: 14px;
}
.reference-field > span:first-child {
  text-align: right;
  padding-top: 8px;
  line-height: 1.4;
}
.reference-field input,
.reference-field select {
  margin: 0;
  font-size: 14px;
}
.reference-field > .source-pill,
.reference-field > .field-help {
  display: none;
}
.reference-check input {
  width: 16px;
  height: 16px;
  margin-top: 8px;
}
.geometry-heading {
  font-size: 14px;
  font-weight: 400;
  margin: 24px 0 16px;
}
.reference-advanced {
  border: 0 !important;
  border-top: 1px solid #eee !important;
  border-radius: 0;
  margin: 0 16px 16px;
  padding: 8px;
  font-size: 12px;
}
.reference-advanced .field-grid .reference-field {
  display: block;
  font-size: 12px;
}
.reference-advanced .reference-field > span:first-child {
  text-align: left;
}
.reference-advanced button {
  margin-top: 12px;
  font-size: 11px;
}
.reference-advanced summary {
  cursor: pointer;
  color: #666;
}
.add-units:empty {
  display: none;
}
.unit-card,
.unit-heading,
.unit-number {
  background: var(--paper);
}
.source-pill,
.source-pill.checked {
  background: #f2f2f2;
  color: #666;
}
.preview-controls {
  padding: 8px 16px;
  gap: 8px;
}
.segmented {
  background: var(--paper);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0;
}
.segmented button {
  border-radius: 0;
  border: 0;
  border-right: 1px solid #ddd;
  padding: 4px 8px;
}
.segmented button:last-child {
  border: 0;
}
.segmented button[aria-pressed="true"] {
  color: #222;
  background: #e8e8e8;
  box-shadow: none;
}
.preview-stage {
  height: auto;
  min-height: 400px;
  flex: 1;
  margin: 0 16px;
  background: #fafafa;
  border-radius: 0;
  overflow: hidden;
}
.preview-hint {
  background: #ffffffbd;
  color: #666;
  font-size: 10px;
}
.extension-controls {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  margin: 0;
  max-width: 75%;
}
.extension-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  border: 0;
  padding: 0;
  background: #ffffffd9;
  font-size: 11px;
}
.extension-row > label,
.extension-row > .field-help {
  display: none;
}
.extension-row > output {
  width: 100%;
  font-size: 11px;
  text-align: right;
}
.extension-row input[type="range"] {
  width: 130px;
  height: 15px;
}
.stats {
  margin: 12px 16px 0;
  padding: 8px 0;
  gap: 12px;
}
.stat strong {
  font-size: 16px;
  font-weight: 600;
}
.stat small {
  font-size: 9px;
}
.preview-readiness {
  padding: 12px 16px;
}
.readiness-tag,
.readiness-tag.warn,
.readiness-tag.error {
  color: #333;
  background: #f1f1f1;
  font-size: 11px;
}
.geometry-details {
  margin: 0 16px 12px;
}
.axle-panel {
  margin-top: 24px;
}
.axle-panel > .panel-heading {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
}
.axle-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  flex-wrap: wrap;
}
.presets {
  display: flex;
  gap: 0;
}
.presets button {
  border-radius: 0;
  padding: 4px 8px;
  font-size: 12px;
}
.presets button + button {
  border-left: 0;
}
#axle-units {
  display: flex;
  align-items: stretch;
  overflow: auto;
  padding: 16px;
  gap: 12px;
}
.axle-unit {
  flex: 0 0 auto;
  min-width: 300px;
  padding: 12px;
  border-radius: 6px;
  max-width: none;
  margin: 0;
}
.axle-unit header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.axle-unit h3 {
  font-size: 14px;
}
.axle-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.axle-count button {
  padding: 4px 8px;
  min-width: 25px;
  height: 26px;
}
.axle-list {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 4px 8px;
}
.axle-cell {
  width: 52px;
  text-align: center;
  flex-shrink: 0;
}
.axle-dot {
  display: inline-flex;
  border: 3px solid #888;
  background: var(--paper);
  color: #222;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 0 12px;
}
.axle-cell label {
  font-size: 10px;
  margin: 4px 0;
}
.axle-cell input,
.axle-cell select {
  padding: 4px;
  width: 64px;
  font-size: 11px;
}
.axle-cell .source-pill,
.spacing-cell .source-pill,
.spacing-cell .field-help {
  display: none;
}
.spacing-cell {
  width: 115px;
  text-align: center;
  flex-shrink: 0;
}
.spacing-arrow {
  display: block;
  height: 48px;
  line-height: 40px;
  font-size: 32px;
  font-weight: 300;
  color: #b1b1b1;
}
.spacing-cell label {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  gap: 4px;
}
.spacing-cell label input {
  order: -1;
  width: 78px;
  height: 32px;
  font-size: 12px;
  margin: 0 auto;
  text-align: center;
  padding: 4px;
}
.spacing-cell .derived-field input {
  order: -1;
}
.coupling-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 0 115px;
  text-align: center;
  font-size: 10px;
}
.coupling-cell label {
  font-size: 10px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.coupling-cell input {
  order: -1;
  width: 85px;
  text-align: center;
  font-size: 12px;
  margin: auto;
}
.coupling-cell small {
  font-size: 10px;
  margin-top: 8px;
}
.coupling-cell:before {
  content: "⟷";
  color: #bbb;
  font-size: 34px;
}
.helper-weight label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Empty weight and axle rating share one input column. */
  width: 224px;
  max-width: 100%;
  font-size: 10px;
  text-transform: uppercase;
}
.helper-weight input {
  width: 110px;
  height: 30px;
  font-size: 12px;
}
.helper-weight .field-help {
  display: none;
}
.tire-options {
  font-size: 10px;
  margin-top: 12px;
}
.axle-add {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}
.axle-add button {
  font-size: 12px;
}
.axle-instructions {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 16px 16px;
}
.axle-instructions button {
  border: 0;
  padding: 0;
  text-decoration: underline;
  font-size: 12px;
}
#non-standard {
  border-top: 1px solid #ddd;
  margin: 0 16px 16px;
  padding: 16px 0 0;
}
#non-standard summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}
#non-standard > p {
  font-size: 12px;
  margin: 8px 0 16px;
}
#non-standard-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 12px;
  border: 1px solid #ddd;
  padding: 16px;
}
#non-standard-fields label {
  font-size: 12px;
}
.save-control {
  padding: 0;
  margin-top: 24px;
}
.save-control button {
  width: 100%;
  color: #222;
  background: var(--paper);
  border: 1px solid #888;
  font-size: 18px;
  font-weight: 400;
  min-height: 44px;
}
.save-control button:hover {
  background: #eee;
}
.save-control #save-state {
  max-width: none;
  font-size: 11px;
}
.editor-footer {
  padding: 16px 0 0;
  margin: 0;
  gap: 12px;
}
.editor-footer button {
  font-size: 11px;
}
.page-footnote {
  font-size: 11px;
}
.setup-name-row {
  padding: 16px;
}
.unit-heading {
  border-bottom: 1px solid #ddd;
}
.graphics-note {
  color: #444;
  background: #f3f3f3;
}
.notice {
  background: #f3f3f3;
  color: #333;
  border-color: #bbb;
}
.toast {
  background: #333;
  color: var(--paper);
}
.inline-check input {
  accent-color: #555;
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
  }
  .reference-field {
    grid-template-columns: minmax(100px, 0.6fr) minmax(100px, 1fr);
    gap: 12px;
    font-size: 12px;
  }
  .reference-field input,
  .reference-field select {
    font-size: 12px;
  }
  main {
    padding: 16px;
  }
  #editor {
    padding: 12px;
  }
  .page-heading #open-library {
    position: static;
    margin-top: 12px;
  }
  .preview-stage {
    min-height: 360px;
  }
  #non-standard-fields {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  main {
    padding: 8px;
  }
  .topbar {
    padding: 0 12px;
  }
  .brand span,
  .topbar > a:last-child {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading {
    padding: 16px;
  }
  h1 {
    font-size: 21px;
  }
  .reference-field {
    grid-template-columns: 120px minmax(0, 1fr);
    font-size: 12px;
    gap: 12px;
  }
  .preview-stage {
    height: 400px;
    min-height: 400px;
    flex: none;
  }
  .preview-panel {
    position: relative;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat strong {
    font-size: 14px;
  }
  .axle-toolbar {
    gap: 8px;
  }
  .axle-panel > .panel-heading {
    align-items: flex-start;
  }
  #non-standard-fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
  }
  .setup-bar {
    justify-content: stretch;
  }
  .setup-bar label {
    width: 50%;
  }
  .editor-footer {
    flex-wrap: wrap;
  }
  #editor {
    padding: 8px;
  }
  .reference-main {
    padding: 12px !important;
  }
}
@media print {
  .required-summary,
  .setup-bar,
  .reference-advanced,
  #non-standard,
  .axle-instructions {
    display: none !important;
  }
}

body[data-editor="detailed"] .workspace {
  align-items: start;
}
body[data-editor="detailed"] .preview-panel {
  position: sticky;
  top: 16px;
}
body[data-editor="detailed"] .preview-stage {
  height: 500px;
  flex: none;
}
@media (max-width: 720px) {
  .preview-panel {
    order: initial;
  }
  body[data-editor="detailed"] .preview-panel {
    position: relative;
    top: auto;
  }
  body[data-editor="detailed"] .preview-stage {
    height: 400px;
  }
}

/* ══ QUOTEFLEET DESIGN ALIGNMENT (DESIGN-SYSTEM.md) ═════════════════════════
 * Light theme, headers left, ONE bordered level (the page itself is not a card
 * and its panels are separated by a rule, not boxed inside a box), square
 * corners with a small radius, no pills, inputs at the heavy-haul tool's
 * height, a 16px gutter at 375. Screen only: the print specification is its
 * own document and is untouched. */
@media screen {
  body {
    background: var(--paper);
  }
  .topbar {
    padding: 0 16px;
  }
  main {
    max-width: 1280px;
    padding: 24px 16px 32px;
  }
  .page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 0;
    padding: 0 0 16px;
    text-align: left;
  }
  .page-heading #open-library {
    position: static;
    padding: 12px 16px;
    font-size: 13px;
    flex: none;
  }
  h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.2px;
    text-align: left;
  }
  #editor {
    border: 0;
    padding: 0;
  }
  .required-summary {
    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    background: var(--bg);
    padding: 12px 16px;
    font-size: 13px;
  }
  .required-summary:empty,
  .required-summary[hidden] {
    display: none;
  }
  .equipment-panel,
  .preview-panel,
  .axle-panel {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .axle-panel {
    margin-top: 24px;
  }
  .panel-heading {
    min-height: 0;
    padding: 16px 0 12px;
    justify-content: flex-start;
    border-bottom: 0;
    text-align: left;
  }
  .equipment-panel > .panel-heading {
    justify-content: space-between;
    align-items: center;
  }
  .equipment-panel > .panel-heading .segmented {
    position: static;
    font-size: 12px;
  }
  .equipment-panel > .panel-heading .segmented button {
    padding: 8px 12px;
    font-size: 12px;
  }
  .axle-panel > .panel-heading {
    padding: 16px 0 12px;
  }
  h2 {
    font-size: 18px;
    font-weight: 700;
    text-align: left;
  }
  .reference-main {
    padding: 0 !important;
  }
  .reference-field > span:first-child {
    text-align: left;
  }
  .geometry-details {
    margin: 0 0 12px;
  }
  input,
  select {
    height: 44px;
    border-radius: 6px;
  }
  button,
  .button {
    border-radius: 6px;
  }
  .save-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: left;
  }
  #save {
    width: auto;
    min-width: 240px;
    min-height: 48px;
    padding: 12px 24px;
    text-align: center;
  }
  #save-state {
    text-align: left;
  }
  .editor-footer {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 16px;
  }
  .page-footnote {
    text-align: left;
  }
  #non-standard {
    margin-left: 0;
    margin-right: 0;
  }
  #non-standard,
  #non-standard-fields {
    border: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }
}
@media screen and (max-width: 720px) {
  main {
    padding: 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 22px;
  }
  #axle-units {
    flex-direction: column;
    overflow: visible;
    gap: 16px;
  }
  #axle-units > * {
    width: 100%;
    max-width: none;
  }
  .axle-list {
    flex-wrap: wrap;
    row-gap: 16px;
    padding-left: 0;
    padding-right: 0;
  }
  #save {
    width: 100%;
  }
}

/* ══ FORM STYLE = THE QUOTE TOOL'S (after #993) ═════════════════════════════
 * Bold title ABOVE each field with a small leading icon, plain grey field,
 * required marked by a small "*" after the title, one field height and radius
 * everywhere. Tokens are the tool's own (--ink #020618, field #f2f4f7, border
 * #e2e8f0, 12px radius, 48px). Behaviour is untouched: only presentation. */
@media screen {
  #editor {
    --qf-ink: #020618;
    --qf-field: #f2f4f7;
    --qf-border: #e2e8f0;
    --qf-radius: 12px;
    color: var(--qf-ink);
  }
  #editor input:not([type="checkbox"]):not([type="range"]),
  #editor select,
  .setup-bar input,
  .setup-bar select {
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
    color: var(--qf-ink);
    background: var(--qf-field);
    border: 1px solid var(--qf-border);
    border-radius: var(--qf-radius);
  }
  #editor input[aria-invalid="true"] {
    border-color: var(--accent);
    background: var(--qf-field);
  }
  /* Titles above the fields, left, bold. */
  .reference-field,
  .setup-bar label,
  .setup-name-row,
  #non-standard-fields label {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--qf-ink);
  }
  #editor label input,
  #editor label select {
    margin-top: 4px;
  }
  .setup-bar label {
    width: 180px;
    font-size: 14px;
  }
  .reference-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
    column-gap: 0;
    margin: 0;
  }
  .reference-field > span:first-child {
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
  }
  /* The small leading icon: a ruler for a measurement, a scale for a weight,
     a truck for the trailer type. Drawn with a mask so it follows the ink. */
  .reference-field > span:first-child::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: var(--qf-icon-ruler) center / contain no-repeat;
    mask: var(--qf-icon-ruler) center / contain no-repeat;
    opacity: 0.8;
  }
  .reference-field:has(input[data-kind="weight"]) > span:first-child::before {
    -webkit-mask-image: var(--qf-icon-scale);
    mask-image: var(--qf-icon-scale);
  }
  .reference-field:has(select) > span:first-child::before {
    -webkit-mask-image: var(--qf-icon-truck);
    mask-image: var(--qf-icon-truck);
  }
  .reference-field:has(input:not([data-path])) > span:first-child::before {
    -webkit-mask-image: var(--qf-icon-tag);
    mask-image: var(--qf-icon-tag);
  }
  #editor {
    --qf-icon-ruler: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18M3 8v8M21 8v8M8 10v4M12 10v4M16 10v4'/%3E%3C/svg%3E");
    --qf-icon-scale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l3 12H3z'/%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3C/svg%3E");
    --qf-icon-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4h13v11H1zM14 8h5l4 4v3h-9'/%3E%3Ccircle cx='6' cy='17' r='2'/%3E%3Ccircle cx='18' cy='17' r='2'/%3E%3C/svg%3E");
    --qf-icon-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V3h9l9 9-9 9z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
  }
  .req {
    font-style: normal;
    font-weight: 700;
    color: var(--muted);
    margin-left: -4px;
  }
  /* Fields in two equal columns on a wide screen, one on a phone; headings and
     the single-line checkbox span the row. */
  .reference-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    align-items: start;
  }
  .reference-main > .geometry-heading,
  .reference-main > .reference-check {
    grid-column: 1 / -1;
  }
  .geometry-heading {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--qf-ink);
  }
  .reference-check {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .reference-check input {
    width: 20px;
    height: 20px;
    margin: 0;
  }
  .reference-field input,
  .reference-field select {
    width: 100%;
    max-width: none;
  }
  .reference-field > .field-help {
    font-size: 12px;
    color: var(--muted);
  }
  .source-pill {
    border-radius: 4px;
  }
  .reference-advanced .field-grid,
  #non-standard-fields {
    gap: 16px 24px;
  }
}
@media screen and (max-width: 720px) {
  .reference-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .setup-bar label {
    width: 100%;
    flex: 1 1 0;
  }
}
@media screen {
  .reference-advanced .field-grid .reference-field {
    display: grid;
    font-size: 14px;
  }
  .reference-advanced {
    margin: 0 0 16px;
    padding: 8px 0;
  }
  .reference-check input {
    margin-top: 0;
  }
}

/* ══ ONE BORDERED LEVEL (owner rule: no nested bordered cards) ══════════════
 * The Axle layout panel is the bordered level; the tractor / trailer units
 * inside it are separated by spacing and a single hairline, not by boxes.
 */
.axle-unit {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
}
.axle-unit > header,
.axle-unit header {
  background: none;
  padding: 0 0 8px;
}
.coupling-cell + .axle-unit {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
@media (max-width: 720px) {
  .coupling-cell + .axle-unit {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
  }
}

/* ══ INLINE FIELD ERRORS (oversize.io parity) ═══════════════════════════════
 * One line directly under the box: free text with no recognizable unit, a
 * required value left empty (after the field was touched or a save was tried,
 * named for the trailer family when only that family needs it), or a geometry
 * error on that measurement once a save was tried. It replaces the field's
 * unit hint while it shows, so the field never grows by two lines. */
.field-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--error);
  text-align: left;
}
.field-error[hidden],
.field-error:not([hidden]) + .field-help {
  display: none;
}
#editor input[aria-invalid="true"] {
  border-color: var(--error);
}
.save-control #delete-setup {
  min-height: 48px;
  padding: 12px 24px;
}

/* ══ EMBEDDED IN THE QUOTE TOOL (?embed=1) ══════════════════════════════════
 * "+ New" and "Edit" beside the quote tool's equipment picker open this page
 * in a dialog. The dialog's own header names it and closes it, so the site
 * bar, the page heading and the footnote are not repeated inside it. */
body[data-embed="true"] .skip,
body[data-embed="true"] .topbar,
body[data-embed="true"] .page-heading,
body[data-embed="true"] .page-footnote {
  display: none;
}
@media screen {
  body[data-embed="true"] main {
    padding-top: 16px;
  }
}
/* "Extendable trailer" on one line with its box beside it: the field rule's
 * width: 100% stretched the checkbox across the row and wrapped the title. */
@media screen {
  .reference-main > .reference-check {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
  }
  .reference-main > .reference-check > span:first-child {
    white-space: nowrap;
  }
  .reference-main > .reference-check input[type="checkbox"] {
    flex: none;
    width: 24px;
    height: 24px;
  }
}
