/* Palette values come from miniapp/miniprogram/utils/theme.js through shared.mjs and applyTheme. */
:root:is([data-palette=colorful],[data-palette=orange]) .welcome {
  background:linear-gradient(118deg,var(--accent) 0% 56%,var(--companion));
  color:var(--on-accent);
}
:root:is([data-palette=colorful],[data-palette=orange]) .welcome :is(h1,p,.eyebrow,.welcome-title strong) { color:var(--on-accent); opacity:1; }
:root:is([data-palette=colorful],[data-palette=orange]) .welcome-rule { background:linear-gradient(90deg,var(--on-accent),transparent); }
:root:is([data-palette=colorful],[data-palette=orange]) .action-tabs { background:linear-gradient(110deg,var(--accent),var(--companion)); }
:root:is([data-palette=colorful],[data-palette=orange]) .action-tabs button { color:var(--on-accent); }
:root:is([data-palette=colorful],[data-palette=orange]) .action-tabs button.active { background:var(--tint); color:var(--deep); }
:root:is([data-palette=colorful],[data-palette=orange]) .stats>.card { background:linear-gradient(135deg,#fff,var(--tint)); border-color:var(--border); }
:root:is([data-palette=colorful],[data-palette=orange]) .rank-tag { background:var(--tint); }
:root:is([data-palette=colorful],[data-palette=orange]) .platform-hero { background:linear-gradient(125deg,var(--accent),var(--companion)); color:var(--on-accent); }
:root:is([data-palette=colorful],[data-palette=orange]) .platform-hero :is(h1,h2,p,.eyebrow) { color:var(--on-accent); opacity:1; }
:root:is([data-palette=colorful],[data-palette=orange]) .platform-account { background:var(--tint); }
:root:is([data-palette=colorful],[data-palette=orange]) .platform-account.metric-tabs { background:var(--accent); }
:root:is([data-palette=colorful],[data-palette=orange]) .metric-tabs .account-metric { color:var(--on-accent); }
:root:is([data-palette=colorful],[data-palette=orange]) .wallet-page .wallet-card { background:linear-gradient(135deg,#fff,var(--tint) 68%,color-mix(in srgb,var(--companion) 18%,#fff)); border-color:var(--border); }
:root:is([data-palette=colorful],[data-palette=orange]) :is(a,.positive,.outline,.secondary,.rank-tag,.mode-mark,.archive-hint,.student-person-filter,.time-picker,.query-block select,.profile-avatar,.profile-symbol,.profile-chevron,.profile-settings>h2>span,.password-toggle,.finance-title-icon,.main-action-symbol,.bill-flow-icon,.salary-note>span,.bill-mode .period-label,.balance-float,.culture-values li) { color:var(--accent-foreground); }
:root:is([data-palette=colorful],[data-palette=orange]) :is(.account-access [aria-current=page],.ft .ft-entry:not(.platform-entry-button).active .ft-entry-title,.ft-date-wheel button[aria-pressed=true],.ft .ft-slots button[aria-pressed=true],.ft-statement-brand,.ft-statement-total>strong,.ft-pay-summary strong,.ft .ft-photo-upload .ft-registration-upload,.ft .ft-week-lesson span,.ft .ft-punch-upload,.training-record-copy>span,.manual-month>summary::after,.student-month-picker .month-caret,.student-create-role,.student-month-header .month-caret,.managed-group-toggle [aria-hidden],.new-entry-student-heading .student-name,.membership-current,.membership-plan.is-current h3,.rank-button,.info-button,.avatar,.text-button,.tag,.rank-top,.purpose-row>span,.platform-values span,.plan-row>strong,.training-card>span,.training-card strong,.two-choice input:checked+span,.radio-row label:has(input:checked),.recharge-product strong,.finance-status,.keypad-heading button,.wallet-period-range button,.wallet-statements .bill-mode-toggle:hover,.statement-balance:not(.negative)>strong) { color:var(--accent-foreground); }
:root:is([data-palette=colorful],[data-palette=orange]) .metric-tabs .account-metric:last-child { color:var(--deep); }
:root:is([data-palette=colorful],[data-palette=orange]) .metric-tabs .account-metric.negative { background:var(--tint); }
:root:is([data-palette=colorful],[data-palette=orange]) :is(.primary,.choice button.selected,.month-wheel button[aria-pressed=true],.person-options>button[aria-pressed=true],.membership-switch button.active) { background:var(--accent); color:var(--on-accent); }
:root:is([data-palette=colorful],[data-palette=orange]) .wallet-page .finance-panel .primary { background:var(--accent); color:var(--on-accent); }
:root:is([data-palette=colorful],[data-palette=orange]) .course-option input:checked+span { background:var(--accent); color:var(--on-accent); border-color:var(--accent-foreground); }
:root:is([data-palette=colorful],[data-palette=orange]) .wallet-page .wallet-tools button:nth-child(n) .tool-icon { color:var(--accent-foreground); background:var(--tint); border-color:var(--border); }
:root:is([data-palette=colorful],[data-palette=orange]) .wallet-page :is(.wallet-tools button.active .tool-icon,.wallet-main-actions button.active .main-action-symbol) { background:var(--accent); color:var(--on-accent); border-color:var(--accent-foreground); }
:root:is([data-palette=colorful],[data-palette=orange]) :is(.bill-mode.active,.balance-end) { background:var(--tint); }
:root:is([data-palette=colorful],[data-palette=orange]) :is(.copy-button,.entry-table .week-fill-actions .copy-button) { background:var(--accent-foreground); color:#fff; }
:root:is([data-palette=colorful],[data-palette=orange]) .entry-table .week-fill-actions .copy-button.counting-down { background:var(--accent-foreground)!important; color:#fff!important; }
:root:is([data-palette=colorful],[data-palette=orange]) .theme-option[aria-pressed=true] i { outline-color:var(--accent-foreground); }
:root:is([data-palette=colorful],[data-palette=orange]) :is(input,select,textarea,.outline) { border-color:color-mix(in srgb,var(--accent-foreground) 65%,var(--surface)); accent-color:var(--accent-foreground); }
:root:is([data-palette=colorful],[data-palette=orange]) :focus-visible { outline-color:var(--accent-foreground); }

/* Pink theme geometry follows the two approved 850px-wide design references.
   All character drawing scales uniformly; the hero itself has natural height. */
.pink-only { display:none; }
:root[data-palette=orange],:root[data-palette=orange] body { background-color:var(--surface); }
:root[data-palette=orange] #page-scroll { background:var(--surface); }
:root[data-palette=orange] .welcome :is(.welcome-brand,.welcome-subtitle) { display:none; }
:root[data-palette=orange] .welcome .pink-only { display:block; }
:root[data-palette=orange] :is(.welcome,.platform-hero) {
  background:linear-gradient(115deg,#fff4f8,#ffedf4); color:var(--deep);
  border:1px solid #f5cfdf; border-radius:24px; box-shadow:none; isolation:isolate;
  padding:clamp(18px,5.5vw,27px) 38% clamp(20px,6vw,30px) clamp(18px,5.5vw,27px);
  min-height:0; margin-bottom:16px;
}
:root[data-palette=orange] :is(.welcome,.platform-hero) :is(h1,h2,p,.welcome-title strong) { color:var(--deep); }
:root[data-palette=orange] :is(.welcome,.platform-hero) .eyebrow { color:var(--companion); letter-spacing:1.3px; font-size:clamp(9px,2.8vw,13px); line-height:1.5; white-space:nowrap; }
:root[data-palette=orange] .welcome-title { gap:0 10px; flex-wrap:nowrap; margin:12px 0 0; white-space:nowrap; }
:root[data-palette=orange] .welcome-title strong { font-size:clamp(27px,9.1vw,44px); letter-spacing:0; line-height:1.25; }
:root[data-palette=orange] .welcome-title.welcome-title-long { flex-wrap:wrap; white-space:normal; row-gap:4px; }
:root[data-palette=orange] .welcome-title-long>strong { min-width:0; max-width:100%; overflow-wrap:anywhere; white-space:normal; }
:root[data-palette=orange] .welcome-title>span { font-size:clamp(13px,4.4vw,21px); }
:root[data-palette=orange] .welcome p { font-size:clamp(12px,3.65vw,17px); line-height:1.5; margin-top:10px; white-space:nowrap; }
:root[data-palette=orange] .welcome-rule { width:31px; height:3px; background:#ec789b; margin-top:12px; }
:root[data-palette=orange] .platform-hero h1 { font-size:clamp(30px,9.8vw,48px); letter-spacing:0; line-height:1.2; margin:9px 0 6px; }
:root[data-palette=orange] .platform-hero h2 { font-size:clamp(13px,4.15vw,20px); line-height:1.5; white-space:nowrap; }
:root[data-palette=orange] .platform-hero p { font-size:clamp(12px,3.65vw,17px); line-height:1.5; margin-top:3px; white-space:nowrap; }
:root[data-palette=orange] :is(.welcome,.platform-hero)::before {
  content:''; position:absolute; inset:auto 0 0; width:100%; height:40px; border:0; border-radius:0;
  background: url('/kitty-waves.svg') center bottom/100% auto no-repeat; opacity:1; transform:none; z-index:-1; pointer-events:none;
}
:root[data-palette=orange] :is(.welcome,.platform-hero)::after {
  content:''; position:absolute; inset:auto 3% 14px auto; width:35%; max-width:172px;
  height:auto; aspect-ratio:26/30; border:0; border-radius:0; box-shadow:none;
  background:url('/hello-kitty-hero.svg') center/contain no-repeat; opacity:1; z-index:0; pointer-events:none;
}
/* iOS 14.3 lacks aspect-ratio. The percentage padding keeps the same 26:30 box. */
@supports not (aspect-ratio:1) { :root[data-palette=orange] :is(.welcome,.platform-hero)::after { padding-top:40.3846%; } }
:root[data-palette=orange] .platform-ornament { display:none; }
:root[data-palette=orange] .action-tabs { height:auto; background:linear-gradient(105deg,var(--action-fill),var(--companion)); border:0; box-shadow:none; border-radius:17px; }
:root[data-palette=orange] .action-tabs button { height:auto; color:var(--on-accent); position:relative; font-size:clamp(16px,4.55vw,21px); font-weight:700; }
:root[data-palette=orange] .action-tabs.teaching-entry-tabs { margin:0 0 18px; }
:root[data-palette=orange] .action-tabs.teaching-entry-tabs button { min-height:58px; padding:12px 4px; }
:root[data-palette=orange] .action-tabs button.active { background:var(--tint); color:var(--deep); }
:root[data-palette=orange] .action-tabs button+button:before { background:#fff; opacity:.6; }
:root[data-palette=orange] .platform-workspace-section>h2 { padding:0; margin:12px 0 8px; font-size:clamp(18px,4.7vw,23px); }
:root[data-palette=orange] .platform-workspace-section .action-tabs { border-radius:11px; margin-bottom:12px; }
:root[data-palette=orange] .platform-workspace-section .action-tabs button { min-height:44px; padding:9px 4px; }
:root[data-palette=orange] .training-section>h2::after { content:''; display:inline-block; width:24px; height:17px; margin-left:9px; vertical-align:middle; background:url('/kitty-bow.svg') center/contain no-repeat; }
:root[data-palette=orange] :is(.stats>.card,.course-statistics>.card) { background:#fff; box-shadow:none; }
:root[data-palette=orange] .platform-page .ft .course-statistics.fulltime-course-statistics>.card { background:#fff; border-radius:12px; padding:10px 12px; }
:root[data-palette=orange] .fulltime-course-statistics .period-stat-heading { padding-bottom:7px; }
:root[data-palette=orange] .fulltime-course-statistics .period-stat-heading h2 { font-size:clamp(15px,4.1vw,20px); }
:root[data-palette=orange] .fulltime-course-statistics .period-stat-values { padding:9px 0; }
:root[data-palette=orange] .fulltime-course-statistics .rank-tag { border-radius:12px; padding:3px 10px; }
:root[data-palette=orange] .platform-account.metric-tabs { background:linear-gradient(105deg,var(--action-fill),var(--companion)); }
:root[data-palette=orange] .metric-tabs .account-metric { color:var(--on-accent); min-height:72px; }
:root[data-palette=orange] .metric-tabs .account-metric:last-child { color:var(--deep); }
:root[data-palette=orange] .metric-tabs .account-metric span { font-size:15px; }
:root[data-palette=orange] .metric-tabs .account-metric strong { font-size:28px; }
:root[data-palette=orange] :is(.primary,.wallet-page .finance-panel .primary,.choice button.selected,.month-wheel button[aria-pressed=true],.person-options>button[aria-pressed=true],.course-option input:checked+span,.wallet-page .wallet-tools button.active .tool-icon,.wallet-page .wallet-main-actions button.active .main-action-symbol,.langya-ribbon) { background:var(--action-fill); color:var(--action-ink); }
:root[data-palette=orange] :is(.copy-button,.entry-table .week-fill-actions .copy-button) { background:var(--companion); color:#fff; border-radius:9px; }
:root[data-palette=orange] .entry-table .week-fill-actions .copy-button.counting-down { background:var(--action-fill)!important; color:var(--action-ink)!important; }
:root[data-palette=orange] .registered-lessons { background:transparent; box-shadow:none; border:0; padding:0; }
:root[data-palette=orange] .registered-lessons>.table-scroll { border:1px solid var(--border); border-radius:13px; }
:root[data-palette=orange] .entry-table { --student-name-size:16px; --student-heading-size:17px; }
:root[data-palette=orange] .entry-table :is(th,td) { height:54px; padding:9px 7px; border-right:1px solid var(--border); font-size:16px; }
:root[data-palette=orange] .entry-table :is(th,td):last-child { border-right:0; }
:root[data-palette=orange] .entry-table thead th { height:56px; font-size:16px; }
:root[data-palette=orange] .entry-table thead th.student-col { font-size:17px; }
:root[data-palette=orange] .entry-table .entry-week-heading small { font-size:11px; line-height:1.4; margin-top:4px; color:var(--main); }
:root[data-palette=orange] .entry-table .student-name { font-size:16px; font-weight:700; }
:root[data-palette=orange] .entry-table .mode-mark { padding:2px 5px; border-radius:7px; font-size:13px; color:var(--deep); }
:root[data-palette=orange] .entry-table .cell-input { background:var(--surface); border:1px solid var(--border); min-height:34px; font-size:16px; border-radius:7px; }
:root[data-palette=orange] .entry-table .week-fill-actions .copy-button { font-size:13px; height:24px; padding:2px 7px; }
:root[data-palette=orange] .registered-lessons>.archive { margin-top:16px; }
:root[data-palette=orange] .registered-lessons>.archive>summary { margin-inline:0; background:var(--tint); padding:9px 12px; border-radius:9px; font-size:15px; min-height:36px; }
:root[data-palette=orange] .save-line { font-size:13px; }
:root[data-palette=orange] .bottom-nav { background:#fffafd; border-top-color:var(--border); }
:root[data-palette=orange] .bottom-nav button.active::after { content:''; position:absolute; top:3px; left:calc(50% + 4px); width:18px; height:12px; background:url('/kitty-bow.svg') center/contain no-repeat; pointer-events:none; }
:root[data-palette=orange] .teaching-page .welcome>.eyebrow { color:var(--companion); opacity:1; }
:root[data-palette=orange] .welcome-stars { opacity:.2; }
:root[data-palette=orange] .fulltime-course-statistics .period-stat-values .stat-label { font-size:clamp(10px,2.85vw,14px); font-weight:600; }
:root[data-palette=orange] .fulltime-course-statistics .period-stat-values .stat-value { font-size:clamp(22px,5.8vw,28px); }
:root[data-palette=orange] .fulltime-course-statistics .ft-stat-footer { padding-top:7px; margin-top:0; }
:root[data-palette=orange] .pink-account-summary { display:grid; grid-template-columns:1fr 1fr; border-radius:17px; overflow:hidden; margin:12px 0 18px; background:linear-gradient(105deg,var(--action-fill),var(--companion)); }
:root[data-palette=orange] .pink-account-summary>div { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:72px; padding:9px 4px; color:#fff; }
:root[data-palette=orange] .pink-account-summary>div+div { background:var(--tint); color:var(--deep); }
:root[data-palette=orange] .pink-account-summary span { font-size:14px; }
:root[data-palette=orange] .pink-account-summary strong { font-size:28px; font-weight:700; line-height:1.4; }
:root[data-palette=orange] .pink-account-summary.negative>div:first-child { background:var(--tint); color:var(--negative); }
/* Channel contacts and membership entitlements remain live controls below the preview's tile headings. */
.customer-channel .channel-icon { display:none; }
:root[data-palette=orange] .membership-section { background:#fff; border:1px solid var(--border); border-radius:12px; padding:11px; box-shadow:none; margin-top:12px; }
:root[data-palette=orange] .membership-section .membership-heading { margin-bottom:8px; gap:6px; flex-wrap:wrap; }
:root[data-palette=orange] .membership-section .membership-heading h2 { font-size:clamp(18px,4.7vw,23px); }
:root[data-palette=orange] .membership-heading p { font-size:13px; margin-top:2px; }
:root[data-palette=orange] .membership-section .membership-plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
:root[data-palette=orange] .membership-section .membership-plan { min-width:0; padding:8px 4px; border:0; }
:root[data-palette=orange] .membership-section .membership-plan-title { flex-direction:column; gap:4px; text-align:center; }
:root[data-palette=orange] .membership-section .membership-plan-title h3 { font-size:14px; white-space:nowrap; }
:root[data-palette=orange] .membership-plan dl>div { flex-direction:column; align-items:center; gap:3px; text-align:center; font-size:11px; }
:root[data-palette=orange] .membership-plan dl { margin-top:8px; }
:root[data-palette=orange] .membership-section:not(.customer-channel) .membership-plan+.membership-plan { border-left:1px solid var(--border); }
:root[data-palette=orange] .membership-switch { margin:9px 0 4px; gap:8px; }
:root[data-palette=orange] .membership-switch button { font-size:16px; min-height:44px; padding:6px; border-color:var(--border); border-radius:8px; }
:root[data-palette=orange] .membership-switch button.active { background:#f5cddd; color:var(--deep); border-color:#f5cddd; }
:root[data-palette=orange] .membership-section .platform-policy { font-size:11px; margin:8px 0 0; }
:root[data-palette=orange] .customer-channel .membership-plan { border-radius:8px; background:var(--tint); }
:root[data-palette=orange] .customer-channel .membership-plan-title { flex-direction:row; align-items:center; justify-content:center; gap:7px; min-height:30px; }
:root[data-palette=orange] .customer-channel .channel-icon { display:block; width:25px; height:25px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; color:var(--deep); }
:root[data-palette=orange] .customer-channel .channel-detail { font-size:10px; line-height:1.5; text-align:center; overflow-wrap:anywhere; }
:root[data-palette=orange] .customer-channel :is(.channel-price,.channel-person) { display:block; }
:root[data-palette=orange] .customer-channel .channel-separator { display:none; }
:root[data-palette=orange] .customer-channel .channel-person { white-space:nowrap; }
:root[data-palette=orange] .customer-channel .channel-contact { min-height:44px; padding:5px 1px; }
:root[data-palette=orange] .platform-end { font-size:14px; padding:8px; }
@media(min-width:600px) {
  :root[data-palette=orange] :is(.welcome,.platform-hero) { padding-right:210px; min-height:210px; }
  :root[data-palette=orange] :is(.welcome,.platform-hero)::after { width:172px; height:198.46px; right:24px; }
  @supports not (aspect-ratio:1) { :root[data-palette=orange] :is(.welcome,.platform-hero)::after { padding-top:0; } }
}
@media(max-width:359px) {
  :root[data-palette=orange] .customer-channel .channel-icon { width:20px; height:20px; }
  :root[data-palette=orange] .customer-channel .membership-plan-title { gap:3px; }
  :root[data-palette=orange] .membership-section .membership-plan-title h3 { font-size:12px; }
}
@media print { :root[data-palette=orange] :is(.welcome,.platform-hero)::after,:root[data-palette=orange] .bottom-nav button.active::after { display:none; } }
/* Preserve existing decorative motion and its reduced-motion behavior. */
:root[data-palette=orange] .welcome-stars { --star-core:var(--accent-foreground); --home-meteor-gold:color-mix(in srgb,var(--accent-foreground) 55%,var(--tint)); }
:root[data-palette=orange] :is(.welcome,.platform-hero) .platform-particle.meteor { background:linear-gradient(90deg,var(--accent-foreground),transparent); }
:root[data-palette=orange] .platform-particle.sparkle { color:var(--accent-foreground); }
