/* /screener (templates/screener.html, screener.js) */
.scr-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.scr-lbl { font-size: 12px; color: var(--muted); margin-right: 4px; }
.scr-preset { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 1px solid var(--line2);
  border-radius: 8px; background: var(--panel); font-size: 12.5px; color: var(--text); text-decoration: none; }
.scr-preset:hover, .scr-preset[aria-current] { border-color: var(--up); color: var(--up); }
.scr-mine[hidden] { display: none; }
.scr-mine-list { display: contents; }
.scr-mine-item { display: inline-flex; }
.scr-mine-link { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 8px 0 0 8px; }
.scr-mine-del { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 30px; padding: 0;
  border: 1px solid var(--line2); border-left: 0; border-radius: 0 8px 8px 0; background: var(--panel); color: var(--muted);
  font-family: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.scr-mine-del:hover, .scr-mine-del:focus-visible { border-color: var(--down); color: var(--down); }
.scr-mine-note { font-size: 12px; flex-basis: 100%; }
.scr-mine-note:empty { display: none; }
.scr-build { padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 12px; }
.scr-build[hidden] { display: none; }
.scr-sec summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.scr-h { font-size: 13.5px; margin: 0 0 6px; }
.scr-fields { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; }
.scr-fields label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.scr-fields code, .scr-ref code, .scr-fieldref code { font-size: 11.5px; color: var(--muted); }
.scr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.scr-row input, .scr-row select { height: 30px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel);
  color: var(--text); padding: 0 8px; font: 12.5px "JetBrains Mono", monospace; }
.scr-row .scr-x { flex: 1 1 220px; min-width: 0; max-width: 420px; }
.scr-row .scr-v { width: 96px; }
.scr-row .bad { border-color: var(--down); }
.scr-msg { flex-basis: 100%; font-size: 12px; color: var(--down); }
.scr-msg:empty { display: none; }
.scr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12.5px; }
.scr-table .empty-row td { text-align: left; }
.scr-empty { display: block; position: sticky; left: 12px; max-width: min(100%, calc(100vw - 80px)); }
.empty-row .scr-empty-reset { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.scr-err { border: 1px solid var(--down); border-radius: 8px; padding: 8px 12px; color: var(--down); font-size: 13px; }
.scr-table th[data-col] { cursor: pointer; user-select: none; }
.scr-table th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; }
.scr-table th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; }
.scr-table th .f { font-family: "JetBrains Mono", monospace; font-weight: 500; }
.scr-ref h2 { font-size: 15px; margin: 16px 0 6px; }
.scr-fieldref td { font-size: 12.5px; }
@media (max-width: 640px) { .scr-row .scr-x { flex-basis: 100%; max-width: none; } }

/* T-800 handoff table: the reasons must be readable on a phone, so cells wrap instead of scrolling */
.ho-table th,.ho-table td{white-space:normal;overflow-wrap:break-word;vertical-align:top}
.ho-table th{white-space:nowrap}
.ho-table td:nth-child(2) code{white-space:nowrap}
.ho-table td:nth-child(n+3){min-width:7rem}
@media (max-width:640px){
.ho-table,.ho-table tbody,.ho-table tr,.ho-table td{display:block}
.ho-table thead{display:none}
.ho-table tr{padding:8px 0;border-bottom:1px solid var(--line,#2a2f3a)}
.ho-table td{padding:2px 0;border:0;min-width:0!important}
.ho-table td[data-l]::before{content:attr(data-l) ": ";font-weight:600}
}

/* Touch hit areas (T-1337). Measured at 390px before this: the 13x13 field checkboxes (a 4px row gap, 12.5px text), preset
   pills and row inputs 30px, the remove button ~28px. Phones and touch tablets get 44px controls (36px for the
   whole checkbox label, whose row gap is 4px); the drawn look stays and mouse desktops keep the compact sizes. */
@media (max-width: 640px), (pointer: coarse) {
  .scr-fields label { min-height: 36px; padding-block: 4px; box-sizing: border-box; }
  .scr-preset { height: auto; min-height: 44px; }
  .scr-mine-del { height: auto; min-height: 44px; min-width: 44px; }
  .scr-row input, .scr-row select { height: auto; min-height: 44px; }
  .scr-row .btn { min-height: 44px; min-width: 44px; }
  .scr-actions .btn, .scr-actions a { min-height: 44px; display: inline-flex; align-items: center; }
}
/* Section summaries ("Columns (n fields)") get a 44px row on touch (T-2439); negative block margins (12px = the panel's
   padding and gap) keep the panel height, and the list-item display keeps the disclosure marker. */
@media (max-width: 640px), (pointer: coarse) {
  .scr-sec summary { box-sizing: border-box; min-height: 44px; margin: -12px -14px; padding: 12px 14px; }
}
/* The "As of" line from partials/seo_head.html; copied from seo.css, which this page no longer loads (T-2552). */
.asof { color: var(--muted); font-variant-numeric: tabular-nums; }
