/* Screener ---------------------------------------------------------------- */
.hero { padding: 40px 0 16px; max-width: 820px; }
.hero .eyebrow { margin-bottom: 13px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5.5vw, 50px); line-height: 1.03; letter-spacing: -0.015em; margin: 0 0 12px; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero p { font-size: clamp(14px, 2vw, 16px); color: var(--muted); line-height: 1.6; margin: 0; max-width: 640px; }

/* toolbar */
.scr-toolbar { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 6px; position: relative; }
.tb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scr-search { flex: 1; min-width: 200px; }
.scr-search input { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 9px 16px; font-family: var(--sans); font-size: 13.5px; outline: none; }
.scr-search input:focus { border-color: var(--line-2); }
.scr-search input::placeholder { color: var(--faint); }
.tb-btn { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.tb-btn:hover { color: var(--text); border-color: var(--line-2); }
.tb-btn.ghost { border-color: transparent; }
.tb-btn .car { color: var(--accent); }
.saved-wrap { position: relative; }
.saved-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 200px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 6px; box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.saved-menu.open { display: block; }
.saved-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border-radius: var(--r-sm); font-size: 13px; cursor: pointer; }
.saved-item:hover { background: var(--surface-3); }
.saved-item span { flex: 1; }
.saved-item button { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 15px; }
.saved-item button:hover { color: var(--down); }
.saved-empty { padding: 10px; color: var(--faint); font-size: 12.5px; }

.presets { gap: 6px; }
.preset { font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); background: var(--accent-dim);
  border: 1px solid rgba(91,185,139,.28); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: all .15s; }
.preset:hover { border-color: var(--accent); }
.preset.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.uni { gap: 8px; }
.uni-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: all .15s; }
.chip-btn:hover { color: var(--text); border-color: var(--line-2); }
.chip-btn.active { color: var(--bg); background: var(--muted); border-color: var(--muted); }

/* filter builder */
.filters-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.filters-list { display: flex; flex-direction: column; gap: 8px; }
.f-empty { color: var(--faint); font-size: 13px; font-family: var(--mono); }
.f-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-metric { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm);
  padding: 7px 10px; font-family: var(--sans); font-size: 13px; outline: none; min-width: 190px; }
.f-metric:focus { border-color: var(--accent); }
.f-row input { width: 92px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--r-sm); padding: 7px 10px; font-family: var(--mono); font-size: 13px; outline: none; }
.f-row input:focus { border-color: var(--accent); }
.f-dash { color: var(--faint); }
.f-unit { font-family: var(--mono); font-size: 11px; color: var(--faint); width: 22px; }
.f-del { background: none; border: 0; color: var(--faint); font-size: 18px; cursor: pointer; line-height: 1; }
.f-del:hover { color: var(--down); }
.add-filter { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--accent); background: none;
  border: 1px dashed var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.add-filter:hover { color: var(--accent-2); border-color: var(--accent); }

/* column panel */
.col-panel { display: none; position: absolute; top: 46px; right: 0; z-index: 25; width: min(560px, 92vw);
  max-height: 60vh; overflow: auto; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 14px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.55);
  display: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 18px; }
.col-panel.open { display: grid; }
.cp-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 16px; margin-bottom: 6px; }
.cp-close { font-family: var(--mono); font-size: 12px; color: var(--accent); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.cp-group { break-inside: avoid; margin-bottom: 8px; }
.cp-g { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 6px 0 4px; }
.cp-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding: 3px 0; cursor: pointer; }
.cp-item input { accent-color: var(--accent); }

.result-meta { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; flex-wrap: wrap; gap: 8px; }
.result-meta .n { font-family: var(--serif); font-size: 18px; }
.result-meta .n b { color: var(--accent-2); font-weight: 500; }
.result-meta .hint { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* table */
.scr-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; background: var(--surface); max-height: 74vh; }
.scr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.scr-table th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; text-align: right; cursor: pointer;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 400;
  padding: 12px 12px; white-space: nowrap; user-select: none; border-bottom: 1px solid var(--line); }
.scr-table th:hover { color: var(--muted); }
.scr-table th.sorted { color: var(--accent-2); }
.scr-table th.name-col, .scr-table td.name-col { text-align: left; }
.scr-table th.name-col { position: sticky; left: 0; z-index: 4; }
.scr-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: #ded9cd; }
.scr-table td.txt { font-family: var(--sans); color: var(--muted); text-align: left; }
.scr-table td.name-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.scr-table tr:hover td { background: var(--surface-2); }
.scr-table tr:hover td.name-col { background: var(--surface-3); }
.scr-table tbody tr { cursor: pointer; }
.scr-name { display: flex; flex-direction: column; gap: 1px; }
.scr-name .tk { color: var(--brass); font-size: 12.5px; }
.scr-name .tk::before { content: "$"; opacity: .7; }
.scr-name .nm { color: var(--muted); font-family: var(--sans); font-size: 11.5px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-score { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.scr-score .bar { width: 40px; height: 5px; border-radius: 999px; background: rgba(236,233,223,.08); overflow: hidden; }
.scr-score .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.scr-empty { padding: 40px; text-align: center; color: var(--faint); }
.na { color: var(--faint); }
.pos { color: var(--up); } .neg { color: var(--down); }
