@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap");

:root {
  color-scheme: light;
  --bg: hsl(210 20% 98%);
  --panel: hsl(0 0% 100%);
  --panel-soft: hsl(210 18% 96%);
  --ink: hsl(227 15% 35%);
  --ink-strong: hsl(215 43% 18%);
  --muted: hsl(227 10% 50%);
  --line: hsl(210 20% 88%);
  --border: var(--line);
  --navy: hsl(215 43% 18%);
  --slate: hsl(231 20% 26%);
  --slate-light: hsl(227 15% 45%);
  --teal: hsl(153 50% 57%);
  --teal-strong: hsl(160 52% 40%);
  --teal-light: hsl(142 88% 68%);
  --success: hsl(151 55% 33%);
  --success-bg: hsl(151 60% 93%);
  --warning: hsl(36 90% 35%);
  --warning-bg: hsl(42 100% 93%);
  --danger: hsl(4 74% 42%);
  --danger-bg: hsl(7 90% 96%);
  --purple: hsl(262 54% 48%);
  --purple-bg: hsl(262 72% 96%);
  --shadow-sm: 0 1px 2px hsl(227 15% 35% / 0.06);
  --shadow: 0 10px 15px -3px hsl(227 15% 35% / 0.10), 0 4px 6px -4px hsl(227 15% 35% / 0.10);
  --shadow-lg: 0 24px 50px -24px hsl(215 43% 18% / 0.38);
  --shadow-accent: 0 12px 28px hsl(153 50% 57% / 0.22);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, hsl(153 50% 57% / 0.11), transparent 30rem),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 45%, #eef3f5 100%);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 32px;
  background: hsl(0 0% 100% / 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: min(260px, 46vw);
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

nav a:hover {
  background: hsl(153 50% 57% / 0.14);
  color: var(--navy);
}

.logout-form {
  margin: 0;
}

.logout-form button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--navy);
  background: white;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  white-space: nowrap;
}

.logout-form button:hover {
  border-color: hsl(153 50% 57% / 0.55);
  background: hsl(153 50% 57% / 0.12);
}

.login-shell {
  min-height: calc(100svh - 132px);
  display: grid;
  place-items: start center;
  padding: clamp(24px, 7vh, 64px) 16px 36px;
}

.login-panel {
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.login-page .topbar {
  position: relative;
  grid-template-columns: 1fr;
  justify-content: center;
  padding: 18px 24px;
}

.login-page .brand {
  justify-content: center;
  min-width: 0;
}

.login-page .brand-logo {
  width: min(260px, 82vw);
  height: 86px;
  object-position: center;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-logo-wrap img {
  max-width: 250px;
  height: auto;
}

.login-panel h1 {
  margin: 0 0 6px;
  color: var(--navy);
  text-align: center;
}

.login-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  text-align: center;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
}

.page {
  width: min(1250px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid hsl(215 36% 28%);
  border-radius: 18px;
  background:
    linear-gradient(110deg, hsl(215 43% 18% / 0.96) 0%, hsl(231 20% 26% / 0.92) 53%, hsl(215 43% 18% / 0.68) 100%),
    url("/static/img/pcc-hero-wallet-cash.webp") right center / min(52%, 560px) auto no-repeat,
    linear-gradient(135deg, var(--navy), var(--slate));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -22% 52%;
  height: 220px;
  border-radius: 999px;
  background: hsl(153 50% 57% / 0.20);
  filter: blur(42px);
  pointer-events: none;
}

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

.hero h1,
.page-title h1 {
  margin: 0;
  max-width: 680px;
  color: inherit;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 6px 12px;
  border: 1px solid hsl(153 50% 57% / 0.42);
  border-radius: 999px;
  background: hsl(153 50% 57% / 0.12);
  color: var(--teal-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-metric {
  align-self: stretch;
  min-width: 185px;
  padding: 20px;
  border: 1px solid hsl(153 50% 57% / 0.30);
  border-radius: var(--radius);
  background: hsl(0 0% 100% / 0.94);
  color: var(--navy);
  box-shadow: var(--shadow-accent);
}

.hero-metric span,
.hero-metric small,
.page-title p,
small {
  color: var(--muted);
}

.hero-metric span,
.ops-table th {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-metric strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--navy);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.panel,
.attendee-card,
.empty-state {
  background: hsl(0 0% 100% / 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel::before,
.attendee-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}

.success {
  color: var(--success);
}

.warning {
  color: var(--warning);
}

.danger,
.over {
  color: var(--danger);
}

.purple {
  color: var(--purple);
}

.muted,
.muted-line {
  color: var(--muted);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  margin: 18px 0;
}

.panel.warning-panel::before {
  background: var(--warning);
}

.panel h2,
.attendee-card h2,
.table-card h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0;
}

.panel-heading,
.attendee-main,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-summary {
  margin-top: 0;
}

.dashboard-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: 22px 0;
}

.checkin-dialog,
.dashboard-summary {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.panel.checkin-dialog {
  overflow: visible;
}

.dialog-picker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
}

.dialog-picker label,
.dialog-form label {
  box-shadow: none;
}

.dialog-picker label {
  gap: 6px;
}

.dialog-picker label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.attendee-picker-field {
  min-width: 0;
}

.attendee-search-field {
  min-width: 0;
}

.attendee-search-input {
  height: 48px;
  border-color: hsl(216 18% 78%);
  background:
    linear-gradient(180deg, #fff, hsl(210 22% 97%));
  color: var(--navy);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.9), 0 8px 18px hsl(215 43% 18% / 0.08);
}

.attendee-search-input:focus {
  border-color: var(--teal);
  outline: 3px solid hsl(153 50% 57% / 0.18);
}

.attendee-picker {
  position: relative;
  min-width: 0;
}

.attendee-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid hsl(216 18% 78%);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #fff, hsl(210 22% 97%));
  color: var(--navy);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.9), 0 8px 18px hsl(215 43% 18% / 0.08);
  cursor: pointer;
  list-style: none;
}

.attendee-picker-trigger::-webkit-details-marker {
  display: none;
}

.attendee-picker-trigger::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--teal-strong);
  border-bottom: 2px solid var(--teal-strong);
  transform: translateY(-65%) rotate(45deg);
}

.attendee-picker[open] .attendee-picker-trigger {
  border-color: var(--teal);
  outline: 3px solid hsl(153 50% 57% / 0.18);
}

.attendee-picker-trigger > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.attendee-picker-trigger strong,
.attendee-picker-trigger small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-picker-trigger strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.attendee-picker-trigger small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.attendee-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 330px;
  overflow: auto;
  padding: 8px;
  border: 1px solid hsl(216 18% 78%);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.9), 0 8px 18px hsl(215 43% 18% / 0.08);
}

.attendee-search-results {
  grid-column: 1 / -1;
  display: grid;
  max-height: 275px;
  overflow: auto;
  padding: 8px;
  border: 1px solid hsl(216 18% 78%);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.9), 0 8px 18px hsl(215 43% 18% / 0.08);
}

.attendee-search-results.is-empty::before {
  content: "No matching attendees";
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.attendee-search-result[hidden] {
  display: none;
}

.attendee-option {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.attendee-option:hover,
.attendee-option.selected,
.attendee-option.top-result {
  border-color: hsl(153 50% 57% / 0.35);
  background: hsl(153 50% 57% / 0.11);
}

.attendee-option strong {
  font-size: 13px;
  font-weight: 900;
}

.attendee-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dialog-picker .button {
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.dialog-person {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, hsl(210 20% 98%));
}

.dialog-person.is-canceled {
  border-color: hsl(4 74% 68%);
  background: var(--danger-bg);
}

.dialog-person h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
}

.dialog-person p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.person-subline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  max-width: 100%;
  color: var(--muted);
  font-weight: 800;
}

.person-subline span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialog-info {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.dialog-info dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dialog-info dd {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

.dialog-form {
  display: grid;
  gap: 12px;
}

.modal-field-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dialog-form textarea {
  min-height: 74px;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.verify-grid > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.verify-grid .verify-wide {
  grid-column: 1 / -1;
}

.verify-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.verify-grid strong {
  color: var(--navy);
  font-weight: 900;
}

.verification-list {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.verification-list div {
  display: contents;
}

.verification-list dt,
.verification-list dd {
  min-height: 38px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.verification-list dt {
  background: hsl(210 18% 96%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.verification-list dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.verification-list div:last-child dt,
.verification-list div:last-child dd {
  border-bottom: 0;
}

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

.checkin-dialog > .dialog-form {
  margin-top: auto;
}

.edit-modal {
  width: min(840px, calc(100vw - 28px));
  max-height: min(82vh, 820px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
}

.edit-modal::backdrop {
  background: hsl(225 32% 12% / 0.48);
  backdrop-filter: blur(5px);
}

.modal-shell {
  display: grid;
  gap: 16px;
  max-height: min(82vh, 820px);
  overflow: auto;
  padding: 22px;
  border: 1px solid hsl(216 18% 84%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px hsl(225 32% 12% / 0.28);
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions .button {
  flex: 0 0 auto;
}

.dietary-choice-panel {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.dietary-choice-panel legend {
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 900;
}

.dietary-choice-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.dietary-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.dietary-choice:last-child {
  border-bottom: 0;
}

.dietary-choice:hover,
.dietary-choice:has(input:checked) {
  background: hsl(153 50% 57% / 0.10);
}

.dietary-choice input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--teal-strong);
}

.dietary-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dietary-choice strong {
  color: var(--navy);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.dietary-choice.custom-current {
  grid-template-columns: 22px 130px minmax(0, 1fr);
  background: var(--purple-bg);
}

.modal-heading h2,
.modal-heading p {
  margin: 0;
}

.modal-heading p {
  color: var(--muted);
  font-weight: 800;
}

.icon-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.danger-button {
  background: linear-gradient(135deg, hsl(4 74% 34%), var(--danger));
}

.danger-button:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 20px hsl(4 74% 42% / 0.22);
}

.party-button {
  background: linear-gradient(135deg, var(--teal-strong), var(--teal));
  color: var(--navy);
}

.party-button:hover {
  background: linear-gradient(135deg, var(--navy), var(--slate));
  color: #fff;
}

.snapshot-table {
  width: 100%;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  background: #fff;
}

.snapshot-table th,
.snapshot-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.snapshot-table th {
  width: 68%;
  background: hsl(210 18% 96%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.snapshot-table td {
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  text-align: right;
}

.snapshot-table tr:last-child th,
.snapshot-table tr:last-child td {
  border-bottom: 0;
}

.summary-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, hsl(210 20% 98%));
}

.summary-stat {
  min-height: 112px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-stat span {
  display: block;
  min-height: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.summary-stat strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.summary-stat.success strong {
  color: var(--success);
}

.summary-stat.warning strong {
  color: var(--warning);
}

.summary-stat.danger strong {
  color: var(--danger);
}

.summary-stat.purple strong {
  color: var(--purple);
}

.summary-stat.muted strong {
  color: var(--slate-light);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  color: white;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 20px hsl(215 43% 18% / 0.18);
  cursor: pointer;
}

.button:hover {
  background: linear-gradient(135deg, var(--teal-strong), var(--teal));
  color: var(--navy);
  box-shadow: var(--shadow-accent);
}

.button.danger-button,
.checkin-dialog > .dialog-form .button.danger-button {
  border-color: transparent;
  background: linear-gradient(135deg, hsl(4 74% 34%), var(--danger));
  color: #fff;
  box-shadow: 0 10px 20px hsl(4 74% 42% / 0.22);
}

.button.danger-button:hover,
.checkin-dialog > .dialog-form .button.danger-button:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 12px 24px hsl(4 74% 42% / 0.28);
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.button.ghost:hover {
  border-color: hsl(153 50% 57% / 0.55);
  background: hsl(153 50% 57% / 0.12);
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.table-editor-toolbar {
  position: sticky;
  top: 96px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: hsl(0 0% 100% / 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.table-editor-toolbar div {
  display: grid;
  gap: 2px;
}

.table-editor-toolbar strong {
  color: var(--navy);
  font-weight: 900;
}

.table-editor-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table-editor-toolbar .danger {
  color: var(--danger);
}

.table-editor-toolbar .button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.table-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}

.table-panel-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
  margin-top: 6px;
}

.table-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.table-view-card {
  padding: 12px;
}

.table-card-heading {
  display: grid;
  gap: 2px;
}

.table-card-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.table-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.table-view-card.over-capacity {
  border-color: hsl(4 74% 55%);
  background: hsl(4 86% 97%);
  box-shadow: 0 0 0 3px hsl(4 74% 55% / 0.16);
}

.table-view-card.over-capacity .table-card-heading h2 {
  color: var(--danger);
}

.table-view-card.over-capacity .table-count {
  color: var(--danger);
}

.table-view-card.over-capacity .seat-card {
  border-color: hsl(4 74% 72%);
  background: #fff;
}

.table-member-list {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.table-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  outline: 0 solid transparent;
  outline-offset: 0;
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--navy);
  font-weight: 900;
  transition: border-color 160ms ease, box-shadow 160ms ease, outline-width 160ms ease;
}

.dashboard-seat-list {
  gap: 8px;
}

.table-seat {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 54px;
}

.seat-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.seat-person {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.seat-person strong,
.seat-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-person small {
  color: var(--muted);
  font-size: 12px;
}

.empty-seat {
  border-style: dashed;
  color: var(--muted);
}

.empty-seat .seat-person strong {
  color: var(--muted);
}

.table-member:hover {
  border-color: hsl(153 50% 57% / 0.55);
  background: hsl(153 50% 57% / 0.11);
}

.table-member em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.table-member.is-checked-in {
  border-color: var(--teal);
  outline: 4px solid hsl(153 50% 57% / 0.26);
  background: #fff;
  box-shadow: 0 0 0 4px hsl(153 50% 57% / 0.10);
}

.table-member.is-checked-in em {
  color: var(--success);
  font-weight: 900;
}

.table-member.is-checked-in.has-dietary {
  border-color: var(--purple);
  outline-color: hsl(262 54% 48% / 0.28);
  box-shadow: 0 0 0 4px hsl(262 54% 48% / 0.10);
}

.table-member.is-checked-in.has-dietary em {
  color: var(--purple);
}

.table-member.is-canceled,
.table-member.is-canceled.is-checked-in,
.table-member.is-canceled.is-checked-in.has-dietary,
.seat-list li.is-canceled,
.seat-list li.is-canceled.is-checked-in,
.seat-list li.is-canceled.is-checked-in.has-dietary {
  border-color: hsl(4 74% 62%);
  outline-color: hsl(4 74% 42% / 0.16);
  background: var(--danger-bg);
  color: var(--danger);
  box-shadow: none;
}

.table-member.is-canceled:hover {
  border-color: hsl(4 74% 52%);
  background: hsl(7 90% 94%);
}

.table-member.is-canceled .seat-number {
  background: #fff;
  color: var(--danger);
}

.table-member.is-canceled .seat-person strong,
.table-member.is-canceled .seat-person small,
.seat-list li.is-canceled .seat-name,
.seat-list li.is-canceled .seat-title,
.seat-list li.is-canceled .seat-meta strong,
.seat-list li.is-canceled .seat-meta em {
  color: var(--danger);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pill.success,
.status-yes {
  background: var(--success-bg);
  color: var(--success);
}

.pill.warning,
.status-needs-review,
.status-maybe {
  background: var(--warning-bg);
  color: var(--warning);
}

.pill.danger,
.status-no {
  background: var(--danger-bg);
  color: var(--danger);
}

.pill.purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.status-unknown {
  background: var(--panel-soft);
  color: var(--muted);
}

.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.page-title h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.page-title p {
  margin: 0;
  font-weight: 700;
}

.filterbar {
  position: sticky;
  top: 111px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 170px)) auto;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
  background: hsl(0 0% 100% / 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid hsl(153 50% 57% / 0.22);
  border-color: var(--teal);
}

input::placeholder {
  color: hsl(227 10% 60%);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

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

.attendee-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.checkin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(430px, 2fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px 14px 18px;
}

.attendee-card.needs-review {
  border-color: hsl(36 90% 72%);
}

.attendee-card.needs-review::before {
  background: var(--warning);
}

.attendee-main p,
.attendee-identity p,
.review-card p,
.table-card p {
  margin: 0;
  color: var(--muted);
}

.attendee-identity {
  min-width: 0;
}

.attendee-identity h2 {
  overflow: hidden;
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-identity p {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.attendee-meta,
.attendee-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.attendee-meta {
  margin: 16px 0;
}

.attendee-meta span,
.attendee-inline span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.attendee-inline .pill {
  min-width: 82px;
}

.checkin-actions {
  justify-content: flex-end;
  min-width: 245px;
}

.review-chip {
  max-width: 280px;
  overflow: hidden;
  border-color: hsl(36 90% 72%) !important;
  background: var(--warning-bg) !important;
  color: var(--warning);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dietary-warning {
  border-color: hsl(262 54% 80%) !important;
  background: var(--purple-bg) !important;
  color: var(--purple);
}

.review-line {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: start;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 900;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal-strong);
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.snapshot {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.snapshot dt {
  color: var(--muted);
  font-weight: 900;
}

.snapshot dd {
  margin: 0;
}

.ops-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

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

.ops-table th {
  color: var(--slate);
}

.ops-table tbody tr:hover {
  background: hsl(153 50% 57% / 0.08);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 900;
}

.dietary-key {
  margin-bottom: 16px;
}

.dietary-key .chip {
  background: var(--purple-bg);
  color: var(--purple);
}

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

.dietary-options-panel,
.dietary-attendees-panel {
  margin-top: 0;
}

.dietary-options-table th {
  width: 100%;
}

.dietary-options-table td {
  width: 1%;
  padding-left: 0;
}

.dietary-attendee-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.dietary-attendee-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dietary-person-block {
  display: grid;
  gap: 4px;
}

.dietary-person-name {
  width: fit-content;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.dietary-person-name:hover {
  color: var(--teal-strong);
  text-decoration: underline;
}

.dietary-card-facts {
  margin: 0;
  grid-template-columns: minmax(128px, 0.42fr) minmax(0, 1fr);
}

.dietary-card-facts dt,
.dietary-card-facts dd {
  min-height: 34px;
  padding: 9px 10px;
}

.seat-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 5px;
}

.seat-list li {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  outline: 0 solid transparent;
  outline-offset: 0;
  border-radius: 10px;
  background: var(--panel-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, outline-width 160ms ease;
}

.compact-seat-list {
  min-height: 34px;
}

.seat-card {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  cursor: grab;
}

.seat-card.dragging {
  opacity: 0.5;
}

.drag-handle {
  grid-row: 1 / span 3;
  width: 20px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: hsl(215 14% 62%);
  font-weight: 900;
  cursor: grab;
}

.seat-list a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.seat-list span,
.seat-list em {
  color: var(--muted);
}

.seat-title {
  grid-column: 2;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-list strong {
  display: inline-flex;
  margin-right: 8px;
  font-size: 10px;
  color: var(--purple);
}

.seat-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 14px;
  font-size: 10px;
}

.empty-drop-note {
  min-height: 34px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.seat-list li.is-checked-in {
  border-color: var(--teal);
  outline: 3px solid hsl(153 50% 57% / 0.26);
  background: #fff;
  box-shadow: 0 0 0 3px hsl(153 50% 57% / 0.10);
}

.seat-list li.is-checked-in em {
  color: var(--success);
  font-weight: 900;
}

.seat-list li.is-checked-in.has-dietary {
  border-color: var(--purple);
  outline-color: hsl(262 54% 48% / 0.28);
  box-shadow: 0 0 0 3px hsl(262 54% 48% / 0.10);
}

.seat-list li.is-checked-in.has-dietary em {
  color: var(--purple);
}

blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
}

.resolve-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.flash-wrap {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.flash {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.flash.success {
  border-color: hsl(153 50% 57% / 0.55);
  background: hsl(151 60% 95%);
  color: var(--success);
}

.flash.error {
  border-color: hsl(4 74% 70%);
  background: var(--danger-bg);
  color: var(--danger);
}

.file-list {
  padding-left: 18px;
}

.generated {
  color: var(--success);
  font-weight: 900;
}

.settings-form {
  display: grid;
  gap: 18px;
}

.settings-section h2 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.settings-section h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.section-note {
  margin-top: -2px;
  color: var(--muted);
  font-weight: 700;
}

.exports-settings {
  margin-top: 22px;
}

.exports-settings .action-grid {
  margin-bottom: 18px;
}

.exports-settings .detail-layout {
  margin-top: 10px;
}

.export-action {
  display: grid;
  align-content: space-between;
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, hsl(210 20% 98%));
}

.export-action p {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 780px;
}

.settings-grid small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

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

.settings-grid label span {
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.sticky-actions {
  position: sticky;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: hsl(0 0% 100% / 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.test-result {
  border-width: 2px;
}

.test-ok {
  border-color: hsl(153 50% 57% / 0.65);
  background: hsl(151 60% 96%);
}

.test-failed {
  border-color: hsl(4 74% 72%);
  background: var(--danger-bg);
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--navy);
}

@media (max-width: 980px) {
  .dashboard-ops-grid {
    grid-template-columns: 1fr;
  }

  .dietary-layout {
    grid-template-columns: 1fr;
  }

  .summary-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkin-row {
    grid-template-columns: minmax(200px, 1fr);
  }

  .checkin-actions {
    justify-content: flex-start;
    min-width: 0;
  }

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

  .filterbar .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .hero,
  .page-title,
  .panel-heading,
  .attendee-main,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: minmax(160px, auto) minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 18px;
  }

  nav {
    justify-content: flex-end;
  }

  .filterbar,
  .detail-layout,
  .resolve-form {
    grid-template-columns: 1fr;
  }

  .filterbar {
    top: 154px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: min(220px, 36vw);
    height: 68px;
  }

  .logout-form button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    background:
      linear-gradient(135deg, hsl(215 43% 18% / 0.96), hsl(231 20% 26% / 0.92)),
      url("/static/img/pcc-hero-wallet-cash.webp") center / cover no-repeat;
  }

  .hero-metric {
    align-self: start;
  }
}

@media (max-width: 700px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .brand-logo {
    width: min(198px, 62vw);
    height: 58px;
  }

  nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  body {
    background:
      linear-gradient(180deg, #fbfcfd 0%, var(--bg) 48%, #eef3f5 100%);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    overflow: visible;
    padding:
      calc(8px + env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      10px
      max(12px, env(safe-area-inset-left));
  }

  .brand,
  nav,
  .logout-form {
    max-width: 100%;
  }

  .brand-logo {
    width: min(184px, 58vw);
    height: 54px;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }

  nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 4px;
    font-size: 11px;
    text-align: center;
  }

  .logout-form,
  .logout-form button {
    width: 100%;
  }

  .logout-form button {
    min-height: 38px;
    padding: 8px 4px;
    font-size: 11px;
  }

  .page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    padding:
      14px
      max(10px, env(safe-area-inset-right))
      calc(38px + env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .page-title {
    gap: 8px;
    margin-bottom: 12px;
  }

  .page-title h1 {
    font-size: clamp(28px, 9vw, 34px);
    line-height: 1.05;
  }

  .page-title p {
    font-size: 14px;
    line-height: 1.35;
  }

  .panel,
  .attendee-card,
  .empty-state {
    border-radius: 10px;
  }

  .panel {
    padding: 14px;
    margin: 12px 0;
  }

  .panel-heading .button {
    width: 100%;
  }

  .dashboard-ops-grid {
    gap: 12px;
    margin: 12px 0;
  }

  .dialog-picker {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
  }

  .dialog-picker .button,
  .attendee-picker-trigger {
    width: 100%;
    height: 50px;
  }

  .attendee-menu {
    max-height: min(52vh, 420px);
    border-radius: 10px;
  }

  .attendee-option {
    min-height: 48px;
  }

  .dialog-person {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .dialog-person h3 {
    font-size: 21px;
  }

  .person-subline {
    display: grid;
    gap: 3px;
    font-size: 13px;
  }

  .verification-list {
    grid-template-columns: minmax(104px, 0.45fr) minmax(0, 1fr);
    margin: 12px 0;
  }

  .verification-list dt,
  .verification-list dd {
    min-height: 34px;
    padding: 9px 10px;
  }

  .verification-list dt {
    font-size: 10px;
  }

  .verification-list dd {
    font-size: 14px;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .checkin-dialog > .dialog-form .dialog-actions {
    grid-template-columns: 1fr;
  }

  .dialog-actions .button {
    width: 100%;
    min-height: 48px;
    padding-inline: 10px;
    white-space: normal;
  }

  .edit-modal {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }

  .modal-shell {
    max-height: calc(100dvh - 18px);
    padding: 14px;
  }

  .modal-heading,
  .modal-actions {
    align-items: stretch;
  }

  .modal-actions {
    display: flex;
    justify-content: flex-end;
  }

  .modal-actions .button {
    width: auto;
  }

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

  .snapshot-table {
    margin-top: 12px;
  }

  .dietary-attendee-card {
    padding: 12px;
  }

  .snapshot-table th,
  .snapshot-table td {
    padding: 10px;
  }

  .snapshot-table th {
    width: 62%;
    font-size: 10px;
  }

  .snapshot-table td {
    font-size: 20px;
  }

  .dietary-card-facts {
    grid-template-columns: 1fr;
  }

  .dietary-choice,
  .dietary-choice.custom-current {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .dietary-choice.custom-current input {
    grid-row: span 2;
  }

  .dietary-choice.custom-current strong {
    grid-column: 2;
  }

  .table-card {
    gap: 10px;
    padding: 12px;
  }

  .dashboard-seat-list {
    gap: 6px;
  }

  .table-seat {
    min-height: 50px;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .seat-person strong {
    font-size: 13px;
  }

  .seat-person small {
    font-size: 11px;
  }

  .table-panel-actions {
    justify-content: stretch;
    padding-top: 12px;
  }

  .table-panel-actions .button {
    width: 100%;
  }

  .table-editor-toolbar {
    top: calc(122px + env(safe-area-inset-top));
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .table-editor-toolbar .button {
    width: 100%;
  }

  .table-editor-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .table-view-card {
    padding: 10px;
  }

  .seat-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px 8px;
    min-height: 48px;
  }

  .drag-handle {
    width: 26px;
    min-height: 34px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .action-grid,
  .table-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-grid label {
    padding: 12px;
  }

  .sticky-actions {
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .sticky-actions .button {
    width: 100%;
    min-height: 46px;
    padding-inline: 10px;
    font-size: 12px;
    white-space: normal;
  }

  .export-action {
    min-height: 0;
  }
}

@media (max-width: 380px) {
  nav a {
    font-size: 10px;
  }

  .dialog-actions:not(.modal-actions),
  .sticky-actions {
    grid-template-columns: 1fr;
  }

  .verification-list {
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  }
}
