/* The source studio's reference board and floating composer, in the portfolio's palette. */
.v61 .studio-work{display:block;padding:0;border:0;background:none;border-radius:0}
.v61 .studio-heading{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.v61 .studio-heading h3{font-size:clamp(28px,3vw,40px);letter-spacing:-.045em;line-height:1.16}
.v61 .studio-heading p{max-width:52ch}
.studio-preview{margin-top:30px;border:2px solid #a98abb70;border-radius:18px;background:#0e0c15;overflow:hidden;isolation:isolate;box-shadow:0 30px 70px -25px #000b,inset 0 1px #ead7ff15}
.studio-topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:linear-gradient(110deg,#30253f,#1b1427);border-bottom:1px solid #ddc7f421;color:var(--text)}
.studio-window-title{display:flex;align-items:center;gap:20px}.studio-window-title>strong{font-size:14px;font-weight:500;letter-spacing:-.015em}.studio-window-dots{display:flex;gap:7px}.studio-window-dots i{width:9px;height:9px;border-radius:50%;background:#766187}.studio-window-dots i:nth-child(2){background:#a083b5}.studio-window-dots i:nth-child(3){background:#91edb8}
.studio-model-picker{position:relative;display:block;max-width:100%}
.studio-model-picker select{appearance:none;-webkit-appearance:none;display:block;max-width:100%;min-height:42px;padding:9px 38px 9px 14px;background:#231a30;color:var(--text);font:12px var(--mono);border:1px solid #cab1df36;border-radius:8px;cursor:pointer}
.studio-model-picker>svg{position:absolute;width:17px;height:17px;right:12px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.studio-model-picker select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.studio-workspace{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;background:radial-gradient(ellipse at 10% 60%,#34234444,transparent 70%),#100c18}
.studio-stage{grid-area:1/1;position:relative;display:flex;align-items:start;justify-content:center;min-width:0;min-height:700px;overflow:hidden;background:#0a0811}
.studio-empty{position:absolute;inset:0;width:100%;height:100%;background:#0a0811}

.studio-canvas-label{position:absolute;z-index:1;top:24px;left:24px;font-size:11px;color:var(--muted)}


.studio-result{margin:0;width:100%;animation:studio-reveal .55s ease both}
.studio-result>img{display:block;width:100%;aspect-ratio:1280/544;object-fit:cover;border:0;border-radius:0}
.studio-result figcaption{position:absolute;inset:auto 0 0;padding:38px 22px 18px;display:flex;justify-content:space-between;align-items:end;gap:16px;background:linear-gradient(transparent,#0b0712f2);color:#ece7f2}
.studio-result figcaption strong{font-size:13px;font-weight:500}
.studio-result figcaption span{font-size:11px;color:#d2c5df;max-width:40ch;text-align:right}
.studio-reference{position:relative;display:flex;flex-direction:column;align-items:start;gap:7px;border:0;background:none;padding:0;cursor:pointer;min-width:0;text-align:left;color:var(--accent)}
.studio-reference-thumb{display:grid;place-items:center;width:60px;max-width:100%;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#241a31}
.studio-reference-thumb>img{display:block;width:100%;height:100%;object-fit:cover;transition:filter .2s}
.studio-reference strong{font:12px var(--mono);color:var(--accent);font-weight:400}
.studio-reference small{font-size:11px;line-height:1.4;color:var(--muted)}
.studio-reference:hover .studio-reference-thumb>img{filter:brightness(1.18)}
.studio-reference-peek{position:absolute;left:0;bottom:calc(100% + 12px);width:260px;max-width:66vw;padding:0;background:#100c18;border-radius:10px;box-shadow:0 15px 40px #000a;opacity:0;visibility:hidden;transform:translateY(5px);transition:opacity .18s,transform .18s,visibility .18s;pointer-events:none;z-index:4}
.studio-reference-peek>img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border:0;border-radius:10px}
.studio-reference:nth-child(3) .studio-reference-peek{left:auto;right:0}
.studio-reference:focus-visible .studio-reference-peek{opacity:1;visibility:visible;transform:none}
@media(hover:hover){.studio-reference:hover .studio-reference-peek{opacity:1;visibility:visible;transform:none}}
.studio-reference[data-studio-reference]:not(.is-bound) strong{color:var(--muted)}
.v61 #image-studio{scroll-margin-top:85px}
.v61 .studio-jump{display:inline-flex;align-items:center;gap:22px;margin-top:17px;padding-block:8px;font-size:14px;color:var(--accent)}
.studio-console{grid-area:1/1;position:relative;align-self:end;justify-self:center;z-index:2;min-width:0;width:min(840px,calc(100% - 48px));margin:250px 0 24px;padding:22px;border:1px solid var(--glass-edge);border-radius:16px;background:var(--glass-fill);box-shadow:var(--glass-shadow);backdrop-filter:blur(26px) saturate(150%);-webkit-backdrop-filter:blur(26px) saturate(150%)}
.studio-composer-top,.studio-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px}.studio-composer-bottom{flex-wrap:wrap}.studio-composer-bottom>.studio-hint{flex:1 1 160px}.studio-actions{margin-left:auto}
.studio-mode-label{font-size:14px;color:var(--text)}
.studio-checkpoint{font-size:11px;color:var(--muted);max-width:24ch;text-align:right}
.studio-checkpoint>span{margin-inline:7px;color:#736280}
.studio-reference-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:290px;max-width:100%;margin:22px 0}
.studio-reference-strip .studio-adapter-chip{color:#d2acf5}
.studio-adapter-chip .studio-reference-thumb{background:linear-gradient(140deg,#59377355,#241a31)}
.studio-adapter-chip svg{width:32px;height:32px}
.studio-adapter-chip strong{color:#d2acf5}
.studio-prompt-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.studio-editor-wrap{position:relative}
.studio-prompt{font-size:15px;line-height:1.9;min-height:104px;max-height:320px;overflow-y:auto;padding:17px 18px;border:1px solid #cab1df36;border-radius:10px;background:#0d0a1480;color:#eee7f4;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;caret-color:var(--accent)}
.studio-prompt:focus{outline:2px solid #91edb88c;outline-offset:2px}
.studio-token{display:inline-flex;align-items:center;gap:5px;padding:1px 7px 1px 3px;margin:0 2px;border-radius:6px;background:#91edb815;color:var(--accent);font:13px var(--mono);line-height:1.8;vertical-align:middle;white-space:nowrap;user-select:all}
.studio-token img{width:22px;height:22px;object-fit:cover;border:0;border-radius:3px}
.studio-token.is-adapter{padding-inline:7px;background:#bd8af01c;color:#d7b3fa;user-select:text;cursor:text}
.studio-composer-bottom{margin-top:18px}
.studio-actions{display:flex;align-items:center;gap:18px}
.studio-reset{font-size:13px;min-height:44px;color:var(--muted);background:none;border:0;cursor:pointer}
.studio-generate{display:flex;align-items:center;justify-content:center;gap:18px;min-height:44px;padding:11px 16px;background:var(--accent);color:#0e0c15;border:0;border-radius:9px;font-size:14px;cursor:pointer}
.studio-generate svg{display:block;width:18px;height:18px;flex:none}
.studio-generate:hover{filter:brightness(1.08)}
.studio-generate:disabled{cursor:wait;opacity:.7}
.studio-below-prompt{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:12px}
.studio-inspect{display:flex;align-items:center;gap:8px;min-height:44px;padding:0;background:none;color:var(--muted);border:0;font-size:12px;cursor:pointer;white-space:nowrap}
.studio-inspect svg{width:16px;height:16px;transition:transform .2s}
.studio-inspect[aria-expanded=true] svg{transform:rotate(180deg)}
.studio-inspect:hover{color:var(--text)}
.v61 .studio-work .studio-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:0;max-width:none}
.studio-mention-menu{position:absolute;left:12px;bottom:calc(100% + 8px);width:min(320px,calc(100% - 24px));padding:7px;border:1px solid var(--glass-edge);border-radius:12px;background:#251b32f5;backdrop-filter:blur(20px);box-shadow:0 12px 35px #0008;z-index:3}
.studio-mention-menu button{display:flex;align-items:center;gap:11px;width:100%;padding:11px;border:0;border-radius:7px;background:none;color:var(--text);font-size:14px;text-align:left;cursor:pointer}
.studio-mention-menu button[aria-selected=true]{background:#b39ad024;color:var(--accent)}
.studio-mention-menu img{width:30px;height:30px;border-radius:5px;object-fit:cover}
.studio-mention-menu small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.studio-conditioning{margin-top:24px;padding-top:22px;border-top:1px solid #cab1df29}
.studio-conditioning-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.studio-conditioning-heading strong{font-size:16px;font-weight:450}
.studio-conditioning-heading>span{font-size:12px;color:var(--accent)}
.studio-conditioning-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:28px}
.studio-conditioning-grid small{display:block;font-size:12px;color:var(--muted);margin-bottom:9px}
.v61 .studio-work .studio-conditioning-grid p{font-size:14px;line-height:1.7;color:#ded3e8}
.studio-bindings{display:flex;flex-wrap:wrap;gap:8px}
.studio-bindings span{font:12px var(--mono);padding:7px 10px;border-radius:5px;background:#91edb811;color:var(--accent)}
.studio-adapter-label{margin-top:18px}
.v61 .studio-work .studio-provenance{font-size:13px;line-height:1.7;max-width:95ch;margin:20px 0 0;color:var(--muted)}
.studio-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.studio-is-prepared{color:var(--muted)}
.studio-preview.is-generated .studio-stage{min-height:0}.studio-preview.is-generated .studio-workspace{grid-template-rows:auto auto}
.studio-result-tray{grid-area:2/1;display:flex;align-items:center;gap:18px;margin:16px 22px;padding:14px 16px;border:1px solid var(--glass-edge);border-radius:12px;background:var(--glass-fill);box-shadow:var(--glass-shadow);backdrop-filter:blur(26px)}
.studio-tray-references{display:flex;padding-right:7px;flex:none}
.studio-tray-references img{width:38px;height:38px;object-fit:cover;border-radius:7px;border:0;margin-right:-7px;box-shadow:0 0 0 2px #241a31}
.studio-result-tray>span{font-size:13px;color:var(--muted)}
.studio-result-tray>button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;margin-left:auto;padding:9px 14px;border:1px solid #bea2d44a;border-radius:8px;background:#b995d513;color:var(--text);font-size:13px;white-space:nowrap;cursor:pointer}
.studio-result-tray svg{width:18px;height:18px}
@keyframes studio-reveal{from{opacity:0;filter:blur(10px);transform:scale(1.015)}to{opacity:1;filter:blur(0);transform:none}}
@media(max-width:1100px){.studio-console{width:calc(100% - 32px);margin-bottom:16px}.studio-prompt{min-height:114px}}
@media(max-width:760px){.v61 .studio-work{padding:0}.v61 .studio-heading{grid-template-columns:1fr;gap:18px}.v61 .studio-heading h3{font-size:30px}.studio-preview{margin:24px 0 0;border-radius:14px}.studio-topbar{padding:12px;gap:12px}.studio-window-title{gap:14px}.studio-window-title>strong{font-size:13px}.studio-window-dots{gap:5px}.studio-window-dots i{width:7px;height:7px}.studio-model-picker select{font-size:11px;min-height:38px}.studio-stage{min-height:0}.studio-canvas-label{top:16px;left:16px;font-size:10px}.studio-result figcaption{position:static;padding:12px;display:block;background:#100c18}.studio-result figcaption span{display:block;text-align:left;margin-top:6px;font-size:10px}.studio-console{width:calc(100% - 16px);margin:220px 0 8px;padding:16px;border-radius:12px}.studio-composer-top{align-items:start;gap:14px}.studio-mode-label{font-size:13px;max-width:9ch}.studio-checkpoint{font-size:10px;max-width:16ch;line-height:1.7}.studio-reference-strip{gap:12px;margin-block:18px}.studio-reference strong{font-size:10px}.studio-reference small{font-size:10px}.studio-reference-peek{max-width:55vw}.studio-reference:nth-child(n+2) .studio-reference-peek{left:auto;right:0}.studio-prompt{padding:13px;font-size:16px;line-height:1.9;min-height:170px}.studio-token{font-size:11px;gap:4px;padding-right:4px}.studio-token img{width:19px;height:19px}.studio-composer-bottom{flex-direction:column;align-items:stretch;gap:16px}.studio-composer-bottom>.studio-hint{flex:auto}.studio-actions{justify-content:space-between;gap:12px;margin-left:0}.studio-generate{font-size:13px;gap:12px}.studio-below-prompt{display:block}.studio-inspect{margin-top:4px}.studio-conditioning-grid{grid-template-columns:1fr;gap:20px}.studio-conditioning-heading{align-items:start}.studio-conditioning-heading strong{font-size:15px}.studio-conditioning-heading>span{font-size:11px}.v61 .studio-work .studio-provenance{font-size:12px}.studio-result-tray{margin:8px;padding:10px;gap:12px;flex-wrap:wrap}.studio-result-tray>span{display:none}.studio-tray-references img{width:30px;height:30px}.studio-result-tray>button{font-size:12px;padding-inline:10px}}
@media(max-width:420px){.studio-console{padding:12px}.studio-reference-strip{gap:8px}.studio-reference strong{font-size:9px}.studio-reference small{font-size:9px}.studio-generate{padding-inline:12px;font-size:12px;gap:8px}.studio-topbar{align-items:center}.studio-model-picker{width:100%}.studio-model-picker select{width:100%}.studio-result-tray>button{gap:7px}.studio-result-tray svg{width:14px}}
@media(prefers-reduced-motion:reduce){.studio-reference-thumb>img,.studio-reference-peek,.studio-inspect svg{transition:none}.studio-result{animation:none}}
