:root {
  color-scheme: light;
  --color-bg: #f3efe6;
  --color-surface: #fdfcf8;
  --color-surface-2: #f7f3ea;
  --color-border: #e3dccb;
  --color-border-strong: #cfc5ae;
  --color-text: #1d1b17;
  --color-text-muted: #6e685c;
  --color-primary: #1d1b17;
  --color-primary-text: #fdfcf8;
  --color-accent: #f59e0b;
  --color-accent-soft: #f6d996;
  --color-on-accent: #1d1b17;
  --color-success-bg: #e9f3e8;
  --color-success-text: #2c6b3f;
  --color-danger-bg: #fae9e7;
  --color-danger-text: #b0261b;
  --color-draft-bg: #ece7db;
  --color-draft-text: #5f594b;
  --color-super-bg: #f3e4c7;
  --color-super-text: #855d0f;
  --color-organizer-bg: #e6ecf1;
  --color-organizer-text: #33576e;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;

  --radius: 0.23rem;
  --radius-sm: 0.17rem;
  --menubar-height: 3.75rem;
  --impersonation-banner-height: 2.75rem;
  --shadow: 0 1px 2px rgba(29, 27, 23, 0.05), 0 8px 24px rgba(29, 27, 23, 0.06);
}

html.dark {
  color-scheme: dark;
  --color-bg: #13120e;
  --color-surface: #1b1914;
  --color-surface-2: #232019;
  --color-border: #322e26;
  --color-border-strong: #45403a;
  --color-text: #ebe7dc;
  --color-text-muted: #9b958a;
  --color-primary: #ebe7dc;
  --color-primary-text: #1b1914;
  --color-accent: #f59e0b;
  --color-accent-soft: #4a3b18;
  --color-on-accent: #1d1b17;
  --color-success-bg: #17251a;
  --color-success-text: #7fc38e;
  --color-danger-bg: #2c1a17;
  --color-danger-text: #e08a80;
  --color-draft-bg: #26231c;
  --color-draft-text: #a89f8e;
  --color-super-bg: #2f2615;
  --color-super-text: #e2b55b;
  --color-organizer-bg: #16232a;
  --color-organizer-text: #8fb6cc;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

::selection {
  background: var(--color-accent);
  color: var(--color-primary-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.menubar {
  height: var(--menubar-height);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.menubar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.brand-mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menubar__spacer {
  flex: 1;
}

.menubar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.75rem;
}

.menubar__link {
  padding: 0.4375rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.menubar__link:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.menubar__link--active {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.menubar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menubar__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.25rem;
}

.menubar__toggle span {
  width: 1.1rem;
  height: 2px;
  background: var(--color-text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.button:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
}

.button--ghost {
  background: none;
  border-color: transparent;
  color: var(--color-text-muted);
}

.button--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-border);
  background: var(--color-surface-2);
}

.button--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}

.button--primary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  opacity: 0.88;
}

.button--danger {
  color: var(--color-danger-text);
}

.button--sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.button--icon {
  padding: 0.375rem;
  line-height: 0;
}

.button--icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.app-shell {
  padding: 1.75rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.app-shell--solo {
  max-width: 880px;
}

.anonymouse-card {
  max-width: 440px;
  margin: 3rem auto;
  padding: 2.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.anonymouse-card p {
  color: var(--color-text-muted);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.auth-header__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.auth-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.auth-footer a {
  color: var(--color-text);
  font-weight: 550;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.field__input,
.field textarea,
.field select {
  padding: 0.5625rem 0.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color 0.12s ease;
}

.field__input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-text);
}

.form_actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.field textarea {
  resize: vertical;
}

.field__input[type="datetime-local"],
.field__input[type="date"],
.field__input[type="time"] {
  min-height: 2.375rem;
  line-height: normal;
}

.field__control {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.field__control .field__input {
  flex: 1 1 auto;
  min-width: 0;
}

.field__toggle {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-text);
  cursor: pointer;
}

.field__input:disabled {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.field__clear {
  flex: 0 0 auto;
  width: 2.375rem;
  height: 2.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.field__clear:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.field__clear:focus {
  outline: none;
  border-color: var(--color-text);
}

.field .field__hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.field--inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.field--inline .field__label {
  margin: 0;
}

.field__checkbox {
  width: auto;
  margin: 0;
  accent-color: var(--color-text);
}

.recurrence__panel {
  margin-bottom: 1rem;
}

.recurrence__accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-2);
}

.recurrence__summary {
  padding: 0.5625rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recurrence__summary::-webkit-details-marker {
  display: none;
}

.recurrence__summary::before {
  content: "\25B8";
  font-size: 0.75rem;
  transition: transform 0.12s ease;
}

.recurrence__accordion[open] .recurrence__summary::before {
  transform: rotate(90deg);
}

.recurrence__body {
  position: relative;
  padding: 0.25rem 0.75rem 0.75rem;
}

.recurrence__controls {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.recurrence__controls:disabled {
  opacity: 0.5;
}

.recurrence__lock {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-surface-2) 72%, transparent);
}

.recurrence__lock_message {
  max-width: 22rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.recurrence__body .field:last-of-type {
  margin-bottom: 0.5rem;
}

.recurrence__weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.recurrence__weekday {
  position: relative;
  display: inline-flex;
}

.recurrence__weekday_input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.recurrence__weekday_label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.recurrence__weekday_input:checked + .recurrence__weekday_label {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-surface);
}

.recurrence__weekday_input:focus-visible + .recurrence__weekday_label {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.recurrence__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.recurrence__chips:not(:empty) {
  margin-top: 0.5rem;
}

.recurrence__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.25rem 0.25rem 0.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 0.8125rem;
}

.recurrence__chip--start {
  padding-right: 0.5rem;
  border-color: var(--color-text-muted);
}

.recurrence__chip_label {
  color: var(--color-text);
}

.recurrence__chip_pin {
  padding: 0.0625rem 0.3125rem;
  border-radius: var(--radius-sm);
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recurrence__chip_remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

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


.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-text-muted);
  border-radius: var(--radius-sm);
  margin: 1rem auto;
  max-width: 1200px;
  font-size: 0.875rem;
  transform: translateY(0);
  opacity: 1;
  max-height: 8rem;
  overflow: hidden;
  transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, margin 180ms ease, padding 180ms ease;
}

.alert__message {
  margin: 0;
  flex: 1 1 auto;
}

.alert__dismiss {
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: currentColor;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.25rem 0.35rem;
  cursor: pointer;
}

.alert__dismiss:hover {
  text-decoration: underline;
}

.alert__dismiss:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.alert--dismissing {
  opacity: 0;
  transform: translateY(-0.75rem);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.alert--notice {
  background: var(--color-success-bg);
  border-color: transparent;
  border-left-color: var(--color-success-text);
  color: var(--color-success-text);
}

.alert--error {
  background: var(--color-danger-bg);
  border-color: transparent;
  border-left-color: var(--color-danger-text);
  color: var(--color-danger-text);
}

.errors {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-danger-text);
  border-radius: var(--radius);
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.errors__title {
  font-family: var(--font-sans);
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.errors ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.4375rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}

.badge--published {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.badge--draft {
  background: var(--color-draft-bg);
  color: var(--color-draft-text);
}

.badge--recurring {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.data-table__actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

.data-table__actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.confirmation_cell {
  vertical-align: middle;
}

.confirmation_cell__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.confirmation_cell__content form {
  flex-shrink: 0;
}

.confirmation_send {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.375rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.confirmation_send svg {
  width: 1rem;
  height: 1rem;
}

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

.confirmation_send:hover {
  color: var(--color-primary-text);
  background: var(--color-primary);
}

.slot_remove {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.375rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.slot_remove svg {
  width: 1rem;
  height: 1rem;
}

.slot_remove__text {
  display: none;
  font-size: 0.75rem;
  font-weight: 650;
}

.slot_remove:hover {
  color: var(--color-danger-text);
  background: var(--color-danger-bg);
}

.response_remove {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.375rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.response_remove svg {
  width: 1rem;
  height: 1rem;
}

.response_remove__text {
  display: none;
  font-size: 0.75rem;
  font-weight: 650;
}

.response_remove:hover {
  color: var(--color-danger-text);
  background: var(--color-danger-bg);
}

.slot_fill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.375rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.slot_fill svg {
  width: 1rem;
  height: 1rem;
}

.slot_fill__text {
  display: none;
  font-size: 0.75rem;
  font-weight: 650;
}

.slot_fill:hover {
  color: var(--color-primary-text);
  background: var(--color-primary);
}

.data-table tr.is-swiped .slot_fill__text {
  display: inline;
}

.respondents__add {
  margin: 0.5rem 0 0.25rem;
}

.slot_range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}

.slot_range:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.slot_range svg {
  width: 0.875rem;
  height: 0.875rem;
}

.slot_candidate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 0.8125rem;
  cursor: pointer;
}

.slot_candidate:hover {
  border-color: var(--color-border-strong);
}

.modal__choices {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 55vh;
  overflow-y: auto;
  margin: 0.75rem 0 1rem;
  padding-right: 0.25rem;
}

.data-table tr.is-swiped .slot_remove,
.data-table tr.is-swiped .response_remove {
  color: var(--color-danger-text);
  background: var(--color-danger-bg);
}

.data-table tr.is-swiped .slot_remove__text,
.data-table tr.is-swiped .response_remove__text {
  display: inline;
}

.respondents__occurrence {
  margin: 1rem 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--color-text-muted);
}

.respondents__group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.375rem;
}

.respondents__group .respondents__occurrence {
  margin: 0;
}

.respondents__roster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.respondents__roster_form {
  display: inline-flex;
  margin: 0;
}

.respondents__roster_status {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.date_choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.date_choice {
  display: block;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
}

.date_choice:hover {
  border-color: var(--color-text);
}

.sign_up__occurrence {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.badge--when {
  background: var(--color-border);
  color: var(--color-text-muted);
}

.badge--super {
  background: var(--color-super-bg);
  color: var(--color-super-text);
}

.badge--organizer {
  background: var(--color-organizer-bg);
  color: var(--color-organizer-text);
}

.app-shell:has(.two-pane) {
  max-width: none;
  margin: 0;
  padding: 0;
}

.impersonation-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: var(--impersonation-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-top: 1px solid var(--color-border-strong);
  font-size: 0.875rem;
  font-weight: 550;
}

.impersonation-banner__message {
  margin: 0;
}

.impersonation-banner__stop {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}

.impersonation-banner__stop:hover {
  text-decoration: none;
}

.impersonation-banner__stop:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

body:has(.impersonation-banner) .app-shell:not(:has(.two-pane)) {
  padding-bottom: calc(3rem + var(--impersonation-banner-height));
}

body:has(.impersonation-banner) .two-pane {
  height: calc(100vh - var(--menubar-height) - var(--impersonation-banner-height));
  height: calc(100dvh - var(--menubar-height) - var(--impersonation-banner-height));
}

.two-pane {
  display: grid;
  grid-template-columns: var(--list-w, 22rem) 0.5rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100vh - var(--menubar-height));
  height: calc(100dvh - var(--menubar-height));
}

turbo-frame {
  display: block;
  height: 100%;
}

.pane {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.pane--list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.pane--detail {
  overflow-y: auto;
}

.pane-sash {
  cursor: col-resize;
  touch-action: none;
  position: relative;
  height: 100%;
  width: 100%;
}

.pane-sash:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--color-border);
}

.pane-sash:hover:after,
.is-resize-active .pane-sash:after {
  background: var(--color-accent);
}

.is-resize-active {
  user-select: none;
  cursor: col-resize;
}

.pane__header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-surface);
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pane__header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.pane__body {
  padding: 1rem 1.125rem;
}

.sign_up_row,
.sign_up__empty {
  display: block;
  padding: 0.8125rem 1.125rem;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.1s ease;
}

.sign_up_row:hover {
  background: var(--color-surface-2);
}

.sign_up_row--placeholder {
  border-left: 3px solid var(--color-border-strong);
}

.sign_up_row--selected,
.sign_up_row--selected:hover {
  background: var(--color-surface-2);
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.sign_up_row__title {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sign_up_row__heading {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.sign_up_row__date {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.sign_up_row__dates {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  align-items: center;
  column-gap: 0.375rem;
  row-gap: 0.1875rem;
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.sign_up_row__when {
  display: contents;
}

.sign_up_row__dates .badge--when {
  justify-self: start;
}

.sign_up_row__when_date {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.sign_up_row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.sign_up_row__status {
  font-size: 0.75rem;
}

.sign_up_list__section {
  padding-top: 0.75rem;
}

.sign_up_list__section:first-of-type {
  padding-top: 0.5rem;
}

.sign_up_list__title {
  margin: 0 1.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.sign_up__detail {
  padding: 1.5rem 1.75rem 2rem;
}

.sign_up__meta {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-wrap: wrap;
}

.sign_up__subtitle {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-wrap: wrap;
}

.sign_up__subtitle:empty {
  display: none;
}

.sign_up__meta .badge {
  font-size: 0.6875rem;
}

.sign_up__title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

.sign_up__description {
  margin: 0 0 1.5rem;
  white-space: pre-wrap;
  color: var(--color-text);
}

.sign_up__actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.sign_up__actions > * {
  align-self: stretch;
}

.sign_up__actions > form {
  display: flex;
}

.sign_up__actions > form .button {
  width: 100%;
  height: 100%;
}

.sign_up__actions .button {
  min-height: 2.375rem;
}

.detail-back {
  padding: 0.1875rem 0.4375rem;
  font-size: 0.75rem;
  border: none;
  background: none;
  color: var(--color-text-muted);
}

.detail-back:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.share_box {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.625rem 0.75rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface-2);
  font-size: 0.875rem;
  word-break: break-all;
}

.share_box__label {
  font-weight: 600;
  flex: 0 0 auto;
}

.share_box__url {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.share_box__copy {
  flex: 0 0 auto;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.share_box__copy:hover {
  border-color: var(--color-text);
  background: var(--color-surface-2);
}

.respondents {
  margin-top: 2rem;
}

.respondents__title {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.625rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-surface-2);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 100%;
}

.empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
}

.empty-state__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.empty-state h2 {
  color: var(--color-text);
  margin: 0 0 0.375rem;
}

.empty-state p {
  margin: 0;
}

.time_slot_option {
  break-inside: avoid;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 0.6875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.time_slot_option:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
}

.time_slot_option input {
  accent-color: var(--color-text);
}

.time_slot_option__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.time_slot_option__label {
  font-size: 0.875rem;
  font-weight: 600;
}

.time_slot_option__status {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.time_slot_option--disabled,
.time_slot_option--disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--color-surface);
  border-color: var(--color-border);
}

.update_request__offer {
  margin: 0 0 1.25rem;
}

.update_request__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

.update_request__error {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--color-danger-text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
}

.stat-card__value {
  font-family: var(--font-serif);
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.1;
}

.stat-card__label {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.table-list {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-list th,
.table-list td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.table-list th {
  color: var(--color-text-muted);
  font-weight: 650;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.theme-switcher {
  position: relative;
}

.theme-switcher__button {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.theme-switcher__button:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
}

.theme-switcher__button svg {
  width: 1.125rem;
  height: 1.125rem;
}

.theme-switcher__icon--moon {
  display: none;
}

html.dark .theme-switcher__icon--sun {
  display: none;
}

html.dark .theme-switcher__icon--moon {
  display: block;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.3125rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme-menu__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.4375rem 0.625rem;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
}

.theme-menu__option:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.theme-menu__option--active {
  color: var(--color-text);
  font-weight: 600;
}

.theme-menu__option svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
  visibility: hidden;
}

.theme-menu__option--active svg {
  visibility: visible;
}

.user-menu-root {
  position: relative;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.avatar:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.avatar svg {
  width: 1.25rem;
  height: 1.25rem;
}

.user-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 14rem;
  padding: 0.3125rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.user-menu__header {
  padding: 0.5625rem 0.625rem 0.6875rem;
}

.user-menu__name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-menu__email {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-top: 0.125rem;
  overflow-wrap: anywhere;
}

.user-menu__divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.25rem 0;
}

.user-menu__item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.user-menu__item:hover {
  background: var(--color-surface-2);
}

.user-menu__item--danger {
  color: var(--color-danger-text);
}

@media (max-width: 768px) {
  .menubar__toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .menubar {
    flex-wrap: nowrap;
    height: var(--menubar-height);
    padding: 0.625rem 1rem;
    gap: 0.5rem;
    position: sticky;
  }

  .menubar__spacer {
    display: none;
  }

  .menubar__brand {
    order: 0;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .theme-switcher,
  .user-menu-root {
    order: 3;
    flex: 0 0 auto;
  }

  .menubar__nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
    margin-left: 0;
    display: none;
    padding: 0.5rem 1rem 0.75rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    z-index: 45;
  }

  .menubar__nav--open {
    display: flex;
  }

  .menubar__nav .menubar__link {
    padding: 0.5rem 0.625rem;
  }

  .user-menu {
    right: 0;
    max-width: calc(100vw - 1.5rem);
  }

  .two-pane {
    grid-template-columns: 1fr;
    position: relative;
    overflow: hidden;
  }

  .two-pane .pane {
    grid-column: 1;
    grid-row: 1;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .pane-sash {
    display: none;
  }

  .two-pane[data-pane="list"] .pane--list {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .two-pane[data-pane="list"] .pane--detail {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }

  .two-pane[data-pane="detail"] .pane--list {
    transform: translateX(-28%);
    opacity: 0;
    pointer-events: none;
  }

  .two-pane[data-pane="detail"] .pane--detail {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .anonymouse-card {
    margin: 1.5rem auto;
    padding: 1.5rem;
  }

  .app-shell {
    padding: 1rem 1rem 2.5rem;
  }

  .sign_up__detail {
    padding: 1.25rem 1rem;
  }

  .sign_up__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    display: none;
  }

  .menubar__brand {
    font-size: 0.95rem;
  }
}

.profile-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row dt {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding-top: 0.1rem;
}

.profile-row dd {
  margin: 0;
}

.stat-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.stat-card--link:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
}

.stat-card--link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.admin-pane {
  display: block;
  height: auto;
  padding: 1.5rem 1.5rem 3rem;
}

.admin-pane-back {
  display: none;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem;
}

.admin-nav__link {
  display: block;
  padding: 0.4375rem 0.625rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}

.admin-nav__link:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.admin-nav__link--current {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.admin-nav__group {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0.375rem 0;
}

.admin-nav__group-label {
  padding: 0.375rem 0.625rem 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-nav__group .admin-nav__link {
  margin-left: 0.625rem;
  padding-left: 0.625rem;
  border-left: 1px solid var(--color-border);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

@media (max-width: 768px) {
  .admin-pane-back {
    display: inline-flex;
    margin: 0.75rem 0 0 0.75rem;
  }

  .admin-pane {
    padding: 0.75rem 1rem 2.5rem;
  }
}

.admin-section {
  margin-top: 2.5rem;
}

.admin-header__title--section {
  font-size: 1.125rem;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.admin-search__input {
  flex: 0 1 22rem;
  padding: 0.4375rem 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.admin-search__input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.pagination__position {
  margin-left: auto;
}

.pagination__steps {
  display: flex;
  gap: 0.25rem;
}

.button--spent {
  color: var(--color-text-muted);
  border-color: var(--color-border);
  background: var(--color-surface-2);
  cursor: default;
  opacity: 0.6;
}

.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-header__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.admin-header__count {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.admin-header__actions {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.admin-back {
  display: inline-block;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.admin-back:hover {
  color: var(--color-text);
}

.admin-empty {
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  padding: 2rem 1.25rem;
  text-align: center;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll .table-list {
  min-width: 44rem;
}

.table-list tbody tr:last-child td {
  border-bottom: none;
}

.table-list tbody tr:hover {
  background: var(--color-surface-2);
}

.table-list__actions {
  white-space: nowrap;
  text-align: left;
}

.table-list__action-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.125rem;
}

.admin-fields {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 0;
  overflow: hidden;
}

.admin-fields__row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.admin-fields__row:last-child {
  border-bottom: none;
}

.admin-fields__label {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.admin-fields__value {
  margin: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.admin-form {
  max-width: 32rem;
}

@media (max-width: 40rem) {
  .admin-fields__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.button--destructive {
  background: var(--color-danger-text);
  border-color: var(--color-danger-text);
  color: var(--color-surface);
}

.button--destructive:hover {
  background: var(--color-danger-text);
  border-color: var(--color-danger-text);
  opacity: 0.88;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal__panel {
  position: relative;
  width: min(30rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.modal__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}

.modal__impact {
  background: var(--color-danger-bg);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.modal__impact-lead {
  color: var(--color-danger-text);
  font-size: 0.8125rem;
  font-weight: 550;
  margin: 0 0 0.375rem;
}

.modal__impact-list {
  color: var(--color-danger-text);
  font-size: 0.875rem;
  margin: 0;
  padding-left: 1.1rem;
}

.modal__note {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin: 0 0 1.25rem;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 30rem) {
  .modal__actions {
    flex-direction: column-reverse;
  }

  .modal__actions .button,
  .modal__actions form {
    width: 100%;
  }

  .modal__actions .button {
    justify-content: center;
  }
}

.error_page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.error_page__panel {
  max-width: 30rem;
  text-align: center;
}

.error_page__code {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.error_page__heading {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.error_page__message {
  margin: 0;
  color: var(--color-text-muted);
}

.error_page__actions {
  margin-top: 1.75rem;
}

.time_slot_options {
  column-gap: 0.75rem;
}

.sign_up_form__fields {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 48rem) {
  .anonymouse-card--wide {
    max-width: 58rem;
  }

  .sign_up_form__fields {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  }

  .time_slot_options {
    column-count: var(--slot-columns-md, 1);
  }
}

@media (min-width: 64rem) {
  .time_slot_options {
    column-count: var(--slot-columns-lg, 1);
  }
}

@media (min-width: 90rem) {
  .anonymouse-card--wide {
    max-width: 74rem;
  }

  .time_slot_options {
    column-count: var(--slot-columns-xl, 1);
  }
}

.badge--delivered {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.badge--sending {
  background: var(--color-draft-bg);
  color: var(--color-draft-text);
}

.badge--failed {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

.badge--unsent,
.badge--blank {
  background: transparent;
  color: var(--color-text-muted);
  padding-left: 0;
}

.notification {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.notification__sent,
.notification__detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.notification__detail:empty,
.notification__sent:empty {
  display: none;
}

.notification__actions {
  display: inline-flex;
  gap: 0.375rem;
}

.notification__actions form {
  display: inline;
}

.notification_panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.notification_panel__title {
  font-weight: 650;
  font-size: 0.8125rem;
}
