/* ============================================================
   吞金巨兽 · Gold Devourer — 计分分润系统原型 v0.2
   设计规范见 docs/01-UI设计规范.md（本文档是其唯一落地）
   v0.2：贵金属质感升级 —— 分层亮度、微噪点、Fraunces 衬线、
        行情跑马灯、图表生长动画、实时交易流
   ============================================================ */

:root {
  /* 底色（三层亮度阶梯） */
  --bg0: #07080B;
  --bg1: #0B0D12;
  --panel: #10131A;
  --panel2: #151924;
  --line: rgba(255, 255, 255, .055);
  --line2: rgba(255, 255, 255, .10);

  /* 文字 */
  --text: #ECE8DC;
  --dim: #9AA1AD;
  --faint: #5E6572;

  /* 金（v0.3 金属拉丝质感） */
  --gold: #C9A227;
  --gold-b: #EBC65C;
  --gold-d: #8F6F1A;
  --gold-grad: linear-gradient(105deg, #8A6A1F 0%, #C9A227 18%, #F5E07B 38%, #D9AE3B 55%, #9A7A22 78%, #C9A227 100%);
  --gold-text-grad: linear-gradient(100deg, #F5E07B 0%, #E4BC4E 48%, #C9A227 100%);

  /* 语义 */
  --up: #2FBF8F;
  --down: #E5484D;
  --warn: #E8A13C;
  --info: #5B8DEF;

  /* 字体 */
  --sans: "Noto Sans SC", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Cinzel", "Fraunces", Georgia, "Songti SC", "SimSun", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --gap: 10px;
  --gap2: 14px;
  --r: 12px;
  --r-s: 8px;
  --side-w: 240px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);
  --glow-gold: 0 0 24px rgba(201, 162, 39, .18);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(1200px 560px at 80% -10%, rgba(212, 170, 54, .08), transparent 62%),
    radial-gradient(900px 480px at -12% 108%, rgba(143, 111, 26, .055), transparent 55%),
    var(--bg0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* 微噪点颗粒 —— 全站质感层 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999;
  background-image: var(--grain);
  opacity: .05; pointer-events: none; mix-blend-mode: overlay;
}

a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
img { display: block; }

::selection { background: rgba(201, 162, 39, .28); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #222836; border-radius: 6px; border: 2px solid var(--bg0); }
::-webkit-scrollbar-thumb:hover { background: #3A3F2B; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: var(--glow-gold); }

/* ---------- 工具类 ---------- */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.up   { color: var(--up); }
.down { color: var(--down); }
.gold { color: var(--gold-b); }
.dim  { color: var(--dim); }
.faint{ color: var(--faint); }
.tac { text-align: center; }
.tar { text-align: right; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mt24 { margin-top: 24px; }
.hidden { display: none !important; }

/* 金质文字（仅用于「钱」的强调时刻） */
.gold-text {
  background: var(--gold-text-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* 微标签（卡眉/表头） */
.lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* 幽灵水印（总览背景的贵金属签名） */
.ghost {
  position: absolute; top: 6px; right: 24px; z-index: 0;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 88px); letter-spacing: .16em;
  text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 1px rgba(235, 198, 92, .09);
  pointer-events: none; user-select: none; white-space: nowrap;
}

/* ============================================================
   应用壳
   ============================================================ */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; position: relative; }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent 40%), var(--bg0);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  z-index: 30;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 22px; }

.brand .logo {
  width: 44px; height: 44px; border-radius: 13px;
  border: 1px solid rgba(201, 162, 39, .35);
  background: #000;
  overflow: hidden; flex: none;
  box-shadow: 0 0 22px rgba(201, 162, 39, .16), 0 0 0 1px rgba(0, 0, 0, .6) inset;
}
.brand .logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.brand .name { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: .08em; line-height: 1.15; }
.brand .sub { font-size: 9px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-top: 3px; }

.nav { flex: 1; display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }

.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-s);
  color: var(--dim); font-size: 13.5px; font-weight: 500;
  position: relative; transition: color .18s, background .18s, transform .18s;
}
.nav a .ic { width: 17px; height: 17px; flex: none; transition: transform .18s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .035); text-decoration: none; }
.nav a:hover .ic { transform: translateX(2px); }
.nav a.on {
  color: var(--gold-b);
  background: linear-gradient(90deg, rgba(201, 162, 39, .14), rgba(201, 162, 39, .02) 70%);
}
.nav a.on::before {
  content: ""; position: absolute; left: -14px; top: 22%; bottom: 22%; width: 3px;
  background: var(--gold-grad); border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(201, 162, 39, .5);
}
.nav .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px rgba(232, 161, 60, .7); }

.nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }

.side-foot {
  border-top: 1px solid var(--line);
  padding: 14px 6px 0;
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--gold-grad);
  display: grid; place-items: center;
  color: #171206; font-weight: 700; font-size: 13px;
  box-shadow: 0 0 14px rgba(201, 162, 39, .25);
}
.side-foot .who { min-width: 0; }
.side-foot .who b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { display: block; font-size: 11px; color: var(--faint); }
.side-foot .ic { margin-left: auto; width: 16px; height: 16px; color: var(--faint); cursor: pointer; transition: color .15s, transform .15s; }
.side-foot .ic:hover { color: var(--text); transform: translateX(2px); }

/* ---------- 主区 ---------- */
.main { display: flex; flex-direction: column; min-width: 0; position: relative; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
  background: rgba(7, 8, 11, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.topbar .crumb { font-size: 11px; color: var(--faint); margin-top: -1px; }

.topbar .search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; width: 240px;
  color: var(--faint); font-size: 12.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.topbar .search:focus-within { border-color: var(--gold); box-shadow: var(--glow-gold); background: rgba(201, 162, 39, .04); }
.topbar .search input { background: none; border: none; outline: none; color: var(--text); font: inherit; width: 100%; }
.topbar .search .ic { width: 14px; height: 14px; }

.countdown { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.countdown b { font-family: var(--mono); font-weight: 600; color: var(--gold-b); font-size: 12.5px; }
.countdown .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(201, 162, 39, .8); animation: pulse 2s infinite; }

.iconbtn {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  display: grid; place-items: center; color: var(--dim); cursor: pointer;
  transition: border-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.iconbtn:hover { border-color: rgba(201, 162, 39, .45); color: var(--gold-b); box-shadow: var(--glow-gold); transform: translateY(-1px); }
.iconbtn .ic { width: 15px; height: 15px; }
.iconbtn .badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--down);
  color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
  box-shadow: 0 0 8px rgba(229, 72, 77, .6);
}

.content { padding: 18px 24px 48px; width: 100%; max-width: 1440px; margin: 0 auto; position: relative; }

/* ---------- 仅核算横幅 ---------- */
.notice {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 9px 14px;
  background: linear-gradient(90deg, rgba(201, 162, 39, .08), rgba(201, 162, 39, .02));
  border: 1px solid rgba(201, 162, 39, .22); border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 12.5px; color: var(--dim);
}
.notice b { color: var(--gold-b); font-weight: 600; }
.notice .ic { width: 14px; height: 14px; color: var(--gold); flex: none; }
.notice .x { margin-left: auto; cursor: pointer; color: var(--faint); width: 14px; height: 14px; flex: none; transition: color .15s, transform .15s; }
.notice .x:hover { color: var(--text); transform: rotate(90deg); }

/* ---------- 视图切换（过渡动画） ---------- */
.view { display: none; }
.view.on { display: block; animation: viewIn .38s cubic-bezier(.22, .8, .3, 1) both; }
.tabpane { display: none; }
.tabpane.on { display: block; animation: viewIn .3s ease both; }

/* ============================================================
   行情跑马灯（签名动态元素）
   ============================================================ */
.tape {
  position: relative; overflow: hidden;
  margin-bottom: 14px; padding: 8px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .015) 30%, rgba(255, 255, 255, .015) 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tape-track { display: flex; gap: 34px; width: max-content; animation: marquee 36s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item {
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; cursor: default;
}
.tape-item .tp { color: var(--dim); font-weight: 600; letter-spacing: .04em; }
.tape-item .px { color: var(--text); font-variant-numeric: tabular-nums; transition: color .2s; }
.tape-item .pc { font-size: 11px; font-variant-numeric: tabular-nums; }
.tape-item.tick-up .px { color: var(--up); }
.tape-item.tick-down .px { color: var(--down); }
.tape-item.tick-up .px::after { content: "▲"; font-size: 9px; margin-left: 5px; }
.tape-item.tick-down .px::after { content: "▼"; font-size: 9px; margin-left: 5px; }

/* ============================================================
   网格与舱
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.gap14 { gap: var(--gap2); }

.s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.s7 { grid-column: span 7; } .s8 { grid-column: span 8; }
.s9 { grid-column: span 9; } .s12 { grid-column: span 12; }

.p {
  position: relative;
  background: linear-gradient(180deg, #12151D 0%, var(--panel) 42%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 15px;
}
.ph { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ph h2 {
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  display: flex; align-items: center; gap: 9px;
}
.ph h2::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: var(--gold-grad); box-shadow: 0 0 8px rgba(201, 162, 39, .4);
}
.ph .lbl { margin-top: 1px; }
.ph .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap2); }

.kpi {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #12151D 0%, var(--panel) 45%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 15px 17px;
  transition: transform .25s cubic-bezier(.22, .8, .3, 1), border-color .25s, box-shadow .25s;
}
.kpi:hover { transform: translateY(-2px); border-color: rgba(201, 162, 39, .3); box-shadow: var(--shadow), var(--glow-gold); }
.kpi .lbl { display: block; }
.kpi .v {
  font-family: var(--serif); font-size: 29px; font-weight: 700; line-height: 1.14;
  margin-top: 7px; letter-spacing: .03em; font-variant-numeric: tabular-nums;
}
.kpi .v small { font-size: 14px; color: var(--faint); font-family: var(--sans); font-weight: 500; margin-left: 4px; }
/* 金质金额 KPI（钱 = 金，盈亏仍是语义色） */
.kpi.money .v {
  background: var(--gold-text-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.kpi .d { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; color: var(--dim); }
.kpi .d .chip { margin-left: auto; }
.kpi .spark { position: absolute; right: 12px; bottom: 12px; opacity: .95; }
.kpi.accent { border-color: rgba(201, 162, 39, .32); }
.kpi.accent::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 85% 0%, rgba(201, 162, 39, .12), transparent 55%);
  pointer-events: none;
}

/* ---------- 结算金条（签名元素 1 · v0.3 金条账本） ---------- */
.goldstrip {
  position: relative; z-index: 1;
  background: var(--gold-grad);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 244, 200, .55),
    inset 0 -5px 12px rgba(74, 53, 8, .55),
    0 18px 48px rgba(0, 0, 0, .5);
  padding: 18px 26px 16px;
  display: flex; align-items: center; gap: 26px;
  overflow: hidden;
  color: #231A08;
}
.goldstrip::before {
  content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 220, .95), transparent);
  pointer-events: none;
}
.goldstrip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 130px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .22), transparent);
  animation: shimmer 5.5s ease-in-out infinite;
  pointer-events: none;
}
.goldstrip .lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.goldstrip .lead .tag {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #231A08;
  border: 1px solid rgba(35, 26, 8, .4); border-radius: 999px; padding: 3px 9px; flex: none;
  background: rgba(255, 255, 255, .18);
}
.goldstrip .lead .t { font-size: 12px; color: rgba(35, 26, 8, .62); }
.goldstrip .lead .v {
  font-family: var(--serif); font-size: 31px; font-weight: 700; line-height: 1.08;
  font-variant-numeric: tabular-nums; color: #1A1305;
  text-shadow: 0 1px 0 rgba(255, 244, 200, .45); /* 阴刻立体 */
}
.goldstrip .cell { padding-left: 24px; border-left: 1px solid rgba(35, 26, 8, .28); }
.goldstrip .cell .t { font-size: 11.5px; color: rgba(35, 26, 8, .6); }
.goldstrip .cell .v {
  font-family: var(--mono); font-size: 17px; font-weight: 600; margin-top: 2px;
  font-variant-numeric: tabular-nums; color: #1A1305;
  text-shadow: 0 1px 0 rgba(255, 244, 200, .4);
}
.goldstrip .note { margin-left: auto; font-size: 11px; color: rgba(35, 26, 8, .62); text-align: right; line-height: 1.5; padding-bottom: 10px; }
.goldstrip .note b { color: rgba(35, 26, 8, .9); font-weight: 600; }
/* 金条印章 */
.goldstrip .stamp {
  position: absolute; right: 20px; bottom: 6px;
  font-family: var(--serif); font-size: 9px; font-weight: 600; letter-spacing: .38em;
  color: rgba(35, 26, 8, .42); text-shadow: 0 1px 0 rgba(255, 244, 200, .4);
  pointer-events: none; text-transform: uppercase; white-space: nowrap;
}

/* ---------- 图表 ---------- */
.chartbox { position: relative; flex: 1; min-height: 210px; }
.chartbox .sk { width: 100%; height: 100%; min-height: 210px; }
.chartpanel { display: flex; flex-direction: column; }
.chart { display: block; }
.chart-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.chart-stats .lbl { display: block; margin-bottom: 5px; }
.chart-stats .v { font-family: var(--mono); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.chart .bar-up { fill: var(--up); }
.chart .bar-down { fill: var(--down); }
.chart .grid-line { stroke: rgba(255, 255, 255, .06); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .grid-line.zero { stroke: rgba(255, 255, 255, .14); }
.chart .axis { fill: var(--faint); font-family: var(--mono); font-size: 10px; }
.chart .avg { stroke: var(--gold); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.chart .area-gold { fill: url(#gradGold); stroke: var(--gold-b); stroke-width: 1.6; }
.chart .dot { fill: var(--gold-b); }
.chart .dot-halo { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .5; animation: pulse 2s infinite; }
.chart .cross { stroke: rgba(235, 198, 92, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .today-glow { fill: rgba(235, 198, 92, .13); animation: pulse 2.4s infinite; }
.today-badge .badge-bg { fill: rgba(16, 19, 26, .92); stroke: rgba(235, 198, 92, .5); stroke-width: 1; }
.today-badge .badge-txt { font-family: var(--mono); font-size: 10.5px; font-weight: 600; fill: var(--gold-b); }
.today-badge .badge-txt.up { fill: var(--up); }
.today-badge .badge-txt.down { fill: var(--down); }

/* 柱状生长动画 */
.chart rect.bar { transform-box: fill-box; transform-origin: center bottom; animation: barRise .7s cubic-bezier(.22, .8, .3, 1) both; animation-delay: calc(var(--i) * 34ms); }
.chart .avg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.5s ease .35s forwards; }
.chart .bar { transition: filter .12s; }
.chart .bar.hot { filter: brightness(1.35) saturate(1.15); }
.chart .bar.today { stroke: rgba(235, 198, 92, .85); stroke-width: 1.1; }

.chart-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: rgba(16, 19, 26, .94); backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: 8px; padding: 7px 11px;
  font-size: 11.5px; color: var(--dim); white-space: nowrap;
  box-shadow: var(--shadow-lg), var(--glow-gold);
  opacity: 0; transform: translate(-50%, -110%);
  transition: opacity .15s;
}
.chart-tip.on { opacity: 1; }
.chart-tip b { display: block; font-family: var(--mono); font-weight: 600; color: var(--text); font-size: 13px; }
.chart-tip .up, .chart-tip .down { font-family: var(--mono); font-weight: 600; }

.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--dim); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 1px; }
.legend .l1 i { background: var(--up); }
.legend .l2 i { background: var(--down); }
.legend .l3 i { background: var(--gold); box-shadow: 0 0 6px rgba(201, 162, 39, .5); }

/* ---------- 表格 ---------- */
.tblwrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 640px; }
.tbl th {
  text-align: left; font-weight: 600; padding: 8px 10px;
  color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(201, 162, 39, .035); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.tbl .user { display: flex; align-items: center; gap: 9px; }
.tbl .user .av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, #1B2029, #141821);
  border: 1px solid var(--line2);
  display: grid; place-items: center; font-size: 11px; color: var(--dim); font-weight: 600;
}
.tbl .user b { font-weight: 600; display: block; line-height: 1.3; }
.tbl .user span { font-size: 11px; color: var(--faint); }
.tbl .pair { font-family: var(--mono); font-size: 12.5px; }
.tbl .dir { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.tbl .dir.l { color: var(--up); } .tbl .dir.s { color: var(--down); }
.tbl .rowerr td { background: rgba(229, 72, 77, .055); }
.tbl .live {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-right: 6px; animation: pulse 1.6s infinite; vertical-align: 1px;
  box-shadow: 0 0 8px rgba(201, 162, 39, .8);
}
.tbl td.wrap { white-space: normal; max-width: 240px; font-size: 11.5px; line-height: 1.5; }

.tfoot { display: flex; align-items: center; gap: 12px; padding-top: 12px; font-size: 12px; color: var(--faint); }
.pager { margin-left: auto; display: flex; gap: 4px; }
.pager button {
  min-width: 28px; height: 28px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02);
  color: var(--dim); font-size: 12px; cursor: pointer; font-family: var(--mono);
  transition: border-color .15s, color .15s, background .15s;
}
.pager button:hover { border-color: var(--line2); color: var(--text); }
.pager button.on { border-color: var(--gold); color: var(--gold-b); background: rgba(201, 162, 39, .1); box-shadow: 0 0 10px rgba(201, 162, 39, .15); }

/* ---------- chips / 按钮 / 开关 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; line-height: 1;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.chip.ok   { color: var(--up);   background: rgba(47, 191, 143, .09);  border-color: rgba(47, 191, 143, .28);  box-shadow: 0 0 10px rgba(47, 191, 143, .08) inset; }
.chip.warn { color: var(--warn); background: rgba(232, 161, 60, .09);  border-color: rgba(232, 161, 60, .28);  box-shadow: 0 0 10px rgba(232, 161, 60, .08) inset; }
.chip.err  { color: var(--down); background: rgba(229, 72, 77, .09);  border-color: rgba(229, 72, 77, .28);  box-shadow: 0 0 10px rgba(229, 72, 77, .08) inset; }
.chip.gold { color: var(--gold-b); background: rgba(201, 162, 39, .1); border-color: rgba(201, 162, 39, .36); box-shadow: 0 0 10px rgba(201, 162, 39, .1) inset; }
.chip.dim  { color: var(--faint); background: rgba(255, 255, 255, .03); border-color: var(--line2); }
.chip.info { color: var(--info); background: rgba(91, 141, 239, .09); border-color: rgba(91, 141, 239, .28); box-shadow: 0 0 10px rgba(91, 141, 239, .08) inset; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 16px;
  border-radius: var(--r-s); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: filter .18s, border-color .18s, color .18s, box-shadow .18s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 14px; height: 14px; }

.btn.gold {
  background: var(--gold-grad); color: #171206;
  text-shadow: 0 1px 0 rgba(255, 244, 200, .4);
  box-shadow:
    0 2px 14px rgba(201, 162, 39, .3),
    0 1px 0 rgba(255, 255, 255, .35) inset,
    inset 0 -2px 3px rgba(90, 64, 10, .5);
}
.btn.gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .45s ease;
}
.btn.gold:hover { filter: brightness(1.07); }
.btn.gold:hover::after { left: 130%; }
.btn.ghost { background: rgba(255, 255, 255, .02); border-color: var(--line2); color: var(--dim); }
.btn.ghost:hover { color: var(--text); border-color: var(--faint); background: rgba(255, 255, 255, .04); }
.btn.danger { background: transparent; border-color: rgba(229, 72, 77, .4); color: var(--down); }
.btn.danger:hover { border-color: var(--down); background: rgba(229, 72, 77, .06); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn.link { background: none; border: none; color: var(--gold-b); padding: 0; height: auto; font-size: 12.5px; font-weight: 500; }
.btn.link:hover { text-decoration: underline; }

/* 小开关 */
.sw {
  position: relative; width: 34px; height: 19px; border-radius: 999px;
  background: var(--line2); border: 1px solid var(--line2);
  cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s;
  flex: none;
}
.sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #7A8290; transition: left .18s, background .18s, box-shadow .18s;
}
.sw.on { background: rgba(201, 162, 39, .32); border-color: var(--gold); }
.sw.on::after { left: 17px; background: var(--gold-b); box-shadow: 0 0 8px rgba(235, 198, 92, .7); }

/* 跟单总开关（签名元素 2） */
.master {
  display: flex; align-items: center; gap: 22px;
  background:
    radial-gradient(90% 120% at 88% 50%, rgba(201, 162, 39, .12), transparent 62%),
    linear-gradient(180deg, #12151D, var(--panel) 46%);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.master .info .lbl { display: block; margin-bottom: 8px; }
.master .info h2 { font-size: 18px; font-weight: 600; }
.master .info .st { font-size: 13px; color: var(--dim); margin-top: 4px; }
.master .info .st b { font-family: var(--mono); font-weight: 600; color: var(--gold-b); }
.master .info .risk { font-size: 11.5px; color: var(--faint); margin-top: 10px; max-width: 420px; line-height: 1.55; }

.msw {
  position: relative; width: 118px; height: 54px; border-radius: 999px;
  background: linear-gradient(180deg, #1A1E28, #141821);
  border: 1px solid var(--line2);
  cursor: pointer; flex: none;
  transition: background .28s, border-color .28s, box-shadow .28s;
}
.msw::after {
  content: ""; position: absolute; top: 5px; left: 5px;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(180deg, #6A7383, #4C5462);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .12) inset;
  transition: left .3s cubic-bezier(.4, 0, .2, 1), background .3s, box-shadow .3s;
}
.msw.on {
  background: var(--gold-grad);
  border-color: rgba(255, 240, 190, .65);
  box-shadow:
    0 0 34px rgba(201, 162, 39, .42), 0 0 80px rgba(201, 162, 39, .16),
    inset 0 2px 3px rgba(255, 244, 200, .5), inset 0 -3px 6px rgba(90, 64, 10, .5);
  animation: switchGlow 2.6s ease-in-out infinite;
}
.msw.on::after { left: 69px; background: linear-gradient(180deg, #241B08, #171206); box-shadow: 0 3px 12px rgba(0, 0, 0, .55); }
.msw.on .msw-txt { left: 22px; }
.msw-txt {
  position: absolute; top: 50%; left: 58px; transform: translateY(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--faint); pointer-events: none; transition: left .3s, color .3s;
}
.msw.on .msw-txt { color: #171206; }

/* ---------- tabs / 筛选 chips ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button {
  background: none; border: none; cursor: pointer;
  padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .18s;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--gold-b); border-bottom-color: var(--gold); text-shadow: 0 0 14px rgba(201, 162, 39, .4); }

.fchips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip {
  height: 30px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .02);
  color: var(--dim); font-size: 12.5px; cursor: pointer; font-weight: 500;
  transition: color .18s, border-color .18s, background .18s, box-shadow .18s;
}
.fchip:hover { color: var(--text); }
.fchip.on { color: var(--gold-b); border-color: var(--gold); background: rgba(201, 162, 39, .09); box-shadow: 0 0 12px rgba(201, 162, 39, .12); }

/* ---------- 表单 ---------- */
.in, select.in {
  height: 34px; padding: 0 12px; width: 100%;
  background: var(--panel2); border: 1px solid var(--line2);
  border-radius: var(--r-s); color: var(--text); font: inherit; font-size: 13px;
  outline: none; transition: border-color .18s, box-shadow .18s;
}
.in:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .13), var(--glow-gold); }
.in::placeholder { color: var(--faint); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }

.fl { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; margin-bottom: 12px; }
.fl label { font-size: 12.5px; color: var(--dim); }
.fl .hint { grid-column: 2; font-size: 11.5px; color: var(--faint); margin-top: -6px; }

/* ---------- toast / 模态 / 骨架 / 空态 ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(21, 25, 36, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--line2); border-left: 3px solid var(--gold);
  color: var(--text); font-size: 13px; padding: 10px 18px; border-radius: var(--r-s);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55), var(--glow-gold); z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity .28s, transform .28s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 6, 8, .74); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .2s ease both;
}
.modal {
  width: 100%; max-width: 400px;
  background: linear-gradient(180deg, #141822, #10131A);
  border: 1px solid var(--line2); border-top: 2px solid var(--gold);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 22px;
  animation: modalIn .3s cubic-bezier(.22, .8, .3, 1) both;
}
.modal h3 { font-size: 16px; font-weight: 600; }
.modal p { font-size: 13px; color: var(--dim); margin-top: 8px; line-height: 1.6; }
.modal .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.sk { position: relative; overflow: hidden; background: var(--panel2); border-radius: var(--r-s); }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%);
  animation: shimmer 1.4s linear infinite;
}

.empty { text-align: center; padding: 40px 20px; color: var(--dim); }
.empty .ic { width: 34px; height: 34px; color: var(--faint); margin: 0 auto 12px; }
.empty b { display: block; font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.empty p { font-size: 12.5px; max-width: 320px; margin: 0 auto; line-height: 1.6; }
.empty .btn { margin-top: 16px; }

/* ---------- 列表流（feed） ---------- */
.feed { display: flex; flex-direction: column; }
.feed .row {
  display: flex; align-items: center; gap: 10px; padding: 9px 2px;
  border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.feed .row:last-child { border-bottom: none; }
.feed .row.feed-in { animation: feedIn .5s cubic-bezier(.22, .8, .3, 1) both; }
.feed .grow { min-width: 0; }
.feed .grow b { font-weight: 600; display: block; line-height: 1.4; }
.feed .grow span { font-size: 11px; color: var(--faint); }
.feed .amt { font-family: var(--mono); font-weight: 600; white-space: nowrap; }

/* ---------- 等级分布 ---------- */
.lv { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.lv .nm { width: 64px; font-size: 12px; font-weight: 600; flex: none; }
.lv .nm span { color: var(--gold-b); }
.lv .bar { flex: 1; height: 7px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.lv .bar i {
  display: block; height: 100%; background: var(--gold-grad); border-radius: 4px;
  box-shadow: 0 0 10px rgba(201, 162, 39, .35);
  animation: barGrow 1s cubic-bezier(.22, .8, .3, 1) both;
}
.lv .cnt { width: 52px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--dim); flex: none; }

/* ---------- 待办 ---------- */
.todo { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); transition: background .15s; }
.todo:hover { background: rgba(255, 255, 255, .02); }
.todo:last-child { border-bottom: none; }
.todo .ic { width: 16px; height: 16px; color: var(--warn); flex: none; }
.todo .grow { font-size: 13px; }
.todo .grow span { color: var(--faint); font-size: 11.5px; display: block; }
.todo .chip { flex: none; }

/* ---------- 制度页 ---------- */
.scheme-tier { display: grid; grid-template-columns: 70px 1fr 1fr 100px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scheme-tier.head { color: var(--faint); font-size: 11px; padding-top: 0; }
.scheme-tier .lvl { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--gold-b); }
.calc-box { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px; }
.calc-box .r { display: flex; justify-content: space-between; font-size: 12.5px; padding: 5px 0; }
.calc-box .r .v { font-family: var(--mono); font-weight: 600; }
.calc-box .r.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; }
.calc-box .r.total .v { color: var(--gold-b); font-size: 14px; }

/* ---------- 成员端 ---------- */
.greet { display: flex; align-items: baseline; gap: 10px; }
.greet h1 { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.greet span { color: var(--faint); font-size: 12.5px; }

.preview-gold {
  border-radius: var(--r); padding: 16px 18px;
  background:
    radial-gradient(100% 130% at 90% 0%, rgba(235, 198, 92, .12), transparent 55%),
    linear-gradient(135deg, rgba(201, 162, 39, .13), rgba(201, 162, 39, .03) 60%);
  border: 1px solid rgba(201, 162, 39, .32);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.preview-gold:hover { transform: translateY(-2px); border-color: rgba(201, 162, 39, .5); box-shadow: var(--shadow), var(--glow-gold); }
.preview-gold .t { font-size: 12px; color: var(--dim); }
.preview-gold .v { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--gold-b); margin-top: 4px; font-variant-numeric: tabular-nums; }
.preview-gold .d { font-size: 11.5px; color: var(--faint); margin-top: 6px; }

/* ---------- 登录页 ---------- */
.login-body { display: grid; place-items: center; min-height: 100vh; background: var(--bg0); position: relative; overflow: hidden; padding: 24px; }
.login-body::before {
  content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .11), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -62%);
  animation: bloom 7s ease-in-out infinite alternate; pointer-events: none;
}
.login-card {
  position: relative; width: 100%; max-width: 400px;
  background: linear-gradient(180deg, #141822, #10131A);
  border: 1px solid var(--line2); border-top: 2px solid var(--gold);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 36px 32px 28px;
}
.login-logo {
  width: 72px; height: 72px; border-radius: 19px;
  border: 1px solid rgba(201, 162, 39, .5); overflow: hidden;
  margin: 0 auto 18px; background: #000;
  box-shadow: 0 0 40px rgba(201, 162, 39, .25);
  animation: logoFloat 5s ease-in-out infinite;
}
.login-logo img { width: 100%; height: 100%; object-fit: contain; padding: 9px; }
.login-card h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; text-align: center; letter-spacing: .06em; }
.login-card .sub { text-align: center; font-size: 10.5px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-top: 5px; }
/* 金饰分隔线 */
.orn { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: rgba(201, 162, 39, .75); }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .55)); }
.orn::after { background: linear-gradient(90deg, rgba(201, 162, 39, .55), transparent); }
.orn i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-grad); box-shadow: 0 0 12px rgba(201, 162, 39, .6); }
.login-card .role { text-align: center; font-size: 12.5px; color: var(--dim); margin-top: 14px; }
.login-form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.login-form .lab { font-size: 12px; color: var(--dim); display: block; margin-bottom: 6px; }
.login-form .row2 { display: flex; justify-content: space-between; font-size: 12px; margin-top: 2px; }
.login-form .btn { width: 100%; height: 40px; margin-top: 6px; }
.login-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 11px; color: var(--faint); line-height: 1.8; }
.login-foot b { color: var(--gold-b); font-weight: 600; }
/* 入场节奏 */
.login-card > * { animation: rise .55s cubic-bezier(.22, .8, .3, 1) both; }
.login-card > *:nth-child(1) { animation-delay: .05s; }
.login-card > *:nth-child(2) { animation-delay: .12s; }
.login-card > *:nth-child(3) { animation-delay: .18s; }
.login-card > *:nth-child(4) { animation-delay: .24s; }
.login-card > *:nth-child(5) { animation-delay: .3s; }
.login-card > *:nth-child(6) { animation-delay: .38s; }
.login-card > *:nth-child(7) { animation-delay: .46s; }

/* ---------- 动画 ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shimmer { 0% { transform: translateX(-140px); } 100% { transform: translateX(calc(100% + 250px)); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes barRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes barGrow { from { width: 0; } to { width: var(--w, 100%); } }
@keyframes switchGlow { 0%, 100% { box-shadow: 0 0 34px rgba(201, 162, 39, .4); } 50% { box-shadow: 0 0 52px rgba(201, 162, 39, .55); } }
@keyframes bloom { from { opacity: .7; transform: translate(-50%, -62%) scale(1); } to { opacity: 1; transform: translate(-50%, -62%) scale(1.12); } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.rise { animation: rise .4s ease both; }

/* ---------- 响应式 ---------- */
@media (max-width: 1279px) {
  .app { grid-template-columns: 64px 1fr; }
  .brand { justify-content: center; padding: 0 0 16px; }
  .brand .logo { width: 40px; height: 40px; }
  .brand .txt, .nav a span, .nav .dot, .side-foot .who, .side-foot .ic { display: none; }
  .nav a { justify-content: center; padding: 11px 0; }
  .nav a.on::before { left: -14px; }
  .side-foot { justify-content: center; padding: 12px 0 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .s3, .s4, .s5 { grid-column: span 6; }
}

@media (max-width: 1023px) {
  .content { padding: 14px 16px 40px; }
  .topbar { padding: 10px 16px; }
  .topbar .search { display: none; }
  .s3, .s4, .s5, .s6, .s7, .s8, .s9 { grid-column: span 12; }
  .goldstrip { flex-wrap: wrap; gap: 14px; }
  .goldstrip .cell { border-left: none; padding-left: 0; }
  .goldstrip .note { margin-left: 0; text-align: left; }
  .ghost { display: none; }
}

@media (max-width: 767px) {
  .kpis { grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
  .kpi .v { font-size: 24px; }
  .master { flex-direction: column; align-items: flex-start; gap: 16px; }
  .msw { align-self: center; }
  .tabs button { padding: 9px 10px; font-size: 12.5px; }
  .countdown { display: none; }
  .tape-item { font-size: 11px; }
  .chart-stats { grid-template-columns: repeat(2, 1fr); }
  .chartbox { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== 硬性手机适配（任意设备不横向溢出） ===== */
html, body { overflow-x: clip; }
img, svg.chart { max-width: 100%; }
@media (max-width: 420px) {
  .content { padding-left: 12px !important; padding-right: 12px !important; }
  .kpi .v { font-size: clamp(17px, 6.4vw, 24px) !important; }
  .kpi .v small { font-size: 12px; }
  .goldstrip .lead .v { font-size: clamp(20px, 7.4vw, 30px) !important; }
  .cert .big { font-size: clamp(22px, 8.2vw, 32px) !important; }
  .tbl { min-width: 560px; }
  .masthead { padding: 14px 12px !important; }
  .topbar { padding: 10px 12px !important; }
  .tape-item { font-size: 10.5px; }
  .goldstrip { padding: 14px 14px 12px !important; }
  .cert { padding: 16px 14px !important; }
}
@media (max-width: 359px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 6px; }
  .kpi { padding: 10px; }
}
