:root {
  --paper: #f3f0e8;
  --paper-2: #e9e5dc;
  --ink: #11110f;
  --muted: #6f6b62;
  --line: rgba(17, 17, 15, 0.2);
  --line-strong: rgba(17, 17, 15, 0.45);
  --blue: #2f4bff;
  --blue-soft: #d9dfff;
  --lime: #d8ff55;
  --orange: #ff6b3d;
  --good: #1d8b5d;
  --warn: #b76a00;
  --bad: #b52c2c;
  --shadow: 0 18px 50px rgba(17, 17, 15, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }

::selection { background: var(--blue); color: white; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header,
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  letter-spacing: .08em;
  font-size: 11px;
  text-transform: uppercase;
}

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px); }
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 80px; }
.site-footer span:last-child { justify-self: end; }

.brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-decoration: none;
  width: max-content;
}
.brand-dot { color: var(--blue); }

.header-rail { display: flex; align-items: center; gap: 28px; color: var(--muted); white-space: nowrap; }

.text-button {
  justify-self: end;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

#app { min-height: 70vh; }

.loading-screen {
  min-height: 66vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
}
.loading-screen h1 { margin: 0; font-size: clamp(72px, 18vw, 260px); line-height: .76; letter-spacing: -.09em; }
.loading-screen p { margin: 18px 0 0; color: var(--muted); }

.eyebrow {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.home-shell { padding: 26px 24px 0; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  min-height: 670px;
}

.hero-copy {
  padding: clamp(38px, 6vw, 86px) 30px clamp(38px, 6vw, 86px) 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.hero-copy h1 {
  margin: 0;
  font-weight: 900;
}
.hero-wordmark {
  width: 100%;
  font-size: clamp(78px, 12.2vw, 198px);
  line-height: .78;
  letter-spacing: -.095em;
  white-space: nowrap;
  text-wrap: nowrap;
}
.hero-command {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 30px);
  margin-top: clamp(20px, 3vw, 36px);
  min-width: 0;
  flex-wrap: wrap;
}
.hero-copy .hero-serif {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.065em;
  font-size: clamp(46px, 6.2vw, 94px);
  line-height: .9;
  white-space: nowrap;
}
.hero-command-rest {
  font-size: clamp(12px, 1.25vw, 18px);
  line-height: 1;
  letter-spacing: .11em;
  font-weight: 900;
  white-space: nowrap;
}
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 460px) auto;
  gap: 28px;
  align-items: end;
}
.hero-bottom p { margin: 0; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.04; letter-spacing: -.035em; }
.hero-mark {
  width: 116px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 24px;
  box-shadow: inset 0 0 0 14px rgba(255,255,255,.16);
}

.home-panel {
  border-left: 1px solid var(--ink);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255,255,255,.18);
}
.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-topline strong { font-size: 13px; letter-spacing: .04em; }
.panel-topline span { color: var(--muted); font-size: 11px; }

.form-stack { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 10px; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: var(--muted); }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 12px 13px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--blue); background: rgba(255,255,255,.4); box-shadow: 0 0 0 2px var(--blue-soft); }
.field-hint { font-size: 11px; color: var(--muted); line-height: 1.35; }

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.state-button,
.slot-button,
.icon-button {
  border: 1px solid var(--ink);
  min-height: 48px;
  background: transparent;
  padding: 11px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.primary-button { background: var(--ink); color: var(--paper); }
.primary-button.blue { background: var(--blue); border-color: var(--blue); color: white; }
.secondary-button { background: var(--lime); }
.ghost-button { border-color: var(--line-strong); }
.danger-button { border-color: var(--bad); color: var(--bad); }
.icon-button { width: 48px; padding: 0; display: inline-grid; place-items: center; }

@media (hover:hover) and (pointer:fine) {
  .primary-button:hover,
  .secondary-button:hover,
  .ghost-button:hover,
  .danger-button:hover,
  .slot-button:hover,
  .state-button:hover,
  .icon-button:hover { transform: translateY(-2px); }
  .primary-button:hover { background: var(--blue); border-color: var(--blue); }
  .ghost-button:hover { background: rgba(17,17,15,.05); }
}

.join-strip {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.join-strip input {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  outline: none;
}

.loop-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.loop-card { padding: 26px 26px 32px; min-height: 210px; position: relative; overflow: hidden; }
.loop-card + .loop-card { border-left: 1px solid var(--ink); }
.loop-number { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.loop-card h2 { margin: 44px 0 10px; font-size: clamp(34px, 4vw, 62px); line-height: .9; letter-spacing: -.055em; }
.loop-card p { margin: 0; max-width: 38ch; color: var(--muted); line-height: 1.4; }
.loop-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  right: -50px;
  top: -50px;
}

.app-shell { padding: 22px 24px 0; }
.meeting-masthead {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(260px,.5fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.meeting-title { padding: clamp(28px,4vw,56px) 28px clamp(28px,4vw,56px) 0; min-width: 0; }
.meeting-title h1 { margin: 8px 0 10px; font-size: clamp(52px, 8vw, 120px); line-height: .82; letter-spacing: -.07em; overflow-wrap: anywhere; }
.meeting-title p { margin: 0; max-width: 70ch; color: var(--muted); line-height: 1.45; }
.meeting-meta {
  border-left: 1px solid var(--ink);
  padding: 26px;
  display: grid;
  align-content: space-between;
  gap: 26px;
}
.meta-grid { display: grid; gap: 14px; }
.meta-item { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.meta-item label { display: block; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 5px; }
.meta-item strong { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.code-chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--ink); padding: 8px 10px; font-size: 13px; font-weight: 900; letter-spacing: .14em; width: max-content; }

.progress-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--ink);
}
.progress-step { padding: 14px 16px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.progress-step + .progress-step { border-left: 1px solid var(--line); }
.progress-step.active { color: var(--ink); background: var(--lime); }
.progress-step.done { color: white; background: var(--ink); }
.progress-dot { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; flex: 0 0 auto; }
.progress-step.active .progress-dot, .progress-step.done .progress-dot { background: currentColor; }

.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr);
  border-bottom: 1px solid var(--ink);
}
.room-main { padding: 30px 28px 34px 0; min-width: 0; }
.room-side { border-left: 1px solid var(--ink); padding: 28px; min-width: 0; }
.section-kicker { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 22px; }
.section-kicker h2 { margin: 0; font-size: clamp(28px,3.5vw,52px); line-height: .95; letter-spacing: -.05em; }
.section-kicker p { margin: 0; color: var(--muted); font-size: 12px; text-align: right; max-width: 34ch; }

.join-card { border: 1px solid var(--ink); padding: 22px; background: var(--blue); color: white; margin-bottom: 24px; }
.join-card h3 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.045em; }
.join-card p { margin: 0 0 18px; color: rgba(255,255,255,.76); line-height: 1.35; }
.join-card .field label { color: rgba(255,255,255,.72); }
.join-card .field input { border-color: rgba(255,255,255,.65); color: white; background: rgba(255,255,255,.08); }
.join-card .field input::placeholder { color: rgba(255,255,255,.56); }
.join-card .primary-button { background: white; color: var(--blue); border-color: white; width: 100%; }

.member-card { display: grid; gap: 14px; }
.member-identity { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.member-identity strong { font-size: 22px; letter-spacing: -.03em; }
.member-identity span { font-size: 11px; color: var(--muted); }
.member-mini-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 18px; font-size: 11px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border: 1px solid var(--line-strong); }
.legend-dot.yes { background: var(--blue); border-color: var(--blue); }
.legend-dot.maybe { background: var(--lime); border-color: var(--ink); }
.legend-dot.no { background: transparent; }
.legend-dot.best { background: var(--orange); border-color: var(--orange); }

.availability-wrap { display: grid; gap: 18px; }
.day-block { border-top: 1px solid var(--ink); }
.day-head { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.day-head strong { font-size: 15px; text-transform: uppercase; letter-spacing: -.01em; }
.day-head span { color: var(--muted); font-size: 11px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); border-left: 1px solid var(--line); }
.slot-button {
  min-height: 70px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px;
  display: grid;
  align-content: space-between;
  background: rgba(255,255,255,.15);
  color: var(--ink);
}
.slot-button .slot-time { font-size: 18px; font-weight: 900; letter-spacing: -.035em; }
.slot-button .slot-state { font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.slot-button[data-state="yes"] { background: var(--blue); color: white; }
.slot-button[data-state="yes"] .slot-state { color: rgba(255,255,255,.72); }
.slot-button[data-state="maybe"] { background: var(--lime); }
.slot-button[aria-disabled="true"] { cursor: default; }

.availability-actions { position: sticky; bottom: 12px; z-index: 15; display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 20px; padding: 12px; border: 1px solid var(--ink); background: color-mix(in srgb, var(--paper) 94%, white); box-shadow: var(--shadow); }
.availability-actions span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.availability-actions .primary-button { min-width: 160px; }

.consensus-panel { display: grid; gap: 12px; }
.candidate {
  border-top: 1px solid var(--ink);
  padding: 14px 0 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.candidate-main { min-width: 0; }
.candidate-time { font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.candidate-sub { color: var(--muted); font-size: 11px; margin-top: 4px; }
.score-row { display: flex; gap: 7px; align-items: center; margin-top: 10px; }
.score-track { height: 7px; background: var(--paper-2); flex: 1; min-width: 60px; overflow: hidden; }
.score-fill { height: 100%; background: var(--blue); transform-origin: left center; }
.score-label { font-size: 10px; font-weight: 800; min-width: 34px; text-align: right; }
.candidate.best .score-fill { background: var(--orange); }
.candidate-rank { width: 52px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.candidate.best .candidate-rank { background: var(--orange); border-color: var(--orange); }
.candidate-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.candidate-actions .primary-button, .candidate-actions .ghost-button { min-height: 40px; padding: 8px 10px; font-size: 10px; }

.participant-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.participant-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 30px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 10px; font-weight: 900; background: var(--paper-2); }
.participant-name { min-width: 0; }
.participant-name strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.participant-name span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.status-pill { font-size: 9px; text-transform: uppercase; letter-spacing: .07em; padding: 5px 7px; border: 1px solid var(--line-strong); white-space: nowrap; }
.status-pill.good { border-color: var(--good); color: var(--good); }
.status-pill.warn { border-color: var(--warn); color: var(--warn); }
.status-pill.bad { border-color: var(--bad); color: var(--bad); }
.status-pill.blue { border-color: var(--blue); color: var(--blue); }

.side-section { margin-top: 26px; }
.side-section:first-child { margin-top: 0; }
.side-section h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.side-section p { color: var(--muted); font-size: 12px; line-height: 1.45; }

.locked-layout { padding: 28px 24px 0; }
.locked-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px,.75fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.locked-time { padding: clamp(34px,5vw,68px) 30px clamp(38px,6vw,74px) 0; }
.locked-time .big-day { font-size: clamp(52px,7vw,108px); line-height: .82; letter-spacing: -.065em; font-weight: 900; margin: 12px 0 6px; }
.locked-time .big-clock { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(52px,7vw,104px); line-height: .9; letter-spacing: -.055em; }
.locked-time .timezone-note { margin-top: 18px; color: var(--muted); font-size: 12px; }
.locked-score { border-left: 1px solid var(--ink); display: grid; place-items: center; padding: 30px; }
.readiness-ring {
  --pct: 0%;
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--blue) var(--pct), var(--paper-2) 0);
  display: grid;
  place-items: center;
  position: relative;
}
.readiness-ring::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.readiness-content { position: relative; z-index: 1; text-align: center; }
.readiness-content strong { display: block; font-size: clamp(46px,6vw,72px); letter-spacing: -.06em; }
.readiness-content span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); }

.follow-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); border-bottom: 1px solid var(--ink); }
.follow-main { padding: 30px 28px 34px 0; }
.follow-side { border-left: 1px solid var(--ink); padding: 28px; }

.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 26px; }
.action-card { border: 1px solid var(--ink); padding: 16px; min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.action-card.emphasis { background: var(--lime); }
.action-card.blue { background: var(--blue); color: white; }
.action-card h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.action-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.action-card.blue p { color: rgba(255,255,255,.72); }
.action-card .primary-button, .action-card .ghost-button { width: 100%; min-height: 42px; font-size: 10px; }
.action-card.blue .ghost-button { border-color: white; color: white; }

.confirm-stack { display: flex; gap: 8px; flex-wrap: wrap; }
.state-button { min-height: 42px; font-size: 10px; }
.state-button.selected { background: var(--ink); color: var(--paper); }

.countdown { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 20px 0; margin: 22px 0; }
.countdown-label { font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.countdown-value { font-size: clamp(42px,5vw,70px); font-weight: 900; letter-spacing: -.06em; margin-top: 4px; }

.activity-feed { display: grid; border-top: 1px solid var(--ink); }
.activity-row { padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 58px 1fr; gap: 10px; font-size: 11px; }
.activity-time { color: var(--muted); }
.activity-row strong { font-weight: 800; }
.activity-row span { color: var(--muted); }

.empty-state { border: 1px dashed var(--line-strong); padding: 24px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.5; }

.banner { margin: 0 24px 24px; border: 1px solid var(--ink); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: var(--lime); }
.banner.error { background: #ffd8d0; border-color: var(--bad); }
.banner strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.banner p { margin: 0; font-size: 12px; line-height: 1.4; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { padding: 12px 14px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 12px; line-height: 1.4; animation: toast-in .2s ease-out; }
.toast.error { background: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(17,17,15,.5); z-index: 80; display: grid; place-items: center; padding: 18px; }
.modal { width: min(620px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow: auto; background: var(--paper); border: 1px solid var(--ink); box-shadow: var(--shadow); padding: 24px; }
.modal-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.copy-box { width: 100%; min-height: 140px; border: 1px solid var(--ink); background: white; padding: 12px; resize: vertical; line-height: 1.45; }

.organizer-gate { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.organizer-gate summary { cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.organizer-key-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.organizer-key-row input { min-width: 0; border: 1px solid var(--line-strong); background: transparent; padding: 10px; }

@media (max-width: 980px) {
  .header-rail { display: none; }
  .site-header, .site-footer { grid-template-columns: 1fr auto; }
  .home-hero,
  .meeting-masthead,
  .room-grid,
  .locked-hero,
  .follow-grid { grid-template-columns: 1fr; }
  .home-panel,
  .meeting-meta,
  .room-side,
  .locked-score,
  .follow-side { border-left: 0; border-top: 1px solid var(--ink); }
  .home-hero { min-height: 0; }
  .hero-copy { min-height: 600px; }
  .loop-band { grid-template-columns: 1fr; }
  .loop-card + .loop-card { border-left: 0; border-top: 1px solid var(--ink); }
  .room-main, .follow-main { padding-right: 0; }
}

@media (max-width: 640px) {
  .site-header, .home-shell, .app-shell, .locked-layout { padding-left: 14px; padding-right: 14px; }
  .site-footer { padding-left: 14px; padding-right: 14px; }
  .site-footer span:first-child { display: none; }
  .site-footer span:last-child { justify-self: start; }
  .home-hero { border-top-width: 1px; }
  .hero-copy { min-height: 500px; padding-right: 0; }
  .hero-wordmark { font-size: clamp(62px, 20vw, 118px); letter-spacing: -.09em; }
  .hero-command { display: grid; gap: 12px; margin-top: 24px; }
  .hero-copy .hero-serif { font-size: clamp(46px, 15vw, 78px); }
  .hero-command-rest { font-size: 11px; letter-spacing: .1em; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-mark { width: 84px; }
  .home-panel { padding: 22px 0; }
  .form-row { grid-template-columns: 1fr; }
  .loop-card { padding-left: 0; padding-right: 0; }
  .meeting-title { padding-right: 0; }
  .meeting-title h1 { font-size: 54px; }
  .meeting-meta, .room-side, .follow-side { padding: 22px 0; }
  .progress-step { padding: 11px 7px; font-size: 9px; gap: 5px; justify-content: center; text-align: center; }
  .room-main, .follow-main { padding-top: 22px; }
  .section-kicker { display: grid; gap: 7px; }
  .section-kicker p { text-align: left; }
  .day-head { grid-template-columns: 1fr; gap: 2px; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .availability-actions { position: static; display: grid; }
  .availability-actions .primary-button { width: 100%; }
  .action-grid { grid-template-columns: 1fr; }
  .locked-time { padding-right: 0; }
  .locked-score { padding: 26px 0; }
  .join-strip { grid-template-columns: 1fr; }
  .join-strip input { min-height: 54px; }
  .participant-row { grid-template-columns: 30px 1fr; }
  .participant-row .status-pill { grid-column: 2; justify-self: start; }
  .modal { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.slot-button.hot { box-shadow: inset 0 -4px 0 var(--orange); }
.slot-button.unanimous { outline: 2px solid var(--orange); outline-offset: -2px; }
.small-note { font-size: 10px; color: var(--muted); line-height: 1.4; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.linkish { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* v1.1 — decision clarity + faster availability entry */
.decision-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr) auto;
  border-bottom: 1px solid var(--ink);
  min-width: 0;
}
.decision-call { padding: 24px 24px 26px 0; min-width: 0; }
.decision-verdict { margin-top: 8px; font-size: clamp(32px, 4vw, 62px); line-height: .88; letter-spacing: -.055em; font-weight: 900; }
.decision-call p { margin: 10px 0 0; max-width: 62ch; color: var(--muted); font-size: 12px; line-height: 1.45; }
.decision-best { margin-top: 18px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.decision-best span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.decision-best strong { font-size: 15px; }
.decision-brief.go .decision-verdict { color: var(--good); }
.decision-brief.close .decision-verdict { color: var(--blue); }
.decision-brief.wait .decision-verdict { color: var(--warn); }
.decision-metrics { border-left: 1px solid var(--ink); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.decision-metric { padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 7px; min-width: 0; }
.decision-metric + .decision-metric { border-left: 1px solid var(--line); }
.decision-metric span { font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.decision-metric strong { font-size: clamp(28px, 3vw, 46px); letter-spacing: -.06em; line-height: 1; }
.decision-metric small { font-size: 9px; line-height: 1.3; color: var(--muted); }
.decision-actions { border-left: 1px solid var(--ink); padding: 18px; display: grid; place-items: center; }
.decision-actions button { max-width: 180px; }

.day-head > div:first-child { display: grid; gap: 2px; }
.day-quick-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.day-fill { min-height: 30px; border: 1px solid var(--line-strong); background: transparent; padding: 5px 8px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (hover:hover) and (pointer:fine) { .day-fill:hover { background: var(--paper-2); } }

.candidate-people { margin-top: 11px; border-top: 1px solid var(--line); display: grid; gap: 5px; padding-top: 10px; }
.candidate-people > div { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: baseline; min-width: 0; }
.candidate-people span { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.candidate-people strong { font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }

.lock-scoreline { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.lock-scoreline > div { padding: 14px 12px; min-width: 0; }
.lock-scoreline > div + div { border-left: 1px solid var(--line); }
.lock-scoreline span, .lock-people-grid span { display: block; font-size: 8px; letter-spacing: .1em; color: var(--muted); margin-bottom: 5px; }
.lock-scoreline strong { display: block; font-size: 18px; line-height: 1.1; overflow-wrap: anywhere; }
.lock-people-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border: 1px solid var(--line); }
.lock-people-grid > div { padding: 13px; min-width: 0; }
.lock-people-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
.lock-people-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.lock-people-grid strong { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .decision-brief { grid-template-columns: 1fr 1fr; }
  .decision-actions { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); place-items: stretch; }
  .decision-actions button { max-width: none; width: 100%; }
}
@media (max-width: 760px) {
  .decision-brief { grid-template-columns: 1fr; }
  .decision-call { padding-right: 0; }
  .decision-metrics { border-left: 0; border-top: 1px solid var(--ink); }
  .decision-metric { padding-left: 10px; padding-right: 10px; }
  .day-head { grid-template-columns: 1fr; }
  .day-quick-actions { justify-content: flex-start; margin-top: 7px; }
  .lock-scoreline { grid-template-columns: repeat(2, 1fr); }
  .lock-scoreline > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .lock-scoreline > div:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .decision-metrics { grid-template-columns: 1fr; }
  .decision-metric + .decision-metric { border-left: 0; border-top: 1px solid var(--line); }
  .decision-metric { display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
  .decision-metric small { grid-column: 1 / -1; }
  .lock-people-grid { grid-template-columns: 1fr; }
  .lock-people-grid > div:nth-child(even) { border-left: 0; }
  .lock-people-grid > div + div { border-top: 1px solid var(--line); }
}
.organizer-control-card { border-top: 1px solid var(--ink); padding-top: 18px; }
.organizer-control-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.organizer-control-actions .ghost-button { min-height: 40px; font-size: 9px; }

/* v1.3 — true shared-time invariant + recovery */
.decision-brief.blocked .decision-verdict { color: var(--bad); }
.candidate-status {
  width: max-content;
  margin-bottom: 6px;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.candidate.shared .candidate-status { border-color: var(--good); color: var(--good); }
.candidate.provisional .candidate-status { border-color: var(--warn); color: var(--warn); }
.candidate.conflict .candidate-status { border-color: var(--bad); color: var(--bad); }
.candidate.shared.best .candidate-rank { background: var(--good); border-color: var(--good); color: white; }
.candidate.conflict.best .candidate-rank { background: transparent; border-color: var(--bad); color: var(--bad); }
.candidate.shared.best .score-fill { background: var(--good); }
.candidate.conflict.best .score-fill { background: var(--bad); }
.candidate-people > div { grid-template-columns: 68px 1fr; }
.shared-lock-proof {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--good);
  color: var(--good);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.shared-time-break {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--bad);
  border-bottom: 1px solid var(--bad);
  color: var(--bad);
}
.shared-time-break h2 { margin: 6px 0 8px; font-size: clamp(24px, 3vw, 42px); line-height: .96; letter-spacing: -.045em; }
.shared-time-break p { margin: 0; max-width: 72ch; color: var(--ink); font-size: 12px; line-height: 1.45; }
.shared-time-break .primary-button { background: var(--bad); border-color: var(--bad); color: white; min-width: 220px; }
.locked-membership-card { border-top: 1px solid var(--bad); }
.locked-membership-card .eyebrow { color: var(--bad); }

@media (max-width: 760px) {
  .shared-time-break { grid-template-columns: 1fr; }
  .shared-time-break .primary-button { width: 100%; min-width: 0; }
}
.organizer-group-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.organizer-group-form > label { font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.organizer-group-form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.organizer-group-form select { min-height: 40px; border: 1px solid var(--line-strong); background: transparent; padding: 7px 9px; }
.organizer-group-form .ghost-button { min-height: 40px; }
