/* Japanese app reference lock: white reading surfaces, chromatic actions and data.
   Scope excludes the approved pistachio in every selector. */
:root:not([data-theme=pistachio])[data-theme] body{background:var(--canvas)}
:root:not([data-theme=pistachio])[data-theme] :is(.today-hero,.mine-hero,.mine-cal-hero){background:var(--hero);color:var(--hero-ink)}
:root:not([data-theme=pistachio])[data-theme] :is(.today-hero,.mine-hero):after{border-color:var(--hero-line)}
:root:not([data-theme=pistachio])[data-theme] :is(.today-ring .day-score-value strong,.today-hero .day-score-body p,.today-overview strong,.mine-hero-stats b,.mine-goal b,.mine-score b,.mine-cal-big b,.mine-cal-io b,.today-balance-value,.today-balance-more){color:var(--hero-ink)!important}
:root:not([data-theme=pistachio])[data-theme] :is(.today-hero-top,.today-ring .day-score-value>span,.today-hero .day-score-body .helper,.today-overview span,.today-overview strong small,.mine-hero-top,.mine-hero-stats dt,.mine-hero-stats b small,.mine-hero-stats dd span,.mine-goal p,.mine-hero-empty,.mine-cal-kicker,.mine-cal-sub,.mine-cal-io dt,.mine-cal-io small,.today-balance-label,.today-balance-sub){color:var(--hero-muted)!important}
:root:not([data-theme=pistachio])[data-theme] :is(.today-overview,.today-overview>div,.mine-hero-stats>div,.mine-goal,.mine-cal-io){border-color:var(--hero-line)!important}
:root:not([data-theme=pistachio])[data-theme] .today-ring-track{stroke:var(--hero-line)}
:root:not([data-theme=pistachio])[data-theme] .today-ring-value{stroke:var(--hero-ink)}
:root:not([data-theme=pistachio])[data-theme] :is(.today-balance,.mine-score){background:var(--hero-surface);color:var(--hero-ink)}
:root:not([data-theme=pistachio])[data-theme] .mine-hero-primary{background:var(--brand);color:#fff}
:root:not([data-theme=pistachio])[data-theme] .mine-hero-secondary{background:var(--surface);color:var(--brand);border-color:var(--hero-line)!important}
:root:not([data-theme=pistachio])[data-theme] :is(.mine-cal-hero[data-tone=projected] .mine-cal-tag,.today-balance[data-tone=projected] .today-balance-value em){background:var(--hero-surface);color:var(--hero-ink)}
:root:not([data-theme=pistachio])[data-theme] .today-hero progress,
:root:not([data-theme=pistachio])[data-theme] .today-hero progress::-webkit-progress-bar{background:var(--hero-line)}
:root:not([data-theme=pistachio])[data-theme] .today-hero progress::-webkit-progress-value{background:var(--hero-ink)}
:root:not([data-theme=pistachio])[data-theme] .today-hero progress::-moz-progress-bar{background:var(--hero-ink)}
/* The existing v2 ID rule also marks these numbers !important. Keep light hero numbers dark. */
:root:not([data-theme=pistachio])[data-theme] #home[data-layout=v2] .today-hero .today-overview strong{color:var(--hero-ink)!important}

/* Data and actions carry the accent; prose stays neutral on a white card. */
:root:not([data-theme=pistachio])[data-theme] :is(.today-hero,.mine-hero,.mine-cal-hero){border:1px solid var(--hairline)}
:root:not([data-theme=pistachio])[data-theme] :is(.today-hero,.mine-hero):after{display:none}
:root:not([data-theme=pistachio])[data-theme] :is(.today-ring .day-score-value strong,.today-overview strong,.mine-hero-stats b,.mine-goal b,.mine-score b,.mine-cal-big b,.mine-cal-io b,.today-balance-value){color:var(--hero-accent)!important}
:root:not([data-theme=pistachio])[data-theme] #home[data-layout=v2] .today-hero .today-overview strong{color:var(--hero-accent)!important}
:root:not([data-theme=pistachio])[data-theme] .today-ring-value{stroke:var(--hero-accent)}
:root:not([data-theme=pistachio])[data-theme] .today-hero progress::-webkit-progress-value{background:var(--hero-accent)}
:root:not([data-theme=pistachio])[data-theme] .today-hero progress::-moz-progress-bar{background:var(--hero-accent)}
