@font-face {
  font-family: LocalSans;
  src: local("Inter"), local("SF Pro Display"), local("Helvetica Neue");
  font-display: swap;
}
:root {
  --bg: #f3f6fb;
  --surface: #fff;
  --soft: #f7f8fa;
  --ink: #17191e;
  --muted: #6c717c;
  --line: #dce3ed;
  --accent: #2463eb;
  --accent-soft: #edf3ff;
  --latest-bg: #e1edff;
  --stat-first: #fff1bf;
  --stat-second: #ffffff;
  --stat-third: #ede8ff;
  --regular: #a9c3fa;
  --banked: #2463eb;
  color-scheme: light;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.5 LocalSans, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: wait; opacity: .55; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
.container, .header-inner { max-width: 1160px; margin: auto; padding: 0 32px; }
.header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 650; letter-spacing: -1px; }
.brand svg { height: 28px; width: 28px; stroke: var(--ink); stroke-width: 2; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; }
.icon-button:hover { background: var(--soft); }
.icon-button svg { height: 21px; width: 21px; }
.sun-icon { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 8px; padding: 10px 15px; font-size: 16px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.button:hover { opacity: .85; }
.button svg { height: 18px; width: 18px; }
.button-outline { background: none; color: var(--ink); border-color: var(--line); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 32px 0 25px; }
h1 { font-size: 40px; line-height: 1.25; letter-spacing: -1px; font-weight: 650; }
.page-heading p { font-size: 17px; color: var(--muted); margin-top: 9px; }
.source-line { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); padding-bottom: 2px; }
.status-dot { height: 6px; width: 6px; border-radius: 50%; background: #8b909a; flex-shrink: 0; }
.status-dot.ready { background: var(--accent); }
.status-dot.stale { background: #b87b22; }
.refresh-button { height: 28px; width: 28px; }
.refresh-button svg { height: 17px; width: 17px; }
.refreshing svg { animation: spin 1s linear infinite; }
.overview { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.latest-card { background: var(--latest-bg); padding: 23px 25px 20px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.latest-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
h2 { font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -.4px; }
.latest-top h2 { font-size: 18px; font-weight: 500; }
.type-badge { display: inline-flex; align-items: center; font-size: 16px; line-height: 1.4; white-space: nowrap; border-radius: 5px; padding: 4px 9px; color: var(--muted); background: var(--soft); }
.type-badge.banked { color: var(--accent); background: var(--accent-soft); }
.latest-main { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 12px; }
.elapsed { font-size: 64px; line-height: 1.1; letter-spacing: -2px; font-weight: 500; font-variant-numeric: tabular-nums; }
.elapsed span { font-size: 20px; margin-left: 8px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.latest-date { margin-top: 10px; font-size: 16px; color: var(--muted); }
.source-button { color: var(--accent); font-size: 16px; white-space: nowrap; padding-bottom: 1px; }
.source-button:hover, .source-link:hover { text-decoration: underline; }
.latest-summary { font-size: 16px; margin-top: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-summary:empty { display: none; }
.stats-card { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 12px; }
.stat { display: flex; flex-direction: column; justify-content: center; padding: 23px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--stat-second); }
.stat:first-child { background: var(--stat-first); }
.stat:last-child { background: var(--stat-third); }
.stat-label { font-size: 16px; color: var(--muted); white-space: nowrap; }
.stat-value { display: flex; align-items: baseline; gap: 6px; margin-top: 13px; }
.stat-value > span:first-child { font-size: 36px; font-weight: 550; letter-spacing: -1.3px; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 16px; color: var(--muted); }
.activity-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; }
.calendar-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 22px; cursor: pointer; font-size: 16px; list-style: none; }
.calendar-summary::-webkit-details-marker { display: none; }
.calendar-toggle { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.calendar-toggle > span { font-size: 20px; line-height: 1; }
.activity-panel[open] .calendar-toggle > span { transform: rotate(180deg); }
.calendar-content { padding: 5px 22px 19px; }
.heatmap-scroll { overflow-x: auto; scrollbar-width: thin; padding: 5px 0 10px; }
.heatmap-wrap { min-width: 950px; }
.heatmap-months { display: grid; grid-template-columns: repeat(53, 1fr); padding-left: 28px; margin-bottom: 10px; height: 20px; font-size: 14px; color: var(--muted); }
.heatmap-months span { white-space: nowrap; }
.heatmap-main { display: flex; gap: 14px; }
.heatmap-weekdays { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; justify-content: space-around; padding: 10px 0 4px; }
.heatmap { flex: 1; display: grid; grid-template-columns: repeat(53, 1fr); grid-template-rows: repeat(7, 13px); grid-auto-flow: column; gap: 4px; min-width: 0; }
.day { height: 13px; width: 100%; border-radius: 2px; padding: 0; background: var(--line); }
.day.regular { background: var(--regular); }
.day.banked { background: var(--banked); }
.day.mixed { background: linear-gradient(135deg, var(--regular) 50%, var(--banked) 50%); }
.day.future { background: transparent; }
.day:hover, .day[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.heatmap-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.heatmap-footer strong { font-weight: 500; color: var(--ink); }
.legend { display: flex; gap: 15px; }
.legend span { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.legend-empty { background: var(--line); }
.legend-regular { background: var(--regular); }
.legend-banked { background: var(--banked); }
.heatmap-detail { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.announcements { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.count-badge { font-size: 16px; font-weight: 400; margin-left: 7px; color: var(--muted); }
.timezone-label select { background: none; color: var(--muted); border: 0; font-size: 16px; cursor: pointer; padding: 3px 0; }
.records-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 0 15px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; gap: 4px; }
.filter-tab { font-size: 16px; color: var(--muted); padding: 8px 14px; border-radius: 7px; white-space: nowrap; }
.filter-tab.active { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; width: 226px; }
.search svg { height: 18px; width: 18px; color: var(--muted); flex-shrink: 0; }
.search input { font-size: 16px; color: var(--ink); border: 0; outline: 0; background: none; width: 100%; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.record { display: grid; grid-template-columns: 160px minmax(0, 1fr) 190px; align-items: start; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.record time { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.6; padding-top: 2px; }
.record time span { display: block; }
.record time span + span { font-size: 14px; color: var(--muted); }
.record-message { font-size: 18px; color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 17px; padding-top: 1px; }
.source-link { font-size: 16px; color: var(--accent); white-space: nowrap; padding: 3px 0; }
.original { margin-top: 9px; }
.original summary { display: inline-block; font-size: 14px; color: var(--muted); cursor: pointer; }
.original p { font-size: 16px; line-height: 1.7; color: var(--muted); padding: 12px 14px; margin-top: 10px; background: var(--soft); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.load-more { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 20px; }
.load-more:hover { background: var(--soft); }
.load-more[hidden] { display: none; }
.records-note { font-size: 14px; color: var(--muted); margin-top: 16px; }
.empty-state { font-size: 16px; color: var(--muted); text-align: center; padding: 45px 15px; }
.footer { margin-top: 24px; }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--muted); }
.footer-inner > div { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer button { font-size: 14px; color: inherit; padding: 0; }
.footer a:hover { color: var(--ink); }
.dialog { border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); padding: 35px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 25px 90px #17191e26; }
.dialog::backdrop { background: #17191e66; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 10px; top: 10px; font-size: 28px; color: var(--muted); }
.dialog h2 { font-size: 25px; margin-bottom: 17px; }
.dialog-description { font-size: 16px; color: var(--muted); line-height: 1.8; }
.subscription-option { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.subscription-option > div { flex: 1; }
.subscription-option h3 { font-size: 18px; font-weight: 550; }
.subscription-option p { font-size: 14px; margin-top: 6px; color: var(--muted); }
.subscription-option .button { font-size: 16px; padding: 9px 12px; }
.subscription-status { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 12px; }
.dialog-rss-link { display: inline-block; color: var(--accent); font-size: 16px; margin-top: 18px; }
.dialog-footnote { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 22px; }
.about-details { margin-top: 22px; }
.about-details h3 { font-size: 18px; font-weight: 550; }
.about-details p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.about-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; font-size: 16px; color: var(--accent); }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 9px; background: var(--ink); color: var(--bg); padding: 13px 20px; font-size: 16px; box-shadow: 0 10px 40px #17191e20; z-index: 10; max-width: calc(100vw - 30px); text-align: center; }
.skip-link { position: fixed; top: -70px; left: 20px; background: var(--ink); color: var(--bg); padding: 12px 20px; z-index: 20; }
.skip-link:focus { top: 10px; }
html[data-theme="dark"] { --bg: #141519; --surface: #1b1d22; --soft: #1e2026; --ink: #eceef3; --muted: #a0a5b0; --line: #343740; --accent: #86adff; --accent-soft: #232f49; --regular: #556f9c; --banked: #86adff; --latest-bg: #20314c; --stat-first: #3e3824; --stat-second: #20232a; --stat-third: #302b43; color-scheme: dark; }
html[data-theme="dark"] .moon-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) {
  .overview { grid-template-columns: 1.1fr 1fr; gap: 16px; }
  .latest-card { background: var(--latest-bg); padding: 22px; }
  .stat { padding: 22px 12px; }
  .stat-value > span:first-child { font-size: 32px; }
  .stat-label { font-size: 15px; }
  .record { grid-template-columns: 145px minmax(0, 1fr) 175px; gap: 20px; }
  .record-actions { gap: 12px; }
}
@media (max-width: 800px) {
  .container, .header-inner { padding-left: 24px; padding-right: 24px; }
  .overview { grid-template-columns: 1fr; }
  .stats-card { gap: 14px; }
  .stat { padding: 20px 24px; }
  .stat-value { margin-top: 7px; }
  .page-heading { align-items: start; }
  .source-line { font-size: 14px; max-width: 210px; padding-top: 4px; }
  .record { grid-template-columns: 125px minmax(0, 1fr); gap: 7px 22px; }
  .record-actions { grid-column: 2; justify-content: flex-start; gap: 18px; }
  .record time { grid-row: span 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-top: 24px; padding-bottom: 24px; gap: 13px; }
  .footer-inner > div { gap: 19px; }
}
@media (max-width: 560px) {
  .container, .header-inner { padding-left: 20px; padding-right: 20px; }
  .header-inner { height: 68px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand svg { height: 24px; width: 24px; }
  .header-actions { gap: 9px; }
  .header-actions .button { padding: 9px 11px; }
  .header-actions .button svg { display: none; }
  .icon-button { width: 34px; height: 34px; }
  .page-heading { flex-direction: column; gap: 15px; padding: 28px 0 21px; }
  h1 { font-size: 36px; }
  .page-heading p { font-size: 16px; margin-top: 6px; }
  .source-line { max-width: none; padding: 0; }
  .latest-card { background: var(--latest-bg); padding: 21px; }
  .latest-top h2 { font-size: 18px; }
  .latest-main { gap: 10px; margin-top: 14px; }
  .elapsed { font-size: 64px; }
  .elapsed span { font-size: 18px; }
  .latest-date { font-size: 16px; }
  .source-button { font-size: 16px; }
  .latest-summary { font-size: 16px; margin-top: 13px; }
  .stat { padding: 18px 12px; }
  .stat-label { font-size: 14px; }
  .stat-value > span:first-child { font-size: 32px; }
  .stat-unit { font-size: 14px; }
  .calendar-summary { padding: 14px 18px; }
  .calendar-content { padding-left: 18px; padding-right: 18px; }
  .heatmap-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .announcements { margin-top: 20px; padding: 20px; }
  h2 { font-size: 22px; }
  .timezone-label select { font-size: 16px; max-width: 130px; }
  .records-toolbar { align-items: stretch; flex-direction: column; gap: 13px; padding: 15px 0; }
  .filter-tabs { gap: 4px; }
  .filter-tab { font-size: 16px; padding: 8px 13px; }
  .search { width: 100%; }
  .record { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .record time { grid-row: auto; display: flex; gap: 8px; font-size: 16px; }
  .record time span + span { font-size: 16px; }
  .record-actions { grid-column: 1; gap: 18px; padding-top: 2px; }
  .record-message { font-size: 18px; }
  .dialog { padding: 31px 23px 25px; }
  .dialog h2 { font-size: 23px; }
  .subscription-option { gap: 15px; }
  .subscription-option .button { padding: 9px; }
  .footer-inner { font-size: 14px; }
  .footer-inner > div { gap: 14px 20px; }
}
@media (max-width: 370px) {
  .container, .header-inner { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 20px; }
  .brand svg { width: 21px; height: 21px; }
  .header-actions { gap: 6px; }
  .latest-card { background: var(--latest-bg); padding: 18px; }
  .latest-main { flex-wrap: wrap; }
  .stat { padding: 17px 9px; }
  .stat-value > span:first-child { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
