/* Model studio: warm architectural canvas, quiet graphite controls, brass accents. */
.studio-main {padding:22px 26px 64px;max-width:none}
.studio-main>.summary,.studio-main>#job-status {display:none}
.studio-main>.topline {padding-bottom:16px;margin-bottom:0;gap:16px}
.studio-main>.topline h1 {font:500 19px/1.3 'Segoe UI',sans-serif;letter-spacing:-.5px;margin:5px 0}
.studio-main>.topline .eyebrow {font-size:9px;letter-spacing:1px}
.studio-main>.topline .status-line {display:none}
.model-studio {--studio-ink:#26302e;--studio-muted:#727c77;--studio-line:#d8ded5;--studio-gold:#a38755;color:var(--studio-ink);margin-bottom:34px;font-family:'Segoe UI',Arial,sans-serif}
.model-studio button {font:500 11px/1.3 'Segoe UI',Arial,sans-serif;transition:background .16s,color .16s,border-color .16s;cursor:pointer}
.model-studio button:disabled {cursor:default;opacity:.4}
.model-studio button:focus-visible,.model-studio textarea:focus-visible,.model-studio input:focus-visible {outline:2px solid #9e7840;outline-offset:3px}
.model-studio svg {width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.studio-heading {display:flex;justify-content:space-between;align-items:center;padding:22px 0 18px;gap:16px}
.studio-kicker {font:9px/1.6 Consolas,monospace;letter-spacing:1.7px;color:#788077}
.studio-heading h2 {font-size:30px;line-height:1.1;letter-spacing:-1.3px;font-weight:450;margin:5px 0 0}
.studio-title-dot {color:#a48956}
.studio-heading-actions {display:flex;align-items:center;gap:20px}
.studio-heading-actions button {display:flex;gap:14px;align-items:center;background:transparent;border:0;padding:8px 0;color:#3e4842}
.studio-sync {font:10px Consolas,monospace;white-space:nowrap;color:#61705d;display:flex;align-items:center;gap:7px}
.studio-sync i,.studio-caption i {width:5px;height:5px;border-radius:50%;background:#708766;display:inline-block}
.studio-layout {display:grid;grid-template-columns:minmax(0,1fr) 296px;gap:0;border:1px solid #d3dacf;border-radius:14px;overflow:hidden;box-shadow:0 12px 40px #28382b09,0 2px 4px #28382b04;background:#fcfcf8}
.studio-stage {min-width:0;background:#e6e5df;display:flex;flex-direction:column;position:relative}
.studio-stage-toolbar {display:flex;align-items:center;justify-content:space-between;padding:13px 17px;border-bottom:1px solid #cfd3ca90;background:#e8e8e1;gap:8px;z-index:2}
.studio-mode-switch {display:flex;gap:4px;align-items:center}
.studio-mode-switch button {display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid transparent;background:transparent;color:#7b8178;border-radius:6px;font-size:10px}
.studio-mode-switch button[aria-pressed=true] {background:#fafbf6;color:#303c32;border-color:#d7dbd0;box-shadow:0 1px 3px #20302006}
.model-studio .studio-icon {height:32px;width:32px;display:inline-flex;align-items:center;justify-content:center;padding:7px;border:1px solid transparent;background:transparent;border-radius:6px;color:#4f5c51}
.model-studio .studio-icon:hover {background:#fff8;border-color:#c4cbbf}
.model-studio .studio-viewport {height:clamp(400px,calc(100dvh - 337px),820px);position:relative;min-width:0;overflow:hidden;flex:1}
.model-studio .studio-viewport iframe {position:absolute;inset:0;width:100%;height:100%;border:0;background:#e6e5df}
.model-studio .studio-viewport [hidden],.model-studio [hidden] {display:none!important}
.studio-model-meta {position:absolute;top:20px;left:22px;z-index:2;pointer-events:none;max-width:calc(100% - 92px);text-shadow:0 1px 12px #e6e5df}
.studio-model-meta>span {display:block;text-transform:uppercase;letter-spacing:1.4px;font:9px/1.7 Consolas,monospace;color:#586457}
.studio-model-meta small {display:block;color:#859080;font-size:10px;margin-top:2px}
.studio-side-tools {position:absolute;right:16px;top:18px;display:flex;flex-direction:column;padding:3px;gap:3px;z-index:3;background:#f7f8f2d9;border:1px solid #d7dcd0;border-radius:8px;box-shadow:0 3px 12px #38443206}
.studio-compass {position:absolute;left:24px;bottom:75px;color:#7f8b7a;display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none;font:9px Consolas,monospace}
.studio-compass svg {width:30px;height:30px;transform:rotate(-30deg)}
.studio-camera-dock {position:absolute;bottom:36px;left:50%;transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:3px;padding:5px;border:1px solid #ced5c8;background:#fafbf5ed;border-radius:10px;box-shadow:0 6px 20px #2d392811;white-space:nowrap}
.studio-camera-dock button {border:0;padding:9px 13px;color:#71806b;background:transparent;border-radius:6px;font-size:10px}
.studio-camera-dock button[aria-pressed=true] {background:#344239;color:#f2f5eb;box-shadow:0 2px 5px #20312217}
.studio-camera-dock>span {height:18px;width:1px;background:#d2d9cc;margin:0 3px}
.studio-navigation-hint {position:absolute;bottom:13px;left:0;right:0;text-align:center;color:#85917e;letter-spacing:.15px;font-size:9px;pointer-events:none}
.studio-navigation-hint b {font-weight:400;padding:0 8px;color:#b1b9a7}
.studio-display-bar {display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 17px;border-top:1px solid #cfd3ca90;background:#e8e8e1}
.studio-materials {display:flex;gap:3px}
.studio-display-bar button {display:flex;gap:6px;align-items:center;padding:7px 9px;background:transparent;border:1px solid transparent;border-radius:6px;color:#798371;font-size:10px}
.studio-display-bar button[aria-pressed=true] {background:#f7f8f0;border-color:#cfd6c5;color:#475540}
.studio-materials i {height:10px;width:10px;border-radius:50%;border:1px solid #acb5a5;background:#a9b5a5}
.studio-materials .swatch-plaster {background:#efeee8}.studio-materials .swatch-blueprint {background:#324e6a;border-color:#324e6a}
.studio-display-bar svg {width:12px;height:12px}
.studio-model-footer {display:flex;justify-content:space-between;align-items:center;padding:17px 23px;border-top:1px solid #d2d8cc;background:#f3f4ed;gap:12px}
#studio-metrics {display:flex;gap:32px}
#studio-metrics>div {display:flex;flex-direction:column;gap:3px}
#studio-metrics strong {font:400 19px/1.3 Consolas,monospace;letter-spacing:-.9px;color:#44503f}
#studio-metrics strong small {font-size:10px;letter-spacing:0;padding-left:4px}
#studio-metrics span {font-size:9px;color:#858d7c}
#studio-element-count {font:9px Consolas,monospace;color:#858e7d;white-space:nowrap}
.studio-agent {min-width:0;display:flex;flex-direction:column;background:#fbfcf8;border-left:1px solid #d4dbcf;max-height:calc(100dvh - 174px);min-height:580px}
.studio-agent-head {display:flex;align-items:center;gap:10px;padding:17px 21px;border-bottom:1px solid #e3e8dc}
.studio-agent-mark {height:33px;width:33px;border:1px solid #d6ddce;border-radius:9px;background:#edf1e6;display:grid;place-items:center;color:#6b805e}
.studio-agent-head h3 {font-size:13px;margin:0 0 2px;letter-spacing:-.3px}
.studio-agent-head div>span {font-size:9px;color:#8b9384}
.studio-agent-dot {height:6px;width:6px;border-radius:50%;background:#8ca27e;margin-left:auto;box-shadow:0 0 0 4px #8ca27e12}
.studio-agent-body {padding:25px 21px 17px;flex:1;overflow:auto;min-height:0;scrollbar-width:thin}
.studio-agent-intro h3 {font-size:21px;font-weight:450;letter-spacing:-.75px;line-height:1.25;margin:7px 0 12px}
.studio-agent-intro p {font-size:12px;line-height:1.75;color:#76806f;margin-bottom:26px}
.studio-activity {display:grid;gap:19px;margin:0 0 26px}
.studio-event {display:flex;gap:10px;align-items:start;position:relative;min-width:0}
.studio-event>i {width:7px;height:7px;margin-top:4px;background:#9dad8d;border:2px solid #dfe8d5;border-radius:50%;flex-shrink:0}
.studio-event:has(+.studio-event):before {content:'';position:absolute;top:13px;bottom:-18px;left:3px;width:1px;background:#e1e6da}
.studio-event>div {flex:1;min-width:0}
.studio-event strong {font-size:10px;font-weight:550;display:block;color:#657359}
.studio-event p {font-size:10px;color:#8c9485;line-height:1.7;margin:5px 0 0;overflow-wrap:anywhere}
.studio-event time {font:8px Consolas,monospace;color:#929a89;white-space:nowrap;line-height:1.9}
.studio-event.request>i {background:#b4a481;border-color:#efe9dc}
.studio-event.attention strong {color:#936426}
.studio-event.running>i {animation:studio-breathe 1.6s ease-in-out infinite}
.studio-baseline {border:1px solid #dce2d4;border-radius:8px;background:#f1f4ea;padding:15px 16px;margin:0 0 17px}
.studio-baseline>span {font:8px/1.6 Consolas,monospace;letter-spacing:1.1px;color:#7c8a6d;display:block}
.studio-baseline>strong {display:block;font:400 27px/1.6 Consolas,monospace;letter-spacing:-1px;color:#45513c}
.studio-baseline>small {display:block;font-size:9px;color:#88917f;line-height:1.7}
.studio-follow {font-size:10px!important;color:#7f8c72;display:flex;flex-direction:row;align-items:center;gap:7px;font-weight:400!important}
.studio-follow input {width:12px;height:12px;accent-color:#667e54;margin:0}
.studio-generation {font-size:10px;line-height:1.7;color:#938268;margin-top:12px}
.studio-composer {border:1px solid #ced8c3;border-radius:9px;margin:0 14px;background:#fff;box-shadow:0 3px 10px #41522d05;overflow:hidden}
.studio-composer label {display:block;font-size:10px;color:#647457;padding:13px 13px 2px;font-weight:500}
.studio-composer textarea {width:100%;border:0;box-shadow:none;background:transparent;resize:vertical;min-height:74px;max-height:180px;padding:9px 13px;font:11px/1.75 'Segoe UI',sans-serif;color:#3b4e30;border-radius:0;outline:none}
.studio-composer textarea::placeholder {color:#a1aa97}
.studio-composer>div {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 9px 9px 13px}
.studio-composer>div span {font-size:8px;color:#939e87;line-height:1.6}
.studio-composer button {padding:7px!important;width:30px;height:30px;flex-shrink:0;background:#344b2e;color:#f6f8ed;border:1px solid #344b2e;border-radius:6px}
.studio-suggestions {display:flex;gap:5px;padding:9px 14px 14px;flex-wrap:wrap}
.studio-suggestions button {padding:5px 8px;background:transparent;border:1px solid #dce3d3;border-radius:5px;font-size:9px;color:#849377}
.studio-workbench-link {display:flex;align-items:center;justify-content:space-between;margin:0!important;padding:13px 21px!important;border:0!important;border-top:1px solid #e0e6d8!important;border-radius:0!important;background:#f4f6ee!important;color:#82906f!important;font-size:10px!important}
.studio-workbench-link svg {width:13px;height:13px}
.studio-caption {display:flex;justify-content:space-between;gap:14px;margin-top:13px;color:#909885;font-size:9px;line-height:1.7}
.studio-caption>span:first-child {display:flex;gap:7px;align-items:center}
.studio-flyout {position:absolute;right:64px;top:18px;z-index:5;width:190px;background:#fafcf4f5;border:1px solid #cdd7c3;border-radius:10px;padding:17px;box-shadow:0 12px 40px #2c3d261b;max-height:calc(100% - 110px);overflow:auto}
.studio-flyout-title {display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:14px}
.studio-flyout-title button {border:0;background:none;font-size:9px;padding:2px;color:#89916c}
.studio-flyout label {display:flex;flex-direction:row;align-items:center;gap:9px;margin:10px 0;font-size:10px;text-transform:capitalize;color:#667259}
.studio-flyout input[type=checkbox] {width:12px;height:12px;accent-color:#647951;margin:0}
.studio-flyout input[type=range],.studio-phase-panel input {width:100%;padding:0;accent-color:#758a62}
.studio-flyout p {font-size:10px;color:#87917b;line-height:1.6}
.studio-loading {position:absolute;inset:0;z-index:4;background:#e6e5dff2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}
.studio-loading strong {font-size:14px;font-weight:450;letter-spacing:-.4px;color:#6a775e}
.studio-loading>span:last-child {font-size:10px;color:#96a087}
.studio-loader {width:27px;height:27px;border:1px solid #c6cfbd;border-top-color:#889c74;border-radius:50%;animation:studio-spin 1s linear infinite;margin-bottom:8px}
.studio-phase-panel {padding:14px 22px;background:#f5f7ed;border-top:1px solid #d4ddc9}
.studio-phase-panel label {display:flex;justify-content:space-between;font-size:10px;margin-bottom:9px;color:#7b8b69}
.studio-phase-panel small {font-size:9px;color:#8c987c}
.studio-phase-panel>div {display:flex;align-items:center;justify-content:space-between;gap:12px}
.studio-phase-panel button {flex-shrink:0;background:transparent;border:1px solid #d4ddc9;border-radius:5px;padding:5px 8px;color:#647457;font-size:9px}
.studio-capture {width:min(1200px,94vw);max-width:94vw;max-height:94dvh;padding:0;border:1px solid #d3dacf;border-radius:12px;background:#f7f8f1;color:#344239;box-shadow:0 24px 90px #18271b40}
.studio-capture::backdrop {background:#17251ce0;backdrop-filter:blur(6px)}
.studio-capture header {display:flex;align-items:center;gap:20px;padding:17px 22px;font:12px 'Segoe UI',sans-serif}
.studio-capture header>div {flex:1;min-width:0}.studio-capture strong {display:block;font-weight:500}.studio-capture small {display:block;color:#7b8771;font-size:10px;margin-top:5px}
.studio-capture a {color:#65794f;white-space:nowrap}.studio-capture button {background:#e8eddf;border:1px solid #cdd7c2;border-radius:6px;color:#4d603f;padding:7px 12px}
.studio-capture img {display:block;width:100%;max-height:calc(94dvh - 86px);object-fit:contain;background:#e6e5df}
.studio-selection,.studio-changes {border:1px solid #dedfcf;padding:12px;border-radius:7px;font-size:10px;overflow-wrap:anywhere;margin:14px 0;color:#7a7e62}
.studio-changes>span {font:8px Consolas,monospace;letter-spacing:1px;color:#a1936f}
.studio-changes>div {display:flex;justify-content:space-between;gap:12px;font-size:9px;padding-top:10px}
.studio-changes strong {font-weight:500;overflow-wrap:anywhere;max-width:135px}
.model-studio .studio-build {display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:15px;background:#344b2e;color:#f8faef;border:0;padding:12px;font-size:10px;border-radius:7px}
.studio-text-button {border:0;background:none;text-decoration:underline;text-underline-offset:3px;width:100%;padding:10px;color:#8d987e;font-size:9px!important}
.studio-agent>.studio-build {width:calc(100% - 28px);margin:0 14px 8px;flex-shrink:0}
.studio-agent>.studio-text-button {padding:4px 10px 10px;flex-shrink:0}
.studio-is-expanded {overflow:hidden}
.model-studio.studio-expanded {position:fixed;inset:0;z-index:1000;background:#f4f5ef;margin:0;padding:14px 24px;overflow:auto}
.studio-expanded .studio-heading {padding:12px 0 18px}
.studio-expanded .studio-viewport {height:calc(100dvh - 244px)}
.studio-expanded .studio-agent {max-height:calc(100dvh - 124px)}
.studio-main .card {box-shadow:none}
@keyframes studio-spin {to{transform:rotate(360deg)}}
@keyframes studio-breathe {50%{opacity:.4}}
@media(min-width:1500px){.studio-layout{grid-template-columns:minmax(0,1fr) 330px}.studio-agent-body{padding:30px 25px}.studio-agent-intro h3{font-size:25px}}
@media(max-width:1150px){.studio-main{padding:18px}.studio-layout{grid-template-columns:minmax(0,1fr) 270px}.studio-mode-switch button{font-size:9px;padding:7px}.studio-mode-switch svg{width:14px}.studio-display-bar{padding:10px}.studio-display-bar button{padding:5px}.studio-camera-dock button{padding:9px}.studio-model-footer{padding:15px}#studio-metrics{gap:20px}#studio-element-count{display:none}.studio-heading-actions{gap:12px}}
@media(max-width:900px){.studio-layout{grid-template-columns:minmax(0,1fr)}.studio-agent{max-height:none;min-height:0;border-left:0;border-top:1px solid #d4dbcf}.studio-agent-body{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px}.studio-agent-intro{grid-column:1/-1}.studio-agent-intro p{margin:6px 0}.studio-activity,.studio-baseline{margin:0}.model-studio .studio-viewport{height:58dvh;min-height:380px}.studio-sync{display:none}.studio-caption{flex-direction:column;gap:3px}.studio-main>.topline .actions button{font-size:9px;padding:8px}.studio-expanded .studio-viewport{height:62dvh}.studio-expanded .studio-agent{max-height:none}}
@media(max-width:560px){.studio-main{padding:14px 10px}.studio-heading h2{font-size:26px}.studio-heading-actions button{font-size:10px}.studio-agent-body{display:block}.studio-baseline,.studio-activity{margin:18px 0}.studio-mode-switch button{font-size:9px}.model-studio .studio-viewport{min-height:350px}.studio-camera-dock button{font-size:9px;padding:9px}.studio-display-bar button{font-size:9px}.studio-model-meta{left:16px;max-width:calc(100% - 75px)}.studio-model-meta>span{font-size:8px}.studio-navigation-hint{font-size:8px}.studio-compass{display:none}.studio-model-footer{padding:13px 17px}#studio-metrics{gap:30px}.model-studio.studio-expanded{padding:8px}.studio-main>.topline{align-items:flex-start;flex-direction:column}.studio-main>.topline h1{font-size:17px}}
@media(prefers-reduced-motion:reduce){.model-studio *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Revision decisions remain adjacent to the live model. */
.studio-decisions{margin:28px 0;background:#fdfdf9;border:1px solid #d8ded5;border-radius:18px;overflow:hidden;box-shadow:0 10px 30px #182d1b06;color:#27382e}
.studio-decisions>header{padding:26px 28px 0;display:flex;gap:24px;align-items:end;justify-content:space-between;border-bottom:1px solid #dfe5dc;flex-wrap:wrap}
.studio-decisions h2{font-size:26px;font-weight:500;letter-spacing:-.8px;margin:6px 0 20px}
.studio-decisions nav{display:flex;gap:4px;flex-wrap:wrap}
.studio-decisions nav button{border:0;background:none;border-radius:0;padding:16px 12px;font-size:12px;color:#6c796e;border-bottom:2px solid transparent}
.studio-decisions nav button[aria-pressed=true]{color:#254e36;border-bottom-color:#254e36;font-weight:600}
#decision-content{padding:24px 28px;min-height:170px}#decision-status{padding:0 28px 18px;margin:0;font-size:13px;color:#4b664e}
.studio-decisions p{line-height:1.65;font-size:13px;max-width:1100px}.decision-options{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}
.decision-options label{display:flex;align-items:center;gap:10px;background:#f0f3ec;border:1px solid #dce3d6;border-radius:8px;padding:11px 14px;font-size:13px;cursor:pointer}.decision-options small{color:#758174}
.decision-table-wrap{overflow:auto;border:1px solid #dde3d9;border-radius:12px;margin-top:24px}.decision-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}.decision-table th,.decision-table td{padding:14px 20px;border-bottom:1px solid #e3e8df;text-align:right;vertical-align:top}.decision-table th:first-child{position:sticky;left:0;background:#f9faf5;text-align:left;z-index:1;font-weight:500}.decision-table thead th{background:#eef2e9;min-width:195px;font-weight:600}.decision-table thead small{display:block;font-size:9px;letter-spacing:1.6px;color:#76816f;margin-bottom:7px}.decision-table tr:nth-child(2) td{font-size:25px;letter-spacing:-.8px;color:#254e36}.decision-badge{display:block;font-size:10px;font-weight:400;color:#6b765e;margin-top:8px}
.decision-tradeoffs{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:20px 0}.decision-tradeoffs article{padding:20px;background:#f4f6ef;border-radius:10px}.decision-tradeoffs h3{font-size:15px;font-weight:500;margin:0}.decision-tradeoffs ul{padding:0;list-style:none;font-size:12px}.decision-tradeoffs li{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px solid #e0e6d9}
.decision-note{color:#6d776a;font-size:11px!important}.decision-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin:20px 0}.decision-fields label,.decision-form>label,.decision-two label{display:flex;flex-direction:column;gap:7px;font-size:12px}.decision-form input,.decision-form textarea,.decision-form select,.studio-decisions input:not([type=checkbox]):not([type=file]),.studio-decisions select{background:#fff;border:1px solid #d3dccd;border-radius:6px;padding:11px;font:inherit;color:inherit;max-width:100%;box-sizing:border-box}.decision-form textarea{resize:vertical;width:100%;box-sizing:border-box}.decision-two{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.decision-check{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;margin:18px 0;font-size:12px}.reference-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;margin:22px 0}.reference-board label{background:#eff2ea;border-radius:9px;overflow:hidden;cursor:pointer}.reference-board img{width:100%;height:140px;object-fit:contain;background:#e4e8df}.reference-board span{display:flex;gap:8px;font-size:12px;padding:10px;overflow-wrap:anywhere}.inspection-summary{display:flex;gap:14px;align-items:baseline;margin:5px 0 20px}.inspection-summary strong{font-size:32px;font-weight:400;letter-spacing:-1px}.inspection-summary span{font-size:12px;color:#71806a}.decision-issues{display:grid;gap:8px;margin:20px 0}.decision-issues button{text-align:left;background:#faf3e5;border:1px solid #e5d8bd;padding:15px;border-radius:8px}.decision-issues span{display:block;margin-top:6px;font-size:12px}.study-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.study-pair figure{margin:0}.study-pair img{width:100%;border-radius:10px}.study-pair figcaption{font-size:11px;color:#6b7867;margin-top:7px}
@media(max-width:700px){.studio-decisions>header,#decision-content{padding:18px}.studio-decisions h2{font-size:23px}.studio-decisions nav button{padding:12px 8px}.decision-two,.study-pair{grid-template-columns:1fr}.inspection-summary{flex-wrap:wrap}.decision-fields{grid-template-columns:1fr 1fr}.decision-table th,.decision-table td{padding:12px}}
.decision-native-view{display:block;width:100%;height:480px;border:1px solid #dce3d6;border-radius:12px;margin:20px 0;background:#f1f3eb}
