:root {
    color-scheme: light;
    --navy-950: #07101f;
    --navy-900: #0b1426;
    --navy-800: #15213a;
    --navy-700: #243553;
    --blue-700: #2457d6;
    --blue-600: #3267e8;
    --blue-100: #eaf0ff;
    --teal-600: #0b8c78;
    --teal-100: #e2f6f1;
    --amber-600: #b96a08;
    --amber-100: #fff3d7;
    --violet-600: #7252c7;
    --violet-100: #f0ebff;
    --red-700: #b42318;
    --red-100: #feeceb;
    --green-700: #087a55;
    --green-100: #e5f7ef;
    --ink: #172033;
    --muted: #68758a;
    --line: #e3e8f0;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --shadow-sm: 0 1px 2px rgba(7, 16, 31, 0.05);
    --shadow-md: 0 14px 40px rgba(7, 16, 31, 0.11);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --sidebar-width: 260px;
    font-family:
        Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(50, 103, 232, 0.25);
    outline-offset: 2px;
}

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

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy-900);
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 37px;
    height: 37px;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(145deg, #4778f3, #1e4bc3);
    border-radius: 11px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 8px 20px rgba(36, 87, 214, 0.22);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-name {
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--blue-700);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #91b4ff;
}

.muted {
    margin: 5px 0 0;
    color: var(--muted);
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button-primary {
    color: #ffffff;
    background: var(--blue-700);
    box-shadow: 0 7px 16px rgba(36, 87, 214, 0.2);
}

.button-primary:hover:not(:disabled) {
    background: #1d4bc2;
    box-shadow: 0 10px 22px rgba(36, 87, 214, 0.26);
}

.button-secondary {
    color: var(--navy-700);
    background: #ffffff;
    border-color: var(--line);
}

.button-secondary:hover:not(:disabled) {
    background: #f8faff;
}

.button-large {
    width: 100%;
    min-height: 49px;
    margin-top: 7px;
}

.login-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 47%) 1fr;
    background: #ffffff;
}

.login-brand {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 5vw, 72px);
    color: #ffffff;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 92% 12%,
            rgba(71, 120, 243, 0.36),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 88%,
            rgba(11, 140, 120, 0.2),
            transparent 36%
        ),
        linear-gradient(145deg, #081226 0%, #101e3b 58%, #172b53 100%);
}

.login-brand::before,
.login-brand::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.login-brand::before {
    top: 14%;
    right: -150px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(145, 180, 255, 0.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(145, 180, 255, 0.035),
        0 0 0 110px rgba(145, 180, 255, 0.025);
}

.login-brand::after {
    right: 9%;
    bottom: 12%;
    width: 150px;
    height: 210px;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent, black);
}

.brand-light {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: 60px 0;
}

.login-brand-content h1 {
    max-width: 590px;
    margin: 0;
    font-size: clamp(40px, 4.3vw, 67px);
    line-height: 1.06;
    letter-spacing: -0.052em;
}

.login-intro {
    max-width: 570px;
    margin: 25px 0 0;
    color: #bdc8dc;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.7;
}

.trust-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 38px 0 0;
    list-style: none;
    color: #e7edf8;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #a7f3dd;
    background: rgba(31, 192, 157, 0.14);
    border: 1px solid rgba(103, 232, 203, 0.24);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.login-brand-footer {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #8190a9;
    font-size: 13px;
}

.login-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px;
    background:
        linear-gradient(
            135deg,
            rgba(245, 247, 251, 0.2),
            rgba(234, 240, 255, 0.42)
        );
}

.login-card {
    width: min(100%, 430px);
}

.login-card h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}

.stack-form {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.stack-form label,
.modal-card > label {
    margin-top: 7px;
    color: var(--navy-700);
    font-size: 13px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #ccd4e1;
    border-radius: 9px;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

input:hover,
select:hover {
    border-color: #aab6c8;
}

input:focus,
select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(50, 103, 232, 0.1);
    outline: none;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 78px;
}

.text-button {
    position: absolute;
    top: 50%;
    right: 11px;
    padding: 4px 5px;
    color: var(--blue-700);
    background: transparent;
    border: 0;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 750;
}

.form-error {
    margin: 5px 0;
    padding: 10px 12px;
    color: var(--red-700);
    background: var(--red-100);
    border-radius: 8px;
    font-size: 13px;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    margin-top: 24px;
    color: var(--muted);
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
}

.security-note span {
    color: var(--teal-600);
}

.security-note p {
    margin: 0;
}

.app-layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    padding: 25px 18px 20px;
    color: #dbe4f4;
    background:
        linear-gradient(180deg, var(--navy-950), #0d1930 72%, #101e39);
}

.sidebar-brand {
    padding: 0 10px 30px;
    color: #ffffff;
}

.main-nav {
    display: grid;
    gap: 6px;
}

.nav-item {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    color: #9eabc0;
    background: transparent;
    border: 0;
    border-radius: 10px;
    text-align: left;
    font-weight: 650;
    transition:
        color 150ms ease,
        background 150ms ease;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
    color: #ffffff;
    background: rgba(71, 120, 243, 0.18);
    box-shadow: inset 3px 0 #6691ff;
}

.nav-icon {
    display: inline-grid;
    width: 25px;
    place-items: center;
    font-size: 19px;
}

.sidebar-compliance {
    display: grid;
    gap: 8px;
    padding: 22px 10px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-label {
    margin: 0 0 5px;
    color: #71809a;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.framework-chip {
    width: fit-content;
    padding: 5px 9px;
    color: #b8c8e5;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-footer {
    display: grid;
    grid-template-columns: 36px 1fr 30px;
    align-items: center;
    gap: 9px;
    padding: 18px 5px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #dce7ff;
    background: #263d6a;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 750;
}

.sidebar-user {
    display: grid;
    min-width: 0;
}

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

.sidebar-user strong {
    color: #f5f7fb;
    font-size: 12px;
}

.sidebar-user span {
    color: #7f8da4;
    font-size: 10px;
    text-transform: capitalize;
}

.logout-button {
    width: 30px;
    height: 30px;
    color: #8997ac;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 17px;
}

.logout-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 16px;
    padding: 12px clamp(22px, 3vw, 46px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.topbar-context {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar strong {
    display: block;
    margin-top: 1px;
    font-size: 14px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #18a877;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(24, 168, 119, 0.11);
}

.menu-button {
    display: none;
    width: 40px;
    height: 40px;
    color: var(--navy-700);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.content {
    width: min(100%, 1540px);
    padding: clamp(25px, 3vw, 48px);
    margin: 0 auto;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 39px);
    letter-spacing: -0.045em;
}

.date-label {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    text-transform: capitalize;
}

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

.metric-card {
    display: flex;
    min-height: 145px;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.metric-card > div {
    display: grid;
}

.metric-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.metric-card strong {
    margin: 3px 0 0;
    color: var(--navy-900);
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.metric-card span:last-child {
    margin-top: 5px;
    color: #8994a6;
    font-size: 11px;
}

.metric-icon {
    display: grid;
    flex: 0 0 39px;
    height: 39px;
    place-items: center;
    border-radius: 10px;
    font-weight: 800;
}

.metric-blue {
    color: var(--blue-700);
    background: var(--blue-100);
}

.metric-green {
    color: var(--green-700);
    background: var(--green-100);
}

.metric-amber {
    color: var(--amber-600);
    background: var(--amber-100);
}

.metric-violet {
    color: var(--violet-600);
    background: var(--violet-100);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
    gap: 18px;
    margin-top: 18px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 21px 23px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.025em;
}

.link-button {
    padding: 5px;
    color: var(--blue-700);
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 700;
}

.recent-list {
    display: grid;
}

.recent-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 16px 23px;
    border-bottom: 1px solid #edf0f5;
}

.recent-item:last-child {
    border-bottom: 0;
}

.document-symbol {
    display: grid;
    width: 38px;
    height: 42px;
    place-items: center;
    color: var(--blue-700);
    background: var(--blue-100);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
}

.recent-copy {
    min-width: 0;
}

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

.recent-copy strong {
    font-size: 13px;
}

.recent-copy span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.framework-card {
    display: grid;
    grid-template-columns: 43px 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 18px 22px;
    border-bottom: 1px solid #edf0f5;
}

.framework-logo {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: var(--blue-700);
    background: var(--blue-100);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
}

.framework-logo-ai {
    color: var(--violet-600);
    background: var(--violet-100);
}

.framework-card strong {
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.framework-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.available-label {
    padding: 4px 7px;
    color: var(--green-700);
    background: var(--green-100);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.legal-disclaimer {
    padding: 17px 22px;
    margin: 0;
    color: #7b8799;
    background: #fafbfd;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 10px;
    line-height: 1.55;
}

.document-panel {
    overflow: hidden;
}

.document-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.search-field {
    position: relative;
    flex: 1;
    max-width: 430px;
}

.search-field span {
    position: absolute;
    top: 50%;
    left: 13px;
    color: var(--muted);
    transform: translateY(-50%);
}

.search-field input {
    min-height: 40px;
    padding-left: 37px;
}

.document-toolbar select {
    width: auto;
    min-width: 185px;
    min-height: 40px;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    padding: 14px 17px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
    white-space: nowrap;
}

th {
    color: #7a8698;
    background: #fafbfd;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

td {
    font-size: 12px;
}

tbody tr {
    transition: background 120ms ease;
}

tbody tr:hover {
    background: #fafcff;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.document-cell {
    display: flex;
    min-width: 235px;
    align-items: center;
    gap: 11px;
}

.document-cell-copy {
    min-width: 0;
}

.document-cell strong,
.document-cell span {
    display: block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-cell strong {
    font-size: 12px;
}

.document-cell span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 750;
}

.status-badge::before {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    content: "";
}

.status-clean,
.status-completed {
    color: var(--green-700);
    background: var(--green-100);
}

.status-pending,
.status-processing {
    color: var(--amber-600);
    background: var(--amber-100);
}

.status-rejected,
.status-failed,
.status-error,
.status-infected {
    color: var(--red-700);
    background: var(--red-100);
}

.status-neutral {
    color: #58657a;
    background: #edf1f6;
}

.action-button {
    padding: 6px 9px;
    color: var(--blue-700);
    background: transparent;
    border: 1px solid #d9e1ef;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 750;
}

.action-button:hover {
    background: var(--blue-100);
}

.empty-state {
    display: grid;
    min-height: 330px;
    place-items: center;
    align-content: center;
    padding: 40px;
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--blue-700);
    background: var(--blue-100);
    border-radius: 16px;
    font-size: 22px;
}

.empty-state h3 {
    margin: 17px 0 0;
}

.empty-state p {
    max-width: 390px;
    margin: 6px 0 19px;
    color: var(--muted);
    font-size: 13px;
}

.loading-state,
.panel-message {
    display: grid;
    min-height: 220px;
    place-items: center;
    padding: 30px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.modal {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    padding: 20px;
    background: rgba(7, 16, 31, 0.58);
    border: 0;
    backdrop-filter: blur(5px);
}

.modal[open] {
    display: grid;
    place-items: center;
}

.modal::backdrop {
    background: transparent;
}

.modal-card {
    display: grid;
    width: min(100%, 550px);
    max-height: calc(100vh - 40px);
    gap: 10px;
    padding: 26px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.detail-card {
    width: min(100%, 920px);
}

.modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
}

.modal-heading h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.modal-close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: var(--muted);
    background: #f4f6f9;
    border: 0;
    border-radius: 9px;
    font-size: 22px;
}

.file-drop {
    display: grid;
    min-height: 165px;
    place-items: center;
    align-content: center;
    gap: 6px;
    padding: 25px;
    margin-top: 9px !important;
    color: var(--muted) !important;
    background: #f8faff;
    border: 1px dashed #aebbd1;
    border-radius: 13px;
    text-align: center;
    cursor: pointer;
}

.file-drop:hover,
.file-drop.dragging {
    background: var(--blue-100);
    border-color: var(--blue-600);
}

.file-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-drop-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--blue-700);
    background: #ffffff;
    border: 1px solid #dce5f7;
    border-radius: 11px;
    font-size: 20px;
}

.file-drop strong {
    color: var(--navy-700);
    font-size: 13px;
}

.file-drop span:last-of-type {
    font-size: 11px;
}

.modal-security {
    padding: 11px 13px;
    margin-top: 7px;
    color: #45605a;
    background: #f0faf7;
    border: 1px solid #d7eee7;
    border-radius: 9px;
    font-size: 11px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 12px;
}

.detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 9px 0 22px;
}

.detail-stat {
    padding: 13px;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.detail-stat span,
.detail-stat strong {
    display: block;
}

.detail-stat span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.detail-stat strong {
    margin-top: 4px;
    font-size: 12px;
}

.analysis-list {
    display: grid;
    gap: 11px;
}

.analysis-card {
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.analysis-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.analysis-card h3 {
    margin: 0;
    font-size: 14px;
}

.analysis-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.analysis-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
}

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

.framework-tag {
    padding: 4px 7px;
    color: var(--blue-700);
    background: var(--blue-100);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.risk-score {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--amber-600);
    background: var(--amber-100);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.findings-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0 10px;
}

.findings-heading h3 {
    margin: 0;
    font-size: 15px;
}

.finding-card {
    padding: 15px;
    margin-bottom: 9px;
    border: 1px solid var(--line);
    border-left: 4px solid #8995a7;
    border-radius: 9px;
}

.finding-card.severity-critical {
    border-left-color: #c42d22;
}

.finding-card.severity-high {
    border-left-color: #de7310;
}

.finding-card.severity-medium {
    border-left-color: #d5a20a;
}

.finding-card.severity-low {
    border-left-color: #2879d0;
}

.finding-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.finding-card h4 {
    margin: 0;
    font-size: 12px;
}

.finding-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.finding-recommendation {
    padding: 10px;
    color: #41526d !important;
    background: #f6f8fc;
    border-radius: 7px;
}

.toast {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    max-width: min(420px, calc(100vw - 48px));
    padding: 13px 17px;
    color: #ffffff;
    background: var(--navy-900);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    font-size: 12px;
    font-weight: 650;
}

.toast.toast-error {
    background: var(--red-700);
}

@media (max-width: 1120px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 850px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .mobile-brand {
        display: flex;
    }

    .login-panel {
        padding: 28px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 200ms ease;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-md);
    }

    .app-main {
        margin-left: 0;
    }

    .menu-button {
        display: grid;
        place-items: center;
    }

    .system-status {
        display: none;
    }

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

@media (max-width: 600px) {
    .topbar {
        padding: 11px 15px;
    }

    .topbar-actions .button {
        padding: 9px 11px;
        font-size: 0;
    }

    .topbar-actions .button span {
        font-size: 20px;
    }

    .content {
        padding: 22px 14px;
    }

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

    .page-heading > .button {
        width: 100%;
    }

    .date-label {
        display: none;
    }

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

    .metric-card {
        min-height: 112px;
    }

    .document-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-field {
        max-width: none;
    }

    .document-toolbar select {
        width: 100%;
    }

    .modal {
        padding: 0;
    }

    .modal-card {
        width: 100%;
        min-height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .detail-summary {
        grid-template-columns: 1fr 1fr;
    }

    .framework-card {
        grid-template-columns: 43px 1fr;
    }

    .available-label {
        grid-column: 2;
        width: fit-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
