/* SATKAARA workspace system. Keep client-designed guest pages in their own theme. */
:root {
  --navy: #17372f;
  --ink: #223b33;
  --muted: #5d7067;
  --teal: #21634f;
  --line: #dce5df;
  --bg: #f5f7f5;
  --radius: 14px;
  --surface: #fff;
  --surface-soft: #edf3ef;
  --accent: #a17b3c;
  --shadow: 0 3px 16px rgb(24 55 43 / 4%);
}
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6; letter-spacing: 0; }
h1 { font-size: clamp(27px, 2.5vw, 34px); line-height: 1.2; letter-spacing: -.8px; }
h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.3px; }
h3 { font-size: 16px; line-height: 1.4; }
small { font-size: 12px; line-height: 1.5; }
.muted { color: var(--muted); }
.eyebrow { color: var(--teal); font-size: 10px; line-height: 1.6; letter-spacing: 1.7px; }
a { color: var(--teal); text-underline-offset: 3px; }
button, .button-link { min-height: 44px; padding: 10px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; line-height: 1.4; }
button { background: var(--teal); border: 1px solid var(--teal); box-shadow: none; }
button:hover { filter: none; background: #184e3e; border-color: #184e3e; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button-link:hover { text-decoration: none; }
.button-link.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.button-link.primary:hover { background: #184e3e; }
button.secondary, .button-link.secondary { color: var(--ink); background: #fff; border-color: #cfdcd3; box-shadow: none; }
button.secondary:hover, .button-link.secondary:hover { background: var(--surface-soft); border-color: #aabeb0; }
button:disabled { opacity: .58; cursor: not-allowed; }
button.danger, .button-link.danger { color: #a2372b; background: #fff4f1; border-color: #e9c4bd; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #a9c9b7; outline-offset: 3px; }
input, select, textarea { border: 1px solid #cbd8d0; border-radius: 9px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.5; padding: 10px 12px; min-height: 44px; box-shadow: none; }
input::placeholder, textarea::placeholder { color: #718077; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
input[type=checkbox] { min-height: 18px; height: 18px; width: 18px; flex-basis: 18px; accent-color: var(--teal); }
input[type=file] { padding: 10px; background: #f9fbf9; }
input[type=file]::file-selector-button { border: 1px solid #ccd9d0; background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 7px; margin-right: 12px; font: inherit; }
input[type=color] { max-width: 120px; padding: 5px; }
textarea { min-height: 112px; }
label { font-size: 13px; line-height: 1.5; font-weight: 600; margin-bottom: 18px; }
label small, label .muted { color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 6px; }
.check { font-size: 13px; line-height: 1.5; align-items: flex-start; }
.check input { margin-top: 2px; }
fieldset { padding: 18px; border-color: var(--line); }
legend { padding: 0 6px; font-size: 13px; }
hr { border-color: var(--line); margin: 24px 0; }

/* Frame and navigation */
.sidebar { width: 250px; background: #17372f; padding: 26px 18px 20px; }
.brand { gap: 10px; padding: 0 10px 28px; font-size: 20px; letter-spacing: 1.1px; }
.brand-mark { background: #31594a; color: #deebdf; border: 1px solid #486a59; border-radius: 10px; }
.brand small { color: #c0d0c5; font-size: 8px; letter-spacing: 1.6px; }
.nav-label { color: #b8cbbd; font-size: 10px; margin: 18px 12px 10px; }
.sidebar nav .nav-link, .nav-group > summary { color: #e0ebe4; min-height: 44px; padding: 11px 12px; border-radius: 9px; font-size: 13px; }
.sidebar nav .nav-link:hover, .nav-group > summary:hover { background: #284a3e; color: #fff; }
.sidebar nav a[aria-current=page] { background: #365b4a; color: #fff; }
.nav-children { border-left-color: #688373; margin-left: 21px; padding-left: 10px; }
.nav-children a { font-size: 12px; padding: 10px 12px; color: #d6e4da; }
.nav-event { margin: 18px 0; padding: 14px 12px; background: #234538; border: 1px solid #3b5c4b; border-radius: 10px; }
.nav-event small { color: #c1d1c5; font-size: 9px; }
.nav-event strong { color: #fff; font-size: 13px; line-height: 1.5; }
.sidebar-footer { margin-top: auto; padding: 18px 12px 0; border-color: #476252; color: #d0dfd4; font-size: 11px; }
.sidebar-footer a { color: #e5eee7; font-size: 12px; margin-top: 8px; }
.workspace { margin-left: 250px; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 35; min-height: 76px; padding: 14px 30px; background: #fff; border-bottom: 1px solid var(--line); gap: 18px; }
.topbar-context { color: var(--muted); font-size: 12px; gap: 10px; min-width: 0; }
.topbar-context strong { color: var(--ink); font-weight: 600; }
.event-switch { margin-left: auto; flex: 0 1 280px; }
.event-switch select { min-height: 42px; background: #f8faf8; font-size: 12px; }
.avatar { background: #edf3ef; border-color: var(--line); color: var(--teal); font-size: 13px; }
.user-name { font-size: 12px; color: var(--ink); }
.user-menu-panel { border-color: var(--line); border-radius: 12px; box-shadow: 0 12px 36px #17372f1a; padding: 10px; }
.workspace > main { width: 100%; max-width: 1480px; padding: 28px 30px 16px; flex: 1; }
.workspace > .page-footer { margin-top: auto; }
.breadcrumbs { gap: 8px; font-size: 12px; line-height: 1.5; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumbs, .breadcrumbs a, .page-footer, .secure-note { color: var(--muted) !important; }
.page-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 24px; }
.page-heading > div:first-child { flex: 1 1 260px; min-width: 0; }
.page-heading h1 { margin: 3px 0 10px; }
.page-heading p:last-child { font-size: 14px; line-height: 1.6; max-width: 760px; }
.page-heading > .badge { margin-top: 8px; }

/* Cards, lists and state */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.two-column { gap: 20px; align-items: start; }
.form-grid { gap: 0 20px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions button, .actions .button-link { min-height: 40px; padding: 9px 13px; font-size: 12px; border-radius: 8px; }
.toolbar, .section-heading { align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.toolbar > div:first-child { flex: 1 1 250px; min-width: 0; }
.toolbar h2, .section-heading h2 { font-size: 19px; margin: 0; }
.toolbar small { font-size: 12px; color: var(--muted); margin-left: 8px; }
.compact-note { font-size: 12px !important; line-height: 1.6; margin: 8px 0 !important; }
.badge { display: inline-flex; align-items: center; gap: 5px; background: #eaf3ed; color: #2c6046; border-radius: 6px; padding: 5px 9px; font-size: 11px; line-height: 1.4; font-weight: 600; white-space: normal; }
.badge[data-status=pending], .badge[data-status=unknown], .badge[data-status=paused], .badge[data-status=draft], .badge[data-status=configuration], .badge[data-status=queued] { background: #fff4de; color: #7d5819; }
.badge[data-status=failed], .badge[data-status=bounced], .badge[data-status=cancelled], .badge[data-status=declined], .badge[data-status=blocked] { background: #fcece8; color: #9b382d; }
.badge[data-status=archived], .badge[data-status=skipped] { background: #edf0ef; color: #52655b; }
.notice, .error { padding: 15px 18px; border-radius: 10px; font-size: 13px; line-height: 1.6; display: block; }
.notice { background: #edf6ee; color: #315e3e; border-color: #c8dfcc; }
.notice > .icon { display: inline-block; vertical-align: middle; margin-right: 8px; }
.error { background: #fff0ec; color: #92382d; border-color: #edc9c0; }
.notice p:last-child, .error p:last-child { margin-bottom: 0; }
.empty { padding: 32px 18px; color: var(--muted); font-size: 14px; }
.empty h3 { color: var(--ink); font-size: 18px; }
.empty p { font-size: 13px; line-height: 1.7; max-width: 440px; }
.empty-icon { background: var(--surface-soft); color: var(--teal); }
.list-row { gap: 12px 18px; padding: 15px 0; border-color: var(--line); font-size: 13px; }
.list-row > div, .list-row > span { min-width: 0; }
.list-row small, .list-row time { font-size: 12px; color: var(--muted) !important; }
.text-link { color: var(--teal); font-size: 13px; margin-top: 12px; }
.disclosure-card { padding: 16px 22px; }
.disclosure-card > summary, .form-disclosure > summary { font-size: 14px; color: var(--ink); min-height: 42px; gap: 12px; }
.disclosure-card > summary small { font-size: 12px; line-height: 1.5; margin-top: 4px; color: var(--muted) !important; }
.disclosure-card > summary:after, .form-disclosure > summary:after { color: var(--teal); font-size: 22px; }
.disclosure-body { padding-top: 20px; }
.form-disclosure { background: #f8faf8; border-color: var(--line); padding: 10px 16px; border-radius: 10px; margin: 12px 0 20px; }

/* Overview and event collection */
.workspace-hero { background: linear-gradient(115deg, #e8f0ea, #f3f1e6); border: 1px solid #dce5d9; border-radius: 18px; padding: 30px; margin-bottom: 28px; }
.hero-copy h2 { font-size: 30px; color: var(--navy); line-height: 1.25; margin: 10px 0 14px; }
.hero-copy p { font-size: 14px; line-height: 1.7; color: var(--muted) !important; }
.hero-tag { font-size: 10px; color: var(--muted) !important; }
.hero-chips { font-size: 12px; color: #3e6150; gap: 18px; }
.hero-art .ticket-mark { font-size: 17px; font-weight: 750; letter-spacing: 1px; color: var(--teal); }
.event-grid { gap: 20px; }
.event-card.card { padding: 0; overflow: hidden; margin-bottom: 0; }
.event-card:hover { transform: translateY(-2px); border-color: #9fbaa8; box-shadow: 0 8px 24px #17372f0d; }
.event-card-body { padding: 22px; }
.event-card h2 { font-size: 19px; line-height: 1.4; margin: 6px 0 10px; }
.event-client { font-size: 10px; letter-spacing: .8px; color: var(--muted) !important; }
.event-venue { font-size: 13px !important; line-height: 1.6; color: var(--muted) !important; }
.event-cover .badge { font-size: 10px; background: #fffffff0; color: #355e45; padding: 6px 9px; }
.card-footer { font-size: 12px; padding-top: 16px; border-color: var(--line); }
.card-footer strong, .card-footer .open-event { font-size: 12px; color: var(--teal); }
.collection-heading { gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.collection-heading h2 { font-size: 20px; }
.collection-heading .muted { font-size: 13px; color: var(--muted) !important; }
.search-form { gap: 8px; }
.event-intro { background: #edf3ee; border-color: var(--line); padding: 24px; margin-bottom: 20px; }
.event-intro h2 { font-size: 23px; }
.event-intro p:last-child { font-size: 13px; color: var(--muted); line-height: 1.7; }
.event-date { color: var(--teal); background: #fff; border-color: var(--line); }
.metric-grid { gap: 16px; margin-bottom: 20px; }
.metric.card, .guest-metrics .metric { padding: 20px; border-color: var(--line); }
.metric p, .metric-top p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.metric-top { margin-bottom: 14px; }
.metric-top p { margin: 0; }
.metric strong, .guest-metrics .metric strong { font-size: 32px; color: var(--ink); font-weight: 650; line-height: 1.2; }
.metric > small { font-size: 12px; color: var(--muted) !important; margin-top: 9px; }
.metric-icon { background: var(--surface-soft); color: var(--teal); padding: 8px; border-radius: 9px; }
.next-step { border-color: var(--line); border-left-color: var(--accent); padding: 22px 24px; gap: 16px; }
.next-step h2 { font-size: 18px; margin: 3px 0 6px; }
.next-step p:last-child { font-size: 13px; color: var(--muted) !important; }
.next-step .eyebrow { font-size: 10px; }
.next-step .step-icon { background: #f5efe1; color: #88662e; }
.response-breakdown { gap: 15px 24px; }
.response-breakdown > div { font-size: 13px; }
progress { accent-color: var(--teal); height: 8px; }
progress::-webkit-progress-value { background: var(--teal); }

/* Guest lists, document panels and operational tables */
.guest-message-help { padding: 10px 18px; background: #f8faf8; box-shadow: none; margin-bottom: 16px; }
.guest-message-help > summary { min-height: 30px; font-size: 13px; }
.guest-message-help:not([open]) > summary small { display: none; }
.guest-metrics .metric { min-height: 112px; padding: 17px 20px; }
.guest-metrics .metric p { margin-bottom: 9px; }
.guest-metrics .metric > small { font-size: 11px; margin-top: 7px; }
.guest-filters { padding: 18px 20px; }
.inline-form { gap: 16px; }
.inline-form label { min-width: 150px; }
.guest-filters .inline-form label:first-child { flex: 2 1 220px; }
.guest-filters .inline-form label { flex: 1 1 145px; margin: 0; }
.guest-filters .inline-form button { align-self: flex-end; }
.guest-send-bar { padding: 16px 20px; gap: 14px 20px; flex-wrap: wrap; }
.guest-send-bar > div:first-child { flex: 1 1 230px; }
.guest-send-bar > .actions { justify-content: flex-end; }
.guest-send-bar strong { font-size: 13px; }
.guest-send-bar small { font-size: 12px; margin-top: 3px; }
.guest-send-bar .actions a { font-size: 12px; }
.table-wrap.card { padding: 0; border-radius: 12px; }
table { font-size: 13px; }
th { font-size: 11px; line-height: 1.5; letter-spacing: .7px; font-weight: 600; background: #f0f5f1; color: #425e4e; padding: 15px 16px; }
td { font-size: 13px; line-height: 1.6; padding: 16px; border-color: var(--line); }
td small { font-size: 12px; margin-top: 4px; color: var(--muted); }
tbody tr:hover { background: #fafcf9; }
.guest-directory td[data-label=Actions] { min-width: 188px; }
.guest-row-actions { gap: 6px; }
.guest-row-actions button { font-size: 12px; min-height: 38px; padding: 8px 10px; }
.guest-select-label { align-items: center; }
.guest-select-label strong { font-size: 14px; }
.guest-select-all { font-size: 11px; align-items: center; }
.pagination { gap: 16px; font-size: 12px; margin: 20px 0; }
.pagination a { border: 1px solid var(--line); padding: 6px 14px; border-radius: 8px; background: #fff; }
.guest-summary-grid { gap: 14px; }
.guest-summary-grid > div { border-color: var(--line); background: #f7faf7; padding: 18px; }
.guest-summary-grid strong { color: var(--ink); font-size: 27px; }
.guest-summary-grid span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.guest-profile-tabs { padding: 5px; border: 1px solid var(--line); background: #edf2ee; border-radius: 12px; gap: 5px; }
.guest-profile-tabs button { box-shadow: none; border-color: transparent; background: transparent; font-size: 13px; }
.guest-profile-tabs button[aria-pressed=true] { color: var(--teal); background: #fff; border-color: var(--line); box-shadow: 0 1px 4px #17372f08; }
.document-admin { border-color: var(--line); border-radius: 12px; }
.document-filter { margin-bottom: 20px; padding: 16px; background: #f5f8f5; border-radius: 10px; }
.document-filter label { margin-bottom: 0; }
.task-row { padding: 20px 0; border-color: var(--line); }
.task-row h3 { margin: 0 0 8px; }
.task-row > p { font-size: 13px; color: var(--muted); }

/* Event setup, integrations, invitations and editors */
.setup-nav, .invite-tabs { background: #eaf0eb; border: 1px solid #d7e2d9; border-radius: 12px; padding: 5px; gap: 5px; margin-bottom: 24px; }
.setup-nav a, .invite-tabs a { color: #435f4e; padding: 11px 16px; font-size: 13px; line-height: 1.5; border-radius: 8px; }
.setup-nav a[aria-current=page], .invite-tabs a[aria-current=page] { background: #fff; color: var(--teal); box-shadow: 0 1px 5px #17372f0d; }
.page-workflow { gap: 10px; margin-bottom: 16px; }
.page-workflow button { padding: 14px 18px; font-size: 13px; background: #fff; color: var(--muted); border-color: var(--line); }
.page-workflow button[aria-pressed=true] { color: var(--teal); background: #edf6ef; border-color: #7eaa8f; }
.page-workflow button[aria-pressed=true] span { background: var(--teal); }
.settings-intro { padding: 0 0 22px; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.settings-intro h2 { font-size: 23px; }
.settings-intro p { font-size: 14px; }
.secure-note { font-size: 12px; }
.setting-row { gap: 18px; padding: 22px 0; align-items: flex-end; border-color: var(--line); }
.setting-row > label:first-of-type { flex: 1 1 310px; min-width: 0; font-size: 13px; }
.setting-row label small { color: var(--muted) !important; font-size: 12px; max-width: 620px; line-height: 1.6; margin: 5px 0 10px; }
.setting-row .confirm-setting { flex: 0 1 170px; font-size: 12px; max-width: 190px; margin-bottom: 10px !important; }
.setting-row button { min-width: 100px; font-size: 12px; }
.integration-note, .invite-save-note, .email-compatibility { background: #fff8e9; border: 1px solid #e7d7b5; color: #775b28; padding: 16px 18px; border-radius: 10px; font-size: 13px; line-height: 1.7; }
.integration-note p { font-size: 13px; }
.invite-intro { background: linear-gradient(115deg, #163d31, #28614b); border-radius: 16px; padding: 26px 28px; }
.invite-intro h2 { font-size: 26px; }
.invite-intro p { font-size: 14px; }
.invite-intro button.secondary { background: #fff; color: var(--ink); }
.invite-summary .card { padding: 20px; }
.invite-summary strong { font-size: 30px; }
.invite-message { gap: 16px; }
.invite-message-main h3 { font-size: 17px; }
.invite-message-main p, .invite-message-main small { font-size: 13px; }
.invite-message-copy, .invite-guide-steps p { font-size: 14px; line-height: 1.7; }
.invite-connections { padding: 18px 20px; }
.email-editor-card { padding: 24px; }
.email-panel-heading { padding: 16px 18px; background: #f2f6f2; }
.email-panel-heading label, .email-panel-heading h3 { font-size: 14px; }
.email-panel-heading small, .email-panel-note, .email-code-hint { font-size: 12px; line-height: 1.6; }
.email-preview-stage { background: #edf2ee; }
.email-save-row, .designer-savebar, .guest-savebar { gap: 16px; border-color: var(--line); align-items: center; }
.designer-toolbar { padding: 20px; background: #f5f8f5; border-color: var(--line); gap: 16px; }
.designer-toolbar h2 { font-size: 20px; }
.designer-preview-controls, .designer-tools { gap: 16px; padding: 18px 20px; }
.designer-insert { background: #f8faf8; border-color: var(--line); }
.designer-insert > summary { padding: 14px 20px; font-size: 13px; }
.designer-preview { background: #edf2ee; }
.variable-list { gap: 8px; }
.variable-list .badge { font-size: 11px; padding: 6px 9px; }
.question-row { background: #f8faf8; border-color: var(--line); padding: 20px; }
.question-number { font-size: 11px; color: var(--muted) !important; }
.guest-picker > small { font-size: 12px; }
.guest-results button { font-size: 13px; padding: 10px 12px; }

/* Dialogs and account pages */
dialog { padding: 28px; border-radius: 16px; border-color: var(--line); box-shadow: 0 24px 80px #12352b33; }
dialog::backdrop { background: #142f296b; backdrop-filter: blur(3px); }
.dialog-heading { align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.dialog-heading > div { min-width: 0; }
.dialog-heading h2 { font-size: 23px; margin: 3px 0 8px; }
.dialog-heading p { font-size: 13px; line-height: 1.6; }
.dialog-heading > button { flex-shrink: 0; }
.dialog-footer { padding-top: 20px; margin-top: 20px; gap: 10px; border-color: var(--line); }
.guest-panel-body { background: var(--bg); }
.guest-panel-body main { padding: 24px; }
.public-brand .wordmark { color: var(--teal); }
.account-card { padding: 32px; }
.account-card .auth-intro { font-size: 14px; }
.account-card .auth-note { font-size: 12px; }
.auth-card .password-toggle { color: var(--teal); background: transparent; border-color: transparent; min-height: 40px; }
.auth-card .password-toggle:hover { background: var(--surface-soft); }
.account-error strong { font-size: 14px; }
.page-footer { font-size: 12px; padding: 24px; gap: 6px 16px; }
.footer-brand { font-size: 11px; letter-spacing: 1.5px; }

@media (max-width: 1200px) {
  .workspace > main { padding: 24px; }
  .topbar { padding: 14px 24px; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-metrics, .guest-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { flex-basis: 220px; width: 220px; }
  .setting-row > label:first-of-type { flex-basis: 100%; }
  .setting-row .confirm-setting { flex: 1 1 180px; max-width: none; }
}
@media (max-width: 900px) {
  .sidebar { width: 250px; transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .topbar { min-height: 70px; padding: 12px 20px; gap: 12px; }
  .topbar .nav-toggle { display: inline-flex; gap: 8px; align-items: center; }
  .topbar-context { display: none; }
  .event-switch { flex: 1 1 220px; max-width: 360px; }
  .workspace > main { padding: 22px 20px 12px; }
  .two-column { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .guest-send-bar > .actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .guest-directory td[data-label=Actions] { min-width: 0; }
  .guest-row-actions { gap: 8px; }
  .guest-row-actions button { min-height: 42px; flex: 1; }
  .guest-send-bar { align-items: stretch; }
  .guest-send-bar > div:first-child { flex-basis: 100%; }
  .guest-send-bar > .actions { width: 100%; }
  .guest-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guest-profile-tabs button { flex-basis: calc(50% - 5px); }
}
@media (max-width: 600px) {
  .workspace > main { padding: 20px 16px 10px; }
  .topbar { padding: 12px 16px; }
  .topbar .nav-toggle { min-height: 42px; padding: 9px 11px; }
  .event-switch { min-width: 0; }
  .event-switch select { padding-right: 25px; font-size: 12px; }
  .user-name { display: none; }
  .page-heading { margin-bottom: 20px; gap: 12px; }
  .page-heading > div:first-child { flex-basis: 100%; }
  .page-heading p:last-child { font-size: 13px; }
  .page-heading > .badge { margin-top: 0; }
  .page-heading > .actions { width: 100%; }
  .card { padding: 20px; border-radius: 12px; }
  .disclosure-card { padding: 13px 17px; }
  .form-grid, .email-design-tools { grid-template-columns: 1fr; }
  .two-column { gap: 0; }
  .event-grid { grid-template-columns: 1fr; }
  .workspace-hero { padding: 24px; }
  .hero-copy h2 { font-size: 27px; }
  .hero-copy p { font-size: 13px; }
  .hero-chips { gap: 12px; font-size: 11px; }
  .event-intro { padding: 20px; align-items: flex-start; }
  .event-intro h2 { font-size: 21px; }
  .event-intro p:last-child { font-size: 12px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric.card, .guest-metrics .metric { padding: 16px; min-height: 0; }
  .metric p, .metric-top p { font-size: 12px; }
  .metric strong, .guest-metrics .metric strong { font-size: 28px; }
  .metric > small, .guest-metrics .metric > small { font-size: 11px; }
  .metric-icon { padding: 6px; }
  .next-step { flex-wrap: wrap; padding: 20px; gap: 12px; }
  .next-step > div { min-width: 0; flex: 1 1 190px; }
  .next-step > a { margin-left: 0; width: 100%; }
  .next-step h2 { font-size: 17px; }
  .toolbar { align-items: stretch; }
  .toolbar > .actions { width: 100%; }
  .toolbar .actions > button, .toolbar .actions > .button-link { flex: 1 1 auto; }
  .inline-form { align-items: stretch; gap: 14px; }
  .inline-form > label, .guest-filters .inline-form label, .guest-filters .inline-form label:first-child { min-width: 0; flex-basis: 100%; width: 100%; }
  .inline-form > button { width: 100%; }
  .guest-filters, .guest-send-bar { padding: 16px; }
  .record-table tr { padding: 18px; background: #fff; }
  .record-table td { padding: 9px 0; font-size: 13px; }
  .record-table td:before { font-size: 10px; color: var(--muted); font-weight: 600; }
  .record-table td:empty { display: none; }
  .setup-nav a, .invite-tabs a { padding: 10px 12px; font-size: 12px; }
  .page-workflow { gap: 6px; }
  .page-workflow button { font-size: 12px; padding: 11px 8px; gap: 6px; justify-content: center; }
  .page-workflow button span { width: 22px; height: 22px; flex: 0 0 22px; }
  .settings-intro h2 { font-size: 21px; }
  .setting-row { gap: 14px; padding: 20px 0; }
  .setting-row button { width: 100%; }
  .setting-row .confirm-setting { margin: 0 !important; }
  .guest-summary-grid > div { padding: 14px; }
  .profile-summary { gap: 8px; }
  .profile-summary > div { padding: 12px 10px; }
  .profile-summary strong { font-size: 24px; }
  .profile-summary span { font-size: 11px; }
  .invite-intro { padding: 24px; }
  .invite-intro h2 { font-size: 23px; }
  .invite-summary { gap: 10px; }
  .invite-message-main { min-width: 0; }
  .email-editor-card { padding: 18px; }
  .email-panel-heading { padding: 14px; }
  .email-panel-heading .actions { width: 100%; }
  .designer-toolbar { padding: 16px; }
  .designer-toolbar .actions { width: 100%; }
  .designer-preview-controls, .designer-tools { padding: 16px; }
  .designer-savebar, .guest-savebar { padding: 14px; }
  dialog { padding: 22px 18px; width: calc(100vw - 24px); border-radius: 14px; }
  .dialog-heading { gap: 12px; }
  .dialog-heading h2 { font-size: 21px; }
  .dialog-heading > button { min-height: 40px; padding: 8px 12px; }
  .guest-panel-body main { padding: 16px; }
  .account-card { padding: 26px 22px; }
  .page-footer { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.guest-select-mobile { display: none; }
@media (max-width: 600px) {
  .guest-select-mobile { display: flex; width: 100%; margin: 0 0 6px; font-size: 13px; }
}
.badge[data-status=awaiting_documents], .badge[data-status=processing], .badge[data-status=validating] { background: #fff4de; color: #7d5819; }
.badge[data-status=suspended] { background: #fcece8; color: #9b382d; }
.badge[data-status=expired], .badge[data-status=inactive] { background: #edf0ef; color: #52655b; }
dialog form > .actions:last-child { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); justify-content: flex-end; }
.table-wrap { scrollbar-color: #b5c8ba #f0f5f1; scrollbar-width: thin; }
@media (max-width: 600px) {
  dialog form > .actions:last-child > button:not(.secondary), .dialog-footer > button:not(.secondary) { flex: 1 1 100%; width: 100%; }
  .email-preview-stage iframe { height: 420px; }
}
.section-heading .badge, .event-cover .badge { font-size: 11px; }

.notice-warning { background: #fff8e9; border-color: #e7d7b5; color: #775b28; }

/* Event WhatsApp template editor: writing, provider setup, then availability. */
.wa-workspace { scroll-margin-top: 90px; }
.wa-editor-heading, .wa-preview-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.wa-editor-heading h2 { margin:12px 0 8px; }
.wa-editor-heading > .badge { margin-top:12px; flex-shrink:0; }
.wa-editor-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr); align-items:start; gap:24px; }
.wa-editor-main { min-width:0; display:grid; gap:20px; }
.wa-step.card, .wa-sample.card { margin:0; }
.wa-step-heading { display:flex; gap:12px; align-items:flex-start; margin-bottom:22px; }
.wa-step-heading > span { display:grid; place-items:center; flex:0 0 30px; height:30px; border-radius:50%; background:#e8f1ec; color:#24523f; font-weight:700; font-size:14px; }
.wa-step-heading h3, .wa-preview-heading h3 { margin:2px 0 6px; }
.wa-step-heading p { margin:0; }
.wa-step label { margin-bottom:16px; }
.wa-step .form-grid { align-items:start; }
.wa-step textarea[name=body] { line-height:1.7; min-height:210px; resize:vertical; }
.wa-step .form-disclosure { margin:12px 0 0; }
.wa-step h4 { margin:24px 0 8px; }
.wa-parameter-row { display:flex; align-items:flex-end; gap:12px; margin-bottom:16px; }
.wa-parameter-row label { flex:1; min-width:0; margin:0; }
.wa-parameter-row button { flex:0 0 auto; min-height:44px; }
.wa-add-field { display:flex; align-items:flex-end; gap:12px; padding-top:12px; }
.wa-add-field label { flex:1; min-width:0; margin:0; }
.wa-add-field button { min-height:44px; flex-shrink:0; }
.wa-fields-empty { padding:14px; background:#f4f7f5; border:1px dashed #cbd9d1; border-radius:10px; font-size:13px; color:#56675d; }
.wa-json { font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; white-space:pre; overflow:auto; }
.wa-approval { background:#f2f7f4; padding:16px; border-radius:10px; margin:0 0 20px; }
.wa-approval .check { align-items:flex-start; margin:0 0 8px; }
.wa-approval small { display:block; color:#586b60; }
.wa-save-actions { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; border-top:1px solid var(--line); padding-top:20px; }
.wa-sample { position:sticky; top:92px; min-width:0; }
.wa-sample > button { width:100%; }
.wa-preview-heading { margin-bottom:8px; }
.wa-preview-heading .badge { white-space:normal; text-align:center; }
.wa-phone { border:1px solid #d6e2da; border-radius:14px; overflow:hidden; margin:18px 0; }
.wa-phone-header { display:flex; align-items:center; gap:10px; padding:16px; background:#214d3e; color:white; }
.wa-phone-header > div { min-width:0; }
.wa-phone-header strong { display:block; overflow-wrap:anywhere; font-size:14px; }
.wa-phone-header small { display:block; color:#d0e2d8; font-size:11px; margin-top:4px; }
.wa-avatar { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:50%; background:#ffffff24; font-weight:700; }
.wa-phone-content { padding:20px 14px; background:#edf0e8; min-height:220px; }
.wa-bubble { background:white; padding:16px; border-radius:0 12px 12px; box-shadow:0 2px 3px #20392d0a; }
.wa-bubble p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.7; margin:0 0 12px; max-height:480px; overflow:auto; }
.wa-bubble small { display:block; text-align:right; color:#64756b; font-size:10px; }
.wa-preview-note { font-size:12px; line-height:1.6; }
@media(max-width:1100px) { .wa-editor-layout { grid-template-columns:minmax(0,1fr); } .wa-sample { position:static; } }
@media(max-width:600px) { .wa-editor-heading { flex-wrap:wrap; } .wa-editor-heading > .badge { margin:0; } .wa-step.card,.wa-sample.card { padding:18px; } .wa-add-field { align-items:stretch; flex-direction:column; } .wa-save-actions > * { flex:1 1 100%; text-align:center; } .wa-parameter-row { gap:8px; } .wa-parameter-row button { padding:8px; font-size:12px; } }
