/* r320: Screener Pro. Theme variables only. */
html.scr-open { overflow: hidden; }
.scr320 { position: fixed; inset: 0; z-index: 1150; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.42); }
.scr-card { width: min(1280px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); color: var(--t1); box-shadow: var(--shadow-3, 0 20px 60px rgba(0,0,0,.28)); font-size: 13px; }
.scr-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; flex: none; }
.scr-title { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.scr-title b { font-size: 17px; font-weight: 650; }
.scr-title span { font-size: 11.5px; color: var(--t3); }
.scr-search { display: flex; align-items: center; gap: 8px; width: min(320px, 40vw); height: 36px; padding: 0 11px; border: 1px solid var(--hair); border-radius: 9px; background: var(--fill); color: var(--t3); }
.scr-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--t1); font: inherit; font-size: 13px; outline: none; }
.scr-search:focus-within { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.scr-top .btn { height: 36px; }
.scr-x { width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--t2); font-size: 22px; line-height: 1; cursor: pointer; }
.scr-x:hover { background: var(--fill-2); color: var(--t1); }
.scr-breadth { display: flex; align-items: center; gap: 10px; padding: 0 16px 10px; font-size: 12px; font-weight: 600; flex: none; }
.scr-bar { flex: 1; max-width: 420px; height: 6px; display: flex; overflow: hidden; border-radius: 999px; background: var(--fill-2); }
.scr-bar i { display: block; height: 100%; }
.scr-bar .u { background: var(--up, #089981); } .scr-bar .d { background: var(--down, #f23645); } .scr-bar .f { background: var(--t4, #b2b5be); }
.scr320 .up { color: var(--up, #089981); } .scr320 .dn { color: var(--down, #f23645); }
.scr-mut { color: var(--t3); font-weight: 500; }
.scr-scans { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; flex: none; }
.scr-scans::-webkit-scrollbar { display: none; }
.scr-scans button { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 999px; background: transparent; color: var(--t2); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.scr-scans button:hover { background: var(--fill); color: var(--t1); }
.scr-scans button.on { background: var(--t1); border-color: var(--t1); color: var(--card); }
.scr-filters { display: flex; align-items: flex-end; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--fill); flex-wrap: wrap; flex: none; }
.scr-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: .03em; }
.scr-filters :is(select, input) { height: 32px; padding: 0 9px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card); color: var(--t1); font: inherit; font-size: 12.5px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.scr-filters :is(select, input):focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.scr-pair { display: flex; gap: 4px; }
.scr-pair input { width: 78px; }
.scr-reset { height: 32px; margin-left: auto; padding: 0 10px; border: 0; background: transparent; color: var(--t2); font: inherit; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.scr-wrap { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.scr-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.scr-table th { position: sticky; top: 0; z-index: 2; height: 36px; padding: 0 12px; background: var(--card); border-bottom: 1px solid var(--hair); color: var(--t3); font-size: 11.5px; font-weight: 600; text-align: left; white-space: nowrap; cursor: pointer; user-select: none; }
.scr-table th.r, .scr-table td.r { text-align: right; }
.scr-table th:hover { color: var(--t1); }
.scr-table th.on { color: var(--t1); }
.scr-table th i { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; border: 4px solid transparent; }
.scr-table th.on i { border-top-color: currentColor; border-bottom: 0; }
.scr-table th.on.asc i { border-top: 0; border-bottom: 4px solid currentColor; }
.scr-table td { height: 46px; padding: 0 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.scr-table tbody tr { cursor: pointer; }
.scr-table tbody tr:hover td, .scr-table tbody tr:focus-visible td { background: var(--fill); outline: none; }
.scr-sym { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 300px; height: 46px; }
.scr-sym > span { display: flex; flex-direction: column; min-width: 0; }
.scr-sym b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; }
.scr-sym small { font-size: 11px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.scr-logo { width: 26px !important; height: 26px !important; flex: none; border-radius: 50%; overflow: hidden; }
.scr-px { font-weight: 600; }
.scr-pill { display: inline-block; min-width: 66px; padding: 3px 7px; border-radius: 6px; font-weight: 600; text-align: right; }
td.up .scr-pill { background: color-mix(in srgb, var(--up, #089981) 13%, transparent); }
td.dn .scr-pill { background: color-mix(in srgb, var(--down, #f23645) 13%, transparent); }
.scr-range { min-width: 170px; }
.scr-range { display: table-cell; }
.scr-range small { font-size: 10.5px; color: var(--t3); }
.scr-rng { position: relative; display: inline-block; width: 64px; height: 4px; margin: 0 8px; vertical-align: middle; border-radius: 999px; background: linear-gradient(90deg, var(--down, #f23645), var(--t4, #b2b5be), var(--up, #089981)); opacity: .85; }
.scr-rng i { position: absolute; top: -3px; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px; background: var(--t1); }
.scr-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up, #089981); box-shadow: 0 0 0 2px color-mix(in srgb, var(--up, #089981) 22%, transparent); }
.scr-empty td { height: 120px; text-align: center; color: var(--t3); cursor: default; }
.scr-more { display: flex; justify-content: center; padding: 12px; }
.scr-more:empty { display: none; }
.scr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--hair); color: var(--t3); font-size: 11.5px; flex: none; }
.scr-legend { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* phones: cards instead of a wide table */
@media (max-width: 760px) {
  .scr320 { padding: 0; }
  .scr-card { width: 100%; height: 100%; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .scr-top { flex-wrap: wrap; padding: 10px 12px 8px; }
  .scr-search { order: 3; width: 100%; height: 40px; }
  .scr-top #scrCsv { display: none; }
  .scr-breadth { padding: 0 12px 8px; font-size: 11px; }
  .scr-breadth .scr-mut { display: none; }
  .scr-scans { padding: 0 12px 8px; }
  .scr-filters { flex-wrap: nowrap; overflow-x: auto; padding: 8px 12px; gap: 8px; scrollbar-width: none; }
  .scr-filters label { flex: none; }
  .scr-reset { margin-left: 0; flex: none; }
  .scr-table thead { display: none; }
  .scr-table, .scr-table tbody { display: block; }
  .scr-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "sym px chg" "rng rng vol"; align-items: center; gap: 4px 10px; padding: 9px 12px; border-bottom: 1px solid var(--hair); }
  .scr-table td { display: none; height: auto; padding: 0; border: 0; }
  .scr-table td:nth-child(1) { display: flex; grid-area: sym; height: auto; min-width: 0; max-width: none; }
  .scr-table td:nth-child(2) { display: block; grid-area: px; }
  .scr-table td:nth-child(3) { display: block; grid-area: chg; }
  .scr-table td:nth-child(7) { display: flex; align-items: center; grid-area: rng; }
  .scr-table td:nth-child(6) { display: block; grid-area: vol; font-size: 11px; color: var(--t3); text-align: right; }
  .scr-table tbody tr:hover td { background: transparent; }
  .scr-empty { display: block !important; } .scr-empty td { display: block !important; height: 120px; line-height: 120px; }
  .scr-sym small { max-width: 52vw; }
  .scr-legend { display: none; }
}

/* r322: Screener AI */
.scr-ai { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 5px 5px 5px 10px; border: 1px solid var(--hair); border-radius: 11px; background: var(--fill); flex: none; }
.scr-ai:focus-within { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.scr-ai-tag { flex: none; padding: 2px 7px; border-radius: 6px; background: linear-gradient(135deg, #7c4dff, #2962ff); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.scr-ai input { flex: 1; min-width: 0; height: 32px; border: 0; background: transparent; color: var(--t1); font: inherit; font-size: 13px; outline: none; }
.scr-ai .btn { height: 32px; flex: none; }
.scr-ai-out { margin: -2px 16px 10px; padding: 10px 12px; border-radius: 10px; background: var(--fill); font-size: 12.5px; line-height: 1.5; max-height: 34vh; overflow-y: auto; flex: none; }
.scr-ai-out p { margin: 0; }
.scr-ai-read h4 { margin: 8px 0 2px; font-size: 12px; font-weight: 700; }
.scr-ai-read h4:first-child { margin-top: 0; }
.scr-ai-read ul { margin: 0 0 4px; padding-left: 18px; }
@media (max-width: 760px) { .scr-ai { margin: 0 12px 8px; flex-wrap: wrap; } .scr-ai input { flex-basis: calc(100% - 50px); } .scr-ai .btn { flex: 1; } .scr-ai-out { margin: 0 12px 8px; } }
/* r454 stars, NEW badge, saved scans */
.scr-star{flex:none;width:22px;height:22px;margin-right:4px;border:0;background:transparent;color:#9598a1;font-size:15px;line-height:1;cursor:pointer;border-radius:5px}
.scr-star:hover{background:rgba(127,127,127,.14)}.scr-star.on{color:#f5a623}
.scr-new{display:inline-block;margin-left:6px;padding:0 5px;border-radius:4px;background:#ff6a33;color:#fff;font:700 9.5px/16px Inter,system-ui,sans-serif;font-style:normal;vertical-align:middle}
tr.scr-isnew td{background:rgba(255,106,51,.07)}
.scr-saved{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 14px}.scr-saved[hidden]{display:none}
.scr-sv{display:inline-flex;border:1px solid rgba(127,127,127,.3);border-radius:999px;overflow:hidden}
.scr-sv button{border:0;background:transparent;color:inherit;padding:3px 10px;font:600 12px Inter,system-ui,sans-serif;cursor:pointer}.scr-sv button+button{padding:3px 8px;opacity:.6}.scr-sv button:hover{background:rgba(255,106,51,.1)}
