/* Shared compact preferences used by the prototype and Studio. */
.preferences{max-width:760px;margin:0 42px 56px;color:#eaeaed;font-size:13px}.preference-tabs{display:flex;gap:24px;border-bottom:1px solid #ffffff12;margin-bottom:30px}.preference-tabs button{position:relative;border:0;background:none;color:#85858d;padding:0 2px 15px;min-height:42px;font:inherit;cursor:pointer}.preference-tabs button.selected{color:#f0f0f3}.preference-tabs button.selected:after{content:"";position:absolute;height:2px;background:#d6d6de;bottom:-1px;left:0;right:0}.preference-heading{margin-bottom:23px}.preference-heading h2{font-size:20px;line-height:1.3;letter-spacing:-.025em;font-weight:550;margin:0}.preference-heading p{font-size:12px;color:#888891;margin:8px 0 0;line-height:1.5}.preference-group{background:#111115;border:1px solid #ffffff0b;border-radius:12px;padding:22px 24px;margin-bottom:16px}.preference-group h3{font-size:11px;font-weight:500;color:#85858f;margin:0 0 8px}.preferences .field{display:grid;grid-template-columns:minmax(145px,1fr) minmax(0,1.5fr);gap:16px;align-items:center;font-size:12px;line-height:1.5;margin:0;padding:12px 0;color:#a7a7af}.preferences .field+.field{border-top:1px solid #ffffff08}.preferences input:not([type=checkbox]),.preferences select{width:100%;min-height:38px;margin:0;padding:9px 12px;border:1px solid #ffffff14;border-radius:7px;background:#0b0b0e;color:#dddde4;box-shadow:none;font:inherit;appearance:auto}.preferences input:focus,.preferences select:focus{outline:2px solid #92929f;outline-offset:2px}.preferences .switch-row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border:0;border-bottom:1px solid #ffffff08;font-size:13px}.preferences .switch-row small{display:block;color:#85858f}.preferences input[type=checkbox]{appearance:none;position:relative;flex:none;width:32px;height:19px;padding:0;min-height:0;border:0;border-radius:20px;background:#37373e;margin:0;cursor:pointer;transition:background .18s}.preferences input[type=checkbox]:after{content:"";position:absolute;width:13px;height:13px;left:3px;top:3px;border-radius:50%;background:#fff;transition:transform .18s}.preferences input[type=checkbox]:checked{background:#7676a0}.preferences input[type=checkbox]:checked:after{transform:translateX(13px)}.preference-details{margin-top:16px}.preference-details summary{cursor:pointer;color:#888891;font-size:12px}.preference-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.preferences .preference-columns .field{display:flex;flex-direction:column;gap:12px;align-items:stretch;padding:0;border:0}.preference-session{display:flex;align-items:center;justify-content:space-between;padding:18px 2px}.preference-session strong{display:block;font-size:13px;font-weight:500}.preference-session small{display:block;color:#787881;font-size:11px;margin-top:6px}.preference-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding-top:20px;border-top:1px solid #ffffff0d}.preference-footer>span{font-size:10px;color:#787881}.preference-footer .create{min-height:36px;font-size:12px;padding:9px 20px;margin:0}.preference-footer button:disabled{opacity:.4;cursor:default}.preferences button:focus-visible{outline:2px solid #aaaab7;outline-offset:4px}.preference-session button{color:#aaaab3}
@media(max-width:650px){.preferences{margin:0 20px 32px}.preference-group{padding:14px 16px}.preferences .field{grid-template-columns:1fr;gap:8px}.preference-columns{grid-template-columns:1fr}.preference-footer>span{max-width:155px;line-height:1.6}.preference-tabs{gap:20px}.preference-heading h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.preferences *{transition:none!important}}

/* Studio settings: compact sections with explicit scope and save state. */
#view-clipping{display:none!important}.page-heading .models-heading{display:flex;align-items:center;gap:12px}.page-heading .models-count{display:inline;align-self:center;transform:translateY(5px);min-width:0;height:auto;padding:0;border:0;border-radius:0;background:none;color:#9299ac;font:400 18px/1 var(--sans,system-ui,sans-serif);font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap}.preferences{max-width:1000px}.settings-section{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:40px;padding:28px 0;border-top:1px solid #ffffff16}.settings-section-heading h2{font-size:17px;margin:0 0 9px;font-weight:550}.settings-section-heading p{margin:0;font-size:12px;line-height:1.65;color:#9299ac}.settings-section-body{min-width:0}.settings-section .switch-row{padding:16px 0;gap:24px}.settings-section .switch-row:first-child{padding-top:0}.settings-section .switch-row strong{font-size:13px;font-weight:500}.settings-section .switch-row small{margin-top:5px;max-width:360px;font-size:12px;line-height:1.55;color:#9299ac}.settings-info-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;font-size:12px;color:#9299ac}.settings-info-row strong{font-weight:500;color:#d3d8e5}.settings-section .field{grid-template-columns:1fr;gap:7px;padding:0 0 10px}.settings-section .field[hidden]{display:none}.settings-section .preference-details{margin-top:20px}.settings-section .preference-details summary{padding:10px 0;color:#c4c8d4}.settings-section .preference-columns{padding-top:16px}.settings-form .preference-footer{margin-top:0;margin-bottom:36px;padding-top:20px}.preference-footer small{display:block;margin-top:6px;color:#9299ac;font-size:11px;line-height:1.5}.settings-save-actions{display:flex;gap:10px;flex-wrap:wrap}.settings-save-actions button{width:auto;min-width:0}.settings-section .preference-session{padding:0;gap:20px}.settings-section .preference-session strong{font-size:15px}.settings-section .preference-session small{color:#9299ac;font-size:12px}.preferences input[type=checkbox]:focus-visible{outline:2px solid #c4c0ff;outline-offset:4px}.settings-form .preference-footer>div:first-child{font-size:12px;color:#c4c8d4}@media(max-width:700px){.settings-section{grid-template-columns:1fr;gap:20px}.settings-form .preference-footer{align-items:flex-start;flex-direction:column}.settings-save-actions{width:100%}.settings-save-actions button{flex:1}.settings-info-row{flex-wrap:wrap}.settings-section .preference-session{flex-wrap:wrap}}

#composer-dialog #composer-model[hidden],#composer-account-picker [hidden]{display:none!important}
#composer-account-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;width:100%;min-height:38px;padding:8px 10px;border:1px solid #ffffff16;border-radius:10px;background:#ffffff04;color:#d7deed;font:12px var(--sans);text-align:left}
#composer-account-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#composer-account-toggle:focus-visible,#composer-account-search:focus-visible{outline:2px solid #b9b1f0;outline-offset:2px}
#composer-account-panel{grid-column:1/-1;min-width:0;padding-top:4px}
#composer-dialog #composer-account-search{width:100%;min-height:42px;padding:10px 12px;border:1px solid #ffffff24;border-radius:10px;background:#0d1119;color:#eff1f7;font:13px var(--sans)}
#composer-account-results{max-height:220px;overflow-y:auto;overscroll-behavior:contain;margin-top:8px;padding:3px;background:#10151e;border-radius:10px}
#composer-account-results [role=option]{padding:12px 10px;border-radius:7px;color:#cdd5e5;font:12px/1.45 var(--sans);overflow-wrap:anywhere;cursor:pointer}
#composer-account-results [role=option]:hover,#composer-account-results [role=option].active{background:#aaa0ed20;color:#f2efff}
#composer-account-results [aria-selected=true]{font-weight:600}
#composer-account-empty{margin:0;padding:18px 10px;color:#a5aec1;font:12px var(--sans)}

#account-initials{overflow:hidden}#account-initials .account-avatar-image{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 50%;border-radius:inherit}

.studio-navigation nav.studio-primary-nav.has-glider{position:relative;isolation:isolate}
.studio-navigation nav.has-glider .nav-button{position:relative;z-index:1;transition:color .2s ease}
.studio-navigation nav.has-glider .nav-button.active,.studio-navigation nav.has-glider .nav-button:hover{background:transparent;border-color:transparent;box-shadow:none}
.studio-nav-glider{position:absolute;left:0;top:0;z-index:0;width:0;height:0;border:1px solid #a7bbeb20;border-radius:24px;background:linear-gradient(140deg,#9db9ff12,#ffffff04);box-shadow:inset 0 1px #ffffff08;opacity:0;pointer-events:none;transition:transform .35s cubic-bezier(.22,1,.36,1),width .35s cubic-bezier(.22,1,.36,1),opacity .2s}
.studio-nav-glider:after{content:'';position:absolute;left:30%;right:30%;height:1px;bottom:-1px;background:linear-gradient(90deg,transparent,#6894ff9c,#a47ed887,transparent)}
@media(prefers-reduced-motion:reduce){.studio-nav-glider,.studio-navigation nav.has-glider .nav-button{transition:none}}

.studio-navigation .studio-more > nav.has-glider{isolation:isolate}
.studio-more .studio-nav-glider{border-radius:9px}

/* The account search floats above the form; opening it never changes editor geometry. */
#composer-account-toggle .account-picker-chevron{width:16px;height:16px;flex:0 0 16px;align-self:center;color:#bac7df;transition:transform .18s ease}
#composer-account-toggle[aria-expanded=true] .account-picker-chevron{transform:rotate(180deg)}
#composer-dialog #composer-account-panel{position:fixed;inset:auto;margin:0;padding:12px;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;border:1px solid #dae7ff38;border-radius:18px;background:linear-gradient(135deg,#e5edff13,#ffffff03 50%),#111722b3;box-shadow:inset 0 1px #ffffff2e,0 18px 55px #0007;color:#e7edf8;-webkit-backdrop-filter:blur(24px) saturate(140%);backdrop-filter:blur(24px) saturate(140%);overflow:hidden}
#composer-dialog #composer-account-search{flex:0 0 42px;min-height:42px;background:#080e184d;border-color:#d4e1ff25;box-shadow:inset 0 1px 3px #0002}
#composer-account-search:focus-visible{outline:1px solid #b9b1f099;outline-offset:0}
#composer-account-results{flex:1;min-height:0;max-height:none;margin:0;padding:3px;background:transparent;scrollbar-width:thin;scrollbar-color:#9daac34d transparent}
#composer-account-results [role=option]{font-weight:400}
#composer-account-results [aria-selected=true]{color:#e8e3ff}
#composer-account-results [role=option].active{background:#b4a6ed1c}
#composer-account-results [role=option]:hover{background:#d0c8f51c}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#composer-dialog #composer-account-panel{background:#171e2a}}
@media(prefers-reduced-transparency:reduce){#composer-dialog #composer-account-panel{background:#171e2a;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){#composer-account-toggle .account-picker-chevron{transition:none}}

/* Keep import readable beside the compact create action on phones. */
#publication-import{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
#publication-import svg{width:16px;height:16px;flex:none}
@media(max-width:760px){#view-studio .page-heading .page-actions{width:100%;flex-wrap:nowrap;justify-content:flex-end;gap:10px}#view-studio .page-heading #publication-import{width:auto;min-width:0;flex:0 1 auto;min-height:44px;padding:10px 15px;border-radius:14px;font:500 12px/1.4 var(--sans);white-space:nowrap}#view-studio .page-heading #publication-import span{display:inline}#view-studio .page-actions [data-open-composer]{flex:none;width:48px;min-width:48px;height:44px;min-height:44px;padding:0;border-radius:14px;justify-content:center}#view-studio .page-actions [data-open-composer] span{display:none}}
