/* ============================================================
   黎明量化 · 移动端信号广场（quan.xau8.top）
   设计：暗色科技壳 + 移动优先；涨=红（#ef5350） 跌=绿（#26a69a）
   布局：顶栏 48px + 视图滚动 + 底栏 56px + 安全区
   ============================================================ */

:root{
  --bg:#0b0e14;
  --bg-2:#0f1420;
  --card:#131722;
  --card-2:#171d2b;
  --line:#1f2735;
  --line-2:#2a3444;
  --txt:#e6edf3;
  --txt-2:#a7b1c2;
  --muted:#7b8698;
  --up:#ef5350;          /* 涨 / 盈利（中国习惯） */
  --down:#26a69a;        /* 跌 / 亏损 */
  --gold:#f5c451;
  --blue:#64b5f6;
  --danger:#ff5c5c;
  --radius:14px;
  --top-h:48px;
  --tab-h:56px;
}

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ height:100%; }
body{
  margin:0; background:var(--bg); color:var(--txt);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;
  font-size:14px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overscroll-behavior-y:none;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; font-size:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }
input,select{ font-family:inherit; font-size:inherit; }
.mono{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }

/* ---------------- 壳 ---------------- */
.app{
  max-width:520px; margin:0 auto; min-height:100%;
  background:var(--bg); position:relative;
  display:flex; flex-direction:column;
  min-height:100vh;
}

/* 顶部品牌栏 */
.topbar{
  position:sticky; top:0; z-index:30;
  height:var(--top-h); padding:0 14px;
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(11,14,20,.92);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:8px; }
.logo{
  width:24px; height:24px; border-radius:7px; display:grid; place-items:center;
  background:linear-gradient(135deg,#f5c451,#d99a2b); color:#1a1206;
  font-weight:800; font-size:13px;
}
.brand-txt{ font-weight:700; letter-spacing:.5px; font-size:15px; }
.brand-sub{
  font-size:10px; color:var(--gold); border:1px solid rgba(245,196,81,.35);
  padding:1px 6px; border-radius:20px; background:rgba(245,196,81,.08);
}
.top-actions{ display:flex; gap:8px; }
.tbtn{
  font-size:12px; color:var(--txt-2); border:1px solid var(--line-2);
  padding:4px 9px; border-radius:20px; background:var(--card);
}
.tbtn:active{ background:var(--card-2); }

/* 视图 */
.view{
  flex:1; padding:12px 12px calc(var(--tab-h) + 18px + env(safe-area-inset-bottom));
  min-height:0;
}

/* 底部五宫格 */
.tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  max-width:520px; margin:0 auto;
  height:calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  display:grid; grid-template-columns:repeat(5,1fr);
  background:rgba(15,20,32,.96);
  backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
}
.tab{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  color:var(--muted); font-size:10px; transition:color .15s;
}
.tab.active{ color:var(--gold); }
.ico{ width:20px; height:20px; display:block; background:currentColor; opacity:.9;
  -webkit-mask-size:contain; mask-size:contain; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center; }
.ico-home{ -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 2 11h3v10h6v-6h2v6h6V11h3z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 2 11h3v10h6v-6h2v6h6V11h3z'/></svg>"); }
.ico-market{ -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 20h18v2H3zM5 17l4-6 3 3 5-8 3 2-6 10-3-3-3 5z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 20h18v2H3zM5 17l4-6 3 3 5-8 3 2-6 10-3-3-3 5z'/></svg>"); }
.ico-ai{ -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.2 5.8L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-2.2z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.2 5.8L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-2.2z'/></svg>"); }
.ico-strategy{ -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 13h4l3-9 4 16 3-7h4v2h-2.6l-3.9 9-4-16-2 7H3z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 13h4l3-9 4 16 3-7h4v2h-2.6l-3.9 9-4-16-2 7H3z'/></svg>"); }
.ico-mine{ -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a4 4 0 100-8 4 4 0 000 8zm0 2c-4.4 0-8 2.4-8 5.4V22h16v-2.6c0-3-3.6-5.4-8-5.4z'/></svg>"); mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a4 4 0 100-8 4 4 0 000 8zm0 2c-4.4 0-8 2.4-8 5.4V22h16v-2.6c0-3-3.6-5.4-8-5.4z'/></svg>"); }

/* ---------------- 通用 ---------------- */
.card{
  background:linear-gradient(180deg,var(--card) 0%, var(--card-2) 100%);
  border:1px solid var(--line); border-radius:var(--radius);
  padding:12px; margin-bottom:10px;
}
.row{ display:flex; align-items:center; }
.between{ justify-content:space-between; }
.gap8{ gap:8px; }
.gap6{ gap:6px; }
.muted{ color:var(--muted); }
.small{ font-size:12px; }
.tiny{ font-size:11px; }
.up{ color:var(--up); }
.down{ color:var(--down); }
.gold{ color:var(--gold); }
.tag{
  font-size:10px; padding:1px 6px; border-radius:4px;
  border:1px solid var(--line-2); color:var(--txt-2); background:rgba(255,255,255,.02);
}
.tag.ex{ color:var(--blue); border-color:rgba(100,181,246,.3); background:rgba(100,181,246,.08); }
.tag.live{ color:var(--up); border-color:rgba(239,83,80,.35); background:rgba(239,83,80,.1); }
.tag.paper{ color:var(--down); border-color:rgba(38,166,154,.35); background:rgba(38,166,154,.1); }
.tag.retired{ color:var(--muted); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:38px; padding:0 16px; border-radius:10px;
  background:linear-gradient(135deg,#f5c451,#dc9f2c); color:#1a1206; font-weight:700; font-size:14px;
  border:0;
}
.btn:active{ filter:brightness(.94); }
.btn.ghost{ background:transparent; color:var(--txt-2); border:1px solid var(--line-2); font-weight:500; }
.btn.block{ width:100%; }
.btn[disabled]{ opacity:.45; filter:grayscale(.4); }

/* 一级 / 二级标签 */
.tabs{ display:flex; gap:16px; padding:2px 2px 10px; border-bottom:1px solid var(--line); margin-bottom:10px; }
.tabs .t{ font-size:15px; color:var(--muted); position:relative; padding-bottom:6px; }
.tabs .t.on{ color:var(--txt); font-weight:700; }
.tabs .t.on::after{ content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-1px; width:20px; height:2px; border-radius:2px; background:var(--gold); }
.subtabs{ display:flex; gap:8px; margin-bottom:10px; }
.subtabs .st{
  font-size:12px; padding:5px 12px; border-radius:20px;
  color:var(--txt-2); background:var(--card); border:1px solid var(--line);
}
.subtabs .st.on{ color:#1a1206; background:var(--gold); border-color:transparent; font-weight:700; }

/* 工具条 */
.toolbar{ display:flex; gap:8px; margin-bottom:10px; }
.toolbar .search{
  flex:1; height:34px; border-radius:10px; border:1px solid var(--line);
  background:var(--card); color:var(--txt); padding:0 10px 0 30px; font-size:13px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%237b8698'><path d='M10 2a8 8 0 105.3 14l5.4 5.4 1.4-1.4-5.4-5.4A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/></svg>");
  background-repeat:no-repeat; background-position:8px center;
}
.toolbar select{
  height:34px; border-radius:10px; border:1px solid var(--line); background:var(--card);
  color:var(--txt-2); padding:0 8px; font-size:12px;
}
.toolbar .add{
  height:34px; width:34px; border-radius:10px; border:1px dashed var(--line-2);
  color:var(--gold); font-size:18px; display:grid; place-items:center;
}

/* 功能入口 */
.entries{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-bottom:10px; }
.entry{ text-align:center; padding:8px 2px; border-radius:10px; background:var(--card); border:1px solid var(--line); }
.entry .e-ico{ font-size:16px; line-height:1.2; }
.entry .e-txt{ font-size:10px; color:var(--txt-2); margin-top:3px; }

/* ---------------- 信号卡片 ---------------- */
.sigcard{ position:relative; }
.sigcard .hd{ display:flex; align-items:center; gap:9px; }
.avatar{
  width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  font-weight:800; font-size:14px; color:#0b0e14;
  background:linear-gradient(135deg,#64b5f6,#3d7fb8);
  flex:0 0 auto;
}
.avatar.a{ background:linear-gradient(135deg,#f5c451,#c9931f); }
.sigcard .title{ font-weight:700; font-size:15px; display:flex; align-items:center; gap:6px; }
.sigcard .sub{ font-size:11px; color:var(--muted); margin-top:1px; }
.sigcard .use{
  margin-left:auto; font-size:12px; color:#1a1206; font-weight:700;
  background:linear-gradient(135deg,#f5c451,#dc9f2c); padding:5px 11px; border-radius:20px;
}
.kpis{ display:flex; gap:0; margin:10px 0 8px; padding:8px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.kpis .k{ flex:1; text-align:center; border-right:1px solid var(--line); }
.kpis .k:last-child{ border-right:0; }
.kpis .kv{ font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; }
.kpis .kl{ font-size:10px; color:var(--muted); margin-top:1px; }
.sigcard .ft{ display:flex; align-items:center; justify-content:space-between; font-size:11px; color:var(--muted); }
.sigcard .ft .rec{ color:var(--gold); }

/* ---------------- 策略详情 ---------------- */
.detail-hd{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.back{ width:28px; height:28px; display:grid; place-items:center; color:var(--txt-2); font-size:20px; }
.detail-title{ font-size:17px; font-weight:700; }
.dtabs{ display:flex; gap:2px; border-bottom:1px solid var(--line); margin-bottom:10px; overflow-x:auto; scrollbar-width:none; }
.dtabs::-webkit-scrollbar{ display:none; }
.dtabs .d{ padding:9px 12px; font-size:13px; color:var(--muted); white-space:nowrap; position:relative; }
.dtabs .d.on{ color:var(--txt); font-weight:700; }
.dtabs .d.on::after{ content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-1px; width:22px; height:2px; background:var(--gold); border-radius:2px; }

.rangebar{ display:flex; align-items:center; gap:6px; margin-bottom:10px; }
.rangebar .r{
  font-size:12px; padding:4px 10px; border-radius:20px; color:var(--txt-2);
  background:var(--card); border:1px solid var(--line);
}
.rangebar .r.on{ color:var(--gold); border-color:rgba(245,196,81,.45); background:rgba(245,196,81,.08); }
.rangebar .refresh{ margin-left:auto; font-size:12px; color:var(--txt-2); display:flex; align-items:center; gap:3px; }

/* 图表卡 */
.chartcard{ padding:12px 8px 6px; }
.chart-hd{ display:flex; align-items:baseline; gap:8px; padding:0 4px 6px; }
.chart-val{ font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; }
canvas.pnl{ width:100%; height:180px; display:block; }
.chart-empty{ height:180px; display:grid; place-items:center; color:var(--muted); font-size:12px; }

/* 数据页 */
.datalist .drow{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line); }
.datalist .drow:last-child{ border-bottom:0; }
.datalist .dk{ color:var(--txt-2); font-size:13px; }
.datalist .dv{ font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; }

/* 信号记录卡 */
.reccard .rh{ display:flex; align-items:center; gap:8px; }
.pair{ font-weight:700; font-size:14px; }
.dir{ font-size:11px; padding:1px 6px; border-radius:4px; }
.dir.long{ color:var(--up); background:rgba(239,83,80,.12); }
.dir.short{ color:var(--down); background:rgba(38,166,154,.12); }
.reccard .pnl{ margin-left:auto; font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; }
.rmeta{ display:flex; gap:14px; margin-top:8px; font-size:11px; color:var(--muted); flex-wrap:wrap; }
.rmeta b{ color:var(--txt-2); font-weight:600; }

/* 用户行 */
.urow{ display:flex; align-items:center; gap:9px; padding:10px 0; border-bottom:1px solid var(--line); }
.urow:last-child{ border-bottom:0; }
.rank{
  width:20px; height:20px; border-radius:6px; display:grid; place-items:center;
  font-size:11px; font-weight:700; color:var(--muted); background:var(--card-2);
}
.rank.top1{ color:#1a1206; background:linear-gradient(135deg,#f5c451,#dc9f2c); }
.rank.top2{ color:#0b0e14; background:#c9d4e2; }
.rank.top3{ color:#0b0e14; background:#c98a5a; }
.uname{ font-size:13px; }
.ustats{ margin-left:auto; text-align:right; }
.upnl{ font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; }
.udetail{ font-size:10px; color:var(--muted); }

/* ---------------- 配置订阅 ---------------- */
.form-grp{ margin-bottom:14px; }
.form-lb{ font-size:12px; color:var(--txt-2); margin-bottom:6px; display:flex; align-items:center; gap:6px; }
.form-lb .req{ color:var(--danger); }
.inp{
  width:100%; height:40px; border-radius:10px; border:1px solid var(--line);
  background:var(--bg-2); color:var(--txt); padding:0 12px; font-size:14px; outline:none;
}
.inp:focus{ border-color:rgba(245,196,81,.5); }
.inp::placeholder{ color:#55617a; }
select.inp{ 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 24 24' fill='%237b8698'><path d='M6 9l6 6 6-6z'/></svg>"); background-repeat:no-repeat; background-position:right 12px center; }
.chips{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.chip{
  height:36px; border-radius:9px; display:grid; place-items:center; font-size:12px;
  border:1px solid var(--line); background:var(--bg-2); color:var(--txt-2);
}
.chip.on{ color:var(--gold); border-color:rgba(245,196,81,.5); background:rgba(245,196,81,.1); }
.hint{ font-size:11px; color:var(--muted); margin-top:6px; line-height:1.5; }
.asset{ display:flex; gap:10px; }
.asset .a{ flex:1; background:var(--bg-2); border:1px solid var(--line); border-radius:10px; padding:10px; }
.asset .av{ font-size:17px; font-weight:700; font-variant-numeric:tabular-nums; }
.asset .al{ font-size:10px; color:var(--muted); }
.switch-row{ display:flex; align-items:center; justify-content:space-between; padding:12px; border-radius:10px; background:var(--bg-2); border:1px solid var(--line); }
.sw{ width:44px; height:24px; border-radius:20px; background:var(--line-2); position:relative; transition:background .18s; flex:0 0 auto; }
.sw::after{ content:""; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:#c9d4e2; transition:transform .18s; }
.sw.on{ background:var(--up); }
.sw.on::after{ transform:translateX(20px); background:#fff; }
.warnbox{
  border:1px solid rgba(239,83,80,.35); background:rgba(239,83,80,.08); color:#ffb3b0;
  border-radius:10px; padding:10px; font-size:11px; line-height:1.6;
}

/* 登录 */
.login-wrap{ padding:36px 6px 0; }
.login-logo{ text-align:center; margin-bottom:22px; }
.login-logo .lg{ width:54px; height:54px; border-radius:16px; margin:0 auto 10px; display:grid; place-items:center; font-size:24px; font-weight:800; color:#1a1206; background:linear-gradient(135deg,#f5c451,#d99a2b); }
.login-logo h1{ font-size:17px; margin:0; }
.login-logo p{ font-size:12px; color:var(--muted); margin:4px 0 0; }

/* 空态 */
.empty{ text-align:center; padding:56px 16px; color:var(--muted); }
.empty .ec{ font-size:34px; opacity:.35; margin-bottom:8px; }

/* 骨架 */
.skeleton{ height:96px; border-radius:14px; margin-bottom:10px;
  background:linear-gradient(90deg,#141a26 25%,#1a2232 37%,#141a26 63%);
  background-size:400% 100%; animation:shimmer 1.3s ease infinite; }
@keyframes shimmer{ 0%{ background-position:100% 0; } 100%{ background-position:-100% 0; } }

/* toast */
.toast{
  position:fixed; left:50%; bottom:calc(var(--tab-h) + 26px); transform:translateX(-50%) translateY(10px);
  background:rgba(28,36,52,.96); color:var(--txt); font-size:13px;
  padding:9px 16px; border-radius:20px; border:1px solid var(--line-2);
  opacity:0; pointer-events:none; transition:.22s; z-index:90; max-width:80%; text-align:center;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast.err{ border-color:rgba(239,83,80,.5); color:#ffb3b0; }

/* 弹层 */
.sheet-mask{
  position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:100;
  display:none; align-items:flex-end; justify-content:center;
}
.sheet-mask.show{ display:flex; }
.sheet{
  width:100%; max-width:520px; background:var(--card); border-radius:16px 16px 0 0;
  border-top:1px solid var(--line-2); padding:14px 14px calc(18px + env(safe-area-inset-bottom));
  max-height:78vh; overflow:auto; animation:up .22s ease;
}
@keyframes up{ from{ transform:translateY(24px); opacity:.6; } to{ transform:translateY(0); opacity:1; } }
.sheet-hd{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; font-weight:700; }
.sheet-close{ font-size:20px; color:var(--muted); line-height:1; }

/* ---------------- 我的 · 用户中心（v1.2.21） ---------------- */
.uc-head{
  display:flex; align-items:center; gap:12px; padding:14px;
  border-radius:var(--radius); margin-bottom:12px;
  background:linear-gradient(135deg,#1a2233,#131722); border:1px solid var(--line);
}
.uc-avatar{
  width:52px; height:52px; border-radius:16px; flex:0 0 auto; display:grid; place-items:center;
  font-size:22px; font-weight:800; color:#1a1206;
  background:linear-gradient(135deg,#f5c451,#d99a2b);
}
.uc-id{ min-width:0; flex:1; }
.uc-name{ font-size:17px; font-weight:700; }
.uc-badges{ display:flex; gap:6px; margin-top:5px; flex-wrap:wrap; }
.uc-logout{
  font-size:12px; color:#ff9b9b; padding:5px 11px; border-radius:20px; flex:0 0 auto;
  border:1px solid rgba(239,83,80,.3); background:rgba(239,83,80,.08);
}
.uc-logout:active{ background:rgba(239,83,80,.16); }
.uc-tabs{ margin-top:2px; }

.hero{ padding:16px 14px; }
.hero-top{ display:flex; align-items:center; justify-content:space-between; }
.hero-val{
  font-size:30px; font-weight:800; letter-spacing:.5px; margin:6px 0 2px;
  font-variant-numeric:tabular-nums; color:var(--txt);
}
.hero-sub{ font-size:13px; color:var(--txt-2); }
.eye{ font-size:15px; color:var(--muted); padding:2px 4px; }

.sec-title{ font-size:13px; font-weight:700; color:var(--txt-2); margin-bottom:6px; }
.plat-row{ display:flex; align-items:center; gap:10px; padding:11px 0; border-top:1px solid var(--line); }
.plat-row:first-of-type{ border-top:0; }
.plat-ico{
  width:34px; height:34px; border-radius:10px; flex:0 0 auto; display:grid; place-items:center;
  font-weight:800; color:#0b0e14; background:linear-gradient(135deg,#64b5f6,#3d7fb8);
}
.plat-main{ min-width:0; flex:1; }
.plat-name{ font-size:14px; font-weight:600; display:flex; align-items:center; gap:6px; }
.plat-sub{ font-size:11px; color:var(--muted); margin-top:2px; font-variant-numeric:tabular-nums; }
.plat-btns{ display:flex; gap:6px; flex:0 0 auto; }
.mini{
  font-size:11px; padding:4px 10px; border-radius:8px;
  border:1px solid var(--line-2); color:var(--txt-2); background:var(--bg-2);
}
.mini.primary{ color:#1a1206; font-weight:700; border-color:transparent; background:linear-gradient(135deg,#f5c451,#dc9f2c); }
.mini.danger{ color:#ff9b9b; border-color:rgba(239,83,80,.35); background:rgba(239,83,80,.08); }
.mini:active{ filter:brightness(.92); }

.pos-card .pos-hd{ display:flex; align-items:center; gap:8px; }
.pos-card .pnl{ margin-left:auto; font-size:16px; font-weight:800; font-variant-numeric:tabular-nums; }

.wallet-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.wallet-btn{
  display:flex; flex-direction:column; align-items:center; gap:4px; padding:14px 4px;
  border-radius:12px; background:var(--card); border:1px solid var(--line);
}
.wallet-btn:active{ background:var(--card-2); }
.wb-ico{ font-size:17px; color:var(--gold); }
.wb-lb{ font-size:11px; color:var(--txt-2); }

.fn-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:12px; }
.fn-item{
  display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 4px;
  border-radius:12px; background:var(--card); border:1px solid var(--line);
}
.fn-item:active{ background:var(--card-2); }
.fn-ico{ font-size:17px; }
.fn-lb{ font-size:11px; color:var(--txt-2); }

.tag.gold{ color:var(--gold); border-color:rgba(245,196,81,.35); background:rgba(245,196,81,.08); }
