/* ============================================================
   TSSHCo Chronos — light appearance
   Loaded after styles.css / widgets.css. Activated by
   body[data-mode="light"], with system mode resolved in app.js.
   ============================================================ */
body[data-mode="light"] {
  --bg: #f4f1e9;
  --bg-2: #ece8de;
  --panel: rgba(255, 255, 255, .78);
  --panel-solid: #ffffff;
  --panel-soft: rgba(255, 255, 255, .62);
  --text: #182130;
  --text-soft: #3b4658;
  --muted: #657183;
  --faint: #929cab;
  --line: rgba(24, 33, 48, .105);
  --line-strong: rgba(24, 33, 48, .18);
  --accent: #5e7fb5;
  --accent-2: #c77c55;
  --accent-3: #4e9b83;
  --accent-soft: rgba(94, 127, 181, .12);
  --accent-2-soft: rgba(199, 124, 85, .12);
  --danger: #c64756;
  --ok: #2d8d6b;
  --warn: #b07821;
  --shadow: 0 26px 70px rgba(72, 67, 54, .14);
  --shadow-soft: 0 14px 34px rgba(72, 67, 54, .09);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .7);
  color: var(--text);
}
body[data-mode="light"][data-season="spring"] { --accent: #4f9176; --accent-2: #c8796c; --accent-3: #aa863b; --glow-a: rgba(111, 181, 148, .18); --glow-b: rgba(224, 144, 129, .13); }
body[data-mode="light"][data-season="summer"] { --accent: #2d849a; --accent-2: #b77e24; --accent-3: #c76456; --glow-a: rgba(57, 160, 185, .15); --glow-b: rgba(236, 172, 73, .13); }
body[data-mode="light"][data-season="autumn"] { --accent: #b46c35; --accent-2: #b8543d; --accent-3: #9c8333; --glow-a: rgba(203, 113, 72, .14); --glow-b: rgba(218, 165, 82, .14); }
body[data-mode="light"][data-season="winter"] { --accent: #5878ad; --accent-2: #8da6b6; --accent-3: #7b80b9; --glow-a: rgba(103, 131, 188, .15); --glow-b: rgba(146, 177, 205, .13); }

body[data-mode="light"] .ambient { background:
  radial-gradient(ellipse 76% 52% at 12% -10%, var(--glow-a), transparent 62%),
  radial-gradient(ellipse 66% 46% at 100% 4%, var(--glow-b), transparent 66%),
  radial-gradient(ellipse 68% 64% at 52% 116%, rgba(150, 166, 194, .12), transparent 70%),
  linear-gradient(160deg, #f7f4ed 0%, #f1eee6 48%, #eae6dc 100%); }
body[data-mode="light"] .ambient::after { background: linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.4)); }
body[data-mode="light"] .ambient-grid { background-image: linear-gradient(rgba(24,33,48,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(24,33,48,.035) 1px, transparent 1px); }
body[data-mode="light"] .grain { opacity: .035; }
body[data-mode="light"] #seasonCanvas { opacity: .55; }

body[data-mode="light"] .splash { background: radial-gradient(circle at 50% 42%, #fbf9f4, #e9e4d9 70%); }
body[data-mode="light"] .splash-mark { background: rgba(255,255,255,.6); border-color: rgba(24,33,48,.12); box-shadow: 0 0 80px var(--glow-a); }
body[data-mode="light"] .splash-word { color: var(--text-soft); }
body[data-mode="light"] .splash-line { background: rgba(24,33,48,.12); }

body[data-mode="light"] .sidebar { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(246,243,236,.86)); border-color: var(--line); box-shadow: 12px 0 40px rgba(72,67,54,.05); }
body[data-mode="light"] .side-link:hover { background: rgba(24,33,48,.045); }
body[data-mode="light"] .side-link.active { background: linear-gradient(100deg, var(--accent-soft), rgba(255,255,255,.4)); border-color: color-mix(in srgb, var(--accent) 20%, transparent); }
body[data-mode="light"] .side-link.active::before { box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent); }
body[data-mode="light"] .side-tour { background: rgba(255,255,255,.55); }
body[data-mode="light"] .side-tour:hover { background: rgba(255,255,255,.8); }
body[data-mode="light"] .topbar { background: rgba(250,248,242,.65); border-color: var(--line); }
body[data-mode="light"] .search-pill { background: rgba(255,255,255,.6); }
body[data-mode="light"] .search-pill:hover { background: rgba(255,255,255,.9); }
body[data-mode="light"] .icon-btn { background: rgba(255,255,255,.55); }
body[data-mode="light"] .icon-btn:hover { background: #fff; }
body[data-mode="light"] .theme-pop { background: rgba(252,250,245,.98); border-color: var(--line-strong); }
body[data-mode="light"] .theme-option { color: var(--text-soft); }
body[data-mode="light"] .theme-option:hover { background: rgba(24,33,48,.05); }
body[data-mode="light"] .theme-option.active { border-color: var(--accent); }
body[data-mode="light"] .notify-dot { box-shadow: 0 0 0 2px #f4f1e9; }

body[data-mode="light"] .card { background: linear-gradient(152deg, rgba(255,255,255,.88), rgba(249,246,239,.79)); border-color: var(--line); box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.85); }
body[data-mode="light"] .card::before { background: radial-gradient(ellipse at 12% 0%, rgba(255,255,255,.7), transparent 46%); }
body[data-mode="light"] .eyebrow { color: #7b8493; }
body[data-mode="light"] .eyebrow::before { background: var(--accent); }
body[data-mode="light"] .btn-ghost { background: rgba(255,255,255,.5); border-color: var(--line); color: var(--text-soft); }
body[data-mode="light"] .btn-ghost:hover { background: #fff; border-color: var(--line-strong); }
body[data-mode="light"] .btn-glass { background: rgba(255,255,255,.62); border-color: var(--line); color: var(--text); }
body[data-mode="light"] .btn-primary { color: #fff; background: linear-gradient(135deg, #5478ab, #7292c2 58%, #c7825c 140%); box-shadow: 0 12px 28px rgba(70,104,153,.22); }
body[data-mode="light"] .btn-danger { background: rgba(198,71,86,.08); border-color: rgba(198,71,86,.24); color: #a7313f; }
body[data-mode="light"] .status-pill { background: rgba(45,141,107,.09); border-color: rgba(45,141,107,.22); }
body[data-mode="light"] .status-pill.muted { background: rgba(24,33,48,.035); }
body[data-mode="light"] .badge-soft { background: var(--accent-soft); }
body[data-mode="light"] .segmented { background: rgba(24,33,48,.045); }
body[data-mode="light"] .segmented button.active { background: #fff; color: var(--text); box-shadow: 0 3px 10px rgba(72,67,54,.1); }
body[data-mode="light"] .count-pill { background: var(--accent-soft); }

body[data-mode="light"] .hero-calendar-body .day-peek { background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(247,243,235,.6)); border-color: var(--line); }
body[data-mode="light"] .mini-day:hover { background: rgba(24,33,48,.055); }
body[data-mode="light"] .mini-day.out { color: rgba(24,33,48,.28); }
body[data-mode="light"] .mini-day.out .sub { color: rgba(24,33,48,.18); }
body[data-mode="light"] .mini-day.today .num { background: var(--accent); color: #fff; }
body[data-mode="light"] .mini-day.today.selected .num { color: #fff; }
body[data-mode="light"] .mini-day.holiday:not(.today) .num { color: #c64756; }
body[data-mode="light"] .triple-dates span { background: rgba(24,33,48,.045); }
body[data-mode="light"] .triple-dates b { color: var(--text-soft); }
body[data-mode="light"] .peek-holiday { background: rgba(198,71,86,.08); border-color: rgba(198,71,86,.15); color: #b1313f; }
body[data-mode="light"] .peek-empty { border-color: var(--line-strong); }
body[data-mode="light"] .peek-add { border-color: var(--line-strong); }
body[data-mode="light"] .agenda-item:hover, body[data-mode="light"] .peek-event:hover { background: rgba(24,33,48,.04); }
body[data-mode="light"] .agenda-time { background: var(--accent-soft); }
body[data-mode="light"] .moon-art { box-shadow: inset -18px -6px 0 #c7d1e4, 0 0 50px rgba(124,148,190,.25); }

body[data-mode="light"] .analog-svg { filter: drop-shadow(0 16px 28px rgba(72,67,54,.16)); }
body[data-mode="light"] .dial-face { fill: rgba(255,255,255,.78); stroke: rgba(24,33,48,.14); }
body[data-mode="light"] .dial-ring { stroke: rgba(24,33,48,.19); }
body[data-mode="light"] .dial-ring.inner { stroke: rgba(24,33,48,.08); }
body[data-mode="light"] .tick { stroke: rgba(24,33,48,.36); }
body[data-mode="light"] .tick.major { stroke: var(--accent); }
body[data-mode="light"] .hand { stroke: #222c3c; }
body[data-mode="light"] .hand-second { stroke: var(--accent-2); filter: drop-shadow(0 0 3px rgba(199,124,85,.4)); }
body[data-mode="light"] .center-core { fill: #fff; }
body[data-mode="light"] .center-cap { stroke: #fff; }
body[data-mode="light"] .clock-number { fill: rgba(24,33,48,.58); }
body[data-mode="light"] .clock-number.major { fill: var(--text); }
body[data-mode="light"] .clock-brand-text { fill: var(--accent); }
body[data-mode="light"] .clock-zone { border-color: var(--line); }
body[data-mode="light"] .digital-time { color: var(--text); }
body[data-mode="light"] .clock-halo { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 66%); }

body[data-mode="light"] .weather-mini-days .wmd { background: rgba(255,255,255,.4); }
body[data-mode="light"] .wmd.active { background: var(--accent-soft); }
body[data-mode="light"] .weather-card .weather-art .cloud { background: #fff; }
body[data-mode="light"] .weather-hero { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 16%, #fff), rgba(255,255,255,.82) 50%, rgba(248,245,238,.9)); }
body[data-mode="light"] .weather-hero-temp sup { color: var(--accent); }
body[data-mode="light"] .feature-row, body[data-mode="light"] .forecast-row { border-color: rgba(24,33,48,.06); }
body[data-mode="light"] .hour-cell.now { background: var(--accent-soft); }
body[data-mode="light"] .forecast-row .fr-bar { background: rgba(24,33,48,.08); }
body[data-mode="light"] .detail-cell { background: rgba(255,255,255,.4); border-color: var(--line); }
body[data-mode="light"] .weather-source { color: var(--faint); }
body[data-mode="light"] .scene-stage { box-shadow: 0 20px 44px rgba(72,67,54,.16); }

body[data-mode="light"] .calendar-toolbar { background: rgba(255,255,255,.6); }
body[data-mode="light"] .full-day { background: rgba(255,255,255,.42); }
body[data-mode="light"] .full-day:hover { background: #fff; }
body[data-mode="light"] .full-day.out { background: transparent; color: rgba(24,33,48,.26); }
body[data-mode="light"] .full-day.today { background: var(--accent-soft); }
body[data-mode="light"] .full-day.selected { background: color-mix(in srgb, var(--accent) 14%, #fff); }
body[data-mode="light"] .full-day.today .fd-num { color: #fff; }
body[data-mode="light"] .full-day.holiday .fd-num, body[data-mode="light"] .full-day .fd-holiday { color: #b1313f; }
body[data-mode="light"] .fd-event { color: var(--text-soft); }
body[data-mode="light"] .day-panel { background: rgba(255,255,255,.7); }
body[data-mode="light"] .panel-event { background: rgba(255,255,255,.45); }
body[data-mode="light"] .panel-event:hover { background: #fff; }
body[data-mode="light"] .panel-empty { border-color: var(--line-strong); }
body[data-mode="light"] .layer-row { color: var(--muted); }
body[data-mode="light"] .agenda-group-label::after { background: var(--line); }

body[data-mode="light"] .clock-variant { background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(248,245,238,.4)); }
body[data-mode="light"] .clock-variant:hover { border-color: var(--line-strong); }
body[data-mode="light"] .mini-widget { background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(248,245,238,.5)); }
body[data-mode="light"] .classic-weather-widget { background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 15%, #fff), rgba(255,255,255,.55)); }
body[data-mode="light"] .widget-controls { border-color: var(--line); }
body[data-mode="light"] .chip { background: rgba(255,255,255,.45); }
body[data-mode="light"] .chip.active { background: var(--accent-soft); }

body[data-mode="light"] .provider-card, body[data-mode="light"] .ics-card, body[data-mode="light"] .connection-note { background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(249,246,239,.66)); }
body[data-mode="light"] .provider-icon.apple { background: #202733; }
body[data-mode="light"] .provider-icon.apple::before, body[data-mode="light"] .provider-icon.apple::after { background: #fff; }
body[data-mode="light"] .ics-illustration { background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 66%), linear-gradient(140deg, rgba(255,255,255,.4), transparent); }
body[data-mode="light"] .note-badges span { border-color: var(--line); }

body[data-mode="light"] .permission-orb { background: var(--accent-soft); }
body[data-mode="light"] .reminder-row { border-color: rgba(24,33,48,.06); }
body[data-mode="light"] .reminder-icon { background: var(--accent-soft); }
body[data-mode="light"] .reminder-toggle { background: rgba(24,33,48,.14); }
body[data-mode="light"] .reminder-toggle::after { background: #fff; }
body[data-mode="light"] .reminder-row.on .reminder-toggle::after { background: #fff; }
body[data-mode="light"] .reminder-delete:hover { background: rgba(198,71,86,.08); }

body[data-mode="light"] .season-card { background: rgba(255,255,255,.45); }
body[data-mode="light"] .season-card-copy { background: transparent; }
body[data-mode="light"] .settings-profile, body[data-mode="light"] .settings-season, body[data-mode="light"] .settings-region, body[data-mode="light"] .settings-data { background: linear-gradient(160deg, rgba(255,255,255,.8), rgba(249,246,239,.66)); }
body[data-mode="light"] .setting-toggles .switch-line { border-color: rgba(24,33,48,.06); }
body[data-mode="light"] .about-box { border-color: var(--line); }
body[data-mode="light"] .settings-row { border-color: var(--line); }
body[data-mode="light"] .settings-note { color: var(--muted); }

body[data-mode="light"] .bottom-nav { background: rgba(252,250,245,.94); border-color: var(--line-strong); box-shadow: 0 18px 50px rgba(72,67,54,.16); }
body[data-mode="light"] .bottom-nav button { color: var(--faint); }
body[data-mode="light"] .bottom-nav button.active { color: var(--accent); background: var(--accent-soft); }
body[data-mode="light"] .bottom-fab { color: #fff !important; }

body[data-mode="light"] .modal-root { background: rgba(239,235,226,.72); }
body[data-mode="light"] .modal-sheet { background: linear-gradient(160deg, #fffdf8, #f3efe6); border-color: var(--line-strong); box-shadow: 0 40px 100px rgba(72,67,54,.22); }
body[data-mode="light"] .modal-sheet .field input, body[data-mode="light"] .modal-sheet .field select, body[data-mode="light"] .modal-sheet .field textarea { background: rgba(255,255,255,.7); }
body[data-mode="light"] .cal-tabs { background: rgba(24,33,48,.04); }
body[data-mode="light"] .cal-tabs button.active { background: #fff; color: var(--text); }
body[data-mode="light"] .color-dot.active { border-color: #182130; box-shadow: 0 0 0 2px #fff; }
body[data-mode="light"] .toast { background: rgba(255,253,248,.98); border-color: var(--line-strong); color: var(--text-soft); box-shadow: var(--shadow); }
body[data-mode="light"] .alarm-overlay { background: rgba(239,235,226,.8); }
body[data-mode="light"] .alarm-card { background: linear-gradient(160deg, #fffdf8, #f3efe6); border-color: rgba(94,127,181,.3); color: var(--text); }
body[data-mode="light"] .alarm-card p { color: var(--muted); }

body[data-mode="light"] .onboarding { background:
  radial-gradient(ellipse 64% 52% at 20% 0%, var(--glow-a), transparent 60%),
  radial-gradient(ellipse 55% 44% at 94% 22%, var(--glow-b), transparent 62%),
  linear-gradient(150deg, rgba(250,248,242,.96), rgba(239,235,226,.98)); }
body[data-mode="light"] .lang-search { background: rgba(255,255,255,.55); }
body[data-mode="light"] .lang-card { background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(250,247,241,.5)); border-color: var(--line); }
body[data-mode="light"] .lang-card:hover { background: #fff; }
body[data-mode="light"] .lang-card.selected { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 14%, #fff), rgba(255,255,255,.7)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 16px 36px rgba(72,67,54,.1); }
body[data-mode="light"] .lang-card.selected .check { background: var(--accent); border-color: var(--accent); color: #fff; }
body[data-mode="light"] .onb-note { color: var(--faint); }
body[data-mode="light"] .ready-orb { background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.8), rgba(255,255,255,.4) 60%); border-color: var(--line-strong); }
body[data-mode="light"] .ready-chips span { background: rgba(255,255,255,.55); }
body[data-mode="light"] .onb-bottom { color: var(--faint); }
body[data-mode="light"] .onb-progress { background: rgba(24,33,48,.1); }
body[data-mode="light"] .field input, body[data-mode="light"] .field select, body[data-mode="light"] .field textarea { background: rgba(255,255,255,.55); border-color: var(--line); color: var(--text); }
body[data-mode="light"] .field input::placeholder { color: var(--faint); }
body[data-mode="light"] .input-with-icon { background: rgba(255,255,255,.55); border-color: var(--line); }
body[data-mode="light"] select option { background: #fff; color: #182130; }
body[data-mode="light"] input[type="date"], body[data-mode="light"] input[type="time"] { color-scheme: light; }
body[data-mode="light"] input[type="date"]::-webkit-calendar-picker-indicator, body[data-mode="light"] input[type="time"]::-webkit-calendar-picker-indicator { filter: none; opacity: .6; }
body[data-mode="light"] .switch { background: rgba(24,33,48,.16); }
body[data-mode="light"] .switch::after { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
body[data-mode="light"] .switch-line input:checked + .switch { background: var(--accent); }
body[data-mode="light"] .switch-line input:checked + .switch::after { background: #fff; }
body[data-mode="light"] ::-webkit-scrollbar-thumb { background: rgba(24,33,48,.18); }

/* Mode chooser */
.appearance-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 13px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.mode-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--muted); font-size: 9px; }
.mode-choice svg { width: 16px; height: 16px; }
.mode-choice:hover { border-color: var(--line-strong); color: var(--text-soft); }
.mode-choice.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
body[data-mode="light"] .mode-choice { background: rgba(255,255,255,.5); }
body[data-mode="light"] .mode-choice.active { background: var(--accent-soft); }
.mode-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.03); gap: 2px; }
.mode-seg button { min-height: 29px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 9.5px; display: inline-flex; align-items: center; gap: 5px; }
.mode-seg button svg { width: 13px; height: 13px; }
.mode-seg button.active { background: rgba(255,255,255,.1); color: var(--text); }
body[data-mode="light"] .mode-seg { background: rgba(24,33,48,.04); }
body[data-mode="light"] .mode-seg button.active { background: #fff; color: var(--text); box-shadow: 0 2px 6px rgba(72,67,54,.08); }

/* Account */
.account-card { padding: 0 24px 20px; }
.account-status { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.03); margin-bottom: 10px; }
.account-avatar { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color:#fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.account-status b { display: block; font-size: 11px; font-weight: 500; }
.account-status em { display: block; color: var(--faint); font-size: 8.5px; font-style: normal; margin-top: 2px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.account-sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); margin-inline-start: auto; }
.account-sync-dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
body[data-mode="light"] .account-status { background: rgba(255,255,255,.5); }
.auth-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); margin-bottom: 14px; }
.auth-tabs button { flex: 1; min-height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10.5px; }
.auth-tabs button.active { background: rgba(255,255,255,.1); color: var(--text); }
body[data-mode="light"] .auth-tabs { background: rgba(24,33,48,.04); }
body[data-mode="light"] .auth-tabs button.active { background: #fff; }
.auth-note { text-align: center; color: var(--faint); font-size: 9px; margin-top: 12px; line-height: 1.6; }
.auth-error { color: var(--danger); font-size: 10px; margin-top: 8px; min-height: 14px; }
.cloud-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--muted); }
.cloud-badge svg { width: 10px; height: 10px; }
.cloud-badge.on { color: var(--ok); }
