@font-face {
  font-family: Radar;
  src: url("/static/fonts/Onest.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gate-orbit {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
}
.gate-orbit svg {
  width: 42px;
  height: 42px;
}
.event-card:nth-child(2) {
  animation-delay: 45ms;
}
.event-card:nth-child(3) {
  animation-delay: 90ms;
}
.event-card:nth-child(4) {
  animation-delay: 135ms;
}
:root {
  color-scheme: light;
  --bg: #f6f5f0;
  --surface: #fffefa;
  --ink: #252d28;
  --muted: #71786f;
  --line: #e2e4da;
  --accent: #bd4724;
  --accent-soft: #f7e6db;
  --green: #526650;
  --green-soft: #eaf0e5;
  --nav: #29332b;
  --shadow: 0 24px 80px #1f302319;
  --radius: 20px;
  font-family: Radar, "Trebuchet MS", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-touch-callout: none;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button {
  border: 0;
}
a {
  color: inherit;
}
button,
a,
input,
textarea,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button svg,
svg.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
button svg {
  pointer-events: none;
}
button {
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
::selection {
  background: var(--accent-soft);
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.app-shell {
  max-width: 1280px;
  min-height: 100svh;
  margin: auto;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
}
.sidebar {
  padding: 46px 26px 32px 34px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100svh;
}
.wordmark {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.6px;
  text-decoration: none;
}
.brand-symbol {
  width: 35px;
  height: 35px;
}
.brand-period,
.mobile-brand > span:first-child {
  color: var(--accent);
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 2.8px;
  color: var(--muted);
  margin: 17px 0 54px 46px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-button:hover {
  background: var(--line);
}
.nav-button[aria-current="page"] {
  background: var(--nav);
  color: #fffefa;
}
.nav-button .nav-count {
  margin-left: auto;
  background: #ffffff20;
  color: #fffefa;
  font-size: 11px;
  min-width: 22px;
  text-align: center;
  border-radius: 6px;
  padding: 1px 4px;
}
.sidebar-note {
  margin-top: auto;
  font-size: 11px;
  color: var(--green);
  padding: 28px 2px 0;
}
.sidebar-note p {
  color: var(--muted);
  margin: 6px 0 0 13px;
  font-size: 10px;
}
.status-dot {
  display: inline-block;
  background: var(--green);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
main {
  padding: 48px 48px 20px;
  min-width: 0;
  outline: none;
}
.mobile-brand {
  display: none;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 600;
  color: var(--muted);
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 30px;
}
.page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -2px;
  margin: 10px 0;
}
.page-header p {
  font-size: 14px;
  color: var(--muted);
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  flex: none;
  transition:
    transform 0.18s,
    background 0.18s;
}
.icon-button:hover {
  background: var(--line);
  transform: rotate(-6deg);
}
.refresh svg {
  width: 17px;
  height: 17px;
}
.refresh[aria-busy="true"] svg {
  animation: spin 1s linear infinite;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin: 42px 0 6px;
}
.mini-orbit {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.mini-orbit:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  top: 0;
  right: -1px;
}
.overview {
  position: relative;
  overflow: hidden;
  background: var(--green-soft);
  border: 1px solid #dfe5d7;
  border-radius: var(--radius);
  padding: 27px 30px 24px;
  isolation: isolate;
  margin-bottom: 28px;
}
.overview-text {
  position: relative;
  z-index: 1;
  max-width: 78%;
}
.overview .eyebrow {
  color: var(--green);
}
.overview h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  letter-spacing: -0.5px;
  font-weight: 400;
  margin: 10px 0 11px;
  max-width: 420px;
}
.overview p {
  color: var(--green);
  font-size: 12px;
  max-width: 360px;
}
.overview-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 26px;
}
.overview-metrics > div + div {
  padding-left: 27px;
  border-left: 1px solid #cfd9c9;
}
.overview-metrics strong {
  display: block;
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.overview-metrics span {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: var(--green);
}
.radar-art {
  position: absolute;
  width: 250px;
  height: 250px;
  right: -39px;
  top: 0;
  color: #83967c;
  opacity: 0.38;
  z-index: 0;
  transform: rotate(-12deg);
}
.radar-art .radar-spot {
  fill: var(--accent);
  opacity: 1;
}
.overview-mark {
  position: absolute;
  right: 21px;
  bottom: 17px;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 1.5px;
}
.filters {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 27px;
  padding: 2px 1px 5px;
}
.filter {
  padding: 8px 14px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 30px;
  font-size: 12px;
  color: var(--muted);
  transition: background 0.2s;
}
.filter:hover {
  background: var(--line);
}
.filter[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}
.filter span {
  margin-left: 7px;
  font-size: 10px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}
.section-title h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.section-title .section-count {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 20px;
  text-align: center;
}
.section-title .section-line {
  height: 1px;
  flex: 1;
  background: var(--line);
  margin-left: 2px;
}
.section-title.attention-title:before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.feed-section + .feed-section {
  margin-top: 30px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.event-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 21px 22px 17px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  animation: arrive 0.4s both;
  animation-delay: calc(var(--order, 0) * 45ms);
}
.event-card:hover {
  transform: translateY(-3px);
  border-color: #b3beaa;
  box-shadow: 0 8px 25px #253a2710;
}
.event-card.attention {
  border-top: 2px solid #d37450;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.3;
}
.badge svg {
  width: 12px;
  height: 12px;
}
.attention .badge {
  background: var(--accent-soft);
  color: var(--accent);
}
.card-time {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.event-card h3 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.35px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.card-preview {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-source {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.avatar {
  background: #edece3;
  color: #656d5d;
  border-radius: 7px;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex: none;
}
.people .avatar {
  background: var(--green-soft);
  color: var(--green);
}
.source-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-source .icon {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0.65;
}
.card-meta {
  margin-top: auto;
  padding-top: 13px;
  font-size: 9px;
  color: var(--muted);
}
.card-meta span + span:before {
  content: "·";
  margin: 0 6px;
}
.update-note {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  margin-top: 17px;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  padding: 46px 25px;
}
.empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin: 0 auto 18px;
}
.empty h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  margin-bottom: 12px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 350px;
  margin: auto;
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.18s;
}
.primary-button {
  background: var(--nav);
  color: #fffefa;
}
.primary-button:hover {
  background: #435140;
}
.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
}
.secondary-button:hover {
  background: var(--line);
}
.empty .primary-button,
.empty .secondary-button {
  margin-top: 22px;
}
.gate {
  max-width: 460px;
  margin: 10svh auto;
  text-align: center;
}
.gate-orbit {
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
  color: var(--green);
}
.gate h1 {
  font:
    38px/1.15 Georgia,
    serif;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.gate p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid #edcdbb;
  border-radius: 8px;
  color: var(--accent);
  padding: 9px 12px;
  font-size: 10px;
  margin: -18px 0 27px;
}
.demo-banner button {
  text-decoration: underline;
  padding: 5px;
}
.skeleton {
  border-radius: 16px;
  animation: pulse 1.5s ease-in-out infinite;
  background: var(--line);
}
.skeleton-title {
  width: 50%;
  height: 58px;
  margin: 34px 0;
}
.skeleton-hero {
  height: 205px;
  margin-bottom: 36px;
}
.skeleton-card {
  height: 220px;
}
.list-section {
  margin: 28px 0;
}
.list-section h2 {
  font-size: 13px;
  margin-bottom: 13px;
}
.subscription-list,
.settings-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.subscription-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
}
.subscription-row + .subscription-row {
  border-top: 1px solid var(--line);
}
.subscription-copy {
  flex: 1;
  min-width: 0;
}
.subscription-copy strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
}
.subscription-copy p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.toggle {
  position: relative;
  width: 42px;
  height: 25px;
  border-radius: 30px;
  background: #c6cbc1;
  flex: none;
  padding: 3px;
  transition: background 0.2s;
}
.toggle::after {
  content: "";
  position: absolute;
  inset: -10px -2px;
}
.toggle:before {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.2s;
}
.toggle[aria-checked="true"] {
  background: var(--green);
}
.toggle[aria-checked="true"]:before {
  transform: translateX(17px);
}
.info-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 16px 3px 0;
}
.settings-block {
  padding: 22px;
}
.settings-block h2 {
  font-size: 15px;
  margin-bottom: 6px;
}
.settings-block > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.mode-options {
  display: grid;
  gap: 8px;
}
.mode-option {
  display: flex;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 11px;
  align-items: flex-start;
  background: var(--bg);
}
.mode-option[aria-checked="true"] {
  border-color: var(--green);
  background: var(--green-soft);
}
.mode-radio {
  width: 16px;
  height: 16px;
  flex: none;
  border: 1px solid var(--muted);
  border-radius: 50%;
  margin-top: 2px;
  display: grid;
  place-items: center;
}
.mode-option[aria-checked="true"] .mode-radio:after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.mode-option strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.mode-option small {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.settings-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.fact {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.fact .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.fact strong {
  display: block;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 8px 0 3px;
}
.fact p {
  font-size: 10px;
  color: var(--muted);
}
dialog {
  width: min(620px, calc(100% - 32px));
  max-height: 90svh;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  padding: 0;
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}
dialog[open] {
  animation: arrive 0.22s both;
}
dialog::backdrop {
  background: #1b251e6b;
  backdrop-filter: blur(5px);
}
.dialog-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-bar .icon-button {
  width: 34px;
  height: 34px;
  background: none;
}
.dialog-bar svg {
  width: 17px;
  height: 17px;
}
#event-content {
  padding: 24px 27px 30px;
}
.detail-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
#event-title {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.detail-reason {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.detail-actions {
  display: flex;
  gap: 8px;
  margin: 24px 0 22px;
  flex-wrap: wrap;
}
.detail-actions button svg,
.detail-actions a svg {
  width: 15px;
  height: 15px;
}
.conversation {
  display: grid;
  gap: 10px;
}
.message {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.message.focus {
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.message-byline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.message-byline strong {
  font-weight: 500;
  color: var(--ink);
}
.message p {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
}
.message a,
.result a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.message-ref {
  margin-top: 10px;
  font-size: 9px;
  color: var(--muted);
}
.context-heading {
  font-size: 11px;
  font-weight: 500;
  margin: 25px 0 12px;
}
.context-summary {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 0;
  cursor: pointer;
}
.result {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.result h3 {
  font-size: 12px;
  margin-bottom: 14px;
}
.result-prose {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.result-label {
  font-size: 10px;
  color: var(--green);
  margin-bottom: 12px;
}
.draft {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.draft p {
  font-size: 14px;
  line-height: 1.65;
  user-select: text;
}
.draft .copy-button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--green);
  margin-top: 10px;
  padding: 5px 0;
  min-height: 30px;
}
.copy-button svg {
  width: 13px;
  height: 13px;
}
.question-form {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.question-form input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}
.question-form button {
  flex: none;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--nav);
  color: #fff;
}
.question-form button svg {
  width: 17px;
  height: 17px;
}
.refine-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 3px;
}
.refine-options button {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 11px;
}
.refine-options button:hover {
  background: var(--green-soft);
}
.action-loading {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 3px;
}
.action-loading:before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.inline-error {
  color: var(--accent);
  font-size: 12px;
  padding: 15px;
  background: var(--accent-soft);
  border-radius: 10px;
}
.source-list {
  padding-top: 10px;
}
.source-list a,
.source-list span {
  display: inline-block;
  font-size: 10px;
  color: var(--muted);
  margin: 3px 8px 3px 0;
}
.privacy-note {
  padding: 18px 2px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  background: var(--nav);
  color: white;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 12px;
  z-index: 10;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100% - 30px);
  text-align: center;
  box-shadow: var(--shadow);
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@media (min-width: 1280px) {
  .app-shell {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 40px 18px;
  }
  .sidebar-caption {
    margin-left: 4px;
    font-size: 8px;
  }
  main {
    padding: 42px 30px 20px;
  }
  .nav-button {
    padding: 12px;
    font-size: 12px;
  }
  .overview {
    padding: 24px;
  }
  .event-card {
    padding: 18px;
  }
  .overview h2 {
    font-size: 25px;
  }
  .radar-art {
    right: -65px;
  }
  .overview-mark {
    display: none;
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: auto;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .sidebar .wordmark,
  .sidebar-caption,
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    max-width: 460px;
    width: 100%;
    margin: auto;
  }
  .nav-button {
    flex-direction: column;
    gap: 4px;
    border-radius: 12px;
    padding: 8px 10px 7px;
    flex: 1;
    font-size: 9px;
    position: relative;
  }
  .nav-button svg {
    width: 20px;
    height: 20px;
  }
  .nav-button[aria-current="page"] {
    background: var(--nav);
  }
  .nav-button .nav-count {
    position: absolute;
    top: 4px;
    right: calc(50% - 25px);
    font-size: 8px;
    min-width: 14px;
    padding: 0 3px;
    border-radius: 4px;
  }
  .mobile-brand {
    display: flex;
    align-items: baseline;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 29px;
  }
  .mobile-caption {
    margin-left: auto;
    font-size: 8px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 2px;
  }
  main {
    padding: calc(
        20px +
          max(
            env(safe-area-inset-top),
            var(--tg-content-safe-area-inset-top, 0px)
          )
      )
      22px calc(100px + env(safe-area-inset-bottom));
  }
  .page-header {
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: 43px;
    margin-top: 8px;
    letter-spacing: -1.5px;
  }
  .page-header p {
    font-size: 12px;
  }
  .page-header .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
  }
  .page-header .icon-button {
    margin-bottom: 4px;
    width: 38px;
    height: 38px;
  }
  .overview {
    padding: 23px 22px 20px;
    margin-bottom: 22px;
    border-radius: 17px;
  }
  .overview-text {
    max-width: 85%;
  }
  .overview h2 {
    font-size: 25px;
    max-width: 260px;
    margin-top: 10px;
  }
  .overview p {
    font-size: 11px;
    max-width: 240px;
  }
  .overview-metrics {
    gap: 22px;
    margin-top: 23px;
  }
  .overview-metrics > div + div {
    padding-left: 21px;
  }
  .overview-metrics strong {
    font-size: 23px;
  }
  .overview-metrics span {
    font-size: 9px;
  }
  .radar-art {
    width: 210px;
    height: 210px;
    right: -89px;
    top: 13px;
    opacity: 0.32;
  }
  .event-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .event-card {
    padding: 20px 21px 16px;
    border-radius: 14px;
  }
  .event-card h3 {
    font-size: 18px;
  }
  .card-preview {
    font-size: 13px;
    -webkit-line-clamp: 3;
    line-height: 1.65;
  }
  .card-top {
    margin-bottom: 13px;
  }
  .card-source {
    margin-top: 14px;
  }
  .card-meta {
    font-size: 10px;
    padding-top: 12px;
  }
  .badge {
    font-size: 10px;
  }
  .card-source {
    font-size: 11px;
  }
  .card-time {
    font-size: 11px;
  }
  .filters {
    gap: 2px;
    margin-bottom: 20px;
    margin-left: -3px;
  }
  .filter {
    font-size: 11px;
    padding: 8px 12px;
  }
  .section-title {
    margin-bottom: 12px;
  }
  .section-title h2 {
    font-size: 12px;
  }
  .feed-section + .feed-section {
    margin-top: 27px;
  }
  .page-footer {
    margin-top: 32px;
    font-size: 10px;
  }
  .demo-banner {
    margin: 0 0 23px;
  }
  .gate {
    margin: 5svh auto;
  }
  .gate h1 {
    font-size: 35px;
  }
  .settings-facts {
    gap: 10px;
  }
  .fact {
    padding: 17px;
  }
  .fact .eyebrow {
    font-size: 8px;
  }
  .subscription-row {
    padding: 17px 16px;
  }
  .settings-block {
    padding: 19px;
  }
  #toast {
    bottom: calc(95px + env(safe-area-inset-bottom));
  }
  dialog {
    width: 100%;
    max-width: none;
    margin: 0;
    top: auto;
    bottom: 0;
    max-height: 94svh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    overscroll-behavior: contain;
  }
  .dialog-bar {
    padding: 14px 22px;
  }
  #event-content {
    padding: 23px 22px calc(25px + env(safe-area-inset-bottom));
  }
  #event-title {
    font-size: 28px;
  }
  .detail-actions {
    gap: 7px;
  }
  .detail-actions .primary-button,
  .detail-actions .secondary-button {
    padding: 11px 13px;
    font-size: 11px;
  }
  .message {
    padding: 15px;
  }
  .question-form input {
    font-size: 16px;
  }
  .result {
    padding: 18px;
  }
  .message p {
    font-size: 13px;
  }
  .result-prose {
    font-size: 13px;
  }
}
@media (max-width: 350px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .overview-metrics {
    gap: 15px;
  }
  .overview-metrics > div + div {
    padding-left: 15px;
  }
  .filter {
    padding: 8px;
  }
  .detail-actions {
    gap: 5px;
  }
  .detail-actions .primary-button,
  .detail-actions .secondary-button {
    padding: 10px;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c231f;
  --surface: #232b25;
  --ink: #e6e9de;
  --muted: #a4ad9d;
  --line: #394337;
  --accent: #f19a77;
  --accent-soft: #433027;
  --green: #b1c0a2;
  --green-soft: #2b382c;
  --nav: #3d4d3d;
  --shadow: 0 24px 80px #0006;
}
:root[data-theme="dark"] .overview {
  border-color: #3c4a37;
}
:root[data-theme="dark"] .overview-metrics > div + div {
  border-color: #47563f;
}
:root[data-theme="dark"] .avatar {
  background: #35402f;
  color: #c0c8b7;
}
:root[data-theme="dark"] .demo-banner {
  border-color: #664633;
}
:root[data-theme="dark"] .event-card.attention {
  border-top-color: #b87e59;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
