@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0b1020;
  --panel: #0e1524;
  --panel-raised: #141d31;
  --panel-mint: #0d1a28;
  --line: rgba(169, 184, 219, .16);
  --line-strong: rgba(166, 221, 243, .34);
  --text: #edf5f2;
  --muted: #9aabb5;
  --muted-2: #6d7e8b;
  --mint: #a7e2f4;
  --mint-bright: #d0f5ff;
  --mint-deep: #17394b;
  --purple: #c7b5ff;
  --purple-deep: #332d50;
  --amber: #f2cb8d;
  --font: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --display: 'Space Grotesk', 'DM Sans', 'PingFang SC', sans-serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -6%, rgba(91, 169, 140, .12), transparent 30rem),
    radial-gradient(circle at 94% 17%, rgba(107, 85, 167, .08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

button, a, input { -webkit-tap-highlight-color: transparent; }
button { border: 0; color: inherit; cursor: pointer; font: inherit; }
button, a { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .62; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 21px; letter-spacing: -.4px; }
h3 { font-size: 17px; font-weight: 600; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.preview-strip {
  position: relative;
  z-index: 2;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(156, 235, 198, .14);
  background: linear-gradient(90deg, rgba(33, 78, 61, .72), rgba(18, 43, 36, .72));
  color: #c0e7d4;
  font-size: 12px;
  letter-spacing: .01em;
  text-align: center;
}
.preview-strip span { color: #8db9a8; }

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  max-width: 1120px;
  height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  gap: 52px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 20px; font-weight: 700; line-height: 1.15; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(156, 235, 198, .52);
  border-radius: 12px;
  color: var(--mint);
  font-size: 19px;
  box-shadow: 0 0 0 5px rgba(156, 235, 198, .06), inset 0 0 18px rgba(156, 235, 198, .13);
}
.brand small { display: block; margin-top: 5px; color: var(--muted-2); font: 9px/1 var(--display); letter-spacing: 2.8px; }
.site-header nav { display: flex; align-items: center; gap: 7px; height: 100%; }
.site-header nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  transition: color .18s, background .18s, border-color .18s;
}
.site-header nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.site-header nav a.active { border-color: var(--line); background: rgba(255, 255, 255, .065); color: var(--text); }
.site-header nav a.active::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(156, 235, 198, .08); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 6px; background: var(--mint-deep); color: var(--mint); font-size: 11px; }
.header-note { margin-left: auto; color: var(--muted-2); font-size: 13px; }

main { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 51px 0 38px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { color: var(--mint); font: 11px/1.8 var(--display); letter-spacing: 2px; }
h1 { margin: 10px 0 9px; color: #f3f8f6; font-size: 34px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.14; }
.subheading { color: var(--muted); font-size: 15px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(300px, .82fr); gap: 18px; }
.latest-panel, .subscribe-panel, .panel, .notice { box-shadow: var(--shadow); }
.latest-panel {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 29px 31px 25px;
  border: 1px solid rgba(124, 206, 170, .36);
  border-radius: 20px;
  background: radial-gradient(circle at 88% 5%, rgba(108, 226, 170, .17), transparent 14rem), linear-gradient(145deg, #10241d, #0d1819 65%, #0c1319);
}
.latest-panel::after { content: ''; position: absolute; right: -54px; bottom: -68px; width: 210px; height: 210px; border: 1px solid rgba(156, 235, 198, .13); border-radius: 50%; box-shadow: 0 0 0 18px rgba(156, 235, 198, .03), 0 0 0 37px rgba(156, 235, 198, .018); pointer-events: none; }
.panel-kicker { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #c7ddd3; font-size: 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(156, 235, 198, .1), 0 0 20px rgba(156, 235, 198, .45); }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 12px; line-height: 1.45; white-space: nowrap; }
.badge.subtle { border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .055); color: #a6b8b1; }
.badge.warning { border: 1px solid rgba(242, 203, 141, .28); background: rgba(119, 87, 43, .24); color: #f2cb8d; }
.panel-kicker .badge { margin-left: auto; }
.badge.green { border: 1px solid rgba(156, 235, 198, .16); background: rgba(49, 111, 82, .42); color: var(--mint-bright); }
.badge.purple { border: 1px solid rgba(199, 181, 255, .18); background: rgba(63, 52, 98, .6); color: #d8cbff; }
.elapsed { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 14px; margin: 27px 0 25px; white-space: nowrap; }
.elapsed > span { color: #c5f8db; font: 500 86px/.9 var(--display); letter-spacing: -5px; text-shadow: 0 0 36px rgba(130, 238, 182, .13); }
.elapsed small { color: #9bc5ae; font-size: 16px; }
.latest-bottom { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: auto; }
.latest-bottom p { margin-bottom: 10px; color: #d2dfda; font-size: 14px; }
.latest-bottom p .muted { margin-left: 5px; color: #8eaea0; font-size: 12px; }
.latest-label { display: block; color: #8ca69a; font-size: 12px; }
.circle-button { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid rgba(156, 235, 198, .3); border-radius: 50%; color: var(--mint); font-size: 20px; transition: background .18s, transform .18s; }
.circle-button:hover { background: rgba(156, 235, 198, .13); transform: translate(2px, -2px); }

.subscribe-panel { position: relative; display: flex; align-items: flex-start; flex-direction: column; padding: 29px 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 100% 0%, rgba(134, 103, 206, .15), transparent 13rem), linear-gradient(145deg, #151d2a, #101821); }
.subscribe-panel::after { content: '↗'; position: absolute; right: 22px; top: 18px; color: rgba(199, 181, 255, .48); font: 38px var(--display); transform: rotate(-12deg); }
.subscribe-panel .line-icon { display: none; }
.subscribe-panel .eyebrow { color: #b3c0dc; font-family: var(--font); font-size: 12px; letter-spacing: .8px; }
.subscribe-panel h2 { margin: 16px 0 8px; font-size: 25px; letter-spacing: -.7px; }
.subscribe-panel p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; border-radius: 10px; background: linear-gradient(135deg, var(--mint-bright), var(--mint)); color: #0c281b; font-size: 14px; font-weight: 700; box-shadow: 0 10px 28px rgba(76, 189, 135, .18); transition: transform .18s, filter .18s; }
.primary:hover { filter: brightness(1.06); transform: translateY(-2px); }
.subscribe-panel .primary { width: 100%; margin-top: auto; }
.micro { width: 100%; margin-top: 10px; color: var(--muted-2); font-size: 12px; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 45px; }
.stats > div { min-height: 108px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(18, 29, 39, .95), rgba(12, 19, 27, .95)); }
.stats > div:first-child { border-color: rgba(156, 235, 198, .22); }
.stats > div > span { color: var(--muted); font-size: 13px; }
.stats p { margin-top: 7px; color: #f0f7f4; font: 500 31px/1.2 var(--display); letter-spacing: -.8px; }
.stats small { margin-left: 7px; color: var(--muted); font: 12px var(--font); letter-spacing: 0; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-heading h2 { font-size: 22px; letter-spacing: -.6px; }
.section-label { margin-left: 11px; color: var(--muted-2); font: 10px var(--display); letter-spacing: 1.5px; }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.text-link { color: #aad9c0; font-size: 13px; white-space: nowrap; }
.text-link:hover, .history-link:hover { color: var(--mint-bright); }

.overview-grid, .history-layout, .alerts-layout { display: grid; align-items: start; gap: 18px; }
.overview-grid { grid-template-columns: 1.12fr .88fr; }
.history-layout { grid-template-columns: .92fr 1.08fr; }
.alerts-layout { grid-template-columns: 1.4fr .9fr; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(16, 25, 35, .96), rgba(11, 17, 24, .96)); }
.calendar-panel { padding: 25px 27px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.panel-title h2 { font-size: 19px; }
.calendar-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.calendar-title strong { color: #eef6f3; font: 500 18px var(--display); }
.month-nav { display: flex; align-items: center; gap: 7px; }
.month-nav button { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 21px; line-height: 1; transition: background .18s, border-color .18s; }
.month-nav button:hover { border-color: var(--line-strong); background: rgba(156, 235, 198, .08); color: var(--text); }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.weekdays { margin-bottom: 10px; color: var(--muted-2); font-size: 12px; text-align: center; }
.calendar-day { position: relative; min-height: 40px; border: 1px solid transparent; border-radius: 9px; color: #6f818e; font: 14px var(--display); transition: transform .15s, background .15s, border-color .15s; }
.calendar-day.full { border-color: rgba(156, 235, 198, .22); background: linear-gradient(145deg, rgba(31, 91, 64, .72), rgba(26, 59, 47, .72)); color: #c5f6d9; }
.calendar-day.banked { border-color: rgba(199, 181, 255, .23); background: linear-gradient(145deg, rgba(66, 53, 104, .72), rgba(42, 37, 68, .72)); color: #d8cbff; }
.calendar-day.selected { outline: 2px solid #effcf5; outline-offset: 2px; }
.calendar-day.today::after { content: ''; position: absolute; bottom: 5px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--text); }
.calendar-day:not(:disabled):hover { border-color: var(--mint); transform: translateY(-1px); }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.legend-item { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; background: #2f7453; }
.legend-dot.purple { background: #65559a; }
.legend-dot.blank { background: #27343e; }

.recent-panel { display: flex; flex-direction: column; min-height: 100%; padding: 25px 25px 0; }
.event-row { display: flex; align-items: center; width: 100%; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; transition: background .18s; }
.event-row:hover { background: linear-gradient(90deg, rgba(156, 235, 198, .05), transparent); }
.event-row:hover .event-title { color: var(--mint-bright); }
.event-date { width: 60px; flex-shrink: 0; color: #bfd1cb; font: 15px/1.2 var(--display); }
.event-date small { display: block; margin-top: 4px; color: var(--muted-2); font: 11px/1.4 var(--font); }
.event-text { min-width: 0; flex: 1; }
.event-title { display: block; overflow: hidden; color: #e8f0ee; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.event-meta { display: block; margin-top: 4px; overflow: hidden; color: var(--muted-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.event-arrow { color: #75998a; font-size: 20px; transition: transform .18s, color .18s; }
.event-row:hover .event-arrow { color: var(--mint); transform: translateX(3px); }
.history-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 17px 0; color: #9bc8b1; font-size: 13px; }
.stat-footnote { margin-top: 13px; color: var(--muted-2); font-size: 12px; }

.data-banner { display: flex; align-items: center; gap: 13px; margin: -7px 0 22px; padding: 14px 18px; border: 1px solid #705037; border-radius: 13px; background: linear-gradient(135deg, rgba(93, 56, 35, .48), rgba(43, 35, 29, .75)); color: #f1d7bd; }
.data-banner > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #98643d; color: white; font-weight: 700; }
.data-banner div { flex: 1; }
.data-banner strong { font-size: 14px; font-weight: 600; }
.data-banner p { margin-top: 2px; color: #c7a98d; font-size: 12px; }
.data-banner button { padding: 6px 12px; border: 1px solid #94704e; border-radius: 8px; color: #f1d7bd; font-size: 12px; }
.data-banner button:hover { background: rgba(255, 255, 255, .08); }

.history-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.segmented { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 18, 25, .9); }
.segmented button { padding: 7px 15px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.segmented button:hover { color: var(--text); }
.segmented button.active { background: var(--mint-deep); color: var(--mint-bright); }
.history-controls > .muted { font-size: 13px; }
.history-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.history-meta #history-updated { padding-left: 12px; border-left: 1px solid var(--line); }
.timeline-panel { padding: 25px; }
.timeline-panel .event-row { padding: 17px 0; }
.timeline-month + .timeline-month { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.timeline-month-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 0 0 5px; }
.timeline-month-heading strong { color: var(--text); font: 500 16px var(--display); }
.timeline-month-heading span { color: var(--muted-2); font-size: 12px; }
.empty-results { padding: 48px 15px; color: var(--muted); font-size: 14px; text-align: center; }
.history-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 22px 25px; border: 1px solid rgba(156, 235, 198, .16); border-radius: 18px; background: linear-gradient(110deg, rgba(27, 54, 44, .72), rgba(20, 28, 39, .84)); box-shadow: var(--shadow); }
.history-cta .eyebrow { color: var(--mint); font-size: 10px; }
.history-cta h2 { margin-top: 5px; font-size: 20px; }
.history-cta p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.history-cta .secondary { flex: 0 0 auto; }

.notice { display: flex; gap: 14px; margin-bottom: 20px; padding: 17px 20px; border: 1px solid rgba(156, 235, 198, .19); border-radius: 14px; background: linear-gradient(135deg, rgba(27, 54, 44, .78), rgba(18, 31, 30, .72)); }
.notice > span { color: var(--mint); font-size: 23px; line-height: 1.2; }
.notice strong { font-size: 14px; font-weight: 600; }
.notice p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.alerts-layout > section { padding: 25px; }
.subscription-group { margin-top: 18px; padding-top: 3px; border-top: 1px solid var(--line); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { color: #edf5f2; font-size: 14px; font-weight: 600; }
.setting-row p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 42px; height: 24px; flex: 0 0 42px; padding: 3px; border: 1px solid #455662; border-radius: 20px; background: #293741; transition: background .2s, border-color .2s; }
.switch::after { display: block; width: 16px; height: 16px; border-radius: 50%; background: #aab7be; content: ''; transition: transform .2s, background .2s; }
.switch[aria-checked='true'] { border-color: var(--mint); background: var(--mint); }
.switch[aria-checked='true']::after { background: #153828; transform: translateX(17px); }
.preferences { padding: 25px; }
.channel-status { display: flex; align-items: center; gap: 11px; padding: 2px 0 18px; border-bottom: 1px solid var(--line); }
.channel-status > div { min-width: 0; flex: 1; }
.channel-status strong { color: #edf5f2; font-size: 14px; font-weight: 600; }
.channel-status p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.channel-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 203, 141, .1); }
.preference-note { padding-top: 17px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.privacy-note { display: flex; justify-content: center; gap: 12px; margin-top: 22px; color: var(--muted-2); font-size: 13px; }
.privacy-note > span { color: var(--mint); font-size: 24px; }

.text-button { padding: 3px 0; color: #a2cdb5; font-size: 13px; }
.text-button:hover { color: var(--mint-bright); }

footer { display: flex; align-items: center; max-width: 1120px; gap: 25px; margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; }
.footer-brand { color: #a2b8ad; font-size: 13px; }
footer .text-button { margin-left: auto; }
.mobile-nav { display: none; }

dialog { width: min(540px, calc(100% - 30px)); max-height: 86dvh; margin: auto; padding: 34px; overflow: auto; border: 1px solid #3b5259; border-radius: 20px; background: #111c25; color: var(--text); box-shadow: 0 30px 100px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(2, 6, 10, .78); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 12px; right: 15px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 25px; }
.dialog-close:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.dialog-eyebrow { margin-bottom: 10px; color: var(--mint); font-size: 12px; }
dialog h2 { margin-bottom: 13px; padding-right: 20px; font-size: 25px; line-height: 1.5; }
dialog p { margin: 14px 0; color: #adbdc5; font-size: 14px; line-height: 1.9; }
.detail-fields { margin: 22px 0; padding: 13px 0; border-block: 1px solid var(--line); }
.detail-field { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; font-size: 13px; }
.detail-field span:first-child { color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.secondary { padding: 10px 14px; border: 1px solid #3b5259; border-radius: 9px; color: #d5e3df; font-size: 13px; }
.secondary:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
.dialog-note { padding: 12px; border-radius: 9px; background: rgba(34, 49, 55, .82); font-size: 12px !important; }
.toast { position: fixed; z-index: 100; bottom: 35px; left: 50%; width: max-content; max-width: calc(100vw - 30px); padding: 12px 20px; border: 1px solid #9dd3b6; border-radius: 10px; background: #e1f1e7; color: #163324; box-shadow: 0 8px 35px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s, transform .2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1240px) {
  .site-header, main, footer { margin-right: 30px; margin-left: 30px; }
  .header-note { display: none; }
}

@media (max-width: 820px) {
  .site-header { height: 78px; gap: 20px; }
  .site-header nav { gap: 2px; }
  .site-header nav a { padding: 8px 9px; font-size: 13px; }
  main { padding-top: 37px; }
  h1 { font-size: 30px; }
  .hero-grid, .overview-grid, .history-layout, .alerts-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .preview-strip { padding: 7px 12px; font-size: 11px; }
  .preview-strip span { display: block; margin-top: 1px; font-size: 11px; }
  .site-header, main, footer { margin-right: 16px; margin-left: 16px; }
  .site-header { height: 62px; margin-top: 12px; padding: 0 10px; border: 1px solid var(--line); border-radius: 20px; background: rgba(17, 24, 34, .72); box-shadow: 0 14px 36px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); }
  .brand { font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; font-size: 17px; }
  .brand small { font-size: 8px; letter-spacing: 2.2px; }
  .site-header nav { display: none; }
  main { padding-top: 30px; padding-bottom: 112px; }
  .page-heading { display: block; margin-bottom: 22px; }
  h1 { margin-top: 8px; font-size: 27px; letter-spacing: -.9px; }
  .subheading { font-size: 14px; line-height: 1.8; }
  .latest-panel { min-height: 260px; padding: 23px 21px 21px; border-radius: 17px; }
  .elapsed { margin: 26px 0 24px; }
  .elapsed > span { font-size: 71px; letter-spacing: -4px; }
  .elapsed small { font-size: 14px; }
  .latest-bottom p { font-size: 13px; }
  .latest-bottom p .muted { display: block; margin: 4px 0 0; font-size: 11px; }
  .latest-label { margin-top: 8px; font-size: 12px; }
  .subscribe-panel { min-height: 156px; padding: 22px 21px; border-radius: 17px; }
  .subscribe-panel h2 { margin: 11px 0 5px; font-size: 21px; }
  .subscribe-panel p { font-size: 13px; }
  .subscribe-panel .primary { margin-top: 18px; }
  .stats { gap: 9px; margin: 15px 0 34px; }
  .stats > div { min-height: 91px; padding: 14px; border-radius: 13px; }
  .stats > div > span { font-size: 12px; }
  .stats p { margin-top: 5px; font-size: 27px; }
  .section-heading { align-items: flex-start; margin-bottom: 14px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading p { font-size: 12px; }
  .section-label { display: none; }
  .text-link { padding-top: 3px; font-size: 12px; }
  .calendar-panel { padding: 20px 17px; }
  .calendar-day { min-height: 38px; }
  .weekdays, .calendar-grid { gap: 5px; }
  .recent-panel, .timeline-panel, .alerts-layout > section, .preferences { padding: 20px; }
  .event-row { gap: 11px; padding: 14px 0; }
  .event-date { width: 56px; font-size: 14px; }
  .event-title { font-size: 13px; }
  .event-meta, .event-date small { font-size: 11px; }
  .history-controls { align-items: stretch; flex-direction: column; gap: 10px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 7px 5px; font-size: 12px; }
  .history-meta { justify-content: space-between; }
  .history-meta #history-updated { padding-left: 0; border-left: 0; }
  .history-cta { align-items: flex-start; flex-direction: column; gap: 15px; padding: 20px; }
  .history-cta .secondary { width: 100%; justify-content: space-between; }
  .notice { padding: 14px; gap: 10px; }
  .notice p { font-size: 13px; }
  .data-banner { align-items: flex-start; padding: 12px; gap: 10px; }
  .data-banner strong { font-size: 13px; }
  .data-banner p { font-size: 12px; line-height: 1.55; }
  footer { flex-wrap: wrap; gap: 10px 15px; padding-bottom: 106px; }
  footer .text-button { width: 100%; margin-left: 0; text-align: left; }
  .mobile-nav { position: fixed; z-index: 20; right: 12px; bottom: 12px; left: 12px; display: flex; justify-content: space-around; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); border: 1px solid rgba(156, 235, 198, .14); border-radius: 22px; background: rgba(10, 17, 24, .88); box-shadow: 0 18px 40px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(18px); }
  .mobile-nav a { display: flex; align-items: center; flex-direction: column; min-width: 75px; gap: 2px; color: #8196a4; font-size: 11px; }
  .mobile-nav a > span { font-size: 20px; line-height: 1.3; }
  .mobile-nav a.active { color: var(--mint); }
  .toast { bottom: 88px; font-size: 12px; }
  dialog { padding: 27px 21px; border-radius: 16px; }
  dialog h2 { font-size: 22px; }
}

@media (max-width: 380px) {
  .site-header, main, footer { margin-right: 12px; margin-left: 12px; }
  h1 { font-size: 25px; }
  .elapsed > span { font-size: 65px; }
  .stats > div { padding: 12px 10px; }
  .stats p { font-size: 24px; }
  .calendar-day { min-height: 35px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Deep-sea palette: cooler surfaces, a quieter accent, and no announcement strip. */
body {
  background:
    radial-gradient(circle at 10% -8%, rgba(83, 178, 216, .13), transparent 29rem),
    radial-gradient(circle at 93% 15%, rgba(128, 102, 207, .11), transparent 27rem),
    var(--bg);
}
.preview-strip { display: none; }
.site-header { border-bottom-color: rgba(169, 184, 219, .14); }
.brand-mark { border-color: rgba(167, 226, 244, .54); box-shadow: 0 0 0 5px rgba(167, 226, 244, .06), inset 0 0 18px rgba(167, 226, 244, .14); }
.site-header nav a.active { border-color: rgba(169, 184, 219, .2); background: rgba(173, 192, 232, .07); }
.site-header nav a.active::before { background: var(--mint); box-shadow: 0 0 0 4px rgba(167, 226, 244, .09); }
.latest-panel { border-color: rgba(132, 210, 235, .38); background: radial-gradient(circle at 88% 4%, rgba(90, 197, 231, .18), transparent 14rem), linear-gradient(145deg, #10212e, #0d1724 65%, #0b121e); }
.latest-panel::after { border-color: rgba(167, 226, 244, .15); box-shadow: 0 0 0 18px rgba(167, 226, 244, .035), 0 0 0 37px rgba(167, 226, 244, .02); }
.live-dot { background: var(--mint); box-shadow: 0 0 0 5px rgba(167, 226, 244, .1), 0 0 20px rgba(167, 226, 244, .42); }
.elapsed > span { color: var(--mint-bright); text-shadow: 0 0 36px rgba(124, 218, 244, .14); }
.latest-bottom p .muted { color: #9ab6c5; }
.latest-label { color: #9aabba; }
.circle-button { border-color: rgba(167, 226, 244, .34); color: var(--mint); }
.circle-button:hover { background: rgba(167, 226, 244, .12); }
.subscribe-panel { border-color: rgba(169, 184, 219, .18); background: radial-gradient(circle at 100% 0%, rgba(139, 110, 222, .18), transparent 13rem), linear-gradient(145deg, #171c32, #101625); }
.subscribe-panel::after { color: rgba(199, 181, 255, .55); }
.subscribe-panel .eyebrow { color: #c3c5e5; }
.primary { background: linear-gradient(135deg, var(--mint-bright), var(--mint)); box-shadow: 0 10px 28px rgba(69, 177, 215, .2); }
.stats > div:first-child { border-color: rgba(167, 226, 244, .25); }
.panel { background: linear-gradient(145deg, rgba(16, 24, 39, .97), rgba(10, 16, 28, .97)); }
.calendar-day.full { border-color: rgba(167, 226, 244, .24); background: linear-gradient(145deg, rgba(30, 84, 113, .75), rgba(24, 55, 78, .75)); color: #d0f5ff; }
.legend-dot { background: #3a86a8; }
.event-row:hover { background: linear-gradient(90deg, rgba(167, 226, 244, .06), transparent); }
.event-row:hover .event-title, .text-link:hover, .history-link:hover { color: var(--mint-bright); }
.history-link { color: #9fd2e3; }
.notice { border-color: rgba(167, 226, 244, .2); background: linear-gradient(135deg, rgba(24, 58, 75, .78), rgba(17, 29, 46, .76)); }
.notice > span, .privacy-note > span { color: var(--mint); }
.segmented button.active { background: var(--mint-deep); color: var(--mint-bright); }
.switch[aria-checked='true'] { border-color: var(--mint); background: var(--mint); }
.data-banner { background: linear-gradient(135deg, rgba(93, 56, 35, .48), rgba(43, 35, 29, .75)); }
.mobile-nav { border-top-color: rgba(167, 226, 244, .16); }

/* Sunset-at-midnight palette: warm primary actions against an obsidian base. */
:root {
  --bg: #0b0a10;
  --bg-soft: #12101a;
  --panel: #15131d;
  --panel-raised: #1b1827;
  --panel-mint: #21161a;
  --line: rgba(207, 190, 216, .16);
  --line-strong: rgba(255, 184, 151, .36);
  --text: #f6f0ef;
  --muted: #b2a6ac;
  --muted-2: #776d79;
  --mint: #ffb496;
  --mint-bright: #ffd6c4;
  --mint-deep: #55302c;
}
body {
  background:
    radial-gradient(circle at 9% -8%, rgba(245, 122, 91, .13), transparent 28rem),
    radial-gradient(circle at 94% 14%, rgba(135, 103, 218, .15), transparent 29rem),
    var(--bg);
}
.site-header { border-bottom-color: rgba(207, 190, 216, .14); }
.brand-mark { border-color: rgba(255, 180, 150, .58); box-shadow: 0 0 0 5px rgba(255, 180, 150, .06), inset 0 0 18px rgba(255, 180, 150, .15); }
.site-header nav a.active { border-color: rgba(207, 190, 216, .2); background: rgba(225, 205, 234, .07); }
.site-header nav a.active::before { background: var(--mint); box-shadow: 0 0 0 4px rgba(255, 180, 150, .1); }
.latest-panel { border-color: rgba(255, 180, 150, .37); background: radial-gradient(circle at 88% 4%, rgba(247, 128, 96, .2), transparent 14rem), linear-gradient(145deg, #281719, #17131e 65%, #101019); }
.latest-panel::after { border-color: rgba(255, 180, 150, .16); box-shadow: 0 0 0 18px rgba(255, 180, 150, .035), 0 0 0 37px rgba(255, 180, 150, .02); }
.live-dot { background: var(--mint); box-shadow: 0 0 0 5px rgba(255, 180, 150, .1), 0 0 20px rgba(255, 156, 118, .42); }
.elapsed > span { color: var(--mint-bright); text-shadow: 0 0 36px rgba(255, 148, 117, .16); }
.latest-bottom p .muted, .latest-label { color: #caa69d; }
.circle-button { border-color: rgba(255, 180, 150, .35); color: var(--mint); }
.circle-button:hover { background: rgba(255, 180, 150, .13); }
.subscribe-panel { border-color: rgba(207, 190, 216, .2); background: radial-gradient(circle at 100% 0%, rgba(145, 111, 226, .2), transparent 13rem), linear-gradient(145deg, #211d38, #14131f); }
.subscribe-panel .eyebrow { color: #d4c5ee; }
.primary { background: linear-gradient(135deg, #ffd2bd, #ffae8c); color: #351b1a; box-shadow: 0 10px 28px rgba(232, 113, 84, .22); }
.stats > div:first-child { border-color: rgba(255, 180, 150, .26); }
.panel { background: linear-gradient(145deg, rgba(23, 20, 32, .98), rgba(14, 13, 22, .98)); }
.calendar-day.full { border-color: rgba(255, 180, 150, .25); background: linear-gradient(145deg, rgba(111, 58, 54, .78), rgba(68, 39, 45, .78)); color: #ffd4c3; }
.legend-dot { background: #a96558; }
.event-row:hover { background: linear-gradient(90deg, rgba(255, 180, 150, .06), transparent); }
.event-row:hover .event-title, .text-link:hover, .history-link:hover { color: var(--mint-bright); }
.history-link { color: #e0b1a2; }
.notice { border-color: rgba(255, 180, 150, .2); background: linear-gradient(135deg, rgba(79, 44, 44, .8), rgba(31, 25, 39, .8)); }
.notice > span, .privacy-note > span { color: var(--mint); }
.segmented button.active { background: var(--mint-deep); color: var(--mint-bright); }
.switch[aria-checked='true'] { border-color: var(--mint); background: var(--mint); }
.mobile-nav { border-top-color: rgba(255, 180, 150, .18); }

/* Platform shell: macOS desktop workspace and iOS H5 navigation. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font-size: 12px;
  transition: background .18s, color .18s, border-color .18s;
}
.theme-toggle:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .08); color: var(--text); }
.theme-toggle span:first-child { color: var(--mint); font-size: 16px; line-height: 1; }

@media (min-width: 821px) {
  body { padding-left: 240px; }
  .site-header {
    position: fixed;
    z-index: 10;
    top: 24px;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    width: 188px;
    height: auto;
    margin: 0;
    padding: 22px 13px 15px;
    gap: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(28, 24, 36, .72);
    box-shadow: 0 24px 65px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
  }
  .site-header::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    content: '';
    pointer-events: none;
  }
  .brand { padding: 0 7px; }
  .site-header nav { display: flex; align-items: stretch; flex-direction: column; gap: 5px; height: auto; }
  .site-header nav a { justify-content: flex-start; min-height: 42px; padding: 10px 12px; }
  .site-header nav a.active::before { flex: 0 0 5px; }
  .theme-toggle { width: 100%; justify-content: flex-start; margin-top: auto; padding-left: 12px; }
  .header-note { margin: 0; padding: 13px 8px 0; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; line-height: 1.65; }
  main { max-width: 1160px; margin-right: auto; margin-left: auto; padding-top: 42px; }
  .page-heading { min-height: 78px; margin-bottom: 26px; padding: 4px 0 17px; border-bottom: 1px solid var(--line); }
  footer { max-width: 1160px; margin-right: auto; margin-left: auto; }
  @supports not ((backdrop-filter: blur(1px))) {
    .site-header { background: var(--panel); }
  }
}

@media (max-width: 820px) {
  .site-header { position: relative; }
  .theme-toggle { width: 34px; height: 34px; margin-left: auto; padding: 0; border-radius: 12px; }
  .theme-toggle span:last-child { display: none; }
}

/* Light mode keeps the same hierarchy while switching to Apple-like system materials. */
html[data-theme='light'] { color-scheme: light; }
html[data-theme='light'] body {
  background:
    radial-gradient(circle at 9% -8%, rgba(255, 170, 139, .18), transparent 28rem),
    radial-gradient(circle at 94% 13%, rgba(144, 117, 224, .14), transparent 29rem),
    #f4f3f7;
  color: #211e25;
}
html[data-theme='light'] body::before { opacity: .32; background-image: linear-gradient(rgba(42, 30, 49, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 30, 49, .02) 1px, transparent 1px); }
html[data-theme='light'] {
  --bg: #f4f3f7;
  --bg-soft: #efedf3;
  --panel: #ffffff;
  --panel-raised: #ffffff;
  --line: rgba(38, 31, 48, .13);
  --line-strong: rgba(211, 104, 73, .38);
  --text: #211e25;
  --muted: #68616e;
  --muted-2: #8e8792;
  --mint: #bf654d;
  --mint-bright: #a84e3a;
  --mint-deep: #f5dfd8;
  --shadow: 0 18px 45px rgba(66, 45, 74, .11);
}
html[data-theme='light'] .site-header { border-color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .72); box-shadow: 0 24px 65px rgba(66, 45, 74, .13), inset 0 1px 0 rgba(255, 255, 255, .95); }
html[data-theme='light'] h1 { color: #211e25; }
html[data-theme='light'] .eyebrow { color: #b4604a; }
html[data-theme='light'] .subheading { color: #68616e; }
html[data-theme='light'] .brand-mark { border-color: rgba(191, 101, 77, .48); background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 5px rgba(191, 101, 77, .07), inset 0 0 18px rgba(255, 180, 150, .18); }
html[data-theme='light'] .site-header nav a:hover { background: rgba(90, 69, 104, .06); }
html[data-theme='light'] .site-header nav a.active { border-color: rgba(191, 101, 77, .19); background: rgba(255, 255, 255, .82); }
html[data-theme='light'] .segmented { border-color: rgba(38, 31, 48, .12); background: rgba(255, 255, 255, .7); }
html[data-theme='light'] .badge.warning { border-color: rgba(174, 114, 44, .24); background: #fff4df; color: #9a6524; }
html[data-theme='light'] .latest-panel { border-color: rgba(191, 101, 77, .25); background: radial-gradient(circle at 88% 4%, rgba(255, 176, 144, .24), transparent 14rem), linear-gradient(145deg, #fffaf7, #f9f0f1 65%, #f4edf3); color: #2c2228; }
html[data-theme='light'] .latest-panel::after { border-color: rgba(191, 101, 77, .18); box-shadow: 0 0 0 18px rgba(191, 101, 77, .035), 0 0 0 37px rgba(191, 101, 77, .02); }
html[data-theme='light'] .panel-kicker, html[data-theme='light'] .latest-bottom p { color: #4a3941; }
html[data-theme='light'] .elapsed > span { color: #a84e3a; text-shadow: 0 0 30px rgba(191, 101, 77, .13); }
html[data-theme='light'] .elapsed small, html[data-theme='light'] .latest-bottom p .muted, html[data-theme='light'] .latest-label { color: #91665b; }
html[data-theme='light'] .subscribe-panel { border-color: rgba(115, 91, 157, .16); background: radial-gradient(circle at 100% 0%, rgba(151, 122, 225, .18), transparent 13rem), linear-gradient(145deg, #f0ecff, #f8f3fb); }
html[data-theme='light'] .subscribe-panel .eyebrow { color: #6d5e91; }
html[data-theme='light'] .subscribe-panel h2 { color: #2d263d; }
html[data-theme='light'] .primary { background: linear-gradient(135deg, #cf6f56, #b85541); color: #fffaf7; box-shadow: 0 10px 24px rgba(184, 85, 65, .2); }
html[data-theme='light'] .stats > div, html[data-theme='light'] .panel { border-color: rgba(38, 31, 48, .11); background: rgba(255, 255, 255, .8); }
html[data-theme='light'] .stats > div:first-child { border-color: rgba(191, 101, 77, .23); }
html[data-theme='light'] .stats p, html[data-theme='light'] .calendar-title strong, html[data-theme='light'] .event-title, html[data-theme='light'] .setting-row strong { color: #26212a; }
html[data-theme='light'] .channel-status strong { color: #26212a; }
html[data-theme='light'] .calendar-day { color: #9a919d; }
html[data-theme='light'] .calendar-day.full { border-color: rgba(191, 101, 77, .2); background: linear-gradient(145deg, #fae1d8, #f6e1e7); color: #984732; }
html[data-theme='light'] .calendar-day.banked { border-color: rgba(126, 96, 189, .2); background: linear-gradient(145deg, #eae3ff, #f0e5f5); color: #6953a1; }
html[data-theme='light'] .legend-dot { background: #c77b65; }
html[data-theme='light'] .legend-dot.purple { background: #8068bb; }
html[data-theme='light'] .legend-dot.blank { background: #c7c2cc; }
html[data-theme='light'] .event-row:hover { background: linear-gradient(90deg, rgba(191, 101, 77, .07), transparent); }
html[data-theme='light'] .notice { border-color: rgba(191, 101, 77, .18); background: linear-gradient(135deg, rgba(255, 241, 235, .95), rgba(244, 237, 250, .95)); }
html[data-theme='light'] .notice strong { color: #382a32; }
html[data-theme='light'] .switch { border-color: #c9c2cb; background: #e3dfe5; }
html[data-theme='light'] .switch::after { background: #fff; }
html[data-theme='light'] .switch[aria-checked='true'] { border-color: var(--mint); background: var(--mint); }
html[data-theme='light'] .dialog-close:hover, html[data-theme='light'] .month-nav button:hover, html[data-theme='light'] .theme-toggle:hover { background: rgba(90, 69, 104, .08); }
html[data-theme='light'] dialog { border-color: rgba(38, 31, 48, .15); background: #fffaff; color: #211e25; box-shadow: 0 30px 90px rgba(66, 45, 74, .2); }
html[data-theme='light'] dialog p { color: #635a65; }
html[data-theme='light'] .mobile-nav { border-top-color: rgba(38, 31, 48, .12); background: rgba(255, 255, 255, .78); box-shadow: 0 -12px 30px rgba(66, 45, 74, .08); }
html[data-theme='light'] .mobile-nav a { color: #827986; }
html[data-theme='light'] .mobile-nav a.active { color: #ad5843; }

@media (prefers-reduced-transparency: reduce) {
  .site-header, .mobile-nav { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
