.in-studio{height:100vh;height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
.in-studio main{min-height:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.studio-work{display:grid;grid-template-columns:238px minmax(0,1fr);height:100%;max-width:1600px;margin:0 auto}
.studio-side,.history-drawer{background:#f4f5f3;padding:26px 16px;min-width:0;color:var(--ink)}
.studio-side{display:flex;flex-direction:column;overflow:hidden}
.new-chat{display:flex;align-items:center;gap:10px;min-height:43px;padding:0 13px;border-radius:6px;background:#26352f;color:white;font-size:14px;font-weight:600;text-decoration:none;flex:none}
.new-chat:hover{background:#344a40}.new-chat .icon{width:17px;height:17px}
.history-list{overflow-y:auto;min-height:0;margin-top:24px}.history-list h3,.history-list p{font-size:12px;font-weight:550;color:var(--muted);margin:0 10px 8px}
.history-list ul{list-style:none;padding:0;margin:0 0 20px}.history-list li{margin:2px 0}
.history-list a{display:flex;align-items:center;gap:8px;min-height:41px;padding:8px 10px;border-radius:5px;text-decoration:none;color:var(--ink);font-size:14px}
.history-list a:hover{background:#e9ece8}.history-list a[aria-current]{background:#e0e7e1;font-weight:600}
.history-list a span,.thread-head h1{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.history-list time{margin-left:auto;color:var(--muted);font:11px/1.3 ui-monospace,monospace}
.thread{min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
.thread-head{display:flex;align-items:center;gap:8px;padding:8px clamp(18px,4vw,58px);min-height:58px}
.thread-head h1{font-size:17px;font-weight:620}.thread-head .refresh-thread{margin-left:auto}.history-toggle{display:none}
.transcript{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}.transcript:focus-visible{outline:2px solid #7999eb;outline-offset:-2px}
.turns,.compose-inner{max-width:798px;margin:auto;padding-inline:24px}.turns{padding-block:12px 20px}.turn+.turn{margin-top:32px}
.prompt-bubble{width:fit-content;max-width:min(85%,580px);margin-left:auto;background:#edf1f7;border-radius:8px 8px 2px 8px;padding:10px 15px}
.prompt-bubble p{font-size:15px;line-height:1.65;color:#263247;white-space:pre-wrap;overflow-wrap:anywhere}.reply{margin-top:22px}.turn>.reply:first-child{margin-top:0}
.reply-head,.turn-spec,.reuse,.result-download{display:flex;align-items:center}.reply-head{gap:8px}.reply-head .mark{width:16px;height:16px}.reply-head strong{font:700 17px Georgia,serif}.reply-head time,.turn-spec,.turn-note,figcaption,.reuse,.compose-status{font-size:12px;color:var(--muted)}.reply-head time{margin-left:4px;font-variant-numeric:tabular-nums}
.turn-spec{gap:9px;margin:6px 0 10px}.turn-spec strong{font-weight:600;color:#30433b}.turn-spec span:before{content:'·';margin-right:9px}.turn-note{padding-block:2px}
.results{display:grid;gap:12px;align-items:start}.results.pair{grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px}.results.single{max-width:414px}.results.portrait{max-width:470px}.results.single.portrait{max-width:255px}.results figure{min-width:0}
.result-image{margin:0;width:100%;aspect-ratio:1;border:0;background:var(--soft);padding:0;border-radius:5px;overflow:hidden;display:grid;place-content:center;justify-items:center;color:var(--muted);font-size:13px;gap:6px}
button.result-image{cursor:zoom-in;display:block}.landscape .result-image{aspect-ratio:3/2}.portrait .result-image{aspect-ratio:2/3}.result-image img{display:block;width:100%;height:100%;object-fit:contain}
.results figcaption{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:31px;font-variant-numeric:tabular-nums}.result-download{justify-content:center;min-width:32px;min-height:32px;color:var(--muted);border-radius:4px}.result-download .icon,.reuse .icon{width:15px;height:15px}.result-download:hover,.reuse:hover{background:var(--soft);color:var(--ink)}
.reuse{gap:6px;background:none;border:0;padding:5px 7px;margin:4px 0 0 -7px;border-radius:4px;min-height:30px}
.blank-thread{display:grid;align-content:center;justify-items:center;gap:14px;min-height:clamp(120px,35vh,330px)}.blank-thread>.icon{color:#365b4a;width:29px;height:29px}.blank-thread h2{font-size:24px;font-weight:600}
.compose-area{background:var(--paper);padding:9px 0 max(9px,env(safe-area-inset-bottom))}.composer{padding:11px 12px 10px;background:#f5f6f4;border:1px solid #cad0ca;border-radius:8px}.composer:focus-within{border-color:#71887b}
.composer textarea{display:block;width:100%;resize:none;border:0;outline:0;background:none;color:var(--ink);font:inherit;font-size:16px;line-height:1.45;padding:2px 3px 6px}.composer textarea::placeholder{color:#647068}
.compose-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tool-select,.draft-mode{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:#37423b}.tool-select{padding:0 3px;border-radius:4px}.tool-select:hover{background:#e7ebe6}.tool-select .icon{width:15px;height:15px;pointer-events:none}.tool-select select{color:inherit;font-size:13px;padding:3px 0;border:0;border-radius:4px;background:transparent;min-height:32px;width:auto;cursor:pointer}.draft-mode{padding:2px 5px}
.send{display:grid;place-items:center;flex:none;margin-left:auto;width:38px;height:38px;background:var(--accent);color:white;border:0;border-radius:50%}.send:disabled{background:#dce1dc;color:#647168;opacity:1;cursor:default}.send:not(:disabled):hover{background:#193e94}.compose-status{min-height:18px;margin:5px 2px 0}
.image-dialog{max-width:min(92vw,900px);width:max-content}.image-dialog .original{min-width:min(220px,70vw)}.image-dialog .original img{border-radius:3px}.history-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(310px,85vw);height:100%;height:100dvh;max-width:none;max-height:none;border-radius:0}.history-drawer[open]{display:flex;flex-direction:column}.drawer-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}.drawer-head h2{font-size:16px}
@media(max-width:900px){.studio-work{grid-template-columns:205px minmax(0,1fr)}.turns,.compose-inner{padding-inline:18px}.studio-side{padding-inline:12px}}
@media(max-width:700px){.studio-work{display:block}.studio-side{display:none}.thread{height:100%}.thread-head{min-height:47px;padding:2px 10px;gap:4px}.thread-head h1{font-size:15px}.history-toggle{display:inline-flex}.history-drawer{padding:14px}.turns,.compose-inner{padding-inline:14px}.transcript{scrollbar-gutter:auto}.turns{padding-top:8px}.reply{margin-top:17px}.turn+.turn{margin-top:24px}.results{gap:8px}.results.pair figcaption{flex-wrap:wrap;gap:0;font-size:11px}.prompt-bubble{max-width:90%}.compose-tools{gap:4px}.compose-area{padding-top:5px}.composer{padding:8px}.tool-select select{font-size:12px}.blank-thread{min-height:30vh}.compose-status{font-size:11px}}
@media(max-width:370px){.compose-tools{gap:2px}.tool-select .icon{display:none}.turns,.compose-inner{padding-inline:10px}.results.pair figcaption{align-items:flex-start}}
