* { box-sizing: border-box; }
:root { color-scheme: dark; --bg:#111518; --panel:#191f23; --line:#354047; --ink:#f3f5f4; --muted:#b3bec1; --accent:#c5f47e; --deep:#202b17; }
body { margin:0; background:var(--bg); color:var(--ink); font:1rem/1.5 system-ui,sans-serif; }
[hidden] { display:none !important; }
a { color:var(--accent); }
button, input, select, textarea { font:inherit; }
button, select, summary { cursor:pointer; }
button { min-height:42px; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.wrap { width:min(1250px, 100% - 40px); margin-inline:auto; }
.top { border-bottom:1px solid var(--line); }
.bar { min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand { font-size:1.3rem; font-weight:800; letter-spacing:-.055em; color:var(--ink); text-decoration:none; display:flex; align-items:center; gap:0; }
.brand span:not(.mark) { color:var(--accent); }
.mark { border:2px solid var(--accent); border-radius:50%; width:22px; height:22px; margin-right:10px; position:relative; }
.mark::after { content:''; position:absolute; height:2px; width:8px; background:var(--accent); left:8px; top:8px; transform-origin:left center; transform:rotate(-55deg); }
.intro { padding:44px 0 25px; }
.intro p { margin:.4rem 0 0; color:var(--muted); }
.intro .kicker { color:var(--accent); letter-spacing:.11em; font-size:.875rem; font-weight:750; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(2.2rem,6vw,4.1rem); letter-spacing:-.065em; line-height:1.08; margin:.35rem 0 .75rem; }
h2 { font-size:1.28rem; letter-spacing:-.025em; }
h3 { font-size:1.05rem; }
.notice { border:1px solid #47633a; border-radius:9px; padding:12px 16px; background:var(--deep); color:#e2ebd6; margin-bottom:24px; font-size:.925rem; }
.layout { display:grid; grid-template-columns:295px minmax(0,1fr); gap:26px; align-items:start; }
.layout.collapsed { grid-template-columns:minmax(0,1fr); }
.filters, dialog { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:17px; }
.panel-heading, .results-head, .actions, .result-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }
label { display:grid; gap:5px; color:var(--ink); font-size:.875rem; font-weight:650; }
.filters > label, .filters > .duo, dialog label { margin-top:13px; }
input:not([type=checkbox]),select,textarea { width:100%; min-width:0; min-height:42px; border-radius:7px; border:1px solid var(--line); background:#14191c; color:var(--ink); padding:7px 9px; font-weight:400; font-size:1rem; }
select { appearance:none; padding-right:25px; background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-repeat:no-repeat; background-size:5px 5px; background-position:calc(100% - 13px) 50%,calc(100% - 8px) 50%; }
.duo { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.check { display:flex; align-items:center; gap:8px; }
input[type=checkbox] { width:17px; height:17px; accent-color:var(--accent); }
.hint,#count { color:var(--muted); font-size:.875rem; margin-top:4px; }
.primary,.quiet,.text { border-radius:7px; padding:6px 11px; font-size:.875rem; font-weight:680; }
.primary { background:var(--accent); color:#192613; border:1px solid var(--accent); }
.quiet { border:1px solid var(--line); background:var(--panel); color:var(--ink); }
.text { border:0; background:transparent; color:var(--accent); }
.actions { justify-content:flex-start; margin-top:14px; }
.error { color:#ffabab; font-size:.875rem; margin-top:5px; }
.sortbar { display:flex; align-items:center; gap:10px; margin:14px 0 12px; }
.sortbar select { width:min(235px,100%); }
.sortbar label { white-space:nowrap; }
.card { display:grid; grid-template-columns:minmax(185px,1.55fr) minmax(125px,1fr) minmax(130px,1fr); gap:12px; align-items:center; background:var(--panel); border:1px solid var(--line); border-radius:9px; margin-bottom:8px; padding:13px 15px; }
.card p { color:var(--muted); font-size:.875rem; }
.card .source { color:#d2dcdf; }
.card .price { color:var(--accent); font-weight:700; }
.card .end { color:var(--ink); }
#unpriced-section { margin-top:22px; }
#unpriced-section h3 { margin-bottom:8px; }
details { border-top:1px solid var(--line); padding:13px 0; margin-top:19px; color:var(--muted); }
summary { color:var(--ink); font-weight:650; }
details p { margin-top:8px; }
footer { border-top:1px solid var(--line); margin:24px 0 16px; padding-top:7px; }
dialog { width:min(510px,100% - 28px); color:var(--ink); }
dialog::backdrop { background:#000b; }
textarea { resize:vertical; margin-bottom:8px; }
.saved-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:8px 0; border-bottom:1px solid var(--line); }
.saved-row span { flex:1 1 115px; overflow-wrap:anywhere; }
@media(max-width:820px) {
  .layout { grid-template-columns:245px minmax(0,1fr); gap:14px; }
  .card { grid-template-columns:1fr 1fr; }
  .card .identity { grid-column:1/-1; }
}
@media(max-width:620px) {
  .wrap { width:calc(100% - 24px); }
  .intro { padding-top:27px; }
  .layout { grid-template-columns:minmax(0,1fr); }
  .results-head { align-items:flex-start; }
  .result-actions { flex-wrap:wrap; justify-content:flex-end; }
  .card { padding:11px; column-gap:8px; }
}


.control-link { display:inline-flex; min-height:42px; align-items:center; text-decoration:none; white-space:nowrap; }
.source-panel { margin-bottom:24px; padding:15px; border:1px solid var(--line); border-radius:9px; }
.source-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:8px; margin-top:12px; }
.source-list div { background:var(--panel); padding:9px 11px; border-radius:7px; }
.source-list a { font-weight:650; }
.source-list p { color:var(--muted); font-size:.875rem; }
