/* Geist Variable via Fontsource CDN (jsDelivr) - Latin UI; CJK falls to system stack */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist:vf@5.3.0/latin-wght-normal.woff2")
    format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Cool zinc / off-white light surfaces */
  --bg: #f4f4f5;
  --bg-elev: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-muted: #e4e4e7;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --muted: #52525b;
  --faint: #71717a;
  --subtle: #a1a1aa;

  /* ONE desaturated teal accent */
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --accent-mid: rgba(15, 118, 110, 0.22);
  --accent-text: #0f766e;
  --accent-ink: #fafafa;
  --accent-bright: #3d9b8f;

  /* Semantic priority - muted, cool-tinted */
  --p0: #b91c1c;
  --p0-soft: rgba(185, 28, 28, 0.08);
  --p1: #a16207;
  --p1-soft: rgba(161, 98, 7, 0.1);
  --p2: #71717a;
  --p2-soft: rgba(113, 113, 122, 0.1);

  --ok: #047857;
  --ok-soft: rgba(4, 120, 87, 0.1);
  --plan: #0369a1;
  --plan-soft: rgba(3, 105, 161, 0.1);
  --stand: #52525b;
  --stand-soft: rgba(82, 82, 91, 0.1);

  --warn: #a16207;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;

  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 1px 3px rgba(24, 24, 27, 0.06);
  --font: "Geist", system-ui, "Segoe UI", "PingFang SC", "Noto Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 180ms;
  --z-header: 40;
  --z-skip: 100;
  --header-h: 3.1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-mid);
  color: var(--text);
}

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover {
  color: #0d9488;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  font-size: 0.85em;
  padding: 0.1em 0.32em;
  border-radius: 3px;
  background: var(--bg-muted);
  color: var(--muted);
  border: 1px solid var(--border);
}

.container {
  width: min(1120px, calc(100% - 1.25rem));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.6rem;
  top: -3rem;
  z-index: var(--z-skip);
  padding: 0.4rem 0.7rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus {
  top: 0.5rem;
  text-decoration: none;
  color: var(--accent-ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(250, 250, 250, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
  padding: 0.4rem 0;
}

.brand {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-ink);
  background: var(--accent);
  letter-spacing: -0.02em;
}

.brand-text {
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tagline {
  margin: 0.05rem 0 0;
  font-size: 0.68rem;
  color: var(--faint);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28rem;
}

@media (max-width: 640px) {
  .tagline {
    white-space: normal;
    max-width: none;
  }
}

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.tab {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  color: var(--faint);
  background: transparent;
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.tab:hover {
  color: var(--text);
  background: rgba(24, 24, 27, 0.04);
}
.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.tab.active {
  color: var(--text);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.tab:active {
  transform: scale(0.98);
}

/* Views */
.view {
  padding: 0.65rem 0 1.5rem;
}
.view[hidden] {
  display: none !important;
}

/* Deadline alert strip */
.deadline-strip {
  margin-bottom: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
}
.deadline-strip[hidden] {
  display: none !important;
}
.deadline-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.deadline-strip-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--warn-text);
}
.deadline-strip-hint {
  font-size: 0.65rem;
  color: #b45309;
  opacity: 0.85;
}
.deadline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.deadline-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.deadline-list a {
  color: var(--warn-text);
  font-weight: 600;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 12rem;
}
.deadline-list a:hover {
  color: #78350f;
  text-decoration: underline;
}
.deadline-days {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(146, 64, 14, 0.08);
  border: 1px solid rgba(146, 64, 14, 0.14);
  color: var(--warn-text);
}
.deadline-days.overdue {
  background: rgba(146, 64, 14, 0.12);
}

/* Toolbar / filters */
.toolbar {
  margin-bottom: 0.55rem;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
}

.filter-label {
  min-width: 2.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--subtle);
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.chip {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg);
}
.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.chip.active {
  color: var(--accent-text);
  border-color: var(--accent-mid);
  background: var(--accent-soft);
  font-weight: 600;
}
.chip:active {
  transform: scale(0.97);
}

.meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.meta-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: flex-end;
}
.header-updated {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.header-updated[hidden] {
  display: none !important;
}
.scan-meta {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}
.scan-meta[hidden] {
  display: none !important;
}
.base-date {
  color: var(--subtle);
}

/* Layout */
.layout-board {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-board {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: var(--shadow);
}

.calendar-panel {
  position: sticky;
  top: calc(var(--header-h) + 0.45rem);
}
@media (max-width: 900px) {
  .calendar-panel {
    position: static;
  }
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.cal-header h2 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.icon-btn:active {
  transform: scale(0.96);
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.cal-weekdays {
  margin-bottom: 0.15rem;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--subtle);
  padding: 0.12rem 0;
}

.cal-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: background var(--dur) var(--ease);
}
.cal-cell:disabled {
  opacity: 0;
  pointer-events: none;
}
.cal-cell:not(:disabled):hover {
  background: rgba(24, 24, 27, 0.05);
}
.cal-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.cal-cell.today {
  box-shadow: inset 0 0 0 1px var(--accent-mid);
  color: var(--accent-text);
  font-weight: 600;
}
.cal-cell.selected {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.cal-cell.has-events:hover {
  background: var(--accent-soft);
}

.cal-dots {
  display: flex;
  gap: 2px;
  min-height: 4px;
  align-items: center;
}
.cal-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-dot.p0 {
  background: var(--p0);
}
.cal-dot.p1 {
  background: var(--p1);
}
.cal-dot.p2 {
  background: var(--p2);
}

.cal-hint {
  margin: 0.4rem 0 0;
  font-size: 0.62rem;
  color: var(--subtle);
  line-height: 1.35;
}

.day-events {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.day-events h3 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.day-events ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.day-events li button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.45rem;
  font: inherit;
  font-size: 0.7rem;
  line-height: 1.35;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.day-events li button strong {
  font-weight: 600;
  display: block;
  margin-bottom: 0.08rem;
}
.day-events li button .day-meta {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.65rem;
}
.day-events li button:hover {
  border-color: var(--accent-mid);
  background: var(--bg-card-hover);
}
.day-events li button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Event cards */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem 0.6rem 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 0.55rem);
  box-shadow: var(--shadow);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.event-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background var(--dur) var(--ease);
}
.event-card.score-high::before {
  background: var(--accent);
  width: 3px;
}
.event-card.score-mid::before {
  background: var(--accent-bright);
}
.event-card.score-high {
  background: linear-gradient(
    90deg,
    var(--accent-soft) 0%,
    var(--bg-card) 22%
  );
}
.event-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}
.event-card.score-high:hover {
  background: linear-gradient(
    90deg,
    rgba(15, 118, 110, 0.12) 0%,
    var(--bg-card-hover) 22%
  );
}
.event-card.highlight {
  animation: card-flash 1s var(--ease);
}
@keyframes card-flash {
  0%,
  100% {
    border-color: var(--border);
  }
  35% {
    border-color: var(--accent);
  }
}

.card-body {
  min-width: 0;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  align-items: center;
  margin-bottom: 0.3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid transparent;
  line-height: 1.25;
}
.badge.p0 {
  background: var(--p0-soft);
  color: var(--p0);
  border-color: rgba(185, 28, 28, 0.2);
}
.badge.p1 {
  background: var(--p1-soft);
  color: var(--p1);
  border-color: rgba(161, 98, 7, 0.22);
}
.badge.p2 {
  background: var(--p2-soft);
  color: var(--p2);
  border-color: rgba(113, 113, 122, 0.25);
}
.badge.type {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent-mid);
}
.badge.status-open {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge.status-plan {
  background: var(--plan-soft);
  color: var(--plan);
}
.badge.status-standing {
  background: var(--stand-soft);
  color: var(--stand);
}

/* Prominent recommendation score */
.score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  align-self: start;
}
.score-label {
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  line-height: 1.2;
  white-space: nowrap;
}
.score-value {
  margin-top: 0.05rem;
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

.event-card h3 {
  margin: 0 0 0.12rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: pretty;
}

.organizer {
  margin: 0 0 0.35rem;
  color: var(--faint);
  font-size: 0.72rem;
}

.meta-grid {
  display: grid;
  gap: 0.18rem 0.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
}
@media (min-width: 640px) {
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.meta-item {
  display: flex;
  gap: 0.3rem;
  min-width: 0;
}
.meta-item span {
  flex-shrink: 0;
  color: var(--subtle);
  font-weight: 500;
  min-width: 2em;
}
.meta-item strong {
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.reason-block {
  margin: 0.3rem 0;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  display: grid;
  gap: 0.35rem;
}
@media (min-width: 720px) {
  .reason-block {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.75rem;
  }
}
.reason-block .reason-item {
  margin: 0;
}
.reason-block dt {
  margin: 0 0 0.08rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--subtle);
}
.reason-block dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0.3rem 0 0.45rem;
}
.tag {
  font-size: 0.62rem;
  color: var(--faint);
  background: var(--bg-muted);
  border-radius: 3px;
  padding: 0.08rem 0.32rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none !important;
  color: var(--text);
  background: var(--bg-card);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.btn:hover {
  background: var(--bg);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn.primary:hover {
  background: #0d9488;
  color: var(--accent-ink);
  filter: none;
}

.notes {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: var(--warn);
  line-height: 1.35;
}

@media (max-width: 520px) {
  .event-card {
    grid-template-columns: 1fr;
  }
  .score-block {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0.55rem;
  }
  .score-value {
    font-size: 1.35rem;
  }
}

/* Empty / error / skeleton */
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 1.75rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.empty-state[hidden] {
  display: none !important;
}
.empty-icon {
  color: var(--subtle);
  margin-bottom: 0.55rem;
  display: flex;
  justify-content: center;
}
.empty-state h3 {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.empty-state p {
  margin: 0 auto;
  max-width: 28ch;
  font-size: 0.75rem;
  color: var(--faint);
  line-height: 1.45;
}
.error-state .btn {
  margin-top: 0.75rem;
}

/* Skeleton loading */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow);
}
.sk {
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--bg-muted) 0%,
    #ececee 45%,
    var(--bg-muted) 90%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.sk-row {
  display: flex;
  gap: 0.28rem;
}
.sk-badge {
  width: 2.2rem;
  height: 0.9rem;
}
.sk-title {
  height: 0.95rem;
  width: 72%;
}
.sk-line {
  height: 0.68rem;
  width: 100%;
}
.sk-line.short {
  width: 48%;
}
.sk-actions {
  display: flex;
  gap: 0.28rem;
  margin-top: 0.15rem;
}
.sk-btn {
  width: 5rem;
  height: 1.5rem;
}

.cal-grid.is-loading .cal-cell:not(:disabled) {
  opacity: 0.35;
}

/* Channels */
.channels-intro h2 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.channels-intro p {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
  max-width: 62ch;
  line-height: 1.45;
}

.channels-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
@media (min-width: 860px) {
  .channels-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.channel-tier {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: var(--shadow);
}
.channel-tier h3 {
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.channel-list li {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.4rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease);
}
.channel-list li:hover {
  border-color: var(--border-strong);
}
.channel-list a {
  font-weight: 600;
  font-size: 0.75rem;
  word-break: break-word;
  color: var(--text);
}
.channel-list a:hover {
  color: var(--accent-text);
}
.channel-list .note {
  font-size: 0.66rem;
  color: var(--faint);
  line-height: 1.35;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 1.1rem 0 1.35rem;
  margin-top: 0.35rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer h2 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.evidence-ladder {
  margin: 0 0 0.4rem;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.76rem;
}
.evidence-ladder li + li {
  margin-top: 0.12rem;
}
.evidence-ladder strong {
  color: var(--text);
  font-weight: 600;
}
.evidence-note {
  margin: 0;
  color: var(--warn);
  font-size: 0.72rem;
  line-height: 1.4;
  max-width: 52ch;
}
.copy {
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 0.65rem;
}


/* Footer sources */
.sources-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #e4e4e7);
}
.sources-block h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted, #71717a);
  margin: 0 0 0.35rem;
}
.sources-note {
  font-size: 0.75rem;
  color: var(--text-muted, #71717a);
  margin: 0 0 0.65rem;
}
.sources-footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sources-tier {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
}
.sources-tier-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent, #0f766e);
  font-variant-numeric: tabular-nums;
}
.sources-tier-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
}
.sources-tier-links a {
  color: var(--text, #18181b);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sources-tier-links a:hover {
  border-bottom-color: var(--accent, #0f766e);
  color: var(--accent, #0f766e);
}
