@font-face {
    font-family: "Outfit";
    src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #0b0e0d;
    --surface: #111514;
    --surface-2: #171c1a;
    --line: #29312e;
    --line-soft: #202725;
    --text: #edf2ef;
    --muted: #93a09a;
    --accent: #66c99a;
    --accent-dark: #173d2d;
    --danger: #f17f75;
    --danger-dark: #46201e;
    --warning: #d7b569;
    --radius: 12px;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

.antivirus-body { font-family: "Outfit", "Segoe UI Variable", sans-serif; background: #090c0b; }
.antivirus-body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 82% 9%, rgba(57, 126, 92, .12), transparent 28%), radial-gradient(circle at 10% 48%, rgba(50, 87, 72, .07), transparent 26%); }
.antivirus-shell { overflow-x: hidden; max-width: 1460px; }
.antivirus-hero-v2 { min-height: 470px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 70px; padding: 68px 0 84px; }
.antivirus-title-wrap { max-width: 1180px; }
.hero-status-line { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; color: #a8b7b0; font-size: 12px; letter-spacing: .04em; }
.hero-status-line i { width: 25px; height: 1px; background: var(--accent); box-shadow: 0 0 12px rgba(102, 201, 154, .45); }
.antivirus-hero-v2 h1 { max-width: 1180px; margin: 0 0 26px; font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: .92; letter-spacing: -.055em; font-weight: 600; }
.antivirus-hero-v2 p { max-width: 680px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; margin: 0; }
.scanner-visual { width: 320px; aspect-ratio: 1; position: relative; display: grid; place-items: center; justify-self: end; border-radius: 50%; background: radial-gradient(circle, rgba(102, 201, 154, .12) 0 3%, rgba(17, 35, 27, .7) 4%, rgba(9, 12, 11, 0) 58%); }
.scanner-visual::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 28px, rgba(102, 201, 154, .035) 29px 30px); }
.scanner-ring { position: absolute; border: 1px solid rgba(115, 170, 143, .25); border-radius: 50%; }
.ring-one { inset: 7%; }.ring-two { inset: 25%; }.ring-three { inset: 40%; border-color: rgba(102, 201, 154, .5); }
.scanner-sweep { position: absolute; z-index: 2; width: 45%; height: 1px; left: 50%; top: 50%; background: linear-gradient(90deg, rgba(102, 201, 154, .9), transparent); transform-origin: 0 50%; box-shadow: 0 0 16px rgba(102, 201, 154, .45); }
.scanner-core { position: relative; z-index: 3; width: 14px; height: 14px; border: 3px solid #0f261b; border-radius: 50%; background: var(--accent); box-shadow: 0 0 28px rgba(102, 201, 154, .65); }
.scanner-visual small { position: absolute; z-index: 4; bottom: 22%; padding: 4px 7px; border: 1px solid #315342; border-radius: 4px; color: var(--accent); background: #0b110e; font: 700 9px ui-monospace, monospace; letter-spacing: .18em; }
.antivirus-command-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 0; margin-bottom: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.live-scan-panel { grid-column: span 8; min-height: 330px; position: relative; display: grid; grid-template-columns: 1fr auto; align-content: space-between; gap: 28px; padding: 34px; border-right: 1px solid var(--line); overflow: hidden; }
.live-scan-panel::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -150px; border: 1px solid rgba(102, 201, 154, .1); border-radius: 50%; box-shadow: 0 0 0 42px rgba(102, 201, 154, .025), 0 0 0 84px rgba(102, 201, 154, .015); }
.live-scan-copy, .live-progress-readout, .scan-progress-track, .scan-progress-meta { position: relative; z-index: 1; }
.live-label { display: inline-flex; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.live-scan-copy h2 { max-width: 620px; margin: 14px 0 10px; font-size: clamp(26px, 3vw, 43px); letter-spacing: -.04em; }
.live-scan-copy p { margin: 0; color: var(--muted); }
.live-progress-readout { display: flex; align-items: flex-start; gap: 34px; text-align: right; }
.progress-value { display: flex; align-items: flex-start; color: var(--text); }
.progress-value strong { font: 600 clamp(48px, 6vw, 78px)/.8 "Outfit", sans-serif; letter-spacing: -.06em; }
.progress-value span { margin: 3px 0 0 4px; color: var(--accent); font-size: 17px; }
.eta-block { min-width: 125px; }
.eta-block span { display: block; max-width: 120px; margin: 0 0 9px auto; color: #718078; font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; }
.eta-block strong { font: 500 20px ui-monospace, "Cascadia Mono", monospace; }
.scan-progress-track { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 10px; background: #252d29; }
.scan-progress-track span { display: block; width: 100%; height: 100%; transform: scaleX(var(--progress)); transform-origin: left center; background: linear-gradient(90deg, #3b7d5e, var(--accent)); box-shadow: 0 0 18px rgba(102, 201, 154, .45); }
.scan-progress-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; color: #7f8c86; font-size: 11px; }
.scan-progress-meta b { color: #d7dfdb; font-family: ui-monospace, monospace; }
.engine-panel { grid-column: span 4; min-height: 330px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; background: #0e1211; }
.engine-panel-top { display: flex; justify-content: space-between; color: #75827c; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.engine-panel-top strong { color: var(--accent); }
.engine-panel h2 { margin: 42px 0 auto; font-size: 27px; letter-spacing: -.04em; }
.engine-panel dl { margin: 0; }
.engine-panel dl div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.engine-panel dl div:last-child { border: 0; }
.engine-panel dt { color: #718078; }
.engine-panel dd { margin: 0; color: #cbd5d0; font-family: ui-monospace, monospace; font-size: 11px; }
.engine-panel dd.safe-off { color: var(--accent); }
.antivirus-stat-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; margin: -1px 0 118px; background: var(--surface); }
.antivirus-stat-grid article { grid-column: span 3; min-height: 146px; padding: 25px 28px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.antivirus-stat-grid article:last-child { border: 0; }
.antivirus-stat-grid span { color: #7f8c86; font-size: 12px; }
.antivirus-stat-grid strong { margin: 21px 0 8px; font-size: 42px; line-height: .9; letter-spacing: -.05em; }
.antivirus-stat-grid small { color: #68756f; }
.antivirus-stat-grid strong.report-id { margin-top: 25px; font: 500 15px ui-monospace, monospace; letter-spacing: 0; overflow-wrap: anywhere; }
.scan-launcher { margin-bottom: 126px; }
.launcher-heading { max-width: 720px; margin-bottom: 38px; }
.launcher-heading h2, .chapter-heading h2, .history-sticky h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.045em; }
.launcher-heading p, .chapter-heading p, .history-sticky p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.scan-accordion { display: flex; min-height: 390px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.scan-mode { flex: 1; display: grid; grid-template-columns: 82px minmax(0, 1fr); transition: flex .65s cubic-bezier(.16, 1, .3, 1), background-color .3s ease; background: var(--surface); overflow: hidden; }
.scan-mode + .scan-mode { border-left: 1px solid var(--line); }
.scan-mode:hover, .scan-mode:focus-within { flex: 1.35; background: #141a17; }
.scan-mode-title { padding: 24px 19px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line-soft); }
.scan-mode-title span { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--text); font-size: 19px; }
.scan-mode-title strong { color: var(--accent); font: 700 9px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.scan-mode-content { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.scan-mode-content > p { max-width: 48ch; margin-bottom: 24px; color: var(--muted); line-height: 1.5; }
.antivirus-hits-section { margin-bottom: 126px; }
.chapter-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.chapter-heading > div { max-width: 720px; }
.chapter-heading > span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.hit-ledger { border-top: 1px solid var(--line); }
.hit-row { min-height: 92px; display: grid; grid-template-columns: 135px 1.15fr 1.8fr 110px 105px; align-items: center; gap: 18px; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); }
.hit-row time { color: #718078; font: 10px ui-monospace, monospace; }
.hit-identity { min-width: 0; }
.hit-identity strong, .hit-identity code { display: block; }
.hit-identity strong { margin-bottom: 7px; font-size: 13px; }
.hit-identity code { color: #97a69e; font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.hit-path { min-width: 0; color: #9aa79f; font: 10px ui-monospace, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit-presence { justify-self: end; color: #7d8b84; font-size: 11px; }
.hit-presence::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #6d7973; }
.hit-presence.is-present { color: var(--warning); }.hit-presence.is-present::before { background: var(--warning); }
.scan-history-v2 { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.65fr); gap: 80px; align-items: start; margin-bottom: 126px; }
.history-sticky { position: sticky; top: 110px; }
.history-stack { display: grid; gap: 14px; }
.history-card { min-height: 230px; padding: 28px; position: relative; border: 1px solid var(--line); border-radius: 12px; background: #101513; box-shadow: 0 22px 55px rgba(2, 8, 5, .18); }
.history-card-head { display: flex; justify-content: space-between; align-items: center; }
.history-card-head time { color: #718078; font: 10px ui-monospace, monospace; }
.history-card h3 { margin: 34px 0 9px; font-size: 25px; letter-spacing: -.035em; }
.history-card > code { color: #7c8a83; font-size: 10px; }
.history-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 0; border-top: 1px solid var(--line-soft); }
.history-card dl div { padding-top: 18px; }.history-card dt { color: #6d7973; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }.history-card dd { margin: 7px 0 0; font: 500 18px ui-monospace, monospace; }
.job-history-strip { margin-bottom: 70px; }
.job-strip-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.job-strip-list article { min-height: 145px; padding: 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.job-strip-list strong { margin: 18px 0 5px; }.job-strip-list small { color: var(--muted); }.job-strip-list time { margin-top: auto; color: #69756f; font: 10px ui-monospace, monospace; }

@media (max-width: 1040px) {
    .antivirus-hero-v2 { grid-template-columns: 1fr 260px; }.scanner-visual { width: 250px; }
    .live-scan-panel { grid-column: span 7; }.engine-panel { grid-column: span 5; }
    .hit-row { grid-template-columns: 110px 1fr 1.4fr 95px; }.hit-presence { display: none; }
}

@media (max-width: 760px) {
    .antivirus-hero-v2 { min-height: 0; grid-template-columns: 1fr; padding: 52px 0 64px; }.scanner-visual { width: min(280px, 80vw); justify-self: center; }
    .antivirus-command-grid { display: block; }.live-scan-panel { min-height: 380px; grid-template-columns: 1fr; border-right: 0; border-bottom: 1px solid var(--line); }.live-progress-readout { text-align: left; }.eta-block span { margin-left: 0; }.engine-panel { min-height: 290px; }
    .antivirus-stat-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 84px; }.antivirus-stat-grid article { grid-column: span 1; border-bottom: 1px solid var(--line); }.antivirus-stat-grid article:nth-child(2n) { border-right: 0; }
    .scan-launcher, .antivirus-hits-section, .scan-history-v2 { margin-bottom: 88px; }.scan-accordion { display: block; }.scan-mode { display: block; }.scan-mode + .scan-mode { border-left: 0; border-top: 1px solid var(--line); }.scan-mode-title { border-right: 0; border-bottom: 1px solid var(--line-soft); flex-direction: row; }.scan-mode-title span { writing-mode: initial; transform: none; }.scan-mode-content { padding: 26px 20px; }
    .hit-row { grid-template-columns: 1fr auto; gap: 8px 15px; padding: 19px 0; }.hit-row time { grid-column: 1; }.hit-identity { grid-column: 1; }.hit-path { grid-column: 1 / -1; }.location-chip { grid-column: 2; grid-row: 1 / 3; align-self: center; }.hit-presence { display: none; }
    .scan-history-v2 { grid-template-columns: 1fr; gap: 30px; }.history-sticky { position: static; }.job-strip-list { grid-template-columns: 1fr; }
}

.antivirus-hits-section { margin-bottom: 126px; }

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 15px; }
button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 max(24px, calc((100vw - 1380px) / 2));
    border-bottom: 1px solid var(--line-soft);
    background: rgba(11, 14, 13, .94);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: .08em; }
.brand strong { font-size: 13px; }
.brand small { color: var(--muted); font-size: 9px; margin-top: 5px; letter-spacing: .16em; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #385246; border-radius: var(--radius); background: #101a16; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; display: block; position: absolute; }
.brand-mark { position: relative; }
.brand-mark::before { width: 17px; height: 22px; border: 2px solid var(--accent); border-radius: 8px 8px 5px 5px; }
.brand-mark::after { width: 7px; height: 7px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 7px 7px 0 0; transform: translateY(-13px); background: #101a16; }
.brand-mark span { width: 3px; height: 6px; border-radius: 4px; background: var(--accent); transform: translateY(2px); }
.brand-mark.small { width: 36px; height: 36px; border-radius: 9px; transform: scale(.86); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.main-nav { display: flex; align-items: center; align-self: stretch; gap: 6px; margin-left: auto; }
.main-nav a { display: flex; align-items: center; position: relative; padding: 0 14px; color: var(--muted); text-decoration: none; font-size: 13px; }
.main-nav a::after { content: ""; position: absolute; height: 2px; left: 14px; right: 14px; bottom: 0; background: transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { background: var(--accent); }
.server-pill { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--accent); box-shadow: 0 0 0 4px rgba(102, 201, 154, .1); }
.offline .status-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(241, 127, 117, .1); }
.warning .status-dot { background: var(--warning); box-shadow: 0 0 0 4px rgba(215, 181, 105, .1); }
.text-button { border: 0; color: var(--muted); background: none; padding: 8px 0; }
.text-button:hover { color: var(--text); }

.app-shell { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 80px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.eyebrow, .panel-kicker { color: var(--accent); letter-spacing: .16em; font-size: 10px; font-weight: 700; margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; font-weight: 650; }
.page-heading > div:first-child > p:last-child, .section-heading p, .muted { color: var(--muted); margin-bottom: 0; }
.server-identity { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.server-identity span { color: var(--muted); font-size: 12px; }
.server-identity strong { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 14px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.metric { min-height: 146px; padding: 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); }
.metric:last-child { border-right: 0; }
.metric > span { color: var(--muted); font-size: 13px; }
.metric strong { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 38px; line-height: 1; margin: 20px 0 9px; font-weight: 550; letter-spacing: -.04em; }
.metric small { color: #738079; }
.metric.danger { background: linear-gradient(135deg, var(--surface), var(--danger-dark)); }
.metric.danger strong { color: var(--danger); }
.metric.warning strong { color: var(--warning); }

.content-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(280px, .85fr); gap: 24px; margin-bottom: 24px; }
.section-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.section-heading { min-height: 87px; padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.section-heading h2 { font-size: 17px; margin-bottom: 6px; letter-spacing: -.015em; }
.section-heading p { font-size: 13px; }
.count-badge { min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; }

.event-list { display: flex; flex-direction: column; }
.event-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 19px 22px; border-bottom: 1px solid var(--line-soft); }
.event-row:last-child { border-bottom: 0; }
.severity-bar { width: 4px; height: 100%; min-height: 58px; border-radius: 4px; background: var(--muted); }
.severity-bar.critical { background: var(--danger); }
.severity-bar.high { background: var(--warning); }
.severity-bar.medium { background: #7da7c4; }
.event-copy { min-width: 0; }
.event-meta { display: flex; gap: 10px; align-items: center; color: #748079; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.event-meta time { margin-left: auto; }
.severity-label { font-weight: 700; }
.severity-label.critical { color: var(--danger); }
.severity-label.high { color: var(--warning); }
.event-copy h3 { margin: 8px 0 5px; font-size: 14px; }
.event-copy p { color: var(--muted); font-size: 13px; line-height: 1.45; margin-bottom: 4px; overflow-wrap: anywhere; }
.event-copy small { color: #748079; font-family: ui-monospace, monospace; }
.resolve-button { color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12px; }
.resolve-button:hover { border-color: #486056; background: var(--surface-2); }

.telemetry-list { margin: 0; padding: 4px 24px; }
.telemetry-list div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.telemetry-list div:last-child { border: 0; }
.telemetry-list dt { color: var(--muted); }
.telemetry-list dd { margin: 0; font-family: ui-monospace, monospace; }
.status-text.online { color: var(--accent); }
.status-text.offline { color: var(--danger); }
.status-text.warning { color: var(--warning); }

.empty-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 42px; }
.empty-state.compact { min-height: 180px; }
.empty-check { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #315342; color: var(--accent); background: var(--accent-dark); font-size: 11px; font-weight: 800; margin-bottom: 18px; }
.empty-state h3 { font-size: 16px; margin-bottom: 7px; }
.empty-state p { color: var(--muted); margin: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 940px; }
th { text-align: left; color: #748079; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
td { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); color: #cbd3cf; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td strong { color: var(--text); margin-bottom: 5px; }
td small { margin-top: 5px; color: #748079; font-size: 11px; }
.data-status { display: inline-flex; align-items: center; gap: 7px; }
.data-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.data-status.ok::before { background: var(--accent); }
.data-status.attention::before { background: var(--warning); }

.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 20% 30%, #12221b 0, var(--bg) 34%); }
.login-shell { width: min(1040px, 100%); min-height: 620px; display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 28px 80px rgba(2, 7, 5, .38); }
.login-intro { padding: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border-right: 1px solid var(--line); background: linear-gradient(145deg, #101b16 0%, #0d1110 70%); }
.login-intro .brand-mark { margin-bottom: 72px; }
.login-intro h1 { max-width: 500px; font-size: clamp(42px, 6vw, 70px); line-height: .98; }
.login-intro > p:not(.eyebrow) { color: var(--muted); max-width: 480px; font-size: 17px; line-height: 1.6; }
.trust-note { display: flex; align-items: center; gap: 10px; margin-top: 46px; color: #aab5af; font-size: 12px; }
.login-panel { padding: 56px 44px; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.login-panel h2 { font-size: 27px; letter-spacing: -.03em; margin-bottom: 10px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form label { display: flex; flex-direction: column; gap: 8px; color: #cbd3cf; font-size: 13px; }
.auth-form input { width: 100%; color: var(--text); background: #0d1110; border: 1px solid #313a36; border-radius: 8px; padding: 13px 14px; outline: none; }
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(102, 201, 154, .1); }
.auth-form button { border: 1px solid #7bd5ab; border-radius: 8px; padding: 13px 18px; background: var(--accent); color: #07130d; font-weight: 700; margin-top: 5px; }
.auth-form button:hover { background: #7bd5ab; }
.auth-form button:active, .resolve-button:active { transform: translateY(1px); }
.form-error { border: 1px solid #713834; background: var(--danger-dark); color: #ffc1bb; border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }

.antivirus-shell { max-width: 1460px; }
.antivirus-hero { min-height: 230px; display: flex; justify-content: space-between; align-items: end; gap: 48px; padding: 18px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.antivirus-hero h1 { max-width: 760px; font-size: clamp(43px, 6vw, 76px); }
.antivirus-hero > div:first-child > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.engine-stamp { min-width: 230px; padding: 18px 0 4px 22px; border-left: 1px solid #365046; display: flex; flex-direction: column; gap: 7px; }
.engine-stamp span { color: var(--accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.engine-stamp strong { font: 600 17px ui-monospace, "Cascadia Mono", monospace; }
.engine-stamp small { color: var(--muted); }
.notice { margin-bottom: 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.notice.success { color: #b9efd4; background: #11291f; border-color: #28533f; }
.notice.error { color: #ffc1bb; background: var(--danger-dark); border-color: #713834; }
.antivirus-metrics { display: grid; grid-template-columns: .8fr .8fr .8fr 1.6fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; background: var(--surface); }
.antivirus-metrics article { min-height: 132px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.antivirus-metrics article:last-child { border-right: 0; }
.antivirus-metrics span { color: var(--muted); font-size: 12px; }
.antivirus-metrics strong { margin: 18px 0 8px; font: 560 32px/1 ui-monospace, "Cascadia Mono", monospace; }
.antivirus-metrics small { color: #748079; }
.antivirus-metrics .last-scan-metric strong { font-size: 17px; margin-top: 25px; overflow-wrap: anywhere; }
.antivirus-control-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(290px, .8fr); gap: 18px; margin-bottom: 24px; }
.scan-console, .job-rail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.scan-console { padding: 24px; min-height: 330px; }
.scan-console-head { min-height: 115px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }
.scan-console-head > div { display: flex; align-items: center; gap: 12px; }
.scan-console-head h2 { margin: 0; font-size: 19px; }
.scan-console-head p { max-width: 48ch; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 14px 0 20px; }
.console-index { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #355044; border-radius: 50%; color: var(--accent); font: 700 10px ui-monospace, monospace; }
.scan-form, .global-actions { display: flex; flex-direction: column; gap: 18px; }
.scan-form label { display: flex; flex-direction: column; gap: 8px; color: #cbd3cf; font-size: 12px; }
.scan-form select { width: 100%; padding: 12px 13px; border: 1px solid #313a36; border-radius: 8px; background: #0d1110; color: var(--text); outline: none; }
.scan-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(102, 201, 154, .1); }
.scan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scan-actions button, .global-actions button { min-height: 42px; padding: 10px 14px; border: 1px solid #7bd5ab; border-radius: 8px; background: var(--accent); color: #07130d; font-weight: 700; }
.scan-actions button.secondary, .global-actions button.secondary { background: transparent; color: var(--text); border-color: #3a4741; }
.scan-actions button:hover, .global-actions button:hover { background: #7bd5ab; color: #07130d; }
.global-actions > form { display: flex; flex-direction: column; gap: 12px; }
.danger-zone { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.confirm-check { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.confirm-check input { margin: 2px 0 0; accent-color: var(--accent); }
.job-rail .section-heading { padding-inline: 18px; }
.job-list { max-height: 420px; overflow-y: auto; }
.job-list article { padding: 17px 18px; border-bottom: 1px solid var(--line-soft); }
.job-list article:last-child { border-bottom: 0; }
.job-list h3 { margin: 9px 0 5px; font-size: 13px; }
.job-list p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.job-list small { color: #6f7b75; }
.job-list em { display: block; margin-top: 8px; color: var(--danger); font-size: 11px; font-style: normal; line-height: 1.4; }
.job-status { display: inline-flex; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 700 9px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.job-status.running, .job-status.queued { color: var(--warning); border-color: #564a2d; background: #211d13; }
.job-status.completed { color: var(--accent); border-color: #28533f; background: #10251c; }
.job-status.failed { color: var(--danger); border-color: #713834; background: var(--danger-dark); }
.antivirus-hits-section, .scan-history-section { margin-bottom: 24px; }
.antivirus-table { min-width: 1100px; }
.antivirus-table td:nth-child(3) { max-width: 460px; }
.antivirus-table code { display: block; color: #dfe9e4; font: 12px ui-monospace, "Cascadia Mono", monospace; overflow-wrap: anywhere; }
.path-line { max-width: 440px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location-chip { display: inline-flex; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.location-chip.webroot { color: var(--danger); border-color: #713834; background: var(--danger-dark); }
.location-chip.log { color: var(--warning); border-color: #564a2d; background: #211d13; }
.location-chip.test { color: #86b8d7; border-color: #29485b; background: #102431; }
.scan-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scan-history-list article { padding: 20px 22px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.scan-history-list article:nth-child(2n) { border-right: 0; }
.scan-history-list article > div:first-child { display: flex; align-items: center; gap: 10px; }
.scan-history-list article strong { font-size: 14px; }
.scan-history-list dl { display: grid; grid-template-columns: 1.4fr .7fr .5fr .6fr; gap: 12px; margin: 18px 0 0; }
.scan-history-list dl div { min-width: 0; }
.scan-history-list dt { color: #748079; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.scan-history-list dd { margin: 6px 0 0; color: #ccd5d0; font: 11px ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 940px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .metric:nth-child(2) { border-right: 0; }
    .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .content-grid { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; }
    .login-intro { display: none; }
    .login-panel { min-height: 570px; }
    .antivirus-metrics { grid-template-columns: repeat(2, 1fr); }
    .antivirus-metrics article:nth-child(2) { border-right: 0; }
    .antivirus-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .antivirus-control-grid { grid-template-columns: 1fr 1fr; }
    .job-rail { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .topbar { padding: 0 18px; }
    .server-pill { display: none; }
    .app-shell { width: min(100% - 28px, 1380px); padding-top: 34px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .server-identity { align-items: flex-start; }
    .metrics-grid { grid-template-columns: 1fr; }
    .metric { border-right: 0; border-bottom: 1px solid var(--line); min-height: 128px; }
    .metric:nth-child(3) { border-bottom: 1px solid var(--line); }
    .metric:last-child { border-bottom: 0; }
    .event-row { grid-template-columns: 4px minmax(0, 1fr); }
    .event-row form { grid-column: 2; }
    .event-meta time { display: none; }
    .login-page { padding: 14px; }
    .login-panel { padding: 38px 24px; }
    .main-nav { order: 3; width: 100%; height: 42px; justify-content: center; border-top: 1px solid var(--line-soft); }
    .topbar { height: auto; min-height: 72px; flex-wrap: wrap; padding-top: 12px; }
    .main-nav a { align-self: stretch; }
    .antivirus-hero { align-items: flex-start; flex-direction: column; }
    .engine-stamp { width: 100%; }
    .antivirus-metrics { grid-template-columns: 1fr; }
    .antivirus-metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
    .antivirus-control-grid { grid-template-columns: 1fr; }
    .job-rail { grid-column: auto; }
    .scan-actions { grid-template-columns: 1fr; }
    .scan-history-list { grid-template-columns: 1fr; }
    .scan-history-list article { border-right: 0; }
    .scan-history-list dl { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
    button, input, .text-button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .1s ease; }
}
