.cup-preference-controls{display:flex;align-items:center;gap:7px;pointer-events:auto;flex-shrink:0}.cup-preference-controls label{display:flex;align-items:center;gap:3px;border:1px solid #8babca33;background:#101b2b80;border-radius:7px;padding:5px 7px;color:#c4d4e8;font:11px Arial,"Microsoft YaHei",sans-serif}.cup-preference-controls select{width:auto;max-width:104px;border:0!important;background:transparent!important;color:inherit!important;padding:2px!important;font-size:11px;cursor:pointer;outline-offset:5px}.cup-preference-controls select option{background:#152135;color:#e2ecfa}.promo-header .cup-preference-controls{margin-left:3px}.promo-header .nav-actions{gap:14px}.gate-top .cup-preference-controls{margin-left:auto}.gate-top .gate-index{margin-left:auto;margin-right:18px}.top-actions .cup-preference-controls{margin-left:3px}.theme-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.theme-picker button{padding:13px;background:#0c1420;border:1px solid #304256;border-radius:10px;text-align:left;color:#c7d7e9;cursor:pointer}.theme-picker button.active{border-color:#70b5df;box-shadow:0 0 0 1px #70b5df}.theme-picker strong,.theme-picker small{display:block}.theme-picker strong{font-size:12px;margin:12px 0 5px}.theme-picker small{font-size:10px;color:#8499b0}.theme-swatch{display:block;height:55px;border:1px solid #7d95b344;border-radius:5px;position:relative}.theme-swatch:before{content:'';position:absolute;left:0;top:0;bottom:0;width:25%;border-right:1px solid #9cb5d333}.theme-swatch:after{content:'';position:absolute;left:35%;right:10%;top:20%;bottom:20%;border-radius:3px;background:#6084af30}.theme-swatch.brand{background:#0c1018}.theme-swatch.brand:before{background:#142136}.theme-swatch.day{background:#f0f3f8}.theme-swatch.day:before{background:white}.theme-swatch.night{background:#111113}.theme-swatch.night:before{background:#202024}.language-picker{display:flex;align-items:center;gap:9px;margin:0 0 22px}.language-picker>span{font-size:13px;margin-right:auto;color:inherit}.language-picker button{border:1px solid #304256;background:transparent;color:inherit;border-radius:6px;padding:8px 14px;font-size:12px;cursor:pointer}.language-picker button.active{border-color:#70b5df;background:#6cadd022}
:root[data-cup-theme="day"]{color-scheme:light;--bg:#f1f4f9;--panel:#fff;--raised:#e9eef6;--line:#d3dce9;--muted:#61728a;--text:#1c2e45;--accent:#225e9b;--mode-bg:#f1f4f9;--mode-panel:#fff;--mode-field:#f6f8fc;--mode-text:#1c2e45;--mode-muted:#5e718b;--mode-line:#d3dce9;--mode-active:#e5eefb}
:root[data-cup-theme="night"]{color-scheme:dark;--bg:#101012;--panel:#19191c;--raised:#242428;--line:#36363c;--muted:#99999f;--text:#d9d9de;--accent:#b3b6c5;--mode-bg:#101012;--mode-panel:#19191c;--mode-field:#141417;--mode-text:#d9d9de;--mode-muted:#9b9ba5;--mode-line:#36363c;--mode-active:#2c2c32}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) body{background:var(--mode-bg);color:var(--mode-text)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(.sidebar,.topbar,.settings-panel,.config-box,.account-card,.user-settings-card,.asset-card,.module-card,.chat-info,.chat-message,.canvas-node,.user-settings-save,dialog,.module-option,.scene-panel){background:var(--mode-panel);border-color:var(--mode-line);color:var(--mode-text)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(.preview-board,.upload-zone,.module-select,.connection,.segmented button,.chip,.quiet,.icon-button,.history-icon,.ref,.theme-picker button,.language-picker button,.canvas-board){background:var(--mode-field);border-color:var(--mode-line);color:var(--mode-muted)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(.studio-main,.sidebar) :is(input,select,textarea){background:var(--mode-field);color:var(--mode-text);border-color:var(--mode-line)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) #page[data-view="api"] .config-row{background:var(--mode-field);border-color:var(--mode-line)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(.studio-main,.sidebar) :is(h1,h2,h3,h4,.field-label,.user-field,.user-toggle strong,.config-row strong,.account-card strong,.page-head h1,.module-card strong,.empty-symbol,.breadcrumb strong,.node-head,.world-caption h3){color:var(--mode-text)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(.studio-main,.sidebar) :is(p,small,.subtle,.eyebrow,.field-label small,.user-toggle small,.user-field small,.config-row span,.page-head p,.account-card p,.account-card small,.user-settings-card p,.user-section-title>span,.nav-label,.connection span,.user small,.preview-hints,.settings-foot p){color:var(--mode-muted)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(nav button,.preview-tabs button,.history-header button,.history-row button,.asset-actions button,.node-foot button,.node-head button){color:var(--mode-muted)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(nav button.active,nav button:hover,.module-option.active,.module-option:hover,.segmented button.active,.theme-picker button.active,.language-picker button.active){background:var(--mode-active);color:var(--mode-text);border-color:var(--accent)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(.new-project,.primary){background:var(--mode-active);color:var(--mode-text);border-color:var(--mode-line)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(.studio-footer,.user-toggle,.nav-divider,.preview-toolbar,.panel-top,.settings-foot,.topbar,.config-row){border-color:var(--mode-line)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-preference-controls label{color:var(--mode-text);border-color:var(--mode-line);background:var(--mode-panel)}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-preference-controls select option{background:var(--mode-panel);color:var(--mode-text)}
html[data-cup-theme="day"]{scrollbar-color:#a3b6cc #edf2f8}html[data-cup-theme="night"]{scrollbar-color:#53535c #101012}
html[data-cup-theme="day"] ::-webkit-scrollbar-track,html[data-cup-theme="day"] ::-webkit-scrollbar-corner{background:#edf2f8}html[data-cup-theme="day"] ::-webkit-scrollbar-thumb{background:#a3b6cc;border-color:#edf2f8}html[data-cup-theme="night"] ::-webkit-scrollbar-track{background:#101012}html[data-cup-theme="night"] ::-webkit-scrollbar-thumb{background:#53535c;border-color:#101012}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) #entry-gate{background:var(--mode-bg)}
html[data-cup-theme="day"] #energy-surface{opacity:.28;mix-blend-mode:multiply}html[data-cup-theme="day"] #entry-gate :is(.gate-copy h2,.gate-brand,.gate-index){color:#253c59;text-shadow:none}html[data-cup-theme="day"] #entry-gate :is(.gate-copy p,.gate-status,.gate-label){color:#4a6482}html[data-cup-theme="day"] #entry-gate :is(.brush-bar,.scene-panel,.gate-label){background:#ffffffeb;border-color:#cad6e6}html[data-cup-theme="day"] #entry-gate :is(.brush-bar button,.gate-controls button,.gate-login,.motion-toggle){color:#365778;background:#f3f7fc;border-color:#c8d6e7}html[data-cup-theme="day"] .gate-copy h2 span{color:#1e5c93}html[data-cup-theme="night"] #entry-gate :is(.brush-bar,.scene-panel,.gate-label){background:#19191ced;border-color:#44444d}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) :is(.promo,.promo-footer){color:var(--mode-text)}
html[data-cup-theme="day"] :is(.film-showcase,.below-section,.below-finale,.picture-showcase){color:#20354e}html[data-cup-theme="day"] :is(.below-section h2,.below-section h3,.picture-heading h2,.film-heading h2){color:#20354e}html[data-cup-theme="day"] :is(.below-section p,.below-kicker,.film-heading p,.picture-heading p,.below-section .tab,.below-note,.below-section .below-link,.creation-capabilities h3,.creation-capabilities p){color:#59728d}html[data-cup-theme="day"] :is(.creation-capabilities>a,.journey-step,.journey-steps article){border-color:#c6d3e2}html[data-cup-theme="day"] .promo-footer{background:#e6edf6;border-color:#cad5e3}html[data-cup-theme="day"] .promo-header.nav-scrolled:before{background:#f8fbfff0;box-shadow:0 1px 0 #c9d6e5,0 8px 30px #23476a14}html[data-cup-theme="day"] .promo-header.nav-scrolled :is(nav a,.auth-open){color:#28425f!important;text-shadow:none}html[data-cup-theme="night"] .promo-header.nav-scrolled:before{background:#171719f0}html[data-cup-theme="night"] .promo-footer{background:#141416}
html[data-cup-theme="day"] .promo-auth{background:#fff;color:#20354e}html[data-cup-theme="day"] .promo-auth :is(h2,.auth-tabs button,.auth-hint,.auth-feedback,label){color:#365778}html[data-cup-theme="day"] .promo-auth input{background:#f4f7fc;color:#20354e;border-color:#cbd7e5}
html[data-cup-theme="day"] #cup-page-transition{background:radial-gradient(ellipse at 50% 48%,#e6f1ff,#f7faff 65%)}html[data-cup-theme="day"] #cup-page-transition strong{color:#243f60}html[data-cup-theme="night"] #cup-page-transition{background:radial-gradient(ellipse at 50% 48%,#25252b,#101012 65%)}
html[data-cup-theme="day"] :is(.cinematic-copy h1,.cinematic-copy p,.cinematic-kicker,.cinematic-caption,.cinematic-portal .portal-copy strong,.cinematic-portal .portal-copy small,.film-card,.picture-card,.below-finale h2,.below-finale p){color:#f3f7ff}html[data-cup-theme="day"] .below-finale .below-kicker{color:#c1d4ec}
@media(max-width:1280px){.promo-header>nav{gap:20px;font-size:11px}.promo-header .nav-actions{gap:10px}.promo-header .promo-btn{padding:11px 18px}.promo-header .cup-preference-controls select{max-width:82px;font-size:10px}.promo-header .cup-preference-controls label{padding:5px}.promo-header .cup-preference-controls{gap:4px}}@media(max-width:1100px){.promo-header>nav{display:none}.top-actions{gap:10px}.local-badge{display:none}}@media(max-width:600px){.cup-preference-controls{gap:4px}.cup-preference-controls label{padding:4px;gap:0}.cup-preference-controls label>span{display:none}.cup-preference-controls select{font-size:10px;max-width:72px}.theme-picker{gap:7px}.theme-picker button{padding:9px}.theme-picker small{font-size:9px}.gate-top .gate-index{display:none}.promo-header .nav-actions{gap:7px}.promo-header .nav-actions>.promo-btn{display:none}.topbar .quiet{display:none}}
@media(min-width:1101px) and (max-width:1599px){.promo-header>nav{position:static!important;transform:none!important;margin:0 auto!important;font-size:11px!important;gap:17px!important}.promo-header .nav-actions{margin-left:0!important;gap:10px!important}.promo-header .cup-preference-controls select{max-width:82px!important;font-size:10px!important}.promo-header .cup-preference-controls label{padding:5px!important}.promo-header .promo-btn{padding:11px 18px!important}}
@media(min-width:1101px) and (max-width:1250px){html[lang="en"] .promo-header>nav{font-size:10px!important;gap:11px!important}}
html[data-cup-theme="day"] #entry-gate{background:#f3f7fc}html[data-cup-theme="day"] #energy-surface{opacity:.13}html[data-cup-theme="day"] #entry-gate .gate-copy h2 .material-line,html[data-cup-theme="day"] #entry-gate .gate-copy h2 .material-line:nth-of-type(2){color:#26405e!important;-webkit-text-fill-color:#26405e!important;background:none!important;filter:none!important;text-shadow:none!important}
.gate-top .gate-login{margin-left:auto;margin-right:14px}.gate-top .cup-preference-controls{margin-left:0}
@media(max-width:600px){.gate-top .gate-login{font-size:0!important;padding:9px!important;margin-right:8px!important}.gate-top .gate-login:before{content:'↗';font-size:15px}.promo-header .cup-preference-controls{margin-left:0}}
.image-portal .portal-art{background-image:url('cup-world-experiment.png');background-size:cover;background-position:center}.video-portal .portal-art{background-image:url('cup-world-cinema.png');background-size:cover;background-position:center}.explore-portal .portal-art{background-image:url('cup-world-journey.png');background-size:cover;background-position:center}html:is([data-cup-theme="day"],[data-cup-theme="night"]) .settings-foot{background:var(--mode-panel)}
/* App-owned menus avoid browser-native dropdown and pointer focus rectangles. */
.cup-pref-group{position:relative;flex-shrink:0}.cup-pref-trigger{display:flex!important;align-items:center;justify-content:center;gap:6px;height:32px;min-width:82px;padding:5px 8px!important;border:0!important;border-radius:7px;background:transparent!important;color:#d0deee;font:11px Arial,"Microsoft YaHei",sans-serif;cursor:pointer;box-shadow:none!important;white-space:nowrap;transition:background .16s,color .16s}.cup-pref-trigger:hover,.cup-pref-trigger[aria-expanded="true"]{background:#a7c5e915!important;color:#f2f7ff}.cup-pref-trigger:focus:not(:focus-visible){outline:none!important}.cup-pref-trigger:focus-visible{outline:2px solid #74add7!important;outline-offset:3px}.cup-pref-icon{font-size:14px;opacity:.85}.cup-pref-chevron{font-size:12px;opacity:.6;transition:transform .16s}.cup-pref-trigger[aria-expanded="true"] .cup-pref-chevron{transform:rotate(180deg)}.cup-pref-current{min-width:32px;text-align:center}.cup-pref-popover{position:absolute;right:0;top:calc(100% + 9px);min-width:148px;padding:6px;border:1px solid #829fc331;border-radius:11px;background:#142033f5;box-shadow:0 12px 36px #0005;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);z-index:1000;pointer-events:auto}.cup-pref-popover[hidden]{display:none!important}.cup-pref-popover button{display:flex!important;justify-content:space-between;align-items:center;gap:18px;width:100%;min-height:36px;border:0!important;border-radius:6px;background:transparent!important;padding:9px 11px!important;color:#b7cbe0;font:12px Arial,"Microsoft YaHei",sans-serif!important;text-align:left;cursor:pointer;white-space:nowrap;box-shadow:none!important}.cup-pref-popover button:hover,.cup-pref-popover button:focus-visible{background:#93b9e31c!important;color:#fff;outline:none}.cup-pref-popover button.selected{color:#c6e6ff}.cup-pref-check{visibility:hidden;font-size:12px}.cup-pref-popover button.selected .cup-pref-check{visibility:visible}.cup-pref-popover button:focus:not(:focus-visible){outline:none!important}
html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-pref-trigger{color:var(--mode-text)}html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-pref-trigger:hover,html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-pref-trigger[aria-expanded="true"]{background:var(--mode-active)!important;color:var(--mode-text)}html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-pref-popover{background:var(--mode-panel);border-color:var(--mode-line);box-shadow:0 12px 36px #0002}html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-pref-popover button{color:var(--mode-muted)}html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-pref-popover button.selected{color:var(--mode-text)}html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-pref-popover button:hover,html:is([data-cup-theme="day"],[data-cup-theme="night"]) .cup-pref-popover button:focus-visible{background:var(--mode-active)!important;color:var(--mode-text)}html[data-cup-theme="day"] .promo-header:not(.nav-scrolled) .cup-pref-trigger{color:#e0eaf6}html[data-cup-theme="day"] .promo-header:not(.nav-scrolled) .cup-pref-trigger:hover,html[data-cup-theme="day"] .promo-header:not(.nav-scrolled) .cup-pref-trigger[aria-expanded="true"]{background:#a7c5e920!important;color:#fff}@media(max-width:600px){.cup-pref-trigger{min-width:64px;gap:4px;font-size:10px!important;padding:4px!important}.cup-pref-icon{display:none}.cup-pref-popover{min-width:132px}.cup-pref-popover button{min-height:40px}}
