/* 0.17 B2B visual polish, no changes to model geometry */
:root{--accent:#0875ef;--line:#dce6f1;background:#f5f8fc;color:#1c2c40;font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif}
body{background:#f5f8fc;color:#1b2b40}
.topbar{position:relative;z-index:2;height:78px;background:rgba(255,255,255,.95);box-shadow:0 5px 24px rgba(30,66,115,.045);border-bottom-color:#e2edf7}
.wordmark small{color:#415975}
.edition{color:#6080a3;letter-spacing:1px}
.edition b{color:#076fe5;border-color:#cde2ff;background:#eff7ff}
button{border-color:#d4e3f1;color:#243e5d;border-radius:10px;transition:transform .22s,background .22s,box-shadow .22s,border-color .22s}
button:not(:disabled):hover{background:#eff6ff;border-color:#acd0fa;transform:translateY(-1px)}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(32,146,255,.7);outline-offset:2px}
.primary{background:linear-gradient(112deg,#075fec,#1599ff);color:#fff;border-color:#1274ea;box-shadow:0 6px 22px rgba(8,100,229,.18)}
.primary:not(:disabled):hover{background:linear-gradient(112deg,#0a71fc,#299dff);color:#fff;box-shadow:0 11px 28px rgba(8,100,229,.25)}
main{background:#f4f8fc;min-height:calc(100vh - 121px)}
.inspector{background:linear-gradient(180deg,#fff,#fbfdff);border-right-color:#dce8f6}
.intro h1{font-weight:800;letter-spacing:-1.1px;color:#182d47}
.intro p{color:#6c819a}
.eyebrow{color:#0875ee;font-weight:800}
.section-label{color:#0875ef;letter-spacing:.4px}
.section-label>span{color:#526b87}
.catalog-label,.field{color:#526983}
.category-filter,.module-search{background:#f6faff;border-radius:9px;border-color:#d8e6f6;color:#294363}
.category-filter:hover,.module-search:hover{border-color:#9ecbfb}
.module-grid{gap:7px;scrollbar-color:#c9def6 transparent}
.module-grid button{background:#fff;color:#526880;border-color:#deebf8;border-radius:10px;transition:border-color .22s,background .22s,box-shadow .22s,transform .22s}
.module-grid button:hover{background:#f1f7ff;color:#2368b4}
.module-grid button.active{background:linear-gradient(135deg,#e9f4ff,#f4faff);box-shadow:inset 3px 0 #0875ef,0 3px 8px rgba(8,111,238,.09);border-color:#83baf7;color:#0951aa}
.input-wrap{background:#f6faff;border-color:#dae5f2;border-radius:9px;transition:border-color .2s,box-shadow .2s}
.input-wrap:focus-within{border-color:#61aaff;box-shadow:0 0 0 3px rgba(40,143,255,.09)}
.input-wrap input{color:#213a58}
.material-list button{background:#fff;border-color:#deebf8;border-radius:9px;overflow:hidden}
.material-list button i{border-radius:5px}
.branding{border-top-color:#e5eef8}
.workspace{position:relative;isolation:isolate;background:radial-gradient(circle at 83% 1%,#e8f4ff,transparent 42%),#f5f8fc}
.workspace>*:not(.workspace-glow){position:relative;z-index:1}
.workspace-glow{position:absolute;z-index:0;pointer-events:none;top:-180px;right:0;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,rgba(39,152,255,.10),transparent 66%)}
.stage-heading h2{color:#132c4c;font-weight:800;font-size:29px}
.stage-heading p{color:#617e9b;font-size:12px}
.live{font-weight:800;color:#0a729c;background:#e9fbff;border-color:#b6e9f6;box-shadow:0 4px 14px rgba(17,169,211,.06)}
.live i{width:6px;height:6px;background:#15c978;box-shadow:0 0 0 3px rgba(31,207,129,.14);animation:leon-led 2.2s ease-in-out infinite}
.viewport{background:radial-gradient(circle at 50% 30%,#eff9ff,#dce9f9 85%);border-color:#c9def5;border-radius:18px 18px 0 0;box-shadow:0 14px 36px rgba(36,92,153,.075)}
.viewport canvas{cursor:grab}
.viewport canvas:active{cursor:grabbing}
.viewport-watermark{position:absolute;pointer-events:none;z-index:1;right:16px;top:14px;font-size:9px;letter-spacing:2px;font-weight:800;color:rgba(30,91,148,.4);text-shadow:0 1px rgba(255,255,255,.4)}
#loading{background:radial-gradient(circle at 50% 35%,#f0f9ff,#dceafb);color:#4c708e;gap:20px;font-weight:650}
.scene-spinner{display:block;width:38px;height:38px;margin:0 auto;border-radius:50%;border:3px solid #a1ccfa;border-top-color:#0875ef;animation:leon-spin 1s linear infinite}
.view-toolbar{background:#eaf3ff;border-color:#c9def5;border-radius:0 0 15px 15px;padding:13px}
.view-group{flex-wrap:wrap}
.view-toolbar button{font-size:11px;color:#356187;border-radius:9px;padding:9px 12px}
.view-toolbar button:hover{background:#dcecff}
.view-toolbar button.active,.view-toolbar button[aria-pressed=true]{box-shadow:0 2px 9px rgba(18,93,180,.11);color:#065cce}
.stage-bottom{color:#6f89a4;font-size:10px}
.metrics{gap:13px}
.metric{border-color:#dce9f7;border-radius:14px;box-shadow:0 8px 21px rgba(12,69,137,.04);transition:transform .25s,box-shadow .25s}
.metric:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(11,80,148,.095)}
.metric span{color:#6884a0;font-weight:600}
.metric strong{color:#1a4875;font-weight:750}
.metric em{color:#718ba3}
.parts h3{color:#1e3c5c;font-weight:750}
.table-wrap{border-radius:12px;border-color:#d8e7f5}
th{background:#eaf4ff;color:#476b8c;font-weight:700}
td,th{border-color:#e6f0fa}
.conversion{background:linear-gradient(110deg,#fff,#f3f9ff);border-color:#bddbff;border-left:4px solid #0875ef;border-radius:13px;box-shadow:0 9px 28px rgba(15,96,175,.07)}
.conversion strong{color:#183a5e}
.conversion p,.module-note{color:#67809a}
.quote-dialog{border-color:#bcd9fb;border-radius:18px;box-shadow:0 30px 88px rgba(10,45,91,.22)}
.quote-dialog::backdrop{background:rgba(10,29,56,.72);backdrop-filter:blur(4px)}
.quote-header h2{color:#193a5e;font-weight:800}
.quote-hint{color:#69809a}
.quote-dialog textarea{border-color:#d5e5f5;background:#f9fcff;color:#193655}
footer{color:#728aa2;background:#fff}
@keyframes leon-spin{to{transform:rotate(360deg)}}
@keyframes leon-led{0%,100%{box-shadow:0 0 0 3px rgba(31,207,129,.11)}50%{box-shadow:0 0 0 6px rgba(31,207,129,.08)}}
@media(max-width:700px){.workspace{padding:22px 13px}.stage-heading h2{font-size:25px}.module-grid{max-height:205px}.viewport{height:clamp(280px,48vh,430px)}.metric strong{font-size:20px}.view-toolbar button{padding:8px 9px}.stage-bottom{flex-wrap:wrap}}
@media(max-width:390px){.topbar{gap:8px}.topbar .wordmark small{font-size:8px}.actions{margin-left:0}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.view-group{max-width:100%}.view-toolbar{padding:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* LE0N 0.18 — compact, clear motion controls and touch-friendly workspace */
#autorotate{position:relative;border:1px solid #8dc1f5!important;background:#f1f8ff;color:#125cad!important;min-width:87px}
#autorotate[aria-pressed=true]{color:#fff!important;background:linear-gradient(110deg,#096cef,#2ea4fe)!important;border-color:#1375ea!important;box-shadow:0 0 0 2px #0d7ff122}
.viewport::after{content:"";position:absolute;inset:0;pointer-events:none;border:1px solid #ffffff80;border-radius:inherit;box-shadow:inset 0 0 40px #d6eaff35}
.stage-heading{animation:leon-studio-intro .48s ease both}
@keyframes leon-studio-intro{from{opacity:.7;transform:translateY(7px)}to{opacity:1;transform:none}}
.metric{min-width:0}.metric strong{overflow-wrap:anywhere}
@media(max-width:700px){.view-toolbar{gap:8px}.view-group{flex-wrap:wrap}.view-toolbar button{min-height:38px}.conversion{gap:12px}.module-grid button{min-height:49px}}
@media(prefers-reduced-motion:reduce){.stage-heading{animation:none}}

/* 0.19 — direct lead submission */
.quote-contact-fields{display:grid;grid-template-columns:1fr 1fr;column-gap:16px;row-gap:1px;margin-top:17px}
.quote-contact-fields label:not(.quote-privacy){font-size:12px;font-weight:700;color:#315573}
.quote-contact-fields input:not([type=checkbox]){width:100%;padding:11px 12px;border:1px solid #bcd6ef;border-radius:9px;min-width:0;font-size:14px;color:#1d354d;background:#fff}
.quote-contact-fields input:focus{outline:2px solid #0875ef;outline-offset:1px}
.quote-contact-fields .quote-privacy{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;color:#506b88;line-height:1.5;margin:18px 0 7px}
.quote-privacy input{accent-color:#0875ef;width:18px;height:18px;flex:0 0 auto;margin:1px 0}.quote-privacy a{color:#036fec;text-decoration:underline}
.quote-actions{flex-wrap:wrap;gap:8px}.quote-actions button{cursor:pointer}.quote-actions button[disabled]{opacity:.6;cursor:wait}
@media(max-width:650px){.quote-contact-fields{grid-template-columns:1fr}.quote-actions{flex-direction:column}.quote-actions button{width:100%}}

/* v0.19.4 — disclosure of genuine capabilities, keyboard-accessible and mobile-friendly. */
.demo-disclosure{margin:16px 0 5px;border:1px solid #cfe2f7;border-radius:12px;background:linear-gradient(150deg,#f7fbff,#edf6ff);padding:12px 14px;color:#294666;box-shadow:0 4px 18px rgba(24,110,210,.045)}
.demo-disclosure summary{cursor:pointer;font-weight:750;font-size:12px;line-height:1.5;color:#115ba9}
.demo-disclosure summary:focus-visible{outline:3px solid #4eacff;outline-offset:4px}
.demo-disclosure-caption{font-size:11px;color:#476882;line-height:1.55}
.demo-disclosure ul{padding-left:20px;margin:10px 0;display:grid;gap:5px;font-size:11px;line-height:1.45}
#demo-limitations{font-size:11px;line-height:1.55;color:#55728b;margin:12px 0 2px}
@media(prefers-reduced-motion:reduce){.demo-disclosure{scroll-behavior:auto}}

/* 0.20 release candidate: preset and comparison controls */
.preset-section,.comparison{padding:16px;border:1px solid #d5e1ef;background:#fff;border-radius:12px;margin:16px 0;color:#273b50}
.preset-section h3{font-size:15px;margin:0 0 8px}.preset-section p,.comparison p{font-size:12px;line-height:1.6}
#presets{display:grid;gap:8px}#presets button{text-align:left;min-height:44px;padding:10px;border:1px solid #c5d4e5;border-radius:8px;background:#f5f8fc;color:#223a55}
#presets button[aria-pressed=true]{border-color:#086bf5;background:#eaf2ff}.comparison summary{cursor:pointer;font-weight:700;min-height:32px}.comparison-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.comparison-actions button{min-height:44px}.comparison-changed{font-weight:700;color:#0757ba}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #086bf5;outline-offset:3px}
@media(max-width:700px){.view-toolbar button{min-height:44px}.comparison-actions button{width:100%}}

.mobile-panels{display:none}
@media(max-width:700px){.mobile-panels{display:flex;gap:8px;padding:10px 13px;background:#fff;position:sticky;top:0;z-index:5}.mobile-panels button{min-height:44px;flex:1;border:1px solid #c5d4e5;border-radius:8px;background:#fff;color:#273b50}.mobile-panels button[aria-pressed=true]{background:#086bf5;color:#fff}body[data-mobile-panel=preview] .inspector{display:none}body[data-mobile-panel=parameters] .workspace{display:none}}
