:root {
  color-scheme: light;
  --ink: #20242c;
  --muted: #667085;
  --line: #d9e0e4;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --soft: #f1f5f2;
  --wine: #7a1f3d;
  --wine-deep: #5b1730;
  --leaf: #326e57;
  --blue: #2f5d8c;
  --amber: #b16b18;
  --danger: #a33a2d;
  --shadow: 0 18px 44px rgba(31, 36, 44, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(50, 110, 87, 0.11), transparent 34rem),
    linear-gradient(135deg, #fbfaf7 0%, #f4f0ed 52%, #eef4f2 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

a {
  color: var(--blue);
}

.app-shell {
  min-height: 100vh;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--wine);
  color: #fff;
  font-weight: 800;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 2.05rem;
  line-height: 1.08;
}

.brand p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.98rem;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.jump-nav {
  display: flex;
  gap: 8px;
  margin: -4px 0 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.jump-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #344054;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.jump-nav a:hover {
  border-color: rgba(47, 93, 140, 0.35);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(122, 31, 61, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.2) 100%),
    url("./assets/wine-tasting-table.png");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: min(14vw, 170px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--wine);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h2,
.section h2,
.panel h2,
.compact-title {
  margin: 0;
  color: var(--ink);
}

.hero h2 {
  max-width: 780px;
  font-size: 4rem;
  line-height: 0.98;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: #404651;
  font-size: 1.12rem;
  line-height: 1.55;
}

.create-panel,
.panel,
.identity-panel,
.loading-view,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(31, 36, 44, 0.08);
}

.create-panel {
  padding: 22px;
}

.create-panel h3,
.panel h2,
.identity-panel h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.fieldset-title {
  color: #344054;
  font-size: 0.93rem;
  font-weight: 750;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.control,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5dc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.control:focus,
.textarea:focus,
.select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 93, 140, 0.14);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.calendar-widget {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.calendar-nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.calendar-month-label {
  color: var(--ink);
  font-weight: 850;
  text-align: center;
}

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

.calendar-weekday {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day,
.calendar-empty {
  aspect-ratio: 1;
  min-height: 44px;
  border-radius: 8px;
}

.calendar-day {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.calendar-day:hover {
  border-color: rgba(47, 93, 140, 0.45);
  background: #f6f9fb;
}

.calendar-day.today {
  border-color: rgba(177, 107, 24, 0.45);
}

.calendar-day.selected {
  border-color: rgba(122, 31, 61, 0.45);
  background: var(--wine);
  color: #fff;
}

.selected-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(122, 31, 61, 0.24);
  border-radius: 999px;
  background: rgba(122, 31, 61, 0.07);
  color: var(--wine-deep);
  padding: 7px 11px;
  font-size: 0.9rem;
  font-weight: 800;
}

.date-chip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 36, 44, 0.1);
}

.btn.primary {
  color: #fff;
  background: var(--wine);
}

.btn.primary:hover {
  background: var(--wine-deep);
}

.btn.secondary {
  border-color: var(--line);
  background: var(--soft);
}

.btn.ghost {
  border-color: var(--line);
  background: #fff;
}

.btn.success {
  color: #fff;
  background: var(--leaf);
}

.btn.warning {
  color: #fff;
  background: var(--amber);
}

.btn.danger {
  color: #fff;
  background: var(--danger);
}

.btn.small {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 0.92rem;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.calendar-day:focus-visible,
.date-chip:focus-visible,
.vote-button:focus-visible,
.choice-button:focus-visible,
.past-link:focus-visible {
  outline: 3px solid rgba(47, 93, 140, 0.42);
  outline-offset: 2px;
}

.status-chip,
.mode-chip,
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.84rem;
  font-weight: 800;
}

.status-chip {
  color: #fff;
  background: var(--wine);
}

.status-chip.final {
  background: var(--leaf);
}

.mode-chip {
  color: #344054;
  background: #eef4f2;
  border: 1px solid #d4dfdb;
}

.demo-banner,
.notice,
.toast,
.error-banner {
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.45;
}

.demo-banner {
  margin-bottom: 18px;
  border: 1px solid rgba(177, 107, 24, 0.3);
  background: #fff8ea;
  color: #5f4218;
}

.notice {
  border: 1px solid rgba(47, 93, 140, 0.18);
  background: #edf5fb;
  color: #23435f;
}

.error-banner {
  border: 1px solid rgba(163, 58, 45, 0.28);
  background: #fff0ee;
  color: #7d2f26;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  border: 1px solid rgba(50, 110, 87, 0.28);
  background: #f0faf4;
  color: #1f513f;
  box-shadow: var(--shadow);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.main-stack,
.side-stack {
  display: grid;
  gap: 18px;
}

.panel,
.identity-panel,
.loading-view,
.empty-state {
  padding: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-band {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(31, 36, 44, 0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-header h2,
.section-header p {
  margin: 0;
}

.section-header p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.decision-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.decision-band.archive-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-item {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.decision-item span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.decision-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.list {
  display: grid;
  gap: 12px;
}

.past-list,
.bottle-review-list,
.review-stack,
.attendee-list {
  display: grid;
  gap: 12px;
}

.past-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.past-list.compact {
  grid-template-columns: 1fr;
}

.past-link {
  display: grid;
  gap: 6px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}

.past-link:hover {
  border-color: rgba(47, 93, 140, 0.35);
  box-shadow: 0 8px 18px rgba(31, 36, 44, 0.08);
}

.past-link.compact {
  min-height: 0;
}

.past-link span,
.past-link small {
  color: var(--muted);
  line-height: 1.35;
}

.attendee-list {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  align-items: start;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.item-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.item-meta,
.comment-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.item-body {
  margin: 8px 0 0;
  color: #475467;
  line-height: 1.45;
  white-space: pre-wrap;
}

.bottle-review-card {
  padding: 16px;
}

.review {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review p {
  margin: 8px 0 0;
  color: #344054;
  line-height: 1.45;
  white-space: pre-wrap;
}

.personal-status {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 9px 10px;
  color: #475467;
  line-height: 1.35;
}

.personal-status.answered {
  border-color: rgba(50, 110, 87, 0.24);
  background: #edf8f1;
  color: #275844;
}

.score-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(122, 31, 61, 0.09);
  color: var(--wine-deep);
  padding: 4px 10px;
  font-size: 0.84rem;
  font-weight: 800;
}

.vote-controls,
.availability-controls,
.attendance-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.vote-button,
.choice-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 800;
}

.bulk-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(47, 93, 140, 0.2);
  border-radius: 8px;
  background: #f7fbfd;
  padding: 12px;
}

.bulk-actions > span {
  color: #344054;
  font-size: 0.9rem;
  font-weight: 850;
}

.bulk-action-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vote-button.active {
  border-color: rgba(122, 31, 61, 0.35);
  background: rgba(122, 31, 61, 0.08);
  color: var(--wine-deep);
}

.choice-button.available.active {
  border-color: rgba(50, 110, 87, 0.38);
  background: rgba(50, 110, 87, 0.11);
  color: #244f3e;
}

.choice-button.maybe.active {
  border-color: rgba(177, 107, 24, 0.4);
  background: rgba(177, 107, 24, 0.12);
  color: #72450f;
}

.choice-button.unavailable.active,
.choice-button.no.active {
  border-color: rgba(163, 58, 45, 0.38);
  background: rgba(163, 58, 45, 0.1);
  color: #7d2f26;
}

.choice-button.yes.active {
  border-color: rgba(50, 110, 87, 0.38);
  background: rgba(50, 110, 87, 0.11);
  color: #244f3e;
}

.count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.availability-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.availability-group {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.availability-group span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.availability-group strong {
  color: #344054;
  font-size: 0.92rem;
  line-height: 1.35;
}

.count-pill {
  border: 1px solid var(--line);
  background: var(--soft);
  color: #344054;
}

.count-pill.available {
  background: #edf8f1;
  color: #275844;
}

.count-pill.maybe {
  background: #fff7e8;
  color: #72450f;
}

.count-pill.unavailable {
  background: #fff0ee;
  color: #7d2f26;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.leader-panel {
  border-color: rgba(122, 31, 61, 0.32);
  background: #fffafb;
}

.links-box {
  display: grid;
  gap: 12px;
}

.link-line {
  display: grid;
  gap: 7px;
}

.link-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-copy code {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  color: #344054;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-panel {
  border-color: rgba(47, 93, 140, 0.22);
}

.quick-panel {
  border-color: rgba(50, 110, 87, 0.24);
  background: #fbfefd;
}

.next-step-panel {
  border-color: rgba(122, 31, 61, 0.24);
  background: #fffafb;
}

.next-step-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.next-step-content h2,
.next-step-content p {
  margin: 0;
}

.next-step-content h2 {
  font-size: 1.25rem;
}

.next-step-content p:not(.eyebrow) {
  margin-top: 6px;
  color: #475467;
  line-height: 1.45;
}

.progress-note {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  border: 1px solid rgba(177, 107, 24, 0.26);
  border-radius: 8px;
  background: #fff8ea;
  padding: 12px 14px;
  color: #5f4218;
}

.progress-note.complete {
  border-color: rgba(50, 110, 87, 0.24);
  background: #edf8f1;
  color: #275844;
}

.progress-note strong,
.progress-note span {
  line-height: 1.35;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-tile {
  display: grid;
  gap: 6px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.status-tile span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-tile strong {
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
}

.status-tile small {
  color: #475467;
  line-height: 1.35;
}

.leader-recommendation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.recommendation-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(122, 31, 61, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.recommendation-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.recommendation-card strong {
  color: var(--ink);
  line-height: 1.25;
}

.recommendation-card small {
  color: #475467;
  line-height: 1.35;
}

.bottle-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

.bottle-table th,
.bottle-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  text-align: left;
  vertical-align: top;
}

.bottle-table th {
  color: #344054;
  font-size: 0.86rem;
}

.bottle-table tr:last-child td {
  border-bottom: 0;
}

.comments {
  display: grid;
  gap: 12px;
}

.comment {
  border-left: 4px solid rgba(122, 31, 61, 0.25);
  padding: 2px 0 2px 12px;
}

.comment p {
  margin: 4px 0 0;
  color: #344054;
  line-height: 1.45;
  white-space: pre-wrap;
}

.identity-wrap,
.loading-view,
.empty-state {
  width: min(720px, calc(100% - 32px));
  margin: 72px auto;
}

.identity-panel {
  display: grid;
  gap: 14px;
}

.known-people {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.known-people-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loading-view,
.empty-state {
  text-align: center;
}

.loading-view .brand-mark {
  margin: 0 auto 14px;
}

.empty-state p {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .hero,
  .workspace,
  .past-list,
  .decision-band.archive-band,
  .status-grid,
  .leader-recommendation,
  .quick-actions,
  .next-step-content {
    grid-template-columns: 1fr;
  }

  .hero {
    background-position: center right;
  }

  .brand h1 {
    font-size: 1.75rem;
  }

  .hero h2 {
    font-size: 2.6rem;
  }

  .hero-copy {
    min-height: 280px;
  }

  .side-stack {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar,
  .brand,
  .panel-header,
  .item-head,
  .calendar-head {
    align-items: flex-start;
  }

  .topbar,
  .panel-header,
  .item-head,
  .calendar-head {
    flex-direction: column;
  }

  .top-actions,
  .button-row,
  .vote-controls,
  .availability-controls,
  .attendance-controls,
  .calendar-nav,
  .share-actions,
  .known-people-list {
    width: 100%;
  }

  .btn,
  .vote-button,
  .choice-button,
  .calendar-nav .btn,
  .share-actions .btn,
  .known-people-list .choice-button {
    width: 100%;
  }

  .calendar-day,
  .calendar-empty {
    min-height: 44px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .hero {
    padding: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 54%, rgba(255, 255, 255, 0.4) 100%),
      url("./assets/wine-tasting-table.png");
    background-position: center bottom;
    background-size: cover;
  }

  .hero-copy {
    min-height: 390px;
    justify-content: flex-start;
    padding-right: 0;
  }

  .brand h1 {
    font-size: 1.45rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1.02rem;
  }

  .decision-band,
  .two-column,
  .link-copy,
  .bulk-action-buttons,
  .availability-breakdown,
  .past-list,
  .decision-band.archive-band,
  .status-grid,
  .quick-actions,
  .next-step-content {
    grid-template-columns: 1fr;
  }

  .next-step-content .btn {
    width: 100%;
  }

  .panel,
  .create-panel,
  .identity-panel,
  .section-band {
    padding: 16px;
  }

  .bottle-table,
  .bottle-table thead,
  .bottle-table tbody,
  .bottle-table tr,
  .bottle-table td {
    display: block;
    width: 100%;
  }

  .bottle-table thead {
    display: none;
  }

  .bottle-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
  }

  .bottle-table td {
    border-bottom: 0;
    padding: 8px 0;
  }

  .bottle-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .toast {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }
}
/* NY Nebbiolo Group: ink, claret, and crisp paper. */
:root{--ink:#24232a;--muted:#68656c;--line:#e4e0e3;--paper:#f6f5f7;--wine:#721f3d;--wine-deep:#50132b;--leaf:#286349;--shadow:0 12px 36px #20132208;font-family:"Segoe UI",system-ui,sans-serif;font-size:16px}
body{background:var(--paper)}
.page{width:min(1240px,calc(100% - 64px));padding:0 0 60px}
.masthead{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:30px;gap:20px}
.masthead a{font-family:Georgia,serif;color:var(--wine-deep);font-size:27px;text-decoration:none;letter-spacing:-1px}.masthead i{font-weight:normal;color:#a17742}.masthead span{font-size:12px;letter-spacing:2px;color:var(--muted)}
.hero{grid-template-columns:minmax(0,.9fr) minmax(400px,1fr);padding:0;gap:0;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;box-shadow:var(--shadow);align-items:stretch}
.hero-copy{min-height:620px;justify-content:flex-start;padding:52px 38px;background:linear-gradient(180deg,#331527f5 0%,#331527e8 43%,#33152730 100%),url('./assets/wine-tasting-table.png') center/cover;color:white}
.hero-copy .eyebrow{color:#e2bb83;letter-spacing:2px;font-size:12px}.hero-copy h2{font-family:Georgia,serif;font-size:clamp(38px,4vw,57px);font-weight:400;line-height:1.08;letter-spacing:-1.6px;max-width:450px;margin:24px 0}.hero-copy p:not(.eyebrow){color:#f0e5eb;font-size:18px;line-height:1.7;max-width:320px}
.create-panel{padding:36px 40px;background:#fff;border:0;box-shadow:none;border-radius:0}.create-panel h3{font-family:Georgia,serif;font-size:32px;font-weight:400;margin:0 0 8px}.create-panel .eyebrow{margin:0;letter-spacing:1.5px;font-size:12px}
.control,.select,textarea{border-radius:9px;min-height:46px;border-color:#d6cfd4;background:#fff}.control:focus,.select:focus,textarea:focus{outline:3px solid #721f3d22;border-color:var(--wine)}
.field>span{font-size:14px;font-weight:600}.form-grid{gap:17px}.hint{line-height:1.6;font-size:14px}
.btn{border-radius:9px;min-height:44px;font-weight:600;transition:background .15s,transform .15s}.btn.primary{background:var(--wine);border-color:var(--wine);box-shadow:0 4px 12px #721f3d16}.btn.primary:hover{background:var(--wine-deep);transform:translateY(-1px)}.btn.secondary{background:#fff;color:var(--wine);border-color:#d7cbd1}
.topbar{margin:10px 0 24px}.brand h1{font-family:Georgia,serif;font-weight:400;font-size:34px;letter-spacing:-.7px}.brand-mark{border-radius:50%;font-family:Georgia,serif;font-size:28px;font-weight:400;background:var(--wine-deep)}
.workspace{grid-template-columns:minmax(0,1fr) 340px;gap:24px}.main-stack,.side-stack{gap:20px}.panel{border-radius:14px;box-shadow:var(--shadow);padding:26px;border:1px solid var(--line)}.panel h2{font-family:Georgia,serif;font-size:26px;font-weight:400;letter-spacing:-.4px}.panel-header p{font-size:15px;line-height:1.6}.panel-header{margin-bottom:22px}
.jump-nav{gap:22px;border-bottom:1px solid var(--line);padding-bottom:14px}.jump-nav a{background:transparent;border:0;border-radius:0;padding:6px 0;font-weight:600;color:var(--wine);font-size:14px}
.item{padding:20px;border-radius:11px;border:1px solid var(--line);box-shadow:none;background:#fff}.item-title{font-size:19px;font-weight:650}.item-meta{font-size:13px;margin-top:5px}.count-row{gap:7px}.count-pill{font-size:12px;font-weight:600;padding:5px 9px}.personal-status{background:transparent;padding:0;margin:14px 0 8px;font-size:14px}.availability-controls{display:grid;grid-template-columns:1.3fr 1fr 1.3fr;gap:8px}.choice-button{min-height:44px;border-radius:8px;font-size:14px;font-weight:600}.choice-button:not(.active){background:white}.choice-button.available.active{background:#286349;color:#fff;border-color:#286349}.choice-button.maybe.active{background:#805412;color:white;border-color:#805412}.choice-button.unavailable.active{background:#863a43;color:white;border-color:#863a43}
.optional-panel{border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden}.optional-panel>summary{padding:19px 24px;font-size:16px;font-weight:600;cursor:pointer}.optional-panel .panel{border:0;box-shadow:none}.guest-breakdown{margin:13px 0}.guest-breakdown summary,.bulk-disclosure summary,.add-dates summary{cursor:pointer;font-size:14px;color:var(--wine);padding:10px 0}.add-dates{border-top:1px solid var(--line);margin-top:20px;padding-top:8px}.add-dates form{margin-top:15px}.bulk-disclosure{margin:16px 0}.bulk-actions{margin:0}.progress-note{border-radius:9px;font-size:14px}.leader-panel{background:#fdfbfc;border-top:3px solid var(--wine)}
.matrix-scroll{overflow-x:auto;margin:22px 0;border:1px solid var(--line);border-radius:9px}.availability-matrix{border-collapse:collapse;width:100%;font-size:14px;text-align:center}.availability-matrix caption{text-align:left;padding:14px 16px;font-weight:600;background:#faf8fa}.availability-matrix th,.availability-matrix td{padding:12px;border-top:1px solid var(--line);white-space:nowrap}.availability-matrix th:first-child{text-align:left;position:sticky;left:0;background:white;z-index:1}.availability-matrix th{font-weight:600}.availability-matrix small{font-weight:400;color:var(--muted)}.matrix-answer{display:inline-block;padding:4px 9px;border-radius:5px;font-size:12px;min-width:45px}.matrix-answer.available{background:#e2f0e8;color:#1c573d}.matrix-answer.maybe{background:#fbefcf;color:#795015}.matrix-answer.unavailable{background:#f6e4e7;color:#873441}.matrix-answer.pending{color:#8d858c}
.recent-polls{margin-top:26px}.recent-polls .btn{margin-top:8px}.demo-banner{background:#eeeaf2;border:1px solid #ddd6e5;color:#53465f;border-radius:8px;padding:10px 16px;font-size:13px;margin-bottom:20px}.identity-wrap{max-width:620px;padding-top:60px}.identity-panel{border-radius:18px;padding:34px;box-shadow:var(--shadow)}
summary:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #9c6287;outline-offset:3px}button:disabled{transform:none}.toast{border-radius:10px}.calendar-day{min-height:42px}.calendar{border-radius:10px}.empty-state{font-size:14px}html{scroll-behavior:smooth;scroll-padding-top:20px}
@media(max-width:960px){.workspace{grid-template-columns:minmax(0,1fr)}.side-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.hero-copy{padding:36px 25px}.create-panel{padding:28px}.hero{grid-template-columns:minmax(0,.8fr) minmax(350px,1fr)}}
@media(max-width:700px){.page{width:calc(100% - 28px)}.masthead{height:72px;margin-bottom:20px}.masthead a{font-size:24px}.masthead span{display:none}.hero{grid-template-columns:1fr}.hero-copy{min-height:0;padding:28px;background-position:center 55%}.hero-copy h2{font-size:36px;margin:10px 0}.hero-copy p:not(.eyebrow){font-size:15px;max-width:none;margin-bottom:0}.hero-copy .eyebrow{display:none}.create-panel{padding:25px 22px}.panel{padding:20px}.side-stack{display:flex;flex-direction:column}.side-stack>.panel{width:100%}.brand h1{font-size:27px}.topbar{align-items:flex-start;flex-direction:column}.top-actions{justify-content:flex-start}.availability-controls{gap:5px}.choice-button{font-size:13px;padding:10px 5px}.item{padding:15px}.count-row{gap:4px}.count-pill{padding:4px 7px}.matrix-scroll{margin:18px -4px}.identity-wrap{padding:28px 14px}.identity-panel{padding:24px}.hero-copy br{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

.hero .hero-copy h2{color:#fff}.hero .hero-copy>p:not(.eyebrow){color:#f0e5eb}

.side-stack .two-column{grid-template-columns:1fr}.side-stack .leader-recommendation{grid-template-columns:1fr}

.hero.scheduling-create{display:block;width:min(100%,680px);margin-inline:auto;background:#fff}.scheduling-create .create-panel{width:100%}.scheduling-create #create-title{font-family:Georgia,serif;font-size:30px;font-weight:400;line-height:1.2;letter-spacing:-.5px;margin:0 0 12px}

/* Contain wide availability tables inside the phone viewport. */
html,body{width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.workspace,.main-stack,.side-stack,.panel,.item,.topbar,.brand,.brand>div,.links-box,.link-line,.link-copy{min-width:0;max-width:100%}
.matrix-scroll{width:100%;max-width:100%;min-width:0;overscroll-behavior-x:contain}
.control,.select,textarea{max-width:100%;min-width:0}
.item-title,.brand h1,.comment p,.decision-item strong{overflow-wrap:anywhere}
.delete-panel .btn{margin-top:16px}
@media(max-width:700px){
  .page{width:calc(100% - 24px);padding-top:12px}.workspace{display:flex;flex-direction:column;width:100%}.main-stack,.side-stack{width:100%}.panel{padding:18px}.panel h2{font-size:25px}.panel-header p,.hint{font-size:14px}.item-title{font-size:18px}.control,.select,textarea{font-size:16px}.top-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}.top-actions .status-chip{grid-column:1/-1;justify-self:start}.brand h1{font-size:27px}.matrix-scroll{margin:18px 0}.availability-matrix{font-size:14px}.availability-matrix th,.availability-matrix td{padding:10px}.availability-controls .choice-button{font-size:14px;min-height:46px}.calendar-head{flex-direction:row;flex-wrap:wrap}.calendar-nav{width:auto}.calendar-nav .btn{width:auto}.two-column{grid-template-columns:1fr}.personal-status{flex-wrap:wrap}.count-row{flex-wrap:wrap}.count-pill{font-size:13px}.link-copy{display:flex;flex-wrap:wrap}.link-copy code{overflow-wrap:anywhere;word-break:break-all;min-width:0}.btn{min-height:44px}.matrix-scroll::after{content:'Swipe to see more dates';display:block;font-size:13px;color:var(--muted);padding:10px}.availability-matrix caption{font-size:14px}
}
