/* Theme variables */
@font-face {
    font-family: "Gordita";
    src: local("Gordita Regular"), local("Gordita-Regular"), url("./fonts/gordita-regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
.feed-card__kev-action {
    margin-top: 14px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}
.feed-card__kev-action-label,
.feed-card__description-title,
.feed-card__exploit-links-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(190, 200, 255, 0.9);
    position: relative;
}
.feed-card__kev-action-label::before,
.feed-card__description-title::before,
.feed-card__exploit-links-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #6c63ff, #0d6efd);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}
.feed-card__kev-action-text {
    margin: 6px 0 0 0;
    font-size: 0.92rem;
    line-height: 1.4;
    color: rgba(232, 236, 255, 0.88);
}
.feed-card__exploit-links {
    margin-top: 10px;
}
.feed-card__exploit-links-label {
    margin: 0;
}
.feed-card__exploit-links-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.feed-card__exploit-entry {
    border: 1px solid rgba(123, 154, 235, 0.28);
    border-radius: 10px;
    background: rgba(20, 30, 52, 0.42);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.feed-card__exploit-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feed-card__exploit-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(111, 166, 255, 0.42);
    background: rgba(35, 72, 145, 0.35);
    color: rgba(210, 225, 255, 0.96);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    flex: 0 0 auto;
}
.feed-card__exploit-host {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(223, 233, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(50vw, 400px);
}
.feed-card__exploit-open {
    text-decoration: none;
    flex: 0 0 auto;
    height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid rgba(111, 166, 255, 0.5);
    background: rgba(35, 72, 145, 0.38);
    color: rgba(220, 231, 255, 0.96);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.feed-card__exploit-open:hover,
.feed-card__exploit-open:focus-visible {
    color: #f7fbff;
    border-color: rgba(145, 187, 255, 0.68);
    background: rgba(52, 95, 182, 0.54);
}
.feed-card__exploit-links-label--patch::before {
    background: linear-gradient(135deg, #5b8cff, #4b5f8d);
    box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.12);
}
.feed-card__patch-links {
    margin-top: 6px;
}
.feed-card__patch-summary {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
}
.feed-card__patch-total {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(115, 146, 219, 0.46);
    background: rgba(51, 73, 126, 0.34);
    color: rgba(224, 233, 255, 0.95);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.feed-card__patch-mix {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(190, 204, 236, 0.88);
}
.feed-card__patch-hosts {
    font-size: 0.74rem;
    color: rgba(210, 223, 252, 0.9);
    max-width: min(56vw, 460px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-card__patch-list {
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
    counter-reset: patch-ref;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.feed-card__patch-item {
    margin: 0;
    padding: 0;
}
.feed-card__patch-item-link {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(121, 149, 220, 0.22);
}
.feed-card__patch-item-link::before {
    counter-increment: patch-ref;
    content: counter(patch-ref) ".";
    flex: 0 0 auto;
    color: rgba(165, 188, 236, 0.78);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.feed-card__patch-item-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(223, 233, 255, 0.94);
    font-size: 0.76rem;
    font-weight: 600;
}
.feed-card__patch-item-meta {
    flex: 0 0 auto;
    color: rgba(167, 184, 222, 0.84);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
}
.feed-card__patch-item-link:hover .feed-card__patch-item-title,
.feed-card__patch-item-link:focus-visible .feed-card__patch-item-title {
    color: #f5f9ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.feed-card__patch-item-link:hover .feed-card__patch-item-meta,
.feed-card__patch-item-link:focus-visible .feed-card__patch-item-meta {
    color: rgba(198, 216, 255, 0.92);
}
.feed-card__patch-more {
    margin: 6px 0 0 0;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(184, 198, 232, 0.88);
}
:root {
  --content-font: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --bg: #101214;
  --panel: #16191d;
  --card: #1b1f24;
  --surface: #22262d;
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --primary: #0d6efd;
  --accent: #6c63ff;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --purple: #8b5cf6;
  --panel-strong-bg: rgba(17, 21, 34, 0.95);
  --panel-strong-border: rgba(255, 255, 255, 0.07);
  --panel-strong-radius: 14px;
  --panel-strong-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
  --shadow: 0 10px 24px rgba(0,0,0,0.35);
  --radius: 8px;
  --radius-sm: 6px;
  /* Keep panels bounded to a sane width without tying layout to viewport math */
  --content-max-width: 1760px;
}
/* Ensure padding doesn't cause horizontal overflow */
*, *::before, *::after { box-sizing: border-box; }
/* Global animations */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dashboardSlideIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dashboardFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dashboard-entering .sidebar {
  animation: dashboardSlideIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.dashboard-entering .app-main {
  animation: dashboardFadeUp 0.54s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
@keyframes subtlePulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
  50% { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32); }
}
@keyframes sparkGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.08); }
}
/* Estilos globales */
body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.theme-light {
    --bg: #e8eef8;
    --panel: #f2f5fb;
    --card: #f4f7fc;
    --surface: #eaf0fa;
    --text: #0f172a;
    --muted: #4a5a72;
    --panel-strong-bg: rgba(244, 247, 252, 0.97);
    --panel-strong-border: rgba(15, 23, 42, 0.13);
    --panel-strong-shadow: 0 14px 30px rgba(30, 50, 90, 0.1);
    --shadow: 0 10px 22px rgba(30, 50, 90, 0.1);
    --filter-input-bg: rgba(248, 250, 255, 0.96);
    --filter-input-border: rgba(15, 30, 60, 0.18);
    --filter-arrow: #4a5a72;
    --filter-scroll-thumb: rgba(59, 130, 246, 0.45);
    --filter-scroll-track: rgba(228, 236, 250, 0.9);
    color-scheme: light;
}

body.theme-light .app-shell {
    background: linear-gradient(180deg, #e4ecf7 0%, #dce5f2 100%);
}

body.theme-light .sidebar {
    --sidebar-divider-color: rgba(71, 85, 105, 0.25);
    background: linear-gradient(165deg, rgba(240, 244, 252, 0.98), rgba(228, 236, 250, 0.98));
    border-right: 1px solid rgba(15, 30, 60, 0.1);
    box-shadow: 0 14px 28px rgba(20, 40, 80, 0.08);
}

body.theme-light .sidebar__tagline {
    color: rgba(48, 62, 84, 0.78);
}

body.theme-light .sidebar .nav-button {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #334155;
}

body.theme-light .sidebar .nav-button::before {
    background: #5d7eff;
}

body.theme-light .sidebar .nav-button:hover,
body.theme-light .sidebar .nav-button:focus-visible {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #0f172a;
}

body.theme-light .sidebar .nav-button.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #0b1730;
}

body.theme-light .sidebar .nav-button.active::before {
    background: linear-gradient(180deg, #4f46e5 0%, #2563eb 100%);
}

body.theme-light .icon-button {
    background: linear-gradient(145deg, rgba(242, 246, 254, 0.98), rgba(232, 239, 250, 0.98));
    border-color: rgba(15, 30, 60, 0.18);
    color: #1f2d43;
    box-shadow: 0 6px 16px rgba(20, 40, 80, 0.08);
}

body.theme-light .icon-button:hover,
body.theme-light .icon-button:focus-visible {
    border-color: rgba(59, 100, 200, 0.45);
    box-shadow: 0 8px 20px rgba(40, 70, 160, 0.14);
}

body.theme-light .settings-container {
    background: rgba(240, 244, 252, 0.95);
    border-color: rgba(15, 30, 60, 0.12);
}

body.theme-light .page-title {
    color: #0f172a;
}
/* Login + OTP */
#loginForm {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: stretch;
    background:
        radial-gradient(circle at 20% 20%, rgba(108, 99, 255, 0.12), transparent 32%),
        radial-gradient(circle at 80% 0%, rgba(13, 110, 253, 0.1), transparent 26%),
        linear-gradient(160deg, #0b0e14 0%, #0f1119 35%, #0a0d14 100%);
}
.auth-shell {
    display: grid;
    grid-template-columns: minmax(580px, 1.4fr) minmax(420px, 1fr);
    min-height: 100vh;
    align-items: stretch;
}
.auth-visual-panel {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    gap: 0;
    color: #eaf0ff;
    background: #040408;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
    min-height: 100vh;
    overflow: hidden;
}
@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0px); }
}
.auth-visual__headline-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
}
.auth-visual__eyebrow {
    margin: 0 0 18px 0;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(108, 99, 255, 0.85);
    font-weight: 600;
    opacity: 0;
    animation: authFadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.auth-visual__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    font-family: "Gordita", "Manrope", "Segoe UI", sans-serif;
}
.auth-visual__title-line {
    display: block;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: rgba(226, 232, 255, 0.95);
    opacity: 0;
    animation: authFadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.auth-visual__title-line:nth-child(1) { animation-delay: 0.38s; }
.auth-visual__title-line:nth-child(2) { animation-delay: 0.54s; }
.auth-visual__title-line:nth-child(3) { animation-delay: 0.70s; }
.auth-visual__title-line:nth-child(4) { animation-delay: 0.86s; }
.auth-visual__title-line--accent {
    color: #6c63ff;
    font-style: italic;
}
.auth-visual-panel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 38%;
    height: 12%;
    z-index: 2;
    background: linear-gradient(to bottom, #040408 0%, transparent 100%);
    pointer-events: none;
}
.auth-visual__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 255, 0.9);
    width: fit-content;
}
.auth-visual__headline {
    margin: 0;
    font-size: clamp(2rem, 2.6vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.auth-visual__subtitle {
    margin: 6px 0 0 0;
    color: rgba(226, 232, 255, 0.82);
    font-size: 1rem;
    max-width: 520px;
}
.auth-visual__placeholder {
    margin: 0;
    min-height: 100%;
    height: 100%;
    width: 100%;
    border-radius: 0;
    border: none;
    background: none;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}
.auth-visual__image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 58%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: contrast(1.06) saturate(1.08) brightness(0.95);
}
.auth-visual-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, transparent 70%, #040408 100%),
        linear-gradient(to bottom, transparent 35%, rgba(4, 4, 8, 0.15) 55%, rgba(4, 4, 8, 0.6) 100%);
    pointer-events: none;
}
.auth-form-panel {
    padding: clamp(36px, 5vw, 72px);
    background:
        radial-gradient(circle at 22% 18%, rgba(108, 99, 255, 0.2), transparent 34%),
        radial-gradient(circle at 82% 22%, rgba(13, 110, 253, 0.16), transparent 28%),
        linear-gradient(185deg, #0f1a30 0%, #0b111d 55%, #0b0f18 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    position: relative;
    align-items: center;
}
.auth-form__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 420px;
    margin: -24px auto 0 auto;
}
.auth-eyebrow {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.auth-title {
    margin: 0;
    font-size: clamp(1.9rem, 2.4vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.auth-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}
.auth-subtitle--inline {
    margin: 0 0 4px 0;
    width: 100%;
}
.auth-form__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}
.auth-logo {
    max-height: 144px;
    max-width: 360px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
#otpPanel .auth-form__header {
    margin-top: -48px;
    align-items: flex-start;
    text-align: left;
}
#otpPanel .auth-eyebrow {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}
.auth-label {
    font-size: 0.95rem;
    color: rgba(230, 233, 239, 0.82);
    font-weight: 600;
}
.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(12, 14, 18, 0.15);
    background: #ffffff;
    color: #0b0f18;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
/* Oculta el icono de ojo nativo de algunos navegadores (Edge) para evitar duplicados con el bot�n custom */
.auth-form input::-ms-reveal,
.auth-form input::-ms-clear {
    display: none;
}
.auth-input-group {
    position: relative;
    width: 100%;
}
.auth-input-group input {
    padding-right: 38px;
}
.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: #9aa4b2;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.auth-password-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: opacity 0.2s ease;
}
.auth-password-toggle[aria-pressed="true"]::after {
    opacity: 0.8;
}
.auth-password-toggle[aria-pressed="true"] {
    color: #0d6efd;
}
.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: #6b7486;
    border-color: transparent;
    background: rgba(0, 0, 0, 0.02);
    outline: none;
}
.auth-password-toggle__icon {
    width: 16px;
    height: 16px;
    display: block;
}
.auth-form input:focus {
    outline: none;
    border-color: rgba(108, 99, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.16);
    transform: translateY(-1px);
}
#otpPanel .auth-form input {
    background: #ffffff;
    color: #0b0f18;
    border: 1px solid rgba(12, 14, 18, 0.15);
}
#otpPanel .auth-form input::placeholder {
    color: rgba(11, 15, 24, 0.6);
}
.auth-form > button {
    margin-top: 6px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c63ff 0%, #0d6efd 100%);
    color: #fefefe;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.auth-form > button:hover,
.auth-form > button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.24);
    outline: none;
}
.auth-actions {
    display: flex;
    justify-content: flex-end;
}
.auth-actions--center {
    justify-content: center;
}
.auth-dev-jump {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
.auth-link-button {
    background: transparent;
    color: #9fb6ff;
    border: 1px dashed rgba(159, 182, 255, 0.4);
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.auth-link-button:hover,
.auth-link-button:focus-visible {
    color: #ffffff;
    border-color: rgba(159, 182, 255, 0.8);
    transform: translateY(-1px);
    outline: none;
}
.auth-back {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(180, 190, 230, 0.55);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}
.auth-back:hover,
.auth-back:focus-visible {
    color: rgba(226, 232, 255, 0.9);
    transform: translateX(-3px);
    outline: none;
}
#forgotPasswordLink {
    color: #9fb6ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
#forgotPasswordLink:hover,
#forgotPasswordLink:focus-visible {
    color: #dfe6ff;
    text-decoration: underline;
    outline: none;
}
.auth-error {
    margin: 6px 0 0;
    min-height: 1.2rem;
    font-size: 0.85rem;
    color: #fca5a5;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.auth-error--visible {
    opacity: 1;
}
#otpPanel,
#forgotPanel {
    width: 100%;
    min-height: 100vh;
    display: block;
    background:
        radial-gradient(circle at 20% 20%, rgba(108, 99, 255, 0.12), transparent 32%),
        radial-gradient(circle at 80% 0%, rgba(13, 110, 253, 0.1), transparent 26%),
        linear-gradient(160deg, #0b0e14 0%, #0f1119 35%, #0a0d14 100%);
}
@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-visual-panel {
        min-height: 320px;
    }
}
@media (max-width: 640px) {
    #loginForm {
        padding: 0;
    }
    .auth-visual__placeholder {
        min-height: 280px;
    }
}
/* Layout */
.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  --sidebar-divider-color: rgba(160, 175, 218, 0.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 16px 18px 16px;
  background: linear-gradient(165deg, rgba(24, 28, 39, 0.95), rgba(15, 18, 26, 0.9));
  border-right: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  box-shadow: 0 18px 28px rgba(0,0,0,0.4);
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar__logo {
  height: 96px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.sidebar__logo--vuloop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: radial-gradient(circle at 25% 25%, #78a6ff, #3a4b79 60%), linear-gradient(140deg, rgba(255,255,255,0.08), rgba(0,0,0,0.12));
  color: #f6f8ff;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.sidebar__texts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar__acronym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(13,110,253,0.18);
  border: 1px solid rgba(118,166,255,0.35);
  color: #f2f5ff;
  font-weight: 700;
  letter-spacing: 0.12em;
  width: fit-content;
}
.sidebar__tagline {
  margin: 0;
  color: rgba(210,218,240,0.72);
  font-size: 0.9rem;
  line-height: 1.3;
}
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar .nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
  padding: 9px 10px 9px 10px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: rgba(223, 229, 255, 0.76);
  box-shadow: none;
  letter-spacing: 0.02em;
  text-transform: none;
}
.nav-button__label {
  flex: 1;
  min-width: 0;
}
.nav-badge {
  flex-shrink: 0;
  width: 38px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(160, 180, 230, 0.5);
  transition: color 0.2s ease;
}
.sidebar .nav-button:hover .nav-badge,
.sidebar .nav-button:focus-visible .nav-badge {
  color: rgba(180, 200, 255, 0.75);
}
.sidebar .nav-button.active .nav-badge {
  color: rgba(200, 215, 255, 0.85);
}
.nav-button__icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.sidebar .nav-button:hover .nav-button__icon,
.sidebar .nav-button:focus-visible .nav-button__icon {
  opacity: 1;
}
.sidebar .nav-button.active .nav-button__icon {
  opacity: 1;
}
.sidebar #dashboardButton::after,
.sidebar #remediationButton::after,
.sidebar #assetsButton::after,
.sidebar #settingsButton::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 6px;
  bottom: -6px;
  height: 1px;
  background: var(--sidebar-divider-color);
  pointer-events: none;
}
.sidebar .nav-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #8ca2ff;
  opacity: 0.85;
  transition: height 0.2s ease, background 0.2s ease;
}
.sidebar .nav-button:hover,
.sidebar .nav-button:focus-visible {
  transform: translateX(3px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #f7f9ff;
  outline: none;
}
.sidebar .nav-button:hover::before,
.sidebar .nav-button:focus-visible::before {
  height: 56%;
}
.sidebar .nav-button.active {
  color: #ffffff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.sidebar .nav-button.active::before {
  height: 72%;
  background: linear-gradient(180deg, #8ca2ff 0%, #b18cff 100%);
}
.app-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
  padding: 18px clamp(10px, 1.5vw, 20px);
  font-family: var(--content-font);
  position: relative;
}

.app-main > * {
  min-width: 0;
}

.app-main__tenant-brand {
  position: absolute;
  top: 12px;
  right: clamp(10px, 1.5vw, 20px);
  z-index: 3;
  display: none;
  width: fit-content;
  max-width: min(420px, 42vw);
  min-width: 0;
  pointer-events: none;
}

body.dashboard-mode .app-main__tenant-brand:not([hidden]) {
  display: flex;
  justify-content: flex-end;
}

.app-main__tenant-brand-logo {
  display: block;
  width: auto;
  height: clamp(52px, 7vh, 96px);
  max-height: 96px;
  max-width: min(460px, 46vw);
  object-fit: contain;
  object-position: right center;
}

.dashboard-entering .app-main__tenant-brand,
.dashboard-entering .app-main__tenant-brand-logo {
  animation: none !important;
  transform: none !important;
}

.app-main button,
.app-main input,
.app-main select,
.app-main textarea {
  font-family: inherit;
}
@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sidebar__nav .nav-button {
    width: auto;
  }
  .sidebar #dashboardButton::after,
  .sidebar #remediationButton::after,
  .sidebar #assetsButton::after,
  .sidebar #settingsButton::after {
    content: none;
  }

  .app-main__tenant-brand {
    position: static;
    align-self: flex-end;
    max-width: min(260px, 62vw);
    margin-top: -4px;
    margin-bottom: 4px;
  }

  .app-main__tenant-brand-logo {
    height: clamp(44px, 11vw, 72px);
    max-height: 72px;
    max-width: min(300px, 70vw);
  }
}
.page-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 10px 0 0 0;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  margin: 0 0 0 auto;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideIn .55s ease forwards .08s;
  animation-fill-mode: forwards;
}
.nav-bar .nav-button {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  margin: 0;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 16px rgba(13,110,253,0.18);
}
.nav-bar .nav-button:disabled {
  opacity: 1;
  cursor: default;
}
.nav-bar .nav-button.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(90, 106, 234, 0.4);
  transform: translateY(-1px);
}
.nav-bar .nav-button.active .tooltip {
  opacity: 1;
}
#statText {
    flex: 1;
    text-align: center;
    font-size: 1em;
    padding: 20px 20px; /* AÃ±ade padding para separaciÃ³n visual */
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    /*order: 3; /* Posiciona el statText debajo en la visualizaciÃ³n */
}
#statText p span {
    font-weight: bold;
}
/* Contenedor de Feeds */
.feed-container {
  width: 100%;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  align-items: start;
  gap: 14px;
  margin: 16px auto 24px;
    max-height: clamp(480px, calc(100vh - 180px), 900px);
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}
.feed-container,
.impacted-assets-list,
.asset-table-wrapper {
  overscroll-behavior: auto;
}
.feed-container::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 8px; }
.feed-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 8px; }
.feed-container::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }
.feed-container { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.28) rgba(255,255,255,0.06); }
.feed-item {
    margin-bottom: 0;
    padding: 16px 18px;
    border-bottom: none;
    text-align: left;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)) , var(--card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feed-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.12);
}
.feed-item h2 { margin: 0 0 8px 0; font-size: 1.05rem; color: var(--text); }
.feed-item h2 {
    margin: 0;
    font-size: 1.5em;
    color: #ff3e3e; /* Color rojo consistente con la cabecera */
    margin-bottom: 5px;
}
.feed-item p {
    margin: 10px 0;
    font-size: 1em;
    color: #ccc;
}
.feed-item a {
    color: #992525;
    text-decoration: none;
    font-weight: bold;
}
.feed-item a:hover {
    text-decoration: underline;
    color: #f6ebeb; /* Tono mÃ¡s claro de rojo al pasar el mouse */
}
.feed-date {
    font-size: 0.9em;
    color: #ccc; /* Un gris claro para complementar los otros colores */
    margin-bottom: 10px;
    font-style: italic; /* Para diferenciar visualmente la fecha */
}
/* Match summary cards */
.match-summary {
    display: grid;
    grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    gap: 24px;
    margin: 16px auto 6px;
    width: 100%;
    max-width: var(--content-max-width);
}
.match-summary .match-card {
    height: auto;
    min-height: 0;
    padding: 24px;
    gap: 16px;
}
.match-column-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    align-self: start;
}
.match-column-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    align-self: start;
}
.match-card {
    background: var(--panel-strong-bg);
    border-radius: var(--panel-strong-radius);
    border: 1px solid var(--panel-strong-border);
    box-shadow: var(--panel-strong-shadow);
    padding: 24px;
    flex: 1 1 clamp(320px, 45%, 460px);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    opacity: 1;
    transform: none;
    animation: none;
    position: relative;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.panel-header__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.panel-info {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(223, 229, 255, 0.8);
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    z-index: 20;
}
button.panel-info.tutorial-help-marker {
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 1px 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(211, 223, 251, 0.68);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    opacity: 0.7;
    transition: opacity .18s ease, color .18s ease;
    display: none;
}
body.tutorial-mode-enabled .tutorial-help-marker {
    display: inline-flex;
}
button.panel-info.tutorial-help-marker:hover,
button.panel-info.tutorial-help-marker:focus-visible {
    opacity: 1;
    color: rgba(245, 249, 255, 0.92);
}
button.panel-info.tutorial-help-marker:focus-visible {
    outline: 2px solid rgba(133, 184, 255, 0.62);
    outline-offset: 2px;
}
.tutorial-help-marker--panel {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
}
.dashboard-risk-hero > .tutorial-help-marker--panel {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9;
}
body.tutorial-spotlight-open {
    overflow: hidden;
}
.tutorial-spotlight {
    position: fixed;
    inset: 0;
    z-index: 2400;
    pointer-events: none;
}
.tutorial-spotlight[hidden] {
    display: none;
}
.tutorial-spotlight__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(5, 7, 12, 0.74);
    pointer-events: auto;
    cursor: pointer;
}
.tutorial-spotlight__dialog {
    position: fixed;
    right: clamp(14px, 2.8vw, 30px);
    bottom: clamp(14px, 2.8vw, 30px);
    z-index: 2404;
    width: min(430px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    border-radius: 16px;
    border: 1px solid rgba(151, 171, 215, 0.34);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(108, 149, 255, 0.17), transparent 64%),
        linear-gradient(160deg, rgba(12, 18, 31, 0.97), rgba(7, 11, 20, 0.98));
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(172, 192, 246, 0.08) inset;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    transition: opacity 140ms ease;
    will-change: left, top, transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.tutorial-spotlight__dialog[hidden] {
    display: none !important;
}
.tutorial-spotlight__dialog::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(20, 33, 61, 0.98);
    border-top: 1px solid rgba(151, 171, 215, 0.34);
    border-left: 1px solid rgba(151, 171, 215, 0.34);
    transform: rotate(45deg);
    pointer-events: none;
}
.tutorial-spotlight__dialog[data-placement^="right"]::before {
    left: -7px;
    top: 22px;
}
.tutorial-spotlight__dialog[data-placement^="left"]::before {
    right: -7px;
    top: 22px;
    border-top: 0;
    border-left: 0;
    border-right: 1px solid rgba(151, 171, 215, 0.34);
    border-bottom: 1px solid rgba(151, 171, 215, 0.34);
}
.tutorial-spotlight__dialog[data-placement^="top"]::before {
    left: 28px;
    bottom: -7px;
    border-top: 0;
    border-left: 0;
    border-right: 1px solid rgba(151, 171, 215, 0.34);
    border-bottom: 1px solid rgba(151, 171, 215, 0.34);
}
.tutorial-spotlight__dialog[data-placement^="bottom"]::before {
    left: 28px;
    top: -7px;
}
.tutorial-spotlight__eyebrow {
    margin: 0;
    font-size: 0.69rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(162, 185, 235, 0.86);
    font-weight: 700;
}
.tutorial-spotlight__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    color: #f3f6ff;
}
.tutorial-spotlight__body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.48;
    color: rgba(223, 230, 248, 0.92);
}
.tutorial-spotlight-bot {
    position: fixed;
    z-index: 2403;
    margin: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    pointer-events: none;
    transform-origin: center bottom;
    transition: opacity 140ms ease;
    will-change: left, top, transform, opacity;
    animation: tutorialBotFloat 2.8s ease-in-out infinite;
}
.tutorial-spotlight-bot[hidden] {
    display: none !important;
}
.tutorial-spotlight-bot__avatar {
    width: clamp(240px, 19vw, 300px);
    height: clamp(240px, 19vw, 300px);
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 18px rgba(2, 6, 16, 0.45));
}
.tutorial-spotlight__progress {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    color: rgba(162, 185, 235, 0.74);
}
.tutorial-spotlight__dots {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 8px;
}
.tutorial-spotlight__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(171, 187, 224, 0.34);
    transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}
.tutorial-spotlight__dot.is-active {
    width: 19px;
    background: linear-gradient(135deg, rgba(123, 174, 255, 0.98), rgba(103, 126, 247, 0.98));
    transform: translateY(-0.2px);
}
.tutorial-spotlight__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding-top: 2px;
}
.tutorial-spotlight__dialog .tutorial-spotlight__btn {
    min-height: 22px;
    padding: 0 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(183, 200, 236, 0.76);
    transform: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.tutorial-spotlight__dialog .tutorial-spotlight__btn:hover,
.tutorial-spotlight__dialog .tutorial-spotlight__btn:focus-visible {
    transform: none;
    border-color: transparent;
    box-shadow: none;
    color: rgba(241, 247, 255, 0.95);
    background: rgba(130, 157, 218, 0.08);
}
.tutorial-spotlight__dialog .tutorial-spotlight__btn:focus-visible {
    outline: 1px solid rgba(124, 177, 255, 0.56);
    outline-offset: 1px;
}
.tutorial-spotlight__dialog .tutorial-spotlight__btn:disabled {
    opacity: 0.34;
    cursor: default;
    background: transparent;
    color: rgba(168, 180, 208, 0.6);
}
.tutorial-spotlight__dialog .tutorial-spotlight__btn--primary {
    color: rgba(166, 206, 255, 0.9);
}
.tutorial-spotlight__dialog .tutorial-spotlight__btn--primary:hover,
.tutorial-spotlight__dialog .tutorial-spotlight__btn--primary:focus-visible {
    color: rgba(220, 237, 255, 0.97);
    background: rgba(98, 153, 255, 0.12);
}
.tutorial-spotlight-context {
    position: relative !important;
    z-index: 2401 !important;
}
.tutorial-spotlight-target {
    position: relative !important;
    z-index: 2402 !important;
}
body.tutorial-spotlight-open .tutorial-spotlight-context,
body.tutorial-spotlight-open .tutorial-spotlight-target {
    pointer-events: none !important;
}
@media (max-width: 640px) {
    .tutorial-spotlight__dialog {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        bottom: 10px;
    }
    .tutorial-spotlight-bot__avatar {
        width: 180px;
        height: 180px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .tutorial-spotlight__dialog,
    .tutorial-spotlight__dot,
    .tutorial-spotlight-bot {
        transition: none;
        animation: none;
    }
}
@keyframes tutorialBotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.panel-info[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    left: auto;
    transform: translateY(6px);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    color: #f7f9ff;
    background: rgba(8, 10, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 30;
}
.panel-info:hover::after,
.panel-info:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}
.panel-hero {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}
.panel-hero--triple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0;
    border: none;
    background: none;
}
.panel-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    min-width: 0;
}
.panel-hero__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(223, 229, 255, 0.72);
}
.panel-hero__value {
    font-size: 2rem;
    font-weight: 700;
    color: #f7f9ff;
}
.panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    color: rgba(223, 229, 255, 0.6);
    font-size: 0.68rem;
}
.panel-meta--single {
    display: flex;
    gap: 8px;
    align-items: baseline;
}
.panel-meta--split {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 12px;
    width: 100%;
}
.panel-meta--split .panel-meta__value {
    justify-self: end;
}
.panel-meta--note {
    display: block;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(223, 229, 255, 0.55);
}
.panel-meta__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(223, 229, 255, 0.6);
}
.panel-meta__value {
    font-weight: 600;
    color: rgba(246, 248, 255, 0.85);
}
.panel-divider {
    width: 100%;
    height: 1px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}
.match-card--info {
    gap: 12px;
    padding: 18px;
    flex: 1 1 0;
    min-height: 0;
}
.match-card--info .panel-hero {
    gap: 6px;
}
.match-card--info .panel-divider {
    margin: 2px 0;
}
.match-card--info .panel-meta--split {
    margin-top: 2px;
}
.feed-overview-coverage {
    margin: 2px 0 0;
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--dashboard-outline);
    background: var(--dashboard-soft-bg);
}
.feed-overview-coverage__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.feed-overview-coverage__label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--dashboard-muted-text);
}
.feed-overview-coverage__percent {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dashboard-title-text);
}
.feed-overview-coverage__track {
    height: 6px;
    border-radius: 999px;
    border: none;
    background: var(--dashboard-track);
    overflow: hidden;
}
.feed-overview-coverage__fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(141, 153, 255, 0.95), rgba(99, 210, 252, 0.9));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 12px;
    border: 1px solid var(--dashboard-outline);
    background: var(--dashboard-soft-bg);
    overflow: hidden;
}
.dashboard-stat-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    min-height: 64px;
    padding: 12px 10px;
}
.dashboard-stat-strip__item + .dashboard-stat-strip__item {
    border-left: 1px solid var(--dashboard-outline);
}
.dashboard-stat-strip__label {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dashboard-muted-text);
}
.dashboard-stat-strip__value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dashboard-title-text);
}
.dashboard-stat-strip__value--small {
    font-size: 0.88rem;
    line-height: 1.45;
}
.match-card--vulns {
    flex: 0 0 auto;
    min-height: 0;
    gap: 14px;
    padding: 18px;
}
.match-card--assets {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    padding: 18px;
    gap: 12px;
    flex: 1 1 0;
}
.match-summary .match-card--assets {
    width: 100%;
    max-width: none;
    justify-self: stretch;
}
.match-summary .match-card--vulns {
    width: 100%;
    max-width: none;
    justify-self: stretch;
}
.match-card--assets .panel-header h3 {
    margin-bottom: 0;
}
.match-card--vulns .panel-header {
    min-height: 56px;
}
.match-summary .panel-header {
    display: flex;
    min-height: 56px;
    align-items: center;
    padding-right: 24px;
    margin-bottom: 0;
}
.match-card--info .panel-header {
    min-height: 30px;
    margin-bottom: 2px;
    align-items: flex-start;
}
.match-card--assets .panel-header {
    min-height: 30px;
    margin-bottom: 2px;
    align-items: flex-start;
}
.match-summary .panel-header__title {
    gap: 8px;
}
.match-summary .panel-header h3 {
    margin-bottom: 0;
}
.match-summary .panel-info {
    position: absolute;
    top: 16px;
    right: 16px;
}
.match-summary .panel-hero {
    padding: 0;
    border: none;
    background: none;
    gap: 8px;
}
.dashboard-summary-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: stretch;
}
.dashboard-summary-head--vuln {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 272px);
}
.dashboard-kpi-stack {
    display: grid;
    gap: 10px;
    align-content: start;
}
.dashboard-kpi-chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 140px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dashboard-kpi-chip__label {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(223, 229, 255, 0.58);
}
.dashboard-kpi-chip__value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: #f7f9ff;
}
.dashboard-kpi-chip--success {
    background:
      radial-gradient(circle at 100% 0%, rgba(64, 196, 143, 0.16), transparent 44%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.dashboard-kpi-chip--warn {
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 147, 64, 0.16), transparent 44%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.match-summary .dashboard-hero {
    position: relative;
    padding: 22px 22px;
    min-height: 128px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      radial-gradient(circle at 100% 0%, rgba(108, 99, 255, 0.18), transparent 42%),
      linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    overflow: hidden;
    justify-content: space-between;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 10px 24px rgba(0, 0, 0, 0.12);
}
.match-summary .dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto -24px -34px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0.7;
    pointer-events: none;
}
.match-summary .dashboard-hero > * {
    position: relative;
    z-index: 1;
}
.match-summary .dashboard-hero--compact {
    min-height: 124px;
}
.match-summary .dashboard-hero--vuln {
    min-height: 116px;
}
.match-card--info .dashboard-hero {
    background:
      radial-gradient(circle at 100% 0%, rgba(99, 210, 252, 0.22), transparent 42%),
      radial-gradient(circle at 0% 100%, rgba(141, 153, 255, 0.14), transparent 48%),
      linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}
.match-card--assets .dashboard-hero {
    background:
      radial-gradient(circle at 100% 0%, rgba(64, 196, 143, 0.18), transparent 42%),
      radial-gradient(circle at 0% 100%, rgba(99, 210, 252, 0.12), transparent 50%),
      linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}
.match-summary .panel-hero__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(223, 229, 255, 0.62);
}
.match-summary .panel-hero__value {
    font-size: clamp(2.5rem, 3vw, 3.1rem);
    font-weight: 700;
    color: #f7f9ff;
    line-height: 1;
}
.match-card--vulns .panel-hero__value {
    font-size: clamp(2rem, 2.8vw, 2.45rem);
    line-height: 1;
    margin-top: auto;
}
.dashboard-gauge {
    --gauge-percent: 0;
    --gauge-accent: #63d2fc;
    position: relative;
    width: 118px;
    height: 118px;
    padding: 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
      radial-gradient(closest-side, rgba(10, 15, 24, 0.92) 72%, transparent 73% 100%),
      conic-gradient(from -90deg, var(--gauge-accent) calc(var(--gauge-percent) * 1%), rgba(255, 255, 255, 0.08) 0);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 16px 30px rgba(0, 0, 0, 0.22);
}
.dashboard-gauge::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(6, 10, 18, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-gauge__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    padding: 0 10px;
}
.dashboard-gauge__value {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    color: #f7f9ff;
}
.dashboard-gauge__label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(223, 229, 255, 0.68);
}
.dashboard-gauge--feed { --gauge-accent: #63d2fc; }
.dashboard-gauge--assets { --gauge-accent: #40c48f; }
.dashboard-gauge--vulns { --gauge-accent: #ff9340; }
.match-summary .panel-hero--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.match-summary .panel-hero__stat {
    padding: 0;
    border: none;
    background: none;
    gap: 8px;
}
.match-card--vulns .panel-hero__stat {
    padding: 14px 16px;
    min-height: 98px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    justify-content: space-between;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.match-card--vulns .panel-hero__stat:nth-child(1) {
    background:
      radial-gradient(circle at 100% 0%, rgba(99, 210, 252, 0.16), transparent 48%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}
.match-card--vulns .panel-hero__stat:nth-child(2) {
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 208, 90, 0.16), transparent 48%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}
.match-card--vulns .panel-hero__stat:nth-child(3) {
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 90, 109, 0.16), transparent 48%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}
.match-summary .match-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.match-summary .match-metrics--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.match-summary .metric {
    background: none;
    border: none;
    padding: 0;
    gap: 8px;
}
.match-summary .metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(223, 229, 255, 0.6);
}
.match-summary .metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f7f9ff;
}
.match-card--assets .match-metrics {
    grid-auto-rows: 1fr;
    gap: 10px;
}
.match-card--assets .metric {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    min-height: 56px;
    justify-content: center;
}
.match-card--assets .metric-label {
    font-size: 0.7rem;
}
.match-card--assets .metric-value {
    font-size: 1.5rem;
    line-height: 1;
}
.dashboard-mini-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.dashboard-mini-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.dashboard-mini-metric__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(223, 229, 255, 0.62);
}
.dashboard-mini-metric__value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: #f7f9ff;
}
.dashboard-lead {
    margin: 0;
    padding-left: 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
    font-size: 0.94rem;
    line-height: 1.55;
    color: rgba(223, 229, 255, 0.74);
    max-width: 56ch;
}
.dashboard-lead--wide {
    max-width: 72ch;
}
.match-card--info .dashboard-lead {
    border-left-color: rgba(99, 210, 252, 0.38);
}
.match-card--assets .dashboard-lead {
    border-left-color: rgba(64, 196, 143, 0.38);
}
.match-card--vulns .dashboard-lead {
    border-left-color: rgba(255, 147, 64, 0.38);
}
.dashboard-summary-card--vulns .dashboard-lead {
    border-left-color: rgba(255, 147, 64, 0.38);
}
.dashboard-summary-note {
    margin: auto 0 0;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: rgba(223, 229, 255, 0.52);
}
.dashboard-detail-section {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 36px auto 24px;
}
.dashboard-detail-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.dashboard-detail-card {
    padding: 22px;
    gap: 16px;
}
.dashboard-detail-card .panel-header {
    min-height: 0;
    align-items: flex-start;
    padding-right: 0;
    margin-bottom: 0;
}
.dashboard-detail-card .panel-header__title {
    gap: 6px;
}
.dashboard-detail-card .card-subtitle {
    max-width: 72ch;
}
.dashboard-detail-card--assets .panel-meta--note {
    margin-top: 0;
}
.dashboard-disclosure {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dashboard-disclosure__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(223, 229, 255, 0.72);
    user-select: none;
}
.dashboard-disclosure__summary::-webkit-details-marker {
    display: none;
}
.dashboard-disclosure__summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.8;
    flex: 0 0 auto;
}
.dashboard-disclosure[open] .dashboard-disclosure__summary::after {
    transform: rotate(225deg);
}
.dashboard-disclosure__body {
    display: grid;
    gap: 14px;
    padding-top: 14px;
}
.dashboard-disclosure__body--stack {
    gap: 16px;
}
.match-card--assets .panel-meta--note {
    padding-top: 10px;
    margin-top: auto;
    font-size: 0.78rem;
    line-height: 1.5;
}
.match-card--assets {
    padding-bottom: 18px;
}
.match-summary .panel-meta {
    font-size: 0.68rem;
    color: rgba(223, 229, 255, 0.55);
}
.match-card--vulns .severity-band {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.match-card--vulns .severity-title {
    margin: 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dashboard-muted-text);
}
.match-card--vulns .severity-bar {
    width: 100%;
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--dashboard-track);
    border: none;
    padding: 0;
    gap: 3px;
}
.match-card--vulns .severity-segment {
    flex: var(--segment-grow, 1) 1 0;
    min-width: 0;
    border-radius: 0;
    transition: flex-grow 0.35s ease, opacity 0.25s ease;
}
.match-card--vulns .severity-segment:first-child { border-radius: 999px 0 0 999px; }
.match-card--vulns .severity-segment:last-child  { border-radius: 0 999px 999px 0; }
.match-card--vulns .severity-segment.is-empty {
    opacity: 0.2;
}
.match-card--vulns .severity-bar .severity-critical { background: #ff5a6d; }
.match-card--vulns .severity-bar .severity-high { background: #ff9340; }
.match-card--vulns .severity-bar .severity-medium { background: #ffd05a; }
.match-card--vulns .severity-bar .severity-low { background: #40c48f; }
.match-card--vulns .severity-bar .severity-unclassified { background: #7a859b; }
.match-card--vulns .severity-counts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
    padding: 0;
    border-radius: 0;
    border: none;
    background: none;
}
.match-card--vulns .severity-count {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 6px;
    position: relative;
    border-radius: 10px;
    border: 1px solid var(--dashboard-outline);
    background: var(--dashboard-soft-bg);
}
.match-card--vulns .severity-count:not(:last-child)::after {
    content: none;
}
.match-card--vulns .severity-count__label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dashboard-muted-text);
    order: 2;
}
.match-card--vulns .severity-count__label::after {
    content: "";
}
.match-card--vulns .severity-count__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dashboard-title-text);
    order: 1;
}
/* Color-code severity count values */
.match-card--vulns .severity-count:nth-child(1) .severity-count__value { color: #ff5a6d; }
.match-card--vulns .severity-count:nth-child(2) .severity-count__value { color: #ff9340; }
.match-card--vulns .severity-count:nth-child(3) .severity-count__value { color: #ffd05a; }
.match-card--vulns .severity-count:nth-child(4) .severity-count__value { color: #40c48f; }
.match-card--vulns .vuln-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}
.match-card--vulns .vuln-section {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}
.match-card--vulns .vuln-section--top {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.match-card--vulns .vuln-section--meta {
    margin-top: 0;
    padding: 10px 14px 0;
    border: none;
    background: none;
}
.match-card--vulns .dashboard-disclosure {
    margin-top: 0;
}
.dashboard-scope-track {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--dashboard-outline);
    background: var(--dashboard-soft-bg);
}
.dashboard-scope-track__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.dashboard-scope-track__label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dashboard-muted-text);
}
.dashboard-scope-track__value {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--dashboard-title-text);
}
.dashboard-scope-track__bar {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    border: none;
    background: var(--dashboard-track);
}
.dashboard-scope-track__fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff9340, #ffd05a);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.match-card--vulns .vuln-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 0;
    align-items: stretch;
    align-content: stretch;
    grid-auto-rows: 1fr;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}
.match-card--vulns .vuln-insight {
    padding: 14px 16px;
    min-height: 84px;
    border: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
    gap: 6px;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
    height: 100%;
}
.match-card--vulns .vuln-insight + .vuln-insight {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.match-card--vulns .vuln-insight__header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.match-card--vulns .vuln-insight__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(223, 229, 255, 0.6);
}
.match-card--vulns .vuln-insight__value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    color: #f7f9ff;
}
.match-card--vulns .vuln-insight__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
}
.match-card--vulns .vuln-insight__icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}
.match-card--vulns .vuln-section--meta .panel-meta {
    margin-top: 0;
    opacity: 0.6;
}
.info-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.match-card--info .label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(210, 218, 240, 0.75);
}
.match-card--info .value {
    font-size: 1.5rem;
    font-weight: 500;
    color: #f6f8ff;
}
#lastUpdatedValue {
    font-size: 0.92rem;
    line-height: 1.45;
}
.match-card header {
  display: block;
  margin-bottom: 6px;
}
.match-card header h3 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    color: #ffffff;
}
.match-card .card-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}
.match-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    align-items: stretch;
}
.match-metrics.two-column {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.severity-title {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(230, 236, 255, 0.85);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.metric {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.metric-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}
.severity-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
}
.severity-indicator {
    flex: 1 1 110px;
    min-width: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
}
.severity-indicator .severity-count {
    font-size: 1rem;
    font-weight: 700;
}
.severity-indicator.severity-critical { background: rgba(220, 53, 69, 0.2); border: 1px solid rgba(220, 53, 69, 0.65); color:#ccc}
.severity-indicator.severity-high { background: rgba(253, 126, 20, 0.2); border: 1px solid rgba(253, 126, 20, 0.65); color:#ccc}
.severity-indicator.severity-medium { background: rgba(255, 193, 7, 0.2); border: 1px solid rgba(255, 193, 7, 0.65); color:#ccc}
.severity-indicator.severity-low { background: rgba(40, 167, 69, 0.2); border: 1px solid rgba(40, 167, 69, 0.65); color:#ccc }
.severity-indicator.severity-unclassified { background: rgba(108, 117, 125, 0.2); border: 1px solid rgba(108, 117, 125, 0.65); color:#ccc }
.vuln-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 6px;
}
.vuln-insight {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(140deg, rgba(255,255,255,0.03), rgba(255,255,255,0.06));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vuln-insight__label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(230, 236, 255, 0.68);
}
.vuln-insight__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f7f9ff;
}
.vuln-insights__footer {
    margin-top: 4px;
    font-size: 0.9rem;
    color: rgba(220, 226, 245, 0.75);
}
.kev-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 89, 100, 0.18), rgba(255, 153, 102, 0.12));
    border: 1px solid rgba(255, 108, 132, 0.35);
    border-radius: 16px;
    margin-top: 4px;
    box-shadow: 0 10px 20px rgba(255, 108, 132, 0.15);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeSlideIn .7s ease forwards .3s;
    animation-fill-mode: forwards;
}
.kev-highlight .kev-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    color: #ffeef2;
}
.kev-highlight .kev-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.kev-highlight .kev-count {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff0f5;
    text-shadow: 0 8px 16px rgba(255,108,132,0.28);
}
.kev-highlight:not(.is-empty)::after {
    content: '';
    position: absolute;
    inset: -120% -40% auto auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,255,255,0.6), rgba(255,255,255,0));
    animation: sparkGlow 3.2s ease-in-out infinite;
}
.kev-highlight .kev-caption {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 220, 230, 0.82);
}
.kev-highlight.is-empty {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}
.kev-highlight.is-empty .kev-badge {
    background: rgba(255,255,255,0.08);
    color: rgba(240,240,240,0.75);
}
.kev-highlight.is-empty .kev-count {
    color: rgba(240,240,240,0.8);
    text-shadow: none;
}
.kev-highlight.is-empty .kev-caption {
    color: rgba(210,210,210,0.6);
}
.match-card-note {
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}
.match-card-note.match-note--split,
.panel-meta--note.match-note--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.match-note__base {
    flex: 1 1 auto;
}
.match-note__inventory {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    color: rgba(240, 243, 255, 0.88);
}
.assets-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px 24px;
    margin-bottom: 1.2rem;
}
.remediation-section {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
}
.remediation-card--priority .remediation-section {
    overflow: hidden;
}
.remediation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.remediation-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.remediation-report-actions {
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.remediation-report-actions__button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}
.remediation-report-actions__button--secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(232, 237, 255, 0.9);
}
.remediation-report-actions__button--secondary:hover,
.remediation-report-actions__button--secondary:focus-visible {
    border-color: rgba(138, 169, 255, 0.46);
    color: #eef3ff;
}
.remediation-report-actions__meta {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    color: var(--dashboard-muted-text);
    white-space: nowrap;
}
.mapping-refresh-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.mapping-refresh-controls label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(231, 236, 255, 0.72);
}
.mapping-refresh-controls input {
    width: 72px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.25);
    color: #f6f8ff;
    padding: 4px 6px;
    font-size: 0.8rem;
}
.mapping-refresh-controls input:focus {
    outline: none;
    border-color: rgba(110, 190, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(110, 190, 255, 0.25);
}
.remediation-section h4 {
    font-size: 1.05rem;
    font-weight: 500;
    color: #f6f8ff;
    margin: 0;
}
.rp-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    padding-right: 0;
}
.rp-bar {
    display: flex;
    flex-direction: column;
    gap: 5px;
    --rp-color: #7bd4b2;
}
.rp-bar[data-level="Emergency"] { --rp-color: #ff6b77; }
.rp-bar[data-level="High Priority"] { --rp-color: #ffb15a; }
.rp-bar[data-level="Next Maintance Window"] { --rp-color: #f0d37a; }
.rp-bar[data-level="Planned"] { --rp-color: #7bd4b2; }
.rp-bar[data-level="Monitor"] { --rp-color: #9aa6bf; }
.rp-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 0.84rem;
    color: rgba(237, 241, 255, 0.92);
    letter-spacing: 0.02em;
}
.rp-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rp-color);
}
.rp-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.rp-bar-metrics {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.rp-percent {
    min-width: 32px;
    text-align: right;
    font-size: 0.74rem;
    color: rgba(217, 224, 250, 0.64);
}
.rp-count {
    min-width: 26px;
    text-align: right;
    font-weight: 600;
    font-size: 0.82rem;
    color: rgba(240, 244, 255, 0.88);
}
.rp-bar-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
}
.rp-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.35s ease;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), var(--rp-color));
    box-shadow: none;
}
.rp-bar-fill.is-empty {
    opacity: 0.35;
}
.rp-emergency { --rp-color: #ff6b77; }
.rp-high-priority { --rp-color: #ffb15a; }
.rp-next-maintance-window { --rp-color: #f0d37a; }
.rp-planned { --rp-color: #7bd4b2; }
.rp-monitor { --rp-color: #9aa6bf; }
@media (max-width: 1024px) {
  .asset-container {
    flex-direction: column;
  }
  .asset-card--impacted {
    width: 100%;
  }
}
/* Asset summary metrics */
.asset-summary {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.asset-summary__metric {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 20px 4px 0;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeSlideIn .45s ease forwards;
    position: relative;
}
.asset-summary__metric + .asset-summary__metric {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.asset-summary__icon {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}
.asset-summary__metric--blue   .asset-summary__icon { color: #7c8cff; }
.asset-summary__metric--purple .asset-summary__icon { color: #a78bfa; }
.asset-summary__metric--orange .asset-summary__icon { color: #f59e0b; }
.asset-summary__metric--red    .asset-summary__icon { color: #ef4444; }
.asset-summary__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: rgba(223, 229, 255, 0.45);
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.asset-summary__value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f7f9ff;
    letter-spacing: 0.01em;
    line-height: 1.1;
}
.inventory-remap-pending {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
.inventory-remap-pending[data-state="pending"] {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
.inventory-remap-pending__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(212, 222, 245, 0.6);
}
.inventory-remap-pending__status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(156, 173, 209, 0.68);
}
.inventory-remap-pending[data-state="pending"] .inventory-remap-pending__status {
    color: rgba(255, 216, 162, 0.85);
}
.inventory-remap-pending[data-state="pending"] .inventory-remap-pending__status::before {
    background: rgba(255, 193, 112, 0.9);
}
.inventory-remap-pending__actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#inventoryRemapPendingButton,
#inventoryRemapUndoButton {
    min-width: 74px;
    padding: 4px 12px;
    height: 27px;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
#inventoryRemapPendingButton {
    border: 1px solid rgba(245, 191, 112, 0.56);
    background: rgba(245, 191, 112, 0.08);
    color: rgba(255, 228, 187, 0.97);
}
#inventoryRemapUndoButton {
    border: 1px solid rgba(173, 191, 223, 0.36);
    background: rgba(173, 191, 223, 0.05);
    color: rgba(222, 230, 247, 0.9);
}
#inventoryRemapPendingButton:hover,
#inventoryRemapPendingButton:focus-visible {
    border-color: rgba(255, 205, 131, 0.8);
    background: rgba(245, 191, 112, 0.16);
    color: rgba(255, 238, 214, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 0 2px rgba(245, 191, 112, 0.12);
    transform: translateY(-1px);
    outline: none;
}
#inventoryRemapUndoButton:hover,
#inventoryRemapUndoButton:focus-visible {
    border-color: rgba(189, 204, 233, 0.66);
    background: rgba(173, 191, 223, 0.12);
    color: rgba(239, 244, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 0 2px rgba(173, 191, 223, 0.1);
    transform: translateY(-1px);
    outline: none;
}
#inventoryRemapPendingButton:active,
#inventoryRemapUndoButton:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#inventoryRemapPendingButton:disabled,
#inventoryRemapUndoButton:disabled {
    opacity: 0.5;
    border-color: rgba(136, 150, 180, 0.22);
    background: rgba(112, 124, 150, 0.1);
    color: rgba(198, 208, 229, 0.68);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.inventory-remap-pending[data-state="clean"] .inventory-remap-pending__actions {
    display: none;
}
@media (max-width: 1024px) {
    .inventory-remap-pending {
        align-items: center;
        flex-direction: row;
    }
}
@media (max-width: 640px) {
    .inventory-remap-pending {
        flex-wrap: wrap;
        gap: 6px;
    }
    .inventory-remap-pending__actions {
        margin-left: 0;
    }
}
#vulnScreen .feed-container {
    gap: 0;
}
#vulnScreen .feed-card {
    box-sizing: border-box;
    max-width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    gap: 8px;
    position: relative;
    overflow: visible;
    z-index: 0;
}
#vulnScreen .feed-card:hover,
#vulnScreen .feed-card:focus-within {
    z-index: 30;
}
#vulnScreen .feed-card--collapsed {
    padding: 14px 8px;
    border-radius: 0;
    gap: 8px;
}
#vulnScreen .feed-card:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#vulnScreen .feed-card__expanded-meta {
    border-top: none;
    margin-top: 0;
    padding-top: 4px;
}
#aiSummaryButton {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(214, 223, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}
#aiSummaryButton svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
#aiSummaryButton .ai-summary-download-btn__label {
  white-space: nowrap;
}
#aiSummaryButton:hover,
#aiSummaryButton:focus-visible {
  color: #f6f8ff;
  outline: none;
}
#aiSummaryButton:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#aiSummaryButton[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  color: #f7f9ff;
  background: rgba(8, 10, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}
#aiSummaryButton:hover::after,
#aiSummaryButton:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
#aiSummaryButton:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  color: rgba(214, 223, 255, 0.52);
}
#aiSummaryButton:disabled:hover,
#aiSummaryButton:disabled:focus-visible {
  color: rgba(214, 223, 255, 0.52);
  text-decoration: none;
}
#aiSummaryButton:disabled::after {
  display: none;
}
.icon-btn-sm {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(210, 218, 255, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.icon-btn-sm:hover,
.icon-btn-sm:focus-visible {
  color: #f6f8ff;
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.45);
  transform: translateY(-1px);
  outline: none;
}
.icon-btn-sm:active {
  transform: translateY(0);
}
.icon-btn-sm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.icon-btn-sm[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: #f7f9ff;
  background: rgba(8, 10, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}
.icon-btn-sm:hover::after,
.icon-btn-sm:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.icon-btn-sm:disabled::after {
  display: none;
}
.ai-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.ai-summary-header__title {
  display: flex;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 4px;
  flex-wrap: wrap;
}
.ai-summary-header h3 {
  margin: 0;
}
.ai-summary-header .card-subtitle {
  margin: 4px 0 0;
}
.ai-summary-header__title .card-subtitle {
  margin: 0;
  white-space: nowrap;
}
.ai-summary-status {
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.ai-summary-status[data-state="success"] {
  color: #92e0b6;
}
.ai-summary-status[data-state="warning"] {
  color: #f1c96b;
}
.ai-summary-status[data-state="error"] {
  color: #ff9c9c;
}
.ai-summary-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent, #6c63ff);
  animation: aiSummarySpin 0.8s linear infinite;
}
@keyframes aiSummarySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ai-summary-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.ai-summary-meta {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.ai-summary-meta[data-state="warning"] {
  color: #f1c96b;
}
.ai-summary-meta[data-state="error"] {
  color: #ff9c9c;
}
.remediation-card--summary .ai-summary-output {
  width: 100%;
  height: auto;
  min-height: 210px;
  max-height: 240px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6f8ff;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-y: auto;
  overflow-x: hidden;
}
.remediation-card--summary .ai-summary-output[data-placeholder="true"] {
  color: rgba(246, 248, 255, 0.62);
  font-style: italic;
}
.asset-container {
    display: grid;
    grid-template-columns: minmax(600px, 2.2fr) minmax(260px, 0.8fr);
    align-items: stretch;
    gap: 32px;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto 64px;
    padding: 0 clamp(16px, 3vw, 32px) clamp(20px, 3vh, 32px);
}
.asset-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    min-height: 0;
    padding-bottom: 16px;
}
.asset-column--main {
    width: 100%;
    height: 100%;
    min-height: 0;
}
.asset-card--impacted {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
    min-width: 320px;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin-bottom: 16px;
    overflow: hidden;
}

.impacted-assets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.tutorial-mode-enabled .asset-card--impacted .impacted-assets-header {
    padding-right: 36px;
}
.impacted-assets-header h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.15;
    white-space: nowrap;
}
.impacted-assets-header p {
    margin: 6px 0 0;
    color: rgba(225, 229, 246, 0.72);
}
.impacted-assets-search {
    min-width: 220px;
    width: 50%;
    max-width: 50%;
    flex: 0 1 50%;
    margin-left: auto;
}
.impacted-assets-search input {
    width: 100%;
    padding: 10px 12px 10px 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 22, 30, 0.9);
    color: #f4f6ff;
    font-size: 0.95rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfd6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 18px;
}
.impacted-assets-search input::placeholder {
    color: rgba(200, 208, 230, 0.7);
}
.impacted-assets-search input:focus {
    outline: 2px solid rgba(120, 132, 255, 0.6);
    border-color: rgba(120, 132, 255, 0.6);
}
.impacted-assets-list {
    flex: 1;
    min-height: 0;
    height: 600px;
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 10px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 132, 255, 0.6) rgba(22, 26, 38, 0.9);
}
.impacted-asset {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(13, 16, 26, 0.58);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeSlideIn .6s ease forwards;
}
.impacted-asset--kev {
    border-color: rgba(255, 99, 132, 0.24);
    box-shadow: inset 3px 0 0 rgba(255, 99, 132, 0.35);
}
.impacted-asset__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: start;
}
.impacted-asset__summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.impacted-asset__actions {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-width: 0;
}
.impacted-asset__vuln-shortcut {
    color: rgba(206, 222, 255, 0.92);
}
.impacted-asset__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    margin-top: 2px;
}
.impacted-asset__footer-left {
    min-width: 0;
}
.impacted-asset__footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
    margin-top: 0;
}
.impacted-asset__identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.impacted-asset__identity-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.impacted-asset__identity-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(224, 230, 255, 0.68);
}
.impacted-asset__identity-value {
    font-size: 1rem;
    font-weight: 600;
    color: #f7f9ff;
}
.impacted-asset__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}
.impacted-asset__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.impacted-asset__detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 24, 38, 0.65);
}
.impacted-asset__detail-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(211, 218, 255, 0.65);
}
.impacted-asset__detail-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f6f8ff;
}
.impacted-asset__identity-value--primary {
    font-size: 1rem;
    font-weight: 600;
    color: #f7f9ff;
    line-height: 1.25;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.impacted-asset__meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.impacted-asset__meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 24, 38, 0.6);
    color: rgba(223, 229, 255, 0.82);
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.2;
    max-width: 100%;
}
.impacted-asset__meta-chip--tech {
    color: #eef2ff;
}
.impacted-asset__meta-chip--count {
    border-color: rgba(128, 138, 255, 0.3);
    background: rgba(128, 138, 255, 0.12);
}
.impacted-element__locations {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.impacted-element__locations-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(211, 218, 255, 0.65);
    white-space: nowrap;
}
.impacted-element__locations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.impacted-element__location {
    border: 1px solid rgba(128, 138, 255, 0.3);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.74rem;
    color: rgba(223, 229, 255, 0.85);
    background: rgba(128, 138, 255, 0.1);
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.impacted-element__location--more {
    border-style: dashed;
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.12);
}
.impacted-asset__badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.impacted-asset__badge--kev {
    border-color: rgba(255, 99, 132, 0.6);
    color: #ffb4c4;
}
.impacted-asset__cve-section {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.impacted-asset__cve-toggle {
    align-self: flex-end;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(160, 170, 210, 0.75);
    cursor: pointer;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.impacted-asset__cve-toggle:hover {
    color: #c0caff;
}
.impacted-asset__cve-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
    opacity: 0.7;
}
.impacted-asset__cve-toggle[aria-expanded="true"] {
    color: rgba(180, 190, 255, 0.9);
}
.impacted-asset__cve-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.impacted-asset__cve-panel {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(17, 22, 33, 0.65);
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease, padding 0.35s ease;
}
.impacted-asset__cve-panel--open {
    opacity: 1;
    transform: translateY(0);
    padding: 10px 14px;
}
.impacted-asset__cve-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.impacted-asset__cve-group--kev {
    border-left: 2px solid rgba(255, 99, 132, 0.5);
    padding-left: 10px;
}
.impacted-asset__cve-group-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: rgba(211, 218, 255, 0.72);
}
.impacted-asset__cve-group-label--kev {
    color: #ffb4c4;
}
.impacted-asset__cve-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 8px 10px;
    margin-top: 0;
}
.impacted-asset__cve-item {
    min-width: 0;
}
.impacted-asset__cve-link {
    width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(159, 197, 255, 0.4);
    background: rgba(20, 26, 42, 0.6);
    border-radius: 10px;
    padding: 4px 10px;
    color: #9fc5ff;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.impacted-asset__cve-link:hover,
.impacted-asset__cve-link:focus-visible {
    border-color: rgba(159, 197, 255, 0.8);
    background: rgba(28, 36, 58, 0.85);
    color: #d9e7ff;
    outline: none;
}
.impacted-assets-empty {
    margin: 0;
    color: rgba(223, 229, 255, 0.65);
    font-size: 0.9rem;
}
@media (max-width: 1024px) {
  .asset-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .asset-column,
  .asset-card--impacted {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .asset-card--impacted {
    max-height: none;
    height: auto;
    align-self: stretch;
  }
  .impacted-assets-header {
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .impacted-assets-search {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }
  .asset-table-toolbar--split {
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .asset-table-toolbar--split h3 {
    width: 100%;
  }
  .impacted-asset__top,
  .impacted-asset__footer {
    grid-template-columns: minmax(0, 1fr);
  }
  .impacted-asset__actions,
  .impacted-asset__footer-right {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .impacted-asset__cve-toggle {
    align-self: flex-start;
  }
}
@media (min-width: 1201px) {
  .match-summary {
    align-items: stretch;
  }
  .match-column-right,
  .match-column-left {
    align-self: stretch;
    min-height: 0;
    height: auto;
  }
  .match-column-right {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 24px;
    min-height: 100%;
  }
  .match-column-left {
    display: block;
    gap: 0;
  }
  .match-column-right .match-card--info,
  .match-column-right .match-card--assets {
    height: 100%;
    min-height: 0;
  }
  .match-column-left .dashboard-summary-card--vulns {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }
  .match-card--vulns .vuln-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    height: 100%;
  }
}
@media (max-width: 1200px) {
  .match-summary {
    grid-template-columns: 1fr;
  }
  .dashboard-summary-head,
  .dashboard-summary-head--vuln {
    grid-template-columns: 1fr;
  }
  .dashboard-kpi-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-summary .match-card--assets,
  .match-summary .match-card--vulns {
    width: 100%;
    justify-self: stretch;
  }
  .match-card--vulns .vuln-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .match-card--vulns .vuln-insight:nth-child(3n + 1) {
    border-left: none;
  }
}
@media (max-width: 900px) {
  #aiSummaryButton .ai-summary-download-btn__label {
    display: none;
  }
  .ai-summary-header__title {
    flex-direction: column;
    align-items: flex-start;
  }
  .ai-summary-header__title .card-subtitle {
    white-space: normal;
  }
  .match-summary {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .dashboard-kpi-stack,
  .dashboard-stat-strip,
  .match-card--vulns .vuln-insights {
    grid-template-columns: 1fr;
  }
  .dashboard-stat-strip__item + .dashboard-stat-strip__item,
  .match-card--vulns .vuln-insight + .vuln-insight {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .dashboard-summary-note {
    margin-top: 4px;
  }
  .dashboard-scope-track__top {
    flex-direction: column;
    align-items: flex-start;
  }
}
.remediation-grid {
  --remediation-summary-height: 88px;
  --remediation-row-medium: 440px;
  --remediation-row-tall: 560px;
  --remediation-action-height: 96px;
  --remediation-action-gap: 16px;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 12px auto 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "summary  summary"
    "kpi      kpi"
    "priority assets"
    "priority actions"
    "cwe      cwe";
  gap: 24px;
  align-items: stretch;
}
.remediation-grid .match-card--ai {
  padding: 12px 18px;
  gap: 8px;
}
.remediation-grid .match-card--remediation {
  padding: 20px;
}
.remediation-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  align-self: stretch;
}
.remediation-card--summary {
  grid-area: summary;
  height: var(--remediation-summary-height);
  min-height: var(--remediation-summary-height);
}
.remediation-card--priority {
  grid-area: priority;
  height: var(--remediation-row-medium);
  min-height: var(--remediation-row-medium);
}
.remediation-card--assets {
  grid-area: assets;
  height: var(--remediation-row-medium);
  min-height: var(--remediation-row-medium);
}
.remediation-card--actions {
  grid-area: actions;
  height: var(--remediation-row-tall);
  min-height: var(--remediation-row-tall);
  gap: 6px;
  padding-top: 16px;
}
.remediation-card--cwe {
  grid-area: cwe;
  height: var(--remediation-row-tall);
  min-height: var(--remediation-row-tall);
}
.remediation-card--cwe {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
}
.remediation-card--cwe .panel-header {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  align-items: flex-start;
  padding-bottom: 14px;
}
.remediation-card--cwe .remediation-cwe {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  align-content: stretch;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--dashboard-outline);
  padding-top: 16px;
}
body.remediation-mode {
  overflow-y: hidden;
}
body.remediation-mode #panelContent,
body.remediation-mode .app-shell {
  min-height: 100vh;
  max-height: 100vh;
}
body.remediation-mode .app-main {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
body.remediation-mode #remediationScreen {
  height: calc(100vh - 36px);
  min-height: 0;
  overflow: hidden;
}
body.remediation-mode .remediation-grid {
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  gap: 18px;
  grid-template-rows: minmax(52px, 0.17fr) minmax(0, 1.14fr) minmax(0, 1.10fr);
}
body.remediation-mode .remediation-grid .match-card--ai {
  padding: 12px 16px;
  gap: 8px;
}
body.remediation-mode .remediation-card--summary .panel-header {
  min-height: 42px;
}
body.remediation-mode .remediation-card--summary,
body.remediation-mode .remediation-card--priority,
body.remediation-mode .remediation-card--assets,
body.remediation-mode .remediation-card--actions,
body.remediation-mode .remediation-card--cwe {
  height: 100%;
  min-height: 0;
}
body.inventory-mode {
  overflow-y: hidden;
}
body.inventory-mode #panelContent,
body.inventory-mode .app-shell {
  min-height: 100vh;
  max-height: 100vh;
}
body.inventory-mode .app-main {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: 14px clamp(12px, 1.4vw, 20px);
}
body.inventory-mode #assetScreen {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
body.inventory-mode #assetScreen .asset-container {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}
body.inventory-mode #assetScreen .asset-column {
  height: 100%;
  min-height: 0;
  padding-bottom: 0;
  min-width: 0;
}
body.inventory-mode #assetScreen .asset-card {
  margin-top: 0;
}
body.inventory-mode #assetScreen .asset-column--inventory {
  order: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
body.inventory-mode #assetScreen .asset-column--main {
  order: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  align-content: stretch;
}
body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type {
  padding: 11px 13px 12px;
  gap: 12px;
  position: relative;
  z-index: 12;
  overflow: visible;
}
body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-header__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 12px;
  row-gap: 8px;
}
body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-header__text h2 {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.34rem, 1.72vw, 1.78rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-actions--inline {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  gap: 14px;
}
body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-summary {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 0;
}
body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-summary__metric {
  min-height: unset;
  border-radius: 0;
  padding: 4px 20px 4px 0;
}
body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-summary__metric + .asset-summary__metric {
  padding-left: 20px;
}
body.inventory-mode #assetScreen .asset-card--table {
  min-height: 0;
  max-height: none;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.inventory-mode #assetScreen .asset-card--table .asset-table-wrapper {
  min-height: 0;
  max-height: none;
  height: auto;
  flex: 1 1 auto;
  overflow: auto;
}
body.inventory-mode #assetScreen .asset-card--impacted {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  margin-bottom: 0;
  overflow: hidden;
}
body.inventory-mode #assetScreen .asset-column--main > .asset-card--impacted {
  min-height: 0;
  height: 100%;
}
body.inventory-mode #assetScreen .impacted-assets-list {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
  max-height: none;
  padding-bottom: 8px;
  overflow-y: auto;
}
body.cra-inventory-mode {
  overflow-y: auto;
}
body.cra-inventory-mode #panelContent,
body.cra-inventory-mode .app-shell {
  min-height: 100vh;
  max-height: none;
}
body.cra-inventory-mode .app-main {
  height: auto;
  min-height: 100vh;
  overflow-y: visible;
  overflow-x: hidden;
}
body.cra-inventory-mode #craInventoryScreen {
  height: auto;
  min-height: 0;
  display: grid !important;
  row-gap: 22px;
  overflow-y: visible;
  overflow-x: clip;
}
body.vulnerabilities-mode {
  overflow-y: hidden;
}
body.vulnerabilities-mode #panelContent,
body.vulnerabilities-mode .app-shell {
  min-height: 100vh;
  max-height: 100vh;
}
body.vulnerabilities-mode .app-main {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
body.vulnerabilities-mode #vulnScreen {
  height: calc(100vh - 36px);
  min-height: 0;
  overflow: visible;
}
body.vulnerabilities-mode #vulnScreen .settings-container {
  height: 100%;
  max-height: 100%;
  margin: 4px auto 0;
  padding-bottom: 8px;
}
body.vulnerabilities-mode #vulnScreen .settings-container .feed-container {
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
}
body.global-free-mode .match-summary,
body.global-free-mode #vulnFlowSection,
body.global-free-mode #chartsSection,
body.global-free-mode #assetScreen,
body.global-free-mode #craInventoryScreen,
body.global-free-mode #remediationScreen,
body.global-free-mode #settingsScreen {
  display: none !important;
}
body.global-free-mode #vulnScreen {
  display: block !important;
}
body.global-free-mode #dashboardButton,
body.global-free-mode #remediationButton,
body.global-free-mode #assetsButton,
body.global-free-mode #craInventoryButton,
body.global-free-mode #settingsButton {
  display: none !important;
}
.remediation-card .panel-header {
  align-items: center;
  min-height: 56px;
}
.remediation-card--priority .panel-header,
.remediation-card--assets .panel-header {
  min-height: 52px;
}
.remediation-card--assets .panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
}
.remediation-card--actions .panel-header {
  align-items: baseline;
  margin-bottom: 0;
}
.remediation-card--actions .panel-header__title {
  flex-direction: row;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 4px;
  flex-wrap: wrap;
}
.remediation-card--actions .panel-header__title .card-subtitle {
  margin: 0;
  white-space: nowrap;
}
.remediation-card--actions .remediation-actions {
  gap: 6px;
}
.remediation-card--assets .panel-header__title {
  display: block;
  min-width: 0;
}
.remediation-card--assets .remediation-filter {
  justify-self: end;
  align-self: center;
  margin-left: 0;
}
.remediation-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(12, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  flex-shrink: 0;
}
.remediation-filter label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(223, 229, 255, 0.7);
}
.remediation-filter select {
  background-color: var(--filter-input-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--filter-input-border, rgba(255, 255, 255, 0.1));
  border-radius: 999px;
  padding: 7px 30px 7px 10px;
  min-width: 96px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.2;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%), linear-gradient(135deg, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  scrollbar-color: var(--filter-scroll-thumb, rgba(120, 132, 255, 0.6)) var(--filter-scroll-track, rgba(22, 26, 38, 0.9));
}
.remediation-filter select:focus {
  outline: none;
  border-color: rgba(108, 99, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}
.remediation-filter select::-ms-expand {
  display: none;
}
.remediation-filter select option {
  background: rgba(10, 13, 20, 0.95);
  color: var(--text);
}
.remediation-filter select::-webkit-scrollbar {
  width: 10px;
}
.remediation-filter select::-webkit-scrollbar-track {
  background: rgba(18, 22, 33, 0.95);
  border-radius: 999px;
}
.remediation-filter select::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(120, 132, 255, 0.8), rgba(92, 68, 255, 0.7));
  border-radius: 999px;
  border: 2px solid rgba(18, 22, 33, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.remediation-filter select::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(140, 150, 255, 0.9), rgba(112, 88, 255, 0.85));
}
.remediation-assets,
.remediation-actions,
.remediation-cwe {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
}
.remediation-assets__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
    padding-right: 6px;
}
.remediation-card--assets .remediation-assets__list {
    min-height: 180px;
}
.remediation-asset {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2.35fr) auto;
  gap: 10px;
  align-items: center;
}
.remediation-asset__label {
    font-size: 0.92rem;
    color: rgba(236, 240, 255, 0.9);
    display: inline-flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    white-space: nowrap;
}
.remediation-asset__label-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remediation-asset__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.remediation-asset__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  font-size: 0.78rem;
  color: rgba(200, 210, 240, 0.7);
  white-space: nowrap;
}
.remediation-asset__meta::before {
  content: "·";
  font-size: 0.9rem;
  color: rgba(200, 210, 240, 0.65);
}
.remediation-asset__link {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.remediation-asset__link:hover,
.remediation-asset__link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  outline: none;
}
.remediation-asset__track {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.remediation-asset__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), #2f82ff);
}
.remediation-asset__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  min-width: 78px;
}
.remediation-asset__count {
  min-width: 26px;
  text-align: right;
  font-size: 0.82rem;
  color: rgba(240, 244, 255, 0.88);
}
.remediation-asset__percent {
  min-width: 32px;
  text-align: right;
  font-size: 0.74rem;
  color: rgba(217, 224, 250, 0.64);
}
.remediation-empty {
  padding: 8px 0;
  color: rgba(214, 222, 246, 0.6);
  font-size: 0.88rem;
}
.remediation-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: rgba(214, 222, 246, 0.72);
  font-size: 0.88rem;
}
.remediation-loading .ai-summary-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}
.remediation-loading__text {
  line-height: 1.2;
}
.remediation-actions__list {
    display: flex;
    flex-direction: column;
    gap: var(--remediation-action-gap);
    margin-top: 0;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.28) rgba(255,255,255,0.06);
}
.remediation-actions__list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
}
.remediation-actions__list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
}
.remediation-actions__list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.28);
}
.remediation-card--actions .remediation-actions__list {
    min-height: 0;
}
.remediation-actions__list--fill {
  justify-content: space-between;
}
.remediation-actions__list--fill .remediation-action {
  min-height: 120px;
  height: auto;
}
.remediation-actions__list--single .remediation-action {
  min-height: 100%;
}
.remediation-actions__list--center {
  justify-content: center;
  min-height: 100%;
}
.remediation-actions__footer {
  display: flex;
  justify-content: flex-start;
}
.remediation-actions__view {
  border: none;
  background: none;
  color: rgba(188, 202, 255, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
}
.remediation-actions__view:hover,
.remediation-actions__view:focus-visible {
  color: #ffffff;
  outline: none;
}
.remediation-action {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(10, 12, 20, 0.45);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: var(--remediation-action-height);
  height: var(--remediation-action-height);
  overflow: hidden;
}
.remediation-action.is-open {
  border-color: rgba(108, 132, 255, 0.35);
  background: rgba(12, 16, 30, 0.6);
}
.remediation-action__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f7f9ff;
}
.remediation-action__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(223, 229, 255, 0.7);
}
.remediation-action__toggle {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(223, 229, 255, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
}
.remediation-action__toggle:hover,
.remediation-action__toggle:focus-visible {
  color: #ffffff;
  outline: none;
}
.remediation-action__details {
  display: none;
  gap: 12px;
  flex-direction: column;
  margin-top: 6px;
}
.remediation-action.is-open .remediation-action__details {
  display: flex;
}
.remediation-action__detail-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(223, 229, 255, 0.65);
}
.remediation-action__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.remediation-action__badge {
  border-radius: 999px;
  border: 1px solid rgba(159, 197, 255, 0.4);
  background: rgba(20, 26, 42, 0.6);
  color: rgba(223, 229, 255, 0.85);
  font-size: 0.72rem;
  padding: 4px 10px;
  cursor: pointer;
}
.remediation-action__badge:hover,
.remediation-action__badge:focus-visible {
  border-color: rgba(159, 197, 255, 0.75);
  color: #ffffff;
  outline: none;
}
.remediation-badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(223, 229, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.remediation-badge--kev {
  background: rgba(255, 129, 147, 0.18);
  border-color: rgba(255, 129, 147, 0.4);
  color: #ffd6dc;
}
/* ── Weakness Focus: stacked layout ── */
.remediation-cwe__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  padding: 2px 6px 4px 0;
  min-height: 0;
  max-height: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.remediation-cwe__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--dashboard-outline);
  border-radius: 18px;
  background: color-mix(in srgb, var(--dashboard-soft-bg) 84%, rgba(255, 255, 255, 0.02));
  color: var(--dashboard-soft-text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.82rem;
  min-height: 68px;
  box-sizing: border-box;
}
.remediation-cwe__item:hover,
.remediation-cwe__item:focus-visible {
  background: color-mix(in srgb, var(--dashboard-soft-bg-strong) 92%, rgba(255, 255, 255, 0.03));
  border-color: color-mix(in srgb, var(--dashboard-outline) 55%, var(--remediation-accent, #8b7dff));
  transform: translateX(2px);
  outline: none;
}
.remediation-cwe__item.is-active {
  background: color-mix(in srgb, var(--remediation-accent, #8b7dff) 9%, var(--dashboard-soft-bg-strong));
  border-color: color-mix(in srgb, var(--remediation-accent, #8b7dff) 42%, var(--dashboard-outline));
  box-shadow: inset 3px 0 0 var(--remediation-accent, #8b7dff);
  color: var(--dashboard-title-text);
}
.remediation-cwe__item[data-tone="critical"].is-active {
  border-color: color-mix(in srgb, #f87171 42%, var(--dashboard-outline));
  box-shadow: inset 3px 0 0 #f87171;
}
.remediation-cwe__item[data-tone="high"].is-active {
  border-color: color-mix(in srgb, #fb923c 42%, var(--dashboard-outline));
  box-shadow: inset 3px 0 0 #fb923c;
}
.remediation-cwe__item[data-tone="medium"].is-active {
  border-color: color-mix(in srgb, #facc15 42%, var(--dashboard-outline));
  box-shadow: inset 3px 0 0 #facc15;
}
.remediation-cwe__item[data-tone="low"].is-active {
  border-color: color-mix(in srgb, #34d399 42%, var(--dashboard-outline));
  box-shadow: inset 3px 0 0 #34d399;
}
.remediation-cwe__item-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.remediation-cwe__item-id {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  color: var(--dashboard-title-text);
  flex-shrink: 0;
  white-space: nowrap;
}
.remediation-cwe__item-name {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--dashboard-muted-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1 1 auto;
  min-width: 0;
}
.remediation-cwe__item.is-active .remediation-cwe__item-name {
  color: var(--dashboard-soft-text);
}
.remediation-cwe__item-count {
  display: grid;
  gap: 3px;
  justify-items: end;
  align-self: center;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--dashboard-title-text);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 38px;
  text-align: right;
}
.remediation-cwe__item-count::after {
  content: "CVEs";
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}
.remediation-cwe__item.is-active .remediation-cwe__item-count {
  color: var(--dashboard-title-text);
}
.remediation-cwe__detail {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--dashboard-outline);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    color-mix(in srgb, var(--dashboard-soft-bg) 90%, rgba(255, 255, 255, 0.02));
}
.remediation-cwe__hero,
.remediation-cwe__pane {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
}
/* Hero panel */
.remediation-cwe__hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  overflow: visible;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.remediation-cwe__placeholder {
  color: var(--dashboard-muted-text);
  font-size: 0.84rem;
  font-style: italic;
  margin: 0;
  padding: 4px 0;
}
.remediation-cwe__hero > .remediation-cwe__placeholder {
  text-align: center;
  margin: auto;
  padding: 20px;
}
.remediation-cwe__hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.remediation-cwe__hero-id {
  font-size: 1.55rem;
  font-weight: 800;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  color: var(--dashboard-title-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.remediation-cwe__hero-severity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
  flex-shrink: 0;
  margin-top: 6px;
}
.remediation-cwe__hero-severity::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}
.remediation-cwe__hero-severity[data-tone="critical"] {
  color: #f87171;
}
.remediation-cwe__hero-severity[data-tone="high"] {
  color: #fb923c;
}
.remediation-cwe__hero-severity[data-tone="medium"] {
  color: #facc15;
}
.remediation-cwe__hero-severity[data-tone="low"] {
  color: #34d399;
}
.remediation-cwe__hero-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dashboard-soft-text);
  line-height: 1.4;
  margin-top: -2px;
}
.remediation-cwe__hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.remediation-cwe__hero-stat {
  display: grid;
  gap: 4px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: var(--dashboard-soft-bg-strong);
  border: 1px solid var(--dashboard-outline);
  text-align: center;
}
.remediation-cwe__hero-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dashboard-title-text);
  line-height: 1.1;
}
.remediation-cwe__hero-stat-label {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dashboard-muted-text);
}
.remediation-cwe__hero-mix {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--dashboard-soft-bg-strong);
  border: 1px solid var(--dashboard-outline);
}
.remediation-cwe__hero-mix-label {
  font-size: 0.76rem;
  color: var(--dashboard-muted-text);
}
.remediation-cwe__hero-samples {
  display: grid;
  gap: 8px;
}
.remediation-cwe__hero-samples-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dashboard-muted-text);
}
.remediation-cwe__hero-narrative {
  font-size: 0.83rem;
  line-height: 1.58;
  color: var(--dashboard-soft-text);
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid color-mix(in srgb, var(--remediation-accent, #8b7dff) 45%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dashboard-soft-bg-strong) 92%, transparent);
}
/* Guidance pane */
.remediation-cwe__pane {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--dashboard-outline);
}
.remediation-cwe__pane-body {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: none;
  min-height: 280px;
  padding: 16px 18px 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--dashboard-soft-text);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) rgba(255,255,255,0.06);
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
}
.remediation-cwe__pane-body::-webkit-scrollbar { width: 6px; }
.remediation-cwe__pane-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 6px; }
.remediation-cwe__pane-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 6px; }
.remediation-cwe__pane-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.26); }
.remediation-cwe__pane.is-empty .remediation-cwe__pane-body {
  max-height: none;
}
/* Guidance content inside pane */
.remediation-cwe__guidance-group {
  display: block;
}
.remediation-cwe__guidance-group + .remediation-cwe__guidance-group {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--dashboard-outline);
}
.remediation-cwe__guidance-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dashboard-muted-text);
  font-weight: 700;
}
.remediation-cwe__guidance-meta {
  display: block;
  margin: 2px 0 6px;
  font-size: 0.76rem;
  color: var(--dashboard-muted-text);
}
.remediation-cwe__guidance-bullet {
  display: block;
  margin: 5px 0 0;
  padding-left: 14px;
  position: relative;
  font-size: 0.86rem;
  color: var(--dashboard-soft-text);
}
.remediation-cwe__guidance-bullet::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--remediation-accent, rgba(139, 125, 255, 0.8));
}
.remediation-cwe__guidance-text {
  display: block;
  font-size: 0.86rem;
  color: var(--dashboard-soft-text);
  line-height: 1.58;
}
.remediation-cwe__section {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--dashboard-outline);
  background: color-mix(in srgb, var(--dashboard-soft-bg-strong) 88%, transparent);
}
.remediation-cwe__section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}
.remediation-cwe__section-body {
  display: grid;
  gap: 10px;
}
.remediation-cwe__section-copy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--dashboard-soft-text);
}
.remediation-cwe__section-note {
  font-size: 0.77rem;
  color: var(--dashboard-muted-text);
}
.remediation-cwe__fact-list {
  display: grid;
  gap: 10px;
}
.remediation-cwe__fact-row {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.remediation-cwe__fact-row + .remediation-cwe__fact-row {
  padding-top: 10px;
  border-top: 1px solid var(--dashboard-outline);
}
.remediation-cwe__fact-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--dashboard-muted-text);
}
.remediation-cwe__fact-value {
  min-width: 0;
  color: var(--dashboard-soft-text);
}
.remediation-cwe__insight-list {
  display: grid;
  gap: 10px;
}
.remediation-cwe__insight {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--dashboard-soft-bg) 82%, rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--dashboard-outline) 86%, transparent);
}
.remediation-cwe__insight-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.remediation-cwe__insight-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dashboard-title-text);
}
.remediation-cwe__insight-meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
  flex-shrink: 0;
}
.remediation-cwe__insight-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.62;
  color: var(--dashboard-soft-text);
}
.remediation-cwe__description {
  margin: 2px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--dashboard-outline);
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--dashboard-soft-text);
}
.remediation-cwe__empty-state {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--dashboard-outline) 78%, var(--remediation-accent, #8b7dff));
  background: color-mix(in srgb, var(--dashboard-soft-bg-strong) 90%, transparent);
}
.remediation-cwe__empty-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}
.remediation-cwe__empty-copy {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.58;
  color: var(--dashboard-soft-text);
}
@media (max-width: 820px) {
  .remediation-cwe__pane-body {
    min-height: 240px;
  }
  .remediation-cwe__fact-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
@media (max-width: 720px) {
  .remediation-card--actions .panel-header__title {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 1100px) {
  .remediation-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "priority"
      "assets"
      "actions"
      "cwe";
  }
  body.remediation-mode {
    overflow-y: auto;
  }
  body.remediation-mode .app-main {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  body.remediation-mode #remediationScreen {
    height: auto;
    overflow: visible;
  }
  body.remediation-mode .remediation-grid {
    height: auto;
    max-height: none;
    margin: 12px auto 24px;
    grid-template-rows: none;
  }
  body.inventory-mode {
    overflow-y: auto;
  }
  body.inventory-mode .app-main {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  body.inventory-mode #assetScreen {
    height: auto;
    overflow: visible;
  }
  body.inventory-mode #assetScreen .asset-container {
    height: auto;
    max-height: none;
    margin: 0 auto 32px;
    padding-bottom: clamp(16px, 3vh, 28px);
  }
  body.inventory-mode #assetScreen .asset-column--main {
    display: flex;
    gap: 18px;
  }
  body.inventory-mode #assetScreen .asset-card--table {
    height: 680px;
    max-height: 680px;
  }
  body.inventory-mode #assetScreen .asset-card--table .asset-table-wrapper {
    height: auto;
    max-height: none;
    flex: 1 1 auto;
  }
  body.inventory-mode #assetScreen .asset-card--impacted {
    margin-bottom: 16px;
  }
  body.inventory-mode #assetScreen .impacted-assets-list {
    height: 600px;
    max-height: 600px;
  }
  body.cra-inventory-mode {
    overflow-y: auto;
  }
  body.cra-inventory-mode .app-main {
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
    overflow-x: hidden;
  }
  body.cra-inventory-mode #craInventoryScreen {
    height: auto;
    display: grid !important;
    row-gap: 22px;
    overflow-y: visible;
    overflow-x: clip;
  }
  body.vulnerabilities-mode {
    overflow-y: auto;
  }
  body.vulnerabilities-mode .app-main {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  body.vulnerabilities-mode #vulnScreen {
    height: auto;
    overflow: visible;
  }
  body.vulnerabilities-mode #vulnScreen .settings-container {
    height: auto;
    max-height: none;
    margin: 8px auto 10px;
    padding: 14px 10px 10px;
  }
}
@media (max-width: 900px) {
  .remediation-cwe__list {
    max-height: none;
  }
  .remediation-cwe__hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Dashboard stats and charts */
.chart-highlights {
    margin-bottom: clamp(32px, 6vh, 64px);
}
.ai-summary-section {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 12px auto 0;
}
.dashboard-ai-summary-card {
    display: block;
    padding: 9px 20px 9px 17px;
    height: auto;
    min-height: 0;
    border-left: 3px solid var(--accent);
    background:
      radial-gradient(ellipse at 100% 0%, rgba(108, 99, 255, 0.08), transparent 50%),
      linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.dashboard-ai-summary-card .panel-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}
.dashboard-ai-summary-card .panel-header__title {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
    flex-shrink: 1;
}
.dashboard-ai-summary-card h3 {
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 600;
    line-height: 1;
}
.ai-summary-icon {
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.9;
    display: block;
}
.ai-summary-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}
.dashboard-ai-summary-card .card-subtitle {
    margin: 0;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0.5;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}
.dashboard-ai-summary-card .ai-summary-controls {
    flex-shrink: 0;
    margin-left: 0;
}
.match-card--sets {
    gap: 14px;
}
.sets-chart {
    width: 100%;
    height: 420px;
}
.sets-chart canvas {
    width: 100% !important;
    height: 100% !important;
}
.sets-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px 2px 2px;
}
.sets-legend__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}
.sets-legend__block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sets-legend__title {
    font-size: 0.9rem;
    color: rgba(230,236,255,0.8);
    font-weight: 600;
}
.sets-legend__items {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
}
.sets-legend__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}
.sets-dot {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--muted);
    margin-right: 4px;
}
.sets-dot--patch { background: #4ade80; }
.sets-dot--nopatch { background: #9fb3c8; }
.sets-dot--kev { background: rgba(147, 216, 200, 0.9); }
.sets-dot--nokev { background: rgba(120, 130, 180, 0.6); }
.sets-dot--exploit { background: rgba(189, 120, 255, 0.9); }
.sets-dot--noexploit { background: rgba(148, 255, 214, 0.85); }
.sets-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.sets-pill {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 1px rgba(108, 99, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sets-pill__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(223, 229, 255, 0.7);
}
.sets-pill__value {
    font-size: 1.2rem;
    color: #f6f8ff;
    font-weight: 700;
}
.charts-section {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 20px auto 0;
}
#vulnFlowSection.charts-section {
    margin: 0 auto 0;
}
.match-card--charts {
    gap: 20px;
    padding: 22px 24px;
    border-left: 3px solid var(--accent);
    background:
      radial-gradient(ellipse at 100% 0%, rgba(108, 99, 255, 0.08), transparent 50%),
      linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

#businessProcessSection {
    gap: 8px;
    padding: 14px 18px;
}

#businessProcessSection .panel-header {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
}

#businessProcessSection .panel-header__title {
  flex: 0 0 auto;
  width: 100%;
}

#businessProcessSection .panel-header h3 {
  margin: 0;
  line-height: 1.12;
}

.business-process-header__subtitle {
  margin: 0;
  max-width: 100%;
  font-size: clamp(0.73rem, 0.7rem + 0.1vw, 0.8rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: left;
  color: color-mix(in srgb, var(--dashboard-muted-text, rgba(148, 163, 184, 0.9)) 92%, #c9d6ff 8%);
}

#businessProcessChartWrap {
  width: 100%;
  min-width: 0;
  overflow: visible;
}

#businessProcessChartWrap > canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.bp-level-summary {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
  padding-top: 10px;
  margin-top: 2px;
}

.bp-level-summary__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  padding: 2px 0;
}

.bp-level-summary__item + .bp-level-summary__item {
  border-left: 1px solid rgba(148, 163, 184, 0.08);
}

.bp-level-summary__count {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--dashboard-title-text, #e2e8f0) 92%, transparent);
}

.bp-level-summary__label {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.5);
}

.bp-level-summary__delta {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

.chart-card-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4px;
}
.chart-card-header h3 {
    margin: 0 0 4px;
}
.charts-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* ── Insights grid (Actionability / CWE / Vendors bar charts) ── */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
.insight-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.insight-chart-wrap {
    position: relative;
    height: 200px;
    flex: 1 1 auto;
    min-height: 160px;
}
.insight-chart-wrap--tall {
    height: 280px;
}
.insight-card--actionability {
    justify-content: space-between;
}
.insight-card--actionability .insight-chart-wrap--actionability {
    flex: 1 1 auto;
    height: 0;
    min-height: 120px;
}
.insight-card--actionability .insight-stats {
    margin-top: auto;
    padding-top: 10px;
}
.insight-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
.insight-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-top: 6px;
    border-top: 1px solid var(--dashboard-outline);
}
.insight-stats--paired {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.insight-stats--paired .insight-stat {
    width: 100%;
}
.insight-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.insight-stat__value {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dashboard-title-text);
}
.insight-stat__value--mono {
    font-size: 0.82rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    letter-spacing: -0.01em;
}
.insight-stat__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dashboard-muted-text);
}
.insight-stat__sub {
    font-size: 0.68rem;
    color: var(--dashboard-muted-text);
    letter-spacing: 0.02em;
}
.insight-stat__sub[data-trend="up"]   { color: #f87171; }
.insight-stat__sub[data-trend="down"] { color: #34d399; }
.insight-stat__value--low  { color: #34d399 !important; }
.insight-stat__value--high { color: #f87171 !important; }

.trend-period-selector {
    display: flex;
    gap: 4px;
    align-items: center;
}
.trend-period-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--dashboard-outline);
    background: transparent;
    color: var(--dashboard-muted-text);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.trend-period-btn:hover {
    background: rgba(255,255,255,0.06);
    color: var(--dashboard-title-text);
}
.trend-period-btn--active {
    background: rgba(99,102,241,0.18);
    border-color: rgba(99,102,241,0.5);
    color: #a5b4fc;
}

.insight-card--wide {
    grid-column: 1 / -1;
}
.insight-chart-wrap--trend {
    height: 200px;
    position: relative;
}
.risk-trend-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: var(--dashboard-muted-text);
    text-align: center;
    padding: 20px;
}

@media (max-width: 1100px) {
    .insights-grid {
        grid-template-columns: 1fr 1fr;
    }
    .insight-card--wide {
        grid-column: 1 / -1;
    }
}
@media (max-width: 700px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

.vuln-flow-card {
    --flow-accent: #8b5cf6;
    gap: 14px;
    border-left-color: var(--flow-accent);
}
.vuln-flow-header {
    align-items: flex-start;
    gap: 16px;
}
.flow-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 12px;
    min-width: 0;
    flex: 1 1 380px;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.flow-summary__item {
    --summary-accent: rgba(148, 163, 184, 0.92);
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-items: flex-start;
    gap: 8px;
    min-height: 88px;
    padding: 14px 14px 12px 16px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.flow-summary__item::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--summary-accent);
}
.flow-summary__item[data-tone="critical"] {
    --summary-accent: #ef4444;
}
.flow-summary__item[data-tone="kev"] {
    --summary-accent: #8b5cf6;
}
.flow-summary__item[data-tone="nopatch"] {
    --summary-accent: #f59e0b;
}
.flow-summary__item[data-tone="exploit"] {
    --summary-accent: #f472b6;
}
.flow-summary__label {
    padding-left: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--dashboard-muted-text);
}
.flow-summary__value {
    font-size: 1.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--dashboard-title-text);
}
.flow-summary__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--dashboard-muted-text);
}
.flow-summary__pct {
    color: var(--dashboard-muted-text);
}
.flow-summary__delta {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.flow-summary__delta--up {
    color: #34d399;
}
.flow-summary__delta--down {
    color: #f59e0b;
}
.vuln-flow-sankey {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 14px;
    overflow: visible;
    isolation: isolate;
}
.vuln-flow-sankey::before {
    content: none;
}
.vuln-flow-sankey__viewport {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -4px;
    padding: 2px 4px 12px;
    scrollbar-width: none;
}
.vuln-flow-sankey__viewport::-webkit-scrollbar {
    display: none;
}
.vuln-flow-sankey__svg {
    display: block;
    min-width: 1040px;
    height: auto;
    overflow: visible;
}
.vuln-flow-empty {
    margin: 44px auto;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.14);
    text-align: center;
    color: rgba(231, 236, 255, 0.76);
    letter-spacing: 0.03em;
}
.sankey-stage-panel,
.sankey-stage-divider,
.flow-stage-header__rule {
    pointer-events: none;
}
.sankey-stage-divider {
    stroke-width: 1;
    stroke-dasharray: 4 8;
    pointer-events: none;
}
.flow-stage-header__eyebrow,
.flow-stage-header__title,
.flow-stage-header__note {
    pointer-events: none;
    font-family: inherit;
}
.flow-stage-header__eyebrow {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.flow-stage-header__title {
    font-size: 1.02rem;
    font-weight: 760;
    letter-spacing: -0.01em;
}
.flow-stage-header__note {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.sankey-node rect {
    transition: opacity 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}
.sankey-node.is-muted rect {
    opacity: 0.15;
    filter: none;
}
.sankey-node.is-active rect {
    opacity: 1;
}
.flow-node-card__bg,
.flow-node-card__accent,
.flow-node-card__connector {
    transition: opacity 0.3s ease, stroke 0.3s ease, fill 0.3s ease;
}
.flow-node-card {
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.flow-node-card.is-muted {
    opacity: 0.18;
}
.flow-node-card__bg,
.flow-node-card__accent,
.flow-node-card__connector {
    pointer-events: none;
}
.flow-node-card__connector {
    stroke-width: 1;
    opacity: 0.20;
}
.flow-node-card__label {
    font-size: 0.82rem;
    font-weight: 760;
    letter-spacing: 0.01em;
    pointer-events: none;
    font-family: inherit;
}
.flow-node-card__count {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    pointer-events: none;
    font-family: inherit;
}
.flow-node-card__pct {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    pointer-events: none;
    font-family: inherit;
}
.sankey-link {
    transition: stroke-opacity 0.32s ease, filter 0.32s ease;
    cursor: pointer;
}
.sankey-link.is-muted {
    stroke-opacity: 0.06 !important;
}
.sankey-link.is-active {
    stroke-opacity: 0.82 !important;
}
.vuln-flow-footnote {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    line-height: 1.35;
    color: rgba(191, 204, 228, 0.72);
}
.vuln-flow-footnote__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
}
.flow-tooltip {
    position: absolute;
    pointer-events: none;
    min-width: 184px;
    background: rgba(8, 10, 18, 0.96);
    border: 1px solid rgba(118, 166, 255, 0.3);
    backdrop-filter: blur(14px);
    color: #f7f9ff;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.4);
    opacity: 0;
    transform: translate3d(0, 6px, 0);
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 12;
}
.flow-tooltip.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.flow-tooltip .tooltip-title {
    font-weight: 700;
    margin-bottom: 6px;
}
.stat-section {
    position: relative;
    isolation: isolate;
    background: var(--dashboard-soft-bg);
    border: 1px solid var(--dashboard-outline);
    border-radius: 12px;
    box-shadow: none;
    padding: 18px;
    min-height: clamp(240px, 32vh, 360px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.stat-section:hover {
    border-color: rgba(108, 99, 255, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.chart-title {
    margin: 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dashboard-muted-text);
    align-self: flex-start;
}
.stat-section.chart-animate {
    animation: chartIntro 0.65s cubic-bezier(0, 0, 0.2, 1) both;
    animation-delay: var(--chart-delay, 0ms);
}
@keyframes chartIntro {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.panel-intro {
    animation: panelIntro 0.65s cubic-bezier(0, 0, 0.2, 1) both;
    animation-delay: var(--intro-delay, 0ms);
}
@keyframes panelIntro {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-section canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 320px;
    flex: 1 1 auto;
}
@media (max-width: 640px) {
    .charts-section {
        margin: 18px auto 24px;
        padding: 0 12px;
    }
    .match-card--charts {
        padding: 18px;
    }
    .chart-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .flow-summary {
        min-width: 0;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .vuln-flow-sankey {
        padding: 16px;
    }
    .stat-section {
        min-height: 220px;
        padding: 20px;
    }
}
/* Loading spinner overlay */
#loadingSpinner {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(108, 99, 255, 0.24), transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(86, 192, 255, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(5, 8, 15, 0.97), rgba(8, 10, 16, 0.96));
    backdrop-filter: blur(12px);
    color: #f4f6ff;
    font-size: 1rem;
    text-align: center;
    z-index: 1200;
}
#loadingSpinner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 48%, transparent 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 32%);
    opacity: 0.9;
}
.loading-brand {
    position: relative;
    z-index: 1;
    width: clamp(132px, 18vw, 184px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    isolation: isolate;
}
.loading-brand::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(108, 99, 255, 0.18) 24%, transparent 72%);
    filter: blur(16px);
    animation: loadingBrandPulse 2.8s ease-in-out infinite;
}
.loading-brand::after {
    content: "";
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 0 0 12px rgba(255, 255, 255, 0.025),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: loadingOrbitRing 5.4s linear infinite;
}
.loading-brand__rotor,
.loading-brand__pulse {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}
.loading-brand__rotor {
    animation: loadingLogoSpin 2.8s infinite;
}
.loading-brand__pulse {
    animation: loadingLogoScale 2.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
.loading-brand__logo {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.16))
        drop-shadow(0 0 40px rgba(108, 99, 255, 0.34));
}
.loading-brand__logo--echo {
    z-index: 1;
    opacity: 0.14;
    filter:
        blur(14px)
        drop-shadow(0 0 28px rgba(108, 99, 255, 0.42));
    animation: loadingLogoEcho 2.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
#loadingSpinner p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(320px, 82vw);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(230, 233, 255, 0.85);
}
.loading-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    display: none;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 2;
}
#loadingSpinner[data-progress="bar"] .loading-progress,
#loadingSpinner[data-progress="bar-active"] .loading-progress {
    display: block;
}
.loading-progress__bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(86, 192, 255, 0.15) 0%, rgba(108, 99, 255, 0.85) 50%, rgba(164, 104, 255, 0.95) 100%);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.55);
}
/* Indeterminate: sliding animation while waiting for first progress event */
#loadingSpinner[data-progress="bar"] .loading-progress__bar {
    width: 35%;
    transform: translateX(-120%);
    animation: loadingProgressSlide 1.45s ease-in-out infinite;
    transition: none;
}
/* Deterministic: real width driven by JS, smooth transition between updates */
#loadingSpinner[data-progress="bar-active"] .loading-progress__bar {
    width: 0%;
    transform: none;
    animation: none;
    transition: width 0.35s ease-out;
}
@keyframes loadingBrandPulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}
@keyframes loadingOrbitRing {
    from {
        transform: rotate(0deg) scale(0.96);
        opacity: 0.35;
    }
    50% {
        transform: rotate(180deg) scale(1.03);
        opacity: 0.7;
    }
    to {
        transform: rotate(360deg) scale(0.96);
        opacity: 0.35;
    }
}
@keyframes loadingLogoSpin {
    0% {
        transform: rotate(0deg);
        animation-timing-function: cubic-bezier(0.58, 0.12, 0.9, 0.44);
    }
    49.65% {
        transform: rotate(173deg);
        animation-timing-function: linear;
    }
    50.35% {
        transform: rotate(187deg);
        animation-timing-function: cubic-bezier(0.22, 0.78, 0.34, 1);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes loadingLogoScale {
    0%,
    100% {
        transform: scale(0.84);
    }
    50% {
        transform: scale(1.16);
    }
}
@keyframes loadingLogoEcho {
    0%,
    100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.22;
    }
}
@keyframes loadingProgressSlide {
    0% {
        transform: translateX(-120%);
    }
    50% {
        transform: translateX(95%);
    }
    100% {
        transform: translateX(260%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .loading-brand::before,
    .loading-brand::after,
    .loading-brand__rotor,
    .loading-brand__pulse,
    .loading-brand__logo,
    .loading-brand__logo--echo,
    .loading-progress__bar {
        animation: none;
    }
    .loading-progress__bar {
        width: 100%;
        transform: translateX(0);
        opacity: 0.68;
    }
}
body.panel-is-loading {
    overflow: hidden;
}
body.panel-is-loading #panelContent,
body.panel-is-loading #loginForm {
    visibility: hidden;
}

/* ── Light theme: loading spinner ── */
body.theme-light #loadingSpinner {
    background:
        radial-gradient(circle at 50% 42%, rgba(138, 92, 246, 0.12), transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(244, 247, 255, 0.98), rgba(235, 240, 252, 0.97));
    color: #1e293b;
}
body.theme-light #loadingSpinner::before {
    background:
        linear-gradient(120deg, transparent 0%, rgba(138, 92, 246, 0.04) 48%, transparent 100%),
        radial-gradient(circle at 50% 50%, rgba(138, 92, 246, 0.06), transparent 32%);
}
body.theme-light .loading-brand::before {
    background: radial-gradient(circle, rgba(138, 92, 246, 0.18) 0%, rgba(168, 85, 247, 0.12) 24%, transparent 72%);
}
body.theme-light .loading-brand::after {
    border-color: rgba(138, 92, 246, 0.18);
    box-shadow:
        0 0 0 12px rgba(138, 92, 246, 0.04),
        inset 0 0 0 1px rgba(138, 92, 246, 0.08);
}
body.theme-light .loading-brand__logo {
    filter:
        drop-shadow(0 0 20px rgba(138, 92, 246, 0.14))
        drop-shadow(0 0 40px rgba(168, 85, 247, 0.2));
}
body.theme-light .loading-brand__logo--echo {
    opacity: 0.1;
    filter:
        blur(14px)
        drop-shadow(0 0 28px rgba(138, 92, 246, 0.25));
}
body.theme-light #loadingSpinner p {
    color: rgba(30, 41, 59, 0.7);
}
body.theme-light .loading-progress {
    background: rgba(15, 23, 42, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
body.theme-light .loading-progress__bar {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.22) 0%, rgba(37, 99, 235, 0.75) 52%, rgba(30, 64, 175, 0.92) 100%);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.35);
}

/* Reusable button styling */
.icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(28, 33, 44, 0.95), rgba(14, 16, 24, 0.95));
    color: #f6f8ff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.icon-button:hover,
.icon-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(108, 99, 255, 0.65);
    box-shadow: 0 10px 24px rgba(10, 14, 23, 0.6);
    outline: none;
}
.icon-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.icon-button.toggle {
    text-transform: none;
    letter-spacing: 0.02em;
}
.icon-button.toggle[data-active="true"] {
    background: linear-gradient(135deg, rgba(86, 80, 255, 0.9), rgba(21, 122, 255, 0.9));
    border-color: rgba(118, 166, 255, 0.8);
    color: #ffffff;
}
.icon-button.toggle[data-active="false"] {
    opacity: 0.7;
}
.icon-button--ghost {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    color: #e8ecff;
}
.icon-button--ghost:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.icon-button .tooltip {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.8);
    color: #f7f9ff;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.icon-button:hover .tooltip,
.icon-button:focus-visible .tooltip {
    opacity: 1;
}
/* Settings container and filters */
.settings-container {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 16px auto 32px;
    padding: 24px;
    border-radius: 14px;
    background: rgba(17, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#vulnScreen .settings-container {
    position: relative;
    min-height: 0;
    max-height: calc(100vh - 18px);
    overflow: visible;
    padding: 14px 10px 10px;
    margin: 8px auto 10px;
    gap: 12px;
}
#vulnScreen .settings-container .feed-container {
    flex: 1 1 auto;
    max-height: none;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}
.feed-empty-state {
    padding: 18px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(236, 241, 255, 0.78);
    font-size: 0.9rem;
    text-align: center;
}
#vulnScreen .feed-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2200;
    isolation: isolate;
}
#vulnScreen .feed-filters .filter-group {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 12px 0 10px;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
}
/* Dropdown positions relative to the pill, not the cs-wrapper */
#vulnScreen .feed-filters .cs-wrapper {
    position: static;
}
#vulnScreen .feed-filters .filter-group .cs-dropdown {
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
}
#vulnScreen .feed-filters .filter-group--cve {
    flex: 2 1 0;
    min-width: 110px;
}
#vulnScreen .feed-filters .filter-group label {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    flex-shrink: 0;
    white-space: nowrap;
}
#vulnScreen .feed-filters .filter-group input {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.82rem;
    min-width: 0;
    width: 100%;
    box-shadow: none;
}
#vulnScreen .feed-filters .filter-group input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}
#vulnScreen .feed-filters .filter-group select {
    background-color: transparent;
    border: none;
    padding: 0 18px 0 0;
    border-radius: 0;
    font-size: 0.82rem;
    min-width: 0;
    width: 0;
    flex: 1 1 0;
    box-shadow: none;
    background-position: calc(100% - 4px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
    overflow: hidden;
    text-overflow: ellipsis;
}
#vulnScreen .feed-filters .filter-group select:focus {
    outline: none;
    box-shadow: none;
}
#vulnScreen .feed-filters .filter-group .cs-trigger {
    background: transparent;
    border: none;
    padding: 0 22px 0 0;
    border-radius: 0;
    font-size: 0.82rem;
    min-width: 0;
    width: 0;
    flex: 1 1 0;
    box-shadow: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
#vulnScreen .feed-filters .filter-group .cs-trigger:hover,
#vulnScreen .feed-filters .filter-group .cs-trigger:focus-visible {
    border: none;
    box-shadow: none;
}
/* Active state: highlight the pill container, not the inner control */
#vulnScreen .feed-filters .filter-group[data-filter-active="true"] input,
#vulnScreen .feed-filters .filter-group[data-filter-active="true"] select,
#vulnScreen .feed-filters .filter-group[data-filter-active="true"] .cs-trigger {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
}
/* Vendor/product dropdown: don't inherit narrow pill width */
#vulnScreen .feed-filters .filter-group--vendor .cs-dropdown,
#vulnScreen .feed-filters .filter-group--product .cs-dropdown {
    width: auto;
    min-width: 200px;
    max-width: 300px;
}
#vulnScreen .feed-filters .filter-group--product select:disabled {
    opacity: 0.35;
    cursor: default;
}
#vulnScreen .feed-filters .filter-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    min-width: 14px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(223, 229, 255, 0.75);
    cursor: pointer;
    font-size: 0.6rem;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    visibility: hidden;
    pointer-events: none;
}
#vulnScreen .feed-filters .filter-clear:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}
#vulnScreen .feed-filters .filter-group[data-filter-active="true"] .filter-clear {
    visibility: visible;
    pointer-events: auto;
}
/* Hide native clear button from type=search to avoid double × */
#vulnScreen #cveSearchInput::-webkit-search-cancel-button {
    display: none;
}
#vulnScreen .feed-pagination {
    width: 100%;
    margin: 4px auto 0;
    padding: 6px 4px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
#vulnScreen .feed-pagination__summary {
    font-size: 0.76rem;
    color: rgba(223, 229, 255, 0.4);
}
#vulnScreen .feed-pagination__actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}
#vulnScreen .feed-pagination__page {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: rgba(223, 229, 255, 0.55);
    font-variant-numeric: tabular-nums;
}
#vulnScreen .feed-pagination__page-prefix {
    display: none;
}
#vulnScreen .feed-pagination__page-suffix {
    color: inherit;
}
#vulnScreen .feed-pagination__btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(223, 229, 255, 0.45);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease;
}
#vulnScreen .feed-pagination__btn:hover,
#vulnScreen .feed-pagination__btn:focus-visible {
    color: rgba(223, 229, 255, 0.9);
    outline: none;
    background: transparent;
}
#vulnScreen .feed-pagination__btn:active {
    color: #fff;
}
#vulnScreen .feed-pagination__btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}
#vulnScreen .feed-pagination__page-input {
    width: 32px;
    height: auto;
    padding: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: transparent;
    color: rgba(241, 245, 255, 0.85);
    font-size: 0.78rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
#vulnScreen .feed-pagination__page-input:focus-visible {
    outline: none;
    border-bottom-color: rgba(99, 102, 241, 0.7);
}
#vulnScreen .feed-list-header {
    width: 100%;
    margin: 4px auto 0;
    padding: 0 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    color: rgba(223, 229, 255, 0.6);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    z-index: 1;
    min-height: 46px;
}
#vulnScreen .feed-list-header__left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    justify-content: center;
    min-height: 38px;
}
#vulnScreen .feed-list-header__title {
    font-size: 0.9rem;
    line-height: 1;
}
#vulnScreen .feed-list-header__mid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: center;
    margin-left: 0;
}
#vulnScreen .feed-list-header__cvss {
    min-width: 92px;
    font-size: 0.65rem;
    text-align: center;
}
#vulnScreen .feed-list-header__icons {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
#vulnScreen .feed-list-header__right {
    justify-self: end;
}
#vulnScreen .feed-list-header .feed-card__icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border-color: currentColor;
    pointer-events: none;
}
#vulnScreen .feed-list-header .feed-card__icon::after {
    display: none;
}
@media (max-width: 760px) {
    #vulnScreen .feed-pagination {
        flex-direction: column;
        align-items: stretch;
    }
    #vulnScreen .feed-pagination__actions {
        justify-content: flex-start;
    }
    #vulnScreen .feed-pagination__page {
        min-width: auto;
    }
}
.vuln-toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    width: 100%;
}
.vuln-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: min(100%, 520px);
    margin: 0 auto;
}
.feed-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
#vulnScreen .filter-group[data-filter-active="true"] {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(22, 28, 42, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
#vulnScreen .filter-group[data-filter-active="true"] label {
    color: rgba(236, 242, 255, 0.92);
}
#vulnScreen .filter-group[data-filter-active="true"] input,
#vulnScreen .filter-group[data-filter-active="true"] select,
#vulnScreen .filter-group[data-filter-active="true"] .cs-trigger {
    border-color: rgba(255, 255, 255, 0.22);
    background-color: rgba(255, 255, 255, 0.08);
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(12, 16, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.filter-group--vendor {
    gap: 8px;
}
.filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(223, 229, 255, 0.7);
}
.filter-group input,
.filter-group select {
    background-color: var(--filter-input-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--filter-input-border, rgba(255, 255, 255, 0.1));
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%), linear-gradient(135deg, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 15px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    scrollbar-color: var(--filter-scroll-thumb, rgba(120, 132, 255, 0.6)) var(--filter-scroll-track, rgba(22, 26, 38, 0.9));
}
.filter-group--vendor .cs-dropdown {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}
.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: rgba(108, 99, 255, 0.65);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}
.filter-group select::-ms-expand {
    display: none;
}
.filter-group select option {
    background: rgba(10, 13, 20, 0.95);
    color: var(--text);
}
.filter-group select::-webkit-scrollbar {
    width: 10px;
}
.filter-group select::-webkit-scrollbar-track {
    background: rgba(18, 22, 33, 0.95);
    border-radius: 999px;
}
.filter-group select::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(120, 132, 255, 0.8), rgba(92, 68, 255, 0.7));
    border-radius: 999px;
    border: 2px solid rgba(18, 22, 33, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.filter-group select::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(140, 150, 255, 0.9), rgba(112, 88, 255, 0.85));
}
.settings-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: rgba(223, 229, 255, 0.8);
}
.settings-container input,
.settings-container select,
.settings-container textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text);
    font-family: inherit;
}
.settings-container input:focus,
.settings-container select:focus,
.settings-container textarea:focus {
    outline: none;
    border-color: rgba(108, 99, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.15);
}

.settings-user-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.settings-user-card__label {
    margin: 0 0 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(223, 229, 255, 0.65);
}

.settings-user-card__value {
    margin: 0;
    font-size: 1rem;
    color: rgba(245, 248, 255, 0.95);
    word-break: break-word;
}

.settings-tenant {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.settings-tenant__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.settings-tenant__header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.settings-tenant__status {
    min-height: 20px;
    margin: 0;
    font-size: 0.84rem;
    color: rgba(223, 229, 255, 0.78);
}

.settings-tenant__status[data-type="error"] {
    color: #ff8f8f;
}

.settings-tenant__status[data-type="warn"] {
    color: #ffd48f;
}

.settings-tenant__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.settings-tenant__item {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.settings-tenant__label {
    margin: 0 0 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(223, 229, 255, 0.65);
}

.settings-tenant__value {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(240, 245, 255, 0.94);
    word-break: break-word;
}

.settings-tenant__item--wide {
    grid-column: span 2;
}

.settings-users {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.settings-users__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.settings-users__header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.settings-users__counter {
    font-size: 0.84rem;
    color: rgba(223, 229, 255, 0.78);
}

.settings-users__hint {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(223, 229, 255, 0.7);
}

.settings-users__form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
}

.settings-users__status {
    min-height: 20px;
    margin: 0;
    font-size: 0.84rem;
    color: rgba(223, 229, 255, 0.78);
}

.settings-users__status[data-type="error"] {
    color: #ff8f8f;
}

.settings-users__status[data-type="success"] {
    color: #8fffb6;
}

.settings-users__status[data-type="warn"] {
    color: #ffd48f;
}

.settings-users__table-wrap {
    overflow-x: auto;
}

.settings-users__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.settings-users__table th,
.settings-users__table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 0.9rem;
}

.settings-users__table th {
    color: rgba(223, 229, 255, 0.72);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.settings-users__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.settings-users__resend,
.settings-users__delete {
    padding: 6px 10px;
    font-size: 0.78rem;
    min-width: 108px;
    white-space: nowrap;
}

.settings-users__resend {
    border: 1px solid rgba(255, 197, 118, 0.36);
    color: rgba(255, 225, 176, 0.92);
    background: rgba(80, 56, 21, 0.38);
}

.settings-users__empty {
    text-align: center;
    color: rgba(223, 229, 255, 0.62);
}

.settings-users__role-text {
    color: rgba(223, 229, 255, 0.9);
    font-weight: 520;
}

.settings-users__forbidden {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 212, 143, 0.3);
    background: rgba(255, 172, 74, 0.12);
    color: #ffd48f;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .settings-tenant__grid {
        grid-template-columns: 1fr;
    }

    .settings-tenant__item--wide {
        grid-column: auto;
    }

    .settings-users__form {
        grid-template-columns: 1fr;
    }
}

/* ── Settings screen ── */
#settingsScreen .settings-container {
    --st-bg-0: rgba(8, 12, 20, 0.98);
    --st-bg-1: rgba(12, 18, 30, 0.94);
    --st-surface: rgba(17, 24, 39, 0.62);
    --st-surface-strong: rgba(20, 29, 46, 0.78);
    --st-border: rgba(148, 163, 184, 0.12);
    --st-border-soft: rgba(148, 163, 184, 0.08);
    --st-text: rgba(244, 247, 255, 0.96);
    --st-muted: rgba(194, 206, 228, 0.72);
    --st-accent: #4ea2ff;
    --st-danger: #ff7d7d;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 0;
    background: none;
    border: none;
    box-shadow: none;
    position: relative;
}

/* Header */
#settingsScreen .settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}
#settingsScreen .settings-header__left { min-width: 0; }
#settingsScreen .settings-title {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--st-text);
    font-weight: 650;
}
#settingsScreen .settings-intro {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: var(--st-muted);
    line-height: 1.4;
}
#settingsScreen .settings-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
#settingsScreen .settings-header__user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}
#settingsScreen .settings-header__user-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(191, 205, 233, 0.5);
}
#settingsScreen .settings-header__user-value {
    font-size: 0.84rem;
    color: var(--st-text);
    font-weight: 520;
}
/* Divider */
#settingsScreen .settings-divider {
    border: none;
    border-top: 1px solid var(--st-border-soft);
    margin: 0;
}

/* Section */
#settingsScreen .settings-section {
    padding: 20px 0;
}
#settingsScreen .settings-section__head {
    margin-bottom: 14px;
}
#settingsScreen .settings-section__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 620;
    letter-spacing: -0.01em;
    color: var(--st-text);
}
#settingsScreen .settings-section__desc {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--st-muted);
    line-height: 1.4;
    max-width: 640px;
}
#settingsScreen .settings-section__status {
    min-height: 16px;
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: rgba(192, 208, 236, 0.8);
}
#settingsScreen .settings-section__status[data-type="error"] { color: #ffa4a4; }
#settingsScreen .settings-section__status[data-type="warn"] { color: #ffd08f; }
#settingsScreen .settings-section__head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

/* Organization layout */
#settingsScreen .settings-org-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 12px;
}
#settingsScreen .settings-org__identity {
    border-radius: 10px;
    border: 1px solid var(--st-border-soft);
    background: rgba(17, 24, 39, 0.35);
    padding: 8px;
}
#settingsScreen .settings-tenant__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
#settingsScreen .settings-tenant__field {
    padding: 6px 9px 7px;
    border: none;
    border-radius: 6px;
    background: rgba(12, 20, 36, 0.4);
    display: grid;
    align-content: start;
    gap: 2px;
}
#settingsScreen .settings-tenant__field--name {
    grid-column: span 2;
}
#settingsScreen .settings-tenant__label {
    margin: 0;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(170, 188, 218, 0.55);
    line-height: 1.2;
}
#settingsScreen .settings-tenant__value {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(236, 244, 255, 0.9);
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
}
#settingsScreen .settings-tenant__value--primary {
    font-size: 0.92rem;
    font-weight: 600;
    color: #eef5ff;
}
#settingsScreen .settings-org__limits {
    border-radius: 10px;
    border: 1px solid var(--st-border-soft);
    background: rgba(17, 24, 39, 0.35);
    padding: 0;
}
#settingsScreen .settings-org__limits-title {
    margin: 0;
    padding: 10px 12px 6px;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(172, 190, 219, 0.55);
    font-weight: 600;
}
#settingsScreen .settings-tenant__metrics {
    display: grid;
    gap: 0;
    padding: 0 12px 8px;
}
#settingsScreen .settings-tenant__metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(117, 139, 181, 0.08);
}
#settingsScreen .settings-tenant__metric:last-child { border-bottom: none; }
#settingsScreen .settings-tenant__metric-label {
    margin: 0;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(170, 188, 219, 0.6);
}
#settingsScreen .settings-tenant__metric-value {
    margin: 0;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    color: #edf4ff;
    font-weight: 580;
    text-align: right;
    min-width: 20px;
}

/* Mapping grid */
#settingsScreen .settings-mapping__grid {
    display: grid;
    gap: 0;
}
#settingsScreen .settings-mapping__block {
    border: none;
    border-bottom: 1px solid var(--st-border-soft);
    border-radius: 0;
    background: none;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
#settingsScreen .settings-mapping__block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
#settingsScreen .settings-mapping__block:first-child {
    padding-top: 0;
}
#settingsScreen .settings-mapping__block-head {
    display: grid;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
#settingsScreen .settings-mapping__block h4 {
    margin: 0;
    font-size: 0.84rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--st-text);
    font-weight: 560;
}
#settingsScreen .settings-mapping__block p {
    margin: 0;
    color: var(--st-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}
#settingsScreen .settings-mapping__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
#settingsScreen .settings-mapping__controls .mapping-refresh-controls {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(130, 152, 196, 0.12);
    padding: 4px 7px;
    border-radius: 7px;
    gap: 5px;
}
#settingsScreen .settings-mapping__controls .mapping-refresh-controls label {
    font-size: 0.68rem;
}
#settingsScreen .settings-mapping__controls .mapping-refresh-controls input {
    width: 62px;
    padding: 3px 5px;
    font-size: 0.78rem;
    border-radius: 5px;
}
#settingsScreen .settings-mapping__controls .icon-button {
    min-width: 0;
    padding: 6px 14px;
    font-size: 0.72rem;
}
/* Team / Users */
#settingsScreen .settings-users {
    display: grid;
    gap: 10px;
}
#settingsScreen .settings-users__counter {
    font-size: 0.76rem;
    font-weight: 520;
    color: rgba(195, 210, 238, 0.7);
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(78, 162, 255, 0.08);
    border: 1px solid rgba(78, 162, 255, 0.14);
    white-space: nowrap;
}
#settingsScreen .settings-users__form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 8px;
    align-items: stretch;
}
#settingsScreen .settings-users__form input {
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(134, 156, 196, 0.18);
    background: rgba(9, 14, 26, 0.5);
    color: var(--st-text);
    padding: 8px 11px;
    font-size: 0.84rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
#settingsScreen .settings-users__form input::placeholder { color: rgba(177, 194, 224, 0.48); }
#settingsScreen .settings-users__form input:hover { border-color: rgba(147, 169, 209, 0.42); }
#settingsScreen .settings-users__form input:focus {
    outline: none;
    border-color: rgba(99, 160, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(78, 162, 255, 0.15);
    background: rgba(10, 17, 31, 0.86);
}
#settingsScreen #settingsCreateButton {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(142, 170, 216, 0.28);
    background: rgba(38, 57, 90, 0.7);
    color: rgba(236, 242, 255, 0.92);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: none;
    transition: border-color .2s, background .2s, transform .15s;
}
#settingsScreen #settingsCreateButton:hover,
#settingsScreen #settingsCreateButton:focus-visible {
    border-color: rgba(167, 193, 233, 0.45);
    background: rgba(44, 65, 102, 0.85);
}
#settingsScreen #settingsCreateButton:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
#settingsScreen .settings-users__status {
    min-height: 18px;
    margin: 0;
    font-size: 0.84rem;
    color: rgba(195, 210, 238, 0.86);
}
#settingsScreen .settings-users__status[data-type="error"] { color: #ffa4a4; }
#settingsScreen .settings-users__status[data-type="success"] { color: #8fffc0; }
#settingsScreen .settings-users__status[data-type="warn"] { color: #ffd08f; }
#settingsScreen .settings-users__table-wrap {
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(128, 150, 190, 0.1);
    background: rgba(8, 13, 22, 0.35);
}
#settingsScreen .settings-users__table {
    width: 100%;
    min-width: 580px;
    border-collapse: separate;
    border-spacing: 0;
}
#settingsScreen .settings-users__table th,
#settingsScreen .settings-users__table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(120, 143, 186, 0.08);
    text-align: left;
    font-size: 0.82rem;
}
#settingsScreen .settings-users__table th {
    background: rgba(13, 20, 33, 0.6);
    color: rgba(191, 207, 235, 0.55);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
#settingsScreen .settings-users__table tbody tr:hover td { background: rgba(45, 68, 112, 0.16); }
#settingsScreen .settings-users__table td:first-child { color: rgba(237, 243, 255, 0.95); font-weight: 520; }
#settingsScreen .settings-users__empty { text-align: center; color: var(--st-muted); padding: 20px 14px; }
#settingsScreen .settings-users__role-text { color: rgba(226, 236, 255, 0.9); font-weight: 560; }
#settingsScreen .settings-users__status-text { font-weight: 520; text-transform: lowercase; }
#settingsScreen .settings-users__status-text--pending { color: #ffd08f; }
#settingsScreen .settings-users__status-text--expired { color: #ffb169; }
#settingsScreen .settings-users__status-text--active { color: rgba(162, 198, 255, 0.9); }
#settingsScreen .settings-users__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
#settingsScreen .settings-users__resend {
    min-height: 32px; min-width: 100px; padding: 0 12px; border-radius: 8px;
    border: 1px solid rgba(255, 197, 118, 0.42); background: linear-gradient(135deg, rgba(92, 60, 19, 0.78), rgba(66, 42, 13, 0.84));
    color: #ffe1b8; font-size: 0.7rem; font-weight: 620; letter-spacing: 0.07em; text-transform: uppercase;
}
#settingsScreen .settings-users__resend:hover,
#settingsScreen .settings-users__resend:focus-visible {
    border-color: rgba(255, 215, 152, 0.82); background: linear-gradient(135deg, rgba(126, 79, 25, 0.9), rgba(89, 57, 18, 0.92));
    color: #fff1db; transform: translateY(-1px);
}
#settingsScreen .settings-users__resend:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
#settingsScreen .settings-users__delete {
    min-height: 32px; min-width: 100px; padding: 0 12px; border-radius: 8px;
    border: 1px solid rgba(255, 138, 138, 0.38); background: linear-gradient(135deg, rgba(74, 23, 32, 0.82), rgba(48, 16, 22, 0.86));
    color: #ffd7d7; font-size: 0.7rem; font-weight: 620; letter-spacing: 0.07em; text-transform: uppercase;
}
#settingsScreen .settings-users__delete:hover,
#settingsScreen .settings-users__delete:focus-visible {
    border-color: rgba(255, 172, 172, 0.72); background: linear-gradient(135deg, rgba(110, 30, 44, 0.88), rgba(75, 21, 31, 0.9));
    color: #ffe6e6; transform: translateY(-1px);
}
#settingsScreen .settings-users__delete:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
#settingsScreen .settings-users__forbidden {
    padding: 14px 16px; border-radius: 12px;
    border: 1px solid rgba(255, 196, 120, 0.3); background: linear-gradient(160deg, rgba(78, 52, 19, 0.4), rgba(47, 29, 11, 0.5));
    color: #ffd8a3; font-size: 0.9rem;
}

/* Appearance / Theme */
#settingsScreen .settings-support {
    display: block;
}
#settingsScreen .settings-support__form {
    border-radius: 12px;
    border: 1px solid rgba(128, 150, 190, 0.1);
    background: rgba(8, 13, 22, 0.35);
    display: grid;
    gap: 12px;
    padding: 16px;
}
#settingsScreen .settings-support__field {
    display: grid;
    gap: 8px;
}
#settingsScreen .settings-support__field label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(191, 207, 235, 0.66);
}
#settingsScreen .settings-support__field input,
#settingsScreen .settings-support__field textarea {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(134, 156, 196, 0.18);
    background: rgba(9, 14, 26, 0.5);
    color: var(--st-text);
    padding: 10px 12px;
    font-size: 0.84rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
    resize: vertical;
}
#settingsScreen .settings-support__field textarea {
    min-height: 136px;
    line-height: 1.55;
}
#settingsScreen .settings-support__field input::placeholder,
#settingsScreen .settings-support__field textarea::placeholder {
    color: rgba(177, 194, 224, 0.48);
}
#settingsScreen .settings-support__field input:hover,
#settingsScreen .settings-support__field textarea:hover {
    border-color: rgba(147, 169, 209, 0.42);
}
#settingsScreen .settings-support__field input:focus,
#settingsScreen .settings-support__field textarea:focus {
    outline: none;
    border-color: rgba(99, 160, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(78, 162, 255, 0.15);
    background: rgba(10, 17, 31, 0.86);
}
#settingsScreen .settings-support__field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
#settingsScreen .settings-support__counter {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(195, 210, 238, 0.72);
    white-space: nowrap;
}
#settingsScreen .settings-support__counter[data-limit-reached="true"] {
    color: #ffd08f;
}
#settingsScreen .settings-support__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
#settingsScreen .settings-support__hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--st-muted);
}
#settingsScreen #settingsSupportButton {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(142, 170, 216, 0.28);
    background: rgba(38, 57, 90, 0.7);
    color: rgba(236, 242, 255, 0.92);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: none;
    transition: border-color .2s, background .2s, transform .15s;
}
#settingsScreen #settingsSupportButton:hover,
#settingsScreen #settingsSupportButton:focus-visible {
    border-color: rgba(167, 193, 233, 0.45);
    background: rgba(44, 65, 102, 0.85);
}
#settingsScreen #settingsSupportButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
#settingsScreen .settings-support__status {
    min-height: 18px;
    margin: 0;
    font-size: 0.84rem;
    color: rgba(195, 210, 238, 0.86);
}
#settingsScreen .settings-support__status[data-type="error"] { color: #ffa4a4; }
#settingsScreen .settings-support__status[data-type="success"] { color: #8fffc0; }
#settingsScreen .settings-support__status[data-type="warn"] { color: #ffd08f; }
#settingsScreen .settings-appearance {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
#settingsScreen .settings-appearance__toggle {
    display: flex;
    gap: 8px;
}
#settingsScreen .settings-appearance__option {
    position: relative;
    display: inline-flex;
}
#settingsScreen .settings-appearance__option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
#settingsScreen .settings-appearance__option span {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    border: 1px solid rgba(137, 159, 202, 0.18);
    background: rgba(12, 20, 36, 0.4);
    color: rgba(225, 234, 255, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 560;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
#settingsScreen .settings-appearance__option span:hover {
    border-color: rgba(160, 180, 220, 0.35);
    color: rgba(235, 242, 255, 0.85);
}
#settingsScreen .settings-appearance__option input:checked + span {
    border-color: rgba(136, 170, 232, 0.45);
    background: rgba(46, 82, 145, 0.65);
    color: #f2f6ff;
    box-shadow: none;
}
#settingsScreen .settings-appearance__option input:focus-visible + span {
    outline: 2px solid rgba(96, 152, 255, 0.7);
    outline-offset: 2px;
}
#settingsScreen .settings-appearance__status {
    margin: 0;
    font-size: 0.78rem;
    color: var(--st-muted);
}
#settingsScreen .settings-tutorial__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}
#settingsScreen #settingsTutorialPanel.settings-appearance {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 280px);
    align-items: center;
    gap: 12px 18px;
}
#settingsScreen #settingsTutorialPanel .settings-appearance__status {
    grid-column: 1 / -1;
    margin-top: 2px;
}
#settingsScreen .settings-tutorial__language {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
}
#settingsScreen .settings-tutorial-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
#settingsScreen .settings-tutorial-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
#settingsScreen .settings-tutorial-switch__track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(137, 159, 202, 0.3);
    background: rgba(12, 20, 36, 0.55);
    padding: 2px;
    display: inline-flex;
    align-items: center;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
#settingsScreen .settings-tutorial-switch__thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(225, 234, 255, 0.86);
    transform: translateX(0);
    transition: transform .2s ease, background .2s ease;
}
#settingsScreen .settings-tutorial-switch__label {
    font-size: 0.78rem;
    font-weight: 560;
    letter-spacing: 0.02em;
    color: rgba(225, 234, 255, 0.78);
}
#settingsScreen .settings-tutorial-switch:hover .settings-tutorial-switch__track {
    border-color: rgba(160, 180, 220, 0.45);
}
#settingsScreen .settings-tutorial-switch input:focus-visible + .settings-tutorial-switch__track {
    outline: 2px solid rgba(96, 152, 255, 0.7);
    outline-offset: 2px;
}
#settingsScreen .settings-tutorial-switch input:checked + .settings-tutorial-switch__track {
    border-color: rgba(136, 170, 232, 0.48);
    background: rgba(46, 82, 145, 0.72);
}
#settingsScreen .settings-tutorial-switch input:checked + .settings-tutorial-switch__track .settings-tutorial-switch__thumb {
    transform: translateX(20px);
    background: #f2f6ff;
}
#settingsScreen .settings-tutorial-language {
    display: grid;
    grid-template-columns: auto minmax(130px, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
}
#settingsScreen .settings-tutorial-language__label {
    font-size: 0.78rem;
    font-weight: 560;
    letter-spacing: 0.02em;
    color: rgba(225, 234, 255, 0.78);
    white-space: nowrap;
}
#settingsScreen .settings-tutorial-language__field {
    position: relative;
    display: block;
}
#settingsScreen .settings-tutorial-language__field::after {
    content: "▾";
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-48%);
    font-size: 0.7rem;
    color: rgba(195, 210, 238, 0.8);
    pointer-events: none;
}
#settingsScreen .settings-tutorial-language__select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 38px;
    padding: 0 30px 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(137, 159, 202, 0.3);
    background: rgba(12, 20, 36, 0.72);
    color: rgba(225, 234, 255, 0.92);
    font-size: 0.78rem;
    line-height: 1.2;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
#settingsScreen .settings-tutorial-language__select:hover {
    border-color: rgba(160, 180, 220, 0.45);
}
#settingsScreen .settings-tutorial-language__select:focus-visible {
    outline: 2px solid rgba(96, 152, 255, 0.7);
    outline-offset: 2px;
}
#settingsScreen .settings-tutorial-language__select option {
    background: #0f1729;
    color: rgba(232, 239, 255, 0.95);
}
@media (max-width: 900px) {
    #settingsScreen #settingsTutorialPanel.settings-appearance {
        grid-template-columns: 1fr;
    }
    #settingsScreen .settings-tutorial__language {
        justify-content: flex-start;
    }
    #settingsScreen .settings-tutorial-language {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Light theme overrides */
body.theme-light #settingsScreen .settings-container {
    --st-border: rgba(15, 30, 60, 0.1); --st-border-soft: rgba(15, 30, 60, 0.06);
    --st-text: rgba(15, 23, 42, 0.96); --st-muted: rgba(55, 72, 100, 0.7);
}
body.theme-light #settingsScreen .settings-header__user-label { color: rgba(71, 85, 105, 0.7); }
body.theme-light #settingsScreen .settings-tenant__field {
    background: rgba(246, 249, 255, 0.7);
}
body.theme-light #settingsScreen .settings-tenant__label { color: rgba(71, 85, 105, 0.9); }
body.theme-light #settingsScreen .settings-tenant__value,
body.theme-light #settingsScreen .settings-users__counter,
body.theme-light #settingsScreen .settings-users__status { color: rgba(15, 23, 42, 0.88); }
body.theme-light #settingsScreen .settings-users__counter {
    background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.18);
}
body.theme-light #settingsScreen .settings-mapping__block {
    border-bottom-color: rgba(15, 30, 60, 0.06);
    background: none;
}
body.theme-light #settingsScreen .settings-mapping__block h4 { color: rgba(15, 23, 42, 0.92); }
body.theme-light #settingsScreen .settings-mapping__block p { color: rgba(71, 85, 105, 0.7); }
body.theme-light #settingsScreen .settings-mapping__controls .mapping-refresh-controls {
    background: rgba(255, 255, 255, 0.8); border-color: rgba(15, 23, 42, 0.1);
}
body.theme-light #settingsScreen .settings-mapping__controls .mapping-refresh-controls label { color: rgba(71, 85, 105, 0.75); }
body.theme-light #settingsScreen .settings-mapping__controls .mapping-refresh-controls input {
    border-color: rgba(15, 23, 42, 0.12); background: rgba(255, 255, 255, 0.95); color: rgba(15, 23, 42, 0.94);
}
body.theme-light .inventory-remap-pending {
    border: none;
    background: transparent;
}
body.theme-light .inventory-remap-pending[data-state="pending"] {
    border: none;
    background: transparent;
}
body.theme-light .inventory-remap-pending__status {
    color: rgba(55, 72, 100, 0.62);
}
body.theme-light .inventory-remap-pending__status::before {
    background: rgba(100, 116, 139, 0.65);
}
body.theme-light .inventory-remap-pending[data-state="pending"] .inventory-remap-pending__status {
    color: rgba(138, 66, 22, 0.8);
}
body.theme-light .inventory-remap-pending[data-state="pending"] .inventory-remap-pending__status::before {
    background: rgba(180, 92, 28, 0.78);
}
body.theme-light #inventoryRemapPendingButton {
    border: 1px solid rgba(191, 104, 36, 0.45);
    background: rgba(255, 181, 119, 0.16);
    color: rgba(116, 48, 12, 0.94);
}
body.theme-light #inventoryRemapUndoButton {
    border: 1px solid rgba(37, 61, 103, 0.26);
    background: rgba(37, 61, 103, 0.05);
    color: rgba(22, 39, 68, 0.82);
}
body.theme-light #inventoryRemapPendingButton:hover,
body.theme-light #inventoryRemapPendingButton:focus-visible {
    border-color: rgba(181, 89, 23, 0.66);
    background: rgba(255, 181, 119, 0.28);
    color: rgba(93, 34, 6, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 0 0 2px rgba(235, 146, 72, 0.16);
}
body.theme-light #inventoryRemapUndoButton:hover,
body.theme-light #inventoryRemapUndoButton:focus-visible {
    border-color: rgba(37, 61, 103, 0.42);
    background: rgba(37, 61, 103, 0.1);
    color: rgba(17, 33, 58, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 0 0 2px rgba(37, 61, 103, 0.1);
}
body.theme-light #inventoryRemapPendingButton:disabled,
body.theme-light #inventoryRemapUndoButton:disabled {
    border-color: rgba(100, 116, 139, 0.2);
    background: rgba(203, 213, 225, 0.28);
    color: rgba(71, 85, 105, 0.6);
    box-shadow: none;
}
body.theme-light #settingsScreen .settings-users__form input {
    border-color: rgba(15, 30, 60, 0.12); background: rgba(255, 255, 255, 0.8); color: rgba(15, 23, 42, 0.96);
}
body.theme-light #settingsScreen .settings-users__form input::placeholder { color: rgba(71, 85, 105, 0.58); }
body.theme-light #settingsScreen .settings-support__form {
    border-color: rgba(15, 30, 60, 0.08);
    background: rgba(248, 250, 254, 0.7);
}
body.theme-light #settingsScreen .settings-support__field label {
    color: rgba(71, 85, 105, 0.8);
}
body.theme-light #settingsScreen .settings-support__field input,
body.theme-light #settingsScreen .settings-support__field textarea {
    border-color: rgba(15, 30, 60, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: rgba(15, 23, 42, 0.96);
}
body.theme-light #settingsScreen .settings-support__field input::placeholder,
body.theme-light #settingsScreen .settings-support__field textarea::placeholder {
    color: rgba(71, 85, 105, 0.58);
}
body.theme-light #settingsScreen .settings-support__counter,
body.theme-light #settingsScreen .settings-support__hint,
body.theme-light #settingsScreen .settings-support__status {
    color: rgba(15, 23, 42, 0.76);
}
body.theme-light #settingsScreen .settings-users__table-wrap {
    border-color: rgba(15, 30, 60, 0.08); background: rgba(248, 250, 254, 0.7);
}
body.theme-light #settingsScreen .settings-users__table th,
body.theme-light #settingsScreen .settings-users__table td { border-bottom-color: rgba(15, 23, 42, 0.08); }
body.theme-light #settingsScreen .settings-users__table th {
    background: rgba(238, 243, 252, 0.8); color: rgba(45, 60, 85, 0.8);
}
body.theme-light #settingsScreen .settings-users__table tbody tr:hover td { background: rgba(59, 130, 246, 0.06); }
body.theme-light #settingsScreen .settings-users__table td:first-child,
body.theme-light #settingsScreen .settings-users__role-text { color: rgba(15, 23, 42, 0.92); }
body.theme-light #settingsScreen .settings-users__status-text--active { color: #2563eb; }
body.theme-light #settingsScreen .settings-users__forbidden {
    border-color: rgba(217, 119, 6, 0.36);
    background: linear-gradient(160deg, rgba(255, 241, 219, 0.92), rgba(255, 248, 233, 0.88));
    color: #9a3412;
}
body.theme-light #settingsScreen .settings-appearance__option span {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: rgba(15, 23, 42, 0.6);
}
body.theme-light #settingsScreen .settings-appearance__option span:hover {
    border-color: rgba(15, 23, 42, 0.22);
    color: rgba(15, 23, 42, 0.85);
}
body.theme-light #settingsScreen .settings-appearance__option input:checked + span {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.82);
    color: #f8faff; box-shadow: none;
}
body.theme-light #settingsScreen .settings-tutorial-switch__track {
    border-color: rgba(15, 23, 42, 0.2);
    background: rgba(255, 255, 255, 0.85);
}
body.theme-light #settingsScreen .settings-tutorial-switch__thumb {
    background: rgba(15, 23, 42, 0.72);
}
body.theme-light #settingsScreen .settings-tutorial-switch__label {
    color: rgba(15, 23, 42, 0.76);
}
body.theme-light #settingsScreen .settings-tutorial-switch:hover .settings-tutorial-switch__track {
    border-color: rgba(15, 23, 42, 0.3);
}
body.theme-light #settingsScreen .settings-tutorial-switch input:checked + .settings-tutorial-switch__track {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.85);
}
body.theme-light #settingsScreen .settings-tutorial-switch input:checked + .settings-tutorial-switch__track .settings-tutorial-switch__thumb {
    background: #ffffff;
}
body.theme-light #settingsScreen .settings-tutorial-language__label {
    color: rgba(15, 23, 42, 0.76);
}
body.theme-light #settingsScreen .settings-tutorial-language__field::after {
    color: rgba(15, 23, 42, 0.58);
}
body.theme-light #settingsScreen .settings-tutorial-language__select {
    border-color: rgba(15, 23, 42, 0.2);
    background: rgba(255, 255, 255, 0.85);
    color: rgba(15, 23, 42, 0.88);
}
body.theme-light #settingsScreen .settings-tutorial-language__select option {
    background: #ffffff;
    color: rgba(15, 23, 42, 0.9);
}
body.theme-light #settingsScreen #settingsCreateButton {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.82);
    color: #ffffff;
    box-shadow: none;
}
body.theme-light #settingsScreen #settingsCreateButton:hover,
body.theme-light #settingsScreen #settingsCreateButton:focus-visible {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(37, 99, 235, 0.9);
}
body.theme-light #settingsScreen #settingsSupportButton {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.82);
    color: #ffffff;
}
body.theme-light #settingsScreen #settingsSupportButton:hover,
body.theme-light #settingsScreen #settingsSupportButton:focus-visible {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(37, 99, 235, 0.9);
}
body.theme-light #settingsScreen .settings-users__resend {
    border-color: rgba(217, 119, 6, 0.35);
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(254, 243, 199, 0.95));
    color: #92400e;
}
body.theme-light #settingsScreen .settings-users__resend:hover,
body.theme-light #settingsScreen .settings-users__resend:focus-visible {
    border-color: rgba(217, 119, 6, 0.55);
    background: linear-gradient(135deg, rgba(254, 215, 170, 0.92), rgba(253, 230, 138, 0.9));
    color: #78350f;
}
body.theme-light #settingsScreen .settings-users__delete {
    border-color: rgba(220, 53, 69, 0.3);
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.92), rgba(254, 202, 202, 0.88));
    color: #991b1b;
}
body.theme-light #settingsScreen .settings-users__delete:hover,
body.theme-light #settingsScreen .settings-users__delete:focus-visible {
    border-color: rgba(220, 53, 69, 0.5);
    background: linear-gradient(135deg, rgba(254, 202, 202, 0.95), rgba(252, 165, 165, 0.9));
    color: #7f1d1d;
}
body.theme-light #settingsScreen .settings-org__identity,
body.theme-light #settingsScreen .settings-org__limits {
    border-color: rgba(15, 30, 60, 0.06);
    background: rgba(240, 244, 254, 0.6);
}
body.theme-light #settingsScreen .settings-tenant__metric {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}
body.theme-light #settingsScreen .settings-tenant__metric-label {
    color: #64748b;
}
body.theme-light #settingsScreen .settings-tenant__metric-value {
    color: #0f172a;
}
body.theme-light #settingsScreen .settings-org__limits-title {
    color: #64748b;
}

/* Responsive */
@media (max-width: 980px) {
    #settingsScreen .settings-container { padding: 16px 0; }
    #settingsScreen .settings-header { flex-direction: column; gap: 12px; }
    #settingsScreen .settings-header__right { width: 100%; justify-content: space-between; }
    #settingsScreen .settings-header__user { align-items: flex-start; }
    #settingsScreen .settings-org-layout { grid-template-columns: 1fr; }
    #settingsScreen .settings-mapping__block { flex-wrap: wrap; }
    #settingsScreen .settings-users__form { grid-template-columns: 1fr; }
    #settingsScreen #settingsCreateButton { width: 100%; }
    #settingsScreen .settings-tenant__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    #settingsScreen .settings-header__right { flex-direction: column; align-items: flex-start; gap: 12px; }
    #settingsScreen .settings-tenant__fields { grid-template-columns: 1fr; }
    #settingsScreen .settings-tenant__field--name { grid-column: auto; }
    #settingsScreen .settings-tenant__value--primary { font-size: 0.98rem; }
    #settingsScreen .settings-tenant__metric-value { font-size: 0.92rem; }
    #settingsScreen .settings-support__actions { align-items: stretch; }
    #settingsScreen #settingsSupportButton { width: 100%; }
}
/* Asset cards and tables */
  .asset-card {
      background: var(--panel-strong-bg);
      border-radius: var(--panel-strong-radius);
      border: 1px solid var(--panel-strong-border);
      box-shadow: var(--panel-strong-shadow);
      position: relative;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      margin-top: 2px;
      opacity: 0;
      transform: translateY(12px);
      animation: fadeSlideIn .6s ease forwards;
  }
.asset-card > .tutorial-help-marker--panel {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 8;
}
  .asset-card--table {
    flex: 0 0 640px;
    padding: 0;
    min-height: 640px;
    max-height: 640px;
    height: 640px;
}
.asset-column--main .asset-card:first-of-type {
    padding: 10px 14px;
    gap: 6px;
    margin-top: 0;
}
.asset-column--main .asset-card:first-of-type .asset-summary {
    margin-top: 4px;
    gap: 10px;
}
.asset-column--main .asset-card:first-of-type .asset-summary__metric {
    min-width: 132px;
    border-radius: 12px;
    padding: 8px 10px;
    gap: 4px;
}
.asset-column--main .asset-card:first-of-type .asset-summary__label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}
.asset-column--main .asset-card:first-of-type .asset-summary__value {
    font-size: 1.28rem;
    line-height: 1.08;
}
.asset-column--main .asset-card:first-of-type .asset-header__text h2 {
    font-size: clamp(1.4rem, 1.75vw, 1.85rem);
    line-height: 1.14;
}
.asset-column--main .asset-card:first-of-type .asset-actions--inline {
    margin-top: 8px;
}
.asset-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 24px 10px;
    gap: 12px;
}
.asset-table-toolbar--split {
    align-items: center;
    flex-wrap: nowrap;
    padding-top: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.tutorial-mode-enabled .asset-card--table .asset-table-toolbar--split {
    padding-right: 56px;
}

.asset-table-toolbar--split h3 {
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
    white-space: nowrap;
    color: #f7f9ff;
}
.asset-table-toolbar--split + .asset-table-wrapper {
    padding-top: 10px;
}
.asset-table-toolbar__tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
}
.asset-table-toolbar__tools .impacted-assets-search {
    min-width: 380px;
}
.inventory-more-menu {
    position: relative;
    flex-shrink: 0;
}
.inventory-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(200, 208, 230, 0.5);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.inventory-more-btn:hover,
.inventory-more-btn.active {
    background: rgba(120, 132, 255, 0.12);
    color: #a5b4fc;
}
.inventory-more-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 160px;
    background: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.inventory-more-dropdown.open {
    display: block;
}
.inventory-more-dropdown li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 7px;
    color: rgba(200, 208, 230, 0.85);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.inventory-more-dropdown li:hover {
    background: rgba(120, 132, 255, 0.14);
    color: #e1e5f6;
}
body.theme-light .inventory-more-btn {
    background: transparent;
    color: #94a3b8;
}
body.theme-light .inventory-more-btn:hover,
body.theme-light .inventory-more-btn.active {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
}
body.theme-light .inventory-more-dropdown {
    background: #ffffff;
    border-color: rgba(15, 30, 60, 0.12);
    box-shadow: 0 8px 24px rgba(15, 30, 60, 0.12);
}
body.theme-light .inventory-more-dropdown li {
    color: #334155;
}
body.theme-light .inventory-more-dropdown li:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #1e293b;
}
#createAssetButton {
    min-height: 34px;
    padding: 7px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}
.asset-table-toolbar .asset-search {
    width: min(100%, 560px);
}
.asset-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: flex-start;
}
.asset-header__text h2 {
    margin: 0;
    color: #f7f9ff;
}
.asset-subtitle {
    margin: 6px 0 0;
    color: rgba(223, 229, 255, 0.72);
    font-size: 0.95rem;
}
#craInventoryScreen {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 clamp(18px, 3vh, 34px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    box-sizing: border-box;
}

#craInventoryScreen > section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#craInventoryScreen .cra-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(17, 21, 34, 0.94), rgba(14, 18, 29, 0.93));
    border: 1px solid rgba(126, 143, 255, 0.18);
    box-shadow: 0 18px 36px rgba(6, 10, 20, 0.38);
    min-width: 0;
}

#craInventoryScreen .cra-page-header__text {
    min-width: 0;
}

#craInventoryScreen .cra-page-header__eyebrow {
    margin: 0 0 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(195, 205, 255, 0.78);
}

#craInventoryScreen .cra-page-header h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    line-height: 1.1;
    color: #f8faff;
}

#craInventoryScreen .cra-page-header__description {
    margin: 8px 0 0;
    max-width: 100%;
    color: rgba(219, 227, 255, 0.76);
    font-size: 0.92rem;
}

#craInventoryScreen .cra-page-header__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

#craInventoryScreen .cra-addon-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(130, 146, 255, 0.38);
    background: rgba(90, 111, 209, 0.27);
    color: #dfe6ff;
}

#craInventoryScreen .cra-sync-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 30px;
    padding: 0 0 0 10px;
    font-size: 0.81rem;
    color: rgba(203, 214, 255, 0.72);
}

#craInventoryScreen .cra-sync-status[data-state="success"] { color: #98f6ca; }
#craInventoryScreen .cra-sync-status[data-state="warn"] { color: #ffd39b; }
#craInventoryScreen .cra-sync-status[data-state="error"] { color: #ffb4b4; }
#craInventoryScreen .cra-sync-status[data-state="loading"] { color: #9fc0ff; }

#craInventoryScreen .cra-metrics-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#craInventoryScreen .cra-metric-card {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(127, 144, 255, 0.2);
    background: linear-gradient(175deg, rgba(17, 22, 36, 0.94), rgba(12, 16, 27, 0.95));
    box-shadow: inset 0 0 0 1px rgba(137, 153, 255, 0.08), 0 14px 24px rgba(4, 8, 18, 0.32);
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 106px;
}

#craInventoryScreen .cra-metric-card__head {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 24px;
}

#craInventoryScreen .cra-metric-card__icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(132, 149, 255, 0.36);
    background: rgba(76, 96, 188, 0.25);
    color: #dfe8ff;
}

#craInventoryScreen .cra-metric-card__icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#craInventoryScreen .cra-metric-card__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(206, 216, 255, 0.72);
}

#craInventoryScreen .cra-metric-card__value {
    font-size: clamp(1.02rem, 1.35vw, 1.25rem);
    font-weight: 600;
    color: #f9fbff;
    line-height: 1.2;
    word-break: break-word;
}

#craInventoryScreen .cra-metric-card__bar {
    height: 6px;
    width: 100%;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    overflow: hidden;
}

#craInventoryScreen .cra-metric-card__bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(118, 133, 255, 0.5), rgba(121, 196, 255, 0.92));
    transition: width 280ms ease;
}

#craInventoryScreen .cra-metric-card--wide {
    background: linear-gradient(165deg, rgba(23, 29, 46, 0.97), rgba(15, 20, 33, 0.95));
}

#craInventoryScreen .cra-toolbar-card,
#craInventoryScreen .cra-data-card,
#craInventoryScreen .cra-history-card {
    margin-top: 0;
    margin-bottom: 0;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

#craInventoryScreen .cra-toolbar-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#craInventoryScreen .cra-toolbar-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#craInventoryScreen .cra-btn {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.83rem;
}

#craInventoryScreen .cra-btn--primary {
    background: linear-gradient(145deg, rgba(104, 88, 255, 0.92), rgba(81, 134, 255, 0.9));
    border-color: rgba(170, 182, 255, 0.44);
    color: #f7f9ff;
    box-shadow: 0 8px 16px rgba(58, 82, 202, 0.32);
}

#craInventoryScreen .cra-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e8edff;
}

#craInventoryScreen .cra-btn--danger {
    background: rgba(130, 31, 46, 0.26);
    border-color: rgba(255, 144, 154, 0.34);
    color: #ffd8dd;
}

#craInventoryScreen .cra-btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(229, 235, 255, 0.88);
}

#craInventoryScreen .cra-btn:disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

#craInventoryScreen .cra-status {
    margin: 0;
    min-height: 1.1rem;
    font-size: 0.83rem;
    color: rgba(216, 225, 255, 0.72);
}

#craInventoryScreen .cra-status[data-state="success"] { color: #99f3c8; }
#craInventoryScreen .cra-status[data-state="warn"] { color: #ffd39c; }
#craInventoryScreen .cra-status[data-state="error"] { color: #ffb0b0; }

#craInventoryScreen .cra-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

#craInventoryScreen .cra-filter-row > * {
    min-width: 0;
}

#craInventoryScreen .cra-search input {
    height: 38px;
}

#craInventoryScreen .cra-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#craInventoryScreen .cra-filter-field label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(206, 215, 255, 0.62);
}

#craInventoryScreen .cra-filter-field select {
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #edf2ff;
    padding: 0 34px 0 12px;
    font-size: 0.9rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(223, 229, 255, 0.7) 50%), linear-gradient(135deg, rgba(223, 229, 255, 0.7) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    scrollbar-color: rgba(120, 132, 255, 0.6) rgba(22, 26, 38, 0.9);
    color-scheme: dark;
}

#craInventoryScreen .cra-inline-role-select {
    height: 32px;
    min-width: 154px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #edf2ff;
    padding: 0 30px 0 10px;
    font-size: 0.8rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(223, 229, 255, 0.7) 50%), linear-gradient(135deg, rgba(223, 229, 255, 0.7) 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    color-scheme: dark;
}

#craInventoryScreen .cra-filter-field select:focus,
#craInventoryScreen .cra-inline-role-select:focus {
    outline: none;
    border-color: rgba(108, 99, 255, 0.65);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

#craInventoryScreen .cra-filter-field select::-ms-expand,
#craInventoryScreen .cra-inline-role-select::-ms-expand {
    display: none;
}

#craInventoryScreen .cra-filter-field select option,
#craInventoryScreen .cra-inline-role-select option {
    background: rgba(10, 13, 20, 0.98);
    color: var(--text);
}

#craInventoryScreen .cra-filter-field select::-webkit-scrollbar,
#craInventoryScreen .cra-inline-role-select::-webkit-scrollbar {
    width: 10px;
}

#craInventoryScreen .cra-filter-field select::-webkit-scrollbar-track,
#craInventoryScreen .cra-inline-role-select::-webkit-scrollbar-track {
    background: rgba(18, 22, 33, 0.95);
    border-radius: 999px;
}

#craInventoryScreen .cra-filter-field select::-webkit-scrollbar-thumb,
#craInventoryScreen .cra-inline-role-select::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(120, 132, 255, 0.8), rgba(92, 68, 255, 0.7));
    border-radius: 999px;
    border: 2px solid rgba(18, 22, 33, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#craInventoryScreen .cra-filter-field select::-webkit-scrollbar-thumb:hover,
#craInventoryScreen .cra-inline-role-select::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(140, 150, 255, 0.9), rgba(112, 88, 255, 0.85));
}

#craInventoryScreen .cra-role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#craInventoryScreen .cra-role-chip {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(225, 233, 255, 0.85);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.75rem;
    cursor: pointer;
}

#craInventoryScreen .cra-role-chip.is-active {
    border-color: rgba(129, 147, 255, 0.45);
    background: rgba(84, 103, 207, 0.28);
    color: #eaf0ff;
}

#craInventoryScreen .cra-data-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 2px 2px 12px;
}

#craInventoryScreen .cra-data-card__header h3 {
    margin: 0;
    font-size: 1rem;
}

#craInventoryScreen .cra-data-card__hint {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: rgba(210, 220, 255, 0.7);
}

#craInventoryScreen .cra-table-wrapper {
    min-height: 260px;
    max-height: min(56vh, 620px);
    padding: 0 2px 2px;
    margin: 0;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

#craInventoryScreen .cra-table {
    width: max-content;
    min-width: 100%;
    max-width: none;
}

#craInventoryScreen .cra-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(17, 22, 35, 0.97);
    text-transform: uppercase;
    font-size: 0.67rem;
    letter-spacing: 0.11em;
}

#craInventoryScreen .cra-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}

#craInventoryScreen .cra-table tbody tr:hover {
    background: rgba(117, 133, 255, 0.12);
}

#craInventoryScreen .cra-table td,
#craInventoryScreen .cra-table th {
    padding: 14px 12px;
    font-size: 0.84rem;
    white-space: nowrap;
}

#craInventoryScreen .cra-col-source {
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#craInventoryScreen .cra-col-actions {
    width: 120px;
}

#craInventoryScreen .cra-row-actions {
    display: inline-flex;
    gap: 6px;
}

#craInventoryScreen .cra-row-action {
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(236, 242, 255, 0.9);
    font-size: 0.73rem;
    cursor: pointer;
}

#craInventoryScreen .cra-row-action--muted {
    opacity: 0.55;
}

#craInventoryScreen .cra-empty-state {
    text-align: center;
    padding: 32px 18px 30px;
    display: grid;
    place-items: center;
    gap: 10px;
}

#craInventoryScreen .cra-empty-state__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(129, 147, 255, 0.36);
    background: rgba(83, 102, 201, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dfe6ff;
}

#craInventoryScreen .cra-empty-state__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#craInventoryScreen .cra-empty-state h4 {
    margin: 0;
    font-size: 1rem;
}

#craInventoryScreen .cra-empty-state p {
    margin: 0;
    max-width: 62ch;
    font-size: 0.86rem;
    color: rgba(211, 221, 255, 0.74);
}

#craInventoryScreen .cra-empty-state--compact {
    padding: 22px 12px;
}

#craInventoryScreen .cra-skeleton-row td {
    padding: 10px;
}

#craInventoryScreen .cra-skeleton-line {
    display: block;
    height: 18px;
    border-radius: 999px;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07));
    background-size: 220% 100%;
    animation: craSkeletonPulse 1.4s linear infinite;
}

@keyframes craSkeletonPulse {
    from { background-position: 220% 0; }
    to { background-position: -220% 0; }
}

#craInventoryScreen .cra-history-card {
    padding: 0;
    overflow: hidden;
}

#craInventoryScreen .cra-history-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.015);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #edf2ff;
    padding: 14px 18px;
    cursor: pointer;
}

#craInventoryScreen .cra-history-toggle__title {
    font-size: 0.9rem;
    font-weight: 600;
}

#craInventoryScreen .cra-history-toggle__meta {
    margin-left: auto;
    font-size: 0.78rem;
    color: rgba(212, 223, 255, 0.72);
}

#craInventoryScreen .cra-history-toggle__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(220, 228, 255, 0.7);
    border-bottom: 2px solid rgba(220, 228, 255, 0.7);
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

#craInventoryScreen .cra-history-card.is-collapsed .cra-history-toggle__chevron {
    transform: rotate(-45deg);
}

#craInventoryScreen .cra-history-content {
    padding: 12px 18px 16px;
}

#craInventoryScreen .cra-table-wrapper--history {
    min-height: 180px;
    max-height: min(40vh, 420px);
    min-width: 0;
}

#craInventoryScreen .cra-history-result {
    display: inline-flex;
    gap: 6px;
}

#craInventoryScreen .cra-result-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#craInventoryScreen .cra-result-chip--ok {
    border: 1px solid rgba(128, 240, 185, 0.38);
    background: rgba(48, 130, 93, 0.26);
    color: #9ef6cd;
}

#craInventoryScreen .cra-result-chip--bad {
    border: 1px solid rgba(255, 147, 158, 0.38);
    background: rgba(138, 46, 63, 0.28);
    color: #ffc2ca;
}

body.cra-upload-modal-open {
    overflow: hidden;
}

#craInventoryScreen .cra-upload-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
}

#craInventoryScreen .cra-upload-modal[hidden],
#craInventoryScreen .cra-upload-modal[aria-hidden="true"] {
    display: none !important;
}

#craInventoryScreen .cra-upload-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(2px);
}

#craInventoryScreen .cra-upload-modal__dialog {
    position: relative;
    width: min(680px, calc(100vw - 24px));
    border-radius: 12px;
    border: 1px solid rgba(137, 152, 255, 0.28);
    background: linear-gradient(170deg, rgba(19, 24, 39, 0.97), rgba(13, 17, 29, 0.97));
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.46);
    padding: 16px;
    display: grid;
    gap: 12px;
}

#craInventoryScreen .cra-upload-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

#craInventoryScreen .cra-upload-modal__header h3 {
    margin: 0;
}

#craInventoryScreen .cra-upload-modal__header p {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: rgba(212, 222, 255, 0.74);
}

#craInventoryScreen .cra-dropzone {
    border: 1px dashed rgba(156, 170, 255, 0.46);
    border-radius: 10px;
    background: rgba(91, 110, 203, 0.1);
    padding: 22px 16px;
    text-align: center;
    display: grid;
    place-items: center;
    gap: 8px;
}

#craInventoryScreen .cra-dropzone.is-dragover {
    border-color: rgba(174, 187, 255, 0.84);
    background: rgba(99, 118, 214, 0.24);
}

#craInventoryScreen .cra-dropzone__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(156, 170, 255, 0.4);
    background: rgba(84, 103, 199, 0.3);
    color: #e0e8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#craInventoryScreen .cra-dropzone__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#craInventoryScreen .cra-dropzone__title {
    margin: 0;
    font-weight: 600;
}

#craInventoryScreen .cra-dropzone__hint {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(209, 219, 255, 0.7);
}

#craInventoryScreen .cra-dropzone__file {
    margin: 0;
    font-size: 0.83rem;
    color: rgba(222, 230, 255, 0.84);
}

#craInventoryScreen .cra-dropzone__file[data-state="error"] { color: #ffb1b1; }
#craInventoryScreen .cra-dropzone__file[data-state="ok"] { color: #9df0ca; }

#craInventoryScreen .cra-upload-progress {
    display: grid;
    gap: 8px;
}

#craInventoryScreen .cra-upload-progress__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

#craInventoryScreen .cra-upload-progress__fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(112, 127, 255, 0.75), rgba(112, 212, 255, 0.95));
    transition: width 220ms ease;
}

#craInventoryScreen .cra-upload-progress__text {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(212, 222, 255, 0.73);
}

#craInventoryScreen .cra-upload-summary {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    padding: 10px 12px;
    display: grid;
    gap: 8px;
}

#craInventoryScreen .cra-upload-summary h4 {
    margin: 0;
    font-size: 0.88rem;
}

#craInventoryScreen .cra-upload-summary p {
    margin: 0;
    font-size: 0.83rem;
}

#craInventoryScreen .cra-upload-summary__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#craInventoryScreen .cra-upload-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

#craInventoryScreen .cra-detail-drawer {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

#craInventoryScreen .cra-detail-drawer[hidden],
#craInventoryScreen .cra-detail-drawer[aria-hidden="true"] {
    display: none !important;
}

#craInventoryScreen .cra-detail-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 15, 0.58);
}

#craInventoryScreen .cra-detail-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(460px, calc(100vw - 20px));
    height: 100%;
    border-left: 1px solid rgba(143, 158, 255, 0.26);
    background: linear-gradient(180deg, rgba(18, 24, 39, 0.98), rgba(12, 16, 27, 0.98));
    padding: 14px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
}

#craInventoryScreen .cra-detail-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#craInventoryScreen .cra-detail-drawer__header h3 {
    margin: 0;
}

#craInventoryScreen .cra-detail-body {
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding-right: 2px;
}

#craInventoryScreen .cra-detail-field {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

#craInventoryScreen .cra-detail-field__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(204, 214, 255, 0.64);
}

#craInventoryScreen .cra-detail-field__value {
    font-size: 0.85rem;
    color: #f1f5ff;
    word-break: break-word;
}

body.theme-light #craInventoryScreen .cra-page-header,
body.theme-light #craInventoryScreen .cra-metric-card,
body.theme-light #craInventoryScreen .cra-toolbar-card,
body.theme-light #craInventoryScreen .cra-data-card,
body.theme-light #craInventoryScreen .cra-history-card,
body.theme-light #craInventoryScreen .cra-upload-modal__dialog,
body.theme-light #craInventoryScreen .cra-detail-drawer__panel {
    border-color: rgba(15, 23, 42, 0.12);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
}

body.theme-light #craInventoryScreen .cra-page-header h2,
body.theme-light #craInventoryScreen .cra-metric-card__value,
body.theme-light #craInventoryScreen .cra-data-card__header h3,
body.theme-light #craInventoryScreen .cra-history-toggle,
body.theme-light #craInventoryScreen .cra-empty-state h4,
body.theme-light #craInventoryScreen .cra-detail-field__value {
    color: #0f172a;
}

body.theme-light #craInventoryScreen .cra-page-header__description,
body.theme-light #craInventoryScreen .cra-page-header__meta,
body.theme-light #craInventoryScreen .cra-metric-card__label,
body.theme-light #craInventoryScreen .cra-status,
body.theme-light #craInventoryScreen .cra-data-card__hint,
body.theme-light #craInventoryScreen .cra-empty-state p,
body.theme-light #craInventoryScreen .cra-detail-field__label {
    color: rgba(71, 85, 105, 0.86);
}

body.theme-light #craInventoryScreen .cra-filter-field select,
body.theme-light #craInventoryScreen .cra-inline-role-select,
body.theme-light #craInventoryScreen .cra-search input {
    border-color: rgba(15, 23, 42, 0.16);
    background-color: rgba(255, 255, 255, 0.98);
    color: #0f172a;
}

body.theme-light #craInventoryScreen .cra-table thead th {
    background: rgba(237, 243, 255, 0.98);
    color: rgba(71, 85, 105, 0.92);
}

body.theme-light #craInventoryScreen .cra-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.025);
}

body.theme-light #craInventoryScreen .cra-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.12);
}

@media (max-width: 1300px) {
    #craInventoryScreen .cra-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #craInventoryScreen .cra-filter-row {
        grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    }
    #craInventoryScreen .cra-search {
        grid-column: 1 / -1;
    }
    #craInventoryScreen .cra-filter-row .cra-filter-field:nth-of-type(3) {
        grid-column: auto;
    }
    #craInventoryScreen #craClearFiltersButton {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 1120px) {
    #craInventoryScreen .cra-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #craInventoryScreen .cra-search {
        grid-column: 1 / -1;
    }
    #craInventoryScreen #craClearFiltersButton {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 980px) {
    #craInventoryScreen {
        padding: 0 0 22px;
    }
    #craInventoryScreen .cra-page-header {
        flex-direction: column;
        padding: 16px;
    }
    #craInventoryScreen .cra-page-header__meta {
        align-items: flex-start;
        min-width: 0;
    }
    #craInventoryScreen .cra-toolbar-card,
    #craInventoryScreen .cra-data-card {
        padding: 14px;
    }
    #craInventoryScreen .cra-filter-row {
        grid-template-columns: 1fr;
    }
    #craInventoryScreen .cra-history-toggle {
        padding: 12px 14px;
    }
    #craInventoryScreen .cra-history-content {
        padding: 10px 12px 14px;
    }
    #craInventoryScreen .cra-table-wrapper,
    #craInventoryScreen .cra-table-wrapper--history {
        max-height: none;
    }
    #craInventoryScreen .cra-upload-modal__footer {
        flex-wrap: wrap;
    }
}
.asset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}
.asset-actions--inline {
    margin-top: 12px;
}
.inventory-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 30px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 220, 0.18);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(210, 218, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    z-index: 20;
}
.inventory-action-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
    pointer-events: none;
}
.inventory-action-btn:hover,
.inventory-action-btn:focus-visible {
    color: #f6f8ff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 220, 0.32);
    outline: none;
    transform: translateY(-1px);
}
.inventory-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
.inventory-action-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: normal;
    text-transform: none;
    color: #f7f9ff;
    background: rgba(8, 10, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 40;
}
.inventory-action-btn:hover::after,
.inventory-action-btn:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}
.inventory-action-btn:disabled::after {
    display: none;
}
.inventory-edit-note {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.72rem;
    color: rgba(253, 210, 100, 0.62);
    font-weight: 400;
}
.inventory-edit-note[data-state="success"] {
    color: rgba(120, 242, 188, 0.88);
}
.inventory-edit-note[data-state="warn"] {
    color: rgba(255, 211, 126, 0.92);
}
.inventory-edit-note[data-state="error"] {
    color: rgba(255, 157, 157, 0.94);
}
.inventory-edit-note[hidden] {
    display: none !important;
}
body.theme-light .inventory-edit-note {
    color: rgba(140, 90, 0, 0.58);
}
body.theme-light .inventory-edit-note[data-state="success"] {
    color: rgba(12, 122, 76, 0.92);
}
body.theme-light .inventory-edit-note[data-state="warn"] {
    color: rgba(155, 94, 0, 0.92);
}
body.theme-light .inventory-edit-note[data-state="error"] {
    color: rgba(165, 28, 28, 0.9);
}
.asset-search {
    width: 100%;
}
.asset-search input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 18px 10px 44px;
    color: var(--text);
    font-size: 0.95rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfd6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 18px;
}
.asset-search input::placeholder {
    color: rgba(223, 229, 255, 0.4);
}
.asset-search input:focus {
    outline: none;
    border-color: rgba(108, 99, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.18);
}
.asset-card--table .asset-table-wrapper {
    padding: 0 24px 24px;
    min-height: 520px;
    max-height: 520px;
    height: 520px;
}
.asset-card--table .asset-table-footer {
    flex: 0 0 auto;
}
.asset-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 132, 255, 0.6) rgba(22, 26, 38, 0.9);
}
.asset-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}
.asset-table th,
.asset-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.asset-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(223, 229, 255, 0.7);
}
.asset-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.asset-table tbody tr:last-child td {
    border-bottom: none;
}
.asset-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 24px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}
.asset-table-meta {
    color: rgba(223, 229, 255, 0.55);
    font-size: 0.82rem;
    letter-spacing: 0;
}
.asset-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
}
.asset-pagination[hidden] {
    display: none !important;
}
.asset-pagination__btn {
    border: none;
    background: transparent;
    color: rgba(233, 238, 255, 0.55);
    border-radius: 6px;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.asset-pagination__btn:hover,
.asset-pagination__btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(233, 238, 255, 0.95);
    outline: none;
}
.asset-pagination__btn:disabled {
    opacity: 0.24;
    cursor: not-allowed;
}
.asset-pagination__status {
    color: rgba(223, 229, 255, 0.7);
    font-size: 0.82rem;
    min-width: 0;
    text-align: center;
    letter-spacing: 0;
}
.asset-group-row {
    transition: background 0.2s ease;
}
.asset-group-row--expanded {
    background: rgba(255, 255, 255, 0.025);
}
.asset-group-row--impacted {
    background: linear-gradient(90deg, rgba(255, 102, 82, 0.17) 0%, rgba(255, 163, 84, 0.09) 44%, rgba(255, 255, 255, 0.01) 100%);
}
.asset-group-row--impacted td:first-child {
    box-shadow: inset 3px 0 0 rgba(255, 127, 92, 0.95);
}
.asset-group-row--impacted:hover {
    background: linear-gradient(90deg, rgba(255, 102, 82, 0.23) 0%, rgba(255, 163, 84, 0.13) 44%, rgba(255, 255, 255, 0.02) 100%);
}
.asset-group-row--impacted.asset-group-row--expanded {
    background: linear-gradient(90deg, rgba(255, 102, 82, 0.26) 0%, rgba(255, 163, 84, 0.15) 44%, rgba(255, 255, 255, 0.03) 100%);
}
.asset-group-row__asset-name {
    font-weight: 600;
    color: #f7f9ff;
}
.asset-group-row__asset-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}
.asset-group-row__asset-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(223, 229, 255, 0.6);
    margin-top: 4px;
}
.asset-group-row__location {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(129, 152, 201, 0.3);
    background: rgba(129, 152, 201, 0.12);
    color: rgba(223, 229, 255, 0.9);
    font-size: 0.74rem;
    line-height: 1.25;
    padding: 2px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.asset-group-row__location--empty {
    border-style: dashed;
    border-color: rgba(129, 152, 201, 0.24);
    background: rgba(129, 152, 201, 0.06);
    color: rgba(223, 229, 255, 0.62);
}
.asset-group-row__impact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 140, 102, 0.55);
    background: rgba(255, 124, 77, 0.2);
    color: rgba(255, 224, 204, 0.95);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 9px;
}
.asset-group-row__impact-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ff6b55;
    box-shadow: 0 0 0 4px rgba(255, 107, 85, 0.22);
}
.asset-group-row__ip {
    font-family: 'Fira Code', 'Consolas', monospace;
    color: rgba(223, 229, 255, 0.8);
}
.asset-group-row__actions {
    text-align: right;
    min-width: 286px;
}
.asset-group-row__action-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}
.asset-group-row__inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.asset-inline-action {
    border: none;
    background: transparent;
    color: rgba(205, 216, 243, 0.8);
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 520;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.asset-inline-action--compact {
    min-height: 22px;
    padding: 0 6px;
    font-size: 0.68rem;
}
.asset-inline-action--primary {
    color: rgba(183, 206, 255, 0.92);
}
.asset-inline-action--danger {
    color: rgba(255, 176, 160, 0.9);
}
.asset-inline-action:hover,
.asset-inline-action:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(242, 247, 255, 0.98);
    outline: none;
}
.asset-inline-action--primary:hover,
.asset-inline-action--primary:focus-visible {
    background: rgba(70, 102, 230, 0.16);
    color: #eaf1ff;
}
.asset-inline-action--danger:hover,
.asset-inline-action--danger:focus-visible {
    background: rgba(126, 44, 34, 0.2);
    color: #ffd4ca;
}
.asset-inline-action:disabled {
    opacity: 0.45;
    cursor: wait;
}
.asset-criticality-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(132, 145, 175, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(20, 28, 44, 0.9) 0%, rgba(12, 18, 30, 0.86) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 14px rgba(2, 6, 23, 0.24);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    flex: 0 0 164px;
    width: 164px;
    max-width: 100%;
}
.asset-criticality-control:focus-within {
    border-color: rgba(139, 154, 255, 0.82);
    box-shadow: 0 0 0 3px rgba(95, 108, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.asset-criticality-control.is-mixed {
    border-color: rgba(174, 149, 255, 0.7);
    background: linear-gradient(135deg, rgba(34, 30, 54, 0.9) 0%, rgba(18, 16, 36, 0.86) 100%);
}
.asset-criticality-control.is-updating {
    opacity: 0.65;
}
.asset-criticality-control__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(160, 174, 204, 0.88);
    box-shadow: 0 0 0 3px rgba(122, 136, 170, 0.16);
}
.asset-criticality-control__select {
    display: block;
    width: 100%;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(236, 241, 255, 0.92);
    min-height: 30px;
    min-width: 0;
    padding: 2px 24px 2px 0;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1.25 1.1L5 4.85L8.75 1.1' stroke='%23DDE5FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 10px 6px;
    transition: color 0.2s ease, filter 0.2s ease;
}
.asset-criticality-control__select:focus {
    outline: none;
    color: #ffffff;
}
.asset-criticality-control__select:disabled {
    cursor: wait;
    opacity: 0.74;
}
.asset-criticality-control__select option {
    background: #101726;
    color: #eaf0ff;
}
.asset-criticality-control[data-tone="low"] .asset-criticality-control__dot {
    background: #4fd08d;
}
.asset-criticality-control[data-tone="medium"] .asset-criticality-control__dot {
    background: #f2c14e;
}
.asset-criticality-control[data-tone="high"] .asset-criticality-control__dot {
    background: #ff9c52;
}
.asset-criticality-control[data-tone="critical"] .asset-criticality-control__dot {
    background: #ff6b5f;
}
.asset-criticality-control[data-tone="mixed"] .asset-criticality-control__dot {
    background: #a78bfa;
}
.asset-criticality-control[data-tone="unknown"] .asset-criticality-control__select {
    color: rgba(237, 241, 255, 0.84);
}
.asset-criticality-control[data-tone="low"] .asset-criticality-control__select {
    color: #83e6b4;
}
.asset-criticality-control[data-tone="medium"] .asset-criticality-control__select {
    color: #ffd479;
}
.asset-criticality-control[data-tone="high"] .asset-criticality-control__select {
    color: #ffba87;
}
.asset-criticality-control[data-tone="critical"] .asset-criticality-control__select {
    color: #ff9b93;
}
.asset-criticality-control[data-tone="mixed"] .asset-criticality-control__select {
    color: #ccb7ff;
}
.asset-elements-toggle {
    border: 1px solid rgba(128, 138, 255, 0.4);
    background: rgba(18, 22, 30, 0.85);
    color: rgba(223, 229, 255, 0.9);
    padding: 0 12px;
    border-radius: 11px;
    min-height: 36px;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 144px;
}
.asset-elements-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(223, 229, 255, 0.9);
    transition: transform 0.2s ease;
}
.asset-elements-toggle--icon {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0 1px;
    border: none;
    background: transparent;
    box-shadow: none;
    justify-content: center;
    gap: 0;
    color: rgba(223, 229, 255, 0.82);
    font-size: 0;
    line-height: 0;
    margin-left: auto;
}
.asset-elements-toggle--icon::after {
    width: 7px;
    height: 7px;
    border-left: 0;
    border-top: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.asset-elements-toggle--icon[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}
.asset-elements-toggle--icon:hover,
.asset-elements-toggle--icon:focus-visible {
    border-color: transparent;
    background: transparent;
    transform: none;
    color: #ffffff;
    opacity: 1;
}
.asset-elements-toggle:not(.asset-elements-toggle--icon)[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.asset-elements-toggle:hover,
.asset-elements-toggle:focus-visible {
    border-color: rgba(168, 178, 255, 0.8);
    background: rgba(128, 138, 255, 0.2);
    outline: none;
    transform: translateY(-1px);
}
.inventory-vuln-shortcut {
    width: auto;
    height: auto;
    min-width: 0;
    padding: 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(231, 236, 255, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.inventory-vuln-shortcut--inline {
    color: inherit;
}
.inventory-vuln-shortcut svg {
    width: 14px;
    height: 14px;
    display: block;
}
.inventory-vuln-shortcut svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.inventory-vuln-shortcut:hover,
.inventory-vuln-shortcut:focus-visible {
    color: #ffffff;
    background: transparent;
    outline: none;
    transform: translateY(-1px);
}
.inventory-vuln-shortcut--inline:hover,
.inventory-vuln-shortcut--inline:focus-visible {
    background: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}
.inventory-vuln-shortcut:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}
.inventory-floating-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 8px));
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
    color: #f7f9ff;
    background: rgba(8, 10, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 2147483647;
}
.inventory-floating-tooltip[data-placement="bottom"] {
    transform: translate(-50%, 8px);
}
.inventory-floating-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 12px));
}
.inventory-floating-tooltip.is-visible[data-placement="bottom"] {
    transform: translate(-50%, 0);
}
.asset-elements-row td {
    border-bottom: none;
    background: rgba(10, 12, 20, 0.6);
    padding-top: 0;
}
.asset-elements-cell {
    padding: 0 12px;
}
.asset-elements-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease, padding 0.35s ease;
    padding: 0;
}
.asset-elements-row--open .asset-elements-panel {
    opacity: 1;
    transform: translateY(0);
    padding: 0 0 16px;
}
.asset-risk-summary {
    --risk-accent: #6f8bb8;
    margin-top: 14px;
    border: 1px solid rgba(102, 118, 148, 0.3);
    border-radius: 10px;
    background: rgba(8, 12, 20, 0.82);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    box-shadow: none;
}
.asset-risk-summary[data-tone="low"] {
    --risk-accent: #4fa47e;
}
.asset-risk-summary[data-tone="moderate"] {
    --risk-accent: #bfa359;
}
.asset-risk-summary[data-tone="medium"] {
    --risk-accent: #bfa359;
}
.asset-risk-summary[data-tone="high"] {
    --risk-accent: #bf8855;
}
.asset-risk-summary[data-tone="very-high"] {
    --risk-accent: #bf7a58;
}
.asset-risk-summary[data-tone="critical"] {
    --risk-accent: #bf6f66;
}
.asset-risk-summary__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.asset-risk-summary__title {
    margin: 0;
    font-size: 0.66rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(174, 191, 223, 0.7);
}
.asset-risk-summary__intro {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(208, 220, 243, 0.82);
}
.asset-risk-summary__scoreband {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}
.asset-risk-summary__score-stack {
    min-width: 0;
}
.asset-risk-summary__score-main {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
}
.asset-risk-summary__score-value {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 800;
    color: #eef3ff;
    letter-spacing: -0.02em;
}
.asset-risk-summary__score-max {
    font-size: 0.84rem;
    line-height: 1.1;
    color: rgba(188, 201, 231, 0.68);
}
.asset-risk-summary__score-label {
    margin: 0;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(166, 181, 214, 0.66);
}
.asset-risk-summary__meter {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(42, 56, 84, 0.6);
    overflow: hidden;
}
.asset-risk-summary__meter-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--risk-accent);
    transition: width 0.3s ease;
    box-shadow: none;
}
.asset-risk-summary__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.asset-risk-summary__metric {
    min-width: 0;
    border-radius: 8px;
    border: 1px solid rgba(102, 118, 148, 0.24);
    background: rgba(10, 15, 24, 0.36);
    padding: 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.asset-risk-summary__metric-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(164, 180, 213, 0.64);
}
.asset-risk-summary__metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8eefc;
    line-height: 1.05;
}
.asset-risk-summary__insight {
    border-radius: 8px;
    border: 1px solid rgba(102, 118, 148, 0.26);
    background: rgba(10, 15, 24, 0.36);
    padding: 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.asset-risk-summary__insight-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(169, 185, 219, 0.66);
}
.asset-risk-summary__insight-text {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.4;
    color: rgba(202, 214, 243, 0.82);
}
.asset-elements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.asset-element-card {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 8px 12px;
    background: rgba(20, 24, 38, 0.85);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.asset-element-card--add {
    border-style: dashed;
    border-color: rgba(128, 148, 193, 0.34);
    background: rgba(16, 22, 34, 0.56);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.asset-element-card--add:hover,
.asset-element-card--add:focus-visible {
    border-color: rgba(159, 180, 229, 0.6);
    background: rgba(28, 38, 58, 0.66);
    transform: translateY(-1px);
    outline: none;
}
.asset-element-card--add:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}
.asset-element-card__name--add {
    color: rgba(221, 231, 255, 0.92);
    font-weight: 560;
}
.asset-element-card__meta-item--add {
    color: rgba(176, 191, 226, 0.74);
    max-width: none;
}
.asset-element-card--impacted {
    border-color: rgba(246, 176, 112, 0.38);
    background: linear-gradient(105deg, rgba(56, 42, 30, 0.74) 0%, rgba(42, 37, 44, 0.7) 46%, rgba(20, 24, 38, 0.88) 100%);
    box-shadow: inset 3px 0 0 rgba(244, 169, 92, 0.72);
}
.asset-element-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}
.asset-element-card__toolbar {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.asset-element-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.asset-element-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    margin-left: 0;
}
.asset-element-card__meta-item {
    font-size: 0.85rem;
    color: rgba(223, 229, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.asset-element-card__meta-item--criticality {
    max-width: none;
    overflow: visible;
    flex-shrink: 0;
}
.asset-element-card__meta-item--criticality.asset-element-card__criticality--critical {
    color: #ff9aa4;
}
.asset-element-card__meta-item--criticality.asset-element-card__criticality--high {
    color: #ffb37a;
}
.asset-element-card__meta-item--criticality.asset-element-card__criticality--medium {
    color: #ffe08a;
}
.asset-element-card__meta-item--criticality.asset-element-card__criticality--low {
    color: #8be0b7;
}
.asset-element-card__meta-item--criticality.asset-element-card__criticality--unknown {
    color: rgba(223, 229, 255, 0.8);
}
.asset-element-card__name {
    font-weight: 600;
    color: #f7f9ff;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.asset-element-card--impacted .asset-element-card__name {
    color: #ffefde;
}

@media (max-width: 720px) {
    .asset-risk-summary {
        padding: 12px 13px 13px;
    }
    .asset-risk-summary__scoreband {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .asset-risk-summary__meter {
        height: 8px;
    }
    .asset-risk-summary__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .asset-risk-summary__score-value {
        font-size: 1.35rem;
    }
    .asset-element-card__header {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .asset-element-card__toolbar {
        width: 100%;
        justify-content: flex-end;
    }
}
.asset-element-card__criticality-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(223, 229, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(15, 18, 26, 0.6);
}
.asset-element-card__criticality-dot.asset-element-card__criticality--critical {
    background: #ff5a5a;
}
.asset-element-card__criticality-dot.asset-element-card__criticality--high {
    background: #ff9340;
}
.asset-element-card__criticality-dot.asset-element-card__criticality--medium {
    background: #ffd05a;
}
.asset-element-card__criticality-dot.asset-element-card__criticality--low {
    background: #40c48f;
}
.asset-element-card__criticality-dot.asset-element-card__criticality--unknown {
    background: rgba(223, 229, 255, 0.7);
}
.asset-table-wrapper::-webkit-scrollbar {
    width: 10px;
}
.asset-table-wrapper::-webkit-scrollbar-track {
    background: rgba(18, 22, 33, 0.95);
    border-radius: 12px;
}
.asset-table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(120, 132, 255, 0.85), rgba(92, 68, 255, 0.75));
    border-radius: 12px;
    border: 2px solid rgba(18, 22, 33, 0.95);
}
.asset-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(140, 150, 255, 0.95), rgba(112, 88, 255, 0.85));
}
/* Feed cards on vulnerability screen */
.feed-card {
    background: rgba(16, 19, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeSlideIn 0.45s ease forwards;
}
.feed-card--collapsed {
    border-radius: 12px;
    padding: 14px 18px;
    gap: 10px;
}
.feed-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.feed-card__header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}
.feed-card__index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(233, 236, 255, 0.85);
    background: rgba(255, 255, 255, 0.03);
}
.feed-card__title-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.feed-card__title {
    margin: 0;
    font-size: 1.15rem;
    color: #f7f9ff;
    line-height: 1.35;
}
.feed-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.feed-card__chip {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: rgba(223, 229, 255, 0.85);
}
.feed-card__chip--date {
    color: rgba(223, 229, 255, 0.65);
}
.feed-card__chip--kev {
    border-color: rgba(255, 99, 132, 0.55);
    background: rgba(255, 99, 132, 0.08);
    color: #ffb4c4;
}
.feed-card__chip--exploit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-color: rgba(108, 99, 255, 0.5);
    background: rgba(108, 99, 255, 0.12);
    color: #dfe1ff;
    font-weight: 600;
}
.feed-card__chip--patch {
    border-color: rgba(65, 214, 143, 0.6);
    background: rgba(65, 214, 143, 0.12);
    color: #b5ffd9;
    font-weight: 600;
}
.feed-card__status {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.feed-card__status.is-new {
    border-color: rgba(0, 255, 190, 0.4);
    color: #8fffe1;
    background: rgba(0, 255, 190, 0.08);
}
.feed-card__status.is-updated {
    border-color: rgba(255, 193, 7, 0.45);
    color: #ffd981;
    background: rgba(255, 193, 7, 0.1);
}
.feed-card__cwe {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
}
.feed-card__cwe-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.feed-card__cwe-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(183, 196, 235, 0.84);
}
.feed-card__epss {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.feed-card__epss-insight {
    --epss-signal-color: var(--muted);
    margin-top: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    display: grid;
    gap: 7px;
}
.feed-card__epss-insight[data-tone="very-high"] {
    --epss-signal-color: var(--danger);
}
.feed-card__epss-insight[data-tone="high"] {
    --epss-signal-color: color-mix(in srgb, var(--danger) 58%, var(--warning) 42%);
}
.feed-card__epss-insight[data-tone="moderate"] {
    --epss-signal-color: var(--warning);
}
.feed-card__epss-insight[data-tone="low"] {
    --epss-signal-color: var(--muted);
}
.feed-card__epss-insight-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.feed-card__epss-insight-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.feed-card__epss-insight-tone {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 0.5px solid color-mix(in srgb, var(--epss-signal-color) 48%, transparent);
    background-color: color-mix(in srgb, var(--epss-signal-color) 16%, transparent);
    color: color-mix(in srgb, var(--epss-signal-color) 72%, var(--text) 28%);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.feed-card__epss-insight-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.feed-card__epss-insight-stat {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}
.feed-card__epss-insight-stat-title {
    margin: 0;
    font-size: 0.66rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.feed-card__epss-insight-value-row {
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 24px;
}
.feed-card__epss-insight-stat-value {
    font-size: 24px;
    line-height: 1;
    font-weight: 520;
    color: var(--text);
    letter-spacing: -0.01em;
}
.feed-card__epss-insight-meter {
    height: 3px;
    width: 100%;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--muted) 22%, transparent);
    overflow: hidden;
}
.feed-card__epss-insight-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background-color: var(--epss-signal-color);
    transition: width 0.25s ease;
}
.feed-card__epss-insight-foot {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    line-height: 1.25;
    color: var(--muted);
}
.feed-card__epss-insight-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background-color: var(--epss-signal-color);
    flex: 0 0 4px;
}
.feed-card__epss-insight-foot-text {
    min-width: 0;
}
.feed-card__epss-trend {
    margin-top: -1px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.feed-card__epss-trend-delta {
    font-size: 0.66rem;
    color: var(--muted);
    white-space: nowrap;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}
.feed-card__epss-trend-delta[data-trend="up"] {
    color: color-mix(in srgb, var(--danger) 80%, var(--text) 20%);
}
.feed-card__epss-trend-delta[data-trend="down"] {
    color: color-mix(in srgb, var(--success) 78%, var(--text) 22%);
}
.feed-card__epss-trend-delta[data-trend="flat"] {
    color: var(--muted);
}
@media (max-width: 760px) {
    .feed-card__epss-insight-stats {
        grid-template-columns: 1fr;
    }
}
.feed-card__cwe-primary {
    min-width: 0;
    border-radius: 999px;
    border: 1px solid rgba(129, 146, 204, 0.2);
    background: rgba(84, 108, 181, 0.1);
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.feed-card__cwe-primary:hover,
.feed-card__cwe-primary:focus-visible {
    border-color: rgba(167, 187, 252, 0.46);
    background: rgba(101, 127, 210, 0.16);
}
.feed-card__cwe-more-toggle {
    border: none;
    background: none;
    padding: 0 0 0 2px;
    color: rgba(164, 187, 255, 0.88);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    cursor: pointer;
}
.feed-card__cwe-more-toggle:hover,
.feed-card__cwe-more-toggle:focus-visible {
    color: #d8e5ff;
}
.feed-card__cwe-more {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.feed-card__cwe-item {
    min-width: 0;
    border-radius: 999px;
    border: 1px solid rgba(129, 146, 204, 0.16);
    background: rgba(73, 93, 156, 0.08);
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.feed-card__cwe-item:hover,
.feed-card__cwe-item:focus-visible {
    border-color: rgba(167, 187, 252, 0.4);
    background: rgba(95, 119, 194, 0.14);
}
.feed-card__cwe-item.is-disabled,
.feed-card__cwe-primary.is-disabled {
    cursor: default;
    border-color: rgba(129, 146, 204, 0.12);
    background: rgba(58, 74, 122, 0.08);
    pointer-events: none;
}
.feed-card__cwe-id {
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(174, 194, 255, 0.9);
    white-space: nowrap;
}
.feed-card__cwe-name {
    font-size: 0.79rem;
    line-height: 1.2;
    color: rgba(225, 233, 255, 0.9);
    max-width: 34ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-card__cwe-item.is-disabled .feed-card__cwe-id,
.feed-card__cwe-item.is-disabled .feed-card__cwe-name,
.feed-card__cwe-primary.is-disabled .feed-card__cwe-id,
.feed-card__cwe-primary.is-disabled .feed-card__cwe-name {
    color: rgba(179, 192, 230, 0.56);
}
@media (max-width: 860px) {
    .feed-card__cwe-name {
        max-width: 24ch;
    }
}
.feed-card__cwe-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    background: none;
}
.feed-card__cwe-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(96, 168, 255, 0.18);
}
.feed-card__cwe-pill--epss {
    color: #9fd7ff;
}
.feed-card__description {
    margin-top: 12px;
    border: none;
    border-radius: 0;
    background: none;
    overflow: visible;
    box-shadow: none;
}
.feed-card__description summary {
    padding: 0;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(190, 200, 255, 0.9);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: none;
}
.feed-card__description summary::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #6c63ff, #0d6efd);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}
.feed-card__description summary::-webkit-details-marker {
    display: none;
}
.feed-card__description summary::after {
    content: "\25BE";
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    transition: transform 0.2s ease;
}
.feed-card__description[open] summary::after {
    transform: rotate(-180deg);
}
.feed-card__description-body {
    padding: 8px 0 0 0;
    color: rgba(219, 225, 255, 0.86);
    line-height: 1.55;
    font-size: 0.95rem;
    background: none;
}
.feed-card__kev-action + .feed-card__description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.feed-card__impacts {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(12, 14, 24, 0.65);
    overflow: hidden;
}
.feed-card__impacts summary {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #e9ebff;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.feed-card__impacts summary::-webkit-details-marker {
    display: none;
}
.feed-card__impacts summary::after {
        content: "\25BE";
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}
.feed-card__impacts[open] summary::after {
    transform: rotate(-180deg);
}
.feed-impacts-body {
    padding: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: none;
    width: 100%;
    min-width: 0;
}
.feed-impacts-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.feed-impacts-row .feed-impact-section {
    flex: 1 1 240px;
    min-width: 220px;
}
.feed-impacts-tabs {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    background: rgba(12, 14, 24, 0.6);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}
.feed-impacts-tabs__header {
    display: flex;
    gap: 6px;
    padding: 10px 10px 0;
    background: linear-gradient(180deg, rgba(18, 22, 34, 0.9) 0%, rgba(12, 14, 24, 0.65) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px 18px 0 0;
}
.feed-impacts-tab {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    color: #e8ecff;
    padding: 10px 16px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}
.feed-impacts-tab.is-active {
    border-color: rgba(124, 162, 255, 0.35);
    background: linear-gradient(180deg, rgba(124, 162, 255, 0.14), rgba(86, 128, 255, 0.06));
    color: #f4f7ff;
    box-shadow: 0 6px 14px rgba(86, 128, 255, 0.15);
    position: relative;
    z-index: 2;
}
.feed-impacts-tabs__body {
    padding: 14px;
    background: rgba(12, 14, 24, 0.7);
    border-radius: 0 0 18px 18px;
    width: 100%;
    min-width: 0;
    overflow: auto;
    min-height: 0;
}
.feed-impacts-tabs__body.is-network-active {
    overflow: hidden;
}
.feed-impacts-tabpanel {
    display: none;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    height: 100%;
}
.feed-impact-rp {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
    min-height: 100%;
}
.feed-impact-rp__hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.feed-impact-rp__hero-card {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    min-height: 68px;
}
.feed-impact-rp__hero-card--critical {
    background: linear-gradient(160deg, rgba(255, 107, 119, 0.12), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 107, 119, 0.24);
}
.feed-impact-rp__hero-card--high {
    background: linear-gradient(160deg, rgba(255, 177, 90, 0.12), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 177, 90, 0.24);
}
.feed-impact-rp__hero-card--medium {
    background: linear-gradient(160deg, rgba(240, 211, 122, 0.12), rgba(255, 255, 255, 0.03));
    border-color: rgba(240, 211, 122, 0.24);
}
.feed-impact-rp__hero-card--low {
    background: linear-gradient(160deg, rgba(123, 212, 178, 0.12), rgba(255, 255, 255, 0.03));
    border-color: rgba(123, 212, 178, 0.24);
}
.feed-impact-rp__hero-card--planned {
    background: linear-gradient(160deg, rgba(154, 166, 191, 0.12), rgba(255, 255, 255, 0.03));
    border-color: rgba(154, 166, 191, 0.22);
}
.feed-impact-rp__hero-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(220, 226, 252, 0.66);
}
.feed-impact-rp__hero-value {
    font-size: 1.12rem;
    line-height: 1;
    font-weight: 800;
    color: #f7f9ff;
}
.feed-impact-rp__hero-meta {
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(226, 232, 255, 0.76);
}
.feed-impact-rp__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.feed-impact-rp__subtitle {
    font-size: 0.82rem;
    color: rgba(221, 228, 252, 0.8);
}
.feed-impact-rp__total-meta {
    color: rgba(217, 224, 250, 0.72);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.feed-impact-rp__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
}
.feed-impact-rp__distribution,
.feed-impact-rp__top {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 20, 0.45);
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.feed-impact-rp__section-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(220, 226, 252, 0.72);
}
.feed-impact-rp__section-note {
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(217, 224, 250, 0.68);
}
.feed-impact-rp__rows {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 14px;
}
.feed-impact-rp__row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.feed-impact-rp__row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.feed-impact-rp__row-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.feed-impact-rp__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--level-color, #7bd4b2);
}
.feed-impact-rp__label {
    font-size: 0.88rem;
    color: rgba(237, 241, 255, 0.92);
    letter-spacing: 0.02em;
}
.feed-impact-rp__row-metrics {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.feed-impact-rp__count {
    min-width: 30px;
    text-align: right;
    font-size: 0.88rem;
    color: rgba(240, 244, 255, 0.88);
}
.feed-impact-rp__percent {
    min-width: 36px;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(217, 224, 250, 0.64);
}
.feed-impact-rp__track {
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.feed-impact-rp__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), var(--level-color, #7bd4b2));
}
.feed-impact-rp__row.is-empty .feed-impact-rp__fill {
    width: 0 !important;
}
.feed-impact-rp__top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feed-impact-rp__top-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(220, 226, 252, 0.72);
}
.feed-impact-rp__top-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    margin-top: 8px;
}
.feed-impact-rp__top-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.feed-impact-rp__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}
.feed-impact-rp__badge--critical {
    color: #ffd6db;
    border-color: rgba(255, 110, 128, 0.45);
    background: rgba(255, 110, 128, 0.17);
}
.feed-impact-rp__badge--high {
    color: #ffe2c2;
    border-color: rgba(255, 177, 90, 0.5);
    background: rgba(255, 177, 90, 0.18);
}
.feed-impact-rp__badge--medium {
    color: #fff2cc;
    border-color: rgba(240, 211, 122, 0.48);
    background: rgba(240, 211, 122, 0.16);
}
.feed-impact-rp__badge--low {
    color: #d7f8ed;
    border-color: rgba(123, 212, 178, 0.48);
    background: rgba(123, 212, 178, 0.15);
}
.feed-impact-rp__badge--planned {
    color: #d8dfed;
    border-color: rgba(154, 166, 191, 0.45);
    background: rgba(154, 166, 191, 0.15);
}
.feed-impact-rp__asset {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
    min-width: 0;
    font-size: 0.82rem;
    color: rgba(236, 241, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-impact-rp__asset-name {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-impact-rp__asset-meta {
    display: block;
    font-size: 0.76rem;
    color: rgba(214, 220, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-impact-rp__asset:hover,
.feed-impact-rp__asset:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    outline: none;
}
.feed-impact-rp__more {
    font-size: 0.74rem;
    color: rgba(217, 224, 250, 0.7);
    margin-top: -2px;
}
@media (max-width: 860px) {
    .feed-impact-rp__hero {
        grid-template-columns: 1fr;
    }
    .feed-impact-rp__layout {
        grid-template-columns: 1fr;
    }
}
.feed-impact-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feed-impact-section__title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(205, 210, 255, 0.85);
}
.feed-impact-section__list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #f4f6ff;
    font-size: 0.88rem;
}
.feed-impact-elements {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 100%;
}
.feed-impact-elements__panel {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 20, 0.45);
    display: flex;
    flex-direction: column;
    min-height: 240px;
}
.feed-impact-elements__panel-header {
    padding: 10px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(228, 232, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.feed-impact-elements__panel-body {
    padding: 10px 12px;
    overflow: auto;
    flex: 1 1 auto;
}
.feed-impact-elements__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feed-impact-elements__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(235, 239, 255, 0.9);
    text-align: left;
    cursor: pointer;
}
.feed-impact-elements__row:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.feed-impact-elements__row.is-active {
    border-color: rgba(108, 132, 255, 0.6);
    background: rgba(108, 132, 255, 0.12);
}
.feed-impact-elements__row-name {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-impact-elements__row-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 28px;
    text-align: right;
}
.feed-impact-elements__row-pill {
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(230, 234, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}
.feed-impact-elements__assets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feed-impact-elements__asset-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}
.feed-impact-elements__asset-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 14, 24, 0.55);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(200, 210, 255, 0.85);
}
.feed-impact-elements__asset-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feed-impact-elements__asset-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.feed-impact-elements__asset-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(236, 240, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-impact-elements__asset-meta {
    font-size: 0.78rem;
    color: rgba(214, 220, 255, 0.6);
}
.feed-impact-elements__asset-empty {
    padding: 10px;
    color: rgba(220, 226, 255, 0.6);
    font-size: 0.85rem;
}
@media (max-width: 980px) {
    .feed-impact-elements {
        grid-template-columns: 1fr;
    }
}
.feed-impact-network {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    align-content: start;
}
.feed-impact-network__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(232, 236, 255, 0.9);
}
.feed-impact-network__canvas {
    --feed-impact-network-vuln-fill: #8db3ff;
    --feed-impact-network-vuln-stroke: #193a8f;
    --feed-impact-network-element-fill: #7ae0c0;
    --feed-impact-network-element-stroke: #13694b;
    --feed-impact-network-asset-fill: #111a2f;
    --feed-impact-network-asset-stroke: #9fb4ff;
    --feed-impact-network-edge: rgba(139, 161, 255, 0.62);
    --feed-impact-network-label: #e8ecff;
    --feed-impact-network-crit-low: #32d39c;
    --feed-impact-network-crit-med: #f0c66c;
    --feed-impact-network-crit-high: #ff9f43;
    --feed-impact-network-crit-critical: #e05d5d;
    width: 100%;
    min-height: 320px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at 30% 20%, rgba(124, 141, 255, 0.08), transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(122, 224, 192, 0.08), transparent 46%),
                linear-gradient(180deg, rgba(18, 21, 34, 0.9) 0%, rgba(12, 14, 24, 0.78) 100%);
    overflow: hidden;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.feed-impact-network__canvas.is-ready {
    opacity: 1;
}
.feed-impact-network__canvas svg {
    width: 100%;
    height: 100%;
    display: block;
}
@media (max-width: 980px) {
    .feed-impact-network__canvas {
        min-height: 288px;
    }
}
.feed-impact-network__legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    color: rgba(214, 221, 255, 0.74);
    font-size: 0.82rem;
}
.feed-impact-network__legend--criticality {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
    margin-top: 2px;
}
.feed-impact-network__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.feed-impact-network__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.feed-impact-network__dot--vuln {
    background: #8db3ff;
}
.feed-impact-network__dot--element {
    background: #7ae0c0;
}
.feed-impact-network__dot--asset {
    background: #111a2f;
}
.feed-impact-network__dot--crit-low {
    background: #32d39c;
}
.feed-impact-network__dot--crit-med {
    background: #f0c66c;
}
.feed-impact-network__dot--crit-high {
    background: #ff9f43;
}
.feed-impact-network__dot--crit-crit {
    background: #e05d5d;
}
.feed-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.feed-card__metric {
    flex: 1 1 140px;
    min-width: 140px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 20, 0.7);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.feed-card__metric .metric-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(223, 229, 255, 0.6);
}
.feed-card__metric .metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f7f9ff;
}
.feed-card__metric--severity {
    color: #ffffff;
}
.severity-critical {
    background: linear-gradient(140deg, rgba(255, 71, 87, 0.22), rgba(255, 0, 68, 0.05));
    border-color: rgba(255, 71, 87, 0.5);
    color: #ffe4e7;
}
.severity-high {
    background: linear-gradient(140deg, rgba(255, 159, 67, 0.2), rgba(255, 102, 0, 0.05));
    border-color: rgba(255, 159, 67, 0.45);
    color: #fff0e2;
}
.severity-medium {
    background: linear-gradient(140deg, rgba(255, 209, 102, 0.2), rgba(245, 166, 35, 0.05));
    border-color: rgba(255, 209, 102, 0.4);
    color: #fff8e4;
}
.severity-low {
    background: linear-gradient(140deg, rgba(109, 213, 196, 0.22), rgba(51, 177, 160, 0.06));
    border-color: rgba(109, 213, 196, 0.45);
    color: #e4fffb;
}
.severity-unclassified {
    background: rgba(255, 255, 255, 0.08);
}
.feed-card__footer {
    display: flex;
    justify-content: flex-start;
}
.feed-card__primary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f4f6ff;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feed-card__primary-link:hover {
    transform: translateY(-1px);
    border-color: rgba(108, 99, 255, 0.6);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
/* Footer */
footer {
    width: 100%;
    margin-top: auto;
    padding: 16px clamp(18px, 6vw, 80px) 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(223, 229, 255, 0.75);
    font-size: 0.9rem;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}
.footer-right {
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
}
footer a {
    color: inherit;
    text-decoration: none;
}
footer a:hover {
    color: var(--accent);
}
@media (max-width: 768px) {
    .asset-table-toolbar--split {
        flex-wrap: wrap;
    }
    .asset-table-toolbar__tools {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .asset-table-toolbar__tools .impacted-assets-search {
        flex: 1 1 220px;
        min-width: 0;
    }
    .asset-group-row__actions {
        min-width: 216px;
    }
    .asset-group-row__action-group {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
    }
    .asset-group-row__inline-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .asset-criticality-control {
        flex-basis: 156px;
        width: 156px;
    }
    .asset-elements-toggle {
        min-width: 132px;
    }
    body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-header__text {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-actions--inline {
        width: 100%;
        justify-self: start;
        justify-content: flex-start;
    }
    body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .asset-table-footer {
        padding: 6px 16px 9px;
    }
    .settings-container {
        padding: 18px;
    }
    footer {
        justify-content: center;
        text-align: center;
    }
}
@media (max-width: 640px) {
    .asset-card {
        padding: 18px;
    }
    body.inventory-mode #assetScreen .asset-column--main .asset-card:first-of-type .asset-summary {
        grid-template-columns: 1fr;
    }
    .asset-table-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .asset-pagination {
        width: auto;
        justify-content: flex-start;
        margin-left: 0;
    }
    .asset-pagination__status {
        min-width: 0;
    }
    .asset-group-row__action-group {
        justify-content: flex-end;
    }
    .asset-group-row__inline-actions {
        justify-content: flex-end;
    }
    .asset-criticality-control {
        flex-basis: 150px;
        width: 150px;
    }
    .feed-card {
        padding: 18px;
    }
}
.impacted-assets-list::-webkit-scrollbar {
    width: 10px;
}
.impacted-assets-list::-webkit-scrollbar-track {
    background: rgba(18, 22, 33, 0.95);
    border-radius: 12px;
}
.impacted-assets-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(120, 132, 255, 0.85), rgba(92, 68, 255, 0.75));
    border-radius: 12px;
    border: 2px solid rgba(18, 22, 33, 0.95);
}
.impacted-assets-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(140, 150, 255, 0.95), rgba(112, 88, 255, 0.85));
}
.inventory-gate {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 4000;
}
.inventory-gate[hidden],
.inventory-gate[aria-hidden="true"] {
    display: none;
}
.inventory-gate__dialog {
    max-width: 520px;
    width: min(520px, 90vw);
    background: linear-gradient(135deg, rgba(23, 32, 46, 0.95), rgba(16, 22, 34, 0.95));
    color: #f5f7fb;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.inventory-gate__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #ffcf6a;
    margin: 0;
}
.inventory-gate__warning {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffb347, #ff7b47);
    color: #0b1120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}
.inventory-gate__title {
    margin: 0;
    font-size: 1.4rem;
}
.inventory-gate__message,
.inventory-gate__hint {
    margin: 0;
    color: rgba(245, 247, 251, 0.85);
    line-height: 1.5;
}
.inventory-gate__hint {
    font-size: 0.9rem;
    color: rgba(245, 247, 251, 0.65);
}
.inventory-gate__actions {
    display: flex;
    gap: 12px;
    margin-top: 2px;
}
.inventory-gate .icon-button {
    background: linear-gradient(120deg, #5f8bff, #3c6bff);
    color: #0b1120;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 30px rgba(60, 107, 255, 0.35);
}
.inventory-gate .icon-button:hover {
    transform: translateY(-1px);
}
.inventory-gate .inventory-gate__logout {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f7fb;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.inventory-gate .inventory-gate__logout:hover {
    background: rgba(255, 255, 255, 0.14);
}
body.inventory-gate-open {
    overflow: hidden;
}
.feed-card__compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  min-width: 0;
}
.feed-card__compact-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 38px;
}
.feed-card__copy {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 0;
  color: rgba(214, 224, 255, 0.82);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
.feed-card__copy svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feed-card__copy:hover,
.feed-card__copy:focus-visible {
  color: #f1f5ff;
  transform: translateY(-1px);
}
.feed-card__copy.is-copied {
  color: #cbffe8;
}
.feed-card__copy.is-error {
  color: #ffd7d7;
}
.feed-card__copy::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  transform: translateY(-6px);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  white-space: nowrap;
  color: #f7f9ff;
  background: rgba(8, 10, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1200;
}
.feed-card__copy:hover::after,
.feed-card__copy:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.feed-card__cve {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Fira Code", "Consolas", monospace;
  color: #f7f9ff;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.feed-card__vendor {
  font-size: 1.08rem;
  font-weight: 600;
  font-family: "Fira Code", "Consolas", monospace;
  color: rgba(223, 229, 255, 0.82);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}
.feed-card__mid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  margin-left: 0;
}
.feed-card__cvss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 7px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(223, 229, 255, 0.85);
  position: relative;
}
.feed-card__cvss.feed-card__cvss--pending {
  justify-content: space-between;
  min-width: 130px;
}
.feed-card__cvss-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13px;
  padding-right: 6px;
  border-right: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.feed-card__cvss-value {
  display: inline-block;
}
.feed-card__cvss.severity-critical {
  background: linear-gradient(140deg, rgba(255, 71, 87, 0.22), rgba(255, 0, 68, 0.05));
  border-color: rgba(255, 71, 87, 0.5);
  color: #ffe4e7;
}
.feed-card__cvss.severity-high {
  background: linear-gradient(140deg, rgba(255, 159, 67, 0.2), rgba(255, 102, 0, 0.05));
  border-color: rgba(255, 159, 67, 0.45);
  color: #fff0e2;
}
.feed-card__cvss.severity-medium {
  background: linear-gradient(140deg, rgba(255, 209, 102, 0.2), rgba(245, 166, 35, 0.05));
  border-color: rgba(255, 209, 102, 0.4);
  color: #fff8e4;
}
.feed-card__cvss.severity-low {
  background: linear-gradient(140deg, rgba(109, 213, 196, 0.22), rgba(51, 177, 160, 0.06));
  border-color: rgba(109, 213, 196, 0.45);
  color: #e4fffb;
}
.feed-card__cvss.severity-unclassified {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(223, 229, 255, 0.85);
}
.feed-card__cvss::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-6px);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  color: #f7f9ff;
  background: rgba(8, 10, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}
.feed-card__cvss:hover::after,
.feed-card__cvss:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.feed-card__cvss-arrows {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 0;
}
.feed-card__cvss-arrow {
  display: block;
  line-height: 0;
}
.feed-card__cvss-arrow + .feed-card__cvss-arrow {
  margin-top: -6px;
}
.feed-card__cvss-arrow svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feed-card__icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  justify-self: center;
  margin-left: 0;
}
.feed-card__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(223, 229, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.feed-card__icon.is-active {
  opacity: 1;
}
.feed-card__icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-6px);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  color: #f7f9ff;
  background: rgba(8, 10, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}
.feed-card__icon:hover::after,
.feed-card__icon:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.feed-card__icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.feed-card__icon[data-count]::before {
  content: attr(data-count);
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #dcfce7;
  border: 1px solid rgba(134, 239, 172, 0.58);
  background: rgba(22, 163, 74, 0.9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.36);
}
.feed-card__icon--kev.is-active {
  color: #ff8d9c;
  border-color: rgba(255, 90, 90, 0.55);
  background: rgba(255, 90, 90, 0.2);
}
.feed-card__icon--exploit.is-active {
  color: #ffb37a;
  border-color: rgba(255, 147, 64, 0.55);
  background: rgba(255, 147, 64, 0.2);
}
.feed-card__icon--patch.is-active {
  color: #8be0b7;
  border-color: rgba(64, 196, 143, 0.55);
  background: rgba(64, 196, 143, 0.2);
}
.feed-card__vuln-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
  border: 1px solid transparent;
  position: relative;
  cursor: default;
}
.feed-card__vuln-status::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(-4px);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  white-space: nowrap;
  color: #f7f9ff;
  background: rgba(8, 10, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}
.feed-card__vuln-status:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.feed-card__vuln-status--received {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
}
.feed-card__vuln-status--awaiting {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}
.feed-card__vuln-status--undergoing {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
}
.feed-card__vuln-status--analyzed {
  color: rgba(180, 200, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.feed-card__vuln-status--modified {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
}
.feed-card__vuln-status--deferred {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.28);
}
.feed-card__vuln-status--rejected {
  color: rgba(248, 113, 113, 0.65);
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}
.feed-card__details {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  display: block;
  width: 100%;
  min-width: 0;
  margin-left: 0;
}
.feed-card__details summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  cursor: pointer;
  color: rgba(223, 229, 255, 0.7);
  font-size: 0.85rem;
  padding: 0;
}
.feed-card__details summary::-webkit-details-marker {
  display: none;
}
.feed-card__summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: rgba(223, 229, 255, 0.7);
  font-size: 0.85rem;
}
.feed-card__summary-toggle::after {
  content: "\25BE";
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.feed-card__summary-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}
.feed-card__details-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.feed-card__details-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.feed-card__details-body--loading {
  min-height: 72px;
}
.feed-card__details-loading {
  border: 1px solid rgba(143, 171, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(17, 23, 41, 0.92), rgba(11, 18, 35, 0.92));
  color: rgba(229, 237, 255, 0.82);
  padding: 12px 14px;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
.feed-card__expanded-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
.feed-card__expanded-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.feed-card__expanded-meta-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(188, 198, 232, 0.72);
}
.feed-card__expanded-meta-value {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(233, 240, 255, 0.9);
  word-break: break-word;
}
@media (max-width: 860px) {
  .feed-card__expanded-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}
.feed-card__date {
  font-size: 0.8rem;
  color: rgba(223, 229, 255, 0.7);
  flex-shrink: 0;
}
.feed-card__meta-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  flex-shrink: 0;
}
.feed-card__tutorial-marker {
  font-size: 0.76rem;
  line-height: 1;
}
.feed-impacts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.feed-impacts-header__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(190, 200, 255, 0.8);
}

/* Backoffice */
.backoffice-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(22, 66, 140, 0.2) 0%, rgba(3, 9, 23, 0) 48%),
    radial-gradient(100% 70% at 100% 100%, rgba(15, 66, 72, 0.18) 0%, rgba(4, 9, 22, 0) 48%),
    #050a16;
  color: #e7edff;
}

.bo-shell {
  width: min(1320px, calc(100vw - 64px));
  margin: 36px auto 48px;
  display: grid;
  gap: 16px;
}

.bo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bo-brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.bo-brand__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(176, 189, 224, 0.78);
}

.bo-brand h1 {
  margin: 2px 0 0;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: #f5f8ff;
}

.bo-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bo-btn {
  min-height: 38px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0.01em;
}

.bo-btn--secondary {
  border: 1px solid rgba(120, 158, 255, 0.35);
  background: linear-gradient(160deg, rgba(59, 98, 195, 0.42), rgba(31, 67, 152, 0.2));
  color: #e8f0ff;
}

.bo-btn--secondary:hover {
  background: linear-gradient(160deg, rgba(79, 123, 228, 0.5), rgba(41, 86, 192, 0.24));
}

.bo-btn--ghost {
  border: 1px solid rgba(133, 148, 186, 0.3);
  background: rgba(21, 32, 58, 0.42);
  color: rgba(230, 237, 255, 0.92);
}

.bo-status-card {
  border: 1px solid rgba(104, 124, 170, 0.28);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(13, 22, 46, 0.88), rgba(10, 17, 36, 0.7));
  padding: 14px 16px;
}

.bo-status-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bo-status-card__label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(179, 191, 224, 0.75);
}

.bo-status-card__value {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(238, 244, 255, 0.95);
}

.bo-status-message {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 0.84rem;
  color: rgba(181, 196, 230, 0.85);
}

.bo-status-message[data-type="success"] { color: #8dd8b6; }
.bo-status-message[data-type="error"] { color: #ffadad; }

.bo-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bo-kpi {
  border: 1px solid rgba(98, 118, 168, 0.24);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(12, 20, 43, 0.9), rgba(8, 14, 30, 0.7));
  padding: 14px 16px;
}

.bo-kpi__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(175, 189, 225, 0.74);
}

.bo-kpi__value {
  margin: 8px 0 0;
  font-size: 1.46rem;
  font-weight: 600;
  color: #f3f7ff;
}

.bo-panel {
  border: 1px solid rgba(99, 122, 170, 0.3);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(9, 18, 40, 0.9), rgba(6, 12, 27, 0.76));
  overflow: hidden;
}

.bo-panel__toolbar {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(91, 111, 158, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bo-panel__tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bo-tab {
  border: 1px solid rgba(102, 121, 171, 0.34);
  border-radius: 10px;
  background: rgba(17, 28, 52, 0.62);
  color: rgba(219, 228, 248, 0.86);
  padding: 8px 11px;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.bo-tab:hover {
  border-color: rgba(128, 156, 223, 0.52);
  color: #f5f8ff;
}

.bo-tab.is-active {
  border-color: rgba(129, 167, 255, 0.7);
  background: linear-gradient(150deg, rgba(61, 100, 193, 0.5), rgba(35, 72, 157, 0.24));
  color: #f4f8ff;
}

.bo-search {
  width: min(360px, 100%);
  border-radius: 10px;
  border: 1px solid rgba(94, 115, 161, 0.4);
  background: rgba(13, 22, 44, 0.6);
  color: #edf2ff;
  min-height: 38px;
  padding: 0 12px;
}

.bo-search::placeholder {
  color: rgba(178, 194, 227, 0.62);
}

.bo-panel__content {
  display: none;
  padding: 10px 12px 14px;
}

.bo-panel__content.is-active {
  display: block;
}

.bo-table-wrap {
  border: 1px solid rgba(89, 108, 154, 0.26);
  border-radius: 12px;
  overflow: auto;
}

.bo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.bo-table thead th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(175, 191, 229, 0.78);
  background: rgba(12, 21, 45, 0.9);
  border-bottom: 1px solid rgba(92, 112, 157, 0.24);
  padding: 11px 12px;
}

.bo-table tbody td {
  font-size: 0.88rem;
  color: rgba(232, 240, 255, 0.9);
  border-top: 1px solid rgba(82, 103, 150, 0.18);
  padding: 10px 12px;
  vertical-align: middle;
}

.bo-table tbody tr:hover td {
  background: rgba(34, 53, 96, 0.2);
}

.bo-table__empty {
  text-align: center;
  color: rgba(172, 188, 223, 0.78);
}

@media (max-width: 980px) {
  .bo-shell {
    width: min(1320px, calc(100vw - 28px));
    margin-top: 20px;
  }

  .bo-kpis {
    grid-template-columns: 1fr;
  }

  .bo-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bo-header__actions {
    width: 100%;
  }

  .bo-btn {
    flex: 1 1 0;
  }

  .bo-panel__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .bo-panel__tabs {
    width: 100%;
    flex-wrap: wrap;
  }

  .bo-tab {
    flex: 1 1 0;
    text-align: center;
  }

  .bo-search {
    width: 100%;
  }
}

.bo-form {
  border: 1px solid rgba(89, 108, 154, 0.24);
  border-radius: 12px;
  background: rgba(10, 18, 38, 0.55);
  padding: 10px;
  margin-bottom: 10px;
}

.bo-form__title {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(174, 190, 227, 0.82);
}

.bo-form__row {
  display: grid;
  gap: 8px;
}

.bo-form__row--users {
  grid-template-columns: minmax(180px, 1.3fr) repeat(2, minmax(120px, 1fr)) minmax(130px, 0.8fr) minmax(170px, 1fr) minmax(120px, 0.9fr) auto;
}

.bo-form__row--tenants {
  grid-template-columns: minmax(170px, 1.3fr) minmax(150px, 1.1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.bo-form__row--memberships {
  grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 1.4fr) minmax(150px, 1fr) auto;
}

.bo-input,
.bo-select {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(94, 115, 161, 0.4);
  background: rgba(13, 22, 44, 0.66);
  color: #edf2ff;
  padding: 0 10px;
  font-size: 0.84rem;
}

.bo-input::placeholder {
  color: rgba(176, 191, 223, 0.62);
}

.bo-inline-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bo-inline-select {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(95, 115, 157, 0.45);
  background: rgba(14, 23, 45, 0.7);
  color: #e8eeff;
  padding: 0 8px;
  font-size: 0.76rem;
}

.bo-inline-select--role {
  width: 90px;
}

.bo-btn--xs {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.73rem;
}

.bo-btn--danger {
  border: 1px solid rgba(236, 128, 128, 0.42);
  background: rgba(95, 33, 33, 0.25);
  color: #ffd7d7;
}

.bo-btn--danger:hover:not([disabled]) {
  background: rgba(120, 40, 40, 0.35);
}

.bo-btn[disabled],
.bo-btn--danger[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
}

.bo-membership-stack {
  display: grid;
  gap: 8px;
}

.bo-membership-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bo-membership-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(108, 131, 182, 0.4);
  background: rgba(28, 43, 76, 0.45);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.73rem;
  color: rgba(231, 239, 255, 0.92);
}

.bo-chip-remove {
  border: 0;
  background: transparent;
  color: rgba(255, 188, 188, 0.92);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-size: 0.88rem;
}

.bo-chip-remove:hover {
  color: #ffd4d4;
}

.bo-membership-empty {
  font-size: 0.76rem;
  color: rgba(176, 190, 224, 0.72);
}

.bo-status-message[data-type="warn"] {
  color: #ffd28f;
}

.bo-grid {
  display: grid;
  gap: 12px;
}

.bo-grid--overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.bo-grid--split {
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  align-items: start;
}

.bo-grid--tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.bo-stack {
  display: grid;
  gap: 12px;
}

.bo-card {
  border: 1px solid rgba(89, 108, 154, 0.24);
  border-radius: 12px;
  background: rgba(10, 18, 38, 0.55);
  padding: 12px;
}

.bo-card--table {
  padding: 12px;
}

.bo-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bo-card__eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(174, 190, 227, 0.72);
}

.bo-card__title {
  margin: 0;
  font-size: 1rem;
  color: #f3f7ff;
}

.bo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 158, 255, 0.35);
  background: rgba(31, 67, 152, 0.22);
  color: #dce8ff;
  font-size: 0.74rem;
}

.bo-section-copy {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(226, 234, 253, 0.86);
}

.bo-key-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bo-key-values__item {
  border: 1px solid rgba(89, 108, 154, 0.22);
  border-radius: 10px;
  background: rgba(14, 23, 45, 0.54);
  padding: 10px 11px;
}

.bo-key-values__item span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(174, 190, 227, 0.68);
}

.bo-key-values__item strong {
  display: block;
  font-size: 0.84rem;
  color: #eef4ff;
  line-height: 1.45;
  word-break: break-word;
}

.bo-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(108, 131, 182, 0.4);
  background: rgba(28, 43, 76, 0.45);
  color: rgba(231, 239, 255, 0.92);
  font-size: 0.74rem;
}

.bo-chip--muted {
  border-color: rgba(93, 109, 147, 0.32);
  background: rgba(14, 20, 36, 0.48);
  color: rgba(174, 190, 227, 0.72);
}

.bo-form__hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: rgba(174, 190, 227, 0.74);
}

.bo-detail-grid {
  display: grid;
  gap: 8px;
}

.bo-detail-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bo-detail-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bo-field {
  display: grid;
  gap: 6px;
}

.bo-field--wide {
  grid-column: 1 / -1;
}

.bo-field__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(174, 190, 227, 0.74);
}

.bo-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bo-summary {
  border: 1px solid rgba(89, 108, 154, 0.22);
  border-radius: 10px;
  background: rgba(14, 23, 45, 0.46);
  padding: 10px;
  margin-top: 10px;
}

.bo-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #eef4ff;
  font-size: 0.82rem;
}

.bo-summary__body {
  display: grid;
  gap: 8px;
}

.bo-helper {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(174, 190, 227, 0.72);
}

.bo-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(226, 234, 253, 0.86);
}

.bo-check input {
  margin: 0;
}

.bo-membership-editor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(89, 108, 154, 0.22);
  border-radius: 10px;
  background: rgba(12, 21, 45, 0.56);
  padding: 10px;
}

.bo-membership-editor__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bo-membership-editor__meta strong,
.bo-membership-editor__meta span,
.bo-membership-editor__meta code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bo-membership-editor__meta strong {
  color: #f1f6ff;
  font-size: 0.84rem;
}

.bo-membership-editor__meta span {
  color: rgba(174, 190, 227, 0.76);
  font-size: 0.78rem;
}

.bo-membership-editor__meta code,
.bo-table code {
  font-size: 0.72rem;
  color: #b9cdfa;
}

.bo-json {
  margin: 0;
  min-height: 260px;
  max-height: 520px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(89, 108, 154, 0.24);
  background: rgba(9, 15, 29, 0.88);
  color: #dbe6ff;
  padding: 12px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.bo-detail-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.bo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.bo-toolbar--stack {
  display: grid;
  gap: 8px;
}

.bo-form__actions--inline {
  margin-top: 0;
  align-self: end;
}

.bo-tenant-console {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 12px;
}

.bo-tenant-console__sidebar,
.bo-tenant-console__main,
.bo-tenant-console__detail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.bo-tenant-console__empty {
  min-height: 220px;
  align-content: center;
}

.bo-tenant-list {
  display: grid;
  gap: 8px;
}

.bo-tenant-list__item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(89, 108, 154, 0.24);
  background: rgba(14, 23, 45, 0.56);
  cursor: pointer;
  text-align: left;
}

.bo-tenant-list__item:hover,
.bo-tenant-list__item:focus-visible {
  border-color: rgba(129, 167, 255, 0.62);
  background: rgba(27, 43, 79, 0.68);
  outline: none;
}

.bo-tenant-list__item.is-active {
  border-color: rgba(129, 167, 255, 0.78);
  background: linear-gradient(150deg, rgba(61, 100, 193, 0.34), rgba(22, 39, 80, 0.88));
}

.bo-tenant-list__item strong {
  font-size: 0.88rem;
  color: #f0f5ff;
}

.bo-tenant-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.74rem;
  color: rgba(174, 190, 227, 0.78);
}

.bo-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.bo-pager--table {
  margin-top: 12px;
}

.bo-pager__label {
  font-size: 0.78rem;
  color: rgba(174, 190, 227, 0.8);
}

.bo-table--tenant-users {
  min-width: 980px;
}

.bo-table--tenant-users .bo-input,
.bo-table--tenant-users .bo-select {
  min-height: 34px;
  font-size: 0.78rem;
}

.bo-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bo-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(108, 131, 182, 0.38);
  background: rgba(18, 32, 60, 0.55);
  color: rgba(233, 240, 255, 0.9);
  font-size: 0.7rem;
}

.bo-status-badge[data-tone="success"] {
  border-color: rgba(104, 212, 167, 0.42);
  background: rgba(20, 70, 52, 0.42);
  color: #b8f0d8;
}

.bo-status-badge[data-tone="warn"] {
  border-color: rgba(235, 188, 94, 0.42);
  background: rgba(86, 62, 22, 0.42);
  color: #ffe0a0;
}

.bo-status-badge[data-tone="neutral"] {
  border-color: rgba(108, 131, 182, 0.38);
}

@media (max-width: 1280px) {
  .bo-form__row--users {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bo-form__row--tenants,
  .bo-form__row--memberships {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .bo-form__row--users,
  .bo-form__row--tenants,
  .bo-form__row--memberships {
    grid-template-columns: minmax(0, 1fr);
  }

  .bo-grid--overview,
  .bo-grid--split,
  .bo-grid--tools,
  .bo-detail-grid--two,
  .bo-detail-grid--three,
  .bo-detail-grid--four,
  .bo-key-values {
    grid-template-columns: minmax(0, 1fr);
  }

  .bo-tenant-console {
    grid-template-columns: minmax(0, 1fr);
  }

  .bo-membership-editor {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Light theme: contrast and border hardening across core screens */
body.theme-light {
  --lt-text: #0f172a;
  --lt-text-soft: #2d3d53;
  --lt-text-muted: #5a6b82;
  --lt-border: rgba(15, 30, 60, 0.15);
  --lt-border-soft: rgba(15, 30, 60, 0.09);
  --lt-surface: rgba(243, 246, 252, 0.98);
  --lt-surface-alt: rgba(235, 240, 250, 0.94);
}

body.theme-light .match-card,
body.theme-light .asset-card,
body.theme-light .feed-card,
body.theme-light .feed-item,
body.theme-light .remediation-card,
body.theme-light .remediation-action,
body.theme-light .remediation-filter,
body.theme-light .asset-element-card,
body.theme-light .feed-card__impacts,
body.theme-light .feed-impacts-tabs,
body.theme-light .feed-impacts-tabs__body,
body.theme-light .feed-impact-rp__distribution,
body.theme-light .feed-impact-rp__top,
body.theme-light .feed-impact-elements__panel,
body.theme-light .feed-impact-elements__row,
body.theme-light .feed-impact-elements__asset-item,
body.theme-light .feed-impact-rp__top-item,
body.theme-light .match-card--vulns .severity-counts,
body.theme-light .match-card--vulns .vuln-section,
body.theme-light .match-card--vulns .vuln-insight,
body.theme-light .match-card--assets .metric,
body.theme-light .feed-card__details-loading {
  background: linear-gradient(165deg, var(--lt-surface), var(--lt-surface-alt));
  border-color: var(--lt-border);
  color: var(--lt-text);
  box-shadow: 0 6px 18px rgba(20, 40, 80, 0.07);
}

body.theme-light .match-card header h3,
body.theme-light .match-summary .panel-header h3,
body.theme-light .panel-hero__value,
body.theme-light .metric-value,
body.theme-light .match-card--info .value,
body.theme-light .match-card--vulns .vuln-insight__value,
body.theme-light .match-card--vulns .severity-count__value,
body.theme-light .asset-group-row__asset-name,
body.theme-light .asset-element-card__name,
body.theme-light .feed-card__title,
body.theme-light .feed-card__cve,
body.theme-light .remediation-action__title {
  color: var(--lt-text);
}

body.theme-light .card-subtitle,
body.theme-light .panel-meta,
body.theme-light .panel-meta__label,
body.theme-light .panel-meta__value,
body.theme-light .panel-meta--note,
body.theme-light .panel-hero__label,
body.theme-light .metric-label,
body.theme-light .match-card--info .label,
body.theme-light .match-card--vulns .severity-title,
body.theme-light .match-card--vulns .severity-count__label,
body.theme-light .match-card--vulns .vuln-insight__label,
body.theme-light .asset-group-row__asset-meta,
body.theme-light .asset-group-row__ip,
body.theme-light .asset-element-card__meta-item,
body.theme-light .feed-date,
body.theme-light .feed-item p,
body.theme-light .feed-card__vendor,
body.theme-light .feed-card__chip,
body.theme-light .feed-card__cwe-label,
body.theme-light .feed-card__cwe-id,
body.theme-light .feed-card__cwe-name,
body.theme-light .feed-card__description summary,
body.theme-light .feed-card__description-body,
body.theme-light .feed-card__summary-toggle,
body.theme-light .feed-card__date,
body.theme-light .feed-card__expanded-meta-label,
body.theme-light .feed-card__expanded-meta-value,
body.theme-light .feed-impact-rp__subtitle,
body.theme-light .feed-impact-rp__label,
body.theme-light .feed-impact-rp__count,
body.theme-light .feed-impact-rp__percent,
body.theme-light .feed-impact-rp__top-title,
body.theme-light .feed-impact-rp__asset,
body.theme-light .feed-impact-rp__more,
body.theme-light .feed-impact-section__title,
body.theme-light .feed-impact-section__list,
body.theme-light .feed-impact-elements__panel-header,
body.theme-light .feed-impact-elements__row,
body.theme-light .feed-impact-elements__row-pill,
body.theme-light .remediation-asset__label,
body.theme-light .remediation-asset__meta,
body.theme-light .remediation-asset__count,
body.theme-light .remediation-asset__percent,
body.theme-light .remediation-empty,
body.theme-light .remediation-loading,
body.theme-light .remediation-action__meta,
body.theme-light .remediation-actions__view {
  color: var(--lt-text-soft);
}

body.theme-light .panel-divider,
body.theme-light .panel-meta--note,
body.theme-light .match-card--vulns .severity-count:not(:last-child)::after,
body.theme-light .asset-table th,
body.theme-light .asset-table td,
body.theme-light .asset-elements-row td,
body.theme-light .feed-card__kev-action + .feed-card__description,
body.theme-light .feed-card__expanded-meta,
body.theme-light .feed-impact-elements__panel-header,
body.theme-light .feed-impacts-tabs__header,
body.theme-light .feed-impacts-tab,
body.theme-light .feed-impact-rp__track,
body.theme-light .remediation-asset__track,
body.theme-light .remediation-action__toggle,
body.theme-light .remediation-action,
body.theme-light .remediation-filter,
body.theme-light .feed-impact-rp__distribution,
body.theme-light .feed-impact-rp__top {
  border-color: var(--lt-border-soft);
}

body.theme-light .asset-table th {
  color: var(--lt-text-muted);
}

body.theme-light .asset-table tbody tr:hover,
body.theme-light .asset-group-row--expanded,
body.theme-light .feed-impact-elements__row:hover,
body.theme-light .feed-impact-elements__row.is-active,
body.theme-light .feed-card__impacts summary:hover {
  background: rgba(59, 130, 246, 0.1);
}

body.theme-light .asset-table tbody tr.asset-group-row--impacted,
body.theme-light .asset-table tbody tr.asset-group-row--impacted:hover {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2) 0%, rgba(251, 191, 36, 0.14) 42%, rgba(148, 163, 184, 0.05) 100%);
}

body.theme-light .asset-table tbody tr.asset-group-row--impacted td:first-child {
  box-shadow: inset 3px 0 0 rgba(234, 88, 12, 0.72);
}

body.theme-light .asset-group-row__impact-badge {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(255, 237, 213, 0.9);
  color: #9a3412;
}

body.theme-light .asset-group-row__impact-badge::before {
  background: #ea580c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

body.theme-light .asset-element-card--impacted {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(105deg, rgba(255, 244, 227, 0.94) 0%, rgba(255, 248, 236, 0.92) 54%, rgba(244, 248, 255, 0.92) 100%);
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.58);
}

body.theme-light .asset-element-card--impacted .asset-element-card__name {
  color: #8a4a16;
}

body.theme-light .asset-risk-summary {
  border-color: rgba(15, 30, 60, 0.16);
  background: rgba(250, 252, 255, 0.94);
  box-shadow: none;
}

body.theme-light .asset-risk-summary[data-tone="low"] {
  --risk-accent: #2f8f64;
}

body.theme-light .asset-risk-summary[data-tone="moderate"] {
  --risk-accent: #9a7e2f;
}

body.theme-light .asset-risk-summary[data-tone="medium"] {
  --risk-accent: #9a7e2f;
}

body.theme-light .asset-risk-summary[data-tone="high"] {
  --risk-accent: #a96c3a;
}

body.theme-light .asset-risk-summary[data-tone="very-high"] {
  --risk-accent: #a5603a;
}

body.theme-light .asset-risk-summary[data-tone="critical"] {
  --risk-accent: #a24f49;
}

body.theme-light .asset-risk-summary__title {
  color: rgba(71, 85, 105, 0.78);
}

body.theme-light .asset-risk-summary__intro {
  color: rgba(30, 41, 59, 0.86);
}

body.theme-light .asset-risk-summary__score-value {
  color: #0f172a;
}

body.theme-light .asset-risk-summary__score-max,
body.theme-light .asset-risk-summary__score-label {
  color: rgba(71, 85, 105, 0.72);
}

body.theme-light .asset-risk-summary__meter {
  background: rgba(203, 213, 225, 0.78);
}

body.theme-light .asset-risk-summary__metric {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-light .asset-risk-summary__metric-label {
  color: rgba(100, 116, 139, 0.72);
}

body.theme-light .asset-risk-summary__metric-value {
  color: #0f172a;
}

body.theme-light .asset-risk-summary__insight {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.7);
}

body.theme-light .asset-risk-summary__insight-label {
  color: rgba(71, 85, 105, 0.74);
}

body.theme-light .asset-risk-summary__insight-text {
  color: rgba(51, 65, 85, 0.84);
}

body.theme-light .asset-search input,
body.theme-light .asset-elements-toggle,
body.theme-light .asset-criticality-control__select,
body.theme-light .remediation-filter select {
  color: var(--lt-text);
}
body.theme-light .asset-table-toolbar--split {
  border-bottom-color: rgba(15, 30, 60, 0.14);
}
body.theme-light .asset-table-toolbar--split h3 {
  color: var(--lt-text);
}

body.theme-light .asset-element-card--add {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.78);
}

body.theme-light .asset-element-card--add:hover,
body.theme-light .asset-element-card--add:focus-visible {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(239, 246, 255, 0.95);
}

body.theme-light .asset-element-card__name--add {
  color: #1e3a8a;
}

body.theme-light .asset-element-card__meta-item--add {
  color: rgba(51, 65, 85, 0.72);
}
body.theme-light .asset-inline-action {
  border: none;
  background: transparent;
  color: rgba(51, 65, 85, 0.8);
}
body.theme-light .asset-inline-action--primary {
  color: #1e40af;
}
body.theme-light .asset-inline-action--danger {
  color: #b91c1c;
}
body.theme-light .asset-inline-action:hover,
body.theme-light .asset-inline-action:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
body.theme-light .asset-inline-action--primary:hover,
body.theme-light .asset-inline-action--primary:focus-visible {
  background: rgba(59, 130, 246, 0.12);
}
body.theme-light .asset-inline-action--danger:hover,
body.theme-light .asset-inline-action--danger:focus-visible {
  background: rgba(239, 68, 68, 0.1);
  color: #7f1d1d;
}

body.theme-light .asset-table-footer {
  border-color: rgba(15, 23, 42, 0.08);
  background: transparent;
}

body.theme-light .asset-table-meta,
body.theme-light .asset-pagination__status {
  color: rgba(71, 85, 105, 0.72);
}

body.theme-light .asset-pagination__btn {
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.58);
  box-shadow: none;
}

body.theme-light .asset-pagination__btn:hover,
body.theme-light .asset-pagination__btn:focus-visible {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.94);
}

body.theme-light .asset-elements-toggle {
  background: rgba(248, 250, 255, 0.96);
  border-color: rgba(15, 30, 60, 0.15);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

body.theme-light .asset-criticality-control {
  border-color: rgba(15, 30, 60, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 6px 14px rgba(15, 23, 42, 0.08);
}

body.theme-light .asset-group-row__location {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(219, 234, 254, 0.75);
  color: #1e3a8a;
}
body.theme-light .asset-group-row__location--empty {
  border-color: rgba(71, 85, 105, 0.24);
  background: rgba(241, 245, 249, 0.9);
  color: rgba(71, 85, 105, 0.82);
}

body.theme-light .asset-criticality-control:focus-within {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.theme-light .asset-criticality-control.is-mixed {
  border-color: rgba(124, 58, 237, 0.36);
  background: linear-gradient(135deg, rgba(247, 242, 255, 0.96) 0%, rgba(240, 234, 255, 0.9) 100%);
}

body.theme-light .asset-criticality-control__select {
  border: none;
  background: transparent;
  color: #0f172a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1.25 1.1L5 4.85L8.75 1.1' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px 6px;
}

body.theme-light .asset-criticality-control__select:focus {
  color: #020617;
}

body.theme-light .asset-criticality-control__select option {
  background: #ffffff;
  color: #0f172a;
}

body.theme-light .asset-criticality-control__dot {
  background: rgba(148, 163, 184, 0.86);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

body.theme-light .asset-criticality-control[data-tone="low"] .asset-criticality-control__dot {
  background: #16a34a;
}

body.theme-light .asset-criticality-control[data-tone="medium"] .asset-criticality-control__dot {
  background: #ca8a04;
}

body.theme-light .asset-criticality-control[data-tone="high"] .asset-criticality-control__dot {
  background: #ea580c;
}

body.theme-light .asset-criticality-control[data-tone="critical"] .asset-criticality-control__dot {
  background: #dc2626;
}

body.theme-light .asset-criticality-control[data-tone="mixed"] .asset-criticality-control__dot {
  background: #7c3aed;
}

body.theme-light .asset-criticality-control[data-tone="unknown"] .asset-criticality-control__select {
  color: #334155;
}

body.theme-light .asset-criticality-control[data-tone="low"] .asset-criticality-control__select {
  color: #166534;
}

body.theme-light .asset-criticality-control[data-tone="medium"] .asset-criticality-control__select {
  color: #92400e;
}

body.theme-light .asset-criticality-control[data-tone="high"] .asset-criticality-control__select {
  color: #9a3412;
}

body.theme-light .asset-criticality-control[data-tone="critical"] .asset-criticality-control__select {
  color: #b91c1c;
}

body.theme-light .asset-criticality-control[data-tone="mixed"] .asset-criticality-control__select {
  color: #6d28d9;
}

body.theme-light .inventory-vuln-shortcut {
  color: #334155;
}

body.theme-light .impacted-asset__vuln-shortcut {
  color: #1f3a67;
}

body.theme-light .inventory-vuln-shortcut--inline {
  color: inherit;
}

body.theme-light .inventory-vuln-shortcut:hover,
body.theme-light .inventory-vuln-shortcut:focus-visible {
  background: transparent;
  color: #1d4ed8;
}

body.theme-light .inventory-vuln-shortcut--inline:hover,
body.theme-light .inventory-vuln-shortcut--inline:focus-visible {
  background: transparent;
  color: #1d4ed8;
}

body.theme-light .inventory-floating-tooltip {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

body.theme-light .inventory-vuln-shortcut:disabled {
  color: rgba(100, 116, 139, 0.6);
}
body.theme-light .inventory-action-btn {
  color: rgba(51, 65, 105, 0.78);
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.03);
}
body.theme-light .inventory-action-btn:hover,
body.theme-light .inventory-action-btn:focus-visible {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.18);
}
body.theme-light .inventory-action-btn:disabled {
  color: rgba(100, 116, 139, 0.58);
}
body.theme-light .inventory-action-btn[data-tooltip]::after {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(59, 130, 246, 0.3);
  color: #f0f4ff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

body.theme-light .asset-elements-toggle:hover,
body.theme-light .asset-elements-toggle:focus-visible {
  background: rgba(219, 234, 254, 0.72);
  border-color: rgba(59, 130, 246, 0.4);
}

body.theme-light .asset-elements-toggle[aria-expanded="true"] {
  background: rgba(219, 234, 254, 0.9);
  border-color: rgba(59, 130, 246, 0.48);
  color: #1e3a8a;
}

body.theme-light .asset-element-card__criticality-dot {
  box-shadow: 0 0 0 2px rgba(248, 250, 255, 0.96);
}

body.theme-light .asset-search input::placeholder {
  color: rgba(71, 85, 105, 0.58);
}

body.theme-light .asset-elements-toggle::after {
  border-top-color: rgba(51, 65, 85, 0.82);
}

body.theme-light .asset-elements-toggle--icon::after {
  border-right-color: currentColor;
  border-bottom-color: currentColor;
}

body.theme-light .asset-elements-toggle--icon {
  color: rgba(51, 65, 85, 0.82);
  margin-left: auto;
}

body.theme-light .asset-elements-toggle--icon:hover,
body.theme-light .asset-elements-toggle--icon:focus-visible {
  color: #1e3a8a;
}

body.theme-light .asset-table-wrapper::-webkit-scrollbar-track,
body.theme-light .feed-container::-webkit-scrollbar-track,
body.theme-light .remediation-actions__list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.08);
}

body.theme-light .asset-table-wrapper::-webkit-scrollbar-thumb,
body.theme-light .feed-container::-webkit-scrollbar-thumb,
body.theme-light .remediation-actions__list::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(230, 238, 250, 0.9);
}

body.theme-light .feed-container {
  scrollbar-color: rgba(59, 130, 246, 0.45) rgba(15, 23, 42, 0.08);
}

body.theme-light .feed-card__chip--date {
  color: rgba(71, 85, 105, 0.84);
}

body.theme-light .feed-card__chip--kev {
  color: #b4233e;
}

body.theme-light .feed-card__chip--exploit {
  color: #3730a3;
}

body.theme-light .feed-card__chip--patch {
  color: #0f766e;
}

body.theme-light .feed-card__status.is-new {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

body.theme-light .feed-card__status.is-updated {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

body.theme-light .feed-card__cvss {
  color: var(--lt-text-soft);
  border-color: var(--lt-border);
  background: rgba(148, 163, 184, 0.12);
}
body.theme-light .feed-card__cvss-tier {
  border-right-color: color-mix(in srgb, currentColor 32%, rgba(15, 30, 60, 0.2));
}

body.theme-light .feed-card__cvss.severity-critical { color: #9f1239; }
body.theme-light .feed-card__cvss.severity-high { color: #9a3412; }
body.theme-light .feed-card__cvss.severity-medium { color: #92400e; }
body.theme-light .feed-card__cvss.severity-low { color: #065f46; }
body.theme-light .feed-card__cvss.severity-unclassified { color: #334155; }
body.theme-light .feed-card__epss-insight {
  border: 0;
  background: none;
}
body.theme-light .feed-card__epss-insight-label,
body.theme-light .feed-card__epss-insight-stat-title,
body.theme-light .feed-card__epss-insight-foot {
  color: var(--lt-text-muted);
}
body.theme-light .feed-card__epss-insight-stat-value {
  color: var(--lt-text);
}
body.theme-light .feed-card__epss-insight-stat {
  border: 0;
  background: none;
}
body.theme-light .feed-card__epss-insight-tone {
  color: color-mix(in srgb, var(--epss-signal-color) 74%, var(--lt-text) 26%);
}
body.theme-light .feed-card__epss-insight-stat--percentile {
  border: 0;
}
body.theme-light .feed-card__epss-insight-meter {
  background-color: color-mix(in srgb, var(--lt-border) 68%, transparent);
}
body.theme-light .feed-card__epss-trend {
  color: var(--lt-text-muted);
}
body.theme-light .feed-card__epss-trend-delta {
  border: 0;
  background: none;
}
body.theme-light .feed-card__epss-trend-delta[data-trend="flat"] {
  color: var(--lt-text-muted);
}

body.theme-light .feed-card__icon {
  color: rgba(71, 85, 105, 0.72);
  border-color: var(--lt-border);
  background: rgba(148, 163, 184, 0.1);
  opacity: 0.88;
}

body.theme-light .feed-card__details summary,
body.theme-light .feed-card__summary-toggle {
  color: rgba(71, 85, 105, 0.84);
}

body.theme-light .remediation-actions__view:hover,
body.theme-light .remediation-actions__view:focus-visible,
body.theme-light .remediation-asset__link:hover,
body.theme-light .remediation-asset__link:focus-visible,
body.theme-light .feed-impact-rp__asset:hover,
body.theme-light .feed-impact-rp__asset:focus-visible {
  color: #1d4ed8;
}

body.theme-light .feed-card__impacts summary,
body.theme-light .feed-impacts-tab,
body.theme-light .feed-impact-rp__total-meta,
body.theme-light .remediation-filter label,
body.theme-light .remediation-action__toggle,
body.theme-light .feed-card__kev-action-text,
body.theme-light .feed-card__description summary::after {
  color: var(--lt-text-soft);
}

body.theme-light .feed-card__impacts summary::after {
  color: var(--lt-text-muted);
}

body.theme-light .feed-impacts-tabs__header {
  background: linear-gradient(180deg, rgba(228, 237, 250, 0.96) 0%, rgba(236, 242, 252, 0.93) 100%);
  border-bottom-color: var(--lt-border-soft);
}

body.theme-light .feed-impacts-tab {
  background: linear-gradient(180deg, rgba(243, 247, 255, 0.96), rgba(234, 240, 252, 0.93));
  border-color: var(--lt-border);
}

body.theme-light .feed-impacts-tab.is-active {
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(180deg, rgba(199, 223, 255, 0.64), rgba(219, 235, 255, 0.48));
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.12);
}

body.theme-light .feed-impact-rp__header {
  color: #344256;
}

body.theme-light .feed-impact-rp__subtitle {
  color: #4a5a72;
  font-weight: 500;
}

body.theme-light .feed-impact-rp__total-meta {
  color: #53647e;
  font-weight: 600;
}

body.theme-light .feed-impact-rp__hero-card {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(240, 245, 253, 0.92));
  border-color: rgba(40, 58, 95, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.theme-light .feed-impact-rp__hero-card--critical {
  background: linear-gradient(160deg, rgba(255, 107, 119, 0.16), rgba(248, 251, 255, 0.92));
  border-color: rgba(212, 91, 91, 0.28);
}

body.theme-light .feed-impact-rp__hero-card--high {
  background: linear-gradient(160deg, rgba(255, 177, 90, 0.16), rgba(248, 251, 255, 0.92));
  border-color: rgba(234, 141, 47, 0.26);
}

body.theme-light .feed-impact-rp__hero-card--medium {
  background: linear-gradient(160deg, rgba(240, 211, 122, 0.18), rgba(248, 251, 255, 0.92));
  border-color: rgba(216, 169, 62, 0.3);
}

body.theme-light .feed-impact-rp__hero-card--low {
  background: linear-gradient(160deg, rgba(123, 212, 178, 0.18), rgba(248, 251, 255, 0.92));
  border-color: rgba(47, 177, 132, 0.26);
}

body.theme-light .feed-impact-rp__hero-card--planned {
  background: linear-gradient(160deg, rgba(154, 166, 191, 0.18), rgba(248, 251, 255, 0.92));
  border-color: rgba(119, 134, 167, 0.24);
}

body.theme-light .feed-impact-rp__hero-label {
  color: #62738b;
  font-weight: 700;
}

body.theme-light .feed-impact-rp__hero-value {
  color: #243248;
}

body.theme-light .feed-impact-rp__hero-meta {
  color: #5b6b82;
}

body.theme-light .feed-impact-rp__distribution,
body.theme-light .feed-impact-rp__top {
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(241, 246, 253, 0.96));
  border-color: rgba(40, 58, 95, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.theme-light .feed-impact-rp__section-title,
body.theme-light .feed-impact-rp__top-title {
  color: #3b4a62;
  font-weight: 700;
}

body.theme-light .feed-impact-rp__section-note {
  color: #6b7b91;
}

body.theme-light .feed-impact-rp__label {
  color: #344256;
}

body.theme-light .feed-impact-rp__count {
  color: #243248;
  font-weight: 700;
}

body.theme-light .feed-impact-rp__percent {
  color: #61728a;
}

body.theme-light .feed-impact-rp__track {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(202, 214, 236, 0.28);
}

body.theme-light .feed-impact-rp__fill {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

body.theme-light .feed-impact-rp__top-item {
  background: rgba(244, 248, 255, 0.94);
  border-color: rgba(40, 58, 95, 0.12);
}

body.theme-light .feed-impact-rp__badge--critical {
  color: #9f1239;
  border-color: rgba(159, 18, 57, 0.2);
  background: rgba(225, 29, 72, 0.12);
}

body.theme-light .feed-impact-rp__badge--high {
  color: #9a3412;
  border-color: rgba(154, 52, 18, 0.22);
  background: rgba(234, 88, 12, 0.12);
}

body.theme-light .feed-impact-rp__badge--medium {
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.2);
  background: rgba(217, 119, 6, 0.13);
}

body.theme-light .feed-impact-rp__badge--low {
  color: #065f46;
  border-color: rgba(6, 95, 70, 0.18);
  background: rgba(16, 185, 129, 0.12);
}

body.theme-light .feed-impact-rp__badge--planned {
  color: #475569;
  border-color: rgba(71, 85, 105, 0.18);
  background: rgba(148, 163, 184, 0.14);
}

body.theme-light .feed-impact-rp__asset-name {
  color: #344256;
}

body.theme-light .feed-impact-rp__asset-meta {
  color: #6b7b91;
}

body.theme-light .feed-impact-elements__panel {
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(241, 246, 253, 0.96));
  border-color: rgba(40, 58, 95, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.theme-light .feed-impact-elements__panel-header {
  color: #3b4a62;
  font-weight: 700;
}

body.theme-light .feed-impact-elements__row {
  background: rgba(244, 248, 255, 0.94);
  border-color: rgba(40, 58, 95, 0.12);
  color: #42536a;
}

body.theme-light .feed-impact-elements__row:hover {
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(233, 241, 255, 0.92);
}

body.theme-light .feed-impact-elements__row.is-active {
  border-color: rgba(59, 130, 246, 0.36);
  background: linear-gradient(180deg, rgba(206, 225, 255, 0.72), rgba(224, 236, 255, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 16px rgba(59, 130, 246, 0.08);
}

body.theme-light .feed-impact-elements__row-name {
  color: #344256;
}

body.theme-light .feed-impact-elements__row-count {
  color: #243248;
}

body.theme-light .feed-impact-elements__row-pill {
  color: #5b6b82;
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(233, 240, 251, 0.88);
}

body.theme-light .feed-impact-elements__asset-item {
  background: rgba(244, 248, 255, 0.94);
  border-color: rgba(40, 58, 95, 0.12);
}

body.theme-light .feed-impact-elements__asset-icon {
  color: #516683;
  border-color: rgba(40, 58, 95, 0.12);
  background: linear-gradient(180deg, rgba(241, 246, 253, 0.98), rgba(229, 236, 248, 0.94));
}

body.theme-light .feed-impact-elements__asset-name {
  color: #344256;
}

body.theme-light .feed-impact-elements__asset-meta,
body.theme-light .feed-impact-elements__asset-empty {
  color: #6b7b91;
}

body.theme-light .feed-impact-elements__asset-icon {
  border-color: rgba(40, 58, 95, 0.12);
  background: linear-gradient(180deg, rgba(241, 246, 253, 0.98), rgba(229, 236, 248, 0.94));
  color: #516683;
}

body.theme-light .asset-elements-row td {
  background: rgba(234, 240, 252, 0.82);
}

body.theme-light .feed-item a:hover {
  color: #7f1d1d;
}

/* Light theme readability fallback (high-contrast) */
body.theme-light #panelContent,
body.theme-light .app-main {
  color: #1e293b;
}

body.theme-light .app-main :is(p, span, small, label, li, td, th, summary, input, select, textarea, a):not([class*="severity-"]):not([class*="chip--"]):not([class*="status"]):not([class*="badge"]):not([class*="cvss"]):not([class*="result-chip"]) {
  color: #334155;
}

body.theme-light .app-main :is(h1, h2, h3, h4, h5, h6, .panel-hero__value, .metric-value, .feed-card__title, .feed-card__cve, .asset-group-row__asset-name, .asset-element-card__name, .remediation-action__title, .cra-metric-card__value) {
  color: #0f172a;
}

body.theme-light .app-main :is(.panel-divider, .panel-meta--note, .feed-card__expanded-meta, .feed-card__kev-action + .feed-card__description, .asset-table th, .asset-table td, .feed-impact-elements__panel-header, .feed-impact-rp__distribution, .feed-impact-rp__top, .remediation-action, .remediation-filter, .feed-impacts-tab, .feed-card__impacts, .feed-impact-elements__panel, .feed-impact-elements__row, .feed-impact-elements__asset-item, .remediation-asset__track, .feed-impact-rp__track) {
  border-color: rgba(15, 23, 42, 0.16);
}

body.theme-light .app-main .feed-card__description summary,
body.theme-light .app-main .feed-card__impacts summary,
body.theme-light .app-main .feed-impacts-tab,
body.theme-light .app-main .remediation-filter label,
body.theme-light .app-main .remediation-action__toggle {
  color: #334155;
}

body.theme-light .app-main .feed-card__description-body,
body.theme-light .app-main .feed-card__kev-action-text,
body.theme-light .app-main .feed-impact-section__list,
body.theme-light .app-main .feed-impact-rp__asset,
body.theme-light .app-main .remediation-asset__label {
  color: #334155;
}

body.theme-light .app-main .feed-card__chip--kev { color: #b4233e; }
body.theme-light .app-main .feed-card__chip--exploit { color: #3730a3; }
body.theme-light .app-main .feed-card__chip--patch { color: #0f766e; }
body.theme-light .app-main .feed-card__status.is-new { color: #0f766e; }
body.theme-light .app-main .feed-card__status.is-updated { color: #92400e; }

body.theme-light .app-main .feed-card__cvss.severity-critical { color: #9f1239; }
body.theme-light .app-main .feed-card__cvss.severity-high { color: #9a3412; }
body.theme-light .app-main .feed-card__cvss.severity-medium { color: #92400e; }
body.theme-light .app-main .feed-card__cvss.severity-low { color: #065f46; }
body.theme-light .app-main .feed-card__cvss.severity-unclassified { color: #334155; }

body.theme-light .app-main a:hover {
  color: #1e40af;
}

body.theme-light .feed-overview-coverage__label {
  color: rgba(71, 85, 105, 0.82);
}

body.theme-light .feed-overview-coverage__percent {
  color: #0f172a;
}

body.theme-light .feed-overview-coverage__track {
  border-color: rgba(15, 30, 60, 0.14);
  background: rgba(218, 228, 244, 0.55);
}

body.theme-light .feed-overview-coverage__fill {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.9), rgba(37, 99, 235, 0.84));
}

body.theme-light .match-summary .dashboard-hero,
body.theme-light .dashboard-mini-metric,
body.theme-light .match-card--vulns .panel-hero__stat {
  border-color: rgba(15, 30, 60, 0.1);
  box-shadow: 0 10px 24px rgba(20, 40, 80, 0.08);
}

body.theme-light .match-summary .dashboard-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(233, 240, 251, 0.9));
}

body.theme-light .match-card--info .dashboard-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.18), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(233, 240, 251, 0.9));
}

body.theme-light .match-card--assets .dashboard-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.16), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(233, 240, 251, 0.9));
}

body.theme-light .dashboard-gauge {
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.98) 72%, transparent 73% 100%),
    conic-gradient(from -90deg, var(--gauge-accent) calc(var(--gauge-percent) * 1%), rgba(148, 163, 184, 0.2) 0);
  box-shadow:
    inset 0 0 0 1px rgba(15, 30, 60, 0.1),
    0 10px 24px rgba(20, 40, 80, 0.1);
}

body.theme-light .dashboard-gauge::before {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(233, 240, 251, 0.96));
  border-color: rgba(15, 30, 60, 0.08);
}

body.theme-light .dashboard-gauge__label,
body.theme-light .dashboard-mini-metric__label,
body.theme-light .dashboard-scope-track__label,
body.theme-light .dashboard-disclosure__summary,
body.theme-light .dashboard-kpi-chip__label,
body.theme-light .dashboard-stat-strip__label {
  color: rgba(71, 85, 105, 0.8);
}

body.theme-light .dashboard-gauge__value,
body.theme-light .dashboard-mini-metric__value,
body.theme-light .dashboard-kpi-chip__value,
body.theme-light .dashboard-stat-strip__value {
  color: #0f172a;
}

body.theme-light .dashboard-lead {
  color: #4a5a72;
}
body.theme-light .match-card--info .dashboard-lead {
  border-left-color: rgba(59, 130, 246, 0.28);
}
body.theme-light .match-card--assets .dashboard-lead {
  border-left-color: rgba(16, 185, 129, 0.28);
}
body.theme-light .match-card--vulns .dashboard-lead {
  border-left-color: rgba(249, 115, 22, 0.28);
}
body.theme-light .dashboard-summary-card--vulns .dashboard-lead {
  border-left-color: rgba(249, 115, 22, 0.28);
}
body.theme-light .dashboard-summary-note {
  color: rgba(71, 85, 105, 0.72);
}

body.theme-light .dashboard-scope-track__value {
  color: #0f172a;
}

body.theme-light .dashboard-scope-track__bar {
  border-color: rgba(15, 30, 60, 0.12);
  background: rgba(218, 228, 244, 0.55);
}

body.theme-light .dashboard-disclosure {
  border-top-color: rgba(15, 30, 60, 0.1);
}
body.theme-light .dashboard-kpi-chip,
body.theme-light .dashboard-stat-strip,
body.theme-light .feed-overview-coverage,
body.theme-light .dashboard-scope-track,
body.theme-light .match-card--vulns .vuln-section,
body.theme-light .match-card--vulns .vuln-insights,
body.theme-light .dashboard-detail-card {
  border-color: rgba(15, 30, 60, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(239, 244, 252, 0.82));
}
body.theme-light .dashboard-kpi-chip--success {
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.14), transparent 42%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(239, 244, 252, 0.82));
}
body.theme-light .dashboard-kpi-chip--warn {
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.14), transparent 42%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(239, 244, 252, 0.82));
}
body.theme-light .dashboard-stat-strip__item + .dashboard-stat-strip__item,
body.theme-light .match-card--vulns .vuln-insight + .vuln-insight {
  border-color: rgba(15, 30, 60, 0.1);
}
body.theme-light .match-card--vulns .vuln-insight__label,
body.theme-light .match-card--vulns .severity-count__label {
  color: rgba(71, 85, 105, 0.8);
}
body.theme-light .match-card--vulns .vuln-insight__value,
body.theme-light .match-card--vulns .severity-count__value,
body.theme-light .panel-meta__value,
body.theme-light #lastUpdatedValue {
  color: #0f172a;
}

/* Inventory (impacted panel) light theme fixes */
body.theme-light .impacted-assets-header p {
  color: #475569;
}
body.theme-light .impacted-assets-header {
  border-bottom-color: rgba(15, 30, 60, 0.12);
}
body.theme-light .impacted-assets-search input {
  border-color: rgba(15, 30, 60, 0.14);
  background-color: rgba(248, 250, 255, 0.96);
  color: #0f172a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px;
}

body.theme-light .impacted-assets-search input::placeholder {
  color: rgba(71, 85, 105, 0.62);
}

body.theme-light .impacted-asset {
  border-color: rgba(15, 30, 60, 0.12);
  background: linear-gradient(165deg, rgba(243, 247, 255, 0.98), rgba(234, 240, 252, 0.94));
  box-shadow: 0 6px 16px rgba(20, 40, 80, 0.07);
}

body.theme-light .impacted-asset--kev {
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: inset 3px 0 0 rgba(225, 29, 72, 0.3), 0 6px 16px rgba(20, 40, 80, 0.07);
}

body.theme-light .impacted-asset__identity-label,
body.theme-light .impacted-asset__detail-label,
body.theme-light .impacted-element__locations-label,
body.theme-light .impacted-asset__meta-chip {
  color: #64748b;
}

body.theme-light .impacted-asset__identity-value,
body.theme-light .impacted-asset__identity-value--primary,
body.theme-light .impacted-asset__detail-value {
  color: #0f172a;
}

body.theme-light .impacted-asset__detail {
  border-color: rgba(15, 30, 60, 0.1);
  background: rgba(228, 236, 250, 0.78);
}

body.theme-light .impacted-asset__meta-chip {
  border-color: rgba(15, 30, 60, 0.12);
  background: rgba(228, 236, 250, 0.78);
}

body.theme-light .impacted-asset__meta-chip--tech {
  color: #0f172a;
}

body.theme-light .impacted-asset__meta-chip--count {
  border-color: rgba(99, 102, 241, 0.32);
  background: rgba(99, 102, 241, 0.12);
  color: #334155;
}

body.theme-light .impacted-element__location {
  border-color: rgba(99, 102, 241, 0.35);
  color: #334155;
  background: rgba(99, 102, 241, 0.1);
}

body.theme-light .impacted-element__location--more {
  border-color: rgba(147, 51, 234, 0.35);
  background: rgba(147, 51, 234, 0.12);
  color: #5b21b6;
}

body.theme-light .impacted-asset__badge {
  border-color: rgba(15, 23, 42, 0.2);
  color: #334155;
  background: rgba(148, 163, 184, 0.1);
}

body.theme-light .impacted-asset__badge--kev {
  border-color: rgba(225, 29, 72, 0.35);
  color: #be123c;
  background: rgba(251, 113, 133, 0.14);
}

body.theme-light .impacted-asset__cve-toggle {
  background: none;
  border: none;
  color: rgba(80, 100, 140, 0.7);
}

body.theme-light .impacted-asset__cve-toggle:hover {
  color: #3b5280;
}

body.theme-light .impacted-asset__cve-toggle[aria-expanded="true"] {
  color: rgba(60, 80, 160, 0.9);
}

body.theme-light .impacted-asset__cve-panel {
  border-color: rgba(15, 30, 60, 0.1);
  background: rgba(236, 242, 252, 0.92);
}

body.theme-light .impacted-asset__cve-group-label {
  color: #475569;
}

body.theme-light .impacted-asset__cve-group-label--kev {
  color: #be123c;
}

body.theme-light .impacted-asset__cve-link {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

body.theme-light .impacted-asset__cve-link:hover,
body.theme-light .impacted-asset__cve-link:focus-visible {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.18);
  color: #1e40af;
}

body.theme-light .impacted-assets-empty {
  color: #64748b;
}

body.theme-light .impacted-assets-list {
  scrollbar-color: rgba(59, 130, 246, 0.45) rgba(15, 23, 42, 0.08);
}

body.theme-light .impacted-assets-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.08);
}

body.theme-light .impacted-assets-list::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border: 2px solid rgba(236, 243, 255, 0.9);
}

/* Inventory table scrollbar (light mode) */
body.theme-light.inventory-mode #assetScreen .asset-card--table .asset-table-wrapper {
  color-scheme: light;
  scrollbar-color: rgba(59, 130, 246, 0.5) rgba(148, 163, 184, 0.22);
}

body.theme-light.inventory-mode #assetScreen .asset-card--table .asset-table-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.theme-light.inventory-mode #assetScreen .asset-card--table .asset-table-wrapper::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.9), rgba(241, 245, 249, 0.92));
  border-radius: 10px;
}

body.theme-light.inventory-mode #assetScreen .asset-card--table .asset-table-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.72), rgba(59, 130, 246, 0.7));
  border-radius: 10px;
  border: 2px solid rgba(241, 245, 249, 0.95);
}

body.theme-light.inventory-mode #assetScreen .asset-card--table .asset-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.85), rgba(37, 99, 235, 0.85));
}

body.theme-light.inventory-mode #assetScreen .asset-card--table .asset-table-wrapper::-webkit-scrollbar-corner {
  background: rgba(241, 245, 249, 0.95);
}

/* ── Light theme: filter groups ── */
body.theme-light .filter-group {
  background: rgba(238, 243, 252, 0.9);
  border-color: rgba(15, 30, 60, 0.12);
}
body.theme-light #vulnScreen .filter-group[data-filter-active="true"] {
  border-color: rgba(15, 30, 60, 0.22);
  background: rgba(247, 250, 255, 0.99);
  box-shadow: inset 0 0 0 1px rgba(15, 30, 60, 0.06), 0 4px 10px rgba(15, 30, 60, 0.06);
}
body.theme-light #vulnScreen .filter-group[data-filter-active="true"] label {
  color: #334155;
}
body.theme-light #vulnScreen .filter-group[data-filter-active="true"] input,
body.theme-light #vulnScreen .filter-group[data-filter-active="true"] select,
body.theme-light #vulnScreen .filter-group[data-filter-active="true"] .cs-trigger {
  border-color: rgba(15, 30, 60, 0.22);
  background-color: rgba(255, 255, 255, 0.95);
}
body.theme-light .filter-group label {
  color: #475569;
}
body.theme-light .filter-group input,
body.theme-light .filter-group select {
  color: #0f172a;
}
body.theme-light .filter-group input:focus,
body.theme-light .filter-group select:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
body.theme-light .filter-group input::placeholder {
  color: rgba(71, 85, 105, 0.58);
}
body.theme-light .filter-group select option {
  background: #eef2fb;
  color: #0f172a;
}
body.theme-light .filter-group select::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.95);
}
body.theme-light .filter-group select::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.45);
  border-color: rgba(241, 245, 249, 0.95);
}

/* ── Light theme: feed pagination ── */
body.theme-light .feed-pagination,
body.theme-light #vulnScreen .feed-pagination {
  background: rgba(238, 243, 252, 0.92);
  border-color: rgba(15, 30, 60, 0.12);
  box-shadow: 0 4px 12px rgba(20, 40, 80, 0.06);
}
body.theme-light .feed-pagination__summary,
body.theme-light #vulnScreen .feed-pagination__summary {
  color: #475569;
}
body.theme-light .feed-pagination__page,
body.theme-light #vulnScreen .feed-pagination__page {
  color: #0f172a;
}
body.theme-light .feed-pagination__btn,
body.theme-light #vulnScreen .feed-pagination__btn {
  background: rgba(248, 251, 255, 0.9);
  border-color: rgba(15, 30, 60, 0.18);
  color: #1e293b;
}
body.theme-light .feed-pagination__btn:hover,
body.theme-light .feed-pagination__btn:focus-visible,
body.theme-light #vulnScreen .feed-pagination__btn:hover,
body.theme-light #vulnScreen .feed-pagination__btn:focus-visible {
  background: rgba(240, 245, 253, 0.98);
  border-color: rgba(15, 30, 60, 0.3);
}
body.theme-light .feed-pagination__page-input,
body.theme-light #vulnScreen .feed-pagination__page-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 30, 60, 0.18);
  color: #0f172a;
}
body.theme-light .feed-pagination__page-input:focus-visible,
body.theme-light #vulnScreen .feed-pagination__page-input:focus-visible {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.16);
}

/* ── Light theme: feed list header ── */
body.theme-light .feed-list-header,
body.theme-light #vulnScreen .feed-list-header {
  color: #64748b;
}
body.theme-light #vulnScreen .feed-card:not(:last-child) {
  border-bottom-color: rgba(15, 30, 60, 0.14);
}
body.theme-light #vulnScreen .feed-list-header .feed-card__icon {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(15, 23, 42, 0.14);
  color: #64748b;
}

/* ── Light theme: feed empty state ── */
body.theme-light .feed-empty-state {
  background: rgba(232, 239, 250, 0.7);
  border-color: rgba(15, 30, 60, 0.1);
  color: #4a5a72;
}

/* ── Light theme: mapping refresh controls ── */
body.theme-light .mapping-refresh-controls {
  background: rgba(240, 244, 252, 0.94);
  border-color: rgba(15, 30, 60, 0.14);
}
body.theme-light .mapping-refresh-controls label {
  color: #475569;
}
body.theme-light .mapping-refresh-controls input {
  background: rgba(248, 250, 255, 0.96);
  border-color: rgba(15, 30, 60, 0.14);
  color: #0f172a;
}
body.theme-light .mapping-refresh-controls input:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ── Light theme: auth error ── */
body.theme-light .auth-error {
  color: #b91c1c;
}

/* ── Light theme: icon-button ghost variant ── */
body.theme-light .icon-button--ghost {
  background: rgba(240, 244, 252, 0.9);
  border-color: rgba(15, 30, 60, 0.16);
  color: #1e293b;
}
body.theme-light .icon-button--ghost:hover,
body.theme-light .icon-button--ghost:focus-visible {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.06);
}
body.theme-light .remediation-report-actions__button--secondary {
  background: rgba(240, 244, 252, 0.94);
  border-color: rgba(15, 30, 60, 0.16);
  color: #1e293b;
}
body.theme-light .remediation-report-actions__button--secondary:hover,
body.theme-light .remediation-report-actions__button--secondary:focus-visible {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.06);
}
body.theme-light .remediation-report-actions__meta {
  color: #64748b;
}

/* ── Light theme: kev-action / description labels ── */
body.theme-light .feed-card__kev-action-label,
body.theme-light .feed-card__description-title {
  color: #334155;
}
body.theme-light .feed-card__kev-action-label::before,
body.theme-light .feed-card__description-title::before {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
body.theme-light .feed-card__kev-action-text {
  color: #334155;
}

/* ── Light theme: settings-container generic (vulnScreen etc.) ── */
body.theme-light .settings-container {
  background: rgba(240, 244, 252, 0.95);
  border-color: rgba(15, 30, 60, 0.12);
  box-shadow: 0 10px 22px rgba(20, 40, 80, 0.08);
}
body.theme-light .settings-container input,
body.theme-light .settings-container select,
body.theme-light .settings-container textarea {
  background: rgba(248, 250, 255, 0.96);
  border-color: rgba(15, 30, 60, 0.14);
  color: #0f172a;
}
body.theme-light .settings-container input:focus,
body.theme-light .settings-container select:focus,
body.theme-light .settings-container textarea:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ── Light theme: sidebar footer ── */
body.theme-light .sidebar__footer .nav-button {
  background: transparent;
  border-color: transparent;
  color: #334155;
}

body.theme-light .sidebar__footer .nav-button:hover,
body.theme-light .sidebar__footer .nav-button:focus-visible {
  border-color: transparent;
  background: transparent;
}

/* ── Light theme: settings form / form-group ── */
body.theme-light .form-group label {
  color: #475569;
}
body.theme-light .settings-form input,
body.theme-light .settings-form select,
body.theme-light .settings-form textarea {
  background: rgba(248, 250, 255, 0.96);
  border-color: rgba(15, 30, 60, 0.14);
  color: #0f172a;
}

/* ── Light theme: settings user card ── */
body.theme-light .settings-user-card {
  border-color: rgba(15, 30, 60, 0.12);
  background: rgba(234, 240, 250, 0.85);
}
body.theme-light .settings-user-card__label {
  color: #64748b;
}
body.theme-light .settings-user-card__value {
  color: #0f172a;
}

/* ── Light theme: settings tenant (old styles still used outside settingsScreen) ── */
body.theme-light .settings-tenant {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

/* ── Light theme: page title ── */
body.theme-light .page-title {
  color: #0f172a;
}

/* ── Light theme: panel hero / stat blocks ── */
body.theme-light .panel-hero {
  border-color: rgba(15, 30, 60, 0.09);
  background: rgba(232, 239, 250, 0.65);
}
body.theme-light .panel-hero__stat {
  border-color: rgba(15, 30, 60, 0.09);
  background: rgba(242, 246, 254, 0.88);
}
body.theme-light .panel-hero__label {
  color: #64748b;
}
body.theme-light .panel-hero__value {
  color: #0f172a;
}
body.theme-light .panel-meta {
  color: #64748b;
}
body.theme-light .panel-meta__label {
  color: #64748b;
}
body.theme-light .panel-meta__value {
  color: #1e293b;
}
body.theme-light .panel-divider {
  background: rgba(15, 23, 42, 0.1);
}

/* ── Light theme: severity indicators ── */
body.theme-light .severity-indicator.severity-critical {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.5);
  color: #991b1b;
}
body.theme-light .severity-indicator.severity-high {
  background: rgba(253, 126, 20, 0.12);
  border-color: rgba(253, 126, 20, 0.5);
  color: #9a3412;
}
body.theme-light .severity-indicator.severity-medium {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.5);
  color: #92400e;
}
body.theme-light .severity-indicator.severity-low {
  background: rgba(40, 167, 69, 0.12);
  border-color: rgba(40, 167, 69, 0.5);
  color: #065f46;
}
body.theme-light .severity-indicator.severity-unclassified {
  background: rgba(108, 117, 125, 0.12);
  border-color: rgba(108, 117, 125, 0.5);
  color: #334155;
}

/* ── Light theme: vuln section / insights ── */
body.theme-light .match-card--vulns .vuln-section {
  border-color: rgba(15, 30, 60, 0.09);
  background: rgba(232, 239, 250, 0.62);
}
body.theme-light .match-card--vulns .severity-counts {
  border-color: transparent;
  background: none;
}
body.theme-light .match-card--vulns .severity-count {
  border-color: rgba(15, 30, 60, 0.09);
  background: rgba(242, 246, 254, 0.72);
}
body.theme-light .match-card--vulns .vuln-insight {
  border-color: rgba(15, 30, 60, 0.09);
  background: rgba(242, 246, 254, 0.82);
}
body.theme-light .match-card--vulns .vuln-insight__label {
  color: #64748b;
}
body.theme-light .match-card--vulns .vuln-insight__value {
  color: #0f172a;
}
body.theme-light .match-card--vulns .severity-count__label {
  color: #64748b;
}
body.theme-light .match-card--vulns .severity-count:nth-child(1) .severity-count__value { color: #dc2626; }
body.theme-light .match-card--vulns .severity-count:nth-child(2) .severity-count__value { color: #ea580c; }
body.theme-light .match-card--vulns .severity-count:nth-child(3) .severity-count__value { color: #ca8a04; }
body.theme-light .match-card--vulns .severity-count:nth-child(4) .severity-count__value { color: #16a34a; }
body.theme-light .match-card--vulns .severity-count:nth-child(5) .severity-count__value { color: #475569; }
body.theme-light .match-card--vulns .severity-count:not(:last-child)::after {
  background: transparent;
}

/* ── Light theme: match-card info values ── */
body.theme-light .match-card--info .label {
  color: #64748b;
}
body.theme-light .match-card--info .value {
  color: #0f172a;
}
body.theme-light .match-card--assets .metric {
  border-color: rgba(15, 30, 60, 0.09);
  background: rgba(232, 239, 250, 0.62);
}

/* ── Light theme: sidebar mobile border ── */
@media (max-width: 960px) {
  body.theme-light .sidebar {
    border-bottom-color: rgba(15, 23, 42, 0.1);
  }
}

/* ── Light theme: global free mode ── */
body.theme-light.global-free-mode #settingsScreen {
  color: #0f172a;
}

/* ── Light theme: remediation filter background ── */
body.theme-light .remediation-filter {
  background: rgba(238, 243, 252, 0.9);
  border-color: rgba(15, 30, 60, 0.12);
}
body.theme-light .remediation-filter select option {
  background: #eef2fb;
  color: #0f172a;
}
body.theme-light .remediation-filter select::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.95);
}
body.theme-light .remediation-filter select::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.45);
  border-color: rgba(241, 245, 249, 0.95);
  box-shadow: none;
}
body.theme-light .remediation-filter select:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ── Light theme: remediation tracks and bars ── */
body.theme-light .rp-bar-fill {
  background: var(--rp-color);
}

body.theme-light .remediation-asset__track {
  border-color: rgba(15, 30, 60, 0.1);
  background: rgba(218, 228, 244, 0.5);
}

body.theme-light .remediation-asset__fill {
  background: #3b82f6;
}

body.theme-light .feed-impact-rp__fill {
  background: var(--level-color, #7bd4b2);
}

body.theme-light .remediation-empty {
  color: #64748b;
}
body.theme-light .remediation-loading {
  color: #475569;
}

/* ── Light theme: remediation action cards ── */
body.theme-light .remediation-action {
  background: linear-gradient(165deg, rgba(243, 247, 255, 0.97), rgba(234, 240, 252, 0.93));
  border-color: rgba(15, 30, 60, 0.12);
}
body.theme-light .remediation-action__title {
  color: #0f172a;
}
body.theme-light .remediation-action__meta {
  color: #475569;
}
body.theme-light .remediation-action__toggle {
  color: #334155;
}

/* ── Light theme: weakness focus ── */
body.theme-light .remediation-card--cwe .remediation-cwe {
  border-top-color: rgba(15, 30, 60, 0.1);
}
body.theme-light .remediation-cwe__item:hover {
  background: rgba(59, 130, 246, 0.05);
}
body.theme-light .remediation-cwe__item.is-active {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: inset 3px 0 0 #3b82f6;
}
body.theme-light .remediation-cwe__item[data-tone="critical"].is-active {
  border-color: rgba(220, 38, 38, 0.22);
  box-shadow: inset 3px 0 0 #dc2626;
}
body.theme-light .remediation-cwe__item[data-tone="high"].is-active {
  border-color: rgba(234, 88, 12, 0.22);
  box-shadow: inset 3px 0 0 #ea580c;
}
body.theme-light .remediation-cwe__item[data-tone="medium"].is-active {
  border-color: rgba(202, 138, 4, 0.22);
  box-shadow: inset 3px 0 0 #ca8a04;
}
body.theme-light .remediation-cwe__item[data-tone="low"].is-active {
  border-color: rgba(22, 163, 74, 0.22);
  box-shadow: inset 3px 0 0 #16a34a;
}
body.theme-light .remediation-cwe__detail {
  border-color: rgba(15, 30, 60, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(237, 243, 252, 0.95));
}
body.theme-light .remediation-cwe__hero,
body.theme-light .remediation-cwe__pane {
  background: transparent;
}
body.theme-light .remediation-cwe__pane {
  border-top-color: rgba(15, 30, 60, 0.1);
}
body.theme-light .remediation-cwe__section,
body.theme-light .remediation-cwe__insight {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.74);
}
body.theme-light .remediation-cwe__fact-row + .remediation-cwe__fact-row {
  border-top-color: rgba(15, 30, 60, 0.08);
}
body.theme-light .remediation-cwe__hero-narrative {
  border-left-color: rgba(59, 130, 246, 0.5);
  color: #475569;
}
body.theme-light .remediation-cwe__guidance-group + .remediation-cwe__guidance-group {
  border-top-color: rgba(15, 30, 60, 0.08);
}
body.theme-light .remediation-cwe__guidance-bullet::before {
  color: #3b82f6;
}
body.theme-light .remediation-cwe__pane-body::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.82);
}
body.theme-light .remediation-cwe__pane-body::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.34);
}
body.theme-light .remediation-cwe__pane-body::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.46);
}
body.theme-light .remediation-cwe__empty-state {
  border-color: rgba(59, 130, 246, 0.18);
  background: rgba(240, 245, 253, 0.9);
}

/* ── Light theme: feed card description-body text color ── */
body.theme-light .feed-card__description-body {
  color: #334155;
}

/* ── Light theme: tooltips ── */
body.theme-light .icon-button .tooltip {
  background: rgba(15, 23, 42, 0.92);
  color: #f0f4ff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}
body.theme-light .panel-info[data-tooltip]::after {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(59, 130, 246, 0.3);
  color: #f0f4ff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}
body.theme-light .panel-info.tutorial-help-marker {
  color: rgba(37, 51, 76, 0.62);
}
body.theme-light .panel-info.tutorial-help-marker:hover,
body.theme-light .panel-info.tutorial-help-marker:focus-visible {
  color: rgba(22, 34, 54, 0.9);
}
body.theme-light .tutorial-spotlight__backdrop {
  background: rgba(20, 28, 43, 0.38);
}
body.theme-light .tutorial-spotlight__dialog {
  border-color: rgba(58, 86, 145, 0.32);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(103, 145, 255, 0.16), transparent 64%),
    linear-gradient(160deg, rgba(248, 251, 255, 0.98), rgba(238, 244, 253, 0.98));
  box-shadow:
    0 16px 34px rgba(35, 52, 86, 0.16),
    0 0 0 1px rgba(66, 99, 168, 0.08) inset;
}
body.theme-light .tutorial-spotlight__dialog::before {
  background: rgba(242, 247, 255, 0.99);
  border-color: rgba(58, 86, 145, 0.32);
}
body.theme-light .tutorial-spotlight__dialog[data-placement^="left"]::before,
body.theme-light .tutorial-spotlight__dialog[data-placement^="top"]::before {
  border-right-color: rgba(58, 86, 145, 0.32);
  border-bottom-color: rgba(58, 86, 145, 0.32);
}
body.theme-light .tutorial-spotlight__title {
  color: #14223b;
}
body.theme-light .tutorial-spotlight-bot__avatar {
  filter: drop-shadow(0 8px 14px rgba(42, 66, 118, 0.22));
}
body.theme-light .tutorial-spotlight__body {
  color: #334968;
}
body.theme-light .tutorial-spotlight__progress {
  color: #4d6387;
}
body.theme-light .tutorial-spotlight__dot {
  background: rgba(88, 114, 166, 0.28);
}
body.theme-light .tutorial-spotlight__dot.is-active {
  background: linear-gradient(135deg, #4c8ff8, #4f46e5);
}
body.theme-light .tutorial-spotlight__dialog .tutorial-spotlight__btn {
  color: rgba(48, 71, 116, 0.8);
}
body.theme-light .tutorial-spotlight__dialog .tutorial-spotlight__btn:hover,
body.theme-light .tutorial-spotlight__dialog .tutorial-spotlight__btn:focus-visible {
  color: rgba(20, 40, 74, 0.96);
  background: rgba(74, 120, 220, 0.1);
}
body.theme-light .tutorial-spotlight__dialog .tutorial-spotlight__btn--primary {
  color: #2459c8;
}
body.theme-light .tutorial-spotlight__dialog .tutorial-spotlight__btn--primary:hover,
body.theme-light .tutorial-spotlight__dialog .tutorial-spotlight__btn--primary:focus-visible {
  color: #1b3f8f;
  background: rgba(59, 130, 246, 0.12);
}
body.theme-light .tutorial-spotlight__dialog .tutorial-spotlight__btn:disabled {
  color: rgba(95, 112, 145, 0.56);
}
body.theme-light .flow-tooltip {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(99, 102, 241, 0.28);
  color: #0f172a;
  box-shadow: 0 18px 34px rgba(40, 58, 95, 0.16);
}
body.theme-light .dashboard-panel-title__icon {
  color: rgba(59, 72, 96, 0.82);
}

/* ── Light theme: stat-section (chart panels) ── */
body.theme-light .stat-section {
  background: var(--dashboard-soft-bg);
  border-color: var(--dashboard-outline);
  box-shadow: 0 8px 20px rgba(30, 50, 90, 0.06);
}
body.theme-light .stat-section:hover {
  border-color: rgba(108, 99, 255, 0.18);
  box-shadow: 0 6px 24px rgba(30, 50, 90, 0.1);
}
body.theme-light .match-card--charts {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(108, 99, 255, 0.06), transparent 50%),
    linear-gradient(155deg, var(--dashboard-soft-bg-strong), var(--dashboard-soft-bg));
}
body.theme-light .dashboard-ai-summary-card {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(108, 99, 255, 0.06), transparent 50%),
    linear-gradient(155deg, var(--dashboard-soft-bg-strong), var(--dashboard-soft-bg));
}
body.theme-light #aiSummaryButton {
  color: rgba(52, 68, 96, 0.78);
}
body.theme-light #aiSummaryButton:hover,
body.theme-light #aiSummaryButton:focus-visible {
  color: #0f172a;
}
body.theme-light #aiSummaryButton:disabled {
  color: rgba(74, 90, 114, 0.6);
}
body.theme-light #aiSummaryButton[data-tooltip]::after {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(59, 130, 246, 0.3);
  color: #f0f4ff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}
body.theme-light .vuln-flow-card {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(167, 139, 250, 0.06), transparent 50%),
    linear-gradient(155deg, var(--dashboard-soft-bg-strong), var(--dashboard-soft-bg));
}
body.theme-light .chart-title {
  color: rgba(51, 65, 85, 0.7);
}

/* ── Light theme: impacted-asset__cve-toggle ── */
body.theme-light .impacted-asset__cve-toggle {
  background: none;
  border: none;
  color: rgba(80, 100, 140, 0.7);
}

/* ── Light theme: feed-card__index ── */
body.theme-light .feed-card__index {
  color: #2d3d53;
}

/* ── Light theme: vulnerability flow / network graph ── */
body.theme-light .vuln-flow-sankey {
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(239, 245, 252, 0.96));
  border-color: rgba(40, 58, 95, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 24px rgba(82, 104, 150, 0.08);
}
body.theme-light .vuln-flow-sankey::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 22%);
}
body.theme-light .sankey-link {
  stroke-opacity: 0.38;
}
body.theme-light .sankey-link.is-active {
  stroke-opacity: 0.72;
}
body.theme-light .vuln-flow-empty {
  color: #4a5a72;
}
body.theme-light .vuln-flow-footnote {
  color: rgba(71, 85, 105, 0.82);
}
body.theme-light .vuln-flow-footnote__dot {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
body.theme-light .flow-summary__delta--up {
  color: #059669;
}
body.theme-light .flow-summary__delta--down {
  color: #d97706;
}

/* ── Light theme: period filter buttons ── */
body.theme-light .trend-period-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(51, 65, 85, 0.75);
}
body.theme-light .trend-period-btn:hover {
  background: rgba(15, 23, 42, 0.09);
  color: #1e293b;
}
body.theme-light .trend-period-btn--active {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.4);
  color: #4338ca;
}

/* ── Light theme: insight-stat sub-labels ── */
body.theme-light .insight-stat__sub[data-trend="up"]   { color: #dc2626; }
body.theme-light .insight-stat__sub[data-trend="down"] { color: #059669; }
body.theme-light .insight-stat__value--low  { color: #059669 !important; }
body.theme-light .insight-stat__value--high { color: #dc2626 !important; }

/* ── Light theme: actionability KPI inline colors ── */
body.theme-light #actStatPatch   { color: #047857 !important; }
body.theme-light #actStatExploit { color: #be185d !important; }
body.theme-light #actStatKev     { color: #6d28d9 !important; }

/* ── Light theme: insight-stat labels ── */
body.theme-light .insight-stat__label {
  color: rgba(51, 65, 85, 0.65);
}
body.theme-light .insight-stat__value {
  color: #0f172a;
}
body.theme-light .insight-stat__sub {
  color: rgba(71, 85, 105, 0.72);
}

/* ── Light theme: insight-stats separator ── */
body.theme-light .insight-stats {
  border-top-color: rgba(40, 58, 95, 0.1);
}
body.theme-light .feed-impact-network__title {
  color: #344256;
}
body.theme-light .feed-impact-network__canvas {
  --feed-impact-network-vuln-fill: #9dbbff;
  --feed-impact-network-vuln-stroke: #3b5fb4;
  --feed-impact-network-element-fill: #92e5cc;
  --feed-impact-network-element-stroke: #268261;
  --feed-impact-network-asset-fill: rgba(255, 255, 255, 0.92);
  --feed-impact-network-asset-stroke: #8ba2da;
  --feed-impact-network-edge: rgba(93, 121, 212, 0.5);
  --feed-impact-network-label: #314155;
  --feed-impact-network-crit-low: #2fb184;
  --feed-impact-network-crit-med: #d8a93e;
  --feed-impact-network-crit-high: #ea8d2f;
  --feed-impact-network-crit-critical: #d45b5b;
  border-color: rgba(40, 58, 95, 0.12);
  background:
    radial-gradient(circle at 26% 18%, rgba(124, 141, 255, 0.16), transparent 42%),
    radial-gradient(circle at 74% 62%, rgba(122, 224, 192, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(249, 251, 255, 0.98) 0%, rgba(236, 242, 252, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 28px rgba(82, 104, 150, 0.12);
}
body.theme-light .flow-summary {
  background: none;
}
body.theme-light .flow-summary__item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.88));
  border-color: rgba(40, 58, 95, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
body.theme-light .flow-summary__label {
  color: var(--dashboard-muted-text);
}
body.theme-light .flow-summary__value {
  color: var(--dashboard-title-text);
}
body.theme-light .flow-summary__meta {
  color: rgba(71, 85, 105, 0.82);
}

/* ── Light theme: feed card icons more visible ── */
body.theme-light .feed-card__icon {
  color: #4a5a72;
  border-color: rgba(15, 30, 60, 0.18);
  background: rgba(220, 230, 248, 0.55);
  opacity: 1;
}

/* ── Light theme: CVSS badge stronger contrast ── */
body.theme-light .feed-card__cvss {
  border-color: rgba(15, 30, 60, 0.2);
  background: rgba(220, 230, 248, 0.45);
  font-weight: 650;
}
body.theme-light .feed-card__cvss.severity-critical {
  color: #881337;
  border-color: rgba(159, 18, 57, 0.3);
  background: rgba(225, 29, 72, 0.1);
}
body.theme-light .feed-card__cvss.severity-high {
  color: #7c2d12;
  border-color: rgba(154, 52, 18, 0.3);
  background: rgba(234, 88, 12, 0.1);
}
body.theme-light .feed-card__cvss.severity-medium {
  color: #78350f;
  border-color: rgba(146, 64, 14, 0.3);
  background: rgba(217, 119, 6, 0.1);
}
body.theme-light .feed-card__cvss.severity-low {
  color: #064e3b;
  border-color: rgba(6, 95, 70, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

/* ── Light theme: filter group selects sharper ── */
body.theme-light .filter-group {
  background: rgba(240, 244, 253, 0.94);
  border-color: rgba(15, 30, 60, 0.14);
  box-shadow: 0 2px 8px rgba(20, 40, 80, 0.05);
}
body.theme-light .filter-group label {
  color: #3b4a62;
  font-weight: 600;
}
/* ── Light theme: feed list header more visible ── */
body.theme-light #vulnScreen .feed-list-header {
  color: #3b4a62;
  font-weight: 600;
}

/* ── Light theme: feed-impacts tab active stronger ── */
body.theme-light .feed-impacts-tab.is-active {
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(180deg, rgba(186, 213, 255, 0.6), rgba(210, 228, 255, 0.45));
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.12);
  font-weight: 620;
}

/* ── Light theme: CVE copy button ── */
body.theme-light .feed-card__copy {
  color: #4a5a72;
}
body.theme-light .feed-card__copy:hover,
body.theme-light .feed-card__copy:focus-visible {
  color: #1e3a8a;
}
body.theme-light .feed-card__copy.is-copied {
  color: #065f46;
}
body.theme-light .feed-card__copy.is-error {
  color: #991b1b;
}
body.theme-light .feed-card__copy::after {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(59, 130, 246, 0.3);
  color: #f0f4ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

/* ── Light theme: KEV / Exploit / Patch icon active states ── */
body.theme-light .feed-card__icon--kev.is-active {
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.45);
  background: rgba(225, 29, 72, 0.12);
  opacity: 1;
}
body.theme-light .feed-card__icon--exploit.is-active {
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.45);
  background: rgba(234, 88, 12, 0.12);
  opacity: 1;
}
body.theme-light .feed-card__icon--patch.is-active {
  color: #047857;
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(16, 185, 129, 0.12);
  opacity: 1;
}
body.theme-light .feed-card__icon--patch[data-count]::before {
  color: #f0fdf4;
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.2);
}
body.theme-light .feed-card__exploit-entry {
  border-color: rgba(59, 130, 246, 0.26);
  background: rgba(239, 246, 255, 0.74);
}
body.theme-light .feed-card__exploit-badge {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.38);
  background: rgba(219, 234, 254, 0.78);
}
body.theme-light .feed-card__exploit-host {
  color: #334155;
}
body.theme-light .feed-card__exploit-open {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(219, 234, 254, 0.84);
}
body.theme-light .feed-card__exploit-open:hover,
body.theme-light .feed-card__exploit-open:focus-visible {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.52);
  background: rgba(191, 219, 254, 0.94);
}

body.theme-light .feed-card__patch-total {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.36);
  background: rgba(219, 234, 254, 0.82);
}
body.theme-light .feed-card__patch-mix {
  color: #475569;
}
body.theme-light .feed-card__patch-hosts {
  color: #334155;
}
body.theme-light .feed-card__patch-item-link {
  border-bottom-color: rgba(59, 130, 246, 0.26);
}
body.theme-light .feed-card__patch-item-link::before {
  color: rgba(59, 130, 246, 0.72);
}
body.theme-light .feed-card__patch-item-title {
  color: #1d4ed8;
}
body.theme-light .feed-card__patch-item-meta {
  color: #475569;
}
body.theme-light .feed-card__patch-item-link:hover .feed-card__patch-item-title,
body.theme-light .feed-card__patch-item-link:focus-visible .feed-card__patch-item-title {
  color: #1e3a8a;
}
body.theme-light .feed-card__patch-item-link:hover .feed-card__patch-item-meta,
body.theme-light .feed-card__patch-item-link:focus-visible .feed-card__patch-item-meta {
  color: #334155;
}
body.theme-light .feed-card__patch-more {
  color: #475569;
}

/* ── Light theme: inactive icons more visible ── */
body.theme-light .feed-card__icon:not(.is-active) {
  color: #94a3b8;
  border-color: rgba(15, 30, 60, 0.12);
  background: rgba(226, 232, 240, 0.4);
  opacity: 0.7;
}

/* ── Light theme: icon tooltips ── */
body.theme-light .feed-card__icon::after {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(59, 130, 246, 0.3);
  color: #f0f4ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

/* ═══════════════════════════════════════════════════════
   Custom Select Dropdown Component
   ═══════════════════════════════════════════════════════ */

/* Hide native select when enhanced */
select.cs-native-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Wrapper */
.cs-wrapper {
  position: relative;
  display: inline-flex;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

/* Trigger button — same look as .filter-group input */
.cs-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 36px 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;

  background-color: var(--filter-input-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--filter-input-border, rgba(255, 255, 255, 0.1));
  color: var(--text);

  /* Arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%),
    linear-gradient(135deg, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.cs-trigger:hover {
  border-color: rgba(108, 99, 255, 0.45);
}
.cs-trigger:focus-visible {
  outline: none;
  border-color: rgba(108, 99, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

/* Arrow rotation when open */
.cs-open .cs-trigger {
  border-color: rgba(108, 99, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.15);
  background-image:
    linear-gradient(225deg, transparent 50%, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%),
    linear-gradient(315deg, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%, transparent 50%);
}

/* Dropdown panel */
.cs-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(460px, calc(100vw - 24px));
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 12000;
  padding: 6px;
  border-radius: 14px;

  /* Dark theme defaults */
  background: rgba(16, 20, 32, 0.97);
  border: 1px solid rgba(108, 99, 255, 0.2);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);

  /* Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 132, 255, 0.5) transparent;
}
.cs-dropdown::-webkit-scrollbar {
  width: 6px;
}
.cs-dropdown::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}
.cs-dropdown::-webkit-scrollbar-thumb {
  background: rgba(120, 132, 255, 0.45);
  border-radius: 999px;
}
.cs-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 150, 255, 0.65);
}

.cs-search-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 2px 2px 6px;
  margin: 0 0 4px;
  background: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-search {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}

.cs-search::placeholder {
  color: rgba(223, 229, 255, 0.58);
}

.cs-search:focus {
  border-color: rgba(108, 99, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.18);
}

.cs-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-empty {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: rgba(214, 224, 255, 0.72);
}

.cs-open .cs-dropdown {
  display: block;
  animation: cs-slide-in 0.15s ease-out;
}

@keyframes cs-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Option items */
.cs-option {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.12s, color 0.12s;

  /* Dark defaults */
  color: rgba(214, 224, 255, 0.82);
}
.cs-option:hover {
  background: rgba(108, 99, 255, 0.15);
  color: #fff;
}
.cs-option--active {
  background: rgba(108, 99, 255, 0.22);
  color: #fff;
  font-weight: 600;
}
.cs-option--active:hover {
  background: rgba(108, 99, 255, 0.3);
}

/* Smaller trigger for remediation-filter context */
.remediation-filter .cs-trigger {
  padding: 7px 30px 7px 10px;
  font-size: 0.82rem;
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
}
.remediation-filter .cs-open .cs-trigger {
  background-image:
    linear-gradient(225deg, transparent 50%, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%),
    linear-gradient(315deg, var(--filter-arrow, rgba(223, 229, 255, 0.7)) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
}
.remediation-filter .cs-dropdown {
  border-radius: 12px;
  padding: 5px;
}
.remediation-filter .cs-option {
  padding: 7px 12px;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* CRA filter context */
.cra-filter-field .cs-trigger {
  padding: 8px 32px 8px 12px;
  font-size: 0.85rem;
}

/* ── Light theme: Custom Select ── */
body.theme-light .cs-trigger:hover {
  border-color: rgba(59, 130, 246, 0.45);
}
body.theme-light .cs-trigger:focus-visible {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
body.theme-light .cs-open .cs-trigger {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

body.theme-light .cs-dropdown {
  background: rgba(248, 250, 255, 0.98);
  border-color: rgba(15, 30, 60, 0.14);
  box-shadow:
    0 12px 36px rgba(30, 50, 90, 0.15),
    0 0 0 1px rgba(15, 30, 60, 0.06);
  scrollbar-color: rgba(59, 130, 246, 0.35) transparent;
}
body.theme-light .cs-dropdown::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
}
body.theme-light .cs-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.55);
}
body.theme-light .cs-search-wrap {
  border-bottom-color: rgba(15, 30, 60, 0.08);
}
body.theme-light .cs-search {
  border-color: rgba(15, 30, 60, 0.16);
  background: rgba(248, 251, 255, 0.9);
  color: #0f172a;
}
body.theme-light .cs-search::placeholder {
  color: rgba(71, 85, 105, 0.66);
}
body.theme-light .cs-search:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

body.theme-light .cs-option {
  color: #334155;
}
body.theme-light .cs-option:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #1e293b;
}
body.theme-light .cs-option--active {
  background: rgba(59, 130, 246, 0.15);
  color: #1e3a8a;
}
body.theme-light .cs-option--active:hover {
  background: rgba(59, 130, 246, 0.22);
}
body.theme-light .cs-empty {
  color: rgba(71, 85, 105, 0.8);
}

/* ── Legal section (settings) ── */
.settings-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-legal__link {
  color: var(--muted, #9aa4b2);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.settings-legal__link:hover,
.settings-legal__link:focus-visible {
  color: var(--text, #e6e9ef);
  text-decoration: underline;
  outline: none;
}
.settings-legal__sep {
  color: rgba(154, 164, 178, 0.4);
  font-size: 0.8rem;
  user-select: none;
}

/* ── Legal links (login footer) ── */
.auth-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.auth-legal__link {
  color: rgba(159, 182, 255, 0.6);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.auth-legal__link:hover,
.auth-legal__link:focus-visible {
  color: #dfe6ff;
  text-decoration: underline;
  outline: none;
}
.auth-legal__sep {
  color: rgba(159, 182, 255, 0.25);
  font-size: 0.72rem;
  user-select: none;
}

/* ── Legal modal ── */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
}
.legal-modal[hidden] {
  display: none !important;
}
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(4px);
}
.legal-modal__dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  border-radius: 14px;
  border: 1px solid rgba(137, 152, 255, 0.22);
  background: linear-gradient(170deg, rgba(19, 24, 39, 0.98), rgba(13, 17, 29, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.legal-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #e6e9ef;
}
.legal-modal__close {
  background: none;
  border: none;
  color: #9aa4b2;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.legal-modal__close:hover,
.legal-modal__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.legal-modal__body {
  padding: 24px;
  overflow-y: auto;
  color: rgba(212, 222, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.65;
}
.legal-modal__body h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #e6e9ef;
}
.legal-modal__body h3:first-child {
  margin-top: 0;
}
.legal-modal__body p {
  margin: 0 0 12px;
}
.legal-modal__body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.legal-modal__body li {
  margin-bottom: 4px;
}

/* ── Confirm modal ── */
body.confirm-modal-open {
  overflow: hidden;
}
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
}
.confirm-modal[hidden] {
  display: none !important;
}
.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(4px);
}
.confirm-modal__dialog {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  border-radius: 16px;
  border: 1px solid rgba(137, 152, 255, 0.18);
  background: linear-gradient(170deg, rgba(19, 24, 39, 0.98), rgba(13, 17, 29, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 24px;
  display: grid;
  gap: 14px;
}
.confirm-modal__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(173, 189, 221, 0.62);
}
.confirm-modal__title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #eef2ff;
}
.confirm-modal__message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(212, 222, 255, 0.82);
}
.confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.confirm-modal__button {
  min-height: 38px;
  min-width: 112px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.confirm-modal__button--ghost {
  border: 1px solid rgba(142, 170, 216, 0.22);
  background: rgba(18, 28, 46, 0.42);
  color: rgba(231, 238, 255, 0.86);
}
.confirm-modal__button--ghost:hover,
.confirm-modal__button--ghost:focus-visible {
  border-color: rgba(167, 193, 233, 0.38);
  background: rgba(24, 36, 58, 0.66);
}
.confirm-modal__button--danger {
  border: 1px solid rgba(255, 138, 138, 0.32);
  background: linear-gradient(135deg, rgba(110, 30, 44, 0.88), rgba(75, 21, 31, 0.9));
  color: #ffe6e6;
}
.confirm-modal__button--danger:hover,
.confirm-modal__button--danger:focus-visible {
  border-color: rgba(255, 172, 172, 0.56);
  background: linear-gradient(135deg, rgba(128, 34, 50, 0.92), rgba(89, 25, 37, 0.94));
}
.confirm-modal__button:hover,
.confirm-modal__button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

body.theme-light .confirm-modal__backdrop {
  background: rgba(15, 23, 42, 0.22);
}
body.theme-light .confirm-modal__dialog {
  border-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 247, 252, 0.94));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
body.theme-light .confirm-modal__eyebrow {
  color: rgba(71, 85, 105, 0.72);
}
body.theme-light .confirm-modal__title {
  color: #0f172a;
}
body.theme-light .confirm-modal__message {
  color: rgba(51, 65, 85, 0.84);
}
body.theme-light .confirm-modal__button--ghost {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(15, 23, 42, 0.86);
}
body.theme-light .confirm-modal__button--ghost:hover,
body.theme-light .confirm-modal__button--ghost:focus-visible {
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(248, 250, 252, 0.98);
}
body.theme-light .confirm-modal__button--danger {
  border-color: rgba(220, 53, 69, 0.28);
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.96), rgba(254, 202, 202, 0.92));
  color: #991b1b;
}
body.theme-light .confirm-modal__button--danger:hover,
body.theme-light .confirm-modal__button--danger:focus-visible {
  border-color: rgba(220, 53, 69, 0.42);
  background: linear-gradient(135deg, rgba(254, 202, 202, 0.98), rgba(252, 165, 165, 0.94));
  color: #7f1d1d;
}

@media (max-width: 640px) {
  .confirm-modal__dialog {
    width: calc(100vw - 24px);
    padding: 20px;
  }
  .confirm-modal__actions {
    flex-direction: column-reverse;
  }
  .confirm-modal__button {
    width: 100%;
  }
}

/* ── Inventory editor modal ── */
body.inventory-editor-modal-open {
  overflow: hidden;
}
.inventory-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
}
.inventory-editor-modal[hidden] {
  display: none !important;
}
.inventory-editor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.64);
  backdrop-filter: blur(2px);
}
.inventory-editor-modal__dialog {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  border-radius: 8px;
  border: 1px solid rgba(137, 152, 255, 0.12);
  background: rgba(11, 16, 27, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  padding: 16px;
  display: grid;
  gap: 9px;
}
.inventory-editor-modal__header {
  display: grid;
  gap: 4px;
}
.inventory-editor-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  color: #eef2ff;
}
.inventory-editor-modal__description {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(212, 222, 255, 0.66);
}
.inventory-editor-modal__description[hidden] {
  display: none;
}
.inventory-editor-modal__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
}
.inventory-editor-modal__field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.inventory-editor-modal__field--full {
  grid-column: 1 / -1;
}
.inventory-editor-modal__field:not(.inventory-editor-modal__field--full):last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.inventory-editor-modal__field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(173, 189, 221, 0.58);
}
.inventory-editor-modal__field-hint {
  font-size: 0.68rem;
  color: rgba(173, 189, 221, 0.46);
}
.inventory-editor-modal__input {
  width: 100%;
  min-height: 33px;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid rgba(142, 170, 216, 0.16);
  background: rgba(18, 28, 46, 0.2);
  color: rgba(231, 238, 255, 0.92);
  font-size: 0.81rem;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.inventory-editor-modal__input:focus {
  outline: none;
  border-color: rgba(148, 170, 255, 0.44);
  box-shadow: 0 0 0 1px rgba(80, 106, 224, 0.2);
}
.inventory-editor-modal__input::placeholder {
  color: rgba(184, 199, 230, 0.5);
}
.inventory-editor-modal__input:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: rgba(24, 36, 58, 0.4);
}
.inventory-editor-modal__input option {
  background: #121a2b;
  color: #ebf0ff;
}
.inventory-editor-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.inventory-editor-modal__button {
  min-height: 31px;
  min-width: 0;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transform: none;
}
.inventory-editor-modal__button:hover,
.inventory-editor-modal__button:focus-visible,
.inventory-editor-modal__button:active {
  transform: none;
  box-shadow: none;
}
.inventory-editor-modal__button--ghost {
  border: 1px solid rgba(142, 170, 216, 0.14);
  background: transparent;
  color: rgba(231, 238, 255, 0.74);
}
.inventory-editor-modal__button--ghost:hover,
.inventory-editor-modal__button--ghost:focus-visible {
  border-color: rgba(167, 193, 233, 0.22);
  background: rgba(24, 36, 58, 0.2);
  transform: none;
  box-shadow: none;
}
.inventory-editor-modal__button--primary {
  border: 1px solid rgba(124, 145, 255, 0.2);
  background: transparent;
  color: rgba(196, 212, 255, 0.92);
}
.inventory-editor-modal__button--primary:hover,
.inventory-editor-modal__button--primary:focus-visible {
  border-color: rgba(161, 178, 255, 0.34);
  background: rgba(70, 105, 243, 0.18);
  color: #e7efff;
  transform: none;
  box-shadow: none;
}

body.theme-light .inventory-editor-modal__backdrop {
  background: rgba(15, 23, 42, 0.16);
}
body.theme-light .inventory-editor-modal__dialog {
  border-color: rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}
body.theme-light .inventory-editor-modal__title {
  color: #0f172a;
}
body.theme-light .inventory-editor-modal__description {
  color: rgba(51, 65, 85, 0.66);
}
body.theme-light .inventory-editor-modal__field-label {
  color: rgba(71, 85, 105, 0.6);
}
body.theme-light .inventory-editor-modal__field-hint {
  color: rgba(71, 85, 105, 0.54);
}
body.theme-light .inventory-editor-modal__input {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(15, 23, 42, 0.92);
}
body.theme-light .inventory-editor-modal__input:focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.16);
}
body.theme-light .inventory-editor-modal__input::placeholder {
  color: rgba(100, 116, 139, 0.56);
}
body.theme-light .inventory-editor-modal__input:disabled {
  background: rgba(248, 250, 252, 0.5);
}
body.theme-light .inventory-editor-modal__input option {
  background: #ffffff;
  color: #0f172a;
}
body.theme-light .inventory-editor-modal__button--ghost {
  border-color: rgba(15, 23, 42, 0.08);
  background: transparent;
  color: rgba(15, 23, 42, 0.68);
}
body.theme-light .inventory-editor-modal__button--ghost:hover,
body.theme-light .inventory-editor-modal__button--ghost:focus-visible {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(248, 250, 252, 0.82);
  transform: none;
  box-shadow: none;
}
body.theme-light .inventory-editor-modal__button--primary {
  border-color: rgba(37, 99, 235, 0.2);
  background: transparent;
  color: rgba(30, 64, 175, 0.86);
}
body.theme-light .inventory-editor-modal__button--primary:hover,
body.theme-light .inventory-editor-modal__button--primary:focus-visible {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(219, 234, 254, 0.72);
  color: #1d4ed8;
  transform: none;
  box-shadow: none;
}

@media (max-width: 640px) {
  .inventory-editor-modal__dialog {
    width: calc(100vw - 24px);
    padding: 18px;
  }
  .inventory-editor-modal__form {
    grid-template-columns: 1fr;
  }
  .inventory-editor-modal__actions {
    flex-direction: column-reverse;
  }
  .inventory-editor-modal__button {
    width: 100%;
  }
}

/* ── Exploit disclaimer modal ── */
.exploit-disclaimer-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
}
.exploit-disclaimer-modal[hidden] {
  display: none !important;
}
.exploit-disclaimer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(6px);
}
.exploit-disclaimer-modal__dialog {
  position: relative;
  width: min(500px, calc(100vw - 32px));
  border-radius: 18px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: linear-gradient(170deg, rgba(22, 16, 10, 0.98), rgba(13, 17, 29, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(251, 146, 60, 0.08);
  padding: 28px 26px 24px;
  display: grid;
  gap: 12px;
}
.exploit-disclaimer-modal__icon {
  font-size: 2rem;
  line-height: 1;
}
.exploit-disclaimer-modal__eyebrow {
  margin: 0;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 146, 60, 0.72);
}
.exploit-disclaimer-modal__title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fef3c7;
}
.exploit-disclaimer-modal__body {
  margin: 0;
  font-size: 0.90rem;
  line-height: 1.65;
  color: rgba(226, 232, 255, 0.82);
}
.exploit-disclaimer-modal__warning {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(212, 222, 255, 0.62);
}
.exploit-disclaimer-modal__target {
  margin: 0;
  font-size: 0.76rem;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  color: rgba(148, 163, 184, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exploit-disclaimer-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}
.exploit-disclaimer-modal__btn {
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  background: none;
  transition: color .15s, background .15s, opacity .15s;
  white-space: nowrap;
}
.exploit-disclaimer-modal__btn:focus-visible {
  outline: 2px solid rgba(251, 146, 60, 0.5);
  outline-offset: 2px;
}
.exploit-disclaimer-modal__btn--ghost {
  color: rgba(148, 163, 184, 0.55);
}
.exploit-disclaimer-modal__btn--ghost:hover {
  color: rgba(148, 163, 184, 0.85);
}
.exploit-disclaimer-modal__btn--confirm {
  background: rgba(251, 146, 60, 0.12);
  color: rgba(253, 186, 116, 0.95);
  border: 1px solid rgba(251, 146, 60, 0.22);
}
.exploit-disclaimer-modal__btn--confirm:hover {
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(251, 146, 60, 0.36);
  color: #fde68a;
}
body.theme-light .exploit-disclaimer-modal__backdrop {
  background: rgba(15, 23, 42, 0.28);
}
body.theme-light .exploit-disclaimer-modal__dialog {
  border-color: rgba(194, 120, 30, 0.3);
  background: linear-gradient(170deg, #fffbf5, #fff8ee);
  box-shadow: 0 24px 64px rgba(120, 53, 15, 0.14);
}
body.theme-light .exploit-disclaimer-modal__title { color: #92400e; }
body.theme-light .exploit-disclaimer-modal__body  { color: #44403c; }
body.theme-light .exploit-disclaimer-modal__warning {
  color: #78716c;
}
body.theme-light .exploit-disclaimer-modal__target { color: #78716c; }
body.theme-light .exploit-disclaimer-modal__btn--ghost {
  color: rgba(100, 116, 139, 0.6);
}
body.theme-light .exploit-disclaimer-modal__btn--ghost:hover {
  color: rgba(71, 85, 105, 0.9);
}
body.theme-light .exploit-disclaimer-modal__btn--confirm {
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.22);
  color: #92400e;
}
body.theme-light .exploit-disclaimer-modal__btn--confirm:hover {
  background: rgba(180, 83, 9, 0.13);
  border-color: rgba(180, 83, 9, 0.36);
}
@media (max-width: 640px) {
  .exploit-disclaimer-modal__dialog {
    width: calc(100vw - 24px);
    padding: 22px 18px 20px;
  }
  .exploit-disclaimer-modal__actions {
    flex-direction: column-reverse;
  }
  .exploit-disclaimer-modal__btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Dashboard variables ── */
:root {
  --dashboard-outline: rgba(255, 255, 255, 0.08);
  --dashboard-soft-bg: rgba(255, 255, 255, 0.04);
  --dashboard-soft-bg-strong: rgba(255, 255, 255, 0.06);
  --dashboard-track: rgba(255, 255, 255, 0.08);
  --dashboard-muted-text: rgba(223, 229, 255, 0.68);
  --dashboard-soft-text: rgba(223, 229, 255, 0.82);
  --dashboard-title-text: #f7f9ff;
}

body.theme-light {
  --dashboard-outline: rgba(15, 23, 42, 0.1);
  --dashboard-soft-bg: rgba(255, 255, 255, 0.62);
  --dashboard-soft-bg-strong: rgba(255, 255, 255, 0.78);
  --dashboard-track: rgba(15, 23, 42, 0.08);
  --dashboard-muted-text: rgba(53, 67, 92, 0.7);
  --dashboard-soft-text: rgba(31, 47, 72, 0.82);
  --dashboard-title-text: #10203a;
}

/* ── Layout ── */
.dashboard-overview,
.dashboard-detail-grid {
  width: 100%;
  max-width: var(--content-max-width);
}

.dashboard-overview {
  display: grid;
  gap: 20px;
  margin: 16px auto 0;
}

/* Dashboard panel titles */
.dashboard-overview .panel-header h3,
#vulnFlowSection .chart-card-header h3,
#insightsSection .chart-card-header h3,
#chartsSection .chart-card-header h3,
#dashboardAiSummarySection .panel-header__title h3 {
  font-family: "Gordita", "Manrope", "Segoe UI", sans-serif;
}
.dashboard-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dashboard-panel-title__icon {
  width: 20px;
  height: 20px;
  color: rgba(205, 216, 255, 0.82);
  flex-shrink: 0;
  transform: translateY(-0.25px);
}

/* ── Risk hero ── */
/* ── Hero context: company name above the card ── */
.dashboard-hero-context {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px 4px;
}
.dashboard-hero-context__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-hero-context__title-row .tutorial-help-marker {
  margin-top: 3px;
  flex-shrink: 0;
}
.dashboard-hero-context__title {
  margin: 0;
  font-family: "Gordita", "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--dashboard-title-text, #f6f8ff);
  line-height: 1.12;
}
.dashboard-hero-context__sub {
  margin: 0;
  padding: 10px 20px 0;
  font-size: 0.82rem;
  color: var(--dashboard-muted-text, rgba(180,200,240,0.6));
  line-height: 1.55;
  max-width: 90ch;
}

.dashboard-risk-hero {
  --risk-color: #40c48f;
  position: relative;
  padding: 24px 26px;
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--risk-color) 14%, transparent), transparent 50%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.dashboard-risk-hero::before {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--risk-color) 16%, rgba(255, 255, 255, 0.06)), transparent 68%);
  pointer-events: none;
}

.dashboard-risk-hero > * {
  position: relative;
  z-index: 1;
}

.dashboard-risk-hero[data-risk="medium"] { --risk-color: #ffb84d; }
.dashboard-risk-hero[data-risk="high"]   { --risk-color: #ff7b5c; }
.dashboard-risk-hero[data-risk="very-high"] { --risk-color: #ff9340; }
.dashboard-risk-hero[data-risk="critical"] { --risk-color: #f87171; }

/* ── Hero body: gauge + headline + signals ── */
.dashboard-risk-hero__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

/* ── Ring gauge ── */
.dashboard-risk-hero__gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.risk-ring {
  position: relative;
  width: 170px;
  height: 170px;
}

.risk-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.risk-ring__track {
  fill: none;
  stroke: var(--dashboard-track);
  stroke-width: 8;
}

.risk-ring__fill {
  fill: none;
  stroke: var(--risk-color);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--risk-color) 40%, transparent));
}

.risk-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.risk-ring__value {
  font-size: 3.6rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dashboard-title-text);
}

.risk-ring__label {
  font-size: 0.72rem;
  color: var(--dashboard-muted-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-risk-badge {
  --risk-color: #40c48f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--risk-color) 44%, var(--dashboard-outline));
  background: color-mix(in srgb, var(--risk-color) 16%, var(--dashboard-soft-bg-strong));
  color: var(--dashboard-title-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dashboard-risk-badge[data-risk="medium"] { --risk-color: #ffb84d; }
.dashboard-risk-badge[data-risk="high"]   { --risk-color: #ff7b5c; }
.dashboard-risk-badge[data-risk="very-high"] { --risk-color: #ff9340; }
.dashboard-risk-badge[data-risk="critical"] { --risk-color: #f87171; }

/* ── Headline side ── */
.dashboard-risk-hero__headline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.dashboard-risk-hero__eyebrow,
.dashboard-overview-card__eyebrow,
.dashboard-overview-kpi__label,
.dashboard-risk-highlight__label,
.dashboard-risk-pillar__label,
.dashboard-mini-progress__label,
.dashboard-overview-card__support-label,
.dashboard-signal__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}

.dashboard-risk-summary {
  margin: 0;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dashboard-soft-text);
}

/* ── KPI highlights (inside hero) ── */
.dashboard-risk-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-risk-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
  min-height: 0;
}

.dashboard-risk-highlight__value {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dashboard-title-text);
  font-variant-numeric: tabular-nums;
}

.dashboard-risk-highlight:nth-child(1) .dashboard-risk-highlight__value { color: #f87171; }
.dashboard-risk-highlight:nth-child(2) .dashboard-risk-highlight__value { color: #fb923c; }
.dashboard-risk-highlight:nth-child(3) .dashboard-risk-highlight__value { color: #a78bfa; }
.dashboard-risk-highlight:nth-child(4) .dashboard-risk-highlight__value { color: #34d399; }

.dashboard-risk-highlight__meter {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--dashboard-track);
  overflow: hidden;
}
.dashboard-risk-highlight__meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}
.dashboard-risk-highlight:nth-child(1) .dashboard-risk-highlight__meter-fill { background: #f87171; }
.dashboard-risk-highlight:nth-child(2) .dashboard-risk-highlight__meter-fill { background: #fb923c; }
.dashboard-risk-highlight:nth-child(3) .dashboard-risk-highlight__meter-fill { background: #a78bfa; }
.dashboard-risk-highlight:nth-child(4) .dashboard-risk-highlight__meter-fill { background: #34d399; }

/* ── Risk signals column (right side) ── */
/* ── Risk pillars (horizontal row below body) ── */
.dashboard-risk-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-risk-pillar {
  display: grid;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
}

.dashboard-risk-pillar__top,
.dashboard-mini-progress__top,
.dashboard-overview-card__support {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-risk-pillar__value {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.dashboard-risk-pillar:nth-child(1) .dashboard-risk-pillar__value { color: #53a6ff; }
.dashboard-risk-pillar:nth-child(2) .dashboard-risk-pillar__value { color: #ffb84d; }
.dashboard-risk-pillar:nth-child(3) .dashboard-risk-pillar__value { color: #ff7b5c; }

.dashboard-mini-progress__value,
.dashboard-overview-card__support-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dashboard-title-text);
}

.dashboard-mini-progress__track,
.dashboard-risk-pillar__track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  border: none;
  background: var(--dashboard-track);
}

.dashboard-mini-progress__fill,
.dashboard-risk-pillar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-risk-pillar:nth-child(1) .dashboard-risk-pillar__fill {
  background: linear-gradient(90deg, #53a6ff 0%, #63d2fc 100%);
}
.dashboard-risk-pillar:nth-child(2) .dashboard-risk-pillar__fill {
  background: linear-gradient(90deg, #ff9340 0%, #ffd05a 100%);
}
.dashboard-risk-pillar:nth-child(3) .dashboard-risk-pillar__fill {
  background: linear-gradient(90deg, #ff7b5c 0%, #ffb84d 100%);
}

.dashboard-risk-pillar__note,
.dashboard-overview-card__text {
  margin: 0;
  color: var(--dashboard-soft-text);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── Overview grid (3 cards) ── */
.dashboard-overview-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.dashboard-overview-card {
  --overview-accent: #63d2fc;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 20px;
  gap: 14px;
  overflow: hidden;
  border-left: 3px solid var(--overview-accent);
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--overview-accent) 10%, transparent), transparent 50%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.dashboard-overview-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--overview-accent) 10%, rgba(255, 255, 255, 0.04)), transparent 68%);
  pointer-events: none;
}

.dashboard-overview-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-overview-card > .tutorial-help-marker--panel {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
}

.dashboard-overview-card .panel-header {
  min-height: 0;
  margin: 0;
  padding-right: 0;
  align-items: flex-start;
}

.dashboard-overview-card .panel-header__title {
  gap: 2px;
}

.dashboard-overview-card .panel-header h3 {
  margin: 0;
  line-height: 1.14;
}

.dashboard-overview-card--feed   { --overview-accent: #63d2fc; }
.dashboard-overview-card--assets { --overview-accent: #40c48f; }
.dashboard-overview-card--vulns  { --overview-accent: #ff9340; }

.dashboard-overview-card__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  min-height: 88px;
}

.dashboard-overview-card--feed,
.dashboard-overview-card--assets {
  gap: 12px;
}

.dashboard-overview-card--feed .dashboard-overview-card__hero,
.dashboard-overview-card--assets .dashboard-overview-card__hero {
  flex: 1 1 auto;
  min-height: 0;
  align-content: center;
  padding: 10px 12px 8px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--overview-accent) 26%, var(--dashboard-outline));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--overview-accent) 12%, rgba(255, 255, 255, 0.01)) 0%,
    color-mix(in srgb, var(--overview-accent) 4%, rgba(255, 255, 255, 0.01)) 62%,
    rgba(255, 255, 255, 0.01) 100%
  );
}

.dashboard-overview-card__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 88px;
  min-width: 0;
}

.dashboard-overview-card--feed .dashboard-overview-card__main,
.dashboard-overview-card--assets .dashboard-overview-card__main {
  min-height: 0;
  justify-content: center;
  gap: 8px;
}

.dashboard-overview-card__value {
  font-size: clamp(2.2rem, 2.8vw, 2.8rem);
  line-height: 0.96;
  font-weight: 800;
  color: var(--dashboard-title-text);
}

.dashboard-overview-card--feed .dashboard-overview-card__value,
.dashboard-overview-card--assets .dashboard-overview-card__value {
  font-size: clamp(2.45rem, 3vw, 2.95rem);
  letter-spacing: -0.025em;
}

.dashboard-overview-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  align-self: start;
  min-width: 102px;
  min-height: 62px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
}

.dashboard-overview-card--feed .dashboard-overview-kpi,
.dashboard-overview-card--assets .dashboard-overview-kpi {
  align-self: center;
  min-width: 112px;
  min-height: 64px;
  border-color: color-mix(in srgb, var(--overview-accent) 30%, var(--dashboard-outline));
  background: color-mix(in srgb, var(--overview-accent) 10%, var(--dashboard-soft-bg));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-overview-kpi__value {
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--dashboard-title-text);
}

.dashboard-overview-kpi--success {
  border-color: color-mix(in srgb, #40c48f 30%, var(--dashboard-outline));
  background: color-mix(in srgb, #40c48f 8%, var(--dashboard-soft-bg-strong));
}

.dashboard-overview-kpi--warn {
  border-color: color-mix(in srgb, #ff9340 30%, var(--dashboard-outline));
  background: color-mix(in srgb, #ff9340 8%, var(--dashboard-soft-bg-strong));
}

.dashboard-mini-progress,
.dashboard-overview-card__support {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
}

.dashboard-mini-progress {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 10px 12px;
}

.dashboard-overview-card--feed .dashboard-mini-progress,
.dashboard-overview-card--assets .dashboard-mini-progress {
  margin-top: 0;
  border-radius: 11px;
  border-color: color-mix(in srgb, var(--overview-accent) 24%, var(--dashboard-outline));
  background: color-mix(in srgb, var(--overview-accent) 6%, var(--dashboard-soft-bg));
}

.dashboard-mini-progress__top {
  align-items: center;
}

.dashboard-mini-progress__label {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-mini-progress__value {
  flex: 0 1 auto;
  max-width: 68%;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-mini-progress__track {
  height: 7px;
}

.dashboard-overview-card--feed .dashboard-mini-progress__track,
.dashboard-overview-card--assets .dashboard-mini-progress__track {
  background: color-mix(in srgb, var(--overview-accent) 20%, var(--dashboard-track));
}

.dashboard-overview-card--feed .dashboard-mini-progress__fill {
  background: linear-gradient(90deg, #6d89ff 0%, #63d2fc 100%);
}

.dashboard-overview-card--assets .dashboard-mini-progress__fill {
  background: linear-gradient(90deg, #40c48f 0%, #80e7be 100%);
}

/* ── Feed + assets cards: visual-first layout ── */
.dashboard-overview-card--feed,
.dashboard-overview-card--assets {
  gap: 14px;
}

.dashboard-overview-card--feed .dashboard-overview-card__hero,
.dashboard-overview-card--assets .dashboard-overview-card__hero {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  border: none;
  background: none;
  align-items: center;
  gap: 18px;
}

.dashboard-overview-card--feed .dashboard-overview-card__main,
.dashboard-overview-card--assets .dashboard-overview-card__main {
  min-height: 0;
  justify-content: center;
  gap: 8px;
}

.dashboard-overview-card--feed .dashboard-overview-card__value,
.dashboard-overview-card--assets .dashboard-overview-card__value {
  font-size: clamp(2.5rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

.dashboard-overview-card__inline-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-overview-card__inline-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--overview-accent) 76%, #ffffff 24%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--overview-accent) 18%, transparent);
}

.dashboard-overview-card__inline-value {
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dashboard-soft-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-overview-visual-gauge {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  padding: 8px;
}

.dashboard-overview-visual-gauge .dashboard-gauge__value {
  font-size: 1.32rem;
}

.dashboard-overview-visual-gauge .dashboard-gauge__label {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.dashboard-overview-flow {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--overview-accent) 26%, var(--dashboard-outline));
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--overview-accent) 8%, var(--dashboard-soft-bg)) 0%,
    var(--dashboard-soft-bg) 100%
  );
}

.dashboard-overview-flow__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-overview-flow__label {
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}

.dashboard-overview-flow__value {
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dashboard-title-text);
}

.dashboard-overview-flow__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--overview-accent) 20%, var(--dashboard-track));
}

.dashboard-overview-flow__fill {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-overview-flow__fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--overview-accent) 30%, transparent);
}

.dashboard-overview-card--feed .dashboard-overview-flow__fill {
  background: linear-gradient(90deg, #5d7eff 0%, #63d2fc 100%);
}

.dashboard-overview-card--assets .dashboard-overview-flow__fill {
  background: linear-gradient(90deg, #37bf86 0%, #7de3bc 100%);
}

.dashboard-overview-flow__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-overview-flow__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--overview-accent) 24%, var(--dashboard-outline));
  background: color-mix(in srgb, var(--overview-accent) 5%, rgba(255, 255, 255, 0.02));
}

.dashboard-overview-flow__stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}

.dashboard-overview-flow__stat-value {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dashboard-title-text);
}

/* ── Mini severity bar ── */
.dashboard-mini-severity {
  display: flex;
  gap: 3px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-mini-severity__segment {
  flex: var(--segment-grow, 1) 1 0;
  min-width: 0;
  border-radius: 0;
  transition: flex-grow 0.35s ease, opacity 0.25s ease;
}

.dashboard-mini-severity__segment:first-child { border-radius: 999px 0 0 999px; }
.dashboard-mini-severity__segment:last-child  { border-radius: 0 999px 999px 0; }

.dashboard-mini-severity__segment.is-empty { opacity: 0.2; }

.dashboard-mini-severity .severity-critical    { background: #ff5a6d; }
.dashboard-mini-severity .severity-high        { background: #ff9340; }
.dashboard-mini-severity .severity-medium      { background: #ffd05a; }
.dashboard-mini-severity .severity-low         { background: #40c48f; }
.dashboard-mini-severity .severity-unclassified { background: #7a859b; }

/* ── CVSS distribution card ── */
.dashboard-cvss-chart {
  position: relative;
  width: 100%;
  height: 126px;
  min-height: 126px;
}

.dashboard-cvss-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}

.dashboard-cvss-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  justify-content: center;
  min-height: 56px;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
  text-align: center;
}

.dashboard-cvss-stat__value {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 800;
  color: var(--dashboard-title-text);
}

.dashboard-cvss-stat__label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}

/* ── Detail grid ── */
.dashboard-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px auto 24px;
}

.dashboard-detail-card {
  padding: 20px 22px;
  gap: 14px;
}

.dashboard-detail-card .panel-header {
  min-height: 0;
  align-items: flex-start;
  padding-right: 0;
  margin-bottom: 0;
}

.dashboard-detail-card--risk,
.dashboard-detail-card--signals {
  grid-column: 1 / -1;
}

/* ── Signal grid ── */
.dashboard-signal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-signal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
  text-align: center;
  min-height: 0;
}

.dashboard-signal__value {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
  color: var(--dashboard-title-text);
}

/* ── Risk meter (kept for JS compatibility) ── */
.dashboard-risk-meter {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
}

.dashboard-risk-meter__track {
  height: 10px;
  border-radius: 999px;
  overflow: visible;
  border: none;
  background: var(--dashboard-track);
  position: relative;
}

.dashboard-risk-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #40c48f 0%, #a3e635 28%, #ffb84d 55%, #ff7b5c 78%, #f87171 100%);
  box-shadow: 0 0 10px rgba(255, 140, 80, 0.35);
}

.dashboard-risk-meter__labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--dashboard-muted-text);
}

/* ── Light theme overrides ── */
body.theme-light .dashboard-risk-hero,
body.theme-light .dashboard-overview-card,
body.theme-light .dashboard-detail-card,
body.theme-light .dashboard-risk-highlight,
body.theme-light .dashboard-risk-meter,
body.theme-light .dashboard-risk-pillar,
body.theme-light .dashboard-mini-progress,
body.theme-light .dashboard-overview-kpi,
body.theme-light .dashboard-signal,
body.theme-light .dashboard-overview-card__support {
  box-shadow: 0 8px 20px rgba(30, 50, 90, 0.06);
}

body.theme-light .dashboard-overview-card__inline-value {
  color: #43556f;
}

body.theme-light .dashboard-overview-flow {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(150deg, rgba(246, 249, 255, 0.94), rgba(239, 245, 253, 0.9));
}

body.theme-light .dashboard-overview-flow__track {
  background: rgba(148, 163, 184, 0.3);
}

body.theme-light .dashboard-overview-flow__fill::after {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

body.theme-light .dashboard-overview-flow__stat {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

body.theme-light .risk-ring__track {
  stroke: rgba(15, 23, 42, 0.08);
}

body.theme-light .risk-ring__fill {
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--risk-color) 30%, transparent));
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .dashboard-risk-hero__body {
    grid-template-columns: auto 1fr;
  }

  .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-overview-card--vulns {
    grid-column: 1 / -1;
  }

  .dashboard-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-risk-hero {
    padding: 20px;
  }

  .dashboard-risk-hero__body {
    grid-template-columns: auto 1fr;
  }

  .dashboard-risk-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-detail-grid,
  .dashboard-overview-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-detail-card--risk,
  .dashboard-detail-card--signals,
  .dashboard-overview-card--vulns {
    grid-column: auto;
  }

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

  .dashboard-overview-card--feed .dashboard-overview-card__hero,
  .dashboard-overview-card--assets .dashboard-overview-card__hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .dashboard-overview-card {
    border-left: 3px solid var(--overview-accent);
  }

  .dashboard-overview-kpi {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-risk-pillar__top,
  .dashboard-mini-progress__top,
  .dashboard-overview-card__support,
  .dashboard-overview-flow__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-overview-card--feed .dashboard-overview-card__hero,
  .dashboard-overview-card--assets .dashboard-overview-card__hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-overview-visual-gauge {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .dashboard-risk-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .risk-ring {
    width: 120px;
    height: 120px;
  }

  .risk-ring__value {
    font-size: 2.1rem;
  }
}

/* ── Remediation redesign ── */
.remediation-grid {
  --remediation-summary-height: 104px;
  --remediation-row-medium: 476px;
  --remediation-row-tall: 560px;
}

.remediation-card {
  --remediation-accent: #63d2fc;
  position: relative;
  border-left: 3px solid var(--remediation-accent);
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--remediation-accent) 10%, transparent), transparent 52%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.remediation-card::before {
  content: "";
  position: absolute;
  inset: auto -46px -58px auto;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--remediation-accent) 12%, rgba(255, 255, 255, 0.04)), transparent 68%);
  pointer-events: none;
}

.remediation-card > * {
  position: relative;
  z-index: 1;
}

.remediation-card--summary { --remediation-accent: #6d89ff; }
.remediation-card--priority { --remediation-accent: #ff9340; }
.remediation-card--assets { --remediation-accent: #40c48f; }
.remediation-card--actions { --remediation-accent: #ff7b5c; }
.remediation-card--cwe { --remediation-accent: #8b7dff; }

.remediation-card .panel-header {
  min-height: 0;
  align-items: flex-start;
  margin-bottom: 0;
}

.remediation-card .panel-header__title {
  gap: 4px;
}

.remediation-card .panel-header__title .card-subtitle {
  white-space: normal;
}

.remediation-card--priority .panel-header__title,
.remediation-card--actions .panel-header__title {
  display: grid;
  gap: 4px;
}

.remediation-card .card-subtitle {
  color: var(--dashboard-soft-text);
}

.remediation-card--summary .ai-summary-header__title .card-subtitle,
.remediation-card--summary .ai-summary-header .card-subtitle {
  color: var(--dashboard-soft-text);
}

.remediation-priority {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  flex: 1 1 auto;
}

.remediation-priority__hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.remediation-priority__metric {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
  min-height: 82px;
}

.remediation-priority__metric--urgent {
  border-color: color-mix(in srgb, #ff7b5c 34%, var(--dashboard-outline));
  background: color-mix(in srgb, #ff7b5c 10%, var(--dashboard-soft-bg-strong));
}

.remediation-priority__metric--band {
  border-color: color-mix(in srgb, #ffb84d 28%, var(--dashboard-outline));
  background: color-mix(in srgb, #ffb84d 8%, var(--dashboard-soft-bg-strong));
}

.remediation-priority__metric--assets {
  border-color: color-mix(in srgb, #63d2fc 26%, var(--dashboard-outline));
  background: color-mix(in srgb, #63d2fc 8%, var(--dashboard-soft-bg-strong));
}

.remediation-priority__metric-label,
.remediation-header__note,
.remediation-asset__share,
.remediation-cwe__pane-sub,
.remediation-action__coverage {
  color: var(--dashboard-muted-text);
}

.remediation-priority__metric-label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.remediation-priority__metric-value {
  font-size: 1.42rem;
  line-height: 1;
  font-weight: 800;
  color: var(--dashboard-title-text);
}

.remediation-priority__metric-meta {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--dashboard-soft-text);
}

.remediation-section {
  margin-top: 0;
  gap: 14px;
}

.remediation-card--priority .remediation-section {
  overflow: auto;
  padding-right: 4px;
}

.remediation-header {
  align-items: flex-start;
  gap: 14px;
}

.remediation-header__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.remediation-section h4 {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}

.remediation-header__note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 56ch;
}

.rp-bars {
  gap: 10px;
}

.rp-bar {
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
}

.rp-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dashboard-title-text);
}

.rp-count {
  color: var(--dashboard-title-text);
  font-size: 0.88rem;
}

.rp-percent {
  color: var(--dashboard-muted-text);
  font-size: 0.78rem;
}

.rp-bar-track,
.remediation-asset__track {
  border: none;
  background: var(--dashboard-track);
}

.rp-bar-track {
  height: 10px;
}

.rp-bar-fill {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.remediation-stat-strip {
  margin-bottom: 2px;
}

.remediation-stat-strip .dashboard-stat-strip__item {
  min-height: 70px;
  padding: 14px 16px;
  align-items: flex-start;
  text-align: left;
}

.remediation-stat-strip .dashboard-stat-strip__value--small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remediation-assets,
.remediation-actions {
  gap: 14px;
}

.remediation-assets__list,
.remediation-actions__list {
  gap: 12px;
  padding-right: 4px;
}

.remediation-asset {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
}

.remediation-asset__rank {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--dashboard-title-text);
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg-strong);
}

.remediation-asset[data-tone="critical"] .remediation-asset__rank {
  color: #fda4af;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.12);
}

.remediation-asset[data-tone="high"] .remediation-asset__rank {
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.12);
}

.remediation-asset[data-tone="medium"] .remediation-asset__rank {
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.1);
}

.remediation-asset[data-tone="low"] .remediation-asset__rank {
  color: #86efac;
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.1);
}

.remediation-asset__main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.remediation-asset__label,
.remediation-asset__link {
  width: 100%;
}

.remediation-asset__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.remediation-asset__label-text {
  font-weight: 700;
  color: var(--dashboard-title-text);
}

.remediation-asset__meta {
  color: var(--dashboard-muted-text);
  font-size: 0.74rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.remediation-asset__meta::before {
  content: '·';
  color: var(--dashboard-outline);
  margin: 0 4px 0 3px;
}

.remediation-asset__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.remediation-chip,
.remediation-action__meta-pill,
.remediation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.remediation-chip,
.remediation-action__meta-pill {
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg-strong);
  color: var(--dashboard-soft-text);
}

.remediation-chip--ghost {
  color: var(--dashboard-muted-text);
}

.remediation-chip--critical,
.remediation-badge--critical {
  color: #ffd8dd;
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.14);
}

.remediation-chip--high,
.remediation-badge--high {
  color: #ffe1c3;
  border-color: rgba(251, 146, 60, 0.34);
  background: rgba(251, 146, 60, 0.14);
}

.remediation-chip--medium,
.remediation-badge--medium {
  color: #fff1bf;
  border-color: rgba(250, 204, 21, 0.32);
  background: rgba(250, 204, 21, 0.14);
}

.remediation-chip--low,
.remediation-badge--low {
  color: #d6f8ea;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.14);
}

.remediation-chip--planned,
.remediation-badge--planned {
  color: #d8dfed;
  border-color: rgba(154, 166, 191, 0.34);
  background: rgba(154, 166, 191, 0.14);
}

.remediation-badge {
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg-strong);
  color: var(--dashboard-soft-text);
}

.remediation-badge--kev {
  color: #ffdbe1;
  border-color: rgba(255, 123, 92, 0.34);
  background: rgba(255, 123, 92, 0.14);
}

.remediation-asset__share {
  font-size: 0.76rem;
  line-height: 1.2;
}

.remediation-asset__track {
  height: 8px;
}

.remediation-asset__fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #63d2fc);
}

.remediation-asset[data-tone="critical"] .remediation-asset__fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #f87171);
}

.remediation-asset[data-tone="high"] .remediation-asset__fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #fb923c);
}

.remediation-asset[data-tone="medium"] .remediation-asset__fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #facc15);
}

.remediation-asset[data-tone="low"] .remediation-asset__fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #34d399);
}

.remediation-asset__metrics {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 88px;
}

.remediation-asset__count {
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--dashboard-title-text);
  line-height: 1;
}

.remediation-asset__percent {
  min-width: 0;
  font-size: 0.68rem;
  color: var(--dashboard-muted-text);
  line-height: 1;
}

.remediation-actions__list--fill,
.remediation-actions__list--single {
  justify-content: flex-start;
}

.remediation-actions__list--center {
  justify-content: center;
}

.remediation-actions__list--fill .remediation-action,
.remediation-actions__list--single .remediation-action {
  min-height: 138px;
  height: auto;
}

.remediation-action {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  min-height: 138px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
}

.remediation-action[data-tone="critical"] {
  border-color: rgba(248, 113, 113, 0.3);
  background: color-mix(in srgb, #f87171 8%, var(--dashboard-soft-bg-strong));
}

.remediation-action[data-tone="high"] {
  border-color: rgba(251, 146, 60, 0.28);
  background: color-mix(in srgb, #fb923c 7%, var(--dashboard-soft-bg-strong));
}

.remediation-action[data-tone="medium"] {
  border-color: rgba(250, 204, 21, 0.24);
  background: color-mix(in srgb, #facc15 6%, var(--dashboard-soft-bg-strong));
}

.remediation-action__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.remediation-action__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg-strong);
  color: var(--dashboard-title-text);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.remediation-action__title {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--dashboard-title-text);
}

.remediation-action__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remediation-action__context {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--dashboard-soft-text);
}

.remediation-action__coverage {
  font-size: 0.78rem;
  line-height: 1.45;
}

.remediation-cwe__guidance-text {
  color: var(--dashboard-soft-text);
}

.remediation-cwe__guidance-label,
.remediation-cwe__guidance-meta {
  color: var(--dashboard-muted-text);
}

.remediation-cwe__guidance-group + .remediation-cwe__guidance-group {
  border-top: 1px solid var(--dashboard-outline);
}

.remediation-filter {
  background: var(--dashboard-soft-bg);
  border: 1px solid var(--dashboard-outline);
}

.remediation-filter label {
  color: var(--dashboard-muted-text);
}

.remediation-filter select {
  background-color: var(--dashboard-soft-bg-strong);
  border-color: var(--dashboard-outline);
}

@media (max-width: 1200px) {
  .remediation-priority__hero {
    grid-template-columns: 1fr;
  }

  .remediation-stat-strip {
    grid-template-columns: 1fr;
  }

  .remediation-stat-strip .dashboard-stat-strip__item + .dashboard-stat-strip__item {
    border-left: none;
    border-top: 1px solid var(--dashboard-outline);
  }
}

@media (max-width: 720px) {
  .remediation-asset {
    grid-template-columns: 1fr;
  }

  .remediation-asset__rank {
    width: 42px;
  }

  .remediation-asset__metrics {
    justify-items: start;
  }
}

/* ── Remediation expansion ── */
.remediation-grid {
  --remediation-summary-height: 108px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "summary"
    "priority"
    "assets"
    "actions"
    "cwe";
  gap: 28px;
  align-items: start;
  margin: 16px auto 40px;
}

.remediation-card {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.remediation-card--summary {
  height: auto;
  min-height: var(--remediation-summary-height);
}

.remediation-card--priority {
  height: auto;
  min-height: 720px;
}

.remediation-card--assets {
  height: auto;
  min-height: 560px;
}

.remediation-card--actions {
  height: auto;
  min-height: 620px;
}

.remediation-card--cwe {
  height: auto;
  min-height: 560px;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
}

body.remediation-mode {
  overflow-y: auto;
}

body.remediation-mode #panelContent,
body.remediation-mode .app-shell {
  min-height: 100vh;
  max-height: none;
}

body.remediation-mode .app-main {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding-bottom: clamp(18px, 3vh, 32px);
}

body.remediation-mode #remediationScreen {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.remediation-mode .remediation-grid {
  height: auto;
  max-height: none;
  grid-template-rows: none;
  margin: 16px auto 40px;
}

body.remediation-mode .remediation-card--summary,
body.remediation-mode .remediation-card--priority,
body.remediation-mode .remediation-card--assets,
body.remediation-mode .remediation-card--actions,
body.remediation-mode .remediation-card--cwe {
  height: auto;
}

.remediation-priority {
  gap: 18px;
}

.remediation-priority__hero {
  gap: 14px;
}

.remediation-priority__metric {
  min-height: 98px;
  padding: 16px 18px;
}

.remediation-priority__stats {
  margin-bottom: 0;
}

.remediation-priority__stats .dashboard-stat-strip__item {
  min-height: 74px;
}

.remediation-priority__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.remediation-section--distribution,
.remediation-priority__panel,
.remediation-side-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--dashboard-outline);
  background: color-mix(in srgb, var(--dashboard-soft-bg) 78%, rgba(255, 255, 255, 0.02));
  min-height: 100%;
}

.remediation-card--priority .remediation-section {
  overflow: visible;
  padding-right: 0;
}

.remediation-priority-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.remediation-priority-table__head,
.remediation-priority-table__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 100px 38px;
  gap: 10px;
  align-items: center;
}

.remediation-priority-table__head {
  padding: 0 14px;
  color: var(--dashboard-muted-text);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.remediation-priority-table__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.remediation-priority-table__row {
  width: 100%;
  border: 1px solid var(--dashboard-outline);
  border-radius: 16px;
  background: var(--dashboard-soft-bg);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.remediation-priority-table__row:hover,
.remediation-priority-table__row:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--dashboard-outline) 55%, var(--remediation-accent));
  background: color-mix(in srgb, var(--dashboard-soft-bg-strong) 88%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 12px 26px rgba(7, 10, 18, 0.18);
  outline: none;
}

.remediation-priority-table__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg-strong);
  color: var(--dashboard-title-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.remediation-priority-table__main,
.remediation-priority-table__impact {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.remediation-priority-table__cve,
.remediation-priority-table__impact-value,
.remediation-side-card__title {
  color: var(--dashboard-title-text);
  font-weight: 700;
}

.remediation-priority-table__summary,
.remediation-priority-table__impact-meta,
.remediation-side-card__meta,
.remediation-action__progress-label,
.remediation-action__progress-value {
  color: var(--dashboard-muted-text);
  font-size: 0.8rem;
  line-height: 1.4;
}

.remediation-priority-table__priority {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remediation-priority-table__open {
  justify-self: end;
  color: var(--dashboard-title-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remediation-priority-table__open::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
}

.remediation-priority-table__row[data-tone="critical"] {
  border-color: rgba(248, 113, 113, 0.24);
}

.remediation-priority-table__row[data-tone="high"] {
  border-color: rgba(251, 146, 60, 0.22);
}

.remediation-priority-table__row[data-tone="medium"] {
  border-color: rgba(250, 204, 21, 0.2);
}

.remediation-assets,
.remediation-actions {
  gap: 18px;
}

.remediation-assets__layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.remediation-assets__list,
.remediation-actions__list {
  overflow: visible;
  max-height: none;
  padding-right: 0;
}

.remediation-assets__list {
  gap: 4px;
}

.remediation-side-card__head {
  display: grid;
  gap: 4px;
}

.remediation-assets__mix {
  display: grid;
  gap: 14px;
}

.remediation-mini-bar {
  display: grid;
  gap: 8px;
}

.remediation-mini-bar__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.remediation-mini-bar__label {
  color: var(--dashboard-title-text);
  font-size: 0.84rem;
  font-weight: 600;
}

.remediation-mini-bar__value {
  color: var(--dashboard-muted-text);
  font-size: 0.78rem;
}

.remediation-mini-bar__track,
.remediation-action__progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--dashboard-track);
  overflow: hidden;
}

.remediation-mini-bar__fill,
.remediation-action__progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #63d2fc);
}

.remediation-mini-bar[data-tone="critical"] .remediation-mini-bar__fill,
.remediation-action[data-tone="critical"] .remediation-action__progress-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #f87171);
}

.remediation-mini-bar[data-tone="high"] .remediation-mini-bar__fill,
.remediation-action[data-tone="high"] .remediation-action__progress-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #fb923c);
}

.remediation-mini-bar[data-tone="medium"] .remediation-mini-bar__fill,
.remediation-action[data-tone="medium"] .remediation-action__progress-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #facc15);
}

.remediation-mini-bar[data-tone="low"] .remediation-mini-bar__fill,
.remediation-action[data-tone="low"] .remediation-action__progress-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #34d399);
}

.remediation-actions__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.remediation-actions__list--fill {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.remediation-actions__list--single {
  grid-template-columns: 1fr;
}

.remediation-actions__list--center {
  display: flex;
}

.remediation-actions__list > .remediation-empty,
.remediation-actions__list > .remediation-loading {
  grid-column: 1 / -1;
}

.remediation-action {
  min-height: 160px;
  gap: 12px;
  padding: 16px 18px;
}

.remediation-action__progress {
  display: grid;
  gap: 8px;
}

.remediation-action__progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

@media (max-width: 1100px) {
  /* assets layout and CWE collapse to single column */
  .remediation-assets__layout {
    grid-template-columns: 1fr;
  }
  .remediation-cwe__list {
    max-height: none;
  }

  .remediation-actions__list,
  .remediation-actions__list--fill {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .remediation-priority__hero,
  .remediation-priority__stats {
    grid-template-columns: 1fr;
  }

  .remediation-priority-table__head {
    display: none;
  }

  .remediation-priority-table__row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .remediation-priority-table__priority,
  .remediation-priority-table__impact,
  .remediation-priority-table__open {
    grid-column: 2;
  }

  .remediation-priority-table__open {
    justify-self: start;
  }
}


/* ── Remediation v3 · clean dashboard-aligned design ── */

/* Remove per-card accent decoration (border-left + gradients + blob) */
.remediation-card {
  border-left: none;
  background: none;
  position: static;
  overflow: visible;
}
.remediation-card::before {
  display: none;
}
.remediation-card > * {
  position: static;
  z-index: auto;
}

.match-card.match-card--remediation.remediation-card {
  position: relative;
}

.match-card.match-card--remediation.remediation-card > .tutorial-help-marker--panel {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
}

.match-card.match-card--remediation.remediation-card > .panel-header {
  padding-right: 22px;
}

/* 2-column grid with dedicated KPI row */
.remediation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "kpi kpi"
    "priority assets"
    "actions cwe";
  gap: 20px;
  align-items: start;
  margin: 16px auto 40px;
}

/* KPI row — top-level metrics */
.remediation-kpi-row {
  grid-area: kpi;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.remediation-kpi {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
}

.remediation-kpi--urgent {
  border-color: rgba(248, 113, 113, 0.22);
  background: color-mix(in srgb, rgba(248, 113, 113, 0.06), var(--dashboard-soft-bg));
}

.remediation-kpi__label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}

.remediation-kpi__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dashboard-title-text);
  line-height: 1;
  margin: 4px 0 2px;
}

.remediation-kpi__meta {
  font-size: 0.78rem;
  color: var(--dashboard-soft-text);
  line-height: 1.4;
}

/* Card heights: fluid */
.remediation-card--summary,
.remediation-card--priority,
.remediation-card--assets,
.remediation-card--actions,
.remediation-card--cwe {
  height: auto;
  min-height: 0;
  overflow: visible;
}

/* remediation-mode scrolls normally */
body.remediation-mode {
  overflow-y: auto;
}
body.remediation-mode #panelContent,
body.remediation-mode .app-shell {
  max-height: none;
}
body.remediation-mode .app-main {
  height: auto;
  overflow: visible;
  padding-bottom: clamp(18px, 3vh, 32px);
}
body.remediation-mode #remediationScreen {
  height: auto;
  overflow: visible;
}
body.remediation-mode .remediation-grid {
  height: auto;
  max-height: none;
  grid-template-rows: none;
}
body.remediation-mode .remediation-card--summary,
body.remediation-mode .remediation-card--priority,
body.remediation-mode .remediation-card--assets,
body.remediation-mode .remediation-card--actions,
body.remediation-mode .remediation-card--cwe {
  height: auto;
}

/* Responsive */
@media (max-width: 1100px) {
  .remediation-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kpi"
      "priority"
      "assets"
      "actions"
      "cwe";
  }
  .remediation-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .remediation-kpi-row {
    grid-template-columns: 1fr;
  }
}

/* Light theme: kpi tiles */
body.theme-light .remediation-kpi {
  border-color: var(--dashboard-outline);
  background: var(--dashboard-soft-bg);
}
body.theme-light .remediation-kpi--urgent {
  border-color: rgba(220, 38, 38, 0.2);
  background: color-mix(in srgb, rgba(220, 38, 38, 0.05), var(--dashboard-soft-bg));
}
body.theme-light .remediation-kpi__label {
  color: var(--dashboard-muted-text);
}
body.theme-light .remediation-kpi__value {
  color: var(--dashboard-title-text);
}
body.theme-light .remediation-kpi__meta {
  color: var(--dashboard-soft-text);
}

/* ── Remediation visual cleanup · flat, less noise ── */

/* 1. Flat severity bars – dividers only, no individual boxed cards */
.rp-bars {
  gap: 0;
}
.rp-bar {
  padding: 10px 0;
  border: none;
  border-radius: 0;
  background: none;
  gap: 5px;
}
.rp-bar + .rp-bar {
  border-top: 1px solid var(--dashboard-outline);
}
.rp-bar-track {
  height: 4px;
  border: none;
  background: var(--dashboard-track, rgba(255,255,255,0.08));
}
.rp-bar-fill {
  box-shadow: none;
}

/* 2. Stat strips inside cards: inline flat, no heavy bordered grid */
.remediation-card .remediation-stat-strip {
  display: flex;
  border: none;
  background: none;
  border-radius: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--dashboard-outline);
  gap: 0;
  margin-bottom: 0;
}
.remediation-card .remediation-stat-strip .dashboard-stat-strip__item {
  min-height: 0;
  padding: 0 20px 0 0;
  align-items: flex-start;
  text-align: left;
  border: none;
}
.remediation-card .remediation-stat-strip .dashboard-stat-strip__item + .dashboard-stat-strip__item {
  border-left: 1px solid var(--dashboard-outline);
  padding-left: 20px;
}
.remediation-card .remediation-stat-strip .dashboard-stat-strip__value {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}
.remediation-card .remediation-stat-strip .dashboard-stat-strip__label {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 3. Remove nested sub-panel boxes – cards inside cards */
.remediation-section--distribution,
.remediation-priority__panel,
.remediation-side-card {
  border: none;
  background: none;
  border-radius: 0;
  padding: 0;
  min-height: 0;
}

/* Horizontal divider between urgency dist. and CVE table (now stacked) */
.remediation-priority__panel--table {
  padding-left: 0;
  border-left: none;
  padding-top: 18px;
  margin-top: 16px;
  border-top: 1px solid var(--dashboard-outline);
}

/* Horizontal divider in assets layout (now stacked) */
.remediation-assets__aside {
  padding-left: 0;
  border-left: none;
  padding-top: 18px;
  margin-top: 16px;
  border-top: 1px solid var(--dashboard-outline);
}

/* 4. Tighter, cleaner section headers */
.remediation-header {
  margin-bottom: 2px;
}
.remediation-header h4,
.remediation-section h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
  margin: 0;
}
.remediation-header__note {
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 48ch;
}

/* 5. Report actions: minimal icon-first */
.remediation-report-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}
.remediation-report-actions__title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(199, 213, 244, 0.82);
}
.remediation-report-actions__buttons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.remediation-report-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 9px;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0;
}
.remediation-report-btn__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.remediation-report-btn__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.remediation-report-btn .tooltip {
  bottom: -28px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}
.remediation-report-btn--primary {
  border-color: rgba(113, 151, 243, 0.48);
  background: rgba(60, 94, 183, 0.24);
  color: rgba(232, 240, 255, 0.96);
}
.remediation-report-btn--primary:hover,
.remediation-report-btn--primary:focus-visible {
  border-color: rgba(151, 183, 255, 0.68);
  background: rgba(76, 112, 210, 0.34);
}
.remediation-report-btn--secondary {
  border-color: rgba(167, 186, 228, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(223, 232, 252, 0.92);
}
.remediation-report-btn--secondary:hover,
.remediation-report-btn--secondary:focus-visible {
  border-color: rgba(127, 165, 248, 0.46);
  background: rgba(87, 122, 212, 0.14);
}
.remediation-report-btn[data-busy="true"] {
  cursor: progress;
}
.remediation-report-actions[data-state="unavailable"] .remediation-report-btn,
.remediation-report-actions[data-state="error"] .remediation-report-btn {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(148, 163, 184, 0.1);
  color: rgba(189, 201, 224, 0.84);
}
.remediation-report-actions__meta {
  display: block;
  margin: 0;
  max-width: 260px;
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: right;
  color: rgba(173, 189, 224, 0.86);
}
@media (max-width: 900px) {
  .remediation-report-actions {
    width: 100%;
    align-items: flex-start;
  }
  .remediation-report-actions__meta {
    max-width: 100%;
    text-align: left;
    white-space: normal;
  }
}

/* 6. Slightly tighter card padding for remediation */
.remediation-grid .match-card--remediation {
  padding: 22px 24px;
  gap: 16px;
}
.remediation-grid .match-card--ai {
  padding: 14px 20px;
}

/* 7. Asset track: same thin style as rp-bar */
.remediation-asset__track {
  height: 4px;
  border: none;
  background: var(--dashboard-track, rgba(255,255,255,0.08));
}

/* Light theme overrides */
body.theme-light .rp-bar {
  border: none;
  background: none;
}
body.theme-light .rp-bar + .rp-bar {
  border-top-color: var(--dashboard-outline);
}
body.theme-light .remediation-card .remediation-stat-strip {
  border: none;
  background: none;
  border-bottom-color: var(--dashboard-outline);
}
body.theme-light .remediation-card .remediation-stat-strip .dashboard-stat-strip__item {
  border: none;
}
body.theme-light .remediation-card .remediation-stat-strip .dashboard-stat-strip__item + .dashboard-stat-strip__item {
  border-left-color: var(--dashboard-outline);
}
body.theme-light .remediation-section--distribution,
body.theme-light .remediation-priority__panel,
body.theme-light .remediation-side-card {
  border: none;
  background: none;
}
body.theme-light .remediation-priority__panel--table {
  border-top-color: var(--dashboard-outline);
}
body.theme-light .remediation-assets__aside {
  border-top-color: var(--dashboard-outline);
}
body.theme-light .remediation-report-actions__title {
  color: #5a6f92;
}
body.theme-light .remediation-report-btn--primary {
  border-color: rgba(62, 108, 227, 0.45);
  background: rgba(64, 109, 219, 0.15);
  color: #f7fbff;
}
body.theme-light .remediation-report-btn--primary:hover,
body.theme-light .remediation-report-btn--primary:focus-visible {
  border-color: rgba(44, 108, 243, 0.62);
  background: rgba(44, 108, 243, 0.22);
}
body.theme-light .remediation-report-btn--secondary {
  border-color: rgba(15, 30, 60, 0.16);
  background: rgba(245, 248, 254, 0.9);
  color: #1e293b;
}
body.theme-light .remediation-report-btn--secondary:hover,
body.theme-light .remediation-report-btn--secondary:focus-visible {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}
body.theme-light .remediation-report-actions__meta {
  color: #607595;
}
body.theme-light .remediation-report-actions[data-state="unavailable"] .remediation-report-btn,
body.theme-light .remediation-report-actions[data-state="error"] .remediation-report-btn {
  border-color: rgba(100, 116, 139, 0.22);
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
}
body.theme-light .rp-bar-track,
body.theme-light .remediation-asset__track {
  background: var(--dashboard-track);
}

/* ── Remediation redesign: new 5-row grid layout ────────────────────── */
/* Grid: summary / kpi / [priority|assets] / [priority|actions] / cwe   */

/* Priority table body: padding-top gives room for the hover lift on the first row */
.remediation-priority-table__body {
  max-height: 420px;
  padding-top: 3px;
}

/* Urgency distribution: compact when stacked on top of the table */
.remediation-section--distribution {
  padding-bottom: 0;
}

/* Bars: slightly tighter when full-width */
.rp-bars {
  display: flex;
  flex-direction: column;
}
.rp-bar {
  padding: 9px 0;
}

/* Priority table: no rank column, Vulnerability gets more space */
.remediation-priority-table__head,
.remediation-priority-table__row {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 110px 42px;
}

/* CWE card: full-width → min-height for readable content */
.remediation-card--cwe {
  min-height: 460px;
}

/* CWE list scrollbar */
.remediation-cwe__list::-webkit-scrollbar { width: 4px; }
.remediation-cwe__list::-webkit-scrollbar-track { background: transparent; }
.remediation-cwe__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 999px; }


/* KEV inline indicator: dot + label, no badge box */
.remediation-priority-table__kev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff9a7a;
}
.remediation-priority-table__kev::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7b5c;
  flex-shrink: 0;
}
body.theme-light .remediation-priority-table__kev {
  color: #d45a34;
}

/* Actions: 2-col grid kept, action card min-height already reduced */
.remediation-card--actions .remediation-actions__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Light theme scrollbars for weakness focus */
body.theme-light .remediation-cwe__list,
body.theme-light .remediation-cwe__hero {
  scrollbar-color: var(--dashboard-outline) transparent;
}

/* ── Asset card: new header+footer layout (no rank) ── */
.remediation-asset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 12px;
  align-items: stretch;
  cursor: pointer;
  transition: background 0.15s;
}
.remediation-asset--selected {
  background: rgba(148,163,184,0.08);
  border-color: rgba(148,163,184,0.35) !important;
  box-shadow: inset 2px 0 0 var(--remediation-accent, #64748b);
}

/* Header row: name/IP on the left, count on the right */
.remediation-asset__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

/* Footer row: plain metadata summary + severity breakdown */
.remediation-asset__footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Plain metadata row under the asset title */
.remediation-asset__summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 4px;
  min-width: 0;
}

.remediation-asset__meta-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--dashboard-muted-text);
}

.remediation-asset__meta-item + .remediation-asset__meta-item::before {
  content: '•';
  color: var(--dashboard-outline);
  margin-right: 8px;
}

.remediation-asset__meta-item--critical {
  color: #fda4af;
}

.remediation-asset__meta-item--high {
  color: #fdba74;
}

.remediation-asset__meta-item--medium {
  color: #fde68a;
}

.remediation-asset__meta-item--low {
  color: #86efac;
}

.remediation-asset__meta-item--planned {
  color: #cbd5e1;
}

.remediation-asset__meta-item--kev {
  color: #ff9a7a;
}

/* Share text: right-aligned at end of metadata row */
.remediation-asset__share {
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--dashboard-muted-text);
  white-space: nowrap;
}

/* Metrics: right-aligned count + % of peak */
.remediation-asset__metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  min-width: 72px;
}

/* Asset name + IP button: inline row, name + IP on same line */
.remediation-asset__link {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  width: auto;
  flex-wrap: nowrap;
}

.remediation-asset__label-text {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.remediation-asset__meta {
  flex: 0 0 auto;
  margin-left: 0;
}

/* Track spans full width of footer */
.remediation-asset__track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--dashboard-track, rgba(255,255,255,0.07));
  overflow: hidden;
}

.remediation-asset__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* CVE count label ("CVEs" suffix, smaller weight) */
.remediation-asset__count-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dashboard-muted-text);
  letter-spacing: 0.02em;
}

/* Severity as dot + text — no badge box */
.remediation-asset__severity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.remediation-asset__severity::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.remediation-asset__severity--critical { color: #fda4af; }
.remediation-asset__severity--critical::before { background: #f87171; }
.remediation-asset__severity--high { color: #fdba74; }
.remediation-asset__severity--high::before { background: #fb923c; }
.remediation-asset__severity--medium { color: #fde68a; }
.remediation-asset__severity--medium::before { background: #facc15; }
.remediation-asset__severity--low { color: #86efac; }
.remediation-asset__severity--low::before { background: #34d399; }

/* Light theme */
body.theme-light .remediation-asset__share {
  color: var(--dashboard-muted-text);
}
body.theme-light .remediation-asset__severity--critical { color: #b91c1c; }
body.theme-light .remediation-asset__severity--high     { color: #c2410c; }
body.theme-light .remediation-asset__severity--medium   { color: #92400e; }
body.theme-light .remediation-asset__severity--low      { color: #065f46; }

/* ── Remediation panel: structural polish (layout fixes) ── */

/* Rank badge: matches new 44px column width */
.remediation-priority-table__rank {
  width: 34px;
  height: 34px;
  font-size: 0.7rem;
}

/* Priority table body: scrollable so rows don't blow up the card height */
.remediation-priority-table__body {
  overflow-y: auto;
  max-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: var(--dashboard-outline) transparent;
}
.remediation-priority-table__body::-webkit-scrollbar { width: 4px; }
.remediation-priority-table__body::-webkit-scrollbar-track { background: transparent; }
.remediation-priority-table__body::-webkit-scrollbar-thumb {
  background: var(--dashboard-outline);
  border-radius: 999px;
}

/* Sub-panels must not create horizontal overflow in their column */
.remediation-section--distribution,
.remediation-priority__panel,
.remediation-assets__aside,
.remediation-side-card {
  min-width: 0;
  overflow: hidden;
}

/* Asset list: allow vertical scroll within its column */
.remediation-assets__list {
  min-width: 0;
  overflow-y: auto;
  max-height: 380px;
  scrollbar-width: thin;
  scrollbar-color: var(--dashboard-outline) transparent;
}
.remediation-assets__list::-webkit-scrollbar { width: 4px; }
.remediation-assets__list::-webkit-scrollbar-track { background: transparent; }
.remediation-assets__list::-webkit-scrollbar-thumb {
  background: var(--dashboard-outline);
  border-radius: 999px;
}

/* KPI row: tiles stretch to equal height */
.remediation-kpi-row {
  align-items: stretch;
}

/* Light theme scrollbar */
body.theme-light .remediation-priority-table__body,
body.theme-light .remediation-assets__list {
  scrollbar-color: var(--dashboard-outline) transparent;
}

/* ── Priority card: give the CVE table body more vertical room ── */
.remediation-card--priority .remediation-priority-table__body,
body.remediation-mode .remediation-card--priority .remediation-priority-table__body {
  max-height: 480px;
}

/* ── Assets card: list stretches to fill available card height ── */
/* The card is already align-self:stretch from .remediation-card base.
   We just need overflow:hidden back so the grid-row height is respected,
   and then let the flex chain propagate down to the list. */
.remediation-card--assets {
  overflow: hidden;
}
.remediation-card--assets .remediation-assets {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.remediation-card--assets .remediation-assets__layout {
  flex: 1;
  min-height: 0;
}
.remediation-card--assets .remediation-assets__list {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}
.remediation-card--assets .remediation-assets__aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* In remediation-mode (full page scroll), revert to natural sizing */
body.remediation-mode .remediation-card--assets {
  overflow: visible;
}
body.remediation-mode .remediation-card--assets .remediation-assets,
body.remediation-mode .remediation-card--assets .remediation-assets__layout {
  flex: none;
  min-height: unset;
  overflow: visible;
}
body.remediation-mode .remediation-card--assets .remediation-assets__list {
  flex: none;
  max-height: 380px;
  overflow-y: auto;
}

/* ── Risk profile: D3 radar chart ── */
.remediation-radar-wrap {
  width: min(100%, 360px);
  max-width: 360px;
  margin: 8px auto 0;
}

.remediation-assets__mix {
  display: flex;
  flex: 1;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.remediation-side-card__head {
  gap: 2px;
}

.remediation-side-card__title,
.remediation-side-card__meta {
  margin: 0;
}

.remediation-card--assets .panel-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.remediation-assets__toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
}

.remediation-assets__toolbar .remediation-filter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: stretch;
  align-self: stretch;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  white-space: normal;
}

.remediation-assets__toolbar .remediation-filter--search {
  min-width: 0;
}

.remediation-filter input,
.remediation-filter select {
  width: 100%;
  min-width: 0;
}

.remediation-filter input {
  background-color: var(--filter-input-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--filter-input-border, rgba(255, 255, 255, 0.1));
  border-radius: 999px;
  padding: 7px 12px 7px 36px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.2;
  font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfd6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}

.remediation-filter input::placeholder {
  color: rgba(223, 229, 255, 0.4);
}

.remediation-filter input:focus {
  outline: none;
  border-color: rgba(108, 99, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.remediation-asset__breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.remediation-asset__breakdown-item {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--dashboard-muted-text);
}

.remediation-asset__breakdown-item--critical {
  color: #fda4af;
}

.remediation-asset__breakdown-item--high {
  color: #fdba74;
}

.remediation-asset__breakdown-item--medium {
  color: #fde68a;
}

.remediation-asset__breakdown-item--low {
  color: #86efac;
}

.remediation-asset__breakdown-item--planned {
  color: #cbd5e1;
}

@media (max-width: 1100px) {
  .remediation-assets__toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .remediation-assets__toolbar {
    grid-template-columns: 1fr;
  }
}

body.theme-light .remediation-filter input {
  color: var(--lt-text);
  background-color: rgba(248, 250, 255, 0.96);
  border-color: rgba(15, 30, 60, 0.14);
}

body.theme-light .remediation-filter input::placeholder {
  color: rgba(71, 85, 105, 0.55);
}

body.theme-light .remediation-asset__breakdown-item--critical {
  color: #b91c1c;
}

body.theme-light .remediation-asset__breakdown-item--high {
  color: #c2410c;
}

body.theme-light .remediation-asset__breakdown-item--medium {
  color: #92400e;
}

body.theme-light .remediation-asset__breakdown-item--low {
  color: #065f46;
}

body.theme-light .remediation-asset__breakdown-item--planned {
  color: #475569;
}

body.theme-light .remediation-asset__meta-item--critical {
  color: #b91c1c;
}

body.theme-light .remediation-asset__meta-item--high {
  color: #c2410c;
}

body.theme-light .remediation-asset__meta-item--medium {
  color: #92400e;
}

body.theme-light .remediation-asset__meta-item--low {
  color: #065f46;
}

body.theme-light .remediation-asset__meta-item--planned {
  color: #475569;
}

body.theme-light .remediation-asset__meta-item--kev {
  color: #d45a34;
}

.remediation-actions__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.remediation-actions__spotlight,
.remediation-actions__ladder,
.remediation-action {
  border: 1px solid var(--dashboard-outline);
  border-radius: 18px;
  background: color-mix(in srgb, var(--dashboard-soft-bg) 82%, rgba(255, 255, 255, 0.02));
}

.remediation-actions__spotlight-card,
.remediation-actions__ladder {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  min-height: 100%;
}

.remediation-actions__spotlight-card {
  align-content: start;
}

.remediation-actions__spotlight-eyebrow,
.remediation-actions__ladder-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}

.remediation-actions__spotlight-title {
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--dashboard-title-text);
}

.remediation-actions__spotlight-meta,
.remediation-actions__spotlight-impact-line,
.remediation-actions__ladder-top,
.remediation-actions__ladder-sub {
  color: var(--dashboard-muted-text);
  font-size: 0.78rem;
  line-height: 1.4;
}

.remediation-actions__spotlight-meta,
.remediation-actions__spotlight-impact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.remediation-actions__spotlight-meta-item + .remediation-actions__spotlight-meta-item::before {
  content: '•';
  margin-right: 10px;
  color: var(--dashboard-outline);
}

.remediation-actions__spotlight-impact {
  display: grid;
  gap: 8px;
}

.remediation-actions__spotlight-impact-line {
  justify-content: space-between;
  gap: 12px;
}

.remediation-actions__spotlight-context,
.remediation-actions__spotlight-coverage {
  margin: 0;
  color: var(--dashboard-soft-text);
  font-size: 0.84rem;
  line-height: 1.55;
}

.remediation-actions__ladder-head {
  display: grid;
  gap: 4px;
}

.remediation-actions__ladder-meta {
  color: var(--dashboard-soft-text);
  font-size: 0.8rem;
  line-height: 1.45;
}

.remediation-actions__ladder-list {
  display: grid;
  gap: 10px;
}

.remediation-actions__ladder-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.remediation-actions__ladder-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--dashboard-outline);
  background: var(--dashboard-soft-bg-strong);
  color: var(--dashboard-title-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.remediation-actions__ladder-body {
  display: grid;
  gap: 5px;
}

.remediation-actions__ladder-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.remediation-actions__ladder-label {
  min-width: 0;
  color: var(--dashboard-title-text);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remediation-actions__ladder-value {
  color: var(--dashboard-title-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.remediation-actions__ladder-track {
  height: 7px;
  border-radius: 999px;
  background: var(--dashboard-track);
  overflow: hidden;
}

.remediation-actions__ladder-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), #63d2fc);
}

.remediation-actions__ladder-item[data-tone="critical"] .remediation-actions__ladder-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), #f87171);
}

.remediation-actions__ladder-item[data-tone="high"] .remediation-actions__ladder-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), #fb923c);
}

.remediation-actions__ladder-item[data-tone="medium"] .remediation-actions__ladder-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), #facc15);
}

.remediation-actions__ladder-item[data-tone="low"] .remediation-actions__ladder-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), #34d399);
}

.remediation-actions__list[hidden] {
  display: none !important;
}

.remediation-action {
  min-height: 0;
  gap: 10px;
  padding: 18px 20px;
}

.remediation-action__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}

.remediation-action__meta {
  color: var(--dashboard-muted-text);
  font-size: 0.8rem;
  line-height: 1.45;
}

.remediation-action__progress {
  gap: 7px;
}

.remediation-action__context,
.remediation-action__coverage {
  margin: 0;
}

.remediation-severity-rail {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 8px;
}

.remediation-severity-rail__segment {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.remediation-severity-rail__segment--critical {
  background: #f87171;
}

.remediation-severity-rail__segment--high {
  background: #fb923c;
}

.remediation-severity-rail__segment--medium {
  background: #facc15;
}

.remediation-severity-rail__segment--low {
  background: #34d399;
}

.remediation-severity-rail__segment--planned {
  background: #94a3b8;
}

.remediation-severity-rail__segment[data-tooltip] {
  position: relative;
  cursor: default;
}
.remediation-severity-rail__segment[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: #f0f6ff;
  background: rgba(8, 10, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 40;
}
.remediation-severity-rail__segment[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1200px) {
  .remediation-actions__hero {
    grid-template-columns: 1fr;
  }
}

body.theme-light .remediation-actions__spotlight,
body.theme-light .remediation-actions__ladder,
body.theme-light .remediation-action {
  background: color-mix(in srgb, var(--dashboard-soft-bg) 92%, rgba(255, 255, 255, 0.7));
}

.remediation-radar-wrap svg {
  display: block;
  width: 100% !important;
  height: auto !important;
}

/* ── Remediation redesign: KEV guidance + weakness focus ── */
.remediation-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remediation-token-list--compact {
  gap: 6px;
}

.remediation-token {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dashboard-title-text);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.remediation-token--ghost {
  color: var(--dashboard-muted-text);
  background: rgba(255, 255, 255, 0.025);
}

.remediation-token-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: baseline;
}

.remediation-token-list--inline .remediation-token {
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.remediation-token-list--inline .remediation-token + .remediation-token::before {
  content: "•";
  margin: 0 9px 0 7px;
  color: var(--dashboard-muted-text);
}

.remediation-token-list--inline .remediation-token--ghost {
  color: var(--dashboard-muted-text);
}

.remediation-actions__hero {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.remediation-actions__spotlight-card,
.remediation-actions__ladder,
.remediation-action {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--dashboard-outline);
  background:
    radial-gradient(circle at top right, rgba(255, 123, 92, 0.08), transparent 42%),
    color-mix(in srgb, var(--dashboard-soft-bg) 85%, rgba(255, 255, 255, 0.02));
}

.remediation-actions__spotlight-card::before,
.remediation-actions__ladder::before,
.remediation-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 34%);
  pointer-events: none;
}

.remediation-actions__spotlight-card,
.remediation-actions__ladder {
  padding: 22px;
}

.remediation-actions__spotlight-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.92fr);
  gap: 18px;
}

.remediation-actions__spotlight-main,
.remediation-actions__spotlight-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.remediation-actions__spotlight-title {
  font-size: 1.16rem;
  line-height: 1.35;
}

.remediation-actions__spotlight-context {
  font-size: 0.9rem;
  line-height: 1.62;
}

.remediation-actions__spotlight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.remediation-actions__spotlight-stat {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.032);
}

.remediation-actions__spotlight-stat-label,
.remediation-actions__spotlight-panel-label,
.remediation-actions__spotlight-footer-label,
.remediation-action__section-label {
  color: var(--dashboard-muted-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remediation-actions__spotlight-stat-value,
.remediation-actions__spotlight-panel-value {
  color: var(--dashboard-title-text);
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.15;
}

.remediation-actions__spotlight-stat-note,
.remediation-actions__spotlight-panel-note,
.remediation-actions__spotlight-panel-mix,
.remediation-actions__sequence-meta,
.remediation-actions__ladder-mix {
  color: var(--dashboard-soft-text);
  font-size: 0.78rem;
  line-height: 1.45;
}

.remediation-actions__spotlight-panel,
.remediation-action__insight,
.remediation-action__scope {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.remediation-actions__spotlight-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.remediation-actions__spotlight-track,
.remediation-actions__ladder-track,
.remediation-actions__ladder-rail {
  margin-top: 2px;
}

.remediation-actions__spotlight-rail,
.remediation-actions__ladder-rail {
  margin-top: 2px;
}

.remediation-actions__spotlight-footer {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.remediation-actions__ladder {
  display: grid;
  gap: 14px;
}

.remediation-actions__ladder-list {
  gap: 12px;
}

.remediation-actions__ladder-item {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.remediation-actions__ladder-order {
  width: 36px;
  height: 36px;
}

.remediation-actions__sequence-head {
  display: grid;
  gap: 4px;
}

.remediation-actions__sequence-title {
  color: var(--dashboard-title-text);
  font-size: 0.94rem;
  font-weight: 700;
}

.remediation-actions__list {
  grid-template-columns: 1fr;
  gap: 14px;
}

.remediation-action {
  min-height: 0;
  padding: 18px 20px;
}

.remediation-action__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.remediation-action__header-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.remediation-action__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.remediation-action__share {
  display: grid;
  gap: 2px;
  min-width: 88px;
  text-align: right;
}

.remediation-action__share-value {
  color: var(--dashboard-title-text);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.05;
}

.remediation-action__share-label {
  color: var(--dashboard-muted-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remediation-action__body {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.96fr);
  gap: 16px;
}

.remediation-action__context {
  margin: 0;
  color: var(--dashboard-soft-text);
  font-size: 0.88rem;
  line-height: 1.62;
}

.remediation-action__section-label--secondary {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.remediation-actions__spotlight-card[data-tone="critical"] .remediation-actions__spotlight-panel-value,
.remediation-actions__spotlight-card[data-tone="critical"] .remediation-actions__spotlight-stat-value:nth-child(2),
.remediation-action[data-tone="critical"] .remediation-action__share-value {
  color: #f87171;
}

.remediation-actions__spotlight-card[data-tone="high"] .remediation-actions__spotlight-panel-value,
.remediation-action[data-tone="high"] .remediation-action__share-value {
  color: #fb923c;
}

.remediation-actions__spotlight-card[data-tone="medium"] .remediation-actions__spotlight-panel-value,
.remediation-action[data-tone="medium"] .remediation-action__share-value {
  color: #facc15;
}

.remediation-actions__spotlight-card[data-tone="low"] .remediation-actions__spotlight-panel-value,
.remediation-action[data-tone="low"] .remediation-action__share-value {
  color: #34d399;
}

@media (max-width: 1200px) {
  .remediation-actions__hero,
  .remediation-actions__spotlight-shell,
  .remediation-action__body {
    grid-template-columns: 1fr;
  }

  .remediation-actions__spotlight-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .remediation-actions__spotlight-stats {
    grid-template-columns: 1fr;
  }

  .remediation-action__header {
    grid-template-columns: 1fr;
  }

  .remediation-action__share {
    text-align: left;
  }
}

body.theme-light .remediation-actions__spotlight-card,
body.theme-light .remediation-actions__ladder,
body.theme-light .remediation-action {
  background:
    radial-gradient(circle at top right, rgba(255, 123, 92, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(237, 243, 252, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(30, 50, 90, 0.08);
}

body.theme-light .remediation-actions__spotlight-card::before,
body.theme-light .remediation-actions__ladder::before,
body.theme-light .remediation-action::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 34%),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 34%);
}

body.theme-light .remediation-token {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #344256;
}

body.theme-light .remediation-token--ghost {
  color: #64748b;
  background: rgba(235, 241, 251, 0.72);
}

body.theme-light .remediation-actions__spotlight-stat,
body.theme-light .remediation-actions__spotlight-panel,
body.theme-light .remediation-action__insight,
body.theme-light .remediation-action__scope,
body.theme-light .remediation-actions__ladder-item,
body.theme-light .remediation-cwe__hero-stat,
body.theme-light .remediation-cwe__hero-mix,
body.theme-light .remediation-cwe__hero-narrative {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-light .remediation-actions__spotlight-footer,
body.theme-light .remediation-action__section-label--secondary,
body.theme-light .remediation-cwe__guidance-group + .remediation-cwe__guidance-group {
  border-color: rgba(40, 58, 95, 0.1);
}

body.theme-light .remediation-actions__spotlight-stat-label,
body.theme-light .remediation-actions__spotlight-panel-label,
body.theme-light .remediation-actions__spotlight-footer-label,
body.theme-light .remediation-action__section-label,
body.theme-light .remediation-cwe__hero-stat-label,
body.theme-light .remediation-cwe__pane-label,
body.theme-light .remediation-cwe__section-label,
body.theme-light .remediation-cwe__fact-label,
body.theme-light .remediation-cwe__insight-meta,
body.theme-light .remediation-cwe__section-note {
  color: #64748b;
}

body.theme-light .remediation-actions__spotlight-stat-value,
body.theme-light .remediation-actions__spotlight-panel-value,
body.theme-light .remediation-actions__sequence-title,
body.theme-light .remediation-action__share-value,
body.theme-light .remediation-cwe__item-id,
body.theme-light .remediation-cwe__hero-id,
body.theme-light .remediation-cwe__hero-stat-value,
body.theme-light .remediation-cwe__insight-title {
  color: #0f172a;
}

body.theme-light .remediation-actions__spotlight-context,
body.theme-light .remediation-actions__spotlight-stat-note,
body.theme-light .remediation-actions__spotlight-panel-note,
body.theme-light .remediation-actions__spotlight-panel-mix,
body.theme-light .remediation-actions__sequence-meta,
body.theme-light .remediation-actions__ladder-mix,
body.theme-light .remediation-cwe__hero-narrative,
body.theme-light .remediation-cwe__hero-mix-label,
body.theme-light .remediation-cwe__guidance-text,
body.theme-light .remediation-cwe__guidance-bullet,
body.theme-light .remediation-cwe__description,
body.theme-light .remediation-cwe__pane-body,
body.theme-light .remediation-cwe__section-copy,
body.theme-light .remediation-cwe__fact-value,
body.theme-light .remediation-cwe__insight-text {
  color: #475569;
}

body.theme-light .remediation-action__eyebrow {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(240, 245, 253, 0.92);
}

body.theme-light .remediation-cwe__item-count {
  background: none;
  border: none;
}

body.theme-light .remediation-token-list--inline .remediation-token {
  background: none;
  border: none;
  color: #334155;
}

body.theme-light .remediation-token-list--inline .remediation-token + .remediation-token::before,
body.theme-light .remediation-token-list--inline .remediation-token--ghost {
  color: #94a3b8;
}

/* ── Remediation KEV guidance refinement ── */
.remediation-card--actions .remediation-actions__summary {
  margin-bottom: 2px;
}

.remediation-actions__hero {
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  align-items: stretch;
}

.remediation-actions__spotlight {
  display: grid;
}

.remediation-actions__spotlight-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.remediation-actions__spotlight-title {
  max-width: 24ch;
  font-size: 1.22rem;
  line-height: 1.32;
}

.remediation-actions__spotlight-context {
  max-width: 62ch;
}

.remediation-actions__spotlight-footer {
  gap: 8px;
}

.remediation-actions__spotlight-footer-meta {
  color: var(--dashboard-soft-text);
  font-size: 0.8rem;
  line-height: 1.45;
}

.remediation-actions__ladder {
  display: grid;
  gap: 14px;
  align-content: start;
}

.remediation-actions__why-head {
  display: grid;
  gap: 4px;
}

.remediation-actions__why-score,
.remediation-actions__why-block,
.remediation-actions__why-metric {
  display: grid;
  gap: 10px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.remediation-actions__why-score {
  gap: 4px;
}

.remediation-actions__why-score-value {
  color: var(--dashboard-title-text);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.remediation-actions__why-score-label,
.remediation-actions__why-metric-label,
.remediation-actions__why-block-label {
  color: var(--dashboard-muted-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remediation-actions__why-score-note,
.remediation-actions__why-block-note {
  color: var(--dashboard-soft-text);
  font-size: 0.8rem;
  line-height: 1.5;
}

.remediation-actions__why-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.remediation-actions__why-metric {
  gap: 4px;
}

.remediation-actions__why-metric-value,
.remediation-actions__why-block-value {
  color: var(--dashboard-title-text);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
}

.remediation-actions__why-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.remediation-actions__why-track,
.remediation-actions__why-rail {
  margin-top: 2px;
}

.remediation-actions__list {
  gap: 10px;
}

.remediation-actions__sequence-head {
  margin-bottom: 4px;
}

.remediation-action {
  padding: 14px 16px;
  border-radius: 16px;
}

.remediation-action__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.remediation-action__wave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dashboard-title-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remediation-action__main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.remediation-action__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.remediation-action__title {
  color: var(--dashboard-title-text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.remediation-action__meta {
  color: var(--dashboard-muted-text);
  font-size: 0.8rem;
  line-height: 1.45;
}

.remediation-action__coverage {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 72px;
}

.remediation-action__coverage-value {
  color: var(--dashboard-title-text);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.05;
}

.remediation-action__coverage-label {
  color: var(--dashboard-muted-text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remediation-action__progress-track {
  height: 6px;
}

.remediation-action__severity-rail {
  min-height: 6px;
}

.remediation-action__severity-rail .remediation-severity-rail__segment {
  height: 6px;
}

.remediation-action .remediation-token-list {
  margin-top: 2px;
}

.remediation-actions__ladder[data-tone="critical"] .remediation-actions__why-score-value,
.remediation-actions__ladder[data-tone="critical"] .remediation-actions__why-block-value,
.remediation-action[data-tone="critical"] .remediation-action__coverage-value {
  color: #f87171;
}

.remediation-actions__ladder[data-tone="high"] .remediation-actions__why-score-value,
.remediation-actions__ladder[data-tone="high"] .remediation-actions__why-block-value,
.remediation-action[data-tone="high"] .remediation-action__coverage-value {
  color: #fb923c;
}

.remediation-actions__ladder[data-tone="medium"] .remediation-actions__why-score-value,
.remediation-actions__ladder[data-tone="medium"] .remediation-actions__why-block-value,
.remediation-action[data-tone="medium"] .remediation-action__coverage-value {
  color: #facc15;
}

.remediation-actions__ladder[data-tone="low"] .remediation-actions__why-score-value,
.remediation-actions__ladder[data-tone="low"] .remediation-actions__why-block-value,
.remediation-action[data-tone="low"] .remediation-action__coverage-value {
  color: #34d399;
}

@media (max-width: 1200px) {
  .remediation-actions__hero {
    grid-template-columns: 1fr;
  }

  .remediation-actions__why-metrics,
  .remediation-actions__spotlight-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .remediation-actions__why-metrics,
  .remediation-actions__spotlight-stats {
    grid-template-columns: 1fr;
  }

  .remediation-action__row {
    grid-template-columns: 1fr;
  }

  .remediation-action__coverage {
    justify-items: start;
  }
}

body.theme-light .remediation-actions__why-score,
body.theme-light .remediation-actions__why-block,
body.theme-light .remediation-actions__why-metric,
body.theme-light .remediation-action,
body.theme-light .remediation-action__wave {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

body.theme-light .remediation-actions__spotlight-footer-meta,
body.theme-light .remediation-actions__why-score-note,
body.theme-light .remediation-actions__why-block-note,
body.theme-light .remediation-action__meta {
  color: #475569;
}

body.theme-light .remediation-actions__why-score-label,
body.theme-light .remediation-actions__why-metric-label,
body.theme-light .remediation-actions__why-block-label,
body.theme-light .remediation-action__coverage-label {
  color: #64748b;
}

body.theme-light .remediation-actions__why-score-value,
body.theme-light .remediation-actions__why-metric-value,
body.theme-light .remediation-actions__why-block-value,
body.theme-light .remediation-action__coverage-value,
body.theme-light .remediation-action__title,
body.theme-light .remediation-action__wave {
  color: #0f172a;
}

/* ── Remediation KEV guidance: stacked layout refinement ── */
.remediation-actions__hero {
  grid-template-columns: 1fr;
  gap: 12px;
}

.remediation-actions__spotlight-card {
  gap: 14px;
  padding: 20px 22px;
}

.remediation-actions__spotlight-title {
  max-width: 32ch;
}

.remediation-actions__spotlight-stats {
  gap: 10px;
}

.remediation-actions__spotlight-stat {
  padding: 11px 12px;
}

.remediation-actions__ladder {
  gap: 10px;
  padding: 16px 20px;
}

.remediation-actions__why-card {
  display: grid;
  gap: 12px;
}

.remediation-actions__why-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.remediation-actions__why-summary-copy {
  display: grid;
  gap: 4px;
}

.remediation-actions__why-track {
  margin-top: 0;
}

.remediation-actions__why-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remediation-actions__why-fact {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dashboard-title-text);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.remediation-actions__list {
  gap: 8px;
}

.remediation-actions__sequence-head {
  margin-bottom: 2px;
}

.remediation-action {
  padding: 12px 14px;
}

.remediation-action__row {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
}

.remediation-action__wave {
  min-height: 30px;
  font-size: 0.68rem;
}

.remediation-action__main {
  gap: 6px;
}

.remediation-action__title {
  font-size: 0.9rem;
  line-height: 1.4;
}

.remediation-action__meta {
  font-size: 0.76rem;
}

.remediation-action__coverage {
  min-width: 64px;
}

.remediation-action__coverage-value {
  font-size: 1rem;
}

.remediation-action__progress-track {
  height: 5px;
}

.remediation-action .remediation-token {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.68rem;
}

@media (max-width: 720px) {
  .remediation-actions__spotlight-stats {
    grid-template-columns: 1fr;
  }

  .remediation-actions__why-summary {
    grid-template-columns: 1fr;
  }

  .remediation-action__row {
    grid-template-columns: 1fr;
  }

  .remediation-action__coverage {
    justify-items: start;
  }
}

body.theme-light .remediation-actions__why-fact {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #344256;
}

/* ── Remediation KEV guidance: inline CVE lists and single-column waves ── */
.remediation-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  color: var(--dashboard-soft-text);
  font-size: 0.78rem;
  line-height: 1.55;
}

.remediation-inline-list--compact {
  font-size: 0.74rem;
}

.remediation-inline-list__item,
.remediation-inline-list__more,
.remediation-inline-list__empty {
  color: inherit;
}

.remediation-inline-list__separator {
  margin: 0 8px;
  color: var(--dashboard-muted-text);
}

.remediation-card--actions .remediation-actions__list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px;
}

.remediation-card--actions .remediation-actions__list--fill,
.remediation-card--actions .remediation-actions__list--single {
  grid-template-columns: 1fr !important;
}

body.theme-light .remediation-inline-list {
  color: #475569;
}

body.theme-light .remediation-inline-list__separator {
  color: #94a3b8;
}

/* ── Remediation balance: KEV guidance + weakness focus ── */
.remediation-grid {
  align-items: stretch;
}

.remediation-card--actions,
.remediation-card--cwe {
  min-height: 640px;
  align-self: stretch;
}

.remediation-card--actions .remediation-actions,
.remediation-card--cwe .remediation-cwe {
  height: 100%;
}

.remediation-card--cwe .remediation-cwe {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.remediation-cwe__list {
  max-height: 100%;
  overflow-y: auto;
  padding-right: 8px;
}

.remediation-cwe__detail {
  min-height: 0;
  height: 100%;
}

.remediation-cwe__hero {
  gap: 10px;
  padding: 16px 18px;
}

.remediation-cwe__hero-name {
  font-size: 0.92rem;
  line-height: 1.36;
}

.remediation-cwe__hero-stats {
  gap: 6px;
}

.remediation-cwe__hero-stat {
  min-height: 0;
  padding: 9px 10px 8px;
}

.remediation-cwe__hero-narrative {
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.52;
}

.remediation-cwe__pane-body {
  padding: 14px 16px 16px;
  gap: 10px;
}

.remediation-cwe__section {
  gap: 8px;
  padding: 12px 13px;
}

.remediation-cwe__section-copy,
.remediation-cwe__guidance-text,
.remediation-cwe__guidance-bullet,
.remediation-cwe__insight-text {
  font-size: 0.84rem;
  line-height: 1.55;
}

.remediation-cwe__fact-list {
  gap: 8px;
}

.remediation-cwe__fact-row + .remediation-cwe__fact-row {
  padding-top: 8px;
}

.remediation-cwe__insight {
  gap: 6px;
  padding: 10px 11px;
}

@media (max-width: 1180px) {
  .remediation-card--actions,
  .remediation-card--cwe {
    min-height: 0;
  }

  .remediation-card--cwe .remediation-cwe {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .remediation-cwe__list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* ── Weakness focus: stacked list + detail below ── */
.remediation-card--cwe .remediation-cwe {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.remediation-cwe__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.remediation-cwe__item {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 14px;
  gap: 8px;
  align-items: center;
}

.remediation-cwe__item:hover,
.remediation-cwe__item:focus-visible {
  transform: translateX(2px);
}

.remediation-cwe__item-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.remediation-cwe__item-id {
  font-size: 0.82rem;
}

.remediation-cwe__item-name {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.remediation-cwe__item-count {
  font-size: 0.88rem;
  gap: 1px;
}

.remediation-cwe__detail {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.remediation-cwe__hero {
  gap: 8px;
  padding: 14px 16px;
  border-right: none;
  border-bottom: 1px solid var(--dashboard-outline);
}

.remediation-cwe__hero-id {
  font-size: 1.28rem;
}

.remediation-cwe__hero-severity {
  margin-top: 3px;
  font-size: 0.66rem;
}

.remediation-cwe__hero-name {
  font-size: 0.88rem;
  line-height: 1.34;
}

.remediation-cwe__hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.remediation-cwe__hero-stat {
  padding: 8px 9px;
  border-radius: 10px;
  text-align: center;
}

.remediation-cwe__hero-stat-value {
  font-size: 0.98rem;
}

.remediation-cwe__hero-stat-label {
  font-size: 0.58rem;
}

.remediation-cwe__hero-mix {
  padding: 10px 12px;
  gap: 6px;
}

.remediation-cwe__hero-samples {
  display: none;
}

.remediation-cwe__hero-narrative {
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.46;
}

.remediation-cwe__pane {
  border-top: none;
  min-height: 0;
}

.remediation-cwe__pane-body {
  min-height: 0;
  padding: 14px 16px 16px;
  gap: 10px;
}

.remediation-cwe__section {
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
}

.remediation-cwe__section-copy,
.remediation-cwe__guidance-text,
.remediation-cwe__guidance-bullet,
.remediation-cwe__insight-text {
  font-size: 0.82rem;
  line-height: 1.5;
}

.remediation-cwe__fact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.remediation-cwe__fact-row {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--dashboard-outline) 88%, transparent);
  background: color-mix(in srgb, var(--dashboard-soft-bg) 82%, rgba(255, 255, 255, 0.02));
}

.remediation-cwe__fact-row + .remediation-cwe__fact-row {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--dashboard-outline) 88%, transparent);
}

.remediation-cwe__fact-label {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remediation-cwe__fact-value .remediation-token-list {
  gap: 6px;
}

.remediation-cwe__fact-value .remediation-token {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 0.66rem;
}

.remediation-cwe__insight-list {
  gap: 8px;
}

.remediation-cwe__insight {
  padding: 10px 11px;
}

@media (max-width: 900px) {
  .remediation-cwe__hero-stats,
  .remediation-cwe__fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .remediation-cwe__list {
    max-height: none;
  }

  .remediation-cwe__hero-stats,
  .remediation-cwe__fact-list {
    grid-template-columns: 1fr;
  }
}

body.theme-light .remediation-cwe__fact-row {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

/* ── Remediation visual refinement ── */
.remediation-card--actions,
.remediation-card--cwe {
  --remediation-accent: #7aa2ff;
}

.remediation-actions__spotlight-card,
.remediation-actions__ladder,
.remediation-action,
.remediation-cwe__detail {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(22, 26, 34, 0.92), rgba(16, 19, 26, 0.96));
  box-shadow: none;
}

.remediation-actions__spotlight-card::before,
.remediation-actions__ladder::before,
.remediation-action::before {
  display: none;
}

.remediation-actions__spotlight-eyebrow,
.remediation-actions__ladder-title,
.remediation-actions__sequence-title,
.remediation-cwe__section-label,
.remediation-cwe__fact-label,
.remediation-cwe__hero-stat-label,
.remediation-cwe__hero-samples-label {
  letter-spacing: 0.09em;
  color: rgba(148, 163, 184, 0.82);
}

.remediation-actions__spotlight-title,
.remediation-action__title,
.remediation-cwe__hero-id,
.remediation-cwe__insight-title {
  color: #edf3ff;
}

.remediation-actions__spotlight-context,
.remediation-actions__spotlight-footer,
.remediation-actions__spotlight-footer-label,
.remediation-actions__spotlight-footer-meta,
.remediation-actions__why-score-label,
.remediation-actions__why-fact,
.remediation-action__meta,
.remediation-inline-list,
.remediation-cwe__hero-name,
.remediation-cwe__hero-mix-label,
.remediation-cwe__hero-narrative,
.remediation-cwe__guidance-text,
.remediation-cwe__guidance-bullet,
.remediation-cwe__section-copy,
.remediation-cwe__insight-text,
.remediation-cwe__fact-value {
  color: rgba(203, 213, 225, 0.8);
}

.remediation-actions__spotlight-stats {
  gap: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 10px 0;
}

.remediation-actions__spotlight-stat {
  padding: 0 14px;
  border: none;
  border-radius: 0;
  background: none;
}

.remediation-actions__spotlight-stat + .remediation-actions__spotlight-stat {
  border-left: 1px solid rgba(148, 163, 184, 0.12);
}

.remediation-actions__spotlight-stat-value,
.remediation-actions__why-score-value,
.remediation-action__coverage-value,
.remediation-cwe__hero-stat-value {
  color: #f3f7ff;
}

.remediation-actions__spotlight-footer {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.remediation-actions__why-summary {
  gap: 10px;
}

.remediation-actions__why-score-value {
  font-size: 2.4rem;
}

.remediation-actions__why-facts {
  gap: 10px 14px;
}

.remediation-actions__why-fact {
  min-height: 0;
  padding: 0 0 0 12px;
  border: none;
  border-radius: 0;
  background: none;
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
}

.remediation-actions__why-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(122, 162, 255, 0.9);
}

.remediation-action {
  padding: 12px 14px 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.remediation-action__row {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.remediation-action__top {
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
  gap: 12px;
  align-items: start;
}

.remediation-action__coverage {
  min-width: 72px;
}

.remediation-action__coverage-label {
  color: rgba(148, 163, 184, 0.76);
}

.remediation-action__progress-track,
.remediation-actions__ladder-track {
  background: rgba(100, 116, 139, 0.18);
}

.remediation-actions__ladder-fill,
.remediation-action__progress-track .remediation-severity-rail__segment--critical,
.remediation-severity-rail__segment--critical {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.remediation-severity-rail__segment--high {
  background: #fb923c;
}

.remediation-severity-rail__segment--medium {
  background: #facc15;
}

.remediation-severity-rail__segment--low {
  background: #34d399;
}

.remediation-actions__ladder[data-tone="critical"] .remediation-actions__ladder-fill {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.remediation-actions__ladder[data-tone="high"] .remediation-actions__ladder-fill {
  background: linear-gradient(90deg, #fb923c, #f97316);
}

.remediation-actions__ladder[data-tone="medium"] .remediation-actions__ladder-fill {
  background: linear-gradient(90deg, #facc15, #eab308);
}

.remediation-actions__ladder[data-tone="low"] .remediation-actions__ladder-fill {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.remediation-actions__ladder[data-tone="critical"] .remediation-actions__why-score-value,
.remediation-actions__ladder[data-tone="critical"] .remediation-actions__why-block-value,
.remediation-action[data-tone="critical"] .remediation-action__coverage-value,
.remediation-actions__spotlight-card[data-tone="critical"] .remediation-actions__spotlight-stat-value,
.remediation-cwe__hero-severity[data-tone="critical"] {
  color: #f87171;
}

.remediation-actions__ladder[data-tone="high"] .remediation-actions__why-score-value,
.remediation-actions__ladder[data-tone="high"] .remediation-actions__why-block-value,
.remediation-action[data-tone="high"] .remediation-action__coverage-value,
.remediation-actions__spotlight-card[data-tone="high"] .remediation-actions__spotlight-stat-value,
.remediation-cwe__hero-severity[data-tone="high"] {
  color: #fb923c;
}

.remediation-actions__ladder[data-tone="medium"] .remediation-actions__why-score-value,
.remediation-actions__ladder[data-tone="medium"] .remediation-actions__why-block-value,
.remediation-action[data-tone="medium"] .remediation-action__coverage-value,
.remediation-actions__spotlight-card[data-tone="medium"] .remediation-actions__spotlight-stat-value,
.remediation-cwe__hero-severity[data-tone="medium"] {
  color: #facc15;
}

.remediation-actions__ladder[data-tone="low"] .remediation-actions__why-score-value,
.remediation-actions__ladder[data-tone="low"] .remediation-actions__why-block-value,
.remediation-action[data-tone="low"] .remediation-action__coverage-value,
.remediation-actions__spotlight-card[data-tone="low"] .remediation-actions__spotlight-stat-value,
.remediation-cwe__hero-severity[data-tone="low"] {
  color: #34d399;
}

.remediation-cwe__item {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.015);
}

.remediation-cwe__item:hover,
.remediation-cwe__item:focus-visible {
  background: rgba(122, 162, 255, 0.06);
  border-color: rgba(122, 162, 255, 0.3);
}

.remediation-cwe__item.is-active,
.remediation-cwe__item[data-tone="critical"].is-active,
.remediation-cwe__item[data-tone="high"].is-active,
.remediation-cwe__item[data-tone="medium"].is-active,
.remediation-cwe__item[data-tone="low"].is-active {
  background: linear-gradient(90deg, rgba(122, 162, 255, 0.12), rgba(122, 162, 255, 0.03));
  border-color: rgba(122, 162, 255, 0.42);
  box-shadow: inset 2px 0 0 #7aa2ff;
}

.remediation-cwe__item[data-tone="critical"].is-active {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.13), rgba(248, 113, 113, 0.03));
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow: inset 2px 0 0 #f87171;
}

.remediation-cwe__item[data-tone="high"].is-active {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.13), rgba(251, 146, 60, 0.03));
  border-color: rgba(251, 146, 60, 0.38);
  box-shadow: inset 2px 0 0 #fb923c;
}

.remediation-cwe__item[data-tone="medium"].is-active {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.12), rgba(250, 204, 21, 0.03));
  border-color: rgba(250, 204, 21, 0.34);
  box-shadow: inset 2px 0 0 #facc15;
}

.remediation-cwe__item[data-tone="low"].is-active {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.12), rgba(52, 211, 153, 0.03));
  border-color: rgba(52, 211, 153, 0.34);
  box-shadow: inset 2px 0 0 #34d399;
}

.remediation-cwe__hero-stats {
  gap: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

.remediation-cwe__hero-stat {
  border: none;
  border-radius: 0;
  background: none;
}

.remediation-cwe__hero-stat + .remediation-cwe__hero-stat {
  border-left: 1px solid rgba(148, 163, 184, 0.12);
}

.remediation-cwe__hero-mix,
.remediation-cwe__hero-narrative {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.remediation-cwe__section {
  padding: 10px 0;
  border: none;
  border-radius: 0;
  background: none;
}

.remediation-cwe__section + .remediation-cwe__section {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.remediation-cwe__fact-row,
.remediation-cwe__insight {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.remediation-cwe__fact-row + .remediation-cwe__fact-row {
  padding-top: 10px;
  border-top: none;
}

.remediation-token {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 232, 240, 0.92);
}

body.theme-light .remediation-actions__spotlight-card,
body.theme-light .remediation-actions__ladder,
body.theme-light .remediation-action,
body.theme-light .remediation-cwe__detail {
  border-color: rgba(40, 58, 95, 0.12);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(241, 245, 252, 0.96));
}

body.theme-light .remediation-actions__spotlight-card::before,
body.theme-light .remediation-actions__ladder::before,
body.theme-light .remediation-action::before {
  display: none;
}

body.theme-light .remediation-actions__spotlight-stat + .remediation-actions__spotlight-stat,
body.theme-light .remediation-cwe__hero-stat + .remediation-cwe__hero-stat,
body.theme-light .remediation-cwe__section + .remediation-cwe__section,
body.theme-light .remediation-actions__spotlight-stats,
body.theme-light .remediation-actions__spotlight-footer {
  border-color: rgba(40, 58, 95, 0.1);
}

body.theme-light .remediation-actions__why-fact,
body.theme-light .remediation-actions__spotlight-context,
body.theme-light .remediation-action__meta,
body.theme-light .remediation-cwe__hero-name,
body.theme-light .remediation-cwe__hero-mix-label,
body.theme-light .remediation-cwe__hero-narrative,
body.theme-light .remediation-cwe__guidance-text,
body.theme-light .remediation-cwe__guidance-bullet,
body.theme-light .remediation-cwe__section-copy,
body.theme-light .remediation-cwe__insight-text,
body.theme-light .remediation-cwe__fact-value {
  color: #475569;
  background: none;
  border: none;
}

body.theme-light .remediation-actions__spotlight-title,
body.theme-light .remediation-action__title,
body.theme-light .remediation-cwe__hero-id,
body.theme-light .remediation-cwe__insight-title,
body.theme-light .remediation-actions__spotlight-stat-value,
body.theme-light .remediation-actions__why-score-value,
body.theme-light .remediation-action__coverage-value,
body.theme-light .remediation-cwe__hero-stat-value {
  color: #0f172a;
}

body.theme-light .remediation-cwe__item {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(40, 58, 95, 0.12);
}

body.theme-light .remediation-cwe__item:hover,
body.theme-light .remediation-cwe__item:focus-visible {
  background: rgba(122, 162, 255, 0.09);
  border-color: rgba(122, 162, 255, 0.24);
}

body.theme-light .remediation-cwe__item.is-active,
body.theme-light .remediation-cwe__item[data-tone="critical"].is-active,
body.theme-light .remediation-cwe__item[data-tone="high"].is-active,
body.theme-light .remediation-cwe__item[data-tone="medium"].is-active,
body.theme-light .remediation-cwe__item[data-tone="low"].is-active {
  background: linear-gradient(90deg, rgba(122, 162, 255, 0.14), rgba(122, 162, 255, 0.04));
  border-color: rgba(122, 162, 255, 0.34);
  box-shadow: inset 2px 0 0 #7aa2ff;
}

body.theme-light .remediation-cwe__item[data-tone="critical"].is-active {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.16), rgba(248, 113, 113, 0.04));
  border-color: rgba(248, 113, 113, 0.34);
  box-shadow: inset 2px 0 0 #f87171;
}

body.theme-light .remediation-cwe__item[data-tone="high"].is-active {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.16), rgba(251, 146, 60, 0.04));
  border-color: rgba(251, 146, 60, 0.32);
  box-shadow: inset 2px 0 0 #fb923c;
}

body.theme-light .remediation-cwe__item[data-tone="medium"].is-active {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.16), rgba(250, 204, 21, 0.04));
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: inset 2px 0 0 #facc15;
}

body.theme-light .remediation-cwe__item[data-tone="low"].is-active {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0.04));
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: inset 2px 0 0 #34d399;
}

body.theme-light .remediation-cwe__hero-stats,
body.theme-light .remediation-cwe__hero-mix,
body.theme-light .remediation-cwe__hero-narrative,
body.theme-light .remediation-cwe__fact-row,
body.theme-light .remediation-cwe__insight,
body.theme-light .remediation-token {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

/* ── Flat card backgrounds: remove glow/halo treatments ── */
.dashboard-risk-hero,
.dashboard-overview-card {
  background: linear-gradient(180deg, rgba(22, 26, 34, 0.96), rgba(16, 19, 26, 0.98));
}

.dashboard-risk-hero::before,
.dashboard-overview-card::before {
  display: none;
}

.risk-ring__fill {
  filter: none;
}

body.theme-light .dashboard-risk-hero,
body.theme-light .dashboard-overview-card {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(241, 245, 252, 0.96));
}

/* ── Overall risk refinement ── */
.dashboard-risk-hero {
  padding: 24px 26px;
  gap: 18px;
}

.dashboard-risk-hero__body {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.dashboard-risk-hero__gauge {
  justify-content: center;
  padding: 16px 14px;
  border: 1px solid var(--dashboard-outline);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-risk-badge {
  min-width: 88px;
  padding: 7px 16px;
  letter-spacing: 0.14em;
}

.dashboard-risk-hero__headline {
  justify-content: center;
  gap: 14px;
}

.dashboard-risk-summary {
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.62;
}

.dashboard-risk-highlights {
  gap: 8px;
}

.dashboard-risk-highlight {
  padding: 12px 14px;
  border: 1px solid var(--dashboard-outline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-risk-highlight__value {
  font-size: 1.9rem;
}

.dashboard-risk-pillars {
  gap: 8px;
}

.dashboard-risk-pillar {
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-risk-pillar__label {
  letter-spacing: 0.1em;
}

@media (max-width: 640px) {
  .dashboard-risk-hero {
    padding: 20px 18px;
  }
  .dashboard-risk-hero__body {
    grid-template-columns: 1fr;
  }
  .dashboard-risk-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-risk-pillars {
    grid-template-columns: 1fr;
  }
}

body.theme-light .dashboard-risk-hero__gauge,
body.theme-light .dashboard-risk-highlight,
body.theme-light .dashboard-risk-pillar {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.72);
}
body.theme-light .dashboard-hero-context__title {
  color: #0f172a;
}
body.theme-light .dashboard-hero-context__sub {
  color: #475569;
}

body.theme-light .remediation-action {
  border-color: rgba(40, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

/* ── Overall risk: more visual data, fewer inner boxes ── */
.dashboard-risk-hero {
  padding: 22px 24px 20px;
  gap: 16px;
}

.dashboard-risk-hero__body {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dashboard-risk-hero__gauge {
  justify-content: flex-start;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.risk-ring {
  width: 144px;
  height: 144px;
}

.risk-ring__track {
  stroke-width: 9;
}

.risk-ring__fill {
  stroke-width: 9;
}

.risk-ring__value {
  font-size: 2.9rem;
}

.dashboard-risk-hero__headline {
  gap: 18px;
}

.dashboard-risk-summary {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.58;
}

.dashboard-risk-highlights {
  gap: 18px;
  padding-top: 14px;
  border: none;
  border-top: 1px solid var(--dashboard-outline);
  border-radius: 0;
  background: none;
  overflow: visible;
}

.dashboard-risk-highlight {
  position: relative;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  padding: 10px 0 0;
  border: none;
  border-radius: 0;
  background: none;
  text-align: left;
}

.dashboard-risk-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

.dashboard-risk-highlight + .dashboard-risk-highlight {
  border-left: 1px solid var(--dashboard-outline);
  padding-left: 18px;
}

.dashboard-risk-highlight:nth-child(1)::before { background: #f87171; }
.dashboard-risk-highlight:nth-child(2)::before { background: #fb923c; }
.dashboard-risk-highlight:nth-child(3)::before { background: #a78bfa; }
.dashboard-risk-highlight:nth-child(4)::before { background: #63d2fc; }

.dashboard-risk-highlight__value {
  font-size: 1.7rem;
  line-height: 0.95;
}

.dashboard-risk-highlight__label {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.dashboard-risk-pillars {
  gap: 14px;
}

.dashboard-risk-pillar {
  position: relative;
  gap: 8px;
  padding: 10px 0 0;
  border: none;
  border-radius: 0;
  background: none;
}

.dashboard-risk-pillar::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

.dashboard-risk-pillar:nth-child(1)::before { background: #63d2fc; }
.dashboard-risk-pillar:nth-child(2)::before { background: #ffd05a; }
.dashboard-risk-pillar:nth-child(3)::before { background: #ff9340; }

.dashboard-risk-pillar__value {
  font-size: 1rem;
  font-weight: 800;
}

.dashboard-risk-pillar__track {
  height: 7px;
}

@media (max-width: 960px) {
  .dashboard-risk-hero__body {
    grid-template-columns: 1fr;
  }

  .dashboard-risk-hero__gauge {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .dashboard-risk-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-risk-highlight + .dashboard-risk-highlight {
    border-left: 1px solid var(--dashboard-outline);
  }

  .dashboard-risk-highlight:nth-child(3),
  .dashboard-risk-highlight:nth-child(4) {
    border-top: 1px solid var(--dashboard-outline);
    padding-top: 14px;
  }

  .dashboard-risk-highlight:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-risk-hero {
    padding: 20px 18px;
  }

  .dashboard-risk-hero__gauge {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-risk-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-risk-highlight + .dashboard-risk-highlight,
  .dashboard-risk-highlight:nth-child(3),
  .dashboard-risk-highlight:nth-child(4) {
    border-left: none;
    border-top: 1px solid var(--dashboard-outline);
    padding-left: 0;
    padding-top: 14px;
  }
}

body.theme-light .dashboard-risk-hero__gauge,
body.theme-light .dashboard-risk-highlights,
body.theme-light .dashboard-risk-pillar {
  background: none;
  border-color: rgba(40, 58, 95, 0.12);
}

/* ── Overall risk: rebuilt layout and stronger data graphics ── */
.dashboard-risk-hero {
  --risk-fill-color: #40c48f;
  --risk-track-gradient-soft:
    linear-gradient(90deg,
      rgba(64, 196, 143, 0.26) 0%,
      rgba(64, 196, 143, 0.26) 33%,
      rgba(255, 208, 90, 0.26) 58%,
      rgba(251, 146, 60, 0.28) 80%,
      rgba(248, 113, 113, 0.3) 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  grid-template-areas:
    "header header"
    "body signals"
    "help help";
  align-items: start;
  gap: 16px 18px;
  padding: 22px 22px 20px;
  border-left: 3px solid var(--risk-fill-color);
  font-family: Aptos, "Manrope", "Segoe UI", sans-serif;
  overflow: visible;
}

.dashboard-risk-hero[data-risk="low"] {
  --risk-fill-color: #40c48f;
}

.dashboard-risk-hero[data-risk="medium"] {
  --risk-fill-color: #ffd05a;
}

.dashboard-risk-hero[data-risk="high"] {
  --risk-fill-color: #fb923c;
}

.dashboard-risk-hero[data-risk="very-high"] {
  --risk-fill-color: #f08a48;
}

.dashboard-risk-hero[data-risk="critical"] {
  --risk-fill-color: #f87171;
}

.dashboard-risk-hero > .panel-header {
  grid-area: header;
}

.dashboard-risk-hero > .dashboard-hero-context__sub {
  grid-area: help;
  margin: 2px 0 0;
  padding: 10px 0 0;
  max-width: none;
  border-top: 1px solid var(--dashboard-outline);
  font-size: clamp(0.93rem, 0.88rem + 0.16vw, 1rem);
  line-height: 1.56;
}

.dashboard-risk-hero__body {
  grid-area: body;
  display: grid;
  grid-template-columns: minmax(156px, 176px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  align-self: stretch;
  min-height: 360px;
}

.dashboard-risk-hero__gauge {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
  align-self: start;
  justify-self: start;
  width: 170px;
  max-width: 170px;
  margin: 0;
  padding-top: 0;
  text-align: left;
}

.dashboard-risk-score-kicker {
  display: block;
  text-align: left;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(0.74rem, 0.71rem + 0.08vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--dashboard-muted-text) 86%, #c9d6ff 14%);
  opacity: 0.86;
}

.dashboard-risk-gauge-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.dashboard-risk-gauge-module::before,
.dashboard-risk-gauge-module::after {
  content: none;
}

.risk-ring {
  position: relative;
  width: 152px;
  height: 152px;
  filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--risk-fill-color) 10%, transparent));
}

.risk-ring__track,
.risk-ring__fill {
  stroke-width: 6;
}

.risk-ring__track {
  stroke: color-mix(in srgb, var(--risk-fill-color) 12%, rgba(148, 163, 184, 0.34));
}

.risk-ring__fill {
  stroke: url(#riskRingGradient);
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--risk-fill-color) 20%, transparent));
}

.risk-ring::before {
  content: none;
}

.risk-ring::after {
  content: none;
}

#riskRingGradientStart {
  stop-color: color-mix(in srgb, var(--risk-fill-color) 82%, #ffffff 18%);
}

#riskRingGradientMid {
  stop-color: color-mix(in srgb, var(--risk-fill-color) 92%, #ffffff 8%);
}

#riskRingGradientEnd {
  stop-color: color-mix(in srgb, var(--risk-fill-color) 84%, #000000 16%);
}

.risk-ring__value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.04em;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 3.1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--dashboard-title-text) 96%, #dbeafe 4%);
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.34);
}

.risk-ring__value-int {
  line-height: 1;
  letter-spacing: -0.04em;
}

.risk-ring__value-decimal {
  font-size: 0.32em;
  line-height: 1;
  font-weight: 700;
  position: relative;
  top: -0.55em;
  letter-spacing: -0.01em;
  opacity: 0.78;
}

.risk-ring__label {
  margin-top: 1px;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: color-mix(in srgb, var(--dashboard-muted-text) 76%, transparent);
  opacity: 0.68;
}

.risk-ring__center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68%;
  height: 68%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(7, 12, 23, 0.46), rgba(4, 8, 16, 0.64));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.risk-ring__center::before {
  content: none;
}

.dashboard-risk-badge {
  --badge-color: var(--risk-color, var(--risk-fill-color));
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--badge-color) 30%, rgba(148, 163, 184, 0.38));
  background: color-mix(in srgb, var(--badge-color) 9%, rgba(6, 12, 23, 0.74));
  color: color-mix(in srgb, var(--badge-color) 58%, #eaf0ff 42%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.dashboard-risk-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--badge-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--badge-color) 20%, transparent);
  flex: 0 0 auto;
}

.risk-level-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.risk-level-stack__item {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.22);
  transition: color 0.35s ease, font-size 0.35s ease, text-shadow 0.35s ease;
}

.risk-level-stack[data-risk="low"] [data-level="low"] {
  font-size: 1.0rem;
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.45);
}

.risk-level-stack[data-risk="medium"] [data-level="medium"] {
  font-size: 1.0rem;
  color: #ffb84d;
  text-shadow: 0 0 10px rgba(255, 184, 77, 0.45);
}

.risk-level-stack[data-risk="high"] [data-level="high"],
.risk-level-stack[data-risk="very-high"] [data-level="high"] {
  font-size: 1.0rem;
  color: #ff7b5c;
  text-shadow: 0 0 10px rgba(255, 123, 92, 0.45);
}

.risk-level-stack[data-risk="critical"] [data-level="critical"] {
  font-size: 1.0rem;
  color: #f87171;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.45);
}

.dashboard-risk-hero__headline {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-items: start;
  align-content: stretch;
  gap: 16px;
  min-width: 0;
  min-height: 100%;
  padding-top: 0;
}

.dashboard-risk-meter {
  width: 100%;
  gap: 8px;
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.dashboard-risk-meter__track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--risk-track-gradient-soft);
}

.dashboard-risk-meter__track::before {
  content: none;
}

.dashboard-risk-meter__fill {
  position: relative;
  z-index: 1;
  background: var(--risk-fill-color);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--risk-fill-color) 30%, transparent);
}

.dashboard-risk-meter__labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  opacity: 0.84;
}
.dashboard-risk-meter__labels > span:nth-child(2),
.dashboard-risk-meter__labels > span:nth-child(3) {
  text-align: center;
}
.dashboard-risk-meter__labels > span:nth-child(4) {
  text-align: right;
}

.dashboard-risk-summary {
  max-width: none;
  margin: 0;
  font-size: 1.12rem;
  font-weight: 620;
  line-height: 1.4;
  color: var(--dashboard-title-text);
}

.dashboard-risk-summary-meta {
  margin: 0;
  font-size: clamp(0.94rem, 0.91rem + 0.12vw, 1rem);
  line-height: 1.52;
  color: var(--dashboard-muted-text);
}

.dashboard-risk-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(112px, 1fr);
  gap: 20px 18px;
  align-items: start;
  align-content: stretch;
  align-self: stretch;
  margin: 0;
  padding: 16px 0 0;
  border: none;
  border-top: 1px solid var(--dashboard-outline);
  border-radius: 0;
  background: none;
  overflow: visible;
  width: 100%;
  max-width: none;
  min-height: 0;
}

.dashboard-risk-highlight,
.dashboard-risk-highlight + .dashboard-risk-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  justify-content: stretch;
  justify-items: stretch;
  align-content: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 112px;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
}

.dashboard-risk-highlight::before,
.dashboard-risk-pillar::before {
  content: none;
}

.dashboard-risk-highlight__head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.dashboard-risk-highlight__value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  width: 100%;
  gap: 12px;
  min-width: 0;
}

.dashboard-risk-highlight__label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}

.dashboard-risk-highlight__value {
  font-size: 2.5rem;
  line-height: 0.95;
}

.dashboard-risk-delta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  text-align: right;
  min-height: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(167, 184, 222, 0.8);
}

.dashboard-risk-delta:empty {
  display: none;
}

.dashboard-risk-delta[data-trend="up"] {
  color: #f87171;
}

.dashboard-risk-delta[data-trend="down"] {
  color: #34d399;
}

.dashboard-risk-delta[data-trend="flat"] {
  color: rgba(167, 184, 222, 0.8);
}

.dashboard-risk-highlight__meter {
  display: block;
  width: 100%;
  min-width: 0;
  height: 5px;
  margin-top: auto;
  border-radius: 999px;
  overflow: hidden;
  background: var(--dashboard-track);
}

.dashboard-risk-highlight__meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-risk-highlight[data-tone="critical"] .dashboard-risk-highlight__value { color: #f87171; }
.dashboard-risk-highlight[data-tone="critical"] .dashboard-risk-highlight__meter-fill { background: linear-gradient(90deg, #fb7185 0%, #ef4444 100%); }
.dashboard-risk-highlight[data-tone="high"] .dashboard-risk-highlight__value { color: #fb923c; }
.dashboard-risk-highlight[data-tone="high"] .dashboard-risk-highlight__meter-fill { background: linear-gradient(90deg, #fb923c 0%, #f97316 100%); }
.dashboard-risk-highlight[data-tone="kev"] .dashboard-risk-highlight__value { color: #a78bfa; }
.dashboard-risk-highlight[data-tone="kev"] .dashboard-risk-highlight__meter-fill { background: linear-gradient(90deg, #8b5cf6 0%, #c084fc 100%); }
.dashboard-risk-highlight[data-tone="cvss"] .dashboard-risk-highlight__value { color: #63d2fc; }
.dashboard-risk-highlight[data-tone="cvss"] .dashboard-risk-highlight__meter-fill { background: linear-gradient(90deg, #38bdf8 0%, #67e8f9 100%); }

.dashboard-risk-pillars {
  grid-area: signals;
  grid-template-columns: 1fr;
  gap: 14px;
  align-self: stretch;
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid var(--dashboard-outline);
}

.dashboard-risk-pillars::before {
  content: "Risk signals";
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dashboard-muted-text);
}

.dashboard-risk-pillar {
  gap: 10px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.dashboard-risk-pillar + .dashboard-risk-pillar {
  padding-top: 14px;
  border-top: 1px solid var(--dashboard-outline);
}

.dashboard-risk-pillar__top {
  align-items: end;
}

.dashboard-risk-pillar__label {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
}

.dashboard-risk-pillar__value {
  font-size: 1.72rem;
  line-height: 0.95;
}

.dashboard-risk-pillar__track {
  height: 5px;
}

.dashboard-risk-pillar[data-tone="exposure"] .dashboard-risk-pillar__track {
  height: 8px;
}

.dashboard-risk-pillar[data-tone="exposure"] .dashboard-risk-pillar__value { color: #63d2fc; }
.dashboard-risk-pillar[data-tone="severity"] .dashboard-risk-pillar__value { color: #ffd05a; }
.dashboard-risk-pillar[data-tone="kev-pressure"] .dashboard-risk-pillar__value { color: #ff9340; }
.dashboard-risk-pillar[data-tone="patch-debt"] .dashboard-risk-pillar__value { color: #facc15; }

.dashboard-risk-pillar[data-tone="exposure"] .dashboard-risk-pillar__fill { background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 100%); }
.dashboard-risk-pillar[data-tone="severity"] .dashboard-risk-pillar__fill { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.dashboard-risk-pillar[data-tone="kev-pressure"] .dashboard-risk-pillar__fill { background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%); }
.dashboard-risk-pillar[data-tone="patch-debt"] .dashboard-risk-pillar__fill { background: linear-gradient(90deg, #facc15 0%, #fde047 100%); }

.dashboard-risk-delta--pillar {
  margin-top: -2px;
}

@media (max-width: 1320px) {
  .dashboard-risk-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "body"
      "signals"
      "help";
  }

  .dashboard-risk-hero__body {
    min-height: 0;
  }

  .dashboard-risk-hero__headline {
    min-height: 0;
    gap: 14px;
  }

  .dashboard-risk-highlights {
    grid-auto-rows: auto;
    align-self: auto;
  }

  .dashboard-risk-pillars {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--dashboard-outline);
    padding-top: 14px;
  }

  .dashboard-risk-highlights {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .dashboard-risk-hero__body {
    grid-template-columns: 1fr;
    gap: 20px;
    align-self: start;
  }

  .dashboard-risk-hero__gauge {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    align-self: start;
    justify-self: start;
    width: 170px;
    max-width: 100%;
    margin: 0;
  }

  .dashboard-risk-gauge-module {
    padding: 0;
  }

  .dashboard-risk-highlights {
    margin-top: 0;
    grid-auto-rows: minmax(98px, auto);
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-risk-hero {
    padding: 20px 18px;
  }

  .dashboard-risk-hero__gauge {
    flex-direction: column;
    align-items: stretch;
    justify-self: start;
    width: 156px;
    max-width: 100%;
    margin: 0;
    padding-top: 0;
  }

  .dashboard-risk-gauge-module {
    padding: 0;
  }

  .risk-ring {
    width: 136px;
    height: 136px;
  }

  .dashboard-risk-highlights {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(90px, auto);
  }

  .dashboard-risk-score-kicker {
    font-size: 0.68rem;
  }

  .risk-ring__value {
    font-size: 2.62rem;
  }

  .dashboard-risk-highlight__value {
    font-size: 1.9rem;
  }

  .dashboard-risk-highlight__value-row {
    gap: 8px;
  }
}

body.theme-light .dashboard-risk-meter,
body.theme-light .dashboard-risk-highlights,
body.theme-light .dashboard-risk-pillars {
  background: none;
  border-color: rgba(40, 58, 95, 0.12);
}

body.theme-light .dashboard-risk-delta {
  color: rgba(71, 85, 105, 0.78);
}

body.theme-light .dashboard-risk-delta[data-trend="up"] {
  color: #dc2626;
}

body.theme-light .dashboard-risk-delta[data-trend="down"] {
  color: #059669;
}

body.theme-light .dashboard-risk-summary-meta {
  color: #475569;
}

body.theme-light .dashboard-risk-gauge-module {
  border: none;
  background: none;
  box-shadow: none;
}

body.theme-light .risk-ring__center {
  border-color: rgba(40, 58, 95, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(226, 232, 240, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

body.theme-light .dashboard-risk-badge {
  background: color-mix(in srgb, var(--badge-color) 16%, rgba(241, 245, 255, 0.95));
  border-color: color-mix(in srgb, var(--badge-color) 42%, rgba(71, 85, 105, 0.2));
}

body.theme-light .dashboard-risk-meter__track {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    linear-gradient(90deg,
      rgba(22, 163, 74, 0.22) 0%,
      rgba(22, 163, 74, 0.22) 33%,
      rgba(202, 138, 4, 0.24) 58%,
      rgba(234, 88, 12, 0.25) 80%,
      rgba(220, 38, 38, 0.26) 100%);
}

/* Minimal backoffice refresh */
.backoffice-body.theme-light {
  margin: 0;
  min-height: 100vh;
  font-family: Aptos, "Trebuchet MS", "Segoe UI", sans-serif;
  color: #142033;
  background:
    radial-gradient(circle at top left, rgba(220, 232, 248, 0.85), transparent 32%),
    linear-gradient(180deg, #fbf8f1 0%, #f4efe6 100%);
}

.backoffice-body.theme-light .bo-minimal-shell {
  width: min(1480px, calc(100vw - 56px));
  margin: 28px auto 52px;
  display: grid;
  gap: 22px;
}

.backoffice-body.theme-light .bo-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.backoffice-body.theme-light .bo-topbar__eyebrow {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #896b44;
}

.backoffice-body.theme-light .bo-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #132238;
}

.backoffice-body.theme-light .bo-topbar__subtitle {
  margin: 10px 0 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.5;
  color: #5b6878;
}

.backoffice-body.theme-light .bo-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.backoffice-body.theme-light .bo-meta-strip {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.backoffice-body.theme-light .bo-meta-strip__group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.backoffice-body.theme-light .bo-meta-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 32, 51, 0.08);
}

.backoffice-body.theme-light .bo-meta-pill span,
.backoffice-body.theme-light .bo-inline-stat span,
.backoffice-body.theme-light .bo-section-label,
.backoffice-body.theme-light .bo-field__label,
.backoffice-body.theme-light .bo-tenant-facts dt,
.backoffice-body.theme-light .bo-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #766956;
}

.backoffice-body.theme-light .bo-meta-pill strong {
  color: #17263f;
  font-size: 0.88rem;
}

.backoffice-body.theme-light .bo-status-message {
  margin: 0;
  min-height: 20px;
  font-size: 0.92rem;
  color: #5b6878;
}

.backoffice-body.theme-light .bo-status-message[data-type="success"] {
  color: #126b49;
}

.backoffice-body.theme-light .bo-status-message[data-type="error"] {
  color: #b42318;
}

.backoffice-body.theme-light .bo-status-message[data-type="warn"] {
  color: #9a6500;
}

.backoffice-body.theme-light .bo-inline-stats {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.backoffice-body.theme-light .bo-inline-stat {
  display: grid;
  gap: 6px;
}

.backoffice-body.theme-light .bo-inline-stat strong {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #122237;
}

.backoffice-body.theme-light .bo-inline-stat--wide strong {
  font-size: 1.32rem;
}

.backoffice-body.theme-light .bo-tenant-console--minimal {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.backoffice-body.theme-light .bo-tenant-sidebar,
.backoffice-body.theme-light .bo-tenant-main,
.backoffice-body.theme-light .bo-tenant-detail {
  display: grid;
  gap: 18px;
  align-content: start;
}

.backoffice-body.theme-light .bo-tenant-sidebar {
  position: sticky;
  top: 18px;
}

.backoffice-body.theme-light .bo-section-heading,
.backoffice-body.theme-light .bo-users-toolbar,
.backoffice-body.theme-light .bo-tenant-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.backoffice-body.theme-light .bo-section-heading h2,
.backoffice-body.theme-light .bo-section-heading h3,
.backoffice-body.theme-light .bo-empty-state h2,
.backoffice-body.theme-light .bo-tenant-header h2 {
  margin: 0;
  color: #132238;
  letter-spacing: -0.03em;
}

.backoffice-body.theme-light .bo-empty-state {
  padding: 18px 0 10px;
}

.backoffice-body.theme-light .bo-empty-state p:last-child {
  margin: 8px 0 0;
  max-width: 620px;
  color: #5b6878;
  line-height: 1.6;
}

.backoffice-body.theme-light .bo-count-pill,
.backoffice-body.theme-light .bo-usage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(22, 34, 57, 0.06);
  border: 1px solid rgba(22, 34, 57, 0.1);
  color: #243959;
  font-size: 0.82rem;
  white-space: nowrap;
}

.backoffice-body.theme-light .bo-list-controls,
.backoffice-body.theme-light .bo-inline-form {
  display: grid;
  gap: 12px;
}

.backoffice-body.theme-light .bo-inline-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.backoffice-body.theme-light .bo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.backoffice-body.theme-light .bo-input,
.backoffice-body.theme-light .bo-select,
.backoffice-body.theme-light .bo-search {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(18, 34, 56, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #132238;
  padding: 0 14px;
  box-shadow: none;
}

.backoffice-body.theme-light .bo-input::placeholder,
.backoffice-body.theme-light .bo-search::placeholder {
  color: #8a94a3;
}

.backoffice-body.theme-light .bo-input:focus,
.backoffice-body.theme-light .bo-select:focus,
.backoffice-body.theme-light .bo-search:focus {
  outline: none;
  border-color: rgba(54, 93, 156, 0.52);
  box-shadow: 0 0 0 3px rgba(54, 93, 156, 0.12);
}

.backoffice-body.theme-light .bo-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.backoffice-body.theme-light .bo-btn--secondary {
  background: #18385f;
  color: #ffffff;
}

.backoffice-body.theme-light .bo-btn--secondary:hover,
.backoffice-body.theme-light .bo-btn--secondary:focus-visible {
  background: #214874;
}

.backoffice-body.theme-light .bo-btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(19, 34, 56, 0.12);
  color: #18385f;
}

.backoffice-body.theme-light .bo-btn--ghost:hover,
.backoffice-body.theme-light .bo-btn--ghost:focus-visible {
  background: rgba(233, 240, 249, 0.92);
  border-color: rgba(19, 34, 56, 0.18);
}

.backoffice-body.theme-light .bo-btn--danger {
  background: #fff3f1;
  border-color: rgba(180, 35, 24, 0.18);
  color: #b42318;
}

.backoffice-body.theme-light .bo-btn--danger:hover:not([disabled]),
.backoffice-body.theme-light .bo-btn--danger:focus-visible:not([disabled]) {
  background: #ffe7e2;
}

.backoffice-body.theme-light .bo-btn--xs {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.backoffice-body.theme-light .bo-btn[disabled],
.backoffice-body.theme-light .bo-btn--danger[disabled] {
  opacity: 0.5;
}

.backoffice-body.theme-light .bo-tenant-list {
  display: grid;
  gap: 6px;
}

.backoffice-body.theme-light .bo-tenant-list__item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 14px 0;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.backoffice-body.theme-light .bo-tenant-list__item strong {
  color: #132238;
  font-size: 0.98rem;
}

.backoffice-body.theme-light .bo-tenant-list__item:hover,
.backoffice-body.theme-light .bo-tenant-list__item:focus-visible {
  outline: none;
  border-bottom-color: rgba(36, 72, 118, 0.24);
  background: transparent;
}

.backoffice-body.theme-light .bo-tenant-list__item.is-active {
  padding: 14px 14px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.07);
}

.backoffice-body.theme-light .bo-tenant-list__meta,
.backoffice-body.theme-light .bo-helper,
.backoffice-body.theme-light .bo-pager__label {
  color: #6a7686;
}

.backoffice-body.theme-light .bo-tenant-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.backoffice-body.theme-light .bo-tenant-facts div {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.backoffice-body.theme-light .bo-tenant-facts dd {
  margin: 6px 0 0;
  color: #162741;
  font-size: 0.94rem;
  line-height: 1.55;
  word-break: break-word;
}

.backoffice-body.theme-light .bo-inline-form-section {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.backoffice-body.theme-light .bo-table-wrap--minimal {
  border: 0;
  border-top: 1px solid rgba(20, 32, 51, 0.1);
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 0;
  overflow: auto;
}

.backoffice-body.theme-light .bo-table {
  min-width: 980px;
  border-collapse: collapse;
}

.backoffice-body.theme-light .bo-table thead th {
  padding: 14px 10px;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
}

.backoffice-body.theme-light .bo-table tbody td {
  padding: 12px 10px;
  color: #162741;
  border-top: 1px solid rgba(20, 32, 51, 0.08);
  vertical-align: middle;
}

.backoffice-body.theme-light .bo-table tbody tr:hover td {
  background: rgba(24, 56, 95, 0.035);
}

.backoffice-body.theme-light .bo-table__empty {
  color: #6a7686;
  text-align: center;
}

.backoffice-body.theme-light .bo-status-stack,
.backoffice-body.theme-light .bo-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backoffice-body.theme-light .bo-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  background: rgba(255, 255, 255, 0.85);
  color: #405268;
  font-size: 0.73rem;
}

.backoffice-body.theme-light .bo-status-badge[data-tone="success"] {
  border-color: rgba(18, 107, 73, 0.16);
  background: rgba(18, 107, 73, 0.09);
  color: #126b49;
}

.backoffice-body.theme-light .bo-status-badge[data-tone="warn"] {
  border-color: rgba(154, 101, 0, 0.18);
  background: rgba(154, 101, 0, 0.09);
  color: #9a6500;
}

.backoffice-body.theme-light .bo-pager {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 2px;
}

.backoffice-body.theme-light .bo-form__actions--inline {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .backoffice-body.theme-light .bo-inline-stats,
  .backoffice-body.theme-light .bo-tenant-console--minimal,
  .backoffice-body.theme-light .bo-tenant-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .backoffice-body.theme-light .bo-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backoffice-body.theme-light .bo-tenant-sidebar {
    position: static;
  }
}

@media (max-width: 780px) {
  .backoffice-body.theme-light .bo-minimal-shell {
    width: min(100vw - 24px, 1480px);
    margin-top: 18px;
    gap: 18px;
  }

  .backoffice-body.theme-light .bo-topbar,
  .backoffice-body.theme-light .bo-users-toolbar,
  .backoffice-body.theme-light .bo-tenant-header {
    align-items: flex-start;
  }

  .backoffice-body.theme-light .bo-topbar,
  .backoffice-body.theme-light .bo-topbar__actions {
    flex-direction: column;
  }

  .backoffice-body.theme-light .bo-topbar__actions,
  .backoffice-body.theme-light .bo-btn {
    width: 100%;
  }

  .backoffice-body.theme-light .bo-inline-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .backoffice-body.theme-light .bo-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .backoffice-body.theme-light .bo-table {
    min-width: 860px;
  }
}

/* Backoffice minimal layout v2 */
.backoffice-body.theme-light {
  background: #f6f2ea;
  color: #142033;
}

.backoffice-body.theme-light .bo-workspace {
  width: min(1500px, calc(100vw - 44px));
  margin: 20px auto 40px;
  display: grid;
  gap: 18px;
}

.backoffice-body.theme-light .bo-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.12);
}

.backoffice-body.theme-light .bo-topline__title {
  display: grid;
  gap: 8px;
}

.backoffice-body.theme-light .bo-topline h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: #132238;
}

.backoffice-body.theme-light .bo-topline__side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.backoffice-body.theme-light .bo-session-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.86rem;
  color: #5b6878;
}

.backoffice-body.theme-light .bo-session-line__divider {
  color: rgba(20, 32, 51, 0.32);
}

.backoffice-body.theme-light .bo-topline__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.backoffice-body.theme-light .bo-status-message {
  margin: 0;
  min-height: 20px;
  font-size: 0.92rem;
  color: #5b6878;
}

.backoffice-body.theme-light .bo-status-message[data-type="success"] {
  color: #126b49;
}

.backoffice-body.theme-light .bo-status-message[data-type="error"] {
  color: #b42318;
}

.backoffice-body.theme-light .bo-status-message[data-type="warn"] {
  color: #9a6500;
}

.backoffice-body.theme-light .bo-simple-tabs {
  display: flex;
  gap: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.12);
}

.backoffice-body.theme-light .bo-simple-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #6a7686;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.backoffice-body.theme-light .bo-simple-tab.is-active {
  color: #132238;
  border-bottom-color: #132238;
}

.backoffice-body.theme-light .bo-screen {
  display: none;
}

.backoffice-body.theme-light .bo-screen.bo-screen--active {
  display: block;
}

.backoffice-body.theme-light .bo-grid-layout {
  display: grid;
  gap: 28px;
}

.backoffice-body.theme-light .bo-grid-layout--tenants {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
}

.backoffice-body.theme-light .bo-tenants-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.backoffice-body.theme-light .bo-tenants-split {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.backoffice-body.theme-light .bo-tenants-split > .bo-sidebar {
  height: 100%;
}

.backoffice-body.theme-light .bo-tenants-split > .bo-sidebar > .bo-panel-section {
  height: 100%;
  box-sizing: border-box;
}

.backoffice-body.theme-light .bo-grid-layout--users {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backoffice-body.theme-light .bo-sidebar,
.backoffice-body.theme-light .bo-main-column,
.backoffice-body.theme-light .bo-main-stack,
.backoffice-body.theme-light .bo-detail-stack {
  display: grid;
  gap: 22px;
  align-content: start;
}

.backoffice-body.theme-light .bo-sidebar {
  position: sticky;
  top: 18px;
}

.backoffice-body.theme-light .bo-panel-section {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.backoffice-body.theme-light .bo-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.backoffice-body.theme-light .bo-section-header--top {
  align-items: flex-start;
}

.backoffice-body.theme-light .bo-section-label,
.backoffice-body.theme-light .bo-field__label,
.backoffice-body.theme-light .bo-table thead th {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #766956;
}

.backoffice-body.theme-light .bo-section-header h2 {
  margin: 0;
  font-size: 1.34rem;
  letter-spacing: -0.04em;
  color: #132238;
}

.backoffice-body.theme-light .bo-inline-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 32, 51, 0.1);
  color: #18385f;
  font-size: 0.82rem;
  font-weight: 700;
}

.backoffice-body.theme-light .bo-empty-state {
  padding: 4px 0 10px;
}

.backoffice-body.theme-light .bo-empty-state h2 {
  margin: 0;
  font-size: 1.34rem;
  letter-spacing: -0.04em;
  color: #132238;
}

.backoffice-body.theme-light .bo-empty-state p:last-child {
  margin: 8px 0 0;
  color: #5b6878;
  line-height: 1.6;
  max-width: 620px;
}

.backoffice-body.theme-light .bo-inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.backoffice-body.theme-light .bo-inline-controls--stack {
  display: grid;
}

.backoffice-body.theme-light .bo-form-grid {
  display: grid;
  gap: 12px;
}

.backoffice-body.theme-light .bo-form-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.backoffice-body.theme-light .bo-form-grid--tenant {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backoffice-body.theme-light .bo-form-grid--tenant-create {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backoffice-body.theme-light .bo-form-grid--tenant-user {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.backoffice-body.theme-light .bo-panel-section--tenant-add-user-compact {
  padding: 16px 18px 18px;
  gap: 10px;
}

.backoffice-body.theme-light .bo-panel-section--tenant-add-user-compact .bo-section-header {
  margin-bottom: 8px;
}

.backoffice-body.theme-light .bo-form-grid--tenant-user-compact {
  grid-template-columns: minmax(240px, 1.6fr) minmax(140px, 1fr) minmax(160px, 1fr) minmax(110px, 0.8fr) auto;
  align-items: end;
  gap: 8px 10px;
}

.backoffice-body.theme-light .bo-form-grid--tenant-user-compact .bo-field {
  gap: 4px;
}

.backoffice-body.theme-light .bo-form-grid--tenant-user-compact .bo-field__label {
  margin-bottom: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.backoffice-body.theme-light .bo-form-grid--tenant-user-compact .bo-input,
.backoffice-body.theme-light .bo-form-grid--tenant-user-compact .bo-select {
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.backoffice-body.theme-light .bo-form-grid--tenant-user-compact .bo-form-actions {
  padding-top: 0;
  align-self: end;
}

.backoffice-body.theme-light .bo-form-grid--tenant-user-compact .bo-form-actions .bo-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.backoffice-body.theme-light .bo-form-grid--users-create {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}

.backoffice-body.theme-light .bo-form-grid--users-create .bo-field {
  gap: 4px;
}

.backoffice-body.theme-light .bo-form-grid--users-create .bo-input,
.backoffice-body.theme-light .bo-form-grid--users-create .bo-select {
  min-height: 40px;
}

.backoffice-body.theme-light .bo-form-actions--end {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.backoffice-body.theme-light .bo-field {
  display: grid;
  gap: 6px;
}

.backoffice-body.theme-light .bo-field--compact {
  gap: 5px;
}

.backoffice-body.theme-light .bo-field--full {
  grid-column: 1 / -1;
}

.backoffice-body.theme-light .bo-mini-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.backoffice-body.theme-light .bo-input,
.backoffice-body.theme-light .bo-select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(18, 34, 56, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #132238;
  padding: 0 14px;
  box-shadow: none;
}

.backoffice-body.theme-light .bo-input--file {
  min-height: 44px;
  height: auto;
  padding: 8px 12px;
}

.backoffice-body.theme-light .bo-field__hint {
  color: #6d7b8f;
}

.backoffice-body.theme-light .bo-tenants-split.bo-tenants-split--cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.backoffice-body.theme-light .bo-sidebar--tenant-grid {
  position: static;
  top: auto;
}

.backoffice-body.theme-light .bo-tenant-card {
  border-color: rgba(18, 34, 56, 0.15);
  background: rgba(255, 255, 255, 0.86);
}

.backoffice-body.theme-light .bo-tenant-card:hover,
.backoffice-body.theme-light .bo-tenant-card:focus-visible {
  border-color: rgba(41, 79, 140, 0.44);
  background: rgba(255, 255, 255, 0.98);
}

.backoffice-body.theme-light .bo-tenant-card.is-active,
.backoffice-body.theme-light .bo-tenant-card[aria-selected="true"] {
  border-color: rgba(37, 75, 138, 0.62);
  background: linear-gradient(160deg, rgba(223, 236, 255, 0.96), rgba(244, 249, 255, 0.99));
}

.backoffice-body.theme-light .bo-tenant-card.has-inline-editor {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  z-index: 3;
  box-shadow: none;
}

.backoffice-body.theme-light .bo-tenant-card.has-inline-editor::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -15px;
  height: 14px;
  background: rgba(244, 249, 255, 0.99);
  border-left: 1px solid rgba(37, 75, 138, 0.62);
  border-right: 1px solid rgba(37, 75, 138, 0.62);
}

.backoffice-body.theme-light .bo-tenant-card__logo-fallback {
  color: #1a3f70;
  border-color: rgba(47, 79, 132, 0.2);
  background: rgba(231, 241, 255, 0.65);
}

.backoffice-body.theme-light .bo-tenant-card__name {
  color: #132238;
}

.backoffice-body.theme-light .bo-tenant-card__subdomain {
  color: #6a7686;
}

.backoffice-body.theme-light .bo-tenant-inline-editor {
  border-color: rgba(54, 93, 156, 0.32);
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(20, 40, 80, 0.08);
}

.backoffice-body.theme-light .bo-select--small {
  min-height: 36px;
  min-width: 130px;
  padding: 0 10px;
}

.backoffice-body.theme-light .bo-input::placeholder {
  color: #8993a3;
}

.backoffice-body.theme-light .bo-input:focus,
.backoffice-body.theme-light .bo-select:focus {
  outline: none;
  border-color: rgba(54, 93, 156, 0.42);
  box-shadow: 0 0 0 3px rgba(54, 93, 156, 0.1);
}

.backoffice-body.theme-light .bo-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: none;
}

.backoffice-body.theme-light .bo-btn--secondary {
  background: #18385f;
  color: #ffffff;
}

.backoffice-body.theme-light .bo-btn--secondary:hover,
.backoffice-body.theme-light .bo-btn--secondary:focus-visible {
  background: #224870;
}

.backoffice-body.theme-light .bo-btn--ghost {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(19, 34, 56, 0.12);
  color: #18385f;
}

.backoffice-body.theme-light .bo-btn--ghost:hover,
.backoffice-body.theme-light .bo-btn--ghost:focus-visible {
  background: #ffffff;
}

.backoffice-body.theme-light .bo-btn--danger {
  background: #fff2ef;
  border-color: rgba(180, 35, 24, 0.18);
  color: #b42318;
}

.backoffice-body.theme-light .bo-btn--danger:hover:not([disabled]),
.backoffice-body.theme-light .bo-btn--danger:focus-visible:not([disabled]) {
  background: #ffe5e0;
}

.backoffice-body.theme-light .bo-btn--xs {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.backoffice-body.theme-light .bo-btn[disabled],
.backoffice-body.theme-light .bo-btn--danger[disabled] {
  opacity: 0.54;
}

.backoffice-body.theme-light .bo-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.backoffice-body.theme-light .bo-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.backoffice-body.theme-light .bo-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.backoffice-body.theme-light .bo-pager__label,
.backoffice-body.theme-light .bo-helper {
  color: #6a7686;
}

.backoffice-body.theme-light .bo-tenant-list {
  display: grid;
  gap: 8px;
}

.backoffice-body.theme-light .bo-tenant-list__item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: #5b6878;
  cursor: pointer;
}

.backoffice-body.theme-light .bo-tenant-list__item strong {
  color: #132238;
  font-size: 0.96rem;
}

.backoffice-body.theme-light .bo-tenant-list__item.is-active {
  border-color: rgba(24, 56, 95, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(20, 32, 51, 0.07);
}

.backoffice-body.theme-light .bo-table-wrap {
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 16px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.82);
}

.backoffice-body.theme-light .bo-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.backoffice-body.theme-light .bo-table thead th {
  padding: 14px 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
}

.backoffice-body.theme-light .bo-table tbody td {
  padding: 12px;
  color: #162741;
  border-top: 1px solid rgba(20, 32, 51, 0.08);
  vertical-align: top;
}

.backoffice-body.theme-light .bo-table tbody tr:hover td {
  background: rgba(24, 56, 95, 0.035);
}

.backoffice-body.theme-light .bo-table__empty {
  color: #6a7686;
  text-align: center;
}

.backoffice-body.theme-light .bo-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.backoffice-body.theme-light .bo-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.backoffice-body.theme-light .bo-user-editor-list {
  display: grid;
  gap: 16px;
}

.backoffice-body.theme-light .bo-user-editor-list--users {
  gap: 10px;
}

.backoffice-body.theme-light .bo-user-editor-row {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 32, 51, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(20, 32, 51, 0.04);
}

.backoffice-body.theme-light .bo-user-editor-row--users {
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
}

.backoffice-body.theme-light .bo-user-editor-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.backoffice-body.theme-light .bo-user-editor-row__identity {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.backoffice-body.theme-light .bo-user-editor-row__identity strong {
  color: #132238;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.backoffice-body.theme-light .bo-user-editor-row__identity span {
  color: #6a7686;
  font-size: 0.78rem;
  white-space: nowrap;
}

.backoffice-body.theme-light .bo-user-editor-row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.backoffice-body.theme-light .bo-user-editor-row__fields {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: end;
}

.backoffice-body.theme-light .bo-user-editor-row__fields--users {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.backoffice-body.theme-light .bo-user-editor-row--users .bo-user-editor-row__fields {
  gap: 6px;
}

.backoffice-body.theme-light .bo-user-editor-row--users .bo-input,
.backoffice-body.theme-light .bo-user-editor-row--users .bo-select {
  min-height: 32px;
  padding: 0 9px;
  font-size: 0.82rem;
}

.backoffice-body.theme-light .bo-user-card-body {
  border-top-color: var(--bo-border);
}

.backoffice-body.theme-light .bo-user-editor-row__actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.backoffice-body.theme-light .bo-user-editor-row__actions .bo-inline-group {
  gap: 8px;
}

.backoffice-body.theme-light .bo-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  background: rgba(255, 255, 255, 0.86);
  color: #405268;
  font-size: 0.73rem;
}

.backoffice-body.theme-light .bo-status-badge[data-tone="success"] {
  border-color: rgba(18, 107, 73, 0.16);
  background: rgba(18, 107, 73, 0.09);
  color: #126b49;
}

.backoffice-body.theme-light .bo-status-badge[data-tone="warn"] {
  border-color: rgba(154, 101, 0, 0.18);
  background: rgba(154, 101, 0, 0.09);
  color: #9a6500;
}

.backoffice-body.theme-light .bo-status-badge[data-tone="danger"] {
  border-color: rgba(180, 35, 24, 0.18);
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.backoffice-body.theme-light .bo-tenant-events-list {
  display: grid;
  gap: 8px;
}

.backoffice-body.theme-light .bo-tenant-event-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 32, 51, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.backoffice-body.theme-light .bo-tenant-event-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.backoffice-body.theme-light .bo-tenant-event-row__message {
  font-size: 0.9rem;
  font-weight: 600;
  color: #132238;
  line-height: 1.4;
}

.backoffice-body.theme-light .bo-tenant-event-row__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.backoffice-body.theme-light .bo-tenant-event-row__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: #6a7686;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

.backoffice-body.theme-light .bo-tenant-event-row__metadata {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.72rem;
  color: #6a7686;
  background: rgba(20, 32, 51, 0.03);
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-word;
  line-height: 1.6;
}

.backoffice-body.theme-light .bo-inline-group--events {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.backoffice-body.theme-light .bo-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backoffice-body.theme-light .bo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(24, 56, 95, 0.08);
  color: #18385f;
  font-size: 0.76rem;
}

.backoffice-body.theme-light .bo-tag--muted {
  background: rgba(20, 32, 51, 0.06);
  color: #6a7686;
}

.backoffice-body.theme-light .bo-subsection {
  display: grid;
  gap: 10px;
}

.backoffice-body.theme-light .bo-subsection--compact {
  gap: 4px;
}

.backoffice-body.theme-light .bo-linked-list {
  display: grid;
  gap: 10px;
}

.backoffice-body.theme-light .bo-linked-list--inline {
  gap: 4px;
}

.backoffice-body.theme-light .bo-linked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.backoffice-body.theme-light .bo-linked-item--compact {
  padding: 5px 7px;
  border-radius: 10px;
}

.backoffice-body.theme-light .bo-linked-item--compact .bo-linked-item__meta strong {
  font-size: 0.86rem;
}

.backoffice-body.theme-light .bo-linked-item__meta {
  display: grid;
  gap: 4px;
}

.backoffice-body.theme-light .bo-linked-item__meta strong {
  color: #132238;
  font-size: 0.92rem;
}

.backoffice-body.theme-light .bo-linked-item__meta span {
  color: #6a7686;
  font-size: 0.82rem;
}

.backoffice-body.theme-light .bo-inline-group--row-actions {
  gap: 8px;
  align-items: center;
}

.backoffice-body.theme-light .bo-static-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  background: rgba(255, 255, 255, 0.86);
  color: #18385f;
  font-weight: 700;
  font-size: 0.72rem;
}

.backoffice-body.theme-light .bo-static-pill--role {
  letter-spacing: 0.03em;
}

.backoffice-body.theme-light .bo-static-pill--muted {
  color: #6a7686;
  font-weight: 600;
}

.backoffice-body.theme-light .bo-user-editor-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.backoffice-body.theme-light .bo-user-editor-row__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: space-between;
}

.backoffice-body.theme-light .bo-inline-group--membership-link {
  gap: 5px;
  align-items: center;
}

.backoffice-body.theme-light .bo-inline-group--record-actions {
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}

.backoffice-body.theme-light .bo-table-stack {
  display: grid;
  gap: 10px;
}

.backoffice-body.theme-light .bo-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5b6878;
  font-size: 0.86rem;
}

.backoffice-body.theme-light .bo-main-stack--vuln {
  gap: 24px;
}

.backoffice-body.theme-light .bo-main-stack--vuln .bo-panel-section {
  padding: 18px 20px;
  border: 1px solid rgba(20, 32, 51, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 20px rgba(20, 32, 51, 0.04);
}

.backoffice-body.theme-light .bo-main-stack--vuln .bo-panel-section .bo-helper {
  margin-top: 6px;
}

.backoffice-body.theme-light .bo-vuln-panel-note {
  margin: -4px 0 2px;
  padding: 0;
  font-size: 0.8rem;
  color: #5f6f82;
  line-height: 1.45;
  text-align: left;
}

.backoffice-body.theme-light .bo-vuln-files-count {
  padding: 0 10px;
}

.backoffice-body.theme-light .bo-vuln-files-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 14px;
  background: rgba(245, 248, 252, 0.9);
}

.backoffice-body.theme-light .bo-vuln-files-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
}

.backoffice-body.theme-light .bo-vuln-files-toolbar__field {
  min-width: 185px;
  max-width: 220px;
}

.backoffice-body.theme-light .bo-vuln-files-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.backoffice-body.theme-light .bo-vuln-files-toolbar__hint {
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: #5f6f82;
  line-height: 1.45;
  text-align: left;
}

.backoffice-body.theme-light .bo-vuln-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backoffice-body.theme-light .bo-vuln-kpi {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.backoffice-body.theme-light .bo-vuln-kpi__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7686;
}

.backoffice-body.theme-light .bo-vuln-kpi__value {
  font-size: 1.32rem;
  line-height: 1.25;
  color: #132238;
}

.backoffice-body.theme-light .bo-vuln-kpi__value--small {
  font-size: 0.94rem;
  line-height: 1.45;
}

.backoffice-body.theme-light .bo-mapping-card {
  background: rgba(245, 248, 252, 0.95);
  border-color: rgba(20, 32, 51, 0.1);
  border-radius: 10px;
}

.backoffice-body.theme-light .bo-mapping-card__head {
  border-bottom-color: rgba(20, 32, 51, 0.08);
}

.backoffice-body.theme-light .bo-mapping-card__title {
  color: #132238;
}

.backoffice-body.theme-light .bo-mapping-card__date {
  color: #6a7686;
}

.backoffice-body.theme-light .bo-mapping-kpi-grid {
  background: rgba(20, 32, 51, 0.07);
}

.backoffice-body.theme-light .bo-mapping-kpi {
  background: #fff;
}

.backoffice-body.theme-light .bo-mapping-kpi__label {
  color: #6a7686;
}

.backoffice-body.theme-light .bo-mapping-kpi__value {
  color: #132238;
}

.backoffice-body.theme-light .bo-mapping-card__error-msg {
  color: #b42318;
}

.backoffice-body.theme-light .bo-vuln-subsection {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.backoffice-body.theme-light .bo-vuln-year-chart {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  background: rgba(245, 248, 252, 0.95);
}

.backoffice-body.theme-light .bo-vuln-year-chart .bo-helper {
  margin: 0;
  color: #6f7d8e;
}

.backoffice-body.theme-light .bo-vuln-year-chart__meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #687587;
}

.backoffice-body.theme-light .bo-vuln-year-chart__meta strong {
  color: #132238;
  letter-spacing: normal;
  font-size: 0.86rem;
}

.backoffice-body.theme-light .bo-vuln-year-chart__canvas {
  position: relative;
  overflow: visible;
  border-radius: 12px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 246, 251, 0.8));
  min-height: 236px;
}

.backoffice-body.theme-light .bo-vuln-year-chart__svg {
  display: block;
  width: 100%;
  height: 236px;
}

.backoffice-body.theme-light .bo-vuln-year-chart__grid-line {
  stroke: rgba(61, 85, 112, 0.16);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.backoffice-body.theme-light .bo-vuln-year-chart__area {
  fill: url(#boVulnYearAreaGradient);
}

.backoffice-body.theme-light .bo-vuln-year-chart__line {
  fill: none;
  stroke: #1d6fc7;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(29, 111, 199, 0.28));
}

.backoffice-body.theme-light .bo-vuln-year-chart__dot {
  fill: #1d6fc7;
  stroke: #ffffff;
  stroke-width: 1.6;
  transition: transform 0.18s ease, fill 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
  cursor: pointer;
}

.backoffice-body.theme-light .bo-vuln-year-chart__dot:hover,
.backoffice-body.theme-light .bo-vuln-year-chart__dot:focus {
  transform: scale(1.18);
  fill: #175ba5;
  outline: none;
}

.backoffice-body.theme-light .bo-vuln-year-chart__x-label,
.backoffice-body.theme-light .bo-vuln-year-chart__y-label {
  font-size: 11px;
  fill: #5f7187;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.backoffice-body.theme-light .bo-vuln-year-chart__tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  background: #132238;
  color: #f5f9ff;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 10px;
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.24);
  pointer-events: none;
  z-index: 2;
}

.backoffice-body.theme-light .bo-vuln-year-chart__tooltip[hidden] {
  display: none;
}

.backoffice-body.theme-light .bo-vuln-row-list {
  display: grid;
  gap: 14px;
}

.backoffice-body.theme-light .bo-vuln-search-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 14px;
  background: rgba(245, 248, 252, 0.9);
}

.backoffice-body.theme-light .bo-vuln-search-toolbar__field {
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 460px;
}

.backoffice-body.theme-light .bo-vuln-search-toolbar__field .bo-input {
  width: 100%;
}

.backoffice-body.theme-light .bo-vuln-search-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.backoffice-body.theme-light .bo-vuln-search-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #5f6f82;
  line-height: 1.45;
}

.backoffice-body.theme-light .bo-vuln-search-summary {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  background: rgba(245, 248, 252, 0.8);
  color: #223a5a;
  font-size: 0.8rem;
  line-height: 1.4;
}

.backoffice-body.theme-light .bo-vuln-search-results {
  min-height: 74px;
}

.backoffice-body.theme-light .bo-vuln-search-empty {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(20, 32, 51, 0.18);
  background: rgba(255, 255, 255, 0.85);
}

.backoffice-body.theme-light .bo-vuln-search-empty__title {
  color: #132238;
  font-size: 0.9rem;
  line-height: 1.3;
}

.backoffice-body.theme-light .bo-vuln-search-empty__text {
  margin: 0;
  color: #5f6f82;
  font-size: 0.79rem;
  line-height: 1.45;
}

.backoffice-body.theme-light .bo-vuln-row {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

.backoffice-body.theme-light .bo-vuln-row--compact {
  gap: 10px;
}

.backoffice-body.theme-light .bo-vuln-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.backoffice-body.theme-light .bo-vuln-row__head strong {
  color: #132238;
  font-size: 0.98rem;
  line-height: 1.4;
  word-break: break-word;
}

.backoffice-body.theme-light .bo-vuln-row__meta {
  margin: 0;
  color: #586678;
  font-size: 0.84rem;
  line-height: 1.45;
}

.backoffice-body.theme-light .bo-vuln-file-name {
  color: #1a3559;
  font-weight: 700;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.backoffice-body.theme-light .bo-vuln-row__error {
  margin: 0;
  color: #b42318;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.08);
}

.backoffice-body.theme-light .bo-vuln-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.backoffice-body.theme-light .bo-vuln-metrics {
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backoffice-body.theme-light .bo-vuln-metric {
  margin: 0;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  background: rgba(245, 248, 252, 0.88);
}

.backoffice-body.theme-light .bo-vuln-metric dt {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #687587;
}

.backoffice-body.theme-light .bo-vuln-metric dd {
  margin: 0;
  color: #132238;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}

.backoffice-body.theme-light .bo-vuln-countdown {
  font-variant-numeric: tabular-nums;
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

.backoffice-body.theme-light .bo-vuln-metric--success {
  border-color: rgba(18, 107, 73, 0.2);
  background: rgba(18, 107, 73, 0.08);
}

.backoffice-body.theme-light .bo-vuln-metric--warn {
  border-color: rgba(154, 101, 0, 0.2);
  background: rgba(154, 101, 0, 0.1);
}

.backoffice-body.theme-light .bo-vuln-metric--danger {
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(180, 35, 24, 0.08);
}

@media (max-width: 1220px) {
  .backoffice-body.theme-light .bo-grid-layout--tenants,
  .backoffice-body.theme-light .bo-tenants-split,
  .backoffice-body.theme-light .bo-grid-layout--users,
  .backoffice-body.theme-light .bo-form-grid--tenant,
  .backoffice-body.theme-light .bo-form-grid--tenant-create,
  .backoffice-body.theme-light .bo-form-grid--users-create,
  .backoffice-body.theme-light .bo-form-grid--tenant-user,
  .backoffice-body.theme-light .bo-mini-grid,
  .backoffice-body.theme-light .bo-vuln-kpi-grid,
  .backoffice-body.theme-light .bo-vuln-year-chart__meta,
  .backoffice-body.theme-light .bo-vuln-metrics,
  .backoffice-body.theme-light .bo-user-editor-row__fields,
  .backoffice-body.theme-light .bo-user-editor-row__fields--users {
    grid-template-columns: minmax(0, 1fr);
  }

  .backoffice-body.theme-light .bo-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .backoffice-body.theme-light .bo-main-stack--vuln .bo-panel-section {
    padding: 14px;
  }

  .backoffice-body.theme-light .bo-vuln-files-toolbar__filters,
  .backoffice-body.theme-light .bo-vuln-files-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .backoffice-body.theme-light .bo-vuln-files-toolbar__field {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .backoffice-body.theme-light .bo-vuln-files-toolbar__actions .bo-btn {
    width: auto;
    flex: 1 1 140px;
  }

  .backoffice-body.theme-light .bo-vuln-search-toolbar__field {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .backoffice-body.theme-light .bo-vuln-search-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .backoffice-body.theme-light .bo-vuln-search-toolbar__actions .bo-btn {
    width: auto;
    flex: 1 1 140px;
  }

  .backoffice-body.theme-light .bo-workspace {
    width: min(100vw - 22px, 1500px);
    margin-top: 14px;
    gap: 16px;
  }

  .backoffice-body.theme-light .bo-topline,
  .backoffice-body.theme-light .bo-topline__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .backoffice-body.theme-light .bo-topline__side {
    justify-items: start;
  }

  .backoffice-body.theme-light .bo-session-line {
    justify-content: flex-start;
  }

  .backoffice-body.theme-light .bo-inline-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .backoffice-body.theme-light .bo-linked-item {
    flex-direction: column;
    align-items: stretch;
  }

  .backoffice-body.theme-light .bo-user-editor-row__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .backoffice-body.theme-light .bo-user-editor-row__meta {
    justify-content: flex-start;
  }

  .backoffice-body.theme-light .bo-inline-group--record-actions {
    justify-content: flex-start;
  }

  .backoffice-body.theme-light .bo-user-editor-row__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .backoffice-body.theme-light .bo-tenant-event-row__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .backoffice-body.theme-light .bo-vuln-row__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .backoffice-body.theme-light .bo-inline-group--events {
    justify-content: flex-start;
  }

  .backoffice-body.theme-light .bo-form-footer {
    align-items: stretch;
  }

  .backoffice-body.theme-light .bo-btn {
    width: 100%;
  }

  .backoffice-body.theme-light .bo-table {
    min-width: 860px;
  }
}

/* =====================================================
   BACKOFFICE — Dark Developer Theme v4
   Scoped to .backoffice-body (no theme-light required)
   ===================================================== */

/* 0. CSS variables + body reset */
.backoffice-body {
  --bo-bg: #0d1117;
  --bo-surface: #161b22;
  --bo-border: #30363d;
  --bo-accent: #2f81f7;
  --bo-success: #3fb950;
  --bo-warning: #d29922;
  --bo-error: #f85149;
  --bo-muted: #8b949e;
  --bo-text: #e6edf3;
  --bo-console-bg: #010409;
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bo-bg);
  color: var(--bo-text);
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

/* 1. Workspace grid: sidebar | topbar / sidebar | content */
.backoffice-body .bo-workspace {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 56px 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar content";
  height: 100vh;
  overflow: hidden;
}

/* 2. Sidebar nav */
.backoffice-body .bo-simple-tabs {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  background: var(--bo-surface);
  border-right: 1px solid var(--bo-border);
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.backoffice-body .bo-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 20px;
  margin-bottom: 4px;
}

.backoffice-body .bo-sidebar-brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bo-accent);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  flex-shrink: 0;
}

.backoffice-body .bo-sidebar-brand__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bo-muted);
}

.backoffice-body .bo-simple-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--bo-muted);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}

.backoffice-body .bo-simple-tab:hover {
  background: rgba(255,255,255,0.05);
  color: var(--bo-text);
}

.backoffice-body .bo-simple-tab.is-active {
  background: rgba(47,129,247,0.15);
  color: var(--bo-accent);
}

.backoffice-body .bo-simple-tab__icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.backoffice-body .bo-simple-tab.is-active .bo-simple-tab__icon {
  opacity: 1;
}

/* 3. Topbar */
.backoffice-body .bo-topline {
  grid-area: topbar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--bo-surface);
  border-bottom: 1px solid var(--bo-border);
  gap: 16px;
}

.backoffice-body .bo-topline__title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.backoffice-body .bo-topline__title h1 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--bo-text);
  white-space: nowrap;
}

.backoffice-body .bo-status-message {
  font-size: 12px;
  color: var(--bo-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.backoffice-body .bo-status-message[data-type="success"] { color: var(--bo-success); }
.backoffice-body .bo-status-message[data-type="error"]   { color: var(--bo-error); }
.backoffice-body .bo-status-message[data-type="warning"] { color: var(--bo-warning); }

.backoffice-body .bo-topline__side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.backoffice-body .bo-session-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
}

.backoffice-body .bo-session-line__divider {
  color: var(--bo-border);
}

.backoffice-body .bo-topline__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 4. Screen panels */
.backoffice-body .bo-screen {
  grid-area: content;
  display: none;
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
  height: calc(100vh - 56px);
}

.backoffice-body .bo-screen.bo-screen--active {
  display: block;
}

/* 5. Grid layouts inside panels */
.backoffice-body .bo-grid-layout {
  display: grid;
  gap: 16px;
}

.backoffice-body .bo-grid-layout--tenants {
  grid-template-columns: 300px 1fr;
  align-items: start;
}

.backoffice-body .bo-tenants-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.backoffice-body .bo-tenants-split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: stretch;
}

.backoffice-body .bo-tenants-split > .bo-sidebar {
  height: 100%;
}

.backoffice-body .bo-tenants-split > .bo-sidebar > .bo-panel-section {
  height: 100%;
  box-sizing: border-box;
}

/* 6. Panel sections / cards */
.backoffice-body .bo-panel-section {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.backoffice-body .bo-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.backoffice-body .bo-section-header h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--bo-text);
}

.backoffice-body .bo-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bo-muted);
  margin: 0 0 2px;
}

/* 7. Column stacks */
.backoffice-body .bo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.backoffice-body .bo-main-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.backoffice-body .bo-main-stack,
.backoffice-body .bo-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 8. Inline controls */
.backoffice-body .bo-inline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.backoffice-body .bo-inline-controls--stack {
  flex-direction: column;
  align-items: stretch;
}

.backoffice-body .bo-inline-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--bo-border);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
}

.backoffice-body .bo-inline-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 9. Inputs */
.backoffice-body .bo-input {
  height: 32px;
  padding: 0 10px;
  background: var(--bo-bg);
  border: 1px solid var(--bo-border);
  border-radius: 6px;
  color: var(--bo-text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 150ms;
}

.backoffice-body .bo-input:focus {
  border-color: var(--bo-accent);
  box-shadow: 0 0 0 3px rgba(47,129,247,0.2);
}

.backoffice-body .bo-input::placeholder {
  color: var(--bo-muted);
}

.backoffice-body .bo-input--file {
  height: auto;
  min-height: 32px;
  padding: 6px 10px;
  line-height: 1.3;
}

.backoffice-body .bo-input--file::file-selector-button {
  margin-right: 8px;
}

.backoffice-body .bo-select {
  height: 32px;
  padding: 0 10px;
  background: var(--bo-bg);
  border: 1px solid var(--bo-border);
  border-radius: 6px;
  color: var(--bo-text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 150ms;
}

.backoffice-body .bo-select:focus {
  border-color: var(--bo-accent);
  box-shadow: 0 0 0 3px rgba(47,129,247,0.2);
}

.backoffice-body .bo-select--small {
  height: 26px;
  font-size: 12px;
  padding: 0 8px;
}

/* 10. Form grid */
.backoffice-body .bo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.backoffice-body .bo-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--bo-muted);
}

.backoffice-body .bo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.backoffice-body .bo-form-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.backoffice-body .bo-form-grid--tenant-create {
  grid-template-columns: 1fr 1fr;
}

.backoffice-body .bo-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.backoffice-body .bo-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.backoffice-body .bo-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--bo-border);
  padding-top: 16px;
  margin-top: 4px;
}

.backoffice-body .bo-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bo-text);
  cursor: pointer;
}

.backoffice-body .bo-check input[type="checkbox"] {
  accent-color: var(--bo-accent);
  width: 14px;
  height: 14px;
}

/* 11. Buttons */
.backoffice-body .icon-button,
.backoffice-body .bo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 100ms, border-color 100ms, opacity 100ms;
  text-decoration: none;
}

.backoffice-body .bo-btn--primary {
  background: var(--bo-accent);
  color: #fff;
  border-color: var(--bo-accent);
}

.backoffice-body .bo-btn--primary:hover:not(:disabled) {
  background: #388bfd;
  border-color: #388bfd;
}

.backoffice-body .bo-btn--secondary {
  background: transparent;
  color: var(--bo-accent);
  border-color: var(--bo-accent);
}

.backoffice-body .bo-btn--secondary:hover:not(:disabled) {
  background: rgba(47,129,247,0.1);
}

.backoffice-body .bo-btn--ghost {
  background: transparent;
  color: var(--bo-muted);
  border-color: var(--bo-border);
}

.backoffice-body .bo-btn--ghost:hover:not(:disabled) {
  color: var(--bo-text);
  border-color: var(--bo-muted);
  background: rgba(255,255,255,0.05);
}

.backoffice-body .bo-btn--danger {
  background: var(--bo-error);
  color: #fff;
  border-color: var(--bo-error);
}

.backoffice-body .bo-btn--danger:hover:not(:disabled) {
  background: #da3633;
  border-color: #da3633;
}

.backoffice-body .bo-btn--xs {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.backoffice-body .bo-btn:disabled,
.backoffice-body .icon-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 12. Pager */
.backoffice-body .bo-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--bo-border);
}

.backoffice-body .bo-pager--with-jump {
  gap: 12px;
  flex-wrap: wrap;
}

.backoffice-body .bo-pager__jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.backoffice-body .bo-pager__select {
  min-width: 84px;
}

.backoffice-body.theme-light .bo-pager__select {
  min-height: 32px;
  min-width: 96px;
  padding: 0 8px;
}

.backoffice-body .bo-pager__label {
  font-size: 12px;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* 13. Helper / empty state */
.backoffice-body .bo-helper {
  font-size: 13px;
  color: var(--bo-muted);
  text-align: center;
  padding: 24px 0;
}

.backoffice-body .bo-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  color: var(--bo-muted);
  font-size: 13px;
  text-align: center;
}

/* 14. Tenant list */
.backoffice-body .bo-tenant-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 48px;
}

.backoffice-body .bo-tenant-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 100ms, border-color 100ms;
  color: var(--bo-text);
}

.backoffice-body .bo-tenant-list__item:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--bo-border);
}

.backoffice-body .bo-tenant-list__item.is-selected,
.backoffice-body .bo-tenant-list__item[aria-selected="true"] {
  background: rgba(47,129,247,0.12);
  border-color: rgba(47,129,247,0.3);
  color: var(--bo-accent);
}

/* 15. Status badges */
.backoffice-body .bo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.06);
  color: var(--bo-muted);
  border: 1px solid var(--bo-border);
}

.backoffice-body .bo-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.backoffice-body .bo-status-badge[data-status="active"],
.backoffice-body .bo-status-badge--active {
  color: var(--bo-success);
  background: rgba(63,185,80,0.1);
  border-color: rgba(63,185,80,0.3);
}

.backoffice-body .bo-status-badge[data-status="inactive"],
.backoffice-body .bo-status-badge--inactive {
  color: var(--bo-muted);
}

.backoffice-body .bo-status-badge[data-status="error"],
.backoffice-body .bo-status-badge--error {
  color: var(--bo-error);
  background: rgba(248,81,73,0.1);
  border-color: rgba(248,81,73,0.3);
}

.backoffice-body .bo-status-badge[data-status="warning"],
.backoffice-body .bo-status-badge--warning {
  color: var(--bo-warning);
  background: rgba(210,153,34,0.1);
  border-color: rgba(210,153,34,0.3);
}

.backoffice-body .bo-status-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 16. User editor rows */
.backoffice-body .bo-user-editor-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  transition: border-color 100ms;
}

.backoffice-body .bo-user-editor-row--compact {
  gap: 6px;
  padding: 8px 10px;
}

.backoffice-body .bo-user-editor-row:hover {
  border-color: rgba(255,255,255,0.18);
}

.backoffice-body .bo-user-editor-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.backoffice-body .bo-user-editor-row__identity {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.backoffice-body .bo-user-editor-row__identity strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bo-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.backoffice-body .bo-user-editor-row__identity span {
  font-size: 0.78rem;
  color: var(--bo-muted);
  white-space: nowrap;
}

.backoffice-body .bo-user-editor-row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.backoffice-body .bo-user-editor-row__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.backoffice-body .bo-user-editor-row__fields--users {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.backoffice-body .bo-user-editor-row--users .bo-input {
  min-height: 32px;
  padding: 0 9px;
  font-size: 0.82rem;
}

.backoffice-body .bo-user-editor-row--users .bo-field__label {
  font-size: 10px;
}

/* Collapsible user card */
.backoffice-body .bo-user-card-summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.backoffice-body .bo-user-card-summary:focus-visible {
  outline: 2px solid var(--bo-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.backoffice-body .bo-user-card-summary__left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.backoffice-body .bo-user-card-summary__left strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.87rem;
  color: var(--bo-text);
}
.backoffice-body .bo-user-card-summary__tenants {
  font-size: 0.78rem;
  color: var(--bo-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.backoffice-body .bo-user-card-summary__right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.backoffice-body .bo-user-card-summary__right .bo-status-badge {
  min-height: 20px;
  padding: 0 7px;
  font-size: 0.64rem;
}
.backoffice-body .bo-user-card-chevron {
  font-size: 0.7rem;
  color: var(--bo-muted);
  transition: transform 0.18s ease;
  display: inline-block;
}
.backoffice-body .bo-user-editor-row[data-collapsed="false"] .bo-user-card-chevron {
  transform: rotate(180deg);
}
.backoffice-body .bo-user-card-body {
  display: none;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--bo-border);
  padding-top: 10px;
  margin-top: 2px;
}
.backoffice-body .bo-user-editor-row[data-collapsed="false"] .bo-user-card-body {
  display: flex;
}

.backoffice-body .bo-user-editor-row--compact .bo-user-card-body {
  gap: 6px;
  padding-top: 6px;
  margin-top: 0;
}

.backoffice-body .bo-user-editor-row--compact .bo-user-editor-row__fields {
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(120px, 150px);
  gap: 6px;
  align-items: end;
}

.backoffice-body .bo-user-editor-row--compact .bo-field {
  gap: 4px;
}

.backoffice-body .bo-user-editor-row--compact .bo-field__label {
  font-size: 10px;
}

.backoffice-body .bo-user-editor-row--compact .bo-input,
.backoffice-body .bo-user-editor-row--compact .bo-select {
  min-height: 30px;
  height: 30px;
  padding: 0 8px;
  font-size: 0.8rem;
}

.backoffice-body .bo-user-editor-row--compact .bo-user-editor-row__actions {
  padding-top: 0;
}

.backoffice-body .bo-user-editor-row--compact .bo-user-editor-row__actions .bo-inline-group {
  gap: 6px;
}

.backoffice-body .bo-user-editor-row--compact .bo-user-editor-row__actions .bo-btn--xs {
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.backoffice-body .bo-user-editor-row__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.backoffice-body .bo-user-editor-row__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--bo-border);
  flex-wrap: wrap;
}

/* 17. Static pills */
.backoffice-body .bo-static-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: var(--bo-muted);
  border: 1px solid var(--bo-border);
}

.backoffice-body .bo-static-pill--role {
  background: rgba(47,129,247,0.1);
  color: var(--bo-accent);
  border-color: rgba(47,129,247,0.3);
}

.backoffice-body .bo-static-pill--muted {
  background: transparent;
  color: var(--bo-muted);
  border-color: var(--bo-border);
}

/* 18. Linked items / subsections */
.backoffice-body .bo-subsection {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.backoffice-body .bo-linked-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.backoffice-body .bo-linked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bo-bg);
  border: 1px solid var(--bo-border);
  border-radius: 5px;
  font-size: 13px;
  color: var(--bo-text);
}

.backoffice-body .bo-linked-item__meta {
  font-size: 12px;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* 19. Event / log list */
.backoffice-body .bo-tenant-events-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
}

.backoffice-body #boTenantConsoleLogsBody {
  min-height: clamp(420px, 58vh, 720px);
  max-height: clamp(560px, 72vh, 900px);
}

.backoffice-body .bo-tenant-event-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  color: var(--bo-text);
}

.backoffice-body .bo-tenant-event-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.backoffice-body .bo-tenant-event-row__message {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bo-text);
}

.backoffice-body .bo-tenant-event-row__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.backoffice-body .bo-tenant-event-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 0.75rem;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
}

.backoffice-body .bo-tenant-event-row__meta-sep {
  opacity: 0.35;
}

.backoffice-body .bo-tenant-event-row__metadata {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.72rem;
  color: var(--bo-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--bo-border);
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-word;
  line-height: 1.6;
}

/* 20. Vuln overview + KPI grid */
.backoffice-body .bo-main-stack--vuln {
  gap: 18px;
}

.backoffice-body .bo-main-stack--vuln .bo-panel-section {
  gap: 14px;
}

.backoffice-body .bo-vuln-panel-note {
  margin: -4px 0 2px;
  padding: 0;
  font-size: 12px;
  color: var(--bo-muted);
  line-height: 1.5;
  text-align: left;
}

.backoffice-body .bo-vuln-files-count {
  min-height: 24px;
  height: auto;
  min-width: 0;
  padding: 2px 9px;
}

.backoffice-body .bo-vuln-files-toolbar {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}

.backoffice-body .bo-vuln-files-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
}

.backoffice-body .bo-vuln-files-toolbar__field {
  min-width: 180px;
  max-width: 220px;
}

.backoffice-body .bo-vuln-files-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.backoffice-body .bo-vuln-files-toolbar__hint {
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bo-muted);
}

.backoffice-body .bo-vuln-search-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}

.backoffice-body .bo-vuln-search-toolbar__field {
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 460px;
}

.backoffice-body .bo-vuln-search-toolbar__field .bo-input {
  width: 100%;
}

.backoffice-body .bo-vuln-search-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.backoffice-body .bo-vuln-search-hint {
  margin: 0;
  color: var(--bo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.backoffice-body .bo-vuln-search-summary {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: #b8c5d6;
  font-size: 12px;
  line-height: 1.4;
}

.backoffice-body .bo-vuln-search-results {
  min-height: 74px;
}

.backoffice-body .bo-vuln-search-pager[hidden] {
  display: none;
}

.backoffice-body .bo-vuln-search-empty {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.015);
}

.backoffice-body .bo-vuln-search-empty__title {
  color: var(--bo-text);
  font-size: 13px;
  line-height: 1.3;
}

.backoffice-body .bo-vuln-search-empty__text {
  margin: 0;
  color: var(--bo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.backoffice-body .bo-vuln-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.backoffice-body .bo-vuln-kpi {
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 14px 14px 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 10px;
  min-height: 108px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}

.backoffice-body .bo-vuln-kpi--critical { border-left-color: var(--bo-error); }
.backoffice-body .bo-vuln-kpi--high     { border-left-color: var(--bo-warning); }
.backoffice-body .bo-vuln-kpi--medium   { border-left-color: var(--bo-accent); }
.backoffice-body .bo-vuln-kpi--low      { border-left-color: var(--bo-success); }

.backoffice-body .bo-vuln-kpi__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bo-muted);
}

.backoffice-body .bo-vuln-kpi__value {
  font-size: clamp(1.35rem, 1.08rem + 0.9vw, 1.95rem);
  font-weight: 700;
  color: var(--bo-text);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.16;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.backoffice-body .bo-vuln-kpi__value--small {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
}

.backoffice-body .bo-vuln-kpi__sub {
  font-size: 11px;
  color: var(--bo-muted);
}

/* 21a. Mapping panel card */
.backoffice-body .bo-mapping-card {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.backoffice-body .bo-mapping-card:last-child {
  margin-bottom: 0;
}

.backoffice-body .bo-mapping-card__head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--bo-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.backoffice-body .bo-mapping-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.backoffice-body .bo-mapping-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bo-text);
}

.backoffice-body .bo-mapping-card__date {
  margin: 0;
  font-size: 0.72rem;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
}

.backoffice-body .bo-mapping-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--bo-border);
}

.backoffice-body .bo-mapping-kpi {
  background: var(--bo-bg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.backoffice-body .bo-mapping-kpi__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bo-muted);
}

.backoffice-body .bo-mapping-kpi__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bo-text);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
}

.backoffice-body .bo-mapping-card__error-msg {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--bo-error);
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

/* 21. Year chart */
.backoffice-body .bo-vuln-subsection {
  margin-top: 2px;
  display: grid;
  gap: 10px;
}

.backoffice-body .bo-vuln-year-chart {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.88), rgba(16, 20, 26, 0.9));
}

.backoffice-body .bo-vuln-year-chart .bo-helper {
  margin: 0;
  padding: 0;
  text-align: left;
}

.backoffice-body .bo-vuln-year-chart__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bo-muted);
}

.backoffice-body .bo-vuln-year-chart__meta strong {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--bo-text);
}

.backoffice-body .bo-vuln-year-chart__canvas {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(10, 15, 22, 0.7), rgba(13, 17, 23, 0.9));
  min-height: 252px;
  overflow: visible;
}

.backoffice-body .bo-vuln-year-chart__svg {
  display: block;
  width: 100%;
  height: 252px;
}

.backoffice-body .bo-vuln-year-chart__grid-line {
  stroke: rgba(139, 148, 158, 0.2);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.backoffice-body .bo-vuln-year-chart__area {
  fill: url(#boVulnYearAreaGradient);
}

.backoffice-body .bo-vuln-year-chart__line {
  fill: none;
  stroke: #4ea7ff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 6px rgba(78, 167, 255, 0.32));
}

.backoffice-body .bo-vuln-year-chart__dot {
  fill: #6ab7ff;
  stroke: #0d1117;
  stroke-width: 1.8;
  transition: transform 0.16s ease, fill 0.16s ease;
  transform-box: fill-box;
  transform-origin: center;
  cursor: pointer;
}

.backoffice-body .bo-vuln-year-chart__dot:hover,
.backoffice-body .bo-vuln-year-chart__dot:focus {
  transform: scale(1.18);
  fill: #92cbff;
  outline: none;
}

.backoffice-body .bo-vuln-year-chart__x-label,
.backoffice-body .bo-vuln-year-chart__y-label {
  fill: #9ba9ba;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
}

.backoffice-body .bo-vuln-year-chart__tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  background: #0b1320;
  color: #d6ebff;
  border-radius: 8px;
  border: 1px solid rgba(118, 170, 228, 0.26);
  padding: 6px 9px;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 2;
}

.backoffice-body .bo-vuln-year-chart__tooltip[hidden] {
  display: none;
}

/* 22. Vuln rows */
.backoffice-body .bo-vuln-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bo-bg);
  border: 1px solid var(--bo-border);
  border-radius: 6px;
  transition: border-color 100ms;
}

.backoffice-body .bo-vuln-row:hover {
  border-color: rgba(255,255,255,0.15);
}

.backoffice-body .bo-vuln-row--compact {
  padding: 10px 14px;
  gap: 6px;
}

.backoffice-body .bo-vuln-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.backoffice-body .bo-vuln-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
}

.backoffice-body .bo-vuln-row__error {
  font-size: 12px;
  color: var(--bo-error);
  font-family: 'JetBrains Mono', monospace;
}

.backoffice-body .bo-vuln-row__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.backoffice-body .bo-vuln-countdown {
  font-size: 12px;
  color: var(--bo-warning);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.backoffice-body .bo-vuln-file-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--bo-muted);
  word-break: break-all;
}

/* 23. Vuln metrics */
.backoffice-body .bo-vuln-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.backoffice-body .bo-vuln-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.05);
  color: var(--bo-muted);
  border: 1px solid var(--bo-border);
}

.backoffice-body .bo-vuln-metric--success {
  background: rgba(63,185,80,0.1);
  color: var(--bo-success);
  border-color: rgba(63,185,80,0.3);
}

.backoffice-body .bo-vuln-metric--warn {
  background: rgba(210,153,34,0.1);
  color: var(--bo-warning);
  border-color: rgba(210,153,34,0.3);
}

.backoffice-body .bo-vuln-metric--danger {
  background: rgba(248,81,73,0.1);
  color: var(--bo-error);
  border-color: rgba(248,81,73,0.3);
}

/* 24. Confirm modal */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1,4,9,0.75);
  backdrop-filter: blur(2px);
}

.confirm-modal__dialog {
  position: relative;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
  width: 400px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  animation: modalIn 200ms ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.confirm-modal__eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b949e;
}

.confirm-modal__title {
  font-size: 16px;
  font-weight: 600;
  color: #e6edf3;
  margin: 0;
}

.confirm-modal__message {
  font-size: 13px;
  color: #8b949e;
  line-height: 1.5;
}

.confirm-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.confirm-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 100ms;
  background: #2f81f7;
  color: #fff;
}

.confirm-modal__button--ghost {
  background: transparent;
  color: #8b949e;
  border-color: #30363d;
}

.confirm-modal__button--ghost:hover {
  background: rgba(255,255,255,0.05);
  color: #e6edf3;
}

.confirm-modal__button--danger {
  background: #f85149;
  border-color: #f85149;
}

.confirm-modal__button--danger:hover {
  background: #da3633;
}

/* 25. Custom scrollbars */
.backoffice-body ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.backoffice-body ::-webkit-scrollbar-track {
  background: transparent;
}

.backoffice-body ::-webkit-scrollbar-thumb {
  background: var(--bo-border);
  border-radius: 3px;
}

.backoffice-body ::-webkit-scrollbar-thumb:hover {
  background: var(--bo-muted);
}

/* 26. Focus states */
.backoffice-body :focus-visible {
  outline: 2px solid var(--bo-accent);
  outline-offset: 2px;
}

/* 27. Pulse animation */
@keyframes bo-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.backoffice-body .bo-pulse {
  animation: bo-pulse 2s ease-in-out infinite;
}

/* 29. Tenant section refinements */

/* Tenant list item — 2-row grid card */
.backoffice-body .bo-tenant-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  row-gap: 3px;
  column-gap: 8px;
  padding: 10px 12px;
}

.backoffice-body .bo-tenant-list__item strong {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* subdomain — bottom left, mono */
.backoffice-body .bo-tenant-list__item span:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  font-size: 11px;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* meta summary — bottom right */
.backoffice-body .bo-tenant-list__item span:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  font-size: 10px;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  white-space: nowrap;
}

/* active user count — top right badge */
.backoffice-body .bo-tenant-list__item span:nth-child(4) {
  grid-column: 2;
  grid-row: 1;
  font-size: 11px;
  font-weight: 600;
  color: var(--bo-accent);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* Tenant cards grid */
.backoffice-body .bo-tenants-split.bo-tenants-split--cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.backoffice-body .bo-tenants-split.bo-tenants-split--cards > .bo-sidebar {
  height: auto;
}

.backoffice-body .bo-tenants-split.bo-tenants-split--cards > .bo-sidebar > .bo-panel-section {
  height: auto;
}

.backoffice-body .bo-sidebar--tenant-grid {
  position: static;
}

.backoffice-body .bo-tenant-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  align-items: start;
}

.backoffice-body .bo-tenant-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 14px 12px 12px;
  min-height: 122px;
  border-radius: 12px;
  border: 1px solid rgba(129, 167, 255, 0.24);
  background: rgba(15, 24, 40, 0.68);
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.backoffice-body .bo-tenant-card:hover,
.backoffice-body .bo-tenant-card:focus-visible {
  border-color: rgba(129, 167, 255, 0.52);
  background: rgba(25, 40, 68, 0.74);
  outline: none;
  box-shadow: 0 6px 14px rgba(6, 10, 18, 0.22);
}

.backoffice-body .bo-tenant-card.is-active,
.backoffice-body .bo-tenant-card[aria-selected="true"] {
  border-color: rgba(129, 167, 255, 0.72);
  background: linear-gradient(160deg, rgba(48, 80, 156, 0.34), rgba(20, 34, 63, 0.9));
  box-shadow: 0 0 0 1px rgba(151, 188, 255, 0.18), 0 8px 16px rgba(10, 18, 32, 0.24);
}

.backoffice-body .bo-tenant-card.has-inline-editor {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  z-index: 3;
  box-shadow: none;
}

.backoffice-body .bo-tenant-card.has-inline-editor::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -15px;
  height: 14px;
  background: rgba(20, 34, 63, 0.9);
  border-left: 1px solid rgba(129, 167, 255, 0.72);
  border-right: 1px solid rgba(129, 167, 255, 0.72);
}

.backoffice-body .bo-tenant-inline-slot {
  display: none;
  grid-column: 1 / -1;
}

.backoffice-body .bo-tenant-inline-slot.is-open {
  display: block;
  margin-top: -15px;
  padding-top: 14px;
  position: relative;
  z-index: 2;
}

.backoffice-body .bo-tenant-card__logo-img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}

.backoffice-body .bo-tenant-card__logo-fallback {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d9e6ff;
  border: 1px solid rgba(161, 188, 235, 0.22);
  background: rgba(12, 20, 36, 0.46);
}

.backoffice-body .bo-tenant-card__name {
  max-width: 100%;
  font-size: 0.89rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f0f5ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.backoffice-body .bo-tenant-card__subdomain {
  max-width: 100%;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--bo-muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.backoffice-body .bo-tenant-inline-editor {
  width: 100%;
  border-color: rgba(129, 167, 255, 0.4);
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: linear-gradient(180deg, rgba(18, 27, 46, 0.9), rgba(13, 21, 38, 0.95));
  box-shadow: 0 4px 16px rgba(10, 18, 32, 0.18);
  animation: bo-tenant-editor-in 180ms ease;
}

@media (max-width: 520px) {
  .backoffice-body .bo-tenant-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes bo-tenant-editor-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Field label — span.bo-field__label */
.backoffice-body .bo-field__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bo-muted);
  display: block;
}

.backoffice-body .bo-field__hint {
  font-size: 11px;
  line-height: 1.35;
  color: var(--bo-muted);
}

/* Full-width fields spanning both grid columns */
.backoffice-body .bo-field--full {
  grid-column: 1 / -1;
}

/* Status badge data-tone (used in JS) */
.backoffice-body .bo-status-badge[data-tone="success"] {
  color: var(--bo-success);
  background: rgba(63,185,80,0.1);
  border-color: rgba(63,185,80,0.3);
}

.backoffice-body .bo-status-badge[data-tone="warn"] {
  color: var(--bo-warning);
  background: rgba(210,153,34,0.1);
  border-color: rgba(210,153,34,0.3);
}

.backoffice-body .bo-status-badge[data-tone="error"] {
  color: var(--bo-error);
  background: rgba(248,81,73,0.1);
  border-color: rgba(248,81,73,0.3);
}

.backoffice-body .bo-status-badge[data-tone="neutral"] {
  color: var(--bo-muted);
  background: rgba(255,255,255,0.04);
  border-color: var(--bo-border);
}

/* Status stack as horizontal row */
.backoffice-body .bo-status-stack {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

/* Rate-limit mini-grid — 3 columns */
.backoffice-body .bo-mini-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Empty state — contained card style */
.backoffice-body .bo-empty-state {
  border: 1px dashed var(--bo-border);
  background: var(--bo-surface);
  border-radius: 6px;
  padding: 32px 24px;
}

.backoffice-body .bo-empty-state h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--bo-text);
  margin: 4px 0;
}

.backoffice-body .bo-empty-state p {
  font-size: 12px;
  color: var(--bo-muted);
  margin: 0;
}

/* form-grid--tenant edit form */
.backoffice-body .bo-form-grid--tenant {
  grid-template-columns: 1fr 1fr;
}

/* form-grid--tenant-user add user form */
.backoffice-body .bo-form-grid--tenant-user {
  grid-template-columns: 1fr 1fr;
}

.backoffice-body .bo-panel-section--tenant-add-user-compact {
  padding: 14px 16px;
  gap: 10px;
}

.backoffice-body .bo-form-grid--tenant-user-compact {
  grid-template-columns: minmax(240px, 1.6fr) minmax(140px, 1fr) minmax(160px, 1fr) minmax(110px, 0.8fr) auto;
  align-items: end;
  gap: 8px 10px;
}

.backoffice-body .bo-form-grid--tenant-user-compact .bo-field {
  gap: 4px;
}

.backoffice-body .bo-form-grid--tenant-user-compact .bo-field__label {
  margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: 0.07em;
}

.backoffice-body .bo-form-grid--tenant-user-compact .bo-input,
.backoffice-body .bo-form-grid--tenant-user-compact .bo-select {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.backoffice-body .bo-form-grid--tenant-user-compact .bo-form-actions {
  padding-top: 0;
  align-self: end;
}

.backoffice-body .bo-form-grid--tenant-user-compact .bo-form-actions .bo-btn {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

/* 28. Responsive */
@media (max-width: 1360px) {
  .backoffice-body .bo-form-grid--tenant-user-compact,
  .backoffice-body.theme-light .bo-form-grid--tenant-user-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backoffice-body .bo-form-grid--tenant-user-compact .bo-form-actions,
  .backoffice-body.theme-light .bo-form-grid--tenant-user-compact .bo-form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 1200px) {
  .backoffice-body .bo-grid-layout--tenants {
    grid-template-columns: 260px 1fr;
  }

  .backoffice-body .bo-vuln-year-chart__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .backoffice-body .bo-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "topbar"
      "sidebar"
      "content";
  }

  .backoffice-body .bo-simple-tabs {
    flex-direction: row;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px;
    gap: 4px;
    border-right: none;
    border-bottom: 1px solid var(--bo-border);
  }

  .backoffice-body .bo-sidebar-brand {
    display: none;
  }

  .backoffice-body .bo-screen {
    height: auto;
    overflow-y: visible;
  }

  .backoffice-body .bo-grid-layout--tenants {
    grid-template-columns: 1fr;
  }

  .backoffice-body #boTenantConsoleLogsBody {
    min-height: 320px;
    max-height: 62vh;
  }

  .backoffice-body .bo-pager--with-jump {
    justify-content: center;
  }

  .backoffice-body .bo-pager--with-jump .bo-pager__jump {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .backoffice-body .bo-form-grid {
    grid-template-columns: 1fr;
  }

  .backoffice-body .bo-user-editor-row--compact .bo-user-editor-row__fields {
    grid-template-columns: 1fr 1fr;
  }

  .backoffice-body .bo-user-editor-row--compact .bo-user-editor-row__fields .bo-field:last-child {
    grid-column: 1 / -1;
    max-width: 240px;
  }

  .backoffice-body .bo-form-footer {
    align-items: stretch;
  }

  .backoffice-body .bo-main-stack--vuln .bo-panel-section {
    padding: 14px;
  }

  .backoffice-body .bo-vuln-files-toolbar__filters,
  .backoffice-body .bo-vuln-files-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .backoffice-body .bo-vuln-files-toolbar__field {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .backoffice-body .bo-vuln-files-toolbar__actions .bo-btn {
    width: auto;
    flex: 1 1 140px;
  }

  .backoffice-body .bo-vuln-search-toolbar__field {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .backoffice-body .bo-vuln-search-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .backoffice-body .bo-vuln-search-toolbar__actions .bo-btn {
    width: auto;
    flex: 1 1 140px;
  }

  .backoffice-body .bo-vuln-kpi-grid,
  .backoffice-body .bo-vuln-year-chart__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .backoffice-body .bo-vuln-year-chart__svg {
    height: 220px;
  }

  .backoffice-body .bo-btn {
    width: 100%;
  }
}

/* Tablet baseline (phase 1): global shell + readability */
@media (min-width: 768px) and (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: auto;
    align-self: auto;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 12px 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  }

  .sidebar__brand {
    flex: 0 0 auto;
  }

  .sidebar__logo {
    height: 72px;
    max-width: 124px;
  }

  .sidebar__texts {
    display: none;
  }

  .sidebar__nav {
    order: 3;
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    scrollbar-width: thin;
  }

  .sidebar__nav .nav-button {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }

  .sidebar__nav .nav-badge {
    width: auto;
    min-width: 20px;
    text-align: left;
  }

  .sidebar__footer {
    margin-top: 0;
    margin-left: auto;
    flex-direction: row;
    gap: 8px;
  }

  .sidebar #dashboardButton::after,
  .sidebar #remediationButton::after,
  .sidebar #assetsButton::after,
  .sidebar #settingsButton::after {
    content: none;
  }

  .sidebar .nav-button:hover,
  .sidebar .nav-button:focus-visible {
    transform: none;
  }

  .app-main {
    gap: 14px;
    padding: 14px clamp(12px, 2.2vw, 22px);
  }

  .match-card {
    padding: clamp(16px, 1.9vw, 20px);
  }

  .panel-header h3 {
    font-size: clamp(1.02rem, 0.97rem + 0.23vw, 1.18rem);
  }

  .card-subtitle {
    font-size: 0.92rem;
  }
}

/* ===================== Inventory History Screen ===================== */

#inventoryHistoryScreen {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
}

.inv-history-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.inv-history-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(177, 193, 224, 0.72);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px 4px 2px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.inv-history-back:hover,
.inv-history-back:focus-visible {
    color: rgba(220, 230, 255, 0.96);
    background: rgba(177, 193, 224, 0.1);
    outline: none;
}

.inv-history-title {
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    font-weight: 700;
    color: #f3f6ff;
    margin: 0;
    letter-spacing: 0.01em;
}

.inv-history-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.inv-history-empty {
    color: rgba(177, 193, 224, 0.6);
    font-size: 0.88rem;
    text-align: center;
    padding: 40px 0;
    margin: 0;
}

.inv-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.inv-history-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.12s;
    border-radius: 0;
}

.inv-history-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
}

.inv-history-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-history-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.inv-history-item__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.inv-history-item__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e8eeff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inv-history-item__date {
    font-size: 0.75rem;
    color: rgba(177, 193, 224, 0.68);
}

.inv-history-item__count {
    font-size: 0.72rem;
    color: rgba(177, 193, 224, 0.48);
}

.inv-history-item__current-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(120, 210, 160, 0.9);
    background: rgba(80, 200, 120, 0.12);
    border: 1px solid rgba(80, 200, 120, 0.25);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.inv-history-item__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.inv-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    height: 26px;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    min-width: auto;
    box-shadow: none;
    transform: none;
}

.inv-history-btn--danger {
    color: rgba(255, 130, 130, 0.8);
    border-color: rgba(255, 130, 130, 0.2);
}

.inv-history-btn--danger:hover,
.inv-history-btn--danger:focus-visible {
    color: rgba(255, 140, 140, 1);
    border-color: rgba(255, 130, 130, 0.42);
    background: rgba(255, 80, 80, 0.08);
    box-shadow: none;
    transform: none;
}

/* Light theme adjustments */
body.theme-light .inv-history-title {
    color: rgba(15, 23, 42, 0.96);
}

body.theme-light .inv-history-back {
    color: rgba(71, 85, 105, 0.7);
}

body.theme-light .inv-history-back:hover {
    color: rgba(15, 23, 42, 0.88);
    background: rgba(15, 30, 60, 0.07);
}

body.theme-light .inv-history-item {
    border-bottom-color: rgba(15, 30, 60, 0.09);
}

body.theme-light .inv-history-item:first-child {
    border-top-color: rgba(15, 30, 60, 0.09);
}

body.theme-light .inv-history-item:hover {
    background: rgba(15, 30, 60, 0.03);
}

body.theme-light .inv-history-item__label {
    color: rgba(15, 23, 42, 0.9);
}

body.theme-light .inv-history-item__date {
    color: rgba(71, 85, 105, 0.7);
}

body.theme-light .inv-history-item__count {
    color: rgba(71, 85, 105, 0.52);
}

body.theme-light .inv-history-empty {
    color: rgba(71, 85, 105, 0.6);
}

.inv-history-chevron-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(177, 193, 224, 0.45);
    border-radius: 4px;
    padding: 0;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.inv-history-chevron-btn:hover {
    color: rgba(177, 193, 224, 0.85);
    background: rgba(177, 193, 224, 0.08);
}

.inv-history-chevron-btn--inert {
    cursor: default;
    opacity: 0.25;
    pointer-events: none;
}

.inv-history-chevron-btn--inert:hover {
    color: rgba(177, 193, 224, 0.45);
    background: none;
}

.inv-history-chevron {
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

/* Risk panel */
.inv-risk-panel {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.inv-risk-panel[hidden] {
    display: none;
}

.inv-risk-overall {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inv-risk-overall__label {
    font-size: 0.75rem;
    color: rgba(177, 193, 224, 0.6);
    flex: 1;
}

.inv-risk-overall__score {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.inv-risk-overall__tone {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.inv-risk-processes__title {
    display: block;
    font-size: 0.72rem;
    color: rgba(177, 193, 224, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 8px;
}

.inv-risk-processes__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inv-risk-process-row {
    display: grid;
    grid-template-columns: minmax(80px, 180px) 1fr 32px;
    align-items: center;
    gap: 10px;
}

.inv-risk-process-row__name {
    font-size: 0.78rem;
    color: rgba(210, 220, 245, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inv-risk-process-row__bar-wrap {
    height: 5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    overflow: hidden;
}

.inv-risk-process-row__bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    opacity: 0.75;
}

.inv-risk-process-row__score {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: right;
}

body.theme-light .inv-risk-panel {
    border-top-color: rgba(15, 30, 60, 0.07);
    background: rgba(15, 30, 60, 0.02);
}

body.theme-light .inv-risk-overall__label,
body.theme-light .inv-risk-processes__title {
    color: rgba(71, 85, 105, 0.65);
}

body.theme-light .inv-risk-process-row__name {
    color: rgba(15, 23, 42, 0.75);
}

body.theme-light .inv-risk-process-row__bar-wrap {
    background: rgba(15, 30, 60, 0.08);
}

.inv-risk-nodata {
    font-size: 0.78rem;
    color: rgba(177, 193, 224, 0.5);
    margin: 0;
    font-style: italic;
}

body.theme-light .inv-risk-nodata {
    color: rgba(71, 85, 105, 0.55);
}

@media (max-width: 640px) {
    .inv-history-container {
        padding: 16px 12px 32px;
    }

    .inv-history-item__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .inv-history-item__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ── Remediation UI refresh (cards, hierarchy, readability) ── */
#remediationScreen {
    --rem-card-bg: linear-gradient(165deg, rgba(22, 30, 48, 0.92), rgba(12, 16, 28, 0.92));
    --rem-card-border: rgba(140, 158, 198, 0.2);
    --rem-card-shadow: 0 14px 34px rgba(4, 8, 16, 0.35);
    --rem-soft-bg: rgba(255, 255, 255, 0.03);
    --rem-soft-border: rgba(158, 174, 208, 0.2);
    --rem-muted: rgba(193, 205, 233, 0.76);
    --rem-title: rgba(240, 245, 255, 0.98);
    --rem-focus: rgba(124, 177, 255, 0.54);
}

#remediationScreen .remediation-grid {
    gap: 22px;
    margin: 18px auto 44px;
}

#remediationScreen .remediation-kpi-row {
    gap: 16px;
}

#remediationScreen .remediation-kpi {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--rem-card-border);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(115, 148, 235, 0.14), transparent 62%),
        var(--rem-card-bg);
    box-shadow: var(--rem-card-shadow);
    overflow: hidden;
}

#remediationScreen .remediation-kpi::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(121, 151, 235, 0.88), rgba(67, 208, 248, 0.7));
    opacity: 0.9;
}

#remediationScreen .remediation-kpi--urgent::before {
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.95), rgba(251, 146, 60, 0.78));
}

#remediationScreen .remediation-kpi__label {
    color: var(--rem-muted);
}

#remediationScreen .remediation-kpi__value {
    color: var(--rem-title);
}

#remediationScreen .remediation-kpi__meta {
    color: rgba(214, 223, 244, 0.8);
}

#remediationScreen .match-card.match-card--remediation.remediation-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--rem-card-border);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(115, 148, 235, 0.11), transparent 65%),
        var(--rem-card-bg);
    box-shadow: var(--rem-card-shadow);
    overflow: hidden;
}

#remediationScreen .match-card.match-card--remediation.remediation-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(203, 216, 247, 0.3), transparent);
    pointer-events: none;
}

#remediationScreen .remediation-card .panel-header {
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--rem-soft-border);
}

#remediationScreen .remediation-card .panel-header__title h3 {
    color: var(--rem-title);
}

#remediationScreen .remediation-card .card-subtitle {
    color: var(--rem-muted);
}

#remediationScreen .remediation-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    border: 1px solid var(--rem-soft-border);
    border-radius: 14px;
    background: var(--rem-soft-bg);
    padding: 10px 12px;
}

#remediationScreen .remediation-stat-strip .dashboard-stat-strip__item {
    padding: 4px 12px;
}

#remediationScreen .remediation-stat-strip .dashboard-stat-strip__label {
    color: var(--rem-muted);
}

#remediationScreen .remediation-stat-strip .dashboard-stat-strip__value {
    color: var(--rem-title);
}

#remediationScreen .remediation-header h4,
#remediationScreen .remediation-section h4 {
    color: rgba(203, 216, 248, 0.86);
}

#remediationScreen .remediation-header__note {
    color: var(--rem-muted);
}

#remediationScreen .rp-bars {
    padding: 8px 12px;
    border: 1px solid var(--rem-soft-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

#remediationScreen .rp-bar + .rp-bar {
    border-top-style: dashed;
    border-top-color: rgba(154, 172, 208, 0.24);
}

#remediationScreen .rp-label,
#remediationScreen .rp-count,
#remediationScreen .rp-percent {
    color: var(--rem-title);
}

#remediationScreen .rp-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
}

#remediationScreen .remediation-priority-table__head {
    color: var(--rem-muted);
}

#remediationScreen .remediation-priority-table__body {
    padding-right: 4px;
}

#remediationScreen .remediation-priority-table__row {
    border-radius: 14px;
    border-color: var(--rem-soft-border);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#remediationScreen .remediation-priority-table__row:hover,
#remediationScreen .remediation-priority-table__row:focus-visible {
    border-color: var(--rem-focus);
    box-shadow: 0 10px 26px rgba(6, 10, 20, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#remediationScreen .remediation-priority-table__rank {
    border-color: var(--rem-soft-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--rem-title);
}

#remediationScreen .remediation-priority-table__cve,
#remediationScreen .remediation-priority-table__impact-value,
#remediationScreen .remediation-priority-table__open {
    color: var(--rem-title);
}

#remediationScreen .remediation-priority-table__summary,
#remediationScreen .remediation-priority-table__impact-meta {
    color: var(--rem-muted);
}

#remediationScreen .remediation-assets__toolbar {
    gap: 12px;
}

#remediationScreen .remediation-filter {
    border-radius: 12px;
    border: 1px solid var(--rem-soft-border);
    background: rgba(255, 255, 255, 0.03);
}

#remediationScreen .remediation-filter label {
    color: var(--rem-muted);
}

#remediationScreen .remediation-filter input,
#remediationScreen .remediation-filter select {
    border: 1px solid rgba(171, 188, 223, 0.2);
    background-color: rgba(10, 14, 24, 0.72);
    color: var(--rem-title);
}

#remediationScreen .remediation-filter input:focus,
#remediationScreen .remediation-filter select:focus {
    border-color: var(--rem-focus);
    box-shadow: 0 0 0 2px rgba(124, 177, 255, 0.22);
}

#remediationScreen .remediation-assets__layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

#remediationScreen .remediation-assets__aside {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

#remediationScreen .remediation-assets__list,
#remediationScreen .remediation-actions__list {
    padding-right: 4px;
}

#remediationScreen .remediation-asset {
    border-radius: 14px;
    border: 1px solid var(--rem-soft-border);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#remediationScreen .remediation-asset:hover,
#remediationScreen .remediation-asset:focus-within {
    border-color: var(--rem-focus);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

#remediationScreen .remediation-side-card,
#remediationScreen .remediation-cwe__detail {
    border-radius: 14px;
    border: 1px solid var(--rem-soft-border);
    background: rgba(255, 255, 255, 0.025);
    padding: 14px;
}

#remediationScreen .remediation-side-card__title,
#remediationScreen .remediation-cwe__hero-id,
#remediationScreen .remediation-cwe__insight-title {
    color: var(--rem-title);
}

#remediationScreen .remediation-side-card__meta,
#remediationScreen .remediation-cwe__hero-name,
#remediationScreen .remediation-cwe__hero-narrative,
#remediationScreen .remediation-cwe__guidance-text,
#remediationScreen .remediation-cwe__section-copy,
#remediationScreen .remediation-cwe__insight-text,
#remediationScreen .remediation-cwe__fact-value {
    color: var(--rem-muted);
}

#remediationScreen .remediation-actions__hero {
    gap: 16px;
}

#remediationScreen .remediation-actions__spotlight-card,
#remediationScreen .remediation-actions__ladder,
#remediationScreen .remediation-action {
    border-radius: 16px;
    border-color: var(--rem-soft-border);
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 123, 92, 0.08), transparent 46%),
      rgba(255, 255, 255, 0.02);
}

#remediationScreen .remediation-actions__spotlight-title,
#remediationScreen .remediation-action__title,
#remediationScreen .remediation-actions__spotlight-stat-value,
#remediationScreen .remediation-actions__why-score-value,
#remediationScreen .remediation-action__coverage-value {
    color: var(--rem-title);
}

#remediationScreen .remediation-actions__spotlight-context,
#remediationScreen .remediation-actions__spotlight-footer,
#remediationScreen .remediation-actions__spotlight-footer-meta,
#remediationScreen .remediation-actions__why-score-label,
#remediationScreen .remediation-actions__why-summary-copy,
#remediationScreen .remediation-actions__why-fact,
#remediationScreen .remediation-action__meta {
    color: var(--rem-muted);
}

#remediationScreen .remediation-actions__list {
    gap: 12px;
}

#remediationScreen .remediation-cwe {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 460px;
}

#remediationScreen .remediation-cwe__list {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid var(--rem-soft-border);
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
}

#remediationScreen .remediation-cwe__detail {
    min-height: 0;
}

#remediationScreen .remediation-cwe__item {
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.01);
}

#remediationScreen .remediation-cwe__item:hover,
#remediationScreen .remediation-cwe__item:focus-visible {
    border-color: var(--rem-focus);
}

#remediationScreen .remediation-cwe__item-id,
#remediationScreen .remediation-cwe__item-count {
    color: var(--rem-title);
}

#remediationScreen .remediation-cwe__item-name {
    color: var(--rem-muted);
}

@media (max-width: 1220px) {
    #remediationScreen .remediation-assets__layout,
    #remediationScreen .remediation-cwe {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    #remediationScreen .remediation-kpi-row {
        grid-template-columns: 1fr;
    }

    #remediationScreen .remediation-stat-strip {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #remediationScreen .remediation-stat-strip .dashboard-stat-strip__item {
        padding: 0;
    }

    #remediationScreen .remediation-stat-strip .dashboard-stat-strip__item + .dashboard-stat-strip__item {
        border-left: none;
        border-top: 1px solid var(--rem-soft-border);
        padding-top: 8px;
    }
}

@media (max-width: 720px) {
    #remediationScreen .match-card.match-card--remediation.remediation-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    #remediationScreen .remediation-actions__list,
    #remediationScreen .remediation-actions__list--fill {
        grid-template-columns: 1fr;
    }

    #remediationScreen .remediation-priority-table__row {
        border-radius: 12px;
    }
}

body.theme-light #remediationScreen {
    --rem-card-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.97));
    --rem-card-border: rgba(15, 30, 60, 0.15);
    --rem-card-shadow: 0 12px 28px rgba(21, 39, 75, 0.12);
    --rem-soft-bg: rgba(15, 30, 60, 0.03);
    --rem-soft-border: rgba(15, 30, 60, 0.14);
    --rem-muted: rgba(71, 85, 105, 0.82);
    --rem-title: rgba(15, 23, 42, 0.95);
    --rem-focus: rgba(59, 130, 246, 0.48);
}

body.theme-light #remediationScreen .remediation-filter input,
body.theme-light #remediationScreen .remediation-filter select {
    background-color: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 30, 60, 0.18);
}

body.theme-light #remediationScreen .remediation-kpi__meta,
body.theme-light #remediationScreen .remediation-header__note,
body.theme-light #remediationScreen .remediation-actions__spotlight-context,
body.theme-light #remediationScreen .remediation-actions__spotlight-footer,
body.theme-light #remediationScreen .remediation-actions__spotlight-footer-meta,
body.theme-light #remediationScreen .remediation-action__meta,
body.theme-light #remediationScreen .remediation-side-card__meta {
    color: rgba(71, 85, 105, 0.85);
}

#remediationScreen .remediation-actions__followon-empty {
    display: grid;
    gap: 7px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(154, 172, 208, 0.38);
    background:
      radial-gradient(circle at 100% 0%, rgba(124, 177, 255, 0.08), transparent 44%),
      rgba(255, 255, 255, 0.02);
}

#remediationScreen .remediation-actions__followon-empty-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rem-title);
}

#remediationScreen .remediation-actions__followon-empty-copy {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--rem-muted);
}

body.theme-light #remediationScreen .remediation-actions__followon-empty {
    border-color: rgba(71, 85, 105, 0.28);
    background:
      radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.08), transparent 44%),
      rgba(255, 255, 255, 0.66);
}

