/* ------------------------------------------------------------------
   蓝屏档案 · 后台样式
   
   基调：深石墨底 + 一条琥珀色主色。教室里出问题的是硬件和系统，
   后台不该再用一堆彩色去抢注意力 —— 颜色只留给「需要你处理的东西」。
   ------------------------------------------------------------------ */

:root {
  --bg: #0a0c0f;
  --bg-soft: #0e1116;
  --panel: #12161b;
  --panel-2: #171c23;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf3;
  --text-dim: #aab3c0;
  --muted: #7d8794;
  --accent: #f2a13c;
  --accent-soft: rgba(242, 161, 60, 0.12);
  --danger: #f2555a;
  --danger-soft: rgba(242, 85, 90, 0.12);
  --warn: #f2a13c;
  --warn-soft: rgba(242, 161, 60, 0.12);
  --ok: #35c07a;
  --ok-soft: rgba(53, 192, 122, 0.12);
  --info: #5aa9f0;
  --info-soft: rgba(90, 169, 240, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(242, 161, 60, 0.09), transparent 62%),
    radial-gradient(720px 420px at 96% 108%, rgba(90, 169, 240, 0.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

::selection {
  background: rgba(242, 161, 60, 0.28);
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
  background-clip: padding-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------------------------------------------------------------- */
/* 启动                                                              */
/* ---------------------------------------------------------------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  color: var(--muted);
}

.boot-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid rgba(242, 161, 60, 0.5);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 26px rgba(242, 161, 60, 0.25);
  }
}

/* ---------------------------------------------------------------- */
/* 登录                                                              */
/* ---------------------------------------------------------------- */

.auth {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  background: var(--bg);
}

.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 46px 54px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.auth-art::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(242, 161, 60, 0.14);
  box-shadow: 0 0 0 60px rgba(242, 161, 60, 0.03);
}

.auth-brand,
.rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-text span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.auth-quote {
  margin: auto 0 0;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.auth-quote em {
  font-style: normal;
  color: var(--accent);
}

.auth-points {
  margin: 30px 0 auto;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  max-width: 420px;
}

.auth-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.auth-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

.auth-foot {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%);
}

.auth-card {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.auth-hint {
  margin: -8px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.auth-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 12.5px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(242, 161, 60, 0.65);
  background: rgba(242, 161, 60, 0.04);
  box-shadow: 0 0 0 3px rgba(242, 161, 60, 0.1);
}

textarea {
  resize: vertical;
  min-height: 88px;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

/* ---------------------------------------------------------------- */
/* 按钮                                                              */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.06s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1b1206;
  font-weight: 600;
}

.btn-primary:hover {
  background: #ffb457;
  border-color: #ffb457;
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  color: var(--danger);
  border-color: rgba(242, 85, 90, 0.35);
  background: var(--danger-soft);
}

.btn-danger:hover {
  background: rgba(242, 85, 90, 0.2);
}

.btn-block {
  width: 100%;
  padding: 11px;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.link-btn {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  padding: 4px;
}

.link-btn:hover {
  color: var(--accent);
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

/* ---------------------------------------------------------------- */
/* 骨架                                                              */
/* ---------------------------------------------------------------- */

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  height: 100vh;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
}

.rail-brand {
  padding: 2px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 13.5px;
  transition: background 0.15s, color 0.15s;
}

.rail-nav a svg {
  width: 17px;
  height: 17px;
  opacity: 0.85;
}

.rail-nav a:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.rail-nav a.active {
  background: rgba(242, 161, 60, 0.1);
  color: var(--text);
}

.rail-nav a.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 0 6px;
  height: 18px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.topbar {
  flex: none;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.crumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.crumb strong {
  color: var(--text);
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.who {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 30px 32px 60px;
}

@media (min-width: 1480px) {
  .view {
    padding: 34px 46px 70px;
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- */
/* 卡片与统计                                                        */
/* ---------------------------------------------------------------- */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.card-head .sub {
  color: var(--muted);
  font-size: 12px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi {
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent);
}

.kpi .label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.kpi .value {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi .hint {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.kpi.accent .value {
  color: var(--accent);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

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

/* 柱状图 */
.chart {
  width: 100%;
  height: 190px;
  display: block;
  overflow: visible;
}

.chart .grid-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.chart .bar {
  fill: url(#barGrad);
  transition: opacity 0.15s;
}

.chart .bar:hover {
  opacity: 0.75;
}

.chart .bar.zero {
  fill: rgba(255, 255, 255, 0.05);
}

.chart .tick {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.chart-empty {
  display: grid;
  place-items: center;
  height: 190px;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}

.dist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
}

.dist-row .top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.dist-row .code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.dist-row .name {
  color: var(--muted);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dist-row .num {
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: right;
  color: var(--text-dim);
}

.bar-track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
}

/* ---------------------------------------------------------------- */
/* 表格                                                              */
/* ---------------------------------------------------------------- */

.table-wrap {
  overflow: auto;
  margin: 0 -20px -18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 20px;
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

td.mono,
.mono {
  font-family: var(--mono);
  font-size: 12px;
}

td .sub {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 1px;
}

.cell-title {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 状态点 */
.sev {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.sev i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.sev.critical i {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(242, 85, 90, 0.16);
}

.sev.high i {
  background: #ef8a4d;
  box-shadow: 0 0 0 3px rgba(239, 138, 77, 0.16);
}

.sev.medium i {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 161, 60, 0.16);
}

.sev.low i,
.sev.info i {
  background: var(--info);
  box-shadow: 0 0 0 3px rgba(90, 169, 240, 0.16);
}

.sev.unknown i {
  background: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  white-space: nowrap;
}

.chip.code {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.chip.critical {
  color: var(--danger);
  border-color: rgba(242, 85, 90, 0.35);
  background: var(--danger-soft);
}

.chip.high {
  color: #ef8a4d;
  border-color: rgba(239, 138, 77, 0.35);
  background: rgba(239, 138, 77, 0.1);
}

.chip.medium {
  color: var(--accent);
  border-color: rgba(242, 161, 60, 0.35);
  background: var(--warn-soft);
}

.chip.new {
  color: var(--danger);
  border-color: rgba(242, 85, 90, 0.3);
  background: var(--danger-soft);
}

.chip.investigating {
  color: var(--accent);
  border-color: rgba(242, 161, 60, 0.3);
  background: var(--warn-soft);
}

.chip.fixed {
  color: var(--ok);
  border-color: rgba(53, 192, 122, 0.3);
  background: var(--ok-soft);
}

.chip.ignored,
.chip.muted {
  color: var(--muted);
}

/* ---------------------------------------------------------------- */
/* 工具栏 / 过滤                                                     */
/* ---------------------------------------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
}

.search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.search input {
  padding-left: 34px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.seg button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12.5px;
}

.seg button.on {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.toolbar select {
  width: auto;
  min-width: 130px;
}

/* ---------------------------------------------------------------- */
/* 详情                                                              */
/* ---------------------------------------------------------------- */

.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-title h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.detail-meta b {
  color: var(--text-dim);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 12px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.95fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 1120px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.analysis-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
    margin: 2px 0 4px;
}

.analysis-code {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

.analysis-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .analysis-body {
    grid-template-columns: 1fr;
  }
}

.list-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--mono);
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 13px;
}

.bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--muted);
}

.bullets.actions li::before {
  background: var(--accent);
}

.findings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finding {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.finding:first-child {
  border-top: 0;
  padding-top: 0;
}

.finding .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--info);
}

.finding.warn .dot {
  background: var(--accent);
}

.finding.critical .dot {
  background: var(--danger);
}

.finding strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.finding p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 修复环节时间线 */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step .mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

.step.ok .mark {
  color: var(--ok);
  border-color: rgba(53, 192, 122, 0.4);
  background: var(--ok-soft);
}

.step.fail .mark {
  color: var(--danger);
  border-color: rgba(242, 85, 90, 0.4);
  background: var(--danger-soft);
}

.step.skip .mark {
  color: var(--accent);
  border-color: rgba(242, 161, 60, 0.4);
  background: var(--warn-soft);
}

.step .name {
  font-size: 13px;
}

.step .name span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 8px;
  font-family: var(--mono);
}

.step .sum {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  word-break: break-word;
}

.step .time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* 系统信息 */
.kv {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 13px;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  color: var(--text-dim);
  word-break: break-word;
}

/* 文件 */
.files {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
}

.file-row:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.file-row svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex: none;
}

.file-row .size {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

/* 状态编辑 */
.status-card .row {
  display: flex;
  gap: 8px;
}

.status-card .saved {
  color: var(--ok);
  font-size: 12px;
  margin-left: 8px;
}

/* 日志查看 */
.log-box {
  max-height: 520px;
  overflow: auto;
  margin: 0 -20px -18px;
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}

.log-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 0 20px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #9aa4b2;
}

.log-line .no {
  color: #4c545f;
  text-align: right;
  user-select: none;
}

.log-line.err {
  background: rgba(242, 85, 90, 0.07);
  color: #ffb1b4;
}

.log-line.warn {
  background: rgba(242, 161, 60, 0.06);
  color: #ffd39a;
}

/* 提示 / 空状态 */
.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.empty strong {
  display: block;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 4px;
}

.note {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-size: 12.5px;
}

.note.warn {
  border-color: rgba(242, 161, 60, 0.28);
  background: var(--warn-soft);
  color: #ffd6a0;
}

.note.danger {
  border-color: rgba(242, 85, 90, 0.3);
  background: var(--danger-soft);
  color: #ffc0c2;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #191e25;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  max-width: 70vw;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.err {
  border-color: rgba(242, 85, 90, 0.45);
  color: #ffc0c2;
}

/* 响应式：窄屏把左侧栏收成顶部条 */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .rail {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .rail-brand {
    padding: 0 12px 0 0;
    border-bottom: 0;
  }
  .brand-text span {
    display: none;
  }
  .rail-nav {
    flex-direction: row;
    gap: 4px;
  }
  .rail-nav a.active::before {
    display: none;
  }
  .rail-nav a {
    padding: 7px 10px;
  }
  .rail-foot {
    display: none;
  }
  .view {
    padding: 20px 16px 50px;
  }
  .topbar {
    padding: 0 16px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
}
