:root {
  --ink: #14241d;
  --ink-soft: #4a5a50;
  --ink-mute: #7c8a80;
  --paper: #f4f2ea;
  --card: #ffffff;
  --line: #e3dfd2;
  --line-soft: #efecE2;
  --brand: #14241d;
  --accent: #b6f24a;
  --accent-ink: #2a3a12;
  --danger: #c2453a;
  --danger-soft: #fbeceb;
  --warn: #b07d2a;
  --warn-soft: #fbf3e4;
  --ok: #2f7d52;
  --ok-soft: #e9f6ee;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.55 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- 登录 ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 460px;
  background: var(--brand);
}
.auth-side {
  padding: 56px 64px;
  color: #e8f1ea;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(182,242,74,.16), transparent 60%),
    linear-gradient(150deg, #1b3126, #0e1a14);
}
.auth-side h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; max-width: 12em; }
.auth-side p { color: #9fb3a6; max-width: 26em; margin: 0; }
.auth-side .feature { display: flex; gap: 10px; margin-top: 22px; color: #cfe0d5; font-size: 13px; }
.auth-side .feature span.dot { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); margin-top: 8px; flex: none; }
.auth-main {
  background: var(--paper);
  padding: 48px 44px;
  display: flex;
  align-items: center;
}
.auth-box { width: 100%; max-width: 340px; margin: 0 auto; }
.auth-box h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
.auth-box .hint { color: var(--ink-mute); font-size: 13px; margin: 0 0 26px; }

.brandmark {
  display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; font-size: 16px;
}
.brandmark .mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.auth-side .brandmark { color: #f0f7f1; }
.auth-side .brandmark .mark { background: var(--accent); color: #1b2a10; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,36,29,.08);
}
.field textarea { resize: vertical; min-height: 76px; font-family: var(--mono); font-size: 12.5px; }
.field .tip { font-size: 11.5px; color: var(--ink-mute); margin-top: 5px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; transition: .15s; white-space: nowrap; font-size: 13px;
}
.btn:hover { border-color: #cfc9b8; background: #faf9f4; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #f3f8f4; }
.btn.primary:hover { background: #1d3227; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.accent:hover { filter: brightness(.96); }
.btn.danger { color: var(--danger); border-color: #eccfcc; background: #fff; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(20,36,29,.05); }

/* ---------- 应用骨架 ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

.side {
  background: var(--brand); color: #d7e3db; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side .brandmark { padding: 4px 8px 18px; }
.side .brandmark .mark { width: 24px; height: 24px; border-radius: 7px; }
.side .ws {
  margin: 0 4px 14px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px;
  font-size: 11px; color: #93a89b; line-height: 1.5;
}
.side .ws b { display: block; color: #e9f2ec; font-size: 12px; font-weight: 600; margin-top: 2px; }
.side .group { font-size: 10.5px; letter-spacing: .08em; color: #6f8579; padding: 14px 10px 6px; text-transform: uppercase; }
.side .nav {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  color: #b9cbbf; cursor: pointer; font-size: 13px; transition: .12s;
}
.side .nav:hover { background: rgba(255,255,255,.05); color: #eef5ef; }
.side .nav.active { background: rgba(182,242,74,.12); color: #dff7b2; }
.side .nav .ico {
  width: 16px; height: 16px; flex: none; opacity: .92;
  display: inline-flex; align-items: center; justify-content: center;
}
.side .nav .ico svg { display: block; width: 100%; height: 100%; }
.side .nav.active .ico { opacity: 1; }
.side .spacer { flex: 1; }
.side .who { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.side .who .avatar {
  width: 30px; height: 30px; border-radius: 9px; background: rgba(182,242,74,.18); color: var(--accent);
  display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none;
}
.side .who .meta { min-width: 0; }
.side .who .meta b { display: block; font-size: 12.5px; color: #eaf3ec; font-weight: 600; }
.side .who .meta small { color: #7f948a; font-size: 11px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { padding: 26px 32px 60px; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.crumb { font-size: 12.5px; color: var(--ink-mute); }
.crumb b { color: var(--ink); font-weight: 600; }
.top .actions { display: flex; gap: 8px; align-items: center; }

.h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 650; }
.sub { color: var(--ink-mute); font-size: 13px; margin: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { font-size: 10.5px; letter-spacing: .12em; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 6px; }

/* ---------- 卡片 ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.panel.tight { padding: 0; overflow: hidden; }
.panelhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panelhead h3 { margin: 0; font-size: 14px; font-weight: 600; }
.panelhead .hint { font-size: 11.5px; color: var(--ink-mute); }

.grid { display: grid; gap: 16px; align-items: start; }
.grid.c2 { grid-template-columns: 1fr 1fr; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.split { grid-template-columns: 1.6fr 1fr; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { font-size: 11.5px; color: var(--ink-mute); margin-bottom: 8px; letter-spacing: .02em; }
.stat .value { font-size: 25px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .value small { font-size: 12px; font-weight: 500; color: var(--ink-mute); margin-left: 3px; }
.stat .delta { font-size: 11.5px; color: var(--ink-mute); margin-top: 6px; }
.stat .delta.good { color: var(--ok); }
.stat .delta.bad { color: var(--danger); }

.hero {
  background: linear-gradient(120deg, #172b21, #1e3a2b 60%, #24452f);
  color: #e9f3ec; border-radius: 18px; padding: 26px 28px; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,242,74,.22), transparent 65%);
}
.hero h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.01em; }
.hero p { margin: 0; color: #a9c0b2; font-size: 13px; max-width: 40em; }
.hero .tag { font-size: 10px; letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; }

/* ---------- 表格 ---------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-weight: 500; font-size: 11.5px; color: var(--ink-mute);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfaf6;
}
td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fbfaf5; }
td small { display: block; color: var(--ink-mute); font-size: 11px; }
td .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; line-height: 1.7; border: 1px solid transparent; white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.err { background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.neutral { background: #f1efe6; color: var(--ink-soft); }
.badge.tag { background: #eef3ea; color: #3c5545; border-color: #e2eadb; }

.empty { padding: 40px 20px; text-align: center; color: var(--ink-mute); font-size: 13px; }
.empty .big { font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- 模型卡 ---------- */
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filters .search { flex: 1; min-width: 220px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 12.5px; color: var(--ink-soft); transition: .12s;
}
.chip:hover { border-color: #cfc9b8; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #f2f7f3; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 12px; min-height: 190px;
}
.mcard:hover { border-color: #c9d6bd; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,36,29,.06); }
.mcard .mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mcard .mname { font-weight: 600; font-size: 15px; letter-spacing: -.01em; word-break: break-all; }
.mcard .mvendor { font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; }
.mcard .logo {
  width: 34px; height: 34px; border-radius: 10px; background: #f1f5ea; color: #47603b;
  display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none;
}
.mcard .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.mcard .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mcard .meta .k { font-size: 10.5px; color: var(--ink-mute); }
.mcard .meta .v { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mcard.disabled { opacity: .55; }

/* ---------- 图表 ---------- */
.chart { width: 100%; height: 220px; display: block; }
.chart .axis { stroke: #e6e2d5; stroke-width: 1; }
.chart .gridline { stroke: #f0ede3; stroke-width: 1; }
.chart .lbl { fill: #93a096; font-size: 10px; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: rgba(20,36,29,.06); }
.chart .bar { fill: #cfdcc4; }
.chart .bar.hot { fill: var(--ink); }
.chart .dot { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-mute); margin-top: 8px; flex-wrap: wrap; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(16,26,21,.42); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; padding: 24px; z-index: 50;
}
.mask.show { display: flex; }
.modal {
  background: var(--paper); border-radius: 18px; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(10,20,14,.25);
}
.modal.wide { max-width: 780px; }
.modal .mhead2 { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal .mhead2 h2 { font-size: 18px; margin: 0 0 4px; letter-spacing: -.01em; }
.modal .mhead2 p { margin: 0; color: var(--ink-mute); font-size: 12.5px; }
.modal .mbody { padding: 20px 24px; }
.modal .mfoot { padding: 0 24px 20px; display: flex; justify-content: flex-end; gap: 8px; }
.modal .close { border: none; background: #eae7dc; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: var(--ink-soft); }

.drawer-mask { position: fixed; inset: 0; background: rgba(16,26,21,.35); display: none; z-index: 40; }
.drawer-mask.show { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 94vw); background: var(--paper);
  transform: translateX(100%); transition: transform .22s ease; z-index: 41; overflow-y: auto;
  border-left: 1px solid var(--line);
}
.drawer.show { transform: translateX(0); }
.drawer .dhead {
  position: sticky; top: 0; background: rgba(244,242,234,.94); backdrop-filter: blur(6px);
  padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.drawer .dbody { padding: 20px 24px 60px; }

/* ---------- 代码块 ---------- */
pre.code {
  background: #16241d; color: #d6e6da; padding: 16px; border-radius: 12px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65; margin: 0;
}
pre.code .k { color: #b6f24a; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button {
  padding: 8px 12px; border: none; background: none; cursor: pointer; font-size: 12.5px;
  color: var(--ink-mute); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.keybox { background: #16241d; color: var(--accent); padding: 14px 16px; border-radius: 12px; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.note { font-size: 12px; color: var(--ink-mute); line-height: 1.7; }
.note.warn { background: var(--warn-soft); border: 1px solid #f0e3c8; padding: 10px 12px; border-radius: 10px; color: #7a5717; }
.note.info { background: #eef3ea; border: 1px solid #e0e9d8; padding: 10px 12px; border-radius: 10px; color: #3f5a45; }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 14px; font-size: 12.5px; }
.kv dt { color: var(--ink-mute); }
.kv dd { margin: 0; word-break: break-all; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #eef5ef;
  padding: 10px 18px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #7d2820; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 4px 0; font-size: 12.5px; color: var(--ink-mute); }

.bar-mini { height: 6px; border-radius: 999px; background: #eceadf; overflow: hidden; min-width: 60px; }
.bar-mini i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.bar-mini i.hot { background: var(--danger); }

.skeleton { background: linear-gradient(90deg, #efece2 25%, #f7f5ee 50%, #efece2 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.split, .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .ws, .side .spacer, .side .group { display: none; }
  .side { gap: 2px; padding: 12px 14px; }
  .side .nav { padding: 9px; }
  .side .nav .ico { width: 18px; height: 18px; }
  .side .nav span:not(.ico) { display: none; }
  .side .group {
    display: block; width: 1px; height: 22px; padding: 0; margin: 0 5px;
    font-size: 0; background: rgba(255,255,255,.16); border-radius: 1px; align-self: center;
  }
  .side .who { border: none; margin: 0 0 0 auto; padding: 0; }
  .side .who .meta { display: none; }
  .side .btn span { display: none; }
  .side .btn { padding: 9px; }
  .main { padding: 18px 16px 48px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
  .grid.c4 { grid-template-columns: 1fr 1fr; }
}

.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.btn svg { flex: none; }
/* ---------- 用量页 ---------- */
.ustats { margin-bottom: 14px; }
.ustats .stat { box-shadow: 0 1px 2px rgba(20,36,29,.03); }

.upanel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(20,36,29,.03);
}
.utool { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ufield { display: flex; align-items: center; gap: 8px; }
.ufield.right { margin-left: auto; }
.utool .uk { font-size: 12.5px; color: var(--ink-mute); }
.utool select,
.utool input[type="date"] {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 13px; outline: none; color: var(--ink);
}
.utool select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4.5 6 8.5 10 4.5' fill='none' stroke='%237c8a80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.utool select:focus, .utool input[type="date"]:focus { border-color: #9db8a8; box-shadow: 0 0 0 3px rgba(20,36,29,.06); }

.ugrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ucard {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 2px rgba(20,36,29,.03);
}
.ucard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ucard-head h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.ucard-head .hint { font-size: 11.5px; color: var(--ink-mute); }
.ucard-body { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.ucard-chart { flex: 1; min-height: 300px; }

.seg { display: inline-flex; background: #f2f4f7; border-radius: 9px; padding: 3px; flex: none; }
.seg button {
  border: 0; background: transparent; padding: 4px 10px; border-radius: 7px;
  font-size: 12px; color: #64748b; cursor: pointer; transition: .12s; white-space: nowrap;
}
.seg button:hover { color: #0f172a; }
.seg button.on { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.14); }

.donut { position: relative; width: 168px; flex: none; }
.donut svg { width: 100%; height: auto; display: block; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.donut-center span { font-size: 10.5px; color: var(--ink-mute); margin-top: 2px; }

.utable { flex: 1; min-width: 0; overflow-x: auto; }
.utable table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.utable th {
  background: #f8fafc; border-bottom: 1px solid #eef2f7; font-size: 11px; color: #7b8794;
  padding: 7px 8px; font-weight: 500; white-space: nowrap;
}
.utable td { padding: 8px; border-bottom: 1px solid #f3f6fa; white-space: nowrap; }
.utable tr:last-child td { border-bottom: 0; }
.utable .num { text-align: right; font-variant-numeric: tabular-nums; }
.utable td.nm { max-width: 128px; overflow: hidden; text-overflow: ellipsis; }
.utable td.money { color: #16a34a; font-weight: 500; }
.utable td.std { color: #94a3b8; }
.utable tbody tr:hover td { background: #f8fbff; }
.uempty { text-align: center; color: var(--ink-mute); padding: 18px 0; font-size: 12px; }

.chart.trends { height: 292px; }
.chart-legend.dots { margin: 0 0 4px; gap: 16px; }
.chart-legend.dots span { display: inline-flex; align-items: center; color: #64748b; }
.chart-legend.dots i { width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

@media (max-width: 1180px) {
  .ugrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ucard-body { flex-direction: column; align-items: stretch; }
  .donut { margin: 0 auto; }
  .ufield.right { margin-left: 0; }
}