/* 明亮产品风：白底 + 浅灰分区，主色只用在主按钮和选中态。字阶 13/15/16/20/25/31，间距走 4px 栅格，圆角 8/12 */
:root {
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #5b6472;
  --ink-4: #8a93a1;
  --line: #e3e7ec;
  --line-2: #eef1f4;
  --bg: #f4f6f8;
  --surface: #fdfdfc;
  --brand: #1f5a8a;
  --brand-ink: #174469;
  --brand-soft: #e8f0f7;
  --ok: #18794e;
  --ok-soft: #e6f4ec;
  --warn: #a15c07;
  --warn-soft: #fbf1e1;
  --bad: #b42318;
  --bad-soft: #fbeaea;
  --r1: 8px;
  --r2: 12px;
  --sh1: 0 1px 2px rgba(17, 24, 39, .05);
  --sh2: 0 8px 24px rgba(17, 24, 39, .10);
  --num: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.boot { padding: 96px 16px; text-align: center; color: var(--ink-4); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.small { font-size: 13px; }

/* ---------- 外框 ---------- */
.shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 12px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { padding: 0 12px 24px; }
.brand b { display: block; font-size: 16px; letter-spacing: .02em; }
.brand span { font-size: 13px; color: var(--ink-4); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: var(--r1); color: var(--ink-2); }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; }
.main { min-width: 0; padding: 32px 40px 64px; }
.wrap { max-width: 1240px; margin: 0 auto; }
.topbar, .tabbar { display: none; }

/* ---------- 页头 ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.01em; }
.head .sub { margin-top: 4px; color: var(--ink-3); }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 8px; font-size: 13px; color: var(--ink-3); }
.back:hover { color: var(--ink); }

/* ---------- 控件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r1); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; font-size: 15px; transition: background .15s ease-out, border-color .15s ease-out; }
.btn:hover { background: var(--line-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fbfdff; font-weight: 600; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-3); }
.btn.ghost:hover { background: var(--line-2); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.input, .select, .textarea { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); font-size: 16px; min-width: 0; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.textarea { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; line-height: 1.5; width: 100%; }
.select { padding-right: 28px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.w-year { width: 104px; }
.w-search { width: 260px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 13px; color: var(--ink-3); }
.field .input, .field .select { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }

/* ---------- 卡片 / 区块 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--sh1); }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 16px; line-height: 1.3; }
.section-head .hint { font-size: 13px; color: var(--ink-4); font-weight: 400; margin-left: 8px; }

/* 统计块 */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 16px 20px; }
.stat .k { font-size: 13px; color: var(--ink-3); }
.stat .v { margin-top: 4px; font-size: 25px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat .v small { font-size: 15px; font-weight: 500; color: var(--ink-4); }
.stat .s { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.stat.warn .v { color: var(--warn); }
a.stat { color: inherit; display: block; transition: border-color .15s ease-out; }
a.stat:hover { border-color: #c9d2dc; }
.group-label { margin: 24px 0 8px; font-size: 13px; color: var(--ink-4); }
.group-label:first-child { margin-top: 0; }

/* 月度柱 */
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 176px; padding: 20px 20px 0; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 40px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bar.zero i { background: var(--line); }
.bar-labels span { white-space: nowrap; min-width: 0; }
.bar-labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 8px 20px 16px; font-size: 13px; color: var(--ink-4); text-align: center; }
.bar-labels b { display: block; font-weight: 500; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }

/* 提示条 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.chip b { font-variant-numeric: tabular-nums; }
a.chip:hover { border-color: #c9d2dc; color: var(--ink); }
.tag { display: inline-block; padding: 0 8px; height: 22px; line-height: 22px; border-radius: 999px; font-size: 13px; background: var(--line-2); color: var(--ink-3); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.brand { background: var(--brand-soft); color: var(--brand-ink); }
.notice { padding: 16px 20px; border-radius: var(--r2); background: var(--warn-soft); color: #5e3a06; border: 1px solid #f0dcb8; }
.notice h3 { margin: 0 0 8px; font-size: 15px; }
.notice ul { margin: 0; padding-left: 20px; }
.notice li + li { margin-top: 4px; }
.notice details { margin-top: 8px; font-size: 13px; }
.notice summary { cursor: pointer; color: #7a4d0b; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.t td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; }
.t tbody tr.link { cursor: pointer; }
.t tbody tr.link:hover td { background: #f8f9fb; }
.t .no { font-weight: 600; color: var(--ink); white-space: nowrap; }
.t .wrap-cell { min-width: 160px; max-width: 320px; }
.t tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.cell-sub { display: block; font-size: 13px; color: var(--ink-4); }
.m-date { display: none; }
.empty { padding: 48px 16px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink-2); font-size: 16px; margin-bottom: 4px; }
.more { display: flex; justify-content: center; padding: 16px; }

/* 列表工具条 */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.sumline { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 12px 16px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.sumline b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 订单详情 ---------- */
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary > div { padding: 16px 20px; border-right: 1px solid var(--line-2); }
.summary > div:last-child { border-right: 0; }
.summary .k { font-size: 13px; color: var(--ink-3); }
.summary .v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; margin-top: 2px; }
.summary .s { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; padding: 20px; margin: 0; }
.dl div { min-width: 0; }
.dl dt { font-size: 13px; color: var(--ink-4); }
.dl dd { margin: 2px 0 0; word-break: break-word; white-space: pre-wrap; }
.dl .wide { grid-column: 1 / -1; }
.money-list .row { display: grid; grid-template-columns: 112px 140px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.money-list .row:last-child { border-bottom: 0; }
.money-list .amt { text-align: right; font-weight: 600; }
.money-list .amt.neg { color: var(--bad); }
.money-list .memo { min-width: 0; color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.money-list .ops { display: flex; gap: 4px; }
.money-list .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: #fafbfc; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--r2) var(--r2); font-size: 13px; color: var(--ink-3); }
.money-list .foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mform { display: grid; grid-template-columns: 150px 150px minmax(0, 1fr) 150px; gap: 12px; padding: 16px; background: #fafbfc; border-bottom: 1px solid var(--line-2); align-items: end; }
.mform.exp { grid-template-columns: 150px 140px 150px minmax(0, 1fr); }
.mform .actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.mform .actions .check { margin-right: auto; }
.logs { padding: 8px 0; }
.logs li { list-style: none; display: grid; grid-template-columns: 136px 56px minmax(0, 1fr); gap: 12px; padding: 8px 20px; font-size: 13px; color: var(--ink-2); }
.logs time { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.logs ul { margin: 0; padding: 0; }

/* ---------- 订单表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; padding: 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.lines-head, .line-row { display: grid; grid-template-columns: minmax(110px, 1.1fr) 88px 120px 120px minmax(100px, 1fr) minmax(140px, 1.6fr) 36px; gap: 8px; align-items: center; }
.lines-head { padding: 12px 20px 4px; font-size: 13px; color: var(--ink-3); }
.line-row { padding: 6px 20px; }
.line-row .input { width: 100%; }
.line-row .x { width: 36px; height: 36px; border: 0; background: transparent; color: var(--ink-4); border-radius: var(--r1); cursor: pointer; font-size: 20px; line-height: 1; }
.line-row .x:hover { background: var(--bad-soft); color: var(--bad); }
.line-row .lab { display: none; }
.lines-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px 20px; flex-wrap: wrap; }
.totals { display: flex; gap: 20px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.totals b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }
.err { color: var(--bad); font-size: 13px; }

/* 报表切换 */
.seg { display: inline-flex; padding: 3px; background: var(--line-2); border-radius: var(--r1); gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh1); font-weight: 600; }
.export { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 20px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 360px; padding: 32px 28px; box-shadow: var(--sh2); }
.login h1 { margin: 0; font-size: 20px; }
.login p { margin: 4px 0 24px; color: var(--ink-3); font-size: 13px; }
.login .seg { display: flex; margin-bottom: 16px; }
.login .seg button { flex: 1; height: 34px; font-size: 15px; }
.login .input { width: 100%; margin-bottom: 12px; }
.login .btn { width: 100%; height: 40px; }
.login .err { min-height: 20px; margin-bottom: 8px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--ink); color: #f6f7f9; padding: 10px 16px; border-radius: var(--r1); font-size: 13px; box-shadow: var(--sh2); z-index: 50; animation: tin .2s ease-out; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary > div:nth-child(2n) { border-right: 0; }
  .summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .mform, .mform.exp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mform .field.note { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 10; height: 52px; padding: 0 16px; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--line); }
  .topbar b { font-size: 15px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { padding: 12px 0; text-align: center; font-size: 13px; color: var(--ink-3); }
  .tabbar a.on { color: var(--brand); font-weight: 600; }
  .main { padding: 20px 16px 96px; }
  .head h1 { font-size: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 12px 14px; }
  .stat .v { font-size: 20px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .two > div { min-width: 0; }
  .bar-labels .mo { display: none; }
  .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .w-search { width: 100%; }
  .toolbar .grow { display: none; }
  .bars { gap: 4px; padding: 16px 12px 0; height: 140px; }
  .bar-labels { gap: 4px; padding: 8px 12px 12px; }
  .bar-labels b { display: none; }
}
@media (max-width: 640px) {
  .stats .stat:nth-child(3):last-child { grid-column: 1 / -1; }
  .dl, .form-grid { grid-template-columns: 1fr; }
  .money-list .row { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .money-list .row .d { order: 1; font-size: 13px; color: var(--ink-3); }
  .money-list .row .amt { order: 2; }
  .money-list .row .memo { order: 3; grid-column: 1 / -1; }
  .money-list .row .ops { order: 4; grid-column: 1 / -1; justify-content: flex-end; }
  .mform, .mform.exp { grid-template-columns: 1fr; }
  .logs li { grid-template-columns: 1fr; gap: 0; padding: 8px 16px; }
  .lines-head { display: none; }
  .line-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px; border-bottom: 1px solid var(--line-2); position: relative; }
  .line-row .lab { display: block; font-size: 13px; color: var(--ink-3); }
  .line-row label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .line-row label.full { grid-column: 1 / -1; }
  .line-row .x { position: absolute; right: 8px; top: 4px; }
  .line-row label:first-child { padding-right: 40px; }
  /* 订单表在手机上变卡片 */
  .t.cards thead { display: none; }
  .t.cards, .t.cards tbody, .t.cards tr, .t.cards td { display: block; width: 100%; }
  .t.cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .t.cards td { padding: 0; border: 0; }
  .t.cards td[data-k] { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 4px; }
  .t.cards td[data-k]::before { content: attr(data-k); color: var(--ink-4); }
  .t.cards td.r { text-align: right; }
  .t.cards .head-cell { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
  .t.cards tfoot { display: none; }
  .t.cards td.d-only, .t.cards td.m-hide { display: none; }
  .t.cards .m-date { display: inline; font-size: 13px; }
  .t.cards td[data-k] { align-items: center; padding-top: 2px; }
  .t.cards td[data-k] > span { text-align: right; min-width: 0; }
  .t.cards .cell-sub { display: inline; margin-left: 8px; }
}

/* ---------- 报表图表 ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis .stat .v { font-variant-numeric: normal; }
.vizs { display: flex; flex-direction: column; gap: 16px; }
.viz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.viz-head h3 { margin: 0; font-size: 15px; }
.viz-body { padding: 8px 12px 8px 4px; min-width: 0; }
.viz-body svg { display: block; }
.viz-pad { padding: 16px 20px 20px; }
.viz .grid { stroke: var(--line-2); stroke-width: 1; }
.viz .base { stroke: #c9ced6; stroke-width: 1; }
.viz .axis { fill: var(--ink-4); font-size: 12px; font-variant-numeric: tabular-nums; }
.viz .val { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.viz .hit { fill: transparent; }
.viz .band { outline: none; cursor: default; }
.viz .band path { transition: opacity .15s ease-out; }
.viz .band:hover path, .viz .band:focus-visible path { opacity: .8; }
.viz .band:focus-visible .hit { fill: var(--brand-soft); }
.viz .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz .dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.viz .xh { stroke: var(--ink-4); stroke-width: 1; opacity: 0; }
.viz .band:hover .xh, .viz .band:focus-visible .xh { opacity: .6; }
.viz .ref { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 4 4; }
.viz .ref-t { fill: var(--ink-3); font-size: 12px; }
.insight { margin: 0; padding: 12px 16px; background: var(--brand-soft); color: var(--brand-ink); border-radius: var(--r1); font-size: 15px; }
.rank { display: flex; flex-direction: column; gap: 2px; }
.rank-row { display: grid; grid-template-columns: minmax(72px, 32%) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 4px; border-radius: 6px; outline: none; }
.rank-row:hover, .rank-row:focus-visible { background: #f5f7fa; }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.rank-track { height: 14px; display: block; }
.rank-track i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; min-width: 2px; }
.rank-track i.other { background: #c9ced6; }
.rank-val { font-size: 13px; font-weight: 600; text-align: right; min-width: 64px; }
.rank-val .cell-sub { display: inline; margin-left: 6px; font-weight: 400; }
.share-bar { display: flex; gap: 2px; height: 12px; }
.share-bar i { display: block; height: 100%; min-width: 2px; outline: none; }
.share-bar i:first-child { border-radius: 6px 0 0 6px; }
.share-bar i:last-child { border-radius: 0 6px 6px 0; }
.share-bar i:hover, .share-bar i:focus-visible { opacity: .8; }
.share-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; }
.share-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 13px; }
.share-list li > i { width: 10px; height: 10px; border-radius: 3px; }
.share-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.viz-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r1); box-shadow: var(--sh2); padding: 10px 12px; font-size: 13px; min-width: 150px; }
.viz-tip .tt { color: var(--ink-3); margin-bottom: 4px; }
.viz-tip .tr { display: flex; justify-content: space-between; gap: 16px; line-height: 1.7; }
.viz-tip .tr b { order: 2; color: var(--ink); font-variant-numeric: tabular-nums; }
.viz-tip .tr span { order: 1; color: var(--ink-3); }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .share-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viz-pad { padding: 12px 16px 16px; }
}
@media (max-width: 640px) {
  .share-list { grid-template-columns: 1fr; }
}
