:root {
  --bg: #0a0c0c;
  --bg2: #111514;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef1ee;
  --muted: #8b938f;
  --dim: #5d6561;
  --accent: #d6f36a;
  --accent-ink: #1b2006;
  --good: #63e3b0;
  --warn: #ffb547;
  --risk: #ff5d5d;
  --blue: #7cc4ff;
  --radius: 22px;
  --font: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% 40%, rgba(214, 243, 106, 0.05), transparent 60%),
    radial-gradient(800px 500px at 85% 0%, rgba(124, 196, 255, 0.05), transparent 60%),
    var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }

/* ---------- 通用组件 ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line);
  transition: .2s; white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,0.1); border-color: var(--line-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--risk); }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line);
  transition: .2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.12); }
.icon-btn svg, .btn svg { width: 18px; height: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.pill.good { color: var(--good); border-color: rgba(99,227,176,.3); background: rgba(99,227,176,.08); }
.pill.warn { color: var(--warn); border-color: rgba(255,181,71,.3); background: rgba(255,181,71,.08); }
.pill.risk { color: var(--risk); border-color: rgba(255,93,93,.3); background: rgba(255,93,93,.08); }
.pill.accent { color: var(--accent); border-color: rgba(214,243,106,.3); background: rgba(214,243,106,.08); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 14px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--line); outline: none; transition: .2s;
}
.input:focus { border-color: rgba(214,243,106,.5); background: rgba(0,0,0,.35); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.6; }
select.input option { background: #161a19; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.empty { padding: 28px 16px; text-align: center; color: var(--dim); font-size: 13px; line-height: 1.7; }

/* ---------- 登录 ---------- */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  padding: 40px 6vw; gap: 4vw;
}
.auth-hero h1 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.auth-hero h1 em { font-style: normal; color: var(--accent); }
.auth-hero p { color: var(--muted); margin-top: 18px; max-width: 460px; line-height: 1.8; font-size: 15px; }
.auth-figure { height: 58vh; max-height: 560px; margin-top: 30px; opacity: .9; }
.auth-card { padding: 34px; max-width: 420px; width: 100%; justify-self: center; display: flex; flex-direction: column; gap: 16px; }
.auth-card h2 { font-size: 22px; font-weight: 600; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--line); gap: 2px; }
.tabs button { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: 13px; transition: .2s; }
.tabs button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.err { color: var(--risk); font-size: 13px; min-height: 18px; }

/* ---------- 主界面 ---------- */
.app { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 18px 26px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(10,12,12,.92), rgba(10,12,12,.6));
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.brand small { display: block; font-weight: 400; font-size: 11px; color: var(--dim); }
.members { display: flex; gap: 8px; margin-left: 18px; overflow-x: auto; scrollbar-width: none; }
.member-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); white-space: nowrap; transition: .2s; color: var(--muted);
}
.member-chip .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.08); color: var(--text); position: relative; }
.member-chip .av i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--bg); }
.member-chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.member-chip.on .av { background: rgba(0,0,0,.15); color: var(--accent-ink); }
.topbar .spacer { flex: 1; }

.main {
  display: grid; grid-template-columns: 320px minmax(420px, 1fr) 390px; gap: 18px;
  padding: 0 26px 26px; align-items: start;
}
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card { padding: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.card-h h3 { font-size: 14px; font-weight: 600; }

/* 成员卡片 */
.profile { display: flex; flex-direction: column; gap: 14px; }
.profile-top { display: flex; gap: 14px; align-items: center; }
.big-av { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 22px; font-weight: 600; background: linear-gradient(135deg, rgba(214,243,106,.25), rgba(124,196,255,.15)); border: 1px solid var(--line-2); }
.profile-name { font-size: 20px; font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv div { padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line); }
.kv b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; }
.kv span { font-size: 11px; color: var(--dim); }
.headline { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* 报告列表 */
.list { display: flex; flex-direction: column; gap: 8px; }
.report {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 16px; background: rgba(0,0,0,.18); border: 1px solid transparent; transition: .2s; cursor: pointer;
}
.report:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.report.on { border-color: rgba(214,243,106,.45); }
.report .thumb { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--muted); }
.report .thumb svg { width: 20px; height: 20px; }
.report .t { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report .s { font-size: 11px; color: var(--dim); margin-top: 3px; }

/* ---------- 人体舞台 ---------- */
.stage { position: relative; min-height: calc(100vh - 110px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px 0; position: relative; z-index: 3; }
.stage-title { font-size: 12px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.stage-title b { display: block; font-size: 22px; color: var(--text); letter-spacing: -.01em; text-transform: none; font-weight: 600; margin-top: 4px; }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.body-wrap { position: relative; flex: 1; display: grid; place-items: center; min-height: 560px; }
.body-svg { height: min(74vh, 760px); width: auto; max-width: 100%; overflow: visible; }
.body-svg .organ { transition: opacity .3s, filter .3s; cursor: pointer; }
.body-svg .organ:hover { opacity: 1 !important; filter: brightness(1.3); }
.body-svg .organ.has { opacity: 1 !important; }
.body-svg .organ.sel { filter: brightness(1.35) drop-shadow(0 0 10px rgba(214,243,106,.6)); }
.body-svg .marker { cursor: pointer; }
.pulse { animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.scan { animation: scan 6s linear infinite; }
@keyframes scan { 0% { transform: translateY(-40px); opacity: 0; } 10% { opacity: .6; } 90% { opacity: .6; } 100% { transform: translateY(820px); opacity: 0; } }

.callouts { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.callout {
  position: absolute; pointer-events: auto; cursor: pointer;
  padding: 10px 14px; border-radius: 16px; min-width: 150px; max-width: 220px;
  background: rgba(20,24,23,.72); border: 1px solid var(--line-2); backdrop-filter: blur(14px);
  font-size: 12px; transition: .2s; transform: translate(-50%, -50%);
}
.callout:hover, .callout.sel { border-color: rgba(214,243,106,.55); }
.callout .ct { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; }
.callout .cs { color: var(--muted); margin-top: 3px; font-family: var(--mono); font-size: 11px; }
.callout .delta { font-family: var(--mono); font-size: 11px; margin-left: 4px; }
.callout-lines { position: absolute; inset: 0; pointer-events: none; z-index: 1; width: 100%; height: 100%; }

.systemic { position: absolute; left: 20px; bottom: 110px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }

/* 时间轴 */
.timeline { position: relative; z-index: 3; margin: 0 18px 18px; padding: 12px 16px; border-radius: 999px; display: flex; align-items: center; gap: 12px; }
.tl-track { flex: 1; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tl-node { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; color: var(--muted); font-size: 12px; transition: .2s; }
.tl-node b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.tl-node:hover { background: rgba(255,255,255,.06); }
.tl-node.on { background: rgba(214,243,106,.14); color: var(--accent); border: 1px solid rgba(214,243,106,.35); }
.tl-node.cmp { border: 1px dashed rgba(124,196,255,.6); color: var(--blue); }
.tl-sep { flex: 0 0 18px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 6px); }

/* ---------- 右栏 ---------- */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 13px; transition: .2s; }
.seg button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.seg.small button { padding: 5px 11px; font-size: 12px; }

.analysis h4 { font-size: 12px; color: var(--dim); font-weight: 500; letter-spacing: .06em; margin: 16px 0 6px; display: flex; align-items: center; gap: 8px; }
.analysis h4::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--accent); }
.analysis p { line-height: 1.75; color: #d6dbd8; font-size: 13.5px; white-space: pre-wrap; }
.analysis ul { padding-left: 18px; line-height: 1.8; color: #d6dbd8; font-size: 13.5px; }
.analysis .hl { font-size: 17px; font-weight: 600; line-height: 1.5; margin-top: 8px; }
.disclaimer { margin-top: 16px; font-size: 11px; color: var(--dim); line-height: 1.6; padding-top: 12px; border-top: 1px solid var(--line); }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { padding: 14px; border-radius: 18px; background: rgba(0,0,0,.22); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.metric .mn { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.metric .mn::before { content: ''; width: 2px; height: 11px; background: var(--accent); border-radius: 2px; }
.metric.high .mn::before, .metric.low .mn::before { background: var(--risk); }
.metric .mv { font-family: var(--mono); font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
.metric .mv small { font-size: 11px; color: var(--muted); margin-left: 3px; }
.metric .mr { font-size: 10.5px; color: var(--dim); font-family: var(--mono); }
.metric svg { width: 100%; height: 38px; }

.finding { padding: 14px; border-radius: 18px; background: rgba(0,0,0,.22); border: 1px solid var(--line); cursor: pointer; transition: .2s; }
.finding:hover, .finding.sel { border-color: rgba(214,243,106,.4); }
.finding .ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.finding .ft b { font-size: 14px; font-weight: 600; }
.finding .fs { margin-top: 8px; display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); flex-wrap: wrap; }

/* 器官详情 */
.organ-detail { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; }
.organ-zoom { width: 100%; height: 170px; border-radius: 18px; background: radial-gradient(circle at center, rgba(214,243,106,.06), rgba(0,0,0,.3)); border: 1px solid var(--line); }
.size-chart { width: 100%; height: 90px; }
.note-box { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(214,243,106,.06); border: 1px solid rgba(214,243,106,.18); font-size: 13px; line-height: 1.7; }
.note-box b { color: var(--accent); font-weight: 600; }

/* ---------- 弹窗 / 抽屉 ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 26px; display: flex; flex-direction: column; gap: 16px; background: #131716; border: 1px solid var(--line-2); border-radius: 26px; }
.modal h2 { font-size: 19px; font-weight: 600; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: .2s; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--accent); background: rgba(214,243,106,.04); }
.code { font-family: var(--mono); font-size: 12px; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 12px; padding: 12px; white-space: pre-wrap; word-break: break-all; line-height: 1.6; user-select: all; }

.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(460px, 100%); z-index: 40; display: flex; flex-direction: column; background: rgba(15,18,17,.94); border-left: 1px solid var(--line-2); backdrop-filter: blur(20px); animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { padding: 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.drawer-h .tabs { margin-right: auto; }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; line-height: 1.7; font-size: 14px; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.typing { color: var(--muted); }
.msg .caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; opacity: .5; animation: caret 1s steps(2) infinite; }
.msg .typing-step { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .msg .caret { animation: none; } }
.composer { padding: 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 46px; max-height: 140px; border-radius: 18px; }
.chat-intro { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.75; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 11px 18px; border-radius: 999px; background: #1d2321; border: 1px solid var(--line-2); font-size: 13px; animation: fade .2s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1360px) {
  .main { grid-template-columns: 270px minmax(380px, 1fr) 340px; gap: 14px; padding: 0 18px 18px; }
  .topbar { padding: 16px 18px; }
}
@media (max-width: 1040px) {
  .main { grid-template-columns: 290px 1fr; }
  .col.right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; padding: 24px 16px; }
  .auth-figure { display: none; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .members { order: 3; width: 100%; margin-left: 0; }
  .main { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .col.right { grid-template-columns: 1fr; }
  .col.left { order: 2; }
  .stage { min-height: auto; }
  .body-svg { height: 62vh; }
  .callout { min-width: 0; max-width: 150px; padding: 7px 10px; }
  .callout .cs { display: none; }
  .organ-detail { grid-template-columns: 1fr; }
  .brand small { display: none; }
}

/* ---------- 3D ---------- */
.body-host { display: contents; }
.body3d { position: absolute; inset: 0; z-index: 1; }
.body3d-canvas { display: block; cursor: grab; touch-action: none; }
.body3d-canvas:active { cursor: grabbing; }
.body-wrap.is3d .body-svg { opacity: 0; pointer-events: none; transition: opacity .6s; }
.body-wrap:not(.is3d) .body3d { pointer-events: none; }
.load3d { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 6px 14px; border-radius: 999px; font-size: 12px; color: var(--muted); background: rgba(20,24,23,.75); border: 1px solid var(--line); backdrop-filter: blur(10px); font-family: var(--mono); }
.attrib { position: absolute; right: 22px; bottom: 6px; z-index: 3; font-size: 10px; color: var(--dim); text-decoration: none; }
.attrib:hover { color: var(--muted); }
.timeline { margin-bottom: 22px; }

/* 图层开关 */
.layers { position: absolute; left: 18px; top: 14px; z-index: 4; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.layers .label { margin: 0 0 2px 4px; }
.layer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 12px; color: var(--dim); background: rgba(20,24,23,.6); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: .2s; }
.layer i { width: 9px; height: 9px; border-radius: 50%; opacity: .35; transition: .2s; }
.layer.on { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.08); }
.layer.on i { opacity: 1; box-shadow: 0 0 8px currentColor; }
.layer:hover { border-color: rgba(214,243,106,.4); }
@media (max-width: 860px) {
  .layers { flex-direction: row; flex-wrap: wrap; left: 12px; right: 12px; top: 6px; }
  .layers .label { display: none; }
  .layer { padding: 4px 10px 4px 7px; font-size: 11px; }
}

.body3d-tip { position: absolute; z-index: 5; pointer-events: none; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-family: var(--mono); color: var(--accent); background: rgba(10,12,12,.8); border: 1px solid rgba(214,243,106,.3); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.body3d-tip.on { opacity: 1; }
.hint3d { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 3; font-size: 11px; color: var(--dim); white-space: nowrap; pointer-events: none; }
.hint3d kbd { font-family: var(--mono); font-size: 10px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.struct-card .crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.struct-card .crumb:hover { color: var(--accent); border-color: rgba(214,243,106,.35); }
.struct-card .en { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 2px; }
.skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skel 1.2s linear infinite; margin: 8px 0; }
@keyframes skel { to { background-position: -200% 0; } }
@media (max-width: 860px) { .hint3d { display: none; } }

.struct-list { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.struct-list li::marker { color: var(--accent); }

.iso-chip { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 14px; border-radius: 999px; font-size: 12px; color: var(--accent); background: rgba(10,12,12,.78); border: 1px solid rgba(214,243,106,.35); backdrop-filter: blur(10px); white-space: nowrap; max-width: calc(100% - 260px); }
.iso-chip span { overflow: hidden; text-overflow: ellipsis; }
.iso-chip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: rgba(255,255,255,.08); flex: none; }
.iso-chip button svg { width: 12px; height: 12px; }
.iso-chip button:hover { background: rgba(214,243,106,.2); }
@media (max-width: 860px) { .iso-chip { top: auto; bottom: 64px; max-width: calc(100% - 24px); } }

/* ---------- 日程 ---------- */
.view-seg { flex: 0 0 auto; }
.cal-page { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; min-height: 0; align-items: start; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-head h2 { font-size: 20px; font-weight: 600; margin-right: 8px; }
.cal-head .spacer { flex: 1; }
.cal-head .seg { flex: 0 0 auto; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-day { min-height: 104px; padding: 7px; display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: inherit; font: inherit; cursor: pointer; overflow: hidden; }
.cal-day:hover { background: rgba(255,255,255,.05); }
.cal-day.off { opacity: .38; }
.cal-day.sel { border-color: var(--accent); }
.cal-num { font-size: 12px; font-family: var(--mono); color: var(--muted); display: flex; align-items: center; gap: 5px; }
.cal-day.today .cal-num { color: var(--accent); font-weight: 600; }
.cal-rep { width: 6px; height: 6px; border-radius: 2px; background: var(--blue); }
.cal-chip { font-size: 11px; line-height: 1.5; padding: 1px 6px; border-radius: 6px; border-left: 2px solid var(--c); background: rgba(255,255,255,.06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip b { font-weight: 500; color: var(--muted); }
.cal-chip.done { opacity: .5; text-decoration: line-through; }
.cal-chip.suggested { background: transparent; border: 1px dashed var(--c); }
.cal-more { font-size: 11px; color: var(--dim); padding-left: 6px; }
.cal-dots { display: none; gap: 3px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; }
.agenda { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border-left: 3px solid var(--c); }
.agenda input[type=checkbox] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.agenda-b { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.agenda .t, .suggest .t { font-size: 14px; font-weight: 500; }
.agenda .s, .suggest .s { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.6; }
.agenda.done .t { text-decoration: line-through; color: var(--muted); }
.suggest { padding: 12px; border-radius: 14px; border: 1px dashed var(--line-2); }
.metric-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
button.metric { text-align: left; color: inherit; font: inherit; cursor: pointer; width: 100%; }
button.finding.record { text-align: left; color: inherit; font: inherit; width: 100%; }
.chat-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-right: auto; }
.chat-who select { width: auto; padding: 6px 10px; }
@media (max-width: 1040px) { .cal-page { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .view-seg { order: 3; }
  .cal-day { min-height: 54px; padding: 5px; }
  .cal-chip, .cal-more { display: none; }
  .cal-dots { display: flex; }
}

.chat-offline { padding: 12px 20px; font-size: 13px; line-height: 1.7; color: var(--warn); background: rgba(255,181,71,.08); border-bottom: 1px solid var(--line); }
.chat-offline b { font-weight: 600; }

/* ---------- 首页总览 ---------- */
.brand-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.crumb { display: flex; align-items: center; gap: 8px; margin-left: 18px; font-size: 14px; min-width: 0; }
.crumb-back { color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.crumb-back:hover { color: var(--accent); border-color: rgba(214,243,106,.35); }
.crumb-sep { color: var(--dim); }
.crumb-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-name i { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.main.home { grid-template-columns: minmax(0, 1fr) 370px; }
.home-cal { position: relative; min-width: 0; }
.home-members { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow-y: auto; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; }
.cal-med { font-size: 10px; font-family: var(--font); color: #63e3b0; margin-left: auto; padding: 0 5px; border-radius: 6px; background: rgba(99,227,176,.12); }

.member-card { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: 100%; text-align: left; padding: 14px; border-radius: 18px; border: 1px solid var(--line); border-left: 3px solid var(--mc); background: rgba(255,255,255,.03); color: inherit; font: inherit; cursor: pointer; transition: .2s; }
.member-card:hover { background: rgba(255,255,255,.06); border-color: var(--line-2); border-left-color: var(--mc); }
.member-card .pill { align-self: flex-start; }
.mc-top { display: flex; align-items: center; gap: 12px; }
.mc-av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 600; font-size: 17px; color: var(--accent-ink); background: var(--mc); flex: none; }
.mc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-name b { font-size: 16px; font-weight: 600; }
.mc-name b small { font-size: 11px; font-weight: 400; color: var(--dim); }
.mc-name > small { font-size: 12px; color: var(--muted); }
.mc-score { flex: none; }
.score-ring { width: 58px; height: 58px; display: block; }
.mc-head { font-size: 13px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-head.dim { color: var(--dim); }
.mc-stats { display: flex; gap: 14px; font-size: 12px; color: var(--dim); }
.mc-stats b { font-family: var(--mono); font-weight: 500; color: var(--text); font-size: 14px; }
.mc-busy { font-size: 12px; color: var(--accent); }
.mc-next { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; padding-top: 8px; border-top: 1px dashed var(--line); }
.mc-next .label { margin: 0; flex: none; }
.score-note { margin-top: 14px; font-size: 11px; line-height: 1.7; color: var(--dim); }
.icon-btn.sm { width: 30px; height: 30px; flex: none; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.agenda { align-items: center; }

/* ---------- 成员详情：3D 全屏，概况和档案浮在两侧，时间条是底部通栏 ---------- */
:root { --topbar-h: 70px; --dock-h: 64px; --sheet-h: min(76vh, 900px); }
.main.member { display: block; padding: 0; }
.main.member .stage { position: fixed; inset: 0; z-index: 0; min-height: 0; display: block; overflow: hidden; --sl: 0px; --sr: 0px; --st: 0px; --sb: 0px; }
.main.member .body-wrap { position: absolute; inset: 0; min-height: 0; padding: var(--st) var(--sr) var(--sb) var(--sl); }
.main.member .body-svg { height: min(calc(100vh - var(--st) - var(--sb)), 820px); }
.main.member .stage-head { position: absolute; top: calc(var(--st) + 6px); right: calc(var(--sr) + 4px); padding: 0; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 4; }
.main.member .layers { left: calc(var(--sl) + 4px); top: calc(var(--st) + 6px); }
.main.member .iso-chip, .main.member .load3d { left: calc(var(--sl) + (100% - var(--sl) - var(--sr)) / 2); top: calc(var(--st) + 6px); }
.main.member .iso-chip { max-width: calc(100% - var(--sl) - var(--sr) - 220px); }
.main.member .hint3d { left: calc(var(--sl) + (100% - var(--sl) - var(--sr)) / 2); bottom: calc(var(--sb) - 24px); white-space: nowrap; font-size: 11px; }
.main.member .systemic { left: calc(var(--sl) + 8px); bottom: calc(var(--sb) + 8px); }

.float-panel { position: fixed; z-index: 10; top: calc(var(--topbar-h) + 2px); bottom: calc(var(--dock-h) + 28px); overflow-y: auto; overscroll-behavior: contain; pointer-events: none; padding-bottom: 4px; }
.float-panel > * { pointer-events: auto; flex: none; }
.main.member .col.left { left: 20px; width: 330px; }
.main.member .col.right { right: 20px; width: 440px; }
.float-panel .glass { background: rgba(16,20,19,.78); backdrop-filter: blur(16px); }

.dock { position: fixed; left: 20px; right: 20px; bottom: 16px; z-index: 37; transition: bottom .42s cubic-bezier(.2,.85,.25,1); }
.dock .timeline { margin: 0; background: rgba(16,20,19,.85); backdrop-filter: blur(16px); }
body.cal-open .dock { bottom: calc(var(--sheet-h) + 12px); }
.main.member .attrib { position: fixed; left: 24px; right: auto; bottom: 1px; z-index: 11; font-size: 9px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 48px); }

.tl-cal { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--accent); background: rgba(214,243,106,.1); border: 1px solid rgba(214,243,106,.3); }
.tl-cal:hover { background: rgba(214,243,106,.2); }
.timeline { cursor: pointer; }
.timeline .tl-node { cursor: pointer; }

/* 个人日历：通栏，从底部弹起；时间条停在它上方 */
.sheet-bg { position: fixed; inset: 0; z-index: 36; background: rgba(0,0,0,0); transition: background .35s; }
.sheet-bg.open { background: rgba(0,0,0,.42); }
.sheet { position: absolute; left: 20px; right: 20px; bottom: 0; height: var(--sheet-h); display: flex; flex-direction: column; background: rgba(15,18,17,.97); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.45); transform: translateY(105%); transition: transform .42s cubic-bezier(.2,.85,.25,1); }
.sheet-bg.open .sheet { transform: none; }
.sheet-h { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-h h3 { font-size: 17px; font-weight: 600; }
.sheet-h .spacer { flex: 1; }
.sheet-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; padding: 18px 22px 24px; overflow-y: auto; align-items: start; }
.sheet .cal-day { min-height: 82px; }
.med-slot { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; background: rgba(99,227,176,.06); border: 1px solid rgba(99,227,176,.18); color: inherit; font: inherit; cursor: pointer; }
.med-slot:hover { border-color: rgba(99,227,176,.45); }
.med-slot .mono { width: 46px; flex: none; color: #63e3b0; font-size: 14px; }
.med-slot b { display: block; font-size: 14px; font-weight: 500; }
.med-slot small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.med-slot.no-time { background: rgba(255,181,71,.06); border-color: rgba(255,181,71,.25); }
.med-slot.no-time .mono { color: var(--warn); }

/* ---------- 首页：点日期时从日历右侧浮出当天安排 ---------- */
.day-pop { position: absolute; top: 16px; right: 16px; bottom: 16px; width: min(360px, calc(100% - 32px)); z-index: 5; overflow-y: auto; padding: 18px; border-radius: 18px; background: rgba(16,20,19,.96); border: 1px solid var(--line-2); box-shadow: -16px 0 50px rgba(0,0,0,.45); backdrop-filter: blur(18px); }
.day-pop.pop-in { animation: pop-in .32s cubic-bezier(.2,.85,.25,1); }
@keyframes pop-in { from { transform: translateX(24px); opacity: 0; } }
.day-pop-x { position: absolute; top: 12px; right: 12px; z-index: 1; }
.day-pop .cal-side { padding: 0; background: none; border: 0; }
.day-pop .cal-side > :first-child { padding-right: 36px; }

/* ---------- 加载状态 ---------- */
.loader { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.loader.page { position: fixed; inset: 0; flex-direction: column; gap: 16px; font-size: 14px; z-index: 60; background: var(--bg); }
.loader.page .spin { width: 34px; height: 34px; border-width: 3px; }
.loader.block { padding: 48px 16px; min-height: 160px; flex-direction: column; }
.main > .loader.block { grid-column: 1 / -1; min-height: 60vh; }
.loader.inline { justify-content: flex-start; padding: 6px 0; }
.loader.over { position: absolute; inset: 0; z-index: 3; border-radius: 14px; background: rgba(10,12,12,.45); backdrop-filter: blur(2px); }
.spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spin.sm { width: 14px; height: 14px; border-width: 2px; border-color: currentColor; border-top-color: transparent; opacity: .8; }
.btn .spin.sm { margin-right: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.cal-wrap { position: relative; }
.skel-day { pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.06), rgba(255,255,255,.02)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }

/* 细滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .sheet, .dock, .sheet-bg { transition: none; }
  .day-pop.pop-in { animation: none; }
  .spin { animation-duration: 2s; }
}

@media (max-width: 1360px) {
  .main.home { grid-template-columns: minmax(0, 1fr) 330px; }
  .main.member .col.left { width: 300px; }
  .main.member .col.right { width: 380px; }
}
@media (max-width: 1100px) {
  .main.member .col.left { left: 14px; width: 270px; }
  .main.member .col.right { right: 14px; width: 330px; }
  .main.member .hint3d { display: none; }
}
@media (max-width: 1040px) {
  .main.home { grid-template-columns: 1fr; }
  .home-members { position: static; max-height: none; order: -1; }
  .sheet-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --sheet-h: 78vh; }
  .crumb { order: 3; width: 100%; margin-left: 0; }
  .main.member { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 96px; }
  .main.member .stage { position: relative; inset: auto; height: 72vh; min-height: 460px; }
  .float-panel { position: static; width: auto !important; overflow: visible; pointer-events: auto; display: flex; flex-direction: column; gap: 14px; }
  .main.member .col.left { order: -1; }
  .dock { left: 10px; right: 10px; bottom: 10px; }
  .main.member .attrib { position: static; white-space: normal; font-size: 10px; max-width: none; }
  .sheet { left: 0; right: 0; border-radius: 20px 20px 0 0; }
  .sheet-h, .sheet-body { padding-left: 16px; padding-right: 16px; }
  .sheet-h .muted { display: none; }
  .sheet .cal-day { min-height: 50px; }
  .cal-med { display: none; }
  .tl-cal span { display: none; }
  .day-pop { position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 70vh; z-index: 30; }
}

/* ---------- 头像 ---------- */
.big-av, .mc-av, .crumb-av { background-size: cover; background-position: center; }
.has-img { color: transparent !important; }
.crumb-av { width: 24px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; background-color: rgba(255,255,255,.08); flex: none; }
.crumb-av:not([data-av]) { display: none; }
.crumb-av[data-av] + i { display: none; }
.av-edit { display: flex; gap: 14px; align-items: center; }
.av-edit .big-av { width: 64px; height: 64px; border-radius: 20px; flex: none; }

/* ---------- 语言、删除确认、可见范围 ---------- */
.lang-pick { display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; }
.lang-pick select { width: auto; padding: 6px 30px 6px 10px; font-size: 13px; }
.del-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.del-list b { color: var(--text); font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--risk); }
.btn.danger-fill { background: var(--risk); color: #1a0505; border-color: transparent; font-weight: 600; }
.btn.danger-fill:disabled { opacity: .35; cursor: not-allowed; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.18); cursor: pointer; }
.radio-card:has(input:checked) { border-color: rgba(214,243,106,.45); background: rgba(214,243,106,.06); }
.radio-card input { margin-top: 4px; accent-color: var(--accent); }
.radio-card b { display: block; font-size: 14px; font-weight: 600; }
.radio-card small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.med-slot:disabled { cursor: default; }

/* 站点后台 */
.main.admin { display: flex; flex-direction: column; align-items: stretch; gap: 14px; max-width: 1280px; margin: 0 auto; width: 100%; }
.adm-head { display: flex; align-items: baseline; gap: 12px; padding: 4px 2px 0; }
.adm-head h2 { font-size: 20px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 6px; border-radius: 18px; padding: 14px 16px; }
.kpi b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi small { font-size: 12px; }
.est-kpis { margin: 14px 0; }
.est-kpis .kpi { background: rgba(214,243,106,.05); border: 1px solid rgba(214,243,106,.18); }
.est-inputs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.est-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.est-inputs .input { width: 170px; }
.sm-input { width: auto; padding: 6px 10px; font-size: 12px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.tbl td small { font-size: 11px; }
.tbl tbody tr:hover { background: rgba(255,255,255,.03); }
.tbl tr.bad td { color: var(--muted); }
.adm-chart { width: 100%; height: auto; max-height: 220px; display: block; }
.adm-chart .b-in { fill: var(--blue); opacity: .75; }
.adm-chart .b-out { fill: var(--accent); }
.adm-chart g:hover .b-in { opacity: 1; }
.adm-chart text { fill: var(--dim); font-size: 10px; }
.adm-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.adm-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.adm-legend i.in { background: var(--blue); } .adm-legend i.out { background: var(--accent); }
.adm-note { font-size: 12px; line-height: 1.7; padding: 0 4px 10px; }
@media (max-width: 760px) { .est-inputs .input { width: 100%; } .est-inputs label { flex: 1 1 140px; } .kpi b { font-size: 22px; } }

/* 计价 */
.chg-sum { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 14px; }
.chg-total { display: flex; flex-direction: column; gap: 4px; }
.chg-total b { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.chg-total small { font-size: 12px; }
.chg-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; gap: 2px; }
.chg-bar i { display: block; min-width: 3px; }
.chg-cats { display: grid; grid-template-columns: 1fr; gap: 6px; }
.chg-cats div { display: grid; grid-template-columns: 8px minmax(0,1fr) auto 36px; white-space: nowrap; align-items: center; gap: 8px; font-size: 12.5px; }
.chg-cats i { width: 8px; height: 8px; border-radius: 3px; }
.chg-cats b { font-weight: 500; font-variant-numeric: tabular-nums; }
.chg-cats small { width: 30px; text-align: right; }
.chg-years { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.chg-years b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.chg-group { margin-bottom: 12px; }
.chg-gh { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 0 4px 6px; }
.chg-gh b { margin-left: auto; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.chg-src { background: none; border: 0; color: var(--blue); font: inherit; cursor: pointer; padding: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.chg-src:hover { text-decoration: underline; }
.chg-row { width: 100%; display: grid; grid-template-columns: 4px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; margin-bottom: 6px; }
.chg-row:hover { border-color: rgba(255,255,255,.18); }
.chg-row > i { width: 4px; align-self: stretch; border-radius: 2px; }
.chg-name { font-size: 13.5px; font-weight: 500; }
.chg-row small { font-size: 11.5px; }
.chg-row > b { font-size: 14px; font-weight: 600; }
