/* 聪明钱 /smart-money — 使用 lianyanshe.css token，Light / Dark 同一套变量 */

.sm-wrap{
  max-width:1080px;
  margin:0 auto;
  padding:clamp(28px,4vw,52px) clamp(18px,4vw,36px) 88px;
}
.sm-kicker{
  font-family:var(--serif);
  font-size:12px;
  letter-spacing:.28em;
  font-weight:600;
  color:var(--accent);
  text-transform:uppercase;
  margin:0 0 10px;
}
.sm-title{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(28px,4vw,40px);
  line-height:1.2;
  letter-spacing:-.4px;
  margin:0 0 12px;
  color:var(--text-primary);
}
.sm-lede,
.sm-note{
  color:var(--text-secondary);
  font-size:15px;
  line-height:1.75;
  max-width:46em;
  margin:0 0 18px;
}
.sm-fresh{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  max-width:100%;
  gap:8px;
  margin:0 0 8px;
  padding:6px 12px;
  border-radius:var(--radius-full);
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--text-secondary);
  font-size:13px;
  font-weight:600;
  line-height:1.45;
  word-break:keep-all;
}
.sm-fresh[data-status="fresh"]{color:var(--accent-call);border-color:color-mix(in srgb,var(--accent-call) 45%,var(--border))}
.sm-fresh[data-status="stale"]{color:var(--accent-put);border-color:color-mix(in srgb,var(--accent-put) 45%,var(--border))}
.sm-fresh[data-status="loading"]{color:var(--text-secondary)}
.sm-fresh[data-status="error"]{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}
.sm-sources{
  margin:0 0 22px;
  color:var(--text-muted);
  font-size:12.5px;
  line-height:1.6;
}
.sm-sources p{margin:0}
.sm-filters{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px 12px;
  margin:0 0 28px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  background:var(--bg-card);
}
.sm-filters label{
  display:grid;
  gap:4px;
  min-width:0;
  color:var(--text-muted);
  font-size:12px;
  font-weight:600;
}
.sm-filters select,
.sm-filters input{
  width:100%;
  height:36px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--bg-primary);
  color:var(--text-primary);
  font:inherit;
  font-size:13.5px;
  font-weight:500;
}
.sm-filters select:focus,
.sm-filters input:focus{
  outline:2px solid var(--accent);
  outline-offset:1px;
  border-color:var(--accent);
}
.sm-block{margin:0 0 32px}
.sm-block h2,
.sm-static-index h2,
.sm-disclaimer h2{
  font-family:var(--serif);
  font-size:22px;
  font-weight:700;
  margin:0 0 8px;
  color:var(--text-primary);
}
.sm-market-note,
.sm-empty,
.sm-hidden{
  color:var(--text-muted);
  font-size:13.5px;
  line-height:1.6;
  margin:0 0 10px;
}
.sm-table-wrap{
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:var(--bg-card);
}
.sm-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  line-height:1.45;
}
.sm-table th,
.sm-table td{
  padding:8px 10px;
  text-align:left;
  vertical-align:top;
  white-space:nowrap;
  border-bottom:1px solid var(--border-light);
}
.sm-table th{
  color:var(--text-muted);
  font-size:12px;
  font-weight:600;
  background:var(--bg-secondary);
}
.sm-table tr:last-child td{border-bottom:0}
.sm-table a{color:var(--accent-2);font-weight:650;text-decoration:none}
.sm-table a:hover{color:var(--accent)}
.sm-tag{
  display:inline-flex;
  align-items:center;
  padding:1px 7px;
  border-radius:var(--radius-full);
  border:1px solid var(--border);
  background:var(--bg-secondary);
  color:var(--text-secondary);
  font-size:11.5px;
  font-weight:700;
}
.sm-tag-bn{border-color:color-mix(in srgb,var(--accent) 50%,var(--border));color:var(--accent-2)}
.sm-side-long{color:var(--accent-call);font-weight:700}
.sm-side-short{color:var(--accent-put);font-weight:700}
.sm-num{font-variant-numeric:tabular-nums}
.sm-equity{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  max-width:14em;
  white-space:normal;
  vertical-align:top;
}
.sm-equity-note{
  display:block;
  max-width:16em;
  color:var(--text-muted);
  font-size:11px;
  font-weight:500;
  line-height:1.35;
  font-variant-numeric:normal;
  white-space:normal;
}
.sm-metric .sm-equity-note{margin-top:4px;max-width:22em}
.sm-expand{
  margin-top:10px;
  height:34px;
  padding:0 14px;
  border-radius:var(--radius-full);
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--accent-2);
  font:600 13px/1 var(--sans);
  cursor:pointer;
}
.sm-expand:hover{border-color:var(--accent);color:var(--accent)}
.sm-metrics{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
  margin:0 0 22px;
}
.sm-metric{
  min-width:0;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:var(--bg-card);
}
.sm-metric span{
  display:block;
  color:var(--text-muted);
  font-size:12px;
  font-weight:600;
}
.sm-metric strong{
  display:block;
  margin-top:4px;
  color:var(--text-primary);
  font-size:16px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.sm-metric strong.sm-pnl-pos{color:var(--accent-call)}
.sm-metric strong.sm-pnl-neg{color:var(--accent-put)}
.sm-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin:0 0 12px;
  color:var(--text-secondary);
  font-size:13.5px;
}
.sm-notes{
  margin:0 0 18px;
  padding:10px 14px;
  border-left:3px solid var(--accent);
  background:color-mix(in srgb,var(--accent) 8%,var(--bg-card));
  color:var(--text-secondary);
  font-size:14px;
  line-height:1.65;
}
.sm-notes p{margin:0 0 6px}
.sm-notes p:last-child{margin:0}
.sm-links{margin:0 0 18px;font-size:13.5px}
.sm-links a{color:var(--accent-2);font-weight:650}
.sm-static-index ul{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:6px 18px;
  margin:8px 0 0;
  padding:0;
  list-style:none;
}
.sm-static-index a{color:var(--accent-2);font-weight:600;text-decoration:none}
.sm-static-index a:hover{color:var(--accent)}
.sm-disclaimer{
  margin-top:12px;
  padding-top:8px;
  border-top:1px solid var(--border);
}
.sm-disclaimer p,
.sm-disclaimer li{
  color:var(--text-secondary);
  font-size:13.5px;
  line-height:1.7;
  margin:0 0 8px;
}
.sm-disclaimer a{color:var(--accent-2);font-weight:650}
.sm-crumb{
  margin:0 0 14px;
  color:var(--text-muted);
  font-size:13px;
}
.sm-crumb a{color:var(--accent-2);font-weight:650;text-decoration:none}
@media (max-width:720px){
  .sm-table{font-size:12px}
  .sm-table th,
  .sm-table td{padding:7px 8px}
}

.sm-hero{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(22px,3vw,32px);
  line-height:1.35;
  letter-spacing:-.3px;
  color:var(--text-primary);
  margin:6px 0 16px;
  max-width:18em;
}
.sm-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
}
.sm-chip,
.sm-card-name,
.sm-expand{
  font-family:var(--sans);
}
.sm-chip{
  flex:0 0 auto;
  height:32px;
  padding:0 12px;
  border-radius:var(--radius-full);
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--text-secondary);
  font-size:13px;
  font-weight:650;
}
.sm-chip[aria-pressed="true"]{
  background:var(--accent);
  border-color:var(--accent);
  color:#1a1610;
}
.sm-more-coin{
  display:flex;
  align-items:center;
  gap:8px;
  margin:-4px 0 14px;
  color:var(--text-muted);
  font-size:12px;
  font-weight:650;
}
.sm-more-coin select{
  height:32px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--bg-card);
  color:var(--text-primary);
  font:inherit;
}
.sm-coinboard{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.sm-card,
.sm-action,
.sm-trader{
  min-width:0;
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  background:var(--bg-card);
  padding:14px;
}
.sm-card-on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.sm-card-name{
  display:block;
  width:100%;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  text-align:left;
  font-family:var(--serif);
  font-size:22px;
  font-weight:700;
  color:var(--text-primary);
  cursor:pointer;
}
.sm-card-tot{
  display:flex;
  flex-wrap:wrap;
  gap:4px 10px;
  margin:8px 0;
  font-size:12.5px;
  font-weight:700;
  line-height:1.45;
}
.sm-split{
  display:flex;
  height:10px;
  border-radius:var(--radius-full);
  overflow:hidden;
  background:var(--bg-secondary);
}
.sm-bar-long{display:block;height:100%;background:var(--accent-call)}
.sm-bar-short{display:block;height:100%;background:var(--accent-put)}
.sm-bias,
.sm-coin-note,
.sm-jump-note,
.sm-action-time,
.sm-action-detail,
.sm-hold-px,
.sm-liq-label,
.sm-liq-missing,
.sm-spark-empty,
.sm-spark-note{
  color:var(--text-muted);
  font-size:12.5px;
  line-height:1.5;
  margin:8px 0 0;
}
.sm-coin-note{max-width:46em;margin:10px 0 22px}
.sm-hold{
  display:grid;
  grid-template-columns:92px minmax(0,1fr) auto;
  gap:8px 12px;
  align-items:start;
  padding:12px 0;
  border-top:1px solid var(--border-light);
}
.sm-hold .sm-pill{
  width:92px;
  justify-content:center;
  box-sizing:border-box;
}
.sm-pill{
  display:inline-flex;
  align-items:center;
  height:28px;
  padding:0 10px;
  border-radius:var(--radius-full);
  background:var(--bg-secondary);
  font-size:12.5px;
  font-weight:750;
  white-space:nowrap;
}
.sm-hold-name{color:var(--accent-2);font-weight:750;margin-right:6px}
.sm-hold-tag{color:var(--text-secondary);font-size:12.5px;font-weight:650}
.sm-hedge{
  display:inline-flex;
  margin-left:6px;
  padding:0 6px;
  border-radius:var(--radius-full);
  border:1px solid color-mix(in srgb,var(--accent) 55%,var(--border));
  color:var(--accent-2);
  font-size:11px;
  font-weight:700;
  vertical-align:1px;
}
.sm-hold-num{text-align:right;font-variant-numeric:tabular-nums}
.sm-hold-num b,.sm-hold-num span{display:block}
.sm-hold-num b{font-weight:700;color:var(--text-primary)}
.sm-pnl-pos{color:var(--accent-call);font-weight:750}
.sm-pnl-neg{color:var(--accent-put);font-weight:750}
.sm-liq{
  height:8px;
  margin-top:8px;
  border-radius:var(--radius-full);
  background:var(--bg-secondary);
  overflow:hidden;
}
.sm-liq-fill{display:block;height:100%;border-radius:inherit}
/* Distance risk, not position side: <10% hot, <25% warn, else calm. Width clamps; the label does not. */
.sm-liq-hot .sm-liq-fill{background:var(--accent-put)}
.sm-liq-warn .sm-liq-fill{background:color-mix(in srgb,var(--accent-put) 55%,var(--accent))}
.sm-liq-calm .sm-liq-fill{background:var(--text-muted)}
.sm-legs{margin-top:6px;font-size:12px;color:var(--text-secondary)}
.sm-legs summary{cursor:pointer}
.sm-legs ul{margin:6px 0 0;padding-left:1.1em}
.sm-legs li{overflow-wrap:anywhere}
.sm-action-list{display:grid;gap:10px}
.sm-action-liq{border-color:color-mix(in srgb,var(--accent-put) 55%,var(--border));background:color-mix(in srgb,var(--accent-put) 8%,var(--bg-card))}
.sm-action-title{
  margin:0;
  font-family:var(--serif);
  font-size:18px;
  line-height:1.45;
  font-weight:700;
  color:var(--text-primary);
}
.sm-btn-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.sm-btn{
  display:inline-flex;
  align-items:center;
  height:32px;
  padding:0 12px;
  border-radius:var(--radius-full);
  border:1px solid var(--border);
  background:var(--bg-primary);
  color:var(--accent-2);
  font-size:12.5px;
  font-weight:700;
  text-decoration:none;
}
.sm-btn-pri{background:var(--accent);border-color:var(--accent);color:#1a1610}
.sm-jump-note{margin:0}
.sm-people{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.sm-more-people{margin-top:12px}
.sm-more-people > summary{
  cursor:pointer;
  color:var(--accent-2);
  font-weight:700;
  font-size:14px;
}
.sm-more-people .sm-people{margin-top:12px}
.sm-trader-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.sm-trader-head a{color:var(--text-primary);font-family:var(--serif);font-weight:700;font-size:18px;line-height:1.35}
.sm-trader-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.sm-trader-stats div{min-width:0}
.sm-trader-stats dt{color:var(--text-muted);font-size:11px;font-weight:650}
.sm-trader-stats dd{margin:2px 0 0;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.sm-trader-stats .sm-equity{max-width:none;white-space:nowrap}
.sm-trader-stats .sm-equity-note{white-space:normal;max-width:100%}
.sm-pos-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;padding:0;list-style:none}
.sm-pos-chips li{
  padding:2px 8px;
  border-radius:var(--radius-full);
  background:var(--bg-secondary);
  font-size:12px;
  font-weight:700;
}
.sm-ring-wrap{display:flex;align-items:center;gap:8px;margin-top:8px}
.sm-ring{width:36px;height:36px;flex:0 0 auto}
.sm-ring-track{fill:none;stroke:var(--border);stroke-width:3}
.sm-ring-value{fill:none;stroke:var(--accent-call);stroke-width:3;stroke-linecap:round;transform:rotate(-90deg);transform-origin:18px 18px}
.sm-ring-wrap strong{display:block;font-size:13px;color:var(--text-primary)}
.sm-ring-wrap small{display:block;color:var(--text-muted);font-size:11px}
.sm-spark{display:block;color:var(--accent);margin-top:8px}
.sm-filter-drawer{margin:8px 0 28px}
.sm-filter-drawer summary{
  cursor:pointer;
  color:var(--accent-2);
  font-weight:700;
  font-size:14px;
}
.sm-filter-drawer .sm-filters{margin-top:10px}
.sm-skel-row{display:flex;gap:8px;margin:0 0 12px}
.sm-skel{
  display:block;
  width:72px;
  height:32px;
  border-radius:var(--radius-full);
  background:var(--bg-secondary);
}
.sm-skel-card{min-height:118px;background:linear-gradient(180deg,var(--bg-card),var(--bg-secondary))}
.sm-fold-title{font-size:18px}
.sm-page-head{
  border:1px solid var(--border);
  border-bottom:0;
  border-radius:var(--radius-xl) var(--radius-xl) 0 0;
  background:var(--bg-card);
  padding:16px 16px 4px;
}
.sm-page-head .sm-title{margin-bottom:8px}
.sm-page-head .sm-kicker{margin-bottom:6px}
.sm-account{
  border:1px solid var(--border);
  border-top:0;
  border-radius:0 0 var(--radius-xl) var(--radius-xl);
  background:var(--bg-card);
  padding:4px 16px 16px;
  margin:0 0 28px;
}
.sm-account-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  align-items:center;
  margin:0 0 10px;
  color:var(--text-secondary);
  font-size:13.5px;
}
.sm-account .sm-notes{margin-bottom:12px}
.sm-account .sm-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}
.sm-sub-links{margin:8px 0 0;font-size:13px}
.sm-sub-links a{color:var(--text-muted);font-weight:650}
.sm-pos-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.sm-pos{
  min-width:0;
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  background:var(--bg-card);
  padding:14px;
}
.sm-pos-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 8px;
}
.sm-pos-head b{
  font-family:var(--serif);
  font-size:20px;
  line-height:1.2;
  color:var(--text-primary);
}
.sm-pos-ntl{
  margin:8px 0 0;
  font-family:var(--serif);
  font-size:22px;
  font-weight:700;
  color:var(--text-primary);
  font-variant-numeric:tabular-nums;
}
.sm-pos-px,
.sm-pos-pnl{margin:6px 0 0;font-size:13.5px;line-height:1.45}
.sm-pos-pnl{font-weight:750;font-variant-numeric:tabular-nums}
.sm-mini-list{display:grid;gap:8px;margin-top:12px}
.sm-mini{
  display:grid;
  grid-template-columns:minmax(72px,120px) minmax(0,1fr);
  gap:2px 10px;
  align-items:center;
}
.sm-mini span{font-weight:750;color:var(--text-primary);overflow-wrap:anywhere}
.sm-mini small{grid-column:1 / -1;color:var(--text-muted);font-size:12px}
.sm-account-side{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:12px;
  margin:0 0 28px;
}
.sm-panel{
  min-width:0;
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  background:var(--bg-card);
  padding:14px;
}
.sm-panel h2{
  font-family:var(--serif);
  font-size:20px;
  margin:0 0 8px;
  color:var(--text-primary);
}
.sm-panel .sm-ring{width:88px;height:88px}
.sm-panel .sm-ring-wrap{gap:14px;align-items:flex-start}
.sm-panel .sm-ring-wrap strong{font-family:var(--serif);font-size:28px;font-weight:700;line-height:1.1}
.sm-panel .sm-ring-wrap small{font-size:13px;line-height:1.45}
.sm-curve{color:var(--accent);margin-top:4px}
.sm-curve svg{display:block;width:100%;height:auto}
.sm-curve-empty{color:var(--text-muted)}
.sm-curve-empty p,
.sm-curve-note,
.sm-curve-ends{
  color:var(--text-muted);
  font-size:12.5px;
  line-height:1.5;
  margin:8px 0 0;
}
.sm-curve-ends{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sm-trades{margin:0 0 28px}
.sm-trades > summary{
  cursor:pointer;
  color:var(--accent-2);
  font-weight:700;
  font-size:16px;
  font-family:var(--serif);
}
.sm-trade{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) auto auto minmax(0,1.4fr);
  gap:6px 12px;
  align-items:baseline;
  padding:8px 0;
  border-top:1px solid var(--border-light);
  font-size:13px;
}
.sm-trade-time{color:var(--text-muted);font-variant-numeric:tabular-nums}
.sm-account .sm-fresh{margin-top:0}
.sm-hold-line{min-width:0}
.sm-split-scaled{justify-self:start;max-width:100%}
.sm-dust{margin:8px 0 0}
.sm-dust > summary{
  cursor:pointer;
  color:var(--text-secondary);
  font-weight:700;
  font-size:14px;
}
.sm-mlist{display:grid;gap:8px}
.sm-mrow{
  min-width:0;
  padding:12px;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:var(--bg-card);
}
.sm-mrow p{margin:0}
.sm-mrow-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:flex-start;
}
.sm-mrow-top a{color:var(--text-primary);font-weight:750;text-decoration:none}
.sm-mrow-mid{margin-top:6px;font-weight:650;overflow-wrap:anywhere}
.sm-mrow-sub{
  margin-top:4px;
  color:var(--text-muted);
  font-size:12.5px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.sm-links,
.sm-sub-links,
.sm-hold-name,
.sm-pos-head{overflow-wrap:anywhere}
@media (max-width:800px){
  .sm-coinboard,
  .sm-people,
  .sm-pos-grid,
  .sm-account-side,
  .sm-account .sm-metrics{grid-template-columns:1fr}
  .sm-hold{grid-template-columns:92px minmax(0,1fr)}
  .sm-hold-num{grid-column:2;text-align:left}
  .sm-trade{grid-template-columns:1fr 1fr}
  .sm-trade-time{grid-column:1 / -1}
}
/* sm-mobile: 560 */
@media (max-width:560px){
  .sm-wrap{padding:12px 14px 72px}
  .sm-kicker{margin-bottom:4px}
  .sm-title{font-size:26px;margin-bottom:6px}
  .sm-lede{font-size:13.5px;line-height:1.55;margin-bottom:8px}
  .sm-fresh{margin-bottom:6px}
  .sm-sources{margin-bottom:8px}
  .sm-filter-drawer{margin:0 0 10px}
  .sm-hero{font-size:18px;line-height:1.3;margin:0 0 8px}
  .sm-filters{grid-template-columns:1fr}
  .sm-chips{
    flex-wrap:nowrap;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    max-width:100%;
    margin-bottom:8px;
    scrollbar-width:none;
  }
  .sm-chips::-webkit-scrollbar{display:none;height:0}
  .sm-chip{height:36px}
  .sm-coinboard,
  .sm-people,
  .sm-pos-grid{grid-template-columns:1fr}
  .sm-coin-note{margin:8px 0 16px}
  .sm-block{margin-bottom:22px}
  .sm-hold{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "line pill"
      "num num"
      "px px"
      "liq liq"
      "legs legs";
    gap:6px 10px;
    align-items:center;
    padding:12px;
    margin:0 0 8px;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    background:var(--bg-card);
  }
  .sm-hold-main{display:contents}
  .sm-hold-line{grid-area:line}
  .sm-hold .sm-pill{grid-area:pill;width:auto;justify-self:end}
  .sm-hold-num{
    grid-area:num;
    grid-column:1 / -1;
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    gap:12px;
    text-align:left;
  }
  .sm-hold-px{grid-area:px;margin:0}
  .sm-hold-liq{grid-area:liq}
  .sm-hold-liq .sm-liq{margin-top:0}
  .sm-hold .sm-legs{grid-area:legs;margin-top:0}
  .sm-action{padding:12px}
  .sm-action .sm-btn-row{display:flex;flex-wrap:wrap;align-items:stretch}
  .sm-action .sm-btn{
    flex:1 1 calc(50% - 8px);
    min-height:40px;
    height:auto;
    justify-content:center;
    box-sizing:border-box;
    padding:8px 10px;
    text-align:center;
  }
  .sm-action .sm-jump-note{flex:1 1 100%}
  .sm-account .sm-metrics{grid-template-columns:1fr 1fr}
  .sm-account .sm-btn-row{flex-direction:column;align-items:stretch}
  .sm-account .sm-btn{
    width:100%;
    min-height:40px;
    height:auto;
    justify-content:center;
    box-sizing:border-box;
    padding:8px 12px;
    text-align:center;
  }
  .sm-account .sm-skel-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .sm-account .sm-skel{
    width:auto;
    height:64px;
    border-radius:var(--radius-lg);
  }
  .sm-skel-card{min-height:132px}
  .sm-pos.sm-skel-card{min-height:168px}
  .sm-trader-stats dd,
  .sm-trader-stats .sm-equity{white-space:normal}
  .sm-page-head{padding:12px 12px 2px}
  .sm-account{padding:4px 12px 12px}
  .sm-curve-toggle button,.sm-skill-none,.sm-explain-btn,.sm-skill-card .sm-btn,.sm-dumb-panel .sm-btn,.sm-skill-report .sm-btn{width:100%;min-height:40px;height:auto}
}



/* 成绩单：四个问题。颜色只走站点 token，浅色和杂志暖咖共用。 */
.sm-skill-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;max-width:100%}
.sm-skill-tab,
.sm-skill-none,
.sm-explain-btn,
.sm-explain-close,
.sm-curve-toggle button,
.sm-skill-sort button{
  min-height:40px;
  box-sizing:border-box;
  font:inherit;
  color:var(--text-primary);
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-full);
  padding:8px 12px;
  cursor:pointer;
}
.sm-skill-tab{display:inline-flex;align-items:center;gap:8px}
.sm-skill-tab.is-on,
.sm-skill-tab[aria-selected="true"]{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 28%,transparent)}
.sm-skill-count{font-size:13px;color:var(--text-secondary)}
.sm-skill-none{margin:12px 0;border-radius:var(--radius-lg)}
.sm-skill-grid,
.sm-lesson-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;min-width:0}
.sm-skill-card{
  min-width:0;
  background:var(--bg-card);
  border:1px solid var(--border-light);
  border-radius:var(--radius-xl);
  padding:12px 14px;
  box-shadow:var(--shadow);
}
.sm-skill-card-lg{padding:16px 18px}
.sm-skill-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.sm-skill-head h3{margin:0;font-family:var(--serif);font-size:18px;line-height:1.35}
.sm-skill-head a{color:var(--text-primary);text-decoration:none}
.sm-skill-sub,.sm-skill-meta,.sm-skill-progress{color:var(--text-muted);font-size:12.5px;line-height:1.45;margin:4px 0 0}
.sm-skill-why{margin:8px 0;font-size:14px;line-height:1.55;color:var(--text-primary)}
.sm-skill-checks{list-style:none;margin:8px 0 0;padding:0}
.sm-skill-checks li{display:grid;grid-template-columns:18px minmax(72px,88px) minmax(0,1fr);gap:4px;padding:4px 0;border-top:1px dashed var(--border-light);font-size:13px}
.sm-skill-checks i{font-style:normal;font-weight:800}
.sm-check-ok i{color:var(--accent-call)}
.sm-check-no i{color:var(--accent-put)}
.sm-check-na i{color:var(--text-muted)}
.sm-skill-idle,.sm-skill-stale{font-style:normal;margin-left:6px;font-size:11px;font-weight:700}
.sm-skill-idle{color:var(--accent-put)}
.sm-skill-stale{color:var(--text-secondary)}
.sm-skill-prog{height:6px;margin-top:6px;border-radius:var(--radius-full);background:var(--bg-secondary);overflow:hidden}
.sm-skill-prog span{display:block;height:100%;background:repeating-linear-gradient(90deg,var(--accent) 0 6px,transparent 6px 9px)}
.sm-tier{display:inline-flex;align-items:center;font-size:12px;font-weight:750;line-height:1.3;padding:2px 8px;border-radius:var(--radius-full);white-space:nowrap;border:1px solid var(--border);color:var(--text-secondary);background:var(--bg-card)}
.sm-tier-smart{color:var(--accent-call);border-color:color-mix(in srgb,var(--accent-call) 55%,var(--border));background:color-mix(in srgb,var(--accent-call) 14%,var(--bg-card))}
.sm-tier-watch{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 50%,var(--border));background:color-mix(in srgb,var(--accent) 12%,var(--bg-card))}
.sm-tier-thin{color:var(--text-secondary);border-style:dashed;border-color:color-mix(in srgb,var(--accent) 55%,var(--border));background:transparent}
.sm-tier-dumb{color:var(--accent-put);border-color:color-mix(in srgb,var(--accent-put) 55%,var(--border));background:color-mix(in srgb,var(--accent-put) 12%,var(--bg-card))}
.sm-tier-none{color:var(--text-muted)}
.sm-tier-compact{font-size:10px;padding:0 6px;margin:0 4px;vertical-align:1px}
.sm-explain{position:relative;margin:0 0 12px}
.sm-explain-btn{border-color:var(--accent);color:var(--accent);font-weight:700}
.sm-explain-back{display:none}
body.sm-explain-open .sm-explain-back{display:block;position:fixed;inset:0;z-index:30;border:0;padding:0;background:transparent}
.sm-explain-pop{
  position:absolute;z-index:31;top:calc(100% + 8px);left:0;width:min(560px,100%);
  background:var(--bg-card);color:var(--text-primary);border:1px solid var(--border);
  border-radius:var(--radius-xl);padding:12px 14px;box-shadow:var(--shadow-md);font-size:14px;line-height:1.6
}
.sm-explain-pop[hidden]{display:none}
.sm-explain-pop h3{margin:0 0 8px;font-family:var(--serif);font-size:18px}
.sm-explain-rules{margin:0 0 8px;padding-left:1.2em}
.sm-explain-close{margin-top:8px}
.sm-dumb-panel{
  border:1px solid color-mix(in srgb,var(--accent-put) 48%,var(--border));
  background:color-mix(in srgb,var(--accent-put) 10%,var(--bg-card));
  border-radius:var(--radius-xl);padding:14px
}
.sm-dumb-panel h2{color:var(--accent-put)}
.sm-dumb-line,.sm-dumb-warn{margin:0 0 10px;font-size:14px;line-height:1.6}
.sm-dumb-warn{
  color:var(--text-primary);
  background:color-mix(in srgb,var(--accent-put) 16%,var(--bg-card));
  border-radius:var(--radius-lg);padding:10px 12px
}
.sm-dumb-pos{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.sm-dumb-pos li{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;font-size:13px;min-width:0}
.sm-reverse{color:var(--text-secondary)}
.sm-curve-toggle{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.sm-curve-toggle button[aria-pressed="true"]{border-color:var(--accent);color:var(--accent)}
.sm-curve .sm-zero{stroke:var(--text-muted);stroke-width:1;stroke-dasharray:4 4}
.sm-curve.sm-pnl-pos{color:var(--accent-call)}
.sm-curve.sm-pnl-neg{color:var(--accent-put)}
.sm-skill-sort{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.sm-skill-table button{min-height:40px;white-space:nowrap}
.sm-lessons{margin-top:8px}

/* 成绩单窄屏写在桌面规则之后，否则后写的 position/flex-wrap 会盖住 bottom sheet。 */
@media (max-width:560px){
  .sm-skill-tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;max-width:100%}
  .sm-skill-tabs::-webkit-scrollbar{display:none}
  .sm-skill-tab{flex:0 0 auto}
  .sm-skill-grid,.sm-lesson-grid{grid-template-columns:1fr}
  .sm-curve-toggle{flex-direction:column}
  .sm-explain-pop{
    position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-height:min(78vh,560px);
    overflow:auto;border-radius:16px 16px 0 0;z-index:40
  }
  body.sm-explain-open .sm-explain-back{background:color-mix(in srgb,var(--bg-primary) 40%,transparent)}
  .sm-skill-checks li{grid-template-columns:18px minmax(64px,78px) minmax(0,1fr)}
}

/* 手机顶栏：栏目名完整可读（只作用于聪明钱页面）。
   收藏按钮与「← 返回」在窄屏收起：logo 已回首页，页内面包屑已回聪明钱。 */
@media (max-width: 560px) {
  [data-portal-host] .ls-bookmark-wrap,
  [data-portal-host] .pb-back { display: none !important; }
  [data-portal-host] .pb-logo { max-width: 84px; }
  [data-portal-host] .pb-name { flex: 1 1 auto; min-width: 0; max-width: none; }
}
