/* Easy Studio model picker. All rules are scoped to this dialog. */
#studioModelDialog{--esm-shell:#f6f6f4;--esm-card:#fffffd;--esm-ink:#17191c;--esm-muted:#74787d;--esm-line:rgba(20,22,25,.12);--esm-selected:#e5e7e8;--esm-selected-line:#777b80;--esm-primary:#202226;--esm-on-primary:#fff;box-sizing:border-box;width:min(760px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid var(--esm-line);border-radius:14px;background:var(--esm-shell);color:var(--esm-ink);box-shadow:0 24px 90px rgba(0,0,0,.14);font:400 14px/1.6 Manrope,sans-serif;overflow:auto;text-align:left;color-scheme:light}
#studioModelDialog::backdrop{background:rgba(13,14,17,.14);backdrop-filter:none;-webkit-backdrop-filter:none}
.studio-theme-night #studioModelDialog{--esm-shell:#2f3135;--esm-card:#383a3f;--esm-ink:#f4f1eb;--esm-muted:#b2aea7;--esm-line:rgba(244,241,235,.14);--esm-selected:#45484d;--esm-selected-line:#b2aea7;--esm-primary:#f0ede6;--esm-on-primary:#24262a;color-scheme:dark}
#studioModelDialog *{box-sizing:border-box}
#studioModelDialog button,#studioModelDialog input,#studioModelDialog select{font:inherit;color:inherit}
#studioModelDialog button{min-height:36px;padding:7px 14px;border:1px solid var(--esm-line);border-radius:7px;background:var(--esm-card);cursor:pointer;font-weight:500;line-height:1.4}
#studioModelDialog button:hover{border-color:var(--esm-selected-line)}
#studioModelDialog :focus-visible{outline:2px solid var(--esm-selected-line);outline-offset:3px}
#studioModelDialog .esm-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px 16px}
#studioModelDialog .esm-eyebrow{display:block;color:var(--esm-muted);font-size:10px;letter-spacing:.16em;font-weight:500}
#studioModelDialog h2{margin:4px 0 0;font-size:21px;font-weight:550;line-height:1.4;letter-spacing:-.02em;color:var(--esm-ink)}
#studioModelDialog .esm-close{width:34px;min-height:34px;padding:0;font-size:24px;font-weight:300;border:0;background:transparent;color:var(--esm-muted)}
#studioModelDialog .esm-body{padding:0 26px 22px}
#studioModelDialog .esm-tabs{display:flex;gap:20px;border-bottom:1px solid var(--esm-line);margin-bottom:20px}
#studioModelDialog .esm-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:12px 0;color:var(--esm-muted)}
#studioModelDialog .esm-tabs [aria-selected=true]{color:var(--esm-ink);border-bottom-color:var(--esm-ink)}
#studioModelDialog .esm-unit,#studioModelDialog .esm-muted{margin:12px 0;color:var(--esm-muted);font-size:12px;line-height:1.6}
#studioModelDialog .esm-models{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
#studioModelDialog .esm-card{display:flex;flex-direction:column;gap:0;min-width:0;padding:17px 15px;border:1px solid var(--esm-line);border-radius:8px;background:var(--esm-card);cursor:pointer}
#studioModelDialog .esm-card.is-selected{border-color:var(--esm-selected-line);background:var(--esm-selected)}
#studioModelDialog .esm-card-heading{display:flex;align-items:flex-start;gap:10px}
#studioModelDialog .esm-card input{width:15px;height:15px;flex-shrink:0;margin:4px 0 0;accent-color:var(--esm-ink)}
#studioModelDialog .esm-card strong{display:block;font-size:15px;font-weight:600;overflow-wrap:anywhere}
#studioModelDialog .esm-card small{display:block;font-size:11px;color:var(--esm-muted);overflow-wrap:anywhere}
#studioModelDialog .esm-card p{margin:13px 0 17px;font-size:12px;color:var(--esm-muted);line-height:1.65}
#studioModelDialog .esm-estimates{margin:auto 0 0;padding-top:12px;border-top:1px solid var(--esm-line);font-size:12px}
#studioModelDialog .esm-estimates div+div{margin-top:13px}
#studioModelDialog .esm-estimates dt{color:var(--esm-muted);line-height:1.5}
#studioModelDialog .esm-estimates dd{margin:4px 0 0;font-size:15px;font-weight:550;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#studioModelDialog .esm-estimate-missing{margin:auto 0 0;padding-top:12px;border-top:1px solid var(--esm-line);font-size:12px;color:var(--esm-muted)}
#studioModelDialog .esm-settings{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
#studioModelDialog .esm-setting>span{display:block;margin-bottom:6px;font-size:12px;color:var(--esm-muted)}
#studioModelDialog select{width:100%;padding:9px 12px;border:1px solid var(--esm-line);border-radius:7px;background:var(--esm-card)}
#studioModelDialog .esm-billing{margin-top:22px;padding-top:16px;border-top:1px solid var(--esm-line);font-size:12px}
#studioModelDialog .esm-billing strong{font-weight:550}
#studioModelDialog .esm-billing p{margin:4px 0 0;color:var(--esm-muted);line-height:1.7}
#studioModelDialog .esm-foot{display:flex;align-items:center;gap:9px;border-top:1px solid var(--esm-line);padding:18px 26px;background:var(--esm-shell)}
#studioModelDialog .esm-summary{margin-right:auto;min-width:0;font-size:12px}
#studioModelDialog .esm-summary span,#studioModelDialog .esm-summary small{display:block;overflow-wrap:anywhere}
#studioModelDialog .esm-summary small{margin-top:2px;font-size:11px;color:var(--esm-muted)}
#studioModelDialog .esm-primary{background:var(--esm-primary);color:var(--esm-on-primary);border-color:var(--esm-primary)}
#studioModelDialog .esm-error{font-size:12px;color:#a34436;margin:12px 0 0}
#studioModelDialog [hidden]{display:none!important}
@media(max-width:620px){#studioModelDialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}#studioModelDialog .esm-head{padding:20px 18px 14px}#studioModelDialog .esm-body{padding:0 18px 18px}#studioModelDialog .esm-models{grid-template-columns:1fr}#studioModelDialog .esm-foot{padding:16px 18px;flex-wrap:wrap;justify-content:flex-end}#studioModelDialog .esm-summary{flex-basis:100%;margin-bottom:8px}#studioModelDialog .esm-settings{grid-template-columns:1fr}}

#studioModelDialog button:disabled,#studioModelDialog .esm-card:has(input:disabled){opacity:.5;cursor:not-allowed}
/* The pre-creation three-dot menu also offers model choice. Other editor-only
   actions remain hidden by the existing Projects menu rules. */
body:not(.composition-v1-system-bar-active) #studioUtility.esp-projects-ready:not(.visible) #utilityMoreWrap .utility-more-menu>#studioModelsButton{display:block!important}
