:root {
  --bg: #f2f6f9; --card: #ffffff; --line: #e3e9ef; --line-soft: #eef2f6;
  --text: #16202b; --muted: #6b7887; --faint: #98a4b1;
  --accent: #00c2d9; --accent-ink: #00a3b8; --accent-soft: #e2f8fb;
  --blue: #2f80ed; --up: #16a34a; --down: #e5484d; --up-soft: #e6f6ec; --down-soft: #fdecec;
  --warn-soft: #fff4e5; --warn: #c27400;
  --gold: #fff3c4; --gold-ink: #a57a00; --bronze: #fde3d3; --bronze-ink: #b4572a;
  --shadow: 0 1px 2px rgba(16, 32, 48, .04), 0 4px 16px rgba(16, 32, 48, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1318; --card: #151d24; --line: #24303a; --line-soft: #1c262e;
    --text: #e4ebf1; --muted: #8d9aa6; --faint: #66727d;
    --accent: #10cfe6; --accent-ink: #3ddcef; --accent-soft: #0f2d33;
    --blue: #4c95f5; --up: #2fc46b; --down: #f2666a; --up-soft: #12301f; --down-soft: #3a1c1e;
    --warn-soft: #33270f; --warn: #f0a63a;
    --gold: #3a3110; --gold-ink: #f2c94c; --bronze: #3a2416; --bronze-ink: #f0a07a;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1318; --card: #151d24; --line: #24303a; --line-soft: #1c262e;
  --text: #e4ebf1; --muted: #8d9aa6; --faint: #66727d;
  --accent: #10cfe6; --accent-ink: #3ddcef; --accent-soft: #0f2d33;
  --blue: #4c95f5; --up: #2fc46b; --down: #f2666a; --up-soft: #12301f; --down-soft: #3a1c1e;
  --warn-soft: #33270f; --warn: #f0a63a;
  --gold: #3a3110; --gold-ink: #f2c94c; --bronze: #3a2416; --bronze-ink: #f0a07a;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono, .addr { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); } .faint { color: var(--faint); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 0 28px; height: 60px; background: var(--card); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.logo-mark {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 12px; letter-spacing: -.5px;
}
.nav nav { display: flex; gap: 4px; overflow-x: auto; }
.nav nav a { padding: 18px 12px; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav nav a:hover { color: var(--text); }
.nav nav a.active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sync { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sync::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-right: 6px; vertical-align: 1px; }
.sync.busy::before { background: var(--warn); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.me { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.icon-btn { border: 1px solid var(--line); background: var(--card); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }

main { max-width: 1480px; margin: 0 auto; padding: 28px 24px 64px; }
h1 { font-size: 26px; margin: 8px 0 18px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
h1 small, h2 small { font-size: 13px; font-weight: 500; color: var(--muted); }
h2 { font-size: 20px; margin: 36px 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }

/* hero */
.hero { padding: 48px 8px 20px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hero h1 { font-size: 40px; margin: 0; letter-spacing: -.5px; display: block; }
.hero .slogan {
  font-size: 34px; font-weight: 800; margin: 10px 0 14px;
  background: linear-gradient(90deg, var(--accent), var(--up)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin: 0 0 22px; }
.search { display: flex; gap: 12px; max-width: 760px; }
.search input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); font-size: 15px; outline: none;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-art { width: 260px; height: 200px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 26px 0 8px; }
.stat { padding: 18px 20px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted); font-size: 13px; }
.stat em { font-style: normal; font-size: 12px; color: var(--faint); display: block; margin-top: 2px; }

/* buttons & filters */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; white-space: nowrap; font-weight: 500;
}
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.big { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 10px; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.danger { color: var(--down); }
.btn:disabled { opacity: .5; cursor: default; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 16px 20px; margin-bottom: 18px; }
.fgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fgroup > label:first-child { color: var(--muted); margin-right: 2px; }
.pill {
  height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; color: var(--muted); font-weight: 500;
}
.pill.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabs .pill.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
select, .input {
  height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); min-width: 110px; outline: none;
}
.input:focus, select:focus { border-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 14px 14px;
  background: var(--line-soft); white-space: nowrap; position: sticky; top: 0;
}
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--text); }
th.sorted { color: var(--text); }
th.sorted::after { content: " ▼"; color: var(--blue); font-size: 11px; }
th.sorted.asc::after { content: " ▲"; }
td { padding: 14px 14px; border-top: 1px solid var(--line-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: var(--line-soft); }
th.r, td.r { text-align: right; }
td.wrap { white-space: normal; }
.empty { padding: 48px; text-align: center; color: var(--muted); }

.rank {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px;
  background: var(--line-soft); color: var(--muted); font-size: 13px; font-weight: 600;
}
.rank.r1 { background: var(--gold); color: var(--gold-ink); }
.rank.r2 { background: var(--line); color: var(--text); }
.rank.r3 { background: var(--bronze); color: var(--bronze-ink); }

.who { display: inline-flex; align-items: center; gap: 6px; }
.who a.addr { color: var(--accent-ink); font-size: 14px; }
.who a.addr:hover { text-decoration: underline; }
.who .lbl { font-weight: 600; }
.mini { border: 0; background: none; cursor: pointer; color: var(--faint); padding: 2px; font-size: 13px; line-height: 1; }
.mini:hover { color: var(--text); }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--muted);
  border: 1px dashed var(--line); background: var(--line-soft); white-space: nowrap;
}
.badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.badge.long { background: var(--up-soft); color: var(--up); }
.badge.short { background: var(--down-soft); color: var(--down); }
.badge.warn { background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.sub { display: block; font-size: 12px; color: var(--faint); }
.coins { color: var(--text); font-weight: 600; }
.coins i { font-style: normal; color: var(--faint); font-weight: 400; font-size: 12px; margin-left: 4px; }

/* trader */
.profile { display: flex; align-items: center; gap: 18px; padding: 22px 24px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.profile h1 { margin: 0; font-size: 24px; }
.profile .meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.profile .actions { margin-left: auto; display: flex; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.chart-card { padding: 16px 18px 12px; }
.chart-card h3 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chart-box { position: relative; height: 260px; }
.period-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.period-grid > div { padding: 16px 20px; border-left: 1px solid var(--line-soft); }
.period-grid > div:first-child { border-left: 0; }
.period-grid h4 { margin: 0 0 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 2px 0; }
.kv span:first-child { color: var(--muted); }
.kv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 16px; color: var(--muted); font-size: 13px; }
.section-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 0 12px; }
.section-head .tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.section-head .right { margin-left: auto; display: flex; gap: 8px; }

/* manage */
.manage { display: grid; grid-template-columns: 420px 1fr; gap: 16px; align-items: start; }
textarea {
  width: 100%; min-height: 220px; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 12px; outline: none;
}
textarea:focus { border-color: var(--accent); }
.log { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); max-height: 260px; overflow: auto; white-space: pre-wrap; margin: 0; }
.note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; transition: .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.edit-input { height: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--accent); background: var(--card); width: 160px; }
.loading { padding: 80px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .nav { gap: 12px; padding: 0 16px; }
  .sync, .me .muted { display: none; }
  main { padding: 18px 16px 48px; }
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero h1 { font-size: 28px; } .hero .slogan { font-size: 22px; }
  .hero-art { display: none; }
  .search { flex-direction: column; }
  .grid2, .manage { grid-template-columns: 1fr; }
  .period-grid { grid-template-columns: 1fr 1fr; }
  .period-grid > div:nth-child(3) { border-left: 0; }
  .profile .actions { margin-left: 0; }
}

/* 交易员画像 */
.sec { padding: 20px 22px; margin-top: 16px; }
.sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-head .right { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.sec-title { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-head .sec-title { margin: 0; }
.sec-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.sec-title small { font-size: 13px; color: var(--muted); font-weight: 600; }
.seg { display: flex; gap: 4px; }
.seg .pill { height: 30px; padding: 0 12px; font-size: 13px; }
.chart-box.tall { height: 360px; }
.tag.hot { background: var(--warn-soft); color: var(--warn); border: 0; font-size: 13px; font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.dot.ok { background: var(--up); } .dot.warn { background: var(--warn); }
.live { font-size: 12px; font-weight: 600; color: var(--up); background: var(--up-soft); padding: 2px 8px; border-radius: 6px; }
.wallet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wbox { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.wbox > span { color: var(--muted); font-size: 13px; }
.wbox b { display: block; font-size: 26px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.wbox b small { font-size: 13px; font-weight: 500; }
.wbox em { font-style: normal; font-size: 12px; color: var(--muted); }
.wbox.green { background: var(--up-soft); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.wbox.purple { background: color-mix(in srgb, #a855f7 8%, var(--card)); border-color: color-mix(in srgb, #a855f7 45%, transparent); }
.recon { margin-top: 14px; border: 1.5px solid color-mix(in srgb, var(--up) 60%, transparent); background: color-mix(in srgb, var(--up) 5%, var(--card)); border-radius: 12px; padding: 12px 12px 4px; }
.recon.bad { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: color-mix(in srgb, var(--warn) 5%, var(--card)); }
.recon-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.recon-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--card); border-bottom: 1px solid var(--line-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.recon-foot { color: var(--muted); font-size: 13px; margin: 8px 2px; }
@media (max-width: 900px) {
  .wallet { grid-template-columns: 1fr 1fr; }
  .chart-box.tall { height: 280px; }
}

/* ---------- 合并版新增 ---------- */
.tabs-nav a i { font-style: normal; display: none; }
.art-wick { stroke: var(--faint); stroke-width: 2; }
.art-body { fill: var(--line); stroke: var(--faint); stroke-opacity: .4; }
.art-up { fill: var(--accent); stroke: var(--faint); stroke-opacity: .4; }
.stat b small { font-size: 16px; font-weight: 600; }
.gap-top { margin-top: 16px; }
.gap-bottom { margin-bottom: 8px; }
.note-tight { margin: 0 0 12px; }
.note-sum { margin: -6px 0 12px; }
.center-box { text-align: center; padding: 60px 20px; }
.center-box h2 { justify-content: center; margin-top: 0; }
.break { word-break: break-all; }
.accent { color: var(--accent-ink); }
.big-mini { font-size: 16px; }
.card-title { margin: 0 0 10px; font-size: 15px; }
.card-title.split { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-gap { display: flex; gap: 8px; margin-top: 10px; }
.grow { flex: 1; min-width: 0; }
.fgroup.grow .input { width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1 { margin-right: auto; }
.head-actions { display: flex; gap: 8px; }
.notes { padding: 14px 20px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.notes p { margin: 6px 0; }
.notes b { color: var(--text); }
.profile-main { min-width: 0; }
.profile .actions { flex-wrap: wrap; }
.tabs .pill i { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 2px; }
a.btn { text-decoration: none; }

/* 数据状态点 / 关注 */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--faint); }
.status-dot.finished { background: var(--up); }
.status-dot.collecting { background: var(--warn); animation: pulse 1.2s infinite; }
.status-dot.error { background: var(--down); }
.star { font-size: 15px; color: var(--faint); }
.star.on { color: #f5a524; }

/* 登录页 */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 380px; padding: 32px 28px; }
.login .logo { justify-content: center; font-size: 22px; margin-bottom: 6px; }
.login-sub { text-align: center; color: var(--muted); margin: 0 0 24px; font-size: 13px; }
.login label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.login .input { width: 100%; height: 44px; font-size: 16px; }
.login .btn { width: 100%; height: 46px; margin-top: 22px; font-size: 16px; }
.login .err { color: var(--down); font-size: 13px; min-height: 20px; margin: 10px 0 0; text-align: center; }

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .nav { height: 52px; gap: 8px; padding: 0 12px; }
  .logo { font-size: 16px; }
  .tabs-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
    background: var(--card); border-top: 1px solid var(--line); padding: 4px 0 env(safe-area-inset-bottom); gap: 0;
  }
  .tabs-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; font-size: 11px; border: 0; }
  .tabs-nav a i { display: block; font-size: 19px; line-height: 1.1; }
  .tabs-nav a.active { color: var(--accent-ink); border: 0; }
  .nav-right { gap: 8px; }
  .me .me-name { display: none; }
  main { padding: 14px 12px 24px; }
  h1 { font-size: 20px; margin: 4px 0 12px; }
  h1 small { display: block; width: 100%; }
  h2 { font-size: 17px; margin: 26px 0 10px; }

  .hero { padding: 8px 0 4px; }
  .hero h1 { font-size: 24px; }
  .hero .slogan { font-size: 18px; margin: 6px 0 10px; }
  .hero p { font-size: 12px; margin-bottom: 14px; }
  .search { flex-direction: column; gap: 8px; }
  .search input, .btn.big { height: 46px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 19px; }

  .filters { padding: 12px; gap: 10px; flex-direction: column; align-items: stretch; }
  .fgroup { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fgroup::-webkit-scrollbar { display: none; }
  .fgroup > label:first-child { flex: none; width: 34px; font-size: 13px; }
  .fgroup.checks { flex-wrap: wrap; }
  .pill { height: 32px; padding: 0 12px; flex: none; }
  select, .input { height: 34px; min-width: 0; }
  .fgroup select { flex: 1; }

  .chart-box, .chart-box.tall { height: 230px; }
  .chart-card, .sec { padding: 14px 12px; }
  .sec-head .right { margin-left: 0; width: 100%; overflow-x: auto; }
  .wallet { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wbox { padding: 12px; }
  .wbox b { font-size: 19px; }
  .recon-row { font-size: 12px; padding: 7px 8px; }
  .period-grid { grid-template-columns: 1fr 1fr; }
  .period-grid > div { padding: 12px 14px; border-top: 1px solid var(--line-soft); }
  .profile { padding: 16px; gap: 12px; }
  .avatar { width: 52px; height: 52px; }
  .profile h1 { font-size: 20px; }
  .profile .actions { width: 100%; }
  .profile .actions .btn { flex: 1; height: 34px; padding: 0 10px; font-size: 13px; }
  .section-head { margin-top: 20px; }
  .section-head .right { margin-left: 0; width: 100%; }
  .section-head .right select { flex: 1; }
  .scroll-x { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .manage { grid-template-columns: 1fr; }
  .pager { flex-wrap: wrap; justify-content: center; }
  .pager span { width: 100%; text-align: center; }

  /* 表格变卡片：primary 列做标题，其余字段两列排布 */
  .table-wrap { overflow: visible; }
  .rtable thead { display: none; }
  .rtable, .rtable tbody { display: block; }
  .rtable tr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
  .rtable tr:first-child { border-top: 0; }
  .rtable tbody tr:hover td { background: none; }
  .rtable td { display: flex; flex-direction: column; gap: 1px; padding: 0; border: 0; white-space: normal;
    flex: 1 1 calc(50% - 12px); min-width: 0; text-align: left !important; font-size: 13px; }
  .rtable td::before { content: attr(data-label); font-size: 11px; color: var(--faint); }
  .rtable td.rk { flex: 0 0 auto; }
  .rtable td.rk::before, .rtable td.primary::before { display: none; }
  .rtable td.primary { flex: 1 1 calc(100% - 50px); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
  .rtable td.hide-sm { display: none; }
  .rtable td .sub { display: inline; margin-left: 4px; }
  .rtable tr.empty-row td { flex-basis: 100%; }
  .rtable tr.empty-row td::before { display: none; }
}
