:root {
  --bg: #fafaf9;
  --panel: #ffffff;
  --ink: #18181b;
  --mute: #71717a;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --past: #f4f4f5;
  --today: #F3F7F7;
  --today-border: #86A8AC;
  --confirmed: #86A8AC;
  --tentative: #F6F498;
  --guessed: #E6BE9A;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Headers: Roboto Regular/Medium (not Light) */
h1, h2, h3, h4, h5, h6,
.brand h1,
.month-title,
.dow,
table.rvw th,
.modal-body .co-name,
.evidence-head {
  font-family: var(--font);
  font-weight: 500;
}

strong, b {
  font-weight: 500;
}

/* Tabular digits for time/date columns so they still align vertically */
.t-time, .day-num, .month-year, .entry,
table.rvw td.mono, table.rvw td.tkr-cell {
  font-variant-numeric: tabular-nums;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand h1 {
  margin: 0;
  font-family: var(--font);
  font-size: 24pt;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand .subtitle {
  display: block;
  margin-top: 2px;
  color: var(--mute);
  font-size: 12px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--mute);
  font-size: 12px;
}

.swatch {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.swatch.confirmed { background: var(--confirmed); }
.swatch.tentative { background: var(--tentative); }
.swatch.guessed   { background: var(--guessed); }

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  flex: 1;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.toggle-btn {
  padding: 4px 12px;
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--mute);
  cursor: pointer;
  font-family: var(--font);
}

.toggle-btn.active {
  background: var(--ink);
  color: #fff;
}

.toggle-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
}

/* Timezone selector — minimal, text-only, underline active */
.tz-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 32px 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.tz-label {
  color: var(--mute);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.tz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

.tz-pill {
  background: transparent;
  border: none;
  padding: 2px 0;
  margin: 0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  color: var(--mute);
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.tz-pill:hover { color: var(--ink); }

.tz-pill.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: #86A8AC;
}

.filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--mute);
  cursor: pointer;
  user-select: none;
}

.filters input[type="checkbox"] {
  accent-color: var(--ink);
}

.sector-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}

.sector-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sector-icon-small {
  width: 11px;
  height: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  flex-shrink: 0;
}

.sector-icon-small svg {
  width: 100%;
  height: 100%;
  display: block;
}

.strip {
  padding: 24px 32px 64px;
  display: grid;
  /* auto-fit: as many columns as fit given min 600px each.
     max-width capped so we never get 3+ columns on ultra-wide monitors. */
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 24px;
  max-width: 1800px;
  margin: 0 auto;
}

.month {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.month.past {
  opacity: 0.45;
}

.month-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.month-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.month-year {
  color: var(--ink);
  font-size: 11px;
  font-family: var(--mono);
}

.dow-row, .day-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.dow-row {
  margin-bottom: 4px;
}

.dow {
  text-align: center;
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 0;
}

.day {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  min-height: 72px;
}

.day.off {
  visibility: hidden;
}

.day.weekend {
  background: rgba(0, 0, 0, 0.015);
}

.day.past-day {
  color: var(--mute);
}

.day.today {
  background: transparent;
  border-color: transparent;
}

/* Today highlight as a separate background layer so it sits behind entries */
.day.today::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--today);
  border: 1px solid var(--today-border);
  border-radius: 4px;
  z-index: 0;
  pointer-events: none;
}

.day > * {
  position: relative;
  z-index: 1;
}


.day-num {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--ink);
}

.day.today .day-num {
  color: var(--ink);
  font-weight: 600;
}

.entries {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.entry {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.1s, border-color 0.1s;
  line-height: 1.25;
  font-family: var(--mono);
  flex: 1;
  min-width: 0;
}

.entry:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--line-strong);
}

.entry .t-time {
  color: var(--mute);
  font-size: 9px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 28px;
}

.entry .t-tkr {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.entry .t-type {
  color: var(--mute);
  font-size: 9px;
}

.entry .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}

.entry .dot.confirmed { background: var(--confirmed); }
.entry .dot.tentative { background: var(--tentative); }
.entry .dot.guessed   { background: var(--guessed); }

.modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  max-width: 420px;
  width: calc(100% - 32px);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--mute);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover { color: var(--ink); }

.modal-body {
  padding: 24px 24px 22px;
}

.modal-body .co-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px;
}

.modal-body .co-ticker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 14px;
}

.modal-body dl {
  margin: 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  row-gap: 6px;
  column-gap: 12px;
  font-size: 13px;
}

.modal-body dt {
  color: var(--mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.modal-body dd {
  margin: 0;
}

.modal-body .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.modal-body .source-quote {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.02);
  color: var(--mute);
  font-size: 12px;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

.modal-body .modal-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.modal-body .modal-links a {
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
}

.modal-body a.results-link {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.modal-body .modal-links a:hover { opacity: 0.85; }

.review-table {
  padding: 20px 32px 64px;
  max-width: 1600px;
  margin: 0 auto;
  overflow-x: auto;
}

table.rvw {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

table.rvw thead {
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}

table.rvw th {
  text-align: left;
  padding: 10px 10px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mute);
}

table.rvw td {
  padding: 10px 10px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

table.rvw tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

table.rvw td.mono {
  font-family: var(--mono);
  font-size: 11px;
}

table.rvw td.quote-cell {
  color: var(--mute);
  font-style: italic;
  max-width: 360px;
  font-size: 11px;
  line-height: 1.4;
}

table.rvw a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
}

.ts-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-family: var(--font);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  border: 1px solid transparent;
  cursor: default;
}

.ts-quoted   { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.ts-inferred { background: #fefce8; color: #854d0e; border-color: #fde68a; }
.ts-pattern  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.ts-clickable {
  cursor: pointer;
  font-family: var(--font);
  transition: filter 0.12s;
}

.ts-clickable:hover { filter: brightness(0.94); }

.ts-clickable sup {
  font-size: 8px;
  margin-left: 1px;
  opacity: 0.7;
}

.call-date {
  display: inline-block;
  padding: 0 4px;
  margin-right: 4px;
  background: #f4f4f5;
  color: var(--mute);
  border-radius: 3px;
  font-size: 10px;
}

.evidence-modal {
  border: none;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  max-width: 440px;
  width: calc(100% - 32px);
}

.evidence-modal::backdrop { background: rgba(0, 0, 0, 0.28); }

.evidence-body {
  padding: 22px 24px 20px;
}

.evidence-head {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 10px;
  padding-right: 24px;
}

.evidence-head .ev-tkr {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--mono);
}

.evidence-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

table.rvw td.tc {
  white-space: nowrap;
}

table.rvw td.fy-cell {
  color: var(--mute);
  font-size: 10px;
  white-space: nowrap;
  cursor: help;
}

table.rvw td.tkr-cell {
  white-space: nowrap;
}

.tkr-short {
  font-size: 10px;
  color: var(--mute);
  font-family: var(--font);
  font-weight: 400;
  margin-top: 2px;
}

.co-short {
  color: var(--mute);
  font-weight: 400;
}

.fy-src {
  color: var(--mute);
  text-decoration: none;
  font-size: 10px;
  margin-left: 4px;
}

.fy-src:hover { color: var(--ink); }

.footmeta {
  display: flex;
  justify-content: space-between;
  padding: 14px 32px 28px;
  color: var(--mute);
  font-size: 11px;
  font-family: var(--mono);
  max-width: 1600px;
  margin: 0 auto;
}

.disclaimer {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 32px 40px;
  color: var(--mute);
  opacity: 0.75;
  font-size: 9px;
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.disclaimer-title {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--mute);
  text-align: center;
}
.disclaimer p { margin: 0 0 5px; }
.disclaimer p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .topbar { padding: 14px 16px; flex-wrap: wrap; }
  .filters { padding: 10px 16px; top: 92px; }
  .strip { padding: 16px; grid-template-columns: 1fr; gap: 16px; }
  .footmeta { padding: 14px 16px 28px; }
  .disclaimer { padding: 14px 16px 28px; font-size: 8.5px; }
}

/* ============================================================
   Filters button (header) — hidden on desktop, shown on mobile
   ============================================================ */
.filters-toggle-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.025);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
  position: relative;
}
.filters-toggle-btn svg {
  width: 16px;
  height: 16px;
}
.filters-toggle-btn .filters-count[hidden] { display: none; }
.filters-toggle-btn .filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Filters bottom sheet
   ============================================================ */
.filters-sheet {
  border: none;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  max-height: 88vh;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}
.filters-sheet::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--line-strong);
  border-radius: 2px;
  margin: 10px auto 0;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 4px;
}
.sheet-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font);
}
.sheet-header .modal-close {
  position: static;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--mute);
  cursor: pointer;
  padding: 4px 8px;
}
.sheet-body {
  padding: 8px 20px 32px;
}
.sheet-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.sheet-section:last-child {
  border-bottom: none;
}
.sheet-section-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-bottom: 10px;
}
.sheet-section .filter-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 14px;
}
.sheet-section .filter-chips label {
  font-size: 14px;
  padding: 4px 0;
}
.sheet-section .filter-chips input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.sheet-section .tz-options {
  gap: 14px 18px;
}
.sheet-section .tz-pill {
  font-size: 14px;
  padding: 6px 0;
}
.sheet-section .view-toggle {
  width: 100%;
}
.sheet-section .view-toggle .toggle-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
}
.sheet-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

/* ============================================================
   Mobile agenda layout
   ============================================================ */
.agenda-month {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 16px 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
  border-bottom: 1px solid var(--line);
}
.agenda-month-year {
  font-weight: 400;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.agenda-city-time {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--mute);
  text-transform: none;
}
.agenda-city-time .acity {
  color: var(--ink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.agenda-city-time .atime {
  font-variant-numeric: tabular-nums;
}
.agenda-day {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: none;
  background-image: radial-gradient(circle, #d4d4d8 0.5px, transparent 1px);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  background-position: bottom left;
  align-items: start;
}
.agenda-day:has(+ .agenda-month) {
  background-image: none;
}
.agenda-day.today {
  background: var(--today);
  border-left: 3px solid var(--today-border);
  padding-left: 13px;
}
.agenda-day.weekend .agenda-daynum {
  color: var(--mute);
}
.agenda-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-top: 2px;
}
.agenda-dow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.agenda-daynum {
  font-size: 26px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
  margin-left: -2px;
  letter-spacing: -0.02em;
}
.agenda-today-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: var(--today-border);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
}
.agenda-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.agenda-entry {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  text-align: left;
  background: rgba(0, 0, 0, 0.012);
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: var(--font);
  color: var(--ink);
  min-height: 56px;
}
.agenda-entry:active {
  background: rgba(0, 0, 0, 0.03);
}
.ae-time {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.ae-tz {
  display: none;
  font-size: 10px;
  font-weight: 400;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.ae-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ae-tkr-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ae-tkr {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ae-period {
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
}
.ae-tkr-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}
.ae-tkr-row .dot.confirmed { background: var(--confirmed); }
.ae-tkr-row .dot.tentative { background: var(--tentative); }
.ae-tkr-row .dot.guessed   { background: var(--guessed); }
.ae-name {
  font-size: 13px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agenda-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--mute);
  font-size: 14px;
}

/* ============================================================
   Mobile review cards
   ============================================================ */
.review-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.review-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font);
  color: var(--ink);
  cursor: pointer;
}
.review-card:active { background: rgba(0, 0, 0, 0.03); }
.rc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rc-tkr {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.rc-period {
  font-size: 11px;
  color: var(--mute);
  font-weight: 500;
}
.rc-head .status-pill { margin-left: auto; }
.rc-name {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 8px;
}
.rc-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 12px;
}
.rc-meta dt {
  color: var(--mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rc-meta dd { margin: 0; }

/* ============================================================
   Mobile breakpoint — show button, hide inline filters
   ============================================================ */
@media (max-width: 640px) {
  .topbar {
    padding: 18px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .brand h1 { font-size: 18pt; }
  .brand-logo { width: 26px; height: 26px; }
  .topbar .legend { display: none; }
  .filters-toggle-btn { display: inline-flex; }

  /* Remove solid horizontal dividers on mobile */
  .topbar,
  .filters,
  .agenda-month,
  table.rvw thead { border-bottom: none; }

  /* Hide inline filters + tz panel; they live in the sheet */
  #sector-filters,
  .tz-panel { display: none; }

  /* Calendar container becomes the agenda list */
  .strip {
    display: block;
    padding: 0;
    max-width: none;
    margin: 0;
  }

  .footmeta {
    padding: 14px 16px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Modal: go nearly full-width */
  .modal {
    max-width: 100%;
    width: calc(100% - 16px);
    margin: auto 8px;
  }
}

/* On desktop, the sheet markup exists but should never be shown */
@media (min-width: 641px) {
  .filters-sheet { display: none; }
  .filters-sheet[open] { display: none; }
}

/* "No results today" anchor block */
.agenda-day.today-empty {
  background: var(--today);
  border-left: 3px solid var(--today-border);
  padding-left: 13px;
}
.agenda-no-today {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 4px;
  min-height: 56px;
  justify-content: center;
}
.ant-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.ant-sub {
  font-size: 13px;
  color: var(--mute);
}

/* ============================================================
   Floating "back to top" button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(24, 24, 27, 0.78);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
}
.back-to-top.visible {
  opacity: 0.85;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top.visible:hover {
  opacity: 1;
  background: var(--ink);
}
@media (max-width: 640px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}
