/* Keep model selection independent of composer position and transcript height. */
#pgModelDialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:min(620px,calc(100dvh - 48px));padding:22px;border:1px solid var(--d-border,#484b41);border-radius:18px;background:var(--d-panel,#303030);color:var(--d-text,#f3f3ed);box-shadow:0 24px 80px #0006;overflow:hidden}
#pgModelDialog::backdrop{background:#0008;backdrop-filter:blur(3px)}
#pgModelDialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
#pgModelDialog h2{font-family:inherit;font-size:20px;font-weight:600;line-height:1.3;margin:0 0 5px;letter-spacing:-.5px}
#pgModelDialog header p{font-size:12px;color:var(--d-muted,#b9bdb4);margin:0}
#pgModelDialog header button{border:0;background:transparent;color:inherit;font-size:24px;width:36px;height:36px;cursor:pointer;border-radius:8px}
#pgModelDialog input{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid var(--d-border,#484b41);border-radius:10px;background:var(--d-bg,#242424);color:inherit;font:inherit;font-size:16px;margin-bottom:12px}
#pgModelDialog #pgModelMenu{position:static;display:block;min-width:0;width:100%;max-height:min(390px,calc(100dvh - 250px));overflow:auto;overscroll-behavior:contain;border:0;box-shadow:none;padding:0;margin:0;background:transparent}
#pgModelDialog #pgModelMenu button{box-sizing:border-box;width:100%;min-height:54px;padding:10px 13px;display:grid;gap:4px;text-align:left;border:1px solid transparent;border-radius:10px;background:transparent;color:inherit;font:inherit;cursor:pointer}
#pgModelDialog #pgModelMenu button[hidden]{display:none}
#pgModelDialog #pgModelMenu button:hover,#pgModelDialog #pgModelMenu button[aria-selected=true]{background:var(--d-hover,#383c31);border-color:var(--d-border,#484b41)}
#pgModelDialog #pgModelMenu strong{font-size:13px;font-weight:600}
#pgModelDialog #pgModelMenu small{font-size:10px;color:var(--d-muted,#b9bdb4);overflow-wrap:anywhere}
#pgModelDialog :is(button,input):focus-visible{outline:2px solid var(--d-accent,#c0f52a);outline-offset:2px}
#pgModelDialog .pg-model-empty{font-size:13px;padding:20px 0;color:var(--d-muted,#b9bdb4)}
#dash-playground.pg-workspace .pg-composer{border-color:var(--d-border);border-radius:20px;box-shadow:0 4px 24px #0001}
#dash-playground .pg-composer-model summary{max-width:220px;min-height:40px;border-radius:9px}
#dash-playground #pgModelLabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
#dash-playground .pg-thinking{margin:0 0 14px;border:1px solid var(--d-border);border-radius:10px;background:var(--d-panel);max-width:100%}
#dash-playground .pg-thinking summary{cursor:pointer;padding:11px 14px;font-size:12px;color:var(--d-muted);min-height:40px;box-sizing:border-box}
#dash-playground .pg-thinking pre{font-family:inherit;font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;padding:0 14px 14px;margin:0;color:var(--d-muted)}
#dash-playground .pg-thinking-note{font-size:10px;padding:0 14px 10px;color:var(--d-faint)}
@media(max-width:620px){#pgModelDialog{padding:18px;border-radius:16px}#dash-playground .pg-composer-model summary{max-width:190px}}
@media(prefers-reduced-motion:reduce){#pgModelDialog{scroll-behavior:auto}}
