/* Finder app. Shares tokens with site.css. */
.app { min-height: 100svh; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); border-bottom: 1px solid var(--line); background: var(--ink); position: sticky; top: 0; z-index: 10; }
.who { display: flex; align-items: center; gap: 14px; }
.quota { font: 400 13px var(--mono); color: var(--muted); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; }

.gate { display: grid; place-items: center; min-height: calc(100svh - 64px); padding: 20px; background: radial-gradient(80% 90% at 15% 90%, #183039 0%, var(--ink) 70%); }
.card { width: min(420px, 100%); background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 32px 28px; display: grid; gap: 16px; }
.card h1 { font-size: 30px; max-width: none; }
.card .lede { margin: 0; font-size: 16px; }

label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--ink); color: var(--paper); font: 400 16px var(--sans); }
input:focus, select:focus { outline: 2px solid var(--flag); outline-offset: 1px; }
.err { margin: 0; color: #ffb4a8; font-size: 15px; }

.finder { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: calc(100svh - 64px); }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } }
.panel { padding: 28px 24px; border-right: 1px solid var(--line); display: grid; gap: 16px; align-content: start; background: var(--ink-2); }
@media (min-width: 901px) { .panel { position: sticky; top: 64px; height: calc(100svh - 64px); overflow: auto; } }
.panel h2, .results h2 { font-size: 22px; max-width: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kw { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.kw legend { font-size: 14px; color: var(--muted); padding: 0 4px; }
.kw label { display: flex; align-items: center; gap: 8px; color: var(--paper); font-size: 15px; min-height: 36px; }
.kw input { width: 18px; min-height: 18px; accent-color: var(--flag); }

.results { padding: 28px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.filter { display: flex; align-items: center; gap: 8px; }
.filter select { width: auto; min-height: 40px; }
.list { display: grid; gap: 12px; }
.empty { padding: 48px 24px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); max-width: 60ch; }
.empty b { color: var(--paper); display: block; font-size: 20px; margin-bottom: 6px; }

.lead { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); }
@media (max-width: 760px) { .lead { grid-template-columns: 64px minmax(0, 1fr); } .acts { grid-column: 1 / -1; } }
.score { display: grid; justify-items: center; align-content: start; gap: 8px; }
.score b { font: 500 32px/1 var(--mono); font-variant-numeric: tabular-nums; }
.score i { width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--flag) var(--s), var(--ink-3) var(--s)); }
.lead.hot .score b { color: var(--flag); }
.info h3 { font-size: 19px; font-weight: 600; }
.where, .facts { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.facts strong { color: var(--paper); font-weight: 500; }
.facts .nosite { color: var(--flag); font-weight: 600; }
.issues { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.issues li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; background: var(--muted); vertical-align: middle; }
.issues li.high::before { background: var(--flag); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; justify-content: flex-end; max-width: 300px; }
.acts .stage { width: 100%; min-height: 38px; font-size: 14px; }
@media (max-width: 760px) { .acts { max-width: none; justify-content: flex-start; } .acts .stage { width: auto; } }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 8px; font-weight: 600; z-index: 40; }
