:root {
    --slc-bg: #f4f6f8;
    --slc-ink: #17202a;
    --slc-muted: #667085;
    --slc-line: #d9e0e8;
    --slc-sidebar: #182230;
    --slc-sidebar-soft: #223044;
    --slc-accent: #0f766e;
    --slc-card: #ffffff;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--slc-bg);
    color: var(--slc-ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: var(--slc-sidebar);
    color: #fff;
    padding: 18px 14px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 18px;
    font-size: 1.05rem;
    font-weight: 700;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--slc-accent);
    color: #fff;
    font-size: .9rem;
    letter-spacing: 0;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7dee8;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .95rem;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
    background: var(--slc-sidebar-soft);
    color: #fff;
}

.main-content {
    min-width: 0;
}

.topbar {
    min-height: 84px;
    background: #fff;
    border-bottom: 1px solid var(--slc-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
}

.topbar h1 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.section-kicker {
    color: var(--slc-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--slc-line);
    border-radius: 8px;
    color: #344054;
    background: #fff;
    white-space: nowrap;
}

.content-area {
    padding: 24px;
}

/* Operational portal density */
.app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
    padding: 16px 12px;
}

.sidebar-brand {
    padding: 2px 6px 18px;
    font-size: .95rem;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    font-size: .78rem;
}

.sidebar-nav {
    gap: 2px;
}

.sidebar-nav a {
    gap: 9px;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: .82rem;
}

.topbar {
    min-height: 70px;
    padding: 13px 20px;
}

.topbar h1 {
    font-size: 1.22rem;
    font-weight: 720;
}

.section-kicker {
    font-size: .68rem;
    letter-spacing: .1em;
}

.user-pill {
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: .78rem;
}

.content-area {
    padding: 18px 20px;
}

.app-shell .panel {
    border-color: #d8e1ec;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .045);
    padding: 16px;
    margin-bottom: 16px;
}

.app-shell .panel-title {
    margin-bottom: 12px;
    color: #172033;
    font-size: .86rem;
    font-weight: 760;
    letter-spacing: 0;
}

.app-shell .form-label {
    margin-bottom: 4px;
    color: #435064;
    font-size: .72rem;
    font-weight: 760;
}

.app-shell .form-control,
.app-shell .form-select {
    min-height: 32px;
    border-color: #d5dde8;
    border-radius: 6px;
    color: #111827;
    font-size: .8rem;
    box-shadow: none;
}

.app-shell .form-control:focus,
.app-shell .form-select:focus {
    border-color: #4f8bd6;
    box-shadow: 0 0 0 3px rgba(79, 139, 214, .12);
}

.app-shell textarea.form-control {
    min-height: 62px;
}

.app-shell .btn {
    --bs-btn-border-radius: 6px;
    --bs-btn-padding-y: .34rem;
    --bs-btn-padding-x: .62rem;
    font-size: .78rem;
    font-weight: 650;
}

.app-shell .btn-sm {
    --bs-btn-padding-y: .22rem;
    --bs-btn-padding-x: .48rem;
    font-size: .72rem;
}

.data-table-wrap {
    overflow: auto;
    border: 1px solid #dce4ee;
    border-radius: 8px;
}

.app-shell .table,
.ops-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .78rem;
}

.app-shell .table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 9px;
    border-bottom: 1px solid #ccd7e4;
    background: #f2f6fb;
    color: #47566b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.app-shell .table td {
    padding: 7px 9px;
    border-bottom: 1px solid #e3e9f1;
    color: #1f2937;
    line-height: 1.35;
}

.app-shell .table-hover > tbody > tr:hover > * {
    background-color: #f6f9fc;
}

.app-shell .table tr:last-child td {
    border-bottom: 0;
}

.ops-panel-head,
.ops-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ops-panel-head {
    margin-bottom: 12px;
}

.ops-eyebrow {
    margin-bottom: 2px;
    color: #6b778b;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ops-chip {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    background: #f7fafc;
    color: #526074;
    font-size: .7rem;
    font-weight: 700;
}

.ops-toolbar {
    margin-bottom: 12px;
}

.ops-search {
    position: relative;
    flex: 1 1 520px;
    max-width: 720px;
}

.ops-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #728197;
    font-size: .82rem;
}

.app-shell .ops-search-input {
    padding-left: 31px;
    background: #fbfdff;
}

.ops-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid #d8e1ec;
    border-radius: 999px;
    background: #fff;
    color: #435064;
    font-size: .75rem;
    white-space: nowrap;
}

.ops-toggle label {
    margin: 0;
    cursor: pointer;
}

.raw-table td:nth-child(5),
.raw-table td:nth-child(6) {
    max-width: 430px;
}

.raw-snippet {
    display: block;
    max-width: 100%;
    color: #27364a;
    font-family: Consolas, "SFMono-Regular", "Courier New", monospace;
    font-size: .72rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.raw-json {
    color: #224163;
}

.state-pill,
.parse-state {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.state-ok,
.parse-ok {
    background: #e8f7ef;
    color: #137548;
}

.state-wait {
    background: #fff7e6;
    color: #98690c;
}

.parse-error {
    background: #fde8e8;
    color: #b42318;
}

/* Client SOC report */
.client-report-page {
    display: grid;
    gap: 14px;
}

.report-command-panel {
    margin-bottom: 0;
}

.report-filter-line {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.report-filter-field {
    flex: 1 1 420px;
    max-width: 780px;
}

.client-report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 16px;
    align-items: stretch;
    padding: 20px;
    border: 1px solid #1c2b3c;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(9, 22, 38, .96), rgba(16, 58, 82, .9)),
        #0b1726;
    color: #edf5ff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.client-report-copy h2 {
    max-width: 980px;
    margin: 5px 0 8px;
    font-size: clamp(1.65rem, 2.6vw, 2.8rem);
    line-height: 1.02;
    font-weight: 790;
    letter-spacing: 0;
}

.client-report-copy p {
    max-width: 980px;
    margin: 12px 0 0;
    color: #c7d6e8;
    font-size: .9rem;
    line-height: 1.65;
}

.client-report-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.client-report-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid rgba(219, 234, 254, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #dbeafe;
    font-size: .72rem;
    font-weight: 760;
}

.client-score-card {
    display: grid;
    align-content: center;
    justify-items: center;
    border: 1px solid rgba(219, 234, 254, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    text-align: center;
}

.client-score-card span {
    color: #a9bad0;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.client-score-card strong {
    margin: 8px 0 5px;
    color: #fff;
    font-size: 3rem;
    line-height: .9;
    font-weight: 820;
}

.client-score-card em {
    color: #9fb0c6;
    font-size: .95rem;
    font-style: normal;
    font-weight: 650;
}

.client-score-card small {
    color: #9fd7cf;
    font-size: .74rem;
    font-weight: 720;
}

.client-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.client-kpi {
    position: relative;
    min-height: 98px;
    padding: 14px 15px;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .045);
    overflow: hidden;
}

.client-kpi i {
    position: absolute;
    right: 15px;
    bottom: 13px;
    color: #2f7de1;
    font-size: 1.9rem;
    opacity: .18;
}

.client-kpi span {
    display: block;
    color: #5d6b7e;
    font-size: .68rem;
    font-weight: 820;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.client-kpi strong {
    display: block;
    margin-top: 8px;
    color: #101828;
    font-size: 2rem;
    line-height: 1;
    font-weight: 820;
}

.client-kpi small {
    display: block;
    margin-top: 7px;
    color: #7b8796;
    font-size: .7rem;
    font-weight: 650;
}

.client-kpi.danger strong,
.client-kpi.danger i {
    color: #dc2626;
}

.client-kpi.warning strong,
.client-kpi.warning i {
    color: #d97706;
}

.client-report-grid {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr) minmax(320px, .9fr);
    gap: 14px;
    align-items: stretch;
}

.report-profile-card,
.report-chart-card,
.report-host-card,
.report-incidents-card {
    min-width: 0;
}

.report-dl {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 9px 14px;
    margin: 0;
}

.report-dl dt {
    color: #6a778a;
    font-size: .7rem;
    font-weight: 820;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.report-dl dd {
    margin: 0;
    color: #1f2937;
    font-size: .8rem;
    font-weight: 680;
}

.report-chart-wrap {
    height: 210px;
}

.report-mini-table th,
.report-mini-table td {
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475467;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.status-open {
    background: #fee2e2;
    color: #b42318;
}

.status-analysis {
    background: #fff3d6;
    color: #93640a;
}

.status-closed {
    background: #e8f7ef;
    color: #137548;
}

.status-false {
    background: #eef2f7;
    color: #526074;
}

@media print {
    .sidebar,
    .topbar,
    .report-command-panel {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .content-area {
        padding: 0;
    }

    .panel,
    .client-kpi,
    .client-report-hero {
        box-shadow: none !important;
    }
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card,
.panel {
    background: var(--slc-card);
    border: 1px solid var(--slc-line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.metric-card {
    padding: 18px;
}

.metric-label {
    color: var(--slc-muted);
    font-size: .88rem;
}

.metric-value {
    margin-top: 6px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 750;
}

.panel {
    padding: 18px;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.table {
    vertical-align: middle;
}

.table th {
    color: #475467;
    font-weight: 650;
    white-space: nowrap;
}

.form-label {
    font-weight: 650;
    color: #344054;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 18px;
}

.raw-box,
.code-box {
    background: #101828;
    color: #e4e7ec;
    border-radius: 8px;
    padding: 14px;
    overflow: auto;
    max-height: 360px;
    white-space: pre-wrap;
}

.chart-wrap {
    height: 300px;
}

.message {
    margin-bottom: 16px;
}

@media (max-width: 992px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

    .metric-grid,
    .filter-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

/* Executive dashboard */
body.dashboard-executive-page {
    background: #07111d;
    color: #d7e2ef;
}

body.dashboard-executive-page .app-shell {
    grid-template-columns: 230px minmax(0, 1fr);
    background: #07111d;
}

body.dashboard-executive-page .sidebar {
    background: #081421;
    border-right: 1px solid #17283a;
    box-shadow: inset -1px 0 0 rgba(255,255,255,.02);
}

body.dashboard-executive-page .sidebar-brand {
    color: #f5f9ff;
    font-size: 1rem;
}

body.dashboard-executive-page .brand-mark {
    width: 34px;
    height: 34px;
    background: #0e7c70;
    border: 1px solid rgba(64, 224, 208, .28);
    font-size: .72rem;
}

body.dashboard-executive-page .sidebar-nav a {
    color: #9fb0c6;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: .88rem;
    padding: 10px 11px;
}

body.dashboard-executive-page .sidebar-nav a:first-child,
body.dashboard-executive-page .sidebar-nav a:hover,
body.dashboard-executive-page .sidebar-nav a:focus {
    color: #fff;
    background: #0f4ea3;
    border-color: rgba(91, 156, 255, .25);
}

body.dashboard-executive-page .main-content {
    background: #07111d;
}

body.dashboard-executive-page .topbar {
    display: none;
}

body.dashboard-executive-page .content-area {
    padding: 0;
}

.exec-dashboard {
    min-height: 100vh;
    padding: 18px 20px 22px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.018) 1px, transparent 1px),
        #07111d;
    background-size: 42px 42px;
}

.exec-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.exec-header h1 {
    margin: 0;
    color: #f5f9ff;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 750;
}

.exec-header p {
    margin: 3px 0 0;
    color: #8191a7;
    font-size: .85rem;
}

.exec-eyebrow {
    color: #9fb0c6;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .7rem;
    font-weight: 750;
}

.exec-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.exec-date,
.exec-icon-btn,
.exec-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    border: 1px solid #1f344a;
    border-radius: 6px;
    background: #091726;
    color: #b9c8da;
    text-decoration: none;
    font-size: .78rem;
}

.exec-date {
    padding: 0 11px;
}

.exec-icon-btn {
    width: 36px;
    justify-content: center;
}

.exec-export {
    color: #58a6ff;
    padding: 0 13px;
    font-weight: 650;
}

.exec-export:hover,
.exec-icon-btn:hover {
    border-color: #2870c8;
    color: #fff;
}

.exec-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.exec-card {
    background: #0c1a29;
    border: 1px solid #1a3045;
    border-radius: 7px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.exec-kpi {
    position: relative;
    min-height: 112px;
    padding: 13px 14px;
    overflow: hidden;
}

.exec-kpi span,
.exec-panel-title strong {
    display: block;
    color: #e7eef8;
    font-size: .84rem;
    line-height: 1.15;
    text-transform: uppercase;
    font-weight: 760;
}

.exec-kpi small,
.exec-panel-title span {
    display: block;
    color: #7f8ea4;
    margin-top: 3px;
    font-size: .72rem;
}

.exec-score,
.exec-value {
    margin-top: 11px;
    color: #f7fbff;
    font-weight: 760;
    line-height: 1;
    letter-spacing: 0;
}

.exec-score {
    font-size: 2.1rem;
}

.exec-score em {
    color: #8394aa;
    font-size: .85rem;
    font-style: normal;
    font-weight: 600;
}

.exec-value {
    font-size: 1.9rem;
}

.trend-up,
.trend-down,
.trend-danger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #22c55e;
    font-size: .72rem;
    font-weight: 720;
}

.trend-down {
    color: #22c55e;
}

.trend-danger {
    color: #ef4444;
}

.kpi-icon {
    position: absolute;
    right: 13px;
    bottom: 16px;
    font-size: 2.35rem;
    opacity: .92;
}

.kpi-icon.teal { color: #16a394; }
.kpi-icon.blue { color: #2f7de1; }
.kpi-icon.red { color: #ef4444; }
.kpi-icon.orange { color: #f97316; }
.kpi-icon.violet { color: #8b5cf6; }

.exec-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.exec-grid-main {
    grid-template-columns: 1.55fr 1fr 1fr .9fr;
}

.exec-grid-risk {
    grid-template-columns: 1.25fr 1fr 1fr .9fr;
}

.exec-grid-bottom {
    grid-template-columns: 1.45fr 1.15fr 1.15fr;
}

.exec-panel,
.exec-table-panel {
    min-width: 0;
    padding: 13px;
}

.exec-panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.exec-chart {
    position: relative;
    min-height: 190px;
}

.exec-chart.line {
    height: 194px;
}

.exec-chart.donut {
    height: 190px;
}

.exec-panel.compact {
    display: grid;
    grid-template-rows: auto auto 42px auto 42px;
}

.time-metric {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 4px 8px;
    margin-top: 6px;
}

.time-metric span {
    color: #8fa2ba;
    font-size: .76rem;
}

.time-metric strong {
    color: #e7eef8;
    font-size: 1.45rem;
    font-weight: 740;
}

.time-metric small {
    justify-self: end;
}

.mini-spark {
    height: 42px;
}

.risk-map-panel {
    overflow: hidden;
}

.risk-map {
    position: relative;
    padding-left: 34px;
    padding-bottom: 20px;
}

.risk-y {
    position: absolute;
    left: -24px;
    top: 78px;
    transform: rotate(-90deg);
    color: #93a4bb;
    font-size: .7rem;
    font-weight: 700;
}

.risk-x {
    position: absolute;
    right: 10px;
    bottom: 0;
    color: #93a4bb;
    font-size: .7rem;
    font-weight: 700;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 31px;
    gap: 2px;
}

.risk-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.risk-cell span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #0b1220;
    color: #dfeaf8;
    font-size: .7rem;
    font-weight: 800;
}

.risk-green { background: #23934f; }
.risk-yellow { background: #e0b320; }
.risk-orange { background: #f97316; }
.risk-red { background: #dc2626; }

.risk-axis-x {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    color: #8191a7;
    font-size: .62rem;
    margin-top: 6px;
    text-align: center;
}

.risk-line {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 10px;
    margin: 13px 0;
}

.risk-line span {
    color: #b9c8da;
    font-size: .82rem;
}

.risk-line strong {
    color: #dce7f5;
    text-align: right;
    font-size: .82rem;
}

.risk-progress,
.framework-list div {
    position: relative;
    height: 13px;
    background: #14243a;
    border-radius: 3px;
    overflow: hidden;
}

.risk-progress i,
.framework-list i {
    display: block;
    height: 100%;
    border-radius: 3px;
}

.risk-progress .critical { background: #ef4444; }
.risk-progress .high { background: #f97316; }
.risk-progress .medium { background: #fbbf24; }
.risk-progress .low { background: #16a34a; }
.risk-progress .info { background: #38bdf8; }

.framework-list {
    display: grid;
    gap: 13px;
}

.framework-list div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    height: auto;
    background: transparent;
    overflow: visible;
}

.framework-list span,
.framework-list strong {
    color: #b9c8da;
    font-size: .8rem;
}

.framework-list strong {
    text-align: right;
}

.framework-list i {
    height: 12px;
    background: #14884d;
}

.awareness {
    display: grid;
    align-content: start;
}

.gauge {
    position: relative;
    display: grid;
    justify-items: center;
    align-items: center;
    min-height: 176px;
}

.gauge-arc {
    width: 154px;
    height: 82px;
    border-radius: 154px 154px 0 0;
    background: conic-gradient(from 270deg, #ef4444 0 24%, #f59e0b 24% 54%, #22c55e 54% 100%);
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 49px, #000 50px);
    mask: radial-gradient(circle at 50% 100%, transparent 0 49px, #000 50px);
}

.gauge strong {
    margin-top: -18px;
    color: #f5f9ff;
    font-size: 2rem;
    font-weight: 760;
}

.gauge em {
    color: #91a3b9;
    font-style: normal;
    font-size: .9rem;
}

.exec-table {
    width: 100%;
    border-collapse: collapse;
}

.exec-table th,
.exec-table td {
    padding: 8px 7px;
    border-bottom: 1px solid #1c3045;
    color: #b9c8da;
    font-size: .76rem;
    white-space: nowrap;
}

.exec-table th {
    color: #7f8ea4;
    font-weight: 760;
    text-transform: uppercase;
    font-size: .66rem;
}

.exec-table td:nth-child(2) {
    white-space: normal;
}

.exec-table a {
    color: #dce7f5;
    text-decoration: none;
}

.exec-table a:hover {
    color: #58a6ff;
}

.sev-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 22px;
    border-radius: 4px;
    color: #08111e;
    font-size: .66rem;
    font-weight: 800;
}

.sev-chip.critical { background: #ef4444; color: #fff; }
.sev-chip.high { background: #f97316; }
.sev-chip.medium { background: #fbbf24; }
.sev-chip.low { background: #22c55e; }
.sev-chip.info { background: #38bdf8; }

.status-text {
    color: #fbbf24;
    font-weight: 650;
}

@media (max-width: 1450px) {
    .exec-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .exec-grid-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    body.dashboard-executive-page .app-shell {
        grid-template-columns: 1fr;
    }

    .exec-dashboard {
        padding: 16px;
    }

    .exec-header {
        flex-direction: column;
    }

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

    .exec-kpi-grid,
    .exec-grid-main,
    .exec-grid-risk {
        grid-template-columns: 1fr;
    }
}

/* Public portal */
.public-page {
    background: #f5f2eb;
    color: #111827;
}

.public-premium {
    background: #f3f6f9;
    color: #101828;
}

.public-premium .btn-primary {
    --bs-btn-bg: #0f766e;
    --bs-btn-border-color: #0f766e;
    --bs-btn-hover-bg: #0b5f59;
    --bs-btn-hover-border-color: #0b5f59;
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 34px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid #dfd8cc;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.public-nav-premium {
    min-height: 82px;
    padding: 16px clamp(22px, 5vw, 70px);
    background: rgba(7, 17, 29, .86);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 40px rgba(2, 6, 23, .16);
}

.public-logo img {
    width: 250px;
    max-width: 58vw;
    height: auto;
    display: block;
}

.public-nav nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.public-nav a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 650;
}

.public-nav-premium a {
    color: #c9d7e8;
    font-size: .9rem;
}

.public-nav a:hover {
    color: #0f766e;
}

.public-nav-premium a:hover {
    color: #fff;
}

.public-login-link {
    border: 1px solid #0f766e;
    color: #0f766e !important;
    padding: 9px 14px;
    border-radius: 8px;
}

.public-nav-premium .public-login-link {
    border-color: rgba(111, 231, 216, .52);
    background: rgba(15, 118, 110, .2);
    color: #e7fffb !important;
}

.home-hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: min(760px, calc(100svh - 70px));
    padding: clamp(58px, 8vw, 96px) clamp(22px, 6vw, 86px) clamp(58px, 7vw, 84px);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 11, 22, .96) 0%, rgba(7, 18, 31, .9) 35%, rgba(7, 18, 31, .46) 62%, rgba(7, 18, 31, .26) 100%),
        url("../img/securitylogcenter-hero-soc.png") center right / cover no-repeat;
    color: #fff;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(15, 118, 110, .22), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 38%);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.home-eyebrow,
.home-kicker,
.home-section-head span {
    display: block;
    color: #66ddd0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 12px 0 16px;
    color: #fff;
    font-size: clamp(3.2rem, 7vw, 7.2rem);
    line-height: .88;
    font-weight: 820;
    letter-spacing: 0;
}

.home-hero p {
    max-width: 760px;
    margin: 0;
    color: #d8e5f5;
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.65;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-actions .btn {
    border-radius: 6px;
    padding: 12px 18px;
    font-size: .94rem;
    font-weight: 740;
}

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.home-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(219, 234, 254, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #d8e5f5;
    font-size: .8rem;
    font-weight: 680;
}

.home-hero-status {
    position: absolute;
    z-index: 2;
    left: clamp(22px, 6vw, 86px);
    right: clamp(22px, 6vw, 86px);
    bottom: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    border: 1px solid rgba(219, 234, 254, .16);
    border-radius: 8px;
    background: rgba(7, 17, 29, .68);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.home-hero-status div {
    padding: 13px 16px;
    border-right: 1px solid rgba(219, 234, 254, .12);
}

.home-hero-status div:last-child {
    border-right: 0;
}

.home-hero-status span {
    display: block;
    color: #9fb0c6;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-hero-status strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 820;
}

.home-section {
    padding: clamp(60px, 8vw, 96px) clamp(22px, 6vw, 86px);
}

.home-section-head {
    max-width: 860px;
    margin-bottom: 30px;
}

.home-section-head h2,
.home-product-layout h2,
.premium-studio h2 {
    margin: 9px 0 13px;
    color: #101828;
    font-size: clamp(2rem, 3.5vw, 3.75rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 0;
}

.home-section-head p,
.home-product-layout p,
.premium-studio p {
    margin: 0;
    color: #536174;
    font-size: 1rem;
    line-height: 1.75;
}

.home-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-value-grid article {
    min-height: 240px;
    padding: 24px;
    border: 1px solid #d9e2ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .055);
}

.home-value-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    border-radius: 8px;
    background: #e8f7f4;
    color: #0f766e;
    font-size: 1.25rem;
}

.home-value-grid h3,
.home-flow-grid h3 {
    margin: 0 0 10px;
    color: #101828;
    font-size: 1.08rem;
    font-weight: 800;
}

.home-value-grid p,
.home-flow-grid p {
    margin: 0;
    color: #5d6b7e;
    line-height: 1.65;
}

.home-product-band {
    background: #07111d;
    color: #d8e5f5;
}

.home-product-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, .8fr);
    gap: 44px;
    align-items: center;
}

.home-product-layout h2 {
    color: #fff;
}

.home-product-layout p {
    color: #b6c5d8;
}

.home-module-list {
    display: grid;
    gap: 10px;
}

.home-module-list div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    min-height: 70px;
    border: 1px solid rgba(219, 234, 254, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
}

.home-module-list strong {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-right: 1px solid rgba(219, 234, 254, .12);
    color: #66ddd0;
    font-size: .82rem;
}

.home-module-list span {
    padding: 0 18px;
    color: #f2f7fb;
    font-weight: 760;
}

.home-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    overflow: hidden;
    background: #dce4ee;
}

.home-flow-grid article {
    min-height: 220px;
    padding: 24px;
    background: #fff;
}

.home-flow-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #0b1220;
    color: #fff;
    font-weight: 800;
}

.premium-studio {
    background: #fff;
    border-top: 1px solid #dce4ee;
    border-bottom: 1px solid #dce4ee;
}

.premium-contact {
    background: #f3f6f9;
}

.premium-contact .contact-card {
    border-color: #d9e2ed;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .06);
}

.premium-contact .contact-side {
    background: #07111d;
}

.premium-footer {
    background: #07111d;
}

.hero-security {
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
    align-items: center;
    gap: 42px;
    padding: 72px 6vw 56px;
    background:
        linear-gradient(115deg, rgba(11,18,32,.92), rgba(15,118,110,.74)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='800' viewBox='0 0 1400 800'%3E%3Crect width='1400' height='800' fill='%23101828'/%3E%3Cg fill='none' stroke='%2334495e' stroke-width='1' opacity='.35'%3E%3Cpath d='M0 110h1400M0 220h1400M0 330h1400M0 440h1400M0 550h1400M0 660h1400M130 0v800M260 0v800M390 0v800M520 0v800M650 0v800M780 0v800M910 0v800M1040 0v800M1170 0v800M1300 0v800'/%3E%3C/g%3E%3Cg fill='%230f766e' opacity='.55'%3E%3Ccircle cx='190' cy='190' r='4'/%3E%3Ccircle cx='390' cy='330' r='4'/%3E%3Ccircle cx='650' cy='250' r='4'/%3E%3Ccircle cx='910' cy='480' r='4'/%3E%3Ccircle cx='1170' cy='330' r='4'/%3E%3C/g%3E%3Cpath d='M190 190 390 330 650 250 910 480 1170 330' fill='none' stroke='%23d6b25e' stroke-width='3' opacity='.75'/%3E%3C/svg%3E");
    background-size: cover;
    color: #fff;
}

.hero-security h1 {
    font-size: clamp(2.5rem, 5vw, 5.8rem);
    line-height: .95;
    max-width: 920px;
    margin: 16px 0 24px;
    letter-spacing: 0;
    font-weight: 780;
}

.hero-security p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #d9e4ef;
    max-width: 760px;
}

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

.hero-security__panel {
    display: grid;
    gap: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 22px 70px rgba(0,0,0,.28);
}

.status-line,
.signal-card {
    background: rgba(255,255,255,.95);
    color: #17202a;
    border-radius: 8px;
    padding: 16px;
}

.status-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.signal-card {
    border-left: 5px solid #0f766e;
}

.signal-card span {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #667085;
    font-weight: 750;
}

.signal-card strong {
    display: block;
    margin: 4px 0;
}

.signal-card small {
    color: #667085;
}

.signal-card.danger { border-color: #b42318; }
.signal-card.warning { border-color: #d6a13d; }
.signal-card.success { border-color: #0f766e; }

.public-section {
    padding: 70px 6vw;
}

.public-band {
    background: #ffffff;
    border-top: 1px solid #e4ded4;
    border-bottom: 1px solid #e4ded4;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 30px;
}

.section-heading span,
.studio-section .section-kicker {
    color: #0f766e;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
    font-weight: 750;
}

.section-heading h2,
.studio-section h2,
.legal-container h1 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
    margin: 10px 0 14px;
    font-weight: 780;
}

.section-heading p,
.studio-section p,
.legal-container p {
    color: #4b5563;
    line-height: 1.75;
}

.feature-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

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

.feature-grid article,
.news-grid article,
.contact-card,
.contact-side,
.map-card {
    background: #fff;
    border: 1px solid #ddd6cb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.feature-grid strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    margin-bottom: 18px;
}

.feature-grid h3,
.news-grid h3,
.contact-side h3 {
    font-size: 1.16rem;
    margin-bottom: 10px;
}

.feature-grid p,
.news-grid p,
.contact-side li {
    color: #556070;
    line-height: 1.65;
}

.news-grid small {
    display: block;
    color: #9a6b16;
    font-weight: 750;
    margin-bottom: 10px;
}

.studio-section,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 30px;
    align-items: stretch;
}

.studio-facts {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px 16px;
    margin-top: 24px;
}

.studio-facts dt {
    color: #667085;
    font-weight: 750;
}

.studio-facts dd {
    margin: 0;
}

.studio-facts a,
.public-footer a,
.legal-container a,
.contact-side a {
    color: #0f766e;
}

.map-card {
    padding: 0;
    overflow: hidden;
    min-height: 390px;
}

.map-card iframe {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
}

.contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .55fr);
    align-items: start;
}

.contact-side {
    background: #0b1220;
    color: #fff;
}

.contact-side li {
    color: #d9e4ef;
    margin-bottom: 12px;
}

.public-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 6vw;
    background: #0b1220;
    color: #d9e4ef;
}

.public-footer div:last-child {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.cookie-notice {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    padding: 13px 16px;
    background: #0b1220;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 50px rgba(0,0,0,.28);
}

.cookie-notice a {
    color: #6ee7d8;
}

.legal-page {
    background: #fff;
}

.legal-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 64px 24px 90px;
}

.legal-container h2 {
    margin-top: 34px;
    font-size: 1.35rem;
}

.portal-login {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(11,18,32,.96), rgba(15,118,110,.82)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Crect width='900' height='900' fill='%230b1220'/%3E%3Cg stroke='%23d6b25e' stroke-width='2' fill='none' opacity='.22'%3E%3Cpath d='M90 190h720M120 310h660M160 430h580M210 550h480M260 670h380'/%3E%3Cpath d='M190 90v720M310 120v660M430 160v580M550 210v480M670 260v380'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 44px;
    align-items: center;
    padding: 44px 6vw;
}

.login-intro {
    color: #fff;
    max-width: 780px;
}

.login-logo {
    width: 310px;
    max-width: 72vw;
    margin-bottom: 34px;
}

.login-intro h1 {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1;
    margin: 14px 0 18px;
    font-weight: 780;
}

.login-intro p {
    color: #d9e4ef;
    line-height: 1.75;
    font-size: 1.1rem;
}

.login-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.login-proof span {
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    padding: 9px 12px;
    color: #e6edf6;
}

.login-card {
    background: #fff;
    border-radius: 8px;
    padding: 34px;
    box-shadow: 0 22px 70px rgba(0,0,0,.3);
}

.login-card h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 780;
}

.login-card p,
.login-help {
    color: #667085;
}

.login-help {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.login-help a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 650;
}

/* Group perimeter */
.perimeter-page {
    display: grid;
    gap: 20px;
}

.perimeter-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 210px;
    padding: 34px;
    border-radius: 8px;
    border: 1px solid #1f2a3a;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, .96), rgba(15, 118, 110, .58)),
        #111827;
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.perimeter-eyebrow {
    display: block;
    color: #9fd7cf;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.perimeter-hero h2 {
    max-width: 860px;
    margin: 12px 0 12px;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
    font-weight: 780;
}

.perimeter-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbe7f5;
    font-size: 1.05rem;
    line-height: 1.7;
}

.perimeter-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 106px;
    height: 106px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, .55);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .08);
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
}

.perimeter-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.perimeter-kpis article {
    min-height: 116px;
    padding: 22px 24px;
    border: 1px solid #ced8e5;
    border-radius: 8px;
    background: #476fa8;
    color: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .12);
}

.perimeter-kpis span {
    display: block;
    font-weight: 650;
    color: #eef5ff;
}

.perimeter-kpis strong {
    display: block;
    margin-top: 10px;
    font-size: 2.9rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.perimeter-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
    gap: 20px;
    align-items: start;
}

.perimeter-page .table th {
    background: #141b26;
    color: #fff;
    border-color: #263244;
}

.perimeter-page .table td {
    border-color: #dde5ef;
}

@media (max-width: 1100px) {
    .hero-security,
    .studio-section,
    .contact-grid,
    .login-shell {
        grid-template-columns: 1fr;
    }

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

    .home-value-grid,
    .home-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-product-layout {
        grid-template-columns: 1fr;
    }
}

/* Assessment integrato */
.assessment-shell .assessment-muted,
.assessment-muted {
    color: #667085;
    font-size: .84rem;
    margin: 0;
}

.assessment-toolbar,
.assessment-hero,
.assessment-question-head,
.assessment-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.assessment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.assessment-table td,
.assessment-table th {
    font-size: .8rem;
}

.assessment-progress-mini {
    display: grid;
    gap: 4px;
    min-width: 110px;
}

.assessment-progress-mini span {
    font-weight: 700;
    font-size: .78rem;
}

.assessment-progress-mini .progress {
    height: 6px;
    background: #e7edf5;
}

.assessment-compile-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.assessment-module-nav {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.assessment-module-list {
    display: grid;
    gap: 6px;
}

.assessment-module-link {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid #dbe4ef;
    border-radius: 7px;
    color: #1d2939;
    text-decoration: none;
    background: #fff;
}

.assessment-module-link:hover,
.assessment-module-link.active {
    border-color: #2f6fd6;
    background: #f4f8ff;
}

.assessment-module-link .area {
    color: #667085;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.assessment-module-link strong {
    font-size: .82rem;
}

.assessment-module-link span:last-child {
    color: #475467;
    font-size: .76rem;
}

.assessment-hero {
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fc 100%);
}

.assessment-hero h2 {
    margin: 2px 0 6px;
    font-size: 1.28rem;
}

.assessment-score {
    min-width: 150px;
    text-align: right;
}

.assessment-score strong {
    display: block;
    font-size: 2rem;
    color: #0f766e;
    line-height: 1;
}

.assessment-score span {
    color: #667085;
    font-size: .78rem;
}

.assessment-current-module {
    border-bottom: 1px solid #e3e9f1;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.assessment-current-module span {
    color: #667085;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.assessment-current-module h3 {
    margin: 2px 0 4px;
    font-size: 1.1rem;
}

.assessment-current-module p {
    margin: 0;
    color: #667085;
    font-size: .84rem;
}

.assessment-section-title {
    margin: 18px 0 10px;
    padding-top: 8px;
    color: #1d2939;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.assessment-question {
    padding: 14px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 12px;
}

.assessment-question h4 {
    margin: 4px 0 0;
    font-size: .98rem;
    line-height: 1.35;
}

.question-code {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef4ff;
    color: #175cd3;
    font-size: .72rem;
    font-weight: 800;
}

.question-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.assessment-ref {
    margin: 8px 0 0;
    padding: 7px 9px;
    border-left: 3px solid #0f766e;
    background: #f3faf8;
    color: #344054;
    font-size: .78rem;
}

.assessment-guidance {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #d8e3f0;
    border-radius: 7px;
    background: #f8fbff;
    color: #344054;
    font-size: .78rem;
}

.assessment-guidance span {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.assessment-guidance p {
    margin: 0;
    line-height: 1.45;
}

.assessment-answer {
    margin-top: 12px;
}

.user-admin-panel .form-text {
    color: #667085;
    font-size: .76rem;
}

.readonly-pill {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid #d5dde8;
    border-radius: 7px;
    background: #f8fafc;
    color: #1d2939;
    font-size: .86rem;
    font-weight: 700;
}

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #344054;
    font-size: .82rem;
    font-weight: 700;
}

.professional-table td,
.professional-table th {
    vertical-align: middle;
}

.assessment-assignment-list {
    width: 100%;
}

.assessment-assignment-list td {
    padding: 5px 18px 5px 0;
    color: #1d2939;
    font-size: .84rem;
    font-weight: 650;
}

.assessment-assignment-list input {
    margin-right: 6px;
}

.assessment-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.assessment-choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #d5dde8;
    border-radius: 7px;
    background: #fbfcfe;
    color: #1d2939;
    font-size: .82rem;
    cursor: pointer;
}

.assessment-choice input {
    margin: 0;
}

.assessment-choice:has(input:checked) {
    border-color: #2f6fd6;
    background: #eef4ff;
}

.assessment-na {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: #475467;
    font-size: .82rem;
}

.assessment-readonly-value {
    min-height: 32px;
    padding: 7px 9px;
    border: 1px solid #e3e9f1;
    border-radius: 6px;
    background: #f8fafc;
    color: #475467;
    font-size: .82rem;
}

.assessment-footer-actions {
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e3e9f1;
    flex-wrap: wrap;
}

.assessment-empty {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #667085;
}

.assessment-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.assessment-kpi {
    margin-bottom: 0;
}

.assessment-kpi span {
    color: #667085;
    font-size: .76rem;
}

.assessment-kpi strong {
    display: block;
    margin-top: 4px;
    color: #101828;
    font-size: 1.45rem;
}

@media (max-width: 1200px) {
    .assessment-compile-grid {
        grid-template-columns: 1fr;
    }

    .assessment-module-nav {
        position: static;
        max-height: none;
    }

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

@media (max-width: 700px) {
    .assessment-toolbar,
    .assessment-hero,
    .assessment-question-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .assessment-score {
        text-align: left;
    }

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

@media (max-width: 760px) {
    .public-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 20px;
    }

    .public-nav nav {
        gap: 12px;
    }

    .public-nav-premium {
        position: static;
        min-height: auto;
    }

    .public-nav-premium .public-logo img {
        width: 230px;
    }

    .home-hero {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 210px;
        background-position: center right;
    }

    .home-hero h1 {
        font-size: clamp(3rem, 16vw, 4.4rem);
    }

    .home-trust-row span {
        width: 100%;
    }

    .home-hero-status {
        grid-template-columns: 1fr;
        max-width: none;
        bottom: 20px;
    }

    .home-hero-status div {
        border-right: 0;
        border-bottom: 1px solid rgba(219, 234, 254, .12);
        padding: 10px 13px;
    }

    .home-hero-status div:last-child {
        border-bottom: 0;
    }

    .home-section {
        padding: 56px 22px;
    }

    .home-value-grid,
    .home-flow-grid {
        grid-template-columns: 1fr;
    }

    .home-value-grid article,
    .home-flow-grid article {
        min-height: auto;
    }

    .hero-security,
    .public-section,
    .login-shell {
        padding-left: 22px;
        padding-right: 22px;
    }

    .perimeter-hero,
    .perimeter-grid {
        grid-template-columns: 1fr;
    }

    .perimeter-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

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

    .feature-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .studio-facts {
        grid-template-columns: 1fr;
    }

    .public-footer,
    .cookie-notice {
        flex-direction: column;
        align-items: flex-start;
    }
}
