:root { --bg:#f6f5f2; --card:#fff; --ink:#151515; --muted:#686868; --line:#e2e0db; --accent:#e4572e; --good:#0f6b4f; --warn:#9a5b00; --bad:#a3271f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg:#0d0d0d; --card:#181818; --ink:#efefef; --muted:#9d9d9d; --line:#2a2a2a; --accent:#ff7043; --good:#4fc493; --warn:#e0a84a; --bad:#ff7a6e; } }
:root[data-theme="dark"] { --bg:#0d0d0d; --card:#181818; --ink:#efefef; --muted:#9d9d9d; --line:#2a2a2a; --accent:#ff7043; --good:#4fc493; --warn:#e0a84a; --bad:#ff7a6e; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; padding-bottom: env(safe-area-inset-bottom); }
.top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: #000; color: #fff; position: sticky; top: 0; z-index: 2; }
.top img { border-radius: 8px; }
.top span { display: block; font-size: 12px; color: #aaa; }
main { max-width: 680px; margin: 0 auto; padding: 0 16px 40px; }
.hero h1 { font-size: 26px; line-height: 1.2; margin: 24px 0 8px; }
.hero p { color: var(--muted); margin: 0 0 20px; }
h2 { font-size: 17px; margin: 0 0 8px; }
h2.section { margin: 28px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input, select, button { font: inherit; width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; gap: 10px; margin-top: 14px; }
button { cursor: pointer; background: var(--accent); color: #fff; border: 0; font-weight: 600; }
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.link { background: none; color: var(--muted); border: 0; padding: 0; width: auto; font-weight: 400; text-decoration: underline; font-size: inherit; }
button[disabled] { opacity: .5; cursor: default; }
.muted { color: var(--muted); font-size: 14px; }
ol { padding-left: 20px; margin: 6px 0; }
.deal { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.deal:first-of-type { border-top: 0; }
.deal img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--line); flex: none; }
.deal a { color: var(--ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 13px; }
.pct { font-weight: 700; color: var(--good); font-size: 14px; } .pct.neg { color: var(--muted); }
.warn { color: var(--warn); font-size: 13px; }
.err { color: var(--bad); }
.watch { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.watch:first-child { border-top: 0; }
.watch button { width: auto; padding: 6px 12px; font-size: 13px; }
label.check { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 15px; margin: 14px 0 0; cursor: pointer; }
label.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.rday { font-weight: 700; font-size: 14px; margin: 16px 0 4px; }
.rday:first-child { margin-top: 0; }
.rday .muted { font-weight: 400; }
.ritem { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ritem a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ritem .price { white-space: nowrap; color: var(--muted); }
.up { color: var(--good); } .down { color: var(--bad); }
.muted.small { font-size: 12.5px; margin-bottom: 0; }
.ok { color: var(--good); }
footer { color: var(--muted); font-size: 13px; margin-top: 32px; }
footer a { color: var(--muted); }
