/* Shared visual language for the entry, dashboard and personal space.
   Native controls, permission-driven content and full-screen layouts stay intact. */
body:is(.user-mode, .login-mode) {
  --premium-accent: var(--season-accent, var(--gold));
  --premium-secondary: var(--season-secondary, var(--blue));
  --premium-surface: var(--season-surface, var(--panel-strong));
  --premium-on-accent: var(--season-on-accent, #18140c);
  --premium-edge: color-mix(in srgb, var(--text) 13%, transparent);
  --premium-tint: color-mix(in srgb, var(--premium-accent) 7%, var(--premium-surface));
  --premium-shadow: 0 18px 48px -26px color-mix(in srgb, var(--text) 22%, transparent);
  --premium-arch-radius: 48% 48% 12px 12px;
}
html[data-season-theme="default"][data-theme-phase="day"] body:is(.user-mode, .login-mode) {
  --premium-surface: #fcfdf8;
  --premium-accent: #805c28;
  --premium-on-accent: #fff;
}
html[data-season-theme="spring"] body { --premium-arch-radius: 48% 48% 22% 22%; }
html[data-season-theme="summer"] body { --premium-arch-radius: 44% 44% 5px 5px; }
html[data-season-theme="autumn"] body { --premium-arch-radius: 48% 48% 10px 10px; }
html[data-season-theme="winter"] body { --premium-arch-radius: 48% 48% 3px 3px; }
body:is(.user-mode, .login-mode) .premium-kicker {
  display: block; color: var(--premium-accent); font-size: 11px;
  font-weight: 800; line-height: 1.5; letter-spacing: .18em;
}
body:is(.user-mode, .login-mode) :is(.premium-scene, .premium-profile-seal) {
  pointer-events: none; user-select: none;
}
.premium-scene { position: relative; width: min(100%, 340px); aspect-ratio: 1.32; isolation: isolate; }
.premium-scene-arch {
  position: absolute; inset: 0 17% 12%; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--premium-accent) 23%, transparent);
  border-radius: var(--premium-arch-radius);
  background: linear-gradient(155deg, color-mix(in srgb, var(--premium-accent) 14%, var(--premium-surface)), color-mix(in srgb, var(--premium-secondary) 17%, var(--premium-surface)));
  box-shadow: inset 0 0 0 9px color-mix(in srgb, var(--premium-surface) 65%, transparent), 0 25px 70px -35px var(--premium-accent);
}
.premium-scene-arch::before {
  content: ''; position: absolute; inset: 8%; border: 1px solid color-mix(in srgb, var(--premium-accent) 18%, transparent);
  border-radius: inherit;
}
.premium-scene-sun {
  position: absolute; width: 28%; aspect-ratio: 1; inset: 18% auto auto 35%; border-radius: 50%;
  background: color-mix(in srgb, var(--premium-accent) 65%, var(--premium-surface));
  box-shadow: 0 0 40px color-mix(in srgb, var(--premium-accent) 24%, transparent);
}
html[data-theme-phase="night"] .premium-scene-sun::after {
  content: ''; position: absolute; inset: -6% -15% 24% 30%; border-radius: 50%; background: var(--premium-tint);
}
.premium-scene-landscape { position: absolute; inset: 34% -20% -12%; }
.premium-scene-landscape::before, .premium-scene-landscape::after {
  content: ''; position: absolute; inset: 24% -10% -30%; border-radius: 50% 50% 0 0;
  border: 1px solid color-mix(in srgb, var(--premium-secondary) 24%, transparent);
  background: color-mix(in srgb, var(--premium-secondary) 15%, var(--premium-surface)); transform: rotate(-18deg);
}
.premium-scene-landscape::after { inset: 40% -15% -35%; transform: rotate(16deg); background: var(--premium-tint); }
.premium-scene::after {
  content: ''; position: absolute; inset: -10% -5% 8%; z-index: -1;
  background: linear-gradient(145deg, var(--premium-accent), var(--premium-secondary));
  -webkit-mask: var(--season-art, none) center / contain no-repeat;
  mask: var(--season-art, none) center / contain no-repeat; opacity: .32;
}
.premium-scene-book { position: absolute; width: 92%; inset: auto 4% -3%; overflow: visible; }
.scene-shadow { fill: var(--premium-accent); opacity: .08; }
.scene-page-back { fill: var(--premium-accent); fill-opacity: .28; stroke: var(--premium-accent); stroke-opacity: .4; }
.scene-page { fill: var(--premium-surface); stroke: var(--premium-accent); stroke-width: 1.2; }
.scene-ink { stroke: var(--premium-accent); stroke-opacity: .38; stroke-width: 1.3; stroke-linecap: round; }
.scene-bookmark { fill: var(--premium-secondary); opacity: .8; }
.premium-scene-spark { position: absolute; color: var(--premium-accent); line-height: 1; }
.premium-scene-spark-one { inset: 13% auto auto 7%; font-size: 27px; }
.premium-scene-spark-two { inset: 36% 6% auto auto; font-size: 36px; color: var(--premium-secondary); }

/* A calm, compact navigation rail; existing mobile menu breakpoints remain. */
body.user-mode .user-top {
  border-bottom-color: var(--premium-edge);
  background: color-mix(in srgb, var(--premium-surface) 94%, transparent);
  box-shadow: 0 8px 28px -24px var(--text);
}
body.user-mode .user-top .brand-link { letter-spacing: -.055em; font-weight: 900; }
body.user-mode .user-top nav .user-nav-link {
  border-radius: 12px; color: var(--muted); transition: background .18s ease, color .18s ease;
}
body.user-mode .user-top nav .user-nav-link.active {
  background: color-mix(in srgb, var(--premium-accent) 12%, transparent); color: var(--premium-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--premium-accent) 16%, transparent);
}
body.user-mode:is([data-path="/dashboard"], [data-path="/stats"]) .user-main {
  padding: 30px max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left));
  place-items: start center; align-content: start;
}
/* Let the remaining viewport grow with the real header and content heights. */
@media (min-width: 768px) {
  body.user-mode[data-path="/dashboard"] { display: flex; flex-direction: column; }
  body.user-mode[data-path="/dashboard"] .user-top { flex-shrink: 0; }
  body.user-mode[data-path="/dashboard"] .user-main {
    flex: 1; min-height: 0; padding-block: max(24px, var(--app-safe-active-bottom, 0px));
    align-content: center; align-content: safe center;
  }
}
body.user-mode .dashboard-view.premium-dashboard {
  width: min(1280px, 100%); padding: 0; text-align: start; overflow: visible;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
body.user-mode .premium-dashboard .dashboard-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  align-items: center; gap: 24px; min-height: 290px; isolation: isolate;
  padding: 32px clamp(26px, 4vw, 52px); overflow: hidden;
  border: 1px solid var(--premium-edge); border-radius: 28px;
  background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--premium-accent) 12%, transparent), transparent 68%), var(--premium-surface);
  box-shadow: var(--premium-shadow);
}
body.user-mode .premium-dashboard .dashboard-hero::after {
  content: ''; position: absolute; width: 450px; aspect-ratio: 1; inset: auto -13% -145%;
  border: 1px solid color-mix(in srgb, var(--premium-accent) 12%, transparent); border-radius: 50%; z-index: -1;
}
body.user-mode .premium-dashboard .dashboard-hero-copy { min-width: 0; }
body.user-mode .premium-dashboard h1 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0 16px;
  font-size: clamp(32px, 3.8vw, 52px); line-height: 1.2; letter-spacing: -.06em; text-wrap: balance;
}
body.user-mode .premium-dashboard .dashboard-logo-preview-trigger { width: 36px; height: 36px; border-radius: 10px; }
body.user-mode .premium-dashboard .dashboard-welcome { margin: 0 0 12px; font-size: 16px; color: var(--muted); font-weight: 600; }
body.user-mode .premium-dashboard .dashboard-session {
  display: inline-block; margin: 0; padding: 7px 12px; border: 1px solid var(--premium-edge);
  border-radius: 8px; color: var(--premium-accent); background: var(--premium-tint); font-size: 12px; font-weight: 700;
}
body.user-mode .premium-dashboard .dashboard-session:empty { display: none; }
body.user-mode .premium-dashboard .premium-scene { justify-self: center; max-width: 300px; }
body.user-mode .premium-dashboard .dashboard-insights {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 16px; margin-top: 20px;
}
body.user-mode .premium-dashboard .dashboard-metrics { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
body.user-mode .premium-dashboard .dashboard-metric {
  position: relative; min-width: 0; display: grid; align-content: start; gap: 16px; padding: 20px;
  border: 1px solid var(--premium-edge); border-radius: 20px; background: var(--premium-surface); box-shadow: var(--premium-shadow);
}
body.user-mode .premium-dashboard .dashboard-metric-label { font-size: 12px; font-weight: 700; color: var(--muted); padding-inline-end: 20px; }
body.user-mode .premium-dashboard .dashboard-metric b {
  display: block; min-height: 0; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
  color: var(--text); font-size: clamp(25px, 2.5vw, 36px); letter-spacing: -.05em; line-height: 1.25; font-variant-numeric: tabular-nums;
}
body.user-mode .premium-dashboard .dashboard-metric b span { white-space: normal; }
body.user-mode .premium-dashboard #rate > span { font-size: clamp(20px, 2vw, 28px); }
body.user-mode .premium-dashboard .dashboard-metric b small { padding: 0; margin-top: 5px; font-size: 10px; color: var(--muted); line-height: 1.6; letter-spacing: 0; }
body.user-mode .premium-dashboard .dashboard-metric-mark { position: absolute; inset: 18px 16px auto auto; color: var(--premium-accent); opacity: .7; }
body.user-mode .premium-dashboard .dashboard-metric-mark svg { width: 18px; height: 18px; }
body.user-mode .premium-dashboard .dashboard-rhythm {
  width: auto; margin: 0; padding: 22px; border-radius: 20px; border: 1px solid var(--premium-edge);
  background: var(--premium-tint); box-shadow: var(--premium-shadow); text-align: start;
}
body.user-mode .premium-dashboard .dashboard-rhythm-head { color: var(--text); font-size: 13px; }
body.user-mode .premium-dashboard .dashboard-rhythm-head strong { font-size: 24px; font-weight: 700; color: var(--premium-accent); letter-spacing: -.05em; }
body.user-mode .premium-dashboard .dashboard-rhythm-rail { height: 7px; margin-top: 15px; background: color-mix(in srgb, var(--text) 9%, transparent); }
body.user-mode .premium-dashboard .dashboard-rhythm-rail span { background: linear-gradient(90deg, var(--premium-accent), var(--premium-secondary)); box-shadow: none; }
body.user-mode .premium-dashboard .dashboard-reading-link { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; color: var(--muted); font-size: 12px; text-decoration: none; }
body.user-mode .premium-dashboard .dashboard-reading-link:hover { color: var(--premium-accent); }
html[data-season-theme] body.user-mode .premium-dashboard .dashboard-todo { width: 100%; margin-top: 26px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body.user-mode .premium-dashboard .dashboard-todo-head { margin: 0 0 14px; }
body.user-mode .premium-dashboard .dashboard-todo-head::after { display: none; }
body.user-mode .premium-dashboard .dashboard-todo-head > span:first-child { color: var(--text); font-size: 17px; letter-spacing: -.02em; }
body.user-mode .premium-dashboard .dashboard-todo-head .premium-section-index { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .16em; }
body.user-mode .premium-dashboard .dashboard-actions { grid-template-columns: repeat(var(--dashboard-action-count, 5), minmax(0, 1fr)); gap: 12px; }
body.user-mode .premium-dashboard .dashboard-action {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 22px;
  padding: 22px; min-height: 138px; border: 1px solid var(--premium-edge); border-radius: 20px;
  background: var(--premium-surface); color: var(--text); box-shadow: var(--premium-shadow);
  text-align: start; text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.5;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.user-mode .premium-dashboard .dashboard-action > svg { width: 25px; height: 25px; color: var(--premium-accent); }
body.user-mode .premium-dashboard .dashboard-action > i { position: absolute; inset: 18px 20px auto auto; font-style: normal; color: var(--muted); font-size: 17px; }
html[data-season-theme] body.user-mode .premium-dashboard .dashboard-action.primary {
  border-color: var(--premium-accent); background: var(--premium-accent); color: var(--premium-on-accent);
  box-shadow: 0 16px 34px -23px var(--premium-accent);
}
html[data-season-theme] body.user-mode .premium-dashboard .dashboard-action.primary > :is(svg, i) { color: inherit; }
@media (hover: hover) {
  body.user-mode .premium-dashboard .dashboard-action:not(.disabled):hover { transform: translateY(-3px); border-color: var(--premium-accent); box-shadow: 0 18px 35px -25px var(--premium-accent); }
}

/* Personal space: the same materials, with a quieter editorial hierarchy. */
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view:not(.my-page-fullscreen) {
  width: min(1280px, 100%); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible;
}
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view::before { display: none; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-shell { gap: 20px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-head {
  min-height: 226px; padding: 30px 36px; border: 1px solid var(--premium-edge); border-radius: 26px;
  background: radial-gradient(ellipse at 95% 0, color-mix(in srgb, var(--premium-accent) 12%, transparent), transparent 65%), var(--premium-surface);
  box-shadow: var(--premium-shadow); gap: 30px;
}
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-copy { min-width: 0; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-eyebrow { color: var(--premium-accent); font-size: 10px; letter-spacing: .18em; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-head h1 { margin: 12px 0 16px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.055em; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-head p { color: var(--muted); font-size: 13px; max-width: 560px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-profile-summary { gap: 7px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-profile-summary strong { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-profile-edit-button { min-width: 36px; width: 36px; height: 36px; background: var(--premium-tint); color: var(--premium-accent); border: 1px solid var(--premium-edge); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-profile-summary > span { color: var(--premium-accent); border-color: var(--premium-edge); background: var(--premium-tint); }
.premium-profile-seal { position: relative; flex: 0 0 142px; width: 142px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--premium-edge); border-radius: 50%; background: var(--premium-tint); margin-inline-end: 12px; }
.premium-profile-seal::before, .premium-profile-seal::after { content: ''; position: absolute; inset: -11px; border: 1px solid color-mix(in srgb, var(--premium-accent) 20%, transparent); border-radius: inherit; }
.premium-profile-seal::after { inset: -22px; border-style: dashed; opacity: .55; transform: rotate(18deg); }
.premium-profile-seal svg { width: 80px; height: 80px; stroke: var(--premium-accent); stroke-width: 1; stroke-linecap: round; }
.premium-profile-orbit { position: absolute; width: 10px; height: 10px; top: 12px; right: -8px; border-radius: 50%; background: var(--premium-secondary); box-shadow: 0 0 0 6px var(--premium-surface); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-tabs {
  padding: 6px; border: 1px solid var(--premium-edge); border-radius: 17px;
  background: color-mix(in srgb, var(--premium-surface) 90%, transparent); box-shadow: none; gap: 5px;
}
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-tabs button { min-height: 46px; color: var(--muted); font-weight: 700; border-radius: 11px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-tabs button.active { background: var(--premium-accent); color: var(--premium-on-accent); box-shadow: 0 4px 12px -6px var(--premium-accent); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-tabs button.active::after { display: none; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view :is(.my-kpi, .my-card, .my-activity-card) {
  min-width: 0; border: 1px solid var(--premium-edge); border-radius: 20px; background: var(--premium-surface); box-shadow: var(--premium-shadow);
}
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi { padding: 23px; min-height: 145px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi::after { inset: auto 23px 20px auto; width: 32px; height: 3px; background: var(--premium-accent); border-radius: 9px; opacity: .65; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi strong { margin: 16px 0 8px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.05em; color: var(--text); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi :is(span, small) { color: var(--muted); font-size: 12px; line-height: 1.6; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view :is(.my-kpi-grid, .my-activity-strip) { gap: 14px; margin-bottom: 20px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-activity-card { position: relative; padding: 16px 20px; min-height: 100px; text-decoration: none; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-activity-card strong { font-size: 25px; color: var(--premium-accent); margin-top: 4px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view :is(.my-card, .my-worship-report > section) { padding: 24px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-card h2 { color: var(--text); font-size: 16px; border-color: var(--premium-edge); letter-spacing: -.03em; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-card h2::before { width: 4px; height: 14px; border-radius: 4px; background: var(--premium-accent); box-shadow: none; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view :is(.my-card-link, .schedule-more-button) { color: var(--premium-accent); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view :is(.my-flow-item, .journal-item, .reading-year-row, .schedule-week) { border: 1px solid var(--premium-edge); border-radius: 13px; background: var(--premium-tint); color: var(--text); box-shadow: none; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-flow-item { padding: 16px; min-width: 0; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-flow-item.done { background: color-mix(in srgb, var(--premium-secondary) 9%, var(--premium-surface)); border-color: color-mix(in srgb, var(--premium-secondary) 26%, transparent); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-flow-item :is(span, small) { color: var(--muted); overflow-wrap: anywhere; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-flow-item strong { color: var(--text); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .progress-ring { background: conic-gradient(var(--premium-accent) var(--value), var(--premium-edge) 0); box-shadow: none; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .progress-ring.blue { background: conic-gradient(var(--premium-secondary) var(--value), var(--premium-edge) 0); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .progress-ring::before { inset: 8px; border: 0; background: var(--premium-surface); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .reading-year-row i { background: linear-gradient(90deg, var(--premium-accent), var(--premium-secondary)); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-page-pane-grid { gap: 18px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view.my-page-fullscreen { background: var(--bg); padding: max(16px, var(--app-safe-active-top)) max(16px, var(--app-safe-active-right)) max(16px, var(--app-safe-active-bottom)) max(16px, var(--app-safe-active-left)); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-fullscreen .my-page-tabs { background: var(--premium-surface); }
html[data-season-theme] body.user-mode[data-path="/stats"] :is(.my-profile-edit-panel, .schedule-progress-modal-panel) { color: var(--text); background: var(--premium-surface); border-color: var(--premium-edge); border-radius: 24px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-profile-edit-panel :is(input, select) { background: var(--premium-tint); color: var(--text); border-color: var(--premium-edge); }

/* Reading, records and worship reports share the same theme materials. */
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-worship-top-grid { padding: 0; gap: 18px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view :is(.my-worship-metric, .my-worship-detail-grid article) { border: 1px solid var(--premium-edge); border-radius: 16px; background: var(--premium-surface); padding: 18px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-worship-score { background: radial-gradient(circle at center, var(--premium-surface) 0 59%, transparent 60%), conic-gradient(var(--premium-accent) var(--meter), var(--premium-edge) 0); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-worship-metric i { background: linear-gradient(90deg, var(--premium-accent), var(--premium-secondary)); height: 3px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view :is(.book-group h3, .spiritual-monthly-v3-card p) { color: var(--muted); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .mini-bar { background: var(--premium-edge); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .mini-bar i { background: linear-gradient(90deg, var(--premium-accent), var(--premium-secondary)); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .schedule-day { border-color: var(--premium-edge); background: var(--premium-surface); color: var(--text); border-radius: 11px; min-height: 48px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .schedule-day.done { background: color-mix(in srgb, var(--ok) 9%, var(--premium-surface)); border-color: color-mix(in srgb, var(--ok) 28%, var(--premium-edge)); color: var(--ok); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .schedule-week header button { background: var(--premium-surface); color: var(--premium-accent); border: 1px solid var(--premium-edge); border-radius: 9px; min-height: 44px; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .gold { color: var(--premium-on-accent); background: var(--premium-accent); border-color: var(--premium-accent); box-shadow: none; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view :is(.spiritual-monthly-v3-card, .spiritual-monthly-v3-domain-card) { border-color: var(--premium-edge); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .spiritual-monthly-v3-eyebrow { color: var(--premium-accent); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .spiritual-monthly-v3-domain-card { background: var(--premium-tint); }

/* Preserve explicitly hidden permission/module surfaces and avoid empty cards. */
html[data-season-theme] body.user-mode :is(.premium-dashboard, .my-page-view) [hidden] { display: none !important; }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .ring-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .progress-ring span { position: absolute; inset: 50% 0 auto; transform: translateY(-85%); }
html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .progress-ring small { position: absolute; inset: 60% 0 auto; margin: 0; }
@media (max-width: 760px) {
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-tabs .stats-fullscreen-toggle { position: sticky; inset-inline-end: 0; z-index: 2; background: var(--premium-surface); color: var(--premium-accent); box-shadow: -7px 0 0 var(--premium-surface); }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-tabs .stats-fullscreen-toggle.active { background: var(--premium-accent); color: var(--premium-on-accent); }
}

/* A personal journal shelf: document identity, readable titles and clear actions. */
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-mobile-tabs { border-color: var(--premium-edge); background: var(--premium-tint); box-shadow: none; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-mobile-tabs button { color: var(--muted); background: transparent; box-shadow: none; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-mobile-tabs button.active { color: var(--premium-on-accent); background: var(--premium-accent); border-color: var(--premium-accent); box-shadow: none; transform: none; }

html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library { container: word-note-shelf / inline-size; padding: 22px; border: 1px solid var(--premium-edge); border-radius: 22px; background: var(--premium-surface); box-shadow: var(--premium-shadow); }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library > header { align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-color: var(--premium-edge); }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library > header > div:first-child { min-width: 0; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-eyebrow { color: var(--premium-accent); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library h2 { margin: 8px 0 0; color: var(--text); font-size: 22px; letter-spacing: -.04em; line-height: 1.4; word-break: keep-all; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-title { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 8px; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-title h2 { min-width: 0; margin: 0; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library-title #wordNoteLibraryCount { flex: 0 0 auto; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel #wordNoteLibraryCount:empty { display: none; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-actions { flex: 0 0 auto; gap: 10px; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library #wordNoteLibraryCount { min-height: 30px; padding: 0 11px; border-color: var(--premium-edge); border-radius: 8px; background: var(--premium-tint); color: var(--muted); font-size: 11px; font-weight: 600; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library #wordNoteNew { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 15px; border: 1px solid var(--premium-accent); border-radius: 11px; background: var(--premium-accent); color: var(--premium-on-accent); box-shadow: none; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library #wordNoteNew span { color: inherit; font-size: 12px; font-weight: 700; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library #wordNoteNew svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-list { gap: 12px; padding: 4px; scrollbar-width: thin; scrollbar-gutter: stable; align-content: start; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item { position: relative; min-width: 0; gap: 0; padding: 18px; border: 1px solid var(--premium-edge); border-radius: 17px; background: var(--premium-surface); box-shadow: 0 5px 14px -12px color-mix(in srgb, var(--text) 35%, transparent); transition: border-color .2s ease, background .2s ease; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item.active { border-color: var(--premium-accent); background: var(--premium-tint); box-shadow: inset 3px 0 0 var(--premium-accent); }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-open { --word-note-meta-height: 31px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 18px; align-items: start; gap: 16px; padding: 0; min-height: 0; background: transparent; color: var(--text); text-align: start; border: 0; box-shadow: none; transform: none; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-open:hover { background: transparent; color: var(--text); transform: none; filter: none; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-document-mark { display: grid; place-items: center; min-width: 0; width: 52px; height: 66px; overflow: visible; border: 1px solid color-mix(in srgb, var(--premium-accent) 20%, var(--premium-edge)); border-radius: 9px 15px 9px 9px; background: linear-gradient(145deg, var(--premium-surface), var(--premium-tint)); color: var(--premium-accent); }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-document-mark svg { width: 31px; height: 39px; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-body { display: grid; min-width: 0; gap: 7px; overflow: visible; white-space: normal; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-kicker { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px 12px; min-width: 0; overflow: visible; white-space: normal; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-status { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; box-sizing: border-box; min-height: var(--word-note-meta-height); gap: 5px; padding: 0 7px; border-radius: 6px; background: var(--premium-tint); color: var(--premium-accent); font-size: 10px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-status::before { content: ''; width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library [data-word-note-item-status="completed"] .word-note-item-status { color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, var(--premium-surface)); }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-date { display: grid; grid-template-columns: max-content; gap: 1px; min-width: 0; margin: 0; padding: 0; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.5; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-date::-webkit-scrollbar { display: none; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-date-line { display: block; white-space: nowrap; color: inherit; font: inherit; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-open b { display: block; overflow: visible; text-overflow: clip; color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.55; letter-spacing: -.025em; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-meta { color: var(--premium-accent); font-size: 11px; font-weight: 600; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.75; white-space: normal; overflow-wrap: anywhere; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-open-arrow { width: 18px; height: 18px; margin-top: 5px; stroke: var(--premium-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .65; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item-actions { gap: 6px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--premium-edge); flex-wrap: wrap; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item-actions button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 40px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; box-shadow: none; transform: none; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item-actions button::before { content: ''; display: block; width: 15px; height: 15px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--word-note-action-icon) center / contain no-repeat; mask: var(--word-note-action-icon) center / contain no-repeat; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library [data-word-note-edit-id] { --word-note-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 5 5L8 21l-5 1 1-5ZM13 6l5 5M12 22h10'/%3E%3C/svg%3E"); }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library [data-word-note-print-id] { --word-note-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 18H3V9h18v9h-3M6 14h12v8H6ZM17 12h1'/%3E%3C/svg%3E"); }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library [data-word-note-delete-id] { --word-note-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7m4-7v7'/%3E%3C/svg%3E"); color: var(--care); }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item-actions button:disabled { opacity: .5; cursor: progress; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-empty { display: grid; justify-items: center; gap: 18px; padding: 54px 24px; border: 1px dashed var(--premium-edge); border-radius: 17px; background: var(--premium-tint); color: var(--muted); font-size: 14px; line-height: 1.8; text-align: center; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-empty::before { content: ''; width: 44px; height: 52px; border: 1px solid var(--premium-accent); border-radius: 7px 14px 7px 7px; background: repeating-linear-gradient(transparent 0 10px, color-mix(in srgb, var(--premium-accent) 25%, transparent) 10px 11px) center / 23px 33px no-repeat; opacity: .65; }
html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library :is(button):focus-visible { outline: 2px solid var(--premium-accent); outline-offset: 2px; }
@media (hover: hover) {
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item:hover { border-color: color-mix(in srgb, var(--premium-accent) 45%, var(--premium-edge)); }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item-actions button:hover { background: var(--premium-tint); color: var(--premium-accent); }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item-actions [data-word-note-delete-id]:hover { background: color-mix(in srgb, var(--care) 8%, transparent); color: var(--care); }
}
@container word-note-shelf (max-width: 520px) {
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-open { grid-template-columns: 26px minmax(0, 1fr) 15px; gap: 6px 8px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-document-mark { grid-column: 1; grid-row: 1; width: 26px; height: var(--word-note-meta-height); border: 0; border-radius: 0; background: transparent; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-document-mark svg { width: 24px; height: 30px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-body { display: contents; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-kicker { display: flex; grid-column: 2; grid-row: 1; align-self: center; gap: 6px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-open b { grid-column: 1 / -1; grid-row: 2; font-size: 16px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library :is(.word-note-item-meta, .word-note-item-excerpt) { grid-column: 1 / -1; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-open-arrow { grid-column: 3; grid-row: 1; align-self: center; width: 15px; height: 15px; margin: 0; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item { padding: 15px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-body { gap: 6px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item-actions button { min-height: 44px; }
}
@media (max-width: 600px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-open { grid-template-columns: 26px minmax(0, 1fr) 15px; gap: 6px 8px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-document-mark { grid-column: 1; grid-row: 1; width: 26px; height: var(--word-note-meta-height); border: 0; border-radius: 0; background: transparent; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-document-mark svg { width: 24px; height: 30px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-body { display: contents; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-item-kicker { display: flex; grid-column: 2; grid-row: 1; align-self: center; gap: 6px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-open b { grid-column: 1 / -1; grid-row: 2; font-size: 16px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library :is(.word-note-item-meta,.word-note-item-excerpt) { grid-column: 1 / -1; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-open-arrow { grid-column: 3; grid-row: 1; align-self: center; width: 15px; height: 15px; margin: 0; }
}
@media (max-width: 760px) {
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library { padding: 16px; border-radius: 18px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library > header { align-items: start; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library h2 { font-size: 20px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-actions { flex: 1 0 auto; justify-content: flex-end; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-list { max-height: none; overflow: visible; padding: 2px; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item-actions { justify-content: stretch; }
  html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library .word-note-library-item-actions button { flex: 1; flex-direction: column; min-width: 0; min-height: 52px; gap: 4px; padding: 5px 3px; white-space: nowrap; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library *, html[data-season-theme] body.user-mode[data-path="/bible"] #bibleNotesPanel .word-note-library { transition: none; animation: none; } }

/* Entry: a brand canvas next to a focused, accessible sign-in form. */
body.login-mode .premium-login-shell {
  width: min(1200px, 100%); min-height: 100svh; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 76px);
  padding: max(30px, env(safe-area-inset-top)) max(30px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(30px, env(safe-area-inset-left));
}
body.login-mode .login-visual { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 0; }
.login-wordmark { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.login-wordmark > span:last-child { font-weight: 500; font-size: 9px; letter-spacing: .18em; padding-inline-start: 10px; border-inline-start: 1px solid var(--premium-edge); }
.premium-brand-symbol { color: var(--premium-accent); font-size: 26px; }
.login-visual-content { padding: 46px 0 26px; }
.login-display-title { margin: 16px 0 8px; color: var(--text); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(58px, 6.6vw, 86px); line-height: .98; letter-spacing: -.045em; }
.login-display-title em { color: var(--premium-accent); font-weight: 400; }
.login-visual .premium-scene { margin: -20px 0 0 auto; max-width: 310px; }
.login-visual-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 11px; font-weight: 600; }
.login-visual-footer i { width: 3px; height: 3px; border-radius: 50%; background: var(--premium-accent); }
html[data-season-theme] body.login-mode .premium-login-shell .login-card {
  width: 100%; min-width: 0; max-width: 470px; padding: clamp(26px, 3.2vw, 42px); margin: 0; text-align: start;
  border: 1px solid var(--premium-edge); border-radius: 28px; background: var(--premium-surface);
  box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--text) 28%, transparent), inset 0 1px 0 color-mix(in srgb, var(--text) 3%, transparent);
}
html[data-season-theme] body.login-mode .premium-login-shell .login-card > .eyebrow { color: var(--premium-accent); font-size: 11px; letter-spacing: .12em; text-align: start; }
html[data-season-theme] body.login-mode .premium-login-shell .login-card h1 { margin: 14px 0 12px; font-size: clamp(25px, 2.8vw, 34px); letter-spacing: -.05em; line-height: 1.3; }
html[data-season-theme] body.login-mode .premium-login-shell .login-card > p { word-break: keep-all; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 28px; }
body.login-mode .premium-login-shell #loginForm { gap: 18px; }
body.login-mode .premium-login-shell .login-field { display: grid; gap: 9px; color: var(--text); font-size: 12px; font-weight: 700; text-align: start; }
html[data-season-theme] body.login-mode .premium-login-shell .login-field input { min-height: 50px; width: 100%; min-width: 0; padding: 13px 15px; border: 1px solid var(--premium-edge); border-radius: 12px; background: var(--premium-tint); color: var(--text); font-size: 16px; font-weight: 400; box-shadow: none; }
html[data-season-theme] body.login-mode .premium-login-shell .login-field input::placeholder { color: var(--muted); opacity: .8; }
html[data-season-theme] body.login-mode .premium-login-shell #loginForm > button { min-height: 50px; margin-top: 4px; border: 1px solid var(--premium-accent); border-radius: 12px; background: var(--premium-accent); color: var(--premium-on-accent); font-size: 14px; box-shadow: 0 10px 24px -16px var(--premium-accent); }
body.login-mode .premium-login-shell .login-remember-row { margin: -2px 0 4px; flex-wrap: wrap; gap: 8px; }
body.login-mode .premium-login-shell .login-remember-option { color: var(--text); font-size: 12px; font-weight: 500; gap: 8px; }
body.login-mode .premium-login-shell .login-remember-option input { accent-color: var(--premium-accent); width: 17px; height: 17px; min-height: 0; }
body.login-mode .premium-login-shell .login-remember-hint { color: var(--muted); font-size: 10px; }
body.login-mode .premium-login-shell .appearance-settings { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--premium-edge); }
body.login-mode .premium-login-shell .login-card > .locale-picker { gap: 7px; margin-top: 12px; }
html[data-season-theme] body.login-mode .premium-login-shell .login-card > .locale-picker :is(.lang-choice, .locale-more, .pwa-install-entry) { min-height: 42px; padding: 9px 7px; border: 1px solid var(--premium-edge); border-radius: 10px; color: var(--muted); background: transparent; box-shadow: none; }
body.login-mode .premium-login-shell .login-card > .locale-picker .lang-choice .flag { width: 20px; height: 14px; border-radius: 3px; }
body.login-mode .premium-login-shell .login-card > .locale-picker .lang-name { font-size: 9px; }
body.login-mode .premium-login-shell .login-card > .locale-picker .lang-choice { display: flex; align-items: center; justify-content: center; gap: 7px; }
body.login-mode .premium-login-shell .locale-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:is(.user-mode, .login-mode) :is(.premium-dashboard, .my-page-view, .premium-login-shell) :is(a, button, input, select):focus-visible { outline: 2px solid var(--premium-accent); outline-offset: 4px; }

@media (max-width: 1100px) {
  body.user-mode .premium-dashboard .dashboard-insights { grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr); }
  body.user-mode .premium-dashboard .dashboard-metric { padding: 18px 14px; }
  body.user-mode .premium-dashboard .dashboard-metric-mark { display: none; }
  body.user-mode .premium-dashboard .dashboard-metric-label { padding: 0; }
  body.user-mode .premium-dashboard .dashboard-action { padding: 20px 16px; }
  body.login-mode .premium-login-shell { gap: 32px; }
}
@media (max-width: 760px) {
  body.user-mode:is([data-path="/dashboard"], [data-path="/stats"]) .user-main { padding: 18px max(14px, env(safe-area-inset-right)) 36px max(14px, env(safe-area-inset-left)); }
  body.user-mode .premium-dashboard .dashboard-hero { grid-template-columns: minmax(0, 1fr) 165px; gap: 12px; min-height: 230px; padding: 24px; border-radius: 22px; }
  body.user-mode .premium-dashboard h1 { font-size: 32px; }
  body.user-mode .premium-dashboard .dashboard-insights { grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
  body.user-mode .premium-dashboard .dashboard-metric { min-height: 120px; gap: 14px; padding: 18px; }
  body.user-mode .premium-dashboard .dashboard-rhythm { padding: 18px 20px; }
  body.user-mode .premium-dashboard .dashboard-rhythm-head strong { font-size: 20px; }
  body.user-mode .premium-dashboard .dashboard-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.user-mode .premium-dashboard .dashboard-action { min-height: 122px; gap: 18px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-head { min-height: 200px; padding: 26px; gap: 20px; }
  .premium-profile-seal { flex-basis: 90px; width: 90px; margin-inline-end: 10px; }
  .premium-profile-seal svg { width: 60px; height: 60px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi { min-height: 130px; padding: 20px 16px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-page-pane-grid { grid-template-columns: 1fr; }
  body.login-mode .premium-login-shell { grid-template-columns: 1fr; gap: 25px; padding: max(24px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
  body.login-mode .login-visual { padding: 0; max-width: 470px; width: 100%; justify-self: center; }
  .login-visual-content { display: none; }
  .login-visual-footer { display: none; }
  html[data-season-theme] body.login-mode .premium-login-shell .login-card { justify-self: center; }
}
@media (max-width: 480px) {
  body.user-mode .premium-dashboard .dashboard-hero { grid-template-columns: minmax(0, 1fr) 106px; min-height: 208px; padding: 22px 20px; gap: 8px; }
  body.user-mode .premium-dashboard h1 { margin: 14px 0 12px; font-size: 28px; gap: 8px; }
  body.user-mode .premium-dashboard .dashboard-logo-preview-trigger { width: 28px; height: 28px; }
  body.user-mode .premium-dashboard .dashboard-welcome { font-size: 13px; overflow-wrap: anywhere; }
  body.user-mode .premium-dashboard .dashboard-session { font-size: 10px; padding: 5px 8px; }
  body.user-mode .premium-dashboard .premium-scene { width: 118px; }
  body.user-mode .premium-dashboard .dashboard-metrics { gap: 8px; }
  body.user-mode .premium-dashboard .dashboard-metric { padding: 14px 11px; border-radius: 16px; min-height: 112px; }
  body.user-mode .premium-dashboard .dashboard-metric b { font-size: 25px; }
  body.user-mode .premium-dashboard .dashboard-metric-label { font-size: 10px; }
  body.user-mode .premium-dashboard #rate > span { font-size: 18px; }
  body.user-mode .premium-dashboard .dashboard-metric b small { font-size: 9px; }
  body.user-mode .premium-dashboard .dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.user-mode .premium-dashboard .dashboard-action { min-height: 112px; padding: 18px; border-radius: 17px; font-size: 14px; }
  body.user-mode .premium-dashboard .dashboard-action.primary { grid-column: 1 / -1; min-height: 72px; flex-direction: row; align-items: center; gap: 14px; }
  body.user-mode .premium-dashboard .dashboard-action.primary > i { inset: 25px 20px auto auto; }
  body.user-mode .premium-dashboard .dashboard-todo { margin-top: 22px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-shell { gap: 14px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-head { min-height: 0; padding: 24px 20px; border-radius: 22px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-head h1 { font-size: 30px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-head p { font-size: 12px; }
  .premium-profile-seal { display: none; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-tabs { gap: 4px; padding: 5px; border-radius: 14px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-tabs button { padding-inline: 12px; font-size: 12px; min-height: 44px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi { min-height: 127px; padding: 15px 11px; border-radius: 16px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi strong { font-size: 25px; margin: 15px 0 9px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi :is(span, small) { font-size: 10px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-kpi::after { display: none; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-activity-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-activity-card { min-height: 98px; padding: 16px; border-radius: 16px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-card { padding: 20px 16px; border-radius: 18px; }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-today-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-season-theme] body.user-mode[data-path="/stats"] .my-page-view .my-flow-item { padding: 13px; }
  body.login-mode .premium-login-shell { gap: 22px; align-content: center; }
  .login-wordmark { font-size: 12px; gap: 8px; }
  .login-wordmark > span:last-child { font-size: 8px; }
  html[data-season-theme] body.login-mode .premium-login-shell .login-card { border-radius: 23px; padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.user-mode, .login-mode) :is(.premium-dashboard, .my-page-view, .premium-login-shell) *,
  body.user-mode .user-top nav .user-nav-link { animation: none; transition: none; scroll-behavior: auto; }
}
@media print {
  body:is(.user-mode, .login-mode) :is(.premium-scene, .premium-profile-seal, .login-visual) { display: none; }
}
