/* Simpele Kast: cool neutral surfaces, navy selections and cobalt actions. */
.connector-placement { display: grid; gap: 8px; margin: 16px 0; }
.connector-placement button { text-align: left; padding: 12px; border: 1px solid #e3e6ef; background: #fff; border-radius: 8px; color: #151831; }
.connector-placement b { display: block; font-size: 12px; font-weight: 500; }
.connector-placement small { display: block; margin-top: 5px; font-size: 10px; color: #76819d; }
.connector-placement button.active { border-color: #3159ed; background: #f5f7ff; }
.profile-icon.wood { background: #ecdbc0; color: #a77c43; border-radius: 4px; }
.assembly-hint { max-width: 100%; border: 1px solid #e4e7ef; border-radius: 8px; padding: 8px 12px; background: #ffffffee; color: #737f9b; font-size: 10px; text-align: center; }
#preview-mount iframe { position: absolute; inset: 0; }
:root {
  font-family: Inter, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  color: #10122e;
  background: #f2f2f4;
  --ink: #10122e;
  --muted: #737887;
  --line: #dedfe6;
  --blue: #3159ed;
  --blue-hover: #2648d1;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; transition: background .15s, border-color .15s, box-shadow .15s; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; gap: 24px; background: #fafafb; border-bottom: 1px solid #e5e5eb; }
.brand { display: flex; align-items: center; gap: 6px; font-size: 21px; letter-spacing: -.9px; }
.brand b { font-weight: 600; }
.brand-icon { display: flex; margin-right: 7px; }
.brand-icon svg { width: 28px; height: 30px; }
.beta { color: #5d49ad; background: #f0ecfa; font-size: 8px; letter-spacing: .8px; border-radius: 4px; padding: 5px 6px; margin-left: 9px; }
.header-actions { display: flex; gap: 18px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.language-picker select { font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 10px; background: #fff; color: var(--ink); }
.language-picker select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 13px 18px; font-size: 12px; font-weight: 500; }
.button:hover:not(:disabled) { background: #f7f8fc; border-color: #bfc4d2; }
.button.primary { background: var(--blue); color: #fff; border-color: #2349d7; box-shadow: 0 2px 3px #1f46bb0a; }
.button.primary:hover:not(:disabled) { background: var(--blue-hover); border-color: #2648d1; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 28px; max-width: 1680px; margin: 0 auto; padding: 32px 36px; align-items: start; min-height: calc(100dvh - 82px); }
.workspace { min-width: 0; position: sticky; top: 24px; height: calc(100dvh - 146px); min-height: 570px; display: flex; flex-direction: column; }
.viewer { position: relative; flex: 1; min-height: 340px; isolation: isolate; background: #fff; border-radius: 14px; overflow: hidden; }
#preview-mount { position: absolute; inset: 0; }
#preview-mount iframe { width: 100%; height: 100%; border: 0; background: transparent; }
.preview-controls { position: absolute; top: 20px; left: 20px; right: 20px; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; pointer-events: none; }
.view-toolbar { display: flex; gap: 8px; pointer-events: auto; }
.view-toolbar button { border: 1px solid var(--line); border-radius: 6px; background: #fffffff0; color: var(--ink); font-size: 11px; padding: 10px 13px; }
.view-toolbar button:hover { background: #f5f6fb; border-color: #bfc4d2; }
.view-toolbar button:active { background: #e9ecf5; }
.preview-toggles { width: 172px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fffffff0; pointer-events: auto; }
html[lang="nl"] .preview-toggles { width: 186px; }
.preview-toggles .toggle-line { min-height: 32px; margin: 0; font-size: 11px; gap: 12px; }
.preview-toggles .toggle { flex-shrink: 0; }
.preview-annotations { position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
#preview-status { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: #fffffff5; border: 1px solid var(--line); padding: 14px 20px; border-radius: 8px; font-size: 12px; z-index: 3; max-width: 90%; line-height: 1.7; }
.viewer-caption { position: absolute; left: 22px; bottom: 22px; }
.gesture-hint { font-size: 10px; color: #858b9b; }
.settings { min-width: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 6px #12153102; border-radius: 12px; padding: 18px 25px 0; overflow: hidden; }
.step-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; background: #f6f6f9; border: 1px solid #eeeef3; border-radius: 8px; padding: 4px; margin: 0 -9px; }
.step-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #8b91a2; font-size: 10px; padding: 9px 3px; white-space: nowrap; }
.step-nav button span { display: grid; place-items: center; font-size: 8px; width: 16px; height: 16px; border: 1px solid #d9dce6; border-radius: 50%; }
.step-nav button[aria-current] { background: #fff; color: var(--ink); border-color: #d3d6e2; }
.step-nav button[aria-current] span { color: #fff; background: var(--ink); border-color: var(--ink); }
.step-nav button.complete { color: #526cab; }
.settings #design-form { padding-top: 27px; }
.settings section { padding: 24px 0; border-bottom: 1px solid #ececf1; }
.settings [data-step-panel="0"] > section { border-bottom: 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 19px; }
.section-title h2 { font-size: 17px; font-weight: 500; letter-spacing: -.35px; }
.eyebrow, .unit-label { font-size: 8px; font-weight: 500; letter-spacing: 1px; color: #8b92a4; }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 4px; }
.presets button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid #d9dce5; border-radius: 8px; font-size: 12px; padding: 15px 5px 13px; color: #7d8aa7; }
.presets button > svg { width: 31px; height: 34px; }
.presets button:hover { border-color: #8c97b1; }
.presets button.active { color: var(--ink); border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 .2px var(--ink); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dimension-fields { display: grid; gap: 15px; }
.dimension-fields .input-wrap { width: 112px; }
.dimension-fields .input-wrap input { width: 100%; }
.settings [data-step-panel="0"] > section:first-of-type { padding-top: 5px; }
.settings [data-step-panel="1"] > .layout-detail { padding-top: 5px; }
label { display: block; font-size: 12px; color: #41485e; }
input[type=number] { display: block; width: 100%; min-width: 0; padding: 12px 10px; margin-top: 9px; border: 1px solid #dfe1e8; background: #fff; border-radius: 6px; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 26px; }
.input-wrap > span { position: absolute; right: 10px; top: 14px; font-size: 9px; color: #969db0; pointer-events: none; }
.hint { font-size: 11px; color: #858b9c; line-height: 1.75; margin-top: 11px; }
.construction-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.construction-options button { background: #fff; border: 1px solid #d9dce5; border-radius: 8px; text-align: left; padding: 14px 12px; }
.construction-options button.active { border-color: var(--ink); box-shadow: inset 0 0 0 .2px var(--ink); }
.construction-options b { display: block; font-size: 12px; font-weight: 500; }
.construction-options small { display: block; font-size: 9px; color: #8590a7; line-height: 1.6; margin-top: 6px; }
.layout-detail { padding: 23px 0; }
.layout-detail > .section-title { margin-bottom: 0; }
.module-grid { display: grid; gap: 7px; margin: 17px 0 19px; max-height: 180px; overflow: auto; }
.module-grid button { position: relative; border: 1px solid #dce0eb; border-radius: 6px; background: #fafbfe; min-height: 62px; padding: 8px 2px; font-size: 11px; color: #8b96af; }
.module-grid button:before, .module-grid button:after { content: ''; position: absolute; left: 9px; right: 9px; top: 32%; border-top: 1px solid #dce1ed; }
.module-grid button:after { top: 67%; }
.module-grid button.active { border: 1px solid var(--ink); background: #f7f8fc; color: var(--ink); }
.module-grid button span { position: relative; background: #fafbfe; padding: 3px; z-index: 1; }
.module-grid button.active span { background: #f7f8fc; }
.selected-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid #ececf1; }
.selected-heading h3 { font-size: 14px; font-weight: 500; }
.selected-heading > span { font-size: 10px; color: #8791a8; }
.module-controls { display: grid; gap: 13px; margin: 4px 0 15px; }
.inline-field { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; }
.inline-field input { width: 82px; margin: 0; }
.inline-field .input-wrap > span { top: 14px; }
.apply { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 11px; color: #52658d; background: #fff; }
.opening-fields { display: grid; gap: 13px; margin-top: 20px; }
.opening-fields .input-wrap { width: 112px; }
.opening-fields output { display: block; padding: 12px 34px 12px 10px; border: 1px solid #dfe1e8; border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.material { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; min-width: 0; text-align: center; background: #fff; border: 1px solid transparent; border-radius: 8px; }
.material:hover { background: #f8f9fc; }
.swatch { display: block; width: 43px; height: 43px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #dedfe6; margin: 3px 0 6px; }
.material.active .swatch { box-shadow: 0 0 0 1px var(--ink); }
.material.active b { color: var(--ink); }
.swatch.oak { background: repeating-linear-gradient(94deg,#bd986950,#e0bf8260 2px,#b58f5d40 3px,#cba77280 6px),#c3a06e; }
.swatch.osb { background: repeating-linear-gradient(42deg,transparent 0 7px,#e0c39380 7px 11px,transparent 12px 18px),repeating-linear-gradient(139deg,#c1a16c 0 4px,#af885580 5px 10px,#d1af7d 11px 16px); }
.swatch.plywood { background: repeating-linear-gradient(88deg,#e0c793 0 6px,#d7ba8650 7px 8px,#e8d2aa 9px 10px); }
.material b { display: block; font-size: 11px; font-weight: 500; letter-spacing: -.2px; color: #69758f; }
.material > span:last-child { display: block; font-size: 9px; color: #9199ad; }
.toggle-line { position: relative; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #333d59; margin: 23px 0 18px; }
.toggle-line > span:first-child { margin-right: auto; }
.toggle-line small { display: block; font-size: 10px; color: #8c94a8; margin-top: 6px; }
.toggle-line input { position: absolute; right: 0; opacity: 0; width: 36px; height: 24px; margin: 0; cursor: pointer; }
.toggle { display: block; width: 34px; height: 21px; border-radius: 20px; background: #dfe2ea; padding: 3px; pointer-events: none; }
.toggle:after { content: ''; display: block; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0001; transition: transform .15s; }
.toggle-line input:checked + .toggle { background: var(--blue); }
.toggle-line input:checked + .toggle:after { transform: translateX(13px); }
.toggle-line input:focus-visible + .toggle { outline: 2px solid var(--blue); outline-offset: 4px; }
.profile-section { padding: 20px 0 24px; }
.settings [data-step-panel="3"] > .profile-section { padding-top: 5px; border-bottom: 0; }
.profile-section .toggle-line { margin-top: 10px; }
.assembly-aids-section { border-top: 1px solid var(--line); }
.aid-material { color: var(--muted); font-size: 10px; white-space: nowrap; }
.aid-parts { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 10px; }
.aid-parts li { padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; }
.aid-parts b, .aid-parts span, .aid-parts small { display: block; }
.aid-parts b { font-size: 11px; font-weight: 500; }
.aid-parts span, .aid-parts small { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.aid-jig-guide { display: flex; align-items: center; gap: 12px; }
.aid-jig-guide svg { width: 100px; flex-shrink: 0; }
#aid-jig-diagram { flex: 0 0 100px; }
.aid-jig-guide p { font-size: 10px; color: var(--muted); line-height: 1.7; }
.profile-options { display: grid; gap: 8px; }
.profile-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 11px; text-align: left; border: 1px solid #dce0e9; border-radius: 7px; background: #fff; }
.profile-option.active { background: #fff; border-color: var(--ink); }
.profile-option b { display: block; font-size: 12px; font-weight: 500; }
.profile-option small { display: block; font-size: 9px; color: #8d96ac; margin-top: 5px; }
.profile-icon { font: 32px/1 Georgia,serif; color: #a7adae; text-shadow: 1px 1px #e5e9e9; width: 26px; }
.profile-icon.black { color: #242725; font-weight: bold; text-shadow: none; }
.profile-icon.long { transform: scaleX(1.25); transform-origin: left; }
.profile-check { visibility: hidden; margin-left: auto; color: var(--ink); }
.profile-option.active .profile-check { visibility: visible; }
.review-card { border: 1px solid var(--line); border-radius: 8px; padding: 0 17px; margin: 0 0 22px; background: #fff; }
.top-construction-title { font-size: 12px; font-weight: 500; margin: 24px 0 12px; }
.top-construction-options { display: grid; gap: 9px; }
.top-construction-options button { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 8px; text-align: left; background: #fff; }
.top-construction-options button.active { border-color: var(--ink); background: #f8f9ff; }
.top-construction-options svg { width: 52px; height: 38px; flex-shrink: 0; fill: #dce1ef; stroke: #8994b1; stroke-width: 1; }
.top-construction-options .top-board { fill: #8ca4fb; stroke: #3159ed; }
.top-construction-options b { display: block; font-size: 11px; font-weight: 500; line-height: 1.6; }
.top-construction-options small { display: block; font-size: 9px; line-height: 1.6; margin-top: 4px; color: var(--muted); }
.instruction-notes { margin: 16px 0 20px; padding: 12px 14px; border-radius: 8px; background: #f5f6fb; }
.instruction-notes:empty { display: none; }
.instruction-notes p { font-size: 10px; line-height: 1.7; color: #626c87; }
.instruction-notes p + p { margin-top: 7px; }
.instruction-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.instruction-steps > li { border: 1px solid var(--line); border-radius: 10px; padding: 17px; min-width: 0; }
.instruction-steps h3 { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.5; font-weight: 600; }
.instruction-number { display: inline-grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; border-radius: 50%; background: #eef1ff; color: var(--blue); font-size: 11px; }
.instruction-steps p { font-size: 11px; line-height: 1.85; color: #626a7d; margin-top: 12px; }
.instruction-picture { margin-top: 12px; border-radius: 7px; background: #f8f9fc; padding: 10px; text-align: center; }
.instruction-picture svg { display: block; width: 100%; height: 150px; }
.instruction-picture > span { display: block; font-size: 9px; color: #6a7da8; margin: 5px 0 2px; }
.instruction-details { margin-top: 12px; font-size: 10px; line-height: 1.8; color: #626c87; }
.instruction-details summary { color: #3856a3; cursor: pointer; }
.instruction-details ul { padding-left: 16px; margin: 8px 0 0; overflow-wrap: anywhere; }
.instruction-details li + li { margin-top: 7px; }
.review-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 17px 0; border-bottom: 1px solid #ececf1; }
.review-row:last-child { border: 0; }
.review-row > span { font-size: 11px; color: #7e89a3; }
.review-row > strong { grid-column: 1/-1; font-size: 12px; font-weight: 500; line-height: 1.6; color: var(--ink); }
.review-row button { border: 0; background: none; padding: 0; color: #3856a3; font-size: 10px; }
.export-actions { display: grid; gap: 10px; }
.export-actions .button { width: 100%; font-size: 12px; padding: 16px; }
.scope-note { font-size: 10px; line-height: 1.8; color: #8b93a7; margin: 17px 0 27px; }
.wizard-footer { display: flex; align-items: center; gap: 14px; border: 0; padding: 18px 0; background: #fff; position: sticky; bottom: 0; margin-top: 2px; }
.wizard-footer .button { font-size: 12px; }
.wizard-footer .primary { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 14px 20px; }
.wizard-footer .primary span { font-size: 16px; line-height: 1; }
.wizard-footer #step-back { background: transparent; border: 0; padding-left: 0; color: #7a859d; }
.wizard-footer #step-next { margin-left: auto; }
.errors { margin-top: 20px; padding: 13px; background: #fff3ed; border: 1px solid #f0d8ca; border-radius: 8px; color: #914e32; font-size: 11px; line-height: 1.7; }
#component-dialog, .manual-dialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 20px 100px #10122e26; }
#component-dialog[open], .cut-dialog[open], .manual-dialog[open] { display: flex; flex-direction: column; }
.cut-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 20px 100px #10122e26; }
.cut-dialog::backdrop { background: #15183355; backdrop-filter: blur(3px); }
.supplier-label { display: block; margin-bottom: 8px; font-size: 12px; }
#cut-supplier { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.cut-grain { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; }
.cut-grain input { accent-color: #3159ed; }
.cut-files { display: grid; gap: 12px; margin: 22px 0; }
.cut-files > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.cut-files b { display: block; font-size: 13px; font-weight: 500; }
.cut-files small { display: block; margin-top: 6px; color: #737f9b; font-size: 11px; }
.cut-rounding { padding: 12px; background: #fff6e8; color: #80501a; border-radius: 8px; font-size: 12px; line-height: 1.6; }
.supplier-link { display: inline-block; margin-top: 12px; color: #3159ed; font-size: 12px; }
#component-dialog::backdrop, .manual-dialog::backdrop { background: #15183355; backdrop-filter: blur(3px); }
.list-header { padding: 26px 28px 20px; display: flex; align-items: start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.list-header h2 { font: 500 27px/1.2 Inter, "Avenir Next", sans-serif; letter-spacing: -.8px; margin: 11px 0; }
.list-header p { color: #818ba1; font-size: 11px; line-height: 1.7; }
.close-dialog { background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 23px; line-height: 28px; width: 30px; padding: 0; color: #737f9b; }
.list-body { overflow: auto; padding: 22px 28px; }
.component-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.component-table th { text-align: left; font-size: 10px; font-weight: 500; color: #7e8aa4; padding: 9px 10px; }
.component-table td { border-bottom: 1px solid #e8eaf1; padding: 13px 10px; vertical-align: top; }
.component-table td b { font-weight: 500; }
.component-table small { display: block; margin-top: 6px; font-size: 9px; color: #8c97b0; line-height: 1.6; }
.component-table .component-quantity { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.component-table thead th:last-child { text-align: right; }
.component-table .component-category th { background: #f7f8fc; padding-top: 11px; padding-bottom: 11px; color: #505e7e; letter-spacing: .8px; font-size: 9px; }
.list-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--line); }
.copy-value { display: inline; border: 1px solid transparent; border-radius: 4px; padding: 2px 3px; margin: -2px -3px; background: transparent; color: inherit; font: inherit; text-align: inherit; line-height: inherit; }
.copy-value:hover, .copy-value:focus-visible { background: #eef2ff; border-color: #b9c8fa; color: #3159ed; }
.copy-value.copied { background: #edf5ef; border-color: #b5cfbd; color: #38734d; }
.copy-dimensions { line-height: 2; }
.copy-status { min-height: 28px; padding: 0 28px 9px; color: #3159ed; font-size: 11px; flex-shrink: 0; }
.list-footer > span { font-size: 10px; color: #8590a8; }
@media (min-width: 1500px) {
  main { grid-template-columns: minmax(0, 1fr) 460px; gap: 44px; padding: 40px 48px; }
  .settings { padding-left: 32px; padding-right: 32px; }
  .workspace { height: calc(100dvh - 162px); }
}
@media (max-width: 1100px) {
  .topbar { padding: 0 25px; }
  main { padding: 24px 22px; gap: 20px; grid-template-columns: minmax(0, 1fr) 390px; }
  .settings { padding-left: 22px; padding-right: 22px; }
  .workspace { height: calc(100dvh - 130px); min-height: 510px; }
  .gesture-hint { display: none; }
}
@media (max-width: 800px) {
  .topbar { height: 68px; padding: 0 18px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-icon { margin-right: 2px; }
  .brand-icon svg { width: 24px; height: 27px; }
  .beta { display: none; }
  .header-actions .button { font-size: 10px; padding: 10px 12px; }
  main { display: flex; flex-direction: column; padding: 15px 14px 24px; gap: 20px; min-height: 0; }
  .workspace { position: relative; top: 0; width: 100%; height: 370px; min-height: 0; }
  .viewer { min-height: 0; border-radius: 10px; }
  .preview-controls { top: 12px; left: 12px; right: 12px; gap: 10px; }
  .view-toolbar button { padding: 7px 11px; font-size: 10px; }
  .preview-toggles { width: 159px; padding: 4px 10px; }
  .preview-toggles .toggle-line { font-size: 10px; }
  .preview-annotations { bottom: 24px; }
  .settings { width: 100%; padding: 14px 21px 0; border-radius: 11px; }
  .settings #design-form { padding-top: 24px; }
  .settings section { padding: 22px 0; }
  .step-nav { margin: 0 -9px; }
  .step-nav button { font-size: 10px; padding: 11px 3px; }
  .wizard-footer { padding: 16px 0; }
  .input-wrap input { padding-left: 9px; font-size: 12px; }
  .section-title h2 { font-size: 16px; }
}
@media (max-width: 720px) {
  .list-header { padding: 20px 17px 15px; }
  .list-body { padding: 17px 12px; }
  .list-footer { padding: 15px 17px; }
  .list-footer .button { width: 100%; }
  .component-table td { padding: 11px 5px; font-size: 10px; }
  .component-table th { padding-left: 5px; padding-right: 5px; }
  .component-table small { font-size: 8px; }
  .component-table td:first-child { width: 35%; }
}
@media (max-width: 520px) {
  .topbar { height: auto; min-height: 68px; flex-wrap: wrap; padding: 14px 18px; }
  .header-actions { margin-left: auto; gap: 10px; }
  .language-picker select { padding: 9px 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
