:root {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #22313c;
  background: #f8fafb;
  font-size: 15px;
  --line: #ccd5dc;
  --blue: #195f87;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
  flex-wrap: wrap;
}
header a {
  color: var(--blue);
  text-decoration: none;
}
header > a:first-child {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 20px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
}
.viewport {
  min-width: 0;
}
.viewbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
}
.viewbar span:first-child {
  font-weight: 700;
}
#preview {
  width: 100%;
  height: 390px;
  background: white;
  border: 1px solid var(--line);
  touch-action: manipulation;
}
.metrics {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 16px 0;
  font-variant-numeric: tabular-nums;
}
.metrics strong {
  display: block;
  font-size: 22px;
}
.metrics span {
  font-size: 12px;
  color: #526775;
}
.quote {
  padding: 0 6px;
  min-width: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 4px 0 16px;
}
h2 {
  font-size: 23px;
  margin: 8px 0 16px;
}
h3 {
  font-size: 17px;
}
.price {
  font-size: 30px;
  display: block;
  margin: 10px 0;
}
.hint {
  font-size: 12px;
  color: #526775;
  line-height: 1.55;
}
p {
  line-height: 1.5;
  max-width: 90ch;
}
details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.bom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e6ebee;
}
.bom-row small {
  display: block;
  color: #526775;
}
.editor {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.editor nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.editor nav button[aria-selected="true"] {
  background: var(--blue);
  color: white;
}
button {
  border: 1px solid #9dafbb;
  border-radius: 5px;
  background: white;
  color: #22313c;
  padding: 9px 13px;
  font: inherit;
  cursor: pointer;
  margin: 4px 2px 4px 0;
}
button:hover {
  border-color: var(--blue);
  background: #e8f1f7;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #58b1e2;
  outline-offset: 2px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #aab9c3;
  border-radius: 4px;
  padding: 9px;
  color: #22313c;
  background: white;
  min-width: 0;
}
textarea {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.check {
  flex-direction: row;
  align-items: center;
  margin: 18px 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.ply-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 90px 90px auto;
  gap: 10px;
  margin: 10px 0;
  align-items: end;
}
.list-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.list-row span {
  font-size: 13px;
}
#geometry-error {
  color: #a22821;
  line-height: 1.5;
  font-weight: 600;
}
#review {
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.6;
}
#section {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 48px;
  flex-wrap: wrap;
}
#section span {
  padding: 9px;
  border: 1px solid #94a8b7;
  font-size: 12px;
  background: #e8eef2;
}
#section .core {
  background: #f2e9ce;
}
#coupon-layout svg {
  width: 100%;
  height: 210px;
  background: white;
}
.coupon-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
[hidden] {
  display: none !important;
}
.stale {
  opacity: 0.35;
}
svg .select-edge {
  cursor: pointer;
  stroke: transparent;
  stroke-width: 9;
}
svg .select-edge:hover {
  stroke: #df8d2b80;
}
#download,
#rfq {
  width: 100%;
}
@media (max-width: 800px) {
  main {
    padding: 12px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .quote {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  #preview {
    height: 290px;
  }
  .ply-row {
    grid-template-columns: 1fr 70px 70px;
  }
  .ply-row button {
    grid-column: 1/-1;
  }
  .coupon-group {
    grid-template-columns: 1fr 1fr;
  }
  header {
    gap: 14px;
    padding: 12px;
  }
  .metrics {
    gap: 20px;
  }
  .editor nav {
    gap: 4px;
  }
}
/* Keep controls directly below the object; the quote column spans both rows. */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  column-gap: 24px;
  align-items: start;
}
.workspace {
  display: contents;
}
.viewport {
  grid-column: 1;
  grid-row: 1;
}
.quote {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.editor {
  grid-column: 1;
  grid-row: 2;
  margin-top: 12px;
}
.editor .fields {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.ply-row {
  grid-template-columns: minmax(160px, 1fr) 70px 70px auto;
}
.ply-row > div {
  display: flex;
  flex-wrap: wrap;
}
.two {
  grid-template-columns: 1fr;
}
@media (max-width: 800px) {
  main {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .workspace {
    display: contents;
  }
  .viewport {
    order: 0;
    width: 100%;
  }
  .editor {
    order: 1;
    width: 100%;
  }
  .quote {
    order: 2;
    width: 100%;
  }
  .ply-row {
    grid-template-columns: 1fr 60px 60px;
  }
  .ply-row > div {
    grid-column: 1 / -1;
  }
  .quote h1 {
    font-size: 24px;
  }
}
.laminate-helper {
  margin-bottom: 16px;
}
#edge-section svg {
  width: 100%;
  max-width: 420px;
  height: 180px;
  background: white;
}
#laminate-readout {
  border-left: 3px solid #6c9cb9;
  padding-left: 12px;
  font-variant-numeric: tabular-nums;
}
/* Viewport workspace: document stays fixed; only the active inspector scrolls. */
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
header {
  flex: none;
  min-height: 48px;
  padding: 10px 18px;
  gap: 24px;
}
header > a:first-child {
  font-size: 21px;
}
main {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: 0;
}
.workspace {
  display: contents;
}
.viewport {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 18px;
  position: relative;
  overflow: hidden;
}
.viewbar {
  flex: none;
}
.drawing-stage {
  position: relative;
  flex: 1;
  min-height: 70px;
  overflow: hidden;
  background:
    radial-gradient(circle, #cbd7df 1px, transparent 1px) 0 0/20px 20px,
    #f6f8fa;
  border: 1px solid #d6dfe4;
  border-radius: 6px;
}
#preview {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  touch-action: none;
  cursor: grab;
}
#preview:active {
  cursor: grabbing;
}
#three-view {
  position: absolute;
  inset: 0;
}
#three-view canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.view-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding-top: 5px;
}
.view-controls span {
  font-size: 11px;
  color: #526775;
  margin-left: 6px;
}
.view-controls button[aria-pressed="true"] {
  color: white;
  background: #195f87;
}
.metrics {
  gap: 16px;
  padding: 8px 0;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.metrics strong {
  font-size: 16px;
}
.metrics span {
  font-size: 10px;
}
#section {
  min-height: 0;
  gap: 3px;
}
#section span {
  padding: 4px 6px;
  font-size: 10px;
}
.viewport > p.hint {
  margin: 5px 0 0;
  font-size: 10px;
}
#geometry-error {
  font-size: 12px;
  max-height: 70px;
  overflow: auto;
}
.inspector {
  min-height: 0;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1;
  background: #fff;
  border-left: 1px solid var(--line);
}
.quote {
  flex: none;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
}
.quote h1 {
  font-size: 13px;
  margin: 0;
  letter-spacing: 0;
}
.quote #quote-state {
  margin: 0;
  font-size: 11px;
  text-align: right;
}
.quote .price {
  margin: 0;
  font-size: 21px;
  grid-column: 1/-1;
}
.quote #subtotal,
.quote #lead {
  grid-column: 1/-1;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}
.quote .quote-actions {
  display: flex;
  gap: 5px;
  grid-column: 1/-1;
}
.quote button {
  font-size: 11px;
  padding: 6px 9px;
  margin: 3px 0 0;
}
#export-status {
  font-size: 11px;
  margin: 0;
  grid-column: 1/-1;
}
#export-status:empty {
  display: none;
}
.editor {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  grid-template-rows: minmax(0, 1fr);
}
.editor nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  border-left: 1px solid var(--line);
  background: #f1f5f7;
  overflow: auto;
}
.editor nav button {
  flex: none;
  border: 0;
  border-bottom: 1px solid #dde5e9;
  border-radius: 0;
  font-size: 11px;
  padding: 13px 5px;
  margin: 0;
  min-height: 48px;
  overflow-wrap: anywhere;
  background: transparent;
}
.editor > [data-pane] {
  grid-column: 1;
  grid-row: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  min-width: 0;
}
h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
h3 {
  font-size: 14px;
  margin: 14px 0 8px;
}
p {
  font-size: 12px;
  margin: 8px 0;
}
.hint {
  font-size: 11px;
  line-height: 1.45;
}
button {
  font-size: 12px;
  padding: 7px 9px;
}
label {
  font-size: 11px;
  gap: 4px;
}
input,
select,
textarea {
  padding: 7px;
  font-size: 12px;
}
textarea {
  max-height: 100px;
  resize: vertical;
}
.fields,
.editor .fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.ply-row {
  grid-template-columns: minmax(0, 1fr) 55px 50px;
  gap: 5px;
}
.ply-row > div {
  grid-column: 1/-1;
}
.ply-row button {
  padding: 4px 8px;
}
.check {
  margin: 10px 0;
}
details {
  padding: 10px 0;
}
.two {
  display: block;
}
.coupon-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.list-row {
  gap: 6px;
  padding: 6px 0;
}
.list-row span {
  font-size: 11px;
}
.cad-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 6px;
  margin: 7px 0;
  align-items: center;
}
.cad-profile span {
  font-size: 11px;
  overflow-wrap: anywhere;
}
#cad-status {
  white-space: pre-line;
  max-height: 120px;
  overflow: auto;
  color: #6e4b17;
}
#quote-details #download,
#quote-details #rfq {
  width: auto;
}
@media (max-width: 740px) {
  header {
    min-height: 42px;
    padding: 8px 12px;
    gap: 14px;
  }
  header strong,
  header > a:not(:first-child) {
    display: none;
  }
  main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 40%) minmax(0, 60%);
  }
  .viewport {
    grid-column: 1;
    grid-row: 1;
    padding: 6px 10px;
    width: auto;
  }
  .inspector {
    grid-column: 1;
    grid-row: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .quote {
    padding: 5px 10px;
  }
  .quote .price {
    grid-column: 1;
    font-size: 17px;
  }
  .quote #subtotal {
    grid-column: 2;
    grid-row: 2;
    font-size: 10px;
  }
  .quote #lead {
    display: none;
  }
  .quote .quote-actions {
    grid-column: 1/-1;
  }
  .metrics {
    gap: 6px;
    padding: 4px 0;
  }
  .metrics strong {
    font-size: 12px;
  }
  .viewport > p.hint,
  #section,
  .viewbar span:last-child,
  .view-controls span {
    display: none;
  }
  .editor {
    width: auto;
    grid-template-columns: minmax(0, 1fr) 66px;
  }
  .editor > [data-pane] {
    padding: 10px;
  }
  .editor nav button {
    min-height: 40px;
    padding: 9px 3px;
  }
}
main {
  align-items: stretch;
  grid-template-rows: minmax(0, 1fr);
}
@media (max-width: 740px) {
  main {
    grid-template-rows: minmax(180px, 40%) minmax(0, 60%);
  }
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
  min-width: 0;
  margin: 12px 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
}
#edit-status {
  border-left: 3px solid #dc8c2d;
  padding-left: 8px;
}
.saved-row {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.saved-row span {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
#planning-assumptions {
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.5;
}
/* Procurement workflow: restrained surfaces, numbered stages, explicit status. */
.drawing-stage {
  background: #f4f6f7;
  border-radius: 0;
}
button,
input,
select,
textarea,
fieldset {
  border-radius: 2px;
}
header > a:first-child {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.editor {
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr) 94px;
}
.editor nav {
  grid-row: 1 / -1;
  background: #f2f4f5;
}
.editor nav button {
  text-align: left;
  padding: 16px 8px;
  font-weight: 600;
  font-size: 12px;
  overflow-wrap: normal;
}
.editor nav button[aria-current="step"] {
  background: #e3ebf0;
  color: #153f58;
  box-shadow: inset 3px 0 #195f87;
}
.editor > [data-pane] {
  grid-row: 2;
}
.workflow-context {
  grid-column: 1;
  grid-row: 1;
  padding: 14px 14px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.workflow-context > strong {
  font-size: 13px;
}
.workflow-context > p {
  margin: 6px 0 10px;
}
.workflow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.workflow-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  margin: 0;
  padding: 8px 6px;
  font-size: 11px;
}
.workflow-tabs button[aria-selected="true"] {
  color: #195f87;
  border-bottom-color: #195f87;
  font-weight: 700;
  background: #f1f5f7;
}
.workflow-footer {
  grid-column: 1;
  grid-row: 3;
  border-top: 1px solid var(--line);
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.workflow-footer p {
  width: 100%;
  margin: 0 0 4px;
  font-size: 11px;
  color: #6e501c;
}
.workflow-footer p[data-state="invalid"] {
  color: #a22821;
}
.workflow-footer button:last-child {
  margin-left: auto;
  background: #195f87;
  color: white;
}
.quote .price,
input[type="number"],
.bom-row {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 740px) {
  .editor {
    grid-template-columns: minmax(0, 1fr) 82px;
  }
  .editor nav button {
    padding: 12px 6px;
    font-size: 11px;
  }
  .workflow-context {
    padding: 8px 10px 0;
  }
  .workflow-context > p {
    display: none;
  }
  .workflow-footer {
    padding: 5px 10px;
  }
}
/* Drawing-led multi-view workspace. */
body.drawing-led:not(.show-inspector) main {
  grid-template-columns: minmax(0, 1fr);
}
body.drawing-led:not(.show-inspector) .inspector {
  display: none;
}
.section-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 8px;
  flex-wrap: wrap;
}
.section-controls label {
  flex-direction: row;
  align-items: center;
}
.section-controls input {
  width: 90px;
}
.section-controls select {
  width: auto;
}
.section-controls span {
  font-size: 11px;
  color: #526775;
}
.section-workspace {
  display: grid;
  gap: 5px;
  background: #ccd5dc;
  --split: 60%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, var(--split)) minmax(0, 1fr);
}
.plan-tile {
  position: relative;
  min-height: 0;
  min-width: 0;
  background: #f4f6f7;
  overflow: hidden;
}
.section-workspace[data-views="1"] {
  grid-template-rows: minmax(0, 1fr);
}
.section-workspace[data-views="3"],
.section-workspace[data-views="4"] {
  grid-template-columns: minmax(0, var(--split)) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}
.section-workspace[data-views="3"] .plan-tile {
  grid-row: 1/3;
}
.section-tile {
  background: #f4f6f7;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.section-tile > svg {
  flex: 1;
  width: 100%;
  min-height: 20px;
}
.section-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  border-bottom: 1px solid #ccd5dc;
  flex-wrap: wrap;
}
.section-toolbar label {
  flex-direction: row;
  align-items: center;
  gap: 3px;
  font-size: 10px;
}
.section-toolbar input {
  width: 64px;
  padding: 3px;
  font-size: 11px;
}
.section-toolbar select {
  width: 55px;
  padding: 3px;
  font-size: 11px;
}
.section-toolbar button {
  padding: 3px 5px;
  margin: 0;
  font-size: 10px;
}
.section-note {
  font-size: 10px;
  margin: 4px 8px;
  color: #526775;
}
.section-tile svg [role="button"] {
  cursor: pointer;
}
.section-tile svg [role="button"]:hover,
.section-tile svg [role="button"]:focus {
  stroke: #111;
  stroke-width: 2;
  filter: brightness(1.15);
  outline: none;
}
.drawing-context {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  width: 320px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  overflow: auto;
  background: white;
  border: 1px solid #879aa6;
  box-shadow: 0 4px 18px #24374626;
  padding: 12px;
}
.context-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.context-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
@media (max-width: 740px) {
  body.drawing-led:not(.show-inspector) main {
    grid-template-rows: minmax(0, 1fr);
  }
  .section-controls {
    gap: 6px;
  }
  .section-controls span {
    display: none;
  }
  .section-toolbar {
    gap: 4px;
  }
  .section-toolbar input {
    width: 48px;
  }
  .section-workspace[data-views="3"],
  .section-workspace[data-views="4"] {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(120px, 1fr));
    overflow: auto;
  }
  .section-workspace[data-views="3"] .plan-tile {
    grid-row: auto;
  }
}
.section-tile.stale,
.drawing-led #preview.stale #drawing-callouts {
  pointer-events: none;
}
.section-toolbar select[data-detail] {
  width: 88px;
}
/* Refined engineering workspace: quiet surfaces and clear interaction hierarchy. */
:root {
  --line: #dce3e9;
  --blue: #256383;
  -webkit-font-smoothing: antialiased;
}
body {
  background: #eef2f5;
  color: #263747;
}
header {
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 1px 0 #162f4610;
  padding: 12px 24px;
  min-height: 56px;
}
header > a:first-child {
  font-size: 19px;
  letter-spacing: -0.6px;
  color: #203f54;
}
header strong {
  font-size: 12px;
  color: #6d7d8b;
  font-weight: 500;
  border-left: 1px solid #dce3e9;
  padding-left: 24px;
}
header > a:not(:first-child) {
  color: #6c7e8b;
  font-size: 12px;
}
.viewport {
  padding: 12px 20px;
}
.viewbar {
  padding: 3px 0 10px;
  align-items: center;
}
.viewbar span:first-child {
  font-size: 14px;
  letter-spacing: -0.2px;
}
.viewbar span:last-child {
  font-size: 11px;
  color: #7a8995;
}
h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.3px;
}
p {
  text-wrap: pretty;
}
button {
  border-radius: 7px;
  border-color: #d8e1e7;
  background: #fff;
  font-weight: 500;
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}
button:hover {
  background: #f5f9fc;
  border-color: #9db8c9;
  box-shadow: 0 2px 5px #1634490a;
}
button:active {
  background: #e8f0f5;
}
input,
select,
textarea {
  border-radius: 6px;
  border-color: #d6e0e7;
  background: #f9fbfc;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #9db4c3;
}
input:focus,
select:focus,
textarea:focus {
  background: white;
  box-shadow: 0 0 0 3px #28688712;
}
.section-controls {
  gap: 10px;
  padding: 2px 0 12px;
}
.section-controls > label {
  font-size: 11px;
  color: #718290;
}
.section-controls > span {
  margin-left: auto;
  color: #7a8995;
}
.section-controls > button {
  min-height: 38px;
  padding: 8px 12px;
  margin: 0;
}
#drawing-estimate {
  background: #e2edf4;
  color: #235b7b;
  border-color: #cddfe9;
  font-variant-numeric: tabular-nums;
}
#inspector-toggle[aria-pressed="true"] {
  background: #234e68;
  color: white;
  border-color: #234e68;
}
.layout-switch {
  display: flex;
  padding: 3px;
  gap: 2px;
  background: #e1e8ed;
  border-radius: 9px;
}
.layout-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 6px 10px;
  min-height: 34px;
  color: #617786;
  box-shadow: none;
}
.layout-switch button[aria-pressed="true"] {
  background: white;
  color: #214d68;
  box-shadow: 0 1px 4px #14334b18;
}
.layout-switch button span:first-child {
  font-size: 18px;
  line-height: 1;
}
.layout-switch button span:last-child {
  font-size: 11px;
}
.section-workspace {
  gap: 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.plan-tile,
.section-tile {
  border-radius: 10px;
  background: #f9fbfc;
  box-shadow:
    0 0 0 1px #1634490d,
    0 2px 5px #16344905;
  overflow: hidden;
}
.section-toolbar {
  background: #fff;
  border-bottom: 1px solid #e9eef2;
  padding: 9px 12px;
  gap: 10px;
}
.section-toolbar > strong {
  font-size: 12px;
  color: #3f6178;
  min-width: 30px;
}
.section-toolbar label {
  color: #7b8c98;
  font-size: 10px;
  gap: 5px;
}
.section-toolbar input,
.section-toolbar select {
  border-color: transparent;
  background: #f0f4f7;
  padding: 5px 6px;
  font-size: 11px;
  min-height: 28px;
}
.section-toolbar input {
  width: 68px;
}
.section-toolbar select[data-scale] {
  width: 76px;
}
.section-toolbar button {
  border: 0;
  background: #f0f4f7;
  color: #496b82;
  padding: 6px 9px;
  min-height: 28px;
  margin-left: auto;
}
.section-note {
  padding: 4px 4px 6px;
  color: #81909b;
  font-size: 10px;
}
.view-controls {
  gap: 4px;
  padding-top: 10px;
}
.view-controls button {
  border-color: transparent;
  background: transparent;
  color: #60798a;
  min-height: 34px;
  padding: 7px 11px;
}
.view-controls button[aria-pressed="true"] {
  background: #254f69;
  color: #fff;
  box-shadow: 0 2px 4px #153b5014;
}
.view-controls button:hover {
  background: #e3ecf2;
}
.view-controls button[aria-pressed="true"]:hover {
  background: #1b435c;
}
.metrics {
  padding: 10px 0 6px;
}
.metrics > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.metrics strong {
  font-size: 14px;
  letter-spacing: -0.3px;
}
.metrics span {
  color: #7c8d99;
}
#section span {
  border: 0;
  border-radius: 4px;
  color: #637d8e;
  background: #e4ebf0;
  font-size: 10px;
}
#section .core {
  background: #ece7d9;
  color: #827149;
}
.drawing-context {
  border: 0;
  border-radius: 12px;
  padding: 18px;
  box-shadow:
    0 0 0 1px #1c3a5014,
    0 8px 32px #1c3a5029;
  background: #fffffff5;
  backdrop-filter: blur(12px);
}
.context-heading {
  padding-bottom: 9px;
  border-bottom: 1px solid #e5ebef;
  margin-bottom: 8px;
}
.context-heading strong {
  font-size: 14px;
  letter-spacing: -0.2px;
}
.context-heading button {
  border: 0;
  background: #edf2f5;
  color: #708592;
  font-size: 11px;
}
.context-fields label {
  color: #637988;
  font-weight: 500;
}
.drawing-context button {
  min-height: 36px;
}
.inspector {
  box-shadow: -3px 0 14px #213c4908;
  border-left: 1px solid #e0e7ed;
}
.quote {
  padding: 14px 18px;
  background: #f9fbfc;
}
.workflow-context {
  padding: 16px 16px 0;
}
.editor > [data-pane] {
  padding: 16px;
}
.editor nav {
  background: #f4f7f9;
}
.editor nav button {
  border-bottom: 0;
  margin: 4px;
  border-radius: 7px;
  min-height: 48px;
}
.editor nav button[aria-current="step"] {
  box-shadow: none;
  background: #e2edf4;
  color: #245a79;
}
.workflow-footer {
  background: #f9fbfc;
  border-top: 1px solid #e5ebef;
}
#three-view {
  container-type: inline-size;
}
.material-overlay,
.material-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.material-leaders line {
  stroke-width: 1;
  opacity: 0.55;
  stroke-dasharray: 3 3;
}
.material-callout {
  position: absolute;
  width: 190px;
  max-width: 35%;
  text-align: left;
  pointer-events: auto;
  padding: 10px 12px;
  border: 1px solid #ffffffcc;
  border-left: 3px solid var(--material-color);
  border-radius: 8px;
  background: #fffffff0;
  box-shadow: 0 2px 12px #25465b12;
  backdrop-filter: blur(8px);
  margin: 0;
}
.material-callout strong {
  display: block;
  font-size: 11px;
  color: #2e4b60;
  margin-bottom: 4px;
}
.material-callout span {
  display: block;
  font-size: 10px;
  line-height: 1.45;
  color: #6e8392;
}
.material-callout[aria-pressed="true"] {
  box-shadow:
    0 0 0 2px var(--material-color),
    0 3px 14px #25465b20;
  background: white;
}
.material-toggle {
  position: absolute;
  right: 14px;
  top: 10px;
  z-index: 3;
  font-size: 11px;
  background: #fffffff0;
  border: 0;
  box-shadow: 0 1px 6px #25465b12;
}
@container (max-width:580px) {
  .material-callout {
    width: 145px;
    padding: 7px 9px;
  }
  .material-callout span {
    font-size: 9px;
  }
  .material-callout strong {
    font-size: 10px;
  }
}
@container (max-width:380px) {
  .material-callout span {
    display: none;
  }
  .material-callout {
    max-width: 43%;
  }
}
@media (max-width: 740px) {
  header {
    padding: 10px 14px;
    min-height: 46px;
  }
  .viewport {
    padding: 8px 10px;
  }
  .section-controls {
    gap: 7px;
  }
  .layout-switch button {
    padding: 5px 9px;
  }
  .layout-switch button span:last-child {
    display: none;
  }
  .section-controls > label {
    display: none;
  }
  .section-controls > button {
    font-size: 10px;
    min-height: 34px;
    padding: 6px 8px;
  }
  .metrics > div {
    display: block;
  }
  .metrics strong {
    font-size: 12px;
  }
  .section-toolbar {
    padding: 7px 8px;
    gap: 6px;
  }
  .section-workspace[data-views="3"],
  .section-workspace[data-views="4"] {
    overflow: auto;
  }
  .material-callout {
    padding: 7px 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  input,
  select,
  textarea {
    transition: none;
  }
}
.material-callout strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.material-callout span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@container (max-width:380px) {
  .material-callout span {
    display: none;
  }
}
#three-view {
  container-type: size;
}
@container (max-height:240px) {
  .material-callout span {
    display: none;
  }
  .material-callout {
    padding: 6px 9px;
  }
  .material-callout strong {
    margin-bottom: 0;
  }
}

/* Drawing sheets share the model viewport and scroll internally. */
.drawing-document {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: #e9eef1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
}
.drawing-document[hidden] {
  display: none;
}
.drawing-document-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #d4dfe5;
  flex-wrap: wrap;
}
.drawing-document-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
}
.drawing-document-bar select {
  max-width: 100%;
  min-width: 0;
}
.drawing-document-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 16px;
}
#drawing-sheet-image {
  min-width: 0;
  margin: auto;
  background: #fff;
  box-shadow: 0 3px 16px #253d4a15;
}
#drawing-sheet-image svg {
  width: 100%;
  height: auto;
  display: block;
}
.drawing-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
#drawing-form textarea {
  box-sizing: border-box;
  width: 100%;
  resize: vertical;
  border: 1px solid #d4dfe5;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}
#drawing-form > label {
  display: block;
  margin: 12px 0;
}
#drawing-form details p {
  font-size: 12px;
  color: #5b6d79;
}
#drawing-status {
  font-size: 12px;
  line-height: 1.5;
  color: #395668;
}

/* Compact workspace: full-width model or editor, with a persistent touch switch. */
.mobile-workspace-switch { display: none; }
@media (max-width: 900px) {
  body { height: 100dvh; }
  header { min-height: 44px; padding: 8px max(12px, env(safe-area-inset-left)); }
  header strong, header > a:not(:first-child) { display: none; }
  main, body.drawing-led:not(.show-inspector) main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }
  .viewport, .inspector { grid-column: 1; grid-row: 1; min-width: 0; width: auto; }
  .viewport { padding: 8px max(12px, env(safe-area-inset-left)); }
  body.show-inspector .viewport { display: none; }
  .inspector { border: 0; overflow: hidden; }
  .mobile-workspace-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    flex: none;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .mobile-workspace-switch button { margin: 0; font-size: 13px; }
  .mobile-workspace-switch button[aria-pressed="true"] { background: #234e68; color: #fff; border-color: #234e68; }
  button, .view-controls button, .layout-switch button, .section-controls > button,
  .section-toolbar button, .quote button, .drawing-context button, .ply-row button,
  .workflow-tabs button { min-height: 44px; min-width: 44px; }
  input:not([type="checkbox"]):not([type="range"]), select, textarea,
  .section-toolbar input, .section-toolbar select { font-size: 16px; min-height: 44px; }
  input[type="checkbox"] { flex: none; width: 22px; height: 22px; }
  .check, summary { min-height: 44px; align-content: center; }
  label { font-size: 12px; }
  p, .hint, .list-row span { font-size: 12px; }
  .editor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .editor nav {
    grid-column: 1; grid-row: 1;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 0; border-bottom: 1px solid var(--line); overflow: visible;
  }
  .editor nav button { margin: 3px 1px; padding: 6px 2px; font-size: 11px; overflow-wrap: anywhere; }
  .workflow-context { grid-row: 2; padding: 8px 12px 0; }
  .workflow-context > p { display: none; }
  .workflow-context > strong { display: none; }
  .workflow-tabs { gap: 0; }
  .workflow-tabs button { padding: 6px 9px; font-size: 12px; }
  .editor > [data-pane] { grid-row: 3; padding: 14px; overflow-x: hidden; overflow-wrap: anywhere; }
  .workflow-footer { grid-row: 4; padding: 6px 12px; }
  .workflow-footer p { font-size: 10px; }
  .workflow-footer:has(button:not([hidden])) { align-items: center; }
  .quote { padding: 8px 12px; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
  .quote .price { grid-column: 1; font-size: 18px; }
  .quote #subtotal { grid-column: 2; grid-row: 2; font-size: 10px; }
  .quote #lead { display: none; }
  .quote .quote-actions { grid-column: 1/-1; }
  .quote button { margin: 0; }
  .fields, .editor .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields > *, .context-fields > *, fieldset { min-width: 0; }
  .ply-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ply-row > :first-child { grid-column: 1/-1; }
  .ply-row > div { gap: 4px; }
  .list-row { flex-wrap: wrap; }
  .cad-profile { grid-template-columns: minmax(0, 1fr); }
  .section-controls { gap: 6px; padding: 0 0 8px; }
  .section-controls > label, .section-controls > span { display: none; }
  .layout-switch { padding: 2px; }
  .layout-switch button { padding: 5px 8px; }
  .layout-switch button span:last-child { display: none; }
  .section-controls > button { padding: 6px 8px; font-size: 11px; }
  .section-workspace[data-views="2"], .section-workspace[data-views="3"], .section-workspace[data-views="4"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(300px, 1fr);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .section-workspace[data-views="3"] .plan-tile { grid-row: auto; }
  .section-toolbar { gap: 6px; padding: 8px; }
  .section-toolbar input { width: 75px; }
  .section-toolbar select[data-scale] { width: 72px; }
  .section-toolbar select[data-detail] { width: 112px; }
  .section-toolbar label { font-size: 11px; }
  .view-controls { gap: 2px; padding-top: 4px; }
  .view-controls button { padding: 6px 8px; font-size: 11px; }
  #view-help { display: none; }
  .metrics { gap: 8px; padding: 6px 0; }
  .metrics > div { min-width: 0; display: block; }
  .metrics strong { font-size: 12px; }
  .viewbar { font-size: 11px; }
  .viewbar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .viewbar span:last-child { flex: none; font-size: 10px; }
  .drawing-context { inset: 8px; width: auto; max-width: none; max-height: calc(100% - 16px); padding: 14px; }
  .drawing-document-bar { gap: 4px; padding: 6px; }
  .drawing-document-bar label { flex-basis: 100%; flex-direction: row; }
  .drawing-document-bar button { margin: 0; }
  #drawing-return { margin-left: auto; }
  .drawing-actions button { flex: 1 1 130px; }
  .material-toggle { min-height: 44px; }
}
@media (max-width: 900px) and (max-height: 540px) {
  header, .viewport > .hint, .viewport > #section { display: none; }
  .viewport { padding-top: 4px; }
  .section-controls { padding-bottom: 4px; }
  .quote { padding: 5px 12px; }
  .workflow-footer p { display: none; }
  .metrics { position: absolute; right: 12px; bottom: 16px; pointer-events: none; }
  .metrics > div { background: #fffffff0; padding: 2px 4px; }
}
@media (max-width: 900px) {
  .layout-switch button span:first-child { display: inline; }
  .viewbar span:last-child { display: inline; }
}
@media (max-width: 900px) {
  /* One editor scroller keeps short phones and the on-screen keyboard usable. */
  .inspector { overflow-y: auto; overscroll-behavior: contain; }
  .inspector > .quote { order: 0; }
  .editor { order: 1; display: flex; flex-direction: column; flex: 1 0 auto; }
  .editor nav { order: 0; flex: none; }
  .workflow-context { order: 1; }
  .editor > [data-pane] { order: 2; overflow: visible; flex: 1; }
  .workflow-footer { order: 3; margin-top: auto; }
}
@media (max-width: 900px) {
  .viewport:has(.drawing-document:not([hidden])) > :is(.section-controls, .view-controls, .metrics, #section, p.hint) { display: none; }
}
@media (max-width: 900px) {
  .quote { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .quote .price { grid-column: 1/-1; }
  .quote #subtotal { grid-column: 1/-1; grid-row: auto; }
}
@media (max-width: 900px) {
  .material-callout[aria-pressed="true"] { width: calc(100% - 28px); max-width: none; z-index: 1; }
  .material-callout[aria-pressed="true"] span { display: block; overflow: visible; }
}
@media (max-width: 900px) {
  /* These actions remain in the full-width editor; avoid duplicate mobile chrome. */
  #inspector-toggle, #drawing-specifications, #edit-open { display: none; }
}

.custom-request { grid-column: 1 / -1; color: var(--blue); font-size: 12px; padding: 8px 0; }
#test-evidence-form > label { margin: 12px 0; }
@media (max-width: 900px) { .custom-request { min-height: 44px; display: flex; align-items: center; } }

.mounting-builder { border-bottom: 1px solid var(--line, #d2dce2); padding-bottom: 18px; margin-bottom: 16px; }
.mounting-builder details { margin: 12px 0; }
.mounting-builder summary { font-weight: 650; padding: 10px 0; cursor: pointer; }
.mounting-builder .mount-check { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.mounting-builder .mount-check input { width: 20px; min-height: 24px; }
.mount-summary { padding: 12px; margin-top: 12px; border: 1px solid #ccd7df; background: #f5f8fa; }
.mount-summary p { margin: 6px 0; font-variant-numeric: tabular-nums; }

/* Quote intake is a focused, keyboard-accessible overlay on the same design. */
.inquiry-dialog { width: min(650px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 24px; border: 1px solid #d3dce2; border-radius: 14px; color: #22313c; box-shadow: 0 22px 90px #152d4550; overflow: auto; }
.inquiry-dialog::backdrop { background: #152d4570; }
.inquiry-heading { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.inquiry-heading small { letter-spacing:.12em; font-size:11px; font-weight:700; color:#526b7b; }
.inquiry-heading h2 { margin:6px 0 0; font-size:25px; }
.inquiry-heading button { min-width:44px; min-height:44px; margin:0; font-size:22px; }
.inquiry-dialog p { line-height:1.5; }
.inquiry-dialog label span { font-size:12px; color:#60717e; }
.inquiry-dialog .fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.inquiry-dialog input, .inquiry-dialog textarea { font-size:16px; }
.inquiry-dialog fieldset { padding:14px 0 0; border:0; min-width:0; }
.inquiry-dialog legend { font-weight:700; padding:0; }
.inquiry-dialog .check { display:flex; align-items:flex-start; gap:10px; line-height:1.5; }
.inquiry-dialog .check input { flex:0 0 auto; margin-top:4px; }
.inquiry-dialog .check-row { display:flex; flex-wrap:wrap; gap:6px 24px; margin:8px 0 4px; }
.inquiry-summary { background:#f0f5f8; padding:14px; border-radius:8px; }
.inquiry-summary p { margin:6px 0; }
.inquiry-summary small { line-height:1.5; display:block; }
.inquiry-actions { display:flex; gap:8px; flex-wrap:wrap; }
.inquiry-actions button { min-height:44px; }
#inquiry-send { background:#195f87; color:white; border-color:#195f87; }
#inquiry-status { font-weight:500; overflow-wrap:anywhere; }
.inquiry-trap { position:absolute!important; left:-10000px; width:1px; height:1px; overflow:hidden; }
.launch-help { font-size:12px; }
@media(max-width:540px) { .inquiry-dialog { padding:18px; } .inquiry-dialog .fields { grid-template-columns:1fr; } .inquiry-actions button { flex:1; } }
#request-panel { background:#195f87; border-color:#195f87; color:white; font-weight:600; }

/* Live supplier price */
.live-price { grid-column: 1/-1; display: grid; gap: 6px; margin: 6px 0; }
.live-price > button { justify-self: start; }
.live-price p { margin: 0; }
.live-price-total { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-price-badge { justify-self: start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e6f1ea; color: #22603f; }
.live-price-badge.indicative { background: #fff5e5; color: #865118; }
.live-price-badge.review { background: #fff5e5; color: #865118; }
.live-price-badge.sandbox { background: #eef1f6; color: #4b5a6b; }
.live-price-error { color: #9b2c1f; font-size: 12px; }
.live-price-breaks { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.live-price-breaks th, .live-price-breaks td { padding: 2px 10px 2px 0; text-align: right; }
.live-price-breaks th:first-child, .live-price-breaks td:first-child { text-align: left; }
.live-price-breaks tr.mine td { font-weight: 700; }

/* Guided path side sheet: the canvas stays visible and updates as the buyer answers. */
.guided { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); display: grid; grid-template-rows: auto auto 1fr auto; background: #fff; border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(20, 40, 60, .12); }
.guided[hidden] { display: none; }
.guided header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 6px; border: 0; flex-wrap: nowrap; }
.guided header small { color: #6a7b88; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.guided header h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.01em; }
.guided-close { border: 0; background: none; font-size: 26px; line-height: 1; color: #6a7b88; cursor: pointer; padding: 4px 8px; }
.guided-steps { display: flex; gap: 4px; margin: 0; padding: 4px 20px 12px; list-style: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
.guided-steps li { flex: 0 0 auto; }
.guided-steps button { line-height: 1.3; border: 0; background: #eef3f6; color: #4e606d; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.guided-steps .current button { background: var(--blue); color: #fff; }
.guided-steps .done button { background: #dceaf2; color: var(--blue); }
.guided-steps button:disabled { opacity: .45; cursor: default; }
.guided-body { overflow-y: auto; padding: 16px 20px 24px; outline: none; display: grid; gap: 14px; align-content: start; }
.guided-lead { margin: 0; color: #3b4d5a; line-height: 1.45; }
.guided-note { margin: 0; color: #6a7b88; font-size: 12.5px; line-height: 1.45; }
.guided-grid { display: grid; gap: 8px; }
.guided-grid.two { grid-template-columns: 1fr 1fr; }
.guided-card { position: relative; display: grid; gap: 3px; align-content: start; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, box-shadow .12s, transform .12s; }
.guided-card:hover { border-color: #9fb6c5; }
.guided-card:active { transform: scale(.99); }
.guided-card.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(25, 95, 135, .18); }
.guided-card strong { font-size: 15px; }
.guided-card span { color: #3b4d5a; font-size: 13px; line-height: 1.4; }
.guided-card small { color: #6a7b88; font-size: 12px; font-variant-numeric: tabular-nums; }
.guided-badge { justify-self: start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e6f1ea; color: #22603f; }
.guided-card .guided-badge { position: absolute; top: 10px; right: 10px; }
.guided-badge.indicative, .guided-badge.review { background: #fff5e5; color: #865118; }
.guided-badge.sandbox { background: #eef1f6; color: #4b5a6b; }
.guided-alt { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.guided-alt a, .guided .link { color: var(--blue); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.guided-units, .guided-kind, .guided-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.guided-units button, .guided-kind button, .guided-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.guided-units button[aria-pressed="true"], .guided-kind button[aria-pressed="true"], .guided-chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.guided-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guided-fields label, .guided-fieldset label { display: grid; gap: 4px; font-size: 13px; color: #3b4d5a; }
.guided input, .guided select { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; }
.guided-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; display: grid; gap: 8px; margin: 0; }
.guided-fieldset legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.guided-fieldset small { color: #6a7b88; font-size: 12px; }
.guided-warn { margin: 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.guided-warn.stop { background: #fdecea; color: #8a2a1d; }
.guided-warn.info { background: #fff5e5; color: #865118; }
.guided-price { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: #f3f8fb; }
.guided-price strong { font-size: 34px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.guided-price span { font-size: 13.5px; color: #3b4d5a; }
.guided-tip { color: #22603f !important; font-weight: 600; }
.guided-breaks { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.guided-breaks th, .guided-breaks td { padding: 5px 14px 5px 0; text-align: right; }
.guided-breaks th:first-child, .guided-breaks td:first-child { text-align: left; }
.guided-breaks tbody tr { cursor: pointer; }
.guided-breaks tbody tr:hover td { color: var(--blue); }
.guided-breaks tr.mine td { font-weight: 700; }
.guided-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.guided footer { display: flex; justify-content: space-between; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fbfcfd; }
.guided button.primary, .guided-actions .primary { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.guided footer button, .guided-actions button { font: inherit; font-size: 14px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.guided footer button:disabled { opacity: .45; cursor: default; }
#guided-open { font: inherit; }
@media (min-width: 901px) { body.guided-open { padding-right: 460px; } }
@media (max-width: 900px) { .guided { width: 100vw; border-left: 0; } .guided-fields { grid-template-columns: 1fr; } .guided-grid.two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .guided-card { transition: none; } }
/* Account controls */
.account-slot { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.account-slot .account-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.account-slot .account-signin { font: inherit; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.account-status { font-size: 12.5px; color: #22603f; align-self: center; }
#account-save, #account-draft { font: inherit; }
.live-price-badge.custom, .guided-badge.custom { background: #fff5e5; color: #865118; }

/* Kits */
#kit-open { font: inherit; }
.kit-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kit-parts li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.kit-parts li div { display: grid; }
.kit-parts small { color: #6a7b88; font-size: 12px; }
.kit-qty { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6a7b88; }
.kit-qty input { width: 64px; padding: 4px 6px; font-size: 14px; }
.kit-layout { width: 100%; height: auto; border-radius: 8px; background: #f3f6f8; }
.kit-layout .blank { fill: #e6ecf0; }
.kit-layout .usable { fill: #f8fafb; stroke: #c3cfd8; stroke-dasharray: 12 8; stroke-width: 3; }
.kit-layout .part { fill-opacity: .22; stroke-width: 4; }
.kit-layout .label { font: 600 34px "Helvetica Neue", Arial, sans-serif; fill: #21313d; text-anchor: middle; dominant-baseline: middle; }
@media (max-width: 900px) { .kit-parts li { grid-template-columns: 1fr auto; } }
.kit-panel { margin: 0 0 8px; } .kit-panel figcaption { font-size: 12px; color: #6a7b88; }

/* Mount a component */
#mount-open { font: inherit; }
.guided-price.fit .fit-size { font-size: 22px; }
.guided-price.fit small { color: #6a7b88; font-size: 12px; }
.mount-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.guided textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
