:root {
  --graphite: #1a1a1a;
  --taupe: #b09b87;
  --cream: #faf8f5;
  --white: #fcfcfc;
  --teal: #55ffe1;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--graphite);
  font-size: 17px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

#app {
  max-width: 32rem;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.header {
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(176, 155, 135, 0.25);
  background: var(--white);
}

.kicker {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.header h1 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.deck {
  font-size: 1rem;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
  max-width: 24rem;
  margin: 0 auto 0.75rem;
}

.map-link {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 155, 135, 0.5);
}

.section {
  padding: 1.1rem 1rem;
}

.main-section {
  background: var(--white);
  border-bottom: 1px solid rgba(176, 155, 135, 0.2);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.field {
  display: block;
  margin-bottom: 0.85rem;
}

.label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a4038;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(120, 100, 85, 0.55);
  border-radius: 3px;
  background: var(--white);
  color: #111;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--taupe);
}

.hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #666;
}

textarea { resize: vertical; min-height: 4rem; }

.form-error {
  margin: 0 1rem 1rem;
  padding: 0.65rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.875rem;
  border-radius: 3px;
}

.submit-section { padding: 1.25rem 1rem; }

.submit-btn,
.button-primary {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  background: var(--graphite);
  color: var(--white);
  cursor: pointer;
}

.submit-btn:disabled,
.button-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.button-secondary {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--graphite);
  border: 1px solid var(--taupe);
  border-radius: 3px;
  text-decoration: none;
  text-align: center;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}

.success-view {
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

.success-icon {
  font-size: 3rem;
  color: #0a6b5c;
  margin-bottom: 0.5rem;
}

.success-view h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.success-deck {
  font-size: 1rem;
  color: #333;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.success-actions .button-primary,
.success-actions .button-secondary {
  width: 100%;
  max-width: 18rem;
}

.person-list,
.go-list,
.outing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.person-item,
.go-item,
.outing-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem;
  background: var(--cream);
  border: 1px solid rgba(176, 155, 135, 0.3);
  border-radius: 3px;
}

.person-item input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.person-meta,
.go-meta,
.outing-meta {
  flex: 1;
  min-width: 0;
}

.person-name,
.go-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.person-email,
.go-detail,
.outing-detail {
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.15rem;
  word-break: break-word;
}

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--teal);
  color: var(--graphite);
  border-radius: 2px;
  vertical-align: middle;
}

.badge-muted {
  background: rgba(176, 155, 135, 0.35);
}

.list-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.list-actions button {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--taupe);
  background: var(--white);
  color: var(--graphite);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
}

.rsvp-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
}

.rsvp-btn {
  display: block;
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid var(--taupe);
  background: var(--white);
  color: var(--graphite);
}

.rsvp-btn.yes {
  background: var(--teal);
  border-color: var(--teal);
}

.rsvp-btn.maybe {
  background: var(--cream);
}

.rsvp-btn.cant {
  background: #f3eee8;
}

.tally {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.35rem;
}

.when-box {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid rgba(176, 155, 135, 0.35);
  border-radius: 3px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer {
  padding: 1.5rem 1rem 1rem;
  text-align: center;
}

.footer-note {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-style: italic;
  color: #666;
}

.empty {
  font-size: 0.9rem;
  color: #666;
  padding: 0.5rem 0;
}

.go-item button {
  flex-shrink: 0;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--taupe);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-sans);
}

/* ——— B10 Lock: three collapsed steps ——— */
.field[hidden],
.lock-step-body[hidden],
.lock-mix-banner[hidden] {
  display: none !important;
}

.lock-mix-banner {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(85, 255, 225, 0.18);
  font-size: 0.9rem;
  line-height: 1.35;
}

.lock-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.lock-step {
  border: 1px solid rgba(176, 155, 135, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.lock-step-header {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.lock-step-num {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #1a1a1a;
  color: #faf8f5;
}

.lock-step-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.lock-step-summary {
  font-size: 0.72rem;
  color: var(--taupe, #8a7d70);
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock-step-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--graphite, #333);
  border-bottom: 2px solid var(--graphite, #333);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-bottom: 0.15rem;
}

.lock-step.is-open .lock-step-chevron {
  transform: rotate(225deg);
  margin-bottom: -0.1rem;
}

.lock-step-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(176, 155, 135, 0.25);
}

.success-view .propose-ok.is-cassette {
  color: #c0392b;
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}

body.theme-mike .lock-step-num {
  background: #3d8bff;
}

body.theme-mike .lock-mix-banner {
  background: rgba(61, 139, 255, 0.14);
}
