#modelSettingsDialog{box-sizing:border-box;border:1px solid #ddd;border-radius:12px;padding:14px;width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;color:#292929}
#modelSettingsDialog::backdrop{background:#0006}
#modelSettingsDialog h2{font-size:16px;margin:0}
#modelSettingsDialog header button,#modelSettingsDialog .model-profile-toolbar button{min-height:40px;min-width:48px;padding:6px 10px;border:1px solid #ddc6c8;border-radius:6px;background:#fff;color:#962331;font-size:13px;white-space:nowrap}
#modelSettingsDialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
#modelSettingsDialog label{display:block;font-size:13px;margin:10px 0}
#modelSettingsDialog input:not([type=checkbox]){box-sizing:border-box;width:100%;height:38px;margin-top:5px;padding:8px;border:1px solid #ddd;border-radius:7px;font-size:14px}
#modelSettingsDialog input[type=checkbox]{width:16px;height:16px;vertical-align:middle}
#modelSettingsDialog .model-actions{display:flex;gap:8px;margin-top:12px}
#modelSettingsDialog .model-actions button{flex:1;min-height:40px;padding:8px;font-size:14px}
#modelSettingsStatus{font-size:13px;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}
#businessCompanySwitch{width:7.5em;max-width:none;flex:0 0 auto;min-height:32px;margin:0;padding:4px 28px 4px 8px;border:1px solid #ddd;border-radius:7px;background:#fff;color:#792630;font-size:13px}
.topbar:has(#businessCompanySwitch:not(.hidden)){flex-wrap:wrap;gap:6px 12px;height:auto;min-height:64px}
.topbar .account:has(#businessCompanySwitch:not(.hidden)){flex:0 0 auto;max-width:none;margin-left:auto}
@media(max-width:520px){.topbar:has(#businessCompanySwitch:not(.hidden)) .brand{flex:0 1 auto}.topbar .account:has(#businessCompanySwitch:not(.hidden)){gap:4px}}
#companySwitchDialog{box-sizing:border-box;width:calc(100% - 32px);max-width:360px;height:fit-content;min-height:0;max-height:90dvh;margin:auto;padding:20px;border:1px solid #eadfe0;border-radius:14px;background:#fff;color:#292323;box-shadow:0 16px 60px #0003}
#companySwitchDialog::backdrop{background:#0006}
#companySwitchDialog h2{margin:0 0 14px;font-size:18px}
#companySwitchDialog p{margin:8px 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#companySwitchDialog .switch-target{font-weight:600}
#companySwitchDialog .switch-actions{display:flex;gap:10px;margin-top:18px}
#companySwitchDialog button{flex:1;height:42px;min-height:42px;padding:8px;border:1px solid #ddc6c8;border-radius:8px;background:#fff;color:#a82330;font-size:14px}
#companySwitchDialog [data-confirm]{background:#ad2330;border-color:#ad2330;color:#fff}
.model-profile-toolbar{display:flex;justify-content:space-between;gap:8px;font-size:13px;align-items:center}
.model-profile{border-bottom:1px solid #eee;padding:10px 0;display:flex;justify-content:space-between;gap:10px;font-size:13px}
.model-profile>div:first-child{min-width:0;flex:1}.model-profile span{display:block;color:#666;overflow-wrap:anywhere;font-size:12px;margin-top:3px}
.model-profile button{min-height:40px;min-width:48px;border:1px solid #ddc6c8;border-radius:6px;background:#fff;color:#962331;padding:6px 8px;font-size:13px;cursor:pointer}.model-profile b{font-size:12px;color:#962331}.model-profile>div:last-child{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:4px;max-width:160px}
