/* Part designers (/build/parts/): the drawing sheet, the fitment list, the spec; the controls reuse the builder's own
   styles (.builder .controls, .row, .seg). Road and Bench come from the site variables; print is black on white. */
.designer { grid-template-columns: minmax(0, 1fr) 360px; }
.designer .draw { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: relative; }
.designer .bike-line { margin: 0; }
.designer .stage { aspect-ratio: 16 / 9; min-height: 300px; }
.designer .stage .note { position: absolute; left: 14px; bottom: 8px; margin: 0; max-width: 70%; }
.designer .stage .nogl { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; color: var(--ink-2); }
.designer .swatches { grid-template-columns: repeat(4, 1fr); }
.designer .sheet { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
html[data-mood="bench"] .designer .sheet { background: #fff; }
.designer .sheet svg { width: 100%; height: auto; display: block; --draw-font: var(--body); }
.designer .fit h2.k, .designer .spec h2.k { margin: 0 0 8px; font-size: 12.5px; letter-spacing: .12em; }
.designer .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.designer .checks li { display: grid; grid-template-columns: 58px 1fr; gap: 2px 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.designer .checks .st { font: 600 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 0; text-align: center; border-radius: 999px; color: var(--accent-ink); margin-top: 2px; }
.designer .checks .st.pass { background: var(--ok); } .designer .checks .st.warn { background: var(--warn); } .designer .checks .st.fail { background: var(--bad); } .designer .checks .st.info { background: var(--ink-3); }
.designer .checks b { font-weight: 600; } .designer .checks .v { font-family: var(--mono); font-size: 13.5px; }
.designer .checks .t { grid-column: 2; margin: 0; font-size: 13px; color: var(--ink-2); }
.designer .summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.designer .summary dt { color: var(--ink-3); font-weight: 600; } .designer .summary dd { margin: 0; font-family: var(--mono); font-size: 13.5px; }
.designer .angles { display: flex; flex-direction: column; gap: 6px; }
.designer .row.tube { grid-template-columns: 1fr auto; }
.designer .row.tube .pair { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; }
.designer .row.tube select { padding: 6px 8px; font-size: 14px; }
.designer .controls input[type=text] { width: 100%; box-sizing: border-box; padding: 8px 10px; font-size: 15px; grid-column: 1 / -1; }
.designer .linkish { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.designer .flash { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; font-size: 13px; padding: 8px 12px; background: var(--ink); color: var(--bg); border-radius: 999px; z-index: 2; }
@media (max-width: 900px) { .designer { grid-template-columns: 1fr; } .designer .controls { position: static; max-height: none; } }
@media print {
  @page { size: A4 landscape; margin: 0; }
  :root, html[data-mood="road"], html[data-mood="bench"] { --bg: #fff; --panel: #fff; --line: #999; --ink: #000; --ink-2: #333; --ink-3: #666; --accent: #1a4d8f; --accent-ink: #fff; }
  body > *:not(main), .preview-bar, .designer-page > :not(.designer), .designer .controls, .designer .fit, .designer .spec, .designer .bike-line, .designer .stage, .designer .flash { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; margin: 0; }
  main.wrap { max-width: none; padding: 0; margin: 0; }
  .designer { display: block; margin: 0; }
  .designer .sheet { border: 0; padding: 0; background: #fff; }
  .designer .sheet svg { width: 297mm; height: 210mm; }
}
