:root { --ink:#16191d; --muted:#5f6672; --line:#e4e7ec; --bg:#f7f8fa; --brand:#1a5fb4; --brand-dark:#14498c; --good:#1b7f4b; --warn:#a15c00; --gold:#f2b705; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
a { color: var(--brand); }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
.top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 20px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
.brand { display:flex; align-items:center; gap:8px; font-weight:800; color:var(--ink); text-decoration:none; }
.logo { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:6px; background:var(--gold); color:#111; font-weight:900; }
nav { display:flex; gap:4px; flex-wrap:wrap; }
nav button { background:none; border:0; padding:8px 12px; border-radius:8px; font:inherit; font-size:14.5px; cursor:pointer; color:var(--muted); }
nav button.on { background:#eef4fc; color:var(--brand-dark); font-weight:600; }
.count:not(:empty) { background:var(--brand); color:#fff; border-radius:999px; padding:0 7px; font-size:12px; margin-left:3px; }
.wrap { max-width:1120px; margin:0 auto; padding:24px 20px 56px; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; margin-bottom:16px; }
.narrow { max-width:560px; margin-left:auto; margin-right:auto; }
h1 { font-size:26px; margin:0 0 6px; } h2 { font-size:19px; margin:0 0 10px; }
label { display:block; font-size:13px; font-weight:600; margin:12px 0 5px; }
input, select { width:100%; padding:10px 12px; border:1px solid #d3d8e0; border-radius:8px; font:inherit; font-size:15px; background:#fff; color:var(--ink); }
button, .btn { display:inline-block; margin-top:14px; background:var(--brand); color:#fff; border:0; border-radius:8px; padding:10px 18px; font:inherit; font-weight:600; font-size:14.5px; cursor:pointer; text-decoration:none; }
button:disabled { opacity:.6; } .btn.ghost { background:#fff; color:var(--brand); border:1px solid var(--brand); margin:0; }
button.link { background:none; color:var(--brand); padding:0 4px; margin:0; font-weight:600; text-decoration:underline; }
.ok, .err, .notice { padding:11px 14px; border-radius:8px; margin-top:14px; font-size:14.5px; }
.ok { background:#e9f6ee; border:1px solid #b6e0c6; color:var(--good); }
.err { background:#fdeceb; border:1px solid #f5c2c0; color:#8c1d18; }
.notice { background:#fff7e6; border:1px solid #f3d7a2; color:#6b4300; margin:0 0 14px; }
.empty { color:var(--muted); text-align:center; padding:28px; }
.hello { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:14px; }
.filters { display:grid; grid-template-columns:2fr repeat(4, 1fr) auto; gap:8px; align-items:center; margin-bottom:16px; }
.filters .inline { display:flex; gap:6px; align-items:center; margin:0; font-weight:500; white-space:nowrap; }
.filters .inline input { width:auto; }
.grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
.match { display:grid; grid-template-columns:140px 1fr; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.match img, .match .noimg { width:140px; height:100%; min-height:150px; object-fit:cover; background:#eef1f5; }
.match .noimg { display:grid; place-items:center; color:var(--muted); text-transform:uppercase; font-size:12px; letter-spacing:1px; }
.match .body { padding:14px 16px; min-width:0; }
.match .head { display:flex; justify-content:space-between; gap:10px; }
.match h3 { margin:2px 0; font-size:16px; line-height:1.3; } .match h3 a { color:var(--ink); text-decoration:none; }
.tag { font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--brand-dark); font-weight:700; }
.ring { flex:none; width:62px; height:62px; border-radius:50%; border:4px solid var(--brand); display:grid; place-content:center; text-align:center; line-height:1; }
.ring b { font-size:19px; } .ring span { font-size:9.5px; color:var(--muted); text-transform:uppercase; }
.parts { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-top:10px; }
.part { font-size:11.5px; color:var(--muted); } .part b { float:right; color:var(--ink); }
.part i { display:block; clear:both; height:5px; border-radius:3px; background:#e9edf3; margin-top:3px; overflow:hidden; }
.part i::after { content:''; display:block; height:100%; width:var(--w); background:var(--brand); }
.why { font-size:14px; margin:10px 0 0; }
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.actions button { margin-top:10px; padding:7px 12px; font-size:13.5px; }
.star { background:#fff; color:var(--ink); border:1px solid var(--line); } .star.on { color:#8a5a00; border-color:var(--gold); background:#fff8e1; }
.pill { display:inline-block; font-size:12.5px; padding:3px 10px; border-radius:999px; background:#eef1f5; color:var(--muted); margin-top:10px; }
.pill.wait { background:#fff3d6; color:#7a5200; } .pill.good { background:#e3f4ea; color:var(--good); }
.how summary { cursor:pointer; font-weight:600; } .how { margin-top:18px; }
.table .trow { display:flex; justify-content:space-between; gap:14px; padding:12px 0; border-top:1px solid var(--line); }
fieldset { border:1px solid var(--line); border-radius:10px; margin:0 0 12px; padding:8px 14px 12px; }
legend { font-weight:700; font-size:14px; padding:0 6px; }
.opt { display:flex; gap:10px; align-items:flex-start; font-weight:400; font-size:14.5px; margin:8px 0; }
.opt input { width:auto; margin-top:4px; } .opt b { display:block; }
.foot { text-align:center; color:var(--muted); font-size:13px; padding:20px; }
@media (max-width: 1000px) { .grid { grid-template-columns:1fr; } .filters { grid-template-columns:1fr 1fr 1fr; } }
@media (max-width: 620px) {
  .filters { grid-template-columns:1fr 1fr; } .filters input[name=q] { grid-column:1 / -1; }
  .match { grid-template-columns:1fr; } .match img, .match .noimg { width:100%; height:160px; min-height:0; }
  .parts { grid-template-columns:1fr; } .table .trow { flex-direction:column; }
  nav { width:100%; overflow-x:auto; flex-wrap:nowrap; } nav button { white-space:nowrap; }
  h1 { font-size:22px; } .card { padding:16px; }
}
