/* 智维控制台 · 亮色，靛蓝为品牌色（与演示视频一致） */
:root {
  --bg: #EDF0F5; --surface: #FFFFFF; --surface-2: #F7F8FB; --side: #F5F7FA; --tile: #F8F9FC;
  --line: #DFE3EA; --line-2: #C8CFDA;
  --ink: #111A2B; --ink-2: #2B3546; --muted: #647084; --dim: #9AA3B2;
  --brand: #3346D3; --brand-hi: #5566F0; --brand-soft: #ECEEFE; --brand-ink: #1E2B9B;
  --red: #E0443A; --red-soft: #FDEDEB; --green: #14A06A; --green-soft: #E4F6EE;
  --amber: #D8860B; --amber-soft: #FDF3E2; --blue: #2F7FD8; --term: #0F1726; --term-ink: #D7DEEA;
  --sheet: #FBFAF6; --sheet-ink: #1C2534; --sheet-line: #D5D0C4;
  --f-sans: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --f-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Noto Sans SC", monospace;
  --side-w: 232px; --bar-h: 60px; --pad: 28px; --r: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--surface); color: var(--ink); font-family: var(--f-sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); }
.serif { font-family: var(--f-serif); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.brand { color: var(--brand); }
.red { color: var(--red); } .green { color: var(--green); } .amber { color: var(--amber); }
.b { font-weight: 700; }
[v-cloak] { display: none; }

/* ------------------------------------------------------------------ 外壳 */
.shell { display: flex; min-height: 100vh; }
.side { width: var(--side-w); flex: 0 0 var(--side-w); background: var(--side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 20px 22px 18px; }
.side .logo img { width: 34px; height: 34px; }
.side .logo b { font-family: var(--f-serif); font-weight: 900; font-size: 21px; letter-spacing: .02em; }
.side .logo span { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 8px; padding: 6px 12px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 9px; font-size: 16px;
  color: var(--ink-2); transition: background .15s; }
.nav a svg { width: 20px; height: 20px; flex: 0 0 20px; color: #7A8597; }
.nav a:hover { background: #EBEEF4; }
.nav a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.nav a.on svg { color: var(--brand); }
.nav .badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; font: 600 11px/18px var(--f-mono);
  color: #fff; background: var(--red); text-align: center; }
.nav .badge.amber { background: var(--amber); }
.side-foot { margin-top: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.gw-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px 9px 30px; position: relative; cursor: pointer; }
.gw-box::before { content: ""; position: absolute; left: 14px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.gw-box b { display: block; font-size: 13px; color: var(--ink-2); }
.gw-box span { font-size: 11px; color: var(--muted); }
.user { display: flex; align-items: center; gap: 10px; padding: 0 6px 6px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #DCE1FB; color: var(--brand-ink); font-weight: 700; font-size: 13px;
  display: grid; place-items: center; flex: 0 0 30px; }
.user b { display: block; font-size: 13px; color: var(--ink-2); }
.user span { font-size: 11px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--bar-h); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 var(--pad);
  position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); z-index: 20; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); min-width: 0; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--dim); }
.crumbs b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.topbar .grow { flex: 1; }
.search { width: 300px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #FAFBFC; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.search svg { width: 15px; color: var(--dim); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 13px; min-width: 0; }
.search kbd { font: 600 10px var(--f-mono); color: var(--dim); }
.iconbtn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; position: relative; color: var(--ink-2); }
.iconbtn:hover { background: #F0F2F6; }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn .dot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.env-badge { font-size: 12px; color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(216,134,11,.45); padding: 2px 9px; border-radius: 11px; white-space: nowrap; }
.inject-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(51,70,211,.35);
  color: var(--brand); background: var(--brand-soft); white-space: nowrap; }
.inject-btn:hover { border-color: var(--brand); }
.content { padding: 22px var(--pad) 40px; flex: 1; position: relative; }

/* ------------------------------------------------------------------ 通用 */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.page-head h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; letter-spacing: .01em; line-height: 1.2; }
.page-head .sub { font-size: 14px; color: var(--muted); }
.page-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 2px 0 rgba(17,26,43,.035); padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 17px; font-weight: 700; margin: 0; }
.card-h .right { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.row { display: flex; gap: 18px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); background: #F1F3F7; color: var(--muted); white-space: nowrap; line-height: 1; }
.tag.sm { height: 20px; font-size: 11px; padding: 0 6px; }
.tag.lg { height: 26px; font-size: 13px; padding: 0 10px; }
.tag.red { color: var(--red); background: var(--red-soft); border-color: rgba(224,68,58,.35); }
.tag.green { color: var(--green); background: var(--green-soft); border-color: rgba(20,160,106,.35); }
.tag.amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(216,134,11,.38); }
.tag.brand { color: var(--brand); background: var(--brand-soft); border-color: rgba(51,70,211,.32); }
.tag.gray { color: var(--muted); background: #F1F3F7; border-color: var(--line); }
.tag.ink { color: #fff; background: var(--ink); border-color: var(--ink); }
.tag.mono { font-family: var(--f-mono); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 9px; font-size: 14px; font-weight: 700;
  background: var(--brand); color: #fff; border: 1px solid var(--brand); transition: background .15s, transform .08s; white-space: nowrap; }
.btn:hover { background: #2636B8; }
.btn:active { transform: scale(.97); }
.btn.green { background: var(--green); border-color: var(--green); } .btn.green:hover { background: #0F8A5A; }
.btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); } .btn.ghost:hover { background: #F5F6F9; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.lg { height: 50px; font-size: 16px; padding: 0 28px; border-radius: 10px; }
.btn.sm { height: 30px; font-size: 13px; padding: 0 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { color: var(--brand); cursor: pointer; } .link:hover { text-decoration: underline; }
.sev { font-family: var(--f-mono); }
.empty { color: var(--dim); text-align: center; padding: 40px 0; font-size: 13px; }
.skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #EEF1F5 0%, #F6F8FA 50%, #EEF1F5 100%); background-size: 200% 100%; animation: sk 1.4s infinite; margin: 0 0 22px; }
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
.fade-in { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* 表格 */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 13px; font-weight: 400; color: var(--muted); background: var(--surface-2); padding: 10px 14px; white-space: nowrap; }
.tbl td { padding: 0 14px; height: 62px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tbl tr.clk { cursor: pointer; } .tbl tr.clk:hover td { background: #FAFBFD; }
.tbl tr.hl td { background: #F6F7FE; }
.tbl tr.child td { height: 46px; font-size: 13px; background: #FCFCFD; }
.tbl td.r, .tbl th.r { text-align: right; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.kpi { position: relative; height: 112px; padding: 16px 20px; }
.kpi .k { font-size: 14px; color: var(--muted); }
.kpi .v { font-size: 38px; font-weight: 700; line-height: 1.15; margin-top: 6px; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi .tr { position: absolute; right: 18px; top: 16px; }
.kpi svg.spark { position: absolute; right: 18px; bottom: 30px; width: 130px; height: 46px; }
.dots8 { position: absolute; right: 18px; top: 34px; display: grid; grid-template-columns: repeat(4, 30px); grid-auto-rows: 26px; align-items: center; justify-items: center; }
.dots8 i { width: 12px; height: 12px; border-radius: 50%; background: var(--green); display: block; position: relative; }
.dots8 i.run { background: var(--brand); box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px rgba(51,70,211,.45); }
.dots8 i.wait { background: var(--amber); }

/* 总览布局 */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(360px, 1fr); gap: 18px; }
.agents8 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.agent-mini { display: flex; gap: 10px; align-items: flex-start; }
.agent-mini .st { width: 11px; height: 11px; border-radius: 50%; margin-top: 5px; flex: 0 0 11px; background: #CBD1DB; }
.agent-mini .st.running { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 4px rgba(51,70,211,.3); }
.agent-mini .st.done { background: var(--green); }
.agent-mini .st.waiting { background: var(--amber); }
.agent-mini b { display: block; font-size: 15px; }
.agent-mini span { font-size: 12px; color: var(--muted); }
.agent-mini span.running { color: var(--brand); }
.bars { display: flex; align-items: flex-end; justify-content: space-around; height: 150px; padding: 0 6px; border-bottom: 1px solid var(--line); margin-top: 10px; }
.bars .day { display: flex; gap: 6px; align-items: flex-end; height: 100%; }
.bars .day i { width: 16px; border-radius: 3px 3px 0 0; display: block; background: #C9CFD9; transition: height .5s; }
.bars .day i.auto { background: var(--brand); }
.bars-lbl { display: flex; justify-content: space-around; font: 11px var(--f-mono); color: var(--dim); padding: 8px 6px 0; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #C9CFD9; vertical-align: 0; }
.legend i.brand { background: var(--brand); }

/* toast */
.toasts { position: fixed; right: 24px; top: 72px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(30,40,70,.16); border-radius: 12px; padding: 12px 18px 12px 38px; position: relative;
  min-width: 290px; cursor: pointer; animation: slidein .35s ease both; }
.toast::before { content: ""; position: absolute; left: 16px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.toast b { font-size: 15px; display: block; }
.toast span { font-size: 13px; color: var(--muted); }
@keyframes slidein { from { opacity: 0; transform: translateX(30px) } to { opacity: 1; transform: none } }

/* ------------------------------------------------------------------ 事件详情 */
.ev-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ev-head h1 { font-size: 26px; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; line-height: 1.25; }
.ev-head .meta { font-size: 14px; color: var(--muted); }
.ev-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.stepper { display: flex; align-items: center; padding: 16px 18px; margin-bottom: 18px; }
.stepper .st { display: flex; align-items: center; flex: 1; min-width: 0; }
.stepper .st:last-child { flex: 0 0 auto; }
.stepper .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); color: var(--muted); display: grid; place-items: center;
  font: 600 12px var(--f-mono); flex: 0 0 24px; position: relative; background: #fff; }
.stepper .lbl { margin: 0 10px 0 8px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.stepper .ln { flex: 1; height: 1.2px; background: var(--line-2); margin-right: 10px; min-width: 10px; }
.stepper .st.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.stepper .st.done .lbl { font-weight: 700; color: var(--ink); }
.stepper .st.done .ln { background: var(--green); height: 2px; }
.stepper .st.active .n { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.stepper .st.active .n::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--brand); animation: ring 1.4s infinite; }
@keyframes ring { from { opacity: 1; transform: scale(.85) } to { opacity: 0; transform: scale(1.35) } }
.stepper .st.active .lbl { color: var(--brand); font-weight: 700; }
.stepper .st.wait .n { background: var(--amber-soft); border: 2px solid var(--amber); color: transparent; }
.stepper .st.wait .n::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.2s infinite; }
.stepper .st.wait .lbl { color: var(--amber); font-weight: 700; }
.stepper .st.skip .n { border-style: dashed; color: var(--dim); }
.stepper .st.skip .lbl { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(154,163,178,.6); }
.stepper .st.err .n { background: var(--red); border-color: var(--red); color: #fff; }

.ev-grid { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 24px; align-items: start; }
.timeline { position: relative; }
.tl-item { display: grid; grid-template-columns: 74px 18px minmax(0,1fr); gap: 0 8px; padding: 0 0 22px; position: relative; }
.tl-item .tm { font: 12px var(--f-mono); color: var(--dim); padding-top: 4px; }
.tl-item .dotc { position: relative; display: flex; justify-content: center; }
.tl-item .dotc::before { content: ""; position: absolute; top: 12px; bottom: -26px; width: 1.5px; background: var(--line); }
.tl-item:last-child .dotc::before { display: none; }
.tl-item .dotc i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-top: 8px; position: relative; z-index: 1; }
.tl-item.last .dotc i { background: var(--brand); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--brand); }
.tl-item.warn .dotc i { background: var(--amber); } .tl-item.error .dotc i { background: var(--red); }
.tl-item .body { min-width: 0; }
.tl-item .t { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 700; line-height: 1.45; }
.tl-item .t .tag { margin-top: 1px; }
.tl-item .tool { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.tl-item .tool code { font: 12px var(--f-mono); color: var(--muted); }
.tl-item .tool .tag { margin-left: auto; font-weight: 400; }
.tl-scroll { max-height: 640px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }

/* 依赖比对 */
.repos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.repo { border: 1px solid var(--line); border-radius: 10px; background: var(--tile); padding: 14px 0 8px; position: relative; overflow: hidden; }
.repo .h { padding: 0 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.repo .h b { font: 600 15px var(--f-mono); display: block; }
.repo .h span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo .dep { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; height: 36px; font: 14px var(--f-mono); position: relative; }
.repo .dep .v { color: var(--dim); font-size: 13px; }
.repo .dep.focus { font-weight: 700; }
.repo .dep.hit { background: var(--red-soft); color: var(--red); }
.repo .dep.hit .v { color: var(--red); }
.repo .dep.ok .v::after { content: " ✓"; color: var(--green); }
.repo.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 36px; background: rgba(51,70,211,.08); border-bottom: 2px solid var(--brand);
  animation: scan 2.4s linear infinite; top: 70px; }
@keyframes scan { from { transform: translateY(0) } to { transform: translateY(330px) } }
.repo .verdict { margin: 8px 14px 4px; }
.prog { height: 6px; border-radius: 3px; background: #E9ECF2; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .4s; }

/* PR 卡 / Diff */
.pr-card { border: 1.5px solid rgba(51,70,211,.35); box-shadow: 0 10px 30px rgba(51,70,211,.08); }
.pr-no { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font: 700 16px var(--f-mono); }
.pr-no svg { width: 20px; height: 20px; }
.pr-title { font-size: 21px; font-weight: 700; margin: 10px 0 12px; }
.diff { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font: 14px/1.5 var(--f-mono); background: #FBFCFD; }
.diff .fh { padding: 10px 14px; font-weight: 600; color: var(--ink-2); background: #fff; }
.diff .ln { display: grid; grid-template-columns: 46px 20px minmax(0, 1fr); align-items: center; min-height: 34px; padding-right: 12px; }
.diff .ln .no { color: var(--dim); font-size: 12px; text-align: center; }
.diff .ln.add { background: #E5F5EC; color: #13734C; }
.diff .ln.del { background: #FCE9E7; color: #B5352C; }
.diff .ln .code { white-space: pre-wrap; word-break: break-all; }
.diff .note { padding: 9px 14px; font-size: 13px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.diff.big { font-size: 16px; }
.diff.big .ln { min-height: 42px; }

/* 排查回复（纸面） */
.sheet { background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 6px; padding: 22px 22px 18px; box-shadow: 0 6px 18px rgba(60,50,20,.08); color: var(--sheet-ink); }
.sheet h4 { font-family: var(--f-serif); font-size: 19px; margin: 0 0 12px; }
.sheet p { font-size: 14px; line-height: 1.85; margin: 0; }
.sheet .sign { margin-top: 18px; display: flex; justify-content: flex-end; }
.sheet .sign span { border: 1px dashed var(--sheet-line); padding: 6px 30px 6px 12px; font-size: 13px; color: var(--muted); border-radius: 4px; }

/* 时效对比 */
.cmp-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 0; }
.cmp-row .bar { height: 22px; border-radius: 4px; background: var(--red); color: #fff; font: 700 14px var(--f-mono); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; transition: width 1s; }
.cmp-row .bar.green { background: var(--green); width: 12px !important; padding: 0; }

/* 漏洞拆条 */
.vuln { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 4px 10px; margin-bottom: 12px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.vuln .id { font: 700 14px var(--f-mono); color: var(--brand); padding-top: 4px; }
.vuln .nm { font-size: 19px; font-weight: 700; }
.vuln .sb { grid-column: 2; font: 12px var(--f-mono); color: var(--muted); }
.vuln .tags { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.vuln.human { border: 1.5px dashed rgba(224,68,58,.55); background: #FFF8F7; }
.vuln.focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.route-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.route-row:last-child { border-bottom: 0; }

/* 改造前后链路 */
.modal-mask { position: fixed; inset: 0; background: rgba(237,240,245,.72); backdrop-filter: blur(3px); z-index: 80; display: grid; place-items: center; animation: fadein .2s; }
.modal { background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(30,40,70,.25); padding: 26px 30px; width: min(1500px, 94vw); max-height: 90vh; overflow: auto; position: relative; }
.modal .close { position: absolute; right: 18px; top: 16px; font-size: 22px; color: var(--muted); }
.chain { display: flex; gap: 12px; align-items: stretch; margin-top: 20px; }
.chain .node { flex: 1; border-radius: 10px; padding: 12px 16px; border: 1px solid rgba(20,160,106,.35); background: var(--green-soft); }
.chain .node b { display: block; font-size: 18px; margin: 10px 0 6px; }
.chain .node span { font-size: 12px; color: var(--muted); }
.chain .arrow { align-self: center; color: var(--dim); }
.chain-human { margin: 26px auto 6px; width: 340px; border: 1.5px solid var(--brand); background: var(--brand-soft); border-radius: 10px; padding: 14px 20px;
  display: flex; gap: 14px; align-items: center; }
.chain-human b { font-size: 22px; display: block; }

/* ------------------------------------------------------------------ 复现终端 */
.term { background: var(--term); border-radius: 12px; overflow: hidden; color: var(--term-ink); font: 15px/1.6 var(--f-mono); box-shadow: 0 10px 30px rgba(15,23,38,.18); }
.term .bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: #151F31; color: #8A97AE; font-size: 12px; }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term .bar span { margin: 0 auto; }
.term .body { padding: 18px 18px 22px; min-height: 560px; }
.term .l { min-height: 26px; white-space: pre-wrap; padding: 2px 8px; border-radius: 6px; display: flex; align-items: center; gap: 0; }
.term .l.red { background: rgba(224,68,58,.18); border: 1px solid rgba(255,138,128,.45); }
.term .l.green { background: rgba(20,160,106,.16); border: 1px solid rgba(91,227,166,.4); }
.term .l .chip { margin-left: auto; font-size: 11px; border: 1px solid currentColor; border-radius: 10px; padding: 0 8px; }
.term .p { color: #6B7790; } .term .kw { color: #8AB4FF; } .term .str { color: #F2C27B; } .term .cm { color: #6B7790; } .term .info { color: #9FB0FF; }
.term .fail { color: #FF8A80; } .term .pass { color: #5BE3A6; } .term .num { color: #F2C27B; }
.term .cursor { display: inline-block; width: 9px; height: 18px; background: #D7DEEA; animation: pulse 1s infinite; vertical-align: -3px; }
.rg { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; }
.rg .box { border-radius: 10px; padding: 16px 18px 22px; text-align: center; min-height: 300px; }
.rg .box .lb { font: 12px var(--f-mono); color: var(--muted); text-align: left; }
.rg .box.red { border: 1.5px solid rgba(224,68,58,.6); background: radial-gradient(circle at 50% 45%, #FDEDEB 0%, #fff 60%); }
.rg .box.green { border: 1.5px solid rgba(20,160,106,.55); background: radial-gradient(circle at 50% 45%, #E4F6EE 0%, #fff 60%); }
.rg .box.idle { border: 1.5px dashed var(--line-2); background: var(--tile); }
.rg .big { width: 112px; height: 112px; border-radius: 50%; margin: 34px auto 18px; display: grid; place-items: center; }
.rg .big svg { width: 54px; height: 54px; }
.rg .red .big { background: var(--red); box-shadow: 0 0 0 7px #fff, 0 0 0 9px rgba(224,68,58,.4); }
.rg .green .big { background: var(--green); box-shadow: 0 0 0 7px #fff, 0 0 0 9px rgba(20,160,106,.4); }
.rg .idle .big { background: #EEF1F5; }
.rg .word { font: 700 26px var(--f-mono); }
.rg .red .word { color: var(--red); } .rg .green .word { color: var(--green); }
.rg .arr { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); display: grid; place-items: center; margin: 0 auto; background: #fff; }

/* ------------------------------------------------------------------ PR 详情 */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 6px 0 20px; }
.tabs a { padding: 8px 0 10px; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; position: relative; }
.tabs a.on { color: var(--brand); }
.tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--brand); border-radius: 2px; }
.ev-table .er { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; min-height: 66px; border-bottom: 1px solid var(--line); font-size: 18px; }
.ev-table .er .k { font-size: 14px; color: var(--muted); }
.gatebar { display: flex; align-items: center; gap: 14px; background: var(--surface-2); margin: 20px -20px -20px; padding: 18px 20px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.gatebar .note { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.phone { width: 300px; height: 600px; border-radius: 40px; border: 9px solid #1A2232; background: #fff; position: relative; overflow: hidden; margin: 0 auto; box-shadow: 0 20px 50px rgba(17,26,43,.2); }
.phone .notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 100px; height: 24px; border-radius: 12px; background: #1A2232; }
.phone .time { position: absolute; top: 15px; left: 22px; font: 700 12px var(--f-mono); }
.phone .app-h { text-align: center; font-weight: 700; font-size: 15px; padding: 52px 0 12px; border-bottom: 1px solid var(--line); }
.phone .msg { text-align: left; margin: 16px 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 6px 16px rgba(30,40,70,.06); }
.phone .msg .h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.phone .msg .h img { width: 22px; }
.phone .msg .ti { font-weight: 700; font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.phone .msg ul { margin: 0 0 12px; padding: 0 0 0 14px; font-size: 12px; color: var(--ink-2); line-height: 2; }
.phone .msg .btn { width: 100%; height: 34px; font-size: 13px; }
.isolate { width: 64px; border-radius: 8px; background: repeating-linear-gradient(135deg, #F2F4F8 0 6px, #E6EAF0 6px 12px); display: flex; align-items: center; justify-content: center; }
.isolate div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 4px; text-align: center; font-size: 12px; font-weight: 700; width: 52px; line-height: 1.5; }
.checks .ck { display: flex; align-items: center; gap: 12px; font-size: 17px; padding: 10px 0; }
.checks .ck svg { width: 20px; height: 20px; flex: 0 0 20px; }
.checks .ck small { margin-left: auto; color: var(--muted); font-size: 12px; max-width: 45%; text-align: right; }
.stamp { display: inline-block; border: 3px solid var(--green); color: var(--green); font-weight: 900; font-size: 22px; padding: 6px 16px; border-radius: 6px; transform: rotate(-6deg);
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px rgba(20,160,106,.5); background: rgba(228,246,238,.6); }
.stamp.red { border-color: var(--red); color: var(--red); background: rgba(253,237,235,.6); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px rgba(224,68,58,.5); }
.reject-note { border: 1px solid rgba(224,68,58,.4); background: var(--red-soft); border-radius: 10px; padding: 14px 18px; font-size: 14px; line-height: 1.7; }
.commit { display: grid; grid-template-columns: 16px 80px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 14px 0; font-size: 15px; }
.commit i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: block; }
.commit i.t { background: var(--green); }
.commit code { font: 13px var(--f-mono); color: var(--brand); }
.commit small { font: 12px var(--f-mono); color: var(--dim); }

/* ------------------------------------------------------------------ 风险定级 */
.risk-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr) minmax(0, 0.92fr); gap: 20px; align-items: stretch; }
.case { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; cursor: pointer; transition: all .15s; }
.case:hover { border-color: var(--line-2); }
.case.on { background: var(--brand-soft); border-color: var(--brand); }
.case b { display: block; font-size: 15px; margin-bottom: 8px; }
.case.on b { color: var(--brand-ink); }
.case span { font-size: 13px; color: var(--muted); }
.switch { width: 52px; height: 28px; border-radius: 14px; background: #E4E7ED; position: relative; transition: background .2s; cursor: pointer; flex: 0 0 52px; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.15); transition: left .2s; }
.switch.on { background: var(--amber); } .switch.on::after { left: 27px; }
.factor { padding: 6px 0 14px; position: relative; }
.factor .fh { display: flex; align-items: baseline; justify-content: space-between; }
.factor .fh b { font-size: 18px; }
.factor .fh .val { font: 700 18px var(--f-mono); }
.factor .fs { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 6px 0 12px; }
.factor .fbar { height: 10px; border-radius: 5px; background: #EDF0F4; position: relative; }
.factor .fbar i { display: block; height: 100%; border-radius: 5px; background: var(--green); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.factor .fbar i.low { background: var(--red); }
.factor .fbar.hatch { background: repeating-linear-gradient(135deg, #FBE0DD 0 5px, #fff 5px 10px); }
.factor .fbar .th { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink-2); }
.factor .fbar .thl { position: absolute; top: 16px; font-size: 11px; color: var(--muted); transform: translateX(-50%); }
.formula { font-family: var(--f-serif); font-size: 38px; font-weight: 900; color: var(--brand-ink); letter-spacing: .04em; margin: 18px 0 6px; }
.forced { position: absolute; left: -16px; right: -16px; top: 110px; background: #fff; border: 2px solid var(--red); border-radius: 10px; padding: 16px 20px 16px 72px;
  box-shadow: 0 18px 40px rgba(224,68,58,.18); transform: rotate(-1.5deg); z-index: 3; animation: stampin .35s cubic-bezier(.2,1.6,.4,1) backwards; }
@keyframes stampin { from { transform: rotate(-1.5deg) scale(1.25); opacity: 0 } to { transform: rotate(-1.5deg) scale(1); opacity: 1 } }
.forced { transition: opacity .2s; cursor: help; }
.forced:hover { opacity: .1; }
.forced b { font-size: 24px; color: var(--red); display: block; }
.forced span { font-size: 14px; color: var(--ink-2); }
.forced svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; color: var(--red); }
.hc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hc div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; display: flex; gap: 8px; align-items: center; background: var(--surface-2); }
.hc svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 15px; }
.gauge-wrap { text-align: center; }
.lv-big { font-size: 34px; font-weight: 900; margin: 6px 0 8px; letter-spacing: .02em; }
.human-box { margin: 20px auto 0; border: 2px solid var(--red); background: var(--red-soft); border-radius: 10px; padding: 18px 20px 18px 74px; text-align: left; position: relative; max-width: 420px; }
.human-box svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; color: var(--red); }
.human-box b { font-size: 30px; color: var(--red); display: block; }

/* ------------------------------------------------------------------ 发布监控 */
.pipeline { display: flex; align-items: center; padding: 26px 34px; }
.pipeline .s { display: flex; align-items: center; flex: 1; }
.pipeline .s:last-child { flex: 0 0 auto; }
.pipeline .c { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: #fff; flex: 0 0 28px; }
.pipeline .c svg { width: 15px; height: 15px; }
.pipeline .s.done .c { background: var(--green); border-color: var(--green); color: #fff; }
.pipeline .s.running .c { border: 2px solid var(--brand); }
.pipeline .s.running .c::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1s infinite; }
.pipeline .s.failed .c { background: var(--red); border-color: var(--red); color: #fff; }
.pipeline .lbl { margin: 0 14px 0 10px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.pipeline .ln { flex: 1; height: 2px; background: var(--line-2); margin-right: 14px; }
.pipeline .s.done .ln { background: var(--green); }
.dep-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; }
.chart svg { width: 100%; display: block; }
.vchk { display: flex; align-items: center; gap: 12px; font-size: 17px; padding: 10px 0; }
.vchk svg { width: 20px; height: 20px; flex: 0 0 20px; }
.vchk small { display: block; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ 故障免疫 */
.pattern-banner { display: flex; align-items: center; gap: 24px; background: var(--brand-soft); border: 1.5px solid rgba(51,70,211,.4); border-radius: 12px; padding: 14px 24px; margin-bottom: 18px; }
.pattern-banner .pid { font: 700 13px var(--f-mono); color: var(--brand); }
.pattern-banner h2 { font-family: var(--f-serif); font-size: 27px; font-weight: 900; color: var(--brand-ink); margin: 4px 0 0; }
.pattern-banner .mid { flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; height: 112px; background: #fff; position: relative; transition: all .3s; }
.tile .k { font-size: 12px; color: var(--muted); }
.tile .n { font: 600 17px var(--f-mono); margin: 10px 0 8px; }
.tile .r { font-size: 12px; font-weight: 700; }
.tile.idle { background: var(--tile); color: var(--dim); }
.tile.idle .n { color: var(--muted); }
.tile.clean .r { color: var(--green); }
.tile.hit { border: 1.5px solid var(--red); background: var(--red-soft); box-shadow: 0 6px 18px rgba(224,68,58,.12); }
.tile.hit .r { color: var(--red); }
.tile.fixed { border: 1.5px solid var(--green); background: var(--green-soft); }
.tile.fixed .r { color: var(--green); }
.tile.pending { border: 1.5px solid var(--amber); background: var(--amber-soft); }
.tile.pending .r { color: var(--amber); }
.tile .spin { position: absolute; right: 14px; top: 14px; width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.code-card { background: var(--term); border-radius: 10px; padding: 20px 22px; font: 15px/2.2 var(--f-mono); color: var(--term-ink); min-height: 250px; }
.code-card .k { color: #6B7790; display: inline-block; width: 70px; }
.code-card .v1 { color: #F2C27B; } .code-card .v2 { color: #5BE3A6; }
.batch { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; cursor: pointer; }
.batch:hover { border-color: var(--line-2); }
.batch.human { border-color: rgba(224,68,58,.45); }
.batch b { display: block; font-size: 16px; margin: 8px 0; }
.gate-vis { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 16px; min-height: 200px; }
.gate-vis .pole { background: var(--brand); border-radius: 6px; opacity: .85; }
.gate-vis .area { background: repeating-linear-gradient(135deg, #F7F8FB 0 8px, #EEF1F6 8px 16px); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.gate-vis textarea { width: 100%; min-height: 70px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 13px var(--f-mono); resize: vertical; background: #fff; }
.gate-res { border-radius: 8px; padding: 10px 12px; font-size: 13px; animation: fadein .3s; }
.gate-res.block { background: var(--red-soft); border: 1px solid rgba(224,68,58,.45); color: var(--red); }
.gate-res.pass { background: var(--green-soft); border: 1px solid rgba(20,160,106,.4); color: var(--green); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: #fff; }
.seg a { padding: 7px 14px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg a.on { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------------ 审计台账 */
.audit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 20px; align-items: start; }
.audit-tbl td { height: 64px; font-size: 14px; }
.audit-tbl td.tool { font: 600 14px var(--f-mono); }
.audit-tbl td.par { font: 13px var(--f-mono); color: var(--ink-2); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-tbl td.rb { font: 13px var(--f-mono); color: var(--brand); }
.audit-tbl .principal, .audit-tbl .cred { font: 400 11px var(--f-mono); color: var(--ink-3, #8a8fa3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.audit-tbl tr.play td { background: #EEF0FE !important; }
.audit-tbl tr.dimmed td { opacity: .35; }
.stat4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat4 div { border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; background: var(--surface-2); }
.stat4 b { font-size: 34px; display: block; line-height: 1.1; }
.stat4 span { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ Agent 班组 / 知识库 */
.agent-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.agent-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.agent-card .ic svg { width: 22px; height: 22px; }
.agent-card h3 { font-size: 18px; margin: 12px 0 4px; }
.agent-card .goal { font-size: 13px; color: var(--brand); min-height: 38px; line-height: 1.5; }
.agent-card .tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.agent-card .tools span { font: 11px var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; color: var(--ink-2); }
.md { font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.md h1, .md h2 { font-size: 14px; margin: 10px 0 4px; }
.md p { margin: 0 0 6px; } .md ul { margin: 0 0 6px; padding-left: 18px; }
.kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kb-card h4 { margin: 8px 0 10px; font-size: 16px; }
.kb-card dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 10px; font-size: 13px; margin: 0; }
.kb-card dt { color: var(--muted); } .kb-card dd { margin: 0; color: var(--ink-2); }
.hit-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 220px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.score-bars { display: flex; gap: 4px; align-items: flex-end; height: 24px; }
.score-bars i { width: 16px; background: var(--brand); border-radius: 2px; opacity: .8; display: block; }
.textin { width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 14px; font-size: 14px; outline: none; }
.textin:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }

/* ------------------------------------------------------------------ 导入 */
.drop { border: 2px dashed var(--line-2); border-radius: 14px; padding: 36px 20px 28px; text-align: center; transition: all .2s; background: #FCFCFE; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop svg.up { width: 58px; height: 58px; color: var(--brand); }
.drop h3 { font-size: 18px; margin: 14px 0 8px; }
.upl { display: grid; grid-template-columns: 34px minmax(0, 1fr) 220px 150px; gap: 12px; align-items: center; max-width: 1000px; margin: 18px auto 0; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; padding: 10px 14px; text-align: left; }
.upl .pdf { width: 28px; height: 28px; border-radius: 5px; background: var(--red); color: #fff; font: 700 9px var(--f-mono); display: grid; place-items: center; }
.sample-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* 抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(17,26,43,.18); z-index: 70; animation: fadein .2s; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 460px; background: #fff; box-shadow: -20px 0 50px rgba(30,40,70,.18); z-index: 71; padding: 24px; overflow: auto; animation: slidein .25s; }
.drawer h2 { font-size: 20px; margin: 0 0 4px; }
.sc { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.sc b { display: block; font-size: 14px; } .sc span { font-size: 12px; color: var(--muted); }
.sc .btn { margin-left: auto; }
.steps-guide { counter-reset: s -1; font-size: 13px; line-height: 1.7; padding-left: 0; list-style: none; }
.steps-guide li { counter-increment: s; position: relative; padding: 6px 0 6px 30px; border-bottom: 1px dashed var(--line); }
.steps-guide li::before { content: counter(s, decimal); position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 700 11px/20px var(--f-mono); text-align: center; }
.dropdown { position: absolute; right: 0; top: 40px; width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(30,40,70,.18); padding: 10px; z-index: 40; }
.dropdown .it { padding: 10px; border-radius: 8px; font-size: 13px; cursor: pointer; } .dropdown .it:hover { background: var(--surface-2); }

@media (max-width: 1500px) {
  .ev-grid { grid-template-columns: 440px minmax(0, 1fr); }
  .risk-grid { grid-template-columns: 300px minmax(0, 1fr) minmax(0, .9fr); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .agent-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .ov-grid, .ev-grid, .dep-grid, .audit-grid, .risk-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-grid { grid-template-columns: 1fr 1fr; }
  .search { display: none; }
}
@media (max-width: 760px) {
  :root { --side-w: 64px; --pad: 16px; }
  .side .logo b, .side .logo span, .nav a span, .nav .badge, .side-foot { display: none; }
  .kpis, .repos, .kb-grid, .agent-cards { grid-template-columns: 1fr; }
}
