:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-muted: #eef2f0;
  --text: #17201e;
  --muted: #68736f;
  --line: #dbe1de;
  --accent: #0a7d73;
  --accent-strong: #075f58;
  --accent-soft: #dff3ef;
  --shadow: 0 20px 60px rgba(25, 43, 38, .08);
  --grid: rgba(30, 68, 60, .055);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1212;
  --surface: #121a19;
  --surface-muted: #182321;
  --text: #ecf2ef;
  --muted: #9aa9a5;
  --line: #273431;
  --accent: #55c7b7;
  --accent-strong: #78d9cc;
  --accent-soft: #173630;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --grid: rgba(151, 211, 198, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--core-font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.topbar { width: min(1180px, calc(100% - 40px)); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { position: relative; width: 27px; height: 27px; display: block; transform: rotate(45deg); }
.brand-mark i { position: absolute; display: block; background: var(--accent); border-radius: 1px; }
.brand-mark i:nth-child(1) { width: 18px; height: 4px; top: 3px; left: 3px; }
.brand-mark i:nth-child(2) { width: 4px; height: 20px; top: 3px; left: 3px; }
.brand-mark i:nth-child(3) { width: 16px; height: 4px; right: 2px; bottom: 3px; }
nav { display: flex; gap: 30px; font-size: .86rem; color: var(--muted); }
nav a { padding: 28px 0 25px; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { color: var(--text); border-color: var(--accent); }
.icon-button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }

main { width: min(1060px, calc(100% - 40px)); margin: 0 auto; }
.hero { text-align: center; padding: 82px 20px 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-strong); font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
h1 { max-width: 850px; margin: 22px auto 18px; font-size: clamp(2.55rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.065em; font-weight: 660; }
h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  background-image: var(--core-title-gradient, linear-gradient(105deg, #1a73e8 0%, #4f6ff8 42%, #7c4dff 78%, #9b5cff 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero > p { max-width: 680px; margin: 0 auto; color: var(--muted); line-height: 1.7; font-size: 1.04rem; }
.trust-row { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.trust-row span { padding: 7px 11px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .75rem; }

/* Staad2CAD keeps the common application title while a lightweight conversion mark explains the workflow. */
.hero.staad2cad-title-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 360px); gap: 38px; align-items: center; text-align: left; }
.staad2cad-title-header h1, .staad2cad-title-header > p { margin-left: 0; margin-right: 0; }
.staad2cad-title-header .trust-row { justify-content: flex-start; }
.staad2cad-hero-copy { min-width: 0; }
.staad2cad-hero-copy > p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.staad2cad-flow-visual { display: block; width: min(100%, 360px); max-height: 260px; object-fit: contain; height: auto; justify-self: end; filter: drop-shadow(0 16px 22px rgba(33, 64, 123, .13)); }

.workspace-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 18px; padding: 30px; }
.workspace-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.step-label { color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .16em; }
h2 { margin: 8px 0 7px; font-size: 1.45rem; letter-spacing: -.03em; }
.workspace-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.format-pill { padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: .76rem; }
.drop-zone { min-height: 220px; margin-top: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #99aaa5; border-radius: 13px; background: var(--surface-muted); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.upload-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--accent); font-size: 1.5rem; }
.drop-zone strong { font-size: .94rem; }
.drop-zone > span:not(.upload-icon) { margin-top: 5px; color: var(--muted); font-size: .82rem; }
.drop-zone small { margin-top: 16px; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.selected-file { margin-top: 18px; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.selected-file:not([hidden]) { display: flex; }
.file-glyph { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-size: .65rem; font-weight: 850; }
.selected-file > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.selected-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.selected-file small { color: var(--muted); }
.selected-file button { border: 0; background: transparent; color: var(--muted); font-size: 1.25rem; cursor: pointer; }
.selected-file-actions { display: flex; align-items: center; gap: 8px; }
.selected-file-actions .text-button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent-strong); font-size: .7rem; }
.selected-file-actions #removeFile { width: 30px; height: 30px; display: grid; place-items: center; font-size: .9rem; }
.workspace-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.workspace-actions > span { color: var(--muted); font-size: .76rem; }
.workspace-actions > .privacy-assurance { max-width: 720px; display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; line-height: 1.45; }
.privacy-assurance b { color: var(--text); }
.privacy-assurance .lock-dot { margin-right: 2px; }
.lock-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #41a96b; }
.primary-button { min-width: 178px; padding: 12px 17px; border: 0; border-radius: 9px; background: var(--accent); color: white; font-weight: 720; cursor: pointer; box-shadow: 0 8px 22px rgba(10, 125, 115, .2); }
.primary-button b { margin-left: 16px; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 70px 0; border: 1px solid var(--line); background: var(--line); }
.feature-strip article { padding: 27px; background: var(--bg); }
.feature-strip span { color: var(--accent); font-size: .66rem; font-weight: 800; }
.feature-strip h3 { margin: 10px 0 6px; font-size: .98rem; }
.feature-strip p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--accent); font-weight: 700; cursor: pointer; }
.section-divider { height: 1px; margin: 34px 0; background: var(--line); }
.configuration-step[hidden], .results-shell[hidden] { display: none; }
.model-summary { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 1px; margin: 25px 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--line); }
.summary-item { min-width: 0; padding: 15px; background: var(--surface-muted); }
.summary-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; }
.summary-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.summary-item input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: .83rem; font-weight: 700; outline: 0; }
.summary-item input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.axis-selector { margin: 0 0 24px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.axis-selector legend { width: 100%; margin-bottom: 10px; color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.axis-selector label { position: relative; cursor: pointer; }
.axis-selector input { position: absolute; opacity: 0; }
.axis-selector label > span { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); transition: .2s ease; }
.axis-selector b { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: .9rem; }
.axis-selector small { display: block; color: var(--muted); font-size: .73rem; }
.axis-selector small i { color: var(--text); font-style: normal; font-weight: 800; }
.axis-selector input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.axis-selector input:checked + span b { border-color: var(--accent); color: var(--accent-strong); }
.axis-selector input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 2px; }

/* The plane selector mirrors the compact frame filter used elsewhere in StruTools. */
.primary-choice-row { display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); gap: 14px; align-items: end; margin-bottom: 2px; }
.compact-axis-selector,
.member-mode-fieldset { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.compact-axis-selector legend,
.member-mode-fieldset legend { width: 100%; margin-bottom: 7px; color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.axis-chip-group { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); }
.axis-chip-group button,
.compact-axis-selector label > span { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 800; box-shadow: none; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.axis-chip-group button { cursor: pointer; }
.axis-chip-group b,
.compact-axis-selector label > span b { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 4px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--muted) 13%, transparent); color: inherit; font-size: .61rem; }
.compact-axis-selector input:checked + span,
.axis-chip-group button.active { border: 0; background: var(--core-title-gradient, linear-gradient(105deg, #1a73e8, #7c4dff)); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, #1768e8 20%, transparent); }
.compact-axis-selector input:checked + span b,
.axis-chip-group button.active b { border: 0; background: rgba(255,255,255,.2); color: #fff; }
.compact-axis-selector input:focus-visible + span,
.axis-chip-group button:focus-visible { outline: 3px solid color-mix(in srgb, #1768e8 24%, transparent); outline-offset: 2px; }
.options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.field > span i { font-style: normal; font-weight: 500; }
.field input, .field select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); color: var(--text); outline: 0; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.field small { margin-top: -3px; color: var(--muted); font-size: .65rem; }

/* STAAD2CAD guidance appears only while the user hovers a control label. */
.control-help-button { display: none !important; }
.control-help-label { cursor: help; text-decoration: underline dotted color-mix(in srgb, var(--muted) 38%, transparent); text-underline-offset: 3px; }
.control-help-popover { position: fixed; z-index: 2200; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--surface) 96%, var(--accent-soft)); color: var(--text); box-shadow: 0 14px 42px rgba(18, 35, 67, .2); animation: controlHelpIn .16s ease-out; }
.control-help-popover[hidden] { display: none; }
.control-help-popover b { display: block; padding-right: 16px; color: var(--accent-strong); font-size: .75rem; }
.control-help-popover p { margin: 6px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
@keyframes controlHelpIn { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* The compact leader switch keeps the optional CAD labelling method inside Text settings. */
.option-check { align-content: start; }
.switch-field { min-height: 42px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); }
.switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.switch-field i { position: relative; width: 34px; height: 20px; flex: 0 0 auto; border-radius: 999px; background: color-mix(in srgb, var(--muted) 42%, transparent); }
.switch-field i::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; content: ""; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .2s ease; }
.switch-field input:checked + i { background: var(--accent); }
.switch-field input:checked + i::after { transform: translateX(14px); }
.switch-field:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.switch-field b { color: var(--text); font-size: .72rem; }
.dimension-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 36px; align-items: center; gap: 5px 8px; }
.dimension-main > span { grid-column: 1 / -1; grid-row: 1; }
.dimension-main select { min-width: 0; width: 100%; grid-column: 1; grid-row: 2; }
.dimension-main > .onoff-switch { min-width: 72px; height: 36px; grid-column: 2; grid-row: 2; justify-content: flex-end; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-muted); }
.dimension-main select:disabled { opacity: .52; cursor: not-allowed; }
.onoff-switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }.onoff-switch input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.onoff-switch i { position: relative; width: 38px; height: 21px; border-radius: 99px; background: #87908e; transition: .18s; }.onoff-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; transition: .18s; }
.onoff-switch b::after { content: attr(data-off); min-width: 22px; color: var(--muted); font-size: .61rem; }.onoff-switch input:checked + i { background: var(--accent); }.onoff-switch input:checked + i::after { transform: translateX(17px); }.onoff-switch input:checked ~ b::after { content: attr(data-on); color: var(--accent-strong); }
.toggle-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 22px; }
.toggle-grid label { position: relative; cursor: pointer; }
.toggle-grid input { position: absolute; opacity: 0; }
.toggle-grid span { display: block; min-height: 74px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; font-size: .75rem; font-weight: 720; }
.toggle-grid small { display: block; margin-top: 4px; color: var(--muted); font-size: .64rem; font-weight: 450; line-height: 1.35; }
.toggle-grid input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.toggle-grid input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.depth-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.depth-controls label { position: relative; cursor: pointer; }.depth-controls input { position: absolute; opacity: 0; }
.depth-controls span { min-height: 72px; display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); }
.depth-controls b, .depth-controls small { display: block; }.depth-controls b { font-size: .74rem; }.depth-controls small { margin-top: 4px; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.depth-controls input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.depth-controls label.is-disabled { cursor: not-allowed; }.depth-controls label.is-disabled span { opacity: .5; filter: grayscale(.35); }
.frame-direction-control select { width: 100%; height: 32px; margin-top: 8px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: .68rem; }

/* Two clear member modes replace the former collection of large true-depth cards. */
.member-mode-row { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.member-mode-selector { min-width: 390px; flex: 1 1 390px; display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); }
.member-mode-option { position: relative; cursor: pointer; }
.member-mode-option > input { position: absolute; opacity: 0; }
.member-mode-option > span { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: .72rem; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.member-mode-option > span i { color: var(--accent-strong); }
.member-mode-option > input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 4px 13px rgba(37, 65, 115, .1); }
.member-mode-option > input:checked + span i { color: #1768e8; }
.member-mode-option > input:focus-visible + span { outline: 3px solid color-mix(in srgb, #1768e8 22%, transparent); outline-offset: 1px; }
.compact-toggle { position: relative; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font-size: .69rem; font-weight: 750; white-space: nowrap; }
.compact-toggle input { position: absolute; opacity: 0; }
.compact-toggle > i { position: relative; width: 34px; height: 20px; flex: 0 0 auto; border-radius: 999px; background: color-mix(in srgb, var(--muted) 42%, transparent); transition: background .18s ease; }
.compact-toggle > i::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; content: ""; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .18s ease; }
.compact-toggle input:checked + i { background: #1768e8; }
.compact-toggle input:checked + i::after { transform: translateX(14px); }
.compact-toggle.is-disabled { opacity: .48; cursor: not-allowed; }
.compact-toggle:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, #1768e8 18%, transparent); }

/* STAAD2CAD's secondary controls stay compact because field guidance is available on demand. */
.staad2cad-page .workspace-card { padding: 25px; }
.staad2cad-page .section-divider { margin: 25px 0; }
.staad2cad-page .model-summary { margin: 18px 0 14px; }
.staad2cad-page .summary-item { padding: 11px 12px; }
.staad2cad-page .summary-item input { height: 31px; }
.staad2cad-page .field { gap: 5px; }
.staad2cad-page .field input,
.staad2cad-page .field select { height: 36px; padding: 0 10px; border-radius: 7px; font-size: .76rem; }
.staad2cad-page .advanced-options summary { padding: 10px 13px; font-size: .73rem; }
.staad2cad-page .settings-accordion { margin-top: 11px; }
.staad2cad-page .compact-fields { gap: 10px; padding: 12px; }
.drawing-controls-panel .compact-control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.drawing-controls-panel .field > small,
.drawing-controls-panel .toggle-grid small { display: none; }
.drawing-controls-panel .frame-direction-control select { height: 36px; margin-top: 0; }
.drawing-controls-panel .compact-toggle-grid { gap: 6px; margin: 0 12px 12px; }
.drawing-controls-panel .compact-toggle-grid span { min-height: 42px; display: flex; align-items: center; padding: 8px 10px; font-size: .69rem; }
.drawing-controls-panel .drawing-switch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(215px, 1.2fr); gap: 7px; margin: 0 12px 12px; }
.drawing-controls-panel .drawing-switch-field { min-width: 0; height: 42px; min-height: 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-muted); }
.drawing-controls-panel .drawing-switch-field > span { min-width: 0; overflow: hidden; color: var(--muted); font-size: .67rem; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.drawing-controls-panel .drawing-switch-field .onoff-switch { gap: 5px; }
.drawing-controls-panel .drawing-switch-field .onoff-switch i { width: 34px; height: 19px; }
.drawing-controls-panel .drawing-switch-field .onoff-switch i::after { width: 13px; height: 13px; }
.drawing-controls-panel .drawing-switch-field .onoff-switch input:checked + i::after { transform: translateX(15px); }
.drawing-controls-panel .drawing-switch-field .onoff-switch b::after { min-width: 19px; font-size: .57rem; }
.drawing-controls-panel .true-depth-switch-field { min-width: 0; height: 42px; min-height: 42px; align-self: end; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-muted); transition: opacity .18s ease; }
.drawing-controls-panel .true-depth-switch-field > span { min-width: 0; overflow: hidden; padding: 0; color: var(--muted); font-size: .67rem; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.drawing-controls-panel .true-depth-switch-field > .onoff-switch { width: auto; height: auto; justify-content: flex-end; gap: 5px; padding: 0; border: 0; background: transparent; }
.drawing-controls-panel .true-depth-switch-field .onoff-switch i { width: 34px; height: 19px; }
.drawing-controls-panel .true-depth-switch-field .onoff-switch i::after { width: 13px; height: 13px; }
.drawing-controls-panel .true-depth-switch-field .onoff-switch input:checked + i::after { transform: translateX(15px); }
.drawing-controls-panel .true-depth-switch-field .onoff-switch b::after { min-width: 19px; font-size: .57rem; }
.drawing-controls-panel .true-depth-switch-field > small { display: none; }
.drawing-controls-panel .true-depth-switch-field.is-disabled { opacity: .48; }
.drawing-controls-panel .true-depth-switch-field.is-disabled .onoff-switch { cursor: not-allowed; }
/* One short cue identifies the controls unlocked by selecting true-depth drawing mode. */
.drawing-controls-panel .true-depth-switch-field.true-depth-guidance-pulse { animation: trueDepthControlPulse 1.35s ease-out 1; }
@keyframes trueDepthControlPulse {
  0% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; }
  38% { border-color: #5a65f5; box-shadow: 0 0 0 5px color-mix(in srgb, #6f4cff 18%, transparent); }
  100% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; }
}
/* Dense drawings receive one focused cue after the schedule suggestion is dismissed. */
#memberPresentationControl.member-presentation-guidance-pulse { border-radius: 8px; animation: memberPresentationGuidancePulse 2.4s ease-out 1; }
@keyframes memberPresentationGuidancePulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  22%, 62% { box-shadow: 0 0 0 6px color-mix(in srgb, #6f4cff 24%, transparent); }
}
.settings-accordion { margin-top: 19px; display: grid; gap: 8px; }
.advanced-options { margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; }
.settings-accordion .advanced-options { margin-top: 0; }
.advanced-options summary { display: flex; justify-content: space-between; padding: 13px 15px; cursor: pointer; color: var(--text); font-size: .78rem; font-weight: 700; }
.advanced-options summary span { color: var(--muted); font-weight: 450; }
.advanced-options[open] summary { border-bottom: 1px solid var(--line); }
.paper-size-note { margin: 14px 15px 0; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.adaptive-toggle { display: flex; gap: 10px; align-items: flex-start; margin: 15px 15px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); cursor: pointer; }
.adaptive-toggle input { margin-top: 2px; accent-color: var(--accent); }
.adaptive-toggle span { display: flex; flex-direction: column; gap: 3px; }
.adaptive-toggle b { font-size: .74rem; }.adaptive-toggle small { color: var(--muted); font-size: .65rem; line-height: 1.4; }
.compact-fields { grid-template-columns: repeat(4, 1fr); padding: 15px; }
.text-fields { grid-template-columns: repeat(4, 1fr); }
.calculated-field { justify-content: center; min-height: 65px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); }.calculated-field strong { font-size: .8rem; }
.colour-palette { margin: 0 15px 15px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--line); border-radius: 8px; }
.colour-palette legend { padding: 0 5px; color: var(--muted); font-size: .68rem; font-weight: 700; }.colour-palette label { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }.colour-palette input { position: absolute; opacity: 0; }.colour-palette i { width: 15px; height: 15px; border: 1px solid rgba(0,0,0,.18); border-radius: 50%; background: var(--swatch); }.colour-palette span { color: var(--muted); font-size: .63rem; }.colour-palette label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }.colour-palette label:has(input:checked) span { color: var(--accent-strong); }
.sheet-settings { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 14px; padding: 15px; }
.sheet-settings > div { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); }
.sheet-settings > div span { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }.sheet-settings > div b { font-size: .74rem; }
.validation-note { display: flex; gap: 13px; align-items: flex-start; margin-top: 18px; padding: 13px 15px; border-left: 3px solid #d5a62b; background: color-mix(in srgb, #d5a62b 8%, var(--surface)); font-size: .72rem; }
.validation-note[hidden] { display: none; }
.validation-note b { flex: 0 0 auto; color: #9a7210; }
.validation-note span { color: var(--muted); line-height: 1.45; }
.configuration-actions { margin-top: 22px; }
.secondary-button { padding: 11px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-weight: 680; cursor: pointer; }
.secondary-button:hover { border-color: var(--accent); }
.refresh-drawings-button:not(.needs-refresh) { border: 0; background: var(--core-title-gradient, linear-gradient(105deg, #1a73e8, #7c4dff)); color: #fff; box-shadow: 0 7px 18px color-mix(in srgb, #1768e8 20%, transparent); transition: transform .18s ease, box-shadow .18s ease; }
.refresh-drawings-button:not(.needs-refresh):hover { transform: translateY(-1px); box-shadow: 0 9px 25px color-mix(in srgb, #1768e8 36%, transparent), 0 0 0 4px color-mix(in srgb, #1768e8 11%, transparent); }
/* The shared ready-state cue gently brings the button forward and back. */
.secondary-button.needs-refresh { border: 0; background: var(--core-title-gradient, linear-gradient(105deg, #1a73e8, #7c4dff)); color: #fff; animation: refreshThemePulse 1.7s ease-in-out infinite; }
@keyframes refreshThemePulse {
  0%, 100% { transform: translateZ(0) scale(1); box-shadow: 0 7px 18px color-mix(in srgb, #1768e8 20%, transparent), 0 0 0 0 color-mix(in srgb, #1768e8 24%, transparent); }
  50% { transform: translateZ(0) scale(1.045); box-shadow: 0 11px 28px color-mix(in srgb, #6f4cff 30%, transparent), 0 0 0 4px color-mix(in srgb, #6f4cff 12%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .secondary-button.needs-refresh { animation: none; box-shadow: 0 7px 18px color-mix(in srgb, #1768e8 22%, transparent); }
}

.results-shell { margin-top: 25px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.results-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.results-heading h2 { margin-bottom: 0; }
.results-heading p { margin: 6px 0 0; color: var(--muted); font-size: .72rem; }
.package-count { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.package-count b { color: var(--accent); font-size: 1.25rem; letter-spacing: 0; }
.drawing-filter { display: grid; grid-template-columns: minmax(220px, 1fr) 140px auto auto; gap: 10px; align-items: end; margin: -4px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); }.drawing-filter label { display: flex; flex-direction: column; gap: 5px; }.drawing-filter label span { color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.drawing-filter input, .drawing-filter select { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); outline: 0; }.drawing-filter input:focus, .drawing-filter select:focus { border-color: var(--accent); }.drawing-filter > small { padding-bottom: 10px; color: var(--muted); font-size: .65rem; white-space: nowrap; }
.drawing-filter > .filter-scope-notice { grid-column: 1 / -1; margin-top: -2px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); border-radius: 8px; background: color-mix(in srgb, var(--accent-soft) 62%, var(--surface)); color: var(--accent-strong); font-weight: 700; white-space: normal; }
.drawing-filter > .filter-scope-notice[hidden] { display: none; }
.filter-actions { display: flex; gap: 5px; }.filter-actions button { height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); cursor: pointer; font-size: .62rem; white-space: nowrap; }.filter-actions button:hover { border-color: var(--accent); color: var(--accent-strong); }
.results-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 14px; }
.preview-card, .plane-list-card { min-width: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface-muted); }
.preview-toolbar, .plane-list-head { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: .72rem; font-weight: 700; }
.preview-toolbar > span { max-width: calc(100% - 140px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-toolbar div { display: flex; gap: 4px; }
.preview-toolbar #previewZoomTools[hidden] { display: none; }
.preview-toolbar button, .plane-list-head button { min-width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); color: var(--text); cursor: pointer; font-size: .7rem; }
#drawingPreview { display: block; width: 100%; height: 510px; background: #101817; touch-action: none; cursor: default; }
#drawingPreview.preview-zoom-enabled { cursor: grab; }
#drawingPreview.preview-zoom-enabled:active { cursor: grabbing; }
#drawingPreview.preview-zoom-locked { touch-action: pan-y; }
#drawingPreview line, #drawingPreview circle { stroke-width: 1.1; stroke-linecap: square; }
#drawingPreview text { pointer-events: none; }
.preview-protection { padding: 7px 12px; border-bottom: 1px solid rgba(255,255,255,.08); background: #281827; color: #ff91c6; font-size: .64rem; font-weight: 750; text-align: center; }
#drawingPreview text.protected-preview-text { filter: blur(5px); opacity: .32; user-select: none; }
.preview-legend { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .62rem; }
.preview-legend span::before { content: ''; display: inline-block; width: 12px; height: 2px; margin-right: 5px; vertical-align: middle; background: currentColor; }
.preview-legend .builtup { color: #2aa176; }.preview-legend .hotrolled { color: #9270db; }.preview-legend .other { color: var(--muted); }.preview-legend .unassigned { color: #d94f4f; }
.plane-list { max-height: 548px; overflow: auto; }
.plane-item { border-bottom: 1px solid var(--line); background: transparent; transition: background .15s, box-shadow .15s; }.plane-item:last-child { border-bottom: 0; }
.plane-item:hover { background: var(--surface); }.plane-item.selected { position: relative; background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
/* A compact package checkbox mirrors the Staad2Approval picker without competing with preview navigation. */
.plane-choice-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: stretch; border-bottom: 1px solid var(--line); }
.plane-row { width: 100%; min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 13px 11px 8px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: background .15s, box-shadow .15s; }
.plane-row:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.plane-axis { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: .72rem; font-weight: 850; }
.plane-row span:nth-child(2) { min-width: 0; }
.plane-row strong, .plane-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plane-row strong { font-size: .72rem; }.plane-row small { margin-top: 3px; color: var(--muted); font-size: .63rem; }
.plane-row-meta { display: grid; justify-items: end; gap: 3px; }
.plane-row-meta small { margin: 0; padding: 3px 5px; border-radius: 5px; background: var(--surface); }
.plane-row-meta b { color: var(--accent-strong); font-size: .62rem; }
.plane-item.needs-level-review .plane-row strong,
.plane-item.needs-level-review .drawing-title-field input { color: #7a1832; }
[data-theme="dark"] .plane-item.needs-level-review .plane-row strong,
[data-theme="dark"] .plane-item.needs-level-review .drawing-title-field input { color: #d26b88; }
.drawing-selection-field { display: grid; place-items: center; min-width: 36px; margin: 0; border-right: 1px solid var(--line); cursor: pointer; }
.drawing-selection-field:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.drawing-selection-field input { width: 15px; height: 15px; min-width: 15px; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.drawing-selection-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.drawing-title-field { display: block; padding: 8px 13px 12px; }.drawing-title-field span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }.drawing-title-field input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: .69rem; outline: 0; }.drawing-title-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.package-final-action { margin-top: 20px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.package-final-action > span { display: flex; flex-direction: column; gap: 4px; }.package-final-action b { font-size: .82rem; }.package-final-action small { color: var(--muted); font-size: .67rem; line-height: 1.45; }
.package-final-action > span i { color: var(--accent-strong); font-style: normal; }.price-total { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }.price-total strong { color: var(--accent-strong); font-size: 1.25rem; }
.price-total.is-free strong { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }.price-total > b { color: #168d70; font-size: .72rem; }
.warnings { margin-top: 14px; padding: 13px 15px; border: 1px solid color-mix(in srgb, #d5a62b 45%, var(--line)); border-radius: 9px; background: color-mix(in srgb, #d5a62b 7%, var(--surface)); }
.warnings b { display: block; margin-bottom: 6px; color: #9a7210; font-size: .73rem; }
.warnings ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.toast[hidden] { display: none; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: 390px; padding: 13px 16px; border-radius: 9px; background: #862f35; color: white; box-shadow: var(--shadow); font-size: .76rem; line-height: 1.45; }
/* Toast colour and accessibility semantics now reflect the actual process outcome. */
.toast.success { background: #16764f; }
.toast.info { background: #185ec7; }
.toast.warning { background: #8a6413; }
.toast.error { background: #862f35; }
.payment-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(7,13,12,.62); backdrop-filter: blur(5px); }.payment-modal[hidden] { display: none; }.payment-card { position: relative; width: min(470px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.28); }.payment-card h2 { margin: 8px 0; }.payment-card > p { margin: 0; color: var(--muted); font-size: .76rem; }.modal-close { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; color: var(--muted); font-size: 1.45rem; cursor: pointer; }.checkout-total { margin: 22px 0 14px; padding: 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); }.checkout-total span { color: var(--muted); font-size: .72rem; }.checkout-total strong { color: var(--accent-strong); font-size: 1.6rem; }.test-payment-note { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-left: 3px solid #d5a62b; background: color-mix(in srgb, #d5a62b 8%, var(--surface)); }.test-payment-note b { color: #9a7210; font-size: .72rem; }.test-payment-note span { color: var(--muted); font-size: .67rem; line-height: 1.45; }.checkout-button { width: 100%; margin-top: 18px; }
.suggestion-card { width: min(430px, 100%); }
.suggestion-card h2 { margin-right: 30px; }
.suggestion-card > p { font-size: .82rem; line-height: 1.6; }
.suggestion-card > .primary-button { width: 100%; margin-top: 22px; }
/* Staad2CAD checkout follows a single review -> support/payment -> download sequence. */
.staad-checkout-card { width: min(440px, 100%); padding: 27px; overflow: hidden; }
.staad-checkout-card h2 { margin: 9px 32px 7px 0; font-size: 1.5rem; }
.staad-checkout-card > p { max-width: 370px; line-height: 1.5; }
.staad-checkout-card .modal-close { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 1rem; transition: color .18s ease, background .18s ease; }
.staad-checkout-card .modal-close:hover { background: var(--surface-muted); color: var(--text); }
.checkout-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 12px; }
.checkout-metric,
.staad-checkout-card .checkout-total { min-height: 78px; margin: 0; padding: 13px 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); }
.checkout-metric span,
.staad-checkout-card .checkout-total span { color: var(--muted); font-size: .66rem; font-weight: 650; }
.checkout-metric strong { color: var(--text); font-size: .92rem; }
.staad-checkout-card .checkout-total strong { color: var(--accent-strong); font-size: 1.35rem; }
.checkout-route-panel { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 13px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.checkout-route-panel[hidden] { display: none; }
.checkout-route-panel > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--core-title-gradient, linear-gradient(105deg, #1a73e8, #7c4dff)); color: #fff; font-size: .75rem; }
.checkout-route-panel > span { display: flex; flex-direction: column; gap: 3px; }
.checkout-route-panel b { color: var(--text); font-size: .72rem; }
.checkout-route-panel small { color: var(--muted); font-size: .66rem; line-height: 1.45; }
.staad-checkout-card .checkout-button { min-height: 44px; margin-top: 13px; }
.staad-checkout-card #confirmCheckout { border: 0; background: var(--core-title-gradient, linear-gradient(105deg, #1a73e8, #7c4dff)); box-shadow: 0 9px 22px color-mix(in srgb, #1768e8 24%, transparent); }
.staad-checkout-card #confirmCheckout:hover { transform: translateY(-1px); box-shadow: 0 11px 27px color-mix(in srgb, #6f4cff 28%, transparent); }
.staad-checkout-card #adminTestExport { margin-top: 8px; }
.coffee-button { min-height: 58px; display: flex; align-items: center; justify-content: center; padding-top: 15px; }
.desktop-ad-rail { position: fixed; top: 92px; bottom: 20px; z-index: 4; width: 150px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.ad-rail-left { left: max(8px, calc((100vw - 1500px) / 2)); }.ad-rail-right { right: max(8px, calc((100vw - 1500px) / 2)); }.desktop-ad-rail .adsbygoogle { width: 100%; height: 100%; }
.inline-ad { min-height: 90px; margin: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.inline-ad .adsbygoogle { min-height: 90px; }
.adblock-bait { position: absolute; left: -10000px; top: -10000px; width: 2px; height: 2px; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 42px; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
footer > span { color: var(--text); font-weight: 750; }
footer > a { display: inline-flex; align-items: center; }
footer .site-brand-wordmark { height: 22px; width: auto; }
footer small { margin-left: auto; }

@media (max-width: 900px) {
  .primary-choice-row { grid-template-columns: 1fr; align-items: stretch; }
  .drawing-controls-panel .drawing-switch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  nav { display: none; }
  .hero { padding-top: 58px; }
  .workspace-card { padding: 21px; }
  .workspace-head, .workspace-actions { align-items: stretch; flex-direction: column; }
  .package-final-action { align-items: stretch; flex-direction: column; }
  .price-total { margin-left: 0; align-items: flex-start; }
  .primary-button { width: 100%; }
  .model-summary { grid-template-columns: repeat(2, 1fr); }
  .model-summary .summary-item:first-child { grid-column: 1 / -1; }
  .axis-selector, .options-grid, .toggle-grid, .compact-fields, .results-grid, .depth-controls, .sheet-settings, .drawing-filter { grid-template-columns: 1fr; }
  .configuration-actions { gap: 10px; }
  #drawingPreview { height: 300px; }
  .feature-strip { grid-template-columns: 1fr; }
  .hero.staad2cad-title-header { grid-template-columns: 1fr; gap: 22px; }
  .staad2cad-flow-visual { width: min(100%, 300px); justify-self: start; }
  .member-mode-row { align-items: stretch; flex-direction: column; }
  .member-mode-selector { min-width: 0; width: 100%; grid-template-columns: 1fr; }
  .compact-toggle { justify-content: center; }
  .axis-chip-group { width: 100%; }
  .axis-chip-group > button, .axis-chip-group > label { flex: 1; }
  .compact-axis-selector label > span { width: 100%; }
  .drawing-controls-panel .compact-control-grid { grid-template-columns: 1fr; }
  .drawing-controls-panel .drawing-switch-grid { grid-template-columns: 1fr 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 7px; }
  footer small { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 1510px) { .desktop-ad-rail { display: none !important; } }
