/* Prizm Pictures Invites. Brand tokens mirror prizm-pictures.com (cyan #00aeef, navy hero triplet, Space Grotesk). */

:root {
  --cyan: #00aeef;
  --cyan-hover: #33c1f5;
  --cyan-ink: #006d96;
  --cyan-wash: #e5f7fd;
  --navy-1: #1a1a2e;
  --navy-2: #16213e;
  --navy-3: #0f3460;

  --page: #f3f4f7;
  --card: #ffffff;
  --ink: #141a2e;
  --ink-2: #3c4560;
  --muted: #68718a;
  --line: #e0e3eb;
  --line-strong: #c9cedb;

  --ok: #1f9d63;
  --ok-wash: #e3f6ec;
  --warn: #c98a06;
  --warn-wash: #fdf3d9;
  --bad: #d0453b;
  --bad-wash: #fce9e7;
  --idle: #c3c9d6;
  --idle-wash: #eef0f5;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 26, 46, 0.05), 0 8px 24px -12px rgba(20, 26, 46, 0.18);
  --font: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
fieldset {
  margin: 0;
  padding: 0;
}

fieldset {
  border: 0;
  min-width: 0;
}

ul {
  list-style: none;
}

a {
  color: var(--cyan-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-3);
}

code {
  font: 500 0.86em var(--mono);
  background: var(--idle-wash);
  border-radius: 5px;
  padding: 1px 5px;
}

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

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

.eyebrow {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.eyebrow a {
  color: inherit;
}

.count {
  font: 500 0.72rem/1 var(--mono);
  color: var(--muted);
  background: var(--idle-wash);
  border-radius: 999px;
  padding: 4px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  color: #fff;
  background: linear-gradient(100deg, var(--navy-1) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  border-bottom: 2px solid var(--cyan);
}

.masthead-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.stage-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 10px;
}

.brand-mark img {
  width: 26px;
  height: 26px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav a[aria-current='page'] {
  color: #fff;
  background: rgba(0, 174, 239, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 174, 239, 0.45);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.masthead-actions form {
  display: flex;
}

/* ---------- Buttons ---------- */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font: 600 0.92rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy-1);
}

.btn-primary:hover {
  background: var(--cyan-hover);
  color: var(--navy-1);
}

.btn-quiet {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-danger {
  background: transparent;
  border-color: transparent;
  color: var(--bad);
  margin-left: auto;
}

.btn-danger:hover {
  background: var(--bad-wash);
}

.btn-onDark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-onDark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-link {
  background: none;
  padding: 9px 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.btn-link:hover {
  color: #fff;
}

.btn-link-danger {
  color: var(--muted);
  padding: 4px 6px;
}

.btn-link-danger:hover {
  color: var(--bad);
}

.btn-block {
  width: 100%;
  padding: 12px 16px;
}

/* ---------- Page frame ---------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.page-narrow {
  max-width: 800px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-head h2 {
  margin: 0;
}

.flash {
  background: var(--cyan-wash);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.flash-error {
  background: var(--bad-wash);
  border-left-color: var(--bad);
  color: #8f2a22;
}

.hint,
.fineprint {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Dashboard ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}

.stat {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat-value {
  font: 500 1.9rem/1 var(--mono);
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--muted);
}

.event-group {
  margin-bottom: 36px;
}

.group-title {
  font: 500 0.76rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.group-empty {
  color: var(--muted);
  padding: 8px 0;
}

.event {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
  animation: rise 0.45s ease both;
}

.event:nth-of-type(2) { animation-delay: 0.05s; }
.event:nth-of-type(3) { animation-delay: 0.1s; }
.event:nth-of-type(4) { animation-delay: 0.15s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 8px;
  color: #fff;
  background: linear-gradient(170deg, var(--navy-2), var(--navy-3));
}

.event-month,
.event-weekday {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.event-month {
  color: var(--cyan);
}

.event-weekday {
  color: rgba(255, 255, 255, 0.6);
}

.event-day {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.event.is-past .event-date,
.event.is-canceled .event-date {
  background: var(--idle-wash);
  color: var(--ink-2);
}

.event.is-past .event-month,
.event.is-canceled .event-month,
.event.is-past .event-weekday,
.event.is-canceled .event-weekday {
  color: var(--muted);
}

.event.is-canceled h3 {
  text-decoration: line-through;
  text-decoration-color: var(--bad);
  color: var(--ink-2);
}

.event-body {
  padding: 20px 22px 18px;
  min-width: 0;
}

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

.event-head h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pill,
.badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-scheduled {
  background: var(--cyan-wash);
  color: var(--cyan-ink);
}

.pill-past,
.badge-pending {
  background: var(--idle-wash);
  color: var(--ink-2);
}

.pill-canceled,
.badge-declined {
  background: var(--bad-wash);
  color: #a3322a;
}

.badge-accepted {
  background: var(--ok-wash);
  color: #14734a;
}

.badge-tentative {
  background: var(--warn-wash);
  color: #8a5d00;
}

.event-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.event-meta > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.event-meta dt {
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-meta dd {
  color: var(--ink-2);
  min-width: 0;
}

.tz {
  font: 500 0.74rem/1 var(--mono);
  color: var(--muted);
  margin-left: 4px;
}

.truncate {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tally-bar {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-bottom: 10px;
}

.seg {
  flex: 1 1 0;
  border-radius: 999px;
}

.seg-accepted { background: var(--ok); }
.seg-tentative { background: var(--warn); }
.seg-declined { background: var(--bad); }
.seg-pending { background: var(--idle); }

.tally-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.86rem;
  color: var(--muted);
}

.tally-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tally-legend b {
  font: 500 0.9rem/1 var(--mono);
  color: var(--ink);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.guests {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.guests summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.guests summary::-webkit-details-marker {
  display: none;
}

.guests summary::before {
  content: '+';
  display: inline-block;
  width: 18px;
  font-family: var(--mono);
  color: var(--cyan-ink);
}

.guests[open] summary::before {
  content: '–';
}

.guest-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.94rem;
}

.guest-name {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.guest-email {
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-list .badge {
  margin-left: auto;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.event-actions form {
  display: flex;
}

.event-actions form:last-child {
  margin-left: auto;
}

.event-actions .btn {
  padding: 7px 12px;
  font-size: 0.86rem;
}

.empty {
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 56px 24px 60px;
}

.empty-art {
  width: 92px;
  margin: 0 auto 24px;
  padding: 16px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(170deg, var(--navy-2), var(--navy-3));
  border-radius: 12px;
  transform: rotate(-4deg);
  box-shadow: 8px 8px 0 var(--cyan-wash);
}

.empty h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.empty p {
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 24px;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- Forms ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form > .btn {
  align-self: flex-start;
}

.form > .btn-block {
  align-self: stretch;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-half {
  max-width: calc(50% - 8px);
}

.field-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.field-label em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

input:not([type='checkbox']):not([type='file']),
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font: 400 1rem/1.4 var(--font);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
}

#attendees-input {
  font: 400 0.92rem/1.6 var(--mono);
}

input::placeholder,
textarea::placeholder {
  color: #a3aabb;
}

input:not([type='checkbox']):not([type='file']):focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.22);
}

input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
  flex: none;
}

.file {
  font: 400 0.9rem var(--font);
  color: var(--muted);
  width: 100%;
  min-width: 0;
}

.file::file-selector-button {
  font: 500 0.86rem var(--font);
  color: var(--ink);
  background: var(--idle-wash);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 7px 12px;
  margin-right: 10px;
  cursor: pointer;
}

.search {
  max-width: 260px;
  padding: 8px 12px !important;
  font-size: 0.92rem !important;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.check input {
  margin-top: 3px;
}

.check small {
  display: block;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--muted);
}

/* New event "call sheet" */

.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 0;
}

.sheet-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px 28px;
  border-bottom: 1px solid var(--line);
}

.sheet-section legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 2px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step {
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--cyan-ink);
  margin-right: 10px;
  vertical-align: 2px;
}

.picker-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 168px;
  overflow-y: auto;
}

.chip {
  position: relative;
  cursor: pointer;
}

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

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chip span::before {
  content: '+';
  font-family: var(--mono);
  color: var(--muted);
}

.chip:hover span {
  border-color: var(--ink);
}

.chip input:checked + span {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #fff;
}

.chip input:checked + span::before {
  content: '✓';
  color: var(--cyan);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.sheet-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px;
  background: #fafbfc;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- Contacts ---------- */

.split {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.split-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.split-side .hint {
  margin: -6px 0 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 8px;
  border-bottom: 1px solid var(--line-strong);
}

.table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

.table tbody tr:hover {
  background: #fafbfc;
}

.cell-name {
  font-weight: 500;
}

.cell-email {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.cell-action {
  text-align: right;
  width: 1%;
}

/* ---------- Stage (sign in, RSVP, business card) ---------- */

.stage {
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(0, 174, 239, 0.22), transparent 65%),
    linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 50%, var(--navy-3) 100%);
  background-attachment: fixed;
}

.stage-inner {
  min-height: 100vh;
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.stage-card {
  color: var(--ink);
  background: var(--card);
  border-radius: 18px;
  border-top: 3px solid var(--cyan);
  padding: 32px 30px 30px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  animation: rise 0.5s ease both;
}

.stage-card h1 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.lede {
  color: var(--ink-2);
  margin: 8px 0 24px;
}

.rsvp-card {
  text-align: center;
}

.rsvp-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
}

.rsvp-accepted .rsvp-mark { background: var(--ok-wash); color: var(--ok); }
.rsvp-tentative .rsvp-mark { background: var(--warn-wash); color: var(--warn); }
.rsvp-declined .rsvp-mark { background: var(--bad-wash); color: var(--bad); }

.rsvp-card .lede {
  margin-bottom: 18px;
}

.rsvp-card .badge {
  vertical-align: 2px;
  margin-left: 2px;
}

.vcard {
  text-align: center;
}

.vcard-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cyan);
}

.vcard-initials {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(170deg, var(--navy-2), var(--navy-3));
}

.vcard-role {
  font: 500 0.74rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  margin-top: 8px;
}

.vcard-bio {
  color: var(--ink-2);
  margin-top: 16px;
}

.vcard-details {
  text-align: left;
  margin: 22px 0;
  border-top: 1px solid var(--line);
}

.vcard-details > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.vcard-details dt {
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.vcard-details dd {
  overflow-wrap: anywhere;
}

.vcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vcard-actions .btn {
  flex: 1 1 0;
}

.vcard-qr {
  margin: 26px 0 14px;
}

.vcard-qr img {
  width: 168px;
  height: 168px;
  display: block;
  margin: 0 auto 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.vcard-qr p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .masthead-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin: 0 -8px;
    overflow-x: auto;
  }

  .masthead-actions {
    margin-left: auto;
  }

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

@media (max-width: 640px) {
  .page {
    padding: 28px 16px 60px;
  }

  .masthead .brand-text {
    display: none;
  }

  .masthead-actions .btn {
    padding: 8px 11px;
    font-size: 0.86rem;
  }

  .page-head .btn {
    display: none;
  }

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .event-date {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 18px;
  }

  .event-day {
    font-size: 1.5rem;
  }

  .event-body {
    padding: 18px;
  }

  .event-actions form,
  .event-actions .btn {
    flex: 1 1 auto;
  }

  .event-actions form:last-child {
    margin-left: 0;
    flex-basis: 100%;
  }

  .guest-email {
    display: none;
  }

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

  .field-half {
    max-width: none;
  }

  .sheet-section {
    padding: 22px 18px;
  }

  .sheet-foot {
    padding: 16px 18px;
  }

  .sheet-foot .btn {
    flex: 1 1 auto;
  }

  .card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
