/* Design Studio: controls on the left, the branded preview on the right */
.studio-grid{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:var(--s8); align-items:start }
@media (max-width:1023px){ .studio-grid{ grid-template-columns:1fr; gap:var(--s6) } .studio-preview{ order:-1 } }
.studio-controls{ display:grid; gap:var(--s5); min-width:0 }
.studio-tabs{ display:flex; gap:var(--s2); flex-wrap:wrap; border-bottom:1px solid var(--line) }
.studio-tabs button{ font:500 18px/1 var(--font); padding:var(--s3) 2px var(--s3); margin-right:var(--s4); border-bottom:2px solid transparent; color:var(--ink) }
.studio-tabs button[aria-selected="true"]{ color:var(--obsidian); border-bottom-color:var(--gold) }
.studio-panel{ display:grid; gap:var(--s4) }
.studio-panel[hidden]{ display:none }
.studio-hint{ font:var(--small); color:var(--ink) }
.studio-error{ font:var(--small); color:#9B2C2C; min-height:1.2em }
.studio-btn{ justify-self:start }
.theme-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--s3) }
.theme-card{ display:grid; gap:var(--s2); text-align:left; padding:var(--s3); background:var(--white); border:1px solid var(--line); transition:border-color .2s }
.theme-card:hover{ border-color:var(--stone) }
.theme-card[aria-pressed="true"]{ border-color:var(--gold); box-shadow:inset 0 0 0 1px var(--gold) }
.theme-card .sw{ display:flex; height:28px }
.theme-card .sw i{ flex:1 }
.theme-card b{ font:700 17px/1.2 var(--font) }
.theme-card small{ font:400 14px/1.3 var(--font); color:var(--ink) }
.own{ display:grid; gap:var(--s4); max-width:none }
.own-colors{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--s4) }
.own-colors > *, .own .field{ min-width:0 }
.own input[type="color"]{ width:100%; min-width:0; height:48px; padding:4px; cursor:pointer }
.own input[type="file"]{ font:var(--small); padding:var(--s2) }
.drop{ display:grid; gap:var(--s1); place-items:center; text-align:center; padding:var(--s6) var(--s4); background:var(--white); border:1px dashed var(--stone); cursor:pointer }
.drop:hover{ border-color:var(--gold) }
.drop input{ position:absolute; opacity:0; width:1px; height:1px }
.drop span{ font:500 18px/1.2 var(--font) }
.drop small{ font:var(--small); color:var(--ink) }
.drop:focus-within{ outline:2px solid var(--obsidian); outline-offset:2px }
.palette-out{ display:grid; gap:var(--s3) }
.palette-out .chips{ display:flex; gap:var(--s2) }
.palette-out .chips span{ display:grid; gap:4px; font:400 13px/1.2 var(--font); color:var(--ink); text-align:center }
.palette-out .chips i{ width:44px; height:44px; box-shadow:inset 0 0 0 1px rgba(26,20,16,.15) }
.studio-share .share-link{ width:100%; font:var(--small); padding:var(--s2) var(--s3); border:1px solid var(--line); background:var(--white); color:var(--obsidian) }
.studio-share{ min-width:0; display:grid; gap:var(--s2); padding-top:var(--s4); border-top:1px solid var(--line) }
.studio-preview{ display:grid; gap:var(--s4); justify-items:center; min-width:0; margin:0 }
.preview-pair{ display:grid; grid-template-columns:repeat(2, minmax(0, 290px)); gap:var(--s6); justify-content:center; width:100% }
@media (max-width:639px){ .preview-pair{ grid-template-columns:minmax(0,260px) } .preview-pair > :nth-child(2){ display:none } }

/* The product mock, drawn from brand tokens (the same roles the app uses) */
.mock{ --r:12px; font-family:var(--m-body); background:var(--m-bg); color:var(--m-ink); height:216cqw; display:flex; flex-direction:column; position:relative; overflow:hidden; transition:background-color .35s, color .35s }
.mock *{ transition:background-color .35s, color .35s, border-color .35s }
.mock .m-status{ display:flex; justify-content:space-between; padding:4.4cqw 7cqw 0; font:600 3.6cqw/1 -apple-system, system-ui, sans-serif; color:var(--m-ink) }
.mock .m-head{ display:flex; align-items:center; gap:2.6cqw; padding:6cqw 6cqw 3cqw }
.mock .m-logo{ width:8cqw; height:8cqw; border-radius:calc(var(--r) * .5); background:var(--m-accent); color:var(--m-on); display:grid; place-items:center; font:700 4.4cqw/1 var(--m-head-font); overflow:hidden; flex:none }
.mock .m-logo img{ width:100%; height:100%; object-fit:contain; background:var(--m-surface) }
.mock .m-brand{ font:700 5.2cqw/1 var(--m-head-font); letter-spacing:var(--m-track, 0); text-transform:var(--m-case, none); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.mock .m-chips{ display:flex; gap:2cqw; padding:1cqw 6cqw 3cqw; overflow:hidden }
.mock .m-chip{ font:600 3.2cqw/1 var(--m-body); padding:2.2cqw 3.4cqw; border-radius:var(--m-pill); border:1px solid var(--m-line); color:var(--m-muted); white-space:nowrap }
.mock .m-chip.on{ background:var(--m-accent); border-color:var(--m-accent); color:var(--m-on) }
.mock .m-list{ display:grid; gap:3cqw; padding:0 5cqw }
.mock .m-card{ background:var(--m-surface); border:1px solid var(--m-line); border-radius:var(--r); padding:4cqw }
.mock .m-cat{ font:700 2.7cqw/1 var(--m-body); letter-spacing:.14em; text-transform:uppercase; color:var(--m-muted) }
.mock .m-q{ font:600 4cqw/1.25 var(--m-head-font); margin:2cqw 0 3cqw; color:var(--m-ink) }
.mock .m-row{ display:grid; grid-template-columns:1fr 1fr; gap:2.4cqw }
.mock .m-yes, .mock .m-no{ font:700 3.4cqw/1 var(--m-body); padding:3cqw 0; text-align:center; border-radius:var(--m-btn) }
.mock .m-yes{ background:var(--m-yes-bg); color:var(--m-yes) }
.mock .m-no{ background:var(--m-no-bg); color:var(--m-no) }
.mock .m-tabs{ margin-top:auto; display:grid; grid-template-columns:repeat(4,1fr); padding:3cqw 4cqw 7cqw; border-top:1px solid var(--m-line); background:var(--m-surface) }
.mock .m-tabs span{ font:600 2.7cqw/1 var(--m-body); text-align:center; color:var(--m-muted) }
.mock .m-tabs span.on{ color:var(--m-accent-text) }
.mock .m-tabs span::before{ content:""; display:block; width:5cqw; height:5cqw; margin:0 auto 1.6cqw; border-radius:1.4cqw; background:currentColor; opacity:.85 }
/* Market detail, Simple mode */
.mock .m-detail{ padding:2cqw 6cqw; display:grid; gap:3.4cqw }
.mock .m-detail .m-q{ font-size:5.4cqw; margin:0 }
.mock .m-chance{ display:flex; align-items:baseline; gap:2cqw }
.mock .m-chance b{ font:700 11cqw/1 var(--m-head-font); color:var(--m-ink) }
.mock .m-chance span{ font:600 3.4cqw/1 var(--m-body); color:var(--m-muted) }
.mock .m-spark{ height:16cqw; width:100% }
.mock .m-seg{ display:grid; grid-template-columns:1fr 1fr; gap:2.4cqw }
.mock .m-seg .m-yes{ box-shadow:inset 0 0 0 2px var(--m-yes) }
.mock .m-amt{ background:var(--m-surface); border:1px solid var(--m-line); border-radius:var(--r); padding:3.4cqw 4cqw; display:flex; justify-content:space-between; font:600 3.6cqw/1 var(--m-body) }
.mock .m-amt b{ font:700 4.6cqw/1 var(--m-head-font) }
.mock .m-cta{ background:var(--m-accent); color:var(--m-on); border-radius:var(--m-btn); text-align:center; padding:4cqw 0; font:700 3.8cqw/1 var(--m-body) }
.mock .m-cta.outline{ background:transparent; color:var(--m-accent-text); box-shadow:inset 0 0 0 2px var(--m-accent-text) }
.mock .m-settle{ font:400 2.9cqw/1.4 var(--m-body); color:var(--m-muted); border-top:1px solid var(--m-line); padding-top:2.6cqw }
/* Splash, shown once after a logo loads */
.mock .m-splash{ position:absolute; inset:0; background:var(--m-accent); display:grid; place-items:center; opacity:0; pointer-events:none; transition:opacity .4s; z-index:4 }
.mock .m-splash.on{ opacity:1 }
.mock .m-splash div{ display:grid; justify-items:center; gap:4cqw; color:var(--m-on); font:700 7cqw/1 var(--m-head-font) }
.mock .m-splash img{ width:26cqw; height:26cqw; object-fit:contain; border-radius:6cqw; background:var(--m-surface); padding:3cqw }
.mock .m-mark{ position:absolute; right:4cqw; bottom:2.4cqw; font:600 2.2cqw/1 var(--font); letter-spacing:.3em; text-transform:uppercase; color:var(--m-muted); opacity:.55; z-index:3 }
@media (prefers-reduced-motion:reduce){ .mock, .mock *{ transition:none !important } }

/* Prospect pages: shown only when a prospect is set */
.prospect-only[hidden]{ display:none !important }
.path{ list-style:none; counter-reset:step; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:var(--s5); margin-top:var(--s5) }
.path li{ counter-increment:step; border-top:2px solid var(--gold); padding-top:var(--s4); display:grid; gap:var(--s2); align-content:start; min-width:0 }
.path li::before{ content:counter(step, decimal-leading-zero); font:var(--small); color:var(--ink); font-variant-numeric:lining-nums }
.path b{ font:700 22px/1.3 var(--font) }
.path span{ font:400 17px/1.5 var(--font); color:var(--ink) }
@media (max-width:1023px){ .path{ grid-template-columns:1fr; gap:var(--s4) } }
