:root {
  color-scheme: dark;
  --background: #0b0b0c;
  --surface: #121214;
  --surface-raised: #18181b;
  --surface-hover: #1d1d20;
  --line: #2b2b30;
  --line-strong: #45454b;
  --text: #f5f2eb;
  --muted: #9b9ba2;
  --faint: #68686f;
  --orange: #f7931a;
  --orange-soft: rgba(247, 147, 26, 0.13);
  --orange-line: rgba(247, 147, 26, 0.65);
  --meetup: #6ed7a0;
  --meetup-soft: rgba(110, 215, 160, 0.1);
  --history: #8eb8ff;
  --history-soft: rgba(142, 184, 255, 0.1);
  --network: #e8e5df;
  --network-soft: rgba(232, 229, 223, 0.09);
  --lead: #f2c94c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(247, 147, 26, 0.09), transparent 29rem),
    var(--background);
}

.review-shell {
  width: min(1040px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.review-header,
.review-toolbar,
.review-card-heading,
.review-actions,
.decision-buttons {
  display: flex;
  align-items: center;
}

.review-header,
.review-toolbar,
.review-card-heading {
  justify-content: space-between;
  gap: 20px;
}

.review-header { margin-bottom: 44px; }
.review-header p { margin: 0; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; }
.review-brand { color: var(--text); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.review-brand span { display: inline-grid; width: 28px; height: 28px; margin-right: 8px; place-items: center; border-radius: 50%; background: var(--orange); color: var(--background); }
.review-panel { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28); }
.unlock-panel { width: min(620px, 100%); margin: 11vh auto 0; padding: 34px; }
.unlock-panel h1, .queue-panel h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.06em; }
.review-copy { max-width: 51ch; color: var(--muted); line-height: 1.6; }
.unlock-form, .decision-form { display: grid; gap: 11px; }
.unlock-form { margin-top: 28px; }
.unlock-form label, .decision-form label { color: var(--muted); font-size: .82rem; font-weight: 700; }
.unlock-form input, .decision-form input { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--background); color: var(--text); }
.unlock-form button, .decision-buttons button { border: 1px solid var(--orange); border-radius: 7px; padding: 12px 15px; background: var(--orange); color: var(--background); cursor: pointer; font-weight: 800; }
.queue-panel { padding: 24px; }
.review-actions, .decision-buttons { gap: 9px; flex-wrap: wrap; }
.quiet-button, .danger-button { background: var(--surface-raised) !important; color: var(--text) !important; border-color: var(--line-strong) !important; }
.danger-button { color: #ff8f8f !important; }
.review-message { min-height: 1.2em; margin: 10px 0 0; color: var(--muted); font-size: .85rem; }
.review-message[data-tone="error"] { color: #ff8f8f; }
.review-message[data-tone="success"] { color: var(--meetup); }
.queue-list { display: grid; gap: 16px; margin-top: 22px; }
.review-card, .empty-queue { border: 1px solid var(--line); border-radius: 9px; padding: 20px; background: var(--surface-raised); }
.review-card h2, .empty-queue h2 { margin: 0; font-size: 1.25rem; }
.review-card-heading p { margin: 7px 0 0; color: var(--muted); }
.review-detail { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.review-detail strong { color: var(--text); }
.review-detail a { color: var(--orange); }
.review-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-family: "SFMono-Regular", Consolas, monospace; font-size: .7rem; }
.review-badge.alert { background: rgba(255, 143, 143, .13); color: #ff9d9d; }
.decision-form { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr); margin-top: 18px; }
.decision-buttons, .decision-form .review-message { grid-column: 1 / -1; }
.empty-queue { text-align: center; padding: 52px 20px; }
.empty-queue p:last-child { color: var(--muted); }

@media (max-width: 640px) {
  .review-shell { padding: 20px 14px 48px; }
  .review-header { margin-bottom: 26px; }
  .unlock-panel, .queue-panel { padding: 20px; }
  .review-header, .review-toolbar, .review-card-heading { align-items: flex-start; flex-direction: column; }
  .decision-form { grid-template-columns: 1fr; }
}

button,
select,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
.calendar-scroll:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.shell {
  width: min(1640px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 32px 22px;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 18px 0 28px;
}

.identity {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  color: #0b0b0c;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  transform: rotate(9deg);
}

.eyebrow,
.stat-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.4vw, 4.65rem);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.89;
}

.network-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  min-width: min(100%, 700px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 18, 20, 0.88);
  overflow: hidden;
}

.network-stat {
  min-width: 0;
  padding: 14px 17px 13px;
  border-right: 1px solid var(--line);
}

.network-stat:last-child {
  border-right: 0;
}

.network-stat strong,
.network-stat small {
  display: block;
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-stat strong {
  font-size: 0.96rem;
}

.network-stat small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.69rem;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: 0.66rem;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.calendar-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.calendar-toolbar .eyebrow,
.agenda .eyebrow,
.data-note .eyebrow {
  margin-bottom: 5px;
}

h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 650;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.month-summary {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.month-controls {
  display: flex;
  gap: 7px;
}

.calendar-toolbar > :first-child {
  margin-right: auto;
}

.subscribe-button {
  border: 1px solid var(--orange);
  border-radius: 7px;
  padding: 9px 12px;
  background: var(--orange);
  color: var(--background);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 800;
}

.subscription-actions { margin-top: 22px; }
.subscription-note { margin: 17px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.month-controls button,
.filter-button {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
}

.month-controls button {
  min-width: 44px;
  height: 44px;
  padding: 0 13px;
  font-size: 1rem;
}

.month-controls button:hover,
.filter-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.month-controls .today-button {
  min-width: auto;
  border-color: var(--orange);
  background: var(--orange);
  color: #101011;
  font-weight: 780;
}

.month-controls .today-button:hover {
  color: #101011;
  filter: brightness(1.08);
}

.filter-bar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-strong);
  background: #101012;
}

.kind-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-button {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-button.is-active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: #f9c17e;
}

.filter-options {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-field { position: relative; display: flex; align-items: center; }
.search-field input { height: 38px; min-width: 220px; padding: 0 34px 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-raised); color: var(--text); }
.search-field input:focus { border-color: var(--orange); outline: 0; }
.search-field input::placeholder { color: var(--muted); }
.search-field button { position: absolute; right: 5px; width: 27px; height: 27px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.search-field button:hover { color: var(--orange); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.region-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.region-field select {
  height: 38px;
  min-width: 146px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
}

.lead-toggle {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px dashed #625829;
  border-radius: 7px;
  color: #d8ca8d;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.lead-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--lead);
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-width: 0;
}

.calendar-scroll {
  min-width: 0;
  overflow-x: auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  min-width: 784px;
}

.weekday-row {
  border-bottom: 1px solid var(--line-strong);
}

.weekday-row div {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.weekday-row div:last-child {
  border-right: 0;
}

.calendar-day {
  position: relative;
  min-height: 145px;
  padding: 12px 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day.is-outside {
  background: #0f0f11;
  color: #515157;
}

.calendar-day.is-today {
  background:
    linear-gradient(180deg, var(--orange-soft), transparent 72%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--orange-line);
  z-index: 1;
}

.calendar-day.is-today .day-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--orange);
  color: #0d0d0e;
}

.day-number {
  font-size: 1rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.block-estimate {
  position: absolute;
  right: 9px;
  top: 13px;
  color: #76767d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
}

.day-items {
  display: grid;
  gap: 5px;
  margin-top: 20px;
}

.day-item {
  display: -webkit-box;
  width: 100%;
  min-height: 29px;
  padding: 6px 7px;
  overflow: hidden;
  border: 0;
  border-left: 2px solid var(--orange);
  border-radius: 2px 5px 5px 2px;
  background: var(--orange-soft);
  color: #f5d0a1;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 680;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.day-item:hover {
  filter: brightness(1.18);
}

.day-item.meetup {
  border-left-color: var(--meetup);
  background: var(--meetup-soft);
  color: #b9edd1;
}

.day-item.history {
  border-left-color: var(--history);
  background: var(--history-soft);
  color: #c7d9f8;
}

.day-item.network {
  border-left-color: var(--network);
  background: var(--network-soft);
  color: #dfdfe1;
}

.day-item.research-lead {
  border-top: 1px dashed #6d612b;
  border-right: 1px dashed #6d612b;
  border-bottom: 1px dashed #6d612b;
  color: #e2d69f;
}

.day-overflow {
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.71rem;
  font-weight: 700;
  text-align: left;
}

.day-overflow:hover {
  color: var(--text);
}

.agenda {
  min-width: 0;
  border-left: 1px solid var(--line-strong);
  background: #101012;
}

.agenda-heading-row {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.agenda-count {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--orange);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.agenda-list {
  max-height: 869px;
  overflow-y: auto;
}

.agenda-item {
  position: relative;
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 14px 38px 14px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.agenda-item:hover {
  background: var(--surface-hover);
}

.agenda-item.research-lead {
  background: rgba(242, 201, 76, 0.035);
}

.agenda-item.research-lead::after {
  content: "LEAD";
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--lead);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.agenda-date {
  color: var(--orange);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agenda-item strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.agenda-place {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kind-dot {
  position: absolute;
  top: 17px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.kind-dot.meetup,
.legend-swatch.meetup {
  background: var(--meetup);
}

.kind-dot.history,
.legend-swatch.history {
  background: var(--history);
}

.kind-dot.network,
.legend-swatch.network {
  background: var(--network);
}

.agenda-empty {
  display: grid;
  gap: 7px;
  padding: 26px 18px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.agenda-empty strong {
  color: var(--text);
}

.data-note {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 18, 20, 0.66);
}

.data-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

#dataset-date {
  color: #ccc7bd;
}

#source-health {
  color: #8fd8b0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

footer p {
  margin: 0;
}

.footer-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
}

.footer-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.entry-dialog {
  width: min(650px, calc(100% - 28px));
  max-height: calc(100vh - 42px);
  padding: 30px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #151517;
  color: var(--text);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.75);
}

.entry-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.dialog-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 44px 15px 0;
}

.entry-kind,
.entry-status {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.entry-kind.event {
  border-color: var(--orange-line);
  color: #f6c181;
}

.entry-kind.meetup {
  border-color: rgba(110, 215, 160, 0.55);
  color: var(--meetup);
}

.entry-kind.history {
  border-color: rgba(142, 184, 255, 0.55);
  color: var(--history);
}

.entry-kind.network {
  border-color: #5b5b60;
  color: var(--network);
}

.entry-status.lead {
  border-style: dashed;
  border-color: #6d612b;
  color: var(--lead);
}

.entry-dialog h2 {
  max-width: 560px;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.05;
}

.dialog-date,
.dialog-location {
  margin: 10px 0 0;
  color: #d3cec4;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.dialog-location {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
}

.dialog-description {
  margin: 22px 0;
  color: #ddd8cf;
  font-size: 1rem;
  line-height: 1.65;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.topic-tags span {
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--orange-soft);
  color: #eac08e;
  font-size: 0.72rem;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.detail-grid > div {
  min-width: 0;
  padding: 11px 12px;
  background: #101012;
}

.detail-grid dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.4;
}

.lead-warning {
  margin: 18px 0 0;
  padding: 12px 13px;
  border: 1px dashed #6d612b;
  border-radius: 6px;
  background: rgba(242, 201, 76, 0.04);
  color: #d8ca8d;
  font-size: 0.82rem;
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.dialog-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 780;
  text-decoration: none;
}

.primary-link {
  background: var(--orange);
  color: #101011;
}

.primary-link:hover {
  filter: brightness(1.08);
}

.secondary-link {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.secondary-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.day-dialog-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.day-dialog-list button {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101012;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.day-dialog-list button:hover {
  border-color: var(--orange);
}

.day-dialog-list .kind-dot {
  position: static;
}

.day-dialog-list span {
  display: grid;
  gap: 4px;
}

.day-dialog-list small {
  color: var(--muted);
  font-size: 0.72rem;
}

.day-dialog-list b {
  color: var(--orange);
}

@media (max-width: 1180px) {
  .masthead {
    display: grid;
    gap: 25px;
  }

  .network-strip {
    width: 100%;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 940px) {
  .shell {
    padding: 18px 16px;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-options {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-layout {
    display: block;
  }

  .agenda {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .agenda-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .agenda-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 650px) {
  .shell {
    padding: 12px 10px 18px;
  }

  .masthead {
    padding-top: 12px;
  }

  .mark {
    width: 44px;
    height: 44px;
    font-size: 1.65rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  .network-strip {
    grid-template-columns: 1fr 1fr;
  }

  .network-stat {
    padding: 13px 12px;
  }

  .network-stat:nth-child(2) {
    border-right: 0;
  }

  .network-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .calendar-toolbar {
    min-height: 96px;
    align-items: flex-end;
    padding: 16px 14px;
  }

  .calendar-toolbar .eyebrow {
    font-size: 0.62rem;
  }

  .subscribe-button {
    min-height: 40px;
  }

  .month-controls button {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
  }

  .today-button {
    display: none;
  }

  .filter-options {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

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

  .region-field {
    justify-content: space-between;
  }

  .region-field select {
    flex: 1;
  }

  .lead-toggle {
    justify-content: center;
  }

  .calendar-day {
    min-height: 132px;
  }

  .agenda-list {
    display: block;
  }

  .agenda-item:nth-child(odd) {
    border-right: 0;
  }

  .data-note {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 18px;
  }

  footer {
    display: grid;
    gap: 11px;
  }

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

  .entry-dialog {
    padding: 25px 18px 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}


.grid-toggle { display: none; }
.agenda-day { border-bottom: 1px solid var(--line); }
.agenda-day h4 { margin: 0; padding: 13px 15px 8px; color: var(--orange); font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.agenda-day .agenda-item { border-bottom: 0; }
@media (max-width: 760px) {
  .calendar-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .month-controls { width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; }
  .month-controls button { width: 100%; min-width: 0; }
  .today-button { display: block; }
  .grid-toggle { display: block; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-raised); color: var(--text); font-weight: 700; }
  .filter-bar { padding: 12px; }
  .kind-filters { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .filter-button { min-width: 0; padding: 8px 6px; }
  .filter-options { align-items: stretch; flex-direction: column; width: 100%; }
  .region-field { justify-content: space-between; }
  .calendar-layout { display: flex; flex-direction: column; }
  .agenda { order: 1; border: 0; }
  .agenda-heading-row { min-height: 74px; padding: 15px; }
  .agenda-list { max-height: none; }
  .agenda-day h4 { padding: 16px 16px 9px; font-size: .76rem; }
  .agenda-item { min-height: 94px; padding: 14px 42px 14px 16px; gap: 7px; }
  .agenda-item strong { font-size: 1.03rem; }
  .agenda-date { font-size: .72rem; }
  .agenda-place { overflow: visible; white-space: normal; font-size: .82rem; }
  .calendar-scroll { display: none; order: 2; border-top: 1px solid var(--line-strong); }
  body.mobile-grid-open .calendar-scroll { display: block; }
  body.mobile-grid-open .agenda { display: none; }
}


/* Compact desktop composition: the calendar remains the first-screen experience. */
@media (min-width: 941px) {
  .shell {
    padding: 14px 24px 10px;
  }

  .masthead {
    gap: 28px;
    padding: 8px 0 14px;
  }

  .identity {
    gap: 12px;
  }

  .mark {
    width: 40px;
    height: 40px;
    font-size: 1.55rem;
  }

  .identity .eyebrow {
    margin-bottom: 4px;
    font-size: 0.65rem;
  }

  h1 {
    font-size: clamp(2rem, 3.2vw, 3.35rem);
    line-height: 0.9;
  }

  .network-strip {
    min-width: min(54vw, 640px);
  }

  .network-stat {
    padding: 9px 12px;
  }

  .network-stat small {
    margin-top: 3px;
  }

  .calendar-toolbar {
    min-height: 78px;
    padding: 11px 16px;
  }

  .calendar-toolbar .eyebrow {
    font-size: 0.64rem;
  }

  .calendar-toolbar h2 {
    font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  }

  .month-summary {
    margin-top: 3px;
    font-size: 0.75rem;
  }

  .month-controls button {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
  }

  .filter-bar {
    min-height: 50px;
    padding: 6px 11px;
  }

  .filter-button,
  .region-field select,
  .lead-toggle {
    min-height: 32px;
    height: 32px;
  }

  .filter-button {
    padding: 5px 10px;
    font-size: 0.74rem;
  }

  .region-field,
  .lead-toggle {
    font-size: 0.72rem;
  }

  .region-field select {
    min-width: 130px;
  }

  .weekday-row div {
    padding: 8px 10px;
    font-size: 0.65rem;
  }

  .calendar-day {
    min-height: clamp(86px, calc((100vh - 275px) / 6), 126px);
    padding: 8px 9px;
  }

  .day-number {
    font-size: 0.9rem;
  }

  .calendar-day.is-today .day-number {
    width: 28px;
    height: 28px;
  }

  .block-estimate {
    top: 9px;
    right: 7px;
    font-size: 0.61rem;
  }

  .day-items {
    gap: 4px;
    margin-top: 13px;
  }

  .day-item {
    min-height: 24px;
    padding: 4px 6px;
    font-size: 0.66rem;
  }

  .day-overflow {
    padding: 1px 4px;
    font-size: 0.65rem;
  }

  .agenda-heading-row {
    min-height: 52px;
    padding: 9px 12px;
  }

  .agenda-heading-row .eyebrow {
    font-size: 0.62rem;
  }

  .agenda-heading-row h3 {
    font-size: 1rem;
  }

  .agenda-count {
    min-width: 28px;
    height: 28px;
  }

  .agenda-legend {
    padding: 7px 12px;
  }

  .agenda-item {
    gap: 3px;
    padding: 10px 32px 10px 12px;
  }

  .agenda-item strong {
    font-size: 0.82rem;
  }

  .agenda-place {
    font-size: 0.68rem;
  }

  .kind-dot {
    top: 13px;
    right: 12px;
    width: 7px;
    height: 7px;
  }

  .agenda-list {
    max-height: calc(100vh - 275px);
  }

  .data-note {
    grid-template-columns: auto 1fr;
    gap: 18px;
    margin-top: 8px;
    padding: 9px 13px;
  }

  .data-note .eyebrow {
    display: none;
  }

  .data-note h3 {
    font-size: 0.85rem;
  }

  .data-note p:last-child {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  footer {
    padding-top: 6px;
    font-size: 0.68rem;
  }
}

.agenda-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

.agenda-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .agenda-legend {
    padding: 10px 15px;
    font-size: 0.74rem;
  }
}



.about-shell { width: min(900px, 100%); min-height: 100vh; margin: 0 auto; padding: 42px 24px 64px; }
.about-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.about-brand { color: var(--text); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.about-brand span { display: inline-grid; width: 30px; height: 30px; margin-right: 8px; place-items: center; border-radius: 50%; background: var(--orange); color: var(--background); }
.about-back { color: var(--muted); font-size: .85rem; text-decoration: none; }
.about-back:hover { color: var(--orange); }
.about-content { max-width: 720px; padding-top: 44px; }
.about-content h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); }
.about-lead { max-width: 58ch; margin: 26px 0 42px; color: #d7d2c9; font-size: 1.12rem; line-height: 1.7; }
.about-grid { display: grid; gap: 12px; }
.about-card { padding: 21px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.about-card h2 { font-size: 1.15rem; }
.about-card p, .about-card li { color: var(--muted); line-height: 1.65; }
.about-card ul { margin: 12px 0 0; padding-left: 20px; }
.about-card a { color: var(--orange); }
@media (max-width: 650px) { .about-shell { padding: 24px 16px 48px; } .about-header { align-items: flex-start; flex-direction: column; padding-bottom: 24px; } .about-content { padding-top: 32px; } }


.review-difference { margin: 16px 0; border: 1px solid rgba(255, 143, 143, .35); border-radius: 8px; overflow: hidden; }
.review-difference .eyebrow { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #ffb0b0; background: rgba(255, 143, 143, .06); }
.review-difference table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.review-difference th, .review-difference td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.review-difference tr:last-child td { border-bottom: 0; }
.review-difference th { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.review-difference td:first-child { color: var(--text); font-weight: 700; }
@media (max-width: 640px) { .review-difference table { font-size: .76rem; } .review-difference th, .review-difference td { padding: 8px; } }

/* Private moderation: distinguish harmless detail from a real conflict. */
.review-badge.safe { background: rgba(116, 224, 162, .14); color: var(--meetup); }
.review-help { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.canonical-choice { margin: 0; color: var(--muted); font-size: .85rem; }
.canonical-choice strong { color: var(--text); }
.review-difference.safe { border-color: rgba(116, 224, 162, .35); }
.review-difference.safe .eyebrow { color: var(--meetup); background: rgba(116, 224, 162, .06); }
.review-recommendation, .review-summary, .review-all-agree { margin: 0; padding: 10px 12px; color: var(--muted); line-height: 1.5; }
.review-recommendation { color: var(--text); padding-bottom: 0; }
.review-proof { display: inline-block; margin-left: 8px; padding: 2px 6px; border: 1px solid rgba(116, 224, 162, .35); border-radius: 999px; color: var(--meetup); font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; font-weight: 700; }
.review-difference table th:last-child, .review-difference table td:last-child { width: 156px; }
.comparison-organizer-adds-detail td:last-child { color: var(--meetup); }
.comparison-calendar-adds-detail td:last-child { color: var(--muted); }
.comparison-different td:last-child { color: #ff9d9d; font-weight: 700; }
@media (max-width: 640px) {
  .review-difference table th:last-child, .review-difference table td:last-child { width: auto; }
  .review-proof { display: block; width: fit-content; margin: 7px 0 0; }
}
