:root {
    --bg: #020617;
    --bg-elevated: #0f172a;
    --bg-soft: #111827;
    --panel: #0f172a;
    --panel-2: #111827;
    --line: #1e293b;
    --line-soft: rgba(148, 163, 184, 0.16);
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --accent: #06b6d4;
    --accent-strong: #22d3ee;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.85);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    top: 0.6rem;
    left: 0.75rem;
    z-index: 200;
    transform: translateY(-140%);
    background: #083344;
    color: #ecfeff;
    border: 1px solid rgba(34, 211, 238, 0.6);
    border-radius: 0.45rem;
    padding: 0.45rem 0.6rem;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    transition: transform 120ms ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.app-body {
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.08), transparent 24%),
        var(--bg);
}

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

.sidebar {
    width: 248px;
    background: rgba(2, 6, 23, 0.96);
    border-right: 1px solid var(--line);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar-brand,
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sidebar-brand {
    justify-content: center;
    width: 100%;
    overflow: visible;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.95rem;
    box-shadow: none;
    padding: 0.28rem 0;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background: var(--accent);
    color: #04111c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.24);
}

.brand-logo {
    display: block;
    width: min(100%, 13.9rem);
    height: auto;
    max-height: none;
    border-radius: 0;
    flex-shrink: 0;
    opacity: 0.92;
    filter: saturate(0.94) brightness(0.97);
}

.brand-logo-auth {
    width: min(100%, 18rem);
    height: 5.2rem;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 0.9rem;
    background: transparent;
    box-shadow: none;
    opacity: 0.92;
    filter: saturate(0.94) brightness(0.97);
}

.brand-mark.large {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    font-size: 1.15rem;
}

.brand {
    display: inline-block;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.tag,
.eyebrow,
.sidebar-label {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-group {
    display: grid;
    gap: 0.22rem;
    padding: 0.34rem 0.3rem;
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 0.8rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.3));
}

.nav-group-title {
    margin: 0.08rem 0 0.28rem;
    padding: 0 0.45rem;
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    color: #a7b6ca;
}

.nav-link {
    text-decoration: none;
    padding: 0.8rem 0.9rem;
    border-radius: 0.8rem;
    color: var(--muted);
    border: 1px solid transparent;
    font-weight: 500;
    transition: 160ms ease;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.nav-icon {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.42rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid var(--line-soft);
    color: var(--muted);
    background: rgba(15, 23, 42, 0.55);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--accent-strong);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    border-color: rgba(34, 211, 238, 0.28);
    color: var(--accent-strong);
}

.sidebar-card,
.sidebar-user {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.sidebar-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-card strong,
.sidebar-user strong {
    font-size: 0.92rem;
}

.sidebar-card span,
.sidebar-user span {
    color: var(--muted-2);
    font-size: 0.78rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    width: fit-content;
    padding: 0.17rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-strong) !important;
    background: rgba(6, 182, 212, 0.12);
    font-size: 0.67rem !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-user {
    margin-top: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.62rem 0.75rem;
    padding: 0.9rem;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    background: rgba(6, 182, 212, 0.14);
    color: var(--accent-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.user-meta {
    min-width: 0;
    flex: 1;
}

.user-meta strong,
.user-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user form {
    grid-column: 1 / -1;
    justify-self: end;
}

.sidebar-user .ghost {
    padding: 0.46rem 0.8rem;
    font-size: 0.75rem;
}

.main-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-topbar {
    height: 4.2rem;
    padding: 0 1.75rem;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

.page-topbar h1,
.hero-banner h2,
.auth-aside h1,
.auth-panel h2,
.panel h2,
.security-panel h2 {
    margin: 0;
}

.page-topbar p,
.hero-banner p,
.panel-heading p,
.auth-aside p,
.auth-panel p,
.security-panel p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.status-chip,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(15, 23, 42, 0.84);
    color: var(--muted);
    font-size: 0.78rem;
}

.status-chip-cyan,
.pill {
    color: var(--accent-strong);
    border-color: rgba(34, 211, 238, 0.22);
}

.status-chip-alert {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(127, 29, 29, 0.28);
}

.hero-banner,
.panel,
.stat-card,
.login-card,
.security-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-banner {
    margin: 1.5rem 1.75rem 1rem;
    padding: 1.6rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.94));
}

.hero-copy {
    max-width: 56rem;
}

.hero-copy h2 {
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    line-height: 1.15;
    margin-top: 0.35rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.stats-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 0 1.75rem 1rem;
}

.dashboard-grid-main {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
}

.bolt-stats {
    margin: 0 1.75rem 1rem;
}

.stat-card {
    padding: 1.2rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-ico {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.5);
}

.stat-card strong {
    font-size: 2.4rem;
    line-height: 1;
}

.stat-card small {
    display: block;
    color: var(--muted-2);
    margin-top: 0.4rem;
}

.accent-cyan::before {
    background: var(--accent);
}

.accent-red::before {
    background: var(--danger);
}

.accent-blue::before {
    background: #3b82f6;
}

.accent-amber::before {
    background: var(--warning);
}

.panel {
    padding: 1.2rem;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.panel h2 {
    font-size: 1rem;
}

.chart-panel,
.gauge-panel {
    min-height: 15rem;
}

.severity-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.severity-row {
    display: grid;
    grid-template-columns: 110px 1fr 40px;
    gap: 0.9rem;
    align-items: center;
}

.severity-row span,
.mini-metrics span,
.topology-toolbar span,
.topology-legend,
.list-panel li,
.form-footnote,
.auth-feature-list li {
    color: var(--muted);
}

.severity-bar {
    height: 0.58rem;
    border-radius: 999px;
    background: #1e293b;
    overflow: hidden;
}

.severity-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.severity-fill-red {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.severity-fill-blue {
    background: linear-gradient(90deg, #0891b2, #3b82f6);
}

.gauge-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gauge-ring {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--accent) 0 70%, #1e293b 70% 100%);
    padding: 0.75rem;
}

.gauge-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg);
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
}

.mini-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.mini-metrics div {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.9rem;
}

.mini-metrics strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.2rem;
}

.list-panel {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.8rem;
}

.api-panel pre,
pre {
    background: #020617;
    color: #cbd5e1;
    padding: 1rem;
    border-radius: 0.95rem;
    overflow: auto;
    border: 1px solid var(--line);
}

.topology-panel {
    min-height: 70vh;
}

.topology-frame {
    margin: 1.25rem 1.75rem 1.75rem;
    padding: 0;
    overflow: hidden;
}

.topology-toolbar {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 1rem;
    gap: 0.6rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.65);
}

.legend-dot {
    width: 0.6rem;
    height: 0.6rem;
    display: inline-block;
    border-radius: 50%;
    margin: 0 0.35rem 0 0.85rem;
}

.legend-dot:first-child {
    margin-left: 0.5rem;
}

.legend-dot-cyan {
    background: var(--accent);
}

.legend-dot-red {
    background: #f97316;
}

.legend-dot-green {
    background: #22c55e;
}

.topology-canvas-frame {
    min-height: 72vh;
}

.topology-subtoolbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.75);
    background: rgba(3, 10, 24, 0.58);
    flex-wrap: wrap;
}

.topology-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    min-width: 0;
}

.topology-search {
    min-height: 2rem;
    min-width: 13rem;
    border-radius: 0.5rem;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.75);
    color: var(--ink);
    padding: 0.35rem 0.6rem;
    font-size: 0.76rem;
}

.topology-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.74rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
    background: rgba(15, 23, 42, 0.78);
}

.topology-toggle input {
    margin: 0;
}

.topology-filter {
    border-radius: 0.5rem;
    padding: 0.38rem 0.62rem;
    font-size: 0.72rem;
    line-height: 1;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.75);
    color: var(--muted);
}

.topology-filter.active,
.topology-filter:hover {
    border-color: rgba(34, 211, 238, 0.32);
    color: var(--accent-strong);
    background: rgba(6, 182, 212, 0.11);
}

.topology-canvas {
    width: 100%;
    min-height: calc(70vh - 3rem);
    padding: 1rem;
    transform-origin: top left;
    transition: transform 150ms ease;
    overflow: auto;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.03)),
        repeating-linear-gradient(
            0deg,
            rgba(148, 163, 184, 0.06) 0,
            rgba(148, 163, 184, 0.06) 1px,
            transparent 1px,
            transparent 26px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.06) 0,
            rgba(148, 163, 184, 0.06) 1px,
            transparent 1px,
            transparent 26px
        );
    cursor: grab;
}

.topology-canvas.is-panning {
    cursor: grabbing;
    user-select: none;
}

.topology-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    min-height: calc(74vh - 3rem);
}

.topology-details {
    border-left: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.65);
    padding: 1rem;
    overflow: auto;
}

.topology-details h3 {
    margin: 0;
    font-size: 1rem;
}

.topology-details h4 {
    margin: 1rem 0 0.5rem;
    font-size: 0.84rem;
    color: #cbd5e1;
}

.topology-details-sub {
    margin: 0.25rem 0 0.9rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.topology-details dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.6rem;
}

.topology-details dt {
    color: var(--muted);
    font-size: 0.73rem;
}

.topology-details dd {
    margin: 0;
    color: #dbe7ff;
    font-size: 0.78rem;
}

.topology-details ul {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.22rem;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.topology-map {
    min-width: 980px;
    width: 100%;
    height: auto;
    background: rgba(3, 10, 24, 0.58);
    border: 1px solid rgba(100, 116, 139, 0.28);
    border-radius: 12px;
}

.lane-bg {
    fill: rgba(10, 22, 44, 0.5);
    stroke: rgba(125, 211, 252, 0.24);
    stroke-width: 1;
}

.lane-title {
    fill: #bfdbfe;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.subnet-label {
    fill: #94a3b8;
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.subnet-box {
    fill: rgba(14, 116, 144, 0.08);
    stroke: rgba(125, 211, 252, 0.44);
    stroke-width: 1;
    stroke-dasharray: 4 3;
}

.edge-path {
    fill: none;
    stroke: rgba(203, 213, 225, 0.62);
    stroke-width: 1.15;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.edge-path-attack {
    stroke: rgba(248, 113, 113, 0.9);
    stroke-width: 1.6;
}

.node-card {
    stroke-width: 1.2;
}

.node-card.node-asset.node-networks,
.node-card.node-segment.node-networks {
    fill: rgba(239, 246, 255, 0.92);
    stroke: rgba(59, 130, 246, 0.84);
}

.node-card.node-asset.node-servers {
    fill: rgba(239, 246, 255, 0.9);
    stroke: rgba(37, 99, 235, 0.8);
}

.node-card.node-asset.node-endpoints {
    fill: rgba(236, 254, 255, 0.9);
    stroke: rgba(8, 145, 178, 0.82);
}

.node-card.node-other,
.node-card.node-application {
    fill: rgba(240, 253, 250, 0.88);
    stroke: rgba(20, 184, 166, 0.8);
}

.node-card.node-gateway {
    fill: rgba(224, 242, 254, 0.96);
    stroke: rgba(14, 116, 144, 0.9);
}

.node-card.overlay-critical {
    fill: rgba(127, 29, 29, 0.35);
    stroke: rgba(248, 113, 113, 0.95);
}

.node-card.overlay-high {
    fill: rgba(124, 45, 18, 0.3);
    stroke: rgba(251, 146, 60, 0.9);
}

.node-card.overlay-medium {
    fill: rgba(92, 54, 8, 0.28);
    stroke: rgba(250, 204, 21, 0.88);
}

.node-card.overlay-low {
    fill: rgba(8, 47, 73, 0.3);
    stroke: rgba(125, 211, 252, 0.88);
}

.node-card.overlay-none {
    fill-opacity: 0.5;
}

.node-selected {
    stroke-width: 1.9;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.33));
}

.node-icon {
    fill: rgba(219, 234, 254, 0.95);
    stroke: rgba(30, 64, 175, 0.42);
    stroke-width: 0.7;
}

.node-icon-text {
    fill: #dbeafe;
    font-size: 8px;
    font-weight: 700;
}

.node-icon-glyph {
    stroke: #1d4ed8;
    fill: none;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.node-icon-glyph .icon-dot {
    fill: #1d4ed8;
    stroke: none;
}

.node-icon-glyph .icon-line {
    stroke: #1d4ed8;
    fill: none;
}

.node-name {
    fill: #0f172a;
    font-size: 10px;
    font-weight: 600;
}

.node-detail {
    fill: #475569;
    font-size: 9px;
}

.node-hit {
    fill: transparent;
    cursor: pointer;
}

.segment-lane {
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(2, 6, 23, 0.55);
    padding: 0.9rem;
}

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

.segment-lane h3 {
    margin: 0;
    font-size: 0.95rem;
}

.segment-lane p,
.segment-lane span {
    margin: 0.2rem 0 0;
    color: var(--muted-2);
    font-size: 0.75rem;
}

.segment-host-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.host-card {
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.72rem;
    background: rgba(15, 23, 42, 0.86);
}

.host-card.sev-critical {
    border-color: rgba(239, 68, 68, 0.6);
}

.host-card.sev-high {
    border-color: rgba(249, 115, 22, 0.5);
}

.host-card.sev-low {
    border-color: rgba(34, 197, 94, 0.4);
}

.host-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
}

.host-head strong {
    font-size: 0.82rem;
}

.host-head em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.host-card p {
    margin: 0.42rem 0;
    color: var(--muted-2);
    font-size: 0.72rem;
}

.host-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.host-metrics span {
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    font-size: 0.68rem;
    color: var(--muted);
}

.table-panel {
    margin: 1.25rem 1.75rem 1.75rem;
}

.settings-collapsible > summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.9rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.65rem;
    padding: 0.55rem 0.72rem;
    background: rgba(15, 23, 42, 0.38);
}

.settings-collapsible[open] > summary {
    color: var(--accent-strong);
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(6, 182, 212, 0.08);
}

.settings-collapsible > summary::-webkit-details-marker {
    display: none;
}

.table-wrap {
    overflow: auto;
    border-radius: 0.9rem;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.58);
}

.table-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    align-items: center;
}

.table-controls input:not([type="checkbox"]),
.table-controls select {
    min-height: 2.3rem;
    border-radius: 0.62rem;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.85);
    color: var(--ink);
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
}

.table-controls button {
    min-height: 2.3rem;
}

.connector-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.connector-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.connector-form-grid input,
.connector-form-grid select {
    min-height: 2.35rem;
    border-radius: 0.62rem;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.85);
    color: var(--ink);
    padding: 0.45rem 0.7rem;
}

.connector-form-grid select[multiple] {
    min-height: 7.2rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.full-span {
    grid-column: 1 / -1;
}

.connector-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-danger-sm {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 4px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
}
.btn-danger-sm:hover {
    background: var(--danger);
    color: #fff;
}

.table-controls input:not([type="checkbox"]) {
    flex: 1;
    min-width: 220px;
}

.table-controls input[type="checkbox"] {
    width: 0.95rem;
    height: 0.95rem;
    min-height: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--accent-strong);
}

.table-controls select {
    min-width: 180px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.sla-overdue-row {
    box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.85);
    background: rgba(127, 29, 29, 0.14);
}

.sla-overdue-row td {
    background: transparent;
}

.sync-runs-chart {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: rgba(2, 6, 23, 0.45);
}

.sync-runs-bar-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 0.6rem;
}

.sync-runs-label {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sync-runs-bar {
    display: inline-block;
    height: 0.48rem;
    border-radius: 999px;
}

.sync-runs-bar-completed {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.9), rgba(74, 222, 128, 0.8));
}

.sync-runs-bar-failed {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.9), rgba(248, 113, 113, 0.86));
}

.sync-runs-bar-skipped {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.9), rgba(251, 191, 36, 0.82));
}

.sync-runs-count {
    color: #e2e8f0;
    font-size: 0.8rem;
    text-align: right;
}

.data-table thead th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid var(--line);
    padding: 0.78rem 0.9rem;
}

.data-table code {
    display: inline-block;
    max-width: 34rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.74rem;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.45rem;
    padding: 0.16rem 0.36rem;
}

.data-table tbody td {
    padding: 0.82rem 0.9rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.7);
    color: #cbd5e1;
    font-size: 0.84rem;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.55);
}

.muted-cell {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted-2);
    font-size: 0.72rem;
}

.pill-cell {
    display: inline-flex;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.severity-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.52rem;
    font-size: 0.72rem;
    border: 1px solid var(--line-soft);
    text-transform: capitalize;
}

.severity-critical,
.severity-completed,
.severity-high {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
}

.severity-medium,
.severity-manual_review,
.severity-degraded,
.severity-skipped,
.severity-mitigating {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.35);
    background: rgba(249, 115, 22, 0.12);
}

.severity-low,
.severity-open,
.severity-active,
.severity-accepted {
    color: #67e8f9;
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.12);
}

.severity-resolved {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

.json-cell {
    max-width: 380px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.72rem;
}

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

.button-link,
button,
.secondary-button,
.ghost-link,
.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.72rem 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 160ms ease;
}

.button-link,
button,
.secondary-button {
    background: var(--accent);
    color: #04111c;
}

.ghost-link,
.ghost {
    background: rgba(15, 23, 42, 0.78);
    color: var(--muted);
    border-color: var(--line);
}

.secondary-button {
    background: var(--bg-soft);
    color: var(--ink);
    border-color: var(--line);
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.inline-form-dark input {
    flex: 1;
}

.inline-form-dark select {
    flex: 1;
    min-height: 2.5rem;
    border-radius: 0.7rem;
    border: 1px solid #334155;
    background: #0b1220;
    color: var(--ink);
    padding: 0.62rem 0.8rem;
}

input {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border-radius: 0.7rem;
    border: 1px solid #334155;
    background: #0b1220;
    color: var(--ink);
}

input::placeholder {
    color: var(--muted-2);
}

input:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

label {
    display: block;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.84rem;
}

.login-page {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
    align-items: stretch;
}

.auth-aside,
.auth-panel {
    padding: 3rem;
}

.auth-aside {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.3rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 30%, rgba(6, 182, 212, 0.12), transparent 20%),
        radial-gradient(circle at 75% 70%, rgba(59, 130, 246, 0.1), transparent 18%),
        linear-gradient(180deg, #020617, #0b1120);
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.auth-aside > * {
    position: relative;
    z-index: 1;
}

.auth-aside h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    max-width: 12ch;
    line-height: 1.05;
}

.auth-aside p {
    max-width: 36rem;
}

.auth-feature-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.75rem;
}

.auth-panel {
    width: min(440px, 100%);
    background: var(--bg);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.16);
}

.auth-panel-header {
    margin-bottom: 1.5rem;
}

.auth-sso {
    width: 100%;
    margin-bottom: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--muted-2);
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.error-banner {
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-bottom: 1rem;
}

.success-banner {
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.24);
    margin-bottom: 1rem;
}

.context-banner {
    margin-bottom: 0.8rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: rgba(15, 23, 42, 0.62);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.context-banner a {
    color: var(--accent-strong);
    text-decoration: none;
}

.context-banner a:hover {
    text-decoration: underline;
}

.data-table code {
    color: #cbd5e1;
    font-size: 0.72rem;
    white-space: pre-wrap;
}

.vuln-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.vuln-open:hover strong {
    color: var(--accent-strong);
}

.vuln-tabs {
    display: inline-flex;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.vuln-priority-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.vuln-priority-card {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.65);
    padding: 0.7rem;
}

.vuln-priority-card h3 {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vuln-priority-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.vuln-priority-card li {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: flex-start;
}

.vuln-priority-card li em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.72rem;
}

.vuln-pane {
    display: none;
}

.vuln-pane.active {
    display: block;
}

.asset-open {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.asset-open:hover strong {
    color: var(--accent-strong);
}

.asset-modal-open,
.asset-total-open {
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.asset-modal-open:hover strong,
.asset-total-open:hover {
    text-decoration: underline;
}

.asset-severity-open {
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.asset-severity-open:hover {
    text-decoration: underline;
}

.asset-vuln-link {
    color: var(--accent-strong);
    text-decoration: none;
}

.asset-vuln-link:hover {
    text-decoration: underline;
}

.finding-timeline-open {
    margin-left: 0.5rem;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.8);
    color: var(--accent-strong);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.66rem;
}

.finding-action-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-left: 0.4rem;
}

.finding-workflow-open {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 0.2rem 0.48rem;
    font-size: 0.66rem;
}

.finding-workflow-open:hover,
.finding-timeline-open:hover {
    border-color: rgba(34, 211, 238, 0.34);
    color: var(--accent-strong);
}

.finding-timeline-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.finding-timeline-item {
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.55rem;
}

.finding-timeline-item header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.finding-timeline-item header span {
    color: var(--muted);
    font-size: 0.72rem;
}

.finding-timeline-item p {
    margin: 0.4rem 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.finding-timeline-item pre {
    margin: 0;
    border: 1px solid var(--line-soft);
    border-radius: 0.45rem;
    background: rgba(2, 6, 23, 0.65);
    padding: 0.45rem;
    font-size: 0.68rem;
    color: #cbd5e1;
    overflow: auto;
}

.sources-sync-widget {
    background: rgba(8, 15, 30, 0.82);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sources-sync-widget strong {
    font-size: 0.96rem;
}

.sources-sync-widget span {
    color: var(--muted-2);
    font-size: 0.82rem;
}

.row-focus {
    animation: rowPulse 1.6s ease;
}

@keyframes rowPulse {
    0% {
        background: rgba(6, 182, 212, 0.28);
    }
    100% {
        background: transparent;
    }
}

.vuln-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 90;
}

.vuln-modal.open {
    display: block;
}

.vuln-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
}

.vuln-modal-panel {
    position: relative;
    margin: 9vh auto 0;
    width: min(760px, calc(100% - 2rem));
    max-height: 80vh;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(8, 15, 30, 0.98);
    padding: 1rem;
}

.vuln-modal-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.vuln-modal-panel h3 {
    margin: 0;
    font-size: 1rem;
}

.vuln-asset-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.45rem;
}

.vuln-asset-list li {
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.75);
    color: var(--ink);
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
}

.vuln-asset-list a {
    color: var(--accent-strong);
    text-decoration: none;
}

.vuln-asset-list a:hover {
    text-decoration: underline;
}

.form-footnote {
    margin: 1rem 0 0;
    color: var(--muted);
}

.form-footnote a {
    color: var(--accent-strong);
    font-weight: 600;
}

.narrow {
    max-width: 720px;
}

.security-panel {
    margin: 1.5rem 1.75rem;
}

.compact-form {
    max-width: 26rem;
}

.stack,
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

@media (max-width: 1080px) {
    .page-topbar {
        height: auto;
        align-items: flex-start;
        gap: 0.85rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .auth-shell {
        flex-direction: column;
    }

    .auth-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--line);
        box-shadow: none;
    }

    .auth-aside h1 {
        max-width: 16ch;
    }
}

@media (max-width: 720px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        overflow-y: visible;
    }

    .page-topbar,
    .hero-banner,
    .dashboard-grid,
    .bolt-stats,
    .topology-frame,
    .security-panel,
    .table-panel {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .page-topbar {
        height: auto;
        padding: 1rem;
        align-items: flex-start;
    }

    .page-topbar h1 {
        font-size: 1.45rem;
    }

    .topbar-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .status-chip {
        max-width: 100%;
    }

    .panel-heading {
        gap: 0.6rem;
    }

    .hero-banner,
    .page-topbar,
    .topology-toolbar,
    .topbar-actions,
    .mini-metrics,
    .auth-shell,
    .segment-lane header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-user {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar-user form {
        justify-self: start;
    }

    .dashboard-grid-main {
        grid-template-columns: 1fr;
    }

    .topology-workspace {
        grid-template-columns: 1fr;
    }

    .topology-subtoolbar {
        padding: 0.55rem 0.75rem;
    }

    .topology-toolbar {
        padding: 0.65rem 0.75rem;
    }

    .topology-controls {
        width: 100%;
    }

    .topology-toggle,
    .topology-filter {
        min-height: 2.2rem;
    }

    .toolbar-sep {
        display: none;
    }

    .topology-dropdown {
        width: 100%;
    }

    .topology-dropdown > .topology-filter {
        width: 100%;
        justify-content: center;
    }

    .topology-dropdown-menu {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .zoom-group {
        width: 100%;
    }

    .zoom-group .topology-filter {
        flex: 1;
    }

    .topology-details {
        border-left: none;
        border-top: 1px solid var(--line);
        max-height: 38vh;
    }

    .topology-search {
        min-width: 0;
        width: 100%;
    }

    .severity-row {
        grid-template-columns: 1fr;
    }

    .severity-pct {
        text-align: left;
    }

    .auth-panel,
    .auth-aside {
        width: 100%;
        padding: 1.5rem;
    }

    .auth-aside {
        min-height: 40vh;
    }

    .auth-aside h1 {
        font-size: 1.9rem;
    }

    .brand-logo-auth {
        width: 12rem;
        height: 3.95rem;
        object-position: 50% 50%;
    }

    .data-table {
        min-width: 760px;
    }

    .table-controls input,
    .table-controls select {
        width: 100%;
        min-width: 0;
    }

    .table-controls button {
        width: 100%;
    }

    .connector-form-grid {
        grid-template-columns: 1fr;
    }

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

    .context-banner {
        align-items: flex-start;
    }

    .vuln-priority-grid {
        grid-template-columns: 1fr;
    }

    .welcome-actions {
        width: 100%;
    }

    .welcome-action-link {
        width: 100%;
        justify-content: center;
    }

    .pw-show-toggle {
        right: 0.4rem;
    }

    .sidebar-toggle { display: none; }
}

/* —— Clickable stat cards —— */
a.stat-card {
    display: block;
    text-decoration: none;
    cursor: pointer;
}
a.stat-card:hover {
    border-color: rgba(6, 182, 212, 0.36);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08), 0 24px 60px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
    transition: transform 160ms ease, border-color 160ms ease;
}

/* —— Severity bar percentage label —— */
.severity-pct {
    font-style: normal;
    font-size: 0.68rem;
    color: var(--muted-2);
    font-weight: 400;
    min-width: 2.4rem;
    text-align: right;
}

.severity-row {
    grid-template-columns: 110px 1fr 36px 2.4rem;
}

/* —— Gauge legend —— */
.gauge-legend {
    font-size: 0.69rem;
    color: var(--muted-2);
    text-align: center;
    margin-top: 0.35rem;
    line-height: 1.6;
}

/* —— Welcome strip quick-action links —— */
.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.welcome-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(6, 182, 212, 0.07);
    transition: 150ms ease;
}

.welcome-action-link:hover {
    background: rgba(6, 182, 212, 0.14);
    border-color: rgba(34, 211, 238, 0.4);
}

/* —— Recommendation / risk list icons —— */
.action-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.action-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.action-list-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    opacity: 0.65;
}

/* —— Search / NLQ placeholder —— */
.search-placeholder {
    color: var(--muted-2);
    font-size: 0.82rem;
    margin: 0.5rem 0 0;
    font-style: italic;
}

/* —— Vuln tabs underline style —— */
.vuln-tabs {
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.85rem;
    gap: 0;
}

.vuln-tabs .topology-filter {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    padding: 0.55rem 1rem;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: -1px;
}

.vuln-tabs .topology-filter:hover {
    color: var(--ink);
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--line);
}

.vuln-tabs .topology-filter.active {
    color: var(--accent-strong);
    border-bottom-color: var(--accent);
    background: transparent;
}

/* —— Priority card discrete badges —— */
.priority-item-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.priority-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.priority-badge {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    color: var(--muted);
}

/* —— Workflow actions visible in title cell —— */
.finding-action-group--title {
    margin-top: 0.35rem;
    margin-left: 0;
}

.finding-action-group--row {
    margin-top: 0.45rem;
    justify-content: flex-start;
}

/* —— Topology toolbar separator —— */
.toolbar-sep {
    width: 1px;
    height: 1.3rem;
    background: var(--line);
    flex-shrink: 0;
    margin: 0 0.2rem;
    align-self: center;
}

/* —— Export dropdown —— */
.topology-dropdown {
    position: relative;
    display: inline-flex;
}

.topology-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 9rem;
    background: rgba(8, 15, 30, 0.98);
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    padding: 0.3rem;
    z-index: 40;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.topology-dropdown.open .topology-dropdown-menu {
    display: flex;
}

.topology-dropdown-menu button {
    border-radius: 0.4rem;
    padding: 0.45rem 0.75rem;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 0.78rem;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: 120ms ease;
}

.topology-dropdown-menu button:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-strong);
}

/* —— Connector table expandable rows —— */
.connector-expand-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted-2);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 120ms ease;
    white-space: nowrap;
    margin-right: 0.35rem;
}

.connector-expand-btn:hover,
.connector-expand-btn.open {
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent-strong);
}

.connector-detail-row {
    display: none;
}

.connector-detail-row.open {
    display: table-row;
}

.connector-detail-cell {
    padding: 0.65rem 1rem 0.85rem;
    background: rgba(8, 15, 30, 0.55);
    border-bottom: 1px solid rgba(30, 41, 59, 0.7);
}

.connector-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.35rem 1.2rem;
}

.connector-detail-grid dt {
    color: var(--muted-2);
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.connector-detail-grid dd {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    color: #cbd5e1;
    word-break: break-all;
}

/* —— Connector form section labels —— */
.form-section-label {
    grid-column: 1 / -1;
    color: var(--muted-2);
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--line);
    margin-top: 0.4rem;
    font-weight: 600;
}

/* —— Password strength bar —— */
.pw-field-wrap {
    position: relative;
    width: 100%;
}

.pw-field-wrap input {
    padding-right: 2.6rem;
}

.pw-show-toggle {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--muted-2);
    padding: 0.25rem;
    cursor: pointer;
    line-height: 1;
    border-radius: 0.3rem;
    font-size: 0.78rem;
}

.pw-show-toggle:hover {
    color: var(--accent-strong);
}

.pw-strength-bar {
    height: 3px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
    margin-top: 0.3rem;
}

.pw-strength-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 200ms ease, background-color 200ms ease;
    width: 0%;
}

.pw-strength-label {
    font-size: 0.7rem;
    color: var(--muted-2);
    margin-top: 0.18rem;
    display: block;
}

/* —— MFA status banner —— */
.mfa-status-banner {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
}

/* —— Zoom button group —— */
.zoom-group {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    overflow: hidden;
}

.zoom-group .topology-filter {
    border: none;
    border-radius: 0;
    border-right: 1px solid var(--line);
    padding: 0.38rem 0.55rem;
    min-width: 2rem;
    text-align: center;
}

.zoom-group .topology-filter:last-child {
    border-right: none;
}

/* ——— Accessibility ——— */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ——— Back to top ——— */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--accent);
    color: #04111c;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    transform: translateY(8px);
    z-index: 80;
    padding: 0;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ——— Sidebar collapse ——— */
.sidebar-toggle {
    width: 100%;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    color: var(--muted);
    padding: 0.38rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 150ms ease;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent-strong);
    background: rgba(6, 182, 212, 0.08);
}

.sidebar--collapsed {
    width: 64px;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.sidebar--collapsed .brand-logo {
    display: none;
}

.sidebar--collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar--collapsed .nav-label {
    display: none;
}

.sidebar--collapsed .nav-link {
    justify-content: center;
    padding: 0.8rem;
}

.sidebar--collapsed .nav-group {
    border-color: transparent;
    background: transparent;
    padding: 0;
}

.sidebar--collapsed .nav-group-title {
    display: none;
}

@media (max-width: 1080px) {
    .nav-group {
        padding: 0.3rem 0.26rem;
    }

    .nav-link {
        padding: 0.72rem 0.8rem;
    }
}

.sidebar--collapsed .user-meta,
.sidebar--collapsed .sidebar-user form {
    display: none;
}

.sidebar--collapsed .sidebar-user {
    grid-template-columns: 1fr;
    justify-items: center;
}

/* ——— Distinct severity bar fills ——— */
.severity-fill-orange {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.severity-fill-amber {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

/* ——— Empty state ——— */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--muted);
    padding: 2rem 1rem;
}

.empty-state p {
    margin: 0 0 0.6rem;
}

.empty-state a {
    color: var(--accent-strong);
    text-decoration: none;
    font-size: 0.84rem;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* ——— Welcome strip ——— */
.welcome-strip {
    margin: 1rem 1.75rem 0.25rem;
    padding: 0.7rem 1.25rem;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.welcome-strip strong {
    color: var(--ink);
}

/* ── Identity page ─────────────────────────────────────────────────────────── */

.identity-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 0 1.75rem 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
}

.identity-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: color 140ms ease, border-color 140ms ease;
    margin-bottom: -1px;
}

.identity-tab-btn:hover {
    color: var(--ink);
}

.identity-tab-btn.active {
    color: var(--accent-strong);
    border-bottom-color: var(--accent-strong);
}

.identity-tab-panel {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.identity-tab-panel.hidden {
    display: none;
}

.inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.inline-toggle input[type="checkbox"] {
    accent-color: var(--accent-strong);
}

/* At-risk account row highlight */
.id-row--at-risk td:first-child::after {
    content: "at risk";
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Identity status badges */
.identity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid var(--line-soft);
}

.identity-badge--mfa {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
}

.identity-badge--no-mfa {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
}

.identity-badge--sso {
    color: #67e8f9;
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
}

.identity-badge--local {
    color: var(--muted);
    border-color: var(--line-soft);
    background: transparent;
}

/* IdP cards on the Providers tab */
.idp-card {
    border-top: 1px solid var(--line-soft);
    padding: 1.25rem 1.5rem 1.5rem;
}

.idp-card:first-of-type {
    border-top: none;
}

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

.idp-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.idp-sparkline {
    width: 74px;
    height: 20px;
    margin-left: 0.35rem;
}

.idp-sparkline polyline {
    fill: none;
    stroke: #60a5fa;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.idp-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* IdP type badge */
.idp-type-badge {
    display: inline-flex;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid var(--line-soft);
    background: rgba(15, 23, 42, 0.5);
    color: var(--muted);
}

.idp-type-okta { color: #fb923c; border-color: rgba(251, 146, 60, 0.35); background: rgba(251, 146, 60, 0.08); }
.idp-type-azure-ad { color: #60a5fa; border-color: rgba(96, 165, 250, 0.35); background: rgba(96, 165, 250, 0.08); }
.idp-type-google-workspace { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.idp-type-onelogin { color: #e879f9; border-color: rgba(232, 121, 249, 0.35); background: rgba(232, 121, 249, 0.08); }

.idp-apps-wrap {
    margin-top: 0.5rem;
}

.idp-apps-table {
    font-size: 0.82rem;
}

.protocol-pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.idp-no-apps {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0.5rem 0;
}

@media (max-width: 720px) {
    .identity-tabs {
        margin: 0 1rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    .idp-card {
        padding: 1rem;
    }
}

/* ── Secrets page ──────────────────────────────────────────────────────────── */

/* Tab bar — mirrors identity-tabs pattern */
.sec-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 0 1.75rem 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
}

.sec-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: color 140ms ease, border-color 140ms ease;
    margin-bottom: -1px;
}

.sec-tab-btn:hover { color: var(--ink); }

.sec-tab-btn.active {
    color: var(--accent-strong);
    border-bottom-color: var(--accent-strong);
}

.sec-tab-panel {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.sec-tab-panel.hidden { display: none; }

/* Secret provider card — mirrors idp-card pattern */
.secret-provider-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 0 1.75rem 1.25rem;
    overflow: hidden;
}

.secret-provider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.secret-provider-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
}

.secret-provider-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.secret-provider-table-wrap {
    margin: 0;
    border: none;
    border-radius: 0;
}

.sticky-provider-summary {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 15, 25, 0.92);
    backdrop-filter: blur(2px);
}

.secret-provider-table {
    border-top: none;
}

/* Source-system type badge */
.sec-src-type-badge {
    display: inline-flex;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--line-soft);
    background: rgba(15,23,42,0.5);
    color: var(--muted);
    white-space: nowrap;
}

.sec-src-type-cloud    { color: #67e8f9; border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.07); }
.sec-src-type-identity { color: #a5b4fc; border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.07); }
.sec-src-type-scm      { color: #86efac; border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.07); }
.sec-src-type-vault    { color: #fde68a; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.07); }
.sec-src-type-idp      { color: #fb923c; border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.07); }
.sec-src-type-saas     { color: #f9a8d4; border-color: rgba(244,114,182,0.35); background: rgba(244,114,182,0.07); }
.sec-src-type-other    { color: var(--muted); border-color: var(--line-soft); }

/* Redacted value displayed inline in value column */
.secret-redacted-value {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.72rem;
    color: #cbd5e1;
    letter-spacing: 0.04em;
}

/* Used-by cell — slightly smaller, wrap allowed */
.secret-used-by {
    font-size: 0.8rem;
    color: var(--muted);
    max-width: 240px;
}

/* Secret type badge */
.secret-type-badge {
    display: inline-flex;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid var(--line-soft);
    background: rgba(15,23,42,0.5);
    color: var(--muted);
    white-space: nowrap;
}

.secret-type-api_key        { color: #67e8f9; border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.07); }
.secret-type-oauth_token    { color: #a5b4fc; border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.07); }
.secret-type-service_account_key { color: #fb923c; border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.07); }
.secret-type-password       { color: #f9a8d4; border-color: rgba(244,114,182,0.35); background: rgba(244,114,182,0.07); }
.secret-type-ssh_key        { color: #86efac; border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.07); }
.secret-type-certificate    { color: #fde68a; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.07); }
.secret-type-webhook_secret { color: #94a3b8; border-color: rgba(148,163,184,0.25); background: rgba(148,163,184,0.05); }

/* Permission badge */
.secret-perm-badge {
    display: inline-flex;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid var(--line-soft);
    white-space: nowrap;
}

.secret-perm-read       { color: #86efac; border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.08); }
.secret-perm-write      { color: #fca5a5; border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); }
.secret-perm-read_write { color: #fdba74; border-color: rgba(249,115,22,0.35); background: rgba(249,115,22,0.08); }
.secret-perm-deploy     { color: #67e8f9; border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.08); }
.secret-perm-admin      { color: #fde68a; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); }
.secret-perm-rotate     { color: #a5b4fc; border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.08); }
.secret-perm-unknown    { color: var(--muted); border-color: var(--line-soft); }

/* Expiry cell */
.secret-expiry {
    font-size: 0.82rem;
    color: var(--muted);
}

.secret-expiry--expired {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #fecaca;
    font-weight: 600;
}

.secret-expiry--soon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #fef08a;
    font-weight: 500;
}

.rotation-age-chip {
    display: inline-flex;
    margin-left: 0.35rem;
    padding: 0.08rem 0.34rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.08);
    font-size: 0.64rem;
    font-weight: 600;
}

.rotation-age-chip--warn {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

.rotation-age-chip--stale {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

/* Row highlight for expired / rotation_due */
.sec-row--critical td {
    background: rgba(239,68,68,0.04);
}

.sec-row--warn td {
    background: rgba(251,191,36,0.035);
}

@media (max-width: 720px) {
    .secret-used-by { max-width: 160px; }
    .secret-redacted-value { font-size: 0.68rem; }
}

/* ── Applications page ────────────────────────────────────────────────────── */

.app-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 0 1.75rem 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
}

.app-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: color 140ms ease, border-color 140ms ease;
    margin-bottom: -1px;
}

.app-tab-btn:hover { color: var(--ink); }
.app-tab-btn.active { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }

.app-tab-panel { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.app-tab-panel.hidden { display: none; }

.app-type-badge {
    display: inline-flex;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid var(--line-soft);
    background: rgba(15,23,42,0.5);
    color: var(--muted);
    white-space: nowrap;
}

.app-type-saas          { color: #a5b4fc; border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.07); }
.app-type-on_premise    { color: #fb923c; border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.07); }
.app-type-website       { color: #67e8f9; border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.07); }
.app-type-api           { color: #86efac; border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.07); }
.app-type-cloud_service { color: #fde68a; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.07); }
.app-type-mobile        { color: #f9a8d4; border-color: rgba(244,114,182,0.35); background: rgba(244,114,182,0.07); }
.app-type-chat_assistant  { color: #a5b4fc; border-color: rgba(129,140,248,0.35); background: rgba(129,140,248,0.08); }
.app-type-coding_assistant { color: #67e8f9; border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.08); }
.app-type-model_platform  { color: #c4b5fd; border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.08); }
.app-type-inference_service { color: #86efac; border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.08); }
.app-type-self_hosted_model { color: #fb923c; border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.08); }
.app-type-mlops_pipeline { color: #fde68a; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); }

.app-provider-pill {
    display: inline-flex;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--line-soft);
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    white-space: nowrap;
}

.app-provider-aws        { color: #fde68a; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.06); }
.app-provider-azure      { color: #67e8f9; border-color: rgba(34,211,238,0.3); background: rgba(34,211,238,0.06); }
.app-provider-gcp        { color: #86efac; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.06); }
.app-provider-cloudflare { color: #fb923c; border-color: rgba(251,146,60,0.3); background: rgba(251,146,60,0.06); }
.app-provider-on-premise { color: #94a3b8; border-color: rgba(148,163,184,0.25); background: rgba(148,163,184,0.05); }
.app-provider-salesforce { color: #7dd3fc; border-color: rgba(14,165,233,0.3); background: rgba(14,165,233,0.06); }
.app-provider-github     { color: #d1d5db; border-color: rgba(156,163,175,0.25); background: rgba(156,163,175,0.05); }
.app-provider-atlassian  { color: #a5b4fc; border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.06); }
.app-provider-slack      { color: #f9a8d4; border-color: rgba(244,114,182,0.3); background: rgba(244,114,182,0.06); }
.app-provider-datadog    { color: #c4b5fd; border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.06); }
.app-provider-pagerduty  { color: #fca5a5; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }
.app-provider-microsoft  { color: #7dd3fc; border-color: rgba(14,165,233,0.3); background: rgba(14,165,233,0.06); }
.app-provider-openai     { color: #86efac; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.06); }
.app-provider-anthropic  { color: #fdba74; border-color: rgba(249,115,22,0.3); background: rgba(249,115,22,0.06); }
.app-provider-hugging-face { color: #fde68a; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.06); }

.vuln-mini-counts { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }

.vuln-mini {
    display: inline-flex;
    padding: 0.15rem 0.42rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid var(--line-soft);
}

.vuln-mini--critical { color: #fca5a5; border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.12); }
.vuln-mini--high     { color: #fdba74; border-color: rgba(249,115,22,0.35); background: rgba(249,115,22,0.1); }
.vuln-mini--medium   { color: #fde68a; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.09); }
.vuln-mini--low      { color: #86efac; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.07); }

.security-score-cell { display: flex; align-items: center; gap: 0.55rem; min-width: 100px; }

.score-bar-wrap {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    min-width: 50px;
}

.score-bar { height: 100%; border-radius: 999px; }
.score-bar--good   { background: #22c55e; }
.score-bar--medium { background: #f59e0b; }
.score-bar--poor   { background: #ef4444; }

.score-value { font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.score-good   { color: #86efac; }
.score-medium { color: #fde68a; }
.score-poor   { color: #fca5a5; }

.score-delta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4ch;
    padding: 0.1rem 0.34rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(148,163,184,0.07);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
}

.score-delta--up {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.score-delta--down {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

.col-score { min-width: 160px; }
.col-recs { min-width: 180px; }
.col-status { min-width: 112px; }

.recs-details { font-size: 0.8rem; }

.recs-summary {
    cursor: pointer;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    list-style: none;
    user-select: none;
}

.recs-open-btn {
    padding: 0.22rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(96,165,250,0.35);
    background: rgba(37,99,235,0.12);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.recs-open-btn:hover {
    border-color: rgba(96,165,250,0.55);
    color: #bfdbfe;
}

.recs-summary::-webkit-details-marker { display: none; }
.recs-summary::before { content: '\25B6  '; font-size: 0.6rem; vertical-align: middle; }
details[open] .recs-summary::before { content: '\25BC  '; }

.recs-list {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
    list-style: disc;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.55;
    max-width: 320px;
}

.recs-list li + li { margin-top: 0.25rem; }

.app-description {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.75rem;
    color: var(--muted-2);
    max-width: 280px;
    white-space: normal;
    line-height: 1.4;
}

.app-owner {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.72rem;
    color: var(--muted);
    font-style: italic;
}

.app-row--critical td { background: rgba(239,68,68,0.04); }
.app-row--warn td     { background: rgba(251,191,36,0.035); }
.app-row--muted td    { opacity: 0.65; }

.app-row--critical td:first-child,
.app-row--warn td:first-child,
.app-row--muted td:first-child {
    position: relative;
}

.app-row--critical td:first-child::before,
.app-row--warn td:first-child::before,
.app-row--muted td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
}

.app-row--critical td:first-child::before { background: #ef4444; }
.app-row--warn td:first-child::before { background: #f59e0b; }
.app-row--muted td:first-child::before { background: #64748b; }

.app-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.app-compare-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem;
    background: rgba(255,255,255,0.02);
}

.app-compare-card h4 {
    margin: 0 0 0.45rem;
    font-size: 0.86rem;
}

.app-compare-card p {
    margin: 0.22rem 0;
    color: var(--muted);
    font-size: 0.77rem;
}

.app-provider-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 0 1.75rem 1.25rem;
    overflow: hidden;
}

.app-provider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.app-provider-title { display: flex; align-items: center; gap: 0.65rem; font-size: 0.92rem; }
.app-provider-meta  { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.app-provider-table-wrap { margin: 0; border: none; border-radius: 0; }
.app-provider-table { border-top: none; }

.app-prov-type-badge {
    display: inline-flex;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--line-soft);
    background: rgba(15,23,42,0.5);
    color: var(--muted);
    white-space: nowrap;
}

.app-prov-type-cloud      { color: #67e8f9; border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.07); }
.app-prov-type-saas       { color: #a5b4fc; border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.07); }
.app-prov-type-cdn        { color: #fb923c; border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.07); }
.app-prov-type-on-premise { color: #94a3b8; border-color: rgba(148,163,184,0.25); background: rgba(148,163,184,0.05); }
.app-prov-type-foundation-model { color: #86efac; border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.07); }
.app-prov-type-platform { color: #67e8f9; border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.07); }
.app-prov-type-model-hub { color: #fde68a; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.07); }
.app-prov-type-self-hosted { color: #fb923c; border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.07); }
.app-prov-type-other      { color: var(--muted); border-color: var(--line-soft); }

.ai-score-breakdown-btn {
    margin-left: 0.25rem;
    padding: 0.2rem 0.42rem;
    border-radius: 8px;
    border: 1px solid rgba(96,165,250,0.35);
    background: rgba(37,99,235,0.12);
    color: #93c5fd;
    font-size: 0.66rem;
    font-weight: 600;
    cursor: pointer;
}

.ai-score-breakdown-btn:hover {
    border-color: rgba(96,165,250,0.55);
    color: #bfdbfe;
}

.ai-score-modal-panel {
    width: min(520px, calc(100vw - 2rem));
}

.ai-score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.ai-score-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.2rem 0.5rem;
    align-items: center;
    background: rgba(255,255,255,0.02);
    font-size: 0.78rem;
}

.ai-score-item small {
    grid-column: 1 / 2;
    font-size: 0.66rem;
}

.code-repo-meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.code-provider-stack {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.code-inline-metrics {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.78rem;
}

.code-inline-metrics strong {
    font-size: 0.92rem;
}

.code-meta-text {
    display: block;
    margin-top: 0.16rem;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.code-activity-state,
.code-sbom-pill {
    display: inline-flex;
    align-items: center;
    margin-top: 0.22rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.code-activity-state--active {
    color: #86efac;
    border-color: rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.08);
}

.code-activity-state--stale {
    color: #fca5a5;
    border-color: rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.08);
}

.code-sbom-pill--complete {
    color: #67e8f9;
    border-color: rgba(34,211,238,0.35);
    background: rgba(34,211,238,0.08);
}

.code-sbom-pill--partial {
    color: #fde68a;
    border-color: rgba(245,158,11,0.35);
    background: rgba(245,158,11,0.08);
}

.code-sbom-pill--missing {
    color: #fca5a5;
    border-color: rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.08);
}

.app-type-vpn { color: #93c5fd; border-color: rgba(96,165,250,0.35); background: rgba(59,130,246,0.08); }
.app-type-datacenter { color: #a7f3d0; border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); }
.app-type-hub { color: #fcd34d; border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.08); }
.app-type-operations { color: #c4b5fd; border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.08); }
.app-type-trunk { color: #fdba74; border-color: rgba(249,115,22,0.35); background: rgba(249,115,22,0.08); }
.app-type-staging { color: #67e8f9; border-color: rgba(6,182,212,0.35); background: rgba(6,182,212,0.08); }

.fw-pill {
    display: inline-flex;
    align-items: center;
    margin: 0.12rem 0.2rem 0.12rem 0;
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fw-pill--on,
.fw-pill--prevention,
.fw-pill--blocking {
    color: #86efac;
    border-color: rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.08);
}

.fw-pill--alert,
.fw-pill--monitoring {
    color: #fde68a;
    border-color: rgba(245,158,11,0.35);
    background: rgba(245,158,11,0.08);
}

.fw-pill--off {
    color: #fca5a5;
    border-color: rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.08);
}

.code-details-btn {
    margin-top: 0.45rem;
    padding: 0.2rem 0.46rem;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.3);
    background: rgba(15,23,42,0.55);
    color: #cbd5e1;
    font-size: 0.67rem;
    font-weight: 600;
    cursor: pointer;
}

.code-details-btn:hover {
    border-color: rgba(96,165,250,0.45);
    color: #dbeafe;
}

.code-details-modal-panel {
    width: min(920px, calc(100vw - 2rem));
}

.code-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.9rem;
    margin-top: 0.85rem;
}

.code-details-section h4 {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
}

.code-details-list {
    max-width: none;
    margin-left: 1.1rem;
}

.code-detail-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    font-size: 0.76rem;
}

.code-detail-kv + .code-detail-kv {
    margin-top: 0.45rem;
}

.code-detail-kv span {
    color: var(--muted);
}

.code-detail-kv strong {
    color: var(--text);
    font-size: 0.79rem;
}

.fw-policy-open {
    width: 100%;
    justify-content: space-between;
    border-radius: 8px;
    border-color: var(--line);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    padding: 0.45rem 0.55rem;
}

.fw-policy-open strong {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fw-policy-open:hover {
    border-color: rgba(96,165,250,0.4);
    background: rgba(37,99,235,0.08);
}

.fw-policy-open--allow strong {
    color: #86efac;
}

.fw-policy-open--deny strong {
    color: #fca5a5;
}

.compliance-evidence-list {
    margin: 0;
    padding-left: 1.05rem;
    display: grid;
    gap: 0.32rem;
}

.compliance-evidence-list li {
    margin: 0;
}

.compliance-evidence-list a {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 600;
}

.compliance-evidence-list a:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.compliance-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.compliance-status--good {
    color: #86efac;
    border-color: rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.08);
}

.compliance-status--warn {
    color: #fde68a;
    border-color: rgba(245,158,11,0.35);
    background: rgba(245,158,11,0.08);
}

.compliance-status--critical {
    color: #fca5a5;
    border-color: rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.08);
}

.compliance-owner-form {
    display: grid;
    gap: 0.38rem;
}

.compliance-owner-form label {
    display: grid;
    gap: 0.2rem;
}

.compliance-owner-form input {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--text);
    padding: 0.33rem 0.45rem;
    font-size: 0.74rem;
}

.compliance-owner-form .code-details-btn {
    margin-top: 0.12rem;
}

.code-deploy-status {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-deploy-status--healthy {
    color: #86efac;
    border-color: rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.08);
}

.code-deploy-status--degraded,
.code-deploy-status--failed,
.code-deploy-status--unknown {
    color: #fca5a5;
    border-color: rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.08);
}

@media (max-width: 820px) {
    .code-details-grid {
        grid-template-columns: 1fr;
    }
}

.ai-score-item strong {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.ai-score-item strong {
    font-size: 0.95rem;
    color: #bfdbfe;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
    .app-description { max-width: 180px; }
    .recs-list { max-width: 200px; }
    .score-bar-wrap { min-width: 30px; }
    .ai-score-grid { grid-template-columns: 1fr; }
}

/* Density mode for operational workflows */
.table-density-compact .data-table th,
.table-density-compact .data-table td {
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
}

.table-density-compact .table-controls {
    gap: 0.35rem;
}

.table-density-compact .app-description,
.table-density-compact .secret-used-by,
.table-density-compact .app-owner {
    font-size: 0.68rem;
}