/* ==========================================================================
   CloudSea Oracle — 晨光主题（默认）
   浅色天空、白瓷卡片、青绿与日出橙；深色“夜色”仍由 styles.css 提供。
   ========================================================================== */

html[data-theme="day"] {
  color-scheme: light;
  --ink: #14283c;
  --ink-soft: #2e4a61;
  --muted: #607c93;
  --muted-2: #8298ac;
  --line: rgba(22, 62, 91, 0.12);
  --line-strong: rgba(22, 62, 91, 0.22);
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --gold: #b85f08;
  --gold-2: #dd7a3a;
  --gold-soft: rgba(245, 158, 11, 0.12);
  --cyan: #0e7490;
  --mint: #0c8a6d;
  --rose: #c2415a;
  --shadow: 0 22px 60px rgba(31, 76, 110, 0.11);
}

html[data-theme="day"] body {
  background: #f7fbff;
  color: var(--ink);
}

html[data-theme="day"] ::selection {
  background: rgba(14, 116, 144, 0.16);
  color: #0d2739;
}

/* --------------------------------- sky --------------------------------- */

html[data-theme="day"] .ambient {
  background:
    radial-gradient(1000px 680px at 84% -10%, rgba(255, 193, 120, 0.38), transparent 62%),
    radial-gradient(820px 620px at 2% 4%, rgba(111, 187, 235, 0.26), transparent 61%),
    linear-gradient(180deg, #e9f5ff 0%, #f7fbff 46%, #f7fbff 100%);
}

html[data-theme="day"] .ambient::before {
  opacity: 0;
}

html[data-theme="day"] .ambient::after {
  background: radial-gradient(86% 62% at 50% 32%, transparent 55%, rgba(95, 134, 164, 0.10));
}

/* -------------------------------- topbar -------------------------------- */

html[data-theme="day"] .brand-icon {
  box-shadow: 0 10px 24px rgba(31, 76, 110, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

html[data-theme="day"] .brand-text h1 {
  color: #10283c;
}

html[data-theme="day"] .brand-text p {
  color: #70879b;
}

html[data-theme="day"] .icon-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: #35546b;
  box-shadow: 0 6px 18px rgba(31, 76, 110, 0.08);
}

html[data-theme="day"] .icon-btn:hover {
  background: #ffffff;
  border-color: var(--line-strong);
}

html[data-theme="day"] .install-btn {
  border-color: rgba(184, 95, 8, 0.24);
  background: linear-gradient(180deg, #fff8ec, #ffedd2);
  color: #9b5206;
  box-shadow: 0 8px 20px rgba(184, 95, 8, 0.10);
}

html[data-theme="day"] .install-btn:hover {
  background: linear-gradient(180deg, #ffffff, #ffe6c4);
}

/* Theme button: show the action (day -> moon, night -> sun). */
.theme-btn .theme-icon-sun { display: none; }
.theme-btn .theme-icon-moon { display: block; }
html[data-theme="night"] .theme-btn .theme-icon-sun { display: block; }
html[data-theme="night"] .theme-btn .theme-icon-moon { display: none; }

/* --------------------------------- cards --------------------------------- */

html[data-theme="day"] .card {
  border-color: rgba(22, 62, 91, 0.10);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.90), rgba(246, 251, 255, 0.78));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@supports not (backdrop-filter: blur(2px)) {
  html[data-theme="day"] .card { background: #fbfdff; }
}

html[data-theme="day"] .card-head h2 { color: #122b40; }
html[data-theme="day"] .card-head p { color: #7d93a7; }

html[data-theme="day"] .pill {
  border-color: rgba(184, 95, 8, 0.22);
  background: #fff4e2;
  color: #9b5206;
}

html[data-theme="day"] .pill.subtle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: #6b8298;
}

/* ---------------------------------- hero ---------------------------------- */

html[data-theme="day"] .hero {
  border-color: rgba(22, 62, 91, 0.10);
  box-shadow: 0 26px 70px rgba(31, 76, 110, 0.14), inset 0 1px 0 #fff;
}

html[data-theme="day"] .hero-scene { opacity: 1; }

html[data-theme="day"] #sunHalo stop:nth-child(1) { stop-color: #ffe4b0; stop-opacity: 0.95; }
html[data-theme="day"] #sunHalo stop:nth-child(2) { stop-color: #ffb56b; stop-opacity: 0.34; }
html[data-theme="day"] #sunHalo stop:nth-child(3) { stop-color: #ff9d5b; stop-opacity: 0; }

html[data-theme="day"] #sunCore stop:nth-child(1) { stop-color: #fff9e6; }
html[data-theme="day"] #sunCore stop:nth-child(2) { stop-color: #ffd47e; }
html[data-theme="day"] #sunCore stop:nth-child(3) { stop-color: #ff9d4d; }

html[data-theme="day"] #farRidge stop:nth-child(1) { stop-color: #b7d8ea; }
html[data-theme="day"] #farRidge stop:nth-child(2) { stop-color: #8db4cc; }
html[data-theme="day"] #midRidge stop:nth-child(1) { stop-color: #74a2be; }
html[data-theme="day"] #midRidge stop:nth-child(2) { stop-color: #4f809e; }
html[data-theme="day"] #nearRidge stop:nth-child(1) { stop-color: #396985; }
html[data-theme="day"] #nearRidge stop:nth-child(2) { stop-color: #214b65; }

html[data-theme="day"] #cloudGrad stop:nth-child(1) { stop-color: #ffffff; stop-opacity: 0.8; }
html[data-theme="day"] #cloudGrad stop:nth-child(2) { stop-color: #d8edf9; stop-opacity: 0.04; }

html[data-theme="day"] #ringGrad stop:nth-child(1) { stop-color: #0891b2; }
html[data-theme="day"] #ringGrad stop:nth-child(2) { stop-color: #2bb3a3; }
html[data-theme="day"] #ringGrad stop:nth-child(3) { stop-color: #e79a2f; }
html[data-theme="day"] #ringGradLow stop:nth-child(1) { stop-color: #8ea7b8; }
html[data-theme="day"] #ringGradLow stop:nth-child(2) { stop-color: #b6c8d5; }

html[data-theme="day"] .hero-scene g[fill="#dceaff"] { fill: #ffffff; opacity: 0.4; }
html[data-theme="day"] .hero-scene path[fill="#dcecff"] { fill: #ffffff; opacity: 0.6 !important; }
html[data-theme="day"] .hero-scene g[stroke="#b7cbe6"] { stroke: #5f8eaa; }
html[data-theme="day"] .hero-scene path[fill="#05080f"] { fill: #1d455e; }

html[data-theme="day"] .hero::after {
  background:
    linear-gradient(90deg, rgba(249, 253, 255, 0.97) 0%, rgba(249, 253, 255, 0.86) 38%, rgba(249, 253, 255, 0.08) 72%, rgba(249, 253, 255, 0.16) 100%),
    linear-gradient(0deg, rgba(255, 249, 239, 0.92) 0%, rgba(255, 249, 239, 0.18) 42%, transparent 68%);
}

html[data-theme="day"] .eyebrow { color: #3e647d; }
html[data-theme="day"] .review-badge {
  border-color: rgba(184, 95, 8, 0.20);
  background: #fff3df;
  color: #9b5206;
}
html[data-theme="day"] .review-banner {
  border-color: rgba(22, 62, 91, 0.10);
  background:
    radial-gradient(450px 180px at 12% 0%, rgba(255, 194, 125, 0.20), transparent 70%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(31, 76, 110, 0.09), inset 0 1px 0 #fff;
}
html[data-theme="day"] .review-mark {
  border-color: rgba(184, 95, 8, 0.18);
  background: #fff2dc;
  color: #b8640a;
}
html[data-theme="day"] .review-kicker { color: #a85a08; }
html[data-theme="day"] .review-copy b { color: #17334a; }
html[data-theme="day"] .review-copy p { color: #748a9e; }
html[data-theme="day"] .status-dot {
  background: #0c9b78;
  box-shadow: 0 0 0 4px rgba(12, 155, 120, 0.12), 0 0 12px rgba(12, 155, 120, 0.45);
}
html[data-theme="day"] .place-btn { color: #10283c; }
html[data-theme="day"] .place-btn:hover { color: #a85a08; }
html[data-theme="day"] .place-btn .icon { color: #b86a12; }
html[data-theme="day"] .place-btn .chev { color: #7891a5; }

html[data-theme="day"] .elev {
  background: rgba(17, 60, 88, 0.07);
  color: #55738a;
}

html[data-theme="day"] .sunrise-chip {
  border-color: rgba(184, 95, 8, 0.20);
  background: rgba(255, 255, 255, 0.62);
  color: #8f4c07;
  box-shadow: 0 8px 20px rgba(31, 76, 110, 0.06);
}
html[data-theme="day"] .sunrise-chip .icon { color: #c47315; }
html[data-theme="day"] .sunrise-chip b { color: #7d4205; }

html[data-theme="day"] .period-switch {
  border-color: rgba(22, 62, 91, 0.10);
  background: rgba(255, 255, 255, 0.55);
}
html[data-theme="day"] .period-btn { color: #6a8398; }
html[data-theme="day"] .period-btn:hover { background: rgba(255, 255, 255, 0.75); }
html[data-theme="day"] .period-btn.is-active {
  border-color: #efcf9d;
  background: #fff5e6;
  color: #8f4c07;
  box-shadow: 0 6px 18px rgba(184, 95, 8, 0.08);
}
html[data-theme="day"] .period-icon {
  background: rgba(22, 62, 91, 0.055);
  color: #6f879b;
}
html[data-theme="day"] .period-btn.is-active .period-icon { background: #ffebc9; color: #b8640a; }
html[data-theme="day"] .period-icon.sunset { color: #c56d3a; }
html[data-theme="day"] .period-copy small { color: #8298aa; }
html[data-theme="day"] .period-btn.is-active .period-copy small { color: #a36211; }

html[data-theme="day"] .ring {
  background: radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 68%);
  border-radius: 50%;
}
html[data-theme="day"] .ring-track { stroke: rgba(20, 63, 90, 0.10); }
html[data-theme="day"] .ring-value {
  filter: drop-shadow(0 8px 16px rgba(14, 116, 144, 0.18));
}
html[data-theme="day"] .prob-number span {
  background: linear-gradient(180deg, #0f2b40 12%, #2d5d7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="day"] .prob-number small { color: #b8640a; }
html[data-theme="day"] .prob-caption { color: #617e94; }
html[data-theme="day"] .prob-sub { color: #8197aa; }

html[data-theme="day"] .verdict-badge.tone-great { color: #914c05; background: #fff2dc; border-color: #f0cd96; }
html[data-theme="day"] .verdict-badge.tone-good { color: #0c6b52; background: #e8f8f1; border-color: #b7e5d5; }
html[data-theme="day"] .verdict-badge.tone-fair { color: #2f6685; background: #eaf5fc; border-color: #c3deee; }
html[data-theme="day"] .verdict-badge.tone-low { color: #5c7488; background: #eff4f8; border-color: #d5e2ec; }

html[data-theme="day"] .confidence-chip { color: #6a8298; }
html[data-theme="day"] .confidence-chip .icon { color: #8aa0b2; }
html[data-theme="day"] .verdict-text { color: #33536b; }

html[data-theme="day"] .quick-grid > div {
  border-color: rgba(22, 62, 91, 0.09);
  background: rgba(255, 255, 255, 0.58);
}
html[data-theme="day"] .quick-grid span { color: #72899d; }
html[data-theme="day"] .quick-grid b { color: #163249; }

html[data-theme="day"] .hero-foot { border-top-color: rgba(22, 62, 91, 0.10); }
html[data-theme="day"] .data-note { color: #748ba0; }
html[data-theme="day"] .live-dot { background: #0c9b78; box-shadow: 0 0 8px rgba(12, 155, 120, 0.55); }
html[data-theme="day"] .demo-badge { background: #fff2d8; color: #9b5206; }

html[data-theme="day"] .ghost-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: #3d5d75;
}
html[data-theme="day"] .ghost-btn:hover { background: #ffffff; border-color: var(--line-strong); }
html[data-theme="day"] .ghost-btn.primary-ghost {
  border-color: rgba(184, 95, 8, 0.20);
  background: #fff7e9;
  color: #9b5206;
}

html[data-theme="day"] .hero-loading,
html[data-theme="day"] .hero-error {
  background: rgba(247, 252, 255, 0.82);
  color: #5f7b91;
}
html[data-theme="day"] .spinner {
  border-color: rgba(20, 63, 90, 0.12);
  border-top-color: #d9862b;
}
html[data-theme="day"] .hero-error b { color: #173249; }
html[data-theme="day"] .hero-error .error-icon { background: #ffeced; color: #b13e50; }

/* -------------------------------- timeline -------------------------------- */

html[data-theme="day"] .hour-col.is-core {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.02));
  border-color: rgba(201, 119, 13, 0.16);
}
html[data-theme="day"] .hour-col.is-peak { border-color: rgba(201, 119, 13, 0.36); }
html[data-theme="day"] .hour-p { color: #294b64; }
html[data-theme="day"] .hour-col.is-core .hour-p { color: #a65a07; }
html[data-theme="day"] .bar-fill {
  background: linear-gradient(180deg, #5cc7e8 0%, #0e7490 100%);
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.18);
}
html[data-theme="day"] .hour-col.is-high .bar-fill {
  background: linear-gradient(180deg, #ffd16f 0%, #e08a20 100%);
  box-shadow: 0 6px 18px rgba(224, 138, 32, 0.22);
}
/* Keep the 5–7 core window warm; 04/08 context stays cool/teal. */
html[data-theme="day"] .hour-col:not(.is-core).is-high .bar-fill {
  background: linear-gradient(180deg, #5cc7e8 0%, #0e7490 100%);
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.18);
}
html[data-theme="day"] .hour-label { color: #8399ac; }
html[data-theme="day"] .hour-col.is-core .hour-label { color: #647f94; }
html[data-theme="day"] .sunrise-line { border-left-color: rgba(190, 111, 8, 0.45); }
html[data-theme="day"] .sunrise-line span {
  border-color: rgba(190, 111, 8, 0.22);
  background: rgba(255, 253, 247, 0.95);
  color: #92500a;
}
html[data-theme="day"] .timeline-summary {
  border-color: rgba(22, 62, 91, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: #58738a;
}
html[data-theme="day"] .timeline-summary .icon { color: #c27a1d; }
html[data-theme="day"] .timeline-summary b { color: #18364d; }

/* ------------------------------- phenomena ------------------------------- */

html[data-theme="day"] .phenom {
  border-color: rgba(22, 62, 91, 0.08);
  background: rgba(255, 255, 255, 0.56);
}
html[data-theme="day"] .phenom-icon { background: #e6f6fb; color: #0e7490; }
html[data-theme="day"] .phenom-icon.rime { background: #eef8ff; color: #3f86b0; }
html[data-theme="day"] .phenom-icon.sun { background: #fff4df; color: #c27a1d; }
html[data-theme="day"] .phenom-name b { color: #18364d; }
html[data-theme="day"] .phenom-name small { color: #8298aa; }
html[data-theme="day"] .phenom-value { color: #142f45; }
html[data-theme="day"] .phenom-value span { color: #7d93a6; }
html[data-theme="day"] .phenom-bar { background: rgba(22, 62, 91, 0.08); }
html[data-theme="day"] .phenom-bar i { background: linear-gradient(90deg, #35b7d1, #77d9e9); }
html[data-theme="day"] .phenom.rime .phenom-bar i { background: linear-gradient(90deg, #78b7de, #b5ddf5); }
html[data-theme="day"] .phenom.sun .phenom-bar i { background: linear-gradient(90deg, #e7a23c, #f7cd7a); }
html[data-theme="day"] .phenom-detail { color: #72899c; }

/* --------------------------------- factors --------------------------------- */

html[data-theme="day"] .f-icon { background: rgba(22, 62, 91, 0.055); color: #5f7d93; }
html[data-theme="day"] .factor[data-status="good"] .f-icon { background: #e6f7ef; color: #0c8066; }
html[data-theme="day"] .factor[data-status="mid"] .f-icon { background: #fff3df; color: #b76b0d; }
html[data-theme="day"] .factor[data-status="bad"] .f-icon { background: #ffedf0; color: #b44055; }
html[data-theme="day"] .f-name { color: #17334a; }
html[data-theme="day"] .f-weight { color: #8ca0b2; }
html[data-theme="day"] .f-score { color: #29485f; }
html[data-theme="day"] .f-score small { color: #8a9fb1; }
html[data-theme="day"] .f-bar { background: rgba(22, 62, 91, 0.08); }
html[data-theme="day"] .f-bar i { background: linear-gradient(90deg, #18a884, #6fd2b3); }
html[data-theme="day"] .factor[data-status="mid"] .f-bar i { background: linear-gradient(90deg, #df9a35, #f6cb79); }
html[data-theme="day"] .factor[data-status="bad"] .f-bar i { background: linear-gradient(90deg, #c95a6d, #ee9aa7); }
html[data-theme="day"] .factor p { color: #748a9d; }
html[data-theme="day"] .risk-note {
  border-color: rgba(184, 95, 8, 0.16);
  background: #fff8eb;
  color: #8a5c25;
}
html[data-theme="day"] .risk-note b { color: #9b5206; }

/* -------------------------------- forecast -------------------------------- */

html[data-theme="day"] .day-row:hover { background: #f2f9fe; }
html[data-theme="day"] .day-row.is-active {
  background: #fff5e5;
  border-color: rgba(201, 119, 13, 0.22);
}
html[data-theme="day"] .day-date b { color: #1a354b; }
html[data-theme="day"] .day-date span { color: #8399ab; }
html[data-theme="day"] .day-meter { background: rgba(22, 62, 91, 0.08); }
html[data-theme="day"] .day-meter i { background: linear-gradient(90deg, #45b6d2, #8edff0); }
html[data-theme="day"] .day-row.is-high .day-meter i { background: linear-gradient(90deg, #e19a34, #f8d184); }
html[data-theme="day"] .day-p { color: #24465f; }
html[data-theme="day"] .day-p span { color: #8298aa; }
html[data-theme="day"] .day-tag.tone-great { color: #914c05; background: #fff2dc; border-color: #f0cd96; }
html[data-theme="day"] .day-tag.tone-good { color: #0c6b52; background: #e8f8f1; border-color: #b7e5d5; }
html[data-theme="day"] .day-tag.tone-fair { color: #2f6685; background: #eaf5fc; border-color: #c3deee; }
html[data-theme="day"] .day-tag.tone-low { color: #647d90; background: #eff4f8; border-color: #d5e2ec; }
html[data-theme="day"] .day-chev { color: #8aa0b2; }
html[data-theme="day"] .day-row.is-active .day-chev { color: #b8640a; }

/* --------------------------------- models --------------------------------- */

html[data-theme="day"] .model-name b { color: #1a354b; }
html[data-theme="day"] .model-name small { color: #8399ab; }
html[data-theme="day"] .model-bar { background: rgba(22, 62, 91, 0.08); }
html[data-theme="day"] .model-bar i { background: linear-gradient(90deg, #2fa9c6, #8bdef0); }
html[data-theme="day"] .model-value { color: #24465f; }
html[data-theme="day"] .model-summary {
  border-color: rgba(22, 62, 91, 0.08);
  background: rgba(255, 255, 255, 0.55);
}
html[data-theme="day"] .model-summary span { color: #8399ab; }
html[data-theme="day"] .model-summary b { color: #1d3a50; }
html[data-theme="day"] .model-note {
  border-top-color: rgba(22, 62, 91, 0.09);
  color: #7d93a6;
}

/* --------------------------------- method --------------------------------- */

html[data-theme="day"] .method-card {
  border-color: rgba(184, 95, 8, 0.18);
  background:
    radial-gradient(600px 300px at 82% 0%, rgba(255, 191, 112, 0.20), transparent 65%),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}
html[data-theme="day"] .method-inner h2 { color: #142f45; }
html[data-theme="day"] .method-grid b { color: #a85a08; }
html[data-theme="day"] .method-grid p { color: #5f7b92; }
html[data-theme="day"] .method-disclaimer { border-top-color: rgba(22, 62, 91, 0.10); color: #8197aa; }
html[data-theme="day"] .close-method { background: #ffffff; }

/* --------------------------------- footer --------------------------------- */

html[data-theme="day"] .footer { color: #7b91a4; }
html[data-theme="day"] .footer-brand { color: #57748b; }
html[data-theme="day"] .offline-bar {
  border-color: rgba(184, 95, 8, 0.18);
  background: #fff7e9;
  color: #8a5c25;
}

/* --------------------------------- dialogs --------------------------------- */

html[data-theme="day"] .sheet {
  border-color: rgba(22, 62, 91, 0.14);
  box-shadow: 0 36px 90px rgba(19, 52, 74, 0.28);
}
html[data-theme="day"] .sheet::backdrop {
  background: rgba(24, 54, 75, 0.32);
}
html[data-theme="day"] .sheet-form {
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(255, 194, 125, 0.18), transparent 65%),
    linear-gradient(165deg, #ffffff, #f2f9ff);
  color: #14283c;
}
html[data-theme="day"] .sheet-kicker { color: #b05c08; }
html[data-theme="day"] .sheet-head h2 { color: #122b40; }
html[data-theme="day"] .sheet-head .icon-btn { background: #f4faff; color: #4b6a81; }

html[data-theme="day"] .preset-tools {
  background: linear-gradient(180deg, rgba(251, 254, 255, 0.99) 68%, rgba(247, 252, 255, 0.94));
  border-bottom-color: rgba(22, 62, 91, 0.08);
}
html[data-theme="day"] .preset-search {
  border-color: var(--line);
  background: #f4faff;
}
html[data-theme="day"] .preset-search input { color: #17334a; }
html[data-theme="day"] .preset-search input::placeholder { color: #8ba0b1; }
html[data-theme="day"] .preset-search .icon { color: #7c93a6; }
html[data-theme="day"] .province-tab {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: #617d93;
}
html[data-theme="day"] .province-tab small { color: #8ba0b1; }
html[data-theme="day"] .province-tab.is-active {
  border-color: #e6bd7e;
  background: #fff3df;
  color: #9b5206;
}
html[data-theme="day"] .province-head b { color: #1b374d; }
html[data-theme="day"] .province-head small { color: #8399ab; }

html[data-theme="day"] .preset {
  border-color: rgba(22, 62, 91, 0.10);
  background: rgba(255, 255, 255, 0.62);
}
html[data-theme="day"] .preset:hover { border-color: var(--line-strong); background: #ffffff; }
html[data-theme="day"] .preset.is-active {
  border-color: rgba(201, 119, 13, 0.34);
  background: #fff5e5;
}
html[data-theme="day"] .preset-title b { color: #18364d; }
html[data-theme="day"] .preset-hot { background: #fff0d6; color: #9b5206; }
html[data-theme="day"] .preset-sub { color: #607d92; }
html[data-theme="day"] .preset-note { color: #8499ab; }
html[data-theme="day"] .preset-elev { background: rgba(22, 62, 91, 0.065); color: #5a778d; }
html[data-theme="day"] .preset-check { border-color: rgba(22, 62, 91, 0.18); color: transparent; }
html[data-theme="day"] .preset.is-active .preset-check { background: #d98a25; border-color: #d98a25; color: #fff; }
html[data-theme="day"] .preset-empty { color: #7f95a8; }

html[data-theme="day"] .wide-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: #3d5d75;
}
html[data-theme="day"] .wide-btn:hover { background: #ffffff; border-color: var(--line-strong); }
html[data-theme="day"] .custom-block { border-color: var(--line); background: rgba(255, 255, 255, 0.54); }
html[data-theme="day"] .custom-block summary { color: #29485f; }
html[data-theme="day"] .custom-block summary .icon { color: #7f95a8; }
html[data-theme="day"] .field-grid label { color: #6b8297; }
html[data-theme="day"] .field-grid input {
  border-color: var(--line);
  background: #f6fbff;
  color: #17334a;
}
html[data-theme="day"] .hint { color: #7f95a8; }
html[data-theme="day"] .sheet-note { color: #7f95a8; }

html[data-theme="day"] .feedback-lede { color: #5f7b92; }
html[data-theme="day"] .feedback-lede b { color: #a85a08; }
html[data-theme="day"] .feedback-options button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}
html[data-theme="day"] .feedback-options button:hover { background: #ffffff; border-color: var(--line-strong); }
html[data-theme="day"] .feedback-options button.is-selected {
  border-color: rgba(201, 119, 13, 0.4);
  background: #fff5e5;
}
html[data-theme="day"] .feedback-options .icon { color: #b56a0d; }
html[data-theme="day"] .feedback-options span { color: #1b374d; }
html[data-theme="day"] .feedback-options small { color: #8298aa; }
html[data-theme="day"] .feedback-note { color: #6b8297; }
html[data-theme="day"] .feedback-note textarea {
  border-color: var(--line);
  background: #f6fbff;
  color: #17334a;
}

html[data-theme="day"] .install-status.ok { border-color: #b9e5d5; background: #edfaf4; color: #0b6d55; }
html[data-theme="day"] .install-status.warn { border-color: #efd2a2; background: #fff8eb; color: #8a5c25; }
html[data-theme="day"] .install-status.bad { border-color: #f0c3ca; background: #fff3f4; color: #a83d50; }
html[data-theme="day"] .install-tab {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: #607d92;
}
html[data-theme="day"] .install-tab.is-active {
  border-color: #e6bd7e;
  background: #fff3df;
  color: #9b5206;
}
html[data-theme="day"] .install-content h3 { color: #142f45; }
html[data-theme="day"] .install-steps { color: #47677f; }
html[data-theme="day"] .install-steps code,
html[data-theme="day"] .install-content p code {
  background: #eaf4fb;
  color: #1e4c68;
}
html[data-theme="day"] .install-content p { color: #71889c; }
html[data-theme="day"] .install-code {
  border-color: var(--line);
  background: #edf6fc;
  color: #1d415a;
}
html[data-theme="day"] .install-note { border-top-color: rgba(22, 62, 91, 0.10); }
html[data-theme="day"] .install-content a { color: #a85a08; }

/* --------------------------------- toast --------------------------------- */

html[data-theme="day"] .toast {
  border-color: rgba(22, 62, 91, 0.14);
  background: rgba(255, 255, 255, 0.97);
  color: #28485f;
  box-shadow: 0 18px 45px rgba(19, 52, 74, 0.16);
}
html[data-theme="day"] .toast[data-tone="warn"] { border-color: #efd2a2; color: #8a5c25; }
html[data-theme="day"] .toast[data-tone="error"] { border-color: #f0c3ca; color: #a83d50; }

/* --------------------------------- mobile --------------------------------- */

@media (max-width: 560px) {
  html[data-theme="day"] .hero-scene { opacity: 0.9; }
  html[data-theme="day"] .hero::after {
    background:
      linear-gradient(180deg, rgba(249, 253, 255, 0.72) 0%, rgba(249, 253, 255, 0.90) 46%, rgba(255, 249, 239, 0.96) 100%);
  }
  html[data-theme="day"] .preset-tools {
    background: linear-gradient(180deg, rgba(251, 254, 255, 1) 68%, rgba(247, 252, 255, 0.96));
  }
}
