:root {
  color-scheme: dark;
  --bg: #09111f;
  --panel: #111c2d;
  --panel-inset: #0b1423;
  --line: #27364c;
  --text: #f2f5f9;
  --muted: #9cacc2;
  --amber: #ffc365;
  --focus: #7bb4ff;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(ellipse at 78% -10%, #1a2a42 0, transparent 47%), var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber); }
button, input, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button { color: var(--text); }
.page-shell { max-width: 1460px; padding: 0 48px; margin: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; padding: 27px 0 25px; border-bottom: 1px solid rgba(156,172,194,.16); gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-weight: 750; font-size: 13px; letter-spacing: .15em; }
.brand img { border-radius: 12px; object-fit: cover; }
.brand-subtitle { display: block; font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }
.model-link { font-size: 12px; font-weight: 650; border: 1px solid var(--line); border-radius: 7px; padding: 10px 15px; background: rgba(17,28,45,.5); }
.model-link span { margin-left: 9px; color: var(--amber); }
.introduction { padding: 40px 0 32px; }
.eyebrow { color: var(--amber); letter-spacing: .17em; font-size: 10px; font-weight: 750; }
h1 { font-size: clamp(36px, 4.2vw, 56px); font-weight: 750; letter-spacing: -.05em; line-height: 1.16; margin: 10px 0 12px; }
.version { display: inline-block; vertical-align: middle; font-size: 11px; line-height: 1.5; letter-spacing: .01em; padding: 3px 8px; border-radius: 5px; color: var(--muted); border: 1px solid var(--line); margin-left: 15px; font-weight: 600; }
.introduction > p { color: var(--muted); font-size: 17px; margin: 0 0 19px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chips > span { font-size: 11px; border: 1px solid var(--line); border-radius: 20px; padding: 5px 10px; background: rgba(17,28,45,.7); }
.chip-muted { color: var(--muted); }
.privacy-dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: #83d8ac; vertical-align: middle; margin: 0 5px 2px 0; }
.workspace { display: grid; grid-template-columns: minmax(300px, 350px) minmax(0, 1fr); align-items: start; gap: 30px; }
.controls-panel { padding: 23px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 16px 35px #0002; }
.panel-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
h2, h3 { margin: 0; }
.panel-heading h2 { font-size: 16px; font-weight: 700; }
.section-number { color: #5b708c; font-size: 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .07em; }
label { display: block; font-size: 11px; font-weight: 650; color: #d6deea; margin-bottom: 7px; }
input, textarea, select { width: 100%; color: var(--text); background: var(--panel-inset); border: 1px solid #304059; border-radius: 6px; font-size: 12px; }
input, select { height: 38px; padding: 0 10px; }
select { padding-right: 22px; }
input::placeholder, textarea::placeholder { color: #687e9a; }
textarea { padding: 12px; resize: vertical; min-height: 109px; line-height: 1.7; }
input:hover, textarea:hover, select:hover { border-color: #516482; }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 7px 0 12px; }
.scene-import-control { margin: 0 0 16px; padding: 12px; border: 1px solid #304059; border-radius: 7px; background: var(--panel-inset); }
.scene-import-control input[type="file"] { height: auto; padding: 7px; font-size: 10px; }
.scene-import-control .field-hint { margin-bottom: 0; }
.scene-import-control [hidden] { display: none; }
.scene-import-control #clear-layout { padding-top: 10px; }
.suggestion-controls { margin: 12px 0 4px; padding: 11px 12px 12px; border: 1px solid #304059; border-radius: 7px; background: var(--panel-inset); }
.suggestion-toggle { display: flex; align-items: center; gap: 8px; margin: 0; color: #d6deea; font-size: 10px; font-weight: 600; }
.suggestion-toggle input { flex: 0 0 14px; width: 14px; height: 14px; margin: 0; accent-color: var(--amber); }
.suggestion-controls .text-button { padding-top: 11px; }
.suggestion-controls .field-hint { margin-bottom: 0; }
#unlock-suggestions[hidden], #props label[hidden], #prop-search-empty[hidden] { display: none; }
.compact { margin-bottom: 0; }
.example-line { margin-top: 15px; }
.text-button { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 13px 0 0; color: var(--amber); font-size: 11px; font-weight: 650; }
.text-button:hover { color: #ffe1af; }
.control-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 19px; }
.section-heading { margin-bottom: 15px; }
.section-heading h3 { font-size: 12px; }
.control-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px 11px; }
.options-section { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 15px; }
summary { font-size: 12px; font-weight: 650; }
summary::marker { color: #8393ab; font-size: 10px; }
.summary-count, .summary-hint { float: right; color: var(--muted); font-size: 10px; font-weight: 500; }
.options-section[open] summary { margin-bottom: 14px; }
.props-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 5px; border: 0; padding: 3px 0 0; margin: 0; }
.props-grid label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; font-size: 10px; color: #d1dbe9; }
.props-grid { max-height: 220px; overflow: auto; scrollbar-color: #526783 #0b1423; }
.props-grid label { min-width: 0; padding: 3px 2px; }
.props-grid label span { overflow-wrap: anywhere; }
.props-grid input { width: 13px; height: 13px; margin: 0; accent-color: var(--amber); }
.props-grid input:disabled + span { color: #687e9a; }
.label-optional { font-weight: 400; color: var(--muted); font-size: 10px; margin-left: 4px; }
.seed-grid { margin-top: 12px; }
.seed-input { display: flex; }
.seed-input input { min-width: 0; border-radius: 6px 0 0 6px; border-right: 0; }
.seed-input button { border: 1px solid #304059; background: #1a2a40; width: 34px; flex-shrink: 0; border-radius: 0 6px 6px 0; font-size: 17px; color: var(--amber); }
.generate-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 23px; padding: 13px 16px; border: 0; border-radius: 7px; color: #141a26; background: var(--amber); font-size: 13px; font-weight: 750; box-shadow: 0 3px 8px #0003; }
.generate-button:hover:enabled { background: #ffd58f; }
.generate-button:disabled { opacity: .55; }
.error-message { color: #ffb6ac; font-size: 11px; line-height: 1.7; margin: 12px 0 0; }
.output-panel { min-width: 0; padding-top: 4px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; gap: 20px; }
.preview-heading h2 { font-size: 21px; letter-spacing: -.035em; margin-top: 7px; font-weight: 650; }
.model-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px #ffc36512; }
.model-status.ready .status-dot { background: #83d8ac; box-shadow: 0 0 0 3px #83d8ac12; }
.model-status.error .status-dot { background: #f48b80; }
.frame-card { border: 1px solid #34445b; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 45px #0004; }
.frame-toolbar, .frame-footer { display: flex; justify-content: space-between; align-items: center; background: #152136; }
.frame-toolbar { padding: 11px 14px; border-bottom: 1px solid var(--line); }
#frame-name { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; color: #b7c6da; letter-spacing: .12em; }
.view-tabs { display: inline-flex; background: #0b1423; padding: 3px; border: 1px solid #27364c; border-radius: 6px; }
.view-tab { border: 0; background: transparent; border-radius: 4px; color: var(--muted); font-size: 10px; padding: 5px 11px; }
.view-tab.active { background: #2a3a53; color: #fff; }
.canvas-wrap { position: relative; background: white; aspect-ratio: 2.39; }
#frame { display: block; width: 100%; height: 100%; background: white; }
.frame-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: #526079; background: #f5f6f7; font-size: 12px; text-align: center; padding: 20px; }
.frame-placeholder[hidden] { display: none; }
.loading-mark { font-size: 32px; color: #bf8439; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.frame-footer { gap: 20px; padding: 12px 15px; min-height: 43px; }
#frame-caption { font-size: 10px; color: #b0bfd2; }
.aspect-label { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; color: #7085a1; white-space: nowrap; }
.download-row { display: flex; gap: 9px; margin-top: 15px; flex-wrap: wrap; }
.download-button { display: inline-flex; gap: 7px; align-items: center; background: #152136; border: 1px solid var(--line); border-radius: 6px; padding: 9px 13px; font-size: 11px; font-weight: 600; }
.download-button span { color: var(--amber); font-size: 13px; }
.download-button:hover { border-color: #617591; }
.download-button.disabled { opacity: .4; pointer-events: none; }
.scene-note { display: flex; gap: 13px; align-items: center; margin: 24px 0; padding: 15px 17px; border: 1px solid #293b55; background: linear-gradient(115deg, #152238, #111b2c); border-radius: 8px; }
.note-icon { color: var(--amber); font-size: 21px; }
.scene-note p { font-size: 12px; color: #b4c3d7; margin: 0; line-height: 1.75; }
.metadata-panel { padding: 17px; background: #101b2c; border: 1px solid var(--line); border-radius: 8px; }
.metadata-panel pre { max-height: 320px; padding: 13px; background: #08111f; color: #b8c9df; font-size: 10px; line-height: 1.7; overflow: auto; border-radius: 5px; white-space: pre; }
.about-model { padding: 27px 1px 0; }
.about-model h3 { font-size: 12px; color: #e2e9f2; }
.about-model p { max-width: 750px; color: var(--muted); font-size: 11px; line-height: 1.85; margin: 9px 0; }
.about-links { display: flex; align-items: center; gap: 19px; margin-top: 14px; font-size: 10px; }
.about-links a { color: var(--amber); font-weight: 600; }
.about-links span { color: #6f839f; }
.site-footer { margin: 38px 0 20px; padding-top: 17px; border-top: 1px solid #1c2b3e; display: flex; justify-content: space-between; color: #7487a2; font-size: 10px; gap: 20px; }
.noscript-message { position: fixed; inset: auto 0 0; padding: 20px; background: #3d2430; text-align: center; }
.noscript-message a { color: var(--amber); text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1250px) { .output-panel { position: sticky; top: 25px; } }
@media (max-width: 1050px) { .page-shell { padding: 0 27px; } .workspace { gap: 22px; grid-template-columns: minmax(290px, 320px) minmax(0,1fr); } .controls-panel { padding: 19px; } .preview-heading { align-items: start; flex-direction: column; gap: 8px; } .preview-heading h2 { font-size: 19px; } .download-button { padding: 8px 10px; font-size: 10px; } }
@media (max-width: 780px) { .workspace { grid-template-columns: 1fr; } .output-panel { grid-row: 1; } .controls-panel { grid-row: 2; } .preview-heading { flex-direction: row; align-items: center; } .introduction { padding: 29px 0 25px; } .scene-note, .metadata-panel, .about-model { display: none; } .download-row { margin-bottom: 3px; } .masthead { padding: 20px 0; } .brand { font-size: 11px; gap: 9px; } .brand img { width: 40px; height: 40px; border-radius: 9px; } .model-link { font-size: 10px; padding: 8px 11px; } .site-footer { margin-top: 25px; } }
@media (max-width: 460px) { .page-shell { padding: 0 16px; } .brand-subtitle { font-size: 8px; } .brand { letter-spacing: .1em; } .model-link { max-width: 121px; line-height: 1.7; } .introduction > p { font-size: 14px; } .feature-chips > span { font-size: 9px; } .preview-heading { flex-direction: column; align-items: start; gap: 7px; } .preview-heading h2 { font-size: 20px; } .frame-toolbar { padding: 9px 11px; } .frame-footer { padding: 10px 11px; } .download-row { gap: 6px; } .download-button { font-size: 9px; padding: 8px 9px; } .site-footer { flex-direction: column; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .loading-mark { animation: none; } }
