* { box-sizing: border-box }
:root { --paper:#f8f6f0; --ink:#1e2625; --accent:#163b34; --button-ink:#fff; --soft:#e5ede8; --line:#bfccc6; --canvas:#fff; font-family:system-ui, sans-serif; color:var(--ink); background:var(--paper); }
body { margin:0; line-height:1.55 }
[hidden] { display:none!important }
img, svg { max-width:100%; display:block }
a { color:inherit; text-underline-offset:4px }
button, input { font:inherit }
button { cursor:pointer }
button:disabled { cursor:wait; opacity:.65 }
:focus-visible { outline:3px solid #007faa; outline-offset:4px }
h1,h2,p,figure { margin:0 }
h1,h2 { line-height:1.02; letter-spacing:-.045em }
h1 { font-size:clamp(2.6rem,6vw,6rem); max-width:11ch }
h2 { font-size:clamp(2rem,4vw,3.4rem); margin-bottom:1.5rem }
.shell { max-width:1340px; margin-inline:auto; padding-inline:clamp(18px,5vw,76px) }
.mast { border-bottom:1px solid var(--line) }
.mast-inner { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:18px }
.mast-inner span { font-size:.86rem; text-align:right }
.brand { font-size:1.35rem; font-weight:850; letter-spacing:.1em; text-decoration:none; flex-shrink:0 }
.brand img { width:125px; height:43px; object-fit:contain; object-position:left center }
.hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(25px,6vw,86px); padding-block:clamp(32px,6vw,90px) }
.intro { display:grid; gap:20px }
.eyebrow { font-size:.79rem; letter-spacing:.12em; font-weight:780; text-transform:uppercase }
.subtitle { max-width:37ch; font-size:clamp(1rem,1.7vw,1.25rem) }
.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px 24px }
.primary { border:1px solid transparent; background:var(--accent); color:var(--button-ink); font-weight:720; border-radius:var(--radius,5px); padding:13px 19px; min-height:48px; text-align:center }
.primary:hover { filter:brightness(1.12) }
.hero-photo img { width:100%; height:clamp(270px,40vw,530px); object-fit:cover; background:var(--soft); border-radius:var(--photo-radius,3px) }
.hero-photo figcaption { padding-top:10px; font-size:.83rem }
.workspace { background:var(--soft); padding-block:clamp(32px,6vw,80px) }
.workspace .eyebrow { margin-bottom:12px }
.grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); align-items:start; gap:20px }
.controls,.canvas { min-width:0; display:grid; align-content:start; gap:15px; background:var(--canvas); color:var(--ink); border:1px solid var(--line); padding:clamp(15px,3vw,30px); border-radius:var(--panel-radius,7px) }
.controls fieldset { min-width:0; padding:0; border:0; margin:0 }
.controls legend { font-weight:740; margin-bottom:10px }
.shapes { display:grid; grid-template-columns:1fr 1fr; gap:8px }
.shape { border:1px solid var(--line); border-radius:var(--radius,5px); padding:9px 5px; min-height:45px; background:var(--canvas); color:var(--ink); font-weight:680 }
.shape[aria-pressed="true"] { background:var(--accent); color:var(--button-ink); border-color:var(--accent) }
.dims { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px }
.field { display:grid; gap:5px; font-size:.9rem; font-weight:670 }
input[type=number], input[type=email] { width:100%; min-width:0; min-height:43px; border:1px solid var(--line); border-radius:5px; background:var(--canvas); color:var(--ink); padding:8px 10px }
.check { display:flex; align-items:center; gap:10px; min-height:44px; font-weight:650 }
.check input { accent-color:var(--accent); width:19px; height:19px }
#plan-note { min-height:1.55em; font-size:.86rem }
.plan-svg { width:100%; background:var(--plan,#f2f4f1); color:var(--ink); border-radius:3px }
.hint { font-size:.86rem }
.warning { color:#a32330; font-weight:700 }
.follow { padding-block:48px; scroll-margin-top:16px }
.follow > p { margin-bottom:16px }
#frame { margin-top:18px; min-width:0 }
.summary-lines { display:grid; gap:8px; padding-bottom:7px }
.summary-lines p { overflow-wrap:anywhere }
.summary-lines strong { font-weight:750 }
footer { padding-block:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 22px; font-size:.87rem; border-top:1px solid var(--line) }
body[data-studio=mk] { --paper:#f8f5ee; --ink:#142d2c; --accent:#173b35; --soft:#dde8df; --line:#b6c7bd; --radius:3px; --plan:#e7efe8; }
body[data-studio=mk] .hero-photo { box-shadow:12px 12px 0 #d4dfd4; padding-bottom:4px }
body[data-studio=gloss] { --paper:#252432; --ink:#252432; --accent:#65345f; --soft:#ede4ec; --line:#cbbaca; --radius:24px; --photo-radius:28px; --panel-radius:20px; --plan:#f4ecf2; color:#fcf4fc; background:#292638 }
body[data-studio=gloss] .hero { gap:clamp(23px,4vw,55px); grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr) }
body[data-studio=gloss] .hero h1 { font-family:Georgia,serif; font-weight:500 }
body[data-studio=gloss] .hero .primary { background:#e7c9df; color:#291f32 }
body[data-studio=gloss] .workspace,body[data-studio=gloss] .follow { color:#292638 }
body[data-studio=gloss] .follow { background:#fbf5fb }
body[data-studio=entry] { --paper:#f7f3ea; --ink:#221914; --accent:#8b3e27; --soft:#f0e1d1; --line:#d4b7a4; --radius:3px; --plan:#f7eee1 }
body[data-studio=entry] .mast { color:#f7f3ea; background:#251b17 }
body[data-studio=entry] h1 { font-family:Georgia,serif; font-weight:500 }
body[data-studio=entry] .hero-photo img { object-position:center 55% }
body[data-studio=entry] .grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr) }
@media(max-width:760px) {
  .hero, body[data-studio=gloss] .hero,.grid,body[data-studio=entry] .grid { grid-template-columns:minmax(0,1fr) }
  .hero-photo img { height:clamp(230px,58vw,360px) }
  .hero { padding-block:32px 39px }
  h1 { max-width:16ch; }
  .intro { gap:16px }
  .mast-inner { min-height:60px }
  .brand img { width:98px }
  .controls,.canvas { gap:12px }
}
@media(prefers-reduced-motion:no-preference) {
  html { scroll-behavior:smooth }
  .shape,.primary { transition:background .16s,color .16s,filter .16s }
}

