@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #FAF9F7;
    color: #2B2B2B;
}
h1, h2, h3 {
    font-family: "Playfair Display", serif;
}
.shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.sidebar {
    background: linear-gradient(180deg, #2B2B2B, #3A2F2F);
    color: #e5e7eb;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img {
    width: 34px;
    height: 34px;
}
.brand-title { font-weight: 700; font-size: 1.05rem; }
.brand-sub { color: #9ca3af; font-size: 0.85rem; }
.nav { display: flex; flex-direction: column; gap: 8px; }
.nav { flex: 1; }
.nav a {
    color: #d1d5db;
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 8px;
}
.nav a:hover { background: #1f2937; color: #ffffff; }
.nav a.is-active {
    background: linear-gradient(135deg, #C6A96B, #A88E5A);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(198, 169, 107, 0.28);
}
.nav a.is-active::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 999px;
    background: #ffffff;
    vertical-align: middle;
}
.nav a.nav-super-link {
    background: linear-gradient(135deg, #C6A96B, #A88E5A);
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 10px rgba(198, 169, 107, 0.35);
}
.nav a.nav-super-link:hover {
    background: linear-gradient(135deg, #B89A5F, #92784A);
    color: #ffffff;
}
.nav-logout-form { margin-top: 0; }
.nav-badge { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; line-height: 1; }

/* ── Feedback: filter bar ── */
.fb-filter-bar { display: flex; flex-direction: column; margin-bottom: 20px; gap: 8px; }
.fb-fg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-fg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: #fff; border: 1px solid #d1d5db; border-radius: 999px; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; font-family: inherit; white-space: nowrap; }
.fb-fg-btn:hover { border-color: #9ca3af; background: #f9fafb; }
.fb-fg-btn.is-active { background: #fdf8f0; border-color: #C6A96B; color: #92400e; }
.fb-fg-btn.is-open:not(.is-active) { background: #f3f4f6; border-color: #9ca3af; }
.fb-fg-btn .fb-caret { font-size: 9px; opacity: .4; transition: transform .15s; }
.fb-fg-btn.is-open .fb-caret { transform: rotate(180deg); }
.fb-fg-opts { display: none; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 12px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; }
.fb-fg-opts.is-open { display: flex; }
.fb-fg-opt { padding: 6px 14px; border: 1px solid #d1d5db; background: #fff; border-radius: 999px; font-size: 13px; cursor: pointer; color: #374151; white-space: nowrap; font-family: inherit; }
.fb-fg-opt:hover { border-color: #9ca3af; background: #f3f4f6; }
.fb-fg-opt.is-sel { border-color: #C6A96B; background: #fdf8f0; color: #92400e; font-weight: 600; }
.fb-fg-opt.is-clear { color: #9ca3af; border-style: dashed; }

/* ── Feedback: venue submit box ── */
.fb-venue-submit { background: #f8f9fb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; display: grid; gap: 12px; }
.fb-venue-submit textarea { width: 100%; min-height: 72px; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; resize: vertical; box-sizing: border-box; }
.fb-venue-submit select { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; background: #fff; }

/* ── Feedback: couple submit form ── */
.fb-submit-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; display: grid; gap: 16px; }
.fb-submit-form textarea { width: 100%; min-height: 120px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; resize: vertical; box-sizing: border-box; font-family: inherit; line-height: 1.5; }
.fb-submit-form textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.fb-submit-form select { width: 100%; display: block; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: #fff; font-family: inherit; color: #111827; cursor: pointer; box-sizing: border-box; }
.fb-submit-form select:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.fb-submit-form label { display: block; font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 6px; }
.fb-char-hint { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* ── UI alerts ── */
.ui-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.ui-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.ui-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ── Feedback: email-style list ── */
.fb-empty { text-align: center; padding: 48px 24px; color: #9ca3af; font-size: 15px; }
.fb-list { border: 1px solid #e5e7eb; border-radius: 12px; overflow: visible; }
.fb-row { border-bottom: 1px solid #f3f4f6; background: #fff; }
.fb-row:last-child { border-bottom: none; }
.fb-row-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px 18px; align-items: center; cursor: pointer; user-select: none; }
.fb-row-head:hover { background: #fafafa; }
.fb-row.is-pending .fb-row-head { background: #fffcf5; }
.fb-row.is-pending .fb-row-head:hover { background: #fef9ed; }
.fb-row-left { min-width: 0; }
.fb-row-title { font-size: 14px; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-row.is-resolved .fb-row-title { font-weight: 500; color: #6b7280; }
.fb-row-sub { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.fb-row-preview { font-size: 13px; color: #6b7280; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 480px; }
.fb-row-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.fb-row-date { font-size: 11px; color: #9ca3af; white-space: nowrap; }

/* ── Feedback: inline field buttons ── */
.fb-inline { position: relative; }
.fb-inline-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; cursor: pointer; border: 1px solid transparent; white-space: nowrap; background: none; }
.fb-inline-btn:hover { opacity: .85; }
.fb-inline-btn .fb-caret { font-size: 8px; opacity: .6; }
/* priority variants */
.fb-inline-btn.p-critical { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.fb-inline-btn.p-medium   { background: #fffbeb; border-color: #fcd34d; color: #d97706; }
.fb-inline-btn.p-low      { background: #f9fafb; border-color: #d1d5db; color: #6b7280; }
.fb-inline-btn.p-none     { background: #f9fafb; border-color: #e5e7eb; color: #9ca3af; }
/* status variants */
.fb-inline-btn.s-pending   { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.fb-inline-btn.s-resolved  { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.fb-inline-btn.s-escalated { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }
.fb-inline-btn.s-snoozed   { background: #f3f4f6; border-color: #d1d5db; color: #6b7280; }
/* category variants */
.fb-inline-btn.cat { background: #f0f4ff; border-color: #bfdbfe; color: #1d4ed8; }

.fb-inline-drop { display: none; position: absolute; right: 0; top: calc(100% + 5px); min-width: 170px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.1); z-index: 200; padding: 5px; }
.fb-inline-drop.is-open { display: block; }
.fb-drop-opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; background: none; border: none; border-radius: 7px; font-size: 13px; text-align: left; cursor: pointer; color: #374151; }
.fb-drop-opt:hover { background: #f3f4f6; }
.fb-drop-opt.is-danger { color: #dc2626; }
.fb-drop-opt.is-warning { color: #d97706; }
.fb-drop-opt.is-muted { color: #6b7280; }
.fb-drop-opt.is-purple { color: #5b21b6; }
.fb-drop-opt-icon { width: 14px; text-align: center; flex-shrink: 0; }
.fb-drop-divider { height: 1px; background: #f3f4f6; margin: 4px 0; }

/* ── Feedback: expanded body ── */
.fb-row-body { display: none; padding: 14px 18px 18px; border-top: 1px solid #f3f4f6; background: #fafafa; }
.fb-row-body.is-open { display: block; }
.fb-row-body-msg { font-size: 14px; color: #374151; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.fb-row-body-notice { font-size: 12px; color: #16a34a; margin-top: 8px; font-weight: 600; }
.fb-row-body-merged { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #e5e7eb; display: flex; flex-direction: column; gap: 12px; }
.fb-merged-label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.fb-merged-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; }
.fb-merged-item-meta { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.fb-merged-item-msg { font-size: 13px; color: #374151; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* ── Merge mode ── */
.fb-merge-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; font-family: inherit; }
.fb-merge-btn:hover { border-color: #9ca3af; background: #f9fafb; }
.fb-merge-btn.is-active { background: #eef2ff; border-color: #818cf8; color: #4338ca; }
.fb-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fb-list-header h2 { font-size: 14px; font-weight: 700; color: #374151; margin: 0; }
.fb-drag-handle { display: none; color: #d1d5db; font-size: 16px; cursor: grab; padding: 0 6px; line-height: 1; flex-shrink: 0; }
.merge-mode .fb-drag-handle { display: block; }
.merge-mode .fb-row { cursor: grab; }
.merge-mode .fb-row.is-dragging { opacity: .45; outline: 2px dashed #818cf8; outline-offset: -2px; }
.merge-mode .fb-row.is-drag-over { outline: 2px solid #4338ca; outline-offset: -2px; background: #eef2ff !important; }
.fb-row[draggable="true"] { user-select: none; }

/* ── Merge confirm modal ── */
.fb-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; align-items: center; justify-content: center; }
.fb-modal-overlay.is-open { display: flex; }
.fb-modal { background: #fff; border-radius: 16px; padding: 28px 28px 24px; max-width: 500px; width: 92%; box-shadow: 0 24px 64px rgba(0,0,0,.18); }
.fb-modal-title { font-size: 17px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.fb-modal-sub { font-size: 13px; color: #6b7280; margin: 0 0 20px; line-height: 1.5; }
.fb-modal-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.fb-modal-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; }
.fb-modal-card-name { font-weight: 600; font-size: 13px; color: #111827; margin-bottom: 4px; }
.fb-modal-card-msg { font-size: 13px; color: #6b7280; line-height: 1.5; }
.fb-modal-arrow { text-align: center; font-size: 18px; color: #9ca3af; line-height: 1; margin: 2px 0; }
.fb-modal-notice { font-size: 12px; color: #9ca3af; margin: 12px 0 20px; }
.fb-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.fb-modal-cancel { padding: 8px 18px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; font-family: inherit; }
.fb-modal-cancel:hover { background: #f3f4f6; }
.fb-modal-confirm { padding: 8px 18px; background: #4338ca; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; font-family: inherit; }
.fb-modal-confirm:hover { background: #3730a3; }
.main { padding: 24px; display: grid; gap: 12px; align-content: start; }
.mobile-nav-toggle { display: none; }
.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.topbar-main {
    flex: 1 1 280px;
    min-width: 0;
}
.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 1 auto;
}
.topbar-action-btn {
    white-space: nowrap;
}
@media (max-width: 640px) {
    .topbar-actions {
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
    }
    .topbar-action-btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}
.topbar h1 { margin: 0 0 4px; font-size: 1.8rem; }
.topbar p { margin: 0; color: #64748b; }
.page-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin: 0 0 2px;
}
.page-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}
.page-breadcrumbs a:hover {
    text-decoration: underline;
}
.page-breadcrumbs span[aria-current="page"] {
    color: #334155;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #8B7E74;
    font-size: 0.9rem;
    font-weight: 600;
}
.breadcrumbs a {
    color: #5A3E4D;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span[aria-current="page"] {
    color: #2B2B2B;
}
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.quick-actions .btn {
    width: 100%;
    min-height: 42px;
}
.timezone-note { margin-top: 8px !important; font-size: 0.92rem; }
.kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.kpi, .panel {
    background: #ffffff;
    border: 1px solid #EDE7DF;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.kpi { padding: 14px; }
.kpi h3 { margin: 0; color: #64748b; font-size: 0.9rem; font-weight: 600; }
.kpi p { margin: 8px 0 0; font-size: 1.8rem; font-weight: 700; color: #5A3E4D; }
.kpis .kpi {
    padding: 10px 12px;
}
.kpis .kpi h3 {
    margin-bottom: 4px;
    line-height: 1.2;
}
.kpis .kpi p {
    margin: 0;
    line-height: 1.1;
}
.editable-kpi {
    position: relative;
    cursor: pointer;
}
.kpi-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}
.kpi-edit-btn:hover {
    background: #F5F1EC;
}
.kpi-edit-form {
    margin-top: 10px;
    border-top: 1px solid #EDE7DF;
    padding-top: 10px;
}
.kpi-edit-form label {
    display: block;
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: #64748b;
}
.kpi-edit-form input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}
.panel { padding: 14px; }
.panel#event-management,
.panel#settings {
    padding: 10px 12px;
}
.panel-plain {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.panel-head-stacked {
    align-items: stretch;
    flex-direction: column;
}
.panel-head h2 { margin: 0; font-size: 1.1rem; }
.collapsible-body {
    margin-top: 8px;
}
.collapsible-panel.is-collapsed .collapsible-body {
    display: none;
}
.collapsible-panel .panel-head {
    cursor: pointer;
}
.panel-caret {
    font-weight: 700;
    color: #64748b;
    min-width: 14px;
    text-align: center;
    user-select: none;
}
.details-section-stack {
    display: grid;
    gap: 18px;
}
.details-panel {
    border-radius: 16px;
    padding: 18px;
}
.sharing-panel {
    background:
        linear-gradient(180deg, rgba(198, 169, 107, 0.08), rgba(250, 249, 247, 0) 46%),
        #ffffff;
}
.panel-subtitle {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 0.92rem;
}
.section-divider {
    height: 1px;
    margin: 18px 0;
    background: #EDE7DF;
}
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.info-card,
.share-card {
    background: #ffffff;
    border: 1px solid #EDE7DF;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.info-card-champagne,
.share-card-champagne {
    background:
        radial-gradient(circle at 12% 12%, rgba(198, 169, 107, 0.18), transparent 34%),
        linear-gradient(135deg, #FFFFFF 0%, #FBF8F1 52%, #F5F1EC 100%);
    border-color: #E6D8BF;
}
.info-card {
    display: flex;
    min-height: 172px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.info-card:hover,
.info-card:focus {
    border-color: #C6A96B;
    box-shadow: 0 14px 30px rgba(90, 62, 77, 0.12);
    outline: none;
    transform: translateY(-1px);
}
.info-card-primary {
    grid-column: span 1;
}
.info-card-label {
    display: block;
    margin-bottom: 8px;
    color: #8B7E74;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}
.info-card h3 {
    margin: 0;
    color: #5A3E4D;
    font-size: 1.45rem;
    line-height: 1.18;
}
.info-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}
.info-card-action {
    align-self: flex-end;
}
.share-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
}
.share-card-champagne {
    box-shadow: 0 12px 28px rgba(198, 169, 107, 0.14);
}
.template-card {
    margin-top: 12px;
    border: 1px solid #EDE7DF;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    padding: 16px;
}
.template-card h3 {
    margin: 0;
    color: #5A3E4D;
    font-size: 1.1rem;
}
.template-card .template-form {
    margin: 12px 0 0;
}
.template-card .form-message {
    margin-bottom: 0;
}
.helper-card {
    margin-bottom: 14px;
    border: 1px solid #E6D8BF;
    border-radius: 12px;
    background:
        radial-gradient(circle at 8% 14%, rgba(198, 169, 107, 0.14), transparent 36%),
        #FAF9F7;
    padding: 14px;
}
.helper-card strong {
    display: block;
    margin-bottom: 6px;
    color: #5A3E4D;
    font-size: 0.96rem;
}
.helper-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}
.custom-text-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.custom-text-card {
    border: 1px solid #EDE7DF;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    padding: 14px;
}
.custom-text-card label {
    display: block;
    color: #5A3E4D;
    font-size: 0.98rem;
    font-weight: 700;
}
.custom-text-card textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    font: inherit;
}
.custom-text-card textarea:focus {
    border-color: #C6A96B;
    box-shadow: 0 0 0 3px rgba(198, 169, 107, 0.18);
    outline: none;
}
.field-help {
    margin: 4px 0 10px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.4;
}
.field-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.field-footer .form-message {
    flex: 1;
    margin-bottom: 0;
}
.char-count {
    margin: 4px 0 0;
    color: #8B7E74;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.sticky-save-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    border: 1px solid #E6D8BF;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(43, 43, 43, 0.08);
    padding: 12px;
    backdrop-filter: blur(8px);
}
.sticky-save-bar span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}
.sticky-save-bar span.warning {
    color: #92400e;
}
.sticky-save-bar span.success {
    color: #047857;
}
.sticky-save-bar span.error {
    color: #b91c1c;
}
.share-link {
    margin: 0;
    color: #5A3E4D;
    font-size: 1.12rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.share-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.edit-modal-card {
    width: min(100%, 520px);
}
.modal-form {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.modal-form label {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
}
.modal-form input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    font: inherit;
}
.modal-form input:focus {
    border-color: #C6A96B;
    box-shadow: 0 0 0 3px rgba(198, 169, 107, 0.18);
    outline: none;
}
.modal-actions {
    justify-content: flex-end;
}
.url-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.url-edit-row span {
    color: #8B7E74;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}
.toast-message {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    max-width: min(360px, calc(100vw - 36px));
    border-radius: 10px;
    background: #2B2B2B;
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(43, 43, 43, 0.22);
    padding: 11px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast-message.error {
    background: #991b1b;
}
.toast-message.is-hiding {
    opacity: 0;
    transform: translateY(8px);
}
.btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #2B2B2B;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}
.btn-small {
    padding: 6px 10px;
    font-size: 0.82rem;
}
.btn:hover {
    background: #F5F1EC;
    text-decoration: none;
}
.btn:focus,
.btn:active,
.btn:visited {
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #C6A96B, #A88E5A);
    border: none;
    color: #ffffff;
}
.btn-primary:hover { background: linear-gradient(135deg, #B89A5F, #92784A); }
.btn-ghost {
    width: 100%;
    background: transparent;
    border-color: #374151;
    color: #f3f4f6;
}
.btn-ghost:hover { background: #1f2937; }
pre {
    margin: 0;
    background: #2B2B2B;
    color: #d1d5db;
    padding: 12px;
    border-radius: 10px;
    overflow: auto;
    font-size: 0.84rem;
    line-height: 1.45;
}
.inline-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}
.inline-form > div {
    grid-column: span 1;
}
.inline-form label {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 5px;
}
.inline-form input {
    width: 100%;
    min-height: var(--ui-input-height);
    border: 1px solid var(--ui-input-border);
    border-radius: var(--ui-input-radius);
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--ui-input-text);
    background: var(--ui-input-bg);
}
.inline-form textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid var(--ui-input-border);
    border-radius: var(--ui-input-radius);
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--ui-input-text);
    background: var(--ui-input-bg);
}
.custom-text-area {
    min-height: 100px;
    resize: none;
}

:root {
    --ui-input-height: 50px;
    --ui-input-radius: 12px;
    --ui-input-border: #cbd5e1;
    --ui-input-border-hover: #94a3b8;
    --ui-input-focus: #64748b;
    --ui-input-bg: #ffffff;
    --ui-input-text: #0f172a;
    --ui-input-placeholder: #94a3b8;
    --ui-focus-ring: 0 0 0 4px rgba(100, 116, 139, 0.14);
}

.main form input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([type='file']),
.main form select,
.main form textarea {
    width: 100%;
    min-height: var(--ui-input-height);
    border: 1px solid var(--ui-input-border);
    border-radius: var(--ui-input-radius);
    background: var(--ui-input-bg);
    color: var(--ui-input-text);
    font-size: 1rem;
    line-height: 1.35;
    padding: 12px 14px;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.main form textarea {
    min-height: 80px;
    resize: vertical;
}

.main form input::placeholder,
.main form textarea::placeholder {
    color: var(--ui-input-placeholder);
}

.main form input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([type='file']):hover,
.main form select:hover,
.main form textarea:hover {
    border-color: var(--ui-input-border-hover);
}

.main form input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([type='file']):focus,
.main form select:focus,
.main form textarea:focus {
    outline: none;
    border-color: var(--ui-input-focus);
    box-shadow: var(--ui-focus-ring);
}

.main form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.main form input[type='file'] {
    width: 100%;
    border: 1px dashed var(--ui-input-border-hover);
    border-radius: var(--ui-input-radius);
    background: #f8fafc;
    padding: 10px;
}

.main form label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.89rem;
    font-weight: 600;
    color: #475569;
}

.ui-setting-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ui-setting-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.ui-setting-card h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    color: #0f172a;
}

.ui-setting-field {
    margin-top: 12px;
}

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

.ui-setting-grid-2 .ui-setting-field {
    margin-top: 0;
}

.date-format-button-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ui-rule-list {
    display: grid;
    gap: 10px;
}

.ui-setting-actions {
    display: flex;
    justify-content: flex-end;
}

.ui-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
}

.ui-toggle-option {
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ui-toggle-option:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ui-toggle-option:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.26);
}

.ui-toggle-option.is-active {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
}

.rsvp-access-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.rsvp-access-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
    min-height: 120px;
    margin: 0;
    padding: 14px;
    border: 1px solid #dbe3ed;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rsvp-access-choice:hover,
.rsvp-access-choice.is-selected {
    border-color: #111827;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.rsvp-access-choice input {
    margin-top: 3px;
}

.rsvp-access-choice strong {
    display: block;
    margin-bottom: 5px;
    color: #0f172a;
    font-size: 0.98rem;
}

.rsvp-access-choice small {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Couple Admin — main RSVP page setup checklist */
.setup-checklist-panel .setup-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.setup-checklist-item {
    margin: 0;
}
.setup-checklist-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #ede7df;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.setup-checklist-link:hover {
    background: #faf9f7;
    border-color: #e6d8bf;
    box-shadow: 0 6px 16px rgba(43, 43, 43, 0.06);
}
.setup-check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 2px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    position: relative;
}
.setup-checklist-item.is-done .setup-check-icon {
    border-color: #047857;
    background: #e6f4ea;
}
.setup-checklist-item.is-done .setup-check-icon::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid #047857;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.setup-checklist-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.setup-checklist-label {
    font-weight: 700;
    color: #5a3e4d;
    font-size: 0.98rem;
}
.setup-checklist-hint {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.35;
}
.inline-form select {
    width: 100%;
    min-height: var(--ui-input-height);
    border: 1px solid var(--ui-input-border);
    border-radius: var(--ui-input-radius);
    padding: 12px 40px 12px 14px;
    color: var(--ui-input-text);
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}
.form-actions { align-self: end; }
.form-message { min-height: 0; margin: 2px 0 6px; font-size: 0.9rem; }
.form-message.error { color: #b91c1c; }
.form-message.success { color: #047857; }
.status-pill {
    display: inline-block;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 8px;
}
.status-ok {
    background: #E6F4EA;
    color: #166534;
}
.status-warning {
    background: #FFF4E5;
    color: #92400e;
}
.status-critical {
    background: #FDECEC;
    color: #991b1b;
}
.status-muted {
    background: #f1f5f9;
    color: #64748b;
}
.event-panel-head-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
}
.venue-event-list {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-top: 4px;
}

.event-row {
    border-bottom: 1px solid #e5e7eb;
}

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

.event-row-main {
    width: 100%;
    background: #fff;
    border: 0;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
}

.event-row-main:hover {
    background: #f8fafc;
}

.event-row-left {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.event-title {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.event-meta {
    font-size: 0.85rem;
    color: #64748b;
    white-space: normal;
}

.event-row-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.mini-status {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-status.accepted {
    background: #dcfce7;
    color: #166534;
}

.mini-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.mini-status.muted {
    background: #e5e7eb;
    color: #6b7280;
}

.event-expand-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.event-expand-icon::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #475569;
    border-bottom: 2px solid #475569;
    transform: rotate(135deg);
    transform-origin: 50% 50%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.event-row:hover .event-expand-icon::before {
    border-color: #0f172a;
}

.event-row.is-open .event-expand-icon::before {
    transform: rotate(45deg);
}

.event-row-details {
    padding: 12px 16px 16px;
    background: #fafafa;
}

.event-details-inner {
    display: grid;
    gap: 12px;
}

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

.couple-access-card {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
}

.couple-access-card.is-empty {
    background: #fff;
    border-style: dashed;
}

.couple-access-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.couple-role-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.couple-access-card strong {
    display: block;
    margin-bottom: 4px;
}

.couple-access-card p {
    margin: 0 0 8px;
    color: #475569;
}

.couple-login-line {
    color: #64748b;
    font-size: 0.88rem;
}

.event-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .date-format-button-grid {
        grid-template-columns: 1fr;
    }

    .ui-setting-grid-2 {
        grid-template-columns: 1fr;
    }

    .event-row-main {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }

    .event-row-status {
        margin-left: 0;
    }

    .event-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .couple-access-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .event-row-main {
        gap: 10px;
    }
}
.env-form {
    margin-top: 12px;
}
.invite-link-box {
    border: 1px dashed #C6A96B;
    background: #F5F1EC;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}
.invite-link-box input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 10px;
    background: #fff;
}
.event-form-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
}
.event-field {
    grid-column: span 1;
}
.event-form-grid label {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 5px;
}
.event-form-grid input {
    width: 100%;
    min-height: var(--ui-input-height);
    border: 1px solid var(--ui-input-border);
    border-radius: var(--ui-input-radius);
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--ui-input-text);
    background: var(--ui-input-bg);
}
.event-form-grid select,
.event-form-grid textarea {
    width: 100%;
    border: 1px solid var(--ui-input-border);
    border-radius: var(--ui-input-radius);
    padding: 12px 14px;
    background: #fff;
    color: var(--ui-input-text);
    font-size: 1rem;
}
.event-form-grid .flatpickr-input {
    background: #ffffff;
    font-size: 0.98rem;
    padding: 10px 12px;
}
.flatpickr-calendar {
    border-radius: 12px !important;
    border: 1px solid #EDE7DF !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18) !important;
    font-family: "Inter", sans-serif !important;
}
.flatpickr-current-month .numInputWrapper span {
    display: none !important;
}
.flatpickr-current-month input.cur-year {
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}
.flatpickr-current-month input.cur-year::-webkit-outer-spin-button,
.flatpickr-current-month input.cur-year::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.flatpickr-months .flatpickr-month {
    height: 48px !important;
}
.flatpickr-current-month {
    padding-top: 8px !important;
    font-size: 1rem !important;
}
.flatpickr-weekdays {
    height: 34px !important;
}
.flatpickr-weekday {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}
.flatpickr-calendar .dayContainer {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    justify-content: unset !important;
    width: 308px !important;
    min-width: 308px !important;
    max-width: 308px !important;
}
.flatpickr-calendar .flatpickr-days {
    width: 308px !important;
}
.flatpickr-day {
    max-width: 100% !important;
    width: 100% !important;
    height: 38px !important;
    line-height: 38px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #C6A96B !important;
    border-color: #C6A96B !important;
}
.flatpickr-time input {
    font-size: 1.02rem !important;
    font-weight: 600 !important;
}
.flatpickr-clean-date .flatpickr-time,
.flatpickr-clean-date .flatpickr-days .dayContainer + .dayContainer {
    display: none !important;
}
.flatpickr-clean-date .flatpickr-day.prevMonthDay,
.flatpickr-clean-date .flatpickr-day.nextMonthDay {
    visibility: hidden !important;
    pointer-events: none !important;
}
.event-form-actions {
    margin-top: 10px;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: grid;
    place-items: center;
    z-index: 1000;
    padding: 18px;
}
.modal-backdrop[hidden] {
    display: none !important;
}
.modal-card {
    width: min(100%, 760px);
    background: #ffffff;
    border: 1px solid #EDE7DF;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}
.modal-card h3 {
    margin: 0 0 10px;
}
.qr-modal-card {
    width: min(100%, 420px);
    text-align: center;
}
.qr-modal-card img {
    width: min(100%, 320px);
    height: auto;
    border: 1px solid #EDE7DF;
    border-radius: 10px;
    margin: 8px auto 10px;
    display: block;
}
.delete-confirm-box {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 10px;
}
.delete-confirm-box p {
    margin: 0 0 8px;
    color: #991b1b;
    font-weight: 600;
}
.btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}
.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}
.table-wrap { overflow-x: auto; }

.guest-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .guest-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.summary-card {
    border: 1px solid #ede7df;
    border-radius: 12px;
    background: #faf9f7;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.summary-card span {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}
.summary-card strong {
    font-size: 1.35rem;
    color: #5a3e4d;
    font-weight: 700;
    line-height: 1.1;
}

.guest-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.guest-action-grid .btn {
    width: 100%;
}

.guests-section-stack {
    display: grid;
    gap: 18px;
}

.guest-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.guest-list-heading {
    margin: 0;
    font-size: 1rem;
    color: #5a3e4d;
}
.guest-filter-row {
    margin-bottom: 12px;
}
.guest-filter-row label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}
.guest-filter-row input[type='search'] {
    width: 100%;
    max-width: 420px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 11px;
    font: inherit;
}
.field-help-tight {
    margin: 6px 0 0;
    font-size: 0.8rem;
}
.guest-empty-state[hidden] {
    display: none !important;
}
.guest-empty-state {
    text-align: center;
    padding: 28px 16px;
    border: 1px dashed #e6d8bf;
    border-radius: 14px;
    background: linear-gradient(180deg, #faf9f7 0%, #ffffff 100%);
}
.guest-empty-state h3 {
    margin: 10px 0 8px;
    font-size: 1.05rem;
    color: #5a3e4d;
}
.guest-empty-state p {
    margin: 0 auto 16px;
    max-width: 400px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}
.guests-page-message {
    margin-top: 14px;
}

.bulk-steps {
    display: grid;
    gap: 14px;
}
@media (min-width: 900px) {
    .bulk-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        align-items: stretch;
    }
}
.bulk-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #ede7df;
    border-radius: 12px;
    background: #ffffff;
}
.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c6a96b, #a88e5a);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.bulk-step-body {
    min-width: 0;
}
.bulk-step-body h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #5a3e4d;
}
.bulk-step-body p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}
.bulk-step-body .btn {
    margin-top: 4px;
}
.bulk-file-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}
.bulk-step-body input[type='file'] {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    font-size: 0.85rem;
}
.bulk-upload-submit {
    width: 100%;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}
.status-invited {
    background: #fef3c7;
    color: #92400e;
}
.status-no-response {
    background: #f1f5f9;
    color: #475569;
}
.status-rsvp-yes {
    background: #e6f4ea;
    color: #166534;
}
.status-rsvp-no {
    background: #fee2e2;
    color: #991b1b;
}

.btn-link {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: inherit;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    text-decoration: none;
}
.btn-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}
.guest-actions-cell {
    white-space: nowrap;
}
.guest-action-sep {
    color: #cbd5e1;
    margin: 0 4px;
}
.accordion-panel {
    border: 1px solid #EDE7DF;
    border-radius: 12px;
    background: #FAF9F7;
    padding: 12px;
    margin-bottom: 12px;
}
.accordion-panel h3 {
    margin: 0 0 10px;
    font-size: 0.98rem;
}
.photo-tips {
    margin-bottom: 14px;
    border: 1px solid #E6D8BF;
    border-radius: 12px;
    background:
        radial-gradient(circle at 8% 14%, rgba(198, 169, 107, 0.14), transparent 36%),
        #FAF9F7;
    padding: 14px;
}
.photo-tips strong {
    display: block;
    margin-bottom: 6px;
    color: #5A3E4D;
    font-size: 0.96rem;
}
.photo-tips p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.9rem;
}
.photo-tips ul {
    margin: 0;
    padding-left: 18px;
    color: #8B7E74;
    font-size: 0.9rem;
    line-height: 1.55;
}
.dz-modern {
    border: 2px dashed #C6A96B !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #FAF9F7 0%, #F5F1EC 100%) !important;
    min-height: 170px !important;
    padding: 20px !important;
}
.dz-modern .dz-message {
    display: grid;
    place-items: center;
    gap: 7px;
    margin: 0 !important;
    min-height: 126px;
    font-size: 1rem;
    color: #5A3E4D;
    font-weight: 600;
    text-align: center;
}
.dz-modern .dz-message strong {
    color: #5A3E4D;
    font-size: 1.05rem;
}
.dz-modern .dz-message span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}
.upload-icon,
.empty-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #E6D8BF;
    box-shadow: 0 8px 18px rgba(198, 169, 107, 0.14);
    font-size: 1.3rem;
}
.dz-modern.dz-started .dz-message {
    display: none !important;
}
.dz-modern .dz-preview {
    margin: 8px !important;
}
.image-gallery-wrap {
    margin-top: 14px;
}
.gallery-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.image-gallery-wrap h3 {
    margin: 0 0 4px;
    font-size: 0.98rem;
}
.uploaded-images-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.empty-state {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 190px;
    border: 1px dashed #E6D8BF;
    border-radius: 12px;
    background: #FAF9F7;
    padding: 22px;
    text-align: center;
}
.empty-state h3 {
    margin: 0;
    color: #5A3E4D;
    font-size: 1.08rem;
}
.empty-state p {
    max-width: 360px;
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}
.uploaded-image-card {
    background: #ffffff;
    border: 1px solid #EDE7DF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.uploaded-image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.image-thumb-btn {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}
.uploaded-image-meta {
    display: block;
    padding: 8px 10px;
    color: #5A3E4D;
    font-size: 0.9rem;
}
.uploaded-image-meta strong {
    font-weight: 700;
}
.uploaded-image-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0 10px 10px;
}
.inline-delete-confirm {
    margin: 0 10px 10px;
    padding: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 8px;
}
.inline-delete-confirm p {
    margin: 0 0 6px;
    color: #991b1b;
    font-size: 0.84rem;
    font-weight: 600;
}
.inline-delete-confirm span {
    display: block;
    margin-bottom: 8px;
    color: #7f1d1d;
    font-size: 0.82rem;
    line-height: 1.4;
}
.inline-delete-actions {
    display: flex;
    gap: 6px;
}
.btn-danger-outline {
    background: #ffffff;
    color: #b91c1c;
    border-color: #fecaca;
}
.btn-danger-outline:hover {
    background: #fef2f2;
}
.muted {
    color: #64748b;
    font-size: 0.9rem;
}
.lightbox-card {
    position: relative;
    width: min(92vw, 980px);
    max-height: 90vh;
    background: #2B2B2B;
    border: 1px solid #8B7E74;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    place-items: center;
}
.lightbox-card img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #475569;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
table { width: 100%; border-collapse: collapse; }
th, td {
    border-bottom: 1px solid #EDE7DF;
    text-align: left;
    padding: 10px 8px;
    font-size: 0.9rem;
}
tbody tr[data-venue-id] { cursor: pointer; }
tbody tr[data-venue-id]:hover { background: #FAF9F7; }
th { color: #64748b; font-weight: 600; }
tbody tr.is-selected { background: #F5F1EC; }
.venue-edit-box {
    margin-top: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}
.venue-edit-box h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}
ul { margin: 0; padding-left: 18px; color: #334155; line-height: 1.6; }
@media (min-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .uploaded-images-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .guest-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .inline-form {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .inline-form > div {
        grid-column: span 12;
    }
    .inline-form .col-md-3 { grid-column: span 3; }
    .inline-form .col-md-4 { grid-column: span 4; }
    .inline-form .col-md-5 { grid-column: span 5; }
    .inline-form .col-md-6 { grid-column: span 6; }
    .inline-form .col-md-8 { grid-column: span 8; }
    .event-form-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .event-form-grid .event-wedding-name { grid-column: span 12; }
    .event-form-grid .event-bride-first { grid-column: span 3; }
    .event-form-grid .event-bride-last { grid-column: span 3; }
    .event-form-grid .event-bride-email { grid-column: span 4; }
    .event-form-grid .event-groom-first { grid-column: span 3; }
    .event-form-grid .event-groom-last { grid-column: span 3; }
    .event-form-grid .event-groom-email { grid-column: span 4; }
    .event-form-grid .event-ceremony-date { grid-column: span 6; }
    .event-form-grid .event-ceremony-time { grid-column: span 6; }
    .event-form-grid .col-md-12 { grid-column: span 12; }
    .event-form-grid .col-md-6 { grid-column: span 6; }
    .event-form-grid .col-md-4 { grid-column: span 4; }
    .event-form-grid .col-md-3 { grid-column: span 3; }
}
@media (max-width: 980px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 1200;
        max-height: 72vh;
        overflow-y: auto;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -14px 36px rgba(15, 23, 42, 0.35);
        transform: translateY(104%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }
    .shell.nav-open .sidebar {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-nav-toggle {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        z-index: 1250;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 60px;
        border-radius: 0;
        border: 0;
        border-top: 1px solid #2f3a4d;
        background: #111827;
        color: #ffffff;
        font-size: 1.25rem;
        line-height: 1;
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.25);
    }
    .mobile-nav-toggle:focus,
    .mobile-nav-toggle:hover {
        background: #1f2937;
        text-decoration: none;
    }
    .mobile-nav-toggle .label {
        display: inline-block;
        margin-left: 8px;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
    body {
        padding-bottom: 86px;
    }
    .venue-admin-page .mobile-nav-toggle {
        display: inline-flex !important;
    }
    .venue-admin-page .event-panel-head-actions,
    .venue-admin-page .event-panel-head-actions .btn,
    .venue-admin-page #toggleNewEventBtn {
        width: 100%;
    }
    .venue-admin-page .event-form-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }
    .venue-admin-page .event-form-actions .btn {
        width: 100%;
    }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .info-card-grid { grid-template-columns: 1fr; }
    .custom-text-form { grid-template-columns: 1fr; }
    .share-card { align-items: stretch; flex-direction: column; }
    .share-actions { justify-content: stretch; }
    .share-actions .btn { flex: 1 1 160px; }
    .url-edit-row { align-items: stretch; flex-direction: column; }
    .url-edit-row span { white-space: normal; }
    .sticky-save-bar { align-items: stretch; flex-direction: column; }
    .sticky-save-bar .btn { width: 100%; }
}

/* Auth page */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 10% 20%, rgba(198, 169, 107, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(192, 132, 151, 0.12), transparent 40%),
        #FAF9F7;
}
.auth-card {
    width: min(100%, 440px);
    background: #ffffff;
    border: 1px solid #EDE7DF;
    border-radius: 14px;
    box-shadow: 0 24px 46px rgba(2, 6, 23, 0.25);
    padding: 22px;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.auth-brand img {
    width: 36px;
    height: 36px;
}
.auth-brand-title {
    font-weight: 700;
    color: #0f172a;
}
.auth-brand-sub {
    font-size: 0.84rem;
    color: #64748b;
}
.auth-card h1 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}
.auth-form label {
    display: block;
    font-size: 0.86rem;
    color: #475569;
    margin-top: 10px;
}
.auth-form input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    margin-top: 6px;
}
.auth-form .btn {
    width: 100%;
    margin-top: 14px;
}

/* Venue pages: compact spacing overrides */
.venue-admin-page .main {
    display: grid;
    gap: 8px;
    align-content: start;
    justify-items: stretch;
}
.venue-admin-page .main > * {
    width: 100%;
    max-width: none;
    align-self: start;
}
.venue-admin-page .topbar {
    gap: 4px;
    margin-bottom: 0;
    height: auto;
    min-height: 0;
}
.venue-admin-page .topbar h1 {
    margin-bottom: 2px;
    line-height: 1.15;
}
.venue-admin-page .topbar p {
    line-height: 1.3;
}
.venue-admin-page .page-breadcrumbs {
    margin: 60px 0;
    line-height: 1.2;
    height: auto;
    min-height: 0;
}
.venue-admin-page .kpis {
    margin-top: 2px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.venue-admin-page .kpis .kpi {
    padding: 8px 10px;
    min-height: 0;
    height: auto;
}
.venue-admin-page .kpi,
.venue-admin-page .panel {
    align-self: start;
}
.venue-admin-page .kpis .kpi h3 {
    margin: 0 0 2px;
    line-height: 1.15;
}
.venue-admin-page .kpis .kpi p {
    margin: 0;
    line-height: 1.05;
}
.venue-admin-page .panel#event-management,
.venue-admin-page .panel#settings {
    padding: 8px 10px;
}
.venue-admin-page .panel#event-management .panel-head,
.venue-admin-page .panel#settings .panel-head {
    margin-bottom: 6px;
}
.venue-admin-page #eventsList.venue-event-list {
    margin-top: 0;
}
.venue-admin-page #eventsList .empty-state {
    min-height: 92px;
    padding: 12px;
}

@media (max-width: 980px) {
    .venue-admin-page .kpis {
        grid-template-columns: 1fr;
    }
}
