/* 会话存档后台 · 设计基调：白底、墨色文字、青绿一个强调色；用留白和细线分区，不用卡片堆叠。 */
:root {
  --bg: #ffffff;
  --side: #f5f6f4;
  --fill: #f3f4f2;
  --hover: #fafbfa;
  --ink: #15191a;
  --ink-2: #566062;
  --ink-3: #8b9395;
  --line: #e8eae7;
  --line-2: #d6d9d5;
  --brand: #0a6b52;
  --brand-deep: #075340;
  --brand-soft: #e6f1ed;
  --red: #c0341f;
  --red-soft: #fbebe8;
  --amber: #a4600b;
  --amber-soft: #faf0dc;
  --blue: #2558c4;
  --blue-soft: #e9effb;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --side-w: 240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { color: var(--brand); text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: #cfe6dd; }
svg { display: block; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
mark { background: #fff1b8; color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- 表单控件 ---------- */
.inp, select.inp, textarea.inp {
  height: 36px; padding: 0 12px; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.inp { height: auto; padding: 8px 12px; width: 100%; resize: vertical; line-height: 1.6; }
.inp::placeholder { color: var(--ink-3); }
.inp:hover { border-color: #bfc4bf; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
select.inp { padding-right: 28px; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b9395' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center; }
.range { display: flex; align-items: center; gap: 6px; }
.range i { width: 8px; height: 1px; background: var(--line-2); }
.range .inp { width: 140px; padding: 0 8px; }

.btn {
  height: 36px; padding: 0 16px; border-radius: 8px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-2); background: #fff; font-weight: 500;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--hover); border-color: #bfc4bf; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--fill); }
.btn.danger { color: var(--red); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.link { color: var(--brand); font-weight: 500; }
.link:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--red); }
.link.quiet { color: var(--ink-2); font-weight: 400; }

.seg { display: inline-flex; padding: 3px; background: var(--fill); border-radius: 9px; }
.seg button { height: 30px; padding: 0 14px; border-radius: 7px; color: var(--ink-2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(21,25,26,.06); }

.sw { width: 36px; height: 20px; border-radius: 99px; background: #cdd2ce; position: relative; flex: none; transition: background .18s; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw.on { background: var(--brand); }
.sw.on::after { transform: translateX(16px); }

.ck { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; margin: 0; vertical-align: middle; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 5fr) 7fr; }
.login-side { display: flex; flex-direction: column; padding: 40px 56px; }
.login-main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 320px; width: 100%; margin: 0 auto; }
.login-main h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.login-main p { margin-top: 8px; color: var(--ink-2); }
.qr { margin: 36px 0 20px; width: 220px; height: 220px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; display: block; position: relative; }
.qr svg { width: 100%; height: 100%; fill: var(--ink); }
.qr:hover { border-color: var(--brand); }
.qr .ok { position: absolute; inset: 0; border-radius: 16px; background: rgba(255,255,255,.94); display: grid; place-items: center; color: var(--brand); font-weight: 500; }
.login-foot { color: var(--ink-3); font-size: 12px; }
.login-hero { background: var(--brand); color: #fff; padding: 72px 72px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-hero h2 { font-size: clamp(40px, 4.8vw, 72px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin: auto 0; }
.login-hero ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 28px; }
.login-hero li b { display: block; font-size: 16px; font-weight: 500; }
.login-hero li span { display: block; margin-top: 6px; color: rgba(255,255,255,.72); font-size: 13px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.brand i { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); position: relative; flex: none; }
.brand i::before, .brand i::after { content: ""; position: absolute; left: 7px; height: 2px; border-radius: 2px; background: #fff; }
.brand i::before { top: 9px; width: 12px; }
.brand i::after { top: 15px; width: 7px; }

/* ---------- 框架 ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side);
  display: flex; flex-direction: column; z-index: 30;
}
.side-head { height: 72px; padding: 0 24px; display: flex; align-items: center; flex: none; }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 24px; scrollbar-width: thin; }
.nav-item {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; margin-top: 2px;
  display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink-2);
}
.nav-item svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-item .chev { margin-left: auto; width: 12px; height: 12px; transition: transform .18s; color: var(--ink-3); }
.nav-item.open .chev { transform: rotate(90deg); }
.nav-item:hover { color: var(--ink); background: rgba(21,25,26,.04); }
.nav-item.cur { color: var(--ink); font-weight: 500; }
.nav-item.on { background: #fff; color: var(--brand); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.nav-sub { padding-left: 28px; }
.nav-sub .nav-item { height: 36px; font-size: 13.5px; }
.side-foot { flex: none; padding: 14px 24px 18px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); }
.side-foot b { display: block; color: var(--ink-2); font-weight: 500; font-size: 13px; }

.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.top { height: 72px; padding: 0 48px; display: flex; align-items: center; gap: 16px; flex: none; }
.crumb { color: var(--ink-3); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.crumb b { color: var(--ink-2); font-weight: 400; }
.top-sp { flex: 1; }
.jump { position: relative; }
.jump .inp { width: 240px; background: var(--fill); border-color: transparent; padding-left: 34px; }
.jump .inp:focus { background: #fff; border-color: var(--brand); }
.jump > svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; stroke: var(--ink-3); fill: none; stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border-radius: 12px; padding: 6px; z-index: 40;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(21,25,26,.12); }
.pop button { width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; display: flex; justify-content: space-between; gap: 16px; }
.pop button:hover, .pop button.hi { background: var(--fill); }
.pop button span { color: var(--ink-3); font-size: 12px; }
.pop .none { padding: 10px 12px; color: var(--ink-3); }
.me { position: relative; }
.me > button { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border-radius: 99px; }
.me > button:hover { background: var(--fill); }
.ava { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.ava.g { background: var(--fill); color: var(--ink-2); }
.burger { display: none; width: 36px; height: 36px; border-radius: 8px; place-items: center; }
.burger svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; }

.page { flex: 1; padding: 8px 48px 72px; max-width: 1560px; width: 100%; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.head h1 { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.head .intro-btn { margin-bottom: 5px; color: var(--ink-3); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.head .intro-btn:hover { color: var(--brand); }
.head .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.intro { margin: -12px 0 28px; padding: 14px 18px; background: var(--fill); border-radius: 10px; color: var(--ink-2); max-width: 880px; }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { padding: 0 0 12px; color: var(--ink-2); position: relative; font-size: 15px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); font-weight: 600; }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; margin-bottom: 24px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 12px; color: var(--ink-3); }
.fld .inp { width: 180px; }
.fld .range .inp { width: 140px; }
.filters .go { display: flex; gap: 8px; }

.bar { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 8px; flex-wrap: wrap; }
.bar .count { color: var(--ink-3); font-size: 13px; }
.bar .count b { color: var(--ink); font-weight: 500; }
.bar .sp { flex: 1; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
.tbl th { text-align: left; font-weight: 400; font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 15px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl td .wrap { display: block; white-space: normal; min-width: 120px; max-width: 220px; }
.tbl tr:hover td { background: var(--hover); }
.tbl th:first-child, .tbl td:first-child { padding-left: 4px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 4px; }
.tbl .r { text-align: right; }
.tbl td.r { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 15px; }
.tbl .ops { display: flex; gap: 16px; white-space: nowrap; }
.tbl .clip { max-width: 360px; min-width: 180px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tbl .nowrap { white-space: nowrap; }
.tbl .sub { display: block; font-size: 12.5px; color: var(--ink-3); }
.who { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.who .ava { width: 28px; height: 28px; font-size: 12px; }
.empty { padding: 72px 0; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink-2); font-weight: 500; font-size: 15px; margin-bottom: 4px; }

.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.st.ok::before { background: var(--brand); }
.st.warn::before { background: #d48a12; }
.st.bad::before { background: var(--red); }
.st.info::before { background: var(--blue); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--fill); color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.chip.ok { background: var(--brand-soft); color: var(--brand-deep); }
.chip.bad { background: var(--red-soft); color: var(--red); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 20px; color: var(--ink-3); font-size: 13px; flex-wrap: wrap; }
.pager .inp { height: 32px; margin: 0 8px; font-size: 13px; }
.pager button { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; color: var(--ink-2); font-family: var(--num); }
.pager button:hover:not(:disabled) { background: var(--fill); }
.pager button.on { background: var(--ink); color: #fff; }

/* ---------- 指标与图表 ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.metric { padding: 22px 20px 20px 0; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--line); }
.metric span { color: var(--ink-2); font-size: 13px; }
.metric b { display: block; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 38px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; margin: 6px 0 4px; white-space: nowrap; }
.metric b small { font-size: 16px; font-weight: 400; margin-left: 2px; }
.delta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.delta em { font-style: normal; font-family: var(--num); margin-left: 4px; }
.delta .up { color: var(--brand); }
.delta .down { color: var(--red); }

.sec { margin-bottom: 40px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 16px; font-weight: 600; }
.sec-head .sp { flex: 1; }
.chart { position: relative; height: 260px; }
.chart svg text { font-family: var(--num); font-size: 11.5px; fill: var(--ink-3); }
.chart .tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .12s; z-index: 2; }
.chart .tip b { font-family: var(--num); font-size: 15px; font-weight: 500; margin-right: 6px; }
.chart .tip span { color: rgba(255,255,255,.7); }

/* ---------- 首页 ---------- */
.hello { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.hello h1 { font-size: 32px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.hello p { color: var(--ink-2); margin-top: 6px; }
.hello .ctl { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 44px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.quick button { padding: 18px 20px; text-align: left; display: flex; align-items: center; gap: 12px; }
.quick button + button { border-left: 1px solid var(--line); }
.quick button:hover { background: var(--hover); }
.quick button:hover b { color: var(--brand); }
.quick svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.quick b { font-weight: 500; display: block; }
.quick small { font-size: 12.5px; color: var(--ink-3); }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 56px; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rank li i { width: 22px; font-style: normal; font-family: var(--num); color: var(--ink-3); font-size: 15px; }
.rank li:nth-child(-n+3) i { color: var(--brand); font-weight: 600; }
.rank li span { flex: 1; min-width: 0; }
.rank li span small { color: var(--ink-3); margin-left: 8px; font-size: 12.5px; }
.rank li b { font-family: var(--num); font-size: 17px; font-weight: 500; }
.notice { list-style: none; margin: 0; padding: 0; }
.notice li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice li time { color: var(--ink-3); font-family: var(--num); white-space: nowrap; }
.notice li button { text-align: left; }
.notice li button:hover { color: var(--brand); }

/* ---------- 会话查看器 ---------- */
.viewer { display: grid; grid-template-columns: 260px 300px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; height: calc(100vh - 200px); min-height: 540px; }
.viewer.wide1 { grid-template-columns: 300px 340px minmax(0, 1fr); }
.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pane + .pane { border-left: 1px solid var(--line); }
.pane-head { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.pane-head h3 { font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; }
.pane-head h3 span { color: var(--ink-3); font-weight: 400; font-family: var(--num); }
.pane-head .inp { width: 100%; }
.pane-head .seg { align-self: flex-start; }
.pane-body { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.grp { padding: 14px 16px 6px; font-size: 12px; color: var(--ink-3); }
.row { width: 100%; padding: 10px 16px; display: flex; gap: 10px; align-items: center; text-align: left; }
.row:hover { background: var(--hover); }
.row.on { background: var(--fill); }
.row .t { flex: 1; min-width: 0; }
.row .t b { font-weight: 500; display: flex; gap: 6px; align-items: center; }
.row .t b em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--brand-deep); background: var(--brand-soft); padding: 0 5px; border-radius: 4px; }
.row .t span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row time { font-size: 12px; color: var(--ink-3); font-family: var(--num); align-self: flex-start; margin-top: 2px; white-space: nowrap; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex: none; flex-wrap: wrap; }
.chat-head h3 { font-size: 15px; font-weight: 600; }
.chat-head .sp { flex: 1; }
.chat-tools { padding: 12px 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); flex: none; }
.chat-tools .inp { height: 32px; font-size: 13px; }
.chat-tools .kw { flex: 1; min-width: 120px; }
.chat-tools select.inp { width: 118px; }
.chat-tools input[type=date] { width: 128px; padding: 0 6px; }
.chat { flex: 1; overflow-y: auto; padding: 8px 24px 28px; background: #fcfcfb; scrollbar-width: thin; }
.day { text-align: center; color: var(--ink-3); font-size: 12px; margin: 20px 0 14px; font-family: var(--num); }
.msg { display: flex; gap: 10px; margin-top: 14px; max-width: 78%; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg .ava { width: 34px; height: 34px; }
.msg .b { min-width: 0; }
.msg .meta { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.msg.me .meta { text-align: right; }
.msg .meta time { font-family: var(--num); margin-left: 6px; }
.bub { display: inline-block; padding: 9px 13px; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); word-break: break-word; text-align: left; }
.msg.me .bub { border-radius: 12px 4px 12px 12px; background: var(--brand-soft); box-shadow: none; }
.msg.me .b { text-align: right; }
.msg.hit .bub { box-shadow: 0 0 0 2px #e9c44a; }
.bub.card { padding: 12px 14px; min-width: 220px; max-width: 300px; }
.bub.card b { display: block; font-weight: 500; }
.bub.card span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.bub.card .ico { float: right; width: 36px; height: 36px; border-radius: 8px; background: var(--fill); display: grid; place-items: center; margin-left: 12px; font-size: 11px; color: var(--ink-2); font-weight: 600; }
.bub.pic { padding: 0; width: 180px; height: 120px; background: linear-gradient(135deg, #dfe7e3, #eef1ee); display: grid; place-items: center; color: var(--ink-3); font-size: 12.5px; }
.bub.red { background: #d9553a; color: #fff; box-shadow: none; min-width: 200px; }
.bub.red span { color: rgba(255,255,255,.8); }
.bub.voice { display: inline-flex; align-items: center; gap: 8px; min-width: 96px; }
.bub.voice i { width: 3px; height: 12px; border-radius: 2px; background: currentColor; opacity: .5; box-shadow: 5px 0 0 currentColor, 10px 0 0 currentColor; margin-right: 10px; }
.revoked { font-size: 12px; color: var(--amber); margin-top: 4px; }
.sys { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 14px; }
.hint { display: grid; place-items: center; height: 100%; color: var(--ink-3); text-align: center; padding: 24px; }

/* ---------- 设置类页面 ---------- */
.form { max-width: 640px; display: grid; gap: 22px; }
.form label { display: grid; gap: 8px; }
.form label > span { color: var(--ink-2); font-size: 13px; }
.form .inp { width: 100%; }
.form .with-btn { display: flex; gap: 8px; }
.form .with-btn .inp { flex: 1; }
.form .foot { display: flex; gap: 10px; margin-top: 6px; }
.rows { border-top: 1px solid var(--line); }
.rows > div, .rows > li { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows .t { flex: 1; min-width: 0; }
.rows .t b { font-weight: 500; font-size: 15px; }
.rows .t p { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.rows .x { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; max-width: 720px; }
.steps li { counter-increment: s; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--num); color: var(--brand); font-weight: 600; width: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { padding: 4px 12px; font-size: 13px; }
.chips .chip button { margin-left: 6px; color: var(--ink-3); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.card h3 { font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card dl { margin: 16px 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 13px; }
.card dt { color: var(--ink-3); }
.card dd { margin: 0; }
.card .foot { display: flex; gap: 16px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 24px; }
.pick label { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.pick label:hover { border-color: var(--line-2); }
.pick label.on { border-color: var(--brand); background: var(--brand-soft); }
.pick b { font-weight: 500; display: block; }
.pick span { font-size: 12.5px; color: var(--ink-3); }
.note { padding: 12px 16px; background: var(--amber-soft); color: #6f4307; border-radius: 10px; margin-bottom: 24px; font-size: 13px; max-width: 880px; }
.split { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 36px; }
.cats { display: flex; flex-direction: column; gap: 2px; }
.cats h4 { margin: 0 0 8px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.cats button { height: 36px; padding: 0 12px; border-radius: 8px; text-align: left; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.cats button:hover { background: var(--fill); }
.cats button.on { background: var(--fill); color: var(--ink); font-weight: 500; }
.cats button span { font-family: var(--num); color: var(--ink-3); font-weight: 400; }
.cats .link { margin-top: 10px; padding: 0 12px; font-size: 13px; text-align: left; }
.sel-bar { position: sticky; bottom: 0; margin-top: 20px; padding: 14px 0; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.sel-bar .sp { flex: 1; }
.tree-ind { display: inline-block; width: 22px; }

/* ---------- 浮层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(21,25,26,.32); z-index: 50; display: flex; animation: fade .16s ease-out; }
.modal { margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 64px); background: #fff; border-radius: 16px; display: flex; flex-direction: column; animation: rise .2s ease-out; }
.drawer { margin-left: auto; width: min(520px, 100vw); height: 100%; background: #fff; display: flex; flex-direction: column; animation: slide .22s ease-out; }
.ov-head { padding: 22px 28px 0; display: flex; align-items: center; gap: 12px; flex: none; }
.ov-head h2 { font-size: 18px; font-weight: 600; flex: 1; }
.ov-head button { width: 32px; height: 32px; border-radius: 8px; color: var(--ink-3); font-size: 20px; line-height: 1; }
.ov-head button:hover { background: var(--fill); color: var(--ink); }
.ov-body { padding: 20px 28px; overflow-y: auto; flex: 1; }
.ov-body .form { gap: 18px; }
.ov-foot { padding: 16px 28px 22px; display: flex; justify-content: flex-end; gap: 10px; flex: none; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 12px 16px; margin: 0 0 24px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; word-break: break-word; }
.quote { padding: 14px 16px; background: var(--fill); border-radius: 10px; margin-bottom: 24px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.opts button { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); }
.opts button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 60; animation: rise .2s ease-out; box-shadow: 0 8px 24px rgba(21,25,26,.2); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.toast { animation-name: riseC; }
@keyframes riseC { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* ---------- 窄屏 ---------- */
@media (max-width: 1180px) {
  .top, .page { padding-left: 28px; padding-right: 28px; }
  .cols { grid-template-columns: 1fr; gap: 40px; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .quick button:nth-child(4) { border-left: 0; }
  .quick button:nth-child(n+4) { border-top: 1px solid var(--line); }
  .viewer, .viewer.wide1 { grid-template-columns: 220px 250px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .22s; }
  .nav-open .side { transform: none; box-shadow: 0 0 40px rgba(21,25,26,.18); }
  .main { margin-left: 0; }
  .burger { display: grid; }
  .top, .page { padding-left: 16px; padding-right: 16px; }
  .top { height: 60px; }
  .jump, .me b { display: none; }
  .head h1, .hello h1 { font-size: 24px; }
  .login { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-side { padding: 28px 24px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick button { border-left: 0 !important; border-top: 1px solid var(--line); }
  .quick button:nth-child(-n+2) { border-top: 0; }
  .quick button:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .quick button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric, .metric + .metric { padding: 16px 12px 14px 0; border-left: 0; }
  .metric b { font-size: 30px; }
  .viewer, .viewer.wide1 { grid-template-columns: 1fr; height: auto; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  .pane-body, .chat { max-height: 420px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .fld, .fld .inp { width: 100%; }
  .fld .range .inp { flex: 1; }
  .msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
