/* NorthPoint — Shared Styles v3
   Dark bg · Light cards · Expanding rail · Module color immersion
------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

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

/* ── GLOBAL TOKENS ── */
:root {
    --navy:           #0f172a;
    --navy-mid:       #1e293b;
    --navy-light:     #334155;
    --navy-border:    rgba(255,255,255,0.07);
    --bg:             #f0f2f5;
    --card:           #ffffff;
    --card-hover:     #ffffff;
    --border:         #e2e8f0;
    --border-hover:   #cbd5e1;
    --silver:         #e2e8f0;
    --silver-light:   #f1f5f9;

    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-tertiary:  #94a3b8;

    --accent:         #3b82f6;
    --accent-dim:     rgba(59,130,246,0.12);
    --accent-glow:    rgba(59,130,246,0.25);

    --green:          #10b981;
    --green-dim:      rgba(16,185,129,0.15);
    --amber:          #f59e0b;
    --amber-dim:      rgba(245,158,11,0.15);
    --red:            #ef4444;
    --red-dim:        rgba(239,68,68,0.15);
    --purple:         #8b5cf6;
    --purple-dim:     rgba(139,92,246,0.15);
    --teal:           #14b8a6;
    --teal-dim:       rgba(20,184,166,0.15);
    --orange:         #f97316;
    --orange-dim:     rgba(249,115,22,0.15);
    --gold:           #eab308;
    --gold-dim:       rgba(234,179,8,0.15);

    --rail-width:      64px;
    --rail-expanded:   220px;
    --rail-transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── MODULE COLOR OVERRIDES ── */
body.mod-overview    { --accent: #3b82f6; --accent-dim: rgba(59,130,246,0.1);  --accent-glow: rgba(59,130,246,0.2); }
body.mod-budget      { --accent: #10b981; --accent-dim: rgba(16,185,129,0.1);  --accent-glow: rgba(16,185,129,0.2); }
body.mod-team        { --accent: #f59e0b; --accent-dim: rgba(245,158,11,0.1);  --accent-glow: rgba(245,158,11,0.2); }
body.mod-facilities  { --accent: #8b5cf6; --accent-dim: rgba(139,92,246,0.1);  --accent-glow: rgba(139,92,246,0.2); }
body.mod-software    { --accent: #14b8a6; --accent-dim: rgba(20,184,166,0.1);  --accent-glow: rgba(20,184,166,0.2); }
body.mod-projects    { --accent: #f97316; --accent-dim: rgba(249,115,22,0.1);  --accent-glow: rgba(249,115,22,0.2); }
body.mod-field-guide { --accent: #eab308; --accent-dim: rgba(234,179,8,0.1);   --accent-glow: rgba(234,179,8,0.2);  }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.layout {
    display: grid;
    grid-template-columns: var(--rail-width) 1fr;
    min-height: 100vh;
}

/* ── RAIL ── */
.rail {
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 16px;
    position: fixed;
    top: 0; left: 0;
    width: var(--rail-width);
    height: 100vh;
    border-right: 1px solid var(--navy-border);
    z-index: 100;
    overflow: hidden;
    transition: width var(--rail-transition), box-shadow var(--rail-transition);
}

.rail.is-open {
    width: var(--rail-expanded);
    box-shadow: 4px 0 32px rgba(0,0,0,0.5);
}

.rail-logo-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 12px;
    margin-bottom: 4px;
}

.rail-logo {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--accent-glow);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rail-logo:hover { transform: scale(1.05); }

.rail-logo-label {
    font-family: 'DM Serif Display', serif;
    font-size: 15px;
    color: white;
    white-space: nowrap;
    opacity: 0;
    margin-left: 10px;
    transition: opacity 0.15s 0.05s;
    letter-spacing: -0.2px;
}
.rail.is-open .rail-logo-label { opacity: 1; }

.rail-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1;
    width: 100%;
    padding: 0 10px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.rail-nav::-webkit-scrollbar { display: none; }

.rail-divider {
    width: 40px;
    height: 1px;
    background: var(--navy-border);
    margin: 8px 2px;
    transition: width var(--rail-transition);
}
.rail.is-open .rail-divider { width: calc(100% - 4px); }

.rail-item {
    width: 44px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.rail-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.rail-item-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.15s 0.06s;
}
.rail.is-open .rail-item-label { opacity: 1; }

.rail-item:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}
.rail-item.active {
    background: var(--accent-dim);
    color: var(--accent);
}

.rail-footer {
    width: 100%;
    padding: 10px;
    border-top: 1px solid var(--navy-border);
}

.rail-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 3px;
}

.rail-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.rail-user-info {
    opacity: 0;
    transition: opacity 0.15s 0.06s;
    overflow: hidden;
}
.rail.is-open .rail-user-info { opacity: 1; }

.rail-user-name {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
}
.rail-user-role {
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
}

.rail-toggle {
    position: absolute;
    top: 20px;
    right: -12px;
    width: 22px;
    height: 22px;
    background: var(--navy-mid);
    border: 1px solid var(--navy-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
    color: rgba(255,255,255,0.4);
}
.rail-toggle svg { width: 11px; height: 11px; }
.rail.is-open .rail-toggle { opacity: 1; }
.rail-toggle:hover { color: white; background: var(--navy-light); }

/* ── MAIN ── */
.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
    background: var(--navy);
    border-bottom: 1px solid var(--navy-border);
    padding: 0 40px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.7;
}

/* Prevent font-load flash */
html { background: var(--navy); }

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-name {
    font-family: 'DM Serif Display', serif;
    font-size: 17px;
    color: #f1f5f9;
    letter-spacing: -0.3px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}
.topbar-name:hover { color: var(--accent); }

.topbar-sep {
    width: 1px;
    height: 14px;
    background: var(--navy-border);
}

.topbar-section {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
    animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }
    50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0.05); }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-date {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

.topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ── CONTENT ── */
.content {
    padding: 44px 52px;
    flex: 1;
    background: var(--bg);
}

/* ── PAGE HEADER ── */
.page-header {
    margin-bottom: 40px;
    max-width: 600px;
}

.page-title {
    font-family: 'DM Serif Display', serif;
    font-size: 38px;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    font-weight: 400;
}

.page-subtitle {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.75;
    font-weight: 300;
}

/* ── SECTION HEADERS ── */
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── METRIC CARDS ── */
.metric-row {
    display: grid;
    gap: 10px;
    margin-bottom: 40px;
}

.metric-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.metric-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.metric-row.cols-2 { grid-template-columns: repeat(2, 1fr); }

.metric-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    transition: all 0.2s;
}

.metric-card:hover {
    border-color: var(--accent);
    background: var(--card-hover);
    box-shadow: 0 0 0 3px var(--accent-dim), 0 4px 16px rgba(0,0,0,0.06);
}

.metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.metric-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.metric-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 300;
}

/* ── BADGES ── */
.metric-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.badge-good    { background: var(--green-dim);   color: #059669; }
.badge-warn    { background: var(--amber-dim);   color: #d97706; }
.badge-alert   { background: var(--red-dim);     color: #dc2626; }
.badge-info    { background: var(--accent-dim);  color: var(--accent); }
.badge-neutral { background: var(--silver-light);color: var(--text-secondary); }
.badge-purple  { background: var(--purple-dim);  color: #7c3aed; }
.badge-accent  { background: var(--accent-dim);  color: var(--accent); }

/* ── MODULE GRID ── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.module-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    text-decoration: none;
    color: inherit;
    transition: all 0.22s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 3px var(--accent-dim);
    transform: translateY(-2px);
}

.module-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.module-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.module-card-arrow {
    color: var(--text-tertiary);
    font-size: 18px;
    opacity: 0;
    transition: all 0.2s;
}
.module-card:hover .module-card-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--accent);
}

.module-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.module-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 22px;
    font-weight: 300;
    flex: 1;
}

.module-metrics {
    display: flex;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.module-metric { flex: 1; }

.module-metric-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 3px;
}

.module-metric-label {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── TOOL CARDS ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.tool-card.clickable:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 3px var(--accent-dim);
    transform: translateY(-1px);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--accent-dim);
}

.card-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live      { background: var(--green-dim);   color: #059669; }
.status-coming    { background: var(--amber-dim);   color: #d97706; }
.status-planned   { background: var(--silver-light);color: var(--text-tertiary); }
.status-protected { background: var(--purple-dim);  color: #7c3aed; }

.card-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.card-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.card-tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--silver-light);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 10px;
}

.card-arrow {
    color: var(--text-tertiary);
    font-size: 14px;
    transition: all 0.2s;
}
.tool-card.clickable:hover .card-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ── UNDER CONSTRUCTION ── */
.module-card.under-construction,
.tool-card.under-construction {
    pointer-events: none;
    opacity: 0.55;
}

.module-card.under-construction::after,
.tool-card.under-construction::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248,250,252,0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 2;
}

.uc-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 3;
}

/* ── UC PAGE ── */
.uc-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    text-align: center;
    gap: 14px;
}

.uc-icon  { font-size: 44px; opacity: 0.2; margin-bottom: 4px; }

.uc-title {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    color: var(--text-primary);
    font-weight: 400;
}

.uc-desc {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 380px;
    line-height: 1.7;
    font-weight: 300;
}

.uc-pill {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-1 { animation: fadeUp 0.4s 0.00s ease both; }
.animate-2 { animation: fadeUp 0.4s 0.06s ease both; }
.animate-3 { animation: fadeUp 0.4s 0.12s ease both; }
.animate-4 { animation: fadeUp 0.4s 0.18s ease both; }
.animate-5 { animation: fadeUp 0.4s 0.24s ease both; }
.animate-6 { animation: fadeUp 0.4s 0.30s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .metric-row.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .tools-grid        { grid-template-columns: repeat(2, 1fr); }
    .content           { padding: 32px 28px; }
    .topbar            { padding: 0 24px; }
}
@media (max-width: 720px) {
    .modules-grid              { grid-template-columns: 1fr; }
    .tools-grid                { grid-template-columns: 1fr; }
    .metric-row.cols-3         { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .layout { grid-template-columns: 1fr; }
    .rail   { display: none; }
    .metric-row.cols-4,
    .metric-row.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Sensitive content — toggle visibility when ready */
.sensitive { display: none !important; }

/* ── HIGHLIGHT BANNER ── */
.highlight-card {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.highlight-text h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 22px; color: #f1f5f9;
    font-weight: 400; margin-bottom: 6px;
}
.highlight-text p {
    font-size: 13px; color: rgba(148,163,184,0.8);
    font-weight: 300; line-height: 1.6; max-width: 480px;
}
.highlight-stats {
    display: flex;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
}
.h-stat {
    padding: 14px 22px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.h-stat:last-child { border-right: none; }
.h-stat-value {
    font-size: 22px; font-weight: 600;
    color: white; letter-spacing: -0.5px;
    line-height: 1; margin-bottom: 3px;
}
.h-stat-label {
    font-size: 10px; color: rgba(100,116,139,0.9);
    text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500;
}

/* ── FTE CARDS ── */
.fte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.fte-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.fte-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.6;
}
.fte-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim), 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.fte-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.fte-avatar {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 15px; font-weight: 600;
    flex-shrink: 0;
}
.fte-name {
    font-family: 'DM Serif Display', serif;
    font-size: 17px; color: var(--text-primary);
    font-weight: 400; letter-spacing: -0.2px; line-height: 1.2;
}
.fte-title {
    font-size: 11px; color: var(--accent);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.8px; margin-top: 2px;
}
.fte-domains {
    display: flex; flex-wrap: wrap;
    gap: 5px; margin-bottom: 14px;
}
.fte-domain {
    font-size: 11px; color: var(--text-secondary);
    background: var(--silver-light); border: 1px solid var(--border);
    padding: 3px 9px; border-radius: 20px;
}
.fte-focus {
    font-size: 12px; color: var(--text-secondary);
    line-height: 1.6; font-weight: 300;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.fte-focus strong { color: var(--text-primary); font-weight: 600; }

/* ── FACILITY GRID ── */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}
.facility-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}
.facility-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--green);
}
.facility-card.status-warn::before  { background: var(--amber); }
.facility-card.status-alert::before {
    background: var(--red);
    animation: facility-pulse 2s ease infinite;
}
@keyframes facility-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
.facility-name {
    font-size: 12px; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px; line-height: 1.3;
}
.facility-status-row {
    display: flex; align-items: center;
    gap: 6px; flex-wrap: wrap;
}
.facility-dot {
    width: 7px; height: 7px;
    border-radius: 50%; flex-shrink: 0;
}
.facility-dot.green { background: var(--green); }
.facility-dot.amber { background: var(--amber); }
.facility-dot.red   { background: var(--red); animation: dot-pulse 1.5s ease infinite; }
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(239,68,68,0.2); }
    50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0.08); }
}
.facility-status-label { font-size: 10px; color: var(--text-tertiary); font-weight: 500; }
.facility-tag {
    font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.facility-tag.survey  { background: var(--red-dim);    color: #dc2626; }
.facility-tag.tickets { background: var(--amber-dim);  color: #d97706; }
.facility-tag.sc      { background: var(--accent-dim); color: var(--accent); }

/* ── ALERTS ── */
.alerts-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.alert-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex; align-items: center; gap: 12px;
}
.alert-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.alert-dot.red   { background: var(--red); animation: dot-pulse 1.5s ease infinite; }
.alert-dot.amber { background: var(--amber); }
.alert-dot.green { background: var(--green); }
.alert-text { font-size: 13px; color: var(--text-primary); flex: 1; }
.alert-time { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }

/* ── TEAM CAROUSEL ── */
.carousel-wrap { position: relative; margin-bottom: 40px; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.carousel-track .team-card {
    min-width: 100%;
    border-radius: 14px;
    box-sizing: border-box;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.carousel-track .team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.5;
}
.carousel-controls {
    display: flex; align-items: center;
    justify-content: center; gap: 16px; margin-top: 16px;
}
.carousel-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s;
}
.carousel-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.carousel-dots { display: flex; gap: 6px; align-items: center; }
.carousel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s;
}
.carousel-dot.active { background: var(--accent); width: 18px; border-radius: 3px; }

/* ── TEAM CARD (carousel + grid) ── */
.team-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.team-avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; font-weight: 600;
    flex-shrink: 0;
}
.team-name  { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.team-role  { font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 3px; }
.team-domains { display: flex; flex-wrap: wrap; gap: 5px; }
.team-domain {
    font-size: 11px; color: var(--text-secondary);
    background: var(--silver-light); border: 1px solid var(--border);
    padding: 3px 9px; border-radius: 20px;
}
.team-profile-link {
    display: inline-block; margin-top: 14px;
    font-size: 12px; font-weight: 600;
    color: var(--accent); text-decoration: none;
    transition: opacity 0.2s;
}
.team-profile-link:hover { opacity: 0.7; }

/* ── 2-COL TOOL GRID ── */
.tools-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

/* ── RESPONSIVE ADDITIONS ── */
@media (max-width: 1100px) { .facility-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px)  {
    .facility-grid  { grid-template-columns: repeat(2, 1fr); }
    .fte-grid       { grid-template-columns: repeat(2, 1fr); }
    .tools-grid-2   { grid-template-columns: 1fr; }
    .highlight-card { flex-direction: column; }
}
@media (max-width: 640px)  {
    .facility-grid { grid-template-columns: 1fr; }
    .fte-grid      { grid-template-columns: 1fr; }
}

/* ── RAIL USER MENU ── */
.rail-footer {
  width: 100%;
  padding: 0 12px 16px;
  position: relative;
}

.rail-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s;
  overflow: hidden;
}

.rail-user:hover { background: rgba(255,255,255,0.06); }

.rail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.rail-user-info {
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  overflow: hidden;
}

.rail.is-open .rail-user-info { opacity: 1; }

.rail-user-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.rail-user-role {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: capitalize;
}

.rail-user-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 12px;
  right: 12px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px;
  display: none;
  z-index: 300;
}

.rail-user-menu.open { display: block; }

.rum-name {
  font-size: 12px;
  font-weight: 600;
  color: white;
  padding: 4px 6px 2px;
}

.rum-email {
  font-size: 11px;
  color: #64748b;
  padding: 0 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
}

.rum-signout {
  width: 100%;
  padding: 7px 6px;
  border: none;
  background: none;
  color: #f87171;
  font-size: 12px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}

.rum-signout:hover { background: rgba(248,113,113,0.1); }
}