/* ============================================================
   设计系统：配色取自平台 logo（蝴蝶小兽）
   可可棕 = logo 描边，丁香紫 = 身体，薄荷/粉/奶黄 = 翅膀，橙 = 背景光
   ============================================================ */
:root {
  color-scheme: light;
  --ink: #3a2a2f;          /* 主文字：logo 描边可可棕 */
  --ink-2: #76646c;        /* 次级文字 */
  --ink-3: #a79aa1;        /* 弱提示 */
  --bg: #f6f4fb;           /* 页面底色：带紫调的白 */
  --panel: #ffffff;
  --sunk: #faf8fd;         /* 表头、输入框组前缀 */
  --line: #ece7f3;
  --line-2: #ddd5ea;       /* 输入框边框 */
  --violet: #6c4fe0;       /* 主操作 */
  --violet-2: #5a3fcc;
  --violet-soft: #efeafd;
  --orange: #f29a0e;       /* 金额 */
  --mint: #2fae9d;         /* 成功 */
  --mint-soft: #e2f7f3;
  --rose: #e0457b;         /* 失败 / 危险 */
  --rose-soft: #fde8f0;
  --butter: #fbe58a;
  --amber: #a8700f;        /* 待处理文字 */
  --amber-soft: #fef5d6;
  --grey-soft: #f1eef4;
  --shadow-pop: 0 12px 40px rgba(58, 42, 47, .16);
  --r-sm: 8px; --r: 10px; --r-lg: 16px; --r-xl: 22px;
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "HarmonyOS Sans SC", var(--font);
  --mono: "Cascadia Mono", Consolas, Menlo, monospace;
  --side-w: 248px;
}
html.dark {
  color-scheme: dark;
  --ink: #efe8f3; --ink-2: #b3a6b9; --ink-3: #7f7486;
  --bg: #17141c; --panel: #211c28; --sunk: #1c1823;
  --line: #312a3a; --line-2: #433a4f;
  --violet: #9d86ff; --violet-2: #b3a1ff; --violet-soft: #2c2547;
  --orange: #ffb340;
  --mint: #5fd6c4; --mint-soft: #193631;
  --rose: #ff7aa6; --rose-soft: #3a1d2a;
  --amber: #f3c869; --amber-soft: #352b14;
  --grey-soft: #2b2532;
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; flex-shrink: 0; }
a { color: var(--violet); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.money { font-family: var(--num); font-variant-numeric: tabular-nums; color: var(--orange); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
::selection { background: var(--violet-soft); }

/* ---------------- 登录页 ---------------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.1fr) 1fr; background: var(--panel); }
.login-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 48px;
  /* 与 logo 背景一致的橙色放射光 */
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 246, 214, .95) 0, rgba(255, 220, 120, .55) 22%, transparent 55%),
    repeating-conic-gradient(from 0deg at 50% 46%, #ffc23d 0deg 7deg, #ffb21f 7deg 14deg),
    #ffb21f;
}
.login-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, transparent 40%, rgba(242, 130, 10, .35) 100%); pointer-events: none; }
.login-art > * { position: relative; z-index: 1; }
.sticker { border-radius: 28%; border: 5px solid #fff; box-shadow: 0 0 0 3px rgba(58, 42, 47, .12), 0 18px 40px rgba(140, 70, 0, .3); object-fit: cover; background: #fff; }
.login-art .sticker { width: 168px; height: 168px; transform: rotate(-4deg); }
.login-art h2 { font-size: 26px; font-weight: 700; color: #3a2a2f; letter-spacing: .02em; }
.login-art p { color: rgba(58, 42, 47, .78); font-size: 15px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: 360px; max-width: 100%; }
.login-box h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.login-box .lead { color: var(--ink-2); margin-bottom: 32px; }
.login-box .inp { height: 44px; border-radius: 12px; }
.login-box .btn { height: 46px; border-radius: 12px; font-size: 15px; margin-top: 8px; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 36px 24px 30px; gap: 12px; }
  .login-art .sticker { width: 96px; height: 96px; border-width: 4px; }
  .login-art h2 { font-size: 20px; }
  .login-art p { display: none; }
}

/* ---------------- 表单 ---------------- */
.fi { margin-bottom: 18px; }
.fi > label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; }
.fi .tip { color: var(--rose); font-size: 12px; font-weight: 400; }
.fi .hint { color: var(--ink-3); font-size: 12px; margin-top: 6px; line-height: 1.6; }
.inp, .sel {
  height: 36px; width: 100%; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--panel); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.inp { height: auto; min-height: 84px; padding: 9px 12px; resize: vertical; line-height: 1.6; }
.inp:hover, .sel:hover { border-color: #c9bde0; }
.inp:focus, .sel:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.inp:disabled { background: var(--sunk); color: var(--ink-3); cursor: not-allowed; }
.inp::placeholder { color: var(--ink-3); }
.sel { width: auto; min-width: 120px; padding: 0 30px 0 12px; cursor: pointer; appearance: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a79aa1' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
select.inp { appearance: none; padding-right: 30px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a79aa1' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
.chk { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; cursor: pointer; color: var(--ink); font-weight: 400; }
.chk input { width: 16px; height: 16px; accent-color: var(--violet); }
.form { max-width: 560px; }

/* ---------------- 按钮 ---------------- */
.btn {
  height: 36px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; font-size: 14px; font-weight: 500;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { border-color: #c9bde0; background: var(--sunk); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.primary:hover { background: var(--violet-2); border-color: var(--violet-2); }
.btn.purple { background: var(--ink); border-color: var(--ink); color: var(--panel); }   /* 新建类操作：可可棕 */
.btn.purple:hover { opacity: .88; }
.btn.warn { background: var(--butter); border-color: #f2d35f; color: #5b4310; }
.btn.warn:hover { background: #f8dc6b; }
.btn.danger { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--violet-soft); color: var(--violet); }
.btn.sm { height: 28px; padding: 0 11px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn.lg { height: 42px; padding: 0 22px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.link { color: var(--violet); cursor: pointer; background: none; border: none; margin-right: 14px; font-size: 13px; font-weight: 500; padding: 2px 0; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--rose); }
.icon-btn { background: none; border: none; cursor: pointer; padding: 7px; border-radius: var(--r); color: var(--ink-2); display: inline-flex; }
.icon-btn:hover { background: var(--violet-soft); color: var(--violet); }

/* ---------------- 布局 ---------------- */
.layout { display: flex; height: 100vh; }
.side { width: var(--side-w); flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: width .2s ease; overflow: hidden; z-index: 40; }
.side.col { width: 76px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 18px; }
.brand .sticker { width: 46px; height: 46px; border-width: 3px; box-shadow: 0 0 0 2px var(--butter), 0 4px 12px rgba(242, 154, 14, .25); flex-shrink: 0; }
.brand .name { font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .role { font-size: 12px; color: var(--ink-3); }
.side.col .brand { padding: 20px 0 18px; justify-content: center; }
.side.col .brand-text, .side.col .mt, .side.col .arrow, .side.col .sub, .side.col .side-foot { display: none; }
nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.mi { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; margin: 2px 0; border-radius: var(--r); cursor: pointer; user-select: none; color: var(--ink-2); font-weight: 500; transition: background .12s, color .12s; }
.mi svg { color: var(--ink-3); }
.mi:hover { background: var(--sunk); color: var(--ink); }
.mi.on { background: var(--violet-soft); color: var(--violet); }
.mi.on svg { color: var(--violet); }
.mi.grp-on { color: var(--ink); }
.mi.grp-on svg { color: var(--violet); }
.mi .arrow { margin-left: auto; transition: transform .2s; color: var(--ink-3); }
.mi .arrow.closed { transform: rotate(180deg); }
.sub { position: relative; margin: 0 0 6px 20px; padding-left: 10px; border-left: 1.5px solid var(--line); }
.sub .mi { height: 38px; font-weight: 400; font-size: 13.5px; }
.sub .mi.on { font-weight: 600; }
.side.col nav { padding: 4px 14px; }
.side.col .mi { justify-content: center; padding: 0; }
.side-foot { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 24px 0 16px; flex-shrink: 0; background: var(--bg); }
.top .title { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.top .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #3a2a2f; background: linear-gradient(135deg, #b5eee6, #cdbef5); }
.content { flex: 1; overflow: auto; padding: 4px 24px 32px; }
.backdrop { display: none; }

/* ---------------- 面板 ---------------- */
.surface { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.surface.pad { padding: 24px; }
.panel-hd { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
.panel-hd .spacer { flex: 1; }
.panel-bd { padding: 20px; }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }

/* ---------------- 表格 ---------------- */
.sums { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sum { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.sum b { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 600; color: var(--ink); }
.sum.hl b { color: var(--orange); }
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.bar .spacer { flex: 1; }
.group { display: flex; }
.group .sel { border-radius: var(--r) 0 0 var(--r); border-right: none; min-width: 112px; background-color: var(--sunk); }
.group .inp { border-radius: 0 var(--r) var(--r) 0; width: 220px; }
.daterange { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); color: var(--ink-3); }
.daterange:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.daterange input { border: none; outline: none; background: transparent; width: 128px; color: var(--ink); }
.tbl-wrap { overflow-x: auto; position: relative; }
.tbl-wrap.busy table { opacity: .5; transition: opacity .15s; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { position: sticky; top: 0; z-index: 1; background: var(--sunk); color: var(--ink-2); font-weight: 500; font-size: 13px; text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fbfaff; }
html.dark tbody tr:hover td { background: #26202e; }
td.n, th.n { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; }
/* 操作列固定在右侧，横向滚动时也能点到 */
th.act, td.act { position: sticky; right: 0; background: var(--panel); box-shadow: -8px 0 12px -10px rgba(58, 42, 47, .25); }
th.act { background: var(--sunk); z-index: 2; }
tbody tr:hover td.act { background: #fbfaff; }
html.dark tbody tr:hover td.act { background: #26202e; }
.sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--grey-soft) 0, var(--line) 50%, var(--grey-soft) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { padding: 56px 20px 60px; text-align: center; color: var(--ink-2); }
.empty svg { margin: 0 auto 16px; }
.empty .t { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.empty .d { font-size: 13px; color: var(--ink-3); }
.tfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); }
.pager { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; flex-wrap: wrap; }
.pager .sel { height: 32px; min-width: 104px; }
.pg { min-width: 32px; height: 32px; padding: 0 6px; border: none; background: transparent; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2); font-family: var(--num); font-variant-numeric: tabular-nums; }
.pg:hover:not(:disabled) { background: var(--violet-soft); color: var(--violet); }
.pg.on { background: var(--violet); color: #fff; font-weight: 600; }
.pg:disabled { opacity: .35; cursor: not-allowed; }

/* ---------------- 标签 ---------------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 24px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.tag.plain::before { display: none; }
.t-g { color: var(--mint); background: var(--mint-soft); }
.t-o { color: var(--amber); background: var(--amber-soft); }
.t-r { color: var(--rose); background: var(--rose-soft); }
.t-b { color: var(--violet); background: var(--violet-soft); }
.t-x { color: var(--ink-2); background: var(--grey-soft); }
.tag.lg { height: 30px; padding: 0 14px; font-size: 13px; }

/* ---------------- 首页：钱包卡（唯一的大胆元素） ---------------- */
.wallet {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px 28px; color: #3a2a2f;
  background: linear-gradient(118deg, #f9c6dc 0%, #d9c9f7 46%, #b8eee6 100%);
}
.wallet::after { /* 翅膀状的半透明光斑 */
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 190, .85), rgba(255, 245, 190, 0) 70%); pointer-events: none;
}
.wallet > * { position: relative; z-index: 1; }
.wallet .who { display: flex; align-items: center; gap: 12px; }
.wallet .who .avatar { width: 40px; height: 40px; font-size: 16px; background: rgba(255, 255, 255, .7); }
.wallet .acc { font-size: 17px; font-weight: 700; }
.wallet .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.wallet .chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.wallet .bal { margin-top: 26px; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.wallet .bal small { font-size: 20px; margin-right: 4px; font-weight: 500; }
.wallet .bal-l { font-size: 13px; color: rgba(58, 42, 47, .7); margin-top: 8px; }
.wallet .acts { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.wallet .btn { border: none; }
.wallet .btn.dark { background: #3a2a2f; color: #fff; }
.wallet .btn.dark:hover { background: #4b383e; }
.wallet .btn.light { background: rgba(255, 255, 255, .72); color: #3a2a2f; }
.wallet .btn.light:hover { background: #fff; }
.wallet .side-info { position: absolute; right: 28px; bottom: 26px; text-align: right; font-size: 12px; color: rgba(58, 42, 47, .7); line-height: 1.8; z-index: 1; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--sunk); color: var(--ink); text-decoration: none; font-weight: 500; border: 1px solid transparent; }
.quick a:hover { border-color: var(--line-2); background: var(--panel); }
.quick .qi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: none; background: none; padding: 5px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(58, 42, 47, .12); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 22px 24px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: none; }
.metric .k { font-size: 13px; color: var(--ink-2); }
.metric .v { margin-top: 8px; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 600; line-height: 1.1; }
.metric .v.money { color: var(--orange); }
.metric.alert { background: var(--amber-soft); }
.metric.alert .v { color: var(--amber); }
.metrics.m4x2 { grid-template-columns: repeat(4, 1fr); }
.metrics.m4x2 .metric:nth-child(n+5) { border-top: 1px solid var(--line); }
.metrics.m4x2 .metric:nth-child(4n+1) { border-left: none; }
.notice { display: block; width: 100%; text-align: left; background: none; border: none; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.notice:last-child { border-bottom: none; }
.notice .tt { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice:hover .tt { color: var(--violet); }
.notice .tm { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.prewrap { white-space: pre-wrap; line-height: 1.85; }
.chart-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; background: none; border: none; }
.chart-legend .lg i { width: 10px; height: 10px; border-radius: 3px; }
.chart-legend .lg.off { opacity: .35; }

/* ---------------- 弹窗 / 提示 ---------------- */
.mask { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 9vh 16px 24px; overflow: auto; background: rgba(40, 26, 46, .42); backdrop-filter: blur(3px); animation: fade .16s ease-out; }
.modal { width: 480px; max-width: 100%; background: var(--panel); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: 720px; }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 20px 24px 4px; }
.modal h3 { font-size: 17px; font-weight: 700; flex: 1; }
.modal .mb { padding: 16px 24px 4px; }
.modal .ft { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 24px 22px; }
.kv { width: 100%; margin-bottom: 12px; }
.kv td { padding: 8px 0; border: none; white-space: normal; word-break: break-all; vertical-align: top; }
.kv td:first-child { width: 110px; color: var(--ink-3); }
.kv tr:hover td { background: none !important; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--panel); color: var(--ink); border-radius: 999px; box-shadow: var(--shadow-pop); font-weight: 500; max-width: 90vw; animation: drop .2s ease-out; }
.toast i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--mint); font-style: normal; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.toast.err i { background: var(--rose); }
.toast.out { opacity: 0; transform: translateY(-6px); transition: .2s; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .metrics, .metrics.m4x2 { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(odd) { border-left: none; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metrics.m4x2 .metric:nth-child(4n+1) { border-left: none; }
  .metrics.m4x2 .metric:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .22s ease; width: var(--side-w) !important; box-shadow: var(--shadow-pop); }
  .side.open { transform: none; }
  .side.col .brand-text, .side.col .mt, .side.col .arrow, .side.col .sub, .side.col .side-foot { display: revert; }
  .side.col .mi { justify-content: flex-start; padding: 0 12px; }
  .backdrop.show { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(40, 26, 46, .35); }
  .top { padding: 0 14px 0 8px; }
  .user-chip span { display: none; }
  .content { padding: 4px 12px 24px; }
  .grid { grid-template-columns: 1fr !important; }
  .group .inp { width: 150px; }
  .wallet .side-info { position: static; text-align: left; margin-top: 16px; }
  .wallet .bal { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
