:root{--theme-header:none;--theme-accent:none}
.theme-entry{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:16px;background:var(--bg);padding:12px;width:100%;margin:0 0 18px;min-height:76px}
.theme-entry>span:nth-child(2){flex:1;min-width:0}.theme-entry strong{display:block;font-size:14px;font-weight:500}.theme-entry small{display:block;font-size:12px;color:var(--muted);margin-top:5px}
.theme-entry-art{width:50px;height:50px;flex:none;border-radius:12px;background-color:var(--soft);background-image:var(--theme-header);background-size:auto 85px;background-position:right top}
#themePicker{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:620px;height:100dvh;max-height:100dvh;margin:0 auto;padding:calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));border:0;border-radius:0;background:var(--bg);color:var(--ink);overflow-y:auto;overscroll-behavior:contain}
.theme-picker-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.theme-picker-header h2{font-size:25px}.theme-picker-header .eyebrow{font-size:10px;margin-bottom:5px}
.theme-intro{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 20px}.theme-choices{display:grid;gap:16px}.theme-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;text-align:left;padding:0 0 16px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--ink)}
.theme-choice[aria-pressed=true]{border-color:var(--purple)}.theme-cover{position:relative;display:block;grid-column:1/-1;height:132px;margin-bottom:14px;background-color:#f7f4f0;background-repeat:no-repeat;background-position:top center;background-size:cover;overflow:hidden}
.theme-cover[data-cover=huajian]{background-color:#e8ecdf}.theme-cover[data-cover=night]{background-color:#211f25}.theme-cover[data-cover=night] .theme-cover-card{background:#2a272f}
.theme-cover-card{position:absolute;left:25%;top:38px;width:50%;height:108px;border-radius:15px 15px 0 0;background:#fffdfaeb;box-shadow:0 4px 20px #2024320a;padding:16px;display:grid;gap:10px;align-content:start}.theme-cover-card i{height:5px;width:60%;background:#cec4d4;border-radius:8px}.theme-cover-card i:nth-child(2){width:90%;opacity:.6}.theme-cover-card i:nth-child(3){width:75%;opacity:.4}
[data-cover=huajian] .theme-cover-card i{background:#a3b19b}[data-cover=night] .theme-cover-card{background:#3a435c}[data-cover=night] .theme-cover-card i{background:#a4b3d8}
.theme-choice-copy{padding-left:16px;min-width:0}.theme-choice-copy strong{display:block;font-size:18px;font-weight:500;margin-bottom:5px}.theme-choice-copy>span{display:block;font-size:12px;line-height:1.7}.theme-choice-copy small{display:block;color:var(--muted);font-size:10px;margin-top:5px;line-height:1.6}
.theme-choice-status{align-self:center;font-size:11px;color:var(--purple);padding:8px 16px;white-space:nowrap}
.theme-picker-footer{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px 16px;margin-top:20px;padding-bottom:8px}.theme-picker-footer .note,.theme-picker-footer .error{grid-column:1/-1;margin:0;line-height:1.7}.theme-picker-footer .error:empty{display:none}.theme-picker-footer .text-button{min-height:48px}.theme-picker-footer .note{font-size:11px;color:var(--muted);text-align:center}
.theme-preview-controls{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.theme-preview-controls label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}.theme-preview-controls select{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:8px;min-height:44px;max-width:150px}
.theme-caption{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 12px}.theme-view-tabs{display:flex;gap:6px;margin-bottom:12px}.theme-view-tabs button{flex:1;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--muted);min-height:44px;font-size:12px}.theme-view-tabs button[aria-pressed=true]{color:var(--purple);background:var(--soft);border-color:var(--purple)}
.theme-scene{border:1px solid var(--line);border-radius:20px;overflow:hidden;background-color:var(--bg);background-image:var(--theme-art),linear-gradient(var(--theme-wash),transparent 200px);background-repeat:no-repeat;background-size:100% auto,100% 230px}
.theme-preview-content{padding:18px 12px;pointer-events:none;user-select:none;min-width:0}.theme-preview-content .top{margin-bottom:14px}.theme-preview-content .top .hero{display:flex!important}.theme-preview-content .workspace{display:flex;flex-direction:column;gap:10px}.theme-preview-content .calendar.card{width:100%;min-height:0}.theme-preview-content .calendar-grid.month-page{height:auto;min-height:0;grid-template-rows:repeat(6,44px)}.theme-preview-content .calendar-track{display:block;height:auto;width:100%;transform:none!important}.theme-preview-content .calendar-viewport{height:auto;overflow:hidden}.theme-preview-content .month-page{width:100%;flex:none}.theme-preview-content .month-page .day{height:44px;min-height:0}
.theme-preview-content .insights{margin-top:0;min-height:112px}.theme-preview-content .action-area{position:static;transform:none;width:100%;margin-top:12px;min-height:62px;height:auto;background:transparent}.theme-preview-content .daily-control,.theme-preview-content .backfill-button{min-height:62px}.theme-preview-content .page-heading{padding-top:0}.theme-preview-content .stat-filters{margin-top:8px}.theme-preview-content .page{min-width:0}
.theme-preview-content .top{display:flex!important;min-height:72px;gap:6px}.theme-preview-content [data-preview-id=monthTitle]{display:inline-flex;align-items:center;min-height:44px;border:0;padding:0;background:none;color:inherit;font:inherit;line-height:inherit;white-space:nowrap}
.theme-preview-content .calendar.card{display:flex;flex-direction:column}.theme-preview-content .calendar-viewport{flex:none}.theme-preview-content .insights{display:flex;flex-direction:column;gap:8px;padding:12px}.theme-preview-content .combined-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}.theme-preview-content .period-summary,.theme-preview-content .chance-summary{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.theme-preview-content .metric-label{font-size:11px;line-height:1.5}.theme-preview-content .summary-value{font-size:18px;line-height:1.4}.theme-preview-content .summary-caption{display:block;font-size:10px;line-height:1.4;color:var(--muted)}.theme-preview-content .mini-secondary{padding-left:12px}.theme-preview-content .chance-level{font-size:24px}.theme-preview-content .top .today-heading>time{font-size:22px}.theme-preview-content .top .hero h1{font-size:21px}.theme-preview-content .top .prediction-label{font-size:10px}.theme-preview-content .today-heading{flex-shrink:0}
@media(max-width:375px){#themePicker{padding-left:12px;padding-right:12px}.theme-choice-copy>span{font-size:11px}.theme-choice-status{padding-right:12px}.theme-preview-content{padding-left:8px;padding-right:8px}.theme-preview-content .calendar.card{padding-left:8px;padding-right:8px}.theme-preview-content .calendar-controls .icon-button{width:32px;min-width:32px}.theme-preview-content .section-heading h2{font-size:15px}.theme-preview-content .history-link{min-width:30px}.theme-preview-content .history-link span{display:none}}
@media(max-width:375px){.theme-preview-content .top{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px}.theme-preview-content .top .today-heading{position:static;transform:none}.theme-preview-content .top .hero{grid-column:1/-1;width:100%;max-width:none;justify-content:flex-start}.theme-preview-content .top .hero-copy{max-width:100%;width:auto;min-width:0}.theme-preview-content .top .hero h1{white-space:normal}.theme-preview-content .top .prediction-label{white-space:normal}}
.theme-import{width:100%;min-height:48px;border:1px solid var(--line);border-radius:14px;background:var(--card);padding:12px;margin-top:20px;color:var(--purple)}
.theme-uninstall{display:block;margin:4px 12px 10px;font-size:12px;min-height:44px}.theme-uninstall:disabled{opacity:.6}.theme-source{font-size:11px;color:var(--muted);line-height:1.7;margin:0 0 12px}.theme-source:empty{display:none}.theme-remove-review{padding:16px;border:1px solid var(--line);background:var(--card);border-radius:14px;margin-top:16px}.theme-remove-review p{font-size:13px;line-height:1.8}.theme-remove-review button{min-height:44px;margin-right:22px}
.theme-cover{background-size:110px auto;background-position:85% 25%;background-repeat:no-repeat}.theme-cover[style] .theme-cover-card{left:12%;width:42%;opacity:.9}
:root[data-theme-layout=botanical-paper]{--shadow:0 3px 16px #3a492c06}
:root[data-theme-layout=botanical-paper] body{background-color:var(--bg);background-image:linear-gradient(115deg,#fffdf318,transparent 60%)}
:root[data-theme-layout=botanical-paper][data-page=calendar],:root[data-theme-layout=botanical-paper][data-page=calendar] body{height:auto;overflow-y:auto;overflow-x:hidden}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell{height:auto;min-height:100dvh;overflow:visible;display:block;padding-bottom:calc(var(--nav-height) + var(--safe-bottom) + 98px)}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top,#themeScene[data-theme-layout=botanical-paper] .theme-preview-content:has(.top) .top{position:relative;isolation:isolate;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(78px,auto);gap:10px;min-height:144px;max-height:none;height:auto;margin-bottom:14px}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top::after,#themeScene[data-theme-layout=botanical-paper] .top::after{content:'';position:absolute;z-index:-1;right:0;bottom:-3px;width:98px;height:135px;background:var(--theme-header) center top/contain no-repeat;mask-image:linear-gradient(#000 65%,transparent);pointer-events:none}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top .today-heading,#themeScene[data-theme-layout=botanical-paper] .top .today-heading{position:static;transform:none;grid-column:2;grid-row:1;align-items:flex-end;justify-self:end;width:auto;flex-direction:column;gap:4px}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top .today-heading>time{font-size:22px}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top .hero,#themeScene[data-theme-layout=botanical-paper] .top .hero{grid-column:1/-1;grid-row:2;max-width:calc(100% - 108px);width:calc(100% - 108px);justify-content:flex-start;text-align:left;min-height:78px}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .hero-copy{background:none;padding:4px 0;align-items:flex-start;gap:4px;width:auto}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .hero h1{font-family:'SimSun',serif;font-size:29px;line-height:1.3;white-space:normal;justify-content:flex-start}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .hero h1.countdown-value{margin-inline:0;align-self:flex-start;gap:5px}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .hero .header-number{font-family:'Segoe UI',sans-serif;font-size:39px;font-weight:300}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .profile-avatar{box-shadow:0 0 0 3px var(--soft);border:1px solid var(--line)}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell #calendarPage,#themeScene[data-theme-layout=botanical-paper][data-preview-page=calendar] [data-preview-id=calendarPage],:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .workspace,#themeScene[data-theme-layout=botanical-paper][data-preview-page=calendar] .workspace{display:flex;flex-direction:column;gap:12px;flex:none}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .calendar.card,#themeScene[data-theme-layout=botanical-paper][data-preview-page=calendar] .calendar.card{flex:none;padding:14px;border:1px solid var(--line);border-radius:21px;position:relative}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .calendar.card::after,#themeScene[data-theme-layout=botanical-paper][data-preview-page=calendar] .calendar.card::after{content:'';position:absolute;left:calc(50% - 12px);top:-2px;width:24px;border-top:1px solid #aa8a55;border-bottom:1px solid #d1c3a0;height:3px;background:var(--bg)}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .calendar-viewport,#themeScene[data-theme-layout=botanical-paper][data-preview-page=calendar] .calendar-viewport{height:calc(var(--month-rows,6)*44px + (var(--month-rows,6) - 1)*2px);flex:none;overflow:hidden}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .calendar-grid.month-page,#themeScene[data-theme-layout=botanical-paper][data-preview-page=calendar] .calendar-grid.month-page{grid-template-rows:repeat(var(--month-rows,6),44px);height:100%}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .month-page .day,#themeScene[data-theme-layout=botanical-paper][data-preview-page=calendar] .month-page .day{height:44px;min-height:44px}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell #insights,#themeScene[data-theme-layout=botanical-paper][data-preview-page=calendar] [data-preview-id=insights]{margin-top:0;flex:none;height:auto;min-height:140px;padding:12px 16px}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .action-area,#themeScene[data-theme-layout=botanical-paper][data-preview-page=calendar] .action-area{position:fixed;left:50%;bottom:calc(var(--nav-height) + var(--safe-bottom));transform:translateX(-50%);z-index:7;width:calc(100% - 32px);max-width:588px;margin:0;background:var(--bg);padding:8px 0;height:78px;min-height:78px}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .page-heading{min-height:125px;padding-right:100px;background:var(--theme-accent) right top/82px 122px no-repeat}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .page-heading h1,:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .sheet-header h2{font-family:'SimSun',serif;letter-spacing:1px}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .stat-metric{outline:1px solid var(--line);outline-offset:-7px}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .stat-card,:root[data-theme-layout=botanical-paper] dialog{box-shadow:var(--shadow)}
#themeScene .action-area{position:static!important;left:auto!important;bottom:auto!important;transform:none!important;width:100%!important;max-width:none!important;height:auto!important}
#themeScene .calendar-viewport{height:auto!important}#themeScene .calendar-grid.month-page{grid-template-rows:repeat(6,44px)!important}
@media(max-width:375px){:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top{min-height:128px;grid-template-rows:auto minmax(64px,auto)}:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top::after{width:84px;height:116px}:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .calendar.card{padding:12px}:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top .hero{max-width:calc(100% - 92px);width:calc(100% - 92px)}}
/* Theme library: compact foundations, illustrated collections and a reachable action bar. */
#themePicker{padding:0;overflow:hidden;background:var(--bg)}#themePicker[open]{display:flex;flex-direction:column}
.theme-picker-header{flex:none;margin:0;padding:calc(20px + var(--safe-top)) 20px 17px;align-items:center;border-bottom:1px solid var(--line)}.theme-picker-header h2{font-size:24px;font-weight:500;line-height:1.4}.theme-picker-header .eyebrow{font-size:10px;letter-spacing:.8px;color:var(--muted);margin-bottom:5px}.theme-picker-header .icon-button{border:1px solid var(--line);background:var(--card);width:44px;height:44px;border-radius:50%;font-size:25px}
.theme-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 20px 20px;scrollbar-width:thin}
.theme-current{display:flex;align-items:center;gap:10px;background:var(--card);padding:13px 14px;border:1px solid var(--line);border-radius:15px}.theme-current-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--soft);color:var(--purple);font-size:14px}.theme-current>div{flex:1;min-width:0}.theme-current small{display:block;font-size:10px;color:var(--muted);margin-bottom:2px}.theme-current strong{display:block;font-size:13px;font-weight:500}.theme-current>span:last-child{font-size:10px;color:var(--muted)}.theme-intro{font-size:12px;line-height:1.8;margin:13px 0 21px;color:var(--muted)}
.theme-choices{display:block}.theme-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}.theme-group-heading h3{font-size:14px;font-weight:500}.theme-group-heading>span{font-size:10px;color:var(--muted)}.theme-basic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.theme-featured-group{margin-top:26px}.theme-choice-wrap{min-width:0}.theme-choice{position:relative;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:17px;padding:0;gap:0;width:100%;background:var(--card);box-shadow:0 2px 10px #332f2103;transition:border-color .15s}.theme-choice[aria-pressed=true]{border-color:var(--purple);box-shadow:0 0 0 1px color-mix(in srgb,var(--purple) 12%,transparent)}
.theme-cover{position:relative;display:block;width:100%;height:119px;margin:0;background:var(--cover-bg);border-bottom:1px solid var(--line);overflow:hidden;background-image:none!important}.theme-mini-calendar{position:absolute;display:block;left:16%;top:20px;width:68%;padding:9px 8px 7px;border:1px solid var(--mini-line);border-radius:10px 10px 0 0;background:var(--mini-card);color:var(--mini-ink);box-shadow:0 3px 12px #23251c08;transform:rotate(-3deg);font-family:'Segoe UI','Microsoft YaHei',sans-serif}.theme-mini-calendar>b{display:flex;justify-content:space-between;font-size:8px;line-height:1.5;margin-bottom:5px;font-weight:500}.theme-mini-calendar>b>i{font-size:7px;font-style:normal;color:var(--mini-accent)}.mini-week,.mini-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}.mini-week{font-size:4px;opacity:.6;margin-bottom:4px;line-height:7px}.mini-days{font-size:6px;line-height:11px;row-gap:2px}.mini-days>span{display:block;border-radius:2px}.mini-days .mini-record{background:#dca8b638;color:var(--mini-ink);border-radius:0}.mini-days .mini-selected{outline:1px solid var(--mini-accent);outline-offset:-1px;border-radius:3px;color:var(--mini-accent)}.mini-key{display:flex;align-items:center;gap:3px;font-size:4px;line-height:8px;margin-top:5px;opacity:.7}.mini-key>i{width:3px;height:3px;border-radius:50%;background:#ca9aaa}
.theme-choice-copy{padding:12px 13px 11px;width:100%;min-width:0}.theme-choice-copy strong{font-size:15px;line-height:1.4;margin-bottom:5px;letter-spacing:.3px}.theme-choice-copy>span{font-size:10px;line-height:1.7;color:var(--muted)}.theme-choice-copy small{font-size:10px;line-height:1.7;margin-top:5px;color:var(--muted)}.theme-choice-status{align-self:flex-start;padding:0;margin:0 13px 13px;min-height:22px;line-height:22px;border-radius:20px;font-size:10px;color:var(--purple)}.theme-choice[aria-pressed=true] .theme-choice-status{padding:0 8px;background:var(--soft)}.theme-selected-mark{position:absolute;right:9px;top:9px;display:none;place-items:center;border-radius:50%;width:21px;height:21px;background:var(--purple);color:var(--card);font-size:11px}.theme-choice[aria-pressed=true] .theme-selected-mark{display:grid}
.theme-collection-card{margin-bottom:17px}.theme-collection-card .theme-cover{height:177px}.theme-collection-card .theme-mini-calendar{left:17px;top:39px;width:46%;max-width:185px;padding:12px;transform:rotate(-5deg);z-index:1}.theme-collection-card .theme-mini-calendar>b{font-size:10px;margin-bottom:7px}.theme-collection-card .mini-days{font-size:8px;line-height:14px}.theme-collection-card .mini-week{font-size:5px;line-height:9px}.theme-collection-card .mini-key{font-size:6px;line-height:9px;margin-top:7px}.theme-cover-art{position:absolute;right:-1px;top:1px;width:51%;height:210px;background:var(--cover-art) center top/contain no-repeat;transform:rotate(7deg);mask-image:linear-gradient(#000 72%,transparent)}.theme-cover-label{position:absolute;top:15px;left:17px;font-size:8px;letter-spacing:1.4px;color:var(--mini-accent)}.theme-collection-card .theme-choice-copy{padding:15px 17px 10px}.theme-collection-card .theme-choice-copy strong{font-family:'SimSun',serif;font-size:22px;letter-spacing:3px}.theme-collection-card .theme-choice-copy>span{font-size:12px}.theme-collection-card .theme-choice-status{margin:0 17px 15px;min-height:28px;line-height:28px;font-size:11px}.theme-uninstall{font-size:11px;margin:0 6px;min-height:44px;padding:8px 4px;color:var(--muted)}.theme-import{min-height:46px;font-size:12px;border-style:dashed;margin-top:6px;background:transparent;border-radius:13px}.theme-library-note{font-size:10px;line-height:1.8;color:var(--muted);text-align:center;margin:12px 0 0}
.theme-picker-footer{flex:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:9px 12px;margin:0;padding:12px 20px calc(12px + var(--safe-bottom));background:var(--card);border-top:1px solid var(--line)}.theme-picker-footer #themeApply{grid-column:2;grid-row:2;min-height:46px;font-size:13px}.theme-picker-footer #themeCancel{grid-column:1;grid-row:2;min-height:46px;border:1px solid var(--line);border-radius:13px;font-size:12px;color:var(--muted)}.theme-picker-footer .error{grid-column:1/-1;grid-row:1;max-height:90px;overflow:auto;font-size:12px}.theme-picker-footer .note{grid-column:1/-1;grid-row:3;font-size:10px;line-height:1.5}#themePicker[data-view=gallery] .theme-picker-footer #themeCancel{grid-column:1/-1;grid-row:1;background:var(--soft);color:var(--purple);border-color:var(--line)}#themePicker[data-view=gallery] .theme-picker-footer .error:not(:empty)+#themeApply+#themeCancel{grid-row:2}#themePicker[data-view=gallery] .theme-picker-footer .note{display:none}
.theme-preview-controls{margin-bottom:5px}.theme-preview-controls .note{font-size:10px;margin:0}.theme-caption{font-size:12px;line-height:1.7;margin:3px 0 7px}.theme-source{font-size:10px;margin-bottom:12px}.theme-view-tabs{position:sticky;top:-18px;z-index:3;background:var(--bg);padding:8px 0;margin:0 0 10px}.theme-view-tabs button{min-height:42px;font-size:12px}.theme-scene{background:var(--bg);border-radius:17px}
@media(max-width:375px){.theme-picker-header{padding-left:16px;padding-right:16px}.theme-content{padding-left:16px;padding-right:16px}.theme-picker-footer{padding-left:16px;padding-right:16px}.theme-basic-grid{gap:10px}.theme-choice-copy{padding-left:11px;padding-right:11px}.theme-choice-copy>span{font-size:10px}.theme-collection-card .theme-cover{height:163px}.theme-collection-card .theme-mini-calendar{width:47%;top:37px;left:13px;padding:10px}.theme-cover-art{height:195px}.theme-collection-card .theme-choice-copy>span{font-size:11px}}
.theme-cover .theme-cover-art{display:block;object-fit:contain;object-position:center top;background:none}.theme-cover[data-cover=huajian],.theme-cover[data-cover=night]{background-color:var(--cover-bg)}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .hero-copy{width:100%;min-width:0;max-width:100%;align-items:flex-start;justify-content:center}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .prediction-label{order:0;text-align:left;font-size:12px;line-height:1.5;margin:0 0 3px}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .hero h1{order:1;min-height:52px;height:auto;line-height:1.3}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .hero h1.countdown-value{height:auto;min-height:52px;align-items:baseline}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .hero .header-number{font-size:42px;line-height:1.2}
:is(:root[data-theme-layout=botanical-paper] .shell,#themeScene[data-theme-layout=botanical-paper]) .top .hero .header-unit{font-size:17px;line-height:1.5}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top{min-height:164px}
:root[data-theme-layout=botanical-paper][data-page=calendar] .shell .top::after,#themeScene[data-theme-layout=botanical-paper] .top::after{top:70px;bottom:0;height:auto;max-height:110px;width:91px}

/* A compact collection, with an explicit route to discover more themes. */
.theme-store-entry{display:flex;align-items:center;gap:13px;width:100%;min-height:92px;margin:0 0 16px;padding:18px;border:0;border-radius:19px;text-align:left;color:var(--card);background:linear-gradient(115deg,var(--purple),color-mix(in srgb,var(--purple) 78%,#344936));box-shadow:0 6px 18px #34493612}
.theme-store-symbol{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:13px;background:#ffffff1c}.theme-store-symbol svg{width:25px;height:25px;stroke-width:1.5}.theme-store-entry>span:nth-child(2){flex:1;min-width:0}.theme-store-entry strong{display:block;font-size:20px;font-weight:500;letter-spacing:1px}.theme-store-entry small{display:block;font-size:10px;line-height:1.7;opacity:.85;margin-top:3px}.theme-store-arrow{font-size:25px;line-height:1}
.theme-current{padding:10px 12px}.theme-intro{margin:9px 0 18px;font-size:11px}.theme-basic-grid,.theme-collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;align-items:start}.theme-featured-group{margin-top:22px}.theme-collection-card{margin-bottom:0}.theme-basic-card .theme-cover{height:83px}.theme-basic-card .theme-mini-calendar{top:12px}.theme-collection-card .theme-cover{height:112px}.theme-collection-card .theme-mini-calendar{left:11px;top:25px;width:56%;padding:7px;max-width:none}.theme-collection-card .theme-mini-calendar>b{font-size:7px;margin-bottom:3px}.theme-collection-card .mini-days{font-size:5px;line-height:9px;row-gap:1px}.theme-collection-card .mini-week{font-size:4px;line-height:7px}.theme-collection-card .mini-key{font-size:4px;line-height:6px;margin-top:3px}.theme-collection-card .theme-cover-art{width:58%;height:141px;right:-8px;top:0}.theme-cover-label{top:10px;left:11px;font-size:6px;letter-spacing:.8px}.theme-collection-card .theme-choice-copy{padding:10px 11px 5px}.theme-collection-card .theme-choice-copy strong{font-size:18px;letter-spacing:2px;line-height:1.4;margin-bottom:3px}.theme-collection-card .theme-choice-copy>span{font-size:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px;line-height:1.7}.theme-choice-copy small{font-size:9px}.theme-collection-card .theme-choice-status{margin:0 11px 9px;min-height:22px;line-height:22px;font-size:10px}.theme-uninstall{width:100%;min-height:40px;margin:0;font-size:9px;line-height:1.4;padding:5px 2px}.theme-basic-card .theme-choice-copy{padding-top:9px;padding-bottom:3px}.theme-basic-card .theme-choice-copy strong{font-size:14px}.theme-basic-card .theme-choice-status{margin-bottom:9px}
.theme-store-heading{margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid var(--line)}.theme-store-heading>p{font-size:11px;color:var(--muted);margin:0 0 5px}.theme-store-heading h3{font-family:'SimSun',serif;font-size:21px;line-height:1.6;letter-spacing:1px;margin:0 0 5px}.theme-store-heading>span{font-size:11px;line-height:1.8;color:var(--muted)}.theme-store-free{margin:8px 0 0;font-size:10px;color:var(--purple);text-align:center}.theme-store-coming{margin:26px 0 10px;color:var(--muted);font-size:11px;line-height:1.8;text-align:center}#themePicker[data-view=store] .theme-picker-footer #themeCancel{grid-column:1/-1;grid-row:1;background:var(--soft)}#themePicker[data-view=store] .theme-picker-footer .note{display:none}

.theme-heading-copy{min-width:0;flex:1}
#themeScene{color:var(--ink)}#themeScene .theme-preview-content{background:var(--bg)}#themeScene .theme-loading{min-height:180px;display:grid;place-items:center;color:var(--muted);font-size:13px}

/* Selection and dismissal share a reversible transition; hidden actions cannot receive focus. */
.theme-choice-wrap{position:relative}.theme-choice{overflow:hidden;transition:filter .26s ease,opacity .26s ease,border-color .2s ease}
.theme-choice-wrap.is-selected>.theme-choice{filter:blur(2px);opacity:.38}
.theme-card-actions{position:absolute;inset:0 0 auto;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;border-radius:17px;background:color-mix(in srgb,var(--card) 32%,transparent);opacity:0;transform:translateY(5px) scale(.98);visibility:hidden;pointer-events:none;transition:opacity .22s ease,transform .26s cubic-bezier(.22,.61,.36,1),visibility 0s linear .26s}
.theme-choice-wrap.is-selected>.theme-card-actions{opacity:1;transform:none;visibility:visible;pointer-events:auto;transition-delay:0s}
.theme-choice-wrap:has(.theme-uninstall) .theme-card-actions{min-height:0;bottom:40px}
.theme-card-actions button{width:100%;max-width:132px;min-height:44px;border-radius:12px;font-size:13px;font-weight:500;background:var(--card);color:var(--ink);border:1px solid var(--line);box-shadow:0 3px 10px #27202e0a}
.theme-card-actions .theme-action-apply{background:#716181;color:#fff;border-color:#716181}
.theme-card-actions .theme-action-purchase,#themeApply.theme-action-purchase{background:#92582e;color:#fff;border-color:#92582e}
.theme-card-actions .theme-action-applied,#themeApply.theme-action-applied{background:var(--soft);color:var(--muted);border:1px solid var(--line);box-shadow:none;opacity:1}
.theme-card-actions button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
#themeStage .theme-caption{margin:0 0 8px}#themeStage .theme-source[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.theme-choice,.theme-card-actions{transition:none}}

#themePicker[data-view=store] .theme-picker-footer .error:not(:empty)~#themeCancel{grid-row:2}
