:root {
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #1b2b40;
  background: #f3f6fa;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #2ac3aa; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 31px 17px 25px; background: #10243d; color: #c4d3e3; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 34px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border-radius: 11px; background: #20bda7; color: #fff; font-size: 27px; font-weight: 800; line-height: 1; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: #93a8be; font-size: 10px; letter-spacing: .08em; }
.side-caption { padding: 9px 13px; color: #7f94aa; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border-radius: 9px; color: #b8c9d9; font-size: 13px; font-weight: 650; text-decoration: none; transition: background .15s, color .15s; }
.side-nav a:first-child, .side-nav a:hover { background: #1e3955; color: #fff; }
.side-nav a span { width: 17px; color: #39d2be; font-size: 17px; text-align: center; }
.side-foot { margin-top: auto; padding: 19px 13px 0; border-top: 1px solid #29415a; font-size: 12px; color: #d5e1ec; }
.side-foot small { display: block; margin: 6px 0 0 19px; color: #8299af; font-size: 11px; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #32d3b5; box-shadow: 0 0 0 3px #32d3b522; }
.main-content { width: min(1340px, 100%); min-width: 0; margin: 0 auto; padding: 29px clamp(24px, 3.4vw, 54px) 38px; }
.topline { display: flex; justify-content: space-between; gap: 20px; color: #8190a2; font-size: 12px; }
.topline span span { padding: 0 6px; color: #bdc6d0; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px 0 22px; }
.eyebrow { margin: 0 0 8px; color: #0a9c87; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: #132942; font-size: clamp(31px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.18; }
.hero-copy { max-width: 670px; margin-bottom: 0; color: #66798e; font-size: 14px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button-primary, .button-outline, .button-quiet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: 9px; padding: 10px 16px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.button-primary { border: 1px solid #08a68f; background: #0bad96; color: #fff; box-shadow: 0 5px 14px #0bad9625; }
.button-primary:hover:not(:disabled) { background: #078c7a; }
.button-outline { border: 1px solid #d3dfeb; background: #fff; color: #1b405f; }
.button-outline:hover, .button-quiet:hover { background: #edf5f8; }
.button-quiet { border: 1px solid transparent; background: transparent; color: #536b83; }
.notice { min-height: 37px; display: flex; align-items: center; margin: 0 0 18px; padding: 8px 13px; border: 1px solid #d8e8ed; border-radius: 8px; background: #eff8f7; color: #28746c; font-size: 12px; }
.notice.error { border-color: #f3d6d5; background: #fff3f1; color: #a13e40; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric { min-height: 139px; padding: 21px 23px 18px; border: 1px solid #e0e7ef; border-radius: 13px; background: #fff; box-shadow: 0 3px 18px #183b5d08; }
.metric span, .metric strong, .metric small { display: block; }
.metric span { color: #60758b; font-size: 13px; font-weight: 650; }
.metric strong { margin: 9px 0 5px; color: #153b56; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.metric:nth-child(2) strong { color: #c96932; }
.metric:nth-child(3) strong { color: #c54354; }
.metric small { color: #9aabba; font-size: 11px; line-height: 1.5; }
.coverage { display: flex; align-items: center; flex-wrap: wrap; gap: 22px 34px; margin-top: 16px; padding: 18px 23px; border: 1px solid #dce7ef; border-radius: 12px; background: #eaf2f8; }
.coverage > div { display: flex; align-items: center; gap: 11px; min-width: 235px; color: #36536c; font-size: 13px; }
.coverage-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 9px; background: #d5e8ef; color: #0e8f82; font-size: 18px; }
.coverage strong { color: #123a54; font-size: 19px; }
.coverage small { display: block; margin-top: 2px; color: #73899c; font-size: 11px; }
.coverage p { margin: 0 0 0 auto; color: #71879b; font-size: 11px; }
.section { scroll-margin-top: 24px; margin-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-heading h2 { margin: 0 0 5px; color: #1c334d; font-size: 24px; letter-spacing: -.03em; }
.section-heading p:not(.eyebrow) { margin: 0; color: #8193a4; font-size: 12px; line-height: 1.5; }
.surface { overflow: hidden; border: 1px solid #dfe7ef; border-radius: 13px; background: #fff; box-shadow: 0 3px 18px #183b5d08; }
.task-form { display: grid; grid-template-columns: 1.3fr 1fr; gap: 19px; padding: 25px; border-bottom: 1px solid #e5ebf0; background: #fbfdff; }
.task-form[hidden] { display: none; }
.form-heading { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.form-heading strong { font-size: 16px; color: #1b344d; }
.form-heading span { color: #758da1; font-size: 12px; }
.task-form label { display: block; color: #496077; font-size: 12px; font-weight: 700; }
.task-form label.wide { grid-column: 1 / -1; }
.task-form input:not([type=checkbox]), .task-form select, .finding-toolbar input, .finding-toolbar select { width: 100%; min-height: 42px; margin-top: 7px; padding: 9px 12px; border: 1px solid #ccd9e5; border-radius: 8px; background: #fff; color: #1d334a; font-size: 13px; }
.task-form input::placeholder, .finding-toolbar input::placeholder { color: #9cadae; }
.task-form label small { display: block; margin-top: 7px; color: #8094a6; font-size: 11px; font-weight: 400; }
.task-form .check { display: flex; align-items: center; gap: 9px; align-self: center; font-weight: 600; }
.task-form .check input { accent-color: #0aab96; width: 17px; height: 17px; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.form-actions p { margin: 0 0 0 8px; color: #667d91; font-size: 12px; }
.form-actions p.error { color: #ae3f4a; }
.task-list { padding: 0 23px; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, auto) auto; align-items: center; gap: 15px; min-height: 83px; padding: 15px 0; border-bottom: 1px solid #e9eef3; }
.task:last-child { border-bottom: 0; }
.task strong { display: block; margin-bottom: 5px; color: #1d354d; font-size: 14px; }
.task .task-meta, .task .task-detail { display: block; color: #8496a7; font-size: 11px; line-height: 1.5; }
.task .task-target { display: block; margin: 2px 0; overflow-wrap: anywhere; color: #5d768b; font-size: 11px; line-height: 1.5; }
.task-state { display: flex; align-items: center; gap: 6px; color: #597084; font-size: 11px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #97a8b5; }
.dot.success { background: #0cad8f; }.dot.running { background: #e5a53a; }.dot.failed { background: #d95159; }
.task-actions { display: flex; justify-content: flex-end; gap: 7px; }
.task-actions button { min-height: 34px; border-radius: 7px; padding: 7px 10px; font-size: 11px; font-weight: 750; }
.toggle-task { border: 1px solid #d7e2eb; background: #fff; color: #526d84; }
.run-task { border: 1px solid #0bad96; background: #0bad96; color: #fff; }
.export-actions { display: flex; gap: 8px; }
.export-actions a { display: inline-flex; align-items: center; min-height: 35px; padding: 7px 11px; border: 1px solid #d4e0eb; border-radius: 7px; background: #fff; color: #3c617d; font-size: 11px; font-weight: 700; text-decoration: none; }
.export-actions a:hover { background: #edf5f8; }
.finding-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) 150px 150px auto; align-items: center; gap: 10px; padding: 13px 17px; border-bottom: 1px solid #e8edf2; }
.finding-toolbar input, .finding-toolbar select { margin: 0; min-height: 36px; }
.result-count { color: #8b9ca9; font-size: 11px; text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 17px; background: #f8fafc; color: #788b9c; font-size: 11px; font-weight: 800; text-align: left; white-space: nowrap; }
td { padding: 17px; border-top: 1px solid #edf0f4; color: #324c64; font-size: 12px; vertical-align: top; }
td:first-child { min-width: 160px; } td:nth-child(2) { min-width: 150px; max-width: 320px; } td:nth-child(3) { min-width: 165px; max-width: 270px; }
.finding-type { display: block; margin-top: 6px; color: #263c53; font-size: 12px; font-weight: 700; }
.severity { display: inline-flex; align-items: center; border-radius: 5px; padding: 4px 7px; font-size: 10px; font-weight: 800; }
.severity.critical { background: #ffeaec; color: #b53e4c; }.severity.high { background: #fff1dd; color: #ad6b20; }.severity.medium { background: #e8f3fc; color: #3777a5; }
.source-name { display: block; overflow-wrap: anywhere; color: #294c69; font-weight: 650; line-height: 1.45; }
.subline { display: block; margin-top: 4px; color: #97a6b4; font-size: 11px; line-height: 1.45; }
.secret-fragment { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: #0b8f7d; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 11px; line-height: 1.5; }
.finding-status { max-width: 130px; min-height: 34px; padding: 6px 9px; border: 1px solid #ccd9e5; border-radius: 7px; background: #fff; color: #2d4961; font-size: 11px; }
.empty { margin: 0; padding: 40px 20px; color: #91a2b0; font-size: 12px; text-align: center; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.list-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid #e8edf2; }
.list-heading h3 { margin: 0; color: #2a425b; font-size: 14px; }.list-heading span { color: #96a5b3; font-size: 11px; }
.compact-list { padding: 0 20px; }
.compact-list article { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #ecf0f4; }
.compact-list article:last-child { border-bottom: 0; }
.compact-list strong { display: block; color: #2d4760; font-size: 12px; }
.compact-list span, .compact-list time { display: block; margin-top: 4px; color: #8a9baa; font-size: 11px; line-height: 1.4; }
.compact-list time { flex: 0 0 auto; margin-top: 0; white-space: nowrap; }
.compact-list .failed { color: #c54354; }
footer { padding-top: 33px; color: #97a8b7; font-size: 11px; text-align: center; }
@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0 25px; padding: 15px 25px; }
  .brand { padding: 0; }.side-caption, .side-foot { display: none; }
  .side-nav { display: flex; flex: 1; justify-content: flex-end; gap: 1px; }
  .side-nav a { min-height: 35px; padding: 0 8px; font-size: 11px; }
  .side-nav a span { display: none; }
}
@media (max-width: 760px) {
  .sidebar { display: block; padding: 14px 18px 11px; }
  .brand { padding-bottom: 10px; }
  .side-nav { display: flex; overflow-x: auto; justify-content: flex-start; margin: 0 -4px; padding-bottom: 2px; scrollbar-width: none; }
  .side-nav a { flex: 0 0 auto; }
  .main-content { padding: 19px 18px 35px; }
  .topline-time { display: none; }
  .hero { align-items: start; flex-direction: column; gap: 16px; padding: 27px 0 19px; }
  .hero-actions, .hero .button-primary { width: 100%; }
  .hero-actions .button-outline { flex: 1; }
  .hero-actions .button-primary { flex: 2; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { min-height: 120px; padding: 16px; }.metric strong { font-size: 29px; }
  .coverage { gap: 18px; padding: 17px; }.coverage p { margin-left: 0; }
  .section { margin-top: 29px; }.section-heading { align-items: start; }
  .task { grid-template-columns: 1fr auto; }.task-state { grid-column: 1; }.task-actions { grid-column: 2; grid-row: 1 / span 2; }
  .activity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .section-heading { flex-wrap: wrap; }
  .section-heading .button-outline { width: 100%; }
  .task-form { grid-template-columns: 1fr; padding: 18px; }
  .task-form label.wide, .form-heading, .form-actions { grid-column: 1; }
  .task-list { padding: 0 17px; }
  .task { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 17px 0; }
  .task > div:first-child { width: 100%; }
  .task-state { flex: 1; min-width: 140px; }.task-actions { flex: 0 0 auto; }
  .finding-toolbar { grid-template-columns: 1fr 1fr; padding: 12px; }
  .search-field { grid-column: 1 / -1; }.result-count { grid-column: 1 / -1; text-align: left; }
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { padding: 15px 17px; border-top: 1px solid #e8edf2; }
  tbody tr:first-child { border-top: 0; }
  td { min-width: 0 !important; max-width: none !important; padding: 5px 0; border: 0; }
  td::before { content: attr(data-label); display: inline-block; min-width: 69px; margin-right: 8px; color: #8d9fae; font-size: 11px; font-weight: 600; vertical-align: top; }
  td:first-child::before { display: none; }
  td:first-child { padding-bottom: 10px; }
  td:first-child .finding-type { display: inline; margin-left: 8px; }
  td .source-name, td .subline { display: inline; }
  td .subline::before { content: " · "; }
  td .secret-fragment { display: inline; }
  td[data-label="时间"] { display: grid; grid-template-columns: 69px minmax(0, 1fr); column-gap: 8px; }
  td[data-label="时间"]::before { grid-row: 1 / span 2; margin-right: 0; }
  td[data-label="时间"] .time-main, td[data-label="时间"] .time-sub { display: block; grid-column: 2; margin: 0; }
  td[data-label="时间"] .time-sub::before { content: none; }
  td[colspan] { text-align: center; }
  td[colspan]::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .side-nav a { transition: none; } }
:root .auth-panel { padding: 24px; margin-bottom: 20px; }
:root .auth-panel form { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
:root .auth-panel label { flex: 1; min-width: 200px; }
[hidden] { display: none !important; }
