:root { color-scheme: dark; --canvas:#111211; --surface:#191b19; --surface-raised:#20231f; --surface-soft:#171917; --line:#363a34; --line-muted:#2b2e29; --text:#f1f1e9; --muted:#a7aaa0; --subtle:#777b72; --lime:#d8ec8d; --lime-deep:#bfd672; --amber:#f0c989; --red:#f39c93; --blue:#b8d6ef; --shadow:0 22px 60px #0005; font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; }
html { min-height:100%; background:var(--canvas); }
body { min-width:320px; min-height:100vh; margin:0; background:radial-gradient(circle at 55% -20%,#3c45281c,transparent 35rem),var(--canvas); color:var(--text); font-size:15px; line-height:1.5; }
button,input,textarea,select { font:inherit; } button { cursor:pointer; } button:disabled { opacity:.42; cursor:not-allowed; } button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:2px solid var(--lime); outline-offset:3px; } ::selection { background:#d8ec8d44; }
.skip-link { position:fixed; left:12px; top:-60px; padding:9px 13px; z-index:10; background:var(--lime); color:#1d2116; border-radius:5px; font-weight:700; transition:top .15s; }.skip-link:focus { top:12px; }
.topbar { min-height:64px; padding:12px clamp(18px,3vw,44px); display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line-muted); }.brand { color:var(--text); text-decoration:none; display:flex; align-items:center; gap:9px; font-size:12px; letter-spacing:.13em; font-weight:780; }.brand-mark { width:27px; height:27px; display:grid; place-items:center; border:1px solid var(--lime); border-radius:3px; color:var(--lime); font-size:10px; letter-spacing:0; }.brand-divider,.brand-sub { color:var(--subtle); font-weight:600; }.connection { color:var(--muted); font-size:12px; display:flex; align-items:center; gap:8px; }.connection i { display:block; width:7px; height:7px; border-radius:50%; background:var(--amber); }.connection.ready i { background:var(--lime); }.connection.error i { background:var(--red); }
.notice { max-width:1480px; margin:14px auto 0; padding:10px 15px; border:1px solid #4d513f; border-radius:7px; color:#eef3d4; background:#25291e; font-size:13px; }.notice.error { border-color:#714a48; color:#ffd9d4; background:#342423; }.notice.warning { border-color:#655633; color:#f8e6bd; background:#302a1e; }
.landing { min-height:calc(100vh - 64px); width:min(940px,calc(100% - 40px)); margin:auto; display:grid; align-content:center; gap:20px; padding:75px 0 105px; }.eyebrow { color:var(--lime); letter-spacing:.14em; font-size:11px; font-weight:750; margin:0 0 11px; }.landing h1 { max-width:700px; margin:0; font:400 clamp(38px,6vw,68px)/1.06 Georgia,serif; letter-spacing:-.035em; }.landing h1 em { color:var(--amber); font-style:normal; }.landing-copy { max-width:610px; color:var(--muted); font-size:17px; margin:0; }.project-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; margin-top:12px; }.project-card { text-align:left; padding:18px; min-height:110px; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:8px; }.project-card:hover { background:var(--surface-raised); border-color:#656b55; }.project-card strong { display:block; font-size:16px; margin-bottom:5px; }.project-card span { color:var(--muted); font-size:12px; }.landing-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:7px; }
.button { border:1px solid var(--line); border-radius:5px; padding:8px 12px; color:var(--text); background:var(--surface-raised); font-weight:650; font-size:13px; }.button:hover:not(:disabled) { background:#292d27; border-color:#62675a; }.button.primary { color:#192012; background:var(--lime); border-color:var(--lime); }.button.primary:hover:not(:disabled) { background:#e6f5ab; }.button.danger { color:#2a1615; background:var(--red); border-color:var(--red); }.button.quiet { border-color:transparent; background:transparent; color:var(--muted); }.button.quiet:hover:not(:disabled) { color:var(--text); background:var(--surface-raised); }.button.small { padding:5px 8px; font-size:12px; }.icon-button { width:32px; height:32px; border:0; border-radius:5px; background:transparent; color:var(--muted); font-size:25px; line-height:1; }.icon-button:hover { color:var(--text); background:var(--surface-raised); }
.studio { width:min(1600px,100%); min-height:calc(100vh - 64px); margin:auto; display:grid; grid-template-columns:minmax(240px,300px) minmax(420px,1fr) minmax(285px,360px); }.outline,.inspector { min-width:0; background:#141614cc; }.outline { border-right:1px solid var(--line-muted); }.inspector { border-left:1px solid var(--line-muted); }.pane-heading { padding:20px 18px 14px; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }.pane-heading h2 { margin:0; font-size:15px; letter-spacing:.01em; }.pane-heading p { color:var(--muted); font-size:12px; margin:3px 0 0; }.outline-actions { display:flex; gap:4px; }.search { width:calc(100% - 36px); margin:0 18px 11px; padding:8px 9px; color:var(--text); background:#101210; border:1px solid var(--line); border-radius:5px; font-size:12px; }.tree { padding:0 9px 25px; }.tree-empty { margin:9px; padding:16px; border:1px dashed #4a4e46; color:var(--muted); font-size:13px; border-radius:6px; }.tree-node { margin:1px 0; }.tree-row { min-height:38px; width:100%; display:flex; align-items:center; gap:7px; padding:6px 8px; border:1px solid transparent; border-radius:5px; background:transparent; color:var(--text); text-align:left; }.tree-row:hover { background:var(--surface); }.tree-row[aria-current="true"] { background:#293022; border-color:#566343; }.tree-row .disclosure { flex:0 0 16px; color:var(--subtle); font-size:12px; }.tree-row .disclosure.blank { visibility:hidden; }.tree-row .type-dot { flex:0 0 7px; width:7px; height:7px; border-radius:50%; background:var(--blue); }.tree-row .type-dot.gameplay { background:var(--lime); }.tree-row .type-dot.result,.tree-row .type-dot.title { background:var(--amber); }.tree-row .label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }.tree-row .count { margin-left:auto; color:var(--subtle); font-size:10px; }.tree-children { margin-left:16px; border-left:1px solid #30342e; padding-left:4px; }.archive-row { margin:9px 18px; padding-top:12px; border-top:1px solid var(--line-muted); }.archive-row summary { cursor:pointer; color:var(--muted); font-size:12px; }.archived-beat { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:7px; color:var(--muted); font-size:12px; }
.editor { min-width:0; background:linear-gradient(130deg,#191c18 0%,#171916 70%); }.editor-top { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:29px clamp(22px,4vw,54px) 17px; border-bottom:1px solid var(--line-muted); }.breadcrumb { color:var(--muted); font-size:12px; margin-bottom:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.editor-top h1 { margin:0; font:400 clamp(27px,3vw,42px)/1.15 Georgia,serif; letter-spacing:-.025em; }.type-label { display:inline-flex; gap:6px; align-items:center; color:var(--lime); font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }.type-label::before { content:""; display:block; width:6px; height:6px; border-radius:50%; background:currentColor; }.editor-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }.tabs { display:flex; overflow-x:auto; padding:0 clamp(22px,4vw,54px); border-bottom:1px solid var(--line-muted); }.tab { flex:0 0 auto; padding:12px 0 10px; margin-right:20px; color:var(--muted); border:0; border-bottom:2px solid transparent; background:transparent; font-weight:650; font-size:13px; }.tab[aria-selected="true"] { color:var(--text); border-color:var(--lime); }.editor-content { max-width:940px; margin:auto; padding:29px clamp(22px,4vw,54px) 80px; }.content-section { margin-bottom:34px; }.section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:12px; }.section-heading h2 { margin:0; font-size:16px; }.section-heading p { margin:0; color:var(--muted); font-size:12px; }.intent-form label,.composer label,.form-field label,dialog label { display:block; color:#dadcd4; font-size:12px; font-weight:700; margin-bottom:7px; }.intent-form textarea,.composer textarea,.form-field input,.form-field select,dialog input,dialog select { width:100%; padding:10px 11px; color:var(--text); background:#101210; border:1px solid #454941; border-radius:5px; }.intent-form textarea { min-height:220px; resize:vertical; font:15px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace; }.field-help { color:var(--muted); font-size:12px; margin:7px 0 0; }.save-row { min-height:36px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; }.save-state { color:var(--muted); font-size:12px; }.empty-state { padding:34px 25px; text-align:center; border:1px dashed #464a43; border-radius:8px; color:var(--muted); }.empty-state h2 { color:var(--text); font:400 26px Georgia,serif; margin:0 0 8px; }.empty-state p { max-width:390px; margin:0 auto 17px; }.version-bar { display:flex; align-items:center; flex-wrap:wrap; gap:9px; padding:12px 14px; border:1px solid #4b513f; border-radius:7px; background:#20241c; }.version-bar strong { font-size:13px; }.version-bar span { color:var(--muted); font-size:12px; }.version-bar select { max-width:250px; margin-left:auto; padding:6px 8px; color:var(--text); background:#151714; border:1px solid var(--line); border-radius:4px; font-size:12px; }.timeline { list-style:none; margin:0; padding:0; }.timeline li { position:relative; padding:0 0 18px 22px; border-left:1px solid var(--line); }.timeline li::before { content:""; position:absolute; left:-4px; top:5px; width:7px; height:7px; background:var(--lime); border-radius:50%; }.timeline li:last-child { border-color:transparent; }.timeline strong { display:block; font-size:13px; }.timeline span { color:var(--muted); font-size:12px; }.history-card { padding:15px 0; border-bottom:1px solid var(--line-muted); }.history-card p { color:var(--muted); margin:5px 0; font-size:13px; }.history-card time,.scope { color:var(--subtle); font-size:11px; }.discussion-list { display:grid; gap:11px; }.discussion { padding:15px; border:1px solid var(--line); background:#181a18; border-radius:7px; }.discussion.question { border-left:3px solid var(--amber); }.discussion.decision { border-left:3px solid var(--lime); }.discussion-head { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:11px; }.badge { display:inline-block; padding:2px 6px; border:1px solid var(--line); border-radius:99px; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }.badge.open { color:#ffe1ad; border-color:#725c38; }.badge.resolved { color:#dff3a3; border-color:#58673e; }.discussion p { margin:8px 0 0; white-space:pre-wrap; }.discussion-replies { margin:12px 0 0 12px; padding-left:12px; border-left:1px solid var(--line); }.reply { margin-top:10px; }.reply .discussion-head { margin-bottom:3px; }.composer { margin-top:18px; padding-top:18px; border-top:1px solid var(--line-muted); }.composer textarea { min-height:82px; resize:vertical; }.composer-row { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:8px; }.composer-row select { padding:6px; color:var(--text); background:#101210; border:1px solid var(--line); border-radius:4px; font-size:12px; }.details-list { margin:0; }.details-list div { display:grid; grid-template-columns:120px 1fr; gap:12px; padding:10px 0; border-bottom:1px solid var(--line-muted); }.details-list dt { color:var(--muted); font-size:12px; }.details-list dd { margin:0; font-size:13px; overflow-wrap:anywhere; }.muted { color:var(--muted); }.draft-banner { margin-bottom:16px; padding:10px 13px; border:1px solid #75633c; border-radius:6px; color:#f5dfae; background:#2a251a; font-size:13px; }.conflict-banner { padding:12px 14px; border:1px solid #81514d; border-radius:7px; color:#ffd3cd; background:#342322; font-size:13px; }.conflict-banner button { margin-top:8px; }
.inspector-body { padding:4px 18px 30px; }.inspector-group { padding:17px 0; border-bottom:1px solid var(--line-muted); }.inspector-group:last-child { border:0; }.inspector-group h3 { margin:0 0 9px; font-size:12px; color:var(--muted); letter-spacing:.08em; text-transform:uppercase; }.inspector-group p { margin:0; font-size:13px; }.mini-actions { display:grid; gap:7px; }.mini-actions .button { text-align:left; }.move-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }.readonly-note { margin:10px 0 0; color:var(--muted); font-size:12px; }.connection-detail { padding:20px; margin:14px 18px; border:1px solid #664d4b; border-radius:7px; color:#ffd6cf; background:#2a2020; font-size:13px; }.connection-detail code { color:#f9e5bf; font-size:11px; }
dialog { width:min(520px,calc(100% - 28px)); border:1px solid #565b51; border-radius:9px; padding:0; color:var(--text); background:#1c1f1b; box-shadow:var(--shadow); }dialog::backdrop { background:#000a; backdrop-filter:blur(2px); }dialog form { padding:22px; }.dialog-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:21px; }.dialog-heading h2 { margin:0; font:400 28px/1.1 Georgia,serif; }.dialog-heading .eyebrow { margin-bottom:5px; }dialog input,dialog select { margin-bottom:5px; }dialog label { margin-top:14px; }.two-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:24px; }.form-error { min-height:19px; margin:10px 0 0; color:#ffc6be; font-size:12px; }
@media (max-width:1160px) { .studio { grid-template-columns:minmax(230px,280px) minmax(0,1fr); }.inspector { grid-column:1/-1; border-left:0; border-top:1px solid var(--line-muted); }.inspector-body { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }.inspector-group { border-bottom:0; }.connection-detail { grid-column:1/-1; } }
@media (max-width:760px) { .topbar { min-height:55px; padding-inline:15px; }.brand-sub,.brand-divider { display:none; }.studio { display:block; min-height:calc(100vh - 55px); }.outline { border-right:0; border-bottom:1px solid var(--line-muted); }.pane-heading { padding:15px 14px 10px; }.search { width:calc(100% - 28px); margin:0 14px 9px; }.tree { max-height:250px; overflow:auto; padding-inline:7px; }.editor-top { padding:20px 17px 14px; gap:12px; }.editor-actions { justify-content:flex-start; }.tabs { padding-inline:17px; }.editor-content { padding:22px 17px 55px; }.inspector-body { display:block; padding-inline:14px; }.inspector-group { border-bottom:1px solid var(--line-muted); }.details-list div { grid-template-columns:1fr; gap:2px; }.landing { width:min(100% - 32px,940px); padding:52px 0; }.landing h1 { font-size:42px; }.connection { font-size:11px; }.version-bar select { width:100%; margin-left:0; max-width:none; }.two-fields { grid-template-columns:1fr; gap:0; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
.move-target { display:flex; gap:7px; margin-top:8px; }.move-target select { min-width:0; flex:1; padding:6px; color:var(--text); background:#101210; border:1px solid var(--line); border-radius:4px; font-size:12px; }
.story-document { max-width:720px; }.story-section { padding:20px 0; border-bottom:1px solid var(--line-muted); }.story-section-head { display:flex; align-items:baseline; gap:11px; margin-bottom:8px; }.story-section h3 { margin:0; font:400 23px/1.2 Georgia,serif; }.story-passage { margin:0; color:#e2e4db; white-space:pre-wrap; line-height:1.7; }.story-section .type-label { font-size:9px; flex:0 0 auto; }
.pinned-note { color:var(--amber)!important; }
.section-label,.story-field-label { display:block; margin:25px 0 8px; color:var(--amber); font-size:11px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }.passage-field { margin-top:16px; }.passage-field textarea { min-height:145px; resize:vertical; font:15px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace; }.story-intent { margin:0; color:var(--muted); white-space:pre-wrap; line-height:1.65; }
.creation-section { max-width:1040px; }.creation-heading .version-bar { margin-bottom:24px; }.creation-error { margin:0 0 14px; color:#ffd0c9; font-size:13px; }.creation-card { margin:16px 0; padding:17px; border:1px solid var(--line); border-radius:8px; background:#181a18; }.creation-card h3 { margin:0 0 10px; font-size:14px; }.creation-card > .field-help { margin-bottom:13px; }.upload-fields,.build-controls { display:grid; grid-template-columns:minmax(130px,.7fr) minmax(170px,1fr) minmax(180px,1.25fr) auto; align-items:end; gap:9px; }.upload-fields input,.upload-fields select,.build-controls select,.advanced-build textarea { min-width:0; padding:9px 10px; color:var(--text); background:#101210; border:1px solid var(--line); border-radius:5px; }.upload-fields input[type=file] { padding:6px; font-size:12px; }.object-list,.artifact-list,.jobs-list { display:grid; gap:10px; }.object-row,.artifact-row { display:grid; grid-template-columns:minmax(120px,1fr) minmax(130px,260px) auto; align-items:center; gap:12px; min-width:0; padding:11px 0; border-top:1px solid var(--line-muted); }.object-row:first-child,.artifact-row:first-child { border-top:0; }.object-copy { min-width:0; }.object-copy strong,.object-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.object-copy strong { font-size:13px; }.object-copy span { color:var(--muted); font-size:11px; margin-top:2px; }.object-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }.asset-preview { display:block; max-width:250px; max-height:118px; min-width:0; border:1px solid #41473b; border-radius:4px; background:#0c0d0c; image-rendering:auto; }audio.asset-preview { width:100%; }.advanced-build { margin-top:13px; }.advanced-build summary { color:var(--muted); cursor:pointer; font-size:12px; }.advanced-build textarea { display:block; width:100%; min-height:115px; margin-top:9px; resize:vertical; font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; }.job-card { padding:14px 16px; border:1px solid var(--line); border-radius:8px; background:#181a18; }.job-card.succeeded { border-color:#53663d; }.job-card.failed,.job-card.cancelled { border-color:#624744; }.job-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }.job-head strong { font-size:14px; }.job-card p { margin:5px 0 12px; color:var(--muted); font-size:12px; }.job-state { padding:2px 7px; border:1px solid var(--line); border-radius:99px; color:var(--muted); font-size:10px; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }.job-state.succeeded { border-color:#586d41; color:#def2aa; }.job-state.failed,.job-state.cancelled { border-color:#724d4a; color:#ffd2ca; }.job-detail { margin-top:21px; }.job-detail .field-help { max-width:700px; }
@media (max-width:760px) { .upload-fields,.build-controls { grid-template-columns:1fr; }.object-row,.artifact-row { grid-template-columns:1fr; align-items:start; }.asset-preview { max-width:100%; max-height:220px; }.object-actions { justify-content:flex-start; } }
.creation-error { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sprite-preview { margin-top:18px; padding-top:16px; border-top:1px solid var(--line-muted); }.sprite-preview h4 { margin:0 0 4px; font-size:13px; }.sprite-preview p { margin:0 0 9px; font-size:12px; }.sprite-animation-host { margin-top:10px; }.sprite-animation { display:block; width:min(256px,100%); height:auto; border:1px solid #596947; border-radius:5px; background:#0b0c0a; image-rendering:pixelated; image-rendering:crisp-edges; }.animation-controls { display:flex; align-items:center; gap:9px; margin-top:7px; }
.artifact-row.media-artifact { grid-template-columns:minmax(0,1fr) auto; align-items:start; }.artifact-row.media-artifact .object-copy { grid-column:1; grid-row:1; }.artifact-row.media-artifact .object-actions { grid-column:2; grid-row:1; }.artifact-row.media-artifact audio,.artifact-row.media-artifact video,.artifact-row.media-artifact img { grid-column:1/-1; grid-row:2; width:100%; min-width:0; margin-top:2px; }.artifact-row.media-artifact video { max-width:768px; max-height:none; aspect-ratio:256/240; height:auto; image-rendering:pixelated; image-rendering:crisp-edges; }.artifact-row.media-artifact img { max-width:768px; max-height:none; image-rendering:pixelated; image-rendering:crisp-edges; }@media (max-width:760px) { .artifact-row.media-artifact { grid-template-columns:minmax(0,1fr) auto; }.artifact-row.media-artifact video { max-width:100%; } }
.integration-section { max-width:1040px; }.integration-card { margin:16px 0; padding:17px; border:1px solid var(--line); border-radius:8px; background:#181a18; }.integration-card h3,.integration-card h4 { margin:0 0 8px; }.integration-card h3 { font-size:14px; }.integration-card h4 { font-size:13px; }.integration-baseline { border-color:#586d41; }.integration-form { display:grid; gap:11px; margin-top:14px; }.integration-scene-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; min-width:0; margin:0; padding:13px; border:1px solid var(--line-muted); border-radius:6px; }.integration-scene-row legend { grid-column:1/-1; padding:0; font-size:13px; font-weight:700; }.integration-scene-row label { display:grid; gap:6px; min-width:0; color:#dadcd4; font-size:11px; font-weight:700; }.integration-scene-row input,.integration-scene-row select,.integration-scene-row textarea { min-width:0; box-sizing:border-box; width:100%; padding:8px 9px; color:var(--text); background:#101210; border:1px solid var(--line); border-radius:5px; font:12px ui-monospace,SFMono-Regular,Menlo,monospace; }.integration-scene-row select[multiple] { min-height:72px; font-family:inherit; }.integration-launch-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }.integration-candidates { display:grid; gap:10px; }.integration-candidate { padding:13px; border:1px solid var(--line-muted); border-radius:6px; }.integration-candidate.succeeded { border-color:#586d41; }.integration-candidate.failed,.integration-candidate.cancelled { border-color:#724d4a; }.integration-candidate p { margin:5px 0 10px; color:var(--muted); font-size:12px; }.integration-review-list { margin-top:15px; padding-top:14px; border-top:1px solid var(--line-muted); }.integration-review-list p { margin:5px 0; font-size:12px; }.integration-warning,.integration-pending { margin:10px 0; padding:9px 11px; border-radius:5px; font-size:12px; }.integration-warning { color:#f5dfae; border:1px solid #75633c; background:#2a251a; }.integration-pending { color:#d1d7cc; border:1px solid #485148; background:#1f251e; }.capacity-report { margin-top:16px; padding-top:14px; border-top:1px solid var(--line-muted); }.capacity-report h4 { margin:0 0 10px; }.capacity-meter { display:grid; grid-template-columns:145px minmax(110px,.65fr) minmax(280px,1.45fr); align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line-muted); }.capacity-meter h5 { margin:0; font-size:12px; }.capacity-meter p { margin:3px 0 0; font-size:11px; }.capacity-bar { height:9px; overflow:hidden; border:1px solid #4c5644; border-radius:99px; background:#101210; }.capacity-bar span { display:block; height:100%; min-width:2px; background:linear-gradient(90deg,#8ca95c,#d2b464); }.capacity-figures { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0; }.capacity-figures dt { color:var(--muted); font-size:10px; }.capacity-figures dd { margin:2px 0 0; font-size:11px; font-weight:700; }.capacity-unmeasured { color:#f5dfae; }.capacity-constraint { margin:11px 0 0; color:var(--muted); font-size:11px; }.capacity-report > .field-help { margin-bottom:0; }
@media (max-width:960px) { .integration-scene-row { grid-template-columns:repeat(2,minmax(0,1fr)); }.integration-scene-row legend { grid-column:1/-1; }.capacity-meter { grid-template-columns:150px 1fr; }.capacity-figures { grid-column:1/-1; } }
@media (max-width:1160px) { .integration-scene-row { grid-template-columns:repeat(2,minmax(0,1fr)); }.integration-launch-fields { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) { .integration-card { padding:14px; }.integration-scene-row { grid-template-columns:1fr; padding:12px; }.integration-launch-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }.capacity-meter { grid-template-columns:1fr; gap:8px; }.capacity-figures { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.integration-launch-fields { grid-column:1/-1; grid-template-columns:repeat(6,minmax(0,1fr)); }
@media (max-width:760px) { .integration-launch-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.advanced-test-plan { grid-column:1/-1; min-width:0; width:100%; box-sizing:border-box; padding-top:4px; }.advanced-test-plan summary { color:var(--muted); cursor:pointer; font-size:12px; }.advanced-test-plan > .field-help { margin:7px 0 11px; }.advanced-test-plan > label { display:inline-grid; width:calc(33.333% - 7px); margin:0 7px 9px 0; vertical-align:top; }.advanced-test-plan > .integration-launch-fields { margin-top:2px; }.integration-launch-fields > label:has(textarea[name="inputs"]),.integration-launch-fields > label:has(textarea[name="witnesses"]) { grid-column:span 3; }.integration-media { margin-top:16px; padding-top:14px; border-top:1px solid var(--line-muted); }.integration-media h4 { margin:0 0 4px; }.integration-media > .muted { margin:0 0 9px; font-size:12px; }
@media (max-width:760px) { .advanced-test-plan > label { display:grid; width:100%; margin-right:0; } }
@media (max-width:760px) { .integration-section,.integration-card,.integration-form,.integration-scene-row,.advanced-test-plan,.integration-launch-fields,.integration-media { box-sizing:border-box; min-width:0; max-width:100%; }.integration-scene-row input,.integration-scene-row textarea { max-width:100%; }.integration-launch-fields > label:has(textarea[name="inputs"]),.integration-launch-fields > label:has(textarea[name="witnesses"]) { grid-column:1/-1; }.integration-media .artifact-row { min-width:0; } }
.integration-scene-row input[type="checkbox"] { display:inline-block; width:auto; max-width:none; margin:0 5px 0 0; vertical-align:middle; }
.integration-scene-row label[hidden] { display:none; }
.integration-review-list p { overflow-wrap:anywhere; }
.capacity-figures { grid-column:1/-1; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
@media (max-width:760px) { .capacity-figures { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } }

/* Accepted-story presentation modes. Cards use the same dark surfaces as the
   editor, while exact-version labels remain visible at every viewport. */
.storyboard-views { max-width:1180px; }.story-view-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 18px; }.story-view-tabs .tab[aria-pressed="true"] { color:var(--text); border-color:#879a5e; background:#272d21; }.story-sequence { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(300px,380px); gap:14px; overflow-x:auto; overscroll-behavior-inline:contain; padding:2px 2px 14px; scroll-snap-type:x proximity; }.story-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }.story-card { min-width:0; padding:15px; border:1px solid var(--line); border-radius:8px; background:#181a18; cursor:pointer; scroll-snap-align:start; }.story-card:focus-visible { outline:2px solid var(--lime); outline-offset:2px; }.story-card:hover { border-color:#58644b; }.story-card h3 { margin:8px 0 5px; font-size:17px; }.story-card-head,.story-carousel-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; }.story-type,.story-card-index,.story-exact,.story-media-label,.story-duration { font-size:11px; }.story-type { color:var(--amber); font-weight:750; letter-spacing:.08em; text-transform:uppercase; }.story-card-index,.story-exact,.story-media-label { color:var(--muted); }.story-exact { margin:0 0 11px; overflow-wrap:anywhere; }.story-intent-preview { display:-webkit-box; overflow:hidden; margin:0 0 12px; color:#dfe1d9; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:3; }.story-preview { min-height:46px; margin:0 0 10px; }.story-media { display:block; width:100%; max-height:230px; border:1px solid #41473b; border-radius:5px; background:#0b0c0a; object-fit:contain; }.story-media video { aspect-ratio:4/3; }.story-media-label { margin:5px 0 0; }.story-media-unavailable { margin:0; color:#d1c6ae; font-size:12px; line-height:1.45; }.story-duration { margin:12px 0 10px; color:#cbd5af; }.story-duration.missing { color:#f5dfae; }.story-card .story-play,.story-card .story-duration-edit { margin:0 6px 0 0; }.story-carousel { max-width:700px; margin:0 auto; }.story-carousel .story-card { margin-top:13px; }.story-carousel-count { color:var(--muted); font-size:12px; }.story-animatic { max-width:700px; margin:0 auto; }.animatic-stage { margin-top:13px; }.animatic-stage .story-card { border-color:#728852; background:#1b2018; }.story-animatic .field-help { margin-top:0; }
.story-cover-controls { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }.story-cover-option[aria-pressed="true"] { color:var(--text); border-color:#879a5e; background:#272d21; }.story-cover-refresh { margin-left:auto; }.story-gameplay-preview { min-height:70px; }.story-gameplay-preview .story-media { aspect-ratio:256/240; }
@media (max-width:760px) { .story-sequence { grid-auto-columns:minmax(255px,86vw); }.story-grid { grid-template-columns:1fr; }.story-card { padding:13px; }.story-carousel-controls { align-items:stretch; flex-wrap:wrap; }.story-carousel-count { flex:1 0 100%; order:-1; }.story-media { max-height:190px; } }

/* Project tools and authoring tabs stay readable as the creator surface grows. */
.project-tools {display:grid;grid-template-columns:1fr;gap:7px;padding:0 18px 14px;}
.project-tools .button {display:block;text-decoration:none;text-align:left;white-space:normal;overflow-wrap:anywhere;}
.tabs {flex-wrap:wrap;overflow:visible;gap:0 16px;}
.tabs .tab {flex:0 0 auto;}
@media(max-width:760px){.project-tools{grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:14px}.tabs{gap:0 12px}.tabs .tab{font-size:12px;}}
/* Upload choices must stay legible inside the editor column, not only at viewport breakpoints. */
.upload-fields { grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr)); }

.story-card .story-play,.story-card .story-share{display:inline-flex;max-width:100%;white-space:normal;overflow-wrap:break-word;align-items:center;margin:0 6px 6px 0}

.build-submit .build-controls { display:flex; flex-wrap:wrap; align-items:center; }.build-submit .build-controls select { flex:1 1 180px; max-width:100%; }.build-readiness { margin-top:17px; padding-top:15px; border-top:1px solid var(--line); min-width:0; }.build-readiness h4 { margin:0 0 8px; font-size:13px; }.readiness-summary { margin:0 0 8px; font-size:13px; font-weight:650; }.readiness-steps { margin:10px 0; padding-left:20px; font-size:13px; line-height:1.55; overflow-wrap:anywhere; }.readiness-steps li+li { margin-top:6px; }.readiness-warning { color:var(--amber); font-size:13px; line-height:1.5; }.build-readiness .field-help { line-height:1.5; }.build-readiness .button { margin-top:8px; }

.project-route-picker{display:block;width:calc(100% - 36px);max-width:100%;margin:14px 18px 0;padding:8px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:5px;min-width:0}

.project-entry{display:grid;gap:8px;min-width:0}.project-entry .project-card{text-decoration:none;color:inherit}.project-entry>.secondary{justify-self:start}

/* Exact historical content stays readable and bounded inside the History pane. */
.revision-history,.revision-history .timeline li{min-width:0;max-width:100%;}
.revision-history .history-content{max-width:100%;max-height:24rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;}
