@font-face{font-family:Syne;src:url('/assets/fonts/syne.ttf') format('truetype');font-weight:400 800;font-display:swap}
@font-face{font-family:Manrope;src:url('/assets/fonts/manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{color-scheme:dark;--bg:#100e14;--surface:#241f2b;--surface-raised:#302937;--text:#f5f0f8;--muted:#c2b9cd;--dim:#b0a6bc;--line:#574c63;--accent:#efbeeb;--cyan:#8fe7e0;--ink:#25192e;--error:#ffc0c8;--display:Syne,sans-serif;--body:Manrope,sans-serif;--ease:cubic-bezier(.2,.75,.25,1);--motion-fast:160ms}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;color:var(--text);font:18px/1.6 var(--body);background:radial-gradient(ellipse at 5% 5%,#6d3c462c,transparent 42%),radial-gradient(ellipse at 95% 18%,#4036592a,transparent 38%),var(--bg);overflow-x:clip;-webkit-font-smoothing:antialiased}body:has(dialog[open]){overflow:hidden}a{color:inherit;text-decoration:none}a:hover{color:var(--cyan)}button,input,select,textarea{font:inherit}button{color:inherit;border:0;background:none}button,select,label[for],summary{cursor:pointer}button,a,select,textarea{transition:color var(--motion-fast),border-color var(--motion-fast),background var(--motion-fast),box-shadow var(--motion-fast)}button:active:not(:disabled){filter:brightness(.92)}button:disabled,select:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}img{display:block;max-width:100%}[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid transparent;border-radius:50%}.icon-button:hover{background:#e5c7ff16;border-color:#ac98bc55}.skip-link{position:fixed;top:-100px;left:20px;z-index:1000;background:var(--accent);color:var(--ink);padding:12px 20px;border-radius:12px}.skip-link:focus{top:14px}
.site-header{position:relative;z-index:10;display:flex;align-items:center;justify-content:space-between;min-height:80px;max-width:1540px;margin:auto;padding:0 5%;gap:24px;border-bottom:1px solid #bba8ca16}.brand{display:inline-flex;align-items:center;gap:10px;font:800 35px/.95 var(--display);letter-spacing:-.055em}.forma-symbol{display:block;width:36px;height:36px;border-radius:10px}.brand sup{align-self:flex-start;font:650 12px/1.1 var(--body);letter-spacing:.03em;color:var(--accent);margin-top:2px}.primary-nav{display:flex;align-items:center;gap:30px}.primary-nav a{position:relative;display:inline-flex;align-items:center;min-height:44px;font-size:16px;color:var(--muted)}.primary-nav a[aria-current=page]{color:var(--text)}.primary-nav a[aria-current=page]::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--accent)}.preview-badge{display:inline-flex;align-items:center;gap:9px;padding:7px 14px;border:1px solid #b59dc132;border-radius:30px;color:var(--muted);font-size:14px}.preview-badge::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--cyan)}.menu-toggle{display:none}
.studio-hero{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;min-height:calc(100svh - 80px);padding:45px 24px 30px;overflow:hidden}.aura-field{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 25% 50%,#b6656b27,transparent 45%),radial-gradient(ellipse at 75% 34%,#9670bc2b,transparent 42%),radial-gradient(ellipse at 60% 93%,#459c9221,transparent 35%)}.hero-heading{text-align:center;width:min(100%,1100px)}.eyebrow{color:#d6c6df;font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;margin:0 0 13px}.hero-heading h1{margin:0 0 14px;font:650 calc(clamp(42px,4vw,58px) + 2px)/1.03 var(--display);letter-spacing:-.055em;text-wrap:balance}.hero-heading h1 em{display:block;color:var(--accent);font-weight:800;font-style:normal;margin-top:3px}.hero-description{color:var(--muted);margin:0;font-size:17px;line-height:1.7}.composer-shell{width:min(100%,820px);margin:28px 0 0;padding:0 24px 14px;border:1px solid #c0acc649;border-radius:26px;background:linear-gradient(125deg,#e5bbd115,#acb5d006 65%),#211c28d9;box-shadow:0 24px 75px #0005,inset 0 1px 0 #fff1;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.composer-topline{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:68px}.input-mode{display:inline-flex;align-items:center;gap:9px;font-size:18px;font-weight:650}.input-mode .icon{color:var(--accent)}.reference-mode-field select{min-height:44px;max-width:270px;border:1px solid #b2a1bd45;background:#342d3d;border-radius:30px;padding:0 15px;color:var(--text);font-size:16px}.composer-help{margin:0 0 16px;color:var(--muted);font-size:16px}.reference-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-height:165px}.reference-grid.is-empty{grid-template-columns:1fr}.reference-card{position:relative;min-width:0;border:1px solid #a89aad70;border-radius:16px;overflow:hidden;background:#17131e}.reference-card-open{position:relative;display:block;text-align:left;padding:0;width:100%;height:100%;min-height:165px}.reference-card-open>img{width:100%;height:165px;object-fit:contain;background:#141119}.reference-card-caption{position:absolute;left:0;right:0;bottom:0;display:grid;gap:1px;padding:25px 12px 9px;background:linear-gradient(transparent,#100d18f2);pointer-events:none}.reference-card-caption strong{font-size:16px}.reference-card-meta{font-size:14px;color:#d0c4da}.reference-remove{position:absolute;top:3px;right:3px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#19131ddb;color:#fff}.reference-remove:hover{background:#75516b}.reference-remove .icon{width:17px;height:17px}.reference-add{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:165px;border:1px dashed #ac9ab58c;border-radius:16px;background:#c9b2d807;gap:8px;text-align:center;padding:16px;color:var(--muted);transition:background 160ms,border-color 160ms}.reference-add>.icon{width:34px;height:34px;color:#ecdbf6;filter:drop-shadow(0 0 12px #dab6ed48)}.reference-add strong{color:var(--text);font:650 20px/1.3 var(--display)}.reference-add small{font-size:16px}.reference-grid:not(.is-empty) .reference-add small{font-size:14px}.reference-add:hover,.is-dragging .reference-add{background:#e3c0e019;border-color:var(--cyan)}.composer-shell:has(#reference-files:focus-visible) .reference-add{outline:2px solid var(--cyan);outline-offset:4px}.composer-prompt{width:100%;min-height:80px;margin:14px 0 10px;display:flex;align-items:center;gap:13px;padding:14px 17px;text-align:left;border-radius:15px;border:1px solid #ae99be49;background:linear-gradient(110deg,#b587ad20,#8875a815)}.composer-prompt:hover{background:#ba97c528;border-color:#d6b9e78a}.prompt-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#ddafcc1b;color:#efc5e7}.composer-prompt>span:nth-child(2){display:grid;min-width:0;gap:3px;flex:1}.composer-prompt strong{font-size:16px;font-weight:650}.composer-prompt-summary,#composer-prompt-summary{font-size:16px;color:var(--muted);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.composer-prompt>.icon{color:var(--accent);width:18px}.field-hint{font-size:16px;line-height:1.6;color:var(--muted);margin:0}.field-error{font-size:16px;line-height:1.6;color:var(--error);margin:12px 0}.composer-status{font-size:16px;color:var(--muted);margin:8px 0;line-height:1.6}.composer-footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-height:44px;color:var(--muted);font-size:16px;border-top:1px solid #ac98b51c;margin-top:12px;padding-top:7px}.text-button{font-size:16px;min-height:44px;padding:0 10px;color:var(--accent);text-decoration:underline;text-underline-offset:4px;border-radius:8px}.privacy-hint{display:inline-flex;align-items:center;gap:7px;margin-left:auto;font-size:16px;color:var(--muted)}.privacy-hint .icon{width:15px;height:15px}.creator-actions{display:flex;flex-direction:column;align-items:center;width:min(100%,720px);gap:10px;margin-top:21px}.generate-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:56px;min-width:310px;padding:0 25px;border-radius:35px;background:linear-gradient(105deg,#f3bfcf,#d1baf5 65%,#a2e2d9);color:#241d30;font-size:18px;font-weight:800;border:1px solid #ead3ed;box-shadow:0 0 35px #c996cc1a}.generate-button .icon:last-child{margin-left:22px;width:18px}.generate-button:disabled{opacity:.6}.generation-state{color:var(--muted);font-size:16px;text-align:center;line-height:1.65;margin:0;max-width:660px}.creation-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;margin-top:16px;padding:4px;background:#d4bde809;border:1px solid #b69ac532;border-radius:28px}.creation-links a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 17px;border-radius:25px;font-size:16px;color:var(--muted)}.creation-links a[aria-current=page]{background:#d8b8e51c;color:#f3e6fa}.anchor-link{display:inline-flex;align-items:center;gap:18px;min-height:44px;margin-top:13px;font-size:16px;color:var(--muted)}
/* Native dialog keeps keyboard focus and background inertness with the browser. */
.remix-dialog{color:var(--text);width:min(1080px,calc(100% - 48px));max-height:calc(100dvh - 48px);padding:26px;border:1px solid #c7b4d16b;border-radius:30px;background:radial-gradient(ellipse at 0 0,#9b626c28,transparent 65%),#231e2af7;box-shadow:0 40px 120px #0009;overflow:auto;scroll-padding:24px}.remix-dialog::backdrop{background:#09070cba;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.remix-dialog[open]{animation:dialog-arrive 160ms var(--ease)}.remix-header{display:flex;align-items:center;justify-content:flex-start;gap:15px}.remix-header :is(h2, p){font:700 34px/1.15 var(--display);letter-spacing:-.04em;margin:0}.remix-header .eyebrow{margin-bottom:8px}.remix-header>.icon-button{border-color:#bda6c547;background:#c9b6d409;flex-shrink:0}.remix-description{font-size:16px;line-height:1.7;color:var(--muted);margin:13px 0 23px}.remix-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.remix-controls{min-width:0;padding:20px;background:#d5b4e008;border:1px solid #b49bb928;border-radius:21px}.remix-field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.remix-field-heading h3{font-size:16px;margin:0}.remix-field-heading>span{font-size:16px;color:var(--muted)}.remix-reference-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}.remix-thumb{position:relative;min-height:82px;min-width:0;padding:0;border:1px solid #a18fa966;border-radius:12px;overflow:hidden;background:#141017}.remix-thumb img{width:100%;height:82px;object-fit:contain}.remix-thumb>span{position:absolute;bottom:0;left:0;right:0;font-size:13px;padding:5px;background:#1d1623b8}.remix-thumb[aria-pressed=true]{border-color:var(--cyan);box-shadow:0 0 0 1px var(--cyan)}.remix-add{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:82px;padding:8px 3px;border:1px dashed #ac98b59c;border-radius:12px;text-align:center;gap:4px;background:#baa1ca0d}.remix-add strong{font-size:14px;font-weight:500}.remix-add small{display:none}.remix-add .icon{width:23px}.remix-controls:has(#remix-files:focus-visible) .remix-add{outline:2px solid var(--cyan);outline-offset:3px}.prompt-label-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0 9px;font-size:16px}.prompt-label-row label{font-weight:650}.prompt-label-row>span{color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums}.remix-controls textarea{display:block;width:100%;resize:vertical;min-height:160px;padding:15px;border:1px solid #b19cbd75;border-radius:13px;background:#17131fc9;color:var(--text);font-size:18px;line-height:1.65;margin:0 0 10px}.remix-controls textarea::placeholder{color:#b0a2ba}.prompt-chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}.prompt-chips button{padding:0 12px;min-height:44px;font-size:15px;color:#ddcce7;border:1px solid #b99ac044;border-radius:25px;background:#b297c113}.prompt-chips button:hover{background:#cfb0d72a}.remix-preview{min-width:0;border:1px solid #b5a0c23b;border-radius:21px;padding:14px;background:#16121bd1}.remix-preview-stage{display:grid;place-items:center;min-height:300px;aspect-ratio:1.15;overflow:hidden;border:1px solid #c3adcb29;border-radius:15px;background:radial-gradient(ellipse at 50% 50%,#8c697927,transparent 80%),#151119}.remix-preview-stage>img{width:100%;height:100%;max-height:370px;object-fit:contain}.remix-preview-stage>div{text-align:center;padding:25px}.remix-preview-stage .icon{width:40px;height:40px;margin:auto;color:var(--accent)}.remix-preview-stage p{font:600 23px/1.4 var(--display);margin:17px 0 7px}.remix-preview-stage span{font-size:16px;color:var(--muted)}#remix-selected-name{font-size:16px;font-weight:600;overflow-wrap:anywhere;margin:14px 3px 5px}#remix-selected-meta{margin-left:3px}.remix-image-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 18px;border-radius:24px;font-size:16px;font-weight:600}.secondary-button{border:1px solid #ad98ba73;background:#c1abc30a;color:#e4d4eb}.secondary-button:hover{background:#c2a6d224}.save-button{background:linear-gradient(110deg,#edbdcd,#c8b8ed 70%,#b2dbdc);color:var(--ink);border:1px solid #e9d4ed;min-height:48px}.remix-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:23px}.remix-actions>span{font-size:16px;color:var(--muted);margin-right:auto}.remix-image-actions:has(#replacement-file:focus-visible) #replace-reference{outline:2px solid var(--cyan);outline-offset:3px}[aria-disabled=true]{opacity:.45;cursor:not-allowed}.is-busy .reference-add{opacity:.5}body[data-page=text] .reference-grid,body[data-page=text] .reference-mode-field,body[data-page=text] #reference-formats,body[data-page=text] .composer-footer,body[data-page=text] .remix-field-heading,body[data-page=text] #remix-references,body[data-page=text] #remix-file-hint,body[data-page=text] .remix-preview{display:none}body[data-page=text] .remix-layout{grid-template-columns:1fr}body[data-page=text] .composer-prompt{min-height:190px}body[data-page=text] .remix-controls{max-width:none}
@keyframes dialog-arrive{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
/* Existing assets are a secondary exploration lane, after the tool. */
.explore-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 82px 36px 60px;
  border-top: 1px solid #cab2d516;
}
.explore-heading { display: block; margin-bottom: 34px; }
.explore-heading .eyebrow { margin: 0 0 14px; }
.explore-heading h2 { margin: 0; color: #f2ebf4; font: 650 calc(clamp(32px, 3.6vw, 47px) + 2px)/1.08 var(--display); letter-spacing: -.05em; max-width: 530px; }
.explore-heading p { max-width: 430px; margin: 0 0 2px; font-size: 16px; color: #bcafc2; line-height: 1.8; }
.sample-tray.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sample-chip {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: #f0eaf3;
  background: #17101a;
  border: 1px solid #76628070;
  border-radius: 19px;
}
.case-image { display: block; position: relative; overflow: hidden; aspect-ratio: 1.45; background: #d4cfd6; }
.case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease), filter 600ms var(--ease); }
.case-open { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #e8dded70; border-radius: 50%; background: #1b1120cc; color: #f1eaf4; font: 500 20px/1 var(--body); }
.case-caption { display: grid; grid-template-columns: 1fr auto; padding: 20px; gap: 6px 12px; }
.case-caption strong { color: #f1eaf4; font: 600 22px/1.3 var(--display); letter-spacing: -.035em; }
.case-caption small { grid-column: 1; color: #bdafc4; font: 450 16px/1.5 var(--body); }
.license-tag { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #cebed5; font-size: 12px; line-height: 1.3; border: 1px solid #826a8e54; border-radius: 5px; padding: 4px 6px; }
.sample-chip:hover:not(:disabled), .sample-chip.is-active { border-color: #bfa2cd; box-shadow: 0 0 28px #bd9fcb0c; }
.sample-chip:hover:not(:disabled) img { transform: scale(1.035); filter: saturate(1.08); }
.sample-chip.is-active .case-open { color: #1b111f; background: #bd9fcb; border-color: #cdb6d7; }
.model-input { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 28px auto 0; flex-wrap: wrap; color: var(--muted); }
.model-input-heading { display: flex; align-items: center; gap: 9px; }
.model-input-heading :is(h2, p) { font-size: 16px; margin: 0; font-weight: 500; }
.step-index { color: #d6c4df; font-size: 14px; }
.open-model, .button-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 9px; padding: 0 17px; border: 1px solid #947f9e5c; border-radius: 11px; background: #decfe505; color: #e4d8e9; font-size: 16px; font-weight: 550; }
.open-model .icon { width: 17px; height: 17px; }
.open-model:hover, .button-secondary:hover { background: #d2bddb0e; border-color: #c2accc; }
.model-input:focus-within .open-model { outline: 2px solid var(--cyan); outline-offset: 5px; }
.field-hint { color: #b7a9bd; font-size: 16px; line-height: 1.7; margin: 0; }
.model-input > .field-error { flex-basis: 100%; text-align: center; margin-top: 0; }

/* The 3D lab appears only after a sample or a local model is requested. */
.lab-header { display: flex; align-items: center; justify-content: space-between; min-height: 55px; padding: 0 15px 0 24px; border-bottom: 1px solid #8e719c2e; color: #cebfd5; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.model-lab { margin: 36px 0 0; overflow: hidden; background: #150e18; border: 1px solid #7e698882; border-radius: 20px; box-shadow: 0 20px 65px #0004; }
.stage-shell { position: relative; min-height: 490px; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 52%, #79638429, transparent 60%), #151018; }
.stage-topline { position: absolute; top: 22px; left: 25px; right: 25px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #cfc3d5; font-size: 14px; pointer-events: none; }
.sample-label { display: inline-flex; align-items: center; gap: 9px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #ba9ac952; }
.stage-topline a { pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px; color: #d8c9df; font-size: 16px; }
.stage-halo { position: absolute; z-index: -1; left: 20%; right: 20%; top: 25%; height: 190px; border-radius: 50%; background: #ae8abf15; filter: blur(45px); pointer-events: none; }
.model-stage { position: absolute; inset: 50px 0 40px; z-index: 2; touch-action: pan-y; outline-offset: -5px; }
.model-stage canvas { display: block; width: 100%; height: 100%; }
.stage-caption { position: absolute; bottom: 23px; left: 25px; z-index: 4; max-width: 48%; pointer-events: none; }
.stage-caption > span { color: #cebed5; font-size: 13px; letter-spacing: .09em; }
.stage-caption :is(h2, p) { margin: 6px 0 0; font: 600 26px/1.15 var(--display); letter-spacing: -.04em; }
.stage-tools { position: absolute; right: 22px; bottom: 21px; z-index: 4; display: flex; gap: 3px; padding: 4px; border: 1px solid #937f9d5c; border-radius: 40px; background: #120c15e0; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
.stage-tools .icon-button { width: 44px; height: 44px; }
.stage-tools .icon { width: 18px; height: 18px; }
.stage-shell.is-idle .model-stage, .stage-shell.is-idle .stage-caption, .stage-shell.is-idle .stage-tools { visibility: hidden; }
.stage-shell.is-loading::after { content: none; display: none; }
.empty-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.stage-shell:not(.is-idle) .empty-stage, .stage-shell.is-waiting .empty-stage { display: none; }
.empty-stage :is(h2, p) { font: 600 30px/1.15 var(--display); margin: 0; letter-spacing: -.04em; }
.empty-stage p { color: #bdafc4; font-size: 16px; }
.dimension-form { width: 170px; height: 150px; }
.demo-button { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #ae94ba; padding: 0 18px; border-radius: 10px; gap: 10px; font-size: 16px; }
.viewer-error { position: absolute; z-index: 9; bottom: 90px; left: 25px; right: 25px; padding: 16px; background: #301e20ef; border: 1px solid #b47878; border-radius: 10px; color: var(--error); font-size: 16px; line-height: 1.6; }
.result-toolbar { display: flex; align-items: center; gap: 20px; padding: 15px 22px; border-top: 1px solid #8e719c2e; background: #1d1620; }
.view-modes { display: flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid #8f749b80; border-radius: 12px; }
.mode-button { min-height: 44px; padding: 0 17px; border-radius: 8px; color: #cabed0; font-size: 16px; font-weight: 550; }
.mode-button:hover:not(:disabled) { background: #ddcde40d; }
.mode-button.is-active { color: #f1ebf4; background: #cbb3d617; }
.toggle-row { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: #cbbed1; font-size: 16px; cursor: pointer; }
.toggle-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.export-row { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.export-row select { min-width: 77px; min-height: 44px; padding: 0 12px; color: #e4d7ea; background: #1c1220; border: 1px solid #947d9f6f; border-radius: 10px; font-size: 16px; }
.export-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; gap: 9px; border-radius: 10px; border: 1px solid #b594c5; background: #c1a5cf18; color: #ece4f0; font-size: 16px; font-weight: 650; }
.export-button .icon { width: 17px; height: 17px; }
.workspace-status { display: flex; align-items: center; flex-wrap: wrap; min-height: 43px; gap: 8px 18px; padding: 11px 24px; border-top: 1px solid #8e719c2e; color: #c4b4cb; background: #17101a; font-size: 16px; }
.workspace-status #viewer-status { margin-right: auto; font-size: 16px; }
.workspace-status #model-stats { font-variant-numeric: tabular-nums; }
.workspace-status a { display: inline-flex; align-items: center; min-height: 44px; color: #dccce3; font-size: 16px; }
body:not([data-page="home"]) .explore-section { padding-top: 30px; }
body:not([data-page="home"]) .model-lab { margin-top: 25px; }

/* Supporting content is a readable continuation, not a second competing hero. */
.workflow-section, .faq-section { display: grid; grid-template-columns: 270px 1fr; gap: 70px; max-width: 1128px; margin: 0 auto; padding: 68px 0 80px; border-top: 1px solid #cab2d516; }
.section-heading h2, .faq-section h2 { margin: 17px 0 21px; font: 650 40px/1.1 var(--display); letter-spacing: -.05em; }
.section-heading > p { max-width: 270px; margin: 0; color: #b9abc0; font-size: 16px; line-height: 1.85; }
.workflow-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.workflow-cards article { padding-top: 16px; border-top: 1px solid #81698c; }
.step-number { font-size: 13px; letter-spacing: .09em; color: #c9b1d5; }
.workflow-cards h3 { font: 650 22px/1.35 var(--display); letter-spacing: -.035em; margin: 31px 0 15px; }
.workflow-cards p { color: #bcafc2; font-size: 16px; line-height: 1.8; margin: 0 0 20px; }
.workflow-cards a { display: inline-flex; align-items: center; min-height: 44px; color: #dccce3; font-size: 16px; }
.faq-section { grid-template-columns: 330px 1fr; }
.faq-list details { border-bottom: 1px solid #78608456; }
.faq-list details:first-child { border-top: 1px solid #78608456; }
.faq-list summary { position: relative; list-style: none; padding: 23px 32px 23px 0; color: #e5d9ea; font-size: 17px; font-weight: 500; line-height: 1.55; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 3px; top: 20px; color: var(--accent); font-size: 23px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 700px; margin: 0 25px 23px 0; color: #bcafc2; font-size: 16px; line-height: 1.85; }
.faq-list p a { color: #dfd1e6; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 45px 5%; gap: 30px; border-top: 1px solid #cab2d516; }
.footer-brand { font-size: 35px; }
.site-footer p { margin: 13px 0 0; color: #b5a7bc; font-size: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 25px; color: #c7b9ce; font-size: 14px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.footer-note { color: #b1a2b8; font-size: 13px; }

/* Shared material treatments across the working viewer and editorial routes. */
.stage-shell{background:radial-gradient(ellipse at 50% 52%,#8b68822e,transparent 65%),#19151e}.model-lab{background:#211c28;border-color:#a78eb869}.stage-tools{background:#211a2ae8}.result-toolbar{background:#2a2332}.workspace-status{background:#201a27}.mode-button.is-active{background:#d9b4e326;color:#f7e8ff}.mode-button,.toggle-row,.workspace-status,.stage-topline,.stage-caption>span{color:var(--muted)}.export-row select{background:#292231}.export-button{background:#bfb0df21;border-color:#d2b6e2;color:var(--text)}.sample-chip{background:#211b29;border-color:#88729180}.sample-chip.is-active .case-open{background:var(--accent);color:var(--ink)}.workflow-section,.faq-section{padding-left:24px;padding-right:24px}.site-footer nav{gap:8px 22px}.site-footer{align-items:flex-start}.site-footer nav{max-width:620px}.site-footer .footer-note{display:none}.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:28px 0}.hub-card{display:flex;flex-direction:column;gap:9px;padding:25px;border:1px solid #9c84af52;border-radius:19px;background:linear-gradient(135deg,#c1a3ce0e,#8aa2ac05),#211b29}.hub-card h2,.hub-card h3{margin:0;font:650 26px/1.25 var(--display);letter-spacing:-.035em}.hub-card p{margin:0;color:var(--muted);font-size:17px;line-height:1.75}.hub-card a{display:inline-flex;align-items:center;min-height:44px;margin-top:auto;color:var(--accent);font-size:16px}.capability-tag{color:var(--cyan);font-size:14px}.callout{padding:20px 23px;border:1px solid #b197bf52;border-radius:17px;background:#392c433d;margin:24px 0;font-size:17px;line-height:1.8;color:#d3c3dc}.glossary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:25px 0}.glossary>div{padding:20px;border-top:1px solid #806f8d}.glossary dt{font:650 25px/1.3 var(--display);margin-bottom:9px}.glossary dd{margin:0;font-size:17px;color:var(--muted);line-height:1.75}
@media(max-width:1100px){.preview-badge{display:none}.site-header{padding:0 30px}.workflow-section,.faq-section{margin:0 25px;gap:30px;grid-template-columns:1fr}.section-heading>p{max-width:550px}.primary-nav{gap:23px}.result-toolbar{flex-wrap:wrap}}
@media(max-width:760px){.site-header{min-height:70px;padding:0 22px}.brand{font-size:32px}.primary-nav{gap:16px}.primary-nav a{font-size:15px}.studio-hero{min-height:calc(100svh - 70px);padding-top:35px}.hero-heading h1{font-size:51px}.composer-shell{max-width:650px}.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-card-open>img{height:155px}.reference-add,.reference-card-open{min-height:155px}.remix-dialog{padding:20px;width:calc(100% - 30px);max-height:calc(100dvh - 30px);border-radius:24px}.remix-layout{grid-template-columns:1fr}.remix-preview-stage{min-height:170px;max-height:250px;aspect-ratio:auto}.remix-preview-stage>img{max-height:230px}.remix-actions{flex-wrap:wrap}.remix-actions>span{flex:1 0 100%}.remix-header :is(h2, p){font-size:29px}.remix-preview{order:2}.remix-controls{padding:16px}.explore-heading{display:block}.explore-heading p{margin-top:17px}.sample-tray.case-grid{gap:13px}.case-caption{display:block;padding:15px}.license-tag{display:inline-flex;margin-top:10px}.case-caption small{display:block;margin-top:7px}.workflow-cards{gap:20px}.site-footer{display:block}.site-footer nav{margin-top:24px}.hub-grid,.glossary{grid-template-columns:1fr}}
@media(max-width:600px){.menu-toggle{display:inline-flex}.primary-nav{display:none;position:absolute;left:15px;right:15px;top:68px;padding:12px;background:#2a2234f7;border:1px solid #a68cb67d;border-radius:16px;box-shadow:0 15px 50px #0007}.primary-nav.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.primary-nav a{min-height:46px;padding:0 14px;font-size:16px;border-radius:9px}.primary-nav a[aria-current=page]{background:#d3aee51d}.primary-nav a[aria-current=page]::after{display:none}.studio-hero{padding:29px 18px 23px}.hero-heading .eyebrow{font-size:11px;letter-spacing:.12em;margin-bottom:14px}.hero-heading h1{font-size:calc(clamp(34px,9.5vw,49px) + 2px);line-height:1.08;margin-bottom:13px}.hero-description{font-size:16px;max-width:300px}.composer-shell{margin-top:24px;padding:0 14px 10px;border-radius:22px}.composer-topline{min-height:64px;gap:8px}.input-mode{font-size:16px;gap:7px}.input-mode .icon{width:18px}.reference-mode-field select{width:150px;max-width:100%;font-size:14px;padding:0 9px}.composer-help{font-size:16px;margin-bottom:14px}.reference-grid{gap:9px}.reference-add,.reference-card-open{min-height:147px}.reference-card-open>img{height:147px}.reference-add{padding:11px 5px}.reference-add strong{font-size:18px}.reference-add small{font-size:14px}.composer-prompt{padding:12px;gap:10px;min-height:90px}.composer-prompt>.prompt-symbol{display:none}.composer-footer{gap:2px 6px;font-size:14px}.privacy-hint{font-size:14px;gap:4px}.privacy-hint .icon{width:12px}.composer-status,.field-hint{font-size:16px}.creator-actions{margin-top:18px;gap:10px}.generate-button{width:100%;min-width:0;min-height:53px;font-size:17px}.generation-state{font-size:15px}.creation-links{margin-top:15px;gap:0;width:100%}.creation-links a{font-size:14px;padding:0 10px;flex:1;min-height:44px}.anchor-link{margin-top:10px}.remix-dialog{padding:18px 14px;width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:22px;scroll-padding:18px}.remix-header :is(h2, p){font-size:27px}.remix-header .eyebrow{font-size:10px}.remix-description{margin:13px 0 17px}.remix-layout{gap:15px}.remix-controls{padding:13px}.remix-reference-grid{gap:6px}.remix-thumb,.remix-add{min-height:68px}.remix-thumb img{height:68px}.remix-add strong{font-size:13px}.prompt-label-row{margin-top:19px}.remix-controls textarea{min-height:155px}.prompt-chips{gap:7px}.prompt-chips button{font-size:14px;padding:0 10px}.remix-actions{gap:9px}.remix-actions>.secondary-button{flex:1}.remix-actions>.save-button{flex:2;padding:0 12px}.remix-preview-stage{min-height:170px}.remix-preview-stage>img{max-height:220px}.explore-section{padding:45px 20px}.explore-heading h2{font-size:36px}.sample-tray.case-grid{grid-template-columns:1fr;gap:14px}.sample-chip{display:grid;grid-template-columns:112px 1fr;padding:9px;gap:13px;border-radius:15px}.case-image{aspect-ratio:auto;height:113px;border-radius:9px}.case-image img{height:113px}.case-caption{padding:4px 5px 3px 0}.case-caption strong{font-size:20px}.license-tag{font-size:12px;padding:3px 5px;margin-top:7px}.case-open{width:27px;height:27px;top:7px;right:7px}.model-input{display:grid;grid-template-columns:1fr;margin-top:25px;gap:10px;text-align:center}.model-input-heading{justify-content:center}.open-model{min-height:48px}.model-lab{margin-top:25px}.lab-header{padding:0 14px}.stage-shell{min-height:380px}.model-stage{inset:45px 0 78px}.stage-topline{left:15px;right:15px;top:14px;gap:10px}.stage-caption{left:17px;bottom:82px;max-width:70%}.stage-caption :is(h2, p){font-size:23px}.stage-tools{right:auto;left:14px;bottom:18px}.result-toolbar{padding:13px;gap:11px}.view-modes{flex:1 0 100%;width:100%}.mode-button{flex:1;padding:0 10px}.toggle-row{flex:1 0 100%}.export-row{flex:1 0 100%;margin-left:0}.export-row select{flex:1}.export-button{flex:2}.workspace-status{padding:12px 15px;font-size:16px;gap:8px 14px}.workspace-status #viewer-status{flex-basis:100%}.viewer-error{left:14px;right:14px;bottom:80px;padding:12px}.workflow-section,.faq-section{margin:0 20px;padding:45px 0 50px;display:block}.section-heading h2,.faq-section h2{font-size:36px}.section-heading>p{font-size:17px;margin-bottom:27px}.workflow-cards{grid-template-columns:1fr;gap:25px}.workflow-cards h3{margin-top:16px;font-size:23px}.workflow-cards p{font-size:17px}.faq-list{margin-top:28px}.site-footer{padding:30px 22px}.site-footer nav{gap:6px 19px}}
@media(max-height:960px) and (min-width:761px){.studio-hero{padding-top:23px}.hero-heading h1{font-size:50px}.hero-heading .eyebrow{margin-bottom:10px}.composer-shell{margin-top:20px}.reference-add,.reference-card-open{min-height:140px}.reference-card-open>img{height:140px}.composer-topline{min-height:58px}.composer-help{margin-bottom:12px}.composer-prompt{min-height:68px;padding-top:10px;padding-bottom:10px}.composer-status{margin:4px 0}.composer-shell{padding-bottom:10px}.composer-topline{min-height:54px}.composer-prompt{min-height:64px;margin-top:12px;margin-bottom:7px}.composer-prompt>span:nth-child(2){gap:1px}.composer-footer{min-height:44px;padding-top:0}.composer-footer{margin-top:7px}.creator-actions{margin-top:16px}.creation-links{margin-top:12px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.composer-shell,.remix-dialog,.primary-nav{background-color:#292230}}
@media(prefers-reduced-transparency:reduce){.composer-shell,.remix-dialog,.stage-tools,.primary-nav{background:#292230;backdrop-filter:none;-webkit-backdrop-filter:none}.remix-dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.sample-chip:hover:not(:disabled) img{transform:none}}

/* Keep one creation row and one modal scrolling surface. */
.reference-grid:not(.is-empty){grid-template-columns:repeat(var(--reference-columns,4),minmax(0,1fr))}
.remix-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.remix-header,.remix-description,.remix-actions{flex-shrink:0}
.remix-layout{min-height:0;overflow:auto;padding:2px;max-height:calc(100dvh - 245px);scroll-padding:12px}
.remix-actions{padding-top:14px;border-top:1px solid #b9a1c632;margin-top:18px}
@media(max-width:600px){
 .reference-grid:not(.is-empty){min-height:119px}
 .reference-grid:not(.is-empty) .reference-add,.reference-grid:not(.is-empty) .reference-card-open{min-height:119px}
 .reference-grid:not(.is-empty) .reference-card-open>img{height:119px}
 .reference-grid:not(.is-empty) .reference-add{padding:9px 3px;gap:5px}
 .reference-grid:not(.is-empty) .reference-add strong{font-size:15px}
 .reference-grid:not(.is-empty) .reference-add small{display:none}
 .reference-card-caption{padding-left:8px;padding-right:7px}
 .reference-card-caption strong{font-size:14px}.reference-card-meta{font-size:12px}
 .remix-dialog{padding-bottom:14px}.remix-header :is(h2, p){font-size:25px}
 .remix-description{margin-bottom:13px}.remix-actions{margin-top:12px;padding-top:10px}
 .remix-actions>span{display:none}.remix-layout{max-height:calc(100dvh - 229px)}
}

.composer-status:empty{display:none}
@media(max-width:600px){
 .studio-hero{padding-top:24px}.hero-heading{width:100%}
 .hero-heading .eyebrow{display:none}.hero-heading h1{font-size:36px;line-height:1.12;margin-bottom:12px}
 .hero-heading h1 em{font-size:26px;margin-top:9px;letter-spacing:-.05em}
 .composer-shell{margin-top:20px}.composer-topline{min-height:58px}
 .reference-grid.is-empty{min-height:128px}.reference-grid.is-empty .reference-add{min-height:128px}
 .composer-prompt{min-height:80px}.composer-status{margin-top:6px;margin-bottom:6px}
 .reference-add small{font-size:16px}.composer-footer{margin-top:10px}
}

body[data-page=text] #reference-files,body[data-page=text] #remix-files{display:none}
@media(max-width:600px){.reference-card-meta{display:none}.reference-card-caption strong{font-size:16px}}

/* V5: one diffuse light field, with stable controls above it. */
:root{--bg:#080b15;--accent:#a4f4ed;--cyan:#9af9ed;--ink:#10202b;--muted:#c8c6dc}
body{isolation:isolate;background:var(--bg)}
.aura-backdrop{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#0c0e11;--pointer-x:50%;--pointer-y:50%;--pointer-active:0}
.aura-cloud{position:absolute;width:min(88vw,1180px);height:min(88vw,1180px);border-radius:50%;filter:blur(90px);opacity:.48;animation:aura-drift 28s ease-in-out infinite alternate;animation-play-state:paused;will-change:transform}
.aura-cloud-cyan{left:-36%;top:-19%;background:radial-gradient(ellipse,#00e7d465 0%,#05bdb73c 28%,#00c4d213 49%,transparent 68%)}
.aura-cloud-violet{right:-24%;top:-14%;background:radial-gradient(ellipse,#9a45ff75 0%,#6f45f04d 28%,#7048e71a 48%,transparent 69%);animation-name:aura-drift-violet;animation-duration:32s}
.aura-cloud-coral{left:14%;top:41%;width:min(80vw,1050px);height:min(80vw,1050px);background:radial-gradient(ellipse,#ff6ca54d 0%,#f68a9230 27%,#ff899412 47%,transparent 70%);animation-duration:26s;animation-delay:-9s}
.aura-grain,.texture-reveal,.aura-vignette{position:absolute;inset:0}
.aura-grain{opacity:.075;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E");background-size:180px 180px}
.texture-reveal{background-image:radial-gradient(circle,#b2fff3 1px,transparent 1.4px);background-size:20px 20px;opacity:calc(var(--pointer-active)*.38);mask-image:radial-gradient(ellipse 260px 240px at var(--pointer-x) var(--pointer-y),#000,transparent 85%);-webkit-mask-image:radial-gradient(ellipse 260px 240px at var(--pointer-x) var(--pointer-y),#000,transparent 85%)}
.aura-backdrop[data-interactive=false] .texture-reveal{opacity:0}
.aura-vignette{background:radial-gradient(ellipse at 50% 28%,#080b151c 15%,#080b1510 40%,#080b155c 100%),linear-gradient(#080b152b,transparent 26%,#080b154d 100%)}
html[data-effects=running] .aura-cloud{animation-play-state:running}
@keyframes aura-drift{from{transform:translate3d(-3%,-4%,0) scale(.98)}to{transform:translate3d(13%,10%,0) scale(1.12)}}
@keyframes aura-drift-violet{from{transform:translate3d(3%,-5%,0) scale(1.1)}to{transform:translate3d(-17%,12%,0) scale(.98)}}
.effects-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 15px;border:1px solid #b4dce34d;border-radius:30px;background:#17202d8c;font-size:14px;color:#e7f7fa;white-space:nowrap}
.effects-toggle .icon{width:17px;height:17px;color:var(--cyan)}
.effects-toggle:hover:not(:disabled){background:#6af3da15;border-color:#9af9ed9c}
.hero-heading h1 em{color:#bcf7f4;background:linear-gradient(100deg,#95fff1 14%,#e1bbff 56%,#ffb6d7 88%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.hero-description,.hero-heading .eyebrow{text-shadow:0 2px 12px #080b15}
.composer-shell{border-color:#b9dfeb55;background:linear-gradient(125deg,#9deee314,#c498ee0a 70%),#141a2bde;box-shadow:0 22px 80px #0308135c,inset 0 1px 0 #dcffff1a,0 0 60px #58e8ce08}
.reference-mode-field select{background:#263044;border-color:#a9c3d359}
.reference-add{border-color:#a2cbd48c;background:linear-gradient(125deg,#9af9ed08,#d0a0ff08)}
.reference-add>.icon{color:#bdfff4;filter:drop-shadow(0 0 13px #93ffed6b)}
.reference-add:hover,.is-dragging .reference-add{background:#73ffe816}
.composer-prompt{background:linear-gradient(100deg,#9df9ec0c,#c99eff0d);border-color:#b0b4d64d}
.prompt-symbol{background:#a8f5eb12;color:#b0fff3}
.creation-action-row{display:flex;align-items:stretch;justify-content:center;gap:12px;width:100%}
.model-picker-button{display:flex;align-items:center;gap:11px;min-height:56px;min-width:200px;padding:8px 16px;border:1px solid #b0dce875;border-radius:30px;background:linear-gradient(110deg,#b2fcf20e,#dcb0ff0d),#151d2ce6;text-align:left}
.model-picker-button:hover{background:#213449;border-color:var(--cyan);box-shadow:0 0 25px #8bffea14}
.model-picker-button>span{display:grid;gap:2px;min-width:0}
.model-picker-button small{font-size:11px;line-height:1.3;letter-spacing:.08em;color:#c8d7e5}
.model-picker-button strong{font-size:16px;line-height:1.35;font-weight:700;color:#f3ffff}
.model-button-icon{width:20px;height:20px;color:var(--cyan)}
.model-chevron{width:16px;height:16px;margin-left:auto;color:var(--cyan)}
.generate-button{background:linear-gradient(105deg,#a3fff1,#cbc0ff 62%,#ffb9dc);border-color:#d9fff2;box-shadow:0 0 38px #87f7e62e;flex-shrink:0}
.generate-button:disabled{opacity:.68}
.generation-state{max-width:600px;color:#d0cce2}
.model-dialog{width:min(620px,calc(100% - 36px));max-height:calc(100dvh - 36px);padding:28px;color:var(--text);border:1px solid #b9d5e273;border-radius:28px;background:radial-gradient(ellipse at 100% 0,#9774ed24,transparent 70%),#141b2bf7;box-shadow:0 35px 110px #000a;overflow:hidden}
.model-dialog[open]{display:flex;flex-direction:column;animation:dialog-arrive 160ms var(--ease)}
.model-dialog::backdrop{background:#060915b8;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.model-dialog-header{display:flex;align-items:center;justify-content:flex-start;gap:14px;flex-shrink:0}
.model-dialog-header .eyebrow{color:var(--cyan);font-size:11px;margin-bottom:8px}
.model-dialog :is(h2, p){font:700 33px/1.15 var(--display);letter-spacing:-.04em;margin:0}
.model-dialog-header>.icon-button{flex-shrink:0;border-color:#a8c9df54}
#model-dialog-description{font-size:16px;line-height:1.75;color:var(--muted);margin:18px 0 20px;flex-shrink:0}
.model-options{display:grid;gap:10px;margin:0;padding:3px;border:0;min-height:0;overflow:auto;scroll-padding:6px}
.engine-option{display:flex;align-items:center;gap:14px;padding:16px 14px;min-height:100px;border:1px solid #a8bed74d;border-radius:17px;background:#b5c5e107;cursor:pointer}
.engine-option:hover{background:#bcfff00b;border-color:#abdfe295}
.engine-option:has(input:checked){background:linear-gradient(110deg,#86ffee13,#c49aff0c);border-color:#9af9ed;box-shadow:inset 0 0 0 1px #9af9ed26}
.engine-option:has(input:focus-visible){outline:2px solid var(--cyan);outline-offset:2px}
.engine-option input{width:16px;height:16px;margin:0;accent-color:var(--cyan);flex-shrink:0}
.engine-mark{display:grid;place-items:center;width:42px;height:46px;border:1px solid #a9ede655;border-radius:12px;background:#7ff8e815;color:#a8fff0;font:750 17px/1 var(--display);flex-shrink:0}
.engine-mark-hunyuan{background:#d2b0ff16;border-color:#dbbcff4f;color:#e7c9ff}
.engine-mark-rodin{background:#ffb5cb13;border-color:#ffbbcd4a;color:#ffc2d6}
.engine-copy{display:grid;gap:3px;min-width:0;flex:1}
.engine-copy strong{font-size:19px;line-height:1.4;color:#f5fbff}
.engine-copy>span{font-size:15px;line-height:1.5;color:var(--muted)}
.engine-copy small{font-size:13px;line-height:1.5;color:#f3d8b6}
.engine-selected{width:20px;height:20px;color:var(--cyan);opacity:0}
.engine-option:has(input:checked) .engine-selected{opacity:1}
.model-dialog-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:22px;margin-top:20px;border-top:1px solid #a8bed730;flex-shrink:0}
.model-dialog-actions .button{min-height:46px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.model-dialog-actions .secondary-button{border:1px solid #a3b6d261;border-radius:30px}
.model-dialog-actions .save-button{background:linear-gradient(105deg,#b0fff0,#dac5ff);color:#162633;border-radius:30px}
@media(max-width:1100px){.effects-toggle{padding:0 12px}.primary-nav{gap:18px}.site-header{gap:18px}}
@media(max-width:760px){.effects-toggle>span{display:none}.effects-toggle{width:44px;padding:0;flex-shrink:0}.site-header{gap:12px}.aura-cloud{width:135vw;height:135vw;filter:blur(45px)}.aura-cloud-cyan{left:-78%;top:5%}.aura-cloud-violet{right:-75%;top:0}.aura-cloud-coral{width:130vw;height:130vw;left:-8%;top:54%}}
@media(max-width:600px){.site-header{justify-content:flex-start;padding-left:18px;padding-right:18px}.site-header>.brand{font-size:30px;margin-right:auto}.site-header .forma-symbol{width:32px;height:32px}.creation-action-row{gap:9px}.model-picker-button{min-width:0;width:145px;flex-shrink:0;min-height:56px;gap:6px;padding:8px 12px}.model-button-icon{display:none}.model-picker-button small{font-size:10px;letter-spacing:.035em}.model-picker-button strong{font-size:15px}.model-chevron{width:13px}.generate-button{min-width:0;min-height:56px;flex:1;padding:9px 12px;gap:7px;font-size:16px;line-height:1.35}.generate-button .icon{width:17px}.generate-button .icon:last-child{display:none}.generate-button .icon:first-child{display:none}.generation-state{font-size:15px}.model-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:19px 15px;border-radius:23px}.model-dialog :is(h2, p){font-size:28px}.model-dialog-header{gap:8px}.model-dialog-header .eyebrow{font-size:10px}#model-dialog-description{margin:13px 0 16px;font-size:16px}.engine-option{gap:10px;padding:14px 10px;min-height:103px}.engine-mark{width:34px;height:40px;font-size:15px}.engine-copy strong{font-size:18px}.engine-copy>span{font-size:14px}.engine-selected{width:16px}.model-dialog-actions{margin-top:16px;padding-top:16px;gap:9px}.model-dialog-actions .button{padding:0 16px}.model-dialog-actions .save-button{flex:1}}
@media(prefers-reduced-motion:reduce){.aura-cloud{animation:none;will-change:auto}.texture-reveal{display:none}}
@media(prefers-reduced-transparency:reduce){.composer-shell,.model-dialog{background:#172033;backdrop-filter:none;-webkit-backdrop-filter:none}.model-dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:#060915e8}.aura-grain,.texture-reveal{display:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.composer-shell,.model-dialog{background-color:#172033}}

/* V7: one AURA material and signal system across the creator and both dialogs. */
:root{
 --bg:#0c0e11;--surface:#1b2024;--surface-raised:#272d31;
 --text:#f1f4f3;--muted:#aebcb7;--dim:#93a5a0;--line:#586663;
 --accent:#b4f6ea;--cyan:#a8fff0;--ink:#172333;--error:#ffc0cf;
 --ui-mint:#aaf9ea;--ui-lilac:#d2c4f5;--ui-pink:#f0c0d7;
 --selection-fill:#a0f4d537;--selection-edge:#a6f0d3;--selection-text:#edfff6;
 --selection-ring:inset 0 0 0 1px var(--selection-edge);
 --select-inset:3px;--select-value-fill:#c8eee022;
 --ui-surface:#1b2125;--ui-raised:#293134;--ui-border:#5b6d6b4f;
 --ui-edge:linear-gradient(110deg,#aaf9ea,#cdbcf3 57%,#f0c0d7);
 --ui-action:linear-gradient(105deg,#b1f9e9,#c9f6e5);
 --ui-glass:linear-gradient(145deg,#2b3135f7,#181e22fa 72%);
 --ui-spring:cubic-bezier(.18,1.18,.32,1);
}
.icon{width:20px;height:20px;fill:currentColor;stroke:none}
.anchor-link .icon{width:17px;height:17px;transform:rotate(90deg)}
.case-open .icon{width:16px;height:16px;transform:rotate(-45deg)}
.site-header{border-bottom-color:#a8bacb1a;min-height:68px;padding:0 32px;max-width:1480px}.site-header .brand{font-size:29px}.site-header .forma-symbol{width:32px;height:32px}.site-header .primary-nav{gap:25px}.site-header .primary-nav a{font-size:14px}.site-header .effects-toggle{font-size:13px;padding:0 12px;min-height:36px;background:#ffffff04;border-color:var(--ui-border)}
.primary-nav a[aria-current=page]::after{height:3px;background:var(--selection-edge)}
.icon-button:hover{background:#b7eef019;border-color:#a6e7df82}
.effects-toggle{border-color:#a7c9ce69;background:#1b2636bc;color:var(--text)}
.effects-toggle:hover{background:#253449;border-color:#a9f4e9}
.hero-heading h1 em{color:var(--ui-mint);background:var(--ui-edge);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.composer-shell{
 border:1px solid transparent;
 background:var(--ui-glass);border-color:#82918e66;
 box-shadow:0 28px 90px #020714a8,inset 0 1px 0 #f3ffff1b,0 0 65px #80f2e912;
 backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)
}
.input-mode{font-weight:750;letter-spacing:-.02em}
.input-mode .icon{color:var(--ui-mint)}
.reference-mode-field{position:relative}
.reference-mode-field select{
 appearance:none;min-height:44px;padding:0 40px 0 17px;
 border:1px solid var(--ui-border);border-radius:16px;
 background:#253146;color:var(--text);font-weight:620
}
.reference-mode-field select:hover{border-color:var(--ui-mint);background:#2d3b50}
.reference-mode-field .icon{position:absolute;right:13px;top:50%;width:16px;height:16px;transform:translateY(-50%) rotate(90deg);color:var(--ui-mint);pointer-events:none}
.composer-help{color:var(--muted)}
.reference-card{border-color:#a9c3d37d;background:#111927}
.reference-add{border-color:#a8c6d595;background:linear-gradient(140deg,#b0f2e90e,#d2bdf010),#1b2534}
.reference-add:hover,.is-dragging .reference-add{border-color:var(--ui-mint);background:linear-gradient(140deg,#aaf8e628,#d7c2f11a),#222d40;box-shadow:0 10px 32px #030b1a58,inset 0 0 30px #82efd513}
.reference-add>.icon{color:var(--ui-mint);filter:drop-shadow(0 0 10px #a0f5e65c)}
.composer-prompt{border-color:#a8bed18c;background:linear-gradient(115deg,#aaf9eb11,#dac6f20e),#222b3a}
.composer-prompt:hover{border-color:var(--ui-mint);background:linear-gradient(115deg,#aaf9eb24,#dac6f21b),#293548}
.prompt-symbol{background:#a6f7e61c;color:var(--ui-mint)}
.composer-prompt strong{font-weight:730}
#composer-prompt-summary{color:#d0dbe8}
.composer-footer{border-top-color:#afc6d63d}
.creation-links{border-color:#abc4d17a;background:#192333d9}
.creation-links a[aria-current=page]{background:var(--selection-fill);color:var(--selection-text);box-shadow:var(--selection-ring)}
.creation-links a:hover{background:#aaf9e913}
.creator-actions{gap:11px}
.creation-action-row{max-width:720px}
.model-picker-button{
 min-width:214px;border:1px solid var(--ui-border);border-radius:19px;
 background:linear-gradient(130deg,#d4c7f010,#9ef0e00c),#222d3e;
 box-shadow:inset 0 1px 0 #fff1,0 8px 26px #03071049
}
.model-picker-button:hover{border-color:var(--ui-mint);background:linear-gradient(130deg,#d4c7f021,#9ef0e01a),#29384c;box-shadow:inset 0 1px 0 #fff2,0 11px 30px #03071070}
.model-picker-button[aria-expanded=true]{border-color:var(--ui-mint);box-shadow:0 0 0 2px #aaf9ea2d,0 12px 32px #0008}
.model-picker-button small{font-size:12px;letter-spacing:.105em;color:#c9d8e5}
.model-picker-button strong{font-size:17px;color:var(--text)}
.model-button-icon,.model-chevron{color:var(--ui-mint)}
.model-chevron{transform:rotate(90deg);transition:transform 240ms var(--ui-spring)}
.model-picker-button[aria-expanded=true] .model-chevron{transform:rotate(270deg)}
.generate-button,.save-button,.model-dialog-actions .save-button,.remix-actions .save-button{
 border:1px solid #edf5fb;border-radius:19px;background:var(--ui-action);color:var(--ink);
 box-shadow:inset 0 1px 0 #fff9,0 10px 28px #0007,0 0 38px #9deee52b
}
.generate-button:not(:disabled):hover,.save-button:not(:disabled):hover,.model-dialog-actions .save-button:not(:disabled):hover,.remix-actions .save-button:not(:disabled):hover{
 background:var(--ui-edge);box-shadow:inset 0 1px 0 #fffc,0 13px 32px #0009,0 0 52px #a9f5e95e
}
.generate-button:disabled{opacity:.75;box-shadow:inset 0 1px 0 #fff7,0 7px 25px #0005}
.generation-state{color:#d7e1eb}
.generation-disclosure{max-width:680px;margin:0;text-align:center;color:#c7d4e3;font-size:15px;line-height:1.55}
.remix-dialog,.model-dialog{
 color:var(--text);border:1px solid transparent;
 background:var(--ui-glass);border-color:#82918e66;
 box-shadow:0 42px 120px #000b,inset 0 1px 0 #fff2;
 backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)
}
.remix-dialog::backdrop,.model-dialog::backdrop{background:#050a14d6;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.remix-dialog[open],.model-dialog[open]{animation:dialog-arrive-v7 280ms var(--ui-spring) both}
@keyframes dialog-arrive-v7{from{opacity:0;transform:translateY(16px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
.remix-header .eyebrow,.model-dialog-header .eyebrow{color:var(--ui-mint);font-size:12px;letter-spacing:.12em}
.remix-header :is(h2, p),.model-dialog :is(h2, p){letter-spacing:-.045em}
.remix-header>.icon-button,.model-dialog-header>.icon-button{border-color:#a7bdcf7d;background:#f4ffff0e}
.remix-header>.icon-button:hover,.model-dialog-header>.icon-button:hover{border-color:var(--ui-mint);background:#b5f8ec25}
.remix-description,#model-dialog-description{color:var(--muted)}
.remix-controls,.remix-preview{border-color:#9cb6c27d;background:var(--ui-surface)}
.remix-preview-stage{border-color:#a8c1d56b;background:radial-gradient(ellipse at 50% 50%,#a7a2dc24,transparent 74%),#111b29}
.remix-preview-stage .icon{color:var(--ui-mint)}
.remix-controls textarea{border-color:#a7bfd18e;background:#11171b;color:var(--text)}
.remix-controls textarea::placeholder{color:#aebcd0}
.remix-add{border-color:#abc4d291;background:var(--ui-raised)}
.prompt-chips button{border-color:#a8c2d178;background:var(--ui-raised);color:#e3eff9}
.prompt-chips button:hover{border-color:var(--ui-mint);background:#34465a}
.remix-thumb{border-color:#abc2d075;background:#121b29}
.remix-thumb[aria-pressed=true]{border-color:var(--selection-edge);box-shadow:0 0 0 2px var(--selection-edge)}
.remix-actions,.model-dialog-actions{border-top-color:#acc6d344}
.secondary-button,.model-dialog-actions .secondary-button{border-color:#a8c2d18a;background:#e1eff40b;color:var(--text)}
.secondary-button:hover,.model-dialog-actions .secondary-button:hover{border-color:var(--ui-mint);background:#b4faed1c}
.model-dialog{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:30px;border-radius:29px;overflow:hidden}
.model-dialog :is(h2, p){font-size:36px}
#model-dialog-description{margin:13px 0 18px}
.model-options{gap:12px;padding:4px 4px 8px;scrollbar-color:#a9c6d17d transparent}
.engine-option{
 position:relative;isolation:isolate;min-height:98px;gap:14px;padding:16px;
 border:1px solid #73878060;border-radius:16px;
 background:#22292d;box-shadow:inset 0 1px 0 #fff1;
 transition:border-color 220ms ease,background 220ms ease,box-shadow 220ms ease,transform 330ms var(--ui-spring)
}
.engine-option:hover{border-color:var(--ui-mint);background:#2c3739;box-shadow:inset 0 1px 0 #fff2;transform:none}
.engine-option:has(input:checked){
 background:var(--selection-fill);border-color:var(--selection-edge);
 box-shadow:var(--selection-ring)
}
.engine-option:has(input:focus-visible){outline:2px solid var(--ui-mint);outline-offset:3px}
.engine-option input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.engine-mark{width:48px;height:48px;border-color:#bed4df7d;border-radius:15px;background:#b5e8eb1b;color:#d9fff5;font-size:16px}
.engine-mark-hunyuan{background:#b5e8eb20;color:#d9fff5}
.engine-mark-meshy{background:#d4c4f421;color:#e5dcff}
.engine-mark-hi3d{background:#f2c4d824;color:#ffdce9}
.engine-copy{gap:4px;position:relative;z-index:1}
.engine-copy strong{font-size:19px;line-height:1.25;letter-spacing:-.025em;color:#f8fbff}
.engine-version{font-size:calc(.72em + .56px);color:#d4e3ed;font-weight:650;letter-spacing:0}
.engine-copy>span{font-size:14px;line-height:1.45;color:#d2deea}
.engine-copy small{font-size:14px;line-height:1.4;color:#d8e7ee}
.engine-selected{position:relative;z-index:1;width:26px;height:26px;padding:4px;border-radius:50%;background:var(--ui-mint);color:var(--ink)}
.engine-option:has(input:disabled){opacity:.55;cursor:not-allowed;transform:none}
.model-source-note{margin:9px 4px 0;color:#c8d5e0;font-size:14px;line-height:1.5}
.model-dialog-actions{margin-top:13px;padding-top:18px}
.model-dialog-actions .secondary-button{border-radius:19px}
.model-dialog-actions .save-button{border-radius:19px}
/* Keep the reference inspector in the same AURA material family. */
.sample-chip{background:#192333;border-color:#8ba8b980}
.case-caption strong{color:var(--text)}
.case-caption small,.license-tag{color:#cbd8e5}
.license-tag{border-color:#8aaabb72}
.case-open{background:#122031dc;border-color:#b2d2de87;color:var(--ui-mint)}
.sample-chip:hover:not(:disabled){border-color:var(--ui-mint);box-shadow:0 0 0 1px #aaf9ea27,0 14px 36px #030b1a52}
.sample-chip.is-active,.sample-chip.is-active:hover{border-color:var(--selection-edge);box-shadow:0 0 0 2px var(--selection-edge)}
.sample-chip.is-active .case-open{background:var(--ui-mint);border-color:var(--ui-mint);color:var(--ink)}
.step-index{color:var(--ui-mint)}
.open-model,.button-secondary{border-color:#93afbf88;background:#aaf9ea0a;color:#edf8fc}
.open-model:hover,.button-secondary:hover{background:#aaf9ea1b;border-color:var(--ui-mint)}
.field-hint{color:#c3d2e0}
.model-lab{background:#152131;border-color:#8ba9bc8e;box-shadow:0 24px 70px #0208167a}
.lab-header{border-bottom-color:#99b5c53c;color:#d5e7ec;background:#1d2a3d}
.stage-shell{background:radial-gradient(ellipse at 50% 52%,#9b9bda20,transparent 62%),#111b29}
.stage-topline,.stage-topline a{color:#d2e3eb}
.stage-halo{background:#a3e9df1b}
.stage-caption>span{color:#c9dae7}
.stage-tools{border-color:#a2bfcc80;background:#172436e8}
.stage-shell.is-loading::after{content:none;display:none}
.empty-stage p{color:#c7d5e1}
.demo-button{border-color:#9db9c9;background:#aaf9ea10;border-radius:14px;color:var(--text)}
.demo-button:hover{border-color:var(--ui-mint);background:#aaf9ea20}
.result-toolbar{border-top-color:#9ab7c541;background:#1c293b}
.view-modes{border-color:#97b3c487}
.mode-button{color:#d1e0ea}
.mode-button:hover:not(:disabled){background:#aaf9ea12}
.mode-button.is-active{background:var(--selection-fill);color:var(--selection-text);box-shadow:var(--selection-ring)}
.toggle-row{color:#d3e1e9}
.export-row select{background:#243247;border-color:#91afc28a;color:var(--text)}
.export-button{background:#aaf9ea19;border-color:#9ecabd9c;color:#effffb}
.export-button:hover:not(:disabled){background:#aaf9ea2a;border-color:var(--ui-mint)}
.workspace-status{border-top-color:#9ab7c541;background:#172334;color:#c8d8e5}
.engine-react-spotlight{position:absolute;inset:0;z-index:0;border-radius:inherit;overflow:hidden}
.react-bits-sparks{position:fixed;inset:0;z-index:80;pointer-events:none}
:is(.reference-add,.composer-prompt,.model-picker-button,.generate-button,.prompt-chips button,.sample-chip,.save-button):not(:disabled){
 transition:transform 330ms var(--ui-spring),color 180ms ease,border-color 180ms ease,background 180ms ease,box-shadow 220ms ease,filter 180ms ease
}
:is(.reference-add,.composer-prompt,.model-picker-button,.generate-button,.save-button):hover:not(:disabled){transform:translateY(-2px)}
:is(.reference-add,.composer-prompt,.model-picker-button,.generate-button,.save-button):active:not(:disabled){transform:translateY(1px) scale(.985);filter:brightness(.98)}
.prompt-chips button:active{transform:scale(.96)}
.sample-chip:hover:not(:disabled){transform:translateY(-3px)}
.sample-chip:active:not(:disabled){transform:scale(.99)}
@media(max-width:600px){
 .primary-nav{background:#1b293bed;border-color:#9fbcc88a}
 .primary-nav a[aria-current=page]{background:var(--selection-fill);color:var(--selection-text);box-shadow:var(--selection-ring)}
 .model-picker-button{width:146px;min-width:0;border-radius:16px}
 .model-picker-button small{font-size:11px}
 .model-picker-button strong{font-size:15px}
 .generate-button{border-radius:16px}
 .model-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:19px 16px;border-radius:23px}
 .model-dialog :is(h2, p){font-size:29px}
 .engine-option{min-height:100px;gap:12px;padding:14px 12px;border-radius:17px}
 .engine-mark{width:39px;height:42px;flex-shrink:0;font-size:14px}
 .engine-copy strong{font-size:18px}
 .engine-copy>span{font-size:15px}
 .engine-copy small{font-size:14px}
 .engine-selected{width:23px;height:23px;padding:3px;flex-shrink:0}
}
@media(prefers-reduced-motion:reduce){
 .remix-dialog[open],.model-dialog[open]{animation:none}
 .engine-option,.engine-option:hover,
 :is(.reference-add,.composer-prompt,.model-picker-button,.generate-button,.save-button,.sample-chip){transform:none!important}
}
@media(prefers-reduced-transparency:reduce){
 .composer-shell,.remix-dialog,.model-dialog{background:#192435;backdrop-filter:none;-webkit-backdrop-filter:none}
 .remix-dialog::backdrop,.model-dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:#050a14ef}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .composer-shell,.remix-dialog,.model-dialog{background-color:#192435}
}

/* V12: a single creative workbench. Native controls own state; motion is optional. */
.studio-hero{min-height:auto;padding:16px 28px 28px;overflow:visible}
.hero-heading{position:relative;width:min(100%,1400px);text-align:left;padding:0 2px 16px}
.hero-heading .eyebrow{display:block;margin:0 0 8px;color:var(--ui-mint);font-size:12px;letter-spacing:.16em}
.hero-heading h1{font-size:calc(clamp(28px,3vw,42px) + 2px);line-height:1.15;letter-spacing:-.05em;margin:0}
.hero-statement{position:absolute;right:2px;bottom:23px;margin:0;font:500 17px/1.5 var(--body);color:var(--muted);background:none;letter-spacing:0}

.studio-workbench{width:min(100%,1400px);display:grid;grid-template-columns:370px minmax(0,1fr);align-items:stretch;gap:0;margin:0;border:1px solid var(--ui-border);border-radius:24px;background:#141619ed;box-shadow:0 32px 100px #0005,inset 0 1px 0 #ffffff08;overflow:hidden}
.workbench-topbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:7px 20px;border-bottom:1px solid var(--ui-border);background:#1c1e22cc;min-width:0}
.workbench-topbar .creation-links{margin:0;padding:3px;border:0;gap:4px;background:#0b0d1080;border-radius:12px;flex-wrap:nowrap}
.workbench-topbar .creation-links a{min-height:42px;border-radius:9px;font-size:14px;padding:0 17px;white-space:nowrap;color:var(--muted)}
.workbench-topbar .creation-links a[aria-current=page]{background:#30373a;color:var(--ui-mint);box-shadow:inset 0 0 0 1px #d6ffe314}
.workbench-topbar .creation-links a:hover{background:#353c40;color:var(--text)}
.workspace-session{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px;color:var(--muted)}
.workspace-session>span{width:5px;height:5px;background:var(--ui-mint);border-radius:50%;box-shadow:0 0 10px #b4f6ea50}
.creation-panel{min-width:0;display:flex;flex-direction:column;padding:21px 22px 10px;border-right:1px solid var(--ui-border);background:linear-gradient(155deg,#23272b99,#181b1fc9);}
.creation-panel .composer-shell{width:100%;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.creation-panel .composer-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;padding:0;margin-bottom:4px}
.control-step{font:500 12px/1 var(--body);font-variant-numeric:tabular-nums;color:#a1aaa9;letter-spacing:.02em;display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid #555e6066;border-radius:7px;flex:none}
.creation-panel .input-mode{font:650 15px/1.4 var(--body);gap:8px;white-space:nowrap;letter-spacing:0}
.creation-panel .reference-mode-field{max-width:130px;min-width:0}
.creation-panel .reference-mode-field select{width:100%;max-width:none;min-height:36px;padding:0 21px 0 8px;font-size:13px;border:0;background:transparent;color:var(--muted);border-radius:7px;font-weight:500}
.creation-panel .reference-mode-field .icon{right:4px;width:10px;height:10px;color:var(--muted)}
.creation-panel .composer-help{min-height:0;margin:3px 0 12px;font-size:14px;line-height:1.55;color:var(--muted)}
.creation-panel .reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:112px}
.creation-panel .reference-grid.is-empty{grid-template-columns:1fr}
.creation-panel .reference-grid.is-empty .reference-add{height:112px;min-height:112px;border-radius:14px;border:1px dashed #77858780;background:radial-gradient(ellipse at 50% 20%,#aaf9ea09,transparent 80%),#1115197a}
.creation-panel .reference-add{min-height:125px;height:125px;padding:12px 8px;gap:5px;border-radius:12px;border-color:#77858780;background:#1115197a;box-shadow:none}
.creation-panel .reference-add>.icon{width:29px;height:29px;margin-bottom:8px;color:var(--ui-mint);filter:none}
.creation-panel .reference-add strong{font:600 16px/1.4 var(--body)}
.creation-panel .reference-add small{font-size:14px;color:var(--muted)}
.creation-panel .reference-add:hover,.creation-panel.is-dragging .reference-add,.is-dragging .creation-panel .reference-add{background:#aaf9ea0b;border-color:var(--ui-mint);box-shadow:inset 0 0 32px #aaf9ea04}
.creation-panel .reference-card{border-color:var(--ui-border);border-radius:12px;background:#101316}
.creation-panel .reference-card-open,.creation-panel .reference-card-open>img{min-height:125px;height:125px;background:#101316}
.creation-panel .reference-card-caption{padding:24px 10px 8px;background:linear-gradient(transparent,#0b0e12ed)}
.creation-panel .reference-card-caption strong{font-size:14px}.creation-panel .reference-card-meta{font-size:12px}
.creation-panel .reference-remove{background:#14181de6;width:36px;height:36px}
.creation-panel .composer-prompt{min-height:44px;margin:10px 0 0;padding:8px 10px;gap:8px;border-radius:10px;border:1px solid var(--ui-border);background:#ffffff04;box-shadow:none}
.creation-panel .composer-prompt:hover{border-color:#91c9bd80;background:#aaf9ea08}
.creation-panel .composer-prompt .prompt-symbol{width:28px;height:28px;background:none}
.creation-panel .composer-prompt .prompt-symbol .icon{width:18px;height:18px}
.creation-panel .composer-prompt strong{font-size:14px;font-weight:600}
.creation-panel #composer-prompt-summary{font-size:13px;color:var(--muted);-webkit-line-clamp:1}
.creation-panel .composer-prompt>.icon{width:14px;height:14px;color:var(--muted)}
.creation-panel #reference-formats{margin:0;font-size:12px;text-align:left;margin-right:auto}
.creation-panel .composer-status{font-size:13px;margin:6px 0;color:var(--ui-mint);line-height:1.5}
.creation-panel .composer-status:empty{display:none}
.creation-panel .composer-footer{border:0;min-height:30px;gap:8px;margin:5px 0 0;padding:0;font-size:13px;color:var(--muted)}
.creation-panel .composer-footer .text-button{font-size:13px;min-height:32px;padding:0 4px;margin-left:auto;color:var(--muted);text-decoration:none}
.creation-panel .creator-actions{width:100%;margin:8px 0 0;gap:10px;align-items:stretch}
.control-heading{display:flex;align-items:center;gap:8px;margin:0 0 1px}
.control-heading :is(h2, p){font:650 15px/1.4 var(--body);margin:0;letter-spacing:0}
.availability-badge{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.availability-badge[data-availability=ready]{color:var(--ui-mint)}
.availability-badge[data-availability=unavailable],.engine-availability[data-availability=unavailable]{color:#dec29b}
.membership-badge{position:absolute;top:5px;right:5px;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-height:16px;padding:0 6px;border:1px solid #9af9ed80;border-radius:999px;background:#6af3da24;color:var(--ui-mint);font:650 9px/1 var(--body);letter-spacing:.08em;text-transform:uppercase;pointer-events:none;white-space:nowrap}
.membership-badge[hidden]{display:none}
.engine-option,.model-picker-button,.batch-control,.creation-links a{position:relative}
.engine-option:has(.membership-badge){padding-right:42px}
.batch-control{position:relative;padding-top:14px}
.model-picker-button .membership-badge{top:4px;right:8px}
.creation-links a .membership-badge{top:-4px;right:-2px;min-height:14px;padding:0 5px;font-size:8px}

.creation-panel .creation-action-row{display:flex;flex-direction:column;gap:10px;width:100%;max-width:none}
.creation-panel .engine-controls{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px}
.creation-panel .model-picker-button{min-width:0;min-height:56px;width:100%;padding:8px 12px;gap:10px;border-radius:12px;background:#ffffff05;border:1px solid #69777880;box-shadow:none}
.creation-panel .model-picker-button:hover{background:#aaf9ea08;border-color:var(--ui-mint)}
.creation-panel .model-picker-button>span:not(.model-button-symbol){flex:1;min-width:0}
.creation-panel .model-picker-button small{font-size:11px;letter-spacing:.07em;color:var(--muted)}
.creation-panel .model-picker-button strong{font:650 15px/1.5 var(--body)}
.model-button-symbol{display:grid;place-items:center;width:29px;height:29px;color:var(--ui-mint);background:#b4f6ea0a;border-radius:8px}
.creation-panel .model-chevron{width:13px;height:13px;color:var(--muted)}
.creation-panel .settings-trigger{min-width:44px;padding:0;justify-content:center;background:#ffffff04;box-shadow:none}
.creation-panel .settings-trigger>span{display:none}
.creation-panel .settings-trigger>.icon{width:18px;height:18px;color:var(--muted)}
.creation-panel .generation-surface{margin:0;padding:0;border:0;border-radius:0;background:none}
.creation-panel .surface-controls{gap:16px;align-items:end}
.creation-panel .surface-controls label{font-size:13px;gap:6px;color:var(--muted)}
.creation-panel .generation-surface select{font-size:14px;background:#101417;border-color:#68767880;border-radius:9px;min-height:40px;padding:8px 10px;color:var(--text)}
.creation-panel .surface-controls .surface-pbr{min-height:40px;font-size:14px;color:var(--text);gap:7px}
.surface-pbr input{appearance:none;position:relative;width:30px;height:18px;border:1px solid #7a8a8a;border-radius:12px;background:#3b4448;margin:0;cursor:pointer;transition:background 180ms}
.surface-pbr input::after{content:'';position:absolute;top:3px;left:3px;width:10px;height:10px;background:#c2cfcb;border-radius:50%;transition:transform 180ms}
.surface-pbr input:checked{background:var(--selection-edge);border-color:var(--selection-edge)}.surface-pbr input:checked::after{background:#19352f;transform:translateX(12px)}
.surface-pbr input:disabled{cursor:not-allowed;opacity:.4}
.creation-panel .generation-surface .field-hint{font-size:13px;line-height:1.55;margin:7px 0 0;color:var(--muted)}
.creation-panel .generation-surface .text-button{margin:0;min-height:32px;font-size:13px;padding:0;text-decoration:none}
.generation-submit{border-top:1px solid var(--ui-border);padding-top:10px;margin-top:3px}
.creation-panel .generate-row{display:flex;gap:8px;align-items:stretch;width:100%}
.creation-panel .generate-button{min-width:0;min-height:50px;padding:0 15px;flex:1;gap:8px;font-size:15px;font-weight:750;border-radius:12px;border:1px solid #b9ffec;background:var(--ui-mint);color:#102820;box-shadow:0 0 26px #aaf9ea0a,inset 0 1px 0 #fff5}
.creation-panel .generate-button .icon:first-child{width:19px;height:19px}.creation-panel .generate-button .icon:last-child{width:15px;height:15px;margin-left:auto}
.creation-panel .generate-button:not(:disabled):hover{background:#c8ffef;box-shadow:0 0 26px #aaf9ea24}
.creation-panel .generate-button:disabled{opacity:1;background:#343d3e;border-color:#6b828088;color:#b8c8c5;box-shadow:none}
.batch-control{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:65px;padding:4px 7px;border:1px solid #6b797a80;border-radius:12px;background:#ffffff04}
.batch-control label{font-size:10px;letter-spacing:.08em;color:var(--muted);line-height:1.5}
.batch-control select{min-height:28px;border:0;background:transparent;color:var(--text);font-size:17px;padding:0;width:100%;font-weight:650}
.batch-control option{background:var(--ui-surface);color:var(--text)}
.creation-panel .generation-state{margin:10px 0 0;max-width:none;width:100%;font-size:13px;line-height:1.6;text-align:left;color:var(--muted)}
.creation-panel .generation-state[role=alert]{color:var(--error)}
.available-model-action{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:36px;margin-top:5px;padding:5px 0;text-align:left;font-size:14px;color:var(--ui-mint)}
.run-details{border-top:1px solid var(--ui-border);margin-top:auto;padding-top:1px}
.run-details>summary{display:flex;align-items:center;gap:6px;min-height:40px;color:var(--muted);font-size:12px;list-style:none;cursor:pointer}
.run-details>summary::-webkit-details-marker{display:none}.run-details>summary>.icon{width:12px;height:12px}.run-details>summary>span{margin-left:auto;font-size:18px}
.run-details[open]>summary>span{transform:rotate(45deg)}
.creation-panel .batch-plan-note,.creation-panel .generation-disclosure{color:var(--muted);font-size:13px;line-height:1.6;text-align:left;margin:0 0 9px;max-width:none}
.studio-workbench .model-lab{display:flex;flex-direction:column;margin:0;width:100%;min-width:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.lab-header{display:flex;align-items:center;gap:12px;min-height:60px;padding:0 20px;background:transparent;border-bottom:1px solid var(--ui-border);font-size:14px;letter-spacing:0}
.lab-header>span:first-child{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--text)}
.lab-header #result-summary{margin-left:auto;font-size:13px;color:var(--muted);text-align:right}
.preview-header-actions{display:flex;align-items:center;gap:2px}.preview-header-actions .icon-button{width:36px;height:36px;color:var(--muted);border-radius:9px}
.preview-header-actions .icon-button:hover{background:#ffffff09;border-color:var(--ui-border);color:var(--text)}
.preview-header-actions .icon{width:16px;height:16px}
.preview-layout{display:grid;grid-template-columns:minmax(0,1fr) 84px;flex:1;min-height:0}
.preview-main{min-width:0;display:flex;flex-direction:column}
.preview-main .stage-shell{flex:1;min-height:420px;background:radial-gradient(ellipse at 42% 43%,#b4f6ea06,transparent 56%),radial-gradient(ellipse at 90% 10%,#9989e008,transparent 55%),#111418}
.preview-main .stage-shell::before{content:'';position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(#879b9a3d .65px,transparent .9px);background-size:21px 21px;mask-image:radial-gradient(ellipse at center,#0008,transparent 74%);z-index:-1}
.preview-main .stage-topline{top:18px;left:20px;right:20px;font-size:11px;color:#adb9b7;letter-spacing:.08em}.preview-main .stage-topline a{font-size:12px}
.preview-main .status-dot{width:4px;height:4px;background:var(--muted);box-shadow:none}
.preview-main .stage-caption{left:20px;bottom:80px;max-width:90%;pointer-events:none}
.preview-main .stage-caption :is(h2, p){font:600 20px/1.3 var(--body);overflow-wrap:anywhere;letter-spacing:-.02em}.preview-main .stage-caption>span{font-size:11px}
.preview-main .stage-tools{left:auto;right:16px;bottom:16px;margin:0;padding:4px;gap:0;border-radius:12px;background:#22282dd9;border:1px solid var(--ui-border);backdrop-filter:blur(14px)}
.preview-main .stage-tools .icon-button{width:36px;height:36px;border-radius:8px}.preview-main .stage-tools .icon{width:16px;height:16px}
.preview-main .model-stage{inset:42px 0 65px}
.preview-main .stage-halo{background:#aaf9ea0a;opacity:.5}
.preview-main .empty-stage{gap:0;padding:30px;text-align:center;pointer-events:auto}
.preview-empty-symbol{position:relative;display:grid;place-items:center;width:72px;height:72px;border:1px solid #b4f6ea35;border-radius:23px;margin:0 0 30px;background:linear-gradient(140deg,#b4f6ea14,#cbbeff07);box-shadow:0 0 55px #b4f6ea08,inset 0 1px 0 #ffffff14;transform:rotate(-8deg)}
.preview-empty-symbol::before{content:'';position:absolute;inset:-9px;border:1px solid #b4f6ea0d;border-radius:27px;transform:rotate(18deg)}
.preview-empty-symbol .icon{width:32px;height:32px;color:#b4f6ea;transform:rotate(8deg)}
.preview-main .empty-kicker{font-size:11px;letter-spacing:.16em;color:#92a5a1;margin-bottom:14px}
.preview-main .empty-stage :is(h2, p){font:600 calc(clamp(23px,2.2vw,33px) + 2px)/1.2 var(--display);max-width:440px;letter-spacing:-.045em;margin:0 0 12px}
.preview-main .empty-stage p{font-size:15px;line-height:1.6;margin:0;color:var(--muted)}
.empty-open-file{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin-top:20px;min-height:40px;padding:0 13px;border:1px solid #6677757d;border-radius:10px;color:#d1ded9;background:#ffffff03;font-size:14px;cursor:pointer}
.empty-open-file .icon{width:15px;height:15px}.empty-open-file:hover{background:#b4f6ea0c;border-color:var(--ui-mint)}
.empty-capabilities{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;font-size:10px;letter-spacing:.16em;color:#93a29e;margin-top:38px}
.preview-main .result-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 14px;background:#1c2024;border-color:var(--ui-border)}
.preview-main .view-modes{padding:2px;gap:0;border:0;background:#0d1115;border-radius:9px}.preview-main .mode-button{min-height:36px;padding:0 10px;font-size:13px;border-radius:7px;color:var(--muted)}
.preview-main .mode-button.is-active{background:var(--selection-fill);color:var(--selection-text);box-shadow:var(--selection-ring)}
.preview-main .toggle-row{font-size:12px;gap:6px;min-height:36px;margin-left:0;color:var(--muted)}.preview-main .toggle-row input{width:14px;height:14px;accent-color:var(--ui-mint)}
.preview-main .export-row{margin-left:auto;gap:5px}.preview-main .export-row select{min-height:36px;font-size:13px;padding:0 7px;border-radius:8px;background:#101519;border-color:#6b797a80}
.preview-main .export-button{min-height:36px;padding:0 11px;gap:5px;font-size:13px;border-radius:8px;color:var(--ui-mint);background:#b4f6ea08;border-color:#6b797a80}.preview-main .export-button .icon{width:14px;height:14px}
.result-rail{padding:18px 8px;border-left:1px solid var(--ui-border);background:#191c20;min-width:0}
.rail-heading{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted);font-size:12px;margin-bottom:20px}.rail-heading .icon{width:16px;height:16px}
.result-list{display:flex;flex-direction:column;gap:10px;max-height:540px;overflow-y:auto;padding:2px;scrollbar-width:thin;scrollbar-color:#647a89 transparent}
.result-empty{display:flex;flex-direction:column;gap:10px;text-align:center;font-size:11px;line-height:1.6;color:#93a29e;margin:0}
.empty-result-slot{display:grid;place-items:center;aspect-ratio:1;border:1px dashed #687a793d;background:#ffffff02;border-radius:10px;font-size:12px;font-variant-numeric:tabular-nums;color:#91a3a0}
.result-empty>span:last-child{margin-top:3px}
.result-thumb{display:flex;position:relative;flex-direction:column;align-items:center;width:100%;min-height:76px;padding:4px;gap:4px;background:#252c30;border:1px solid #687a7960;border-radius:10px;color:var(--muted);text-align:center;transition:border-color 180ms,background 180ms}
.result-thumb img{width:100%;height:54px;border-radius:6px;object-fit:cover;background:#111519}.result-thumb .result-placeholder{height:54px;display:grid;place-items:center}.result-thumb .icon{width:20px;height:20px}
.result-thumb .result-label,.result-thumb .result-state{font-size:11px;line-height:1.4;overflow-wrap:anywhere}.result-thumb .result-state{color:var(--ui-mint)}
.result-thumb[aria-pressed=true]{border:2px solid var(--selection-edge);background:var(--selection-fill)}.result-thumb[aria-pressed=true]::after{content:'✓';position:absolute;top:6px;right:6px;display:grid;place-items:center;width:18px;height:18px;background:var(--selection-edge);color:var(--ink);border-radius:50%;font-size:12px;line-height:1}
.result-thumb:hover:not(:disabled){border-color:var(--ui-mint)}.result-thumb:disabled{opacity:.8}.result-thumb[data-status=failed] .result-state{color:var(--error)}
.model-lab .workspace-status{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:44px;padding:10px 18px;background:#191d21;border-top:1px solid var(--ui-border);font-size:12px;line-height:1.6;color:var(--muted)}
.model-lab .workspace-status #viewer-status{flex:1;min-width:140px}.model-lab .workspace-status a{font-size:12px}.model-lab .workspace-status>a:last-child{display:none}
.studio-hero>.anchor-link{margin-top:16px;font-size:13px;min-height:36px;color:var(--muted)}
.studio-workbench .material-panel{background:#1c2024;border-color:var(--ui-border);padding:0 16px}.studio-workbench .material-panel summary{min-height:45px;font-size:14px}.studio-workbench .material-panel summary span{font-size:12px}
#model-output:fullscreen{display:flex;flex-direction:column;max-width:none;width:100%;height:100%;margin:0;border-radius:0;background:#111418}
#model-output:fullscreen .stage-shell{min-height:50vh}#model-output:fullscreen .preview-layout{flex:1}#model-output:fullscreen .result-list{max-height:70vh}
@media(min-width:1600px){.studio-workbench{grid-template-columns:390px minmax(0,1fr)}.preview-main .stage-shell{min-height:470px}}
@media(max-width:1100px){.studio-workbench{grid-template-columns:340px minmax(0,1fr)}.creation-panel{padding:18px 18px 10px}.workspace-session{display:none}.preview-main .toggle-row{margin-left:auto}.preview-main .export-row{margin-left:0}.preview-main .result-toolbar{justify-content:space-between}.preview-main .empty-stage{padding:22px 14px}.preview-main .empty-stage :is(h2, p){font-size:27px}.lab-header{padding:0 14px}.lab-header #result-summary{font-size:12px}.preview-header-actions{gap:0}.preview-header-actions .icon-button{width:32px}.preview-layout{grid-template-columns:minmax(0,1fr) 74px}}
@media(max-width:800px){.studio-hero{padding:22px 14px}.hero-heading{padding:0 4px 22px}.hero-heading h1{font-size:32px}.hero-statement{position:static;font-size:14px;margin:8px 0 0}.studio-workbench{grid-template-columns:1fr;max-width:640px;border-radius:18px}.workbench-topbar{padding:8px;gap:0}.workbench-topbar .creation-links{width:100%;gap:2px}.workbench-topbar .creation-links a{flex:1;padding:0 7px;font-size:13px;min-height:44px}.creation-panel{padding:18px;border-right:0;border-bottom:1px solid var(--ui-border)}.creation-panel .creator-actions{margin-top:8px}.creation-panel .reference-grid.is-empty .reference-add{min-height:140px;height:140px}.creation-panel .generation-submit{padding-top:12px}.creation-panel .run-details{margin-top:8px}.preview-main .stage-shell{min-height:380px}.preview-main .empty-stage{padding:22px 14px}.preview-main .empty-stage :is(h2, p){font-size:26px}.preview-main .stage-tools .icon-button{width:36px;height:40px}.preview-main .result-toolbar{padding:10px;gap:8px}.preview-main .mode-button,.preview-main .export-button,.preview-main .export-row select{min-height:40px}.result-list{max-height:480px}.hero-heading .eyebrow{font-size:11px}}
@media(max-width:420px){.studio-hero{padding:18px 10px}.workbench-topbar .creation-links a{font-size:12px;padding:0 5px}.creation-panel{padding:16px}.preview-layout{grid-template-columns:minmax(0,1fr) 64px}.result-rail{padding:16px 5px}.lab-header #result-summary{display:none}.preview-header-actions{margin-left:auto}.preview-main .empty-stage :is(h2, p){font-size:24px}.preview-main .empty-stage p{font-size:14px}.preview-main .result-toolbar{align-items:center}.preview-main .toggle-row{margin-left:0}.preview-main .view-modes{width:100%;display:flex}.preview-main .mode-button{flex:1}.empty-capabilities{font-size:9px;gap:6px}.preview-main .stage-caption :is(h2, p){font-size:18px}}
@media(prefers-reduced-motion:reduce){.surface-pbr input,.surface-pbr input::after,.result-thumb{transition:none}.preview-empty-symbol,.preview-empty-symbol .icon,.preview-empty-symbol::before{transform:none}}

.file-tool-workspace { width: min(1120px, 94%); margin-inline: auto; }
.file-tool-workspace .model-input { margin-block: 0 20px; }

/* Surface controls and dedicated inputs use the same studio tokens. */
.inline-prompt-panel { display:none; }
[data-composer-mode=text] .inline-prompt-panel { display:grid; gap:12px; }
[data-composer-mode=text] .composer-prompt { display:none; }
.inline-prompt-panel label,.reference-image-form label { font-size:16px; font-weight:600; }
.inline-prompt-panel small { color:var(--muted); font-size:14px; line-height:1.6; }
.inline-prompt-panel textarea,.reference-image-form textarea { width:100%; min-height:200px; resize:vertical; padding:18px; border:1px solid var(--ui-border); border-radius:18px; background:var(--ui-surface); color:var(--text); font:inherit; font-size:17px; line-height:1.8; }
[data-composer-mode=multiview] .creation-panel .reference-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
[data-composer-mode=multiview] .reference-grid .reference-add { min-height:112px; height:112px; aspect-ratio:auto; padding:12px 8px; }
[data-composer-mode=multiview] .view-slot .icon { width:25px; height:25px; }
[data-composer-mode=multiview] .reference-add strong { font-size:16px; }
[data-composer-mode=multiview] .reference-add small { font-size:13px; }
.view-slot.is-pending { opacity:.55; cursor:default; border-style:dashed; }
[data-page=multi] .reference-mode-field { display:none; }
.creation-links { flex-wrap:wrap; }
.generation-surface { margin:16px 0 0; padding:14px 16px 12px; border:1px solid var(--ui-border); border-radius:18px; min-width:0; background:#19263375; }
.generation-surface legend { padding-inline:6px; font-size:13px; letter-spacing:.03em; color:var(--muted); }
.surface-controls { display:flex; align-items:end; gap:16px; }
.surface-controls label { display:grid; gap:6px; font-size:14px; flex:1; }
.surface-controls .surface-pbr { display:flex; align-items:center; flex:0 0 auto; min-height:44px; gap:8px; }
.surface-controls input { width:18px; height:18px; accent-color:var(--ui-mint); }
.generation-surface .field-hint { margin-bottom:0; font-size:13px; line-height:1.65; }
.generation-surface .text-button { margin-top:8px; font-size:14px; min-height:44px; }
.generation-surface select,.material-panel select,.image-options select,.image-options input { min-height:44px; max-width:100%; width:100%; color:var(--text); background:var(--ui-surface); border:1px solid var(--ui-border); border-radius:10px; padding:8px 11px; font:inherit; font-size:14px; }
.generation-surface select:disabled { opacity:.65; cursor:not-allowed; }
.material-panel { padding:0 16px; background:#182432; border-top:1px solid var(--ui-border); }
.material-panel summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:50px; cursor:pointer; font-size:15px; font-weight:600; }
.material-panel summary::after { content:'+'; color:var(--ui-mint); font-size:22px; }
.material-panel[open] summary::after { content:'−'; }
.material-panel summary span { margin-left:auto; font-size:12px; color:var(--muted); font-weight:400; }
.material-panel fieldset { padding:0; margin:0; border:0; min-width:0; }
.material-panel fieldset:disabled { opacity:.55; }
.material-panel .field-hint { font-size:13px; line-height:1.7; }
.material-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:16px 0; }
.material-controls label { display:grid; gap:8px; font-size:14px; position:relative; }
.material-controls output { position:absolute; right:0; top:0; color:var(--muted); font-variant-numeric:tabular-nums; }
.material-controls input[type=color] { width:100%; height:44px; border:1px solid var(--ui-border); border-radius:10px; padding:5px; background:var(--ui-surface); cursor:pointer; }
.material-controls input[type=range] { width:100%; height:30px; margin:0; accent-color:var(--ui-mint); cursor:pointer; }
.texture-controls { display:grid; gap:8px; padding-block:14px; border-top:1px solid var(--ui-border); font-size:14px; }
.texture-controls label { display:grid; gap:8px; }
.texture-controls input[type=file] { width:100%; font:inherit; color:var(--muted); min-height:44px; }
.texture-controls input::file-selector-button { color:var(--text); background:var(--ui-surface); border:1px solid var(--ui-border); border-radius:10px; padding:11px; margin-right:8px; font:inherit; cursor:pointer; }
.texture-controls input:disabled { opacity:.55; }
#reset-materials { min-height:44px; border:1px solid var(--ui-border); border-radius:10px; padding:10px 14px; font:inherit; font-size:14px; }
.reference-image-form { gap:0; }
.reference-image-form fieldset { border:0; margin:0; padding:0; min-width:0; }
.reference-image-form legend { display:flex; align-items:center; margin-bottom:20px; }
.reference-image-form textarea { margin-top:10px; min-height:180px; height:180px; padding:14px; font-size:16px; line-height:1.7; border-radius:12px; background:#101417; }
.reference-image-form .field-hint { font-size:13px; line-height:1.6; color:var(--muted); }
.image-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0; }
.image-options label { display:flex; flex-direction:column; gap:9px; font-size:14px; }
.image-options label span { display:none; }
.image-options select,.image-options input { width:100%; min-width:0; min-height:44px; border-radius:9px; border:1px solid #68767880; background:#101417; color:var(--text); padding:8px 10px; font:inherit; font-size:14px; }
.image-engine { display:flex; align-items:center; gap:12px; padding:0 0 18px; }
.image-engine .engine-mark { width:42px; height:42px; flex-shrink:0; background:#aaf9ea12; border:1px solid #aaf9ea44; color:var(--ui-mint); border-radius:12px; font-size:15px; }
.image-engine strong { display:block; font-size:16px; }
.image-engine small { color:var(--muted); font-size:13px; }
.image-engine-type { margin-left:auto; font-size:10px; letter-spacing:.08em; color:var(--muted); }
.reference-image-form .generate-button { flex:none; width:100%; }
.reference-image-preview { display:flex; flex-direction:column; min-width:0; overflow:hidden; background:#111317; }
.reference-image-preview .lab-header { flex:none; }
.reference-image-stage { flex:1; min-height:460px; position:relative; display:grid; place-items:center; padding:24px; background:radial-gradient(ellipse at 50% 55%,#a9dcd609,transparent 65%); }
.reference-image-stage>img { width:100%; height:100%; max-height:600px; object-fit:contain; border-radius:16px; }
.image-empty { text-align:center; }
.image-empty .preview-empty-symbol { margin:0 auto 26px; }
.image-empty h2 { font-family:var(--font-display,'Syne',sans-serif); font-size:calc(clamp(20px,2vw,30px) + 2px); font-weight:500; letter-spacing:-.03em; }
.image-empty p { color:var(--muted); font-size:15px; line-height:1.8; }
.image-result-actions { display:flex; flex-wrap:wrap; gap:10px; padding:18px; border-top:1px solid var(--ui-border); }
.image-result-actions .button { font-size:14px; min-height:44px; }
.image-recovery { display:flex; flex-wrap:wrap; gap:12px; }
.image-recovery button { font-size:14px; min-height:44px; }
.image-result-actions[hidden],.image-recovery button[hidden],.reference-image-stage>img[hidden],.image-empty[hidden] { display:none; }
@media(max-width:800px) { .reference-image-form textarea { font-size:18px; }.reference-image-stage { min-height:360px; }.image-options select,.image-options input { font-size:18px; }.image-engine-type { display:none; } }

/* Model options share the creator's existing surfaces and accent colors. */
.engine-controls { display: grid; grid-template-columns: minmax(0,1fr) 128px; gap: 10px; }
.creation-panel .engine-controls .model-picker-button { min-width: 0; width: 100%; }
.creation-panel .settings-trigger { padding-inline: 12px; }
.settings-trigger strong { font-size: 14px; white-space: normal; }
.settings-dialog { overflow-y: auto; }
.settings-dialog form { min-width: 0; }
#settings-intro { color: var(--muted); line-height: 1.6; font-size: 16px; margin: 14px 0 24px; }
.settings-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.settings-field { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: 8px; }
.settings-field label { color: var(--text); font-size: 16px; font-weight: 600; }
.settings-field small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.settings-field input:not([type=checkbox]),.settings-field select { min-height: 46px; width: 100%; padding: 10px 12px; color: var(--text); border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); font: inherit; font-size: 16px; }
.settings-field input:focus-visible,.settings-field select:focus-visible { outline: 2px solid var(--ui-mint); outline-offset: 3px; }
.settings-toggle { grid-template-columns: minmax(0,1fr) 44px; align-items: center; }
.settings-toggle small { grid-column: 1/-1; }
.settings-toggle input { width: 23px; height: 23px; margin: 10px; accent-color: var(--ui-mint); }
#model-dialog { overflow-y: auto; }
@media(max-width:520px) {
  .engine-controls { grid-template-columns: minmax(0,1fr) 118px; gap: 8px; }
  .settings-fields { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .settings-dialog .model-dialog-actions { position: sticky; bottom: -19px; background: var(--ui-surface); padding-block: 16px; }
}

.engine-copy .engine-availability{font-size:13px;color:var(--muted);margin-top:3px}.engine-copy .engine-availability[data-availability=ready]{color:var(--ui-mint)}

.generation-stage-label{margin-left:10px;color:var(--ui-mint);letter-spacing:0}
[data-generation-state=idle] .generation-stage-label{display:none}
[data-generation-state=checking] .generation-stage-label,[data-generation-state=queued] .generation-stage-label,[data-generation-state=running] .generation-stage-label{padding:4px 9px;background:#b4f6ea0b;border:1px solid #b4f6ea26;border-radius:20px}
[data-generation-state=error] .generation-stage-label{color:var(--error)}
@media(max-width:800px){.site-header{padding:0 20px;min-height:64px}.site-header .primary-nav{gap:16px}.site-header .effects-toggle{font-size:12px;min-height:36px}}

[data-has-prompt=false] .creation-panel #composer-prompt-summary{display:none}
#clear-prompt{margin-left:auto;font-size:14px}.prompt-label-row{gap:10px}
#remix-prompt:disabled{opacity:.6;cursor:not-allowed}.prompt-chips button:disabled{cursor:not-allowed}
.creation-panel .surface-pbr input{width:30px;height:18px}.creation-panel .surface-pbr{padding-block:5px}

/* Keep capability help readable without an oversized inactive form. */
.remix-dialog[data-prompt-supported=false] .remix-controls textarea{min-height:96px;height:96px}
.remix-dialog[data-prompt-supported=false] .prompt-chips{display:none}
@media(max-width:800px){.creation-panel .reference-mode-field select,.creation-panel .generation-surface select,.creation-panel .surface-controls .surface-pbr,.creation-panel .generation-surface .text-button,.available-model-action,.preview-main .mode-button,.preview-main .export-button,.preview-main .export-row select,.empty-open-file{min-height:44px}.creation-panel .reference-remove,.preview-header-actions .icon-button,.preview-main .stage-tools .icon-button{width:44px;height:44px}.creation-panel .generation-surface select,.inline-prompt-panel textarea,.remix-controls textarea{font-size:18px}.creation-panel .composer-footer{flex-wrap:wrap}.remix-dialog .remix-controls textarea{min-height:130px}.creation-panel .batch-control select{min-height:34px}}

/* Each square is a still from its own GLB. Only the selected model opens a WebGL view. */
.exhibits { color:var(--text); }
.exhibit-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.exhibit-tabs { display:flex; gap:8px; }
.exhibit-tabs button,.exhibit-filter { border:1px solid var(--ui-border); border-radius:999px; background:#181c20; color:var(--muted); min-height:44px; font:600 15px/1.3 var(--body); }
.exhibit-tabs button { padding:0 17px; }
.exhibit-tabs button[aria-pressed=true] { color:var(--selection-text); border-color:var(--selection-edge); background:var(--selection-fill); }
.exhibit-tabs [data-saved-count] { font:500 13px/1 var(--body); margin-left:4px; }
.exhibit-filter { display:flex; align-items:center; gap:4px; padding:var(--select-inset); padding-inline-start:12px; }
.exhibit-filter .icon { width:16px; height:16px; }
.exhibit-filter select { padding:0 8px; min-height:44px; max-width:16ch; border:0; font:inherit; color:var(--selection-text); background:var(--select-value-fill); border-radius:999px; }
.exhibit-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,1.7vw,24px); }
.exhibit-card { min-width:0; position:relative; isolation:isolate; border-radius:clamp(18px,2.3vw,30px); background:#141618; }
.exhibit-open { position:relative; display:block; width:100%; aspect-ratio:1; overflow:hidden; border-radius:inherit; background:#15161b; color:#fff; box-shadow:0 0 0 1px #d6e4e119; }
.exhibit-open > img { display:block; width:100%; height:100%; object-fit:cover; }
.exhibit-open::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,#08090ce0,transparent 30%); pointer-events:none; }
.exhibit-open.is-active { outline:3px solid var(--selection-edge); outline-offset:3px; }
.exhibit-open:focus-visible { outline:2px solid var(--cyan); outline-offset:4px; }
.exhibit-meta,.exhibit-open-mark { position:absolute; z-index:1; bottom:17px; }
.exhibit-meta { left:18px; right:46px; display:grid; gap:3px; color:#fff; }
.exhibit-meta strong { font:650 calc(clamp(17px,1.6vw,24px) + 2px)/1.1 var(--display); letter-spacing:-.035em; }
.exhibit-meta > span { font:500 14px/1.4 var(--body); color:#e2e5e5; }
.exhibit-open-mark { right:15px; bottom:19px; width:20px; height:20px; color:#edf2f0; }
.exhibit-open-mark .icon { width:17px; height:17px; }
.exhibit-save { position:absolute; z-index:2; top:10px; right:10px; width:44px; height:44px; display:grid; place-items:center; border:1px solid #f1ffff2a; border-radius:50%; background:#17191bcc; color:#fff; }
.exhibit-save .icon { width:20px; height:20px; }
.exhibit-save[aria-pressed=true] { background:var(--selection-edge); color:#172220; border-color:var(--selection-edge); }
.exhibit-empty { padding:36px 16px; border:1px dashed var(--ui-border); border-radius:18px; text-align:center; }
.exhibit-empty button { padding:8px 15px; min-height:44px; }
@media (hover:hover) and (pointer:fine) {
  .exhibit-save:hover,.exhibit-open:hover { box-shadow:0 0 0 1px var(--ui-mint); }
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine) {
  html:not([data-effects=paused]) .exhibit-open img { transition:transform .4s var(--ease); }
  html:not([data-effects=paused]) .exhibit-open:hover img { transform:scale(1.025); }
}
@media(max-width:900px) { .exhibit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .exhibit-bar { flex-wrap:wrap; gap:8px; }
  .exhibit-grid { gap:10px; }
  .exhibit-meta { left:10px; right:8px; bottom:9px; }
  .exhibit-meta strong { font-size:18px; }
  .exhibit-meta > span { font-size:13px; line-height:1.25; }
  .exhibit-open-mark { display:none; }
  .exhibit-save { top:4px; right:4px; }
  .exhibit-save .icon { width:17px; height:17px; }
  .exhibit-tabs button { padding:0 12px; }
  .exhibit-open::after { background:linear-gradient(0deg,#08090ce8,transparent 40%); }
}
@media(max-width:360px) { .exhibit-grid { grid-template-columns:minmax(0,1fr); } }

/* Model inspection: shared by examples, local uploads and generated results. */
.camera-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; padding:6px 14px; background:#191e21; border-top:1px solid var(--ui-border); color:#d0dbd7; font:500 14px/1.3 var(--body); }
.camera-choice { display:flex; align-items:center; gap:10px; margin-right:auto; }
.camera-choice select { min-height:44px; max-width:170px; padding:0 26px 0 12px; color:var(--text); background:#222a2d; border:1px solid var(--ui-border); border-radius:9px; font:inherit; }
.guide-toggle { display:flex; align-items:center; gap:7px; min-height:44px; cursor:pointer; }
.guide-toggle input { width:16px; height:16px; accent-color:var(--ui-mint); }
.orientation-guide { position:absolute; top:52px; right:12px; width:86px; height:86px; pointer-events:none; opacity:.95; }
.orientation-guide line { stroke:currentColor; stroke-width:1.5; }
.orientation-guide text { fill:currentColor; font:700 14px var(--body); text-anchor:middle; dominant-baseline:central; paint-order:stroke; stroke:#11181b; stroke-width:5px; stroke-linejoin:round; }
.axis-x { color:#f79b94; }.axis-y { color:#a6e1b8; }.axis-z { color:#9cc4ff; }
.stage-shell:not(.is-ready) .orientation-guide { visibility:hidden; }
.preview-main .stage-tools .icon-button { width:44px; height:44px; }
@media(max-width:600px) { .camera-toolbar { gap:0 12px; padding:7px 10px; }.camera-choice { flex:1 0 100%; }.camera-choice select { flex:1; max-width:none; }.orientation-guide { top:48px; right:4px; width:68px; height:68px; } }
