:root { --bg:#f6f7f9; --card:#fff; --ink:#1b1f24; --muted:#6b7280; --line:#e5e7eb; --accent:#0f5fd6; --hot:#fff7e6; --hi:#15803d; --mid:#b45309; --lo:#6b7280; --warn:#b91c1c; }
* { box-sizing:border-box; }
body { margin:0; font:14px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
header.top { display:flex; align-items:center; gap:18px; padding:10px 18px; background:#111827; color:#fff; position:sticky; top:0; z-index:5; }
header .brand { color:#fff; font-weight:700; letter-spacing:.3px; }
header nav a { color:#cbd5e1; margin-right:14px; }
header nav a.on { color:#fff; border-bottom:2px solid #fff; }
header form { margin-left:auto; }
main { max-width:1100px; margin:0 auto; padding:18px; }
footer { text-align:center; color:var(--muted); padding:24px; font-size:12px; }
h1 { font-size:20px; margin:6px 0 12px; }
h2 { font-size:16px; margin:22px 0 8px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:20px; }
.narrow { max-width:380px; margin:12vh auto; }
body.login { display:block; }
label { display:block; margin:8px 0; }
input[type=text], input[type=password], input[type=number], input[type=search], input:not([type]), select, textarea { width:100%; padding:7px 9px; border:1px solid var(--line); border-radius:6px; font:inherit; background:#fff; }
textarea { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:13px; }
button { font:inherit; padding:7px 12px; border-radius:6px; border:1px solid var(--accent); background:var(--accent); color:#fff; cursor:pointer; }
button.ghost { background:#fff; color:var(--accent); }
button.danger { color:var(--warn); border-color:var(--warn); }
form.inline { display:inline; }
form.grid label { max-width:720px; }
fieldset { border:1px solid var(--line); border-radius:6px; padding:8px 12px; margin:8px 0; max-width:720px; }
.bar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; margin-bottom:12px; }
.filters { display:flex; flex-wrap:wrap; gap:6px; }
.filters select, .filters input { width:auto; }
.stats { color:var(--muted); }
.listing { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:12px 14px; margin-bottom:10px; }
.listing.hot { background:var(--hot); border-color:#f5d08a; }
.listing.dim { opacity:.55; }
.row1 { display:flex; gap:10px; align-items:baseline; }
.score { min-width:44px; text-align:center; font-weight:700; border-radius:6px; padding:2px 6px; color:#fff; background:var(--lo); }
.score.hi { background:var(--hi); } .score.mid { background:var(--mid); } .score.none { background:#cbd5e1; color:#374151; }
.title { font-weight:600; font-size:15px; }
.meta { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; align-items:center; }
.tag { background:#eef2f7; border-radius:4px; padding:1px 7px; font-size:12px; color:#374151; }
.tag.price { background:#e8f5ee; color:#14532d; font-weight:600; }
.tag.ok { background:#dcfce7; color:#14532d; } .tag.warn { background:#fee2e2; color:#7f1d1d; }
.tag.status-alerted { background:#fef3c7; } .tag.status-contacted { background:#dbeafe; } .tag.status-ignored { background:#f3f4f6; }
.reason { margin:4px 0; }
.muted { color:var(--muted); } .small { font-size:12px; }
.ok { color:var(--hi); } .warn { color:var(--warn); }
pre.body, pre.reply, pre { white-space:pre-wrap; background:#f9fafb; border:1px solid var(--line); border-radius:6px; padding:8px 10px; font-size:12.5px; }
pre.reply { background:#eef6ff; }
.actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.actions button { padding:4px 9px; font-size:12.5px; }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#f3f4f6; font-weight:600; }
tr.lvl-error td { background:#fff1f2; } tr.lvl-warn td { background:#fffbeb; }
details summary { cursor:pointer; color:var(--muted); }
