/* Afterglow Studio ("My invitations") — Dark-Luxury Cinema Workspace
   Unified with the flagship Nocturne Obsidian + Champagne Gold + Pearl identity. */

:root {
  color-scheme: dark;
  --paper: #0c0a09;
  --sheet: #15110f;
  --elevated: #1c1714;
  --input-bg: #100d0b;
  --ink: #faf5ee;
  --muted: #b4a598;
  --soft: #8c7d70;
  --line: rgba(223, 192, 148, 0.2);
  --line-strong: rgba(223, 192, 148, 0.44);
  --gold: #dfc094;
  --gold-bright: #f0d8b5;
  --gold-ink: #0c0a09;
  --brass: #dfc094;
  --satin: #1e1815;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 70% 42% at 50% 0%, rgba(223, 192, 148, 0.08), transparent 65%),
    var(--paper);
  color: var(--ink);
  font: 400 0.92rem/1.58 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(a) {
  color: inherit;
}

:where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.48;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
}

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

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus {
  outline: none;
}

.studio-skip {
  position: fixed;
  z-index: 60;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.studio-skip:focus {
  transform: none;
}

.studio-width {
  width: min(100% - 2.5rem, 84rem);
  margin-inline: auto;
}

.studio-kicker {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font: 600 0.64rem/1.3 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ==========================================================================
   Shared Translucent Dark Cinema Header
   ========================================================================== */
.studio-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.studio-bar .studio-width {
  display: flex;
  min-height: 4.45rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
}

.studio-wordmark {
  color: var(--ink);
  font: 400 1.65rem/1 var(--serif);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.studio-wordmark span {
  color: var(--gold);
}

.studio-bar nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  align-items: center;
}

.studio-bar nav a {
  color: rgba(250, 245, 238, 0.74);
  font: 500 0.78rem/1.2 var(--sans);
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.studio-bar nav a:hover,
.studio-bar nav a[aria-current] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.studio-account {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-inline-start: auto;
  padding: 0.28rem 0.45rem 0.28rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 245, 238, 0.03);
  font-size: 0.76rem;
}

.studio-account-label {
  max-width: 14rem;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-account .studio-quiet {
  min-height: 2rem;
  padding: 0.32rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 0.72rem;
  text-decoration: none;
}

.studio-account .studio-quiet:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  text-decoration: none;
}

/* ==========================================================================
   Main Canvas & Shared Controls
   ========================================================================== */
#studio-main {
  min-height: calc(100svh - 4.45rem);
  padding-block: clamp(2.2rem, 5vw, 4.2rem) clamp(3.5rem, 6vw, 5.5rem);
}

#studio-main:has(#studio-editor:not([hidden])) {
  padding-block-start: clamp(1.5rem, 3vw, 2.5rem);
}

.studio-page-head,
.studio-editor-head,
.studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.studio-page-head {
  align-items: flex-end;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.studio-editor-head {
  align-items: flex-end;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.studio-page-head h1,
.studio-editor-head h1 {
  color: var(--ink);
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.studio-page-head h1 em,
.studio-designs h2 em {
  color: var(--gold-bright);
  font-style: italic;
}

.studio-state {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 245, 238, 0.03);
  color: var(--muted);
  font-size: 0.74rem;
}

.studio-state:empty {
  display: none;
}

.studio-help,
.studio-loading {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.studio-notice {
  margin-block: 1rem;
  border: 1px solid var(--line-strong);
  border-inline-start: 3px solid var(--gold);
  border-radius: 0.65rem;
  padding: 0.8rem 1rem;
  background: var(--sheet);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.studio-publication,
.studio-inline,
.studio-share-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

/* Primary Champagne-Gold Pill & Quiet Buttons */
.studio-btn,
.studio-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  font: 600 0.78rem/1.2 var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.58rem 1.25rem;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.18s ease, opacity 0.18s ease;
}

.studio-btn {
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
}

.studio-btn:hover:not(:disabled) {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--gold-ink);
}

.studio-btn:active:not(:disabled),
.studio-quiet:active:not(:disabled) {
  transform: translateY(1px);
  opacity: 0.82;
}

.studio-outline {
  background: rgba(250, 245, 238, 0.04);
  color: var(--ink);
  border-color: var(--line-strong);
}

.studio-outline:hover:not(:disabled) {
  background: rgba(223, 192, 148, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.studio-quiet {
  border: 0;
  background: transparent;
  padding-inline: 0.25rem;
  color: var(--muted);
}

.studio-quiet:hover:not(:disabled) {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

/* ==========================================================================
   Library View ("My invitations" — Drafts + 3-Column Cinema Suite Picker)
   ========================================================================== */
.studio-local-panel,
.studio-claim-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  margin-block: 1.5rem;
  border: 1px solid var(--line-strong);
  border-inline-start: 3px solid var(--gold);
  border-radius: 0.9rem;
  padding: 1.15rem 1.35rem;
  background: var(--sheet);
}

.studio-local-panel h2 {
  font-size: 1.65rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.studio-local-panel .studio-help,
.studio-claim-panel p {
  max-width: 44rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.studio-drafts {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin-block: 1.5rem 2.6rem;
}

.studio-drafts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.05rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--sheet);
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.studio-drafts li:hover {
  border-color: var(--line-strong);
  background: var(--elevated);
  transform: translateY(-1px);
}

.studio-drafts a {
  color: var(--ink);
  font: 400 1.6rem/1.1 var(--serif);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.studio-drafts a:hover {
  color: var(--gold-bright);
}

.studio-drafts span {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.74rem;
}

.studio-draft-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .65rem;
}

.studio-draft-delete {
  min-height: 44px;
  padding-inline: .65rem;
}

#studio-delete-error {
  color: #ffb8b0;
}

.studio-designs {
  margin-top: 2.8rem;
}

.studio-designs-head {
  margin-bottom: 1.5rem;
}

.studio-designs h2 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  color: var(--ink);
}

#studio-design-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
}

.studio-design {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  background: var(--sheet);
  overflow: hidden;
  transition: border-color 0.26s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}

.studio-design:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
}

.studio-design img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--elevated);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-design:hover img {
  transform: scale(1.04);
}

.studio-design h3 {
  margin: 1.1rem 1.25rem 0.25rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
}

.studio-design .studio-inline {
  margin-top: auto;
  padding: 0.85rem 1.25rem 1.2rem;
  justify-content: space-between;
}

.studio-design .studio-btn {
  min-height: 2.35rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.74rem;
}

.studio-access {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.studio-access summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.studio-access summary:hover {
  color: var(--gold-bright);
}

.studio-access form {
  max-width: 36rem;
  padding-block: 0.85rem;
}

.studio-access input {
  flex: 1;
  min-width: min(85vw - 4rem, 13rem);
}

.studio-access .studio-help {
  margin-top: 0.55rem;
}

/* ==========================================================================
   Split Cinema Editor Workspace (#studio-editor)
   ========================================================================== */
.studio-local-note {
  margin: 0.9rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--gold);
  border-radius: 0.65rem;
  background: var(--sheet);
  color: var(--muted);
  font-size: 0.82rem;
}

.studio-share {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.95rem;
  background: var(--sheet);
}

.studio-share h2 {
  font-size: 1.55rem;
  color: var(--gold-bright);
  margin-bottom: 0.2rem;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(22rem, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 3.2vw, 3rem);
  margin-top: 1.5rem;
  align-items: start;
}

.studio-edit-panel {
  min-width: 0;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--sheet);
}

.studio-sections {
  display: flex;
  gap: 0.4rem 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.studio-sections button,
.studio-pane-toggle button,
.studio-devices button {
  min-height: 2.65rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 0.25rem;
  font: 600 0.8rem/1.2 var(--sans);
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.studio-sections button:hover,
.studio-pane-toggle button:hover,
.studio-devices button:hover {
  color: var(--ink);
}

.studio-sections button[aria-pressed="true"],
.studio-pane-toggle button[aria-pressed="true"],
.studio-devices button[aria-pressed="true"] {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.studio-pane-toggle {
  display: none;
}

.studio-fields {
  padding-block: 1.25rem 0.3rem;
}

.studio-fields fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 0.2rem;
  margin: 1.3rem 0 0;
  min-width: 0;
}

.studio-fields legend {
  padding: 0 0.75rem 0 0;
  color: var(--gold-bright);
  font: 400 1.65rem/1 var(--serif);
}

.studio-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  margin-bottom: 0.95rem;
}

.studio-field > :is(span, label):first-child,
.studio-access label,
dialog label {
  color: rgba(250, 245, 238, 0.88);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.studio-field small {
  color: var(--soft);
  font-weight: 400;
  font-size: 0.74rem;
}

.studio-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.studio-field input,
.studio-field select,
.studio-field textarea,
.studio-access input,
dialog input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--ink);
  font-size: 0.88rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.studio-field input::placeholder,
.studio-field textarea::placeholder,
dialog input::placeholder {
  color: var(--soft);
}

.studio-field input:focus,
.studio-field select:focus,
.studio-field textarea:focus,
.studio-access input:focus,
dialog input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(223, 192, 148, 0.14);
  outline: none;
}

.studio-field select option {
  background: var(--sheet);
  color: var(--ink);
}

.studio-field textarea {
  resize: vertical;
}

.studio-dress-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.95rem;
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
}

.studio-dress-colors li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--ink);
}

.studio-dress-swatch {
  width: 1rem;
  height: 1rem;
  flex: none;
  border: 1px solid rgba(250, 245, 238, 0.36);
  border-radius: 50%;
}

.studio-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-block: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  color: rgba(250, 245, 238, 0.86);
  cursor: pointer;
}

.studio-check input {
  accent-color: var(--gold);
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
}

.studio-panel-head h2 {
  font-size: 1.85rem;
  color: var(--ink);
}

#studio-schedule-empty {
  padding-block: 0.6rem;
}

.studio-event-row {
  position: relative;
}

.studio-clear-event {
  position: relative;
  margin: -0.5rem 0 0.25rem;
}

/* RSVP Stats, Guest List & Households */
.studio-responses {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.studio-rsvp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-block: 0.95rem;
}

.studio-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 6.2rem;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem;
  background: var(--input-bg);
}

.studio-stat-primary {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}

.studio-stat strong {
  font: 400 2.35rem/1 var(--serif);
}

.studio-stat span {
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--muted);
}

.studio-stat-primary span {
  color: rgba(12, 10, 9, 0.76);
  font-weight: 600;
}

.studio-rsvp-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(9rem, 0.6fr);
  gap: 0.8rem;
  margin-block: 0.9rem;
}

.studio-search input {
  min-width: 0;
}

#studio-responses {
  list-style: none;
  padding: 0;
}

.studio-replies {
  margin-top: 0.5rem;
}

.studio-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.85rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.studio-reply strong {
  color: var(--ink);
  font-weight: 600;
}

.studio-reply span {
  color: var(--gold);
  font-size: 0.78rem;
  text-align: end;
}

.studio-reply p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.studio-households {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.studio-household-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(7rem, 0.5fr) minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  margin-block: 0.75rem;
}

.studio-household-form .studio-btn {
  min-height: 2.75rem;
}

.studio-household-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.studio-household-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.85rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.studio-household-list strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.studio-household-list span {
  color: var(--gold);
  font-size: 0.78rem;
  text-align: end;
}

.studio-household-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.studio-household-actions a,
.studio-household-actions button {
  font-size: 0.76rem;
}

.studio-meal-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0.85rem;
}

.studio-meal-form .studio-meal-options {
  grid-column: 1;
}

/* ==========================================================================
   Right Panel · Spotlight Live Screening Preview Stage
   ========================================================================== */
.studio-preview-panel {
  position: sticky;
  top: 5.5rem;
  min-width: 0;
}

.studio-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.9rem;
  margin-bottom: 0.75rem;
}

.studio-preview-head h2 {
  font-size: 1.75rem;
  color: var(--ink);
}

.studio-devices {
  display: inline-flex;
  gap: 0.25rem;
  margin-inline: auto;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
}

.studio-devices button {
  min-height: 2.05rem;
  padding: 0.3rem 0.85rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.72rem;
}

.studio-devices button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: transparent;
}

.studio-preview-stage {
  display: grid;
  place-items: center;
  height: clamp(30rem, calc(100svh - 11.5rem), 50rem);
  border: 1px solid var(--line-strong);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 65% 55% at 50% 42%, rgba(223, 192, 148, 0.12), transparent 68%),
    #110e0c;
  padding: 1rem;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}

#studio-frame-box {
  position: relative;
  overflow: hidden;
  background: #0c0a09;
  outline: 1px solid rgba(223, 192, 148, 0.28);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
  border-radius: 0.65rem;
}

#studio-frame-box[data-device="phone"] {
  border-radius: 1.45rem;
  outline: 4px solid #26211e;
}

#studio-frame {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: top left;
  background: #0c0a09;
}

/* ==========================================================================
   Dark Obsidian Glass Modals (Auth, Checkout, Recovery, Take Offline)
   ========================================================================== */
dialog {
  max-width: min(32rem, calc(100% - 2rem));
  border: 1px solid var(--line-strong);
  border-radius: 1.2rem;
  background: var(--sheet);
  color: var(--ink);
  padding: 1.85rem;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.72);
}

dialog::backdrop {
  background: rgba(8, 6, 5, 0.8);
  backdrop-filter: blur(10px);
}

dialog h2 {
  font-size: 2.3rem;
  color: var(--ink);
}

dialog p {
  margin: 0.6rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

dialog label {
  display: block;
  margin-bottom: 0.3rem;
}

#studio-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

.dialog-actions {
  margin-top: 1.1rem;
}

.studio-auth-lede {
  max-width: 30rem;
}

.studio-auth-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block: 1.2rem;
  color: var(--soft);
  font-size: 0.76rem;
}

.studio-auth-or::before,
.studio-auth-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.studio-google {
  width: 100%;
  background: var(--elevated);
  color: var(--ink);
  border-color: var(--line-strong);
}

.studio-google:hover:not(:disabled) {
  background: rgba(223, 192, 148, 0.16);
  color: var(--gold-bright);
  border-color: var(--gold);
}

.studio-dialog-close {
  float: right;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--ink);
  line-height: 1;
}

.studio-dialog-close:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

#studio-auth-dialog {
  width: min(31rem, calc(100% - 2rem));
}

#studio-auth-dialog h3 {
  margin-top: 1.3rem;
  font-size: 1.65rem;
  color: var(--ink);
}

#studio-auth-waiting {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

#studio-auth-waiting .studio-btn {
  margin-block: 0.7rem;
}

.studio-checkout-invitation {
  font: 400 1.65rem/1.15 var(--serif);
  color: var(--gold-bright);
}

.studio-checkout-price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.studio-checkout-price strong {
  color: var(--ink);
  font: 300 2.8rem/1 var(--serif);
}

.studio-checkout-price span {
  color: var(--muted);
  font-size: 0.78rem;
}

.studio-checkout-includes {
  margin: 0.65rem 0 1rem;
  padding-inline-start: 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.studio-checkout-includes li {
  margin-block: 0.28rem;
}

.studio-test-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
}

.studio-checkout-local {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 64rem) {
  #studio-design-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-layout {
    display: block;
    margin-top: 0.85rem;
  }

  .studio-pane-toggle {
    display: inline-flex;
    gap: 0.25rem;
    margin-top: 1rem;
    padding: 0.22rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--sheet);
  }

  .studio-pane-toggle button {
    border: 0;
    border-radius: 999px;
    min-width: 5.5rem;
    padding-inline: 0.95rem;
  }

  .studio-pane-toggle button[aria-pressed="true"] {
    background: var(--gold);
    color: var(--gold-ink);
  }

  #studio-editor[data-pane="edit"] .studio-preview-panel,
  #studio-editor[data-pane="preview"] .studio-edit-panel {
    display: none;
  }

  .studio-preview-panel {
    position: static;
    margin-top: 1rem;
  }

  .studio-preview-head h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }

  .studio-devices {
    margin: 0;
  }

  .studio-preview-stage {
    height: clamp(29rem, 74svh, 46rem);
  }
}

@media (max-width: 52rem) {
  .studio-household-form {
    grid-template-columns: minmax(0, 1fr) minmax(7rem, 0.45fr);
  }

  .studio-household-form label:nth-child(3) {
    grid-column: 1 / -1;
  }

  .studio-household-form .studio-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 40rem) {
  .studio-width {
    width: calc(100% - 2rem);
  }

  .studio-bar .studio-width {
    min-height: 3.9rem;
    flex-wrap: wrap;
    padding-block: 0.55rem;
  }

  .studio-account {
    width: 100%;
    margin: 0;
    justify-content: space-between;
  }

  .studio-account-label {
    max-width: 11rem;
  }

  #studio-design-list {
    grid-template-columns: 1fr;
  }

  .studio-field-grid {
    grid-template-columns: 1fr;
  }

  .studio-field input,
  .studio-field select,
  .studio-field textarea,
  .studio-access input,
  dialog input {
    font-size: 1rem;
  }

  .studio-publication {
    width: 100%;
  }

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

  .studio-rsvp-tools,
  .studio-meal-form {
    grid-template-columns: 1fr;
  }

  .studio-reply span {
    text-align: start;
  }
}

/* ==========================================================================
   Guided 4-Step Atelier Wizard & Dedicated Event Dashboard (Phase 1 & 2)
   ========================================================================== */
.studio-layout[hidden],
.studio-dashboard[hidden],
.studio-wizard-pane[hidden],
.dash-pane[hidden],
.dash-unpublished-banner[hidden],
.studio-pane-toggle[hidden] {
  display: none !important;
}

.studio-btn-sm {
  min-height: 2.3rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.72rem;
}

.studio-workspace-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.15rem;
}

.studio-workspace-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--sheet);
}

.studio-workspace-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.4rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.76rem/1 var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.studio-workspace-switch button:hover {
  color: var(--ink);
}

.studio-workspace-switch button[aria-selected="true"] {
  background: var(--gold);
  color: var(--gold-ink);
}

.studio-badge-pill {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding-inline: 0.35rem;
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.24);
  color: inherit;
  font-size: 0.68rem;
  font-weight: 700;
}

.studio-workspace-switch button[aria-selected="false"] .studio-badge-pill {
  background: rgba(223, 192, 148, 0.16);
  color: var(--gold-bright);
}

/* 4-Step Guided Wizard Stepper */
.studio-wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.45rem;
  padding: 0;
}

.studio-wizard-steps li {
  min-width: 0;
}

.studio-wizard-steps button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--input-bg);
  color: var(--muted);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.studio-wizard-steps button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.studio-wizard-steps button[aria-selected="true"] {
  border-color: var(--gold);
  background: rgba(223, 192, 148, 0.12);
  color: var(--ink);
}

.studio-wizard-steps button.is-complete {
  border-color: rgba(223, 192, 148, 0.32);
}

.wizard-step-num {
  font: 600 0.64rem/1 var(--sans);
  letter-spacing: 0.16em;
  color: var(--gold);
}

.wizard-step-label {
  font: 500 0.76rem/1.2 var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.wizard-pane-head {
  margin-bottom: 1.15rem;
}

.wizard-pane-head h2 {
  font-size: 1.85rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.wizard-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.9rem;
}

.wizard-chips-label {
  font-size: 0.72rem;
  color: var(--soft);
  margin-right: 0.15rem;
}

.wizard-chip {
  min-height: 1.95rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(223, 192, 148, 0.06);
  color: var(--muted);
  font-size: 0.73rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.wizard-chip:hover {
  border-color: var(--gold);
  background: rgba(223, 192, 148, 0.14);
  color: var(--gold-bright);
}

.studio-more {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1rem;
}

.studio-more summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  list-style: none;
}

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

.studio-more-body {
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.studio-schedule-box {
  margin-bottom: 1.15rem;
}

.studio-schedule-box h3 {
  font-size: 1.5rem;
  color: var(--ink);
}

.wizard-review-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(223, 192, 148, 0.28);
  border-radius: 0.95rem;
  background: linear-gradient(160deg, rgba(223, 192, 148, 0.1), rgba(22, 18, 16, 0.92));
}

.wizard-review-card h3 {
  font-size: 1.55rem;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}

.wizard-review-card .studio-inline {
  margin-top: 0.95rem;
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.wizard-step-status {
  color: var(--soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-inline: auto;
}

/* ==========================================================================
   Dedicated Full-Width Event Management Dashboard
   ========================================================================== */
.studio-dashboard {
  margin-top: 1.35rem;
}

.dash-unpublished-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.55rem;
  border: 1px solid rgba(223, 192, 148, 0.36);
  border-radius: 1.05rem;
  background: linear-gradient(135deg, rgba(223, 192, 148, 0.12), rgba(22, 18, 16, 0.96));
}

.dash-unpublished-banner h2 {
  font-size: 1.85rem;
  color: var(--gold-bright);
  margin-bottom: 0.3rem;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.dash-kpi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 7.4rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--sheet);
}

.dash-kpi-gold {
  background: linear-gradient(155deg, #ebd2ad, #d5b282);
  border-color: var(--gold);
  color: var(--gold-ink);
}

.dash-kpi-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-kpi-gold .dash-kpi-label {
  color: rgba(12, 10, 9, 0.72);
}

.dash-kpi strong {
  font: 300 2.6rem/1 var(--serif);
  color: var(--ink);
}

.dash-kpi-gold strong {
  color: var(--gold-ink);
}

.dash-kpi small {
  font-size: 0.74rem;
  color: var(--soft);
}

.dash-kpi-gold small {
  color: rgba(12, 10, 9, 0.76);
  font-weight: 600;
}

.dash-progress-wrap {
  margin-top: 0.9rem;
}

.dash-progress-bar {
  display: flex;
  height: 0.45rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.dash-bar-confirmed {
  background: var(--gold);
  transition: width 0.35s ease;
}

.dash-bar-declined {
  background: rgba(217, 118, 118, 0.65);
  transition: width 0.35s ease;
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin-top: 1.55rem;
  border-bottom: 1px solid var(--line);
}

.dash-tabs button {
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 600 0.8rem/1.2 var(--sans);
  letter-spacing: 0.05em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dash-tabs button:hover {
  color: var(--ink);
}

.dash-tabs button[aria-selected="true"] {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.dash-crm-card {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--sheet);
}

.dash-crm-card .studio-responses {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.dash-crm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.2rem;
  margin-bottom: 1.2rem;
}

.dash-crm-head h2 {
  font-size: 1.95rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.dash-add-form {
  display: grid;
  grid-template-columns: minmax(11rem, 1.5fr) minmax(5.5rem, 0.55fr) minmax(9.5rem, 1fr) minmax(9.5rem, 1fr) minmax(7.5rem, 0.8fr) auto;
  gap: 0.7rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1.15rem;
}

.dash-add-form .studio-field {
  margin-bottom: 0;
}

.dash-add-form .studio-btn {
  min-height: 2.75rem;
  white-space: nowrap;
}

.dash-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.dash-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-pill {
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dash-pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.dash-pill.is-active {
  border-color: var(--gold);
  background: rgba(223, 192, 148, 0.16);
  color: var(--gold-bright);
}

.dash-search {
  min-width: min(19rem, 100%);
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 0.82rem;
}

.dash-search:focus {
  border-color: var(--gold);
  outline: none;
}

.dash-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.dash-table th {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dash-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink);
}

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

.dash-table tbody tr:hover {
  background: rgba(223, 192, 148, 0.04);
}

.dash-col-check {
  width: 2.5rem;
}

.dash-col-check input {
  accent-color: var(--gold);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.dash-guest-name {
  font-weight: 600;
  color: var(--ink);
}

.dash-subline {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.18rem;
}

.dash-err {
  color: #f09e9e;
}

.dash-seat-pill {
  display: inline-block;
  padding: 0.26rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(223, 192, 148, 0.08);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.dash-status {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.dash-status.is-attending {
  background: rgba(114, 189, 137, 0.15);
  border-color: rgba(114, 189, 137, 0.35);
  color: #a9e6bc;
}

.dash-status.is-declined,
.dash-status.is-failed {
  background: rgba(220, 108, 108, 0.16);
  border-color: rgba(220, 108, 108, 0.35);
  color: #f3a6a6;
}

.dash-status.is-pending {
  background: rgba(223, 192, 148, 0.14);
  border-color: rgba(223, 192, 148, 0.32);
  color: var(--gold-bright);
}

.dash-status.is-viewed,
.dash-status.is-sent {
  background: rgba(145, 178, 224, 0.16);
  border-color: rgba(145, 178, 224, 0.34);
  color: #bdd6f8;
}

.dash-status.is-idle {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--muted);
}

.dash-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.dash-act {
  min-height: 1.95rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.72rem;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.dash-act:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.dash-act-danger:hover {
  border-color: rgba(235, 120, 120, 0.6);
  color: #f3a6a6;
}

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

.dash-meals-box {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.dash-meals-box h3 {
  font-size: 1.5rem;
  color: var(--ink);
}

.dash-meals-details {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.dash-meals-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

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

.dash-meals-summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
}

.dash-meals-details[open] .dash-meals-summary::after {
  content: "−";
}

.dash-meals-summary:hover {
  background: rgba(223, 192, 148, 0.06);
}

.dash-meals-summary-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.dash-meals-body {
  padding: 0.25rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
}

.dash-meals-body .studio-meal-form {
  margin-top: 0.25rem;
}

.dash-sms-batches {
  display: grid;
  gap: 0.65rem;
}

.dash-sms-batch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.025);
}

.dash-sms-batch strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

/* Wide Modals (CSV Importer & SMS Review Drawer) */
.studio-wide-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-width: min(44rem, calc(100% - 2rem));
}

.studio-wide-dialog textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--input-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.84rem;
}

.studio-wide-dialog textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.sms-preview-box {
  margin-block: 0.85rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid rgba(223, 192, 148, 0.28);
  border-radius: 0.85rem;
  background: rgba(223, 192, 148, 0.06);
}

.sms-preview-box p {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sms-quote-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-block: 0.85rem;
}

.sms-quote-summary > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--input-bg);
}

.sms-quote-summary span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}

.sms-quote-summary strong {
  font: 400 1.65rem/1.1 var(--serif);
  color: var(--gold-bright);
}

@media (max-width: 68rem) {
  .dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash-add-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 44rem) {
  .studio-wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dash-kpi:first-child {
    grid-column: 1 / -1;
  }

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

  .dash-crm-card {
    padding: 1.1rem;
  }

  .dash-search {
    width: 100%;
    min-width: 0;
  }

  .sms-quote-summary {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Package Selector & Scheduled Reminder
   ========================================================================== */
.checkout-packages[hidden],
.dash-reminder-card[hidden],
.dash-sms-locked[hidden],
.dash-sms-quota-pill[hidden] {
  display: none !important;
}

.checkout-packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-block: 1rem 0.65rem;
}

.checkout-pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.9rem;
  background: var(--input-bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkout-pkg input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-pkg:hover {
  border-color: rgba(223, 192, 148, 0.55);
}

.checkout-pkg:has(input:checked) {
  border-color: var(--gold);
  background: rgba(223, 192, 148, 0.12);
  box-shadow: 0 0 0 2px rgba(223, 192, 148, 0.16);
}

.checkout-pkg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.checkout-pkg-head strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.checkout-pkg-price {
  font: 400 1.25rem/1 var(--serif);
  color: var(--gold-bright);
}

.checkout-pkg-tag {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.66rem;
  font-weight: 700;
  vertical-align: middle;
}

.checkout-pkg small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.48;
}

.checkout-pkg small strong {
  color: var(--ink);
  font-weight: 600;
}

.dash-sms-quota-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(223, 192, 148, 0.36);
  border-radius: 999px;
  background: rgba(223, 192, 148, 0.1);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.dash-reminder-card,
.dash-sms-locked {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(223, 192, 148, 0.3);
  border-radius: 0.95rem;
  background: linear-gradient(150deg, rgba(223, 192, 148, 0.08), rgba(22, 18, 16, 0.92));
}

.dash-sms-locked {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.dash-reminder-card h3,
.dash-sms-locked h3 {
  font-size: 1.45rem;
  color: var(--gold-bright);
  margin-bottom: 0.2rem;
}

.dash-reminder-form {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(12rem, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.dash-reminder-form .studio-field {
  margin-bottom: 0;
}

@media (max-width: 44rem) {
  .checkout-packages,
  .dash-reminder-form {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Dynamic Named Party Member Slots & Expandable Guest Directory Tab
   ========================================================================== */
.dash-members-wrap[hidden] {
  display: none !important;
}

.dash-members-wrap {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line-strong);
}

.dash-members-modal {
  margin: 0.5rem 0 0.85rem;
}

.dash-members-head {
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.dash-members-head small {
  margin-left: 0.35rem;
  color: var(--soft);
  font-weight: 400;
}

.dash-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.65rem;
}

.dash-member-field {
  margin-bottom: 0 !important;
}

.dir-list {
  display: grid;
  gap: 0.75rem;
}

.dir-card {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.dir-card[open] {
  border-color: rgba(223, 192, 148, 0.42);
  background: rgba(223, 192, 148, 0.035);
}

.dir-card-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

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

.dir-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.dir-chevron {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(223, 192, 148, 0.1);
  color: var(--gold-bright);
  font-size: 0.85rem;
  transition: transform 0.2s ease;
  flex: none;
}

.dir-card[open] .dir-chevron {
  transform: rotate(90deg);
}

.dir-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dir-title-row strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.dir-group-chip {
  padding: 0.12rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--gold);
}

.dir-card-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.dir-body {
  padding: 0 1.15rem 1.05rem;
  border-top: 1px solid var(--line);
}

.dir-roster {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.dir-member-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dir-member-row:last-child {
  border-bottom: 0;
}

.dir-num {
  font: 600 0.7rem/1 var(--sans);
  letter-spacing: 0.1em;
  color: var(--gold);
  min-width: 1.5rem;
}

.dir-member-name {
  flex: 1;
  min-width: 9rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.dir-member-empty {
  flex: 1;
  min-width: 9rem;
  color: var(--soft);
  font-size: 0.84rem;
  font-style: italic;
}

.dir-meal-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
}

.dir-meta-notes {
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.dir-meta-notes p {
  margin: 0.2rem 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.dir-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

/* Compact 3-Column Card Grid + Group Pills + A-Z Jump + Party Modal */
.dir-group-bar[hidden],
.dir-alpha-bar[hidden],
.dir-pager[hidden],
.dir-meta-notes[hidden] {
  display: none !important;
}

.dir-group-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.dir-tag-pill {
  min-height: 1.85rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.dir-tag-pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.dir-tag-pill.is-active {
  border-color: var(--gold);
  background: rgba(223, 192, 148, 0.14);
  color: var(--gold-bright);
}

.dir-alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.015);
}

.dir-alpha-btn {
  min-width: 1.75rem;
  height: 1.75rem;
  padding-inline: 0.4rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dir-alpha-btn:hover:not(:disabled) {
  background: rgba(223, 192, 148, 0.14);
  color: var(--gold-bright);
}

.dir-alpha-btn.is-active {
  background: var(--gold);
  color: var(--gold-ink);
}

.dir-alpha-btn:disabled {
  color: var(--soft);
  opacity: 0.32;
  cursor: default;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.dir-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  min-height: 10.2rem;
  padding: 1.05rem 1.1rem 0.9rem;
  border: 1.5px solid rgba(240, 198, 92, 0.58);
  border-radius: 1.05rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(20, 16, 14, 0.96));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dir-tile.is-pending {
  border-color: rgba(240, 198, 92, 0.62);
  box-shadow: 0 0 0 1px rgba(240, 198, 92, 0.18), inset 0 0 26px rgba(240, 198, 92, 0.055);
}

.dir-tile.is-pending:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 212, 112, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(240, 198, 92, 0.28), inset 0 0 28px rgba(240, 198, 92, 0.09);
}

.dir-tile.is-attending {
  border-color: rgba(82, 204, 128, 0.68);
  box-shadow: 0 0 0 1px rgba(82, 204, 128, 0.2), inset 0 0 26px rgba(82, 204, 128, 0.06);
}

.dir-tile.is-attending:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 226, 152, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(82, 204, 128, 0.3), inset 0 0 28px rgba(82, 204, 128, 0.1);
}

.dir-tile.is-declined {
  border-color: rgba(232, 96, 102, 0.68);
  box-shadow: 0 0 0 1px rgba(232, 96, 102, 0.2), inset 0 0 26px rgba(232, 96, 102, 0.06);
}

.dir-tile.is-declined:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 120, 126, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(232, 96, 102, 0.3), inset 0 0 28px rgba(232, 96, 102, 0.1);
}

.dir-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.dir-tile-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.dir-tile-title strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dir-tile-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  align-content: flex-start;
  flex: 1;
}

.dir-guest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.24rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.2;
}

.dir-guest-chip.is-open {
  border-style: dashed;
  color: var(--soft);
  font-style: italic;
}

.dir-guest-chip.is-ok {
  border-color: rgba(114, 189, 137, 0.34);
  background: rgba(114, 189, 137, 0.1);
}

.dir-guest-chip.is-unused {
  opacity: 0.5;
  text-decoration: line-through;
}

.dir-guest-chip.is-more {
  border-color: rgba(223, 192, 148, 0.35);
  color: var(--gold-bright);
  font-weight: 600;
}

.dir-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #8ee0a9;
  flex: none;
}

.dir-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--soft);
}

.dir-tile-cta {
  color: var(--gold);
  font-weight: 600;
}

.dir-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.dir-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0 0.9rem;
}

@media (max-width: 64rem) {
  .dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .dir-grid {
    grid-template-columns: 1fr;
  }
}

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