:root {
    --bg: #e7f1f8;
    --bg-soft: #f3f8fc;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --surface-blue: linear-gradient(180deg, rgba(235, 246, 255, 0.96), rgba(221, 239, 252, 0.94));
    --surface-dark: linear-gradient(180deg, #17324c 0%, #10253a 100%);
    --line: rgba(132, 168, 194, 0.34);
    --line-strong: rgba(106, 150, 182, 0.48);
    --text: #12283d;
    --muted: #5c7489;
    --muted-strong: #405669;
    --text-inverse: #edf7ff;
    --blue: #1684d7;
    --blue-strong: #0e5f9b;
    --blue-soft: #dceffd;
    --cyan: #52c8ff;
    --green: #0c8a66;
    --red: #be5a71;
    --shadow: 0 24px 60px rgba(20, 50, 74, 0.10);
    --shadow-deep: 0 28px 80px rgba(15, 41, 62, 0.18);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font: 500 16px/1.7 "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(82, 200, 255, 0.18), transparent 28%),
        radial-gradient(circle at right 10% top 12%, rgba(22, 132, 215, 0.14), transparent 26%),
        linear-gradient(180deg, #f3f8fc 0%, #e7f1f8 100%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(22, 132, 215, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 132, 215, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
h1, h2, h3, strong { font-family: "Sora", "Manrope", sans-serif; }
h1, h2, h3, p { margin-top: 0; }
code {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(17, 40, 61, 0.07);
    font: 600 0.88rem/1.4 Consolas, monospace;
}

.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.site-theme, .setup-theme, .admin-theme { position: relative; }
.admin-theme {
    font-size: 14.5px;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--text-inverse);
    background: #0f1419;
}
.admin-theme::before { display: none; }
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
    transition: background 0.22s ease, box-shadow 0.22s ease, padding 0.22s ease;
}
.site-nav.is-scrolled {
    padding: 0.65rem 0;
    background: rgba(231, 241, 248, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 30px rgba(20, 50, 74, 0.08);
}
.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(106, 150, 182, 0.28);
}
.brandmark, .user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brandmark strong, .brandmark small { display: block; }
.brandmark small { color: var(--muted); }
.brandmark-mark, .sidebar-brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #7ed9ff, #1684d7);
    box-shadow: 0 18px 34px rgba(22, 132, 215, 0.24);
}
.admin-theme .sidebar-brand-mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    background: #3b82f6;
    box-shadow: none;
}
.nav-links, .nav-actions, .hero-actions, .page-actions, .form-actions, .page-pills, .hero-signals, .mini-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.nav-links a {
    color: var(--muted);
    font-weight: 700;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--text); border-color: rgba(22, 132, 215, 0.45); }
.nav-action-link {
    color: var(--blue-strong);
    font-weight: 800;
    padding: 0.35rem 0.15rem;
}
.nav-action-link:hover { color: var(--text); }
.user-chip {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(106, 150, 182, 0.22);
    box-shadow: 0 10px 24px rgba(20, 50, 74, 0.06);
    font-weight: 700;
}
.user-chip-avatar, .sidebar-avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    object-fit: cover;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.82rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-large { min-height: 3.3rem; padding-inline: 1.45rem; }
.btn-compact { min-height: 2.35rem; padding: 0.5rem 0.85rem; font-size: 0.8rem; }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #1684d7, #0e5f9b);
    box-shadow: 0 18px 34px rgba(22, 132, 215, 0.22);
}
.btn-secondary, .btn-ghost {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(106, 150, 182, 0.34);
    color: var(--text);
}
.btn-ghost { background: rgba(230, 241, 250, 0.64); }

.eyebrow, .panel-kicker, .page-badge, .panel-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--blue-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow::before, .page-badge::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #88deff, #1684d7);
}
.page-badge::before { width: 0.6rem; height: 0.6rem; }
.panel-label { letter-spacing: 0.08em; }

.hero-section, .section-shell { padding: 1.6rem 0 4rem; }
.hero-layout, .structure-grid, .content-grid, .stats-grid, .section-split, .setup-layout, .member-hero, .status-layout, .action-grid {
    display: grid;
    gap: 1.35rem;
}
.hero-layout { grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr); align-items: start; min-height: calc(100vh - 126px); padding-top: 1.1rem; }
.hero-copy { padding-top: 2.1rem; }
.hero-title, .member-copy h1, .setup-side h1, .page-title {
    margin: 1rem 0 1.1rem;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    max-width: 11ch;
}
.hero-title span { display: block; color: var(--blue-strong); }
.hero-text, .hero-text p, .section-head p, .section-head div, .stack-row span, .module-row p, .blueprint-row p, .status-row span, .page-subtitle, .sidebar-copy, .panel p, .empty-state {
    color: var(--muted);
}
.hero-text { max-width: 62ch; font-size: 1.06rem; margin-bottom: 1.6rem; }
.hero-text p { margin-bottom: 0.6rem; }
.hero-text p:last-child { margin-bottom: 0; }
.section-text { max-width: 52rem; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.section-text p { margin-bottom: 0.85rem; }
.section-text p:last-child { margin-bottom: 0; }
.section-head + .section-text { margin-top: -0.5rem; }
.text-box { padding: 2rem; }
.text-box h2 { margin: 0.6rem 0 0.9rem; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.12; }
.text-box .section-text { margin-top: 0; }
.panel-dark .section-text { color: rgba(237, 247, 255, 0.74); }
.signal-pill, .page-pill, .panel-tag, .mini-button {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(22, 132, 215, 0.10);
    color: var(--blue-strong);
    font-weight: 600;
    font-size: 0.75rem;
}
.admin-theme .page-pill {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.15);
}
.mini-button.is-ghost { background: rgba(255, 255, 255, 0.64); }

.panel, .hero-panel, .member-card, .setup-side, .setup-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.panel, .member-card, .setup-panel { padding: 1.45rem; }
.hero-panel, .setup-side {
    padding: 1.6rem;
    background: var(--surface-dark);
    color: var(--text-inverse);
    border-color: rgba(139, 181, 210, 0.18);
    box-shadow: var(--shadow-deep);
}
.hero-panel p, .hero-panel .blueprint-row p, .setup-side p, .setup-side .stack-row span { color: rgba(237, 247, 255, 0.74); }
.hero-panel .panel-kicker, .setup-side .eyebrow, .panel-dark .panel-kicker { color: rgba(237, 247, 255, 0.72); }
.hero-panel .eyebrow::before, .setup-side .eyebrow::before { background: linear-gradient(135deg, #9fe5ff, #52c8ff); }
.hero-panel h2, .member-card h2, .panel-head h2, .setup-panel h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    line-height: 1.1;
}
.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.panel-dark {
    background: var(--surface-dark);
    color: var(--text-inverse);
    border-color: rgba(139, 181, 210, 0.18);
}
.panel-dark p, .panel-dark .stack-row span, .panel-dark .panel-label { color: rgba(237, 247, 255, 0.72); }
.panel-highlight { background: var(--surface-blue); }
.panel-icon, .feature-badge, .action-tile-icon, .sidebar-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #82dbff, #1684d7);
    color: #fff;
}
.stack-list, .module-list, .status-list, .blueprint-list { display: grid; gap: 0.95rem; }
.stack-row, .module-row, .blueprint-row, .status-row {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(106, 150, 182, 0.18);
    background: rgba(255, 255, 255, 0.44);
}
.panel-dark .stack-row, .hero-panel .blueprint-row, .setup-side .stack-row {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 181, 210, 0.16);
}
.blueprint-row { grid-template-columns: auto 1fr; gap: 0.95rem; align-items: start; }
.blueprint-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(22, 132, 215, 0.12);
    color: var(--blue-strong);
    font: 800 0.82rem/1 "Sora", sans-serif;
}
.hero-panel .blueprint-step, .panel-dark .blueprint-step, .setup-side .blueprint-step { background: rgba(82, 200, 255, 0.12); color: #9fe5ff; }

.section-head { max-width: 50rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0.8rem 0 0.9rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; max-width: 15ch; }
.section-head-narrow { max-width: 34rem; }
.section-subhead { margin: 0.3rem 0 1rem; }
.structure-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-shell-soft {
    background: rgba(243, 248, 252, 0.72);
    border-top: 1px solid rgba(106, 150, 182, 0.2);
    border-bottom: 1px solid rgba(106, 150, 182, 0.2);
}
.section-split { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); align-items: start; }
.split-layout { align-items: stretch; }
.split-aside { height: 100%; }
.module-row { grid-template-columns: auto 1fr; align-items: start; }
.status-layout { grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr); align-items: start; }
.status-row strong, .stack-row strong, .module-row strong { margin-bottom: 0.2rem; }
.card-grid, .metric-grid {
    display: grid;
    gap: 1rem;
}
.card-grid-2, .metric-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3, .metric-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4, .metric-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card h3,
.metric-card strong { margin: 0.9rem 0 0.35rem; }
.feature-card p,
.metric-card p { margin-bottom: 0; }
.metric-value {
    display: block;
    color: var(--blue-strong);
    font: 800 clamp(2rem, 5vw, 3.4rem)/1 "Sora", sans-serif;
    letter-spacing: -0.05em;
}
.cta-banner {
    display: grid;
    gap: 1.2rem;
    align-items: start;
}

.dashboard-main { padding-bottom: 4rem; }
.member-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); align-items: start; padding: 1.6rem 0 1.25rem; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.35rem; }
.stats-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-value { display: block; margin: 0.55rem 0 0.4rem; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.02; }
.content-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-tile {
    padding: 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(106, 150, 182, 0.2);
    background: rgba(245, 250, 254, 0.84);
}
.action-tile strong { display: block; margin: 0.8rem 0 0.35rem; }
.text-link { color: #9fe5ff; font-weight: 800; }
.mini-hero {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(224, 240, 252, 0.78));
    border: 1px solid rgba(106, 150, 182, 0.22);
}
.mini-hero-badge { display: inline-flex; margin-bottom: 0.85rem; color: var(--blue-strong); font-weight: 800; }
.mini-hero h3 { font-size: 1.65rem; line-height: 1.14; margin-bottom: 0.8rem; }
.mini-hero h3 span { color: var(--blue-strong); }

.admin-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}
.sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.25rem 0.75rem 1rem;
    background: #0f1419;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-inverse);
}
.sidebar-brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text-inverse); }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 0.95rem; }
.sidebar-brand small, .sidebar-copy, .sidebar-link-copy small, .sidebar-user small, .sidebar-section-title { color: rgba(255, 255, 255, 0.4); }
.sidebar-copy { margin: 1rem 0 0; font-size: 0.88rem; }
.sidebar-nav { display: grid; gap: 1.5rem; margin-top: 2rem; }
.sidebar-section { display: grid; gap: 0.2rem; }
.sidebar-section-title { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding-inline: 0.5rem; margin-bottom: 0.35rem; }
.sidebar-link {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: center;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    transition: background 0.15s ease;
}
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
}
.sidebar-link.active {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
}
.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: #3b82f6;
}
.sidebar-link-copy strong { display: block; font-size: 0.85rem; font-weight: 500; }
.sidebar-link-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
}
.sidebar-bottom { margin-top: auto; padding-top: 1.25rem; display: grid; gap: 0.75rem; }
.sidebar-user {
    padding: 0.7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-user { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: center; }
.sidebar-user strong { font-size: 0.85rem; font-weight: 600; }
.sidebar-user small { font-size: 0.75rem; }
.sidebar-footer-links { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-inline: 0.2rem; }
.sidebar-quiet-link { color: rgba(255, 255, 255, 0.4); font-weight: 500; font-size: 0.8rem; transition: color 0.15s ease; }
.sidebar-quiet-link:hover { color: rgba(255, 255, 255, 0.7); }
.page-shell { padding: 1.75rem 2rem 2.5rem; background: #161b22; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.page-title { max-width: none; font-size: 1.35rem; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.page-subtitle { max-width: 52rem; margin: 0; }
.page-pills { margin-bottom: 1.4rem; }
.admin-theme .page-title,
.admin-theme .page-subtitle,
.admin-theme .page-badge { color: rgba(255, 255, 255, 0.92); }
.admin-theme .page-subtitle { color: rgba(255, 255, 255, 0.45); }
.admin-theme .page-badge { color: #3b82f6; }
.admin-theme .panel,
.admin-theme .member-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-inverse);
    box-shadow: none;
    backdrop-filter: none;
}
.admin-theme .panel,
.admin-theme .member-card,
.admin-theme .setup-panel {
    padding: 1.15rem;
    border-radius: 12px;
}
.admin-theme .panel-highlight {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.12);
}
.admin-theme .panel-dark {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}
.admin-theme .panel p,
.admin-theme .stack-row span,
.admin-theme .module-row p,
.admin-theme .blueprint-row p,
.admin-theme .empty-state,
.admin-theme .matrix-table td small {
    color: rgba(255, 255, 255, 0.4);
}
.admin-theme .panel-head { margin-bottom: 0.65rem; }
.admin-theme .panel-head h2 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}
.admin-theme .panel-label,
.admin-theme .panel-kicker {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}
.admin-theme .stack-row,
.admin-theme .module-row,
.admin-theme .blueprint-row,
.admin-theme .status-row {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
}
.admin-theme .stack-row strong {
    font-weight: 600;
    font-size: 0.85rem;
}
.admin-theme .stack-list,
.admin-theme .module-list,
.admin-theme .content-grid,
.admin-theme .stats-grid { gap: 0.65rem; }
.admin-theme .stats-grid { margin-bottom: 1.25rem; }
.admin-theme .content-grid-two { gap: 0.75rem; }
.admin-theme .panel-value {
    margin: 0.3rem 0 0;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: rgba(255, 255, 255, 0.9);
}
.admin-theme .stat-panel {
    padding: 1rem 1.15rem;
}
.admin-theme .stat-panel p { display: none; }
.admin-nav-row {
    transition: background 0.15s ease;
}
.admin-nav-row:hover {
    background: rgba(255, 255, 255, 0.04);
}
.stack-list-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-theme .action-tile {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.admin-theme .matrix-table th,
.admin-theme .matrix-table td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
.admin-theme .matrix-table th {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 600;
}
.admin-theme .matrix-table th,
.admin-theme .matrix-table td { padding: 0.65rem 0.6rem; }
.admin-theme .badge-neutral {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}
.admin-theme .empty-state {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.admin-theme .btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-weight: 500;
}
.admin-theme .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}
.admin-theme .btn-primary {
    background: #3b82f6;
    box-shadow: none;
    border-radius: 8px;
    font-weight: 600;
}
.admin-theme .btn-primary:hover {
    background: #2563eb;
}
.admin-theme .input {
    min-height: 2.5rem;
    padding: 0.6rem 0.8rem;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-inverse);
    font-size: 0.88rem;
}
.admin-theme .input::placeholder { color: rgba(255, 255, 255, 0.25); }
.admin-theme .input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.admin-theme .field span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
}
.admin-theme .field-hint { color: rgba(255, 255, 255, 0.35); font-size: 0.78rem; }
.admin-theme .field { gap: 0.55rem; }
.admin-theme .form-grid { gap: 0.75rem; }
.admin-theme .form-actions { padding-top: 0.25rem; }
.admin-theme .input-area {
    min-height: 6rem;
    border-radius: 8px;
}
.admin-theme .panel-icon,
.admin-theme .feature-badge,
.admin-theme .action-tile-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border-radius: 8px;
    width: 2.4rem;
    height: 2.4rem;
}
.admin-theme h1, .admin-theme h2, .admin-theme h3, .admin-theme strong {
    font-family: "Inter", "Sora", sans-serif;
}
.admin-theme .sidebar-link-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    opacity: 0.6;
}
.admin-theme .sidebar-link.active .sidebar-link-icon svg { opacity: 0.9; }
.admin-theme .btn-compact {
    min-height: 2.1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
}
.admin-theme select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}
.admin-theme select.input option {
    background: #1e2530;
    color: rgba(255, 255, 255, 0.88);
    padding: 0.5rem;
}

.role-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.role-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
}
.role-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}
.role-chip-active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}
.role-chip-active:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.permission-list {
    display: grid;
    gap: 0.4rem;
}
.permission-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.15s ease;
}
.permission-row:hover {
    background: rgba(255, 255, 255, 0.04);
}
.permission-info {
    display: grid;
    gap: 0.15rem;
}
.permission-info strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}
.permission-info span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: Consolas, monospace;
}

.permission-toggle {
    position: relative;
    flex-shrink: 0;
}
.permission-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-track {
    display: block;
    width: 2.6rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.toggle-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}
.permission-toggle input:checked + .toggle-track {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
}
.permission-toggle input:checked + .toggle-track::after {
    transform: translateX(1.15rem);
    background: #3b82f6;
}
.editor-stack {
    display: grid;
    gap: 0.85rem;
}
.panel-head-tight { margin-bottom: 0.65rem; }
.panel-toolbar,
.form-actions-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.section-editor {
    padding: 1.15rem;
    display: grid;
    gap: 0.85rem;
}
.delete-form {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    font-weight: 500;
    font-size: 0.85rem;
}
.checkbox-row-box { width: 100%; }
.checkbox-row input,
.matrix-toggle input {
    width: 1rem;
    height: 1rem;
    accent-color: #3b82f6;
}
.matrix-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.82rem;
}
.table-wrap { overflow-x: auto; border-radius: 8px; }
.matrix-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.matrix-table th, .matrix-table td { padding: 0.75rem 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); text-align: left; vertical-align: top; }
.matrix-table th { color: rgba(255, 255, 255, 0.35); font-size: 0.75rem; font-weight: 600; }
.matrix-table td small { display: block; margin-top: 0.2rem; }
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}
.badge-positive { background: rgba(12, 138, 102, 0.12); color: var(--green); }
.badge-neutral { background: rgba(17, 40, 61, 0.08); color: var(--muted-strong); }

.setup-layout {
    grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
    width: min(calc(100% - 2rem), 1260px);
    margin: 2rem auto;
}
.setup-panel { background: rgba(255, 255, 255, 0.92); }
.setup-form, .form-section, .field { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field span { color: var(--muted-strong); font-weight: 700; }
.field-full { grid-column: 1 / -1; }
.field-actions { align-content: end; }
.input {
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface-strong);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.input:focus { border-color: rgba(22, 132, 215, 0.8); box-shadow: 0 0 0 4px rgba(22, 132, 215, 0.12); }
.input-area {
    min-height: 8rem;
    resize: vertical;
    border-radius: 18px;
}
.field-hint {
    margin-top: -0.4rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}
.field-error { color: var(--red); font-size: 0.9rem; font-weight: 800; }
.notice {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}
.notice-danger { color: #f87171; background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.12); }
.notice-success { color: #34d399; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.12); }
.empty-state {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.accent-sky { background: linear-gradient(135deg, #82dbff, #1684d7); }
.accent-cyan { background: linear-gradient(135deg, #9cecff, #30afde); }
.accent-blue { background: linear-gradient(135deg, #9bbaff, #4878df); }
.accent-ice { background: linear-gradient(135deg, #ecf8ff, #98d8ff); color: var(--blue-strong); }

.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.42s ease, transform 0.42s ease; }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.sidebar-toggle, .sidebar-overlay { display: none; }

@media (max-width: 1180px) {
    .hero-layout, .section-split, .status-layout, .content-grid-two, .member-hero, .setup-layout, .stats-grid, .stats-grid-compact { grid-template-columns: 1fr; }
    .structure-grid, .action-grid, .card-grid-3, .card-grid-4, .metric-grid-3, .metric-grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar-toggle {
        position: fixed;
        top: 0.75rem;
        left: 0.75rem;
        z-index: 80;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        background: rgba(22, 27, 34, 0.95);
        box-shadow: none;
        color: rgba(255, 255, 255, 0.7);
    }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(80vw, 260px);
        transform: translateX(-104%);
        transition: transform 0.2s ease;
        z-index: 75;
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 70;
        background: rgba(0, 0, 0, 0.5);
    }
    body.sidebar-open .sidebar-overlay { display: block; }
    .page-shell { padding-top: 4.5rem; }
}

@media (max-width: 760px) {
    .nav-shell, .page-header, .nav-actions { flex-wrap: wrap; align-items: flex-start; }
    .nav-links { display: none; }
    .hero-title, .member-copy h1, .setup-side h1, .page-title { max-width: none; font-size: clamp(2.2rem, 12vw, 3.5rem); }
    .panel, .hero-panel, .member-card, .setup-side, .setup-panel { padding: 1.2rem; }
    .form-grid, .form-grid-2, .form-grid-3, .form-grid-4, .form-grid-editor, .card-grid-2, .metric-grid-2 { grid-template-columns: 1fr; }
    .page-shell { padding-inline: 1rem; }
    .stack-list-inline { grid-template-columns: 1fr; }
}
