:root {
  --ink: #172238;
  --muted: #667085;
  --faint: #8893a6;
  --line: #e4e8ef;
  --bg: #f5f7fa;
  --white: #fff;
  --orange: #ec5628;
  --navy: #15233c;
  --teal: #1b7f72;
  --surface-soft: #f1f4f8;
  --accent-soft: #fff0e9;
  --accent-text: #b4401c;
  --accent-border: #f3b39b;
  --heat-0: #f0f3f7;
  --heat-1: #e2e8f0;
  --heat-2: #c8d5e4;
  --heat-3: #a4bad0;
  --heat-4: #7094b5;
  --heat-5: #466d96;
  --heat-6: #284b72;
  --heat-7: #183855;
  color-scheme: light;
  --radius: 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #f79b75;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--white);
  padding: 12px;
  z-index: 9;
}
.skip:focus {
  top: 10px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 34px 20px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  gap: 11px;
  text-decoration: none;
  align-items: center;
  font-family: Manrope, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  padding-left: 9px;
}
.brand-mark {
  background: var(--orange);
  color: #fff;
  border-radius: 11px;
  width: 39px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.9375rem;
}
.brand-sub {
  font-size: 0.75rem;
  letter-spacing: 2.1px;
  display: block;
  margin-top: 6px;
  font-weight: 750;
}
.nav-label {
  font-size: 0.75rem;
  letter-spacing: 1.7px;
  color: var(--faint);
  font-weight: 650;
  margin: 49px 12px 16px;
}
nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  border: 0;
  background: none;
  color: var(--muted);
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 550;
  padding: 13px 12px;
  border-radius: 8px;
}
.nav-item span {
  font-size: 1.3125rem;
  width: 20px;
  line-height: 1;
}
.nav-item:hover {
  background: var(--bg);
}
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.sidebar-note {
  margin-top: auto;
  padding: 60px 13px 29px;
}
.archive-label {
  color: #7e899d;
  font-size: 0.75rem;
  letter-spacing: 1.4px;
  font-weight: 700;
}
.sidebar-note p {
  font-family: Manrope;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 10px 0 16px;
}
.sidebar-note small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
}
.sidebar-footer small {
  display: block;
  color: var(--faint);
  font-size: 0.75rem;
  margin-top: 4px;
}
.creator small {
  margin: 0 0 4px;
  font-weight: 400;
}
.creator-name {
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
}
.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
  font-size: 0.875rem;
  font-weight: 500;
}
.creator-links a,
.main-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.creator a:hover,
.main-footer a:hover {
  color: var(--ink);
}
.avatar {
  background: var(--surface-soft);
  color: var(--navy);
  width: 34px;
  flex-shrink: 0;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}
.workspace {
  margin-left: 232px;
  width: calc(100% - 232px);
}
.archive-controls {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.875rem;
}
.archive-controls p {
  margin: 0 0 10px;
}
.archive-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.archive-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.archive-actions select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.archive-actions .compact {
  padding: 8px 10px;
  font-size: 0.875rem;
}
.auto-refresh {
  margin-left: auto;
}
.auto-refresh input {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}
.freshness {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--white);
}
.freshness strong {
  color: var(--ink);
  font-weight: 600;
}
.freshness .freshness-note {
  flex-basis: 100%;
  font-size: 0.75rem;
}
.download-progress {
  width: min(340px, 100%);
  height: 8px;
  accent-color: var(--navy);
  margin: 16px 0;
}
@media (max-width: 600px) {
  .auto-refresh {
    margin-left: 0;
  }
}
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.topbar strong {
  font-weight: 500;
  color: var(--ink);
}
.slash {
  margin: 0 14px;
  color: #bbc2ce;
}
.archive-badge {
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.75rem;
  padding: 5px 8px;
  color: var(--muted);
}
main {
  max-width: 1510px;
  margin: auto;
  padding: 34px 40px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--orange);
  margin: 0 0 11px;
}
h1 {
  font:
    750 clamp(1.5625rem, 2.3vw, 2.125rem) / 1.25 Manrope,
    sans-serif;
  letter-spacing: -1.1px;
  margin: 0 0 10px;
}
h2 {
  font:
    750 1.1875rem/1.4 Manrope,
    sans-serif;
  letter-spacing: -0.45px;
  margin: 0;
}
h3 {
  font:
    700 1rem/1.4 Manrope,
    sans-serif;
  margin: 0;
}
.subtle {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--white);
  color: var(--ink);
  white-space: nowrap;
}
.button:hover {
  filter: brightness(0.97);
}
.button.primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.button.quiet {
  background: transparent;
  font-size: 0.75rem;
}
.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 17px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 550;
}
.filters select,
.filters input {
  height: 37px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  color: var(--ink);
  padding: 0 10px;
  font-size: 0.8125rem;
  min-width: 0;
}
.filters label:first-child {
  flex: 1;
  min-width: 138px;
}
.filters label.timezone {
  flex: 1.2;
}
.filters .community-field {
  flex: 1;
  min-width: 180px;
}
.community-field > label {
  margin-bottom: 7px;
}
.community-picker {
  position: relative;
}
.filters .community-picker input {
  width: 100%;
  padding-left: 30px;
  padding-right: 38px;
}
.community-prefix {
  position: absolute;
  left: 11px;
  top: 9px;
  color: var(--muted);
  font-size: 0.875rem;
  pointer-events: none;
}
.community-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 36px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0 5px 5px 0;
  color: var(--muted);
  background: transparent;
}
.community-toggle:hover {
  color: var(--ink);
  background: var(--bg);
}
.community-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.community-popup {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 8;
  width: max(100%, 290px);
  max-width: calc(100vw - 56px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 12px 32px rgb(0 0 0 / 16%);
  overflow: hidden;
}
.community-search-status {
  padding: 11px 13px;
  color: var(--muted);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
#community-options {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
}
#community-options:empty {
  display: none;
}
.community-option {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 3px;
  width: 100%;
  padding: 10px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.community-option:hover,
.community-option[aria-selected="true"] {
  background: var(--bg);
  box-shadow: inset 3px 0 var(--accent-text);
}
.community-option-name {
  font-size: 0.875rem;
  font-weight: 500;
}
.community-option-name strong {
  font-weight: 750;
  color: var(--accent-text);
}
.community-option-detail {
  font-size: 0.6875rem;
  color: var(--muted);
}
.community-manual {
  border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
}
.community-hint {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-top: 1px solid var(--line);
  font-size: 0.625rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .filters .community-field {
    flex-basis: 100%;
  }
  .community-popup {
    width: 100%;
  }
}
.date-dash {
  align-self: center;
  margin-top: 18px;
  color: #a5adba;
}
.coverage-note {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 2px 20px;
  line-height: 1.5;
}
.coverage-note strong {
  color: var(--ink);
  font-weight: 600;
}
.coverage-note .coverage-icon {
  color: var(--teal);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 22px;
  position: relative;
  overflow: hidden;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.stat-icon {
  font-size: 1.1875rem;
  color: #9da7b8;
}
.stat-number {
  font:
    750 1.9375rem/1.3 Manrope,
    sans-serif;
  letter-spacing: -1px;
  margin: 8px 0 6px;
}
.stat-foot {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}
.stat-foot .highlight {
  color: var(--teal);
  font-weight: 600;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 23px;
}
.panel-head p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 5px 0 0;
}
.panel-head .text-button {
  margin-top: 1px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 22px;
}
.segmented {
  display: flex;
  gap: 2px;
  background: var(--surface-soft);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}
.segmented button {
  border: 0;
  border-radius: 4px;
  background: none;
  padding: 7px 10px;
  font-size: 0.75rem;
  color: var(--muted);
}
.segmented button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px #17223815;
}
.heatmap {
  display: grid;
  grid-template-columns: 30px repeat(24, minmax(0, 1fr));
  gap: 4px;
  min-width: 535px;
}
.heat-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
}
.heat-hour,
.heat-day {
  font-size: 0.75rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.heat-hour {
  padding-bottom: 7px;
}
.heat-day {
  justify-content: flex-start;
  color: var(--muted);
}
.heat-cell {
  aspect-ratio: 1/1.25;
  min-height: 19px;
  border: 0;
  border-radius: 3px;
  padding: 0;
  transition:
    transform 0.13s,
    outline 0.13s;
}
.heat-cell:hover,
.heat-cell.selected {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  z-index: 1;
}
.heat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 15px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend i {
  width: 12px;
  height: 10px;
  border-radius: 2px;
}
.heat-detail {
  font-size: 0.75rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  margin-top: 17px;
  line-height: 1.5;
  min-height: 40px;
}
.heat-detail strong {
  color: var(--ink);
}
.rec-panel {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  position: relative;
}
.rec-panel .panel-head p {
  color: #a6b3c9;
}
.rec-icon {
  border: 1px solid #455169;
  border-radius: 8px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #ffad77;
}
.rec-kicker {
  font-size: 0.75rem;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: #bac9df;
  margin: 0 0 12px;
}
.rec-time {
  font:
    700 1.6875rem/1.3 Manrope,
    sans-serif;
  letter-spacing: -0.9px;
  margin-bottom: 8px;
}
.rec-context {
  color: #bac6d9;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.rec-rule {
  height: 1px;
  background: #ffffff20;
  margin: 20px 0;
}
.rec-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.rec-figures b {
  font: 700 1.5rem Manrope;
  display: block;
}
.rec-figures small {
  display: block;
  color: #aab9d0;
  font-size: 0.75rem;
  margin-top: 4px;
}
.confidence {
  display: inline-flex;
  background: #ffffff12;
  border: 1px solid #ffffff1f;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #d2dbeb;
  padding: 5px 7px;
  margin-top: 14px;
}
.rec-panel .text-button {
  color: #fff;
  font-size: 0.75rem;
  padding: 8px 0;
}
.text-button {
  color: var(--orange);
  background: none;
  border: 0;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.chart {
  width: 100%;
  height: 140px;
  display: block;
  overflow: visible;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 9px;
}
.chart-key {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 17px;
  align-items: center;
}
.key-line {
  display: inline-block;
  width: 13px;
  height: 3px;
  background: var(--orange);
  margin-right: 6px;
  vertical-align: middle;
}
.key-line.blue {
  background: #8195b5;
}
.insight-note {
  display: flex;
  gap: 9px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 22px;
}
.insight-note strong {
  color: var(--ink);
  font-weight: 600;
}
.main-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  gap: 18px;
  color: #929bad;
  padding: 10px 0 26px;
}
.footer-dot {
  margin: 0 7px;
}
.loading-state,
.empty-state {
  padding: 65px 20px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.loading-state p,
.empty-state p {
  font-size: 0.875rem;
  line-height: 1.7;
}
.loading-state h2,
.empty-state h2 {
  color: var(--ink);
}
.loader {
  display: block;
  width: 25px;
  height: 25px;
  border: 2px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 7px;
  color: var(--muted);
  white-space: nowrap;
}
.small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}
.section-intro {
  margin-bottom: 20px;
}
.section-intro p {
  max-width: 760px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}
th {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 550;
  background: var(--surface-soft);
  white-space: nowrap;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  line-height: 1.6;
}
tr:last-child td {
  border-bottom: 0;
}
td a {
  font-weight: 550;
  text-decoration: none;
}
td a:hover {
  color: var(--orange);
}
.post-title {
  min-width: 260px;
  max-width: 480px;
}
.post-title small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
}
.table-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.table-controls input,
.table-controls select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--white);
  font-size: 0.8125rem;
  color: var(--ink);
}
.table-controls input {
  flex: 1;
  min-width: 200px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--muted);
}
.pagination .buttons {
  display: flex;
  gap: 8px;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.method-grid .panel {
  margin: 0;
}
.prose p,
.prose li {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
}
.prose a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}
.prose li {
  margin-bottom: 7px;
}
.prose ul,
.prose ol {
  padding-left: 20px;
}
.notice {
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  background: var(--accent-soft);
  font-size: 0.8125rem;
  line-height: 1.7;
  border-radius: 0 7px 7px 0;
  margin: 0 0 22px;
  color: var(--accent-text);
}
.rank-bar {
  height: 5px;
  width: 100%;
  background: var(--surface-soft);
  border-radius: 4px;
  margin-top: 7px;
  overflow: hidden;
}
.rank-bar span {
  height: 100%;
  background: var(--orange);
  display: block;
}
.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.window-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.window-card.selected {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.window-card h3 {
  font-size: 1.125rem;
  margin: 10px 0;
}
.window-score {
  font: 700 1.5625rem Manrope;
}
.window-card .small {
  margin: 9px 0;
}
.comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.comparison .panel {
  margin-bottom: 0;
}
.comparison h3 {
  font-size: 1.125rem;
}
.coverage-list {
  display: grid;
  gap: 9px;
}
.coverage-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 0.8125rem;
}
.coverage-row span:first-child {
  color: var(--muted);
}
.muted-warning {
  color: var(--accent-text);
}
.tag {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
}
.metric-big {
  font: 750 1.875rem Manrope;
  margin: 12px 0 3px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 17px;
}
summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1600px) {
  main {
    padding-top: 43px;
  }
  .heat-cell {
    aspect-ratio: 1/1.08;
  }
  .content-grid {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
}
@media (max-width: 1190px) {
  .sidebar {
    width: 202px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace {
    margin-left: 202px;
    width: calc(100% - 202px);
  }
  main {
    padding: 28px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters label.timezone {
    flex: 1;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .rec-panel .rec-figures {
    max-width: 350px;
  }
  .heat-cell {
    aspect-ratio: 1.6;
  }
  .stat {
    padding: 17px;
  }
  .stat-number {
    font-size: 1.6875rem;
  }
  .page-heading .button {
    display: none;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 17px 20px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 1.3125rem;
    padding: 0;
  }
  .brand-mark {
    width: 32px;
    height: 35px;
    font-size: 1.625rem;
  }
  .brand-sub {
    font-size: 0.75rem;
  }
  .nav-label,
  .sidebar-note,
  .sidebar-footer {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
    margin-top: 18px;
  }
  .nav-item {
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 10px;
  }
  .nav-item span {
    display: none;
  }
  .app-shell {
    display: block;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 48px;
    padding: 0 21px;
    font-size: 0.75rem;
  }
  main {
    padding: 25px 20px 0;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .subtle {
    font-size: 0.8125rem;
  }
  .filters {
    gap: 10px;
    padding: 13px;
  }
  .filters label:first-child {
    flex-basis: 100%;
  }
  .filters label.timezone {
    flex-basis: 60%;
  }
  .filters label input {
    width: 100%;
  }
  .filters label:has(input) {
    flex: 1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .stat-label {
    font-size: 0.875rem;
  }
  .stat {
    padding: 16px;
  }
  .stat-number {
    font-size: 1.6875rem;
  }
  .panel {
    padding: 20px 17px;
  }
  .panel-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .panel-head p {
    font-size: 0.75rem;
  }
  .heat-cell {
    aspect-ratio: 0.9;
  }
  .heat-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .main-footer {
    flex-direction: column;
    gap: 6px;
  }
  .performance-grid,
  .comparison,
  .method-grid {
    grid-template-columns: 1fr;
  }
  .coverage-note {
    font-size: 0.75rem;
  }
  .table-controls select {
    width: 100%;
  }
  .date-dash {
    display: none;
  }
  .rec-time {
    font-size: 1.6875rem;
  }
  .chart {
    height: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .filters,
  .main-footer {
    display: none;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .panel,
  .stat {
    break-inside: avoid;
  }
  .content-grid {
    display: block;
  }
  main {
    padding: 0;
  }
}

.filters label {
  font-size: 0.75rem;
}
.filters select,
.filters input,
.button,
.table-controls input,
.table-controls select {
  font-size: 0.875rem;
}
.segmented button {
  font-size: 0.75rem;
}
.stat-foot {
  font-size: 0.75rem;
}
.prose p,
.prose li {
  font-size: 1rem;
}
.brand-sub {
  font-size: 0.625rem;
}
.rec-context {
  font-size: 0.875rem;
}
.button:disabled {
  opacity: 0.4;
  cursor: default;
}
.heat-day,
.heat-hour {
  font-size: 0.75rem;
}
.heatmap {
  grid-template-columns: 34px repeat(24, minmax(0, 1fr));
  min-width: 585px;
}
.stat-number {
  font-size: 1.8125rem;
}
.stat:has(.stat-number) {
  min-width: 0;
}
.stats .stat-number {
  overflow-wrap: break-word;
}
.content-grid > * {
  min-width: 0;
}
.comparison > * {
  min-width: 0;
}
.heat-cell:disabled {
  cursor: default;
  background: repeating-linear-gradient(
    45deg,
    var(--surface-soft),
    var(--surface-soft) 3px,
    var(--line) 3px,
    var(--line) 4px
  ) !important;
}

@media (max-width: 800px) {
  .chart text {
    display: none;
  }
}

:root[data-theme="dark"] {
  --ink: #e2e8f2;
  --muted: #a8b4c7;
  --faint: #8d9bb1;
  --line: #2d3b50;
  --bg: #101722;
  --white: #192332;
  --surface-soft: #202e41;
  --orange: #ff976c;
  --teal: #72d3be;
  --accent-soft: #352a29;
  --accent-text: #ffb492;
  --accent-border: #805844;
  --heat-0: #202c3b;
  --heat-1: #2b3c51;
  --heat-2: #354f6a;
  --heat-3: #42698a;
  --heat-4: #5788ab;
  --heat-5: #7ba9c8;
  --heat-6: #a4cbe2;
  --heat-7: #d0e7f5;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e2e8f2;
    --muted: #a8b4c7;
    --faint: #8d9bb1;
    --line: #2d3b50;
    --bg: #101722;
    --white: #192332;
    --surface-soft: #202e41;
    --orange: #ff976c;
    --teal: #72d3be;
    --accent-soft: #352a29;
    --accent-text: #ffb492;
    --accent-border: #805844;
    --heat-0: #202c3b;
    --heat-1: #2b3c51;
    --heat-2: #354f6a;
    --heat-3: #42698a;
    --heat-4: #5788ab;
    --heat-5: #7ba9c8;
    --heat-6: #a4cbe2;
    --heat-7: #d0e7f5;
    color-scheme: dark;
  }
}

.avatar {
  color: var(--ink);
}
.auto-refresh input,
.download-progress {
  accent-color: var(--orange);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.theme-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}
.theme-control select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--white);
  color: var(--ink);
}
.inline-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
  flex-shrink: 0;
}
.freshness {
  align-items: center;
}
.loading-state {
  padding: 36px 28px;
  text-align: left;
}
.loading-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.loading-heading .loader {
  margin: 0;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.loading-heading h2 {
  margin: 0 0 4px;
}
.loading-heading p {
  margin: 0;
}
.loading-stage {
  color: var(--ink);
  font-weight: 600;
  min-height: 24px;
}
.loading-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.loading-meta span {
  font-variant-numeric: tabular-nums;
}
.loading-state .download-progress {
  display: block;
  width: 100%;
  height: 7px;
  margin: 14px 0;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-soft);
}
progress::-webkit-progress-bar {
  background: var(--surface-soft);
  border-radius: 9px;
}
progress::-webkit-progress-value {
  background: var(--orange);
  border-radius: 9px;
  transition: width 0.25s;
}
progress::-moz-progress-bar {
  background: var(--orange);
}
.loading-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}
.loading-actions .small {
  flex: 1;
  min-width: 220px;
  margin: 0;
}
.skeleton-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.skeleton-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: var(--white);
}
.skeleton {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(
    100deg,
    var(--surface-soft) 20%,
    var(--line) 45%,
    var(--surface-soft) 70%
  );
  background-size: 250% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
.skeleton + .skeleton {
  margin-top: 17px;
  width: 62%;
  height: 25px;
}
@keyframes shimmer {
  to {
    background-position: -160% 0;
  }
}
.empty-state .error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.error-symbol {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.notice a {
  text-underline-offset: 3px;
}
@media (max-width: 800px) {
  .topbar-actions {
    gap: 8px;
  }
  .topbar-actions .archive-badge {
    display: none;
  }
  .theme-control {
    font-size: 0.75rem;
  }
  .theme-control select {
    padding: 5px;
  }
  .loading-state {
    padding: 24px 18px;
  }
  .skeleton-preview {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .loader {
    animation: none;
  }
  progress::-webkit-progress-value {
    transition: none;
  }
}

.saved-status {
  margin: -3px 0 14px;
  font-size: 0.75rem;
  color: var(--muted);
}
#load-panel {
  margin-bottom: 20px;
}
#load-panel:has(+ #content .stats) .loading-state {
  padding: 18px 22px;
}
#load-panel:has(+ #content .stats) .loading-heading h2 {
  font-size: 1rem;
}
#load-panel:has(+ #content .stats) .loading-heading p,
#load-panel:has(+ #content .stats) .loading-actions .small {
  display: none;
}
#load-panel:has(+ #content .stats) .loading-actions {
  margin-top: 10px;
}
#load-panel:has(+ #content .stats) .loading-stage {
  margin: 10px 0 0;
}

/* Shared responsive controls; desktop keeps the full filter form. */
.nav-item svg {
  flex-shrink: 0;
}
.nav-item .nav-full {
  font: inherit;
  width: auto;
  line-height: inherit;
}
.nav-short,
.filter-toggle,
.scroll-hint,
.heat-paging {
  display: none;
}
.workspace,
.filters > *,
.panel-head > *,
.loading-heading > *,
.filter-summary {
  min-width: 0;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #f79b75;
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
.table-scroll,
.heat-scroll {
  max-width: 100%;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--faint) var(--surface-soft);
}
.stat-number,
td,
.window-score {
  font-variant-numeric: tabular-nums;
}
.post-title a,
.prose,
.notice,
.confidence,
.coverage-row {
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  html {
    scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .app-shell {
    position: relative;
  }
  .sidebar {
    padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left));
    min-height: 72px;
  }
  .brand {
    width: fit-content;
    min-height: 44px;
    font-size: 1.25rem;
  }
  .brand-sub {
    font-size: 0.5625rem;
    letter-spacing: 1.8px;
  }
  .sidebar nav {
    position: fixed;
    z-index: 10;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    margin: 0;
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgb(0 0 0 / 4%);
    overflow: visible;
  }
  .nav-item {
    min-height: 54px;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 7px 2px;
    border-radius: 8px;
  }
  .nav-item .nav-full {
    display: none;
  }
  .nav-item .nav-short {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    width: auto;
    line-height: 1.2;
  }
  .topbar {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .breadcrumb-label,
  .topbar-actions .archive-badge {
    display: none;
  }
  .theme-control {
    gap: 5px;
    font-size: 0.6875rem;
  }
  .theme-control select {
    min-height: 44px;
    max-width: 102px;
    padding: 8px;
    font-size: 1rem;
  }
  main {
    padding: 24px max(16px, env(safe-area-inset-right)) calc(86px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .eyebrow {
    font-size: 0.625rem;
    letter-spacing: 1.3px;
    line-height: 1.6;
  }
  h1 {
    font-size: 1.75rem;
    letter-spacing: -0.8px;
    text-wrap: balance;
  }
  .subtle {
    font-size: 0.875rem;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .filter-panel {
    margin-bottom: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .filter-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    text-align: left;
  }
  .filter-toggle:hover {
    background: var(--surface-soft);
  }
  .filter-summary {
    display: grid;
    gap: 5px;
    overflow-wrap: anywhere;
  }
  .filter-summary strong {
    font-size: 1rem;
  }
  .filter-summary > span {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .filter-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-text);
  }
  .filter-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }
  .filter-panel:not(.is-open) #filter-fields {
    display: none;
  }
  #filter-fields {
    min-width: 0;
  }
  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    padding: 16px 14px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .filters .community-field,
  .filters .timezone,
  .filters > .primary {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .filters label,
  .filters label:first-child {
    min-width: 0;
  }
  .filters input,
  .filters select,
  .table-controls input,
  .table-controls select,
  .archive-actions select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    font-size: 1rem;
  }
  .filters input[type="date"] {
    padding: 0 8px;
    appearance: none;
  }
  .community-prefix {
    top: 14px;
    font-size: 1rem;
  }
  .community-toggle {
    height: 44px;
    width: 44px;
  }
  .filters .community-picker input {
    padding-right: 46px;
  }
  .community-popup {
    width: 100%;
    max-width: 100%;
    z-index: 12;
  }
  #community-options {
    max-height: min(280px, 40dvh);
  }
  .community-option {
    min-height: 48px;
  }
  .community-hint {
    display: none;
  }
  .archive-controls {
    margin: 0;
    padding: 0 14px 14px;
  }
  .archive-controls p {
    font-size: 0.75rem;
    line-height: 1.6;
  }
  .archive-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }
  .archive-actions > label {
    grid-column: 1 / -1;
  }
  .archive-actions > button[data-days] {
    grid-column: span 2;
  }
  #refresh-archive,
  #clear-local-data {
    grid-column: span 3;
  }
  .archive-actions .auto-refresh {
    margin: 0;
    min-height: 44px;
  }
  .auto-refresh input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .button,
  .archive-actions .compact,
  .segmented button,
  .text-button,
  summary {
    min-height: 44px;
  }
  .text-button {
    display: inline-flex;
    align-items: center;
    text-align: left;
    line-height: 1.5;
    padding: 8px 2px;
  }
  .button {
    white-space: normal;
    line-height: 1.4;
  }
  .archive-actions .compact {
    padding: 8px 4px;
    font-size: 0.75rem;
  }
  .freshness {
    padding: 10px 12px;
    gap: 6px 14px;
    font-size: 0.75rem;
    line-height: 1.6;
  }
  .freshness .freshness-note {
    font-size: 0.6875rem;
  }
  .saved-status {
    font-size: 0.6875rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  .coverage-note {
    align-items: flex-start;
    padding: 10px 0 16px;
    font-size: 0.6875rem;
  }
  .coverage-note .coverage-icon {
    padding-top: 2px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat {
    padding: 14px 12px;
    border-radius: 11px;
  }
  .stat-label {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .stat-icon {
    display: none;
  }
  .stats .stat-number {
    font-size: clamp(1.375rem, 6vw, 1.8125rem);
    letter-spacing: -0.7px;
    overflow-wrap: normal;
  }
  .stat-foot {
    font-size: 0.6875rem;
  }
  .panel {
    padding: 18px 14px;
    margin-bottom: 16px;
  }
  .panel-head {
    margin-bottom: 16px;
  }
  .content-grid,
  .method-grid {
    gap: 16px;
  }
  .content-grid > div > .panel {
    margin-bottom: 0;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    padding: 8px 5px;
  }
  .scroll-hint {
    display: block;
    color: var(--muted);
    font-size: 0.6875rem;
    margin: 0 0 10px;
  }
  .heatmap {
    grid-template-columns: 34px repeat(24, 44px);
    min-width: max-content;
    gap: 4px;
  }
  .heat-cell {
    min-height: 44px;
    aspect-ratio: 1;
    scroll-margin-inline: 40px;
  }
  .heat-day {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--white);
    box-shadow: 4px 0 0 var(--white);
  }
  .heat-scroll {
    padding: 3px 2px 10px 0;
  }
  .heat-meta {
    margin-top: 10px;
  }
  .heat-detail {
    font-size: 0.8125rem;
  }
  .table-scroll:not(.post-list) table {
    min-width: 560px;
  }
  .table-scroll:not(.post-list)::before {
    content: "Swipe across to see all columns →";
    display: block;
    position: sticky;
    left: 0;
    width: fit-content;
    color: var(--muted);
    font-size: 0.6875rem;
    padding: 10px 0;
  }
  .table-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .post-list {
    overflow: visible;
  }
  .post-table,
  .post-table tbody {
    display: block;
  }
  .post-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .post-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }
  .post-table td {
    display: block;
    min-width: 0;
    border: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }
  .post-table .post-title,
  .post-table td[data-label="Performance eligibility"] {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: none;
  }
  .post-title a {
    display: block;
    min-height: 44px;
    font-size: 0.9375rem;
  }
  .post-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.6875rem;
    margin-bottom: 3px;
  }
  .post-table .pill {
    white-space: normal;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 12px;
  }
  .pagination .buttons {
    flex: 1;
    justify-content: flex-end;
  }
  .window-card {
    padding: 16px;
  }
  .coverage-row {
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  .loading-actions .small {
    min-width: 0;
    flex-basis: 100%;
  }
  .loading-heading {
    gap: 12px;
  }
  .loading-heading h2 {
    font-size: 1rem;
  }
  .loading-state,
  #load-panel:has(+ #content .stats) .loading-state {
    padding: 16px;
  }
  .loading-meta {
    font-size: 0.75rem;
    gap: 6px;
  }
  .skeleton-card {
    padding: 16px;
    min-width: 0;
  }
  .main-footer {
    line-height: 1.8;
    font-size: 0.75rem;
  }
  .main-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 359px) {
  .filters > label:has(input[type="date"]) {
    grid-column: 1 / -1;
  }
  .theme-control {
    font-size: 0;
  }
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .rec-figures {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .nav-item .nav-short {
    font-size: 0.75rem;
    white-space: normal;
  }
  .eyebrow {
    font-size: 0.6875rem;
  }
  .stat-foot,
  .saved-status,
  .coverage-note,
  .freshness .freshness-note,
  .scroll-hint,
  .post-table td[data-label]::before,
  .table-scroll:not(.post-list)::before {
    font-size: 0.75rem;
  }
  .panel-head p,
  .heat-meta,
  .small,
  .insight-note,
  .window-card .small {
    font-size: 0.8125rem;
  }
  .heat-paging {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
  }
  .heat-paging .button {
    font-size: 0.75rem;
  }
}
