/*
 * Research pages (/stock-lab). Builds on /styles.css and its tokens, so the
 * light/dark theme applies without anything here knowing about it.
 */

.rs { padding-top: 36px; }

.up { color: var(--green); }
.down { color: var(--red); }

/* ── Search ── */

.rs-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.rs-search:focus-within { border-color: var(--green-dim); }
.rs-search svg { width: 20px; height: 20px; color: var(--dim); flex-shrink: 0; }

.rs-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.rs-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.rs-suggest li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.rs-suggest li:hover, .rs-suggest li.on { background: var(--surface-2); }
.rs-suggest b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.rs-suggest span { color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-suggest em { color: var(--dim); font-style: normal; font-size: 12px; white-space: nowrap; }

/* ── Cards & layout ── */

.rs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
  min-width: 0;
}

.rs-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rs-card-head h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

/* Title and its ⓘ sit together on the left; whatever follows goes right. */
.rs-card-head { justify-content: flex-start; }
.rs-card-head h2 + .info { margin-left: -6px; }
.rs-card-head > :not(h2):not(.info) { margin-left: auto; }

.rs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rs-grid-2 > .rs-card { margin-bottom: 20px; }
.rs-grid-2.rs-tight { gap: 24px; }

.rs-group {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 18px 0 10px;
}

.rs-group:first-of-type { margin-top: 4px; }

.rs-muted { color: var(--muted); }
.rs-small { font-size: 12.5px; }
.rs-note { color: var(--dim); font-size: 12px; margin-top: 12px; }
.rs-sub { display: block; color: var(--dim); font-size: 11.5px; }
.rs-empty { color: var(--muted); }
.rs-empty h2 { font-family: 'Space Grotesk', sans-serif; margin-bottom: 8px; color: var(--text); }

.rs-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 40px 0; font-family: 'JetBrains Mono', monospace; font-size: 13px; }

.rs-intro { margin-bottom: 24px; }
.rs-intro h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
.rs-intro .lede { margin-bottom: 0; }

.rs-disclaimer { margin-top: 30px; color: var(--dim); font-size: 12px; max-width: 80ch; }

/* ── Info button + popover ── */

.info {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  margin-left: 4px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: italic 600 10.5px/1 Georgia, serif;
  cursor: help;
  vertical-align: middle;
  flex-shrink: 0;
}

.info:hover, .info:focus-visible { color: var(--green); border-color: var(--green-dim); outline: none; }

.rs-pop {
  position: absolute;
  z-index: 50;
  max-width: 300px;
  padding: 10px 12px;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ── Stock header ── */

.rs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.rs-back { margin-bottom: 18px !important; }
.rs-title .eyebrow { margin-bottom: 8px; }
.page .rs-title h1 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 8px; }
.rs-tkr { font-family: 'JetBrains Mono', monospace; font-size: .45em; color: var(--muted); vertical-align: middle; border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; }

.rs-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rs-price b { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 600; }
.rs-price span { font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.rs-price em { font-style: normal; color: var(--dim); font-size: 12px; }

.rs-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 240px; }
.rs-mcap { color: var(--muted); font-size: 13px; }
.rs-mcap b { color: var(--text); }

.rs-follow {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.rs-follow:hover { border-color: var(--green-dim); }
.rs-follow.on { color: var(--green); border-color: var(--green-dim); background: color-mix(in srgb, var(--green) 10%, transparent); }

.rs-52 { width: 100%; }
.rs-52-bar { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red), var(--gold), var(--green)); opacity: .85; }
.rs-52-bar span { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.rs-52-lbl { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--dim); font-size: 11.5px; font-family: 'JetBrains Mono', monospace; }

/* ── Score ── */

.rs-score-main { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.rs-score-num b { font-family: 'Space Grotesk', sans-serif; font-size: 56px; font-weight: 600; line-height: 1; }
.rs-score-num span { color: var(--dim); font-size: 18px; margin-left: 4px; }
.rs-score-num.good b { color: var(--green); }
.rs-score-num.ok b { color: var(--gold); }
.rs-score-num.weak b { color: var(--red); }
.rs-score-word { font-weight: 600; color: var(--muted); }

.rs-pillars { list-style: none; display: grid; gap: 9px; }
.rs-pillars li { display: grid; grid-template-columns: 160px 1fr 32px; gap: 12px; align-items: center; font-size: 13px; }
.pl-name { display: flex; align-items: center; color: var(--muted); }
.pl-bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.pl-bar i { display: block; height: 100%; border-radius: 8px; }
.pl-bar i.good, .score-pill.good { background: var(--green); }
.pl-bar i.ok, .score-pill.ok { background: var(--gold); }
.pl-bar i.weak, .score-pill.weak { background: var(--red); }
.pl-bar i.nt { background: var(--muted); } /* no judgement: just a share */
.pl-val { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }

.score-pill { display: inline-block; min-width: 34px; padding: 2px 8px; border-radius: 20px; color: #06140E; font-weight: 700; font-size: 12px; text-align: center; }

/* Horizontal bars: ETF sectors and holdings. */
.rs-bars { list-style: none; display: grid; gap: 8px; }
.rs-bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 48px; gap: 12px; align-items: center; font-size: 13px; }
.rs-bars li > span:first-child, .rs-bars a { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-bars a b { color: var(--text); font-family: 'JetBrains Mono', monospace; font-weight: 500; margin-right: 4px; }
.rs-bars a:hover, .rs-bars a:hover b { color: var(--green); }

/* ── Phase ── */

.ph-q { list-style: none; display: grid; margin-bottom: 14px; }
.ph-q li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.ph-q li b { display: block; font-size: 14px; }
.ph-q li span:not(.st) { color: var(--muted); font-size: 12.5px; }

.ph-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 12px; }
.ph-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; background: var(--surface-2); color: var(--dim); font-size: 11px; text-align: center; line-height: 1.25; }
.ph-steps li span { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12px; }
.ph-steps li.on { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--text); outline: 1px solid var(--green-dim); font-weight: 600; }
.ph-steps li.on span { color: var(--green); }
.ph-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.ph-desc b { color: var(--text); }
.ph-keys { grid-template-columns: 1fr 1fr; }

.rs-phase { list-style: none; display: grid; gap: 10px; }
.rs-phase li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 10px; }
.rs-phase li b { display: block; font-size: 14px; }
.rs-phase li span { color: var(--muted); font-size: 12.5px; }
.ph-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); color: var(--dim); font-size: 12px; flex-shrink: 0; }
.rs-phase li.done { border-color: var(--green-dim); }
.rs-phase li.done .ph-mark { background: var(--green); border-color: var(--green); color: #06140E; font-weight: 700; }
.rs-phase li.no .ph-mark { color: var(--red); border-color: var(--red); }

/* ── Segmented buttons ── */

.rs-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 9px; }
.rs-seg button { padding: 5px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-family: 'JetBrains Mono', monospace; font-size: 12px; cursor: pointer; }
.rs-seg button:hover { color: var(--text); }
.rs-seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* ── Metrics ── */

.rs-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }

.mt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
}

.mt-good { border-left-color: var(--green); }
.mt-ok { border-left-color: var(--gold); }
.mt-weak { border-left-color: var(--red); }

.mt-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.mt-val { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600; line-height: 1.1; }
.mt-note { margin-left: 6px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 400; color: var(--dim); }
.mt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mt-range { color: var(--dim); font-size: 11px; }

.st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.st-good { color: var(--green); border-color: var(--green-dim); }
.st-ok { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.st-weak { color: var(--red); border-color: color-mix(in srgb, var(--red) 50%, transparent); }

/* ── Tables ── */

.rs-table-wrap { overflow-x: auto; }
.rs-scroll { max-height: 360px; overflow-y: auto; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rs-table th { text-align: left; color: var(--dim); font-weight: 500; font-size: 11.5px; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rs-table td { padding: 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.rs-table .nowrap { white-space: nowrap; color: var(--muted); }
.rs-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-table tr:last-child td { border-bottom: 0; }
.rs-compact td { padding: 8px 10px; font-size: 13px; }
.rs-table a { color: var(--text); border-bottom: 1px solid var(--border); }
.rs-table a:hover { color: var(--green); }
.row-buy td { background: color-mix(in srgb, var(--green) 6%, transparent); }

.rs-sym { display: flex; flex-direction: column; border: 0 !important; }
.rs-sym b { font-family: 'JetBrains Mono', monospace; }
.rs-sym span { color: var(--muted); font-size: 12px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rs-x { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--dim); font-size: 18px; cursor: pointer; }
.rs-x:hover { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }

/* ── Analysts ── */

.rs-big { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.rs-big .rs-muted { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 400; }

.rs-rec-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; }
.rs-rec-bar i, .rs-rec-legend i { display: block; }
.r1 { background: var(--green); }
.r2 { background: color-mix(in srgb, var(--green) 55%, var(--surface-2)); }
.r3 { background: var(--dim); }
.r4 { background: color-mix(in srgb, var(--red) 55%, var(--surface-2)); }
.r5 { background: var(--red); }

.rs-target { position: relative; height: 22px; margin-top: 6px; }
.rs-target-line { position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--border); }
.rs-target span { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; }
.tg-now { background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.tg-mean { background: var(--green); box-shadow: 0 0 0 2px var(--surface); }

/* ── Legends ── */

.rs-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12px; margin: -4px 0 10px; }
.rs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rs-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.rs-rec-legend { margin-top: 10px; }
.lg-act { background: var(--green); }
.lg-est { background: repeating-linear-gradient(45deg, var(--green) 0 2px, transparent 2px 5px); border: 1px solid var(--green); }
.lg-dot-est { border: 2px solid var(--muted); border-radius: 50% !important; }
.lg-dot-act { background: var(--green); border-radius: 50% !important; }
.lg-dot-miss { background: var(--red); border-radius: 50% !important; }
.lg-now, .lg-mean { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.lg-now { background: var(--text); }
.lg-mean { background: var(--green); }

.rs-earn-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill-good { color: var(--green); border-color: var(--green-dim); }

.rs-chart-foot { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ── About ── */

.rs-about { color: var(--muted); font-size: 14px; max-width: 90ch; margin-bottom: 16px; }
.rs-facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 20px; font-size: 13.5px; }
.rs-facts dt { color: var(--dim); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.rs-facts a { color: var(--text); border-bottom: 1px solid var(--border); }

/* ── Charts (research/charts.js) ── */

.rs-chart { position: relative; width: 100%; min-height: 200px; }
.ch { position: relative; }
.ch svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-label { fill: var(--dim); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; }
.ch-grid line { stroke: var(--border-soft); stroke-width: 1; }
.ch-grid line.ch-zero { stroke: var(--border); }
.ch-line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; }
.ch-line.ch-down { stroke: var(--red); }
.ch-line2 { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.ch-tip b.ch-inline { display: inline; }
.ch-area { fill: color-mix(in srgb, var(--green) 10%, transparent); stroke: none; }
.ch-area.ch-down { fill: color-mix(in srgb, var(--red) 10%, transparent); }
.ch-dot { fill: var(--green); stroke: var(--surface); stroke-width: 2; }
.ch-dot.ch-down { fill: var(--red); }
.ch-cross { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 3; }
.ch-bar { fill: var(--green); }
.ch-bar.ch-neg { fill: var(--red); }
.ch-bar.ch-est { stroke: var(--green); stroke-width: 1; }
.ch-hatch-bg { fill: color-mix(in srgb, var(--green) 12%, transparent); }
.ch-hatch-line { stroke: var(--green); stroke-width: 2; }
.ch-whisker { stroke: var(--muted); stroke-width: 1.5; }
.ch-est-dot { fill: none; stroke: var(--muted); stroke-width: 2; }
.ch-act-dot { fill: var(--green); stroke: var(--surface); stroke-width: 2; }
.ch-act-dot.ch-miss { fill: var(--red); }
.ch-empty { color: var(--dim); font-size: 13px; padding: 40px 0; text-align: center; }

.ch-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  padding: 7px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
  white-space: nowrap;
}

.ch-tip b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text); }
.ch-tip span { display: block; color: var(--muted); }

/* ── Small screens ── */

@media (max-width: 860px) {
  .rs-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .rs-grid-2.rs-tight { gap: 20px; }
  .rs-head-side { align-items: stretch; width: 100%; }
  .rs-pillars li { grid-template-columns: 130px 1fr 28px; }
  .hide-sm { display: none; }
}

@media (max-width: 760px) {
  .rs-card { padding: 16px; }
  .rs-metrics { grid-template-columns: 1fr 1fr; }
  .mt-val { font-size: 19px; }
  .rs-suggest li { grid-template-columns: 70px 1fr; }
  .rs-suggest em { display: none; }
  .rs-facts { grid-template-columns: 1fr; gap: 2px; }
  .rs-facts dd { margin-bottom: 8px; }
}

/* ── Tabs (Watchlist | Filters) ── */

.rs-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.rs-tabs a {
  padding: 10px 16px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.rs-tabs a:hover { color: var(--text); }
.rs-tabs a.on { color: var(--text); border-bottom-color: var(--green); }
.rs-tabs a span { margin-left: 4px; padding: 1px 7px; border-radius: 20px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-family: 'JetBrains Mono', monospace; }

/* ── Filters ── */

.fl-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.fl-preset {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.fl-preset:hover { border-color: var(--green-dim); color: var(--green); }
.fl-reset { color: var(--muted); background: transparent; }

.fl-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }

.fl-form { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 16px 18px; }
.fl-form fieldset { border: 0; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--border-soft); display: grid; gap: 10px; }
.fl-form legend { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }

.fl { display: grid; gap: 5px; font-size: 13px; }
.fl-label { display: flex; align-items: center; color: var(--muted); }
.fl select, .fl-num input, .fl-sort select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}
.fl select:focus, .fl-num input:focus { outline: none; border-color: var(--green-dim); }
.fl-num { position: relative; display: block; }
.fl-num input { padding-right: 30px; }
.fl-num em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--dim); font-style: normal; font-size: 12px; }
.fl-check { grid-template-columns: auto 1fr; align-items: center; gap: 8px; cursor: pointer; }
.fl-check input { width: 16px; height: 16px; accent-color: var(--green); }

.fl-why { font-size: 12.5px; color: var(--muted); }
.fl-why summary { cursor: pointer; color: var(--text); font-weight: 600; }
.fl-why p, .fl-why ul { margin-top: 8px; }
.fl-why ul { padding-left: 18px; display: grid; gap: 4px; }

.fl-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.fl-sort select { width: auto; }
.fl-results .rs-card-head h2 { font-size: 16px; }
.fl-table tbody { transition: opacity .15s; }
.fl-table .fl-score-col { display: none; }
.fl-table.with-score .fl-score-col { display: table-cell; }

.fl-more { display: block; margin: 14px auto 0; padding: 9px 18px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.fl-more:hover { border-color: var(--green-dim); }

.rs-star { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--dim); font-size: 17px; cursor: pointer; }
.rs-star:hover { color: var(--gold); background: var(--surface-2); }
.rs-star.on { color: var(--gold); }

/* Beside the filter panel the table has less room than the page. */
@media (max-width: 1240px) {
  .fl-table .hide-sm { display: none; }
}

@media (max-width: 960px) {
  .fl-layout { grid-template-columns: 1fr; }
  .fl-form { position: static; max-height: none; }
}

/* Phones: fewer columns and tighter cells, so tables fit without swiping. */
@media (max-width: 560px) {
  .hide-xs { display: none; }
  .rs-compact td { padding: 7px 6px; font-size: 12px; }
  .rs-table td, .rs-table th { padding-left: 6px; padding-right: 6px; }
  .rs-sym span { max-width: 150px; }
}
