[hidden] { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch { display: inline-flex; gap: 2px; padding: 3px; background: #f8fafc; border: 1px solid #dfe3e8; border-radius: 6px; }
.language-switch button { border: 0; background: transparent; color: #667085; padding: 3px 7px; border-radius: 4px; font: 700 11px var(--mono); cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: #1d4ed8; background: #fff; box-shadow: 0 1px 3px #0002; }
#jump-results { display: none; border: 0; color: #2563eb; background: none; font-weight: 700; }
.sidebar h1 { font-size: 23px; line-height: 1.2; margin: 2px 0 9px; }
.lead, .hint { color: #667085; font-size: 12px; line-height: 1.55; }
.sidebar-section h2 { margin: 0 0 5px; font-size: 14px; }
#scope-help { margin-bottom: 15px; }
#scan-form { display: grid; gap: 13px; }
#scan-form label, .resume label { display: block; color: #475467; font-size: 12px; font-weight: 700; }
#scan-form input, #scan-form textarea, .resume input { display: block; width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #d0d5dd; border-radius: 6px; background: white; color: #111827; font: 13px var(--font); }
#scan-form input:focus-visible, #scan-form textarea:focus-visible, .resume input:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; }
#scan-form textarea { min-height: 95px; resize: vertical; font: 12px var(--mono); }
#advanced-config { border: 1px solid #dfe3e8; border-radius: 6px; background: #f8fafc; }
#advanced-config summary { padding: 11px 12px; color: #475467; font-size: 12px; font-weight: 700; cursor: pointer; }
.advanced-options-content { display: grid; gap: 12px; padding: 0 12px 12px; }
.advanced-options-content .hint { margin: 0; }
.primary-action { display: flex; justify-content: space-between; margin-top: 3px; }
.side-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; color: #64748b; font: 10px var(--mono); }
.side-flow span { padding: 7px; border-radius: 4px; background: #f8fafc; }
.hero-eyebrow { justify-content: flex-start; gap: 9px; }
.hero-eyebrow span + span { padding-left: 9px; border-left: 1px solid #cbd5e1; }
.results-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin: 0 0 14px; }
.results-header > div:first-child { flex: 1; }
.results-header h2 { font-size: 19px; }
.eyebrow { color: #2563eb; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
#run-id { color: #667085; font: 11px var(--mono); overflow-wrap: anywhere; text-align: left; order: 2; flex-basis: 100%; margin: 0; }
.resume { display: flex; align-items: end; gap: 8px; margin-bottom: 14px; }
.resume label { flex: 1; max-width: 430px; }
.resume button, .report-files button, #new-scan { padding: 8px 11px; background: #fff; border: 1px solid #cbd5e1; border-radius: 5px; color: #344054; font: 700 12px var(--font); cursor: pointer; }
#new-scan { flex-shrink: 0; }
#new-scan:disabled { opacity: .5; cursor: wait; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-shrink: 0; }
#presentation-toggle { padding: 8px 11px; border: 1px solid #bfdbfe; border-radius: 5px; background: #eff6ff; color: #1d4ed8; font: 700 12px var(--font); cursor: pointer; }
#presentation-toggle[aria-pressed="true"] { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
#presentation-toggle:disabled { opacity: .5; cursor: default; }
#presentation-toggle:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
#presentation-note { margin: -4px 0 16px; color: #475467; }
#result-title { scroll-margin-top: 75px; }
#status { display: block; margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid #2563eb; }
#status[data-state="waiting"] { border-left-color: #d97706; background: #fffbeb; }
#status[data-state="failed"] { border-left-color: #dc2626; background: #fef2f2; }
#status[data-state="completed"] { border-left-color: #059669; background: #ecfdf5; }
.result-panel { padding: 20px 22px; margin-bottom: 18px; }
.independent-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.independent-results .result-panel { min-width: 0; }
.independent-results ul { padding-left: 18px; overflow-wrap: anywhere; }
.independent-results button { margin-top: 8px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 5px; background: white; cursor: pointer; }
.panel-heading { margin-bottom: 10px; }
.panel-heading h3 { font-size: 16px; }
.result-panel > p { margin: 9px 0; }
#priority-findings { display: grid; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
#priority-findings li { display: block; padding: 16px 18px; border: 1px solid #dfe3e8; border-left: 4px solid #94a3b8; border-radius: 8px; background: #fff; }
#priority-findings li[data-severity="high"], #priority-findings li[data-severity="critical"] { border-left-color: #dc2626; }
#priority-findings li[data-severity="medium"] { border-left-color: #d97706; }
#priority-findings strong { overflow-wrap: anywhere; }
#priority-findings span { color: #667085; font-size: 11px; white-space: nowrap; }
#priority-findings small, #priority-findings details { grid-column: 1 / -1; overflow-wrap: anywhere; }
#priority-findings small { color: #667085; }
#priority-findings .finding-title { display: block; font-size: 15px; line-height: 1.5; color: #172033; }
.finding-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
#priority-findings .finding-tags span { display: inline-block; margin: 0; padding: 4px 8px; border-radius: 5px; font-size: 11px; line-height: 1.45; white-space: normal; }
#priority-findings .finding-severity { background: #f2f4f7; color: #475467; font-weight: 750; }
#priority-findings li[data-severity="high"] .finding-severity, #priority-findings li[data-severity="critical"] .finding-severity { background: #fef3f2; color: #b42318; }
#priority-findings li[data-severity="medium"] .finding-severity { background: #fffaeb; color: #92400e; }
#priority-findings .finding-status, #priority-findings .finding-count { background: #f2f4f7; color: #475467; }
#priority-findings .finding-evidence { color: #475467; font-size: 12px; line-height: 1.6; margin: 11px 0 0; overflow-wrap: anywhere; }
#priority-findings .finding-details { margin-top: 12px; border-top: 1px solid #eaecf0; padding-top: 10px; }
#priority-findings .finding-details summary { font-size: 12px; line-height: 1.5; }
#priority-findings .finding-details p { color: #475467; line-height: 1.6; }
.result-details, #priority-findings details { margin-top: 10px; font-size: 12px; }
.result-details summary, #priority-findings details summary { cursor: pointer; color: #2563eb; font-weight: 600; }
.result-details p, #priority-findings details p { overflow-wrap: anywhere; margin: 8px 0; }
.independent-results [role='status'] { font-size: 13px; line-height: 1.6; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.metrics > div { padding: 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 5px; }
.metrics strong { display: block; font-size: 22px; }
.metrics span { display: block; color: #667085; font-size: 10px; }
.report-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.progress-panel { display: block; padding: 18px 20px; }
#stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: stage; }
#stages li { counter-increment: stage; min-height: 96px; padding: 15px; border-right: 1px solid #e5e7eb; border-top: 3px solid #cbd5e1; overflow-wrap: anywhere; }
#stages li:last-child { border-right: 0; }
#stages li::before { content: counter(stage, decimal-leading-zero); display: block; color: #64748b; font: 11px var(--mono); }
#stages li strong { display: block; margin: 5px 0; font-size: 13px; }
#stages li span { color: #667085; font-size: 11px; }
#stages li.completed { border-top-color: #059669; }
#stages li.waiting, #stages li.cancelled { border-top-color: #d97706; }
#stages li.partial { border-top-color: #d97706; }
#stages li.failed { border-top-color: #dc2626; }
#stages li.skipped { opacity: .7; }
#technical-details summary { color: #2563eb; font-weight: 700; cursor: pointer; }
#technical-details h3 { margin: 18px 0 7px; font-size: 15px; }
#static-details, #dynamic-details, #findings { padding-left: 20px; }
#static-details li, #dynamic-details li, #findings li { padding: 4px 0; overflow-wrap: anywhere; }
#report-download { color: #2563eb; font-weight: 700; }
.footer-note { margin-top: 12px; }
#coverage-endpoints { padding-left: 18px; margin: 10px 0 0; }
#coverage-endpoints li { padding: 5px 0; font: 12px/1.6 var(--mono); overflow-wrap: anywhere; }
.scan-tracker { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 16px 20px; margin: 0 0 12px; }
.scan-tracker h3 { font-size: 14px; margin: 0 0 12px; }
.scan-tracker dl { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin: 0; }
.scan-tracker dt { font-size: 11px; color: #667085; }
.scan-tracker dd { font-size: 14px; font-weight: 650; margin: 5px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.scan-tracker[data-state="running"] #tracker-stage { color: #1d4ed8; }
.scan-tracker[data-state="waiting"] #tracker-stage, .scan-tracker[data-state="paused"] #tracker-stage, .scan-tracker[data-state="cancelled"] #tracker-stage { color: #92400e; }
.scan-tracker[data-state="failed"] #tracker-stage { color: #b42318; }
.scan-tracker[data-state="completed"] #tracker-stage { color: #067647; }
.scan-tracker .hint { margin: 10px 0 0; }
.page-body { display: block; }
.scan-entry.sidebar { position: static; width: 100%; max-height: none; overflow: visible; border-right: 0; border-bottom: 1px solid var(--border); padding: 22px 34px 16px; }
.scan-intro, .scan-entry-fields, .side-flow { max-width: 1372px; margin-left: auto; margin-right: auto; }
.scan-intro { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.scan-intro h1 { flex-shrink: 0; margin: 0; font-size: 24px; letter-spacing: -.025em; }
.scan-intro .lead { margin: 0; }
.access-guidance { max-width: 1372px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: #475467; font-size: 13px; }
.access-guidance p { margin: 0; }
.access-guidance a { color: #2449a9; font-weight: 650; text-underline-offset: 3px; }
.access-guidance a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.access-guidance[hidden] { display: none; }
#scan-form { gap: 12px; }
.scan-profile-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.scan-profile-fields .hint { grid-column: 1 / -1; margin: 0; }
#scan-form label > span:first-child { display: block; text-transform: none; letter-spacing: 0; }
#scan-form select { display: block; width: 100%; min-height: 42px; margin-top: 6px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #18273d; font: 13px var(--font); }
#scan-form select:focus-visible, #scan-form button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.scan-input-row { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(260px, 1.2fr) auto; align-items: end; gap: 14px; }
.scan-input-row:has(.artifact-choice[hidden]), .scan-input-row:has(.link-choice[hidden]) { grid-template-columns: minmax(0, 1fr) auto; }
.scan-input-row label { min-width: 0; }
.scan-input-row input { min-height: 42px; }
.scan-input-row input[type="file"] { padding: 6px; color: #475467; }
.scan-input-row input[type="file"]::file-selector-button { border: 0; border-radius: 4px; padding: 6px 10px; margin-right: 10px; background: #eaf1ff; color: #2449a9; font-weight: 700; cursor: pointer; }
.scan-input-row .primary-action { width: auto; min-height: 42px; margin: 0; padding: 10px 20px; justify-content: center; }
.input-choice-hint { margin: -4px 0 0; color: #667085; font-size: 12px; line-height: 1.5; }
.entry-error { margin: 0; padding: 10px 12px; border-left: 3px solid #b42318; background: #fff3f2; color: #912018; font-size: 13px; }
#advanced-config { background: transparent; border: 0; margin: 0; }
#advanced-config summary { padding: 5px 0; width: fit-content; }
#advanced-config[open] { border: 1px solid var(--border); background: #f8fafc; }
#advanced-config[open] summary { padding: 10px 12px; }
.advanced-options-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.advanced-options-content > p, .advanced-options-content > label:has(textarea) { grid-column: 1 / -1; }
.side-flow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.side-flow span { padding: 4px 7px; }
.main-content { max-width: 1440px; margin: 0 auto; min-width: 0; }
.has-selected-run .hero, .has-selected-run .scan-intro .lead, .has-selected-run .side-flow { display: none; }
.has-selected-run .scan-intro { margin-bottom: 8px; }
.has-selected-run .scan-intro h1 { font-size: 15px; }
.has-selected-run .scan-entry { padding-top: 14px; padding-bottom: 10px; }
.presentation-mode.has-selected-run .scan-entry,
.presentation-mode #resume-form,
.presentation-mode #technical-details,
.presentation-mode .result-details,
.presentation-mode .finding-details,
.presentation-mode .report-files,
.presentation-mode #report-download,
.presentation-mode [data-stage-download] { display: none; }
.presentation-mode .results { display: flex; flex-direction: column; }
.presentation-mode .results > * { order: 10; }
.presentation-mode .results-header { order: 0; }
.presentation-mode #presentation-note { order: 1; }
.presentation-mode #scan-tracker { order: 2; }
.presentation-mode #status { order: 3; }
.presentation-mode #evidence-preview { order: 4; }
.presentation-mode #deep-review-controls { order: 4; }
.presentation-mode .progress-panel { order: 5; }
.presentation-mode #priority-results { order: 6; }
.presentation-mode #dynamic-coverage { order: 7; }
.presentation-mode #independent-results { order: 8; }
.presentation-mode #report { order: 9; }
.presentation-mode .panel-heading h3 { font-size: 18px; }
.presentation-mode .metrics strong { font-size: 26px; }
@media (max-width: 900px) { .metrics, #stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } #stages li:nth-child(2) { border-right: 0; } .sidebar { position: static; max-height: none; } }
@media (max-width: 900px) { .independent-results { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .page-body { display: block; }
  .sidebar { width: auto; border-right: 0; border-bottom: 1px solid #dfe3e8; }
  .main-content { min-width: 0; }
}
@media (max-width: 650px) { .header-device { display: none; } #jump-results { display: inline; } .main-content { padding: 20px 16px; } #priority-findings li { display: block; } #priority-findings span { display: block; margin-top: 4px; white-space: normal; } .results-header { display: block; } #run-id { text-align: left; margin-top: 5px; } }
@media (max-width: 650px) {
  .scan-entry.sidebar { padding: 16px; }
  .scan-intro { display: block; }
  .scan-intro .lead { margin-top: 7px; }
  .scan-profile-fields { grid-template-columns: 1fr; }
  .scan-input-row, .scan-input-row:has(.artifact-choice[hidden]), .scan-input-row:has(.link-choice[hidden]) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .scan-input-row .primary-action { width: 100%; justify-content: space-between; }
  .advanced-options-content { grid-template-columns: minmax(0, 1fr); }
  .scan-tracker { padding: 14px; }
  .scan-tracker dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scan-tracker dl > div:first-child { grid-column: 1 / -1; }
  .result-actions { margin-top: 10px; }
}

/* Manual entry is an explicit scan option, with readable supporting text. */
#scan-form #ui-start-mode-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
#ui-start-mode { display: block; width: min(100%, 340px); padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; color: #172033; font: 13px var(--font); }
#ui-start-mode:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
#scan-form #ui-start-mode-field > .hint { display: block; margin: 0; max-width: 760px; font-size: 12px; font-weight: 400; line-height: 1.6; letter-spacing: normal; text-transform: none; color: #667085; }
#operator-login-controls { border-left: 4px solid #2563eb; }
#operator-login-continue { max-width: 340px; padding: 11px 16px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; font-weight: 700; cursor: pointer; }
#operator-login-continue:disabled { opacity: .5; cursor: default; }

/* Simple view (default): what a security lead needs first. The technical view
   shows every record unchanged; nothing is removed from the page data. */
#view-toggle { padding: 8px 11px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: #344054; font: 700 12px var(--font); cursor: pointer; }
#view-toggle[aria-pressed="true"] { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.exec-card { margin: 0 0 16px; padding: 22px 24px; border: 1px solid #dfe3e8; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px #1420330a; }
.exec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.exec-head h3 { margin: 2px 0 0; font-size: 21px; }
.exec-pill { flex-shrink: 0; padding: 5px 11px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 750; }
.exec-pill[data-tone="done"] { background: #ecfdf3; color: #067647; }
.exec-pill[data-tone="failed"] { background: #fef3f2; color: #b42318; }
.exec-pill[data-tone="running"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; animation: exec-pulse 1.4s ease-in-out infinite; }
@keyframes exec-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .exec-pill[data-tone="running"]::before { animation: none; } }
.exec-verdict { margin: 12px 0 16px; color: #1f2937; font-size: 15px; line-height: 1.55; }
.exec-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: exec; }
.exec-steps li { counter-increment: exec; padding: 8px 10px 0; border-top: 4px solid #e4e7ec; color: #667085; font-size: 12px; font-weight: 650; }
.exec-steps li::before { content: counter(exec) ". "; }
.exec-steps li[data-state="completed"] { border-top-color: #12b76a; color: #344054; }
.exec-steps li[data-state="completed"]::before { content: "✓ "; color: #067647; }
.exec-steps li[data-state="running"] { border-top-color: #2563eb; color: #1d4ed8; }
.exec-steps li[data-state="waiting"], .exec-steps li[data-state="cancelled"] { border-top-color: #f79009; color: #93370d; }
.exec-steps li[data-state="failed"] { border-top-color: #d92d20; color: #b42318; }
.exec-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 22px; }
.exec-grid h4 { margin: 0 0 9px; color: #475467; font-size: 12px; font-weight: 700; }
.exec-risk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.exec-risk div { padding: 12px 13px; border-radius: 8px; background: #f8fafc; border: 1px solid #eaecf0; }
.exec-risk strong { display: block; font-size: 26px; line-height: 1.1; color: #344054; }
.exec-risk span { font-size: 11px; font-weight: 750; letter-spacing: .04em; color: #667085; }
.exec-risk [data-severity="critical"] strong { color: #912018; }
.exec-risk [data-severity="high"] strong { color: #d92d20; }
.exec-risk [data-severity="medium"] strong { color: #b54708; }
.exec-risk [data-severity="low"] strong { color: #175cd3; }
.exec-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.exec-facts div { padding: 11px 13px; border: 1px solid #eaecf0; border-radius: 8px; }
.exec-facts span { display: block; color: #667085; font-size: 11px; font-weight: 700; }
.exec-facts strong { display: block; margin: 2px 0; font-size: 17px; color: #101828; }
.exec-facts small { display: block; color: #667085; font-size: 12px; line-height: 1.45; }
#priority-findings .finding-assessment { background: #fffaeb; color: #93370d; font-weight: 700; }
#priority-findings .finding-assessment[data-assessment="possible_false_positive"], #priority-findings .finding-assessment[data-assessment="insufficient_evidence"] { background: #f2f4f7; color: #475467; }
#priority-findings .finding-assessment[data-assessment="runtime_supported"], #priority-findings .finding-assessment[data-assessment="confirmed_by_source"] { background: #fef3f2; color: #b42318; }
.finding-why { margin: 9px 0 0; color: #344054; font-size: 13px; }
.finding-fp { margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: #f8fafc; color: #475467; font-size: 12px; }
.finding-fix { margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: #eff8ff; color: #175cd3; font-size: 12.5px; line-height: 1.55; border-left: 3px solid #2e90fa; }
.finding-fix strong { color: #194185; }
#priority-findings li[data-extra] { display: none; }
#priority-findings[data-show-all="1"] li[data-extra] { display: block; }
.priority-more { margin-top: 10px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #1d4ed8; font: 700 12px var(--font); cursor: pointer; }
.simple-view .hero, .simple-view #resume-form, .simple-view #presentation-toggle, .simple-view #presentation-note,
.simple-view #scan-tracker, .simple-view #evidence-preview, .simple-view #dynamic-coverage, .simple-view .stages-grid,
.simple-view #independent-results, .simple-view #navigation-goals, .simple-view #graph-summary, .simple-view #graph-state,
.simple-view #graph-note, .simple-view #graph-read-status, .simple-view .graph-history, .simple-view #graph-details,
.simple-view #priority-summary, .simple-view #priority-results > .hint, .simple-view .finding-status-generic,
.simple-view #report > p, .simple-view #report > .result-details, .simple-view #report #findings,
.simple-view #technical-details, .simple-view .footer-note, .simple-view .side-flow, .simple-view #status[data-state="completed"] { display: none !important; }
.simple-view .graph-workspace { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .exec-grid { grid-template-columns: 1fr; } .exec-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 11px; } }
.simple-view #exploration-svg { height: 300px; }
.finding-runtime { margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: #ecfdf3; color: #067647; font-size: 12px; font-weight: 600; }
.agent-timeline-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agent-timeline-steps li { padding: 12px 14px; border: 1px solid #eaecf0; border-left: 4px solid #2563eb; border-radius: 8px; background: #fff; }
.agent-timeline-steps li[data-tone="warn"] { border-left-color: #f79009; }
.agent-timeline-steps .ts-action { margin: 0; font-size: 14px; font-weight: 700; color: #101828; }
.agent-timeline-steps .ts-why { margin: 5px 0 0; font-size: 12px; color: #667085; }
.agent-timeline-steps .ts-outcome { margin: 5px 0 0; font-size: 13px; color: #344054; }
.agent-timeline-steps li[data-tone="warn"] .ts-outcome { color: #93370d; }
#agent-timeline-note { margin-top: 12px; }

/* A1: severity filter for the static candidate list (show/hide by severity) */
.severity-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.severity-pill { padding: 4px 10px; border: 1px solid #d0d5dd; border-radius: 999px; background: #fff; color: #667085; font: 700 11px var(--font); cursor: pointer; }
.severity-pill[aria-pressed="true"][data-severity="critical"], .severity-pill[aria-pressed="true"][data-severity="high"] { background: #fef3f2; color: #b42318; border-color: #fda29b; }
.severity-pill[aria-pressed="true"][data-severity="medium"] { background: #fffaeb; color: #b54708; border-color: #fec84b; }
.severity-pill[aria-pressed="true"][data-severity="low"] { background: #eff6ff; color: #175cd3; border-color: #b2ddff; }
.severity-pill[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
#static-card-findings .more-note { list-style: none; color: #667085; font-size: 12px; font-style: italic; }

/* A2: per-stage "what happened" expander (static/dynamic/agentic differ) */
.stages-grid .stage-detail { margin-top: 4px; }
.stages-grid .stage-detail summary { cursor: pointer; color: #2563eb; font: 700 11px var(--font); list-style: none; }
.stages-grid .stage-detail summary::-webkit-details-marker { display: none; }
.stages-grid .stage-detail summary::before { content: "›"; display: inline-block; margin-right: 5px; transition: transform .15s; }
.stages-grid .stage-detail[open] summary::before { transform: rotate(90deg); }
.stages-grid .stage-detail p { margin: 4px 0 0; color: #475467; font-size: 12px; line-height: 1.5; }

/* A4: when a run is loaded, the scan input form is redundant above the results */
body.has-selected-run #scan-entry { display: none; }

/* Clickable exec-summary stage pills -> "what happened" detail */
.exec-steps li.clickable { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.exec-steps li.clickable:hover, .exec-steps li.active { color: #1d4ed8; }
.exec-steps li.active { font-weight: 700; }
.exec-stage-detail:empty { display: none; }
.exec-stage-detail { margin: 8px 0 2px; padding: 10px 12px; background: #f8fafc; border: 1px solid #e4e8f0; border-left: 3px solid #466bd4; border-radius: 6px; }
.exec-stage-detail strong { display: block; font-size: 13px; color: #101828; margin-bottom: 4px; }
.exec-stage-detail p { margin: 3px 0 0; font-size: 12px; color: #475467; line-height: 1.5; }

/* Clickable exec-summary severity tiles -> list findings of that severity */
.exec-risk > div.clickable { cursor: pointer; }
.exec-risk > div.clickable:hover { box-shadow: 0 0 0 2px #bfdbfe inset; }
.exec-risk > div.active { box-shadow: 0 0 0 2px #2563eb inset; }
.exec-risk-detail:empty { display: none; }
.exec-risk-detail { margin: 10px 0 2px; padding: 10px 12px; background: #f8fafc; border: 1px solid #e4e8f0; border-left: 3px solid #d92d20; border-radius: 6px; }
.exec-risk-detail > strong { display: block; font-size: 13px; color: #101828; margin-bottom: 6px; }
.exec-risk-detail ul { margin: 0; padding-left: 18px; }
.exec-risk-detail li { font-size: 12px; color: #344054; line-height: 1.6; }
.exec-risk-detail p { margin: 6px 0 0; font-size: 12px; color: #667085; font-style: italic; }

/* Password show/hide toggle on the test-account field */
.pw-wrap { position: relative; display: block; margin-top: 6px; }
.pw-wrap input { margin-top: 0; padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 5px 11px; border: 1px solid #d0d5dd; border-radius: 5px; background: #f2f4f7; color: #344054; font: 12px var(--font); cursor: pointer; }
.pw-toggle:hover { background: #e4e7ec; }
.pw-toggle:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; }

/* Prominent top "Stop scan" button, shown while a scan is live */
.result-actions .stop-action { padding: 8px 13px; border: 1px solid #d92d20; border-radius: 5px; background: #d92d20; color: #fff; font: 700 12px var(--font); cursor: pointer; }
.result-actions .stop-action:hover { background: #b42318; border-color: #b42318; }
.result-actions .stop-action:focus-visible { outline: 3px solid #fecdca; outline-offset: 1px; }
.result-actions .stop-action[disabled] { opacity: .6; cursor: default; }
.exec-stage-risk { margin-top: 10px; display: grid; gap: 4px; font-size: 12px; color: #475467; }
.exec-stage-risk[hidden] { display: none; }
.exec-stage-risk small { color: #667085; }
.exec-stage-risk div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid #eaecf0; }
.exec-stage-risk b { min-width: 52px; color: #344054; }
.exec-stage-risk [data-severity="critical"], .exec-stage-risk [data-severity="high"] { font-weight: 650; }
.exec-stage-risk em { color: #667085; font-style: normal; }

/* Scan workspace: one work surface, with a separate contextual rail. */
:root {
  --desk-ink: #203831;
  --desk-muted: #5c7069;
  --desk-canvas: #e9eeeb;
  --desk-paper: #fbfcfa;
  --desk-line: #d4dfd8;
  --desk-accent: #dc5b3e;
  --font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
body { background: var(--desk-canvas); color: var(--desk-ink); }
body > header { height: 72px; padding: 0 clamp(22px, 5vw, 76px); background: var(--desk-paper); border-bottom: 1px solid var(--desk-line); box-shadow: none; backdrop-filter: none; }
.brand-title { gap: 11px; color: var(--desk-ink); font-size: 18px; font-weight: 750; text-decoration: none; }
.brand-mark { width: 29px; height: 29px; display: grid; align-content: center; gap: 3px; padding: 6px; background: var(--desk-ink); border-radius: 8px 8px 3px 8px; }
.brand-mark i { display: block; height: 2px; background: #d5e4da; border-radius: 2px; }
.brand-mark i:nth-child(2) { width: 65%; background: #ff977d; }
.brand-mark i:nth-child(3) { width: 82%; }
.header-device { border: 0; background: transparent; color: var(--desk-muted); font: 12px var(--font); }
.language-switch { background: #eaf0eb; border: 0; border-radius: 20px; padding: 3px; }
.language-switch button { padding: 6px 9px; border-radius: 16px; color: #52665c; font: 700 11px var(--font); }
.language-switch button[aria-pressed="true"] { background: #fff; color: var(--desk-ink); box-shadow: none; }
.container { max-width: none; }
.page-body { min-height: calc(100vh - 72px); padding: clamp(26px, 4vw, 58px) clamp(22px, 5vw, 76px) 72px; }
.scan-entry.sidebar { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); width: min(100%, 1380px); max-width: 1380px; margin: 0 auto; padding: 0; overflow: visible; border: 1px solid #c9d8ce; border-radius: 14px; background: var(--desk-paper); }
.scan-context { display: flex; flex-direction: column; min-width: 0; padding: clamp(30px, 4vw, 60px); border-right: 1px solid #aec4b8; border-radius: 13px 0 0 13px; background: #d5e5d9; }
.scan-intro, .scan-entry-fields { max-width: none; margin: 0; }
.scan-intro { display: block; }
.scan-intro h1 { max-width: 390px; margin: 30px 0 16px; color: #173b2d; font-size: clamp(38px, 4vw, 58px); font-weight: 650; letter-spacing: -.055em; line-height: 1.04; }
.scan-intro .lead { max-width: 340px; color: #49675a; font-size: 16px; line-height: 1.6; }
.access-guidance { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px 10px; align-items: start; margin: auto 0 0; padding: 42px 0 0; color: #355448; font-size: 13px; line-height: 1.55; }
.access-guidance p { margin: 0; }
.access-guidance a { grid-column: 2; justify-self: start; color: #174d37; font-weight: 700; text-underline-offset: 4px; }
.access-marker { color: var(--desk-accent); font-size: 20px; line-height: 1; }
.scan-entry-fields { min-width: 0; padding: clamp(28px, 4vw, 54px); }
#scan-form { gap: 20px; }
.form-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--desk-line); }
.form-heading h2 { margin: 5px 0 0; color: var(--desk-ink); font-size: 25px; letter-spacing: -.035em; }
.form-platforms { white-space: nowrap; color: #71877c; font-size: 12px; }
.scan-profile-fields { gap: 12px; }
#scan-form label, .resume label { color: #39584a; font: 650 12px var(--font); }
#scan-form select, #scan-form input, #scan-form textarea, .resume input { min-height: 47px; margin-top: 8px; border: 1px solid #c9d8ce; border-radius: 6px; background: #fff; color: #203831; font: 14px var(--font); }
#scan-form select { padding: 10px 12px; }
#scan-form input:focus-visible, #scan-form textarea:focus-visible, #scan-form select:focus-visible, .resume input:focus-visible { outline: 3px solid #8cbfa5; outline-offset: 2px; }
#scan-form textarea { font-family: var(--mono); font-size: 12px; }
#scan-form .hint, .input-choice-hint { color: #6b8174; font-size: 12px; }
.scan-input-row, .scan-input-row:has(.artifact-choice[hidden]), .scan-input-row:has(.link-choice[hidden]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.scan-input-row input[type="file"] { padding: 7px; color: #596e62; }
.scan-input-row input[type="file"]::file-selector-button { padding: 7px 11px; background: #e8f0ea; color: #315541; }
.input-choice-hint { margin: -12px 0 0; }
#advanced-config { border-top: 1px solid var(--desk-line); border-radius: 0; padding-top: 8px; }
#advanced-config summary { padding: 8px 0; color: #315541; font-size: 13px; }
#advanced-config[open] { border: 1px solid var(--desk-line); border-radius: 7px; background: #f3f7f3; }
#advanced-config[open] summary { padding: 12px; }
.form-action { display: flex; justify-content: flex-end; }
#scan-form .primary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 48px; min-width: 190px; min-height: 49px; margin: 0; padding: 12px 16px; border: 0; border-radius: 6px; background: #b73d27; color: #fff; font: 700 14px var(--font); }
#scan-form .primary-action:hover { background: #942d1d; }
.action-arrow { font-size: 19px; line-height: 1; }
.side-flow { display: none !important; }
.main-content { max-width: 1380px; width: 100%; margin: 24px auto 0; padding: 0; }
body:not(.has-selected-run) .results-header, body:not(.has-selected-run) #status, body:not(.has-selected-run) .progress-panel { display: none; }
.simple-view #resume-form:not([hidden]) { display: flex !important; }
.resume { align-items: end; gap: 12px; margin: 0 0 20px; padding: 25px 30px; border: 1px solid #cbd9cf; border-radius: 10px; background: #e0e9e2; }
.resume-copy { flex: 1; display: grid; gap: 4px; align-self: center; }
.resume-copy strong { color: #244337; font-size: 16px; }
.resume-copy span { color: #61796b; font-size: 13px; }
.resume label { flex: 0 1 310px; }
.resume button, .report-files button, #new-scan, #view-toggle { min-height: 42px; border: 1px solid #a9c1b2; border-radius: 6px; background: #fbfcfa; color: #315541; }
.resume button:hover, .report-files button:hover, #new-scan:hover, #view-toggle:hover { background: #edf5ef; }
body.has-selected-run .resume { margin-top: 12px; }
body.has-selected-run .main-content { max-width: 1120px; }
.results-header { align-items: end; gap: 12px; margin-bottom: 20px; }
.results-header h2 { font-size: 29px; letter-spacing: -.04em; }
.eyebrow { color: #6c8376; font-size: 11px; font-weight: 650; letter-spacing: 0; text-transform: none; }
#run-id { color: #6b8174; }
.exec-card, .analysis-card, .scan-tracker { border-color: #cbdad0; border-radius: 10px; box-shadow: none; }
.exec-card { padding: 28px; background: var(--desk-paper); }
.exec-head h3 { font-size: 25px; letter-spacing: -.03em; }
.exec-risk div, .exec-facts div { background: #f2f6f2; border-color: #dce8de; }
.exec-facts div { background: transparent; }
.exec-steps li[data-state="running"] { border-top-color: #b73d27; color: #963b29; }
.exec-steps li.clickable:hover, .exec-steps li.active { color: #a53d29; }
#status { border-left-color: #476b57; background: #e0ebe2; }
@media (max-width: 900px) {
  .scan-entry.sidebar { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); }
  .scan-profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resume { flex-wrap: wrap; }
  .resume-copy { flex-basis: 100%; }
}
@media (max-width: 700px) {
  body > header { height: 62px; padding: 0 20px; }
  .page-body { padding: 22px 16px 48px; }
  .scan-entry.sidebar { grid-template-columns: 1fr; }
  .scan-context { padding: 28px; border-right: 0; border-bottom: 1px solid #aec4b8; border-radius: 13px 13px 0 0; }
  .scan-intro h1 { margin: 18px 0 10px; font-size: 40px; }
  .scan-intro .lead { font-size: 15px; }
  .access-guidance { padding-top: 24px; }
  .scan-entry-fields { padding: 26px 24px 30px; }
  .scan-profile-fields { grid-template-columns: 1fr; }
  .form-action, #scan-form .primary-action { width: 100%; }
  .resume { padding: 22px; }
  .resume label { flex: 1 1 100%; max-width: none; }
  .resume button { width: 100%; }
  .main-content { padding: 0; }
  .results-header { display: flex; }
  .exec-card { padding: 20px; }
  #jump-results { color: #315541; }
}
/* Make the introductory rail feel like an instrument panel, not another card. */
.scan-context { background: #2e4b50; border-color: #2e4b50; }
.scan-intro .lead { color: #c9dad6; }
.scan-intro h1 { color: #fff; }
.access-guidance { color: #d8e7e2; }
.access-guidance a { color: #fff; }
.access-marker { color: #ffc3a5; }
.resume label { text-transform: none; letter-spacing: normal; }
.resume-error { flex: 1 0 100%; margin: 0; color: #a12e20; font-size: 13px; }
body:not(.has-selected-run) #jump-results { display: none; }
body.has-selected-run.simple-view #resume-form, .simple-view #profile-readiness { display: none !important; }
.scan-intro h1 { margin-top: 0; }
.form-heading h2 { margin: 0; }
.form-platforms { color: #526b5c; }
.brand-title:focus-visible, .access-guidance a:focus-visible, .resume button:focus-visible { outline: 3px solid #8cbfa5; outline-offset: 3px; }
@media (max-width: 700px) { .scan-intro h1 { margin-top: 0; } }
/* Results use a readable evidence sheet instead of a grid of nested cards. */
.exec-risk { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--desk-line); }
.exec-risk div { padding: 14px 9px 10px 0; border: 0; border-radius: 0; background: transparent; }
.exec-risk strong { font-size: 29px; }
.exec-risk span { font-size: 10px; letter-spacing: 0; }
.exec-facts { gap: 0 16px; }
.exec-facts div { padding: 12px 0; border: 0; border-top: 1px solid var(--desk-line); border-radius: 0; }
.exec-facts strong { color: var(--desk-ink); }
body .enduser-report .summary-tiles { gap: 0; border-top: 1px solid var(--desk-line); border-bottom: 1px solid var(--desk-line); }
body .enduser-report .summary-tiles > div { padding: 18px 15px 18px 0; background: transparent; border: 0; border-radius: 0; }
body .enduser-report .summary-tiles strong { color: var(--desk-ink); font-size: 22px; }
body .enduser-report .action { padding: 24px 0; margin: 0; background: transparent; border: 0; border-bottom: 1px solid var(--desk-line); border-radius: 0; }
body .enduser-report h4 { color: var(--desk-ink); }
body .enduser-report .recommendation { background: #edf4ee; border-left-color: #587e68; border-radius: 0 5px 5px 0; }
body .enduser-report .coverage-note { background: #f5f1e4; border-color: #e4d9b9; }
@media (max-width: 560px) { body .enduser-report .summary-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } body .enduser-report .summary-tiles > div { padding: 12px 8px 12px 0; } body .enduser-report .summary-tiles strong { font-size: 18px; } }

/* A stopped device stage still leaves an explicitly interim static summary. */
.simple-view #evidence-preview[data-worker-failed="true"]:not([hidden]) { display: block !important; }

/* AppBreach identity: a quiet workspace for evidence and decisions. */
:root{--desk-ink:#1b2942;--desk-muted:#52617a;--desk-canvas:#f2f4f9;--desk-paper:#fff;--desk-line:#d9dfeb;--desk-accent:#df796b;--font:'Avenir Next',Avenir,'Segoe UI',sans-serif}
body{background:var(--desk-canvas);color:var(--desk-ink)}
body>header{background:#fff;border-color:var(--desk-line)}
.brand-title{color:#182945;font-size:25px;font-weight:750;letter-spacing:-.055em}
.brand-period{color:var(--desk-accent)}
.header-device{color:#65738a}
.language-switch{background:#eff2f8}
.language-switch button{color:#596983}
.language-switch button[aria-pressed="true"]{color:#1b2942}
.scan-entry.sidebar{border:1px solid #d8dfec;border-radius:12px;background:#fff}
.scan-context{background:#263c69;border-color:#263c69}
.scan-intro h1{color:#fff;letter-spacing:-.05em}
.scan-intro .lead{color:#d1dbee}
.access-guidance{color:#d6e0f0}
.access-guidance a{color:#fff}
.access-marker{color:#edb7a9}
.form-heading h2{color:var(--desk-ink)}
.form-platforms{color:#65738a}
#scan-form label,.resume label{color:#43536b}
#scan-form select,#scan-form input,#scan-form textarea,.resume input{border-color:#cbd5e5;color:#1b2942}
#scan-form input:focus-visible,#scan-form textarea:focus-visible,#scan-form select:focus-visible,.resume input:focus-visible{outline-color:#87a1e6}
#scan-form .hint,.input-choice-hint{color:#66758b}
.scan-input-row input[type="file"]{color:#5d6c81}
.scan-input-row input[type="file"]::file-selector-button{background:#edf1f9;color:#304f80}
#advanced-config summary{color:#435777}
#advanced-config[open]{background:#f5f7fc}
#scan-form .primary-action{background:#304f9b}
#scan-form .primary-action:hover{background:#243e80}
.resume{border-color:#d5ddec;background:#e7ecf6}
.resume-copy strong{color:#243754}
.resume-copy span{color:#5f708b}
.resume button,.report-files button,#new-scan,#view-toggle{border-color:#bac7db;background:#fff;color:#334b71}
.resume button:hover,.report-files button:hover,#new-scan:hover,#view-toggle:hover{background:#eff3fb}
.eyebrow,#run-id{color:#657793}
.exec-card,.analysis-card,.scan-tracker{border-color:#d9dfeb}
.exec-risk div,.exec-facts div{border-color:#e3e8f1}
.exec-steps li[data-state="running"]{border-top-color:#4769b4;color:#304f9b}
.exec-steps li.clickable:hover,.exec-steps li.active{color:#304f9b}
#status{border-left-color:#4769b4;background:#eaf0fa}
#status[data-state="waiting"]{border-left-color:#bd7b17;background:#fff8e9}
#status[data-state="failed"]{border-left-color:#b93740;background:#fff1f2}
#status[data-state="completed"]{border-left-color:#278060;background:#edf9f3}
body .enduser-report .recommendation{background:#eef3fa;border-left-color:#617eb6}
body .enduser-report .coverage-note{background:#faf5e9;border-color:#e6dac0}
.brand-title:focus-visible,.access-guidance a:focus-visible,.resume button:focus-visible{outline-color:#87a1e6}
@media(max-width:700px){#jump-results{color:#304f9b}}

/* A focused scan desk: the rail describes the workflow, the form does the work. */
.scan-entry.sidebar{grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);overflow:hidden;border-color:#d0dae9;border-radius:12px}
.scan-context{position:relative;overflow:hidden;background:#243e67;border-radius:0;padding:clamp(30px,4vw,54px)}
.scan-context::after{content:"";position:absolute;right:-100px;top:-110px;width:260px;height:260px;border:1px solid #8ca6c833;border-radius:50%;box-shadow:0 0 0 35px #8ca6c80c,0 0 0 70px #8ca6c80a;pointer-events:none}
.scan-intro{position:relative;z-index:1}.scan-intro h1{max-width:320px;font-size:clamp(36px,3.6vw,51px)}
.context-steps{position:relative;z-index:1;list-style:none;display:grid;gap:14px;margin:36px 0 0;padding:0;color:#e3ebf8;font-size:13px}
.context-steps li{display:flex;align-items:center;gap:11px}.context-steps li::before{content:"";width:7px;height:7px;border:1px solid #b0c7e4;border-radius:50%}
.scan-entry-fields{padding:clamp(28px,4vw,52px)}
#scan-form select,#scan-form input,#scan-form textarea,.resume input{border-radius:7px}
#scan-form select:hover,#scan-form input:hover,.resume input:hover{border-color:#8ba0c0}
#advanced-config summary{display:flex;align-items:center;gap:8px}
#advanced-config summary::after{content:'+';margin-left:auto;color:#526b90;font-size:19px;line-height:1}
#advanced-config[open] summary::after{content:'−'}
#scan-form .primary-action{min-height:52px;border-radius:7px;transition:background-color .18s ease,transform .18s ease}
#scan-form .primary-action:hover{transform:translateY(-1px)}
.resume{background:#e8edf7;border-radius:8px}
.exec-card,.analysis-card,.scan-tracker{border-radius:8px}
.exec-steps li[data-state="running"]{animation:stage-active 1.8s ease-in-out infinite}
@keyframes stage-active{0%,100%{border-top-color:#8ca5d1}50%{border-top-color:#315eac}}
@media(max-width:700px){.scan-entry.sidebar{grid-template-columns:1fr}.scan-context{padding:28px;border-radius:0}.context-steps{grid-template-columns:1fr;gap:8px;margin-top:22px}.scan-intro h1{font-size:38px}.access-guidance{padding-top:26px}}
@media(prefers-reduced-motion:reduce){.exec-steps li[data-state="running"]{animation:none}#scan-form .primary-action{transition:none}#scan-form .primary-action:hover{transform:none}}

/* Shared AppBreach palette: calm surfaces, one clear action, explicit status. */
:root{--desk-ink:#18363c;--desk-muted:#536b70;--desk-canvas:#f2f5f3;--desk-paper:#fff;--desk-line:#d9e3e0;--desk-accent:#176267}
body>header,.scan-entry.sidebar,.exec-card,.analysis-card,.scan-tracker{border-color:var(--desk-line)}
.brand-title,.form-heading h2,.resume-copy strong{color:var(--desk-ink)}
.header-device,.form-platforms,.eyebrow,#run-id,#scan-form .hint,.input-choice-hint,.resume-copy span{color:var(--desk-muted)}
.scan-context{background:#173f43;border-color:#173f43}
.scan-intro .lead,.access-guidance{color:#d8e8e4}
.context-steps{color:#e4efec}.context-steps li::before{border-color:#9bbdb0}
.access-marker{color:#9bbdb0}
#scan-form label,.resume label,#advanced-config summary{color:#344f54}
#scan-form select,#scan-form input,#scan-form textarea,.resume input{border-color:#c8d8d4;color:var(--desk-ink)}
#scan-form select:hover,#scan-form input:hover,.resume input:hover{border-color:#729a95}
#scan-form input:focus-visible,#scan-form textarea:focus-visible,#scan-form select:focus-visible,.resume input:focus-visible,.brand-title:focus-visible,.access-guidance a:focus-visible,.resume button:focus-visible,.report-files button:focus-visible{outline:3px solid #63a9a0;outline-offset:3px}
.scan-input-row input[type="file"]::file-selector-button{background:#e7f0ed;color:#174f50}
#advanced-config[open]{background:#f4f8f6}
#scan-form .primary-action{background:#176267}
#scan-form .primary-action:hover{background:#104b4f}
.resume{background:#eaf1ee;border-color:var(--desk-line)}
.resume button,.report-files button,#new-scan,#view-toggle{border-color:#b8cdc7;color:#255b5b}
.resume button:hover,.report-files button:hover,#new-scan:hover,#view-toggle:hover{background:#eaf3f0}
.report-files button[data-report-format="summary.html"]{background:#176267;border-color:#176267;color:#fff}
.report-files button[data-report-format="summary.html"]:hover{background:#104b4f;border-color:#104b4f}
.exec-risk div,.exec-facts div{border-color:#e1eae7}
.exec-steps li[data-state="running"]{border-top-color:#176267;color:#176267}
.exec-steps li.clickable:hover,.exec-steps li.active{color:#176267}
#status{border-left-color:#176267;background:#eaf3f0}
body .enduser-report .recommendation{background:#edf5f1;border-left-color:#67968b}
body .enduser-report .coverage-note{background:#faf5e9;border-color:#e6dac0}
@keyframes stage-active{0%,100%{border-top-color:#9bbdb0}50%{border-top-color:#176267}}
@media(max-width:700px){#jump-results{color:#176267}}

/* AppBreach uses the supplied wordmark and its blue accent. */
:root{--desk-ink:#111d32;--desk-muted:#52617a;--desk-canvas:#f4f6fb;--desk-line:#dce3ef;--desk-accent:#315bf4}
.brand-title{display:inline-flex;align-items:center}
.brand-logo{display:block;width:185px;height:auto}
.scan-context{background:#152744;border-color:#152744}
.scan-intro .lead,.access-guidance,.context-steps{color:#dce6f8}
.context-steps li::before{border-color:#a7bdf0}.access-marker{color:#a7bdf0}
#scan-form .primary-action,.report-files button[data-report-format="summary.html"]{background:#315bf4;border-color:#315bf4}
#scan-form .primary-action:hover,.report-files button[data-report-format="summary.html"]:hover{background:#2445bd;border-color:#2445bd}
#scan-form input:focus-visible,#scan-form textarea:focus-visible,#scan-form select:focus-visible,.resume input:focus-visible,.brand-title:focus-visible,.access-guidance a:focus-visible,.resume button:focus-visible,.report-files button:focus-visible{outline-color:#315bf4}
.exec-steps li[data-state="running"],.exec-steps li.clickable:hover,.exec-steps li.active,#jump-results{color:#315bf4}
.exec-steps li[data-state="running"]{border-top-color:#315bf4}
#status{border-left-color:#315bf4;background:#eef2ff}
@keyframes stage-active{0%,100%{border-top-color:#a7bdf0}50%{border-top-color:#315bf4}}
@media(max-width:700px){.brand-logo{width:160px}#jump-results{color:#315bf4}}
