:root {
  color-scheme: dark;
  --bg: #06100c;
  --bg-deep: #030806;
  --surface: rgba(10, 25, 19, 0.78);
  --surface-strong: #0c1c16;
  --surface-soft: rgba(13, 34, 25, 0.62);
  --line: rgba(155, 255, 197, 0.13);
  --line-strong: rgba(155, 255, 197, 0.24);
  --text: #ecfff3;
  --muted: #91aa9b;
  --muted-strong: #b9cbbf;
  --lime: #9dffb9;
  --lime-bright: #c2ffd2;
  --green: #36e884;
  --cyan: #73f3d1;
  --amber: #ffc872;
  --rose: #ff8d9e;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 78px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18%, rgba(42, 198, 104, 0.15), transparent 40%),
    linear-gradient(180deg, #07130e 0%, var(--bg) 38%, #040a07 100%);
  overflow-x: hidden;
}

body,
button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(157, 255, 185, 0.45);
  outline-offset: 3px;
}

::selection {
  color: #031008;
  background: var(--lime);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #041009;
  background: var(--lime);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.13;
}

.ambient-a {
  top: 5%;
  right: -260px;
  background: var(--green);
}

.ambient-b {
  bottom: 8%;
  left: -300px;
  background: var(--cyan);
}

.grain {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(155, 255, 197, 0.08);
  background: rgba(4, 12, 8, 0.76);
  backdrop-filter: blur(22px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(157, 255, 185, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(54, 232, 132, 0.12);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(157, 255, 185, 0.42);
}

.brand-mark::before {
  width: 22px;
  height: 22px;
}

.brand-mark::after {
  width: 4px;
  height: 4px;
  background: var(--lime);
  border: 0;
  box-shadow: 0 0 10px var(--green);
}

.brand-mark span:nth-child(1) {
  width: 1px;
  height: 31px;
  border: 0;
  background: rgba(157, 255, 185, 0.3);
  border-radius: 0;
}

.brand-mark span:nth-child(2) {
  width: 31px;
  height: 1px;
  border: 0;
  background: rgba(157, 255, 185, 0.3);
  border-radius: 0;
}

.brand-mark span:nth-child(3) {
  width: 13px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--lime));
  transform: rotate(-42deg) translate(5px, -4px);
  transform-origin: left center;
  border-radius: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted-strong);
  font-size: 13px;
}

.main-nav a {
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--lime);
}

.data-banner {
  position: relative;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 200, 114, 0.2);
  background: rgba(74, 50, 17, 0.82);
  backdrop-filter: blur(16px);
}

.data-banner-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffe7bf;
  font-size: 13px;
  text-align: center;
}

.data-banner strong {
  color: #fff4df;
}

.hero {
  min-height: 680px;
  padding-block: 82px 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(42px, 8vw, 96px);
}

.hero-copy {
  max-width: 610px;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--green);
}

.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--lime-bright);
  font-style: normal;
  text-shadow: 0 0 45px rgba(54, 232, 132, 0.12);
}

.hero-intro {
  max-width: 590px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.button-primary {
  color: #031108;
  background: var(--lime);
  box-shadow: 0 12px 36px rgba(54, 232, 132, 0.18);
}

.button-primary:hover {
  background: #b9ffcc;
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(12, 29, 22, 0.64);
}

.button-secondary:hover {
  border-color: rgba(157, 255, 185, 0.45);
  background: rgba(18, 43, 32, 0.72);
}

.button-icon {
  font-size: 18px;
  line-height: 1;
}

.button.is-loading .button-icon {
  animation: rotate 900ms linear infinite;
}

.sync-line {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sync-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(54, 232, 132, 0.75);
}

.sync-indicator.is-stale {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 200, 114, 0.75);
}

.status-card {
  position: relative;
  min-height: 555px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(14, 38, 28, 0.84), rgba(5, 16, 11, 0.92)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.status-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(157, 255, 185, 0.035) 50%, transparent 50.15%),
    linear-gradient(transparent 49.85%, rgba(157, 255, 185, 0.035) 50%, transparent 50.15%);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.status-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.status-card h2 {
  margin: 7px 0 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.source-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.source-state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.source-state.is-stale .source-state-dot {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.radar-stage {
  position: absolute;
  top: 70px;
  left: 50%;
  width: min(430px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0.86;
  overflow: hidden;
  mask-image: radial-gradient(circle, #000 59%, rgba(0, 0, 0, 0.85) 68%, transparent 72%);
}

.radar-grid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(126, 255, 173, 0.13) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(126, 255, 173, 0.13) 50%, transparent 50.2%),
    repeating-conic-gradient(from 0deg, rgba(126, 255, 173, 0.08) 0deg 0.8deg, transparent 0.8deg 30deg),
    radial-gradient(circle, rgba(58, 255, 135, 0.055), transparent 65%);
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(137, 255, 180, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring-a {
  width: 94%;
  height: 94%;
}

.radar-ring-b {
  width: 65%;
  height: 65%;
}

.radar-ring-c {
  width: 35%;
  height: 35%;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -18deg,
    transparent 0deg,
    transparent 294deg,
    rgba(126, 255, 173, 0.025) 305deg,
    rgba(126, 255, 173, 0.34) 350deg,
    rgba(194, 255, 210, 0.62) 359deg,
    transparent 360deg
  );
  animation: radar-sweep 5.5s linear infinite;
}

.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #ddffe7;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 10px var(--green),
    0 0 28px rgba(54, 232, 132, 0.66);
  transform: translate(-50%, -50%);
}

.radar-blip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow:
    0 0 8px var(--lime),
    0 0 22px var(--green);
  animation: pulse 2.4s ease-out infinite;
}

.radar-blip-a {
  top: 33%;
  left: 69%;
}

.radar-blip-b {
  top: 68%;
  left: 30%;
  animation-delay: -1.2s;
  opacity: 0.55;
}

.latest-block {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 26px;
  left: 26px;
  padding: 21px 22px;
  border: 1px solid rgba(157, 255, 185, 0.13);
  border-radius: 19px;
  background: rgba(3, 13, 8, 0.72);
  backdrop-filter: blur(18px);
}

.latest-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live-badge {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.live-badge.is-stale {
  color: var(--amber);
}

.type-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  color: var(--cyan);
  border: 1px solid rgba(115, 243, 209, 0.2);
  border-radius: 999px;
  background: rgba(115, 243, 209, 0.06);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.type-pill.is-banked,
.tag.is-banked {
  color: var(--amber);
  border-color: rgba(255, 200, 114, 0.23);
  background: rgba(255, 200, 114, 0.07);
}

.latest-relative {
  margin: 14px 0 3px;
  font-size: clamp(31px, 4.2vw, 46px);
  font-weight: 760;
  letter-spacing: -0.045em;
}

.latest-exact {
  display: block;
  color: var(--muted-strong);
  font-size: 13px;
}

.timezone-label {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-card {
  position: relative;
  min-height: 162px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.metric-card + .metric-card {
  border-left: 1px solid var(--line);
}

.metric-index {
  position: absolute;
  top: 22px;
  right: 24px;
  margin: 0;
  color: rgba(157, 255, 185, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.metric-value {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 740;
  letter-spacing: -0.045em;
}

.metric-value small {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.metric-label {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.watch {
  padding-top: 46px;
}

.watch-card {
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr minmax(250px, 0.42fr);
  align-items: center;
  gap: 36px;
  border: 1px solid rgba(255, 200, 114, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(61, 42, 13, 0.38), rgba(11, 26, 19, 0.76)),
    var(--surface);
}

.watch-card h2 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.watch-copy > p:not(.card-kicker, .watch-note) {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.watch-note {
  margin: 8px 0 0;
  color: var(--amber);
  font-size: 11px;
}

.watch-score {
  padding-left: 30px;
  border-left: 1px solid rgba(255, 200, 114, 0.16);
}

.watch-score-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-strong);
  font-size: 12px;
}

.watch-score-row strong {
  color: var(--amber);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.watch-score progress {
  width: 100%;
  height: 8px;
  margin: 13px 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  accent-color: var(--amber);
}

.watch-score progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.watch-score progress::-webkit-progress-value {
  background: linear-gradient(90deg, rgba(255, 200, 114, 0.65), var(--amber));
  border-radius: 999px;
}

.watch-score progress::-moz-progress-bar {
  background: linear-gradient(90deg, rgba(255, 200, 114, 0.65), var(--amber));
  border-radius: 999px;
}

.watch-score > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.calendar-section,
.history-section,
.about-section {
  padding-top: 106px;
}

.section-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.about-intro h2 {
  margin: 8px 0 0;
  font-size: clamp(29px, 4vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.section-subtitle {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-cell {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(157, 255, 185, 0.035);
}

.legend-regular {
  border-color: rgba(54, 232, 132, 0.42);
  background: rgba(54, 232, 132, 0.66);
  box-shadow: 0 0 8px rgba(54, 232, 132, 0.18);
}

.legend-banked {
  border-color: rgba(255, 200, 114, 0.55);
  background: rgba(255, 200, 114, 0.76);
}

.calendar-panel {
  padding: 26px 27px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
}

.heatmap {
  min-height: 160px;
  display: grid;
  grid-template-columns: repeat(26, minmax(15px, 1fr));
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(157, 255, 185, 0.24) transparent;
}

.heatmap-week {
  min-width: 17px;
  display: grid;
  grid-template-rows: 18px repeat(7, 1fr);
  gap: 5px;
}

.heatmap-month {
  min-height: 18px;
  overflow: visible;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  white-space: nowrap;
}

.heatmap-day {
  min-height: 15px;
  aspect-ratio: 1;
  border: 1px solid rgba(157, 255, 185, 0.08);
  border-radius: 4px;
  background: rgba(157, 255, 185, 0.025);
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    filter 120ms ease;
}

.heatmap-day:hover {
  z-index: 2;
  transform: scale(1.18);
  border-color: rgba(157, 255, 185, 0.4);
}

.heatmap-day.has-regular {
  border-color: rgba(54, 232, 132, 0.34);
  background: rgba(54, 232, 132, 0.68);
  box-shadow: 0 0 9px rgba(54, 232, 132, 0.12);
}

.heatmap-day.has-banked {
  border-color: rgba(255, 200, 114, 0.5);
  background: rgba(255, 200, 114, 0.78);
  box-shadow: 0 0 9px rgba(255, 200, 114, 0.12);
}

.heatmap-day.has-mixed {
  background: linear-gradient(135deg, rgba(54, 232, 132, 0.78) 0 50%, rgba(255, 200, 114, 0.86) 50% 100%);
}

.heatmap-day.is-future {
  opacity: 0.18;
}

.heatmap-day.is-today {
  outline: 1px solid var(--lime-bright);
  outline-offset: 2px;
}

.calendar-caption {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.loading-copy {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.history-heading {
  align-items: flex-start;
}

.history-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.filter-group {
  padding: 4px;
  display: flex;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 19, 13, 0.7);
}

.filter-button {
  min-height: 34px;
  padding: 0 13px;
  color: var(--muted);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--text);
  background: rgba(157, 255, 185, 0.1);
}

.search-field {
  min-width: 250px;
  height: 43px;
  padding-inline: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 19, 13, 0.7);
}

.search-field:focus-within {
  border-color: rgba(157, 255, 185, 0.4);
}

.search-field input {
  min-width: 0;
  width: 100%;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.search-field input::placeholder {
  color: #6d8275;
}

.history-list {
  display: grid;
  gap: 13px;
}

.event-card {
  position: relative;
  padding: 24px 25px;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) auto;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(112deg, rgba(16, 37, 28, 0.48), rgba(7, 19, 13, 0.8)),
    var(--surface);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.event-card:hover {
  border-color: rgba(157, 255, 185, 0.25);
  transform: translateY(-2px);
  background:
    linear-gradient(112deg, rgba(18, 44, 32, 0.58), rgba(7, 20, 14, 0.86)),
    var(--surface);
}

.event-card::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--green);
  box-shadow: 0 0 13px rgba(54, 232, 132, 0.35);
}

.event-card.is-banked::before {
  background: var(--amber);
  box-shadow: 0 0 13px rgba(255, 200, 114, 0.34);
}

.event-time {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-time strong {
  font-size: 15px;
}

.event-time span {
  color: var(--muted);
  font-size: 11px;
}

.event-type {
  margin-top: 9px;
  align-self: flex-start;
}

.event-content h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.event-summary {
  max-width: 730px;
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.8;
}

.event-tags {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  min-height: 22px;
  padding: 3px 8px;
  color: var(--muted-strong);
  border-color: var(--line);
  background: rgba(157, 255, 185, 0.035);
  font-size: 9px;
}

.event-extra {
  margin-top: 14px;
}

.event-extra summary {
  width: max-content;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.event-extra summary:hover {
  color: var(--lime);
}

.event-original {
  max-width: 760px;
  margin: 10px 0 0;
  padding: 12px 14px;
  color: #a8bbae;
  border-left: 2px solid var(--line-strong);
  background: rgba(2, 9, 5, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.event-source {
  align-self: center;
}

.source-link {
  min-width: 94px;
  min-height: 38px;
  padding-inline: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--lime);
  border: 1px solid rgba(157, 255, 185, 0.2);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.source-link:hover {
  border-color: rgba(157, 255, 185, 0.42);
  background: rgba(157, 255, 185, 0.06);
}

.source-link.is-disabled {
  color: var(--muted);
  pointer-events: none;
}

.empty-state {
  padding: 62px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty-state strong {
  display: block;
  font-size: 17px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.skeleton-card {
  min-height: 150px;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 18%,
    rgba(255, 255, 255, 0.045) 48%,
    transparent 78%
  );
  transform: translateX(-100%);
  animation: skeleton 1.7s infinite;
}

.load-more-wrap {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.about-section {
  padding-bottom: 116px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(500px, 1.28fr);
  gap: clamp(50px, 8vw, 92px);
  align-items: start;
}

.about-intro > p:not(.card-kicker) {
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-card {
  min-height: 250px;
  padding: 28px 23px;
}

.about-card + .about-card {
  border-left: 1px solid var(--line);
}

.about-number {
  color: rgba(157, 255, 185, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.about-card h3 {
  margin: 74px 0 9px;
  font-size: 17px;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 8, 5, 0.72);
}

.footer-inner {
  padding-block: 46px 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 50px;
}

.footer-brand {
  font-weight: 750;
}

.footer-inner > div > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted-strong);
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--lime);
}

.disclaimer {
  grid-column: 1 / -1;
  max-width: 850px;
  margin: 0;
  color: #65796b;
  font-size: 10px;
  line-height: 1.7;
}

.noscript {
  position: fixed;
  z-index: 1000;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 13px;
  color: #2c1b02;
  background: var(--amber);
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes radar-sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.72);
    opacity: 0.35;
  }
  45% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes skeleton {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 32px, 760px);
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .status-card {
    min-height: 570px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .history-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .history-tools {
    justify-content: flex-start;
  }

  .event-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .event-source {
    grid-column: 2;
    justify-self: start;
  }

  .about-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 24px);
    --header-height: 68px;
  }

  .main-nav a:not(:last-child) {
    display: none;
  }

  .main-nav {
    gap: 0;
    font-size: 11px;
  }

  .brand-copy small {
    display: none;
  }

  .data-banner-inner {
    padding-block: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .hero h1 {
    margin-top: 17px;
    font-size: clamp(47px, 14vw, 66px);
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .status-card {
    min-height: 500px;
    padding: 20px;
    border-radius: 24px;
  }

  .status-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .radar-stage {
    top: 56px;
    width: 100%;
  }

  .latest-block {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 17px;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card {
    min-height: 144px;
    padding: 23px 18px;
  }

  .metric-card:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .metric-value {
    font-size: 32px;
  }

  .watch-card {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .watch-score {
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 200, 114, 0.16);
    border-left: 0;
  }

  .calendar-section,
  .history-section,
  .about-section {
    padding-top: 80px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .legend {
    justify-content: flex-start;
  }

  .calendar-panel {
    padding: 20px 16px 17px;
  }

  .heatmap {
    grid-template-columns: repeat(26, 18px);
    padding-bottom: 8px;
  }

  .history-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .filter-button {
    flex: 1;
  }

  .search-field {
    min-width: 0;
    width: 100%;
  }

  .event-card {
    padding: 21px 18px;
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .event-card::before {
    top: 19px;
    bottom: 19px;
  }

  .event-time {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 4px 10px;
  }

  .event-type {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
  }

  .event-source {
    grid-column: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: auto;
  }

  .about-card + .about-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-card h3 {
    margin-top: 35px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .disclaimer {
    grid-column: auto;
  }
}

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