:root {
  --bg: #0f1117;
  --card: #171a23;
  --ink: #eef1f7;
  --muted: #8a92a6;
  --accent: #ff7a59;
  --line: rgba(150,160,190,.12);
  --yes: #4cd6a0;
  --no: #ff6b81;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; max-width: 1080px; margin: 0 auto; padding: 0 20px 60px;
}
.top { padding: 40px 0 18px; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.lede { color: var(--muted); max-width: 620px; margin: 10px 0 22px; font-size: 16px; }
.lede em { color: var(--ink); font-style: normal; font-weight: 600; }

.searchbar { display: flex; gap: 10px; }
.searchbar input {
  flex: 1; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-size: 15px;
}
.searchbar input:focus { outline: none; border-color: var(--accent); }
.searchbar button {
  padding: 0 26px; border: none; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--accent); color: #20120c; transition: transform .12s;
}
.searchbar button:hover { transform: translateY(-1px); }

.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.examples button {
  background: transparent; border: 1px solid var(--line); color: #c4cbdb; padding: 6px 12px;
  border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; transition: .15s;
}
.examples button:hover { border-color: var(--accent); color: var(--accent); }

.summary { margin-top: 18px; font-size: 14px; color: var(--muted); }
.summary .tag {
  display: inline-block; background: rgba(255,122,89,.14); color: var(--accent);
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px; margin: 0 4px 4px 0;
}
.muted { color: var(--muted); }

.filters { margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; background: var(--card); }
.filters summary { cursor: pointer; padding: 12px 0; color: var(--ink); font-weight: 600; }
.frow { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0 12px; flex-wrap: wrap; }
.frow > label { width: 110px; flex: none; color: var(--muted); font-size: 13px; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.chips button {
  background: transparent; border: 1px solid var(--line); color: #c4cbdb; padding: 6px 12px;
  border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; transition: .12s;
}
.chips button:hover { border-color: var(--accent); }
.chips button.on { background: var(--accent); color: #20120c; border-color: var(--accent); font-weight: 600; }

.resultshead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.resultshead h2 { font-size: 18px; }
.resultshead span { color: var(--muted); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.cover { height: 150px; background-size: cover; background-position: center; position: relative; }
.match { position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); }
.match.high { background: rgba(76,214,160,.9); color: #06241a; }
.match.mid { background: rgba(255,196,86,.9); color: #2a1e06; }
.match.low { background: rgba(160,168,190,.85); color: #14161e; }
.body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.body h3 { font-size: 16px; line-height: 1.3; }
.meta { color: var(--muted); font-size: 13px; }
.blurb { font-size: 13.5px; color: #b9c0d0; }
.reasons { list-style: none; display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.reasons li { font-size: 12.5px; }
.reasons .yes { color: var(--yes); }
.reasons .no { color: var(--no); opacity: .8; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }

footer { margin-top: 40px; text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 560px) { .frow > label { width: 100%; } .lede { font-size: 15px; } }
