/* Admin surface styles */
:root {
    --bg: #f4f6fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --border: #e5e7eb;
    --text: #0f172a;
    --muted: #667085;
    --primary: #2563eb;
    --primary-dark: #0f172a;
    --danger: #dc2626;
    --success-bg: #ecfdf3;
    --success-text: #065f46;
    --error-bg: #fef2f2;
    --error-text: #991b1b;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(15, 23, 42, .06);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, .05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .06), transparent 24%),
        linear-gradient(180deg, #f7f9fc 0%, #f3f5fa 100%);
    color: var(--text);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
code { background: #eef2ff; padding: 2px 6px; border-radius: 8px; }
img { max-width: 100%; display: block; }

.shell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
    width: 304px;
    background: linear-gradient(180deg, #081225 0%, #0f1a34 100%);
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}
.sidebar-inner {
    height: 100%;
    overflow-y: auto;
    padding: 24px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sidebar-inner::-webkit-scrollbar { width: 10px; }
.sidebar-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; }

.brand-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    flex: 0 0 auto;
}
.brand-logo-fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
}
.brand-copy { min-width: 0; }
.brand {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}
.sidebar-subtitle {
    margin-top: 4px;
    color: rgba(226, 232, 240, .78);
    font-size: 13px;
    line-height: 1.45;
}

.workspace-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}
.workspace-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(226, 232, 240, .56);
    margin-bottom: 6px;
}
.workspace-user {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.workspace-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.workspace-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 12px;
    color: rgba(255,255,255,.82);
}

.nav-group {
    display: grid;
    gap: 10px;
}
.nav-group-title {
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, .52);
}
.nav {
    display: grid;
    gap: 4px;
}
.nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    color: rgba(255,255,255,.86);
    border: 1px solid transparent;
    transition: .18s ease;
    font-weight: 600;
    line-height: 1.3;
}
.nav a:hover {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.06);
    color: #fff;
}
.nav a.is-active {
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
    border-color: rgba(255,255,255,.14);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 8px;
}
.logout-form { margin: 0; }

.main {
    flex: 1;
    min-width: 0;
    padding: 24px 28px 36px;
}
.main-auth {
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    place-items: center;
}
.content-wrap { min-width: 0; }

.utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: var(--shadow-soft);
}
.utility-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.utility-meta {
    margin-top: 4px;
    font-size: 14px;
    color: #344054;
    font-weight: 600;
}
.utility-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.auth-card, .panel, .stat-card {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.auth-card { width: 100%; max-width: 460px; padding: 28px; }
.auth-card-wide { max-width: 720px; }

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.page-header.simple-header { margin-bottom: 18px; }
.page-header h1 {
    margin: 0 0 6px;
    font-size: 42px;
    letter-spacing: -0.045em;
    line-height: 1.04;
}
.page-header h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.03em; }
.page-header p { margin: 0; }

.panel {
    padding: 24px;
    margin-bottom: 24px;
}
.compact-panel { padding: 22px; }
.panel h3 {
    margin: 0 0 10px;
    font-size: 18px;
    letter-spacing: -0.03em;
}
.panel-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.tone-warning { border-color: rgba(245, 158, 11, .25); background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255, 251, 235, .92)); }
.tone-danger { border-color: rgba(239, 68, 68, .18); background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(254, 242, 242, .92)); }
.tone-success { border-color: rgba(16, 185, 129, .18); background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(236, 253, 243, .92)); }
.tone-neutral { background: rgba(255,255,255,.92); }

.form-grid { display: grid; gap: 18px; }
.grid-2, .feature-grid, .funnel-grid, .stats-grid {
    display: grid;
    gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.funnel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8deea;
    border-radius: 14px;
    font: inherit;
    background: #fff;
    color: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, .54);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}
textarea { min-height: 120px; resize: vertical; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 82%, #1d4ed8));
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .16);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-secondary {
    background: #fff;
    color: #0f172a;
    border-color: #d8deea;
    box-shadow: none;
}
.btn-danger { background: linear-gradient(180deg, #ef4444, #dc2626); }
.btn-full { width: 100%; }

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}
.table thead th {
    text-align: left;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 16px 12px;
    border-bottom: 1px solid #e9edf5;
}
.table tbody td {
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}
.table tbody tr:hover td { background: rgba(37, 99, 235, .02); }
.text-right { text-align: right; }

.badge, .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #eef2ff;
    color: #3730a3;
}
.status-pill.tone-danger { background: #fef2f2; color: #b42318; border: none; }
.status-pill.tone-warning { background: #fff7ed; color: #b45309; border: none; }
.status-pill.tone-success { background: #ecfdf3; color: #027a48; border: none; }
.status-pill.tone-neutral { background: #eff4ff; color: #1d4ed8; border: none; }

.alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert ul { margin: 8px 0 0 18px; padding: 0; }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: #bbf7d0; }
.alert-error { background: var(--error-bg); color: var(--error-text); border-color: #fecaca; }

.stat-card {
    padding: 22px 20px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.stat-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.stat-value {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}
.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    gap: 20px;
    align-items: stretch;
}
.hero-panel .hero-copy h2 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.06;
    letter-spacing: -0.05em;
}
.hero-panel .hero-copy p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.65;
    color: #475467;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-summary {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #e8edf7;
    background: linear-gradient(180deg, #fbfdff, #f6f8fc);
}
.hero-summary-grid {
    display: grid;
    gap: 14px;
}
.hero-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}
.hero-summary-item:last-child { padding-bottom: 0; border-bottom: 0; }
.hero-summary-item strong { font-size: 15px; }
.hero-summary-item span { color: var(--muted); font-size: 13px; }
.mini-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    margin-top: 16px;
}
.mini-stat-row div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(15, 23, 42, .05);
}
.mini-stat-row strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.04em;
}
.mini-stat-row span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.list-tight {
    margin: 0;
    padding-left: 18px;
}
.list-tight li + li { margin-top: 12px; }
.action-list-clean li::marker { color: rgba(37,99,235,.6); }
.empty-state {
    padding: 28px;
    border-radius: 18px;
    border: 1px dashed #d7deea;
    background: linear-gradient(180deg, #fbfcfe, #f8fafc);
}
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { margin: 0; }

.progress-line {
    margin: 12px 0 10px;
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}
.progress-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
}
.funnel-card {
    padding: 18px;
    border: 1px solid #e7ebf3;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fbfcff);
}
.funnel-value {
    display: block;
    font-size: 28px;
    letter-spacing: -0.04em;
    margin: 4px 0 2px;
}
.small-text { font-size: 12px; }
.muted { color: var(--muted); }
.mb-0 { margin-bottom: 0 !important; }

@media (max-width: 1280px) {
    .stats-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid, .funnel-grid, .hero-panel { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    .shell { display: block; }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .main { padding: 18px; }
    .page-header { flex-direction: column; align-items: stretch; }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .utility-bar { flex-direction: column; align-items: stretch; }
    .utility-actions { width: 100%; }
    .utility-actions .btn { flex: 1 1 auto; }
    .stats-grid-4 { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 32px; }
    .hero-panel .hero-copy h2 { font-size: 28px; }
}

/* continue-media-image-webhook-polish */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
.main, .content, .panel, .glass-panel, .event-editor-card, .event-locale, .stat-card, .module-card, .table-shell { min-width: 0; }
.page-header, .section-head, .event-card-head, .event-locale-head, .utility-bar, .detail-grid, .split-grid, .event-locale-grid, .grid-2 { min-width: 0; }
.page-header h1, .page-hero-copy, .event-card-title, .event-card-copy, .event-locale-meta, .stat-label, .stat-value, .module-card span, .detail-list dd, .detail-list dt, .table td, .table th, code, .code-block, .chip, .small-text, .muted {
    overflow-wrap: anywhere;
    word-break: normal;
}
.table-shell { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; }
.table { min-width: 760px; }
.code-block, code { white-space: pre-wrap; }
input, select, textarea { max-width: 100%; }
.event-editor-form input[type="text"][readonly] { font-size: 12px; color: var(--muted); }
.media-preview-card { min-width: 0; flex-wrap: wrap; }
.media-preview-card > div:first-child { min-width: 0; flex: 1 1 220px; }
.media-preview-card .actions { flex: 0 0 auto; }
.event-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.event-form-actions .btn { min-width: 180px; }
.checkbox-row { min-width: 0; align-items: flex-start; }
.actions.wrap-actions, .page-actions-wrap { min-width: 0; gap: 10px; }
.actions.wrap-actions .btn, .page-actions-wrap .btn { white-space: normal; text-align: center; }
@media (max-width: 980px) {
    .main { width: 100%; max-width: 100vw; }
    .event-locale-grid, .detail-grid, .split-grid, .grid-2 { grid-template-columns: minmax(0, 1fr) !important; }
    .event-form-actions .btn { width: 100%; }
    .table { min-width: 680px; }
}
@media (max-width: 560px) {
    .main { padding-left: 12px; padding-right: 12px; }
    .panel, .glass-panel, .event-editor-card { padding: 16px; border-radius: 16px; }
    .page-header h1 { font-size: 28px; }
    .btn, .btn-secondary { width: 100%; }
    .media-preview-card .actions, .media-preview-card .actions .btn { width: 100%; }
}

/* 2026-04-25 reporting/webhook polish */
.inline-filter-form select {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .35);
    padding: 0 14px;
    background: rgba(255,255,255,.85);
    color: var(--ink, #0f172a);
    font-weight: 700;
    max-width: min(100%, 360px);
}
.scope-note { margin-top: 8px; }
.delivery-snapshot-grid { margin-top: 14px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.table td code,
.table th code,
.key-detail-list code {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.badge-read,
.badge-success { background: rgba(16,185,129,.12); color: #047857; }
.badge-delivered,
.badge-info { background: rgba(14,165,233,.12); color: #0369a1; }
.badge-failed { background: rgba(239,68,68,.12); color: #b91c1c; }
.badge-muted { background: rgba(148,163,184,.16); color: #475569; }
@media (max-width: 860px) {
    .page-actions.actions,
    .page-actions .inline-filter-form,
    .page-actions .inline-filter-form select { width: 100%; }
    .page-actions form .btn { width: 100%; }
}

/* 2026-04-25 admin repolish + technical detail toggles */
body {
    background: linear-gradient(180deg, #f6f7fb 0%, #eef2f7 100%);
}
.shell { align-items: stretch; }
.sidebar {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    height: 100dvh !important;
    box-shadow: 16px 0 44px rgba(15, 23, 42, .12);
}
.main {
    margin-left: 304px;
    width: calc(100% - 304px);
    padding: 28px 32px 42px;
}
.utility-bar, .page-hero, .glass-panel, .glass-card, .panel, .stat-card {
    border: 1px solid rgba(15, 23, 42, .08) !important;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .055) !important;
}
.page-hero {
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,250,252,.82));
    border-radius: 26px;
    padding: 24px 26px;
    margin-bottom: 22px;
}
.page-hero h1 { letter-spacing: -.055em; }
.panel, .glass-panel, .stat-card, .glass-card { border-radius: 22px !important; }
.stat-card { min-height: 132px; }
.stat-value { letter-spacing: -.055em; }
.btn {
    border-radius: 14px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    white-space: nowrap;
}
.btn-small { min-height: 36px; padding: 8px 12px; font-size: 13px; }
.btn-secondary { background: #fff; }
.filter-bar, .compact-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: end;
}
.filter-actions, .filter-actions-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.table-shell {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
}
.ops-table {
    min-width: 1040px;
    table-layout: auto;
}
.ops-table th,
.ops-table td {
    vertical-align: top;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.ops-table code {
    display: inline-block;
    max-width: 320px;
    white-space: normal;
    overflow-wrap: anywhere;
}
.technical-col { display: none; }
body.show-technical-details .technical-col { display: table-cell; }
body.show-technical-details section.technical-col,
body.show-technical-details div.technical-col { display: block; }
.technical-toggle {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    user-select: none;
}
.technical-toggle input { width: 16px; height: 16px; }
.badge-message {
    background: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
    cursor: help;
}
.badge-message::before { content: '●'; font-size: 9px; margin-right: 6px; }
.message-preview-soft {
    max-width: 360px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}
.webhook-log-table th:nth-child(6),
.webhook-log-table td:nth-child(6),
.inbox-table th:nth-child(5),
.inbox-table td:nth-child(5) { min-width: 180px; }
.events-section-panel { padding: 24px !important; }
.event-card-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
}
.event-card-premium {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 16px 40px rgba(15,23,42,.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.event-card-premium::after {
    content: '';
    position: absolute;
    inset: auto -40px -60px auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(37,99,235,.10), transparent 64%);
    pointer-events: none;
}
.event-card-topline, .event-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.event-card-main { flex: 1; min-width: 0; }
.event-card-main h3,
.event-card-body h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -.035em;
}
.event-card-main h3 a { color: var(--text); }
.event-meta-row { color: var(--muted); font-weight: 650; font-size: 14px; }
.event-card-actions-premium, .event-card-actions {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.status-pill.tone-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.status-pill.tone-muted { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
.status-pill.tone-success { background: #ecfdf3; color: #047857; border-color: #bbf7d0; }
.status-pill.tone-neutral { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
@media (max-width: 980px) {
    .sidebar { position: static !important; width: 100%; height: auto !important; }
    .main { margin-left: 0; width: 100%; padding: 18px; }
    .shell { display: block; }
    .event-card-grid-premium { grid-template-columns: 1fr; }
    .page-hero { padding: 20px; }
}

/* 2026-04-25 event detail repolish */
.event-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    padding: 28px !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(37,99,235,.10), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
}
.event-detail-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
.event-detail-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -.065em;
    color: #071329;
}
.event-detail-subtitle {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 650;
}
.event-detail-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 560px;
}
.event-detail-stats { margin-bottom: 18px; }
.event-detail-stats .stat-card {
    min-height: 138px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
}
.event-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}
.event-detail-layout > .panel { margin-bottom: 0; }
.section-head-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.section-head-inline h3 { margin-bottom: 0; }
.premium-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}
.premium-detail-list div {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #e9eef6;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
}
.premium-detail-list dt {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
}
.premium-detail-list dd {
    margin: 0;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    color: #111827;
    overflow-wrap: anywhere;
}
.media-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.media-status-tile {
    min-height: 96px;
    padding: 15px;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.media-status-tile span {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
}
.media-status-tile strong {
    color: #94a3b8;
}
.media-status-tile a {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 800;
    font-size: 13px;
}
.media-status-tile.is-ready {
    border-color: rgba(16,185,129,.22);
    background: linear-gradient(180deg, #fff, #f0fdf4);
}
.event-settings-form {
    display: grid;
    gap: 18px;
}
.toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.toggle-grid .checkbox-row {
    min-height: 54px;
    padding: 13px 14px;
    border: 1px solid #e8eef6;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    display: flex;
    align-items: center;
    gap: 10px;
}
.toggle-grid .checkbox-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.event-settings-fields { gap: 14px; }
.form-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.event-flow-panel h3 { margin-bottom: 16px; }
.event-action-card-grid {
    display: grid;
    gap: 12px;
}
.event-action-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: #0f172a;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-action-card:hover {
    transform: translateY(-1px);
    border-color: rgba(37,99,235,.22);
    box-shadow: 0 14px 30px rgba(15,23,42,.06);
}
.event-action-card strong {
    font-size: 15px;
    letter-spacing: -.02em;
}
.event-action-card span {
    color: var(--muted);
    line-height: 1.45;
    font-size: 13px;
}
@media (max-width: 1180px) {
    .event-detail-hero,
    .event-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .event-detail-actions { justify-content: flex-start; max-width: none; }
}
@media (max-width: 760px) {
    .premium-detail-list,
    .media-status-grid,
    .toggle-grid { grid-template-columns: minmax(0, 1fr); }
    .event-detail-hero { padding: 20px !important; }
    .event-detail-actions .btn { width: 100%; }
    .form-footer-actions .btn { width: 100%; }
}

/* guest import skipped row details */
.import-detail-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, .24);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255, 251, 235, .92));
}
.import-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.import-detail-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.import-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(15, 23, 42, .06);
}
.import-row-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}
.import-row-copy { min-width: 0; }

/* 2026-04-27 guest list polish + filters */
.guest-list-panel {
    padding: 26px !important;
}
.guest-list-head {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.guest-list-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.guest-filter-card {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) repeat(5, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    margin: 0 0 14px;
    border: 1px solid rgba(15, 23, 42, .075);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.84));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.guest-filter-card label {
    min-width: 0;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
    color: #52627a;
}
.guest-filter-card input,
.guest-filter-card select {
    min-height: 44px;
    border-radius: 14px;
    background-color: rgba(255,255,255,.94);
    text-transform: none;
    letter-spacing: 0;
    color: #0f172a;
}
.guest-filter-actions {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
}
.guest-filter-actions .btn {
    min-height: 44px;
    padding-inline: 15px;
}
.guest-table-note {
    margin: 8px 2px 12px;
}
.guest-table-shell {
    border: 1px solid rgba(15, 23, 42, .06);
    background: rgba(255,255,255,.62);
}
.guest-table {
    min-width: 1180px;
}
.guest-table .select-col {
    width: 44px;
    text-align: center;
}
.guest-table tbody td {
    padding-top: 18px;
    padding-bottom: 18px;
}
.guest-table tbody td:nth-child(2) strong {
    color: #071329;
    letter-spacing: -.015em;
}
.guest-table .status-pill {
    white-space: nowrap;
}
@media (max-width: 1380px) {
    .guest-filter-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .guest-filter-actions {
        justify-content: flex-start;
    }
}
@media (max-width: 820px) {
    .guest-list-panel {
        padding: 18px !important;
    }
    .guest-list-head {
        display: grid;
    }
    .guest-list-meta {
        justify-content: flex-start;
    }
    .guest-filter-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }
    .guest-filter-actions,
    .guest-filter-actions .btn {
        width: 100%;
    }
}


/* 2026-04-28 RSVP response filters + export */
.rsvp-page-header,
.rsvp-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.rsvp-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.inline-export-form {
    margin: 0;
    display: inline-flex;
}
.rsvp-list-panel {
    padding: 24px !important;
}
.rsvp-filter-head {
    margin-bottom: 16px;
}
.rsvp-filter-head h2 {
    margin: 0 0 4px;
    font-size: 18px;
    letter-spacing: -.025em;
}
.rsvp-filter-head p {
    margin: 0;
}
.rsvp-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}
.rsvp-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
    transition: .16s ease;
}
.rsvp-filter-chip strong {
    min-width: 26px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
}
.rsvp-filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, .22);
}
.rsvp-filter-chip.is-active {
    background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 82%, #1d4ed8));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .18);
}
.rsvp-filter-chip.is-active strong {
    background: rgba(255,255,255,.2);
    color: #fff;
}
.rsvp-table-shell {
    border: 1px solid rgba(15, 23, 42, .06);
    background: rgba(255,255,255,.62);
}
.rsvp-table {
    min-width: 1020px;
}
.rsvp-table tbody td {
    padding-top: 15px;
    padding-bottom: 15px;
}
.rsvp-partial-note {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}
@media (max-width: 760px) {
    .rsvp-page-header,
    .rsvp-filter-head {
        display: grid;
    }
    .rsvp-header-actions,
    .rsvp-header-actions .btn,
    .inline-export-form {
        width: 100%;
    }
}
