:root {
  color-scheme: light;
  --bg: #f9fafb;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --line-strong: rgba(17, 24, 39, 0.18);
  --best: #10b981;
  --best-fill: rgba(16, 185, 129, 0.15);
  --works: #3b82f6;
  --works-fill: rgba(59, 130, 246, 0.15);
  --maybe: #06b6d4;
  --maybe-fill: rgba(6, 182, 212, 0.15);
  --no: #ef4444;
  --tile-empty: rgba(255, 255, 255, 0.36);
  --tile-edge: rgba(255, 255, 255, 0.4);
  --tile-highlight: inset 1px 1px 2px rgba(255, 255, 255, 0.9);
  --tile-lowlight: inset -1px -1px 2px rgba(0, 0, 0, 0.05);
  --tile-floor-shadow: 0 10px 18px rgba(0, 0, 0, 0.05), 0 2px 5px rgba(0, 0, 0, 0.025);
  --shadow: 0 26px 80px rgba(17, 24, 39, 0.13);
  --shadow-soft: 0 16px 48px rgba(17, 24, 39, 0.09);
  --top-h: clamp(78px, 10vh, 104px);
  --right-rail: 78px;
  --right-open: min(390px, 34vw);
  --bottom-rail: 108px;
  --bottom-open: min(300px, 36vh);
  --gap: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  padding: var(--gap);
  display: grid;
  grid-template-rows: var(--top-h) minmax(0, 1fr);
  gap: var(--gap);
}

.top-chrome,
.edge-tray {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.08);
}

.top-chrome {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  overflow: hidden;
}

.setup-mode .top-chrome {
  grid-template-columns: auto minmax(320px, 1fr) auto auto;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0;
}

.brand-logo {
  width: 182px;
  height: 74px;
  display: block;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.top-chrome h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.title-editor {
  width: min(620px, 100%);
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
  outline: 0;
}

.description-editor {
  width: min(760px, 100%);
  max-height: 34px;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
  outline: 0;
}

.description-editor:focus {
  max-height: 68px;
  color: var(--ink);
}

.mode-switch,
.band-picker,
.rsvp-buttons {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  gap: 3px;
}

.mode-button,
.band-button,
.rsvp,
.quiet-button,
.more-button,
.close-button,
.icon-button,
.rail-open,
.send-button {
  border: 0;
  border-radius: 6px;
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
}

.mode-button.active {
  background: var(--ink);
  color: white;
}

.setup-mode .mode-button.active {
  background: rgba(17, 24, 39, 0.78);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.event-meta span,
.save-state {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.save-state {
  color: var(--best);
  border-color: rgba(16, 185, 129, 0.26);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.save-state.glow {
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
}

.stage-shell {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--right-rail);
  grid-template-rows: minmax(0, 1fr) var(--bottom-rail);
  gap: var(--gap);
  transition:
    grid-template-columns 340ms cubic-bezier(0.16, 1, 0.3, 1),
    grid-template-rows 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-shell:has(.options-rail:hover:not(.suppressed)),
.app-shell.options-pinned .stage-shell {
  grid-template-columns: minmax(0, 1fr) var(--right-open);
}

.stage-shell:has(.bottom-rail:hover:not(.suppressed)),
.app-shell.bottom-pinned .stage-shell {
  grid-template-rows: minmax(0, 1fr) var(--bottom-open);
}

.calendar-canvas {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    filter 340ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 340ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-shell:has(.options-rail:hover:not(.suppressed)) .calendar-canvas,
.stage-shell:has(.bottom-rail:hover:not(.suppressed)) .calendar-canvas,
.app-shell.options-pinned .calendar-canvas,
.app-shell.bottom-pinned .calendar-canvas {
  opacity: 0.84;
  filter: blur(0.8px) saturate(0.96);
  transform: scale(0.992);
  transform-origin: top left;
}

.setup-dates-active.options-pinned .calendar-canvas,
.setup-dates-active .stage-shell:has(.options-rail:hover:not(.suppressed)) .calendar-canvas,
.setup-mode.options-pinned .calendar-canvas,
.setup-mode .stage-shell:has(.options-rail:hover:not(.suppressed)) .calendar-canvas {
  opacity: 1;
  filter: none;
  transform: none;
}

.setup-dates-active .bottom-rail {
  opacity: 0.46;
  filter: saturate(0.8);
  pointer-events: none;
}

.calendar-panel {
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.calendar-toolbar,
.tray-title-row,
.sub-tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.month-label {
  font-weight: 820;
  font-size: 1.18rem;
}

.icon-button,
.close-button,
.more-button {
  width: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  color: var(--ink);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.calendar-grid {
  min-height: 0;
  gap: 12px;
  align-content: stretch;
}

.day-cell {
  position: relative;
  min-height: 0;
  padding: 11px;
  border: 1px solid var(--tile-edge);
  border-radius: 16px;
  background: var(--tile-empty);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  color: var(--ink);
  text-align: left;
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow:
    var(--tile-highlight),
    var(--tile-lowlight),
    var(--tile-floor-shadow);
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    outline-color 180ms ease,
    outline-offset 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.day-cell:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow:
    var(--tile-highlight),
    var(--tile-lowlight),
    0 14px 28px rgba(17, 24, 39, 0.1),
    0 4px 8px rgba(17, 24, 39, 0.04);
}

.day-cell.active {
  transform: translateY(-3px) scale(1.03);
  outline-color: rgba(16, 185, 129, 0.8);
  outline-offset: 4px;
  box-shadow:
    0 16px 24px rgba(0, 0, 0, 0.08),
    var(--tile-highlight),
    var(--tile-lowlight);
}

.day-cell.muted {
  opacity: 0.46;
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    var(--tile-highlight),
    var(--tile-lowlight),
    0 6px 12px rgba(0, 0, 0, 0.025);
}

.day-cell.empty {
  border-color: var(--tile-edge);
  border-style: solid;
  background: var(--tile-empty);
}

.day-cell.best {
  background: var(--best-fill);
  border-color: var(--tile-edge);
}

.day-cell.works {
  background: var(--works-fill);
  border-color: var(--tile-edge);
}

.day-cell.maybe {
  background: var(--maybe-fill);
  border-color: var(--tile-edge);
  color: var(--ink);
}

.day-cell.no {
  background: var(--tile-empty);
  border-color: var(--tile-edge);
}

.setup-mode .day-cell {
  background: var(--tile-empty);
  border-color: var(--tile-edge);
}

.setup-mode .day-cell.setup-range-single,
.setup-mode .day-cell.setup-range-start,
.setup-mode .day-cell.setup-range-middle,
.setup-mode .day-cell.setup-range-end {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(59, 130, 246, 0.82);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.08),
    var(--tile-highlight),
    var(--tile-lowlight),
    0 16px 24px rgba(59, 130, 246, 0.08);
}

.setup-mode .day-cell.setup-range-start {
  border-right-color: transparent;
  border-radius: 16px 4px 4px 16px;
}

.setup-mode .day-cell.setup-range-middle {
  border-right-color: transparent;
  border-left-color: transparent;
  border-radius: 4px;
}

.setup-mode .day-cell.setup-range-end {
  border-left-color: transparent;
  border-radius: 4px 16px 16px 4px;
}

.day-number {
  color: #111827;
  font-weight: 600;
}

.range-label {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
}

.consensus-badge,
.blocker-badge,
.my-marker {
  position: absolute;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 820;
}

.consensus-badge {
  right: 8px;
  top: 8px;
  min-width: 28px;
  height: 24px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.blocker-badge {
  right: -5px;
  top: -6px;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  color: white;
  background: var(--no);
  box-shadow: 0 0 0 3px white, 0 10px 22px rgba(239, 68, 68, 0.22);
}

.my-marker {
  left: 8px;
  bottom: 8px;
  height: 22px;
  padding: 0 8px;
  background: rgba(17, 24, 39, 0.88);
  color: white;
}

.edge-tray {
  position: relative;
  overflow: hidden;
  background: var(--glass);
  box-shadow: var(--shadow);
  transition:
    opacity 240ms ease,
    box-shadow 240ms ease;
}

.edge-tray:hover,
.edge-tray.pinned {
  background: var(--glass-strong);
}

.options-rail {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
}

.rail-tab {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--right-rail);
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 8px;
  transition: opacity 180ms ease;
}

.rail-open {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.options-rail .rail-open span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 820;
}

.rail-content {
  height: 100%;
  min-width: 300px;
  padding: 16px 16px 16px calc(var(--right-rail) + 10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(14px);
  transition:
    opacity 240ms ease,
    transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.options-rail:not(:hover):not(.pinned) .rail-content {
  visibility: hidden;
}

.options-rail.pinned .rail-tab {
  opacity: 0;
  pointer-events: none;
}

.options-rail:hover:not(.suppressed) .rail-content,
.options-rail.pinned .rail-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.tray-title-row h2,
.event-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.response-card,
.winner-card,
.event-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 13px;
}

.setup-status-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.response-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.response-card strong,
.winner-card strong {
  display: block;
  margin-top: 5px;
  font-size: 1.1rem;
}

.winner-card p,
.event-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.band-picker {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.band-button {
  min-width: 0;
  padding: 0 7px;
  font-size: 0.82rem;
  font-weight: 820;
}

.band-button.active.best,
.date-chip.best,
.rsvp.yes.active {
  background: var(--best);
  color: white;
}

.band-button.active.works,
.date-chip.works {
  background: var(--works);
  color: white;
}

.band-button.active.maybe,
.date-chip.maybe,
.rsvp.maybe.active {
  background: var(--maybe);
  color: white;
}

.band-button.active.no,
.date-chip.no,
.rsvp.no.active {
  background: var(--no);
  color: white;
}

.option-list {
  display: grid;
  gap: 8px;
}

.setup-option-list {
  display: grid;
  gap: 8px;
}

.empty-draft {
  border: 1px dashed rgba(17, 24, 39, 0.22);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
}

.option-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 8px;
  text-align: left;
}

.option-row.active {
  border-color: rgba(17, 24, 39, 0.32);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-weight: 820;
  font-size: 0.82rem;
}

.date-chip.setup {
  background: rgba(59, 130, 246, 0.12);
  color: #1f4f91;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.option-score {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.event-art {
  height: 110px;
  border-radius: 8px;
  margin-bottom: 12px;
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.82), rgba(16, 185, 129, 0.72)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 420 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 128h420v52H0z' fill='%23f7d66d'/%3E%3Ccircle cx='340' cy='42' r='26' fill='%23fff3b0'/%3E%3Cpath d='M48 128c28-38 56-52 84-42s47 2 76-24 67-31 114 66z' fill='%23d8f4e1'/%3E%3Cpath d='M88 128c28-25 50-28 74-9s45 19 67 0 54-24 95 9z' fill='%231d2523' opacity='.12'/%3E%3C/svg%3E");
  background-size: cover;
}

.event-art span {
  display: block;
  width: 72px;
  height: 72px;
  margin: 26px 0 0 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 -12px 0 rgba(17, 24, 39, 0.08);
}

.rsvp-buttons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.setup-launchpad,
.send-gate-actions {
  display: grid;
  gap: 8px;
}

.quiet-button,
.more-button,
.send-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 760;
}

.launch-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 820;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
}

.launch-button.primary {
  border-color: rgba(17, 24, 39, 0.34);
  background: var(--ink);
  color: white;
}

.launch-button.secondary {
  background: rgba(255, 255, 255, 0.74);
}

.bottom-rail {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
}

.bottom-handle {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bottom-handle .rail-open {
  width: auto;
  height: 34px;
  display: inline-flex;
  padding: 0 12px;
}

.bottom-handle .close-button {
  opacity: 0;
  pointer-events: none;
}

.bottom-rail:hover:not(.suppressed) .bottom-handle .close-button,
.bottom-rail.pinned .bottom-handle .close-button {
  opacity: 1;
  pointer-events: auto;
}

.bottom-content {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  transition: grid-template-columns 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-content.people-active,
.app-shell.people-pinned .bottom-content {
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.55fr);
}

.bottom-content.comments-active,
.app-shell.comments-pinned .bottom-content {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.65fr);
}

.sub-tray {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 8px;
}

.sub-tray-head {
  color: var(--muted);
  font-weight: 820;
}

.sub-tray-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sub-tray .close-button {
  width: 32px;
  min-height: 32px;
}

.sub-tray-body {
  min-width: 0;
  margin-top: 8px;
}

.people-strip {
  min-width: 0;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.person-chip {
  flex: 0 0 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  padding: 8px;
  text-align: left;
}

.person-chip.distribution {
  flex-basis: 158px;
  border-style: dashed;
  border-color: rgba(17, 24, 39, 0.28);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.04), rgba(255, 255, 255, 0.58));
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar,
.group-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 820;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1);
}

.avatar.best {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.34), 0 8px 18px rgba(17, 24, 39, 0.1);
}

.avatar.works {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.34), 0 8px 18px rgba(17, 24, 39, 0.1);
}

.avatar.maybe {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.38), 0 8px 18px rgba(17, 24, 39, 0.1);
}

.avatar.no {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.36), 0 8px 18px rgba(17, 24, 39, 0.1);
}

.group-avatar {
  border-radius: 8px;
}

.person-name {
  display: block;
  overflow: hidden;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-status {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.comment-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.comment-box label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.comment-box input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0 11px;
  color: var(--ink);
}

.setup-command-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(var(--bottom-rail) - 44px);
  width: min(760px, calc(100vw - 40px));
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.16);
  transform: translateX(-50%);
}

.setup-command-bar::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: -7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.42), transparent);
  box-shadow: 0 -5px 18px rgba(59, 130, 246, 0.16);
}

.setup-command-bar label,
.setup-command-bar span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.setup-command-bar input,
.setup-people-entry input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0 11px;
  color: var(--ink);
}

.setup-command-bar strong {
  white-space: nowrap;
}

.setup-people-entry {
  display: grid;
  gap: 8px;
}

.setup-people-entry label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.person-chip .avatar.works,
.person-chip .avatar.provisional {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.24), 0 8px 18px rgba(17, 24, 39, 0.1);
}

.person-chip:has(.person-status):has(.avatar.works) {
  border-style: solid;
}

.send-gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(249, 250, 251, 0.34);
  backdrop-filter: blur(5px);
}

.send-gate {
  width: min(440px, calc(100vw - 40px));
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.14);
}

.send-gate p {
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  :root {
    --top-h: 170px;
    --right-rail: 0px;
    --right-open: 0px;
    --bottom-rail: 128px;
    --bottom-open: 370px;
  }

  .app-shell {
    padding: 6px;
    gap: 8px;
  }

  .top-chrome {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .mode-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .event-meta {
    justify-content: flex-start;
  }

  .stage-shell,
  .stage-shell:has(.options-rail:hover),
  .app-shell.options-pinned .stage-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) var(--bottom-rail);
  }

  .stage-shell:has(.bottom-rail:hover),
  .app-shell.bottom-pinned .stage-shell {
    grid-template-rows: minmax(0, 1fr) var(--bottom-open);
  }

  .options-rail {
    display: none;
  }

  .calendar-canvas {
    padding: 10px;
  }

  .calendar-grid {
    gap: 5px;
  }

  .day-cell {
    padding: 6px;
  }

  .range-label,
  .consensus-badge {
    display: none;
  }

  .blocker-badge {
    min-width: 24px;
    height: 22px;
    padding: 0 5px;
    font-size: 0.64rem;
  }

  .my-marker {
    left: 5px;
    bottom: 5px;
    height: 18px;
    padding: 0 6px;
    font-size: 0.62rem;
  }

  .bottom-content,
  .bottom-content.people-active,
  .bottom-content.comments-active,
  .app-shell.people-pinned .bottom-content,
  .app-shell.comments-pinned .bottom-content {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .setup-command-bar {
    bottom: calc(var(--bottom-rail) - 72px);
    grid-template-columns: 1fr;
  }
}
