@font-face {
  font-family: "Google Sans Flex";
  src: url(/google-sans-flex.woff2) format("woff2");
  font-display: swap;
  font-weight: 300 800;
}

/* ---------- Tokens (Google Material 3 · Gemini Expressive) ---------- */
:root {
  color-scheme: light dark;
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc04;
  --green: #34a853;

  --bg: #ffffff;
  --surface-0: #f8fafd;
  --surface-1: #f0f4f9;
  --surface-2: #e7edf6;
  --surface-3: #dde3ea;
  --raised: #ffffff;
  --on: #1f1f1f;
  --on-2: #444746;
  --on-3: #5f6368;
  --outline: #747775;
  --line: #e1e3e1;
  --primary: #0b57d0;
  --on-primary: #ffffff;
  --primary-soft: #d3e3fd;
  --on-primary-soft: #041e49;
  --cell: #f0f4f9;
  --cell-ink: #5f6368;
  --shadow: 0 1px 2px rgb(60 64 67 / 0.24), 0 2px 6px 2px rgb(60 64 67 / 0.12);
  --shadow-lg: 0 12px 32px -8px rgb(24 39 75 / 0.14), 0 2px 6px rgb(60 64 67 / 0.12);

  /* Semantic Google stage palette: Amber -> Gemini Purple -> Google Blue -> Google Green */
  --watch: #f9ab00;
  --watch-soft: #fef3c7;
  --watch-ink: #744c00;
  --watch-on: #2b1d00;
  --announced: #8430ce;
  --announced-soft: #f3e8fd;
  --announced-ink: #681da8;
  --announced-on: #ffffff;
  --rolling_out: #1a73e8;
  --rolling_out-soft: #d3e3fd;
  --rolling_out-ink: #0842a0;
  --rolling_out-on: #ffffff;
  --reported_complete: #188038;
  --reported_complete-soft: #ceead6;
  --reported_complete-ink: #0d652d;
  --reported_complete-on: #ffffff;

  --font: "Google Sans Flex", "Google Sans", "Product Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --appbar: 64px;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 100%;
  line-height: 1.5;
  color: var(--on);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131314;
    --surface-0: #18191b;
    --surface-1: #1e1f20;
    --surface-2: #282a2c;
    --surface-3: #333537;
    --raised: #232527;
    --on: #e3e3e3;
    --on-2: #c4c7c5;
    --on-3: #9aa0a6;
    --outline: #8e918f;
    --line: #2e3033;
    --primary: #a8c7fa;
    --on-primary: #062e6f;
    --primary-soft: #0842a0;
    --on-primary-soft: #d3e3fd;
    --cell: #252729;
    --cell-ink: #9aa0a6;
    --shadow: 0 1px 3px rgb(0 0 0 / 0.5), 0 4px 10px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 16px 40px -8px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.4);

    --watch: #fdd663;
    --watch-soft: #423000;
    --watch-ink: #fde293;
    --watch-on: #2b1d00;
    --announced: #d7aefb;
    --announced-soft: #3b165e;
    --announced-ink: #e9d2fd;
    --announced-on: #2a0845;
    --rolling_out: #8ab4f8;
    --rolling_out-soft: #0d3a7a;
    --rolling_out-ink: #d3e3fd;
    --rolling_out-on: #062e6f;
    --reported_complete: #81c995;
    --reported_complete-soft: #0f4a22;
    --reported_complete-ink: #c4eed0;
    --reported_complete-on: #072711;
  }
}

.watch { --s: var(--watch); --s-soft: var(--watch-soft); --s-ink: var(--watch-ink); --s-on: var(--watch-on); }
.announced { --s: var(--announced); --s-soft: var(--announced-soft); --s-ink: var(--announced-ink); --s-on: var(--announced-on); }
.rolling_out { --s: var(--rolling_out); --s-soft: var(--rolling_out-soft); --s-ink: var(--rolling_out-ink); --s-on: var(--rolling_out-on); }
.reported_complete { --s: var(--reported_complete); --s-soft: var(--reported_complete-soft); --s-ink: var(--reported_complete-ink); --s-on: var(--reported_complete-on); }

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--appbar) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(920px, 120vh);
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 12% 0%, rgb(66 133 244 / 0.1), transparent 72%),
    radial-gradient(32% 32% at 54% 0%, rgb(132 48 206 / 0.06), transparent 70%),
    radial-gradient(36% 36% at 86% 6%, rgb(52 168 83 / 0.07), transparent 72%);
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
p,
h1,
h2,
h3,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.icon {
  flex: none;
  width: 20px;
  height: 20px;
}
.wrap {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500;
}
.skip:focus {
  top: 12px;
}

/* ---------- Brand ---------- */
.mark {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3125rem;
  font-weight: 450;
  letter-spacing: -0.015em;
  color: var(--on-2);
  white-space: nowrap;
}
.brand b {
  font-weight: 560;
  color: var(--on);
}
.brand .mark {
  transition: transform 0.55s var(--ease);
}
.brand:hover .mark {
  transform: rotate(90deg) scale(1.06);
}

/* ---------- App bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.appbar-inner {
  height: var(--appbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.appbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.appbar nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.appbar nav a:hover {
  background: var(--surface-1);
  color: var(--on);
}
.appbar nav .icon {
  width: 18px;
  height: 18px;
}
.appbar .nav-telegram {
  width: 40px;
  padding: 0;
  justify-content: center;
  margin-left: 4px;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}
.appbar .nav-telegram:hover {
  background: color-mix(in srgb, var(--primary-soft) 85%, var(--on-primary-soft));
  color: var(--on-primary-soft);
}

/* ---------- Buttons & Links ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px 0 20px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 520;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.button .icon {
  width: 19px;
  height: 19px;
}
.button.filled {
  background: var(--primary);
  color: var(--on-primary);
}
.button.filled:hover {
  background: color-mix(in srgb, var(--primary) 90%, var(--on-primary));
  box-shadow: var(--shadow);
}
.button.filled[data-state="on"] {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}
.button.filled:disabled {
  cursor: progress;
  opacity: 0.72;
}
.button.tonal {
  background: var(--surface-1);
  color: var(--on);
  border: 1px solid var(--line);
}
.button.tonal:hover {
  background: var(--surface-2);
}
.button.outlined {
  border: 1px solid var(--outline);
  color: var(--primary);
}
.button.outlined:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--on-2);
  transition: background 0.2s var(--ease);
}
.icon-button:not(:disabled):hover {
  background: var(--surface-1);
}
.icon-button:disabled {
  opacity: 0.34;
  cursor: default;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 520;
  color: var(--primary);
  border-radius: 6px;
}
.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover .icon:last-child {
  transform: translate(1px, -1px);
}
.text-link.muted {
  color: var(--on-3);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 84px);
  padding-block: clamp(32px, 5vw, 72px) clamp(20px, 3vw, 40px);
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-size: 0.9375rem;
  font-weight: 520;
  letter-spacing: -0.005em;
  color: var(--on-2);
}
.eyebrow-sub {
  font-weight: 420;
  color: var(--on-3);
}
.status {
  margin-top: clamp(22px, 3.2vw, 34px);
}
.status-word {
  font-size: clamp(3.125rem, 1.75rem + 5.6vw, 6.25rem);
  font-weight: 475;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--on);
}
.status-meta {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--on-3);
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
  margin-top: 26px;
}
.progress li {
  display: grid;
  gap: 8px;
}
.progress-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.progress .reached .progress-bar {
  background: var(--s);
}
.progress-label {
  font-size: 0.8125rem;
  font-weight: 460;
  color: var(--on-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress .reached .progress-label {
  color: var(--on-2);
}
.progress .current .progress-label {
  color: var(--s-ink);
  font-weight: 620;
}

.quote {
  position: relative;
  max-width: 580px;
  margin-top: 26px;
  padding: 20px 22px 18px 28px;
  border-radius: 22px;
  background: var(--surface-1);
}
.quote::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  bottom: 20px;
  width: 3.5px;
  border-radius: 99px;
  background: var(--s, var(--primary));
}
.quote blockquote {
  font-size: clamp(1.125rem, 0.98rem + 0.55vw, 1.375rem);
  line-height: 1.4;
  font-weight: 450;
  letter-spacing: -0.012em;
  color: var(--on);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.quote figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}
.handle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 520;
  color: var(--on);
  overflow-wrap: anywhere;
}
.handle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 620;
  color: #fff;
  background: var(--blue);
}
.avatar.a0 { background: #1a73e8; }
.avatar.a1 { background: #8430ce; }
.avatar.a2 { background: #e37400; }
.avatar.a3 { background: #188038; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
#notice:not(:empty) {
  margin-top: 12px;
  max-width: 560px;
  font-size: 0.875rem;
  color: var(--on-2);
}

/* hero visual */
.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
}
.glow {
  position: absolute;
  inset: 10% 6% 4% 10%;
  border-radius: 44px;
  filter: blur(38px);
  opacity: 0.34;
  pointer-events: none;
  background: conic-gradient(from 200deg, var(--blue), #9334e6, var(--red), var(--yellow), var(--green), var(--blue));
}
.photo-frame {
  position: relative;
  padding: 10px 10px 14px;
  border-radius: 36px;
  background: var(--raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface-2);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.photo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 12px 8px 0;
  font-size: 0.78125rem;
  color: var(--on-3);
}
.caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 560;
  color: var(--on);
}
.caption-badge .icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
}
.spark {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgb(66 133 244 / 0.22));
}
.spark-1 {
  width: 52px;
  height: 52px;
  top: -18px;
  right: -14px;
}
.spark-2 {
  width: 24px;
  height: 24px;
  bottom: 58px;
  left: -26px;
}

/* ---------- Sections ---------- */
.section {
  padding-top: clamp(56px, 7.5vw, 104px);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: 0.005em;
  color: var(--primary);
}
.kicker .icon {
  width: 18px;
  height: 18px;
}
h2 {
  margin-top: 8px;
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 3rem);
  font-weight: 470;
  line-height: 1.08;
  letter-spacing: -0.024em;
}
.lede {
  margin-top: 10px;
  max-width: 56ch;
  font-size: clamp(0.96875rem, 0.93rem + 0.2vw, 1.0625rem);
  color: var(--on-2);
  text-wrap: pretty;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-0);
}
.stats dd {
  font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.375rem);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.stats dt {
  font-size: 0.84375rem;
  color: var(--on-2);
}

/* ---------- Calendar (horizontal weeks · newest left · latest day on top) ---------- */
.calendar {
  margin-top: 12px;
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.calendar-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--on-2);
}
.calendar-tools b {
  font-weight: 560;
  color: var(--on);
}
.calendar-tools div {
  display: flex;
  align-items: center;
  gap: 2px;
}
.utc {
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.04em;
  color: var(--on-2);
  background: var(--surface-1);
}
.calendar-grid {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.days,
.week {
  display: grid;
  grid-template-rows: 22px repeat(7, var(--cell-h, 30px));
  gap: 5px;
}
.days {
  flex: none;
  width: 34px;
  padding-top: 6px;
  font-size: 0.75rem;
  color: var(--on-3);
}
.days span {
  align-content: center;
}
.weeks-frame {
  flex: 1;
  min-width: 0;
  --fade-left: 0px;
  --fade-right: 0px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black var(--fade-left),
    black calc(100% - var(--fade-right)),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black var(--fade-left),
    black calc(100% - var(--fade-right)),
    transparent
  );
}
.calendar:has(#newer:enabled) .weeks-frame {
  --fade-left: 24px;
}
.calendar:has(#older:enabled) .weeks-frame {
  --fade-right: 28px;
}
.weeks {
  position: relative;
  display: flex;
  gap: 5px;
  padding: 6px 6px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.week {
  flex: 0 0 var(--cell-w, 44px);
  scroll-snap-align: start;
}
.week-label {
  align-content: center;
  text-align: center;
  white-space: nowrap;
  font-size: 0.6875rem;
  letter-spacing: -0.01em;
  color: var(--on-3);
  font-variant-numeric: tabular-nums;
}
.week.month-head .week-label {
  color: var(--on-2);
  font-weight: 560;
}
.week:first-child .week-label {
  color: var(--primary);
  font-weight: 620;
}
.cell {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--cell);
  color: var(--cell-ink);
  font-size: 0.75rem;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.cell.future {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: color-mix(in srgb, var(--cell-ink) 52%, transparent);
}
.cell[href] {
  background: var(--s);
  color: var(--s-on);
  font-weight: 620;
}
.cell[href].multi::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.cell[href]:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow);
  z-index: 1;
}
.cell.today {
  box-shadow: inset 0 0 0 2px var(--primary);
  color: var(--primary);
  font-weight: 650;
}
.cell[href].today {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
  color: var(--s-on);
}
.cell.selected {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--on);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--on-2);
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--s, var(--cell));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on) 10%, transparent);
}

/* ---------- Feed ---------- */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-size: 0.875rem;
  font-weight: 520;
  transition: background 0.2s var(--ease);
}
.filter-chip .icon {
  width: 17px;
  height: 17px;
}
.filter-chip:hover {
  background: color-mix(in srgb, var(--primary-soft) 86%, var(--on-primary-soft));
}
.day-group {
  margin-top: 28px;
  scroll-margin-top: calc(var(--appbar) + 16px);
  outline: none;
}
.day-group + .day-group {
  margin-top: 36px;
}
.day-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 540;
  letter-spacing: -0.01em;
}
.day-heading span {
  font-size: 0.8125rem;
  font-weight: 430;
  color: var(--on-3);
}
.reports {
  display: grid;
}
.report {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  scroll-margin-top: calc(var(--appbar) + 16px);
}
.rail {
  position: relative;
}
.rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--line);
}
.report:first-child .rail::before {
  top: 42px;
}
.report:last-child .rail::before {
  bottom: calc(100% - 42px);
}
.report:only-child .rail::before {
  display: none;
}
.rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 36px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 0 4px var(--bg);
}
.report-card {
  min-width: 0;
  margin-block: 10px;
  padding: 18px 22px 16px;
  border-radius: 22px;
  background: var(--surface-0);
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.report-card:hover {
  background: var(--surface-1);
}
.day-group:target .day-heading {
  color: var(--primary);
  border-bottom-color: currentColor;
}
.day-group:target .report-card,
.report:target .report-card {
  background: var(--s-soft);
  border-color: var(--s);
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8125rem;
  color: var(--on-2);
}
.report-meta time {
  font-weight: 540;
  color: var(--on);
  font-variant-numeric: tabular-nums;
}
.meta-dot,
.ago {
  color: var(--on-3);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 8px;
  background: var(--s-soft);
  color: var(--s-ink);
  font-size: 0.8125rem;
  font-weight: 560;
}
.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s);
}
.report-card blockquote {
  margin-top: 12px;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.21875rem);
  line-height: 1.44;
  font-weight: 440;
  letter-spacing: -0.008em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.report-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
}
.report-foot .avatar {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 540;
  transition: background 0.2s var(--ease);
}
.source-pill .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}
.source-pill:hover {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}
.source-pill:hover .icon {
  transform: translate(1px, -1px);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.pager .next {
  margin-left: auto;
  padding: 0 20px 0 24px;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 48px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-0);
  text-align: center;
}
.empty .mark {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 1.1875rem;
  font-weight: 480;
}
.empty span {
  font-size: 0.875rem;
  color: var(--on-2);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  font-size: 0.875rem;
  color: var(--on-2);
}
.footer .brand {
  font-size: 1.0625rem;
}
.footer .mark {
  width: 22px;
  height: 22px;
}
.footer nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.footer nav a:hover {
  color: var(--on);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero-visual {
    justify-self: center;
    width: min(100%, 480px);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  :root {
    --appbar: 56px;
  }
  .brand {
    font-size: 1.15625rem;
    gap: 8px;
  }
  .brand .mark {
    width: 23px;
    height: 23px;
  }
  .appbar nav a {
    padding: 0 12px;
  }
  .appbar nav a:not(.nav-telegram) .icon {
    display: none;
  }
  .hero {
    padding-top: 24px;
    gap: 32px;
  }
  .status {
    margin-top: 20px;
  }
  .progress {
    gap: 6px;
    margin-top: 22px;
  }
  .progress-label {
    font-size: 0.75rem;
  }
  .quote {
    margin-top: 22px;
    padding: 16px 16px 14px 25px;
    border-radius: 18px;
  }
  .quote::before {
    left: 12px;
    top: 16px;
    bottom: 16px;
  }
  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
  }
  .actions .button.filled {
    flex: 1.3 1 190px;
  }
  .actions .button.tonal {
    flex: 1 1 130px;
  }
  .photo-frame {
    padding: 8px 8px 12px;
    border-radius: 28px;
  }
  .photo {
    aspect-ratio: 6 / 5;
    border-radius: 20px;
  }
  .photo img {
    object-position: 50% 48%;
  }
  .photo-caption {
    padding: 10px 6px 0;
    font-size: 0.75rem;
  }
  .spark-1 {
    width: 42px;
    height: 42px;
    top: -14px;
    right: -6px;
  }
  .spark-2 {
    display: none;
  }
  .stats {
    gap: 8px;
    margin-top: 22px;
  }
  .stats > div {
    padding: 14px 16px 12px;
    border-radius: 18px;
  }
  .stats dt {
    font-size: 0.8125rem;
  }
  .calendar {
    margin-top: 8px;
    border-radius: 20px;
    --cell-w: 40px;
    --cell-h: 32px;
  }
  .days {
    width: 28px;
  }
  .calendar-grid {
    gap: 4px;
  }
  .legend {
    gap: 8px 14px;
    font-size: 0.75rem;
  }
  .day-heading {
    font-size: 1rem;
  }
  .report {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 10px;
  }
  .rail::after {
    width: 10px;
    height: 10px;
    margin-left: -5px;
  }
  .report-card {
    padding: 16px;
    border-radius: 18px;
  }
  .pager .button {
    flex: 1;
    padding: 0 14px;
  }
  .footer nav {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 380px) {
  .appbar nav a:not(.nav-telegram) {
    padding: 0 10px;
  }
  .progress-label {
    font-size: 0.6875rem;
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .spark-1 {
    animation: twinkle 6s ease-in-out infinite;
  }
  .spark-2 {
    animation: twinkle 5s ease-in-out -2s infinite;
  }
  .progress .reached .progress-bar {
    animation: fill 0.55s var(--ease) both;
    transform-origin: left;
  }
  .progress .reached:nth-child(2) .progress-bar { animation-delay: 0.1s; }
  .progress .reached:nth-child(3) .progress-bar { animation-delay: 0.2s; }
  .progress .reached:nth-child(4) .progress-bar { animation-delay: 0.3s; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@keyframes twinkle {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  50% {
    transform: rotate(35deg) scale(0.88);
  }
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
}
