/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --ink:    #15171c;
  --steel:  #2b2f38;
  --paper:  #fbfaf6;
  --panel:  #e7e4dc;
  --panel2: #d8d4c8;
  --border: #b7b3a6;
  --accent: #d4640f;
  --accent2:#b9540a;
  --go:     #2f7d3a;
  --go2:    #266530;
  --lib:    #c89a28;
  --lib2:   #a87e18;
  --dim:    #1f4fa8;
  --err:    #b8341f;
  --muted:  #5c5e63;
  --seg-off:#efece3;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body / global background ───────────────────────────────────────────────── */
body {
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(0,0,0,.03) 39px 40px),
    repeating-linear-gradient(0deg,  transparent 0 39px, rgba(0,0,0,.03) 39px 40px),
    linear-gradient(160deg, #3a3f49, #23262e 60%, #191b21);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  min-height: 100vh;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
header {
  background: linear-gradient(180deg, #3a3f49, #2b2f38);
  border-bottom: 2px solid var(--accent);
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
  height: 50px;
}
.logo-mark {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.logo-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: .03em;
  line-height: 1.2;
}
.logo-sub {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a8d93;
}
.header-link {
  color: #8a8d93;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid #454b57;
  border-radius: 3px;
  transition: all .12s;
}
.header-link:hover { color: var(--paper); border-color: var(--accent); }

/* ── Part tabs ───────────────────────────────────────────────────────────────── */
.part-tabs {
  background: var(--steel);
  display: flex;
  gap: 0;
  padding: 8px 12px 0;
  border-bottom: 1px solid #0c0d11;
  height: 42px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #454b57 transparent;
  flex-shrink: 0;
}
.tab-btn {
  padding: 6px 15px;
  border: 1px solid #454b57;
  border-bottom: none;
  background: #374049;
  color: #7a7d85;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: all .12s;
  margin-right: 2px;
}
.tab-btn:hover { background: #454b57; color: var(--paper); }
.tab-btn.active {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--border);
  border-bottom-color: var(--panel);
}

/* ── Customer panel ──────────────────────────────────────────────────────────── */
.customer-panel {
  background: var(--panel);
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
}
.cust-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 34px;
  cursor: pointer;
  user-select: none;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.025) 0 5px, transparent 5px 10px);
  border-bottom: 1px solid var(--border);
}
.cust-bar:hover { background: var(--panel2); }
.cust-bar-left { display: flex; align-items: center; gap: 8px; }
.cust-status-icon { font-size: 13px; }
.cust-bar-title {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
}
.cust-bar-summary {
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.cust-edit-hint {
  font-size: 9px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.customer-panel.ready .cust-status-icon { color: var(--go); }
.customer-panel.ready .cust-edit-hint   { color: var(--muted); }
.customer-panel:not(.ready) .cust-status-icon { color: var(--lib); }
.customer-panel:not(.ready) .cust-edit-hint   { color: var(--lib); }
.req { color: var(--err); font-size: 11px; }

.cust-form {
  padding: 10px 16px 12px;
  display: none;
}
.cust-form.open { display: block; }
.cust-note {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: var(--lib); margin-bottom: 8px;
  text-transform: uppercase;
}
.cust-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cust-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 140px;
}
.cust-field label {
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.cust-field input {
  height: 28px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--paper); color: var(--ink);
  font-size: 12px;
}
.cust-field input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* ── Workspace layout ────────────────────────────────────────────────────────── */
.workspace {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 92px - var(--cust-h, 34px));
  overflow: hidden;
}

/* ── Left: form panel ────────────────────────────────────────────────────────── */
.form-panel {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 12px rgba(0,0,0,.2);
}
.part-form { display: flex; flex-direction: column; flex: 1; }

.form-section {
  border-bottom: 1px solid var(--border);
}
.phead {
  padding: 7px 14px;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 6px, transparent 6px 12px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--steel);
}
.fields {
  padding: 12px 14px;
}

/* ── Fields ─────────────────────────────────────────────────────────────────── */
.field { margin-bottom: 10px; }
.field:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 5px;
}
.unit-hint {
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 3px;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 7px 9px;
  border-radius: 3px;
  font-size: 13px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,100,15,.15);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235c5e63'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 28px;
}

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

/* ── Segmented controls ──────────────────────────────────────────────────────── */
.seg {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.seg.wrap { flex-wrap: wrap; }
.seg button {
  flex: 1;
  min-width: 0;
  padding: 7px 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--seg-off);
  color: var(--muted);
  cursor: pointer;
  transition: background .1s, color .1s;
  line-height: 1.3;
  text-align: center;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { background: #e0ddd4; color: var(--ink); }
.seg button.on  { background: var(--steel); color: var(--paper); }

/* ── Priority row ────────────────────────────────────────────────────────────── */
.priority-section {
  margin-top: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0 6px, transparent 6px 12px);
}
.priority-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.priority-row input[type="checkbox"] {
  width: auto;
  height: 15px;
  accent-color: var(--lib);
}
.priority-label { font-size: 11px; font-weight: 700; color: var(--ink); }
.priority-hint  { font-size: 10px; color: var(--lib); font-weight: 700; }
.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.qty-row .field-label { font-size: 11px; font-weight: 700; color: var(--ink); }

/* ── Right side: preview panel ──────────────────────────────────────────────── */
.preview-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Dark stage containing the SVG */
.stage {
  flex: 1;
  background: #1c1e24;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.stage-label {
  position: absolute;
  top: 10px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5c5e63;
  pointer-events: none;
}
.preview-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--go);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}

/* preview-area is inside the stage */
.preview-area {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-area svg {
  max-width: 100%;
  max-height: 100%;
  height: auto;   /* with the drawing's viewBox: a narrow screen scales the drawing, it does not crop it */
  border-radius: 2px;
  box-shadow: 0 6px 24px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4);
}
.preview-placeholder {
  color: #5c5e63;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.preview-gate {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; text-align: center; padding: 20px;
}
.preview-gate-title {
  font-size: 13px; font-weight: 800; color: var(--accent);
  letter-spacing: .1em; text-transform: uppercase;
}
.preview-gate-hint {
  font-size: 11px; color: #5c5e63; letter-spacing: .04em; line-height: 1.6;
}

/* ── Quote panel ─────────────────────────────────────────────────────────────── */
.quote-panel {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-top: 1px solid var(--border);
  padding: 10px 18px;
  box-shadow: 0 -3px 10px rgba(0,0,0,.2);
}
.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 0;
}
.quote-label {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.quote-val {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Courier New', 'Courier', monospace;
  color: var(--ink);
}
.quote-subtotal {
  border-top: 1px solid var(--border);
  margin-top: 5px;
  padding-top: 5px;
}
.quote-total {
  border-top: 2px solid var(--accent);
  margin-top: 4px;
  padding-top: 5px;
}
.quote-total .quote-val { font-size: 17px; color: var(--go); font-weight: 800; }
.priority-price { color: var(--lib) !important; }
.quote-gst-line { opacity: 0.7; }
.quote-gst-line .quote-val { font-size: 11px; }
.quote-incl {
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  padding-top: 4px;
}
.quote-incl .quote-val { font-size: 15px; color: var(--ink); font-weight: 800; }
.quote-meta {
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.7;
}
.quote-meta a { color: var(--ink); font-weight: 700; }
/* the "ring us" reminder for a thickness priced by phone: read at a glance, links big enough for a thumb */
.quote-meta .ring-us { display: block; font-size: 13px; letter-spacing: 0; line-height: 1.5; color: var(--ink); }
.quote-meta .ring-us a { display: inline-block; padding: 10px 0; }

/* Parts per sheet, under the price. Read as a note, not as a price: the page's own muted ink at a size a phone
   can read; the "needs 2 sheets" line is marked by weight and the ink colour, never by an alarm colour. Empty
   until there is a price, and it wraps rather than cutting off. */
.quote-sheet { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.quote-sheet:empty { display: none; }
.quote-sheet .more-sheets { display: block; color: var(--ink); font-weight: 700; }

/* ── Action bar ───────────────────────────────────────────────────────────────── */
.action-bar {
  background: var(--steel);
  border-top: 2px solid #0c0d11;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,.35);
}
.save-row { display: flex; gap: 6px; flex: 1; min-width: 220px; align-items: center; }
.save-input {
  flex: 1;
  background: #374049;
  border: 1px solid #454b57;
  color: var(--paper);
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 12px;
  outline: none;
  width: auto;
  appearance: none;
  -webkit-appearance: none;
}
.save-input::placeholder { color: #5c5e63; }
.save-input:focus { border-color: var(--accent); }
.action-bar select {
  background: #374049;
  border: 1px solid #454b57;
  color: var(--paper);
  padding: 7px 26px 7px 9px;
  border-radius: 3px;
  font-size: 11px;
  outline: none;
  width: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a8d93'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .1s, transform .08s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn:active { transform: scale(.97); }
.btn.go  { background: var(--go);   color: #fff; }
.btn.go:hover  { background: var(--go2); }
.btn.lib { background: var(--lib);  color: #fff; }
.btn.lib:hover { background: var(--lib2); }
.btn-primary, .btn.primary { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn.primary:hover { background: var(--accent2); }
.btn.ghost { background: #efece3; color: var(--steel); border: 1px solid var(--border); }
.btn.ghost:hover { background: #e0ddd4; }

/* ── Action bar rows ─────────────────────────────────────────────────────────── */
.accept-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.accept-btn {
  background: #6b5c2e;
  color: #f5e6b0;
  border: 1px solid #8a7440;
}
.accept-btn:hover { background: #7d6c35; }
.accept-btn.accepted {
  background: var(--go);
  color: #fff;
  border-color: var(--go2);
}
.accept-btn.accepted:hover { background: var(--go2); }
.accept-hint {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.download-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn.go-outline {
  background: transparent;
  color: var(--go);
  border: 1px solid var(--go);
}
.btn.go-outline:hover { background: rgba(76,175,80,.12); }
.btn.locked {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Admin / section cards ─────────────────────────────────────────────────── */
.section-card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.5);
  overflow: hidden;
}
.section-card .card-head {
  padding: 9px 16px;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 6px, transparent 6px 12px);
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--steel);
}
.section-card .card-body { padding: 16px; }

/* ── Admin page specifics ─────────────────────────────────────────────────── */
.speed-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.speed-table th {
  background: rgba(0,0,0,.05);
  color: var(--muted);
  padding: 5px 8px;
  text-align: left;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
}
.speed-table td { padding: 4px 6px; border-bottom: 1px solid rgba(0,0,0,.06); }
.speed-table input {
  width: 62px;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 12px;
}
.disclaimer {
  font-size: 11px;
  color: #6b4f00;
  background: #fdf6e3;
  border: 1px solid #e8c870;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}
.back-link:hover { color: var(--ink); }
.save-btn-wrap { text-align: right; margin-top: 20px; }

/* ── Toast ───────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--steel);
  border: 1px solid #4a9e5c;
  color: #4a9e5c;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.toast.error { border-color: var(--err); color: var(--err); }
.toast.show  { display: block; }

.hidden { display: none !important; }

/* ── Site nav (public pages) ───────────────────────────────────────────────── */
.site-nav {
  background: linear-gradient(180deg, #3a3f49, #2b2f38);
  border-bottom: 2px solid var(--accent);
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
  position: relative;
  z-index: 200;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  font-size: 22px; font-weight: 900;
  color: var(--accent); letter-spacing: -1px; line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.nav-brand-name {
  font-size: 14px; font-weight: 700;
  color: var(--paper); letter-spacing: .03em; line-height: 1.2;
}
.nav-brand-sub {
  display: block; font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: #8a8d93;
}
.nav-toggle {
  background: none; border: 1px solid #454b57;
  border-radius: 3px; padding: 7px 9px;
  cursor: pointer; display: flex; flex-direction: column;
  gap: 4px; align-items: center; transition: border-color .12s;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: #8a8d93; border-radius: 1px; transition: background .12s;
}
.nav-toggle:hover span { background: var(--paper); }
/* dropdown */
.nav-drop {
  display: none;
  position: absolute;
  top: 52px; left: 0; right: 0;
  background: #23262e;
  border-bottom: 2px solid #0c0d11;
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
  z-index: 190;
}
.nav-drop.open { display: block; }
.nav-drop-link {
  display: block;
  padding: 13px 22px;
  color: #8a8d93; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .03em;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: all .1s;
  border-left: 3px solid transparent;
}
.nav-drop-link:hover  { color: var(--paper); background: rgba(255,255,255,.04); border-left-color: var(--accent); padding-left: 19px; }
.nav-drop-link.active { color: var(--accent); border-left-color: var(--accent); padding-left: 19px; background: rgba(212,100,15,.06); }
.nav-drop-link small  { display: block; font-size: 10px; color: #5c5e63; font-weight: 400; margin-top: 1px; letter-spacing: .04em; }

/* ── Public page shell ─────────────────────────────────────────────────────── */
.pub-body { overflow: auto; }

/* hero */
.hero {
  padding: 72px 24px 64px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.hero-mark {
  font-size: 56px; font-weight: 900; color: var(--accent);
  letter-spacing: -3px; line-height: 1;
  text-shadow: 0 2px 12px rgba(212,100,15,.35);
}
.hero-title {
  font-size: 32px; font-weight: 800; color: var(--paper);
  letter-spacing: .02em; line-height: 1.15;
}
.hero-sub {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: #8a8d93; font-weight: 600;
}
.hero-desc {
  font-size: 15px; color: #a8aab0; max-width: 500px;
  line-height: 1.7; font-weight: 400;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-btn-primary {
  padding: 13px 30px; background: var(--accent); color: #fff;
  border: none; border-radius: 3px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  text-decoration: none; display: inline-block; transition: background .12s, transform .08s;
}
.hero-btn-primary:hover { background: var(--accent2); }
.hero-btn-ghost {
  padding: 13px 30px; background: transparent; color: var(--paper);
  border: 1px solid #454b57; border-radius: 3px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  text-decoration: none; display: inline-block; transition: all .12s;
}
.hero-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* caps strip */
.caps-strip {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.cap-item {
  padding: 16px 24px;
  border-right: 1px solid var(--border);
}
.cap-item:last-child { border-right: none; }
.cap-label {
  font-size: 9px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.cap-value {
  font-size: 13px; color: var(--ink); line-height: 1.7; font-weight: 500;
}

/* parts grid */
.parts-section {
  padding: 40px 24px;
  text-align: center;
}
.parts-section-title {
  font-size: 10px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: #5c5e63; margin-bottom: 22px;
}
.parts-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; max-width: 640px; margin: 0 auto;
}
.part-chip {
  background: var(--steel); border: 1px solid #454b57;
  color: #a8aab0; padding: 7px 16px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  transition: all .12s; text-decoration: none; cursor: default;
}

/* cta strip */
.cta-strip {
  background: var(--accent);
  padding: 32px 24px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cta-strip-title {
  font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .02em;
}
.cta-strip-sub {
  font-size: 12px; color: rgba(255,255,255,.75); letter-spacing: .06em; text-transform: uppercase;
}
.cta-strip-btn {
  padding: 12px 28px; background: #fff; color: var(--accent);
  border: none; border-radius: 3px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  text-decoration: none; display: inline-block; transition: opacity .12s;
}
.cta-strip-btn:hover { opacity: .88; }

/* pub footer */
.pub-footer {
  background: #191b21; border-top: 1px solid #0c0d11;
  padding: 18px 24px; text-align: center;
  font-size: 10px; color: #454b57;
  letter-spacing: .08em; text-transform: uppercase;
}

/* discuss / contact form */
.pub-page-wrap {
  max-width: 720px; margin: 0 auto; padding: 40px 24px 60px;
}
.pub-page-title {
  font-size: 28px; font-weight: 800; color: var(--paper);
  margin-bottom: 6px; letter-spacing: .01em;
}
.pub-page-sub {
  font-size: 12px; color: #8a8d93; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 28px;
}
.contact-card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.contact-card-head {
  padding: 9px 18px;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 6px, transparent 6px 12px);
  border-bottom: 1px solid var(--border);
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 800; color: var(--steel);
}
.contact-fields {
  padding: 20px 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.contact-field { display: flex; flex-direction: column; gap: 4px; }
.contact-field.full { grid-column: 1 / -1; }
.contact-field label {
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0;
}
.contact-field input,
.contact-field textarea {
  background: var(--paper); border: 1px solid var(--border);
  color: var(--ink); padding: 9px 10px; border-radius: 3px;
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .12s, box-shadow .12s;
  width: 100%;
}
.contact-field textarea { resize: vertical; min-height: 110px; }
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,100,15,.15);
}
.contact-submit-row {
  padding: 0 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.contact-note {
  flex: 1; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.contact-note.ready { color: var(--go); }
.contact-btn {
  padding: 11px 26px; background: var(--accent); color: #fff;
  border: none; border-radius: 3px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background .12s; white-space: nowrap;
}
.contact-btn:hover:not(:disabled) { background: var(--accent2); }
.contact-btn:disabled { opacity: .38; cursor: not-allowed; }
.contact-success {
  padding: 28px; text-align: center;
  background: linear-gradient(160deg, rgba(47,125,58,.08), transparent);
}
.contact-success-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--go); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; margin: 0 auto 14px;
}
.contact-success-title { font-size: 16px; font-weight: 800; color: var(--go); margin-bottom: 4px; }
.contact-success-ref   { font-family: 'Courier New', monospace; font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .05em; }
.contact-success-msg   { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* quote page overrides */
.quote-body { overflow: auto; }
.quote-workspace {
  display: grid; grid-template-columns: 380px minmax(0, 1fr);
  min-height: calc(100vh - 94px);
}
.quote-form-panel {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  box-shadow: 4px 0 12px rgba(0,0,0,.2);
  position: sticky; top: 94px;
  height: calc(100vh - 94px); overflow-y: auto;
}
.quote-right { display: flex; flex-direction: column; }
.quote-stage {
  flex: 1; min-height: 300px; background: #1c1e24;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; position: relative; overflow: hidden;
}
/* customer fields on quote page */
.quote-cust-card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-top: 1px solid var(--border);
}
.quote-cust-fields {
  padding: 12px 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;   /* 0: the boxes shrink with a narrow column (761–821 px screens scrolled sideways) */
}
.quote-cust-field { display: flex; flex-direction: column; gap: 4px; }
.quote-cust-field.full { grid-column: 1 / -1; }
.quote-cust-field label {
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0;
}
.quote-cust-field input {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 3px;
  background: var(--paper); color: var(--ink); font-size: 13px;
}
.quote-cust-field input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
/* submit bar on quote page */
.quote-submit-bar {
  background: var(--steel); border-top: 2px solid #0c0d11;
  padding: 13px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -2px 8px rgba(0,0,0,.35);
}
.quote-submit-note {
  flex: 1; font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--lib);
}
.quote-submit-note.ready { color: var(--go); }
.quote-submit-btn {
  padding: 11px 26px; background: var(--accent); color: #fff;
  border: none; border-radius: 3px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background .12s, transform .08s, opacity .12s; white-space: nowrap;
}
.quote-submit-btn:hover:not(:disabled) { background: var(--accent2); }
.quote-submit-btn:active:not(:disabled) { transform: scale(.97); }
.quote-submit-btn:disabled { opacity: .4; cursor: not-allowed; }
/* success overlay on quote page */
.quote-success-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20,22,28,.88); z-index: 500;
  align-items: center; justify-content: center;
}
.quote-success-overlay.show { display: flex; }
.quote-success-card {
  background: linear-gradient(160deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: 6px;
  padding: 36px 40px; max-width: 460px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.quote-success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--go); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; margin: 0 auto 16px;
}
.quote-success-title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.quote-success-ref   { font-family: 'Courier New', monospace; font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .06em; margin-bottom: 12px; }
.quote-success-body  { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 18px; }
.quote-success-summary {
  background: var(--paper); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 16px; font-size: 12px; text-align: left; margin-bottom: 22px; line-height: 1.9;
}
.quote-success-summary strong { color: var(--ink); }
.quote-success-reset {
  background: var(--accent); color: #fff; border: none;
  padding: 10px 24px; border-radius: 3px; font-size: 10px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.quote-success-reset:hover { background: var(--accent2); }

/* shown on a phone only: on desktop the drawing is above the card, not below */
.cust-intro { display: none; margin: 0; padding: 12px 18px 0; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--ink); }
@media (max-width: 760px) {
  .caps-strip          { grid-template-columns: 1fr; }
  .cap-item            { border-right: none; border-bottom: 1px solid var(--border); }
  .cap-item:last-child { border-bottom: none; }
  .quote-workspace     { grid-template-columns: minmax(0, 1fr); }   /* 0, not auto: the column is the screen, never its widest child */
  .quote-form-panel    { position: static; height: auto; overflow-y: visible; }
  /* phone: Your Details (the unlock) comes first, then the part form */
  .quote-right         { display: contents; }
  #quote-cust-card, #cust-captured-bar { order: -1; }
  .cust-intro          { display: block; }
  .quote-cust-fields   { grid-template-columns: 1fr; }
  .quote-cust-field.full { grid-column: 1; }
  .contact-fields      { grid-template-columns: 1fr; }
  .contact-field.full  { grid-column: 1; }
  /* phone, public quote page only (/tool shares these classes): every part tab on the screen — three across, finger-sized — instead of a row that scrolls sideways */
  .quote-body .part-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; height: auto; padding: 8px; overflow-x: visible; }
  .quote-body .tab-btn { min-height: 44px; padding: 6px 4px; margin-right: 0; border-bottom: 1px solid #454b57; border-radius: 4px; }
  .quote-stage         { padding: 26px 8px 8px; }   /* top: clear of the "Live preview" tag */
}
/* phone, public quote page: the 520-wide drawing is scaled down to the screen, so its figures are drawn larger
   (CSS outranks the SVG's own font-size). Above 560 px the drawing is full size and keeps its own figures. */
@media (max-width: 560px) {
  .quote-body .preview-area svg text { font-size: 17px; }
}

/* ── Order / Enquire Panel (kept for reference) ────────────────────────────── */
.oep-panel {
  background: var(--panel);
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
}
.oep-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 34px;
  cursor: pointer;
  user-select: none;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.025) 0 5px, transparent 5px 10px);
  border-bottom: 1px solid transparent;
  transition: background .1s;
}
.oep-bar:hover { background: var(--panel2); }
.oep-panel.open .oep-bar { border-bottom-color: var(--border); }
.oep-bar-left  { display: flex; align-items: center; gap: 8px; }
.oep-icon {
  font-size: 15px; font-weight: 900;
  color: var(--accent); line-height: 1;
}
.oep-bar-title {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
}
.oep-bar-status { font-size: 11px; color: var(--muted); font-weight: 500; }
.oep-hint {
  font-size: 9px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
}
.oep-body { display: none; }
.oep-panel.open .oep-body { display: block; }
.oep-inner {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oep-mode-row .seg { }
.oep-field-label {
  display: block;
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px;
}
.oep-textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.oep-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,100,15,.15);
}
.oep-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.oep-action-note {
  flex: 1;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
  transition: color .15s;
}
.oep-action-note.ready { color: var(--go); }
.oep-submit-btn {
  background: var(--accent);
  color: #fff;
  padding: 9px 22px;
  font-size: 10px; font-weight: 800; letter-spacing: .09em;
}
.oep-submit-btn:hover:not(:disabled) { background: var(--accent2); }
.oep-submit-btn:disabled { opacity: .38; cursor: not-allowed; }
/* success inline */
.oep-success {
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(47,125,58,.08), transparent);
  border-top: 1px solid rgba(47,125,58,.2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.oep-success-check {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--go); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; flex-shrink: 0;
}
.oep-success-text { flex: 1; }
.oep-success-title {
  font-size: 12px; font-weight: 800; color: var(--go); letter-spacing: .04em;
}
.oep-success-ref {
  font-family: 'Courier New', monospace;
  font-size: 11px; color: var(--accent); font-weight: 700;
  letter-spacing: .05em; margin-top: 1px;
}
.oep-success-msg { font-size: 11px; color: var(--muted); margin-top: 1px; }
.oep-success-reset {
  background: none; border: 1px solid var(--border);
  color: var(--muted); padding: 5px 12px;
  border-radius: 3px; font-size: 9px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; flex-shrink: 0;
}
.oep-success-reset:hover { border-color: var(--accent); color: var(--accent); }

/* ── quote page: delivery section divider ─────────────────────────────────── */
.quote-cust-section-head {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin: 14px 0 6px; padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── add-to-order bar ────────────────────────────────────────────────────── */
.quote-add-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--panel2);
  border-top: 1px solid var(--border);
}
.quote-add-btn {
  background: var(--accent); color: #fff; border: none;
  padding: 8px 18px; border-radius: 4px; font-size: 12px;
  font-weight: 700; letter-spacing: .06em; cursor: pointer;
  white-space: nowrap; transition: background .15s, opacity .15s;
}
.quote-add-btn:hover:not(:disabled) { background: #b8530c; }
.quote-add-btn:disabled { opacity: .45; cursor: not-allowed; }
.quote-add-note {
  font-size: 11px; color: var(--muted); letter-spacing: .03em;
}

/* ── order cart ──────────────────────────────────────────────────────────── */
.quote-cart {
  border-top: 2px solid var(--accent);
  background: var(--paper);
}
.quote-cart-head {
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  padding: 10px 16px 6px;
}
.cart-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 16px; border-bottom: 1px solid var(--border);
}
.cart-item:last-of-type { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-label {
  font-size: 11px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-price { font-size: 11px; color: var(--muted); margin-top: 1px; }
.cart-item-remove {
  background: none; border: 1px solid var(--border); color: var(--muted);
  width: 22px; height: 22px; border-radius: 3px; font-size: 14px;
  line-height: 1; cursor: pointer; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.cart-item-remove:hover { border-color: #c0392b; color: #c0392b; }
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px 10px; font-size: 11px; font-weight: 700;
  color: var(--ink); border-top: 1px solid var(--border);
  background: var(--panel2);
}

/* ── unlock bar ──────────────────────────────────────────────────────────── */
.quote-unlock-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--border);
}
.unlock-btn {
  background: var(--accent); color: #fff; border: none;
  padding: 9px 20px; border-radius: 4px; font-size: 12px;
  font-weight: 700; letter-spacing: .06em; cursor: pointer;
  white-space: nowrap; transition: background .15s, opacity .15s;
  flex-shrink: 0;
}
.unlock-btn:hover:not(:disabled) { background: #b8530c; }
.unlock-btn:disabled { opacity: .45; cursor: not-allowed; }
.unlocked-badge {
  padding: 9px 16px 11px; font-size: 11px; font-weight: 700;
  color: #1e7e2f; background: #eaf7ec; border-top: 1px solid #c3e6cb;
  letter-spacing: .04em; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.cust-done-btn {
  background: none; border: 1px solid #8fcba0; border-radius: 3px;
  color: #1e7e2f; font-size: 10px; font-weight: 700; letter-spacing: .05em;
  cursor: pointer; padding: 4px 10px; white-space: nowrap; flex-shrink: 0;
  transition: all .12s;
}
.cust-done-btn:hover { background: #d4f0da; }

/* ── submit bar (order breakdown) ────────────────────────────────────────── */
.quote-submit-bar {
  display: block;   /* breakdown above, note + button below — side by side they were wider than a phone and the draw column */
  padding: 0; background: var(--panel);
  border-top: 2px solid var(--border);
}
.submit-breakdown {
  padding: 10px 16px 8px; border-bottom: 1px solid var(--border);
}
.submit-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--ink); padding: 2px 0; gap: 12px;
}
.submit-total-row {
  font-weight: 800; font-size: 13px;
  margin-top: 4px; padding-top: 6px;
  border-top: 1px solid var(--border);
}
.submit-bar-action {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px 12px;
}

/* ── Custom Draw Tab ──────────────────────────────────────────────────────── */
.tab-btn--draw {
  background: #2a3a2a; color: #6a9e6a; border-color: #3a5a3a;
  letter-spacing: .03em;
}
.tab-btn--draw:hover { background: #2f4a2f; color: #7aba7a; }
.tab-btn--draw.active { background: var(--panel); color: #4aae4a; border-bottom-color: var(--panel); }

.draw-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px 6px; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.15);
}
.draw-tools {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.draw-tool-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 4px; cursor: pointer; border: 1px solid var(--border);
  background: var(--panel2); color: var(--muted); font-size: 11px; font-weight: 600;
  transition: all .12s;
}
.draw-tool-btn:hover { background: var(--panel); color: var(--paper); }
.draw-tool-btn.on {
  background: #1a4a2a; color: #5dda7a; border-color: #2a7a3a;
}
.draw-actions {
  display: flex; gap: 4px; flex-wrap: wrap; margin-left: 6px;
}
.draw-act-btn {
  padding: 5px 9px; border-radius: 4px; cursor: pointer; border: 1px solid var(--border);
  background: var(--panel2); color: var(--muted); font-size: 11px; font-weight: 600;
  transition: all .12s;
}
.draw-act-btn:hover { background: var(--panel); color: var(--paper); }

.draw-grid-ctrl {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted); margin-left: auto;
}
.draw-grid-ctrl select {
  padding: 3px 6px; font-size: 11px;
  background: var(--panel2); border: 1px solid var(--border); color: var(--ink);
  border-radius: 3px;
}

.draw-canvas {
  display: block; width: 100%; height: 440px;
  cursor: crosshair; touch-action: none;
}
.draw-tool-btn[data-tool="select"] ~ canvas,
body.tool-select .draw-canvas { cursor: default; }

.draw-info-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 12px; background: rgba(0,0,0,.18); border-bottom: 1px solid var(--border);
  min-height: 26px;
}
.draw-info-text { font-size: 11px; color: var(--muted); }
.draw-coords { font-size: 10px; color: #555; font-family: monospace; white-space: nowrap; }
.draw-warn { color: #e6a020; font-size: 11px; margin-left: 8px; }

.draw-tips {
  padding: 6px 12px; font-size: 10px; color: #555;
  line-height: 1.5; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.08);
}

/* ── Draw mode — wide canvas layout ─────────────────────────────────────── */
.quote-workspace.draw-mode {
  grid-template-columns: 1fr 300px;
}
.quote-workspace.draw-mode .quote-form-panel {
  width: auto; min-width: 0;
}
.quote-workspace.draw-mode .draw-canvas {
  height: calc(100vh - 94px - 285px);
  min-height: 260px;
}
/* phone: one column, or the canvas is squeezed beside a 300px column */
@media (max-width: 760px) { .quote-workspace.draw-mode { grid-template-columns: minmax(0, 1fr); } }

/* ── Segment editor popup ────────────────────────────────────────────────── */
.draw-seg-editor {
  position: fixed; z-index: 300;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
  padding: 0 0 8px; width: 210px;
  font-size: 12px;
}
.draw-seg-ed-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.draw-seg-ed-close {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px;
}
.draw-seg-ed-close:hover { color: var(--ink); }
.draw-seg-ed-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px 0;
}
.draw-seg-ed-row label {
  width: 44px; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); flex-shrink: 0;
}
.draw-seg-ed-row input[type="number"] {
  flex: 1; height: 30px; padding: 0 8px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 3px; color: var(--ink); font-size: 13px;
  text-align: right;
}
.draw-seg-ed-row input[type="number"]:focus {
  outline: 2px solid var(--accent); border-color: var(--accent);
}
.draw-seg-ed-unit {
  width: 18px; font-size: 10px; color: var(--muted); text-align: left;
}
.draw-seg-ed-hint {
  padding: 5px 10px 0;
  font-size: 10px; color: #555; line-height: 1.3;
}

/* ── Post-unlock compact customer summary bar ────────────────────────────── */
.cust-captured-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  background: var(--panel);
  border-top: 1px solid var(--border);
  gap: 10px;
}
.cust-captured-name {
  font-size: 12px; color: var(--go); font-weight: 600; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cust-edit-btn {
  background: none; border: 1px solid var(--border); border-radius: 3px;
  color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em;
  cursor: pointer; padding: 4px 10px; white-space: nowrap; flex-shrink: 0;
  transition: all .12s;
}
.cust-edit-btn:hover { color: var(--ink); border-color: var(--accent); }

/* ── touch devices: finger-sized draw controls (44px targets) ─────────────── */
@media (pointer: coarse) {
  .draw-tool-btn, .draw-act-btn { padding: 12px 14px; font-size: 13px; }
  .draw-grid-ctrl { font-size: 13px; }
  .draw-grid-ctrl select, .draw-grid-ctrl input { min-height: 42px; font-size: 14px; }
  .draw-toolbar { gap: 10px; }
}

/* ── public launch additions (04/10/2026) ─────────────────────────────────── */
@media (min-width: 761px) { .caps-strip.c4 { grid-template-columns: repeat(4, 1fr); } }
.cap-value a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.cap-value a:hover { color: var(--accent); }
.quote-cust-section-head { grid-column: 1 / -1; }
/* delivery / pickup boxes: one group inside the details grid, hidden until the drawing is unlocked */
.cust-delivery { display: contents; }
.quote-cust-card.pre-unlock .cust-delivery { display: none; }
/* the note beside Submit when only the delivery address is missing: press it to open the address boxes */
.quote-submit-note.ask-address { cursor: pointer; text-decoration: underline; }
.quote-submit-note.ask-address:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg.seg-lg button { min-height: 44px; padding: 10px 6px; font-size: 11px; }
.seg.seg-lg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cust-pickup-note { font-size: 12px; line-height: 1.5; color: var(--ink); }
.cust-privacy { margin: 0; padding: 0 18px 12px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.pub-footer-by { margin-top: 6px; font-size: 12px; letter-spacing: .02em; text-transform: none; color: #9aa0ab; }
.pub-footer-by a { display: inline-block; padding: 10px 4px; color: #f0a15e; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.pub-footer-by a:hover { color: #fff; }
