:root {
    color-scheme: light;
    --font-sans: "Inter", "Segoe UI", "Roboto", sans-serif;
    --bg: #f5f7fb;
    --bg-soft: #eef2f9;
    --surface: #ffffff;
    --surface-subtle: rgba(255, 255, 255, 0.72);
    --surface-muted: #f1f5f9;
    --surface-accent: rgba(37, 99, 235, 0.08);
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.18);
    --shadow-sm: 0 12px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.12);
    --text: #0f172a;
    --text-muted: #475569;
    --text-subtle: #64748b;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.14);
    --positive: #22c55e;
    --warning: #f97316;
    --critical: #ef4444;
    --page-width: min(1600px, 96%);
}

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

.ff-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 55%, #e2e8f0 100%);
}

.ff-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(40% 45% at 12% 16%, rgba(37, 99, 235, 0.14), transparent 65%),
        radial-gradient(32% 38% at 85% 8%, rgba(14, 165, 233, 0.14), transparent 70%),
        radial-gradient(45% 48% at 48% 86%, rgba(79, 70, 229, 0.12), transparent 80%);
    opacity: 0.75;
    z-index: -1;
}

a {
    color: inherit;
}

a, button {
    font: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.shell-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 20px clamp(20px, 6vw, 48px);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--accent);
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.primary-nav {
    display: inline-flex;
    gap: 12px;
    justify-content: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-link:hover {
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--accent-strong);
    background: var(--accent-soft);
    box-shadow: var(--shadow-sm);
}

.nav-link.is-active {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.18);
    color: var(--accent-strong);
}

.header-meta {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.header-meta .meta-value {
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text);
}

.shell-main {
    flex: 1;
    width: var(--page-width);
    margin: 0 auto;
    padding: clamp(24px, 6vw, 64px) clamp(20px, 6vw, 48px) clamp(64px, 12vh, 120px);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.page-hero {
    display: grid;
    gap: clamp(20px, 6vw, 36px);
    padding: clamp(24px, 6vw, 40px);
    border-radius: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.page-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.hero-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -0.02em;
    font-weight: 600;
}

.hero-subtitle {
    margin: 0;
    max-width: 560px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-primary,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}

.button-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.button-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button-primary:hover::before {
    opacity: 1;
}

.button-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.button-secondary {
    border: 1px solid var(--border-strong);
    background: var(--surface-muted);
    color: var(--text);
}

.button-secondary:hover,
.button-ghost:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.button-ghost {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: transparent;
    color: var(--text-subtle);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 960px) {
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-card {
    position: relative;
    padding: 24px 28px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.metric-card.primary:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.metric-card.primary span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.metric-card.primary strong {
    color: #ffffff !important;
}

.metric-card.primary .metric-progress-bar {
    background: rgba(255, 255, 255, 0.2) !important;
}

.metric-card.primary .metric-progress-fill {
    background: rgba(255, 255, 255, 0.95) !important;
}

.metric-card span {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
    font-weight: 500;
}

.metric-card strong {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.metric-value-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.metric-trend.positive {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.metric-trend.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.metric-trend svg {
    width: 12px;
    height: 12px;
}

.metric-progress {
    position: relative;
    margin-top: 4px;
}

.metric-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.metric-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.metric-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.metric-progress-fill.excellent {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.metric-progress-fill.good {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.metric-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.metric-progress-fill.critical {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.metric-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-block {
    display: grid;
    gap: 20px;
    padding: clamp(24px, 5vw, 32px);
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.section-body {
    display: grid;
    gap: 24px;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid--columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.badge,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge {
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-strong);
}

.tag {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    color: var(--text-subtle);
}

.list-plain {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.list-plain li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.list-plain li strong {
    font-weight: 600;
}

.empty-state {
    padding: 32px;
    border-radius: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    text-align: center;
    color: var(--text-muted);
    background: var(--surface-muted);
}

.table-wrapper {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    background: var(--surface-muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

td,
th {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.freshness-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.freshness-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
}

.freshness-green {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #047857;
}

.freshness-green .freshness-dot {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.freshness-yellow {
    background: rgba(234, 179, 8, 0.18);
    border-color: rgba(234, 179, 8, 0.45);
    color: #b45309;
}

.freshness-yellow .freshness-dot {
    background: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.25);
}

.freshness-red {
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(220, 38, 38, 0.45);
    color: #b91c1c;
}

.freshness-red .freshness-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
}

.freshness-unknown {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.35);
    color: #475569;
}

.freshness-unknown .freshness-dot {
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.2);
}

.sparkline-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-subtle);
}

.sparkline-chip strong {
    font-weight: 600;
    color: var(--text);
}

.page-footer {
    padding: 32px clamp(20px, 6vw, 48px) 48px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.footer-version {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    opacity: 0.6;
    letter-spacing: 0.12em;
}

@media (max-width: 960px) {
    .shell-header {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        text-align: center;
    }

    .header-meta {
        align-items: center;
    }

    .page-hero {
        padding: 24px;
    }

    .hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .page-hero {
        border-radius: 24px;
    }

    .section-block {
        padding: 24px;
        border-radius: 24px;
    }
}

/* Action Items Widget */
.action-items-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.action-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.action-item-icon.priority-high {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.action-item-icon.priority-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.action-item-icon.priority-low {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.action-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.action-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.action-item-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    align-self: flex-start;
}

.action-item-badge.due-soon {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.action-item-badge.due-today {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* System Health Alert Widget */
.system-health-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.system-health-alert.healthy {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.25);
}

.system-health-alert.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.system-health-alert.critical {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    animation: pulse-alert 2s ease-in-out infinite;
}

@keyframes pulse-alert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.health-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.health-icon.healthy {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.health-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.health-icon.critical {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.health-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.health-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.health-message {
    font-size: 12px;
    color: var(--text-muted);
}

.health-expand-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
    cursor: pointer;
    transition: all 0.2s ease;
}

.health-expand-btn:hover {
    background: var(--surface-muted);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Team Identity Score */
.identity-score-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.identity-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.identity-score {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.identity-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.identity-distribution {
    display: grid;
    gap: 10px;
}

.identity-bar-item {
    display: grid;
    grid-template-columns: 120px 1fr 50px;
    gap: 12px;
    align-items: center;
}

.identity-archetype-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.identity-bar-track {
    height: 28px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
    position: relative;
}

.identity-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.identity-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.identity-strategy {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.identity-strategy-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 4px;
}

.identity-strategy-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

/* Trait Cards (replacing radar) */
.trait-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.trait-card {
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.trait-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.3);
}

.trait-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.trait-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.trait-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.trait-status-icon.excellent {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.trait-status-icon.good {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.trait-status-icon.needs-work {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.trait-values {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.trait-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.trait-target {
    font-size: 14px;
    color: var(--text-muted);
}

.trait-comparison-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    position: relative;
}

.trait-comparison-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.trait-comparison-fill.excellent {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.trait-comparison-fill.good {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.trait-comparison-fill.needs-work {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.trait-action {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Enhanced Status Cards */
.status-card-enhanced {
    position: relative;
    padding: 20px 24px;
    border-radius: 20px;
    background: var(--surface);
    border: 2px solid;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.status-card-enhanced::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s ease;
}

.status-card-enhanced:hover::before {
    width: 8px;
}

.status-card-enhanced.status-excellent {
    border-color: rgba(34, 197, 94, 0.3);
}

.status-card-enhanced.status-excellent::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.status-card-enhanced.status-good {
    border-color: rgba(59, 130, 246, 0.3);
}

.status-card-enhanced.status-good::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.status-card-enhanced.status-warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.status-card-enhanced.status-warning::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.status-card-enhanced.status-critical {
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulse-card 2s ease-in-out infinite;
}

.status-card-enhanced.status-critical::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

@keyframes pulse-card {
    0%, 100% { 
        border-color: rgba(239, 68, 68, 0.3);
        box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    }
    50% { 
        border-color: rgba(239, 68, 68, 0.5);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    }
}

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

.status-card-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.status-indicator.excellent {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.status-indicator.good {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.status-indicator.warning {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.status-indicator.critical {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.status-card-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.status-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.status-card-action {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-card-action:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

/* Gap Cards with Severity */
.gap-cards-grid {
    display: grid;
    gap: 12px;
}

.gap-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.gap-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.gap-severity-badge {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.gap-severity-badge.critical {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.gap-severity-badge.high {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.gap-severity-badge.medium {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.gap-card-content {
    flex: 1;
}

.gap-position {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.gap-impact {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.gap-recommendation {
    font-size: 11px;
    color: var(--accent-strong);
    font-weight: 600;
}

.gap-card-cta {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.gap-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
