/* Trend board (pages/trend.js) */
.tb-breadth { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 12px; }
.tb-bnow { display: flex; gap: 22px; }
.tb-bnow > div { display: flex; flex-direction: column; }
.tb-bnow span { font-size: 0.75rem; } .tb-bnow b { font-size: 1.75rem; line-height: 1.1; } .tb-bnow small { font-size: 0.6875rem; }
.tb-bchart svg { width: 100%; height: 70px; display: block; background: var(--deck); border-radius: 6px; }
.tb-bchart small { font-size: 0.6875rem; }
.tb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tb-bar .foot { flex-basis: 100%; margin: 0; }
.tb-bar-tools { display: flex; gap: 12px; align-items: center; }
.tb-bar-tools input[type=search] { width: 200px; }
.tb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; align-items: start; }
.tb-col { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 10px; background: var(--deck); border: 1px solid var(--line-soft); min-width: 0; }
.tb-col.up { border-top: 3px solid var(--bull); } .tb-col.turned { border-top: 3px solid var(--wait); } .tb-col.pullback { border-top: 3px solid var(--brass); }
.tb-col.bounce { border-top: 3px solid var(--warn); } .tb-col.down { border-top: 3px solid var(--bear); }
.tb-colh { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.tb-colh small { flex-basis: 100%; font-size: 0.6875rem; }
.tb-count { font-size: 0.75rem; font-weight: 800; padding: 0 7px; border-radius: 999px; background: var(--deck-2); border: 1px solid var(--line); }
.tb-card { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-soft); background: var(--deck-2); cursor: pointer; min-width: 0; }
.tb-card:hover, .tb-card:focus-visible { border-color: var(--line); }
.tb-card.on { outline: 2px solid var(--accent, #4cc3f5); }
.tb-ch { display: flex; gap: 6px; align-items: baseline; } .tb-ch b { font-size: 0.9375rem; }
.tb-px { margin-left: auto; font-size: 0.8125rem; font-variant-numeric: tabular-nums; display: inline-flex; gap: 5px; align-items: center; }
.tb-live { width: 6px; height: 6px; border-radius: 50%; background: var(--bull); display: inline-block; }
.tb-name { font-size: 0.6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.tb-fs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tb-f { display: inline-flex; flex-direction: column; align-items: center; font-size: 0.6875rem; font-weight: 800; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); line-height: 1.3; }
.tb-f small { font-size: 0.5625rem; font-weight: 500; color: var(--muted); }
.tb-f.up { color: var(--bull); background: color-mix(in srgb, var(--bull) 12%, transparent); border-color: color-mix(in srgb, var(--bull) 40%, transparent); }
.tb-f.dn { color: var(--bear); background: color-mix(in srgb, var(--bear) 12%, transparent); border-color: color-mix(in srgb, var(--bear) 40%, transparent); }
.tb-f.none { color: var(--muted); }
.tb-fs .tag { margin-left: auto; }
.tb-turn { font-size: 0.75rem; display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; } .tb-turn b { font-weight: 800; }
.tb-turn em { flex-basis: 100%; font-style: normal; font-weight: 700; color: var(--warn); font-size: 0.6875rem; }
.tb-turn.crossed { padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--warn) 10%, transparent); }
.tb-strip { width: 100%; height: 18px; display: block; }
.tb-card > small { font-size: 0.6875rem; }
.tb-more { align-self: center; }
.tb-mixed { margin-top: 10px; }
.tb-mixedl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.tb-detail { margin-top: 12px; }
.tb-dh { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .tb-dh > b { font-size: 1.125rem; }
.tb-dcol { font-size: 0.75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line); }
.tb-dtools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.tb-dframes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.tb-dframes > div { background: var(--deck); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.tb-dframes svg { width: 100%; height: 72px; }
.tb-dfh { display: flex; justify-content: space-between; align-items: center; }
.tb-dlv { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 0.8125rem; }
.tb-dlv > div { display: flex; gap: 6px; align-items: baseline; } .tb-dlv span:first-child { color: var(--muted); }
.tb-why { font-size: 0.8125rem; margin: 8px 0 0; }
.tb-moves { margin-top: 12px; } .tb-moves h2 { font-size: 0.9375rem; margin: 0 0 8px; }
.tb-movel { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-mv { display: inline-flex; gap: 6px; align-items: center; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--deck-2); color: inherit; font: inherit; font-size: 0.75rem; cursor: pointer; }
.tb-mvc { font-weight: 700; } .tb-mvc.up, .tb-mvc.turned { color: var(--bull); } .tb-mvc.down { color: var(--bear); } .tb-mvc.pullback { color: var(--brass); } .tb-mvc.bounce { color: var(--warn); } .tb-mvc.mixed { color: var(--muted); }
.tb-legend { margin-top: 12px; }
.tb-research { color: var(--text); }
@media (max-width: 900px) {
  .tb-breadth { grid-template-columns: 1fr; }
  .tb-dframes { grid-template-columns: 1fr; }
  .tb-bar-tools input[type=search] { width: 140px; }
}
