/* ═══════════════════════════════════════════════════════════════════════════
   Easy Volunteer — Shared Stylesheet
   public/app.css
   Extracted from views/index.ejs, views/admin.ejs,
   views/admin-tenant.ejs, views/profile.ejs
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
    /* Surfaces */
    --paper:      #F3F5FA;
    --card:       #FFFFFF;

    /* Ink */
    --ink:        #0F172A;
    --ink-2:      #253244;
    --mute:       #475569;
    --mute-soft:  #64748B;

    /* Lines */
    --line:       #E2E8F0;
    --line-2:     #CBD5E1;

    /* Brand */
    --accent:     #4F46E5;
    --accent-d:   #3730A3;
    --accent-t:   #EEF2FF;

    /* Semantic */
    --amber:      #D97706;   /* recurring tasks */
    --amber-d:    #92400E;   /* dark amber for text */
    --amber-light: #FFFBEB;
    --red:        #DC2626;   /* full / waitlist / danger */
    --red-light:  #FEF2F2;
    --sage:       #059669;   /* sign-up confirmed success only */
    --sage-strong: #047857;  /* AA-compliant emerald for small text on --sage-light */
    --sage-light: #ECFDF5;
    --sage-muted: #6EE7B7;

    /* Radius */
    --radius-sm:  4px;    /* chips / badges */
    --radius:     8px;    /* inputs / buttons */
    --radius-md:  12px;   /* cards */
    --radius-lg:  16px;   /* modals */

    /* Shadows */
    --shadow-1:   0 1px 2px rgba(15,23,42,0.04);
    --shadow-2:   0 8px 24px rgba(15,23,42,0.08);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
    --font:         'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INDEX / MAIN APP STYLES (unscoped — base for all views)
   ═══════════════════════════════════════════════════════════════════════════ */

body {
    font-family: var(--font-body);
    font-weight: 500;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Type scale ── */
h1, .display {
    font-weight: 800;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}
h2 { font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; }

/* Label utility — minimum 11px, never 9px */
.label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
}
.body    { font-size: 14px; font-weight: 500; line-height: 1.55; }
.body--sm { font-size: 13px; }

/* ── Sidebar ── */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 256px;
    background: linear-gradient(to bottom, #F8FAFC, #F1F5F9);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    z-index: 400; overflow-y: auto;
    transition: transform 0.25s ease;
}
.sidebar__brand { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.sidebar__brand-link { display: flex; text-decoration: none; }
.sidebar__workspace {
    padding: 10px 16px 14px; border-bottom: 1px solid var(--line);
    position: relative;
}
.sidebar__workspace--home { background: linear-gradient(180deg, #EEF2FF 0%, #F5F7FF 100%); }
.sidebar__workspace--guest { background: linear-gradient(180deg, #FEF3E7 0%, #FDF8F2 100%); }
.sidebar__ws-crown {
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.sidebar__ws-crown-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.sidebar__ws-crown-dot--home { background: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
.sidebar__ws-crown-dot--guest { background: #D97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.15); }
.sidebar__ws-crown-text {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; line-height: 1;
}
.sidebar__workspace--home .sidebar__ws-crown-text { color: var(--accent-d); }
.sidebar__workspace--guest .sidebar__ws-crown-text { color: #B45309; }
.sidebar__ws-body { display: flex; align-items: flex-start; gap: 10px; }
.sidebar__ws-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    background: rgba(255,255,255,0.7); border: 1px solid rgba(79,70,229,0.3);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-top: 1px;
}
.sidebar__ws-icon--guest { border-color: rgba(217,119,6,0.3); color: #B45309; }
.sidebar__ws-info { min-width: 0; flex: 1; }
.sidebar__ws-name {
    font-size: 13px; font-weight: 700; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.3;
}
.sidebar__ws-meta { font-size: 11px; color: var(--mute); margin-top: 2px; }
.sidebar__ws-rename-form { width: 100%; }
.sidebar__ws-name-row { display: flex; align-items: center; gap: 4px; }
.sidebar__ws-name-input {
    font-size: 13px; font-weight: 700; color: var(--ink);
    background: transparent; border: none;
    border-bottom: 2px solid transparent;
    padding: 0 2px 1px; outline: none;
    min-width: 0; flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: border-color 0.15s; cursor: default; line-height: 1.3;
}
.sidebar__ws-name-input:not([readonly]) { border-bottom-color: var(--accent); cursor: text; }
.sidebar__ws-edit-btn {
    background: none; border: none; color: var(--mute); cursor: pointer;
    padding: 2px; border-radius: 4px; flex-shrink: 0;
    display: none; align-items: center; transition: color 0.12s;
}
.sidebar__workspace:hover .sidebar__ws-edit-btn { display: flex; }
.sidebar__ws-edit-btn:hover { color: var(--ink); }
.sidebar__ws-save-btn {
    background: none; border: none; color: var(--accent); cursor: pointer;
    padding: 2px; border-radius: 4px; flex-shrink: 0;
    display: flex; align-items: center; transition: color 0.12s;
}
.sidebar__ws-save-btn:hover { color: var(--accent-d); }
.sidebar__ws-cancel-btn {
    background: none; border: none; color: var(--mute);
    cursor: pointer; font-size: 14px; line-height: 1; padding: 2px; flex-shrink: 0;
}
.sidebar__ws-cancel-btn:hover { color: var(--ink); }
/* Sidebar section labels */
.sidebar__section-label {
    padding: 0 20px 6px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--mute);
}
.sidebar__section-label--spaced { padding-top: 16px; border-top: 1px solid var(--line); margin-top: 4px; }
/* Workspace switcher in sidebar */
.sidebar__ws-switch-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 20px; font-size: 13px; font-weight: 500;
    color: var(--ink-2); text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.sidebar__ws-switch-item:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
.sidebar__ws-switch-item--active { color: var(--accent); font-weight: 600; }
.sidebar__ws-switch-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--line); flex-shrink: 0;
}
.sidebar__ws-switch-dot--active { background: var(--accent); }
.sidebar__ws-switch-check { color: var(--accent); margin-left: auto; flex-shrink: 0; }
.sidebar__nav { padding: 12px 12px 0; flex: 1; }
.sidebar__link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 13.5px; font-weight: 500; color: var(--ink-2);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    margin-bottom: 2px;
}
.sidebar__link:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
.sidebar__link--active { background: var(--accent-t); color: var(--accent); font-weight: 600; }
.sidebar__link--active svg { color: var(--accent); }
.sidebar__footer {
    padding: 12px; border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 2px;
}
.sidebar__user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px;
}
.sidebar__user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sidebar__user-info { min-width: 0; }
.sidebar__user-name { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__user-email { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__signout {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--mute);
    text-decoration: none; transition: background 0.12s, color 0.12s;
}
.sidebar__signout:hover { background: rgba(0,0,0,0.04); color: var(--ink); }

/* ── Sidebar organizer upsell card ── */
.sidebar__upsell {
    margin: 0 12px 8px;
    padding: 12px 14px 14px;
    background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
    border: 1px solid rgba(79,70,229,0.18);
    border-radius: 10px;
}
.sidebar__upsell-eyebrow {
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.sidebar__upsell-hed {
    font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.3;
}
.sidebar__upsell-sub {
    font-size: 11.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 10px;
}
.sidebar__upsell-link {
    background: none; border: none; padding: 0;
    font-size: 12px; font-weight: 600; color: var(--accent);
    cursor: pointer; text-decoration: none;
    transition: color 0.12s;
}
.sidebar__upsell-link:hover { color: var(--accent-d); text-decoration: underline; }

/* ── Host Events modal list ── */
.host-events-list {
    list-style: none; margin: 0 0 16px; padding: 0;
    display: flex; flex-direction: column; gap: 14px;
}
.host-events-list li {
    display: flex; align-items: flex-start; gap: 12px;
}
.host-events-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--accent-t); color: var(--accent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.host-events-item-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.host-events-item-sub { font-size: 0.8rem; color: var(--ink-2); line-height: 1.5; }

/* ── Mobile topbar ── */
.mobile-topbar {
    display: none; position: fixed; top: 0; left: 0; right: 0; height: 52px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); z-index: 401;
    align-items: center; gap: 14px; padding: 0 16px;
}
.mobile-topbar__menu {
    background: none; border: none; cursor: pointer;
    color: var(--ink); padding: 4px; display: flex; align-items: center;
}
.mobile-topbar__brand {
    font-size: 15px; font-weight: 800; color: var(--ink);
    letter-spacing: -0.01em; text-decoration: none;
}
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.3); z-index: 399;
}

/* ── has-sidebar layout ── */
body.has-sidebar .page-wrapper {
    margin-left: 256px;
    max-width: none;
    padding: 40px 40px 80px;
}

/* ── Workspace switch dropdown (Events header) ── */
.ws-switch-wrap { position: relative; }
.ws-switch-btn {
    font-size: 12.5px; font-weight: 500;
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--line);
    border-radius: 8px; color: var(--mute); background: var(--card);
    cursor: pointer; font-family: var(--font-body);
    transition: border-color 0.12s, color 0.12s;
}
.ws-switch-btn:hover { border-color: var(--accent); color: var(--accent); }
.ws-switch-dropdown {
    position: absolute; right: 0; top: calc(100% + 6px);
    background: var(--card); border: 1px solid var(--line);
    border-radius: 10px; box-shadow: var(--shadow-2);
    min-width: 230px; z-index: 100; overflow: hidden; padding: 4px;
}
.ws-switch-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 7px;
    font-size: 13px; font-weight: 600; color: var(--ink);
    text-decoration: none; transition: background 0.1s;
    border: 1px solid transparent;
}
.ws-switch-item:hover { background: var(--paper); }
.ws-switch-item--active.ws-switch-item--home { background: linear-gradient(180deg,#EEF2FF 0%,#F5F7FF 100%); border-color: rgba(79,70,229,0.2); }
.ws-switch-item--active.ws-switch-item--guest { background: linear-gradient(180deg,#FEF3E7 0%,#FDF8F2 100%); border-color: rgba(217,119,6,0.2); }
.ws-switch-item-icon {
    width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid rgba(79,70,229,0.3); color: var(--accent);
}
.ws-switch-item-icon--guest { border-color: rgba(217,119,6,0.3); color: #B45309; }
.ws-switch-item-body { flex: 1; min-width: 0; }
.ws-switch-item-name {
    font-size: 13px; font-weight: 700; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-switch-item-sub {
    font-size: 11px; color: var(--mute); margin-top: 2px;
    display: flex; align-items: center; gap: 5px;
}
.ws-switch-item-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ws-switch-item-dot--home { background: var(--accent); }
.ws-switch-item-dot--guest { background: #D97706; }
.ws-switch-check { color: var(--accent); flex-shrink: 0; }

/* ── Responsive: sidebar drawer on mobile ── */
@media (max-width: 768px) {
    body.has-sidebar .page-wrapper { margin-left: 0; padding: 72px 16px 60px; }
    .mobile-topbar { display: flex; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.sidebar--open { transform: translateX(0); }
    .sidebar-overlay.sidebar-overlay--open { display: block; }
}

/* ── Top Nav ── */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.top-nav__inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.top-nav__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.top-nav__auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.top-nav__user {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mute);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── User avatar menu ── */
.user-menu { position: relative; margin-left: 4px; }
.user-avatar-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(79,70,229,0.1);
    border: 1.5px solid rgba(79,70,229,0.2);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.user-avatar-btn:hover {
    background: rgba(79,70,229,0.16);
    border-color: rgba(79,70,229,0.35);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}
.user-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.12), 0 2px 6px rgba(15,23,42,0.06);
    z-index: 600;
    overflow: hidden;
    animation: dropIn 0.15s ease-out both;
}
.user-dropdown[hidden] { display: none; }
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.user-dropdown__info {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--line);
}
.user-dropdown__name {
    font-size: 13px; font-weight: 700; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-dropdown__email {
    font-size: 11px; color: var(--mute); margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-dropdown__item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    font-size: 13px; font-weight: 500; color: var(--ink);
    text-decoration: none; cursor: pointer;
    transition: background 0.12s;
}
.user-dropdown__item:hover { background: var(--paper); }
.user-dropdown__item--muted { color: var(--mute); }
.user-dropdown__divider {
    height: 1px; background: var(--line); margin: 0;
}
.top-nav__role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(79,70,229,0.08);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(79,70,229,0.15);
}

/* Workspace switcher in user dropdown */
.user-dropdown__section-label {
    padding: 8px 16px 4px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--mute);
}
.user-dropdown__ws-item { padding: 7px 16px; font-size: 12.5px; }
.user-dropdown__ws-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--line); flex-shrink: 0;
}
.user-dropdown__ws-item--active .user-dropdown__ws-dot { background: var(--accent); }
.user-dropdown__ws-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dropdown__ws-check { color: var(--accent); flex-shrink: 0; margin-left: auto; }

.top-nav__link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mute);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.top-nav__link:hover { color: var(--ink); background: var(--paper); }

/* ── AI Wizard ── */
.btn--ai {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(79,70,229,0.3);
    padding: 10px 22px; font-size: 0.82rem; font-weight: 600;
    border-radius: var(--radius); cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body);
}
.btn--ai:hover { background: var(--accent-t); border-color: var(--accent); }
.btn--ai:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ai-chip {
    padding: 6px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 600; color: var(--mute); cursor: pointer;
    background: #fff; font-family: var(--font-body);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ai-chip:hover, .ai-chip.selected {
    border-color: var(--accent); color: var(--accent); background: rgba(79,70,229,0.06);
}
.ai-skeleton-list { display: flex; flex-direction: column; gap: 10px; }
.ai-skeleton {
    height: 52px; border-radius: 8px;
    background: linear-gradient(90deg, #E2E8F0 25%, #EEF2F7 50%, #E2E8F0 75%);
    background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ai-preview-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
/* Column layout: [cb] [name] [cap] [date] [time] [contact] [reason] */
.ai-preview-header {
    display: grid; grid-template-columns: 20px 1fr 52px 108px 90px 90px 22px;
    gap: 8px; padding: 0 12px 4px;
}
.ai-preview-header span {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--mute);
}
.ai-preview-row {
    display: grid; grid-template-columns: 20px 1fr 52px 108px 90px 90px 22px;
    align-items: center; gap: 8px; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 8px; background: #FAFBFC;
}
.ai-preview-row input[type="text"],
.ai-preview-row input[type="number"],
.ai-preview-row input[type="date"],
.ai-preview-row select {
    font-family: var(--font-body); font-size: 0.8rem; padding: 5px 7px;
    border: 1.5px solid var(--line); border-radius: 6px;
    color: var(--ink); background: #fff; width: 100%; min-width: 0;
}
.ai-preview-row input:focus, .ai-preview-row select:focus {
    border-color: var(--accent); outline: none;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}
.ai-detail-input, .ai-contact-input, .ai-detail-select { font-family: var(--font-body); }
.ai-reason-btn {
    width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid var(--line); background: none; font-size: 11px;
    color: var(--mute); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
}
.ai-reason-btn:hover { background: var(--paper); }
.ai-reason-tip {
    display: none; position: absolute; right: 0; top: 28px; width: 200px;
    background: var(--ink); color: #fff; font-size: 11px;
    padding: 8px 10px; border-radius: 6px; z-index: 100; line-height: 1.5;
    pointer-events: none; font-family: var(--font-body);
}
.ai-reason-btn:hover .ai-reason-tip { display: block; }
.ai-modal-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; width: 100%;
}
.ai-error-banner {
    background: var(--red-light); border: 1px solid rgba(220,38,38,0.2);
    color: var(--red); border-radius: 8px; padding: 12px 16px;
    font-size: 0.82rem; margin-top: 12px;
}

/* ── Container themes ── */
.container-view-header { --t-accent: #4F46E5; --t-dark: #3730A3; --t-tint: #EEF2FF; }
[data-theme="spring"]  { --t-accent: #059669; --t-dark: #047857; --t-tint: #ECFDF5; }
[data-theme="ocean"]   { --t-accent: #0891B2; --t-dark: #0E7490; --t-tint: #ECFEFF; }
[data-theme="sunset"]  { --t-accent: #EA580C; --t-dark: #C2410C; --t-tint: #FFF7ED; }
[data-theme="warm"]    { --t-accent: #D97706; --t-dark: #B45309; --t-tint: #FFFBEB; }
[data-theme="earth"]   { --t-accent: #78350F; --t-dark: #6B2E0C; --t-tint: #FEF3C7; }
[data-theme="rose"]    { --t-accent: #E11D48; --t-dark: #BE123C; --t-tint: #FFF1F2; }
[data-theme="night"]   { --t-accent: #334155; --t-dark: #1E293B; --t-tint: #F8FAFC; }
[data-theme="violet"]  { --t-accent: #7C3AED; --t-dark: #6D28D9; --t-tint: #F5F3FF; }
[data-theme="teal"]    { --t-accent: #0F766E; --t-dark: #0D6E66; --t-tint: #F0FDFA; }
[data-theme="fuchsia"] { --t-accent: #C026D3; --t-dark: #A21CAF; --t-tint: #FDF4FF; }
[data-theme="sky"]     { --t-accent: #0284C7; --t-dark: #0369A1; --t-tint: #F0F9FF; }
.container-view-header .container-type-badge--project,
.container-view-header .container-type-badge--event {
    color: var(--t-accent);
    background: color-mix(in srgb, var(--t-accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--t-accent) 22%, transparent);
}
.container-banner {
    height: 200px; background-size: cover; background-position: center;
    width: 100%;
}

/* ── Stock photo picker ── */
.stock-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 10px;
}
.stock-thumb {
    aspect-ratio: 16/9; background-size: cover; background-position: center;
    border-radius: 6px; cursor: pointer; border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.1s;
}
.stock-thumb:hover { transform: scale(1.03); }
.stock-thumb.selected { border-color: var(--accent); }
.img-preview {
    height: 80px; background-size: cover; background-position: center;
    border-radius: 8px; margin-top: 8px; display: none;
    border: 1px solid var(--line);
}

/* ── Visibility toggle ── */
.visibility-opts { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.visibility-opts label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 500; cursor: pointer;
}

/* ── Theme swatch picker ── */
.theme-swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.theme-swatch {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: var(--radius-sm); cursor: pointer;
    border: 1.5px solid var(--line); background: #fff;
    font-size: 0.75rem; font-weight: 600; color: var(--mute);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.theme-swatch .swatch-dot {
    width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.theme-swatch:hover { border-color: #CBD5E1; color: var(--ink); }
.theme-swatch.selected { border-color: var(--ink); color: var(--ink); background: #F8FAFC; }

/* ── Task progress dots ── */
.task-progress { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.task-progress__dots { display: flex; gap: 3px; }
.task-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--line); flex-shrink: 0;
    transition: background 0.2s;
}
.task-dot--filled { background: var(--t-accent, #4F46E5); }
.task-dot--full   { background: var(--sage); }
.task-progress__label { font-size: 11px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.task-claimed-check {
    font-size: 12px; font-weight: 700; color: var(--sage);
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap;
}

/* ── Page layout ── */
.page-wrapper { max-width: 920px; margin: 0 auto; padding: 36px 24px 80px; }

/* ── Page hero ── */
.page-hero { margin-bottom: 32px; animation: fadeUp 0.5s ease-out both; }
.page-hero__title { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.page-hero__sub { font-size: 0.875rem; color: var(--mute); margin-top: 4px; }
.page-hero__sub strong { color: var(--ink); font-weight: 700; }

/* ── Section header + view toggle ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.view-toggle {
    display: flex;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mute);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
    font-family: var(--font-body);
}
.view-toggle__btn.is-active { color: var(--ink); background: var(--card); }
.view-toggle__btn:hover:not(.is-active) { color: var(--ink-2); background: rgba(15,23,42,0.03); }

/* ── Calendar view ── */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cal-nav__btn {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 14px;
    cursor: pointer;
    color: var(--mute);
    font-size: 14px;
    transition: background 0.12s, color 0.12s;
    line-height: 1;
}
.cal-nav__btn:hover { background: var(--paper); color: var(--ink); }
.cal-nav__label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 32px;
}
.cal-grid__dow {
    background: var(--paper);
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
    padding: 8px 4px;
}
.cal-grid__cell {
    background: var(--card);
    min-height: 80px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cal-grid__cell--other-month { background: #FAFBFC; }
.cal-grid__cell--has-tasks { cursor: pointer; }
.cal-grid__cell--has-tasks:hover { background: var(--accent-t); }
.cal-grid__cell--today .cal-grid__day span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
}
.cal-grid__day {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 2px;
}
.cal-grid__cell--other-month .cal-grid__day { color: var(--mute); }
.cal-task-pill {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-d);
    background: var(--accent-t);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.cal-task-pill--full { color: var(--red); background: rgba(220,38,38,0.07); }
.cal-task-pill--recurring { color: var(--amber); background: rgba(217,119,6,0.08); }
@media (max-width: 640px) {
    .cal-grid__cell { min-height: 56px; padding: 4px; }
    .cal-task-pill { display: none; }
    .cal-grid__cell--has-tasks::after { content: '\2022'; font-size: 14px; color: var(--accent); line-height: 1; }
}

/* ── Flash messages ── */
.flash { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.875rem; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 12px; animation: slideDown 0.3s ease-out both; }
.flash--success { background: var(--sage-light); color: var(--sage); border: 1px solid rgba(5,150,105,0.2); }
.flash--error { background: var(--red-light); color: var(--red); border: 1px solid rgba(220,38,38,0.2); }
.flash__close { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: inherit; opacity: 0.5; padding: 0; line-height: 1; transition: opacity 0.15s; flex-shrink: 0; }
.flash__close:hover { opacity: 1; }

/* ── Admin panels ── */
.admin-tabs { margin-bottom: 20px; animation: fadeUp 0.5s ease-out 0.05s both; }
.admin-tabs__nav { display: flex; gap: 2px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md) var(--radius-md) 0 0; padding: 8px 10px 0; border-bottom: none; }
.admin-tabs__tab { padding: 9px 18px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--mute); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; cursor: pointer; transition: color 0.15s, background 0.15s; white-space: nowrap; }
.admin-tabs__tab:hover { color: var(--ink); background: var(--paper); }
.admin-tabs__tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); background: var(--card); }
.tab-count { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-t); border: 1px solid rgba(79,70,229,0.18); border-radius: 8px; padding: 0 6px; margin-left: 6px; min-width: 16px; line-height: 16px; }
.admin-tabs__body { display: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: 24px 20px; }
.admin-tabs__body.is-active { display: block; }
.form-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--ink); cursor: pointer; }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field--span2 { grid-column: span 2; }
.form-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.form-label .req { color: var(--accent); }

/* Settings-style toggle rows (Edit Event → Options tab, and reusable elsewhere). */
.option-stack { display: flex; flex-direction: column; gap: 10px; }
.option-row {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.option-row:hover,
.option-row:focus-within { border-color: var(--accent, var(--mute)); background: rgba(0,0,0,0.015); }
.option-row__body { flex: 1; min-width: 0; display: block; }
.option-row__title { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.option-row__hint  { display: block; font-size: 12px; color: var(--warm-gray); line-height: 1.4; margin-top: 4px; }
.option-row__check { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.form-input, .form-select {
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 9px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-input::placeholder { color: var(--mute); opacity: 0.5; }
.form-input:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.form-hint { font-size: 0.7rem; color: var(--mute); }
.form-actions { margin-top: 18px; display: flex; align-items: center; gap: 10px; }

/* ── Buttons ── */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.btn--primary { background: var(--accent); color: white; padding: 10px 20px; box-shadow: 0 1px 3px rgba(79,70,229,0.25); }
.btn--primary:hover { background: var(--accent-d); box-shadow: 0 4px 12px rgba(79,70,229,0.3); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; padding: 10px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.btn--dark:hover { background: #26242E; box-shadow: 0 4px 12px rgba(0,0,0,0.25); transform: translateY(-1px); }
.btn--signup { background: var(--sage); color: white; padding: 9px 20px; font-size: 0.82rem; font-weight: 700; box-shadow: 0 1px 3px rgba(5,150,105,0.2); }
.btn--signup:hover { background: #047857; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(5,150,105,0.25); }
.btn--ghost { background: none; color: var(--mute); padding: 6px 10px; border: 1px solid transparent; font-size: 0.82rem; }
.btn--ghost:hover { background: var(--red-light); color: var(--red); border-color: rgba(220,38,38,0.15); }
.btn--remove-task { background: none; border: none; color: var(--mute); padding: 5px 8px; font-size: 1.05rem; cursor: pointer; border-radius: 6px; transition: all 0.15s; line-height: 1; }
.btn--remove-task:hover { background: var(--red-light); color: var(--red); }
.btn--outline { background: none; color: var(--accent); padding: 8px 16px; border: 1.5px solid var(--accent); font-size: 0.82rem; }
.btn--outline:hover { background: rgba(79,70,229,0.05); }
/* Compact button modifier — pairs with any .btn--<color>. */
.btn--sm { padding: 5px 12px; font-size: 0.78rem; }

/* ── Filter bar ── */
.filter-bar__search { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.filter-bar__search .form-input { padding: 7px 11px; font-size: 0.82rem; }
.filter-bar__search .form-label { font-size: 11px; }
.task-card--hidden { display: none !important; }
.search-no-results { text-align: center; padding: 40px 0; color: var(--mute); font-size: 0.9rem; display: none; }
.filter-bar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-1);
    animation: fadeUp 0.5s ease-out 0.1s both;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.filter-bar form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; flex: 1; }
.filter-bar .form-field { gap: 4px; }
.filter-bar .form-input { padding: 7px 11px; font-size: 0.82rem; }
.filter-bar .form-label { font-size: 11px; }
.filter-bar__actions { display: flex; align-items: center; gap: 10px; padding-bottom: 1px; }
.filter-bar__clear { font-size: 0.78rem; color: var(--mute); text-decoration: none; transition: color 0.15s; }
.filter-bar__clear:hover { color: var(--red); }

/* ── Section label ── */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; animation: fadeUp 0.5s ease-out 0.15s both; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── Task cards ── */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: visible;
    box-shadow: var(--shadow-1);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    animation: fadeUp 0.45s ease-out both;
    position: relative;
}
.task-card--full { background: #F7F9FC; }
.task-card:hover { box-shadow: 0 4px 14px rgba(15,23,42,.07); border-color: var(--line-2); }
.task-card.date-picker-elevated { z-index: 200; }
.task-card:nth-child(1) { animation-delay: 0.08s; }
.task-card:nth-child(2) { animation-delay: 0.14s; }
.task-card:nth-child(3) { animation-delay: 0.20s; }
.task-card:nth-child(4) { animation-delay: 0.26s; }
.task-card:nth-child(5) { animation-delay: 0.32s; }

/* Amber pill for recurring tasks */
.task-card__amber-pill {
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 3px;
    background: var(--amber);
    border-radius: 3px;
    z-index: 1;
}

/* Card body: 3-column grid */
.task-card__body {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 16px;
    padding: 16px 18px;
    align-items: center;
}

/* Date tile */
.task-card__date {
    width: 60px; height: 68px;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
    gap: 1px;
}
.task-card__date--empty { opacity: 0.3; }
.task-card__date-month { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-d); line-height: 1; }
.task-card__date-day { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.task-card__date-weekday { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); line-height: 1; }

/* Info column */
.task-card__info { flex: 1; min-width: 0; }
.task-card__name { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.task-card__sub { font-size: 12px; font-weight: 500; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; margin-top: 2px; }
.task-card__dot { color: var(--mute); }
.task-card__recur-badge {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--amber); background: rgba(217,119,6,0.1);
    padding: 2px 7px; border-radius: var(--radius-sm);
    border: 1px solid rgba(217,119,6,0.2);
}

/* Progress bar */
.task-card__progress { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.task-card__progress-track { flex: 1; max-width: 180px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.task-card__progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s ease; }
.task-card__progress-fill--full { background: var(--red); }
.task-card__progress-label { font-size: 11px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.task-card__progress-label--full { color: var(--red); }

/* Actions column */
.task-card__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.task-card__signup-btn {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, opacity 0.15s;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
.task-card__signup-btn:hover { background: var(--ink-2); color: var(--paper); }
.task-card__signup-btn--full { background: transparent; color: var(--red); border: 1.5px solid currentColor; opacity: 0.7; cursor: default; }
.task-card__signup-btn--full:hover { background: transparent; color: var(--red); }
.task-card__signed-badge { font-size: 12px; font-weight: 700; color: var(--sage); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* 2F.1 — subtle note shown after a full-carry inline sign-up so the volunteer
   sees that their prior info was applied. Sits below the You're-in badge. */
.task-card__carry-note { display: block; font-size: 11px; color: var(--mute); margin-top: 3px; line-height: 1.35; }
/* 3E — waitlist surface */
.task-card__signed-badge--waitlist { color: var(--amber); }
.task-card__signup-btn--waitlist { background: transparent; color: var(--amber); border: 1.5px solid currentColor; }
.task-card__signup-btn--waitlist:hover  { background: rgba(245, 158, 11, 0.08); color: var(--amber); }
.task-card__signup-btn--waitlist:active { background: rgba(245, 158, 11, 0.15); color: var(--amber); }

/* 3E — guidance pulse on the Continue button when the sign-up drawer opens. */
@keyframes cff-pulse {
    0%, 100% { box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25); }
    50%      { box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18), 0 1px 3px rgba(79, 70, 229, 0.25); }
}
.cff-pulse { animation: cff-pulse 1.2s ease-in-out 0s 2; }
@media (prefers-reduced-motion: reduce) {
    .cff-pulse { animation: none; }
}
.task-card__dates-count { font-size: 11.5px; font-weight: 700; color: var(--amber); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.task-card__chevron { margin-left: 2px; color: var(--mute); transition: transform 0.2s ease; font-size: 11px; flex-shrink: 0; }

/* ── Inline task expand (admin) ── */
.task-card__body--clickable { cursor: pointer; user-select: none; }
.task-card__body--clickable:hover { background: rgba(15,23,42,0.02); border-radius: 14px 14px 0 0; }

/* Expand panel: hidden by default, side-by-side when open */
.task-card__expand { display: none; padding: 20px; background: var(--paper); border-left: 1px solid var(--line); border-radius: 0 14px 14px 0; overflow-y: auto; }
.task-card--expanded { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.task-card--expanded > *:not(.task-card__expand) { grid-column: 1; min-width: 0; }
.task-card--expanded .task-card__expand { display: block; grid-column: 2; grid-row: 1 / 100; animation: slideRight 0.18s ease-out; }
.task-card--expanded .task-card__chevron { transform: rotate(90deg); }
.task-card--expanded .task-card__body--clickable:hover { border-radius: 14px 0 0 0; }

/* Sign-up drawer */
.task-card__drawer { display: none; border-top: 1px solid var(--line); }
.task-card__drawer.is-open { display: block; animation: drawerSlideDown 0.22s ease; }
@keyframes drawerSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.task-card__drawer-inner { padding: 16px 18px; background: var(--paper); }

/* Sub-request form */
.task-card__sub-form { display: none; border-top: 1px solid var(--line); }
.task-card__sub-form.is-open { display: block; animation: drawerSlideDown 0.22s ease; }
.task-card__sub-form-inner { padding: 16px 18px; background: #FFFBEB; }
.task-card__sub-form-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #92400E; }

/* Inline recurring date list (replaces dropdown toggle in sign-up drawer) */
.recur-date-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 4px; }
.recur-date-list__toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.recur-date-list__count { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.recur-date-list__actions { display: flex; gap: 8px; }
.recur-date-list__items { max-height: 220px; overflow-y: auto; }
.task-card__drawer-inner .guest-signup-form__fields { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; width: 100%; }
@keyframes slideRight { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }
.expand-recur-info {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: var(--mute);
    background: rgba(217,119,6,0.07); border: 1px solid rgba(217,119,6,0.18);
    border-radius: var(--radius); padding: 7px 12px; margin-bottom: 14px;
}
.expand-recur-info strong { color: var(--amber); }
.expand-recur-info svg { color: var(--amber); flex-shrink: 0; }
.expand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 4px; }
.expand-grid .span2 { grid-column: 1 / -1; }
.expand-section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--mute); margin: 16px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.expand-vol-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.expand-vol-row:last-child { border-bottom: none; }
.expand-vol-name { font-weight: 600; color: var(--ink); }
.expand-vol-email { font-size: 0.78rem; color: var(--mute); margin-left: 8px; }
.expand-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; }

/* 3E Day 3 — admin waitlist surface inside task-card__expand */
.expand-section-label--waitlist { color: var(--amber); }
.expand-vol-row--waitlist { background: rgba(245, 158, 11, 0.04); border-radius: var(--radius-sm); padding-left: 8px; padding-right: 8px; }
.expand-vol-pos { font-size: 11px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; min-width: 22px; }
.expand-vol-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-sm); white-space: nowrap; letter-spacing: 0.02em; }
.expand-vol-badge--amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.expand-vol-actions { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.btn--xs { font-size: 11px; padding: 3px 8px; }
.wlp-popover { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; box-shadow: 0 8px 20px -8px rgba(15,23,42,0.18); min-width: 240px; max-width: 280px; }
.wlp-popover__hint { font-size: 11px; color: var(--mute); line-height: 1.45; margin: 6px 0 8px; }

/* ── Badge utilities (still used in other places) ── */
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 10px; border-radius: var(--radius-sm); white-space: nowrap; }
.badge--count { background: rgba(79,70,229,0.06); color: var(--accent); border: 1px solid rgba(79,70,229,0.12); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; }

/* ── Guest signin hint (used in drawer) ── */
.guest-signin-hint { margin-top: 9px; font-size: 11.5px; color: var(--mute); }
.guest-signin-hint a { color: var(--accent); text-decoration: none; font-weight: 600; }
.guest-signin-hint a:hover { text-decoration: underline; }

/* ── Date picker ── */
.date-picker-wrapper { position: relative; margin-top: 4px; }
.date-picker-toggle { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; padding: 9px 13px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
.date-picker-toggle:hover, .date-picker-wrapper[data-open="true"] .date-picker-toggle { border-color: var(--sage-muted); box-shadow: 0 0 0 3px rgba(5,150,105,0.08); }
.date-picker-toggle__icon { font-size: 1rem; line-height: 1; opacity: 0.45; }
.date-picker-toggle__text { flex: 1; text-align: left; }
.date-picker-toggle__count { font-weight: 700; color: var(--sage); font-size: 0.7rem; background: var(--sage-light); padding: 2px 9px; border-radius: 10px; border: 1px solid rgba(5,150,105,0.15); }
.date-picker-toggle__arrow { font-size: 11px; color: var(--mute); transition: transform 0.25s ease; }
.date-picker-wrapper[data-open="true"] .date-picker-toggle__arrow { transform: rotate(180deg); }
.date-picker-dropdown { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 100; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-2); overflow: hidden; animation: slideDown 0.18s ease-out; }
.date-picker-wrapper[data-open="true"] .date-picker-dropdown { display: block; }
.date-picker-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.date-picker-toolbar__label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.date-picker-toolbar__actions { display: flex; gap: 6px; }
.date-picker-toolbar__btn { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: all 0.15s; }
.date-picker-toolbar__btn:hover { border-color: var(--sage); background: var(--sage-light); color: var(--sage); }
.date-picker-list { max-height: 360px; overflow-y: auto; padding: 4px 0; }
.date-picker-list::-webkit-scrollbar { width: 5px; }
.date-picker-list::-webkit-scrollbar-track { background: transparent; }
.date-picker-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.date-picker-item { display: flex; align-items: center; gap: 12px; padding: 9px 14px; cursor: pointer; transition: background 0.12s; user-select: none; border-left: 3px solid transparent; }
.date-picker-item:hover { background: rgba(5,150,105,0.04); }
.date-picker-item--selected { background: var(--sage-light); border-left-color: var(--sage); }
.date-picker-item--selected:hover { background: rgba(5,150,105,0.10); }
.date-picker-item--disabled { opacity: 0.38; pointer-events: none; }
.date-picker-item__check { width: 17px; height: 17px; border-radius: 4px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.12s; background: var(--card); }
.date-picker-item--selected .date-picker-item__check { background: var(--sage); border-color: var(--sage); }
.date-picker-item__check-icon { display: none; width: 9px; height: 9px; color: white; }
.date-picker-item--selected .date-picker-item__check-icon { display: block; }
.date-picker-item__info { flex: 1; min-width: 0; }
.date-picker-item__week { font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.03em; }
.date-picker-item__date { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.date-picker-item__time { font-size: 0.7rem; color: var(--mute); margin-left: 4px; }
.date-picker-item--disabled .date-picker-item__signed { font-size: 11px; font-weight: 600; color: var(--mute); background: rgba(100,116,139,0.08); padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.date-picker-item input[type="checkbox"],
.date-picker-item input[type="radio"] { display: none; }

/* ── Volunteer occurrence badges ── */
.vol-item__weeks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.vol-item__week-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: rgba(79,70,229,0.07); color: var(--accent); border: 1px solid rgba(79,70,229,0.12); white-space: nowrap; }

/* ── Status pills (still used in admin/profile contexts) ── */
.status-pill { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 9px; border-radius: var(--radius-sm); white-space: nowrap; }
.status-pill--open { background: var(--sage-light); color: var(--sage); border: 1px solid rgba(5,150,105,0.2); }
.status-pill--full { background: var(--red-light); color: var(--red); border: 1px solid rgba(220,38,38,0.2); }

/* ── Volunteer list ── */
.vol-list { padding: 0 20px 16px; }
.vol-list__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 0 7px; border: none; border-top: 1px solid var(--line); background: none; cursor: pointer; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--mute); transition: color 0.15s; }
.vol-list__toggle:hover { color: var(--ink); }
.vol-list__chevron { transition: transform 0.25s ease; width: 11px; height: 11px; }
.vol-list__toggle[aria-expanded="true"] .vol-list__chevron { transform: rotate(180deg); }
.vol-list__items { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.vol-list__items[data-open="true"] { max-height: 600px; }
.vol-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(226,232,240,0.7); }
.vol-item:last-child { border-bottom: none; }
.vol-item__info { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.vol-item__name { font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.vol-item__email { font-size: 0.78rem; color: var(--mute); }
.vol-item__info  { flex: 1 1 auto; min-width: 0; }
.vol-item__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.attendance-badge { font-size: 0.72rem; font-weight: 600; padding: 2px 10px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; min-width: 84px; text-align: center; display: inline-block; }
.attendance-pending   { background: rgba(148,163,184,0.12); color: #64748b; border: 1px solid rgba(148,163,184,0.25); }
.attendance-active    { background: rgba(16,185,129,0.10); color: #059669; border: 1px solid rgba(16,185,129,0.25); }
.attendance-completed { background: rgba(79,70,229,0.08); color: var(--accent); border: 1px solid rgba(79,70,229,0.15); }
.attendance-no-show   { background: rgba(239,68,68,0.08); color: #dc2626; border: 1px solid rgba(239,68,68,0.18); }

.attendance-btn {
    min-width: 44px; min-height: 44px; padding: 8px 14px; font-size: 0.8rem; font-weight: 600;
    border-radius: 8px; border: 1.5px solid; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; gap: 4px; flex-shrink: 0;
    font-family: inherit; transition: opacity 0.15s, transform 0.15s;
}
.attendance-btn:active  { transform: scale(0.97); }
.attendance-btn:disabled { opacity: 0.5; cursor: wait; }
.attendance-btn--primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.attendance-btn--secondary { background: #fff; color: #475569; border-color: #cbd5e1; }
.attendance-btn--secondary:hover { background: #f8fafc; border-color: #94a3b8; }
@media (max-width: 480px) { .attendance-btn { padding: 8px 10px; font-size: 0.72rem; } }

.attendance-toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: #1e293b; color: #fff; padding: 10px 18px; border-radius: 24px;
    font-size: 0.85rem; font-weight: 500; z-index: 10001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18); opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.attendance-toast--visible { opacity: 1; }
.attendance-toast--warn  { background: #92400e; }
.attendance-toast--error { background: #991b1b; }

/* ── Check-in page (2B.1) ── */
.checkin-page { max-width: 880px; margin: 0 auto; padding: 18px 18px 60px; }
.checkin-page__header { padding: 8px 4px 16px; }
.checkin-page__title  { font-size: 1.5rem; font-weight: 700; color: var(--charcoal); margin: 0 0 4px; }
.checkin-page__date   { font-size: 0.9rem; color: var(--mute); }

.checkin-date-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: thin; }
.checkin-date-tab {
    flex-shrink: 0; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line);
    background: #fff; color: var(--charcoal); font-size: 0.82rem; font-weight: 600;
    text-decoration: none; white-space: nowrap; transition: border-color 0.15s, background 0.15s;
}
.checkin-date-tab:hover { border-color: var(--accent); }
.checkin-date-tab--active { background: var(--accent); color: #fff; border-color: var(--accent); }

.checkin-row__row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.checkin-bulk-btn { white-space: nowrap; }

.checkin-search-bar { position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--bg); margin-bottom: 8px; }
.checkin-search-input {
    width: 100%; padding: 12px 14px; font-size: 0.95rem; border: 1.5px solid var(--line);
    border-radius: 10px; background: #fff; font-family: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.checkin-search-input:focus { outline: none; border-color: var(--accent); }

.checkin-coverage { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.checkin-coverage__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.checkin-coverage__label  { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); }
.checkin-coverage__alert  { font-size: 0.78rem; font-weight: 600; color: #b45309; }
.checkin-coverage__grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px 10px; }
.cov-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 16px; font-size: 0.78rem; font-weight: 600; border: 1px solid; }
.cov-chip__icon  { font-weight: 800; }
.cov-chip__name  { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-chip__count { font-variant-numeric: tabular-nums; font-size: 0.75rem; opacity: 0.85; }
.cov-chip--full     { background: rgba(16,185,129,0.10); color: #059669; border-color: rgba(16,185,129,0.30); }
.cov-chip--partial  { background: rgba(79,70,229,0.06);  color: var(--accent); border-color: rgba(79,70,229,0.20); }
.cov-chip--uncapped { background: rgba(148,163,184,0.10); color: #475569; border-color: rgba(148,163,184,0.25); }
.cov-chip--short    { background: rgba(245,158,11,0.10); color: #b45309; border-color: rgba(245,158,11,0.30); }
.cov-chip--empty    { background: rgba(239,68,68,0.08);  color: #b91c1c; border-color: rgba(239,68,68,0.25); }

.checkin-section { margin-bottom: 22px; }
.checkin-section__header { display: flex; align-items: baseline; gap: 10px; padding: 6px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.checkin-section__header span:first-child { font-size: 1rem; font-weight: 700; color: var(--charcoal); }
.checkin-section__count { font-size: 0.82rem; color: var(--mute); font-weight: 600; }
.checkin-section__rows  { display: flex; flex-direction: column; gap: 8px; }

.checkin-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.checkin-row__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.checkin-row__identity { min-width: 0; flex: 1 1 auto; }
.checkin-row__name  { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkin-row__email { font-size: 0.78rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkin-edit-btn {
    background: none; border: 1.5px solid var(--line); border-radius: 8px;
    width: 36px; height: 36px; min-width: 36px; cursor: pointer;
    color: var(--mute); display: inline-flex; align-items: center; justify-content: center;
    transition: color 0.15s, border-color 0.15s;
}
.checkin-edit-btn:hover { color: var(--accent); border-color: var(--accent); }

.checkin-chip { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; }
.checkin-chip + .checkin-chip { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.checkin-chip__task { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); flex: 0 1 auto; min-width: 80px; }
.checkin-chip__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }

.checkin-empty { text-align: center; padding: 40px 20px; color: var(--mute); font-size: 0.9rem; background: #fff; border: 1px dashed var(--line); border-radius: 12px; }

.edit-task-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.edit-task-row:last-child { border-bottom: none; }
.edit-task-row input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.edit-task-row__name { flex: 1 1 auto; font-size: 0.9rem; font-weight: 600; color: var(--charcoal); }
.edit-task-row__cap  { font-size: 0.78rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.checkin-edit-warning { padding: 10px 14px; margin: 8px 16px; background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.30); border-radius: 8px; font-size: 0.82rem; color: #b45309; }

@media (max-width: 600px) {
    .checkin-page { padding: 14px 12px 60px; }
    .checkin-page__title { font-size: 1.25rem; }
    .checkin-coverage__grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .checkin-chip { padding: 8px 0; }
    .checkin-chip__actions { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* ============================================================
   Check-in redesign (2B.1.2) — Claude Design handoff
   ============================================================ */

/* Top nav */
.ev-top { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.ev-brand { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ev-brand .pip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-t); color: var(--accent-d); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.ev-back { font-size: 12px; color: var(--mute); font-weight: 600; text-decoration: none; }
.ev-back:hover { color: var(--ink); }

/* Hero */
.ci-page { background: var(--paper); min-height: 100vh; }
.ci-hero { padding: 14px 16px 0; background: var(--paper); }
.ci-eyebrow { display: flex; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); align-items: center; }
.ci-eyebrow b { color: var(--accent-d); }
.ci-title { font-size: 22px; font-weight: 800; letter-spacing: -0.022em; line-height: 1.15; margin: 4px 0 0; color: var(--ink); }
.ci-sub { font-size: 12.5px; color: var(--mute); margin-top: 4px; font-weight: 500; }
.ci-hero__head { display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; }
.ci-hero__id { flex: 1; min-width: 0; }

/* Tools cluster */
.ci-tools { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.ci-tool { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); padding: 6px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; cursor: pointer; line-height: 1; text-decoration: none; font-family: inherit; }
.ci-tool:hover { border-color: var(--accent); color: var(--accent); }
.ci-tool svg { width: 13px; height: 13px; }
.ci-tool--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.ci-tool--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Back-to-Events link (replaces the workspace breadcrumb when in check-in view) */
.ci-back-link { display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px 0; font-size: 12px; font-weight: 600; color: var(--mute); text-decoration: none; letter-spacing: 0.02em; }
.ci-back-link:hover { color: var(--ink); }
.ci-back-link svg { stroke: currentColor; }
@media (min-width: 720px) { .ci-back-link { padding: 16px 32px 0; } }

/* Legacy stats strip — kept for backward compatibility; no longer used by the partial */
.ci-stats { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 6px; flex-wrap: wrap; }
.ci-stats__line { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.ci-stats__line b { color: var(--ink); font-weight: 700; }
@media (min-width: 720px) { .ci-stats { padding: 16px 32px 6px; } }

/* Day strip */
.ci-days { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; }
.ci-days::-webkit-scrollbar { height: 0; }
.ci-day { flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.15; min-width: 54px; text-decoration: none; }
.ci-day .dlabel { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-bottom: 2px; display: block; }
.ci-day--today { border-color: var(--ink); color: var(--ink); }
.ci-day--active { background: var(--ink); border-color: var(--ink); color: #fff; }
.ci-day--active .dlabel { color: rgba(255,255,255,0.7); }

/* Triage list (replaces Now bar + cov strip; design variant A) */
.triage { margin: 14px 16px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-1); }
.triage__head { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.triage__title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.triage__title b { color: var(--red); font-weight: 700; }
.triage__title.ok b { color: var(--sage); }
.triage__pulse { font-size: 10px; font-weight: 600; color: var(--sage); display: inline-flex; align-items: center; gap: 5px; letter-spacing: 0.02em; }
.triage__pulse::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); animation: trgPulse 1.8s ease-in-out infinite; }
@keyframes trgPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.triage__row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; background: #fff; border-left: none; width: 100%; text-align: left; font-family: inherit; }
.triage__row:last-of-type { border-bottom: none; }
.triage__row:hover { background: var(--paper); }
.triage__sev { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.triage__sev--empty { background: var(--red-light); color: var(--red); }
.triage__sev--short { background: var(--amber-light); color: var(--amber-d); }
.triage__sev--soon  { background: var(--accent-t); color: var(--accent-d); }
.triage__main { flex: 1; min-width: 0; }
.triage__name { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.triage__why { font-size: 11.5px; color: var(--mute); margin-top: 2px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.triage__why b { color: var(--ink-2); font-weight: 600; }
.triage__time { font-size: 11px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; text-align: right; flex-shrink: 0; letter-spacing: 0.02em; line-height: 1.15; }
.triage__time em { display: block; font-style: normal; font-size: 10px; font-weight: 600; color: var(--red); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 1px; }
.triage__time--now em { color: var(--mute); }
.triage__cta { flex-shrink: 0; background: var(--ink); color: #fff; border: none; font: 600 11.5px/1 inherit; padding: 12px 14px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; letter-spacing: -0.005em; min-height: 44px; min-width: 44px; font-family: inherit; }
.triage__cta:hover { background: var(--accent); }
.triage__cta svg { width: 11px; height: 11px; }
.triage__cta--ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.triage__cta--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.triage__foot { padding: 10px 16px; background: var(--paper); font-size: 11.5px; color: var(--mute); border-top: 1px solid var(--line); cursor: pointer; border: none; width: 100%; text-align: left; font-family: inherit; line-height: 1.4; }
.triage__foot:hover { background: #fff; color: var(--ink); }
.triage__foot b { color: var(--ink); font-weight: 600; }
.triage__foot[hidden] { display: none; }
.triage__healthy-expanded { padding: 12px 16px; background: var(--paper); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.triage__healthy-expanded[hidden] { display: none; }
.triage--all-ok .triage__head { border-bottom: none; }

/* Coverage chip — used by triage's expanded healthy list */
.cov-mini { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 8px; border-radius: 18px; font-size: 11px; font-weight: 600; background: #fff; border: 1px solid var(--line); line-height: 1; white-space: nowrap; color: var(--ink-2); }
.cov-mini::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
.cov-mini b { font-variant-numeric: tabular-nums; font-weight: 700; color: inherit; }
.cov-mini--full::before    { background: var(--sage); }
.cov-mini--full            { color: var(--sage); border-color: rgba(5,150,105,.3); }
.cov-mini--partial::before { background: var(--accent); }
.cov-mini--partial         { color: var(--accent-d); border-color: rgba(79,70,229,.25); }
.cov-mini--short::before   { background: var(--amber); }
.cov-mini--short           { color: #92400E; border-color: rgba(217,119,6,.3); background: var(--amber-light); }
.cov-mini--empty::before   { background: var(--red); }
.cov-mini--empty           { color: #991b1b; border-color: rgba(220,38,38,.3); background: var(--red-light); }
.cov-mini--uncapped::before { background: var(--line-2); }

/* Sticky search + segmented filter */
.ci-stick { position: sticky; top: 0; background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 75%, rgba(243,245,250,0)); padding: 14px 16px 12px; z-index: 4; margin-top: 10px; }
.ci-search { position: relative; }
.ci-search input { width: 100%; padding: 11px 14px 11px 38px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: inherit; color: var(--ink); box-shadow: var(--shadow-1); }
.ci-search input::placeholder { color: var(--mute); }
.ci-search input:focus { outline: none; border-color: var(--accent); }
.ci-search .glass { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--mute); width: 16px; height: 16px; pointer-events: none; }
.ci-search__count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--mute); font-weight: 600; background: var(--paper); padding: 2px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.ci-seg { display: flex; gap: 4px; margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg { flex: 1; background: transparent; border: none; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--mute); padding: 10px 8px; border-radius: 7px; cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; }
.seg b { font-variant-numeric: tabular-nums; font-weight: 700; color: inherit; }
.seg--on { background: var(--ink); color: #fff; }
.seg--on b { color: #fff; }

/* Volunteer list + rows (scoped to .ci-page so it doesn't collide with the
   .vol-list rule used by the task admin expansion in views/index.ejs:1102) */
.ci-page .vol-list { padding: 0 12px 24px; display: flex; flex-direction: column; gap: 6px; }
.vol { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 12px 10px; box-shadow: var(--shadow-1); position: relative; }
.vol__head { display: flex; align-items: center; gap: 10px; }
.vol__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-t); color: var(--accent-d); display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: -0.01em; flex-shrink: 0; }
.vol__id { flex: 1; min-width: 0; }
.vol__name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vol__meta { font-size: 11.5px; color: var(--mute); margin-top: 1px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vol__meta b { color: var(--ink-2); font-weight: 600; }
.vol__kebab-wrap { position: relative; flex-shrink: 0; }
.vol__kebab { width: 44px; height: 44px; min-width: 44px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--mute); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; padding: 0; font-family: inherit; }
.vol__kebab:hover { border-color: var(--line); color: var(--ink); }
.vol__kebab svg { width: 16px; height: 16px; pointer-events: none; }

/* Recurring marker */
.vol--recurring::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; background: var(--amber); border-radius: 3px; }

/* Chips */
.vol__chips { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--paper); border: 1px solid transparent; font: 600 13px/1.2 inherit; color: var(--ink-2); cursor: pointer; min-height: 44px; text-align: left; width: 100%; font-family: inherit; }
.chip:hover { border-color: var(--line-2); }
.chip:disabled { cursor: default; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
.chip__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.chip__state { font: 700 10.5px/1 inherit; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.chip__btn { margin-left: auto; background: var(--ink); color: #fff; border: none; font: 600 11.5px/1 inherit; padding: 8px 12px; border-radius: 7px; min-height: 32px; pointer-events: none; flex-shrink: 0; }

.chip--pending .chip__dot { background: var(--line-2); }
.chip--active { background: var(--sage-light); border-color: rgba(5,150,105,.25); }
.chip--active .chip__dot { background: var(--sage); box-shadow: 0 0 0 3px rgba(5,150,105,.18); }
.chip--active .chip__state { color: var(--sage); }
.chip--active .chip__btn { background: var(--accent); }
.chip--completed { background: #fff; border-color: var(--line); cursor: default; }
.chip--completed .chip__dot { background: var(--ink-2); }
.chip--completed .chip__state { color: var(--ink-2); }
.chip--completed .chip__name { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; }
.chip--no-show { background: var(--red-light); border-color: rgba(220,38,38,.2); }
.chip--no-show .chip__dot { background: var(--red); }
.chip--no-show .chip__state { color: var(--red); }
.chip--no-show .chip__btn { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }


/* Bulk button — lives in .vol__head, just before the kebab */
.vol__bulk { background: var(--ink); color: #fff; border: none; font-family: inherit; font-size: 12px; font-weight: 600; padding: 8px 11px; border-radius: 8px; cursor: pointer; line-height: 1; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; white-space: nowrap; }
.vol__bulk:hover    { background: var(--accent); }
.vol__bulk:disabled { opacity: 0.5; cursor: wait; }
.vol__bulk svg      { width: 13px; height: 13px; }
@media (max-width: 480px) {
    .vol__bulk { padding: 7px 9px; font-size: 11.5px; }
}

/* Kebab popover */
.kebab-pop { position: absolute; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-2); padding: 4px; display: none; flex-direction: column; min-width: 180px; z-index: 30; }
.kebab-pop.open { display: flex; }
.kebab-pop__item { background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: left; padding: 9px 12px; border-radius: 6px; cursor: pointer; line-height: 1.2; }
.kebab-pop__item:hover { background: var(--paper); color: var(--ink); }
.kebab-pop__item--danger { color: var(--red); }
.kebab-pop__item--danger:hover { background: var(--red-light); }

/* Empty states */
.empty { background: #fff; border: 1px dashed var(--line-2); border-radius: 14px; padding: 36px 24px; text-align: center; margin: 18px 16px 24px; max-width: 420px; margin-left: auto; margin-right: auto; }
.empty__art { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-t); color: var(--accent-d); display: grid; place-items: center; margin: 0 auto 12px; }
.empty h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.empty p { font-size: 12.5px; color: var(--mute); margin-top: 6px; line-height: 1.5; }
.empty button { margin-top: 14px; background: var(--ink); color: #fff; border: none; font-family: inherit; font-size: 12px; font-weight: 600; padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.no-matches { padding: 30px 16px; text-align: center; font-size: 12.5px; color: var(--mute); font-weight: 500; }
.no-matches.hidden { display: none; }

/* Bottom sheet (replaces Edit Tasks modal) */
.sheet-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 10000; align-items: flex-end; justify-content: center; padding: 0; animation: fadeIn 0.2s ease-out; }
.sheet-overlay.active { display: flex; }
.sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; max-height: 86vh; animation: slideUp 0.25s ease-out; }
.sheet__grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 6px; flex-shrink: 0; }
.sheet__head { padding: 6px 18px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sheet__head h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.sheet__head .who { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin-top: 2px; }
.sheet__list { padding: 4px 12px 0; flex: 1; overflow-y: auto; }
.sheet-task { display: flex; align-items: center; gap: 10px; padding: 12px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sheet-task:last-child { border-bottom: none; }
.sheet-check { width: 22px; height: 22px; min-width: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; background: #fff; }
.sheet-check.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sheet-check svg { width: 12px; height: 12px; }
.sheet-task__name { font-size: 13.5px; font-weight: 600; color: var(--ink); flex: 1; letter-spacing: -0.005em; }
.sheet-task__cap { font-size: 11px; color: var(--mute); font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-task__cap.short { color: var(--amber); }
.sheet-task__cap.empty { color: var(--red); }
.sheet-task__cap.full  { color: var(--sage); }
.sheet-task--has-att { background: rgba(217,119,6,.06); }
.sheet-warn { margin: 10px 18px; padding: 9px 12px; background: var(--amber-light); border: 1px solid rgba(217,119,6,.25); border-radius: 6px; font-size: 11.5px; color: #92400E; font-weight: 500; line-height: 1.4; display: flex; gap: 6px; align-items: flex-start; }
.sheet-warn::before { content: '⚠'; flex-shrink: 0; }
.sheet-warn[hidden] { display: none; }
.sheet__foot { padding: 12px 18px env(safe-area-inset-bottom, 12px); display: flex; gap: 8px; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.sheet__foot .ghost { flex: 1; background: #fff; color: var(--ink-2); border: 1px solid var(--line); font-family: inherit; font-size: 13px; font-weight: 600; padding: 11px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.sheet__foot .save  { flex: 1.4; background: var(--ink); color: #fff; border: none; font-family: inherit; font-size: 13px; font-weight: 700; padding: 11px; border-radius: 8px; cursor: pointer; min-height: 44px; }

/* Desktop adjustments */
@media (min-width: 720px) {
    .ci-hero { padding: 24px 32px 0; }
    .ci-title { font-size: 28px; }
    .ci-sub { font-size: 13.5px; }
    .ci-days { padding: 14px 32px 0; gap: 8px; }
    .now-bar { margin: 16px 32px 0; }
    .cov-strip { margin: 10px 32px 0; }
    .ci-stick { padding: 16px 32px; }
    .ci-page .vol-list { padding: 0 32px 24px; }
    .vol__chips { flex-direction: row; flex-wrap: wrap; }
    .vol__chips .chip { flex: 1; min-width: 240px; }
    .ev-top { padding: 12px 32px; }
    .sheet-overlay { align-items: center; padding: 24px; }
    .sheet { border-radius: 14px; max-height: 80vh; }
}
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 10000; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; animation: fadeIn 0.2s ease-out; }
.modal-overlay.active { display: flex; }
.modal { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); width: 100%; max-width: 520px; display: flex; flex-direction: column; animation: slideUp 0.25s ease-out; }
.modal__header { padding: 18px 20px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal__title { font-size: 1rem; font-weight: 700; }
.modal__close { background: none; border: none; font-size: 1.3rem; color: var(--mute); cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.15s; line-height: 1; }
.modal__close:hover { background: var(--red-light); color: var(--red); }
.modal__body { padding: 20px; overflow-y: auto; }
.modal__actions { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; align-items: center; }

/* ── Wizard ── */
.wizard-modal { max-width: 600px; }
.wizard-steps { display: flex; align-items: center; padding: 20px 20px 0; gap: 4px; }
.wizard-step { display: flex; align-items: center; gap: 7px; cursor: default; }
.wizard-step.done { cursor: pointer; }
.wizard-step__num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--line); color: var(--mute); flex-shrink: 0; transition: background 0.2s, color 0.2s; }
.wizard-step.active .wizard-step__num { background: var(--accent); color: #fff; }
.wizard-step.done .wizard-step__num { background: #059669; color: #fff; }
.wizard-step__label { font-size: 11px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.wizard-step.active .wizard-step__label { color: var(--ink); }
.wizard-step.done .wizard-step__label { color: #059669; }
.wizard-divider { flex: 1; height: 1px; background: var(--line); min-width: 12px; transition: background 0.25s; }
.wizard-divider.done { background: #059669; }
.wizard-pane .modal__body { padding-top: 12px; }

/* Event type toggle */
.event-type-toggle { display: flex; gap: 10px; flex-wrap: wrap; }
.event-type-opt {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer; font-size: 13px; font-weight: 500;
    color: var(--mute);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
}
.event-type-opt:has(input:checked) {
    border-color: var(--accent);
    background: rgba(79,70,229,0.06);
    color: var(--accent);
}
.event-type-opt input[type="radio"] { display: none; }

/* Banner mode tile picker */
.banner-mode-row { display:flex; gap:10px; margin-bottom:16px; }
.banner-mode-tile { flex:1; border:1.5px solid var(--line); border-radius:var(--radius); cursor:pointer; overflow:hidden; transition:border-color .15s, box-shadow .15s; user-select:none; background:var(--card); }
.banner-mode-tile:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 3px rgba(79,70,229,.1); }
.banner-mode-tile input[type="radio"] { display:none; }
.bmt-preview { display:flex; height:46px; }
.bmt-left  { flex:1.4; background:var(--accent); opacity:.8; }
.bmt-right { flex:1; background:repeating-linear-gradient(45deg,rgba(15,23,42,.06) 0 1px,transparent 1px 8px),var(--paper); }
.bmt-full  { height:46px; background:var(--accent); opacity:.8; }
.banner-mode-tile__label { padding:6px 10px; font-size:12px; font-weight:600; color:var(--ink); border-top:1px solid var(--line); }
.banner-mode-tile:has(input:checked) .banner-mode-tile__label { color:var(--accent); }

/* Step 3 two-column layout */
.step3-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .step3-layout { grid-template-columns: 1fr; } }

/* Mini preview card in wizard */
.wizard-preview { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--t-accent, #4F46E5); background: linear-gradient(180deg, var(--t-tint, #EEF2FF) 0%, #fff 55%); }
.wizard-preview__banner { height: 70px; background-size: cover; background-position: center; }
.wizard-preview__inner { padding: 10px 12px 12px; }
.wizard-preview__badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-accent, #4F46E5); }
.wizard-preview__name { font-size: 13px; font-weight: 800; color: var(--ink); margin-top: 3px; letter-spacing: -0.015em; line-height: 1.25; min-height: 18px; }
.wizard-preview__desc { font-size: 11px; color: var(--mute); margin-top: 4px; line-height: 1.4; }

/* ── Wizard redesign (2-column) ── */
/* Bumped max-width 960 → 1080 so the six-step strip in .wiz-steps fits the
   left column without horizontal scroll. Original 960 budget gave the left
   column ~550px, which is ~30px short of the current label set
   (Details · When & where · Options · Style · Banner · Forms). The preview
   pane on the right also benefits from the extra room. Mobile media query
   below still collapses to one column. */
.wiz-modal { max-width: 1080px; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr; height: 88vh; max-height: 720px; overflow: hidden; padding: 0; border-radius: 16px; }
.wiz-left { display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: var(--card); min-height: 0; }
.wiz-right { background: var(--paper); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow-y: auto; min-height: 0; }

.wiz-header { padding: 20px 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.wiz-header__text { flex: 1; min-width: 0; }
.wiz-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.wiz-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.wiz-close { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line); background: white; color: var(--mute); font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; margin-left: 12px; margin-top: 2px; line-height: 1; transition: border-color 0.15s, color 0.15s; }
.wiz-close:hover { border-color: var(--ink); color: var(--ink); }

/* Six steps in the wiz-left column (~550px at 960px modal) only fit if we
   drop the inter-step connector lines and lean on per-pill color changes
   (mute → ink active → sage done) as the progression cue — same approach
   .edit-tabs uses. The dividers stay in the DOM (rendered by the EJS
   markup) but are visually collapsed; we keep overflow-x:auto as a safety
   net for future label expansion. */
.wiz-steps { padding: 10px 16px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: var(--paper); flex-shrink: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.wiz-steps::-webkit-scrollbar { display: none; }
.wiz-step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mute); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.wiz-step__num { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); background: white; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; transition: background 0.15s, border-color 0.15s, color 0.15s; color: var(--mute); }
.wiz-step.active { color: var(--ink); }
.wiz-step.active .wiz-step__num { background: var(--ink); border-color: var(--ink); color: white; }
.wiz-step.done { color: var(--sage); }
.wiz-step.done .wiz-step__num { background: var(--sage); border-color: var(--sage); color: white; font-size: 0; }
.wiz-step.done .wiz-step__num::after { content: '✓'; font-size: 11px; }
.wiz-step__div { display: none; }

.wiz-body { padding: 20px 24px; flex: 1; overflow-y: auto; }
.wiz-actions { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: white; flex-shrink: 0; gap: 10px; }
.wiz-hint { font-size: 11.5px; color: var(--mute); flex-shrink: 0; }
.wiz-actions__btns { display: flex; gap: 8px; align-items: center; }

.wiz-preview-wrap { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.wiz-preview-eyebrow { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.wiz-live-tag { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: var(--sage); letter-spacing: 0.02em; text-transform: none; }
.wiz-live-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); animation: wizPulse 1.8s ease-in-out infinite; flex-shrink: 0; }
@keyframes wizPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.wiz-side-note { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 8px; font-size: 11.5px; color: var(--mute); line-height: 1.5; }

/* ── Preview card ── */
.pv-card { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
/* Default banner — overridden per-theme below with multi-layer backgrounds */
.pv-banner { height: 86px; background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%); background-size: cover; background-position: center; }
/* Per-theme banner: pattern layer on top, gradient below — both layers visible when no image set */
.pv-card[data-theme="classic"] .pv-banner,
.pv-card:not([data-theme]) .pv-banner {
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 8px), linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="spring"] .pv-banner {
    background-image: radial-gradient(circle at 85% 115%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.1) 40%, transparent 68%), linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="ocean"] .pv-banner {
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0px, rgba(255,255,255,0) 18px, rgba(255,255,255,0.14) 18px, rgba(255,255,255,0.14) 36px), linear-gradient(135deg, #0E7490 0%, #0891B2 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="sunset"] .pv-banner {
    background-image: radial-gradient(ellipse at 75% -5%, rgba(253,200,100,0.7) 0%, transparent 55%), linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="warm"] .pv-banner {
    background-image: radial-gradient(ellipse at 80% -15%, rgba(255,230,80,0.6) 0%, transparent 55%), linear-gradient(135deg, #D97706 0%, #B45309 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="earth"] .pv-banner {
    background-image: repeating-linear-gradient(120deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 2px, transparent 2px, transparent 14px), linear-gradient(135deg, #92400E 0%, #78350F 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="night"] .pv-banner {
    background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35) 1px, transparent 1px), linear-gradient(135deg, #334155 0%, #1e293b 100%);
    background-size: 18px 18px, 100% 100%;
    background-repeat: repeat, no-repeat; }
.pv-card[data-theme="rose"] .pv-banner {
    background-image: radial-gradient(ellipse at 25% 65%, rgba(255,255,255,0.38) 0%, transparent 52%), linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="violet"] .pv-banner {
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 10px), linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="teal"] .pv-banner {
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0px, rgba(255,255,255,0) 18px, rgba(255,255,255,0.14) 18px, rgba(255,255,255,0.14) 36px), linear-gradient(135deg, #0F766E 0%, #0D6E66 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="fuchsia"] .pv-banner {
    background-image: radial-gradient(ellipse at 70% 0%, rgba(255,200,255,0.5) 0%, transparent 55%), linear-gradient(135deg, #C026D3 0%, #A21CAF 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-card[data-theme="sky"] .pv-banner {
    background-image: radial-gradient(ellipse at 50% -20%, rgba(255,255,255,0.45) 0%, transparent 55%), linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    background-size: 100% 100%, 100% 100%; }
.pv-body { padding: 16px 18px; background: linear-gradient(180deg, var(--t-tint, #EEF2FF) 0%, white 55%); }
.pv-chips { display: flex; gap: 6px; margin-bottom: 8px; }
.pv-chip { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t-accent, #4F46E5); background: color-mix(in srgb, var(--t-accent, #4F46E5) 10%, transparent); padding: 2px 7px; border-radius: 4px; }
.pv-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.25; }
.pv-desc { font-size: 12.5px; color: var(--mute); margin-top: 6px; line-height: 1.5; }
.pv-meta { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.pv-meta__row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mute); }

/* ── Theme gallery ── */
.theme-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-card { background: white; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; position: relative; }
.theme-card:hover { border-color: #94a3b8; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.theme-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.theme-card__check { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: white; font-size: 11px; display: none; align-items: center; justify-content: center; z-index: 2; }
.theme-card.sel .theme-card__check { display: flex; }
.theme-card__preview { height: 64px; position: relative; overflow: hidden; }
.theme-card__info { padding: 7px 9px; border-top: 1px solid var(--line); }
.theme-card__name { font-size: 11.5px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.theme-card__desc { font-size: 10px; color: var(--mute); margin-top: 1px; }

/* CSS patterns for theme picker cards */
.th-classic .theme-card__preview { background: repeating-linear-gradient(45deg, rgba(255,255,255,.2) 0, rgba(255,255,255,.2) 1px, transparent 1px, transparent 8px), linear-gradient(135deg, #4F46E5 0%, #3730A3 100%); }
.th-spring .theme-card__preview  { background: radial-gradient(circle at 85% 110%, rgba(255,255,255,.45) 0%, transparent 65%), linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
.th-ocean .theme-card__preview   { background: repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgba(255,255,255,.22) 18px, rgba(255,255,255,.22) 36px), linear-gradient(135deg, #0E7490 0%, #0891B2 100%); }
.th-sunset .theme-card__preview  { background: radial-gradient(ellipse at 75% -5%, rgba(253,200,100,.8) 0%, transparent 55%), linear-gradient(135deg, #EA580C 0%, #C2410C 100%); }
.th-earth .theme-card__preview   { background: repeating-linear-gradient(120deg, rgba(255,255,255,.2) 0, rgba(255,255,255,.2) 2px, transparent 2px, transparent 14px), linear-gradient(135deg, #92400E 0%, #78350F 100%); }
.th-night .theme-card__preview   { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.45) 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(135deg, #334155 0%, #1e293b 100%); }
.th-rose .theme-card__preview    { background: radial-gradient(ellipse at 25% 65%, rgba(255,255,255,.5) 0%, transparent 52%), linear-gradient(135deg, #E11D48 0%, #BE123C 100%); }
.th-violet .theme-card__preview  { background: repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0, rgba(255,255,255,.2) 1px, transparent 1px, transparent 10px), linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%); }
.th-warm .theme-card__preview    { background: radial-gradient(ellipse at 80% -15%, rgba(255,230,80,.75) 0%, transparent 55%), linear-gradient(135deg, #D97706 0%, #B45309 100%); }
.th-teal .theme-card__preview    { background: repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgba(255,255,255,.22) 18px, rgba(255,255,255,.22) 36px), linear-gradient(135deg, #0F766E 0%, #0D6E66 100%); }
.th-fuchsia .theme-card__preview { background: radial-gradient(ellipse at 70% 0%, rgba(255,200,255,.6) 0%, transparent 55%), linear-gradient(135deg, #C026D3 0%, #A21CAF 100%); }
.th-sky .theme-card__preview     { background: radial-gradient(ellipse at 50% -20%, rgba(255,255,255,.55) 0%, transparent 55%), linear-gradient(135deg, #0284C7 0%, #0369A1 100%); }

/* ── Edit modal header + tabs ── */
.edit-header { padding: 20px 24px 18px; background: linear-gradient(135deg, var(--t-accent, #4F46E5) 0%, var(--t-dark, #3730A3) 100%); color: white; display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0; }
.edit-header__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: white; line-height: 1.2; }
.edit-header__sub { font-size: 12.5px; opacity: 0.72; margin-top: 3px; color: white; }
.edit-header__close { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.3); background: transparent; color: white; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; margin-left: 12px; transition: border-color 0.15s, background 0.15s; line-height: 1; font-family: inherit; }
.edit-header__close:hover { border-color: white; background: rgba(255,255,255,0.12); }
.edit-tabs { display: flex; border-bottom: 1px solid var(--line); background: white; flex-shrink: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.edit-tabs::-webkit-scrollbar { display: none; }
.edit-tab { padding: 11px 16px; font-size: 12.5px; font-weight: 600; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; flex-shrink: 0; }
.edit-tab:hover { color: var(--ink); }
.edit-tab.sel { color: var(--ink); border-bottom-color: var(--ink); }
.edit-tab-panel { overflow-y: auto; }
.edit-danger { margin: 0 24px 20px; padding: 13px 16px; border: 1.5px solid rgba(220,38,38,0.2); background: rgba(220,38,38,0.04); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.edit-danger__text { font-size: 12px; color: var(--mute); line-height: 1.4; }
.edit-danger__title { font-size: 13px; font-weight: 700; color: #dc2626; margin-bottom: 2px; }

@media (max-width: 640px) {
    .wiz-modal { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 92dvh; max-height: none; }
    .wiz-right { display: none; }
    .theme-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ── Empty state ── */
.empty-state { text-align: center; padding: 72px 24px 48px; animation: fadeUp 0.5s ease-out 0.2s both; }
.empty-state__icon { margin: 0 auto 20px; opacity: 0.18; }
.empty-state__title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.empty-state__text { font-size: 0.875rem; color: var(--mute); }

/* ── Getting-started guide (admin empty state) ── */
.gs-guide { padding: 28px 4px 32px; animation: fadeUp 0.5s ease-out 0.15s both; }
.gs-guide__heading { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); text-align: center; margin-bottom: 18px; }
.gs-guide__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gs-card { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 18px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-md); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .12s; font-family: var(--font-body); }
.gs-card:hover { border-color: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.gs-card__num { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; margin-bottom: 2px; }
.gs-card__icon { color: var(--ink-2); opacity: .6; margin: 2px 0 6px; flex-shrink: 0; }
.gs-card__title { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.gs-card__desc { font-size: 0.78rem; color: var(--mute); line-height: 1.45; }
@media (max-width: 600px) { .gs-guide__cards { grid-template-columns: 1fr; } }

/* ── Share dropdown ── */
.gs-card-wrap { position: relative; }
.share-dd { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-2); z-index: 50; overflow: hidden; display: none; }
.share-dd.open { display: block; animation: slideDown 0.12s ease-out; }
.share-dd__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; background: none; border: none; cursor: pointer; font-size: 0.82rem; color: var(--ink); text-align: left; font-family: var(--font-body); transition: background .1s; }
.share-dd__item:hover { background: rgba(99,102,241,.06); }
.share-dd__item + .share-dd__item { border-top: 1px solid var(--line); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ── */
@media (max-width: 640px) {
    .top-nav__inner { padding: 0 16px; height: 54px; }
    .top-nav__user { max-width: 110px; }
    .page-wrapper { padding: 24px 16px 60px; }
    .task-card__body { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 14px 16px; }
    .task-card__date { width: 48px; height: 58px; }
    .task-card__date-day { font-size: 18px; }
    .expand-grid { grid-template-columns: 1fr; }
    .task-card--expanded { display: block; }
    .task-card--expanded .task-card__expand { display: block; grid-column: unset; grid-row: unset; border-left: none; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; padding: 16px; animation: slideDown 0.18s ease-out; }
    .badges { padding: 0 16px 10px; }
    .vol-list { padding: 0 16px 14px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field--span2 { grid-column: span 1; }
    .filter-bar form { flex-direction: column; align-items: stretch; }
    .add-panel__toggle { padding: 13px 16px; }
    .add-panel[data-open="true"] .add-panel__body { padding: 0 16px 16px; }
    .page-hero__title { font-size: 1.3rem; }
    .task-card__drawer-inner .guest-signup-form__fields { flex-direction: column; align-items: stretch; }
}

/* ── Hero V2 — Crisp product-first ── */
.hero--crisp {
    padding: 72px 48px 32px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FC 100%);
    border-bottom: 1px solid var(--line);
    position: relative; overflow: hidden;
}
.hero--crisp::before {
    content: ''; position: absolute; top: -200px; left: 50%;
    transform: translateX(-50%); width: 1100px; height: 500px;
    background: radial-gradient(ellipse at center, rgba(79,70,229,0.1), transparent 70%);
    pointer-events: none;
}
.hc-inner {
    position: relative;
    display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr);
    gap: 56px; align-items: center; max-width: 1180px; margin: 0 auto;
}
.hc-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-d);
    background: var(--accent-t); padding: 5px 10px; border-radius: 4px; margin-bottom: 20px;
}
.hc-h1 { font-size: 52px; font-weight: 800; color: var(--ink); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 18px; }
.hc-sub { font-size: 17px; color: var(--ink-2); line-height: 1.55; max-width: 440px; margin-bottom: 26px; }
.hc-cta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.hc-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 8px;
    font-size: 14.5px; font-weight: 700; text-decoration: none; letter-spacing: -0.005em;
    transition: transform 0.15s, background 0.15s;
}
.hc-btn-primary:hover { background: #1E293B; transform: translateY(-1px); }
.hc-btn-ghost {
    padding: 12px 18px; font-size: 14.5px; font-weight: 700; color: var(--ink-2);
    text-decoration: none; border: 1px solid var(--line); border-radius: 8px;
}
.hc-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); font-weight: 600; }
.hc-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hc-trust svg { color: var(--sage); flex-shrink: 0; }

/* Dashboard mock */
.hc-right { position: relative; }
.hc-mock {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 30px 60px -20px rgba(79,70,229,0.28), 0 12px 30px -10px rgba(15,23,42,0.12);
    position: relative;
    transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}
.hc-mock-chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #F7F8FB; border-bottom: 1px solid var(--line); }
.hc-mock-dots { display: flex; gap: 5px; }
.hc-mock-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hc-mock-dots span:nth-child(1) { background: #FCA5A5; }
.hc-mock-dots span:nth-child(2) { background: #FCD34D; }
.hc-mock-dots span:nth-child(3) { background: #86EFAC; }
.hc-mock-url { font-size: 11px; color: var(--mute); font-weight: 500; flex: 1; text-align: center; }
.hc-mock-body { padding: 20px 22px; }
.hc-mock-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 16px; }
.hc-mock-ew { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-d); margin-bottom: 4px; }
.hc-mock-title-text { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.hc-mock-sub-text { font-size: 12px; color: var(--mute); margin-top: 2px; }
.hc-mock-stats { display: flex; gap: 16px; }
.hc-mock-stats > div { text-align: right; }
.hc-mock-stats b { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; display: block; }
.hc-mock-stats span { font-size: 9.5px; color: var(--mute); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hc-mock-tasks { display: flex; flex-direction: column; gap: 8px; }
.hc-mt { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: #FAFBFD; border: 1px solid var(--line); border-radius: 8px; }
.hc-mt-date { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; }
.hc-mt-mo { font-size: 8px; font-weight: 800; color: var(--accent-d); letter-spacing: 0.08em; }
.hc-mt-day { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.hc-mt-title { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.hc-mt-meta { font-size: 10.5px; color: var(--mute); margin-top: 1px; }
.hc-mt-bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; max-width: 170px; }
.hc-mt-bar-fill { height: 100%; border-radius: 2px; }
.hc-mt-btn { background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700; padding: 6px 12px; border-radius: 6px; white-space: nowrap; }
.hc-mt-btn--done { background: var(--sage); width: 28px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.hc-toast {
    position: absolute; left: -18px; bottom: 36px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 14px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 12px 24px -6px rgba(15,23,42,0.18); max-width: 240px;
}
.hc-toast-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hc-toast-title { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.hc-toast-sub { font-size: 10.5px; color: var(--mute); margin-top: 1px; }

/* Feature strip */
.hc-fstrip { max-width: 1180px; margin: 44px auto 0; padding: 28px 0 48px; border-top: 1px solid var(--line); }
.hc-fstrip-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.hc-feat-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-t); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.hc-feat-title { font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 4px; }
.hc-feat-body { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 768px) {
    .hero--crisp { padding: 48px 20px 16px; }
    .hc-inner { grid-template-columns: 1fr; gap: 36px; }
    .hc-h1 { font-size: 38px; }
    .hc-right { display: none; }
    .hc-fstrip { padding: 24px 0 32px; }
    .hc-fstrip-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .hc-btn-primary { transition: none; }
    .hc-btn-primary:hover { transform: none; }
}

/* ── Welcome banner ── */
.welcome-banner { background: rgba(79,70,229,0.07); border: 1px solid rgba(79,70,229,0.15); padding: 13px 20px; margin-bottom: 24px; border-radius: var(--radius); animation: slideDown 0.3s ease-out both; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--accent-d); font-weight: 500; }
.welcome-banner--invite { background: rgba(5,150,105,0.07); border-color: rgba(5,150,105,0.2); color: #065F46; }
.welcome-banner--invite .welcome-banner__close { color: #059669; }
.welcome-banner__close { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--accent); opacity: 0.5; padding: 0 2px; line-height: 1; transition: opacity 0.15s; flex-shrink: 0; }
.welcome-banner__close:hover { opacity: 1; }

/* ── Join callout ── */
.join-callout { margin-top: 20px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.82rem; color: var(--mute); text-align: center; line-height: 1.65; }
.join-callout p { margin: 0 0 3px; }
.join-callout p:last-child { margin-bottom: 0; }

/* ── Container type icons ── */
.container-type-badge { display: inline-flex; align-items: center; gap: 5px; }
.container-type-badge svg { flex-shrink: 0; }
.container-type-hint { font-size: 0.75rem; color: var(--mute); margin-top: 4px; line-height: 1.5; }
.create-type-desc { font-size: 0.8rem; color: var(--mute); margin: -4px 0 12px; padding: 8px 12px; background: var(--paper); border-radius: var(--radius); line-height: 1.5; }

/* ── Container picker ── */
.container-section { animation: fadeUp 0.5s ease-out both; }
.container-section__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.container-section__actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* ── Event cards ── */
.ev-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    /* `visible` so the hover toolbar + dropdown can extend outside the card. */
    overflow: visible;
    display: flex; flex-direction: column;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    animation: fadeUp 0.45s ease-out both;
}
.ev-card:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.ev-card--project::before,
.ev-card--event::before,
.ev-card--public::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 3px;
    /* Stripe rounds to match the card's left edge (since overflow is no longer
       clipping it). */
    border-radius: 14px 0 0 14px;
}
.ev-card--project::before { background: var(--accent); }
.ev-card--event::before   { background: var(--sage); }
.ev-card--public::before  { background: var(--amber); }
.ev-card__link {
    display: flex; gap: 14px;
    padding: 18px 18px 14px 20px;
    text-decoration: none; color: inherit; flex: 1;
    /* Leaves a little extra room so the toolbar's top-right pill never sits
       on top of long event names on narrow cards. */
    padding-right: 24px;
}
.ev-datetile {
    border: 1px solid var(--line); border-radius: 8px;
    padding: 6px 10px 7px; text-align: center;
    background: var(--paper); flex-shrink: 0;
    min-width: 44px; align-self: flex-start;
}
.ev-datetile--ongoing {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 62px; color: var(--accent);
}
.ev-datetile__m { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ev-datetile__d { font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); margin: 2px 0 3px; }
.ev-datetile__wk { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.ev-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ev-card__top { margin-bottom: 8px; }
.ev-card__name { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; line-height: 1.35; margin-bottom: 6px; }
.ev-card__desc { font-size: 0.78rem; color: var(--mute); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card__footer { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--mute); }
.ev-card__arrow { color: var(--accent); opacity: 0.6; transition: opacity 0.15s, transform 0.15s; }
.ev-card:hover .ev-card__arrow { opacity: 1; transform: translateX(3px); }
/* ─── Hover-reveal toolbar (top-right of card) ────────────────────────────
   At rest, the card is silent — no buttons visible. On hover / keyboard
   focus / pinned (menu open), a compact pill toolbar slides in from the
   top-right. Touch devices have no hover, so the toolbar is pinned
   always-visible via `@media (hover: none)`. */
.ev-toolbar {
    position: absolute;
    top: 10px; right: 10px;
    display: inline-flex; align-items: center; gap: 2px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px;
    box-shadow: var(--shadow-1);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 2;
}
.ev-card:hover .ev-toolbar,
.ev-card:focus-within .ev-toolbar,
.ev-card.is-pinned .ev-toolbar {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
@media (hover: none) {
    /* Touch devices: pin the toolbar always-visible. Hover doesn't exist. */
    .ev-toolbar { opacity: 1; transform: none; pointer-events: auto; }
}
.ev-toolbar form { display: inline-flex; margin: 0; }
.ev-toolbtn {
    width: 26px; height: 26px;
    border-radius: 5px;
    background: none; border: 0;
    color: var(--mute);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.12s, color 0.12s;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    padding: 0;
}
.ev-toolbtn:hover { background: var(--paper); color: var(--ink); }
.ev-toolbtn:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 1px;
    color: var(--ink);
}
.ev-toolbtn[aria-expanded="true"] { background: var(--accent-t); color: var(--accent); }
.ev-toolbtn .tip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--card);
    font-size: 11px; font-weight: 600;
    padding: 4px 8px; border-radius: 5px;
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.14s;
    z-index: 5;
}
.ev-toolbtn:hover .tip,
.ev-toolbtn:focus-visible .tip { opacity: 1; }

/* ─── Card overflow menu (opens from More ⋯ in the toolbar) ───────────── */
.ev-menu {
    position: absolute;
    top: 36px; right: 0;
    z-index: 10;
    min-width: 188px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.12), 0 2px 6px rgba(15,23,42,0.06);
    padding: 6px;
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.ev-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.ev-menu form { margin: 0; }
.ev-menu__item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    background: none; border: 0;
    font-size: 13px; font-weight: 600;
    font-family: inherit;
    color: var(--ink-2);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.ev-menu__item:hover { background: var(--paper); color: var(--ink); }
.ev-menu__item:focus-visible {
    outline: 2px solid var(--accent); outline-offset: -2px;
    background: var(--paper); color: var(--ink);
}
.ev-menu__item svg { color: var(--mute); flex-shrink: 0; }
.ev-menu__item:hover svg,
.ev-menu__item:focus-visible svg { color: var(--accent); }
.ev-menu__item--danger { color: var(--red); }
.ev-menu__item--danger:hover,
.ev-menu__item--danger:focus-visible {
    background: var(--red-light); color: var(--red);
}
.ev-menu__item--danger svg,
.ev-menu__item--danger:hover svg,
.ev-menu__item--danger:focus-visible svg { color: var(--red); }
.ev-menu__sep {
    height: 1px; background: var(--line); margin: 4px 6px;
}

.container-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.container-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    animation: fadeUp 0.45s ease-out both;
}
.container-card:hover { box-shadow: var(--shadow-1); border-color: #D1D5DB; transform: translateY(-2px); }
.container-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.container-type-badge {
    font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    padding: 3px 9px; border-radius: var(--radius-sm);
}
.container-type-badge--project { background: rgba(79,70,229,0.08); color: var(--accent); border: 1px solid rgba(79,70,229,0.15); }
.container-type-badge--event   { background: rgba(5,150,105,0.08);  color: var(--sage-strong); border: 1px solid rgba(5,150,105,0.15); }
.container-type-badge--public  { background: rgba(217,119,6,0.08);  color: var(--amber-d); border: 1px solid rgba(217,119,6,0.18); }
.container-card__date { font-size: 0.72rem; color: var(--mute); }
.container-card__name { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.35; }
.container-card__desc { font-size: 0.8rem; color: var(--mute); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.container-card__footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--mute); }
.container-card__arrow { font-size: 1rem; color: var(--accent); opacity: 0.6; transition: opacity 0.15s, transform 0.15s; }
.container-card:hover .container-card__arrow { opacity: 1; transform: translateX(3px); }

/* ── Container view header ── */
.container-view-header {
    margin-bottom: 28px;
    background:
        repeating-linear-gradient(45deg, rgba(79,70,229,0.12) 0px, rgba(79,70,229,0.12) 1px, transparent 1px, transparent 10px),
        #EEF2FF;
    border: 1px solid var(--line);
    border-top: 4px solid var(--t-accent);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    animation: fadeUp 0.5s ease-out both;
    position: relative;
}
/* Per-theme header backgrounds: distinct pattern + tint for each theme */
.container-view-header[data-theme="classic"] {
    background: repeating-linear-gradient(45deg, rgba(79,70,229,0.08) 0px, rgba(79,70,229,0.08) 1px, transparent 1px, transparent 10px), #EEF2FF; }
.container-view-header[data-theme="spring"] {
    background: radial-gradient(ellipse at 90% 0%, rgba(5,150,105,0.10) 0%, transparent 55%), #ECFDF5; }
.container-view-header[data-theme="ocean"] {
    background: repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgba(8,145,178,0.08) 18px, rgba(8,145,178,0.08) 36px), #ECFEFF; }
.container-view-header[data-theme="sunset"] {
    background: radial-gradient(ellipse at 90% -10%, rgba(234,88,12,0.12) 0%, transparent 55%), #FFF7ED; }
.container-view-header[data-theme="warm"] {
    background: radial-gradient(ellipse at 90% -10%, rgba(217,119,6,0.10) 0%, transparent 55%), #FFFBEB; }
.container-view-header[data-theme="earth"] {
    background: repeating-linear-gradient(120deg, rgba(120,53,15,0.08) 0px, rgba(120,53,15,0.08) 2px, transparent 2px, transparent 16px), #FEF3C7; }
.container-view-header[data-theme="night"] {
    background: radial-gradient(circle at 50% 50%, rgba(51,65,85,0.10) 1.5px, transparent 1.5px) 0 0 / 22px 22px, #F8FAFC;
    background-repeat: repeat, no-repeat; }
.container-view-header[data-theme="rose"] {
    background: radial-gradient(ellipse at 10% 60%, rgba(225,29,72,0.10) 0%, transparent 55%), #FFF1F2; }
.container-view-header[data-theme="violet"] {
    background: repeating-linear-gradient(135deg, rgba(124,58,237,0.08) 0px, rgba(124,58,237,0.08) 1px, transparent 1px, transparent 10px), #F5F3FF; }
.container-view-header[data-theme="teal"] {
    background: repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgba(15,118,110,0.08) 18px, rgba(15,118,110,0.08) 36px), #F0FDFA; }
.container-view-header[data-theme="fuchsia"] {
    background: radial-gradient(ellipse at 90% -10%, rgba(192,38,211,0.10) 0%, transparent 55%), #FDF4FF; }
.container-view-header[data-theme="sky"] {
    background: radial-gradient(ellipse at 50% -10%, rgba(2,132,199,0.10) 0%, transparent 55%), #F0F9FF; }
/* Pattern overlay on banner image */
.container-banner { position: relative; }
.container-banner::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3) 1px, transparent 1px) 0 0 / 22px 22px;
}
.container-header-inner { padding: 20px 24px 22px; }
.container-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.78rem; font-weight: 600; color: var(--mute);
    text-decoration: none; margin-bottom: 16px;
    transition: color 0.15s;
}
.container-back-btn:hover { color: var(--ink); }
.container-header-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.container-view-header__info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.container-view-header__title {
    font-size: 32px; font-weight: 800;
    color: var(--ink); letter-spacing: -0.025em;
    margin: 8px 0 0; line-height: 1.15;
}
.container-view-header__desc {
    font-size: 14px; color: var(--ink-2);
    margin-top: 8px; line-height: 1.6; max-width: 680px;
}

/* Meta row — dashed divider + label/value columns */
.container-header-meta {
    display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
    margin-top: 16px; padding-top: 16px;
    border-top: 1px dashed var(--line-2);
}
.container-meta-item {
    display: flex; flex-direction: column; gap: 2px;
    font-size: 13px; color: var(--ink);
}
.container-meta-item__label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--mute);
}
.container-meta-item__value { font-weight: 500; color: var(--ink); }
.container-meta-item svg { flex-shrink: 0; color: var(--t-accent); }
.container-directions-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
    background: color-mix(in srgb, var(--t-accent) 10%, transparent);
    color: var(--t-accent); text-decoration: none; border: 1px solid color-mix(in srgb, var(--t-accent) 22%, transparent);
    transition: background 0.15s;
}
.container-directions-btn:hover { background: color-mix(in srgb, var(--t-accent) 18%, transparent); }

/* ── Scoreboard ── */
.scoreboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    margin-bottom: 24px;
    overflow: hidden;
    animation: fadeUp 0.5s ease-out 0.05s both;
}
.scoreboard__cell {
    padding: 14px 16px;
    border-right: 1px solid var(--line);
}
.scoreboard__cell:last-child { border-right: none; }
.scoreboard__number {
    font-size: 26px; font-weight: 800;
    color: var(--ink); letter-spacing: -0.02em;
    line-height: 1.1;
}
.scoreboard__number small {
    font-size: 12px; font-weight: 500; color: var(--mute);
    letter-spacing: 0;
}
.scoreboard__label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--mute); margin-top: 4px;
}
.scoreboard__bar {
    height: 4px; background: var(--line);
    border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.scoreboard__bar-fill {
    height: 100%; background: var(--accent);
    border-radius: 2px; transition: width 0.4s ease;
}
@media (max-width: 480px) {
    .scoreboard { grid-template-columns: 1fr; }
    .scoreboard__cell { border-right: none; border-bottom: 1px solid var(--line); }
    .scoreboard__cell:last-child { border-bottom: none; }
}

/* ── Editorial split-banner hero (Direction C) ── */
.ch-crumb { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--mute); font-weight:500; margin-bottom:12px; }
.ch-crumb__link { color:var(--mute); text-decoration:none; transition:color .12s; }
.ch-crumb__link:hover { color:var(--ink); }
.ch-crumb__sep { color:var(--line-2); }
.ch-crumb__cur { color:var(--ink); font-weight:600; }

.ch-hero {
    border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-1);
    margin-bottom: 20px; background: var(--card); animation: fadeUp 0.5s ease-out both;
    overflow: visible; position: relative;
}
/* Per-theme banner gradients + patterns */
.ch-hero[data-theme="classic"] { --t-banner-grad: linear-gradient(135deg,#3730A3 0%,#4F46E5 70%);          --t-banner-pattern: repeating-linear-gradient(45deg,rgba(255,255,255,.08) 0 1px,transparent 1px 8px); }
.ch-hero[data-theme="spring"]  { --t-banner-grad: linear-gradient(135deg,#15803d 0%,#16a34a 70%);          --t-banner-pattern: radial-gradient(circle at 85% 110%,rgba(255,255,255,.25) 0%,transparent 65%); }
.ch-hero[data-theme="ocean"]   { --t-banner-grad: linear-gradient(135deg,#0E7490 0%,#0891B2 70%);          --t-banner-pattern: repeating-linear-gradient(90deg,transparent 0 18px,rgba(255,255,255,.14) 18px 36px); }
.ch-hero[data-theme="sunset"]  { --t-banner-grad: linear-gradient(135deg,#C2410C 0%,#EA580C 55%,#F59E0B 100%); --t-banner-pattern: radial-gradient(ellipse at 75% -5%,rgba(253,200,100,.5) 0%,transparent 55%); }
.ch-hero[data-theme="warm"]    { --t-banner-grad: linear-gradient(135deg,#B45309 0%,#D97706 55%,#F59E0B 100%); --t-banner-pattern: radial-gradient(ellipse at 80% -15%,rgba(255,230,80,.5) 0%,transparent 55%); }
.ch-hero[data-theme="earth"]   { --t-banner-grad: linear-gradient(135deg,#78350F 0%,#92400E 70%);          --t-banner-pattern: repeating-linear-gradient(120deg,rgba(255,255,255,.12) 0 2px,transparent 2px 14px); }
.ch-hero[data-theme="rose"]    { --t-banner-grad: linear-gradient(135deg,#BE123C 0%,#E11D48 70%);          --t-banner-pattern: radial-gradient(ellipse at 25% 65%,rgba(255,255,255,.28) 0%,transparent 52%); }
.ch-hero[data-theme="night"]   { --t-banner-grad: linear-gradient(135deg,#1E293B 0%,#334155 70%);          --t-banner-pattern: radial-gradient(circle at 50% 50%,rgba(255,255,255,.3) 1px,transparent 1px) 0 0/18px 18px; }
.ch-hero[data-theme="violet"]  { --t-banner-grad: linear-gradient(135deg,#6D28D9 0%,#7C3AED 70%);          --t-banner-pattern: repeating-linear-gradient(135deg,rgba(255,255,255,.1) 0 1px,transparent 1px 10px); }
.ch-hero[data-theme="teal"]    { --t-banner-grad: linear-gradient(135deg,#0D6E66 0%,#0F766E 70%);          --t-banner-pattern: repeating-linear-gradient(90deg,transparent 0 18px,rgba(255,255,255,.14) 18px 36px); }
.ch-hero[data-theme="fuchsia"] { --t-banner-grad: linear-gradient(135deg,#A21CAF 0%,#C026D3 70%);          --t-banner-pattern: radial-gradient(ellipse at 70% 0%,rgba(255,200,255,.4) 0%,transparent 55%); }
.ch-hero[data-theme="sky"]     { --t-banner-grad: linear-gradient(135deg,#0369A1 0%,#0284C7 70%);          --t-banner-pattern: radial-gradient(ellipse at 50% -20%,rgba(255,255,255,.35) 0%,transparent 55%); }

.ch-hero__banner { display:grid; grid-template-columns:1fr 1.4fr; height:180px; }
.ch-hero[data-nobanner] .ch-hero__banner { grid-template-columns: 1fr; }
.ch-hero[data-nobanner] .ch-hero__photo  { display: none; }
.ch-hero[data-nobanner] .ch-hero__color  { border-radius: 15px 15px 0 0; }
.ch-hero__color {
    background: var(--t-banner-grad, linear-gradient(135deg,#3730A3 0%,#4F46E5 70%));
    padding: 14px 18px; display:flex; flex-direction:column; justify-content:space-between;
    color: #fff; position:relative; overflow:visible; border-radius: 15px 0 0 0;
}
.ch-hero__color::after {
    content:''; position:absolute; inset:0; pointer-events:none; border-radius: 15px 0 0 0;
    background: var(--t-banner-pattern, repeating-linear-gradient(135deg,rgba(255,255,255,.04) 0 1px,transparent 1px 14px));
}
.ch-hero__photo { background-size:cover; background-position:center; border-radius:0 15px 0 0; overflow:hidden; position:relative; }
.ch-hero__photo-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.ch-hero__photo--empty {
    background: repeating-linear-gradient(45deg, rgba(15,23,42,.05) 0 1px, transparent 1px 8px), var(--paper);
    display:flex; align-items:center; justify-content:center;
}
.ch-hero__photo-add {
    display:flex; flex-direction:column; align-items:center; gap:7px; color:var(--mute);
    background:none; border:1px dashed var(--line-2); border-radius:10px; padding:14px 22px;
    cursor:pointer; font-size:11px; font-weight:600; font-family:var(--font-body); transition:all .15s;
}
.ch-hero__photo-add:hover { background:rgba(15,23,42,.03); color:var(--ink); }
.ch-hero__topbar { display:flex; align-items:center; justify-content:space-between; position:relative; z-index:2; }
.ch-hero__type-chip {
    display:inline-flex; align-items:center; gap:5px; font-size:9.5px; font-weight:700;
    letter-spacing:.12em; text-transform:uppercase; color:#fff;
    background:rgba(255,255,255,.13); backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.22); padding:4px 9px; border-radius:6px;
}
.ch-hero__type-dot { width:5px; height:5px; border-radius:50%; background:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.2); flex-shrink:0; }
.ch-hero__actions { display:flex; align-items:center; gap:5px; position:relative; z-index:10; }
.ch-ico-btn {
    width:30px; height:30px; display:flex; align-items:center; justify-content:center;
    border-radius:7px; background:rgba(255,255,255,.13); backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.22); color:#fff; cursor:pointer; transition:background .15s;
    position:relative;
}
.ch-ico-btn:hover { background:rgba(255,255,255,.22); border-color:rgba(255,255,255,.32); }
.ch-ico-btn[data-tip]:hover::after {
    content:attr(data-tip); position:absolute; top:calc(100% + 6px); right:0;
    background:var(--ink); color:#fff; font-size:10px; font-weight:600;
    padding:3px 8px; border-radius:5px; white-space:nowrap; z-index:20; pointer-events:none;
}
.ch-share-wrap { position:relative; display:inline-block; }
.ch-share-wrap .share-dropdown { right:0; top:calc(100% + 6px); }
.ch-share-btn {
    display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 13px;
    border-radius:7px; background:#fff; color:var(--ink); font-size:12px; font-weight:700;
    border:none; cursor:pointer; font-family:var(--font-body); transition:background .15s;
}
.ch-share-btn:hover { background:#F5F2EB; }
.ch-hero__title-block { position:relative; z-index:2; }
.ch-hero__title {
    font-size:22px; font-weight:800; letter-spacing:-0.022em; color:#fff; line-height:1.1;
    text-shadow:0 1px 2px rgba(20,16,8,.18); margin:0 0 6px;
}
.ch-hero__meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:11.5px; color:rgba(255,255,255,.82); font-weight:500; }
.ch-hero__meta-item { display:flex; align-items:center; gap:5px; }
.ch-hero__meta-link { display:flex; align-items:center; gap:5px; color:inherit; text-decoration:none; border-bottom:1px solid rgba(255,255,255,.35); transition:border-color .15s, color .15s; }
.ch-hero__meta-link:hover { color:#fff; border-bottom-color:rgba(255,255,255,.8); }
.ch-hero__meta-sep { width:3px; height:3px; border-radius:50%; background:rgba(255,255,255,.4); flex-shrink:0; }
/* Hero footer strip */
.ch-hero__foot {
    padding:14px 20px 16px; background:var(--card); border-top:1px solid var(--line);
    display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
    border-radius:0 0 16px 16px;
}
.ch-hero__desc { font-size:14px; color:var(--ink-2); line-height:1.6; margin:0; }
.ch-hero__desc--empty { color:var(--mute); font-style:italic; opacity:0.55; }
.preview-banner { display:flex; align-items:center; gap:8px; padding:9px 16px; background:#FEF3C7; border:1px solid #FCD34D; border-radius:var(--radius-md); font-size:13px; font-weight:500; color:#92400E; margin-bottom:4px; }
.preview-banner svg { flex-shrink:0; }
.preview-banner__exit { margin-left:auto; font-size:12px; font-weight:600; color:#92400E; text-decoration:underline; }
.ch-hero__progress { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.ch-hero__progress-num { font-size:18px; font-weight:800; color:var(--ink); letter-spacing:-0.02em; line-height:1; }
.ch-hero__progress-num small { font-size:12px; font-weight:500; color:var(--mute); }
.ch-hero__progress-lbl { font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--mute); margin-top:2px; }
.ch-hero__progress-bar { width:100px; height:4px; background:var(--line); border-radius:2px; overflow:hidden; }
.ch-hero__progress-fill { height:100%; background:var(--accent); border-radius:2px; }
/* Section label with count pill */
.ch-seclbl { font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--mute); margin:20px 4px 10px; display:flex; align-items:center; gap:10px; }
.ch-seclbl::after { content:''; flex:1; height:1px; background:var(--line); }
.ch-seclbl .ch-count { font-size:10px; font-weight:700; color:var(--accent); background:var(--accent-t); border:1px solid rgba(79,70,229,.18); border-radius:8px; padding:1px 7px; letter-spacing:.02em; }
/* Task action bar */
.ch-taskbar {
    display:flex; align-items:center; gap:6px; padding:6px 8px; background:var(--card);
    border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-1);
    margin-bottom:12px; flex-wrap:wrap;
}
.ch-taskbar__left { display:flex; align-items:center; gap:5px; flex:1; min-width:0; flex-wrap:wrap; }
.ch-tb-btn {
    display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 12px;
    border-radius:7px; font-size:12px; font-weight:700; cursor:pointer;
    border:1px solid transparent; background:transparent; color:var(--ink-2);
    transition:all .15s; white-space:nowrap; font-family:var(--font-body);
}
.ch-tb-btn:hover { background:var(--paper); color:var(--ink); }
.ch-tb-btn--primary { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.ch-tb-btn--primary:hover { background:#26242E; color:var(--paper); }
.ch-tb-btn--ai { background:linear-gradient(135deg,rgba(79,70,229,.08),rgba(217,119,6,.06)); color:var(--accent); border-color:rgba(79,70,229,.22); }
.ch-tb-btn--ai:hover { background:linear-gradient(135deg,rgba(79,70,229,.15),rgba(217,119,6,.10)); border-color:var(--accent); }
.ch-tb-divider { width:1px; height:16px; background:var(--line); margin:0 2px; flex-shrink:0; }
.ch-tb-iconbtn {
    width:30px; height:30px; display:flex; align-items:center; justify-content:center;
    border-radius:7px; background:transparent; color:var(--mute); cursor:pointer;
    transition:all .15s; border:none; font-size:inherit; font-family:inherit;
}
.ch-tb-iconbtn:hover { background:var(--paper); color:var(--ink); }
/* Premium pill view toggle */
.ch-vt { display:flex; background:var(--paper); border-radius:7px; padding:2px; height:30px; flex-shrink:0; }
.ch-vt__btn {
    display:inline-flex; align-items:center; justify-content:center; width:28px; height:100%;
    border:none; background:transparent; font-family:var(--font-body); font-size:11px;
    font-weight:700; color:var(--mute); cursor:pointer; border-radius:5px;
    transition:color .15s, background .15s;
}
.ch-vt__btn:hover { color:var(--ink-2); }
.ch-vt__btn.is-active { color:var(--ink); background:var(--card); box-shadow:0 1px 2px rgba(15,23,42,.06); }
/* Taskbar search */
.ch-tb-search { position:relative; }
.ch-tb-search input {
    font-family:var(--font-body); font-size:12px; font-weight:500; height:30px;
    padding:0 10px 0 30px; border:1px solid var(--line); border-radius:7px;
    background:var(--paper); color:var(--ink); width:180px; outline:none;
    transition:border-color .12s, background .12s;
}
.ch-tb-search input:focus { border-color:var(--accent); background:#fff; }
.ch-tb-search input::placeholder { color:var(--mute); opacity:.7; }
.ch-tb-search svg { position:absolute; left:9px; top:50%; transform:translateY(-50%); color:var(--mute); pointer-events:none; }
@media (max-width:640px) {
    .ch-hero__banner { grid-template-columns: 1fr; height: auto; }
    .ch-hero__color { border-radius: 15px 15px 0 0; min-height: 160px; }
    .ch-hero__photo { display: none; }
    .ch-hero__title { font-size: 19px; }
    /* Taskbar: action buttons fill row 1 (scrollable), view toggle + search share row 2 */
    .ch-taskbar__left { flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .ch-taskbar__left::-webkit-scrollbar { display: none; }
    .ch-tb-search { flex: 1; min-width: 0; }
    .ch-tb-search input { width: 100%; }
}

/* ── Share button + dropdown ── */
.share-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
    padding: 5px 12px; border-radius: 6px; cursor: pointer;
    border: 1.5px solid var(--line); background: var(--card);
    color: var(--mute); transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.share-btn:hover { border-color: #CBD5E1; color: var(--ink); background: #F8FAFC; }
.share-wrap { position: relative; display: inline-block; }
.share-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 200px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2);
    z-index: 600;
    overflow: hidden;
    animation: dropIn 0.15s ease-out both;
}
.share-dropdown[hidden] { display: none; }
.share-dropdown__item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    font-size: 13px; font-weight: 500; color: var(--ink);
    text-decoration: none; cursor: pointer;
    background: none; border: none; width: 100%;
    font-family: var(--font-body);
    transition: background 0.12s;
    text-align: left;
}
.share-dropdown__item:hover { background: var(--paper); }
.share-dropdown__item svg { flex-shrink: 0; color: var(--mute); }
.share-dropdown__item--copy svg  { color: var(--accent); }
.share-dropdown__item--msg svg   { color: #34C759; }
.share-dropdown__item--fb svg    { color: #1877F2; }
.share-dropdown__divider { height: 1px; background: var(--line); }

/* ── Invite button ── */
.invite-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
    padding: 5px 12px; border-radius: 6px; cursor: pointer;
    border: 1.5px solid rgba(79,70,229,0.35); background: rgba(79,70,229,0.06);
    color: var(--accent); transition: border-color 0.15s, background 0.15s;
}
.invite-btn:hover { border-color: var(--accent); background: rgba(79,70,229,0.1); }

/* ── Invite modal ── */
.invite-modal { max-width: 460px; }
.invite-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.invite-tab {
    font-family: var(--font-body); font-size: 13px; font-weight: 600;
    padding: 8px 16px; background: none; border: none; cursor: pointer;
    color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.invite-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.invite-tab:hover:not(.active) { color: var(--ink); }
.invite-panel { display: none; }
.invite-panel.active { display: block; }
.invite-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.invite-row { display: flex; align-items: center; gap: 8px; }
.invite-row .form-input { flex: 1; }
.invite-row__remove {
    flex-shrink: 0; width: 28px; height: 28px;
    border: none; background: none; cursor: pointer;
    font-size: 18px; line-height: 1; color: var(--mute);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    transition: color 0.12s, background 0.12s;
}
.invite-row__remove:hover { color: var(--red); background: var(--red-light); }
.invite-add-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-body); font-size: 12px; font-weight: 600;
    color: var(--accent); background: none; border: none;
    cursor: pointer; padding: 4px 0; margin-top: 4px;
}
.invite-add-btn:hover { text-decoration: underline; }
.bulk-textarea {
    width: 100%; min-height: 110px; resize: vertical;
    font-family: var(--font-body); font-size: 13px;
    padding: 10px 12px; border: 1.5px solid var(--line);
    border-radius: var(--radius); color: var(--ink);
    background: #fff; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.bulk-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.bulk-hint { font-size: 11px; color: var(--mute); margin-top: 6px; line-height: 1.6; }
.invite-history { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.invite-history__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); margin-bottom: 10px; }
.invite-history-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid var(--line);
}
.invite-history-row:last-child { border-bottom: none; }
.invite-history__email { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ── Invite modal — From Workspace tab ──────────────────────────────────────── */
.invite-modal { max-width: 520px; }
.invite-ws-search-row { margin-bottom: 10px; }
.invite-ws-search { width: 100%; font-size: 13px; }
.invite-ws-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 0; }
.invite-ws-tag-pill {
    font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; cursor: pointer;
    border: 1.5px solid var(--line-2); background: #fff; color: var(--mute);
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.invite-ws-tag-pill:hover { border-color: var(--accent); color: var(--accent); }
.invite-ws-tag-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.invite-ws-list {
    border: 1px solid var(--line); border-radius: 8px; overflow-y: auto;
    max-height: 260px; margin-bottom: 10px;
}
.invite-ws-loading { padding: 20px; text-align: center; font-size: 13px; color: var(--mute); }
.invite-ws-empty   { padding: 16px; text-align: center; font-size: 13px; color: var(--mute); }
.invite-vol-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.invite-vol-row:last-child { border-bottom: none; }
.invite-vol-row:hover:not(.is-unavailable) { background: var(--accent-t); }
.invite-vol-row.is-unavailable { opacity: 0.45; cursor: default; }
.invite-vol-row__check { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }
.invite-vol-row__info { flex: 1; min-width: 0; }
.invite-vol-row__name  { font-size: 13px; font-weight: 700; color: var(--ink); }
.invite-vol-row__email { font-size: 12px; color: var(--mute); }
.invite-vol-row__tags  { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.invite-vol-tag { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 20px; background: var(--accent-t); color: var(--accent-d); }
.invite-vol-row__status { font-size: 11px; font-weight: 700; color: var(--mute); white-space: nowrap; margin-top: 2px; }
.invite-ws-footer {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--mute);
}
.invite-ws-selectall {
    background: none; border: none; padding: 0; font-size: 12px;
    color: var(--accent); font-weight: 600; cursor: pointer;
}
.invite-ws-selectall:hover { text-decoration: underline; }

.container-empty {
    background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius-md);
    padding: 48px 32px; text-align: center;
}
.container-empty__title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.container-empty__text { font-size: 0.875rem; color: var(--mute); margin-bottom: 20px; }


/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PANEL STYLES (body.ev-admin — admin.ejs and admin-tenant.ejs)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Override: admin nav is wider */
body.ev-admin .top-nav__inner { max-width: 1100px; }

/* Admin-only nav items */
.nav-badge { font-size: 0.7rem; font-weight: 700; background: var(--red); color: #fff; padding: 2px 8px; border-radius: var(--radius-sm); margin-left: 8px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-sm { font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: var(--radius); border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); }
.btn-sm--outline { background: transparent; border: 1.5px solid var(--line); color: var(--mute); }
.btn-sm--outline:hover { border-color: var(--accent); color: var(--accent); }

/* Override: admin page layout */
body.ev-admin .page { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
body.ev-admin .page-header { margin-bottom: 28px; }
body.ev-admin .page-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
body.ev-admin .page-header p { font-size: 0.875rem; color: var(--mute); margin-top: 4px; }

/* Admin card */
body.ev-admin .card { background: var(--card); border-radius: var(--radius-md); box-shadow: var(--shadow-1); overflow: hidden; margin-bottom: 0; border: none; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.card-header h2 { font-size: 1rem; font-weight: 700; }
.card-header span { font-size: 0.8rem; color: var(--mute); }

/* Admin table */
table { width: 100%; border-collapse: collapse; }
th { font-size: 0.75rem; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 20px; background: var(--paper); text-align: left; border-bottom: 1px solid var(--line); }
td { padding: 14px 20px; font-size: 0.875rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(79,70,229,0.02); }
tr.tenant-row { cursor: pointer; }
tr.tenant-row:hover td { background: rgba(79,70,229,0.05); }

.tenant-name { font-weight: 600; color: var(--ink); }
.tenant-email { font-size: 0.8rem; color: var(--mute); }

/* Override badge for admin (different padding) */
body.ev-admin .badge { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-sm); white-space: normal; letter-spacing: normal; }
.badge--blue { background: rgba(79,70,229,0.1); color: var(--accent-d); }
.badge--gray { background: var(--line); color: var(--mute); }

.count { font-weight: 600; }
.date  { color: var(--mute); font-size: 0.8rem; }

.btn-view { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; padding: 5px 12px; border: 1.5px solid var(--accent); border-radius: var(--radius); transition: background 0.15s; }
.btn-view:hover { background: var(--accent); color: #fff; }

.empty { padding: 48px 24px; text-align: center; color: var(--mute); font-size: 0.9rem; }

/* ── Admin-tenant additions ── */
.breadcrumb { font-size: 0.8rem; color: var(--mute); margin-bottom: 12px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Admin-tenant page-header (adds flex for title + delete button layout) */
body.ev-admin .page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.ev-admin .page-header h1 { font-size: 1.4rem; }

.stats { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 16px 20px; min-width: 120px; }
.stat-card__value { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.stat-card__label { font-size: 0.75rem; color: var(--mute); font-weight: 500; margin-top: 2px; }

/* Admin-tenant card (adds margin-bottom) */
body.ev-admin .card { margin-bottom: 24px; }

.user-name  { font-weight: 600; }
.user-id    { font-size: 0.75rem; color: var(--mute); margin-top: 2px; font-family: monospace; }
.badge--owner  { background: rgba(79,70,229,0.1); color: var(--accent-d); }
.badge--admin  { background: #FEF3C7; color: #92400E; }
.badge--member { background: var(--line); color: var(--mute); }

.btn-danger { font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: var(--radius); border: 1.5px solid var(--red); background: transparent; color: var(--red); cursor: pointer; transition: background 0.15s; font-family: var(--font); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-danger--filled { background: var(--red); color: #fff; border-color: var(--red); padding: 8px 18px; font-size: 0.875rem; }
.btn-danger--filled:hover { background: #B91C1C; }

.danger-zone { background: var(--red-light); border: 1.5px solid #FECACA; border-radius: var(--radius-md); padding: 24px; }
.danger-zone h3 { font-size: 0.95rem; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.danger-zone p { font-size: 0.875rem; color: #7F1D1D; margin-bottom: 16px; line-height: 1.6; }

/* Admin-tenant confirm modal (override index.ejs .modal — different size/layout) */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 1000; align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
body.ev-admin .modal { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-2); padding: 28px; max-width: 420px; width: 90%; display: block; flex-direction: unset; animation: none; }
body.ev-admin .modal h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
body.ev-admin .modal p { font-size: 0.875rem; color: var(--mute); margin-bottom: 20px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-cancel { font-size: 0.875rem; font-weight: 600; padding: 8px 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: transparent; color: var(--mute); cursor: pointer; font-family: var(--font); }
.btn-cancel:hover { border-color: var(--ink); color: var(--ink); }


/* ═══════════════════════════════════════════════════════════════════════════
   PROFILE STYLES (body.ev-profile — profile.ejs)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Profile nav (bare nav element — scope to avoid affecting index's top-nav) */
body.ev-profile nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 500;
}
.nav-inner {
    max-width: 680px; margin: 0 auto;
    padding: 0 24px; height: 58px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    font-size: 14px; font-weight: 800;
    color: var(--accent); letter-spacing: -0.01em;
    text-decoration: none;
}
.nav-back {
    font-size: 0.82rem; font-weight: 500;
    color: var(--mute); text-decoration: none;
    display: flex; align-items: center; gap: 5px;
    transition: color 0.15s;
}
.nav-back:hover { color: var(--ink); }

/* Profile page layout */
body.ev-profile .page {
    max-width: 680px; margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Profile page header */
body.ev-profile .page-header { margin-bottom: 32px; }
.page-header__eyebrow {
    font-size: 11px; font-weight: 700;
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 6px;
}
.page-header__title {
    font-size: 24px; font-weight: 800;
    color: var(--ink); letter-spacing: -0.02em;
    line-height: 1.2;
}
.page-header__sub {
    margin-top: 4px; font-size: 14px; color: var(--mute);
}

/* Profile card (different from admin card) */
body.ev-profile .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    margin-bottom: 20px;
}
.card__header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--line);
}
.card__title {
    font-size: 13px; font-weight: 700;
    color: var(--ink); letter-spacing: -0.01em;
}
.card__body { padding: 20px 24px; }

/* Profile form */
.field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin-bottom: 18px;
}
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
    font-size: 12px; font-weight: 600; color: var(--mute);
    letter-spacing: 0.02em;
}
.field input {
    padding: 9px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font); font-size: 14px; color: var(--ink);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.field-note {
    font-size: 12px; color: var(--mute);
    margin-top: -10px; margin-bottom: 18px;
}

/* Profile buttons (different padding/border from index base) */
body.ev-profile .btn--primary {
    background: var(--accent); color: #fff;
    padding: 9px 18px; font-size: 13px;
    box-shadow: 0 1px 3px rgba(79,70,229,0.3);
}
body.ev-profile .btn--primary:hover {
    background: var(--accent-d);
    box-shadow: 0 4px 12px rgba(79,70,229,0.35);
    transform: translateY(-1px);
}
body.ev-profile .btn--primary:active { transform: translateY(0); }
body.ev-profile .btn--ghost {
    background: none; color: var(--mute);
    border: 1.5px solid var(--line);
    padding: 8px 16px; font-size: 13px;
}
body.ev-profile .btn--ghost:hover {
    border-color: #CBD5E1; color: var(--ink);
    background: #F8FAFC;
}
.btn--danger-ghost {
    background: none; color: var(--red);
    border: 1.5px solid #FECACA;
    padding: 6px 12px; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font); font-weight: 600;
    border-radius: var(--radius); cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none; white-space: nowrap;
}
.btn--danger-ghost:hover {
    background: var(--red-light);
    border-color: #FCA5A5;
}

/* Passkey table */
.passkey-list { display: flex; flex-direction: column; gap: 10px; }
.passkey-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #FAFBFC;
}
.passkey-row__info { display: flex; flex-direction: column; gap: 2px; }
.passkey-row__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.passkey-row__date { font-size: 12px; color: var(--mute); }

.passkey-empty {
    padding: 28px 0; text-align: center;
    font-size: 14px; color: var(--mute);
}

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

/* ── Schedule View ─────────────────────────────────────────────────────────── */

/* Outer wrapper */
.sched-view { display: flex; flex-direction: column; gap: 20px; }

/* Day card — same surface as task-card */
.sched-day {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}
.sched-day--undated { opacity: 0.75; }

/* Day header — accent tint strip matching the date-tile design language */
.sched-day__header {
    display: flex;
    align-items: stretch;
    background: var(--accent-t);
    border-bottom: 1px solid rgba(79,70,229,0.14);
}

/* Left date tile — mirrors .task-card__date */
.sched-day__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    flex-shrink: 0;
    padding: 14px 0;
    border-right: 1px solid rgba(79,70,229,0.14);
    gap: 2px;
}
.sched-day__mo {
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--accent-d); line-height: 1;
}
.sched-day__dy {
    font-size: 24px; font-weight: 800; letter-spacing: -0.025em;
    color: var(--ink); line-height: 1;
}

/* Right meta block */
.sched-day__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
    gap: 3px;
}
.sched-day__wk {
    font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
    text-transform: uppercase; color: var(--accent-d);
}
.sched-day__cnt {
    font-size: 11.5px; font-weight: 500; color: var(--mute);
}

/* Slot rows */
.sched-slot { display: flex; border-bottom: 1px solid var(--line); min-height: 56px; }
.sched-slot:last-child { border-bottom: none; }

/* Unscheduled slot */
.sched-unscheduled { background: #FAFBFC; }
.sched-unscheduled .sched-slot__time { color: var(--mute); }

/* Time column — two-line: HH:MM over AM/PM */
.sched-slot__time {
    width: 72px; flex-shrink: 0;
    padding: 14px 10px 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 1px;
    border-right: 1px solid var(--line);
}
.sched-slot__time-hm {
    font-size: 13px; font-weight: 700; color: var(--accent-d); line-height: 1;
    letter-spacing: -0.01em;
}
.sched-slot__time-ap {
    font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--mute); line-height: 1;
}
/* When time is a plain string (unscheduled / no time) */
.sched-slot__time:not(:has(.sched-slot__time-hm)) {
    font-size: 11px; font-weight: 600; color: var(--mute);
    font-style: italic; justify-content: flex-start; padding-top: 16px;
}

/* Task pills area */
.sched-slot__tasks {
    flex: 1; padding: 10px 12px;
    display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
}

/* Task pill — elevated mini-card */
.sched-task {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    text-decoration: none;
}
.sched-task:hover {
    border-color: var(--accent);
    box-shadow: 0 3px 10px rgba(79,70,229,0.13);
    transform: translateY(-1px);
}
.sched-task--full { opacity: 0.6; }
.sched-task--full:hover { border-color: var(--red); box-shadow: 0 3px 10px rgba(220,38,38,0.10); }

.sched-task__name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }

/* Fill: track + badge side by side */
.sched-task__fill { display: inline-flex; align-items: center; gap: 5px; }
.sched-task__fill-track {
    width: 36px; height: 4px; background: var(--line);
    border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.sched-task__fill-bar { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s; }
.sched-task--full .sched-task__fill-bar { background: var(--red); }

/* Badge: count and Full */
.sched-task__badge {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
    padding: 2px 7px; border-radius: var(--radius-sm); white-space: nowrap;
    background: rgba(79,70,229,0.06); color: var(--accent);
    border: 1px solid rgba(79,70,229,0.14);
}
.sched-task__badge--full {
    background: var(--red-light); color: var(--red);
    border-color: rgba(220,38,38,0.2);
}

@media print {
    .view-toggle, .admin-tabs, nav, .container-view-header { display: none !important; }
    .sched-view { gap: 14px; }
    .sched-day { box-shadow: none; border: 1px solid #ccc; }
    .sched-task { cursor: default; box-shadow: none; transform: none; }
    .sched-task:hover { border-color: var(--line); box-shadow: none; transform: none; }
}

/* ── Member upsell (empty state) ────────────────────────────────────────────── */
.member-upsell { margin-top: 24px; text-align: center; }
.member-upsell__divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--mute); font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 20px;
}
.member-upsell__divider::before,
.member-upsell__divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.member-upsell__hed { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.member-upsell__sub { font-size: 13px; color: var(--mute); margin-bottom: 16px; line-height: 1.5; }

/* Welcome banner upsell link */
.welcome-banner__upsell { display: block; margin-top: 4px; font-size: 0.8rem; opacity: 0.85; }
.welcome-banner__upsell-link { color: inherit; text-decoration: underline; font-weight: 600; }
.welcome-banner__upsell-link:hover { opacity: 0.75; }

/* ── Volunteers right-pane view ─────────────────────────────────────────────── */
.vol-page { display: flex; flex-direction: column; gap: 0; }
.vol-page__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.vol-page__title { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; margin: 0 0 2px; }
.vol-page__count { font-size: 0.8rem; color: var(--mute); }
.vol-page__controls { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.vol-page__controls .form-input { border-radius: var(--radius-sm); }

/* 3D Phase 5 — scoreboard above the volunteer table. Four KPI cells with
   number + label + a short sub-line. Grid collapses to 2 cols on narrow
   viewports. */
.vm-scoreboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
    margin-bottom: 14px;
    overflow: hidden;
}
.vm-scoreboard__cell {
    padding: 14px 16px;
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 4px;
    min-width: 0;
}
.vm-scoreboard__cell:last-child { border-right: none; }
.vm-scoreboard__label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--mute);
}
.vm-scoreboard__num {
    font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
    color: var(--ink); line-height: 1;
}
.vm-scoreboard__num-sub { font-size: 13px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.vm-scoreboard__sub { font-size: 11px; color: var(--mute); font-weight: 500; }

/* 3D Phase 5 — filter bar (sits above the table, below the scoreboard). */
.vm-filterbar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.vm-filterbar__search { flex: 1; min-width: 220px; position: relative; }
.vm-filterbar__search input {
    width: 100%; height: 34px;
    padding: 0 10px 0 32px;
    font: inherit; font-size: 13px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
}
.vm-filterbar__search input:focus { background: var(--card); border-color: var(--accent); }
.vm-filterbar__search-icon {
    position: absolute; left: 10px; top: 50%;
    transform: translateY(-50%); color: var(--mute);
    pointer-events: none;
}

.vm-seg {
    display: inline-flex;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 2px;
    gap: 2px;
}
.vm-seg__btn {
    font: inherit; font-size: 12px; font-weight: 600;
    color: var(--mute); background: transparent;
    border: none; padding: 5px 10px; border-radius: 4px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    user-select: none;
}
.vm-seg__btn:hover { color: var(--ink-2); }
.vm-seg__btn.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.vm-seg__btn .ct {
    font-weight: 700; font-size: 11px;
    background: var(--line); color: var(--ink-2);
    padding: 1px 6px; border-radius: 9999px;
    letter-spacing: 0;
}
.vm-seg__btn.is-active .ct { background: var(--accent-t); color: var(--accent-d); }

.vm-filterbar__filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vm-fbtn-wrap { position: relative; }
.vm-fbtn {
    font: inherit; font-size: 12px; font-weight: 600;
    color: var(--ink-2); background: var(--card);
    border: 1px solid var(--line);
    padding: 6px 10px; border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    line-height: 1;
}
.vm-fbtn:hover { border-color: var(--line-2); }
.vm-fbtn.has-value { background: var(--accent-t); color: var(--accent-d); border-color: var(--accent); }
.vm-fbtn__ct {
    font-size: 10.5px; font-weight: 700;
    background: var(--accent); color: white;
    padding: 1px 6px; border-radius: 9999px;
}
.vm-fbtn__caret { color: var(--mute); }
.vm-fbtn.has-value .vm-fbtn__caret { color: var(--accent-d); }

/* Filter-bar popovers — same drawer shell as the bulkbar Tag drawer but
   positioned BELOW the trigger (filter bar sits above the table). */
.vm-filterpop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15,23,42,0.12);
    padding: 12px;
    min-width: 220px;
    display: none;
    z-index: 40;
}
.vm-filterpop.is-open { display: block; }
.vm-filterpop--scroll { max-height: 320px; overflow-y: auto; }

@media (max-width: 720px) {
    .vm-scoreboard { grid-template-columns: repeat(2, 1fr); }
    .vm-scoreboard__cell:nth-child(2) { border-right: none; }
    .vm-scoreboard__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Volunteer rows — both the legacy card layout and the 3D Phase 4 table layout
   live under the same .vol-row class for e2e selector compatibility. The
   table-mode rules below override card-only properties (padding/flex) inside
   the table context. */
.vol-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vol-row { border-bottom: 1px solid var(--line); background: var(--card); }
.vol-row:last-child { border-bottom: none; }
/* 3D Phase 1 — selected-state tint. Subtle accent-tinted background so the
   user knows which rows the sticky bulkbar will act on. */
.vol-row.is-selected { background: var(--accent-t); }
.vol-row.is-selected:hover { background: var(--accent-t); }
.vol-row__main { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; }
.vol-row__main:hover { background: var(--paper); }

/* 3D Phase 4 — table layout. The `<tr class="vol-row">` keeps the legacy
   class for e2e + JS, but the layout rules below take precedence when the
   row is inside a `<table class="vol-table">`. */
.vol-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
}
.vol-table thead th {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
    font-size: 11px; font-weight: 700;
    color: var(--mute); letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}
.vol-table thead th.col-check  { width: 36px; padding-right: 0; }
.vol-table thead th.col-actions { width: 44px; text-align: right; }
.vol-table tbody tr.vol-row {
    cursor: pointer;
    transition: background 100ms ease;
}
.vol-table tbody tr.vol-row:hover { background: var(--paper); }
.vol-table tbody tr.vol-row.is-selected { background: var(--accent-t); }
.vol-table tbody tr.vol-row.is-selected:hover { background: var(--accent-t); }
.vol-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}
.vol-table tbody tr.vol-row__detail-row td { border-bottom: 1px solid var(--line); padding: 0; }
.vol-table tbody tr:last-child td { border-bottom: none; }
.vol-table .col-check  { width: 36px; padding-right: 0; }
.vol-table .col-actions { width: 44px; text-align: right; }

/* Identity cell — avatar tile + name + email + nextUp inline. */
.vm-identity { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.vm-identity__avatar {
    width: 34px; height: 34px; border-radius: 9999px;
    display: grid; place-items: center;
    font-weight: 700; font-size: 12.5px; color: white;
    flex-shrink: 0;
    background: var(--accent);
    letter-spacing: 0.01em;
}
.vm-identity__body { min-width: 0; }
.vol-row__self {
    display: inline-block;
    font-size: 10px; font-weight: 700; color: var(--accent-d);
    background: var(--accent-t);
    padding: 1px 6px; border-radius: var(--radius-sm);
    letter-spacing: 0.04em; text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

/* Empty-cell placeholder ("—" when a column has no value for this row). */
.vol-cell-empty { color: var(--mute); font-size: 0.78rem; }

/* 3D Phase 6 — click-to-peek Event roles trigger + popover. */
.evr-peek-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 1px solid transparent;
    padding: 3px 6px; border-radius: var(--radius);
    cursor: pointer; font: inherit; color: inherit;
    max-width: 220px;
    transition: background 120ms ease, border-color 120ms ease;
}
.evr-peek-btn:hover,
.evr-peek-btn:focus-visible { background: var(--card); border-color: var(--line); outline: none; }
.evr-peek-btn[aria-expanded="true"] { background: var(--card); border-color: var(--line-2); }
.evr-peek-btn__count {
    font-size: 0.7rem; font-weight: 700; color: var(--mute);
    background: var(--card); border: 1px solid var(--line);
    border-radius: 999px; padding: 1px 7px; line-height: 1.5;
}
.evr-peek-btn__caret { color: var(--mute); flex: 0 0 auto; }

.evr-peek {
    position: fixed; width: 360px; max-height: 420px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px -8px rgba(15,23,42,0.22), 0 4px 12px -4px rgba(15,23,42,0.08);
    z-index: 60; overflow: hidden;
    display: flex; flex-direction: column;
    animation: evrPeekIn 120ms ease-out;
}
@keyframes evrPeekIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.evr-peek[hidden] { display: none; }
.evr-peek__head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    display: flex; flex-direction: column; gap: 8px;
}
.evr-peek__title {
    font-size: 11px; font-weight: 700; color: var(--mute);
    letter-spacing: 0.06em; text-transform: uppercase;
}
.evr-peek__pills { display: flex; flex-wrap: wrap; gap: 5px; }
.evr-pill {
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink-2);
    padding: 3px 10px;
    border-radius: 999px;
    font: inherit; font-size: 11px; font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.evr-pill:hover { border-color: var(--line-2); color: var(--ink); }
.evr-pill.is-active {
    background: var(--ink); color: #fff; border-color: var(--ink);
}
.evr-peek__body { padding: 6px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.evr-peek__item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
}
.evr-peek__item + .evr-peek__item { margin-top: 2px; }
.evr-peek__item:hover { background: var(--paper); }
.evr-peek__name {
    flex: 1 1 auto; min-width: 0;
    font-size: 13px; color: var(--ink); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evr-peek__more {
    background: transparent; border: 1px solid transparent;
    cursor: pointer; color: var(--mute);
    font-size: 16px; font-weight: 700; line-height: 1;
    padding: 2px 8px; border-radius: var(--radius);
    flex: 0 0 auto;
}
.evr-peek__more:hover,
.evr-peek__more:focus-visible { background: var(--card); border-color: var(--line); color: var(--ink); outline: none; }

/* Tags cell — first 3 tag chips + "+N more". */
.vol-tags-stack { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; max-width: 220px; }
.vol-tag-chip {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-2);
    letter-spacing: -0.005em;
    max-width: 110px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vol-tag-chip--more { color: var(--mute); border-style: dashed; }

/* Activity column — hours + mini-bar + completed-count subline. */
.vol-activity { display: flex; flex-direction: column; gap: 1px; min-width: 110px; }
.vol-activity__num { font-size: 0.85rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.vol-activity__sub-inline { font-weight: 500; color: var(--mute); font-size: 0.75rem; }
.vol-activity__sub { font-size: 0.72rem; color: var(--mute); }
.vol-activity__bar {
    margin-top: 4px;
    width: 84px; height: 3px;
    background: var(--line); border-radius: 3px;
    overflow: hidden;
}
.vol-activity__bar > span {
    display: block; height: 100%;
    background: var(--accent); border-radius: 3px;
    transition: width 200ms ease;
}
.vol-activity__bar.is-high > span { background: var(--sage); }
.vol-activity__bar.is-low > span  { background: var(--line-2); }

/* Last-seen column — date + relative subline. */
.vol-lastseen { color: var(--ink-2); font-size: 0.85rem; }
.vol-lastseen__sub { color: var(--mute); font-size: 0.72rem; }

/* Screen-reader-only utility for the hidden "Select" column header. */
.vm-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;
}
.vol-row__identity { flex: 1; min-width: 0; }
.vol-row__name { font-size: 0.9rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vol-row__email { font-size: 0.78rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.vol-row__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vol-row__count { font-size: 0.75rem; color: var(--mute); white-space: nowrap; }

/* 3D Phase 1 — row-selection checkbox. Custom-styled to match the design's
   small filled square (so it doesn't look like a stray native checkbox
   inside a card layout). */
.cbx {
    appearance: none;
    width: 16px; height: 16px;
    border: 1.5px solid var(--line-2);
    border-radius: 4px;
    background: var(--card);
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    transition: background 100ms ease, border-color 100ms ease;
    flex-shrink: 0;
    margin-right: 4px;
}
.cbx:hover:not(:disabled) { border-color: var(--ink-2); }
.cbx:disabled { cursor: not-allowed; opacity: 0.4; }
.cbx:checked {
    background: var(--accent); border-color: var(--accent);
}
.cbx:checked::after {
    content: '';
    width: 9px; height: 5px;
    border-left: 1.75px solid white;
    border-bottom: 1.75px solid white;
    transform: rotate(-45deg) translate(1px, -1px);
}
.cbx:indeterminate {
    background: var(--accent); border-color: var(--accent);
}
.cbx:indeterminate::after {
    content: '';
    width: 8px; height: 2px;
    background: white;
    border-radius: 1px;
}

/* 3D Phase 1 — sticky bulk action bar. Appears at the bottom of the
   viewport whenever ≥1 row is selected. Phase 1 only carries the count +
   close button; bulk action buttons (.bbtn) land in Phase 2+. */
.bulkbar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 50;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(15,23,42,0.14);
    padding: 8px 10px 8px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 240px;
}
.bulkbar.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.bulkbar__count {
    font-weight: 700; font-size: 13px;
    color: white; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 8px;
}
.bulkbar__count .ct {
    background: var(--accent); color: white;
    font-size: 11.5px; font-weight: 700;
    padding: 2px 8px; border-radius: 9999px;
    letter-spacing: 0;
}
.bulkbar__close {
    margin-left: auto;
    width: 28px; height: 28px;
    display: inline-grid; place-items: center;
    border: none; background: transparent;
    color: var(--paper); cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 18px; line-height: 1;
}
.bulkbar__close:hover { background: rgba(255,255,255,0.08); }

/* 3D Phase 2 — Bulk-bar action button + popover drawer.
   The drawer pattern (popover anchored above its trigger) is shared by every
   bulk action — Tag is wired here; Set role / Block / Remove follow in Phase 3
   using the same .popover shell. */
.bulkbar__action { position: relative; }
.bbtn {
    font: inherit; font-weight: 600; font-size: 12.5px;
    background: transparent; color: var(--paper);
    border: 1px solid transparent;
    padding: 6px 11px; border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    letter-spacing: -0.005em;
}
.bbtn:hover { background: rgba(255,255,255,0.08); }
.bbtn[disabled] { opacity: 0.4; cursor: not-allowed; background: transparent; }
.bbtn .ic { width: 14px; height: 14px; opacity: 0.9; }
.bbtn .caret { opacity: 0.6; }

/* Drawer popover — appears above its anchor button. */
.popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(15,23,42,0.12);
    padding: 14px;
    min-width: 280px;
    display: none;
    z-index: 51;
}
.popover.is-open { display: block; }
.popover__title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--mute);
    margin-bottom: 8px;
}
.popover__row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.popover__row input {
    flex: 1; height: 30px; padding: 0 8px;
    font: inherit; font-size: 12.5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.popover__row input:focus { background: var(--card); border-color: var(--accent); outline: none; }
.popover__taggrid { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.popover__tag {
    font-size: 11.5px; font-weight: 600;
    padding: 4px 9px; border-radius: var(--radius-sm);
    background: var(--paper); border: 1px solid var(--line);
    color: var(--ink-2); cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    user-select: none;
}
.popover__tag:hover { border-color: var(--accent); color: var(--accent-d); background: var(--accent-t); }
.popover__tag.is-active { background: var(--accent); border-color: var(--accent); color: white; }
.popover__divider { height: 1px; background: var(--line); margin: 10px 0; }
.popover__hint { font-size: 11.5px; color: var(--mute); margin-top: -4px; margin-bottom: 8px; }
.popover__empty { font-size: 12px; color: var(--mute); padding: 4px 0; }
.popover__foot {
    display: flex; gap: 8px; justify-content: flex-end;
    margin-top: 10px;
}
.popover__btn {
    font: inherit; font-weight: 600; font-size: 12.5px;
    padding: 6px 12px; border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.popover__btn--ghost {
    background: transparent; color: var(--ink-2);
}
.popover__btn--ghost:hover { background: var(--paper); }
.popover__btn--primary {
    background: var(--accent); color: white;
}
.popover__btn--primary:hover:not(:disabled) { background: var(--accent-d); }
.popover__btn:disabled { opacity: 0.4; cursor: not-allowed; }
/* 3D Phase 3 — danger variant for the bulk Remove drawer. */
.popover__btn--danger {
    background: var(--red); color: white;
}
.popover__btn--danger:hover:not(:disabled) { filter: brightness(0.92); }
.popover__foot--stack { flex-direction: column; gap: 6px; }
.popover__foot--stack .popover__btn { width: 100%; justify-content: center; }
.popover--danger .popover__title { color: var(--red); }

/* 3D Phase 3 — danger-styled bulkbar button (Remove). */
.bbtn--danger { color: #FCA5A5; }
.bbtn--danger:hover { background: rgba(220,38,38,0.18); color: #FECACA; }

/* 3B.1 — Variant B (Next-up + overflow) from design handoff XYc0uyYAGF2K18.
   Renders the volunteer's imminent shift inline under the name in the main
   row, with an overflow count below. */
.evr-nextup { margin-top: 6px; }
.evr-nextup__main { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink); flex-wrap: wrap; }
.evr-nextup__when { font-weight: 700; color: var(--ink); letter-spacing: -0.005em; }
.evr-nextup__sep { color: var(--line-2); }
.evr-nextup__name { color: var(--ink-2); font-weight: 600; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evr-nextup__role { margin-left: 2px; }
.evr-nextup__more { font-size: 0.72rem; color: var(--mute); margin-top: 3px; }

/* echip — small role chip used inside Next-up. Matches the design's
   .echip + .ic indicator pattern. */
.echip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); max-width: 180px; }
.echip .ic { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.echip.organizer .ic { background: var(--accent); }
.echip.checkin   .ic { background: var(--amber); }
.echip.volunteer .ic { background: #94A3B8; }
.vol-row__chevron { flex-shrink: 0; color: var(--mute); transition: transform 0.18s ease; }
.vol-row__detail { padding: 0 18px 14px; border-top: 1px solid var(--line); background: var(--paper); }
/* 3D Phase 4 — when wrapped inside the table's detail-row <td>, the same
   padding + tint applies but the border-top now sits on the td instead of
   the div so it visually separates the detail block from its main row. */
.vol-table .vol-row__detail { border-top: 1px solid var(--line); }
.vol-table .vol-row__detail-cell { background: var(--paper); }
.vol-row__detail-row { background: var(--paper); }
/* Meta row — small facts (Last activity, Lifetime, etc.) separated by · dots. */
.vol-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 0 8px; }
.vol-row__meta-fact { font-size: 0.78rem; color: var(--mute); }
.vol-row__meta-fact strong { color: var(--ink-2); font-weight: 700; }
.vol-row__meta-fact + .vol-row__meta-fact::before {
    content: "·"; color: var(--line-2); margin-right: 14px;
    font-weight: 700; display: inline-block;
}
/* "+N more" line under the Events history. */
.vol-row__history-more { font-size: 0.75rem; color: var(--mute); padding: 4px 0 0 14px; }
.vol-row__actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px;
}
.vol-row__action-group { display: flex; align-items: center; gap: 8px; }
.vol-row__action-label {
    font-size: 0.7rem; font-weight: 700; color: var(--mute);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.vol-row__action-select {
    font-size: 0.78rem; padding: 5px 10px; width: auto; min-width: 130px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); color: var(--ink); cursor: pointer;
}
.vol-row__action-select:hover { border-color: var(--line-2); }
.vol-row__action-select:focus { border-color: var(--accent); outline: none; }

/* ──────────────────────────────────────────────────────────
   Volunteer Mgmt — side drawer + hover peek (replaces inline
   expansion). Click a row → drawer. Hover a row → read-only peek.
   ────────────────────────────────────────────────────────── */
.vm-scrim {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.32);
    opacity: 0; pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 80;
}
.vm-scrim.is-open { opacity: 1; pointer-events: auto; }

.vm-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 480px; max-width: 100vw;
    background: var(--card);
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 32px -8px rgba(15,23,42,0.16), -2px 0 8px -2px rgba(15,23,42,0.06);
    transform: translateX(100%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 81;
    display: flex; flex-direction: column;
}
.vm-drawer.is-open { transform: translateX(0); }

.vm-drawer__head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}
.vm-drawer__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px;
    flex-shrink: 0;
}
.vm-drawer__name {
    font-size: 18px; font-weight: 800; letter-spacing: -0.02em;
    color: var(--ink); margin: 0;
    word-break: break-word;
}
.vm-drawer__email {
    font-size: 12.5px; color: var(--mute);
    word-break: break-all;
}
.vm-drawer__nav {
    display: flex; align-items: center; gap: 4px;
    color: var(--mute);
}
.vm-drawer__navbtn {
    width: 28px; height: 28px;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.vm-drawer__navbtn:hover { border-color: var(--line-2); }
.vm-drawer__navbtn:disabled { opacity: 0.4; cursor: not-allowed; }
.vm-drawer__navlabel {
    font-size: 11px; font-weight: 600; color: var(--mute);
    padding: 0 4px; min-width: 50px; text-align: center;
}
.vm-drawer__close {
    width: 32px; height: 32px;
    border: none; background: transparent;
    border-radius: var(--radius-sm);
    color: var(--mute); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; line-height: 1;
}
.vm-drawer__close:hover { background: var(--paper); color: var(--ink); }

.vm-drawer__meta {
    padding: 0 22px 16px;
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}
.vm-drawer__meta-sub {
    font-size: 11.5px; color: var(--mute);
}

.vm-drawer__body {
    flex: 1; overflow-y: auto;
    padding: 20px 22px 100px;
}
.vm-drawer__body .vol-row__detail {
    /* Override the inline-detail card styling — the drawer body IS the surface */
    padding: 0; border-top: none; background: transparent;
}
.vm-drawer__body .vol-row__meta { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.vm-drawer__body .vol-row__history { margin: 14px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vm-drawer__body .vol-row__actions {
    margin-top: 14px; padding-top: 0; border-top: none;
    flex-direction: column; align-items: stretch; gap: 10px;
}
.vm-drawer__body .vol-row__actions form { width: 100%; }
.vm-drawer__body .vol-row__actions .btn--sm,
.vm-drawer__body .vol-row__actions form .btn--sm { width: 100%; }
.vm-drawer__body .vol-row__action-group { width: 100%; }
.vm-drawer__body .vol-row__action-select { width: 100%; }
.vm-drawer__body .vol-tag-input { width: 100%; }

/* Hover peek — fixed-position read-only card */
.vm-peek {
    position: fixed;
    width: 280px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px -8px rgba(15,23,42,0.22), 0 4px 12px -4px rgba(15,23,42,0.08);
    padding: 12px 14px;
    z-index: 70;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 120ms ease;
}
.vm-peek.is-open { opacity: 1; transform: translateY(0); }
.vm-peek__head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.vm-peek__avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 12px;
    flex-shrink: 0;
}
.vm-peek__name { font-weight: 700; font-size: 13px; color: var(--ink); }
.vm-peek__sub  { font-size: 11px; color: var(--mute); }
.vm-peek__tags {
    display: flex; gap: 6px; flex-wrap: wrap;
    font-size: 11.5px; color: var(--ink-2);
    margin-bottom: 8px;
}
.vm-peek__tag {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--ink-2);
}
.vm-peek__stats { font-size: 11px; color: var(--mute); }

@media (max-width: 600px) {
    /* Drawer goes full-width on phones */
    .vm-drawer { width: 100vw; }
    /* Peek is hover-only — hide on touch devices */
    .vm-peek { display: none; }
}
@media (hover: none) {
    .vm-peek { display: none; }
}

/* Status badges */
.vol-badge { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.vol-badge--active   { background: var(--sage-light, #DCFCE7); color: var(--sage, #16A34A); }
.vol-badge--invited  { background: var(--accent-t); color: var(--accent); }
.vol-badge--inactive { background: var(--line); color: var(--mute); }
.vol-badge--blocked  { background: #FEE2E2; color: var(--red, #DC2626); }

/* Organizer tags */
.vol-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vol-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-t); color: var(--accent-d); font-size: 0.72rem; font-weight: 700; padding: 2px 8px 2px 9px; border-radius: 20px; }
.vol-tag__remove { background: none; border: none; cursor: pointer; color: inherit; font-size: 0.9rem; line-height: 1; padding: 0 0 0 2px; opacity: 0.7; }
.vol-tag__remove:hover { opacity: 1; }
.vol-tag-add { display: flex; align-items: center; }
.vol-tag-input { font-size: 0.78rem; border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; background: var(--card); color: var(--ink); outline: none; width: 120px; transition: border-color 0.15s, width 0.15s; }
.vol-tag-input:focus { border-color: var(--accent); width: 160px; }
.vol-tag-input::placeholder { color: var(--mute); }

/* Event history */
.vol-row__history { margin: 6px 0 8px; }
.vol-row__history-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.vol-row__history-item { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.vol-row__history-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
.vol-row__history-name { font-size: 0.8rem; color: var(--ink-2); flex: 1; }
.vol-row__history-date { font-size: 0.75rem; color: var(--mute); white-space: nowrap; flex-shrink: 0; }

@media (max-width: 600px) {
    .vol-page__controls { flex-direction: column; }
    .vol-row__main { flex-wrap: wrap; }
    .vol-row__right { width: 100%; justify-content: flex-start; }
}

/* ── V2b Welcome Hero (new admin, no events yet) ───────────────────────────── */
.v2b-hero {
    max-width: 620px; padding: 32px 36px; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; box-shadow: 0 10px 30px -12px rgba(15,23,42,0.10);
    animation: slideDown 0.35s ease-out both;
}
.v2b-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-d); }
.v2b-h { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.2; margin-top: 6px; }
.v2b-sub { font-size: 14px; color: var(--ink-2); opacity: 0.82; margin-top: 8px; line-height: 1.5; }
.v2b-checklist { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.v2b-item { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: #FAFBFD; }
.v2b-item--current { background: linear-gradient(135deg, #EEF2FF 0%, #F5F7FF 100%); border-color: rgba(79,70,229,0.3); box-shadow: 0 0 0 4px rgba(79,70,229,0.08); }
.v2b-bullet { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--mute); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2b-item--current .v2b-bullet { background: var(--accent); color: #fff; border-color: var(--accent); }
.v2b-item-title { font-size: 13.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2b-now { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 3px; }
.v2b-item-sub { font-size: 12px; color: var(--mute); margin-top: 3px; line-height: 1.45; }
.v2b-cta-row { margin-top: 24px; }
.v2b-cta-btn { font-size: 14px; padding: 10px 24px; }

/* Volunteer preview mock (inside v2b right column) */
.vp { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px -12px rgba(15,23,42,0.18); transform: rotate(-0.8deg); transition: transform 0.3s ease; }
.vp:hover { transform: rotate(0deg); }
.vp-bar { display: flex; align-items: center; gap: 5px; padding: 7px 12px; background: #F8FAFC; border-bottom: 1px solid var(--line); }
.vp-dot { width: 7px; height: 7px; border-radius: 50%; background: #CBD5E1; }
.vp-url { font-size: 10px; color: var(--mute); margin-left: 8px; font-family: ui-monospace, monospace; }
.vp-body { padding: 14px 16px 16px; }
.vp-eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-d); }
.vp-title { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-top: 2px; }
.vp-sub { font-size: 11px; color: var(--mute); margin-top: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.vp-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 5px; background: #FAFBFD; }
.vp-task--full { opacity: 0.6; }
.vp-task-title { font-size: 12px; font-weight: 700; color: var(--ink); }
.vp-task-meta { font-size: 10px; color: var(--mute); margin-top: 1px; }
.vp-btn { font-size: 10.5px; font-weight: 700; padding: 5px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.vp-btn--signup { background: var(--accent); color: #fff; }
.vp-btn--confirmed { background: var(--sage-light); color: var(--sage); border: 1px solid var(--sage-muted); }

/* ── Volunteers tab (event page) ─────────────────────────────────────────── */
.vol-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.vol-head__title { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.vol-head__count { color: var(--mute); font-weight: 600; }
.vol-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 10px; }
.vol-search { flex: 1; min-width: 180px; position: relative; }
.vol-search input { width: 100%; padding: 7px 10px 7px 30px; font-family: var(--font); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; color: var(--ink); background: var(--card); outline: none; }
.vol-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.vol-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.vol-filter { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.vol-filter button { padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: none; border: none; cursor: pointer; font-family: var(--font); border-right: 1px solid var(--line); transition: background 0.15s, color 0.15s; }
.vol-filter button:last-child { border-right: none; }
.vol-filter button.is-active { background: var(--accent-t); color: var(--accent); }
.v-list { }
.v-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.v-row:last-child { border-bottom: none; }
.v-row__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-row__email { font-size: 14px; font-weight: 600; color: var(--ink); }
.v-pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--radius-sm); }
.v-pill--active { background: var(--sage-light); color: var(--sage); border: 1px solid rgba(5,150,105,0.18); }
.v-pill--pending { background: var(--accent-t); color: var(--accent); border: 1px solid rgba(79,70,229,0.18); }

/* 3A — per-event role pill (organizer / check-in helper / volunteer) */
.v-role-pill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-sm); letter-spacing: 0.02em; text-transform: uppercase; }
.v-role-pill--organizer { background: #EEF2FF; color: #4F46E5; border: 1px solid rgba(79,70,229,0.22); }
.v-role-pill--checkin   { background: #FEF3C7; color: #92400E; border: 1px solid rgba(245,158,11,0.32); }
.v-role-pill--volunteer { background: #F1F5F9; color: #475569; border: 1px solid rgba(100,116,139,0.22); }

/* 3A — Manage dropdown menu in volunteers tab */
.v-menu-wrap { position: relative; display: inline-block; }
/* 3A.1 — position:fixed detaches the menu from every ancestor's stacking
   context so z-index reliably wins. JS sets top/left from the toggle's
   getBoundingClientRect() on open. z-index sits below modal overlays
   (which use 9999+) but above all in-flow content. */
.v-menu { position: fixed; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(15,23,42,0.12); padding: 6px; display: none; z-index: 1000; }
.v-menu.is-open { display: block; }
.v-menu__item { display: block; width: 100%; text-align: left; padding: 8px 10px; font-size: 13px; color: var(--ink); background: none; border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; }
.v-menu__item:hover { background: var(--accent-t); color: var(--accent); }
.v-menu__item--danger { color: #DC2626; }
.v-menu__item--danger:hover { background: #FEF2F2; color: #B91C1C; }
.vol-pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.vol-pagination__info { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.vol-pagination__info strong { color: var(--ink-2); }
.vol-pagination__controls { display: flex; align-items: center; gap: 4px; }
.page-btn { min-width: 30px; height: 30px; padding: 0 8px; font-size: 12.5px; font-weight: 600; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); cursor: pointer; font-family: var(--font); display: inline-flex; align-items: center; justify-content: center; }
.page-btn:hover:not([disabled]) { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.page-btn.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn[disabled] { color: var(--line-2); cursor: not-allowed; }
.vol-page-size { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); }
.vol-page-size select { font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 8px; background: var(--card); cursor: pointer; }
.vol-cta { margin-top: 14px; border: 1px dashed var(--line-2); background: var(--paper); border-radius: var(--radius-md); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.vol-cta__text { font-size: 13px; color: var(--ink-2); }
.vol-cta__text strong { color: var(--ink); }

/* ── Audit page (3G) ───────────────────────────────────────────────────────── */
body.audit-page { background: var(--paper); font-family: var(--font); margin: 0; }
.audit-page__container { max-width: 1280px; margin: 0 auto; padding: 32px 24px 64px; }
.audit-page__header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.audit-page__title { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.audit-page__subtitle { font-size: 0.85rem; color: var(--mute); margin: 0 0 24px; }
.audit-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 16px; }
.audit-card__title { font-size: 0.92rem; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.audit-filter-form { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.audit-filter-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--mute); }
.audit-filter-form select,
.audit-filter-form input { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.85rem; font-family: inherit; background: #fff; min-width: 0; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.audit-table th { background: var(--paper); padding: 8px 12px; text-align: left; font-weight: 700; border-bottom: 1.5px solid var(--line); white-space: nowrap; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mute); }
.audit-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.audit-table tr:last-child td { border-bottom: none; }
.audit-table tr:hover td { background: rgba(79, 70, 229, 0.02); }
.audit-action { font-family: monospace; font-size: 0.76rem; background: rgba(79, 70, 229, 0.08); color: var(--ink); border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.audit-actor__name { font-weight: 600; color: var(--ink); }
.audit-actor__email { display: block; font-size: 0.72rem; color: var(--mute); margin-top: 1px; }
.audit-actor__system { font-style: italic; color: var(--mute); }
.audit-target { font-size: 0.78rem; color: var(--ink-2); }
.audit-target__type { color: var(--mute); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.66rem; font-weight: 700; }
.audit-target__id { font-family: monospace; font-size: 0.72rem; color: var(--ink-2); }
.audit-diff details { font-size: 0.75rem; }
.audit-diff summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.audit-diff pre { margin: 6px 0 0; background: var(--paper); padding: 8px 10px; border-radius: 4px; overflow: auto; max-height: 160px; font-size: 0.7rem; line-height: 1.4; color: var(--ink-2); }
.audit-empty { padding: 32px; text-align: center; color: var(--mute); font-size: 0.9rem; }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 0.82rem; color: var(--mute); }
.audit-pagination__links { display: flex; gap: 8px; }
.audit-pagination__links a { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.audit-pagination__links a:hover { background: var(--paper); border-color: var(--ink-2); }
@media (max-width: 640px) {
    .audit-page__container { padding: 16px; }
    .audit-table { font-size: 0.78rem; }
    .audit-table td { padding: 6px 8px; }
}
