/* UI Forge studio shell. Engine frames and delivery assets are deliberately untouched. */
:root{
  color-scheme:dark;
  --surface-page:#080E1C;--surface-panel:#101B30;--surface-raised:#172641;
  --surface-hover:#1E3152;--surface-field:#0C1527;--surface-canvas:#080D18;
  --text-primary:#EDF3FF;--text-secondary:#B7C7DF;--text-muted:#9BAFCB;
  --border-default:#2D4365;--border-strong:#506F99;
  --primary:#2563EB;--primary-hover:#1D4ED8;--on-primary:#FFFFFF;
  --accent:#69A5FF;--accent-ice:#8FE5FF;
  --selected-surface:#172F53;--selected-border:#3B6CB7;--selected-text:#C1DBFF;
  --success-surface:#16332D;--success-border:#316A54;--success-text:#9DE6C0;
  --warning-surface:#352B1A;--warning-border:#80633B;--warning-text:#FFD394;
  --error-surface:#39222A;--error-border:#82505D;--error-text:#FFB0A6;
  --info-surface:#122B43;--info-border:#2A617E;--info-text:#8FE5FF;
  --overlay-surface:rgb(3 8 19 / 85%);--drawer-overlay:rgb(3 8 19 / 72%);
  --floating-surface:rgb(16 27 48 / 96%);--surface-highlight:rgb(237 243 255 / 5%);
  --shadow-color:rgb(0 3 12 / 38%);--shadow-strong:rgb(0 3 12 / 48%);
  --paper:var(--surface-page);--white:var(--surface-panel);--ink:var(--text-primary);
  --muted:var(--text-muted);--line:var(--border-default);
  --green:var(--accent);--green-dark:var(--primary-hover);--accent-pale:var(--selected-surface);
  --sage:var(--surface-raised);--danger:var(--error-text);--shadow:none;--radius:12px;
  --studio-canvas:var(--surface-canvas);--studio-raised:var(--surface-raised);--studio-hover:var(--surface-hover);
  --studio-dim:var(--text-muted);--studio-motion:180ms;--studio-space:24px;
  font-size:14px;background:var(--paper);color:var(--ink);
}
body{background:var(--paper);color:var(--ink);line-height:1.5}
::selection{background:var(--primary-hover);color:var(--on-primary)}
h1,h2,h3{letter-spacing:-.025em;font-weight:600}
button,a,input,textarea,select{transition:background var(--studio-motion),border-color var(--studio-motion),color var(--studio-motion),opacity var(--studio-motion)}
a,button{outline-offset:4px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.button{min-height:40px;padding:10px 16px;font-size:13px;border-radius:7px;box-shadow:none}
.button:hover:not(:disabled){transform:none}
.button.primary,.button.orange{background:var(--primary);color:var(--on-primary);border-color:var(--primary);font-weight:650;box-shadow:none}
.button.primary:hover:not(:disabled),.button.orange:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover);color:var(--on-primary)}
.button.outline{background:transparent;border-color:var(--line);color:var(--ink)}
.button.outline:hover{background:var(--studio-hover);border-color:var(--border-strong)}
.button.subtle,.text-link{color:var(--muted)}
.button.subtle:hover,.text-link:hover{color:var(--ink);background:var(--studio-raised)}
.button.danger{color:var(--error-text);background:var(--error-surface);border-color:var(--error-border)}
.button.compact{font-size:12px;min-height:34px;padding:7px 11px}
.icon-button{border-color:var(--line);background:transparent;color:var(--muted)}
.icon-button:hover{background:var(--studio-hover);color:var(--ink)}
.field,.commerce-field input,.commerce-field select{background:var(--surface-field);color:var(--ink);border-color:var(--line);font-size:14px;line-height:1.6;border-radius:7px}
.field:focus,.commerce-field input:focus,.commerce-field select:focus{background:var(--surface-field);border-color:var(--accent)}
.field::placeholder,.commerce-field input::placeholder{color:var(--muted)}
input[type=checkbox]{accent-color:var(--primary)}
.card{background:var(--white);border-color:var(--line);box-shadow:none}
.eyebrow,.section-kicker,.workspace-label{font-size:12px;color:var(--studio-dim);letter-spacing:.08em}
.sidebar{width:190px;padding:28px 18px 20px;background:var(--surface-canvas);border-color:var(--line)}
.brand{padding:0;gap:10px;color:var(--ink)}
.brand-mark{color:var(--accent);width:33px;height:35px;transform:scale(.86);transform-origin:left center}
.brand-mark i:first-child,.brand-mark i:last-child{background:var(--surface-canvas)}
.brand-name{font-size:19px;letter-spacing:-.04em;line-height:1.2;white-space:nowrap}
.brand-name small{font-size:10px;letter-spacing:.2em;color:var(--studio-dim);font-weight:400;margin-top:5px}
.sidebar-create{font-size:12px;margin:30px 0 24px;padding:10px 8px}
.sidebar .navigation{gap:4px}
.nav-item{font-size:13px;min-height:42px;padding:10px 12px;color:var(--text-secondary);border-radius:7px;font-weight:450}
.nav-item:hover{background:var(--surface-hover);color:var(--ink)}
.nav-item.active{color:var(--ink);background:var(--selected-surface);box-shadow:none}
.nav-item.active svg{color:var(--accent)}
.nav-item svg{width:17px;height:17px}
.sidebar-spacer{min-height:24px}
.operator-link{font-size:12px;color:var(--studio-dim);padding:12px 10px}
.operator-link:hover,.operator-link.active{background:var(--studio-raised);color:var(--ink)}
.local-identity{font-size:12px;color:var(--studio-dim);padding:15px 10px 0;gap:8px;border-color:var(--line)}
.local-identity .online-dot{margin:0;background:var(--success-text);width:5px;height:5px}
.main-shell{margin-left:0}
.topbar{height:64px;padding:0 32px;border-color:var(--line);background:var(--paper)}
.breadcrumbs{font-size:12px;color:var(--studio-dim)}
.breadcrumbs .current{color:var(--muted)}
.topbar-right{gap:16px}
.studio-mobile-home{display:none}
.language-control,.studio-language-control{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap}
.language-control select,.studio-language-control select,.language-select{padding:7px 25px 7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font-size:12px;max-width:125px}
.language-control label{font-size:12px}
.workspace{max-width:1540px;padding:32px;margin:auto}
.studio-public>.main-shell{margin-left:0;width:100%}
.studio-public .studio-site-header{height:80px;padding-inline:clamp(24px,4vw,72px);border-bottom:1px solid var(--line)}
.studio-site-header .brand-mark i:first-child,.studio-site-header .brand-mark i:last-child{background:var(--paper)}
.studio-site-header .navigation{flex-direction:row;gap:12px;align-items:center;margin-left:auto;margin-right:auto}
.studio-site-header .nav-item{padding:9px 12px;background:transparent;font-size:14px;min-height:40px}
.studio-site-header .nav-item svg{display:none}
.studio-site-header .nav-item.active{color:var(--accent)}
.studio-site-header .nav-item:hover{color:var(--ink);background:var(--surface-hover)}
.studio-public .workspace{max-width:1440px;padding:40px clamp(24px,4vw,72px) 32px}
.customer-hero{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);gap:clamp(30px,4vw,70px);align-items:center;padding:5px 0 66px}
.studio-eyebrow{display:flex;align-items:center;gap:12px;color:var(--text-secondary);font-size:12px;letter-spacing:.05em;margin-bottom:27px}
.studio-eyebrow-line{width:24px;height:1px;background:var(--accent)}
.customer-hero h1{font-size:clamp(38px,4vw,58px);line-height:1.25;letter-spacing:-.045em;font-weight:580;margin:0 0 26px}
.customer-hero h1>span{display:block}
.customer-hero h1 .accent{color:var(--accent)}
.customer-hero .hero-subtitle{color:var(--muted);font-size:15px;line-height:1.85;max-width:390px;margin:0}
.hero-ctas{gap:10px;margin:30px 0 0;flex-wrap:wrap}
.hero-ctas .button{min-height:46px;padding:12px 18px;font-size:13px}
.hero-caption{font-size:12px;color:var(--studio-dim);margin-top:24px;max-width:360px}
.studio-format-line{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:34px;color:var(--text-secondary);font-size:12px;letter-spacing:.01em}
.studio-format-line span+span{position:relative}
.studio-format-line span+span:before{content:'';position:absolute;left:-10px;top:7px;height:3px;width:3px;border-radius:50%;background:var(--surface-raised)}
.studio-showcase{min-width:0;background:var(--surface-field);border:1px solid var(--line);border-radius:14px;padding:18px 20px 14px;overflow:hidden}
.studio-showcase-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.studio-showcase-name{font-size:14px;letter-spacing:.02em;color:var(--ink)}
.studio-verified{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--success-text)}
.studio-verified svg{width:13px;height:13px}
.studio-showcase-tabs{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;background:var(--surface-canvas);border:1px solid var(--line);border-radius:7px;padding:4px;margin:0 auto 16px}
.studio-showcase-tab{border:0;background:transparent;color:var(--muted);padding:7px 17px;border-radius:4px;min-height:32px;font-size:12px;white-space:nowrap}
.studio-showcase-tab.active{color:var(--ink);background:var(--selected-surface)}
.studio-showcase-tab:hover{color:var(--ink)}
.studio-showcase-panel{display:flex;align-items:center;justify-content:center;width:100%;height:430px;background:var(--surface-canvas);border-radius:8px;overflow:hidden;padding:12px}
.studio-showcase-image{width:100%;height:100%;max-width:100%;object-fit:contain;display:block;filter:none}
.studio-showcase-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;padding-top:13px}
.studio-showcase-footer a{display:flex;gap:8px;align-items:center;color:var(--text-secondary);font-size:12px;white-space:nowrap}
.studio-showcase-footer svg{width:15px;height:15px}
.proof-loading{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:9px}
.studio-parts-stage{width:100%;height:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr 1fr;gap:10px}
.studio-part{min-height:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:12px;background:var(--surface-raised);border-radius:6px}
.studio-part img{width:100%;height:calc(100% - 20px);min-height:0;object-fit:contain}
.studio-part span{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.section-line{margin:0 0 22px;gap:15px;align-items:center}
.section-line h2{font-size:22px;color:var(--ink)}
.section-line .text-link{font-size:13px;gap:8px}
.studio-selected-work{padding:28px 0 48px;border-top:1px solid var(--line)}
.example-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.example-card{border-color:var(--line);background:var(--white);border-radius:10px;box-shadow:none}
.example-card:hover{border-color:var(--border-strong);transform:translateY(-2px);box-shadow:none}
.example-visual{height:280px;background:var(--surface-canvas);padding:18px}
.example-visual-action{border-bottom-color:var(--line);background:var(--surface-canvas)}
.example-visual-hint{border-color:var(--line);background:var(--floating-surface);color:var(--ink);border-radius:5px;font-size:12px;padding:7px 10px}
.example-visual-action:not(:disabled):hover .example-visual-hint,.example-visual-action:focus-visible .example-visual-hint{background:var(--surface-hover);color:var(--muted);border-color:var(--border-strong)}
.example-body{padding:18px}
.example-body h3{font-size:16px;letter-spacing:-.01em;color:var(--ink)}
.example-body>p{font-size:12px;color:var(--muted);line-height:1.7}
.example-meta{border-color:var(--line);font-size:12px;color:var(--muted)}
.example-formats{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:11px;line-height:1.5}
.example-interactive-link{font-size:12px;color:var(--accent)}
.example-interactive-link:hover{color:var(--text-secondary)}
.example-badge,.tiny-pill,.badge,.status-pill{font-size:11px;background:var(--surface-panel);border-color:var(--line);color:var(--text-secondary)}
.tiny-pill.warning,.badge.warning,.badge.needs_review{background:var(--warning-surface);border-color:var(--warning-border);color:var(--warning-text)}
.tiny-pill.muted,.badge.archived{background:var(--surface-panel);border-color:var(--line);color:var(--text-secondary)}
.delivery-story{padding:30px 0 42px;border-color:var(--line)}
.delivery-steps{border:0;border-radius:0;background:transparent;gap:28px;grid-template-columns:repeat(4,minmax(0,1fr))}
.delivery-steps article{padding:4px 0;min-height:0;border:0!important}
.step-number{color:var(--accent);font-size:12px;letter-spacing:.08em}
.delivery-steps h3{font-size:16px;margin:15px 0 8px}
.delivery-steps p{font-size:13px;color:var(--muted);line-height:1.75}
.studio-scope{border-block:1px solid var(--line);margin-top:8px}
.studio-scope>summary{cursor:pointer;color:var(--muted);font-size:13px;padding:20px 0}
.scope-split{border:0;margin:0;padding:0 0 24px;gap:36px}
.scope-split h3{font-size:14px;color:var(--ink)}
.scope-split p{font-size:13px;color:var(--muted)}
.work-footer{border-color:var(--line);font-size:12px;color:var(--studio-dim);margin-top:32px;padding-top:22px}
.page-header h1{font-size:32px;letter-spacing:-.035em;color:var(--ink)}
.page-header p,.hero-subtitle{font-size:14px;color:var(--muted)}
.page-header .eyebrow,.commerce-heading .eyebrow,.upload-page .eyebrow{display:none}
.page-header{margin-bottom:28px}
.step-tag,.file-details,.upload-foot,.card-heading>span{color:var(--studio-dim);font-size:12px}
.dropzone{background:var(--surface-field);border-color:var(--line);border-width:1px;min-height:340px}
.dropzone:hover,.dropzone.drag-over{background:var(--surface-hover);border-color:var(--border-strong);box-shadow:none}
.dropzone .upload-symbol,.interactive-teaser-icon{background:var(--surface-raised);color:var(--text-secondary)}
.dropzone h3{font-size:17px;color:var(--ink)}
.dropzone p{font-size:13px;color:var(--muted)}
.upload-brief{padding:24px;background:var(--surface-field)}
.upload-brief h2{font-size:22px}
.format-choice{background:var(--surface-field);border-color:var(--line);font-size:13px;color:var(--text-secondary);padding:12px}
.format-choice.selected{border-color:var(--selected-border);background:var(--selected-surface);color:var(--selected-text)}
.format-choice input,.revision-component-list input{accent-color:var(--accent)}
.format-choice small{font-size:12px;color:var(--muted)}
.brief-label{font-size:14px}.brief-label small{font-size:12px;color:var(--studio-dim)}
.brief-note,.upload-confirm-note,.upload-guidance p{color:var(--muted);font-size:12px;line-height:1.75}
.upload-guidance h3{font-size:14px;color:var(--ink)}
.selected-summary{background:var(--selected-surface);color:var(--ink);font-size:12px}
.selected-summary span{color:var(--muted)}
.file-name{color:var(--ink)}
.file-info{min-width:0;max-width:100%}
.file-info .file-name{white-space:normal;overflow-wrap:anywhere;line-height:1.55;text-overflow:clip}
.file-name-disclosure{min-width:0;width:100%}
.file-name-disclosure summary{cursor:pointer;list-style:none;min-height:44px;border-radius:4px}
.file-name-disclosure summary::-webkit-details-marker{display:none}
.file-name-disclosure .file-name{display:block}
.file-name-expand,.file-name-collapse{display:inline-block;color:var(--accent);font-size:12px;font-weight:500;margin-top:5px;text-decoration:underline;text-underline-offset:3px}
.file-name-collapse,.file-name-disclosure[open] .file-name-expand{display:none}
.file-name-disclosure[open] .file-name-collapse{display:inline-block}
.file-info .file-name-full{margin:10px 0 0;font-size:13px;line-height:1.65;overflow-wrap:anywhere;white-space:normal;color:var(--ink);text-align:left}
.filter-button{border-color:var(--line);background:transparent;color:var(--muted);font-size:13px}
.filter-button.active{border-color:var(--selected-border);background:var(--selected-surface);color:var(--accent)}
.filter-button:hover{background:var(--studio-raised)}
.job-row{background:var(--white);border-color:var(--line);border-radius:10px;padding:20px}
.job-row:hover{background:var(--surface-hover);border-color:var(--border-strong);box-shadow:none}
.job-row h3{color:var(--ink);font-size:16px}
.job-row-copy{min-width:0}
.job-row-copy h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.job-row p,.row-right,.job-row .timestamp{font-size:12px;color:var(--muted)}
.row-arrow{color:var(--studio-dim)}
.job-thumb{background:var(--surface-canvas);border-color:var(--line)}
.status-overview{background:var(--white);border-color:var(--line);box-shadow:none}
.status-heading,.status-name{color:var(--ink)}
.status-description,.job-stat span,.stage-item{color:var(--muted);font-size:12px}
.job-stats{border-color:var(--line)}
.stage-item:after{background:var(--line)}
.stage-dot{background:var(--surface-panel);border-color:var(--line);color:var(--muted)}
.stage-item.active .stage-dot{background:var(--selected-surface);color:var(--selected-text);border-color:var(--selected-border)}
.stage-item.done .stage-dot{background:var(--success-surface);color:var(--success-text);border-color:var(--success-border)}
.empty-state,.no-preview{background:var(--surface-field);color:var(--muted);border-color:var(--line)}
.empty-state h2,.empty-state h3,.no-preview h3{color:var(--ink)}
.empty-state p,.no-preview p{color:var(--muted);font-size:13px}
.subtle-back{color:var(--muted);font-size:12px}
.detail-meta{color:var(--studio-dim);font-size:12px}
.quality-inline{gap:6px}
.preview-card,.component-card,.text-row,.review-note-card,.issue-card{background:var(--white);border-color:var(--line);box-shadow:none}
.preview-header{border-color:var(--line);background:var(--surface-panel)}
.preview-header h3,.component-info h3{color:var(--ink);font-size:13px}
.preview-header span,.component-info p{font-size:12px;color:var(--muted)}
.preview-canvas{background:var(--surface-canvas)}
.result-note,.section-caption,.review-note-card p,.issue-card p,.detail-readonly-note,.project-next-step{font-size:12px;color:var(--muted)}
.result-tabs{border-color:var(--line)}
.result-tab{color:var(--muted);font-size:13px}
.result-tab.active{color:var(--accent);border-color:var(--accent)}
.result-tab:hover{color:var(--ink)}
.download-panel{background:var(--surface-panel);border-color:var(--line);color:var(--ink)}
.download-panel p{color:var(--muted);font-size:12px}
.download-panel h3{font-size:15px}
.component-tools{font-size:12px;color:var(--muted)}
.component-image.black{background:#000}.component-image.white{background:#fff}
.checker{background-color:#f2f2f2;background-image:linear-gradient(45deg,#dadada 25%,transparent 25%),linear-gradient(-45deg,#dadada 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dadada 75%),linear-gradient(-45deg,transparent 75%,#dadada 75%)}
.swatch-button{border-color:var(--line);background:var(--surface-panel);color:var(--ink);font-size:12px;min-width:32px;height:30px}
.swatch-button.active{outline:2px solid var(--accent)}
.text-row-header label,.text-row-header .confidence,.review-note-card label,.review-note-card .saved-at{font-size:12px;color:var(--muted)}
.font-candidate{background:var(--surface-raised);color:var(--text-secondary);font-size:12px}
.issue-icon{background:var(--warning-surface);color:var(--warning-text)}
.issue-card.blocker .issue-icon{background:var(--error-surface);color:var(--error-text)}
.issue-card h3{font-size:14px;color:var(--ink)}
.issue-card .issue-label{color:var(--studio-dim);font-size:12px}
.interactive-player{background:var(--white);border-color:var(--line);box-shadow:none}
.interactive-toolbar{background:var(--surface-panel);border-color:var(--line);color:var(--ink)}
.interactive-toolbar-label>svg{color:var(--text-secondary)}
.interactive-toolbar-label{font-size:13px}
.interactive-phase{background:var(--surface-raised);color:var(--text-secondary);font-size:11px}
.interactive-phase.live{background:var(--success-surface);color:var(--success-text)}
.interactive-phase.live:before{background:var(--success-text)}
.interactive-stage,.unity-interactive-frame{background:#0f120c}
.interactive-cover{background:var(--surface-field);color:var(--ink)}
.interactive-cover-card{background:var(--floating-surface);border-color:var(--line);border-radius:10px}
.interactive-cover-icon{background:var(--surface-raised);color:var(--text-secondary)}
.interactive-cover h2{color:var(--ink)}
.interactive-cover p{color:var(--text-secondary);font-size:13px}
.interactive-cover progress{accent-color:var(--accent)}
.interactive-status-row{background:var(--surface-panel);border-top:1px solid var(--line)}
.interactive-status{font-size:12px;color:var(--text-secondary)}
.interactive-status.has-error{color:var(--error-text)}
.interactive-player.is-focused{box-shadow:0 0 0 30px var(--shadow-strong),0 18px 60px var(--shadow-strong)}
.interactive-guide{background:var(--surface-panel);border-color:var(--line)}
.interactive-guide h2,.interactive-guide h3{color:var(--ink)}
.interactive-guide p,.interactive-guide .section-kicker,.interactive-guide li p,.interactive-log,.interactive-log li,.interactive-local-note{color:var(--muted);font-size:12px}
.guide-step{background:var(--surface-raised);border-color:var(--line);color:var(--text-secondary);font-size:12px}
.interactive-live-card{background:var(--surface-panel);border-color:var(--line)}
.interactive-live-card p{color:var(--text-secondary);font-size:12px}
.interactive-local-note{border-color:var(--line)}
.interactive-teaser{background:var(--surface-panel);border-color:var(--line);color:var(--ink)}
.interactive-teaser:hover{background:var(--surface-hover);border-color:var(--border-strong)}
.interactive-teaser p,.interactive-teaser .section-kicker{color:var(--muted);font-size:12px}
.teaser-action{color:var(--accent);font-size:12px}
.preview-case-card{background:var(--white);border-color:var(--line)}
.preview-case-card:hover{border-color:var(--border-strong)}
.preview-case-body p{font-size:13px;color:var(--muted)}
.preview-case-chip{background:var(--surface-field);border-color:var(--line);color:var(--text-secondary);font-size:12px}
.preview-case-chip.active{background:var(--selected-surface);border-color:var(--selected-border);color:var(--selected-text)}
.case-live-review{gap:18px;margin-top:8px}
.case-result-pane{background:var(--surface-panel);border-color:var(--line);padding:16px;border-radius:10px;box-shadow:none}
.case-result-pane .result-tab{font-size:12px;padding:10px 2px}
.case-result-pane .component-info .button{font-size:12px}
.case-drawer-header{border-color:var(--line)}
.case-result-content{scrollbar-color:var(--border-strong) var(--surface-panel)}
.case-guide,.case-process{background:var(--surface-panel);border-color:var(--line)}
.case-guide>summary,.case-process>summary{font-size:12px;color:var(--muted)}
#case-review-toggle{border-color:var(--line);background:var(--surface-raised);color:var(--text-secondary)}
#case-review-toggle:hover{background:var(--surface-hover)}
.engine-switcher{background:var(--surface-field);border-color:var(--line);padding:6px 12px}
.engine-tab{color:var(--text-secondary);font-size:12px;padding:7px 13px;border-radius:5px}
.engine-tab:hover{background:var(--surface-hover);color:var(--ink)}
.engine-tab.active{background:var(--selected-surface);border-color:var(--selected-border);color:var(--selected-text)}
.engine-tab:focus-visible{outline-color:var(--accent)}
.engine-name,.engine-switch-note{color:var(--muted);font-size:11px}
.case-live-review .interactive-toolbar{padding:8px 12px}
.case-live-review .interactive-toolbar-label{font-size:12px}
.case-live-review .interactive-player-actions .button{font-size:12px;padding:7px 10px}
.case-live-review .interactive-status-row{min-height:28px;padding:5px 12px}
.case-live-review .interactive-status{font-size:11px}
.workspace:has(.case-live-review){padding-top:14px;padding-bottom:12px}
.main-shell:has(.case-live-review)>.topbar{height:48px}
.workspace:has(.case-live-review) .page-header{margin-bottom:8px}
.workspace:has(.case-live-review) .detail-heading{font-size:21px!important}
.workspace:has(.case-live-review) .detail-meta{font-size:12px;margin-top:3px}
.revision-component-list{border-color:var(--line)}
.revision-component-list legend,.revision-component-list label{font-size:12px;color:var(--muted)}
.revision-card{background:var(--surface-raised);border-color:var(--line)}
.revision-card-title{font-size:13px}.revision-card-title>span,.revision-scope{color:var(--muted);font-size:12px}
.revision-note-text{font-size:14px}
.operator-reply{background:var(--surface-raised);border-color:var(--border-strong);font-size:13px;color:var(--ink)}
.operator-reply strong{font-size:12px}
.candidate-result,.quality-details{border-color:var(--line)}
.quality-details>summary{color:var(--accent);font-size:13px}
.delivery-version{background:var(--surface-raised);border-color:var(--line)}
.delivery-version .section-kicker{font-size:12px;color:var(--muted)}
.delivery-version code{color:var(--accent);font-size:12px}.delivery-version p{color:var(--muted);font-size:12px}
.delivery-file{background:var(--surface-raised);border-color:var(--line)}
.delivery-file h4{font-size:14px}.delivery-file p{font-size:12px;color:var(--muted)}
.delivery-file .button{font-size:12px}
.connection-banner{background:var(--warning-surface);border-color:var(--warning-border);color:var(--warning-text);font-size:13px}
.toast{background:var(--surface-raised);border:1px solid var(--line);color:var(--ink);font-size:13px;box-shadow:0 8px 28px var(--shadow-color)}
.toast.error{background:var(--error-surface);border-color:var(--error-border)}
.image-dialog{background:var(--surface-field);border-color:var(--line);color:var(--ink);border-radius:10px}
.image-dialog::backdrop{background:var(--overlay-surface);backdrop-filter:none}
.image-dialog-bar{border-color:var(--line);font-size:14px}
.image-tools .button,.image-tools .icon-button{color:var(--ink);border-color:var(--line)}
.image-tools .button:hover,.image-tools .icon-button:hover{background:var(--surface-hover)}
.commerce-page{--commerce-muted:var(--muted)}
.commerce-banner,.commerce-customer-banner{background:var(--surface-panel);border-color:var(--line);color:var(--text-secondary)}
.commerce-banner p,.commerce-customer-banner p{color:var(--muted);font-size:13px}
.commerce-plan{background:var(--surface-panel);border-color:var(--line);border-radius:12px;box-shadow:none;padding:28px}
.commerce-plan-featured{background:var(--surface-raised);border-color:var(--border-strong)}
.commerce-plan h2{font-size:23px;color:var(--ink)}
.commerce-plan-top{margin-bottom:20px}.commerce-plan-top>svg{color:var(--text-secondary)}
.commerce-plan-number{font-size:12px;color:var(--studio-dim)}
.commerce-plan-description{font-size:13px;line-height:1.8;color:var(--muted);min-height:48px}
.commerce-price{margin:24px 0 26px}.commerce-price strong{font-size:31px;line-height:1.35;color:var(--ink)}
.commerce-price span,.commerce-price small{font-size:12px;color:var(--studio-dim)}
.commerce-features{border-color:var(--line);gap:13px;padding-top:24px}
.commerce-features li{font-size:13px;color:var(--text-secondary)}.commerce-features svg{color:var(--text-secondary)}
.commerce-plan-bottom>small,.commerce-scope{font-size:12px;color:var(--muted)}
.commerce-customer-expectations{border-color:var(--line);background:transparent}
.commerce-expectation-grid article{background:transparent;border-color:var(--line)}
.commerce-expectation-grid h3{font-size:16px;color:var(--ink)}
.commerce-expectation-grid p,.commerce-customer-bottom p{font-size:13px;color:var(--muted)}
.commerce-customer-bottom{background:transparent;border-color:var(--line)}
.commerce-pricing-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0 24px}
.commerce-currency-picker{display:inline-flex;gap:3px;border:1px solid var(--line);padding:4px;border-radius:7px;background:var(--surface-field);width:max-content;max-width:100%}
.commerce-currency-option{appearance:none;background:transparent;color:var(--text-secondary);border:0;border-radius:4px;padding:8px 14px;font-size:13px;white-space:nowrap}
.commerce-currency-option.active{background:var(--selected-surface);color:var(--selected-text)}
.commerce-currency-option:hover{color:var(--ink)}
.commerce-binding,.commerce-workbench,.commerce-snapshot,.commerce-state-panel,.commerce-events,.commerce-order-row{background:var(--surface-panel);border-color:var(--line)}
.commerce-workbench>summary,.commerce-snapshot-top{background:var(--surface-raised);border-color:var(--line)}
.commerce-workbench[open]>summary{border-color:var(--selected-border)}
.commerce-workbench-intro p,.commerce-section-title p,.commerce-binding p,.commerce-field small,.commerce-editor-footer p,.commerce-formula,.commerce-footnote,.commerce-snapshot-note,.commerce-state-panel>p{font-size:12px;color:var(--muted)}
.commerce-field>span,.commerce-snapshot-grid dd{font-size:13px;color:var(--text-secondary)}
.commerce-price-editor,.commerce-state-item+.commerce-state-item{border-color:var(--line)}
.commerce-calculation-empty{background:var(--surface-panel);border-color:var(--line);color:var(--text-secondary)}
.commerce-calculation-result{background:var(--success-surface);border-color:var(--success-border)}
.commerce-calculation-result strong{color:var(--success-text)}.commerce-calculation-result span,.commerce-calculation-result small,.commerce-calculation-result p{color:var(--success-text)}
.commerce-badge-neutral{background:var(--info-surface);border-color:var(--info-border);color:var(--info-text)}
.commerce-badge-good{background:var(--success-surface);border-color:var(--success-border);color:var(--success-text)}
.commerce-badge-danger{background:var(--error-surface);border-color:var(--error-border);color:var(--error-text)}
.commerce-badge-warm{background:var(--warning-surface);border-color:var(--warning-border);color:var(--warning-text)}
.commerce-order-row:hover{border-color:var(--border-strong)}
.commerce-order-name p,.commerce-order-name small,.commerce-order-statuses,.commerce-snapshot-grid dt,.commerce-state-item span:not(.commerce-badge),.commerce-events li small,.commerce-events li p{color:var(--muted);font-size:12px}
.commerce-order-icon,.commerce-step{background:var(--surface-raised);border-color:var(--line);color:var(--text-secondary)}
.commerce-snapshot-top p,.commerce-snapshot-price span{font-size:12px;color:var(--muted)}
.commerce-events li strong{font-size:13px;color:var(--text-secondary)}
.commerce-inline-link{color:var(--accent)}.commerce-muted{font-size:12px;color:var(--muted)}
.operator-edit label{color:var(--muted);font-size:13px}
/* The current player height remains calculated by fitCaseReview, not by fixed art ratios. */
@media(min-width:1600px){.studio-showcase-panel{height:510px}.studio-public .workspace{max-width:1540px}.customer-hero{padding-bottom:80px}.customer-hero h1{font-size:62px}}
@media(max-width:1200px){
 .main-shell{margin-left:0}.workspace{padding:28px}.topbar{padding-inline:28px}
 .studio-site-header .navigation{gap:3px}.studio-site-header .nav-item{padding:8px 10px;font-size:13px}.studio-site-header .topbar-right{gap:10px}
 .customer-hero{grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr);gap:28px}.customer-hero h1{font-size:40px}.studio-showcase-panel{height:410px}
 .example-visual{height:250px}.commerce-plan{padding:24px 20px}
}
@media(max-width:1100px){
 .case-result-pane{inset:12px 12px 12px auto;width:min(440px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - 24px);box-shadow:-18px 0 50px var(--shadow-strong);animation-duration:var(--studio-motion)}
 .case-drawer-backdrop:not([hidden]){background:var(--drawer-overlay)}
 .studio-public .workspace{padding-inline:28px}.studio-public .studio-site-header{padding-inline:28px}
 .studio-site-header .brand-name{font-size:17px}.studio-header-upload{font-size:12px;padding:9px 11px}
 .studio-public .topbar-right{gap:8px}.studio-site-header .navigation{gap:0}
}
@media(max-width:900px){
 .studio-site-header .nav-item{font-size:12px;padding:8px}.studio-site-header .brand-mark{display:none}
 .customer-hero{grid-template-columns:1fr;gap:30px;padding-bottom:40px}.customer-hero-copy{max-width:620px}.customer-hero h1{font-size:46px;max-width:620px}.customer-hero h1>span{display:inline}.customer-hero h1>span+span{margin-left:.12em}
 .customer-hero .hero-subtitle{max-width:600px}.hero-ctas{margin-top:24px}.studio-format-line{margin-top:22px}.hero-caption{margin-top:15px;max-width:100%}
 .studio-showcase-panel{height:480px}.studio-showcase{max-width:100%}.example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-examples .example-card:last-child{display:none}
 .delivery-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}.page-header h1{font-size:28px}
 .commerce-plan-grid{grid-template-columns:1fr}.commerce-plan-description{min-height:0}
}
@media(max-width:700px){
 .sidebar{display:none}.main-shell{margin-left:0}.app-shell{display:block}.topbar{height:56px;padding-inline:16px;gap:12px}.topbar-right{gap:10px}
 .studio-mobile-home{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}.studio-mobile-home svg{width:15px;height:15px}
 .breadcrumbs{font-size:12px}.workspace{padding:24px 16px}.studio-public .workspace{padding:28px 20px}
 .studio-public .studio-site-header{height:auto;min-height:72px;display:grid;grid-template-columns:1fr auto;gap:12px;padding:16px 20px 10px}
 .studio-site-header .brand-mark{display:block}.studio-site-header .brand-name{font-size:19px;display:block}.studio-site-header .brand-name small{display:block;margin-top:3px;font-size:9px}
 .studio-site-header .navigation{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;width:100%;margin:0;padding-top:5px;gap:4px}
 .studio-site-header .nav-item{font-size:13px;flex:1;justify-content:center;padding:8px;border-radius:5px}
 .studio-site-header .topbar-right{justify-self:end;grid-column:2;grid-row:1}.studio-header-upload{display:none}
 .customer-hero{gap:28px;padding-bottom:36px}.customer-hero h1{font-size:36px;line-height:1.3;margin-bottom:20px}.customer-hero h1>span{display:block}.customer-hero h1>span+span{margin-left:0}
 .studio-eyebrow{font-size:11px;margin-bottom:22px}.customer-hero .hero-subtitle{font-size:14px}.hero-ctas{gap:8px}.hero-ctas .button{font-size:13px;padding:11px 14px}
 .hero-caption{font-size:12px}.studio-format-line{gap:18px;font-size:11px}.studio-showcase{padding:15px 13px 12px;border-radius:10px}
 .studio-showcase-panel{height:400px;padding:9px}.studio-showcase-heading{margin-bottom:13px}.studio-showcase-name{font-size:13px}.studio-showcase-tabs{margin-bottom:12px}.studio-showcase-tab{font-size:12px;padding:6px 14px}
 .studio-showcase-footer{font-size:10px;gap:8px}.studio-showcase-footer a{font-size:11px}.studio-parts-stage{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px}.studio-part{padding:8px}
 .section-line h2{font-size:20px}.section-line .text-link{font-size:12px}.section-line{align-items:center;gap:8px}
 .studio-selected-work{padding:26px 0 32px}.example-grid{gap:14px}.example-visual{height:220px;padding:12px}.example-body{padding:14px}.example-body h3{font-size:14px}.example-meta{font-size:11px}.example-interactive-link{font-size:11px}
 .delivery-story{padding:26px 0}.delivery-steps h3{font-size:15px}.delivery-steps p{font-size:12px}.delivery-steps{gap:28px 20px}.delivery-steps article{padding:0}
 .scope-split{gap:20px}.work-footer{font-size:11px;gap:16px}.work-footer>span{max-width:60%}
 .upload-confirm-grid{gap:20px}.upload-page .dropzone{min-height:300px}.upload-brief{padding:20px}.format-choice{font-size:12px}.brief-label{font-size:13px}
 .page-header{gap:15px}.page-header h1{font-size:26px}.job-row{padding:15px;column-gap:12px;row-gap:8px;grid-template-columns:52px minmax(0,1fr) 16px;grid-template-areas:"thumb copy arrow" "thumb meta meta";align-items:start}.job-row h3{font-size:14px}.job-row p,.row-right{font-size:11px}.filter-button{font-size:12px}
 .job-row .job-thumb{grid-area:thumb}.job-row-copy{grid-area:copy}.job-row .row-arrow{grid-area:arrow;display:block;align-self:center}
 .job-row .row-right{grid-area:meta;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;text-align:left;min-width:0}
 .job-row .timestamp{white-space:nowrap}.job-row .badge{white-space:normal;overflow-wrap:anywhere;max-width:100%}
 .workspace:has(.case-live-review){padding:10px 12px 12px}.main-shell:has(.case-live-review)>.topbar{height:48px}.workspace:has(.case-live-review) .page-header{flex-direction:row;align-items:center;gap:8px}.workspace:has(.case-live-review) .detail-heading{font-size:18px!important}
 .workspace:has(.case-live-review) .page-heading-group{width:auto;min-width:0}.workspace:has(.case-live-review) .header-actions{width:auto;gap:5px}.workspace:has(.case-live-review) .header-actions .button{font-size:11px;padding:6px 8px}
 .workspace:has(.case-live-review) .detail-meta{font-size:11px;gap:7px}.quality-inline .tiny-pill{font-size:10px;padding:3px 6px}
 .case-live-review{margin-top:6px}.case-live-review .interactive-toolbar-label{font-size:11px}.case-live-review .interactive-player-actions .button{font-size:11px;min-height:30px;padding:6px 8px}
 .case-live-review .interactive-toolbar{padding:7px 9px;gap:6px}.case-live-review .interactive-status{font-size:10px}.engine-tab{font-size:11px;padding:6px 9px}.engine-switcher{padding:5px 8px}
 .case-result-pane{inset:8px 8px 8px auto;max-height:calc(100dvh - 16px);width:min(420px,calc(100vw - 16px));padding:14px}
 .case-result-pane .result-tab{font-size:12px}.case-result-content .component-image{height:145px}
 .commerce-pricing-intro{flex-direction:column;align-items:flex-start;gap:15px}.commerce-plan{padding:24px}.commerce-price strong{font-size:29px}.commerce-plan h2{font-size:23px}
 .image-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.image-dialog-bar{font-size:12px;padding-inline:12px}.image-tools{gap:5px}.image-tools .button{font-size:11px}
}
@media(max-width:440px){
 .example-grid{grid-template-columns:1fr}.example-visual{height:320px}.example-grid.home-examples .example-card:last-child{display:block}.studio-showcase-panel{height:370px}.studio-verified{font-size:10px}
 .studio-site-header .nav-item{font-size:12px;padding:7px 4px}.studio-site-header .brand-name{font-size:18px}.language-control select,.studio-language-control select,.language-select{max-width:110px}
 .workspace:has(.case-live-review) .detail-meta{display:none}.workspace:has(.case-live-review) .page-header{margin-bottom:6px}.workspace:has(.case-live-review) .detail-heading{font-size:16px!important}
 .case-live-review .interactive-toolbar{align-items:center}.case-live-review .interactive-player-actions{width:auto;gap:4px}.case-live-review .interactive-player-actions .button{font-size:10px;padding:5px 6px;gap:4px}.case-live-review .interactive-player-actions svg{width:14px;height:14px}.interactive-toolbar-label .engine-name{display:none}
 .engine-tabs{width:100%}.engine-tab{padding:6px 7px;font-size:11px}.engine-switch-note{display:none}.case-live-review .interactive-status-row{padding:4px 8px}
 .hero-ctas .button{font-size:12px;padding:11px 12px}.studio-eyebrow{font-size:10px}.studio-format-line{gap:16px;font-size:11px}.customer-hero h1{font-size:34px}
 .commerce-expectation-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.example-card:hover{transform:none}}
/* Low-frequency runtime controls stay next to the player without taking a full row. */
/* A single navigation layout across marketing, project and preview routes. */
.app-shell.studio-topnav{display:block}
.app-shell.studio-topnav>.main-shell{margin-left:0;width:100%}
.app-shell.studio-topnav>.main-shell>.studio-site-header{height:72px;min-height:72px;display:flex;position:sticky;top:0;z-index:30;gap:24px;padding:0 clamp(20px,3vw,48px);border-bottom:1px solid var(--line);background:var(--paper)}
.studio-topnav .studio-site-header .brand{margin:0;flex:none}
.studio-topnav .studio-site-header .navigation{flex-direction:row;gap:8px;flex:none;margin:0 auto}
.studio-topnav .studio-site-header .nav-item{white-space:nowrap;min-height:40px;padding:9px 12px}
.studio-topnav .studio-site-header .nav-item.active{background:var(--selected-surface);color:var(--accent)}
.studio-topnav .studio-site-header .topbar-right{gap:10px;flex:none}
.studio-topnav .studio-header-upload{display:inline-flex;font-size:12px;padding:9px 13px}
.studio-header-internal{flex:none;color:var(--studio-dim)}
.studio-header-internal.active{color:var(--accent);border-color:var(--selected-border)}
@media(max-width:1000px){
 .app-shell.studio-topnav>.main-shell>.studio-site-header{gap:14px;padding-inline:20px}
 .studio-topnav .studio-site-header .navigation{gap:0}
 .studio-topnav .studio-site-header .nav-item{padding:8px 9px;font-size:13px}
 .studio-topnav .studio-site-header .topbar-right{gap:7px}
 .studio-topnav .studio-site-header .brand-name{font-size:17px}
}
@media(max-width:800px){
 .app-shell.studio-topnav>.main-shell>.studio-site-header{height:auto;min-height:104px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:10px 16px 6px}
 .studio-topnav .studio-site-header .brand{grid-column:1;grid-row:1;gap:6px}
 .studio-topnav .studio-site-header .brand-mark{display:none}
 .studio-topnav .studio-site-header .brand-name{display:block;font-size:18px}
 .studio-topnav .studio-site-header .brand-name small{display:none}
 .studio-topnav .studio-site-header .topbar-right{grid-column:2;grid-row:1;justify-self:end;gap:7px}
 .studio-topnav .studio-site-header .navigation{grid-column:1/-1;grid-row:2;width:100%;min-width:0;margin:0;padding:0;justify-content:space-between;gap:4px}
 .studio-topnav .studio-site-header .nav-item{flex:1;justify-content:center;padding:7px 6px;font-size:12px;min-height:36px;border-radius:6px}
 .studio-topnav .studio-header-upload{padding:7px;width:34px;min-height:34px}
 .studio-topnav .studio-header-upload span{display:none}
 .studio-topnav .language-select{max-width:110px}
}
/* Account tools need their own row on phones; do not clip operator actions. */
@media(max-width:480px){
 .app-shell.studio-topnav>.main-shell>.studio-site-header{grid-template-columns:minmax(0,1fr);gap:6px;padding-top:8px}
 .studio-topnav .studio-site-header .brand{grid-column:1;grid-row:1}
 .studio-topnav .studio-site-header .topbar-right{grid-column:1;grid-row:2;min-width:0;width:100%;gap:4px;justify-content:space-between;flex-wrap:wrap}
 .studio-topnav .studio-site-header .navigation{grid-column:1;grid-row:3}
 .studio-topnav .studio-site-header .language-control{min-width:0}
 .studio-topnav .studio-site-header .language-control select{max-width:108px}
}
.player-more{position:relative;display:inline-flex;align-items:center;flex:none}
.player-more>summary{display:inline-flex;align-items:center;justify-content:center;gap:6px;list-style:none;cursor:pointer;min-height:34px;padding:7px 10px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:12px;white-space:nowrap}
.player-more>summary::-webkit-details-marker{display:none}
.player-more>summary:hover,.player-more[open]>summary{background:var(--studio-hover);color:var(--ink)}
.player-more>summary svg{width:15px;height:15px}
.player-more-menu{position:absolute;z-index:25;right:0;top:calc(100% + 7px);min-width:164px;max-width:min(260px,calc(100vw - 32px));padding:6px;display:flex;flex-direction:column;gap:3px;background:var(--surface-raised);border:1px solid var(--line);border-radius:8px;box-shadow:0 14px 34px var(--shadow-strong)}
.player-more:not([open]) .player-more-menu{display:none}
.case-live-review .player-more-menu .button,.player-more-menu .button{width:100%;justify-content:flex-start;border:0;background:transparent;font-size:12px;min-height:36px;padding:8px 10px;color:var(--ink)}
.player-more-menu .button:hover{background:var(--surface-hover)}
@media(max-width:440px){.player-more>summary{min-height:30px;padding:5px 7px;font-size:11px}.player-more-menu{right:0;min-width:145px}}
/* Legacy utility states share the same dark surfaces; asset inspection backgrounds stay literal. */
.notice-bar,.commerce-customer-notice,.commerce-customer-note{background:var(--surface-raised);color:var(--text-secondary);border-color:var(--line);font-size:12px}
.notice-bar p,.commerce-customer-notice p{color:var(--muted);font-size:12px}
.inline-error{background:var(--error-surface);color:var(--error-text);border-color:var(--error-border)}
.supports{background:var(--white)}
.support-feature h3{color:var(--ink);font-size:14px}.support-feature p,.supports .scope-note{color:var(--muted);font-size:12px}.supports .scope-note{border-color:var(--line)}
.file-preview img{background:var(--surface-field)}
.example-visual.tone-0,.example-visual.tone-1,.example-visual.tone-2{background:var(--surface-canvas)}
.example-number{background:var(--floating-surface);color:var(--text-secondary);border-color:var(--line);font-size:11px}
.example-body .example-open{background:var(--surface-raised);color:var(--text-secondary);border-color:var(--line)}
.example-open:hover{background:var(--surface-hover);color:var(--ink)}
.badge.ready{background:var(--success-surface);color:var(--success-text);border-color:var(--success-border)}
.badge.needs_review,.quality-inline .tiny-pill.pending{background:var(--warning-surface);color:var(--warning-text);border-color:var(--warning-border)}
.badge.analyzing,.badge.building,.badge.queued{background:var(--info-surface);color:var(--info-text);border-color:var(--info-border)}
.badge.failed{background:var(--error-surface);color:var(--error-text);border-color:var(--error-border)}
.badge.cancelled,.badge.archived{background:var(--surface-raised);color:var(--text-secondary);border-color:var(--line)}
.empty-state .empty-icon{background:var(--surface-raised);color:var(--text-secondary)}
.stage-item:not(:last-child):after{background:var(--surface-raised)}
.stage-item .stage-indicator{background:var(--surface-raised);border-color:var(--line);color:var(--text-secondary)}
.stage-item.done .stage-indicator{background:var(--success-surface);border-color:var(--success-border);color:var(--success-text)}
.stage-item.active .stage-indicator{background:var(--selected-surface);border-color:var(--selected-border);color:var(--selected-text)}
.stage-item.blocked .stage-indicator,.stage-item.failed .stage-indicator{background:var(--error-surface);border-color:var(--error-border);color:var(--error-text)}
.result-tab .counter{background:var(--surface-raised);color:var(--text-secondary)}
.preview-canvas .zoom-hint{background:var(--floating-surface);color:var(--ink);border-color:var(--line);font-size:12px}
.commerce-market{background:var(--surface-panel);border-color:var(--line);color:var(--ink)}
.commerce-market.active{background:var(--selected-surface);border-color:var(--selected-border)}
.commerce-market-top>span,.commerce-market small,.commerce-market-channels{color:var(--muted);font-size:12px}
.commerce-currency-price{background:var(--surface-panel);border-color:var(--line)}
.commerce-currency-price.active{background:var(--selected-surface);border-color:var(--selected-border)}
.commerce-currency-price span{color:var(--muted)}
.commerce-events li:not(:last-child):before{background:var(--surface-raised)}
.commerce-event-dot{background:var(--surface-raised);border-color:var(--line);box-shadow:0 0 0 1px var(--shadow-color)}
/* Engine selection and runtime actions share one toolbar. The middle grid track
   consumes the measured remaining viewport height without shrinking its canvas. */
.case-live-review .interactive-player:not(.is-focused),.interactive-player.is-focused{
 display:grid;grid-template-rows:auto minmax(0,1fr) auto;
}
.case-live-review .interactive-stage,.interactive-player.is-focused .interactive-stage{min-height:0;height:auto;max-height:none}
.interactive-toolbar .interactive-toolbar-label{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0}
.interactive-toolbar .engine-switcher{padding:0;background:transparent;border:0;min-width:0;flex:none;gap:0}
.interactive-toolbar .engine-tabs{gap:3px;width:auto;flex:none}
.interactive-toolbar .engine-tab{padding:7px 10px;min-height:32px;font-size:12px;flex:none}
.interactive-toolbar .engine-switch-note{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.interactive-toolbar .interactive-phase{margin:0;white-space:nowrap;font-size:11px}
.interactive-toolbar .engine-name[hidden]{display:none!important}
.interactive-toolbar .interactive-player-actions,.case-live-review .interactive-toolbar .interactive-player-actions{
 width:auto;display:flex;gap:6px;align-items:center;flex-wrap:nowrap;margin-left:auto;
}
.case-live-review .interactive-toolbar .interactive-player-actions .button{flex:none;min-height:32px}
@media(max-width:620px){
 .interactive-toolbar .interactive-toolbar-label{width:100%;justify-content:space-between;gap:7px;flex-wrap:wrap}
 .interactive-toolbar .engine-switcher{flex:0 1 auto;max-width:100%}
 .interactive-toolbar .engine-tabs{flex-wrap:wrap;max-width:100%}
 .interactive-toolbar .interactive-player-actions,.case-live-review .interactive-toolbar .interactive-player-actions{width:100%;justify-content:flex-end;margin:0;gap:5px;flex-wrap:wrap}
 .case-live-review .interactive-toolbar .interactive-player-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:stretch}
 .case-live-review .interactive-toolbar #mailbox-start:not([hidden]){grid-column:1/-1}
 .case-live-review .interactive-toolbar .interactive-player-actions>.button{min-width:0;max-width:100%;min-height:38px;white-space:normal;line-height:1.35;overflow-wrap:anywhere}
 .interactive-toolbar .player-more{min-width:0;align-self:stretch}
 .interactive-toolbar .player-more>summary{min-height:38px;height:100%;box-sizing:border-box}
 .interactive-toolbar .engine-tab{font-size:11px;padding:6px 8px;min-height:30px}
 .interactive-toolbar .interactive-phase{font-size:10px}
 .case-live-review .interactive-toolbar{gap:5px;padding:7px 9px}
}
/* Phone details stack the title above delivery actions. Long localized download
   labels wrap inside their own button instead of taking width from the title. */
@media(max-width:620px){
 .workspace:has(.case-live-review) .page-header{
  flex-direction:column;align-items:stretch;gap:10px;width:100%;min-width:0;
 }
 .workspace:has(.case-live-review) .page-heading-group{
  flex:none;width:100%;min-width:0;max-width:100%;
 }
 .workspace:has(.case-live-review) .detail-heading{
  width:100%;max-width:100%;font-size:18px!important;line-height:1.35;word-break:normal;overflow-wrap:anywhere;
 }
 .workspace:has(.case-live-review) .header-actions{
  display:flex;flex:none;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;width:100%;min-width:0;max-width:100%;gap:6px;
 }
 .workspace:has(.case-live-review) .header-actions .button{
  flex:1 1 120px;min-width:0;max-width:100%;min-height:40px;padding:8px;font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:center;
 }
 .workspace:has(.case-live-review) .header-actions .button svg{width:16px;height:16px;flex:none}
 .workspace:has(.case-live-review) .header-actions .icon-button{flex:0 0 34px;align-self:center}
}
/* Read-only examples state their purpose once, beside the create-project link. */
.workspace:has(.detail-readonly-note) .detail-meta{display:none}
.workspace:has(.detail-readonly-note) .page-header{margin-bottom:4px}
.workspace .detail-readonly-note{margin:3px 0;font-size:12px;line-height:1.5}
.workspace .detail-readonly-note .text-link{font-size:12px}

/* Product artwork is the focal point. Only the surrounding composition changes. */
.studio-showcase{padding:16px;border-radius:14px;background:var(--surface-panel);border-color:var(--line)}
.studio-showcase-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:40px;margin-bottom:14px}
.studio-showcase-toolbar .studio-showcase-heading{margin:0;gap:9px;flex-wrap:wrap;min-width:0}
.studio-showcase-toolbar .studio-showcase-name{color:var(--ink);font-size:14px}
.studio-showcase-toolbar .studio-verified{color:var(--muted);font-size:11px}
.studio-showcase-toolbar .studio-verified svg{color:var(--success-text)}
.studio-showcase-toolbar .studio-showcase-tabs{margin:0;flex:none;padding:3px;background:var(--surface-field);border-color:var(--line)}
.studio-showcase-toolbar .studio-showcase-tab{padding:7px 11px;min-height:30px;font-size:12px}
.studio-showcase-toolbar .studio-showcase-tab.active{color:var(--selected-text);background:var(--selected-surface)}
.studio-showcase-panel{height:clamp(390px,35vw,500px);padding:12px;background:var(--surface-canvas);border-radius:9px}
.studio-proof-composition{width:100%;height:100%;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1.75fr) minmax(112px,.85fr);gap:14px;align-items:stretch}
.studio-main-art{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;filter:none}
.studio-main-art img{display:block;width:100%;height:100%;object-fit:contain;filter:none}
.studio-component-rail{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:10px;min-width:0;min-height:0;padding:0}
.studio-evidence-part{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;min-height:0;gap:9px;margin:0;padding:12px 10px;border-radius:7px;background:var(--surface-panel);border:1px solid var(--line)}
.studio-evidence-part img{display:block;max-width:100%;width:100%;height:calc(100% - 24px);min-height:0;object-fit:contain;filter:none}
.studio-evidence-part span{font-size:11px;line-height:1.3;color:var(--muted);text-align:center}
.studio-parts-stage{grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:10px}
.studio-parts-stage>.studio-part{padding:12px;background:var(--surface-panel);border:1px solid var(--line);border-radius:7px}
.studio-parts-stage>.studio-part[data-part="panel"]{grid-column:1;grid-row:1/4}
.studio-parts-stage>.studio-part:last-child{grid-column:2/4}
.studio-parts-stage>.studio-part img{height:calc(100% - 20px);filter:none;object-fit:contain}
.studio-parts-stage.is-unfolding>.studio-part{animation:studio-part-unfold 220ms cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--part-index,0) * 45ms)}
@keyframes studio-part-unfold{from{opacity:0;transform:translateY(9px) scale(.975)}to{opacity:1;transform:none}}

/* A single cover link, with two reusable image layouts for all verified cases. */
.example-grid{gap:22px}
.example-card{position:relative;overflow:hidden;border-radius:10px;border-color:var(--line);background:var(--surface-panel);transition:transform var(--studio-motion),border-color var(--studio-motion),background var(--studio-motion)}
.example-card:hover{border-color:var(--border-strong);background:var(--surface-raised);transform:translateY(-2px)}
.example-card:focus-within{border-color:var(--accent)}
.example-card-link{display:block;height:100%;color:var(--ink);border-radius:9px}
.example-card-link:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.example-cover{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;aspect-ratio:4/3;overflow:hidden;min-width:0;background:var(--surface-canvas);padding:14px;gap:10px;border-bottom:1px solid var(--line)}
.example-cover-main{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;height:100%;width:100%}
.example-cover-main img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;filter:none;transform:none}
.example-cover-parts{display:none;min-width:0;min-height:0}
.example-cover.is-portrait.has-parts{grid-template-columns:minmax(0,1.65fr) minmax(62px,.75fr)}
.example-cover.is-portrait.has-parts .example-cover-parts{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;padding:0}
.example-cover-parts img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;filter:none;background:var(--surface-panel);border:1px solid var(--line);border-radius:5px;padding:6px}
.example-cover.is-landscape{padding:14px 10px}
.example-cover.is-landscape .example-cover-parts,.example-cover.is-image-only .example-cover-parts{display:none}
.example-cover.is-image-only{grid-template-columns:minmax(0,1fr)}
.example-card-link .example-body{padding:16px 17px 17px}
.example-card-link .example-body h3{font-size:15px;line-height:1.45;letter-spacing:-.015em;margin:0;overflow-wrap:anywhere}
.example-card-link .example-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;border:0;margin-top:9px;padding-top:0;font-size:11px;color:var(--muted)}
.example-card-link .example-meta .tiny-pill{background:transparent;border:0;color:var(--muted);padding:0;font-size:11px}
.example-card-link .example-meta .tiny-pill svg{width:12px;height:12px;color:var(--success-text)}
.example-card-link .example-formats{margin-top:11px;gap:10px;font-size:11px;line-height:1.4;color:var(--text-secondary)}
.example-cover-status{position:absolute;inset:10px 10px auto auto;max-width:calc(100% - 20px);display:flex;align-items:center;gap:7px;padding:7px 9px;border-radius:6px;border:1px solid var(--line);background:var(--floating-surface);color:var(--muted);font-size:11px;line-height:1.4;z-index:1}
.example-cover-status:empty{display:none}
.example-cover-status .button{font-size:11px;min-height:28px;padding:4px 7px}

@media(max-width:1200px){
 .studio-showcase-toolbar{gap:10px;align-items:flex-start}
 .studio-showcase-toolbar .studio-showcase-heading{flex-direction:column;align-items:flex-start;gap:3px}
 .studio-proof-composition{grid-template-columns:minmax(0,1.65fr) minmax(100px,.8fr);gap:10px}
 .studio-evidence-part{padding:10px 8px;gap:6px}
 .example-cover{padding:12px;gap:8px}
}
@media(max-width:900px){
 .example-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .studio-showcase-toolbar{align-items:center}
 .studio-showcase-toolbar .studio-showcase-heading{flex-direction:row;align-items:center;gap:10px}
 .studio-showcase-panel{height:500px}
 .studio-proof-composition{grid-template-columns:minmax(0,1.8fr) minmax(132px,.8fr);gap:16px}
}
@media(max-width:700px){
 .studio-showcase{padding:12px}
 .studio-showcase-toolbar{flex-wrap:wrap;gap:10px;margin-bottom:10px}
 .studio-showcase-toolbar .studio-showcase-heading{width:100%;justify-content:space-between;gap:10px}
 .studio-showcase-toolbar .studio-showcase-tabs{width:100%;justify-content:space-between}
 .studio-showcase-toolbar .studio-showcase-tab{flex:1;font-size:12px}
 .studio-showcase-panel{height:500px;padding:10px}
 .studio-proof-composition{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 100px;gap:12px}
 .studio-component-rail{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:8px}
 .studio-evidence-part{padding:8px 6px;gap:5px}
 .studio-evidence-part span{font-size:10px}
 .studio-evidence-part img{height:calc(100% - 19px)}
 .studio-parts-stage{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:repeat(5,minmax(0,1fr));gap:8px}
 .studio-parts-stage>.studio-part{padding:8px}
 .studio-parts-stage>.studio-part[data-part="panel"]{grid-column:1;grid-row:1/6}
 .studio-parts-stage>.studio-part:last-child{grid-column:2;grid-row:auto}
 .example-card-link .example-body{padding:14px}
 .example-card-link .example-body h3{font-size:14px}
 .example-cover{padding:10px;gap:7px}
 .example-cover.is-portrait.has-parts{grid-template-columns:minmax(0,1.5fr) minmax(50px,.75fr)}
 .example-cover-parts img{padding:5px}
}
@media(max-width:520px){
 .example-grid{grid-template-columns:1fr;gap:18px}
 .example-grid.home-examples .example-card:last-child{display:block}
 .studio-showcase-panel{height:470px;padding:8px}
 .studio-proof-composition{grid-template-rows:minmax(0,1fr) 92px;gap:10px}
 .example-cover{padding:16px;gap:12px}
 .example-cover.is-portrait.has-parts{grid-template-columns:minmax(0,1.65fr) minmax(82px,.75fr)}
 .example-card-link .example-body h3{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
 .studio-parts-stage.is-unfolding>.studio-part{animation:none!important;opacity:1;transform:none}
 .example-card,.example-card:hover{transition:none;transform:none}
}
.studio-proof-composition.is-image-only{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}

/* Active legacy utility and internal-commerce selectors with their own colors. */
.loading-state{color:var(--muted)}
.spinner{border-color:var(--border-strong);border-top-color:var(--accent)}
.detail-meta .separator{color:var(--muted)}
.job-stat strong{color:var(--ink)}
.stage-item.done{color:var(--success-text)}
.stage-item.running{color:var(--info-text)}
.stage-item.running .stage-indicator{background:var(--info-surface);border-color:var(--info-border);color:var(--info-text);box-shadow:0 0 0 4px var(--surface-raised)}
.stage-item.blocked{color:var(--warning-text)}
.stage-item.failed{color:var(--error-text)}
.stage-item small{color:var(--muted)}
.tabs-bar{border-color:var(--line)}
.result-tab.active:after{background:var(--accent)}
.preview-canvas.dark,.preview-case-art{background:var(--surface-canvas)}
.no-preview svg{color:var(--muted)}
.interactive-teaser-icon{border-color:var(--line)}
.preview-case-chip:hover{border-color:var(--border-strong)}
.commerce-workbench>summary svg,.commerce-section-title>svg,.commerce-expectation-grid article>svg{color:var(--accent)}
.commerce-workbench>summary>span:last-child,.commerce-workbench>summary:after{color:var(--muted)}
.commerce-orders-label strong{color:var(--ink)}
.commerce-orders-label>span,.commerce-order-row>svg{color:var(--muted)}
.commerce-market.active{box-shadow:inset 0 0 0 1px var(--selected-border)}
.commerce-market-choice{color:var(--selected-text)}
.commerce-dual-price .commerce-currency-price>span,.commerce-dual-price>small{color:var(--muted)}
.commerce-customer-plan .commerce-plan-bottom>small,.commerce-customer-section-heading p{color:var(--muted)}
.commerce-expectation-grid article+article{border-color:var(--line)}
