        :root {
            --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            /* Auckland Indian Association Inc. — navy brand (#1A3694) */
            --brand-navy: #1a3694;
            --brand-navy-dark: #142d7a;
            --brand-navy-light: #e8eef9;
            --purple-deep: var(--brand-navy);
            --purple: #2348b8;
            --purple-mid: #3d5dae;
            --purple-soft: rgba(26, 54, 148, 0.12);
            --gold: #64748b;
            --gold-bright: #93c5fd;
            --gold-soft: rgba(26, 54, 148, 0.1);
            --magenta: var(--brand-navy);
            --magenta-hover: var(--brand-navy-dark);
            --magenta-soft: rgba(26, 54, 148, 0.12);
            --cream: #f4f6fb;
            --ink: #0f172a;
            --ink-soft: #334155;
            --muted: #64748b;
            --line: rgba(26, 54, 148, 0.1);
            --line-strong: rgba(26, 54, 148, 0.16);
            --surface: #ffffff;
            --surface-2: #f1f5f9;
            --link: var(--purple-deep);
            --link-hover: #1e40af;
            --accent: var(--brand-navy);
            --accent-hover: var(--brand-navy-dark);
            --accent-fg: #ffffff;
            --accent-soft: rgba(26, 54, 148, 0.1);
            --danger: #b91c1c;
            --danger-soft: rgba(185, 28, 28, 0.1);
            --ok: #15803d;
            --ok-soft: rgba(21, 128, 61, 0.1);
            --warn: #c2410c;
            --warn-soft: rgba(234, 88, 12, 0.12);
            --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 40px rgba(26, 54, 148, 0.08);
            --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
            --radius: 14px;
            --radius-sm: 10px;
            --header-h: 4rem;
        }

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

        html { scroll-behavior: smooth; }

        body {
            margin: 0;
            min-height: 100dvh;
            font-family: var(--font);
            font-size: 1rem;
            line-height: 1.55;
            color: var(--ink);
            background: var(--cream);
            -webkit-font-smoothing: antialiased;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            z-index: -1;
            background:
                radial-gradient(ellipse 100% 70% at 0% 0%, rgba(26, 54, 148, 0.06), transparent 55%),
                radial-gradient(ellipse 80% 50% at 100% 10%, rgba(148, 163, 184, 0.12), transparent 50%),
                radial-gradient(ellipse 60% 40% at 50% 100%, rgba(26, 54, 148, 0.04), transparent 50%);
            pointer-events: none;
        }

        body.layout-admin::before {
            background: var(--cream);
        }

        a {
            color: var(--link);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.15s ease;
        }
        a:hover { color: var(--link-hover); }

        /* ——— Header (brand navy bar) ——— */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 50;
            height: var(--header-h);
            background: var(--purple-deep);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
        }

        .site-header__inner {
            max-width: 1160px;
            margin: 0 auto;
            padding: 0 1.25rem;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .site-header a {
            color: rgba(255, 255, 255, 0.92);
        }
        .site-header a:hover {
            color: var(--gold-bright);
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            color: #fff !important;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.05rem;
            letter-spacing: -0.02em;
        }
        .brand:hover { color: #fff !important; }
        .brand__mark {
            width: auto;
            height: 2.5rem;
            max-height: 2.75rem;
            border-radius: 10px;
            background: #fff;
            color: var(--purple-deep);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            font-weight: 700;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
            border: none;
            overflow: hidden;
            flex-shrink: 0;
            padding: 0.15rem 0.4rem;
        }
        .brand__mark img {
            height: 100%;
            width: auto;
            max-width: min(132px, 28vw);
            display: block;
            object-fit: contain;
        }
        .brand__text span {
            display: block;
            font-size: 0.7rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.72) !important;
            letter-spacing: 0.04em;
            margin-top: 0.05rem;
        }

        .site-nav {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .nav-link {
            padding: 0.45rem 0.85rem;
            border-radius: 999px;
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9) !important;
            text-decoration: none;
            transition: background 0.15s ease, color 0.15s ease;
        }
        .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff !important;
        }
        .nav-link--primary {
            background: var(--magenta) !important;
            color: #fff !important;
            box-shadow: 0 2px 12px rgba(26, 54, 148, 0.35);
        }
        .nav-link--primary:hover {
            background: var(--accent-hover) !important;
            color: #fff !important;
        }

        .btn-logout {
            margin: 0;
            padding: 0.45rem 0.9rem;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            background: transparent;
            font: inherit;
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            cursor: pointer;
            transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
        }
        .btn-logout:hover {
            border-color: var(--gold-bright);
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        /* ——— Layout shells ——— */
        main {
            padding: 1.75rem 1.25rem 3.5rem;
        }
        body.layout-admin main {
            padding: 0;
            min-height: 0;
        }

        .shell {
            /* max-width: 720px; */
            margin: 1rem 1rem;
        }
        .shell-wide {
            max-width: 1120px;
            margin: 1rem auto;
        }

        /* ——— Cards & surfaces ——— */
        .card {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--radius);
            padding: 1.75rem 1.75rem 2rem;
            box-shadow: var(--shadow);
        }
        @media (min-width: 640px) {
            .card { padding: 2rem 2.25rem 2.25rem; }
        }

        .card.card--flush-top {
            padding: 0;
            overflow: hidden;
        }
        .card__body {
            padding: 0 1.75rem 1.75rem;
        }
        .card__body > .alert {
            margin-bottom: 1rem;
        }
        @media (min-width: 640px) {
            .card__body { padding: 0 2.25rem 2.25rem; }
        }

        .card-hero {
            margin: 0;
            background: linear-gradient(135deg, rgba(26, 54, 148, 0.07) 0%, rgba(148, 163, 184, 0.12) 50%, rgba(26, 54, 148, 0.05) 100%);
            border-bottom: 1px solid var(--line);
        }
        @media (min-width: 640px) {
            .card-hero {
                padding: 1rem 1rem 1rem;
            }
        }

        .eyebrow {
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--gold);
            margin: 0 0 0.4rem;
        }

        h1 {
            font-family: var(--font-display);
            font-size: clamp(1.65rem, 3.2vw, 2.15rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.2;
            margin: 0 0 0.5rem;
            color: var(--purple-deep);
        }

        h2, .h2 {
            font-size: 0.82rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--purple-mid);
            margin: 2rem 0 0.85rem;
            padding-bottom: 0.35rem;
            border-bottom: 1px solid var(--line);
        }
        h2:first-child, .h2:first-child { margin-top: 0; }

        .lead {
            margin: 0;
            font-size: 1rem;
            color: var(--ink-soft);
            max-width: 52ch;
        }

        .muted { color: var(--muted); font-size: 0.9375rem; }

        .stack { display: flex; flex-direction: column; gap: 1rem; }
        .stack-tight { gap: 0.65rem; }

        .row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        @media (max-width: 640px) {
            .row { grid-template-columns: 1fr; }
        }

        /* ——— Forms ——— */
        .field label,
        label.field-label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--ink-soft);
            margin-bottom: 0.35rem;
        }

        .field-hint {
            font-size: 0.8125rem;
            color: var(--muted);
            margin: 0.25rem 0 0;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="password"],
        input[type="file"],
        select,
        textarea {
            width: 100%;
            font: inherit;
            font-size: 0.9375rem;
            color: var(--ink);
            background: var(--surface-2);
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            padding: 0.65rem 0.85rem;
            transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
        }
        input::placeholder, textarea::placeholder { color: #94a3b8; }

        input:hover, select:hover, textarea:hover {
            border-color: rgba(26, 54, 148, 0.25);
        }
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: var(--purple);
            background: var(--surface);
            box-shadow: 0 0 0 3px var(--purple-soft);
        }

        select {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231a3694' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            padding-right: 2.25rem;
        }

        textarea { min-height: 100px; resize: vertical; }

        /* Interest chips */
        .interest-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .interest-chip {
            position: relative;
            cursor: pointer;
        }
        .interest-chip input {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }
        .interest-chip span {
            display: inline-flex;
            align-items: center;
            padding: 0.5rem 0.9rem;
            border-radius: 999px;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--ink-soft);
            background: var(--surface-2);
            border: 1px solid var(--line-strong);
            transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
        }
        .interest-chip:hover span {
            border-color: rgba(26, 54, 148, 0.3);
        }
        .interest-chip input:focus-visible + span {
            outline: 2px solid var(--purple);
            outline-offset: 2px;
        }
        .interest-chip input:checked + span {
            background: var(--brand-navy-light);
            border-color: var(--purple-deep);
            color: var(--purple-deep);
        }

        /* File drop */
        .file-drop {
            position: relative;
            border: 2px dashed rgba(26, 54, 148, 0.22);
            border-radius: var(--radius-sm);
            padding: 1.35rem 1rem;
            text-align: center;
            background: linear-gradient(180deg, var(--cream) 0%, var(--surface) 100%);
            transition: border-color 0.2s ease, background 0.2s ease;
        }
        .file-drop:hover {
            border-color: rgba(26, 54, 148, 0.45);
            background: var(--surface-2);
        }
        .file-drop input[type="file"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            padding: 0;
            border: none;
            height: 100%;
        }
        .file-drop__icon {
            display: flex;
            justify-content: center;
            margin-bottom: 0.5rem;
            color: var(--purple);
        }
        .file-drop__title {
            font-weight: 600;
            font-size: 0.9375rem;
            color: var(--ink);
            margin: 0 0 0.25rem;
        }
        .file-drop__hint {
            font-size: 0.8125rem;
            color: var(--muted);
            margin: 0;
        }

        /* ——— Buttons ——— */
        .actions {
            margin-top: 0.25rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            align-items: center;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            padding: 0.65rem 1.2rem;
            border-radius: 999px;
            border: 1px solid transparent;
            font: inherit;
            font-size: 0.9375rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
        }
        .btn:active { transform: scale(0.98); }

        .btn-primary {
            background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
            color: var(--accent-fg);
            box-shadow: 0 4px 18px rgba(26, 54, 148, 0.35);
        }
        .btn-primary:hover {
            color: var(--accent-fg);
            box-shadow: 0 6px 22px rgba(26, 54, 148, 0.42);
        }

        .btn-secondary {
            background: var(--surface);
            border-color: var(--line-strong);
            color: var(--purple);
        }
        .btn-secondary:hover {
            border-color: var(--gold);
            color: var(--purple-deep);
            background: var(--cream);
        }

        .btn-danger {
            background: linear-gradient(135deg, #dc2626 0%, var(--danger) 100%);
            color: #fff;
            box-shadow: 0 4px 14px rgba(185, 28, 28, 0.25);
        }
        .btn-danger:hover { color: #fff; }

        .btn-ghost {
            background: transparent;
            border-color: transparent;
            color: var(--purple);
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }
        .btn-ghost:hover {
            background: var(--purple-soft);
            color: var(--magenta-hover);
        }

        /* ——— Alerts ——— */
        .alert {
            padding: 0.85rem 1rem;
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            border: 1px solid transparent;
        }
        .alert ul { margin: 0.5rem 0 0; padding-left: 1.15rem; }
        .alert-error {
            background: var(--danger-soft);
            border-color: rgba(185, 28, 28, 0.25);
            color: #7f1d1d;
        }
        .alert-success {
            background: var(--ok-soft);
            border-color: rgba(4, 120, 87, 0.25);
            color: #064e3b;
        }

        /* ——— Pills ——— */
        .pill {
            display: inline-flex;
            align-items: center;
            padding: 0.2rem 0.65rem;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            border: 1px solid var(--line-strong);
            background: var(--surface-2);
            color: var(--ink-soft);
        }
        .pill--pending { background: var(--warn-soft); border-color: rgba(234, 88, 12, 0.35); color: var(--warn); }
        .pill--approved { background: var(--ok-soft); border-color: rgba(45, 106, 79, 0.3); color: var(--ok); }
        .pill--rejected { background: var(--danger-soft); border-color: rgba(185, 28, 28, 0.22); color: var(--danger); }
        .pill--archived { background: rgba(26, 54, 148, 0.08); border-color: rgba(26, 54, 148, 0.15); color: var(--purple-mid); }

        /* ——— Tables ——— */
        .table-wrap {
            margin-top: 1.25rem;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            overflow: hidden;
            background: var(--surface);
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.875rem;
        }
        .data-table th {
            text-align: left;
            padding: 0.75rem 1rem;
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--purple-mid);
            background: var(--cream);
            border-bottom: 1px solid var(--line);
        }
        .data-table td {
            padding: 0.65rem 1rem;
            border-bottom: 1px solid var(--line);
            vertical-align: middle;
        }
        .data-table tbody tr:last-child td { border-bottom: none; }
        .data-table tbody tr {
            transition: background 0.12s ease;
        }
        .data-table tbody tr:hover {
            background: rgba(26, 54, 148, 0.04);
        }
        .data-table .cell-muted { color: var(--muted); font-variant-numeric: tabular-nums; }
        .data-table .cell-strong { font-weight: 600; color: var(--ink); }
        .data-table .cell-actions { text-align: right; }

        .link-arrow {
            font-weight: 600;
            font-size: 0.875rem;
        }

        /* Toolbar */
        .toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: space-between;
            gap: 1rem;
        }
        .filter-field {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .filter-field label {
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--muted);
            margin: 0;
        }
        .filter-field select {
            width: auto;
            min-width: 9.5rem;
        }

        /* Definition list */
        dl.info-grid {
            display: grid;
            grid-template-columns: minmax(100px, 150px) 1fr;
            gap: 0.6rem 1.25rem;
            margin: 0;
            font-size: 0.9375rem;
        }
        @media (max-width: 560px) {
            dl.info-grid { grid-template-columns: 1fr; }
            dl.info-grid dt { margin-top: 0.35rem; }
            dl.info-grid dt:first-child { margin-top: 0; }
        }
        dl.info-grid dt {
            color: var(--muted);
            font-weight: 600;
            font-size: 0.8125rem;
        }
        dl.info-grid dd {
            margin: 0;
            color: var(--ink);
        }

        /* Detail layout */
        .detail-layout {
            display: grid;
            gap: 1.25rem;
        }
        @media (min-width: 900px) {
            .detail-layout {
                grid-template-columns: 1fr 300px;
                align-items: start;
            }
        }

        .panel {
            background: var(--cream);
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            padding: 1.1rem 1.15rem;
        }
        .panel__title {
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--gold);
            margin: 0 0 0.75rem;
        }

        .doc-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .doc-list li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.55rem 0;
            border-bottom: 1px solid var(--line);
            font-size: 0.9rem;
        }
        .doc-list li:last-child { border-bottom: none; padding-bottom: 0; }
        .doc-list li:first-child { padding-top: 0; }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--muted);
            margin-bottom: 0.35rem;
        }
        .back-link:hover { color: var(--link-hover); }

        /* Pagination */
        .pagination-nav { margin-top: 1.25rem; }
        .pagination {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.35rem;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .pagination__item a,
        .pagination__item span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 2.25rem;
            height: 2.25rem;
            padding: 0 0.5rem;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            border: 1px solid var(--line-strong);
            background: var(--surface);
            color: var(--ink-soft);
        }
        .pagination__item a:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-soft);
        }
        .pagination__item--active span {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--accent-fg);
        }
        .pagination__item--disabled span {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .pagination__item--ellipsis span {
            border: none;
            background: transparent;
        }

        /* Auth split */
        .auth-page {
            min-height: calc(100dvh - var(--header-h));
            display: grid;
        }
        @media (min-width: 900px) {
            .auth-page {
                grid-template-columns: 1fr 420px;
                max-width: 1120px;
                margin: 0 auto;
                padding: 2rem 1.25rem 3rem;
                gap: 2rem;
                align-items: stretch;
            }
        }
        @media (max-width: 899px) {
            .auth-page { padding: 1.25rem 1.25rem 2rem; }
        }

        .auth-aside {
            display: none;
        }
        @media (min-width: 900px) {
            .auth-aside {
                display: flex;
                flex-direction: column;
                justify-content: flex-end;
                padding: 2rem;
                border-radius: var(--radius);
                background: linear-gradient(155deg, var(--brand-navy-dark) 0%, var(--brand-navy) 45%, #0f172a 100%);
                color: #e2e8f0;
                box-shadow: var(--shadow-lg);
                position: relative;
                overflow: hidden;
            }
            .auth-aside::before {
                content: '';
                position: absolute;
                top: -30%;
                right: -20%;
                width: 70%;
                height: 70%;
                background: radial-gradient(circle, rgba(147, 197, 253, 0.18) 0%, transparent 60%);
                pointer-events: none;
            }
            .auth-aside blockquote {
                margin: 0;
                position: relative;
                z-index: 1;
                font-family: var(--font-display);
                font-size: 1.45rem;
                font-weight: 600;
                line-height: 1.3;
                letter-spacing: 0.02em;
                color: #fff;
            }
            .auth-aside cite {
                display: block;
                margin-top: 1rem;
                font-size: 0.8125rem;
                font-style: normal;
                opacity: 0.75;
            }
        }

        .auth-card-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
        }
        @media (min-width: 900px) {
            .auth-card-wrap .card { width: 100%; max-width: 420px; }
        }

        /* Thank you success */
        .success-icon {
            width: 4rem;
            height: 4rem;
            border-radius: 50%;
            background: var(--gold-soft);
            border: 2px solid rgba(26, 54, 148, 0.25);
            display: grid;
            place-items: center;
            margin: 0 auto 1rem;
            color: var(--purple-deep);
        }
        .success-icon svg {
            display: block;
        }

        .empty-state {
            text-align: center;
            padding: 2.5rem 1rem;
            color: var(--muted);
        }

        .check-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--ink-soft);
            cursor: pointer;
        }
        .check-row input { width: auto; accent-color: var(--magenta); }

        .decision-grid {
            display: grid;
            gap: 1rem;
            grid-template-columns: 1fr 1fr;
        }
        @media (max-width: 720px) {
            .decision-grid { grid-template-columns: 1fr; }
        }
        .subcard {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            padding: 1.15rem 1.2rem;
            box-shadow: 0 1px 0 rgba(26, 54, 148, 0.08) inset;
        }
        .subcard .btn { width: 100%; }
        @media (min-width: 480px) {
            .subcard .btn { width: auto; }
        }

        /* ——— Admin dashboard shell ——— */
        body.layout-admin {
            background: var(--cream);
        }
        .admin-app {
            display: flex;
            min-height: 100dvh;
        }
        .admin-sidebar {
            width: 220px;
            flex-shrink: 0;
            background: linear-gradient(180deg, var(--brand-navy-dark) 0%, #0f172a 100%);
            color: rgba(255, 255, 255, 0.92);
            /* padding: 1.25rem 0 2rem; */
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            border-right: 1px solid rgb(255, 255, 255);
        }
        .admin-brand {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            /* gap: 0.65rem; */
            /* padding: 0 1.15rem; */
            text-decoration: none;
            color: #fff !important;
            align-items: center;
            justify-content: center;
            background: #ffffff
        }
        .admin-brand:hover {
            color: #fff !important;
        }
        .admin-brand__logo {
            display: block;
            width: 100%;
            max-width: 63px;
            height: auto;
            border-radius: 10px;
            background: #fff;
            /* padding: 0.35rem 0.45rem; */
            /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); */
            flex-shrink: 0;
        }
        .admin-brand__text {
            font-weight: 700;
            font-size: 1rem;
            letter-spacing: -0.02em;
            line-height: 1.25;
        }
        .admin-brand__text small {
            display: block;
            font-size: 0.68rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.68);
            letter-spacing: 0.04em;
            margin-top: 0.15rem;
            text-transform: uppercase;
        }
        .admin-nav {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            padding: 0 0.65rem;
        }
        .admin-nav__link {
            display: block;
            padding: 0.55rem 0.85rem;
            border-radius: 10px;
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.88) !important;
            text-decoration: none;
            transition: background 0.15s ease, color 0.15s ease;
            border-left: 3px solid transparent;
        }
        .admin-nav__link:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff !important;
        }
        .admin-nav__link.is-active {
            background: rgba(255, 255, 255, 0.12);
            color: #fff !important;
            border-left-color: var(--gold-bright);
        }
        .admin-shell {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            background: var(--cream);
        }
        .admin-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem 1.25rem;
            min-height: 4rem;
            padding: 0.65rem 1.25rem;
            background: #fff;
            border-bottom: 1px solid var(--line);
            flex-wrap: wrap;
            row-gap: 0.65rem;
        }
        @media (min-width: 1100px) {
            .admin-topbar {
                padding-left: 1.75rem;
                padding-right: 1.75rem;
            }
        }
        .admin-topbar__brand {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 0;
            text-decoration: none;
            color: inherit;
            flex-shrink: 0;
        }
        .admin-topbar__brand:hover {
            color: inherit;
        }
        .admin-topbar__brand:hover .admin-topbar__title {
            color: var(--brand-navy);
        }
        .admin-topbar__mark {
            flex-shrink: 0;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 12px;
            display: grid;
            place-items: center;
            font-size: 0.8125rem;
            font-weight: 800;
            letter-spacing: -0.04em;
            color: #fff;
            background: linear-gradient(145deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
            box-shadow: 0 2px 8px rgba(26, 54, 148, 0.35);
        }
        .admin-topbar__titles {
            display: flex;
            flex-direction: column;
            gap: 0.1rem;
            min-width: 0;
            line-height: 1.2;
        }
        .admin-topbar__title {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--ink);
        }
        .admin-topbar__subtitle {
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--ink-soft);
            letter-spacing: 0.01em;
        }
        @media (max-width: 480px) {
            .admin-topbar__subtitle {
                display: none;
            }
        }
        .admin-topbar__user {
            display: flex;
            align-items: center;
            gap: 0.65rem 0.85rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .admin-topbar__user-cluster {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            flex-wrap: nowrap;
        }
        .admin-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.35rem 0.7rem;
            border-radius: 999px;
            font-size: 0.6875rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--ink-soft);
            background: var(--surface-2);
            border: 1px solid var(--line-strong);
        }
        .admin-badge__dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--ok);
            box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.2);
            flex-shrink: 0;
        }
        .admin-topbar__name {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--ink-soft);
            max-width: 10rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .admin-topbar__avatar {
            flex-shrink: 0;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background: var(--surface-2);
            border: 1px solid var(--line-strong);
            color: var(--muted);
        }
        .admin-topbar__avatar svg {
            display: block;
        }
        .admin-logout-form {
            margin: 0;
            margin: 0;
            border-top: 1px solid #656565;
            padding-top: 5%;
        }
        .admin-logout {
            margin: 0;
            padding: 0.45rem 0.95rem;
            border-radius: 999px;
            border: 1px solid var(--line-strong);
            background: var(--surface);
            font: inherit;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--ink-soft);
            cursor: pointer;
            transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
        }
        .admin-logout:hover {
            border-color: var(--purple-deep);
            color: var(--purple-deep);
        }
        .admin-main {
            flex: 1;
            padding: 1.5rem 1.25rem 2.5rem;
            width: 100%;
            box-sizing: border-box;
        }
        @media (min-width: 1100px) {
            .admin-main {
                padding-left: 2rem;
                padding-right: 2rem;
            }
        }
        @media (max-width: 900px) {
            .admin-app {
                flex-direction: column;
            }
            .admin-sidebar {
                width: 100%;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: flex-start;
                padding: 1rem;
                gap: 1rem;
            }
            .admin-brand {
                flex: 1 1 auto;
                min-width: 200px;
            }
            .admin-nav {
                flex-direction: row;
                flex-wrap: wrap;
                width: 100%;
                padding: 0;
                gap: 0.35rem;
            }
            .admin-nav__link {
                flex: 1 1 calc(50% - 0.35rem);
                text-align: center;
                border-left: none;
                border-bottom: 3px solid transparent;
            }
            .admin-nav__link.is-active {
                border-left: none;
                border-bottom-color: var(--gold-bright);
            }
        }

        /* ——— Admin dashboard page blocks ——— */
        .admin-dash {
            max-width: 1100px;
            width: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            margin: 1rem 1rem;
            overflow-y: auto;
            max-height: calc(100vh - 80px);
        }
        .admin-dash .card {
            padding: 1.25rem 1.35rem 1.4rem;
        }
        @media (min-width: 640px) {
            .admin-dash .card {
                padding: 1.35rem 1.5rem 1.5rem;
            }
        }
        .admin-dash-header {
            margin: 0;
        }
        .admin-dash-title {
            margin: 0 0 0.35rem;
            font-size: clamp(1.35rem, 2.5vw, 1.85rem);
            font-weight: 700;
            color: var(--purple-deep);
            letter-spacing: -0.02em;
        }
        .admin-dash-sub {
            margin: 0;
            color: var(--muted);
            font-size: 0.9375rem;
            max-width: 52ch;
        }
        .admin-dash > .admin-stat-grid {
            margin-bottom: 0;
        }
        .admin-stat-grid {
            display: grid;
            gap: 0.85rem;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            width: 100%;
        }
        @media (min-width: 900px) {
            .admin-stat-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }
        .admin-stat-card {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--radius);
            padding: 1rem 1.35rem;
            box-shadow: var(--shadow);
            display: flex;
            gap: 0.85rem;
            align-items: center;
            box-sizing: border-box;
        }
        @media (min-width: 640px) {
            .admin-stat-card {
                padding: 1.1rem 1.5rem;
            }
        }
        .admin-stat-card__icon {
            width: 2.75rem;
            height: 2.75rem;
            border-radius: 12px;
            display: grid;
            place-items: center;
            flex-shrink: 0;
        }
        .admin-stat-card__icon--navy {
            background: rgba(26, 54, 148, 0.12);
            color: var(--brand-navy);
        }
        .admin-stat-card__icon--green {
            background: rgba(21, 128, 61, 0.12);
            color: var(--ok);
        }
        .admin-stat-card__icon--orange {
            background: rgba(234, 88, 12, 0.12);
            color: var(--warn);
        }
        .admin-stat-card__icon--purple {
            background: rgba(109, 40, 217, 0.12);
            color: #6d28d9;
        }
        .admin-stat-card__body {
            min-width: 0;
        }
        .admin-stat-card__label {
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--muted);
            margin: 0 0 0.35rem;
        }
        .admin-stat-card__value {
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--ink);
            line-height: 1.15;
            margin: 0;
            font-variant-numeric: tabular-nums;
        }
        .admin-stat-card__hint {
            margin: 0.4rem 0 0;
            font-size: 0.8125rem;
            font-weight: 600;
            line-height: 1.35;
        }
        .admin-stat-card__hint--up {
            color: var(--ok);
        }
        .admin-stat-card__hint--down {
            color: var(--danger);
        }
        .admin-stat-card__hint--muted {
            color: var(--muted);
            font-weight: 500;
        }
        .admin-dash .card > .h2 + .table-wrap {
            margin-top: 0.85rem;
        }
        .admin-dash .card > .h2 + .admin-quick-actions {
            margin-top: 0.65rem;
        }
        .admin-dash .card > .h2 + .muted {
            margin-top: 0.65rem;
        }
        .admin-quick-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem 0.55rem;
            margin-top: 0;
        }
        .admin-quick-actions .btn {
            padding: 0.45rem 0.85rem;
            font-size: 0.8125rem;
            border-radius: 999px;
        }
        .admin-dash-table-wrap {
            /* max-width: min(100%, 22rem); */
        }
        .admin-dash-table-wrap .data-table th:last-child {
            text-align: right;
        }
        .admin-dash-table-wrap .data-table .cell-strong {
            text-align: right;
            width: 1%;
            white-space: nowrap;
            padding-left: 1.5rem;
        }
        .admin-metric-dl {
            margin: 0;
            padding: 0;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 0.55rem 1.25rem;
            font-size: 0.875rem;
            line-height: 1.45;
        }
        .admin-metric-dl dt {
            margin: 0;
            font-weight: 600;
            color: var(--ink-soft);
        }
        .admin-metric-dl dd {
            margin: 0;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            color: var(--ink);
            text-align: right;
        }
        .admin-dash-metrics {
            display: flex;
            flex-direction: column;
        }
        .admin-dash-metrics .admin-metric-dl {
            flex: 1;
            align-content: start;
        }
        .admin-dash-grid {
            display: grid;
            gap: 1.25rem;
            align-items: stretch;
            width: 100%;
        }
        @media (min-width: 960px) {
            .admin-dash-grid {
                grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
            }
            .admin-dash-grid.admin-dash-grid--pair {
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            }
        }
        .admin-dash-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin: 0 0 0.85rem;
            padding-bottom: 0.35rem;
            border-bottom: 1px solid var(--line);
        }
        .admin-dash-card-head .h2 {
            margin: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        .admin-dash-card-head__icon {
            flex-shrink: 0;
            color: var(--muted);
            display: grid;
            place-items: center;
        }
        .admin-dash-activity {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .admin-dash-activity li {
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 0.65rem;
            align-items: start;
            padding: 0.65rem 0;
            border-bottom: 1px solid var(--line);
        }
        .admin-dash-activity li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        .admin-dash-activity__dot {
            width: 1.75rem;
            height: 1.75rem;
            border-radius: 50%;
            display: grid;
            place-items: center;
            flex-shrink: 0;
            margin-top: 0.1rem;
        }
        .admin-dash-activity__dot--ok {
            background: var(--ok-soft);
            color: var(--ok);
        }
        .admin-dash-activity__dot--warn {
            background: var(--warn-soft);
            color: var(--warn);
        }
        .admin-dash-activity__main {
            min-width: 0;
        }
        .admin-dash-activity__name {
            font-weight: 700;
            font-size: 0.875rem;
            color: var(--ink);
            margin: 0 0 0.15rem;
        }
        .admin-dash-activity__line {
            margin: 0;
            font-size: 0.8125rem;
            color: var(--muted);
            line-height: 1.35;
        }
        .admin-dash-activity__when {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--muted);
            white-space: nowrap;
            margin-top: 0.1rem;
        }
        .admin-dash-renewal {
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            padding: 0.75rem 0.85rem;
            margin-bottom: 0.65rem;
            background: var(--surface);
        }
        .admin-dash-renewal:last-of-type {
            margin-bottom: 0;
        }
        .admin-dash-renewal__top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .admin-dash-renewal__title {
            margin: 0;
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--ink);
        }
        .admin-dash-renewal__title a {
            color: inherit;
            font-weight: inherit;
            text-decoration: none;
        }
        .admin-dash-renewal__title a:hover {
            color: var(--purple-deep);
            text-decoration: underline;
        }
        .admin-dash-renewal__meta {
            margin: 0.2rem 0 0;
            font-size: 0.8125rem;
            color: var(--muted);
        }
        .admin-dash-renewal__due {
            margin: 0.5rem 0 0;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--ink-soft);
        }
        .admin-dash-renewal__bar {
            margin-top: 0.5rem;
            height: 4px;
            border-radius: 2px;
            background: var(--surface-2);
            overflow: hidden;
        }
        .admin-dash-renewal__bar > span {
            display: block;
            height: 100%;
            border-radius: 2px;
            background: var(--warn);
        }
        .admin-dash-renewal__bar > span.admin-dash-renewal__bar-fill--urgent {
            background: var(--danger);
        }
        .admin-dash-renewals__cta {
            margin-top: 1rem;
            display: flex;
            justify-content: center;
        }
        .admin-dash-empty-note {
            margin: 0;
        }
        .admin-dash-growth .data-table th:last-child,
        .admin-dash-growth .data-table td.cell-strong {
            text-align: right;
        }
        
    /* Scoped: do not override global .card — all rules under .dir-page */
    .dir-page {
        --db-border: var(--line-strong);
        --db-border-light: var(--line);
        --db-text: var(--ink);
        --db-text-muted: var(--muted);
        --db-text-soft: var(--ink-soft);
        --db-bg: var(--cream);
        --db-accent: var(--brand-navy);
        --db-tag-bg: var(--surface-2);
        --db-tag-text: var(--brand-navy);
        --db-pill-active-bg: var(--ok-soft);
        --db-pill-active-text: var(--ok);
        --db-green: var(--ok);
        --db-green-light: var(--ok-soft);
        --db-shadow: var(--shadow);
        --db-radius: var(--radius);
        --db-radius-sm: var(--radius-sm);
        margin: 1rem 1rem;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .dir-page .db-header { padding: 0 0 0.25rem; }
    .dir-page .db-header h1 { font-size: clamp(1.2rem, 2vw, 1.35rem); font-weight: 700; color: var(--purple-deep); margin: 0 0 0.35rem; letter-spacing: -0.02em; }
    .dir-page .db-header .eyebrow { margin-bottom: 0.35rem; }
    .dir-page .db-header p { margin: 0; font-size: 0.9375rem; color: var(--muted); max-width: 60ch; }

    .dir-page .card {
        background: var(--surface);
        border: 1px solid var(--db-border-light);
        border-radius: var(--db-radius);
        box-shadow: var(--db-shadow);
        padding: 1.35rem 1.5rem;
        box-sizing: border-box;
    }
    .dir-page .search-card { padding: 1.25rem 1.35rem; }
    .dir-page .search-card h2 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.75rem; color: var(--db-text); }
    .dir-page .search-wrap {
        display: flex;
        align-items: stretch;
        min-width: 0;
        border: 1px solid var(--db-border);
        border-radius: var(--db-radius-sm);
        overflow: hidden;
        background: var(--surface-2);
        transition: border-color .15s, box-shadow .15s;
    }
    .dir-page .search-wrap:focus-within {
        border-color: var(--purple);
        box-shadow: 0 0 0 3px var(--purple-soft);
    }
    .dir-page .search-icon { padding: 0 0.75rem; color: var(--db-text-soft); display: flex; align-items: center; flex-shrink: 0; }
    .dir-page .search-input {
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        font: inherit;
        font-size: 0.9375rem;
        color: var(--db-text);
        background: transparent;
        padding: 0.65rem 0.75rem 0.65rem 0;
    }
    .dir-page .search-input::placeholder { color: var(--muted); }
    .dir-page .search-actions { display: flex; align-items: stretch; gap: 0.5rem; flex-shrink: 0; padding: 0.4rem; }
    .dir-page .recent-chips { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
    .dir-page .chip {
        font-size: 0.8125rem;
        color: var(--db-text-muted);
        background: var(--db-tag-bg);
        border: 1px solid var(--db-border-light);
        border-radius: 999px;
        padding: 0.35rem 0.75rem;
        text-decoration: none;
        font-weight: 600;
    }
    .dir-page .chip:hover { border-color: var(--purple); color: var(--purple-deep); }

    .dir-page .filters-card { padding: 1rem 1.25rem; }
    .dir-page .filters-card .h2 { margin-top: 0; font-size: 0.75rem; }
    .dir-page .filter-rows { display: flex; flex-direction: column; gap: 0.75rem; }
    .dir-page .filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.85rem; }
    .dir-page .filter-row label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
    .dir-page .filter-row select { min-width: 8.5rem; }

    .dir-page .spotlight {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
    }
    @media (min-width: 1024px) {
        .dir-page .spotlight {
            grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
        }
    }

    .dir-page .profile-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.1rem;
        gap: 0.35rem;
        min-width: 0;
    }
    .dir-page .avatar-wrap {
        width: 76px; height: 76px;
        border-radius: 50%;
        background: var(--surface-2);
        display: flex; align-items: center; justify-content: center;
        margin-bottom: 0.35rem;
        color: var(--muted);
        flex-shrink: 0;
        overflow: hidden;
    }
    .dir-page .avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
    .dir-page .profile-name { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.25; word-break: break-word; max-width: 100%; }
    .dir-page .profile-id { font-size: 0.8125rem; color: var(--muted); margin: 0; max-width: 100%; }
    .dir-page .profile-card .pill--mock {
        display: inline-block;
        font-size: 0.6875rem;
        font-weight: 700;
        padding: 0.2rem 0.65rem;
        border-radius: 999px;
        margin: 0.25rem 0 0;
    }
    .dir-page .profile-dl {
        width: 100%;
        margin: 0.75rem 0 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--db-border-light);
        text-align: left;
    }
    .dir-page .profile-dl > div {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--db-border-light);
        gap: 0.75rem;
        min-width: 0;
    }
    .dir-page .profile-dl dt { font-size: 0.75rem; color: var(--muted); flex-shrink: 0; }
    .dir-page .profile-dl dd { font-size: 0.8125rem; font-weight: 600; text-align: right; margin: 0; word-break: break-word; min-width: 0; }

    .dir-page .btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
        background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
        color: #fff;
        border: none;
        border-radius: var(--db-radius-sm);
        padding: 0.65rem 1rem;
        font: inherit;
        font-size: 0.8125rem;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        text-decoration: none;
        box-sizing: border-box;
    }
    .dir-page .btn-primary:hover { filter: brightness(1.05); color: #fff; }

    .dir-page .detail-stack { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
    .dir-page .detail-card { padding: 1.1rem 1.15rem; min-width: 0; }
    .dir-page .detail-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
    .dir-page .detail-icon { color: var(--db-accent); display: flex; align-items: center; flex-shrink: 0; }
    .dir-page .detail-title { font-size: 0.9375rem; font-weight: 700; margin: 0; color: var(--ink); }

    .dir-page .family-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
    .dir-page .family-row {
        display: flex; align-items: flex-start; gap: 0.6rem;
        background: var(--cream);
        border: 1px solid var(--db-border-light);
        border-radius: var(--db-radius-sm);
        padding: 0.6rem 0.75rem;
        min-width: 0;
    }
    .dir-page .family-icon { color: var(--muted); flex-shrink: 0; margin-top: 0.1rem; }
    .dir-page .family-text { font-size: 0.8125rem; color: var(--ink); line-height: 1.4; word-break: break-word; min-width: 0; }

    .dir-page .tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
    .dir-page .tag {
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--db-tag-text);
        background: var(--surface);
        border: 1px solid rgba(26, 54, 148, 0.28);
        border-radius: 6px;
        padding: 0.3rem 0.65rem;
    }

    .dir-page .part-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
    .dir-page .part-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 0.6rem;
        align-items: start;
        padding: 0.55rem 0;
        border-bottom: 1px solid var(--db-border-light);
        min-width: 0;
    }
    .dir-page .part-row:last-child { border-bottom: none; }
    .dir-page .part-icon { color: var(--brand-navy); flex-shrink: 0; margin-top: 0.1rem; }
    .dir-page .part-main { min-width: 0; }
    .dir-page .part-title { font-size: 0.8125rem; font-weight: 600; margin: 0; color: var(--ink); word-break: break-word; }
    .dir-page .part-date { font-size: 0.75rem; color: var(--muted); margin: 0.15rem 0 0; }
    .dir-page .part-badge {
        font-size: 0.6875rem;
        font-weight: 600;
        padding: 0.2rem 0.5rem;
        border-radius: 5px;
        background: rgba(26, 54, 148, 0.08);
        color: var(--brand-navy);
        white-space: nowrap;
        margin-top: 0.05rem;
    }
    .dir-page .part-badge--volunteer { background: var(--warn-soft); color: var(--warn); }
    .dir-page .part-badge--event { background: rgba(26, 54, 148, 0.1); color: var(--brand-navy); }
    .dir-page .part-badge--payment { background: var(--ok-soft); color: var(--ok); }

    .dir-page .timeline-node.node--slate { background: #e2e8f0; border-color: #94a3b8; }

    .dir-page .timeline-card { padding: 1.25rem 1.35rem; }
    .dir-page .timeline-card > h2 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 1rem; color: var(--ink); }
    .dir-page .timeline { list-style: none; margin: 0; padding: 0 0 0 0.25rem; display: flex; flex-direction: column; gap: 0; }
    .dir-page .timeline-item {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        padding-bottom: 1.1rem;
        position: relative;
    }
    .dir-page .timeline-item::before {
        content: '';
        position: absolute;
        left: 8px; top: 1.1rem;
        width: 2px;
        bottom: 0;
        background: var(--db-border-light);
    }
    .dir-page .timeline-item:last-child::before { display: none; }
    .dir-page .timeline-node {
        width: 18px; height: 18px; border-radius: 50%;
        flex-shrink: 0;
        margin-top: 0.1rem;
        position: relative; z-index: 1;
        border: 2px solid var(--surface);
        box-sizing: border-box;
    }
    .dir-page .node--green { background: var(--ok-soft); border-color: var(--ok); }
    .dir-page .node--blue { background: var(--purple-soft); border-color: var(--purple-mid); }
    .dir-page .timeline-body { flex: 1; min-width: 0; }
    .dir-page .timeline-title { font-size: 0.8125rem; font-weight: 700; margin: 0; color: var(--ink); }
    .dir-page .timeline-meta { font-size: 0.75rem; color: var(--muted); margin: 0.2rem 0 0; line-height: 1.4; word-break: break-word; }
    .dir-page .timeline-date { font-size: 0.6875rem; color: var(--ink-soft); margin: 0.35rem 0 0; font-weight: 600; }

    .dir-page .table-card { padding: 1.25rem 1.35rem; }
    .dir-page .table-card > h2 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.85rem; color: var(--ink); }
    .dir-page .table-wrap { overflow-x: auto; margin: 0 -0.25rem; -webkit-overflow-scrolling: touch; }
    .dir-page .table-wrap .data-table { min-width: 720px; }
    .dir-page .group-title { margin: 1rem 0 0.5rem; font-size: 0.9375rem; font-weight: 700; color: var(--purple-deep); }
    .dir-page .group-title:first-child { margin-top: 0; }
    .dir-page .row-spotlight { background: rgba(26, 54, 148, 0.04); }
    .dir-page .empty-note { margin: 0; font-size: 0.9375rem; color: var(--muted); }
    .dir-page .pagination-wrap { margin-top: 0.75rem; overflow-x: auto; }
        /* Member record (admin directory show) — fills detail-layout grid + hero */
        .member-record__hero {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
        }
        .member-record__title {
            margin: 0 0 0.35rem;
            font-size: clamp(1.35rem, 2.5vw, 1.75rem);
            line-height: 1.2;
        }
        .member-record__meta {
            margin: 0;
        }
        .member-record__photo-row {
            display: flex;
            flex-wrap: wrap;
            gap: 1.25rem;
            align-items: flex-end;
            margin-top: 1.25rem;
        }
        .member-record__photo-thumb {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: var(--radius-sm);
            border: 1px solid var(--line-strong);
        }
        .member-record__photo-forms {
            flex: 1;
            min-width: min(100%, 220px);
        }

        @media (min-width: 900px) {
            .member-record-aside {
                position: sticky;
                top: max(0.75rem, env(safe-area-inset-top, 0px));
                align-self: start;
            }
        }

        .member-record-aside .info-grid {
            grid-template-columns: 1fr;
            gap: 0.2rem 0;
            font-size: 0.875rem;
        }
        .member-record-aside .info-grid dt {
            margin-top: 0.55rem;
        }
        .member-record-aside .info-grid dt:first-of-type {
            margin-top: 0;
        }
        .member-record-aside .info-grid dd {
            word-break: break-word;
        }

        .member-record-aside__thumb {
            display: block;
            width: 72px;
            height: 72px;
            object-fit: cover;
            border-radius: var(--radius-sm);
            border: 1px solid var(--line);
            margin-bottom: 0.75rem;
        }

        .member-record-recent {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            font-size: 0.875rem;
        }
        .member-record-recent a {
            color: var(--link);
        }
        .member-record-recent a:hover {
            color: var(--link-hover);
        }
        .req { color: var(--magenta); font-weight: 600; }
        .field.has-error label { color: var(--danger); }
        .field.has-error input,
        .field.has-error select,
        .field.has-error textarea,
        .field.has-error .file-drop {
            border-color: var(--danger) !important;
            box-shadow: 0 0 0 1px var(--danger-soft);
        }
        .interest-fieldset {
            border: 0;
            margin: 0;
            padding: 0;
            min-width: 0;
        }
        .interest-fieldset legend {
            float: left;
            width: 100%;
        }
        .interest-fieldset .interest-grid {
            clear: both;
        }
        .interest-fieldset.has-error legend.h2 {
            color: var(--danger);
        }
        .interest-fieldset.has-error .interest-grid {
            border: 1px solid var(--danger);
            border-radius: var(--radius-sm);
            padding: 0.75rem;
            background: var(--danger-soft);
        }
        .doc-section.has-error .file-drop {
            border-color: var(--danger) !important;
            box-shadow: 0 0 0 1px var(--danger-soft);
        }
        .field-error {
            font-size: 0.8125rem;
            color: var(--danger);
            font-weight: 600;
            margin: 0.35rem 0 0;
        }

        /* ——— Public registration (wireframe-style) ——— */
        .register-page {
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        .register-card {
            border: 1px solid var(--line-strong);
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
        }
        .register-card__header {
            padding: 1.5rem 1.75rem 1.35rem;
            border-bottom: 1px solid var(--line);
            background: var(--surface);
        }
        @media (min-width: 640px) {
            .register-card__header {
                padding: 1.75rem 2.25rem 1.5rem;
            }
        }
        .register-card__title {
            margin: 0 0 0.5rem;
            font-size: clamp(1.35rem, 3vw, 1.85rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--ink);
        }
        .register-card__lead {
            margin: 0;
            font-size: 0.9375rem;
            color: var(--muted);
            line-height: 1.5;
        }
        .register-card__body {
            padding-top: 1.5rem;
        }
        .register-form.stack {
            gap: 0;
        }
        .register-section {
            padding: 1.35rem 0 1.5rem;
            border-bottom: 1px solid var(--line);
        }
        .register-section:last-of-type {
            border-bottom: none;
        }
        .register-section__title {
            float: none;
            width: 100%;
            margin: 0 0 1rem;
            padding: 0 0 0.5rem;
            font-size: 0.9375rem;
            font-weight: 700;
            text-transform: none;
            letter-spacing: 0;
            color: var(--ink);
            border-bottom: 1px solid var(--line);
        }
        .register-section__title--legend {
            display: block;
        }
        .register-page .interest-fieldset legend.register-section__title--legend {
            float: none;
            width: 100%;
        }
        .register-page .interest-fieldset.has-error legend.register-section__title--legend {
            color: var(--danger);
        }
        .register-page .interest-fieldset.has-error .register-interest-grid {
            border: 1px solid var(--danger);
            border-radius: var(--radius-sm);
            padding: 0.75rem;
            background: var(--danger-soft);
        }

        /* Underline-style inputs inside registration */
        .register-page .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
        .register-page .field textarea,
        .register-page .field select {
            border-radius: 0;
            border: none;
            border-bottom: 2px solid var(--line-strong);
            background: transparent;
            padding-left: 0.1rem;
            padding-right: 0.1rem;
        }
        .register-page .field input:focus,
        .register-page .field textarea:focus,
        .register-page .field select:focus {
            box-shadow: none;
            border-bottom-color: var(--purple-deep);
        }

        .register-address-more {
            margin-top: 0.75rem;
            font-size: 0.875rem;
            color: var(--muted);
        }
        .register-address-more summary {
            cursor: pointer;
            font-weight: 600;
            color: var(--link);
        }
        .register-address-more summary:hover {
            color: var(--link-hover);
        }

        /* Membership type cards */
        .register-type-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem;
        }
        @media (min-width: 560px) {
            .register-type-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }
        .register-type-grid--error .register-type-card__face {
            border-color: var(--danger);
        }
        .register-type-card {
            position: relative;
            cursor: pointer;
        }
        .register-type-card input {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }
        .register-type-card__face {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 5.25rem;
            padding: 0.75rem 0.5rem;
            border: 2px solid var(--line);
            border-radius: var(--radius-sm);
            background: var(--surface-2);
            transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        }
        .register-type-card:hover .register-type-card__face {
            border-color: rgba(26, 54, 148, 0.35);
        }
        .register-type-card input:focus-visible + .register-type-card__face {
            outline: 2px solid var(--purple);
            outline-offset: 2px;
        }
        .register-type-card input:checked + .register-type-card__face {
            border-color: var(--purple-deep);
            background: var(--brand-navy-light);
            box-shadow: 0 0 0 1px rgba(26, 54, 148, 0.12);
        }
        .register-type-card__dot {
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
            border: 2px solid var(--muted);
            flex-shrink: 0;
        }
        .register-type-card input:checked + .register-type-card__face .register-type-card__dot {
            border-color: var(--purple-deep);
            box-shadow: inset 0 0 0 4px var(--purple-deep);
        }
        .register-type-card__label {
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--ink-soft);
            text-align: center;
        }
        .register-type-card input:checked + .register-type-card__face .register-type-card__label {
            color: var(--purple-deep);
        }

        /* Family table */
        .register-family-wrap {
            border: 1px dashed var(--line-strong);
            border-radius: var(--radius-sm);
            padding: 0.75rem;
            background: var(--cream);
        }
        .register-family-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.8125rem;
        }
        .register-family-table th {
            text-align: left;
            font-weight: 700;
            color: var(--muted);
            padding: 0.35rem 0.35rem 0.5rem;
            border-bottom: 1px solid var(--line);
        }
        .register-family-table td {
            padding: 0.35rem;
            vertical-align: middle;
        }
        .register-family-input {
            width: 100%;
            min-width: 0;
            font-size: 0.8125rem;
            padding: 0.4rem 0.35rem;
            border-radius: 6px;
            border: 1px solid var(--line);
            background: var(--surface);
        }
        .register-family-input--age {
            max-width: 4rem;
        }
        .register-add-family {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: center;
            margin-top: 0.75rem;
            padding: 0.65rem 1rem;
            border: 2px dashed var(--line-strong);
            border-radius: var(--radius-sm);
            background: var(--surface);
            color: var(--purple-deep);
            font: inherit;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .register-add-family:hover {
            border-color: var(--purple);
            background: var(--surface-2);
        }

        .register-doc-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        @media (min-width: 560px) {
            .register-doc-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        .register-file-drop.file-drop {
            min-height: 9rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .register-interest-grid.interest-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 0.65rem;
        }
        .register-interest-chip.interest-chip span {
            border-radius: var(--radius-sm);
            width: 100%;
            min-height: 3rem;
            justify-content: flex-start;
            padding: 0.55rem 0.75rem;
        }

        /* Stepper */
        .register-stepper {
            list-style: none;
            margin: 0 0 1rem;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.5rem 1rem;
        }
        .register-stepper__step {
            flex: 1;
            min-width: 5.5rem;
            max-width: 10rem;
            text-align: center;
            color: var(--muted);
            font-size: 0.75rem;
            font-weight: 600;
        }
        .register-stepper__step.is-active {
            color: var(--purple-deep);
        }
        .register-stepper__num {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            margin: 0 auto 0.35rem;
            border-radius: 50%;
            border: 2px solid var(--line-strong);
            background: var(--surface);
            font-size: 0.8125rem;
            font-weight: 700;
        }
        .register-stepper__step.is-active .register-stepper__num {
            border-color: var(--purple-deep);
            background: var(--brand-navy-light);
            color: var(--purple-deep);
        }
        .register-stepper__label {
            display: block;
            line-height: 1.3;
        }
        .register-workflow-note {
            padding: 0.85rem 1rem;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(26, 54, 148, 0.2);
            background: var(--brand-navy-light);
            color: var(--ink-soft);
            font-size: 0.875rem;
            line-height: 1.5;
        }

        .register-form__footer {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding-top: 1.25rem;
            margin-top: 0.5rem;
        }
        .register-form__footer-right {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            align-items: center;
            margin-left: auto;
        }
        @media (max-width: 520px) {
            .register-form__footer {
                flex-direction: column;
                align-items: stretch;
            }
            .register-form__footer-right {
                margin-left: 0;
                justify-content: stretch;
            }
            .register-form__footer-right .btn {
                flex: 1;
                justify-content: center;
            }
        }
        .ticket-qr svg {
            display: block;
            max-width: 280px;
            width: 100%;
            height: auto;
            margin: 0 auto;
        }
        .qr-scan {
            margin-top: 1rem;
            border: 1px solid var(--line);
            border-radius: var(--radius);
            background: var(--surface-2);
            padding: 1rem;
        }
        .qr-scan__row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }
        .qr-scan__viewer {
            width: 100%;
            max-width: 520px;
            margin: 0 auto;
            border-radius: 12px;
            overflow: hidden;
            background: #000;
        }
        .qr-scan__viewer > div { width: 100% !important; }
        .qr-scan__hint {
            margin: 0.75rem 0 0;
            font-size: 0.8125rem;
            color: var(--muted);
        }
        .qr-scan__error {
            margin: 0.75rem 0 0;
            font-size: 0.8125rem;
            color: var(--danger);
            font-weight: 600;
        }
        code.qr-inline {
            font-size: 0.85em;
            padding: 0.15rem 0.35rem;
            border-radius: 8px;
            background: rgba(60, 11, 65, 0.06);
            border: 1px solid var(--line);
        }
    .event-page { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

    .event-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }

    .event-hero {
        padding: 2rem 2rem 1.75rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .event-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: #1d6fb8;
        background: #e8f2fc;
        padding: 4px 10px;
        border-radius: 6px;
        margin-bottom: 1rem;
    }

    .event-title {
        font-size: 26px;
        font-weight: 600;
        color: #111827;
        line-height: 1.25;
        margin: 0 0 1.25rem;
    }

    .event-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .event-meta-item {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 14px;
        color: #6b7280;
    }

    .event-meta-icon {
        width: 16px;
        height: 16px;
        opacity: .55;
        flex-shrink: 0;
    }

    .event-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 1.25rem 2rem;
        background: #f9fafb;
        border-bottom: 1px solid #f0f0f0;
    }

    .stat-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: .875rem 1rem;
    }

    .stat-label {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .05em;
        /* text-transform: uppercase; */
        color: #9ca3af;
        margin-bottom: 5px;
    }

    .stat-value {
        font-size: 20px;
        font-weight: 600;
        color: #111827;
        line-height: 1;
    }

    .stat-sub {
        font-size: 12px;
        color: #9ca3af;
        margin-top: 5px;
    }

    .capacity-bar {
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
        margin-top: 8px;
        overflow: hidden;
    }

    .event-body { padding: 2rem; }

    .event-description {
        font-size: 15px;
        color: #4b5563;
        line-height: 1.75;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .form-section-label {
        font-size: 18px;
        font-weight: 600;
        color: #111827;
        margin-bottom: 1.5rem;
    }

    .alert {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 14px;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .alert-success {
        background: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .alert-error {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

    .alert ul { margin: 0; padding-left: 1.2rem; }
    .alert li + li { margin-top: 4px; }

    .event-form { max-width: 600px; }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .form-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 1.25rem;
    }

    .form-row .form-field { margin-bottom: 0; }

    .form-field label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

    .form-field label .required { color: #dc2626; margin-left: 2px; }

    .form-field label .optional {
        font-weight: 400;
        color: #9ca3af;
        font-size: 12px;
        margin-left: 4px;
    }

    .form-field input {
        height: 40px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        padding: 0 12px;
        font-size: 14px;
        color: #111827;
        background: #fff;
        outline: none;
        transition: border-color .15s, box-shadow .15s;
        width: 100%;
        font-family: inherit;
    }

    .form-field input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    }

    .field-hint {
        font-size: 12px;
        color: #9ca3af;
        margin: 0;
    }

    .tickets-field { max-width: 200px; }

    .closed-notice {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 14px;
        color: #6b7280;
        margin-top: 1rem;
    }

    .form-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-top: 1.5rem;
        margin-top: .5rem;
        border-top: 1px solid #f0f0f0;
    }

    .btn-primary {
        height: 40px;
        padding: 0 20px;
        background: #111827;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: inherit;
        transition: background .15s;
        text-decoration: none;
    }

    .btn-primary:hover { background: #1f2937; }

    .btn-ghost {
        height: 40px;
        padding: 0 16px;
        background: transparent;
        color: #6b7280;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-family: inherit;
        transition: background .15s, color .15s;
        text-decoration: none;
    }

    .btn-ghost:hover { background: #f9fafb; color: #111827; }

    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 1.25rem;
    }

    .breadcrumb a { color: #6b7280; text-decoration: none; }
    .breadcrumb a:hover { color: #111827; }
    .breadcrumb-sep { color: #d1d5db; }

    @media (max-width: 540px) {
        .form-row { grid-template-columns: 1fr; }
        .event-hero, .event-body { padding: 1.25rem; }
        .event-stats { padding: 1rem 1.25rem; }
        .tickets-field { max-width: 100%; }
    }
        /* Admin — Events hub (index) */
        .events-hub {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }
        .events-hub__intro {
            margin: 0 0 0.25rem;
        }
        .events-hub__intro h1 {
            margin: 0 0 0.35rem;
            font-size: clamp(1.35rem, 2.5vw, 1.75rem);
            font-weight: 700;
            color: var(--ink);
        }
        .events-hub__intro p {
            margin: 0;
            max-width: 52rem;
            color: var(--muted);
            font-size: 0.9375rem;
            line-height: 1.5;
        }

        .events-hub-stats {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem;
        }
        @media (min-width: 800px) {
            .events-hub-stats {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }
        .events-hub-stat {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            padding: 1rem 1.1rem;
            display: flex;
            gap: 0.85rem;
            align-items: flex-start;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .events-hub-stat__icon {
            flex-shrink: 0;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 10px;
            background: var(--brand-navy-light);
            color: var(--purple-deep);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .events-hub-stat__icon svg {
            width: 1.25rem;
            height: 1.25rem;
        }
        .events-hub-stat__value {
            margin: 0;
            font-size: 1.65rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--ink);
            line-height: 1.1;
        }
        .events-hub-stat__label {
            margin: 0.15rem 0 0;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--muted);
        }

        .events-hub-card {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--radius);
            padding: 1.25rem 1.35rem 1.35rem;
            box-shadow: var(--shadow);
        }
        @media (min-width: 640px) {
            .events-hub-card {
                padding: 1.35rem 1.5rem 1.5rem;
            }
        }
        .events-hub-card__head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 1.1rem;
            padding-bottom: 0.85rem;
            border-bottom: 1px solid var(--line);
        }
        .events-hub-card__title {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--ink);
        }
        .events-hub-card__title-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .events-hub-card__title-icon {
            display: flex;
            width: 1.75rem;
            height: 1.75rem;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: var(--brand-navy-light);
            color: var(--purple-deep);
        }
        .events-hub-card__title-icon svg {
            width: 1rem;
            height: 1rem;
        }

        .events-hub-create .row {
            margin-bottom: 0;
        }
        .events-hub-ticket-toggle {
            display: inline-flex;
            border-radius: 999px;
            border: 1px solid var(--line-strong);
            overflow: hidden;
            background: var(--surface-2);
        }
        .events-hub-ticket-toggle label {
            margin: 0;
            cursor: pointer;
        }
        .events-hub-ticket-toggle input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }
        .events-hub-ticket-toggle span {
            display: block;
            padding: 0.45rem 1rem;
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--muted);
            transition: background 0.15s ease, color 0.15s ease;
        }
        .events-hub-ticket-toggle input:checked + span {
            background: var(--surface);
            color: var(--purple-deep);
            box-shadow: 0 0 0 1px var(--line);
        }
        .events-hub-create-submit {
            width: 100%;
            margin-top: 0.5rem;
            justify-content: center;
            padding: 0.75rem 1.25rem;
            border-radius: var(--radius-sm);
        }

        .events-hub-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .events-hub-list__item {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 0.65rem 1rem;
            align-items: start;
            padding: 1rem 0;
            border-bottom: 1px solid var(--line);
        }
        .events-hub-list__item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        .events-hub-list__item:first-child {
            padding-top: 0;
        }
        .events-hub-list__main {
            min-width: 0;
        }
        .events-hub-list__title-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.45rem 0.65rem;
            margin-bottom: 0.35rem;
        }
        .events-hub-list__title {
            margin: 0;
            font-size: 0.9375rem;
            font-weight: 700;
            color: var(--ink);
        }
        .events-hub-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.2rem 0.5rem;
            border-radius: 999px;
            font-size: 0.6875rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .events-hub-badge--free {
            background: rgba(21, 128, 61, 0.12);
            color: var(--ok);
        }
        .events-hub-badge--paid {
            background: var(--brand-navy-light);
            color: var(--purple-deep);
        }
        .events-hub-badge--members {
            background: var(--warn-soft);
            color: var(--warn);
        }
        .events-hub-list__meta {
            margin: 0;
            font-size: 0.8125rem;
            color: var(--muted);
        }
        .events-hub-progress {
            height: 6px;
            border-radius: 999px;
            background: var(--surface-2);
            overflow: hidden;
            margin-top: 0.5rem;
            max-width: 14rem;
        }
        .events-hub-progress__bar {
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--purple-mid), var(--purple-deep));
            transition: width 0.25s ease;
        }
        .events-hub-progress__bar--indeterminate {
            width: 36%;
            margin-left: 0;
            opacity: 0.55;
            animation: events-hub-pulse 1.1s ease-in-out infinite alternate;
        }
        @keyframes events-hub-pulse {
            from { opacity: 0.35; }
            to { opacity: 0.85; }
        }
        .events-hub-list__actions {
            align-self: center;
        }
        .events-hub-list__actions .btn {
            padding: 0.45rem 0.85rem;
            font-size: 0.8125rem;
        }

        .events-hub-bottom {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.25rem;
        }
        @media (min-width: 900px) {
            .events-hub-bottom {
                grid-template-columns: 1fr 1fr;
            }
        }
        .events-hub-qr-placeholder {
            min-height: 10rem;
            border: 2px dashed var(--line-strong);
            border-radius: var(--radius-sm);
            background: var(--cream);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--muted);
            font-size: 0.875rem;
            font-weight: 600;
            text-align: center;
            padding: 1rem;
        }
        .events-hub-qr-placeholder svg {
            width: 3rem;
            height: 3rem;
            margin-bottom: 0.5rem;
            opacity: 0.45;
        }

        .events-hub-attendance-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }
        .events-hub-attendance-item {
            padding-bottom: 0.85rem;
            border-bottom: 1px solid var(--line);
        }
        .events-hub-attendance-item:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }
        .events-hub-attendance-item__top {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 0.35rem 0.75rem;
            margin-bottom: 0.35rem;
        }
        .events-hub-attendance-item__name {
            margin: 0;
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--ink);
        }
        .events-hub-attendance-item__when {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--ok);
        }
        .events-hub-attendance-item__when--muted {
            color: var(--muted);
        }
        .events-hub-attendance-item__frac {
            font-size: 0.8125rem;
            color: var(--muted);
            font-weight: 600;
        }
        .events-hub-attendance-item__pct {
            margin-top: 0.35rem;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--ok);
        }

        .events-hub-details {
            margin-top: 0.5rem;
        }
        .events-hub-details summary {
            cursor: pointer;
            font-weight: 600;
            color: var(--link);
            font-size: 0.875rem;
            padding: 0.35rem 0;
        }
        .events-hub-details summary:hover {
            color: var(--link-hover);
        }
        .events-hub-details[open] summary {
            margin-bottom: 0.75rem;
        }
        /* ——— Member portal: profile card on dashboard ——— */
        .member-profile-card {
            padding: 1.25rem 1.35rem 1.1rem;
        }

        .member-profile-card__head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem 1.25rem;
            margin-bottom: 1.25rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid var(--line);
        }

        .member-profile-card__identity {
            display: flex;
            gap: 1rem;
            align-items: flex-start;
            min-width: 0;
        }

        .member-profile-card__avatar {
            flex-shrink: 0;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--surface-2);
            border: 1px solid var(--line-strong);
            display: grid;
            place-items: center;
            color: var(--muted);
            overflow: hidden;
        }

        .member-profile-card__avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .member-profile-card__name {
            margin: 0 0 0.25rem;
            font-size: 1.35rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--purple-deep);
        }

        .member-profile-card__id {
            margin: 0 0 0.6rem;
            font-size: 0.875rem;
        }

        .member-profile-card__badges {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        .member-profile-card__stats {
            margin: 0;
        }

        .member-info-notice {
            margin-top: 1rem;
            margin-bottom: 0;
        }

        .member-address {
            white-space: pre-line;
        }

        .member-days-ok {
            color: var(--ok);
        }

        .member-days-exp {
            color: var(--danger);
        }
        .welcome-hero-inner {
            padding: 1.75rem 1.75rem 2rem;
        }
        @media (min-width: 640px) {
            .welcome-hero-inner {
                padding: 2rem 2.25rem 2.25rem;
            }
        }
        .welcome-hero-inner h1 {
            margin-bottom: 0.65rem;
        }
        .welcome-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            align-items: center;
            margin-top: 1.25rem;
        }
        .welcome-grid {
            display: grid;
            gap: 1rem;
            grid-template-columns: 1fr;
        }
        @media (min-width: 720px) {
            .welcome-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        .welcome-tile h3 {
            font-family: var(--font-display);
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--purple-deep);
            margin: 0 0 0.5rem;
        }
        .welcome-tile p {
            margin: 0;
            font-size: 0.9375rem;
            color: var(--ink-soft);
            line-height: 1.5;
        }
        .welcome-tile .tile-link {
            margin-top: 0.85rem;
            display: inline-block;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--magenta);
            text-decoration: none;
        }
        .welcome-tile .tile-link:hover {
            text-decoration: underline;
        }
        .welcome-tile-note {
            margin-top: 0.85rem;
            display: inline-block;
        }
        .welcome-footnote {
            margin-top: 1.75rem;
            text-align: center;
        }
/* Admin — Reporting & Analytics */
.shell-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;

    overflow-y: auto;
    max-height: calc(100vh - 80px);
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.25rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.25rem;
}

/* ── Card ────────────────────────────────── */
.card {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin: 0;
}

/* ── KPI Cards ───────────────────────────── */
.kpi-card {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    position: relative;
}

.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.kpi-icon--blue   { background: #E6F1FB; color: #185FA5; }
.kpi-icon--green  { background: #EAF3DE; color: #3B6D11; }
.kpi-icon--amber  { background: #FAEEDA; color: #854F0B; }
.kpi-icon--purple { background: #EEEDFE; color: #534AB7; }

.kpi-trend { position: absolute; top: 0.9rem; right: 0.9rem; font-size: 14px; }
.kpi-trend--up { color: #1D9E75; }

.kpi-value { font-size: 22px; font-weight: 500; color: #111; line-height: 1.1; }
.kpi-label { font-size: 12px; color: #666; margin-top: 2px; }
.kpi-delta { font-size: 11px; color: #1D9E75; margin-top: 4px; font-weight: 500; }

/* ── Growth Chart ────────────────────────── */
.chart-wrap { position: relative; width: 100%; height: 180px; }

.member-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 1rem;
}

.mtype-card {
    background: #f7f7f5;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}

.mtype-label {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mtype-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.mtype-count { font-size: 18px; font-weight: 500; color: #111; margin-top: 2px; }
.mtype-pct   { font-size: 11px; color: #888; }

/* ── Progress Bars ───────────────────────── */
.progress-bar {
    background: #f0f0ee;
    border-radius: 4px;
    height: 8px;
    width: 100%;
}
.progress-bar--thin { height: 6px; }
.progress-bar__fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #378ADD, #1D9E75);
}

/* ── Renewal Trends ──────────────────────── */
.renewal-rows { display: flex; flex-direction: column; gap: 10px; }

.renewal-row__head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 3px;
}
.renewal-row__quarter { color: #666; }
.renewal-row__pct     { font-weight: 500; color: #185FA5; }
.renewal-row__sub     { font-size: 10px; color: #aaa; margin-top: 2px; }

/* ── Volunteer Activity ──────────────────── */
.vol-rows { display: flex; flex-direction: column; gap: 10px; }

.vol-row__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vol-row__name { font-size: 13px; color: #111; font-weight: 500; }
.vol-row__hrs  { font-size: 13px; font-weight: 500; color: #185FA5; }
.vol-row__sub  { font-size: 11px; color: #888; margin: 2px 0 4px; }

/* ── Data Table ──────────────────────────── */
.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}

.data-table th {
    text-align: left;
    padding: 0 8px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 0.5px solid rgba(0,0,0,0.07);
    color: #111;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafaf8; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}
.badge--success { background: #EAF3DE; color: #3B6D11; }

/* ── Export Reports ──────────────────────── */
.export-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.export-card {
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.export-card__icon { color: #888; margin-bottom: 6px; }
.export-card__label { font-size: 13px; font-weight: 500; color: #111; }
.export-card__sub { font-size: 11px; color: #888; margin-top: 2px; margin-bottom: 10px; }

/* ── Buttons ─────────────────────────────── */
.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    border: 0.5px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 4px 10px;
    background: #f7f7f5;
    cursor: pointer;
    text-decoration: none;
}
.btn-export:hover { background: #efefed; }
.btn-export--block { width: 100%; justify-content: center; }

/* ── Misc ────────────────────────────────── */
.muted { color: #888; }
.cell-strong { font-weight: 500; color: #185FA5; }
.empty-state { color: #aaa; font-size: 13px; text-align: center; padding: 1rem 0; margin: 0; }
.back-link { display: inline-block; font-size: 13px; color: #555; text-decoration: none; margin-bottom: 1rem; }
.back-link:hover { color: #111; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
    .kpi-grid     { grid-template-columns: repeat(2, 1fr); }
    .two-col      { grid-template-columns: 1fr; }
    .member-types { grid-template-columns: repeat(3, 1fr); }
    .export-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .kpi-grid     { grid-template-columns: 1fr 1fr; }
    .member-types { grid-template-columns: repeat(2, 1fr); }
    .export-grid  { grid-template-columns: 1fr 1fr; }
}
/* ── Admin: Communications & Notifications ──────────────────────────── *
/* ── Layout ──────────────────────────────── */
.shell-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.page-heading { margin-bottom: 1.5rem; }
.page-heading h1 { font-size: 22px; font-weight: 600; color: #111; margin: 0 0 4px; }
.page-heading p  { font-size: 13px; color: #888; margin: 0; }

/* ── KPI Strip ───────────────────────────── */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.25rem;
}

.kpi-tile {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}

.kpi-tile__icon {
    margin-bottom: 10px;
    font-size: 22px;
}
.kpi-tile__icon--blue   { color: #185FA5; }
.kpi-tile__icon--green  { color: #1D9E75; }
.kpi-tile__icon--amber  { color: #854F0B; }
.kpi-tile__icon--purple { color: #534AB7; }

.kpi-tile__val   { font-size: 26px; font-weight: 600; color: #111; line-height: 1.1; }
.kpi-tile__label { font-size: 12px; color: #888; margin-top: 3px; }

/* ── Two-Col Mid Section ─────────────────── */
.mid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.25rem;
}

/* ── Card ────────────────────────────────── */
.card {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0 0 1.1rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ── Compose Form ────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    border: 1px dashed rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #111;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    resize: none;
}
.form-control:focus { border-color: #378ADD; border-style: solid; }

.recipient-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    border: 1px dashed rgba(0,0,0,0.2);
    border-radius: 8px;
    min-height: 42px;
}

.chip {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f0f0ee;
    color: #444;
    cursor: pointer;
    border: 0.5px solid rgba(0,0,0,0.1);
}
.chip.active { background: #E6F1FB; color: #185FA5; border-color: #b5d4f4; }

.msg-type-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.msg-type-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px dashed rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 13px;
    color: #444;
    background: #fff;
    cursor: pointer;
}
.msg-type-btn.active {
    border: 1.5px solid #378ADD;
    border-style: solid;
    color: #185FA5;
    background: #f0f7ff;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.25rem;
}

.btn {
    flex: 1;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 0.5px solid rgba(0,0,0,0.15);
    text-align: center;
}
.btn-secondary { background: #fff; color: #333; }
.btn-secondary:hover { background: #f5f5f3; }
.btn-primary { background: #185FA5; color: #fff; border-color: #185FA5; }
.btn-primary:hover { background: #134e8a; }

/* ── Recent Communications ───────────────── */
.comm-list { display: flex; flex-direction: column; gap: 10px; }

.comm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.07);
}
.comm-item:last-child { border-bottom: none; padding-bottom: 0; }

.comm-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 9px;
}
.comm-icon--email { background: #E6F1FB; color: #185FA5; }
.comm-icon--sms   { background: #EAF3DE; color: #1D9E75; }

.comm-body { flex: 1; min-width: 0; }
.comm-body__title { font-size: 13px; font-weight: 500; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comm-body__meta  { font-size: 11px; color: #aaa; margin-top: 2px; }

.badge-sent {
    font-size: 11px;
    font-weight: 500;
    background: #EAF3DE;
    color: #1D9E75;
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}

/* ── Member Groups ───────────────────────── */
.groups-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.groups-header h2 { font-size: 15px; font-weight: 600; color: #111; margin: 0; }

.btn-outline {
    font-size: 12px;
    padding: 5px 14px;
    border: 0.5px solid rgba(0,0,0,0.18);
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
.btn-outline:hover { background: #f5f5f3; }

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.group-card {
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}

.group-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.group-icon--blue   { background: #185FA5; color: #fff; }
.group-icon--purple { background: #534AB7; color: #fff; }
.group-icon--teal   { background: #0F6E56; color: #fff; }
.group-icon--amber  { background: #854F0B; color: #fff; }
.group-icon--red    { background: #A32D2D; color: #fff; }
.group-icon--pink   { background: #993556; color: #fff; }

.group-card__name    { font-size: 13px; font-weight: 600; color: #111; margin: 0; }
.group-card__members { font-size: 12px; color: #888; }

/* ── Automated Reminders ─────────────────── */
.reminder-list { display: flex; flex-direction: column; }

.reminder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.07);
    gap: 12px;
}
.reminder-row:last-child { border-bottom: none; }

.reminder-body {}
.reminder-body__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.reminder-body__title { font-size: 13px; font-weight: 500; color: #111; }
.reminder-body__schedule { font-size: 11px; color: #aaa; }

.badge-active {
    font-size: 11px;
    font-weight: 500;
    background: #EAF3DE;
    color: #1D9E75;
    border-radius: 20px;
    padding: 2px 9px;
}
.badge-inactive {
    font-size: 11px;
    font-weight: 500;
    background: #f0f0ee;
    color: #888;
    border-radius: 20px;
    padding: 2px 9px;
}

.btn-configure {
    font-size: 12px;
    color: #555;
    border: 0.5px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 5px 14px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-configure:hover { background: #f5f5f3; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 860px) {
    .kpi-strip  { grid-template-columns: repeat(2, 1fr); }
    .mid-grid   { grid-template-columns: 1fr; }
    .groups-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .kpi-strip   { grid-template-columns: 1fr 1fr; }
    .groups-grid { grid-template-columns: 1fr 1fr; }
}


/* for membermanagement */
.membermanagement-hub-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (min-width: 800px) {
    .membermanagement-hub-stats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
.membermanagement-hub-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stat-tile {
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;   /* ← vertical stacking */
    align-items: flex-start;
    gap: 0;
}

.stat-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;     /* ← space between badge and label */
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
}

.stat-sub {
    font-size: 0.82rem;
    color: #9ca3af;
    margin: 0;
}
.stat-badge.purple{
    color: #fff;
    background: #6d28d9;
}

.stat-badge.blue{
    color: #fff;
    background: #1d4ed8;
}
.stat-badge.teal{
    color: #fff;
    background: #059669
}
.stat-badge.orange{
    color: #fff;
    background: #d97706
}

.stat-badge.red{
    color: #fff;
    background: #b91c1c
}

.member-card {
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 14px;
    overflow: hidden;
}

.members-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.members-table thead th {
    padding: 12px 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1.5px dashed #e5e7eb;
    background: transparent;
    white-space: nowrap;
}

.members-table tbody tr {
    border-bottom: 1.5px dashed #e5e7eb;
    transition: background 0.1s;
}
.members-table tbody tr:last-child { border-bottom: none; }
.members-table tbody tr:hover { background: #f9fafb; }
.members-table td { padding: 8px 20px; color: #374151; vertical-align: middle; }

.member-id   { font-size: 0.9rem; font-weight: 600; color: #111827; }
.member-name { font-weight: 700; color: #111827; font-size: 0.95rem; }
.member-joined { font-size: 0.78rem; color: #9ca3af; margin-top: 2px; }

.badge-type {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 500;
}
.badge-active {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 600;
}
.badge-expiring {
    display: inline-block;
    background: #fef9c3;
    color: #ca8a04;
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 600;
}
.badge-inactive {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 600;
}

.btn-chevron {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.btn-chevron:hover { border-color: #3b82f6; color: #3b82f6; }

.actions-section {
    margin: 1% auto;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.action-tile {
    border: 1.5px dashed #d1d5db;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    height: 100%;
}
.action-tile:hover { border-color: #3b82f6; background: #f0f7ff; }

.action-icon {
    font-size: 1.4rem;
    color: #3b82f6;
    margin-bottom: 10px;
}
.action-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}
.action-desc {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
}
.transfer-section {
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.transfer-desc {
    font-size: 0.85rem;
    color: #6b7280;
    background: #f9fafb;
    border: 1.5px dashed #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 1.25rem;
}

.transfer-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.transfer-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    background: #fff;
    color: #111827;
    height: 42px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.transfer-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.btn-transfer {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}
.btn-transfer:hover { background: #2563eb; }


.edit-card {
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 14px;
    padding: 1.5rem;
}

.section-divider {
    border: none;
    border-top: 1.5px dashed #e5e7eb;
    margin: 1.5rem 0;
}

.form-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.edit-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    display: block;
}

.edit-input,
.edit-select {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    background: #fff;
    color: #111827;
    height: 42px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}
.edit-input:focus,
.edit-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.edit-input.is-invalid,
.edit-select.is-invalid {
    border-color: #ef4444;
}

.select-wrap {
    position: relative;
}
.select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #9ca3af;
    pointer-events: none;
}

.member-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1.5rem;
}
.member-id-badge i { color: #9ca3af; }

.btn-save {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-save:hover { background: #2563eb; }

.btn-cancel {
    background: #fff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    display: inline-block;
}
.btn-cancel:hover { background: #f9fafb; color: #111827; }

.status-active   { color: #16a34a; background: #dcfce7; border-radius: 6px; padding: 2px 10px; font-size: 0.78rem; font-weight: 600; }
.status-expiring { color: #ca8a04; background: #fef9c3; border-radius: 6px; padding: 2px 10px; font-size: 0.78rem; font-weight: 600; }
.status-inactive { color: #dc2626; background: #fee2e2; border-radius: 6px; padding: 2px 10px; font-size: 0.78rem; font-weight: 600; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.15s;
}
.back-link:hover { color: #111827; }


.has-submenu .submenu{
    display:none;
}

.has-submenu:hover .submenu{
    display:block;
}

.submenu .nav-link.active{
    font-weight:600;
    color:#198754;
}