/* Shared UI hierarchy. Reader typography and public-profile cosmetics remain user controlled. */
body.clearUI{--ui-surface:#181a1c;--ui-border:#343438;--ui-muted:#b0adb8;--ui-accent:#c9a7ed}
.clearUI main{padding-top:24px}
.clearUI main>header{margin-bottom:16px}
.clearUI :is(#editor,#profilePage,#myLibraryPage,#creationHub,#persona,#appearancePage)>h1{font-family:inherit;font-size:28px;line-height:1.25;font-weight:700;margin:8px 0 12px}
.clearUI :is(input,textarea,select){border-radius:10px;border-color:var(--ui-border)}
.clearUI :is(button,.optionTrigger){border-radius:10px;transition:background-color .12s,border-color .12s}
.clearUI button.primary{background:#765299;border-color:#a484c3;color:#fff}
.clearUI :is(.actions,.libraryToolbar){flex-wrap:wrap;gap:8px}
.clearUI .libraryToolbar{display:flex;margin:16px 0 24px}
.clearUI .muted{color:var(--ui-muted)}
.clearUI .homeWelcome{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 18px}
.clearUI .homeWelcomeTitle{font-size:22px;line-height:1.3;font-weight:650}
.clearUI .mobileLobbyHeader{display:none}
.clearUI #storiesPage>.pageTabs[hidden]{display:none}
.clearUI #featuredStory{padding:24px;min-height:0;margin-bottom:24px}
.clearUI #featuredStory h1{font-size:25px;line-height:1.3}
.clearUI #featuredStory p:not(.eyebrow){-webkit-line-clamp:2}
.clearUI #storiesPage>.stemEntry{font-size:13px;padding:10px 14px;margin:0 0 14px}
.clearUI .storyScopeTabs{margin:12px 0 20px}
.clearUI .creationChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}
.clearUI .creationChoices>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:14px;padding:24px;background:var(--ui-surface);border:1px solid var(--ui-border);white-space:normal}
.clearUI .creationChoices strong{font-size:20px;line-height:1.3}
.clearUI .creationChoices small{font-size:14px;color:var(--ui-muted);line-height:1.6}
.clearUI .choiceNumber{width:34px;height:34px;display:grid;place-items:center;background:#77539a33;color:var(--ui-accent);border-radius:10px}
.clearUI .choiceAction{margin-top:auto;font-size:13px;color:var(--ui-accent)}
.clearUI .profileSettingsSection{padding:0;margin:12px 0;background:var(--ui-surface);border:1px solid var(--ui-border);overflow:hidden}
.clearUI .profileSettingsSection>summary{padding:17px 20px;color:inherit;font-size:15px;font-weight:600}
.clearUI .profileSettingsSection .profileGroup{margin:0;padding:0 20px 18px;border:0}
.clearUI .profileSettingsSection .profileGroup>h2[hidden]{display:none}
.clearUI .profileSettingsSection .profileGroup>button{min-height:44px}
.clearUI .creatorSteps{display:flex;flex-wrap:wrap;gap:6px;border:0;padding:8px 0}
.clearUI .creatorSteps button{padding:9px 13px;font-size:13px;min-height:42px}
.clearUI .creatorSteps [aria-current=step]{background:#654483;color:white;border-color:#b294cc}
.clearUI .editorStepStatus{color:var(--ui-muted);margin:4px 0 20px;font-size:13px}
.clearUI .creatorNavigation{border-top:1px solid var(--ui-border);padding-top:16px;margin-top:24px;display:flex;justify-content:space-between;gap:12px}
.clearUI .creatorNavigation button{min-height:44px}
.clearUI .creatorPreview{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;padding:20px;align-self:start}
.clearUI .creatorFieldHelp{font-size:12px;line-height:1.6;color:var(--ui-muted);margin:6px 0 16px}
.clearUI :is(.optionWindow,.navigationWindow){border:1px solid #48414f;border-radius:16px;box-shadow:0 24px 90px #0008}
.clearUI .optionWindowHeader{padding:16px 20px;gap:12px}
.clearUI .optionWindowHeader h2{font:600 19px/1.35 'Segoe UI',sans-serif}
.clearUI .optionWindowContent{padding:20px}
.clearUI .navigationLink{min-height:64px;padding:14px 16px}
.clearUI .navigationLink small{color:var(--ui-muted);font-size:12px}
.clearUI #journeySettings>.panelTrigger{padding:13px 10px;min-height:44px}
.clearUI :is(.stemPanel,.stemSheetSection){border-color:var(--ui-border);border-radius:12px}
.clearUI #stemPage>p{max-width:760px;color:var(--ui-muted);line-height:1.6}
.clearUI .stemGames{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:16px 0 24px}
.clearUI .stemGames>button{text-align:left;min-height:64px;padding:16px}
.clearUI .organizedRow{gap:14px;padding:16px 0}
@media(max-width:760px){
 .clearUI main,.clearUI.withCommunity main{padding-left:16px;padding-right:16px}
 .clearUI .homeWelcomeTitle{font-size:20px}
 .clearUI .creationChoices{grid-template-columns:1fr;gap:12px;margin:18px 0}
 .clearUI .creationChoices>button{padding:18px;gap:9px}
 .clearUI #featuredStory{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;text-align:left;padding:18px 12px;align-items:center}
 .clearUI #storiesPage #featuredStory>img{grid-column:1;grid-row:1;width:88px;height:132px;margin:0;box-shadow:none}
 .clearUI #featuredStory>div{grid-column:2;max-width:none}
 .clearUI #featuredStory:not(:has(>img))>div{grid-column:1/-1}
 .clearUI #featuredStory h1{font-size:19px;margin:6px 0}
 .clearUI #featuredStory p:not(.eyebrow){font-size:12px;margin:6px 0}
 .clearUI #featuredStory button{font-size:12px;padding:8px 12px;margin-top:6px}
 .clearUI .creatorSteps{flex-wrap:nowrap;overflow-x:auto;touch-action:pan-x pan-y}
 .clearUI .creatorSteps button{flex:none}
 .clearUI .creatorPreview{display:none}
 .clearUI .creatorWorkspace{grid-template-columns:minmax(0,1fr)}
 .clearUI .optionWindowContent{padding:16px}
 .clearUI .profileSettingsSection>summary{padding:15px 16px}
 .clearUI .profileSettingsSection .profileGroup{padding:0 16px 16px}
 .clearUI aside nav button{min-width:0;flex:1}
 .clearUI aside nav .navLabel{display:block;font-size:10px;line-height:1.2}
 .clearUI :is(#profilePage,#myLibraryPage,#creationHub,#editor){min-width:0}
}
@media(prefers-reduced-motion:reduce){.clearUI :is(button,.optionTrigger){transition:none}}

/* Unified page shell: navigation, library and creation share the same visual language. */
body.clearUI{background:#0e1016;color:#eeedf4;--ui-surface:#171a24;--ui-border:#3d4255;--ui-muted:#b5b9cb;--ui-accent:#d2b7fb;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.clearUI>aside{background:#12151e;border-color:#303647;padding:24px 16px}
.clearUI .brand{color:#d2b7fb}.clearUI .brand span{letter-spacing:2px}
.clearUI>aside nav{gap:6px}.clearUI>aside nav button{color:#c3c7d7;min-height:44px;border-radius:12px}
.clearUI>aside nav button.isCurrent{background:#30263f;color:#f4eaff;border:1px solid #8d6ab4}
.clearUI .caption{color:#a7adbf;margin:16px 0 24px}
.clearUI main{padding:28px clamp(16px,3vw,48px);min-width:0}
.clearUI main>header{font-size:11px;color:#b6b9c9;letter-spacing:.12em}
.clearUI #storiesPage,.clearUI #creationHub{max-width:1180px}
.clearUI .homeWelcome{margin-bottom:24px}.clearUI .homeWelcomeTitle{font:700 clamp(24px,3vw,34px)/1.25 system-ui;margin:0;letter-spacing:-.035em}
.clearUI button{min-height:40px;color:#f0ecf8;background:#222635;border-color:#464c61;font-size:14px;padding:10px 14px}
.clearUI button:hover:not(:disabled){background:#30364a;border-color:#b19acb}
.clearUI button.primary,.clearUI #send{background:#bda1e4;color:#17111f;border-color:#cdb3ef;font-weight:650}
.clearUI button:disabled{cursor:default;opacity:.55}
.clearUI :is(input,textarea,select){background:#11151e;border-color:#596077;color:#f0edf8;font-size:16px;line-height:1.6;padding:12px}
.clearUI label{color:#d2d5e2;font-size:14px;font-weight:550}
.clearUI .storyScopeTabs{display:flex;gap:6px;width:fit-content;padding:5px;background:#181d29;border:1px solid #363e52;border-radius:14px}
.clearUI .storyScopeTabs button{border:0;border-radius:9px;background:transparent}
.clearUI .storyScopeTabs button[aria-pressed=true]{background:#493661;color:#fff}
.clearUI #featuredStory{background:linear-gradient(115deg,#201c31,#19202c);border:1px solid #45405a;border-radius:20px;padding:28px;margin:20px 0 28px;gap:28px}
.clearUI #featuredStory h1{font-size:clamp(23px,2.6vw,32px);letter-spacing:-.03em;line-height:1.2;max-width:650px}
.clearUI #featuredStory p:not(.eyebrow){color:#c0c3d1;font-size:14px}
.clearUI #featuredStory .eyebrow{color:#ddc5ff}
.clearUI #featuredStory button{background:#d4c1ef;color:#21172c;border-color:transparent;min-height:44px}
.clearUI #communityPage>h1,.clearUI .mobileRecentStories h2{font:650 22px/1.3 system-ui!important;margin-bottom:10px}
.clearUI .card h2{color:#eef0f8;font-size:14px}.clearUI .card .muted,.clearUI .card p{color:#b7bdd0}
.clearUI #publishedCards>.card{border:0;background:transparent}
.clearUI .creationChoices>button{min-height:230px;background:linear-gradient(150deg,#202435,#171a24);border-color:#43465b;border-radius:18px;box-shadow:0 12px 28px #0002}
.clearUI .choiceNumber{background:#3d2e51;color:#e1caff;border:1px solid #785c99}
.clearUI .creationChoices strong{font-size:23px;letter-spacing:-.025em}
.clearUI .profileCard{background:linear-gradient(130deg,#252039,#1b2130);border:1px solid #554966;border-radius:18px;padding:24px}
.clearUI .profileSettingsSection{border-radius:14px;background:#191d29;border-color:#3c4256}
.clearUI .profileSettingsSection>summary{list-style-position:inside;min-height:54px}
.clearUI .profileSettingsSection[open]>summary{border-bottom:1px solid #3c4256;margin-bottom:10px}
.clearUI #profilePage,.clearUI #appearancePage{max-width:850px;margin-inline:auto}
.clearUI .organizedRow{border-color:#343b50}.clearUI .organizedRow h3{font-size:16px;color:#eef0f8}
.clearUI .organizedRow>img{width:52px;height:76px;border-radius:10px}
.clearUI #editor{max-width:1250px;margin:auto}.clearUI .creatorWorkspace{gap:28px}
.clearUI .creatorSteps{padding:8px;background:#171c28;border:1px solid #343b50;border-radius:14px;margin:20px 0 12px}
.clearUI .creatorSteps button{background:transparent;border:0;color:#c1c8db}
.clearUI .creatorSteps [aria-current=step]{background:#493561;color:#fff}
.clearUI .creatorStep{min-width:0}.clearUI .creatorStep>label{margin-top:20px}
.clearUI .creatorPreview{background:#181d29;border-color:#3c445b;border-radius:16px}
.clearUI .creatorPreview img{max-height:220px;width:auto;max-width:100%;object-fit:contain;margin-inline:auto}
.clearUI .creatorNavigation{padding:18px 0}.clearUI .editorStepStatus{font-size:14px;line-height:1.6}
.clearUI .optionWindow{background:#171b26;color:#f0edf7;border-color:#565069;width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.clearUI .optionWindowHeader{background:#1c2030;border-bottom:1px solid #41465c}
.clearUI .navigationLink{background:#202535;border:1px solid #41485f;border-radius:12px;margin-top:10px}
.clearUI .navigationLink strong{font-size:15px}.clearUI .navigationLink small{color:#bec4d5}
.clearUI .optionChoices{gap:8px}.clearUI .optionChoices>button{text-align:left;min-height:44px}
.clearUI .selectedOption{background:var(--zero-selected,#4a3764)!important;color:#fff}
.clearUI #journeySettings{background:#141924;border-color:#3b4356}
.clearUI #journeySettings>.panelTrigger{background:transparent;border:0;border-bottom:1px solid #30384b;border-radius:0;text-align:left}
.clearUI #chatForm{border:1px solid #4c5067;border-radius:16px;background:#1b202b}
.clearUI .stemPanel{background:#181d29;border:1px solid #40485e;padding:22px}
.clearUI .stemParty{background:#191e2b;border:1px solid #3f485e;padding:16px;border-radius:14px;margin:16px 0}
.clearUI .stemChat{background:#171d29;border-color:#465069}.clearUI .stemGames>button{background:#22283a}
.clearUI .stemNpcs,.clearUI .stemMemories{background:#181e2b;border-color:#41495e}
.clearUI #adminUsers{gap:12px}.clearUI .adminAccount{border-color:#41495e;background:#181d28}
.clearUI #announcementPanel{background:#131823;border-color:#353d50}
.clearUI .providerDisclosure{background:transparent;border-color:#394155;font-size:12px;padding:8px 12px}
.clearUI #privacyFooter{background:#121722;border-top:1px solid #30384b;padding-top:14px}
.accessibilitySetting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #596077}
.accessibilitySetting p{margin:6px 0 0;color:#bec5d5;line-height:1.5;font-size:14px}.accessibilitySetting button{min-width:64px;min-height:44px}
.accessibilitySetting button[aria-checked=true]{background:#cab0ee;color:#191220;border-color:#cab0ee}
.formErrorSummary{padding:12px;border:2px solid #e89eab;background:#3b1d28;color:#ffe5eb;border-radius:10px}
[aria-invalid=true]{border-color:#f1a3b0!important}
:where(button,a,input,textarea,select,summary,[tabindex]){scroll-margin-top:24px;scroll-margin-bottom:100px}
html[data-large-text=true] body{font-size:18px}html[data-large-text=true] :is(button,label,input,textarea,select,.muted,.creatorFieldHelp,.navigationLink small,.optionWindowContent p,.organizedText p){font-size:18px!important;line-height:1.65!important}
html[data-contrast=true] body{--ui-muted:#f1f1f1;--ui-border:#bac5dc}
html[data-contrast=true] :is(.muted,label,summary,.card p,.creatorFieldHelp,.navigationLink small){color:#f3f4ff!important}
html[data-contrast=true] :is(button,input,textarea,select,details){border-color:#bcc5df!important}
html[data-reduce-motion=true]{scroll-behavior:auto!important}html[data-reduce-motion=true] *,html[data-reduce-motion=true] *::before,html[data-reduce-motion=true] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:1000px){.clearUI .creationChoices{grid-template-columns:1fr}.clearUI .creationChoices>button{min-height:0}}
@media(max-width:760px){
 .clearUI main,.clearUI.withCommunity main{padding:18px 14px 30px}.clearUI .homeWelcome{margin:10px 0 18px}.clearUI .homeWelcomeTitle{font-size:25px}
 .clearUI>aside{padding:5px 6px max(5px,env(safe-area-inset-bottom));background:#171c28;border-top:1px solid #56617d}
 .clearUI>aside nav{gap:3px}.clearUI>aside nav button{padding:7px 3px!important;min-height:50px;border-radius:10px;font-size:11px}
 .clearUI #featuredStory{padding:16px;grid-template-columns:80px minmax(0,1fr);gap:14px;border-radius:16px}
 .clearUI #storiesPage #featuredStory>img{width:80px;height:120px}.clearUI #featuredStory h1{font-size:20px}
 .clearUI #featuredStory p:not(.eyebrow){font-size:13px}.clearUI .storyScopeTabs{max-width:100%}
 .clearUI .optionWindow{max-height:calc(100dvh - 24px);border-radius:16px}.clearUI .optionWindowHeader{padding:14px 16px}
 .clearUI .optionWindowContent{padding:16px}.clearUI .creationChoices>button{padding:20px}
 .clearUI .stemPanel{padding:16px}.clearUI .organizedRow .actions{display:flex;flex-wrap:wrap}.clearUI .organizedRow .actions button{flex:1}
 .clearUI .creatorSteps button{min-height:44px}.clearUI .creatorSteps{border-radius:12px;padding:5px}
 .clearUI .profileCard{padding:18px}.clearUI :is(button,.optionTrigger,summary){min-height:44px}
 .clearUI .storyScrollActions button{min-width:44px;min-height:44px}
 html[data-large-text=true] .clearUI aside nav .navLabel{font-size:12px!important}
}
@media(forced-colors:active){button,input,textarea,select,details{border:1px solid ButtonText!important}:focus-visible{outline:3px solid Highlight!important}.selectedOption,[aria-current=page],[aria-current=step]{outline:2px solid Highlight!important}}
/* Sign-in and recovery use the same controls as the signed-in app. */
body.access{background:#0e1016;color:#eeedf4;font:16px/1.65 system-ui}
body.access main{max-width:600px;margin:32px auto;padding:28px;background:#171c28;border:1px solid #414a61;border-radius:20px}
body.guestHome main{max-width:960px;width:calc(100% - 40px);margin:24px auto;padding:0;background:transparent;border:0}.guestHomeHeader{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:36px}.guestBrand{display:inline-flex;align-items:center;gap:10px;letter-spacing:.12em;font-weight:700;color:#ddc5f4;text-decoration:none}.guestBrand img{display:block}.guestSignIn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:1px solid #ad89d6;border-radius:12px;color:#1b1225;background:#c8a9ef;text-decoration:none;font-weight:600}.guestHero{padding:clamp(28px,6vw,64px);border:1px solid #9c70bf66;border-radius:26px;background:radial-gradient(ellipse at 90% 10%,#79529555,transparent 70%),linear-gradient(120deg,#211629,#352142)}body.guestHome .guestHero h1{font:400 clamp(36px,7vw,64px)/1.12 Georgia,serif;max-width:680px;margin:20px 0}.guestHero h1 em{color:#c9a4ef;font-style:normal}.guestHero p{max-width:560px;color:#d0bedc;font-size:18px}.guestHero .eyebrow{font-size:12px;letter-spacing:.14em}.guestAccessPrompt{margin-top:28px;padding:28px;border:1px solid #66527766;background:#17141e;border-radius:20px}.guestAccessPrompt h2{margin-top:0}.guestAccessPrompt .muted{font-size:13px;margin-top:20px}.guestSignIn:focus-visible,.guestBrand:focus-visible{outline:2px solid #ead6ff;outline-offset:4px}@media(max-width:600px){body.guestHome main{margin:20px auto;width:calc(100% - 32px)}.guestHomeHeader{margin-bottom:24px}.guestBrand{font-size:13px}.guestHero{border-radius:20px}.guestAccessPrompt{padding:22px}.guestHero p{font-size:16px}}
body.access h1{font:700 32px/1.25 system-ui;letter-spacing:-.03em}
body.access label{font-size:14px;color:#d4d9e7}
body.access :is(input,select,textarea){font-size:16px;background:#11151e;color:#f2eef8;border:1px solid #66708b;border-radius:10px;min-height:44px}
body.access button{min-height:44px;border-radius:10px;padding:10px 16px}
body.access button.primary{background:#c8a9ef;color:#1b1225;border-color:#c8a9ef}
body.access fieldset{border:1px solid #4b5570;border-radius:12px;padding:16px;margin:22px 0}
body.access fieldset a{color:#dac2fa;margin-right:16px}
body.access .actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:600px){body.access main{margin:12px auto;padding:20px 16px;width:calc(100% - 24px)}body.access .actions>button{flex:1}}

#mobileComposerTools{display:none}
@media(max-width:760px){
 body.inJourney main{padding:0}
 body.inJourney #chatForm{width:calc(100% - 16px);margin:4px auto;padding:4px;gap:4px;grid-template-columns:44px minmax(0,1fr) auto;align-items:end;border-radius:12px}
 body.inJourney #chatForm #message,body.inJourney #chatForm.composerCompact #message{grid-row:1;grid-column:2;height:var(--reply-height,44px)!important;min-height:44px!important;max-height:120px!important;font-size:16px;line-height:1.4;padding:10px 4px;box-sizing:border-box}
 body.inJourney #chatForm>.optionTrigger,body.inJourney #chatForm>.readerActions{display:none!important}
 body.inJourney #mobileComposerTools{display:block;grid-row:1;grid-column:1;width:44px;height:44px;min-height:44px;margin:0;padding:0;font-size:22px}
 body.inJourney .composerBottom{grid-row:1;grid-column:3;flex-wrap:nowrap;margin:0;gap:4px}
 body.inJourney #send,body.inJourney #stop{min-height:44px;padding:6px 8px;margin:0}
 body.inJourney #privacyFooter{padding-top:0;padding-bottom:env(safe-area-inset-bottom);gap:8px}
 body.inJourney #privacyFooter>button{min-height:28px;height:28px;padding:2px 8px;font-size:12px;margin:0}
}

/* Keep the provider switch usable on touch screens and with larger text. */
#synapsesModelMenu .replyProviderSwitch button{min-height:44px;width:100%;font-size:14px;padding:10px 8px}
#synapsesModelMenu .replyProviderSwitch small{display:block;padding:4px;font-size:12px}
@media(max-width:760px){#synapsesModelMenu{width:min(310px,calc(100vw - 24px));max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}body.inJourney #synapsesModelMenu>button[role=menuitemradio]{min-height:44px}#synapsesModelMenu>p{font-size:12px;line-height:1.4}}

@media(max-width:760px){body.inJourney #journeySettingsToggle{flex:0 0 40px;width:40px;max-width:40px;min-width:40px;padding:6px;font-size:18px}body.inJourney #chat>.readerHeader>div{min-width:0}body.inJourney #chatTitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Render the current shell from first paint; legacy controls stay hidden until enhanced. */
body:not([data-ui-ready]):not(.access)>:where(:not(#startupShell,script,style,link)){display:none!important}
#startupShell{position:fixed;inset:0;z-index:10000;overflow:auto;min-height:100dvh;display:grid;place-items:center;padding:32px 22px;box-sizing:border-box;background:radial-gradient(ellipse at 50% 36%,#30213e 0%,#191420 34%,#0f1015 72%);color:#eee9f5}body[data-ui-ready] #startupShell{display:none!important}.startupExperience{width:100%;max-width:560px;text-align:center;margin:auto}.startupEmblem{width:148px;height:148px;position:relative;margin:0 auto 28px}.startupEmblem svg{position:absolute;inset:16px;width:116px;height:116px;overflow:visible;filter:drop-shadow(0 0 14px #b792de66)}.startupDiamond{stroke:#c7a8ed;stroke-width:2}.startupInner{fill:#bb92e0;stroke:#eedfff;stroke-width:1}.startupConnections{stroke:#a17fbd;stroke-width:1}.startupEmblem circle{fill:#e7d6f8}.startupOrbit{position:absolute;inset:0;border:1px solid #c7a8ed25;border-radius:50%;border-top-color:#d5b5f3;border-right-color:#d5b5f370;animation:startupOrbit 5s linear infinite}.startupBrand{font-size:15px;font-weight:700;letter-spacing:.25em;color:#dac3f2;margin:0 0 22px}.startupExperience h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(30px,7vw,46px);line-height:1.16;letter-spacing:-.035em;margin:0 0 28px}.startupExperience h1 em{color:#c8a2ed;font-style:normal}.startupStatus{font-size:14px;color:#c9c1d0;margin:0}.startupPulse{display:flex;justify-content:center;gap:7px;margin:18px 0 36px}.startupPulse span{width:5px;height:5px;background:#be99df;border-radius:50%;animation:startupPulse 1.6s ease-in-out infinite}.startupPulse span:nth-child(2){animation-delay:.18s}.startupPulse span:nth-child(3){animation-delay:.36s}.startupHelp{font-size:12px;line-height:1.8;color:#9e95aa}.startupHelp a{color:#d2b4ee;text-underline-offset:3px}.startupHelp a:focus-visible{outline:2px solid #d2b4ee;outline-offset:5px;border-radius:2px}@keyframes startupOrbit{to{transform:rotate(360deg)}}@keyframes startupPulse{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.startupOrbit,.startupPulse span{animation:none}.startupPulse span{opacity:.8}}@media(max-height:550px){.startupEmblem{width:96px;height:96px;margin-bottom:14px}.startupEmblem svg{inset:10px;width:76px;height:76px}.startupBrand{margin-bottom:14px}.startupExperience h1{font-size:30px;margin-bottom:18px}.startupPulse{margin-bottom:14px}}

/* Mobile wallet: in normal flow so it never covers content or dialogs. */
#mobileCellBar{display:none}.cellWalletBalance{font-size:1.4rem;font-weight:700;font-variant-numeric:tabular-nums}.cellPackCard{min-width:0}.cellPackCard button{min-height:44px;white-space:normal}
@media(max-width:760px){#mobileCellBar{display:flex;justify-content:flex-end;flex:none;margin:0 0 10px;padding-top:env(safe-area-inset-top,0px)}#mobileCellCounter{min-height:44px;max-width:100%;padding:8px 13px;border-radius:22px;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}body.inJourney #mobileCellBar{margin:0;padding:4px 12px 0}.cellPackGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.cellPackGrid{grid-template-columns:1fr}}

/* Sign-in and eligibility are complete screens, independent of app enhancements. */
body.access #startupShell,body.startupFailed #startupShell{display:none!important}
body.startupFailed:not(.access)>main{display:block!important}body.startupFailed:not(.access)>main>:not(#startupRecovery){display:none!important}
#startupRecovery{width:min(100%,480px);margin:clamp(28px,10dvh,100px) auto;padding:0 20px;box-sizing:border-box}

@media(max-width:760px){body.inJourney #mobileCellBar{display:none;margin:0;padding:0}}
@media(display-mode:standalone){body{--standalone-top-inset:env(safe-area-inset-top,0px);padding-top:var(--standalone-top-inset)}#startupShell{padding-top:max(20px,env(safe-area-inset-top,0px))}}
.mobileBrand{display:inline-flex;align-items:center;gap:7px;flex:none;color:#cfb4ed;font-size:12px;letter-spacing:.09em;white-space:nowrap}.mobileBrand img{width:18px;height:18px;flex:none}
@media(max-width:760px){#mobileCellBar{align-items:center;justify-content:space-between;gap:12px}.mobileBrand{order:-1}#mobileCellCounter{max-width:calc(100% - 128px);overflow:hidden;text-overflow:ellipsis}}

.zeroProfileLink{display:inline-flex;align-items:center;gap:8px;text-decoration:none;text-transform:none;letter-spacing:.04em;font-weight:600;color:#dbc5f1;background:#b28adc12;border-color:#b89ada50;min-height:36px;white-space:nowrap}.zeroProfileLink:hover{background:#b28adc26;border-color:#c4a5e480}.zeroProfileLink:focus-visible{outline:2px solid #d1aff3;outline-offset:3px}

/* The loading screen and application share a warm violet palette. */
:root{--zero-background:#0f1015;--zero-surface:#191420;--zero-raised:#241b2e;--zero-border:#51405f;--zero-accent:#c7a8ed;--zero-text:#eee9f5;--zero-muted:#c9c1d0}
body.clearUI,body.access{background:radial-gradient(ellipse at 55% 0%,#30213e55,transparent 55%),var(--zero-background);color:var(--zero-text);--ui-surface:var(--zero-surface);--ui-border:var(--zero-border);--ui-muted:var(--zero-muted);--ui-accent:var(--zero-accent);--shell:var(--zero-background);--panel:var(--zero-surface);--edge:var(--zero-border);--highlight:var(--zero-accent);--muted:var(--zero-muted)}
.clearUI>aside,.clearUI #announcementPanel,.clearUI #journeySettings,.clearUI #privacyFooter{background:var(--zero-surface);border-color:var(--zero-border)}
.clearUI .brandHome{background:var(--zero-raised);border:1px solid #c7a8ed25;padding:14px 12px}
.clearUI .brandHome:hover{background:#30213e;border-color:#c7a8ed70}
.brandHome .brand{display:flex;align-items:center;justify-content:flex-start;gap:9px;padding:0;line-height:1.2}
.brandHome .brand img{display:block;width:24px;height:24px;flex:0 0 24px}
.clearUI .brandHome .brand span{display:block;color:#dac3f2;font-size:18px;font-weight:700;line-height:24px;letter-spacing:1.5px}
.clearUI .brandHome .caption{margin:12px 0 0;color:var(--zero-muted);font-size:11px;line-height:1.5}
.clearUI .mobileBrand{align-items:center;color:#dac3f2;line-height:18px}.clearUI .mobileBrand strong{line-height:18px}
.clearUI button,.clearUI .optionTrigger,body.access button{background:var(--zero-raised);border-color:var(--zero-border);color:var(--zero-text)}
.clearUI button:hover:not(:disabled),.clearUI .optionTrigger:hover,body.access button:hover:not(:disabled){background:#352640;border-color:#b792de}
.clearUI>aside nav button{background:#211929;color:var(--zero-muted);border-color:#493953}
.clearUI>aside nav button.isCurrent,.clearUI .creatorSteps [aria-current=step]{background:#3b284d;color:#f6efff;border-color:#b792de}
.clearUI button.primary,.clearUI #send,.clearUI #featuredStory button,body.access button.primary{background:var(--zero-accent);color:#191420;border-color:var(--zero-accent)}
.clearUI button.primary:hover:not(:disabled),.clearUI #send:hover:not(:disabled),.clearUI #featuredStory button:hover{background:#dac3f2;border-color:#dac3f2}
.clearUI :is(input,textarea,select),body.access :is(input,textarea,select){background:#14101b;border-color:#655173;color:var(--zero-text)}
.clearUI :is(label,summary,.caption,.muted,.creatorFieldHelp,.navigationLink small,.card p,.organizedText p,.accessibilitySetting p){color:var(--zero-muted)}
.clearUI :is(.optionWindow,.navigationWindow,#synapsesModelMenu,#imageViewer){background:var(--zero-surface);border-color:var(--zero-border)}
.clearUI :is(.optionWindowHeader,.profileSettingsSection[open]>summary,.organizedRow,.creatorNavigation){border-color:var(--zero-border)}
.clearUI :is(.profileSettingsSection,.creatorPreview,.stemPanel,.stemSheetSection,.stemNpcs,.stemMemories,.adminAccount,.providerDisclosure){background:var(--zero-surface);border-color:var(--zero-border)}
.clearUI #featuredStory,.clearUI .profileCard,.clearUI .creationChoices>button{background:linear-gradient(125deg,#30213e,#191420);border-color:var(--zero-border)}
.clearUI #featuredStory p:not(.eyebrow){color:var(--zero-muted)}
.clearUI .storyScopeTabs{background:var(--zero-surface);border-color:var(--zero-border)}
.clearUI .storyScopeTabs button{background:transparent}.clearUI .storyScopeTabs button[aria-pressed=true]{background:#523767;color:#f6efff}
.clearUI .choiceNumber{background:#3b284d;color:#eedfff;border-color:#8d6ba7}
.clearUI #chatForm{background:var(--zero-surface);border-color:var(--zero-border)}
.clearUI #chatForm:focus-within{border-color:var(--zero-accent)}
.clearUI .selectedOption{background:#3b284d;border-color:#b792de}
.clearUI .zeroProfileLink{background:#c7a8ed12;color:#dac3f2;border-color:#c7a8ed55}
body.access main{background:var(--zero-surface);border-color:var(--zero-border)}
@media(max-width:760px){.clearUI>aside{background:var(--zero-surface);border-top-color:var(--zero-border)}}
html[data-contrast=true] body.clearUI{--ui-muted:#f1f1f1;--ui-border:#bac5dc;--zero-muted:#f1f1f1;--zero-border:#bac5dc}
.clearUI{--zero-selected:#3b284d}
.clearUI>aside nav :is(#homeNav,#searchNav,#libraryNav,#createNav,#moreNav,#adminNav).isCurrent{background:#3b284d;border-color:#b792de;color:#f6efff}
.clearUI .optionWindowHeader{background:var(--zero-surface)}
.clearUI #synapsesModelMenu>button{background:transparent}.clearUI #synapsesModelMenu>button[aria-checked=true]{background:#3b284d}
.clearUI .navigationLink,.clearUI .stemChat,.clearUI .stemGames>button{background:var(--zero-raised);border-color:var(--zero-border)}
.clearUI .navigationLink:hover{background:#352640;border-color:#b792de}.clearUI .navigationLink small{color:var(--zero-muted)}
.clearUI #synapsesModelMenu .replyProviderSwitch button{background:var(--zero-raised);border-color:var(--zero-border)}

/* Compact cover library for private story drafts. */
.optionWindow.draftLibrary{width:min(900px,calc(100vw - 24px));max-width:900px}
.draftLibrary input[type=search]{width:100%;margin:8px 0}
.draftLibraryGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:16px}
.draftLibraryCard{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line,#45405b);border-radius:16px;background:var(--surface,#201b2e);padding:0;margin:0}
.draftLibrary .draftLibraryCover{position:relative;display:grid;place-items:center;padding:0;width:100%;height:220px;border:0;border-radius:0;background:linear-gradient(145deg,#35254e,#17131f);font-size:44px;color:#c6a6ec;overflow:hidden}
.draftLibrary .draftLibraryCover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.draftLibraryBody{display:flex;flex-direction:column;gap:8px;padding:14px;flex:1}
.draftLibraryBody h3{font-size:17px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.draftLibraryBody small{display:block;overflow-wrap:anywhere}
.draftLibraryBody .actions{margin-top:auto;padding-top:8px;gap:8px;flex-wrap:wrap}
.draftLibraryBody button{min-height:42px}
@media(max-width:520px){.draftLibraryGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.draftLibrary .draftLibraryCover{height:165px}.draftLibraryBody{padding:10px}.draftLibraryBody h3{font-size:15px}.draftLibraryBody .actions{display:grid;grid-template-columns:1fr;width:100%}.draftLibraryBody button{width:100%;padding:8px}}

/* Staff review workspace; content is served only after staff authorization. */
.optionWindow.reportQueueWindow{width:min(1160px,calc(100vw - 24px));max-width:1160px}
.reportWorkspace .reportToolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.reportToolbar input{flex:1;min-width:180px}.reportToolbar select{width:auto;max-width:100%}.reportQueueStatus{margin:10px 0;font-size:13px;color:var(--zero-muted,#c6b8d5)}
.reportColumns{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:20px;align-items:start}.reportList{display:flex;flex-direction:column;gap:8px;max-height:62dvh;overflow:auto;padding:2px}
.reportList .reportQueueItem{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;width:100%;padding:12px;white-space:normal}.reportQueueItem[aria-pressed=true]{background:#3c2a50;border-color:#c5a2ed}.reportQueueItem strong{overflow-wrap:anywhere}.reportType{font-size:11px;letter-spacing:.04em;color:#cfb3ef}.reportReason{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px}.reportScanSummary{font-size:12px;color:#e1c0ff}
.reportReview{min-width:0}.reportReview h3{margin:0 0 6px}.reportDetailReason{font-size:13px;overflow-wrap:anywhere}.reportDecisionBar{position:sticky;top:0;z-index:1;background:#221b2d;border:1px solid #675079;border-radius:12px;padding:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;box-shadow:0 5px 18px #0005}.reportDecisionBar .reportReviewConsent{display:flex;align-items:flex-start;gap:10px;flex:1 0 100%;font-size:13px;line-height:1.5;margin:0}.reportReviewConsent input{width:20px;height:20px;flex:none;margin:2px 0}.reportDecisionStatus{flex-basis:100%;font-size:13px;white-space:pre-wrap;margin:0}.reportDecisionStatus:empty{display:none}
.reportImageCounts{font-size:13px}.reportGalleryControls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.reportGalleryControls select{width:auto}.reportImageGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr));gap:12px}.reportImageCard{padding:10px;margin:0;border:1px solid #594465;border-radius:10px;min-width:0;background:#201929;display:flex;flex-direction:column;gap:6px}.reportImageCard>strong,.reportAssetReason{overflow-wrap:anywhere;font-size:12px}.reportImageCard .reportImageThumb{display:grid;place-items:center;width:100%;height:130px;padding:0;background:#100d15;border-radius:7px;overflow:hidden}.reportImageThumb img{display:block;width:100%;height:130px;object-fit:contain}.reportAttention{color:#f2cb8d}.reportPassed{color:#a9d4b2}.reportAssetReason{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#c3b5cf}.reportTextContext{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.reportSingleImage{display:block;max-width:100%;max-height:500px;object-fit:contain}.reportBack{display:none}.optionWindow.reportImageViewer{width:min(1000px,calc(100vw - 24px));max-width:1000px}.reportImageViewer img{display:block;width:100%;height:60dvh;object-fit:contain;background:#0d0a12}.reportImageViewer .actions{align-items:center;justify-content:space-between;flex-wrap:wrap}
@media(max-width:700px){.reportColumns{grid-template-columns:1fr}.reportList{max-height:none}.reportColumns:not(.reviewSelected) .reportReview{display:none}.reportColumns.reviewSelected .reportList{display:none}.reportBack{display:block;margin-bottom:14px}.reportToolbar{gap:8px}.reportToolbar input{flex-basis:100%}.reportImageGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.reportDecisionBar{position:static}.reportDecisionBar>button{flex:1}}
/* Discovery and immediate journey feedback. */
.discoveryActions{display:flex;gap:10px;flex-wrap:wrap}.discoveryPosition{font-size:12px!important;line-height:1.5}.discoveryByline{font-size:13px!important}.discoveryActions button{margin-top:4px}#featuredStory .discoveryActions button+button{background:transparent;color:inherit;border:1px solid var(--zero-border,#665775)}
#replyFeedback{display:flex;align-items:center;gap:12px;flex:none;align-self:center;width:min(800px,calc(100% - 32px));min-height:42px;padding:10px 14px;margin:0 auto 4px;border:1px solid #9574be;border-radius:12px;background:#251d34;color:#f0dfff;font-size:13px;box-shadow:0 0 18px #ad7dea24}#replyFeedback[hidden]{display:none!important}.thinkingDots{display:inline-flex;gap:5px;align-items:center}.thinkingDots i{width:6px;height:6px;border-radius:50%;background:#d0a9ff;animation:thinkingDot 1.4s ease-in-out infinite}.thinkingDots i:nth-child(2){animation-delay:.18s}.thinkingDots i:nth-child(3){animation-delay:.36s}@keyframes thinkingDot{0%,75%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
body.replyPending #chatForm{animation:composerGlow 2.5s ease-in-out infinite}@keyframes composerGlow{0%,100%{box-shadow:0 0 0 1px #b58be24d}50%{box-shadow:0 0 16px 2px #b58be24d}}.awaitingReply>p::before{content:'•••';letter-spacing:7px;color:var(--accent,#c49deb);font-size:24px;animation:thinkingDot 1.4s ease-in-out infinite}.clickFeedback{filter:brightness(1.18)}button:active{transform:translateY(1px)}button[aria-busy=true]::after{content:'';display:inline-block;width:11px;height:11px;margin-left:8px;vertical-align:middle;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:pendingSpin .8s linear infinite}@keyframes pendingSpin{to{transform:rotate(360deg)}}
body.inJourney #chatForm .journeyComposerToolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;grid-column:1/-1;grid-row:1;padding:2px 6px 5px;border-bottom:1px solid var(--zero-border,#484052)}body.inJourney #chatForm .journeyComposerToolbar button{font-size:12px;min-height:30px;padding:4px 9px;margin:0;background:transparent;color:var(--zero-text,#e0d4ed);border:1px solid transparent}body.inJourney #chatForm #wrapAction{border-color:var(--zero-border,#62516f);font-weight:600}body.inJourney #chatForm #journeyCellCounter{padding-left:0;font-variant-numeric:tabular-nums}body.inJourney #chatForm #message,body.inJourney #chatForm.composerCompact #message{grid-column:1/-1;grid-row:2}body.inJourney #chatForm .composerBottom{grid-row:3;grid-column:2}body.inJourney #chatForm>.optionTrigger{grid-row:3}body.inJourney #chatForm>.readerActions{grid-row:4}
@media(max-width:760px){body.inJourney #chatForm #message,body.inJourney #chatForm.composerCompact #message{grid-row:2;grid-column:2}body.inJourney #chatForm #mobileComposerTools{grid-row:2}body.inJourney #chatForm .composerBottom{grid-row:2;grid-column:3}body.inJourney #chatForm .journeyComposerToolbar{grid-row:1}#replyFeedback{width:calc(100% - 16px);font-size:12px;padding:8px 12px;min-height:38px}.discoveryActions{gap:8px}.discoveryActions button{flex:1}}
@media(prefers-reduced-motion:reduce){.thinkingDots i,.awaitingReply>p::before,body.replyPending #chatForm,button[aria-busy=true]::after{animation:none!important}button:active{transform:none}}

/* Compact journey composer: existing controls, one text area and one footer row. */
body.inJourney #chatForm.compactJourneyComposer>.journeyComposerToolbar[hidden],.storyScrollActions[hidden]{display:none!important}
body.inJourney .storyScrollActions button{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border-radius:50%;font-size:16px}
/* Higher specificity also covers the late-loaded polish stylesheet's old strip. */
body.inJourney .storyReader>.storyScrollActions.journeyScrollOverlay{position:absolute;inset:auto 12px 12px auto;transform:none;display:flex;flex-direction:column;align-self:auto;align-items:center;justify-content:flex-end;gap:8px;width:max-content;height:auto;margin:0;padding:0;flex:none;z-index:5;pointer-events:none}
body.inJourney .storyReader>.storyScrollActions.journeyScrollOverlay>button{pointer-events:auto;box-shadow:0 2px 9px #0006}
body.inJourney #chatForm.compactJourneyComposer>.composerShortcuts{display:none}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer{width:calc(100% - 16px);max-width:none;margin:4px auto 6px;padding:4px 8px;gap:0 4px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto 44px;align-items:end;border-radius:22px;background:var(--zero-surface,#1e1827);border-color:var(--zero-border,#5b466d)}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer:focus-within{border-color:var(--zero-accent,#c7a8ed);box-shadow:0 0 0 1px var(--zero-accent,#c7a8ed)}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #message,body.inJourney #chatForm.compactJourneyComposer.isCompactComposer.composerCompact #message{grid-column:1/-1;grid-row:1;height:var(--reply-height,28px)!important;min-height:var(--reply-min-height,28px)!important;max-height:120px!important;margin:0;padding:2px 6px;resize:none!important;border:0;background:transparent;box-shadow:none;font-size:16px;line-height:1.4}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #message:is(:focus,:focus-visible){outline:none!important;outline-offset:0!important;box-shadow:none!important}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer>.composerShortcuts{display:flex;align-items:center;grid-column:1;grid-row:2;gap:0;min-width:0}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer :is(#mobileComposerTools,#mobileCommandShortcut){display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:var(--zero-text,#e0d4ed);line-height:1}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #mobileComposerTools{font-size:28px;font-weight:300}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #mobileCommandShortcut{font-size:19px}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer>#journeyCellCounter{grid-column:2;grid-row:2;align-self:center;justify-self:start;position:relative;isolation:isolate;min-width:0;max-width:100%;height:44px;min-height:44px;margin:0;padding:0 7px;border:0;background:transparent;color:var(--zero-muted,#b6a8c7);font-size:10px;line-height:1.2;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer>#journeyCellCounter::before{content:'';position:absolute;inset:10px 0;z-index:-1;border:1px solid #b58fdf25;border-radius:999px;background:#b58fdf0c}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer>.composerBottom{grid-column:3;grid-row:2;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:4px;margin:0;padding:0}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #wrapAction,body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #send{display:grid;place-items:center;position:relative;isolation:isolate;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border-radius:50%;line-height:1}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #wrapAction{background:transparent;border:0;color:var(--zero-text,#e0d4ed);font-size:22px;font-weight:400}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #wrapAction::before{content:'';position:absolute;inset:6px;z-index:-1;background:#b58fdf1c;border-radius:50%}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #send{border:0;background:transparent;color:#191420;font-size:0!important}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #send::before{content:'↑';display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--zero-accent,#c7a8ed);font-size:23px;line-height:1}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #stop{height:44px;min-height:44px;min-width:44px;padding:5px 6px;margin:0;font-size:12px}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #stop[hidden]{display:none!important}
body.inJourney #chatForm.compactJourneyComposer.isCompactComposer>.readerActions,body.inJourney #chatForm.compactJourneyComposer.isCompactComposer>.optionTrigger{display:none!important}
@media(max-width:374px){body.inJourney #chatForm.compactJourneyComposer.isCompactComposer #mobileCommandShortcut{display:none}}
@media(forced-colors:active){body.inJourney #chatForm.compactJourneyComposer.isCompactComposer:focus-within{outline:2px solid Highlight!important;outline-offset:2px!important}}

/* A compact daily claim row; the weekly explanation stays in Details. */
#dailyRewardSummary.compactDailyReward{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;align-items:center;padding:4px 8px;margin:0 0 12px;min-height:44px;border-radius:10px}
#dailyRewardSummary.compactDailyReward[hidden]{display:none}
#dailyRewardSummary.compactDailyReward p{margin:0;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
#dailyRewardSummary.compactDailyReward button{min-height:36px;margin:0;padding:5px 9px;font-size:12px}
#dailyRewardSummary.compactDailyReward .dailyRewardDetails{border-color:transparent;background:transparent;font-size:11px;color:var(--zero-muted,#c6b8d5)}
#dailyRewardReminder{position:fixed;z-index:90;inset:62px 12px auto auto;display:flex;align-items:center;gap:6px;width:max-content;max-width:calc(100vw - 24px);padding:8px 8px 8px 12px;border:1px solid var(--zero-border,#685276);border-radius:12px;background:var(--zero-raised,#261d30);color:var(--zero-text,#f6efff);box-shadow:0 6px 24px #0007;box-sizing:border-box}
#dailyRewardReminder[hidden]{display:none!important}
#dailyRewardReminder p{display:grid;gap:3px;margin:0;min-width:0;font-size:13px;line-height:1.25}
#dailyRewardReminder small{font-size:11px;color:var(--zero-muted,#c6b8d5)}
#dailyRewardReminder button{flex:none;min-height:44px;margin:0;padding:6px 10px;font-size:12px}
#dailyRewardReminder .dismissDailyReminder{width:36px;min-width:36px;padding:0;border:0;background:transparent;color:inherit;font-size:22px}

/* Home filters refine the creator-balanced discovery queue only. */
.homeDiscoveryControls{margin:14px 0 0;padding:0;min-width:0}
.homeDiscoveryHeading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.homeDiscoveryHeading h2{margin:0;font-size:19px}
.homeDiscoveryHeading button{font-size:12px;min-height:38px;padding:6px 10px}
.homeDiscoveryModes{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.homeDiscoveryModes button{min-height:38px;padding:6px 12px;border-radius:999px;font-size:12px}
.homeDiscoveryModes button[aria-pressed=true]{background:var(--zero-accent,#c7a8ed);color:#191420;border-color:var(--zero-accent,#c7a8ed)}
.homeDiscoveryFilters{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,170px) auto;align-items:center;gap:8px}
.homeDiscoveryFilters :is(input,select,button){margin:0;min-height:40px;width:100%;min-width:0;font-size:13px;padding:7px 10px;box-sizing:border-box}
.homeDiscoveryStatus{margin:8px 0 0;font-size:12px;line-height:1.45;color:var(--zero-muted,#c6b8d5)}
#featuredStory .homeMatchReason{font-size:12px;color:var(--zero-accent,#c7a8ed);-webkit-line-clamp:2}
.discoveryTagChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.discoveryTagChoices label{margin:0;padding:8px 4px;font-size:14px;overflow-wrap:anywhere}
.discoveryTagFeedback{min-height:1.4em;font-size:13px}
@media(max-width:520px){.homeDiscoveryFilters{grid-template-columns:minmax(0,1fr) auto}.homeDiscoveryFilters input{grid-column:1/-1}.homeDiscoveryFilters select{max-width:none}.homeDiscoveryFilters button{width:auto}.homeDiscoveryHeading h2{font-size:18px}#dailyRewardSummary.compactDailyReward{margin-bottom:10px}#dailyRewardReminder{inset:62px 8px auto 8px;width:auto;max-width:none}#dailyRewardReminder p{flex:1}.discoveryTagChoices{grid-template-columns:1fr 1fr}}
