html[data-theme] body{background:var(--bg)!important;color:var(--ink);background-image:radial-gradient(ellipse at 80% 0,var(--theme-glow),transparent 65%)!important}html[data-theme] :is(.sidebar,.panel,.metrics article,.giveaway,dialog,#login){background:var(--panel);color:var(--ink);border-color:var(--line);border-radius:var(--theme-radius)}html[data-theme] .sidebar{border-radius:0;background:var(--theme-deep)}html[data-theme] :is(h1,h2,h3){color:var(--ink);font-family:var(--theme-heading)}html[data-theme] :is(label,strong,.brand span){color:var(--ink)}html[data-theme] :is(button,input,select,textarea){color:var(--ink);background:var(--theme-deep);border-color:var(--line);border-radius:var(--theme-radius)}html[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:.8}html[data-theme] button:hover{border-color:var(--cyan);background:var(--panel)}html[data-theme] .primary{background:var(--cyan);color:var(--on-accent);border-color:var(--cyan)}html[data-theme] :is(.muted,small,.eyebrow,.nav-caption,.nav,.activity-meta,.header-actions,.brand small){color:var(--muted)}html[data-theme] :is(.nav.active,.status-pill,.mode-grid .selected){color:var(--cyan);border-color:var(--cyan);background:var(--theme-glow)}html[data-theme] .stage-preview{background:radial-gradient(ellipse,var(--theme-glow),var(--theme-deep));border-color:var(--line)}html[data-theme] .preview-caption{color:var(--cyan)}html[data-theme] .preview-target{color:var(--gold);border-color:var(--cyan)}html[data-theme] :is(details,.music-library-row,header,footer,.setting-row){border-color:var(--line)}html[data-theme] :is(.empty,.activity-title,.metrics b){color:var(--ink)}html[data-theme] .social-icon{background:var(--panel);border-color:var(--line)}html[data-theme] a[aria-label="GitHub"] svg path{fill:var(--ink)}html[data-theme] .phone textarea{background:var(--theme-deep);color:var(--ink);border-color:var(--line)}html[data-theme] .phone small{color:var(--muted)}html[data-theme] #phoneStatus{color:var(--cyan)}html[data-theme] .phone header{background:transparent}html[data-theme="gala"] .panel{box-shadow:0 1px 0 var(--gold)}html[data-theme="cyber"] .panel{box-shadow:0 0 22px #e134ff12}html[data-theme="sakura"] .panel{box-shadow:0 12px 45px #c36e9815}html[data-theme="paper"] .panel{box-shadow:0 5px 20px #263e5010}html[data-theme="festival"] .sidebar{border-right-color:var(--gold)}
#themeDialog{width:min(1000px,94vw);max-height:90vh;overflow:auto}#themeCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.theme-card{text-align:left;padding:12px;display:grid;gap:10px;min-height:205px}.theme-card[aria-pressed="true"]{outline:2px solid var(--cyan);outline-offset:2px}.theme-mini{display:block;height:105px;border-radius:8px;position:relative;overflow:hidden}.theme-mini::before{content:'✦';position:absolute;inset:16px;text-align:center;font-size:36px;border:1px solid currentColor;border-radius:50%}.theme-mini::after{content:'LUCKY MOMENT';position:absolute;bottom:6px;left:0;right:0;text-align:center;font-size:8px;letter-spacing:2px}.theme-card strong{font-size:17px}.theme-card small{line-height:1.6}.theme-actions{display:flex;align-items:center;gap:16px;justify-content:space-between}.theme-actions p{margin:0}@media(max-width:700px){#themeCards{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-card{min-height:215px}.theme-actions{align-items:stretch;flex-direction:column}}@media(prefers-reduced-motion:reduce){html[data-theme] *{scroll-behavior:auto}}

html[data-theme] .header-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}@media(max-width:700px){html[data-theme] .workspace>header{height:auto;min-height:65px;padding:8px 0}html[data-theme] .workspace>header>.eyebrow{display:none}html[data-theme] .header-actions{width:100%;justify-content:flex-end;gap:6px}}

html[data-theme] .heart-label{color:var(--cyan)}

#signinDialog{width:min(720px,94vw);max-height:90vh;overflow:auto}#signinSetupGuide{line-height:1.9;padding-top:14px}#signinCallback{overflow-wrap:anywhere}#activateTelegram{margin-top:16px}

.spring-unlock{max-width:480px;width:calc(100% - 48px);background:#fff3df;color:#7b1018;border:2px solid #e7b45f;border-radius:24px;text-align:center}.spring-unlock .gift-amounts{display:flex;justify-content:center;gap:12px}.gift-wallet{margin:18px auto;background:linear-gradient(135deg,#ad101d,#e53432);padding:20px;border-radius:20px;color:#ffe5a5}.gift-total{font-size:28px;font-weight:bold}.gift-wallet img{border:10px solid #fff;border-radius:8px}

/* Shared management composition, with each theme retaining its own palette. */
.editor-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}.editor-grid>.panel{min-width:0}.metrics{gap:18px}.panel{border-radius:18px}.page-heading{padding:36px 28px;border-radius:20px;background:linear-gradient(100deg,var(--panel),var(--theme-glow));margin-bottom:22px;overflow:hidden}.workspace{min-width:0}.mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.mode-grid button{min-width:0;overflow-wrap:anywhere}
html[data-theme="festival"]{--bg:#fff3e4;--panel:#fffaf2;--ink:#79131c;--muted:#9a6c59;--cyan:#c91f2b;--line:#e9bea0;--on-accent:#fff5dc;--theme-glow:#fce3c6}
html[data-theme="festival"] .sidebar{background:#a81824 url('/themes/cny-sidebar-decor.jpg') center bottom/cover;color:#fff0d2}html[data-theme="festival"] .sidebar a,html[data-theme="festival"] .sidebar button{color:#fff0d2}html[data-theme="festival"] .page-heading{background:#a81824 url('/themes/cny-hero-banner.jpg') center/cover;min-height:190px;color:#fff3ce;text-shadow:0 2px 8px #6d101c}html[data-theme="festival"] .page-heading .muted{color:#fff3ce}html[data-theme="festival"] .metrics article{background:#ffecd1;border-color:#efc39e}html[data-theme="caishen"] .page-heading{background:#851422 url('/themes/caishen-banner.jpg') center/cover;min-height:190px}
@media(max-width:1050px){.editor-grid{grid-template-columns:1fr}.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.page-heading{padding:24px 16px}.metrics{gap:10px}}

.spring-unlock h2{animation:newyear-bow 1.8s ease-in-out infinite}.gift-wallet{position:relative;overflow:hidden;padding-top:48px}.gift-wallet:before{content:'春节压岁钱';position:absolute;top:0;left:0;right:0;height:38px;background:#8d101b;color:#ffe0a2;border-bottom:1px solid #eab663;transform-origin:top;z-index:2}.gift-money{position:absolute;left:50%;top:0;opacity:0;display:block;padding:14px 22px;background:#ffd78d;color:#a51420;border-radius:8px}.gift-sealed .gift-money{animation:money-in-wallet 1.1s ease-in forwards}.gift-sealed:before{animation:seal-wallet 1.2s ease-in-out}.spring-unlock .gift-wallet img{animation:qr-reveal 1.5s ease-in}
@keyframes money-in-wallet{0%{opacity:1;transform:translate(-50%,-70px) rotate(-12deg)}70%{opacity:1;transform:translate(-50%,100px) rotate(0)}100%{opacity:0;transform:translate(-50%,150px)}}@keyframes seal-wallet{0%,60%{transform:rotateX(110deg)}100%{transform:rotateX(0)}}@keyframes newyear-bow{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(5px) rotate(2deg)}}@keyframes qr-reveal{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.spring-unlock *{animation:none!important}}

html[data-theme="festival"] .page-heading>div,html[data-theme="caishen"] .page-heading>div{visibility:hidden}.page-heading>#apiButton{display:none}.panel>details{margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:12px}.panel>details>summary{cursor:pointer;font-weight:600}.panel>details[open]>summary{margin-bottom:16px}@media(min-width:1051px) and (max-width:1350px){.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.theme-mini{width:100%;height:auto;aspect-ratio:3.3/1;object-fit:cover}.theme-mini::before,.theme-mini::after{content:none}
