/* V1.0.78 — shared Studio surfaces. Public activities keep their own authored themes. */
:root{--studio-ink:#222137;--studio-muted:#68677e;--studio-canvas:#f5f5fa;--studio-surface:#fff;--studio-soft:#f1effb;--studio-line:#e2e0ed;--studio-accent:#6940d5;--studio-accent-ink:#5632b5;--studio-shadow:0 8px 28px rgba(36,27,75,.045);--studio-gradient:linear-gradient(110deg,#7040da,#5149d5)}
html[data-theme="dark"]{--studio-ink:#efedfa;--studio-muted:#aaa6c1;--studio-canvas:#12121b;--studio-surface:#1b1b29;--studio-soft:#252337;--studio-line:#353148;--studio-accent:#a894ff;--studio-accent-ink:#c2b2ff;--studio-shadow:0 8px 28px rgba(0,0,0,.12);--studio-gradient:linear-gradient(110deg,#7044d8,#5653d5)}
body.studio-polished:not(.corporate-public){background:var(--studio-canvas)!important;color:var(--studio-ink);font-feature-settings:"cv11","ss01"}
body.studio-polished:not(.corporate-public)::before,body.studio-polished:not(.corporate-public)::after{display:none}
body.studio-polished :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--studio-accent);outline-offset:3px}
body.studio-polished :is(input,select,textarea){accent-color:var(--studio-accent)}
body.studio-polished .topbar{background:var(--studio-surface)!important;border-color:var(--studio-line)!important;box-shadow:0 1px 0 var(--studio-line);backdrop-filter:none}
body.studio-polished .topbar::before{height:3px;background:linear-gradient(90deg,#e842de,#7947e6 40%,#2e6ae8 68%,#09c4d7)}
body.studio-polished .topbar-inner{height:76px;width:min(1480px,calc(100% - 48px));gap:20px}
body.studio-polished .brand h1{color:var(--studio-ink)!important;font-size:19px;letter-spacing:-.035em;font-weight:760}
body.studio-polished .brand-writing-hand{display:none!important}
body.studio-polished .brand-logo-shell{background:none!important;border:0!important;box-shadow:none!important}
body.studio-polished :is(.language-switch,.role-terminology-picker,.health){background:var(--studio-canvas)!important;border-color:var(--studio-line)!important;box-shadow:none!important;border-radius:12px}
body.studio-polished .lang-btn.active{background:var(--studio-surface)!important;color:var(--studio-accent-ink)!important;box-shadow:0 2px 6px rgba(30,20,70,.06)}
body.studio-polished .lang-btn.active::after{display:none}
body.studio-polished :is(.topbar-icon,.profile-button){border-radius:12px;box-shadow:none!important}
body.studio-polished .role-terminology-picker select{background-color:var(--studio-surface)!important;color:var(--studio-ink)!important;font-weight:650}
body.studio-polished #studioSectionTabs:not([hidden]){display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start;align-items:center;gap:5px!important;width:min(1480px,calc(100% - 48px))!important;margin:22px auto 24px!important;padding:7px!important;border:1px solid var(--studio-line)!important;border-radius:17px!important;background:var(--studio-surface)!important;box-shadow:var(--studio-shadow)!important;overflow:visible}
body.studio-polished #studioSectionTabs button:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center;gap:7px;flex:1 1 auto;width:auto!important;min-width:0!important;min-height:46px!important;padding:11px 16px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--studio-muted)!important;font-size:13px!important;line-height:1.3!important;font-weight:720!important;letter-spacing:-.01em!important;box-shadow:none!important;transform:none!important;white-space:nowrap}
body.studio-polished #studioSectionTabs button[hidden]{display:none!important}
body.studio-polished #studioSectionTabs button:not([hidden]):hover{background:var(--studio-soft)!important;color:var(--studio-accent-ink)!important}
body.studio-polished #studioSectionTabs button[aria-selected="true"]:not([hidden]){background:var(--studio-gradient)!important;color:#fff!important;box-shadow:0 4px 10px rgba(91,53,179,.16)!important}
body.studio-polished :is(.page,.themes-page,.notes-page,.presentation-page,.rush-studio-page,.fsb-page,.scenario-page,.maintenance-page,.mf-admin-page){width:min(1480px,calc(100% - 48px))!important;margin-top:0!important;gap:20px}
body.studio-polished :is(.panel,.notes-toolbar,.notes-workspace,.presentation-toolbar,.presentation-mode-panel,.presentation-workspace,.rush-card,.fsb-card,.theme-editor-form,.theme-library,.study-author-panel,.mf-admin-sidebar,.mf-admin-editor){background:var(--studio-surface)!important;border:1px solid var(--studio-line)!important;border-radius:20px!important;box-shadow:var(--studio-shadow)!important}
body.studio-polished :is(.upload-panel,.list-panel,.admin-library){padding:28px}
body.studio-polished :is(.section-title h2,.notes-hero h2,.presentation-hero h2,.rush-studio-hero h2,.study-author-hero h2,.fsb-hero h2,.scenario-studio-hero h2,.theme-editor-hero h2,.admin-hero h2,.mf-admin-hero h1){font-size:clamp(24px,2.3vw,32px)!important;font-weight:750!important;letter-spacing:-.045em!important;line-height:1.16!important;color:var(--studio-ink)!important}
body.studio-polished :is(.notes-hero,.presentation-hero,.rush-studio-hero,.study-author-hero,.fsb-hero,.scenario-studio-hero,.theme-editor-hero,.admin-hero,.mf-admin-hero){position:relative;overflow:hidden;padding:25px 28px!important;border:1px solid var(--studio-line)!important;border-radius:20px!important;background:linear-gradient(110deg,var(--studio-surface) 55%,var(--studio-soft))!important;box-shadow:none!important}
body.studio-polished :is(.notes-hero,.presentation-hero,.rush-studio-hero,.study-author-hero,.fsb-hero,.scenario-studio-hero,.theme-editor-hero,.admin-hero,.mf-admin-hero)::after{content:"";position:absolute;width:150px;height:150px;border:1px solid color-mix(in srgb,var(--studio-accent) 16%,transparent);border-radius:50%;right:-52px;top:-78px;pointer-events:none;box-shadow:0 0 0 24px color-mix(in srgb,var(--studio-accent) 3%,transparent),0 0 0 48px color-mix(in srgb,#08b8ce 3%,transparent)}
body.studio-polished :is(.notes-hero p,.presentation-hero p,.rush-studio-hero p,.study-author-hero p,.fsb-hero p,.scenario-studio-hero p,.theme-editor-hero p,.admin-hero p,.mf-admin-hero p){color:var(--studio-muted)!important;font-size:13px!important;line-height:1.65!important;font-weight:450!important;max-width:850px}
body.studio-polished :is(.eyebrow,.notes-eyebrow,.presentation-eyebrow,.rush-studio-eyebrow,.study-author-eyebrow,.fsb-eyebrow,.mf-eyebrow){font-size:10px!important;letter-spacing:.14em;color:var(--studio-accent-ink)!important;font-weight:750!important}
body.studio-polished :is(.notes-hero-badge,.presentation-hero-mark,.fsb-hero-mark,.scenario-hero-badge){background:var(--studio-soft)!important;color:var(--studio-accent-ink)!important;border-color:var(--studio-line)!important;box-shadow:none!important}
body.studio-polished :is(.primary,.primary-link):not([disabled]){background:var(--studio-gradient)!important;color:#fff!important;border-color:transparent!important;border-radius:11px!important;box-shadow:0 4px 11px rgba(95,51,182,.13)!important;font-weight:700!important}
body.studio-polished :is(.primary,.primary-link):not([disabled]):hover{filter:brightness(1.07);transform:none!important}
body.studio-polished .secondary{background:var(--studio-surface)!important;border-color:var(--studio-line)!important;color:var(--studio-ink)!important;border-radius:11px!important;box-shadow:none!important;font-weight:650!important}
body.studio-polished .secondary:hover{background:var(--studio-soft)!important;border-color:var(--studio-accent)!important;transform:none!important}
body.studio-polished :is(.field,.share-import-fields,.notes-toolbar,.presentation-toolbar,.rush-card,.theme-editor-form,.fsb-card) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),select,textarea){border:1px solid var(--studio-line)!important;border-radius:10px!important;background:var(--studio-surface)!important;color:var(--studio-ink)!important;box-shadow:none!important;min-height:42px;font-weight:450}
body.studio-polished :is(.field,.share-import-fields,.notes-toolbar,.presentation-toolbar,.rush-card,.theme-editor-form,.fsb-card) :is(input,select,textarea):focus{border-color:var(--studio-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--studio-accent) 12%,transparent)!important}
body.studio-polished :is(.source-card,.dropzone,.project,.class-card,.theme-card,.presentation-setup-card,.presentation-mode-card,.study-author-choice,.admin-summary article,.admin-user-row){background:var(--studio-surface)!important;border-color:var(--studio-line)!important;box-shadow:none!important;border-radius:15px!important}
body.studio-polished .featured-source{background:linear-gradient(110deg,var(--studio-soft),var(--studio-surface))!important;border-color:color-mix(in srgb,var(--studio-accent) 20%,var(--studio-line))!important;box-shadow:inset 3px 0 0 var(--studio-accent)!important}
body.studio-polished .source-icon{background:var(--studio-soft)!important;border-color:var(--studio-line)!important;color:var(--studio-accent-ink)!important;box-shadow:none!important}
body.studio-polished .source-card::after{display:none}
body.studio-polished .dropzone{border-style:dashed!important;background:var(--studio-canvas)!important}
body.studio-polished .dropzone:is(:hover,.dragging){background:var(--studio-soft)!important;border-color:var(--studio-accent)!important}
body.studio-polished .drop-icon{color:var(--studio-accent-ink)!important;background:var(--studio-soft)!important}
body.studio-polished :is(.project h3,.project-title,.theme-card h4,.admin-summary strong,.admin-user-ident strong){color:var(--studio-ink)!important}
body.studio-polished .admin-summary article{padding:21px 22px;border-top:3px solid color-mix(in srgb,var(--studio-accent) 35%,var(--studio-line))!important}
body.studio-polished .admin-summary strong{font-size:30px;font-weight:730;letter-spacing:-.04em}
body.studio-polished .admin-user-row{padding:17px 18px}
body.studio-polished :is(.theme-card.active,.presentation-mode-card:has(input:checked)){border-color:var(--studio-accent)!important;background:var(--studio-soft)!important}
body.studio-polished :is(.studio-confirm-dialog,.workspace-card,.settings-dialog){border:1px solid var(--studio-line);border-radius:22px;background:var(--studio-surface);color:var(--studio-ink);box-shadow:0 30px 80px rgba(16,11,38,.25)}
body.studio-polished .studio-confirm-dialog{width:min(460px,calc(100vw - 32px));padding:28px}
body.studio-polished .studio-confirm-dialog h2{margin:0 0 12px;font-size:23px;letter-spacing:-.03em}
body.studio-polished .studio-confirm-dialog p{color:var(--studio-muted);font-size:14px;line-height:1.65;white-space:pre-line}
body.studio-polished .studio-confirm-dialog::backdrop{background:rgba(16,11,38,.52);backdrop-filter:blur(4px)}
body.studio-polished .studio-confirm-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
/* Native file inputs remain accessible while acquiring the same visual hierarchy. */
body.studio-polished input[type="file"]{max-width:100%;color:var(--studio-muted);font-size:12px}
body.studio-polished input[type="file"]::file-selector-button{margin-right:12px;padding:10px 14px;border:1px solid var(--studio-line);border-radius:9px;background:var(--studio-soft);color:var(--studio-accent-ink);font:inherit;font-weight:700;cursor:pointer}
/* Mobile navigation is a bounded horizontal dock on every section, including Admin. */
@media(max-width:1100px){body.studio-polished .topbar-inner{width:calc(100% - 32px)}body.studio-polished #studioSectionTabs:not([hidden]){width:calc(100% - 32px)!important}body.studio-polished .health{font-size:10px;padding:0 9px}.role-terminology-picker>span{display:none}}
@media(max-width:760px){body.studio-polished .topbar-inner{height:auto;min-height:70px;gap:12px;width:calc(100% - 24px)}body.studio-polished :is(.page,.themes-page,.notes-page,.presentation-page,.rush-studio-page,.fsb-page,.scenario-page,.maintenance-page,.mf-admin-page){width:calc(100% - 24px)!important;gap:14px}body.studio-polished :is(.upload-panel,.list-panel,.admin-library){padding:18px}body.studio-polished :is(.notes-hero,.presentation-hero,.rush-studio-hero,.study-author-hero,.fsb-hero,.scenario-studio-hero,.theme-editor-hero,.admin-hero,.mf-admin-hero){padding:21px!important}body.studio-polished #studioSectionTabs:not([hidden]){gap:4px!important;margin-top:12px!important;width:calc(100% - 24px)!important}body.studio-polished #studioSectionTabs button:not([hidden]){padding:10px 12px!important;font-size:12px!important}body.studio-polished .privacy{white-space:normal;font-size:10px}}
html[data-studio-device="mobile"] body.studio-polished #studioSectionTabs:not([hidden]){position:fixed!important;top:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important;left:10px!important;right:10px!important;width:auto!important;height:74px!important;max-height:74px!important;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:4px!important;padding:6px!important;margin:0!important;border-radius:18px!important;z-index:70;scrollbar-width:none;box-shadow:0 5px 30px rgba(24,16,53,.15)!important}
html[data-studio-device="mobile"] body.studio-polished #studioSectionTabs button:not([hidden]){display:flex!important;flex:0 0 94px!important;min-width:94px!important;width:94px!important;height:60px!important;min-height:60px!important;padding:7px 6px!important;flex-direction:column;white-space:normal!important;gap:4px!important;font-size:10px!important;line-height:1.2!important;border-radius:12px!important}
html[data-studio-device="mobile"] body.studio-polished #studioSectionTabs button::before{font-size:19px!important;line-height:1}
html[data-studio-device="mobile"] body.studio-polished:not(.corporate-public){padding-bottom:108px!important}
html[data-studio-device="mobile"] body.studio-polished .topbar{position:relative}
html[data-studio-device="mobile"] body.studio-polished .topbar-inner{padding:14px 0;align-items:center}
@media(prefers-reduced-motion:reduce){body.studio-polished *,body.studio-polished *::before,body.studio-polished *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Preserve compact geometry against older authoring-panel overrides. */
body.studio-polished #studioSectionTabs:not([hidden]){flex-direction:row!important}
body.studio-polished #studioSectionTabs button:not([hidden]){width:auto!important;max-width:none!important;min-width:0!important}
body.studio-polished .brand-full{display:none!important}
body.studio-polished .brand-logo-shell,body.studio-polished .brand-logo-link:hover .brand-logo-shell,body.studio-polished .brand-logo-link:focus-visible .brand-logo-shell{width:54px!important}
body.studio-polished #notesPage :is(.notes-toolbar,.notes-settings-panel,.notes-map-card,.notes-editor-card){background:var(--studio-surface)!important;color:var(--studio-ink)!important;border-color:var(--studio-line)!important}
body.studio-polished #notesPage :is(.notes-setting-switch,.notes-settings-panel,.notes-map-head,.notes-node-entry,.notes-list-item){background:var(--studio-soft)!important;border-color:var(--studio-line)!important}
body.studio-polished #notesPage :is(.notes-setting-copy b,.notes-settings-copy strong,.notes-node-identity strong,.notes-list-item b,.notes-map-head h3,.notes-editor-empty strong,.field>span){color:var(--studio-ink)!important}
body.studio-polished #notesPage :is(.notes-setting-copy small,.notes-settings-copy small,.notes-list-item small){color:var(--studio-muted)!important}
body.studio-polished .presentation-follow-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;background:var(--studio-soft)!important;border-color:var(--studio-line)!important}
body.studio-polished .presentation-switch{min-width:0}
body.studio-polished .presentation-switch input{width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;left:24px;top:50%;margin:0}
body.studio-polished .presentation-switch b{color:var(--studio-ink)!important}
body.studio-polished .presentation-switch small{color:var(--studio-muted)!important}
body.studio-polished :is(.theme-library-pane,.theme-editor-pane,.theme-config-card,.theme-asset-field,.theme-watermark-card,.theme-cover-slot,.theme-sound-slot){background:var(--studio-surface)!important;border-color:var(--studio-line)!important}
body.studio-polished .theme-library-pane{background:var(--studio-soft)!important}
body.studio-polished :is(.theme-editor-empty strong,.theme-library-head h3,.theme-form-head h3,.theme-config-card-head h4,.theme-asset-field label span,.theme-cover-slot strong,.theme-sound-slot span){color:var(--studio-ink)!important}
body.studio-polished :is(.theme-editor-empty,.theme-editor-empty span,.theme-form-head p,.theme-config-card-head p){color:var(--studio-muted)!important;line-height:1.6}
body.studio-polished :is(.presentation-steps-head p,.presentation-compose-help,.presentation-switch small,.presentation-control-config-head small,.presentation-control-card>div:first-child small,.presentation-auto-status){font-size:12px!important;line-height:1.5!important;color:var(--studio-muted)!important}
@media(max-width:760px){body.studio-polished .presentation-follow-box{grid-template-columns:minmax(0,1fr)}}
html[data-studio-device="mobile"] body.studio-polished .topbar-inner{display:grid;grid-template-columns:44px minmax(0,1fr);height:auto;align-items:start;gap:10px;padding:12px 0}
html[data-studio-device="mobile"] body.studio-polished .brand{align-self:start;min-width:0}
html[data-studio-device="mobile"] body.studio-polished .brand h1{display:none!important}
html[data-studio-device="mobile"] body.studio-polished .brand-logo-shell{width:44px!important}
html[data-studio-device="mobile"] body.studio-polished .topbar-actions{display:grid;grid-template-columns:minmax(0,1fr) 38px 38px 38px;gap:6px;width:100%;min-width:0;align-items:center}
html[data-studio-device="mobile"] body.studio-polished .topbar-actions .language-switch{justify-self:start;width:auto;order:0}
html[data-studio-device="mobile"] body.studio-polished .topbar-actions .role-terminology-picker{grid-column:1/-1;order:10;width:100%;min-width:0;margin:0;padding:4px;box-sizing:border-box}
html[data-studio-device="mobile"] body.studio-polished .role-terminology-picker select{width:100%;min-width:0;font-size:13px!important;min-height:36px!important;flex:1}
html[data-studio-device="mobile"] body.studio-polished .role-terminology-picker>span{display:none}
html[data-studio-device="mobile"] body.studio-polished #studioSectionTabs button:not([hidden]){min-width:94px!important;width:94px!important}
