:root {
  color-scheme: dark;
  --bg: #05080d;
  --shell: #0a1019;
  --panel: #101925;
  --panel-raised: #151f2c;
  --ink: #eef8ff;
  --muted: #91a3b5;
  --line: #26384a;
  --accent: #00d6a3;
  --accent-ink: #04110d;
  --danger: #ff667f;
  --warning: #ffbd61;
  --blue: #6ab4ff;
  --radius: 0.75rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 20rem; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.65; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 0.15rem solid var(--accent); outline-offset: 0.15rem; }
[hidden] { display: none !important; }

.brand { align-items: center; color: var(--ink); display: inline-flex; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; font-weight: 600; gap: 0.65rem; letter-spacing: 0.06em; text-decoration: none; }
.brand-large { font-size: 0.92rem; }
.brand-logo { display: block; height: auto; width: 8.3rem; }
.brand-logo-header { width: 7.8rem; }
.brand-logo-signin { width: 9.5rem; }
.brand-context { color: var(--muted); white-space: nowrap; }
.brand-mark { align-items: center; background: var(--accent); border-radius: 0.4rem; color: var(--accent-ink); display: inline-flex; font-size: 1rem; font-weight: 800; height: 2.15rem; justify-content: center; width: 2.15rem; }
.eyebrow { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.76rem; letter-spacing: 0.12em; margin: 0 0 0.45rem; text-transform: uppercase; }
.status-dot { animation: status-pulse 1.8s ease-in-out infinite; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 0.22rem rgb(0 214 163 / 0.12); display: inline-block; height: 0.46rem; width: 0.46rem; }
.primary-button, .outline-button, .ghost-button, .icon-button, .table-button { align-items: center; border-radius: 0.42rem; display: inline-flex; justify-content: center; }
.primary-button { background: var(--accent); border: 0; color: var(--accent-ink); font-weight: 700; gap: 0.55rem; min-height: 2.75rem; padding: 0.65rem 1rem; }
.outline-button { background: transparent; border: 1px solid var(--accent); color: var(--accent); min-height: 2.4rem; padding: 0.5rem 0.75rem; }
.ghost-button { background: transparent; border: 1px solid var(--line); color: var(--ink); min-height: 2.25rem; padding: 0.45rem 0.7rem; }

.auth-body { align-items: center; display: flex; justify-content: center; padding: 2rem; }
.auth-body::before { background: radial-gradient(circle, rgb(0 214 163 / 0.1) 0 1px, transparent 1.5px); background-size: 1.35rem 1.35rem; content: ""; inset: 0; mask-image: linear-gradient(120deg, #000, transparent 70%); pointer-events: none; position: fixed; }
.auth-shell { background: var(--shell); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 2rem 6rem rgb(0 0 0 / 0.42); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.75fr); isolation: isolate; max-width: 68rem; min-height: 38rem; overflow: hidden; position: relative; width: 100%; }
.auth-shell > :not(.auth-background) { position: relative; z-index: 1; }
.auth-background { height: 100%; inset: 0; opacity: 0.86; pointer-events: none; position: absolute; width: 100%; z-index: 0; }
.auth-context { backdrop-filter: blur(1px); background: linear-gradient(145deg, rgb(13 23 33 / 0.76), rgb(7 16 15 / 0.7)); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem; position: relative; }
.auth-context::after { border: 1px solid rgb(0 214 163 / 0.2); border-radius: 50%; content: ""; height: 22rem; position: absolute; right: -8rem; top: 8rem; width: 22rem; }
.auth-context-copy { max-width: 32rem; position: relative; z-index: 1; }
.auth-context-copy h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; margin: 0; }
.auth-context-copy > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 1.4rem 0 0; max-width: 29rem; }
.auth-signal { align-items: center; color: var(--muted); display: flex; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; gap: 0.65rem; position: relative; z-index: 1; }
.auth-card { align-self: center; display: grid; gap: 1.6rem; padding: 3rem; }
.auth-card h2 { font-size: 1.8rem; letter-spacing: -0.035em; margin: 0; }
.auth-subtitle { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0.65rem 0 0; }
.auth-form { display: grid; gap: 1rem; }
.auth-form label { color: var(--muted); display: grid; font-size: 0.82rem; gap: 0.45rem; }
.auth-form input { background: var(--panel); border: 1px solid var(--line); border-radius: 0.5rem; color: var(--ink); min-height: 3rem; padding: 0.7rem 0.8rem; width: 100%; }
.auth-submit { justify-content: space-between; margin-top: 0.35rem; width: 100%; }
.form-error { background: rgb(255 102 127 / 0.1); border: 1px solid rgb(255 102 127 / 0.28); border-radius: 0.45rem; color: var(--danger); font-size: 0.82rem; margin: 0; padding: 0.7rem; }
.demo-credentials { border-top: 1px solid var(--line); display: grid; font-size: 0.76rem; gap: 0.35rem; padding-top: 1rem; }
.demo-credentials > span { color: var(--muted); text-transform: uppercase; }
.demo-credentials code { color: var(--ink); }

.app-shell { background: var(--bg); min-height: 100vh; }
.app-header { align-items: center; background: var(--shell); border-bottom: 1px solid var(--line); display: flex; gap: 1.5rem; justify-content: space-between; min-height: 4.25rem; padding: 0.75rem 1.25rem; position: sticky; top: 0; z-index: 10; }
.header-actions { align-items: center; display: flex; gap: 0.85rem; }
.computer-status { align-items: center; color: var(--accent); display: flex; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; gap: 0.5rem; text-transform: uppercase; }
.account-email { color: var(--muted); font-size: 0.78rem; }
.app-layout { display: grid; grid-template-columns: 5rem minmax(0, 1fr); min-height: calc(100vh - 4.25rem); }
.side-nav { align-items: center; background: var(--shell); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.55rem; padding: 1rem 0.65rem; }
.nav-button { align-items: center; background: transparent; border: 0; border-radius: 0.5rem; color: var(--muted); display: flex; flex-direction: column; font-size: 1.05rem; gap: 0.2rem; justify-content: center; min-height: 3.5rem; padding: 0.45rem; width: 100%; }
.nav-button:hover { background: var(--panel); color: var(--ink); }
.nav-button.is-active { background: rgb(0 214 163 / 0.12); color: var(--accent); }
.nav-label { font-size: 0.68rem; }
.workspace { min-width: 0; padding: 1.35rem; }
.view { isolation: isolate; margin: 0 auto; max-width: 78rem; min-height: calc(100vh - 6.95rem); position: relative; }
.view > :not(.ambient-background) { position: relative; z-index: 1; }
.ambient-background { bottom: 0; height: calc(100vh - 4.25rem); left: 5rem; opacity: 0.86; pointer-events: none; position: fixed; top: 4.25rem; width: calc(100vw - 5rem); z-index: 0; }
#view-reports .ambient-background { opacity: 0.78; }
#view-settings .ambient-background { opacity: 0.8; }
.view .scan-controls, .view .panel, .view .overview-card, .view .report-card { backdrop-filter: blur(1px); background-color: rgb(16 25 37 / 0.62); }
.view .terminal { background-color: rgb(5 9 15 / 0.94); }
.view.is-visible { animation: view-in 0.22s ease-out both; }
.page-heading { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 1rem; }
.page-heading h1 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 650; letter-spacing: -0.035em; margin: 0; }
.page-heading > p { color: var(--muted); font-size: 0.82rem; line-height: 1.5; margin: 0; max-width: 25rem; text-align: right; }

.scan-controls { align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 0.75rem; grid-template-columns: minmax(16rem, 1fr) auto auto; padding: 1rem; }
.scan-controls label, .mode-field { border: 0; display: grid; gap: 0.45rem; margin: 0; min-width: 0; padding: 0; }
.scan-controls label > span, .mode-field legend { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.scan-controls input { background: var(--panel-raised); border: 1px solid var(--line); border-radius: 0.45rem; color: var(--ink); min-height: 2.75rem; padding: 0.7rem 0.8rem; width: 100%; }
.segmented-control { background: var(--panel-raised); border: 1px solid var(--line); border-radius: 0.45rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); isolation: isolate; overflow: hidden; padding: 0.2rem; position: relative; }
.segmented-control::before { background: linear-gradient(110deg, #00c796, var(--accent) 52%, #62e8c8); border-radius: 0.3rem; box-shadow: 0 0.35rem 1.1rem rgb(0 214 163 / 0.18); content: ""; height: calc(100% - 0.4rem); left: 0.2rem; position: absolute; top: 0.2rem; transform: translateX(100%); transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.38s ease, box-shadow 0.38s ease; width: calc(50% - 0.2rem); will-change: transform; z-index: 0; }
.segmented-control.is-fast::before { transform: translateX(0); }
.segmented-control.is-moving::before { animation: mode-flow 0.38s cubic-bezier(0.22, 1, 0.36, 1); border-radius: 0.65rem 0.25rem 0.65rem 0.25rem; box-shadow: 0 0.45rem 1.35rem rgb(0 214 163 / 0.28); }
.segmented-control button { background: transparent; border: 0; border-radius: 0.3rem; color: var(--muted); min-height: 2.25rem; padding: 0.45rem 0.7rem; position: relative; transition: color 0.22s ease, transform 0.22s ease; white-space: nowrap; z-index: 1; }
.segmented-control button.is-selected { color: var(--accent-ink); font-weight: 700; }
.segmented-control button:active { transform: scale(0.98); }
.run-button { min-height: 2.75rem; }
.scope-note { color: var(--muted); display: flex; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; gap: 1rem; grid-column: 1 / -1; justify-content: space-between; }
.scope-note span:first-child { text-transform: uppercase; }
.scope-note span:last-child { color: var(--accent); }

.dashboard-grid { display: grid; gap: 0.8rem; grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr); margin-top: 0.8rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 3rem; padding: 0.75rem 1rem; }
.panel-header h2, .findings-header h2, .settings-card h2 { font-size: 0.92rem; font-weight: 650; margin: 0; }
.panel-header > span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; text-transform: uppercase; }
.terminal { background: #05090f; color: #c5d5e4; display: grid; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.79rem; gap: 0.65rem; line-height: 1.45; min-height: 14.5rem; padding: 1rem; }
.success-text { color: var(--accent) !important; }
.warning-text { color: var(--warning) !important; }
.progress-list { display: grid; list-style: none; margin: 0; min-height: 14.5rem; padding: 0.45rem 1rem; }
.progress-list li { align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); display: grid; font-size: 0.82rem; gap: 0.7rem; grid-template-columns: 1.65rem minmax(0, 1fr) auto; padding: 0.7rem 0; }
.progress-list li:last-child { border-bottom: 0; }
.progress-list li.is-active { color: var(--ink); }
.progress-list li.is-complete { color: var(--ink); }
.progress-list time { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.check { align-items: center; background: var(--panel-raised); border: 1px solid var(--line); border-radius: 50%; color: var(--muted); display: flex; height: 1.5rem; justify-content: center; width: 1.5rem; }
.is-complete .check { background: rgb(0 214 163 / 0.12); border-color: rgb(0 214 163 / 0.4); color: var(--accent); }
.is-active .check { animation: status-pulse 1.4s ease-in-out infinite; border-color: var(--accent); color: var(--accent); }
.findings-panel { margin-top: 0.8rem; padding: 1rem; }
.findings-header { align-items: center; display: flex; justify-content: space-between; }
.findings-header .eyebrow { margin-bottom: 0.25rem; }
.metric-row, .overview-row { display: grid; gap: 0.5rem; grid-template-columns: repeat(5, 1fr); margin: 1rem 0; }
.metric-row > div, .overview-card { background: var(--panel-raised); border-radius: 0.48rem; padding: 0.75rem; }
.metric-row strong, .overview-card strong { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.25rem; }
.metric-row span, .overview-card span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; }
.metric-high strong, .severity-high { color: var(--danger); }
.metric-medium strong, .severity-medium { color: var(--warning); }
.metric-low strong { color: var(--blue); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; font-size: 0.8rem; min-width: 44rem; width: 100%; }
th { color: var(--muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; padding: 0.65rem 0.7rem; text-align: left; text-transform: uppercase; }
td { border-top: 1px solid var(--line); padding: 0.75rem 0.7rem; }
td code { color: var(--muted); }
.table-button { background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 0.72rem; min-height: 2rem; padding: 0.35rem 0.55rem; }
.run-id { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-review { color: var(--warning); }
.overview-row { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.overview-card { background: var(--panel); border: 1px solid var(--line); }

.report-library { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.report-card-header { align-items: start; display: flex; gap: 1rem; justify-content: space-between; }
.report-card h2 { font-size: 0.95rem; margin: 0; }
.report-icon { align-items: center; background: rgb(0 214 163 / 0.12); border-radius: 0.45rem; color: var(--accent); display: flex; font-weight: 700; height: 2.3rem; justify-content: center; width: 2.3rem; }
.report-card p { color: var(--muted); font-size: 0.78rem; line-height: 1.6; margin: 0.75rem 0 1rem; }
.report-card-copy { white-space: pre-line; }
.report-result { background: var(--panel-raised); border: 1px solid var(--line); border-radius: 0.45rem; display: grid; gap: 0.25rem; margin: 0.85rem 0; padding: 0.7rem 0.8rem; }
.report-result > span { color: var(--muted); font-size: 0.67rem; letter-spacing: 0.06em; text-transform: uppercase; }
.report-result strong { font-size: 0.78rem; font-weight: 600; }
.status-complete { color: var(--accent); }
.report-card-footer { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; padding-top: 0.75rem; }
.report-card-footer span { color: var(--muted); font-size: 0.72rem; }
.report-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.report-icon.is-review { background: rgb(255 178 36 / 0.12); color: var(--warning); }
.report-card-actions button:disabled { cursor: not-allowed; opacity: 0.45; }

.settings-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-card { padding: 1rem; }
.settings-wide { grid-column: 1 / -1; }
.setting-row { align-items: center; border-top: 1px solid var(--line); display: flex; font-size: 0.82rem; gap: 1rem; justify-content: space-between; margin-top: 0.75rem; padding-top: 0.75rem; }
.setting-row small { color: var(--muted); display: block; font-size: 0.72rem; margin-top: 0.2rem; }
.setting-row select { background: var(--panel-raised); border: 1px solid var(--line); border-radius: 0.4rem; color: var(--ink); min-height: 2.35rem; padding: 0.5rem; }
.setting-row input[type="checkbox"] { accent-color: var(--accent); height: 1.2rem; width: 1.2rem; }
.settings-actions { align-items: center; display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1rem; }
#settings-status { color: var(--accent); font-size: 0.78rem; }

.modal-backdrop { align-items: flex-start; background: rgb(3 7 11 / 0.84); display: flex; inset: 0; justify-content: center; overflow-y: auto; padding: 4rem 1.5rem; position: fixed; z-index: 50; }
.modal-backdrop.is-opening { animation: backdrop-in 0.2s ease-out both; }
.modal-backdrop.is-closing { animation: backdrop-out 0.18s ease-in both; }
.modal { animation: modal-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both; background: var(--shell); border: 1px solid var(--accent); border-radius: var(--radius); box-shadow: 0 2rem 6rem rgb(0 0 0 / 0.65); max-width: 48rem; overflow: hidden; width: 100%; }
.is-closing .modal { animation: modal-out 0.18s ease-in both; }
.modal-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 3.35rem; padding: 0.7rem 0.85rem 0.7rem 1rem; }
.modal-header h2 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; margin: 0; text-transform: uppercase; }
.modal-header h2 span { color: var(--accent); margin-left: 0.35rem; }
.icon-button { background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 1.15rem; height: 2rem; width: 2rem; }
.computer-screen { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 20rem; }
.browser-pane { background: var(--panel); border-right: 1px solid var(--line); padding: 0.8rem; }
.browser-bar { background: var(--panel-raised); border: 1px solid var(--line); border-radius: 0.35rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; margin-bottom: 0.8rem; overflow: hidden; padding: 0.55rem 0.65rem; text-overflow: ellipsis; white-space: nowrap; }
.browser-page { background: #f4f7fa; border-radius: 0.35rem; color: #17202a; min-height: 15rem; padding: 1.5rem; }
.browser-page strong { display: block; font-size: 1.1rem; }
.browser-page p { color: #5d6975; font-size: 0.8rem; line-height: 1.5; }
.browser-page code { border: 1px solid #cbd3dc; border-radius: 0.3rem; color: #853447; display: block; font-size: 0.72rem; margin-top: 1.4rem; overflow: hidden; padding: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.computer-terminal { background: #05090f; color: #bfd1e1; display: grid; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; line-height: 1.55; padding: 1rem; }
.computer-terminal strong { color: var(--accent); font-weight: 600; }
.computer-terminal .terminal-command { color: var(--warning); }
.modal-footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; justify-content: space-between; padding: 0.65rem 1rem; text-transform: uppercase; }
.run-modal { border-color: var(--line); max-width: 46rem; }
.run-detail-content { padding: 1rem; }
.run-detail-meta { display: grid; gap: 0.55rem; grid-template-columns: repeat(4, 1fr); }
.run-detail-meta > div { background: var(--panel); border: 1px solid var(--line); border-radius: 0.45rem; padding: 0.75rem; }
.run-detail-meta span { color: var(--muted); display: block; font-size: 0.67rem; letter-spacing: 0.06em; margin-bottom: 0.35rem; text-transform: uppercase; }
.run-detail-meta strong { display: block; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-detail-grid { display: grid; gap: 0.75rem; grid-template-columns: 0.9fr 1.1fr; margin-top: 1rem; }
.run-detail-grid > section { background: var(--panel); border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.9rem; }
.run-phase-list { display: grid; gap: 0.65rem; list-style: none; margin: 0; padding: 0; }
.run-phase-list li { align-items: center; color: var(--ink); display: grid; font-size: 0.76rem; gap: 0.55rem; grid-template-columns: 1.35rem 1fr; }
.run-phase-list li::before { align-items: center; background: rgb(0 214 163 / 0.12); border: 1px solid rgb(0 214 163 / 0.38); border-radius: 50%; color: var(--accent); content: "✓"; display: flex; height: 1.35rem; justify-content: center; width: 1.35rem; }
.run-phase-list li.is-incomplete::before { background: rgb(255 178 36 / 0.12); border-color: rgb(255 178 36 / 0.4); color: var(--warning); content: "!"; }
.run-log { color: #bfd1e1; display: grid; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; gap: 0.6rem; line-height: 1.45; }
.run-log span::before { color: var(--accent); content: "> "; }
.report-modal { border-color: var(--line); max-width: 44rem; }
.report-paper { background: #f2f5f7; color: #17202a; margin: 1rem; padding: 2rem; }
.report-logo { display: block; height: auto; margin: 0 0 0.4rem; width: 7.5rem; }
.report-paper > h2 { font-size: 1.55rem; letter-spacing: -0.03em; margin: 0.45rem 0 0.25rem; }
.report-metadata { color: #65717c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; margin: 0; text-transform: uppercase; }
.report-summary { background: #e5ebee; display: grid; gap: 0.6rem; grid-template-columns: repeat(3, 1fr); margin: 1.25rem 0; padding: 0.85rem; }
.report-summary strong { display: block; font-size: 1.25rem; }
.report-summary span { color: #65717c; font-size: 0.65rem; text-transform: uppercase; }
.report-finding { align-items: start; border-top: 1px solid #cfd8de; display: grid; font-size: 0.74rem; gap: 0.8rem; grid-template-columns: 3.4rem minmax(0, 1fr) auto; padding: 0.85rem 0; }
.report-finding code { color: #65717c; }
.report-finding-evidence { color: #65717c; font-size: 0.68rem; grid-column: 2; }
.severity-low { color: #2f72a8; }
.severity-info { color: #65717c; }
.report-empty { border-top: 1px solid #cfd8de; color: #65717c; font-size: 0.78rem; padding: 1rem 0; }
.report-paper footer { border-top: 1px solid #cfd8de; color: #65717c; display: flex; font-size: 0.65rem; justify-content: space-between; margin-top: 0.8rem; padding-top: 0.7rem; text-transform: uppercase; }
.toast { animation: toast-in 0.25s ease-out both; background: var(--panel-raised); border: 1px solid var(--accent); border-radius: 0.5rem; bottom: 1.25rem; box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.45); color: var(--ink); font-size: 0.8rem; padding: 0.8rem 1rem; position: fixed; right: 1.25rem; z-index: 80; }

@keyframes status-pulse { 50% { box-shadow: 0 0 0 0.42rem rgb(0 214 163 / 0.04); } }
@keyframes mode-flow { 45% { filter: brightness(1.08); scale: 1.035 0.92; } }
@keyframes view-in { from { opacity: 0; } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(1rem) scale(0.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(0.7rem) scale(0.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(0.5rem); } }

@media (max-width: 64rem) {
  .scan-controls { grid-template-columns: 1fr 1fr; }
  .target-field { grid-column: 1 / -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  .auth-body { padding: 1rem; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-context { border-bottom: 1px solid var(--line); border-right: 0; gap: 3rem; min-height: 22rem; padding: 1.5rem; }
  .auth-card { padding: 1.5rem; }
  .app-header { align-items: flex-start; flex-direction: column; gap: 0.7rem; position: static; }
  .header-actions { justify-content: space-between; width: 100%; }
  .account-email { display: none; }
  .app-layout { grid-template-columns: 1fr; }
  .side-nav { border-bottom: 1px solid var(--line); border-right: 0; flex-direction: row; justify-content: center; overflow-x: auto; padding: 0.55rem; }
  .nav-button { flex: 0 0 4.5rem; }
  .workspace { padding: 1rem; }
  .ambient-background { height: 100vh; inset: 0; width: 100vw; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .page-heading > p { text-align: left; }
  .report-library, .settings-grid { grid-template-columns: 1fr; }
  .settings-wide { grid-column: auto; }
  .computer-screen { grid-template-columns: 1fr; }
  .browser-pane { border-bottom: 1px solid var(--line); border-right: 0; }
  .run-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .computer-status { display: none; }
  .scan-controls { grid-template-columns: 1fr; }
  .target-field, .scope-note { grid-column: auto; }
  .scope-note { flex-direction: column; gap: 0.35rem; }
  .segmented-control { display: grid; grid-template-columns: 1fr 1fr; }
  .metric-row, .overview-row { grid-template-columns: repeat(2, 1fr); }
  .findings-header, .report-card-footer { align-items: stretch; flex-direction: column; gap: 0.8rem; }
  .report-card-actions { justify-content: stretch; }
  .report-card-actions button { flex: 1; }
  .outline-button { width: 100%; }
  .modal-backdrop { padding: 1rem 0.65rem; }
  .report-paper { margin: 0.55rem; padding: 1rem; }
  .report-summary { grid-template-columns: 1fr; }
  .report-finding { grid-template-columns: 3.2rem 1fr; }
  .report-finding code { grid-column: 2; }
  .run-detail-meta { grid-template-columns: repeat(2, 1fr); }
}

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