:root {
  --ink: #14213d; --muted: #4a5568; --bg: #f6f3ee; --card: #ffffff; --line: #e2ddd3;
  --red: #b42318; --red-bg: #fde8e7; --amber: #9a5b00; --amber-bg: #fff3d6; --green: #1d7a46; --green-bg: #e3f6ea;
  --navy: #0f1b3d; --gold: #f4c95d; --fs: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; font: var(--fs)/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); }
header { background: var(--navy); color: #fff; padding: 14px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
header h1 { font-size: 1.25em; margin: 0; flex: 1; }
header h1 small { display: block; font-size: .6em; font-weight: 400; color: #c9d3ee; }
header button, .pill { background: #24345f; color: #fff; border: 2px solid #3b4f86; border-radius: 999px; padding: 8px 16px; font-size: .75em; cursor: pointer; }
header button.on { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }
main { max-width: 1180px; margin: 0 auto; padding: 20px; display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { main { grid-template-columns: 1fr; } }
section.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 2px 0 #0000000a; }
h2 { font-size: 1.05em; margin: 0 0 12px; }
.balances { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .balances { grid-template-columns: 1fr 1fr; } }
.bal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.bal b { display: block; font-size: 1.6em; line-height: 1.15; }
.bal span { color: var(--muted); font-size: .8em; }
.bal.vault { border: 3px solid var(--navy); }
.tok { display: inline-block; margin: 4px 6px 0 0; padding: 2px 10px; border-radius: 8px; background: #eef1f7; font-size: .8em; }
.tok.fake { background: var(--red-bg); color: var(--red); font-weight: 700; }
.req { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.req .meta { color: var(--muted); font-size: .75em; }
.bubble { background: #eaf6e4; border-radius: 14px 14px 14px 4px; padding: 10px 14px; margin: 8px 0; font-size: .95em; }
.bubble.link { background: #e8eefc; word-break: break-all; font-family: Consolas, monospace; font-size: .75em; }
button.big { font-size: 1em; padding: 12px 20px; border-radius: 14px; border: 0; cursor: pointer; font-weight: 700; }
.b-check { background: var(--navy); color: #fff; }
.b-sign { background: var(--green); color: #fff; }
.b-family { background: var(--red); color: #fff; }
.b-no { background: #fff; color: var(--green); border: 3px solid var(--green) !important; }
.b-listen { background: #fff; color: var(--navy); border: 3px solid var(--navy) !important; }
.verdict { border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }
.verdict h3 { margin: 0 0 6px; font-size: 1.7em; line-height: 1.1; }
.verdict p { margin: 0; font-size: 1.15em; }
.v-STOP { background: var(--red-bg); color: var(--red); border: 4px solid var(--red); }
.v-CAUTION { background: var(--amber-bg); color: var(--amber); border: 4px solid var(--amber); }
.v-OK { background: var(--green-bg); color: var(--green); border: 4px solid var(--green); }
ul.changes, ul.flags { padding-left: 0; list-style: none; margin: 6px 0 14px; }
ul.changes li, ul.flags li { padding: 8px 12px; border-radius: 10px; margin-bottom: 6px; background: #f3f4f7; }
ul.flags li.critical { background: var(--red-bg); border-left: 8px solid var(--red); }
ul.flags li.high { background: #fdeee4; border-left: 8px solid #c4501b; }
ul.flags li.medium { background: var(--amber-bg); border-left: 8px solid var(--amber); }
ul.sources { padding-left: 0; list-style: none; margin: 6px 0 14px; }
ul.sources li { padding: 6px 12px; border-radius: 10px; margin-bottom: 5px; background: #f3f4f7; font-size: .9em; }
ul.sources li.s-bad { background: var(--red-bg); color: var(--red); font-weight: 600; }
ul.sources li.s-ok { background: var(--green-bg); color: var(--green); }
.b-report { background: #6941c6; color: #fff; }
.quote { background: #fff1a8; padding: 0 4px; border-radius: 4px; }
.small { font-size: .7em; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.empty { color: var(--muted); }
a { color: #2747a8; }
.feed .ev { border-left: 6px solid var(--navy); padding: 8px 12px; margin-bottom: 10px; background: #f3f4f7; border-radius: 8px; }
.feed .ev.blocked { border-color: var(--red); background: var(--red-bg); }
.feed .ev.chain { border-color: #7a5af8; }
.timer { font-weight: 800; font-size: 1.2em; }
#after:not(:empty) { margin-top:12px; padding:12px 16px; border-radius:14px; background:#e3f6ea; border:3px solid var(--green); font-weight:600; }
#after p { margin:0 0 6px; }

/* buttons feel alive: lift on hover, press down on click */
button.big { transition: transform .08s ease, box-shadow .15s ease, filter .15s ease, background .15s ease; box-shadow: 0 3px 0 #0000002e; }
button.big:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 5px 12px #00000026; }
button.big:active { transform: translateY(2px) scale(.97); box-shadow: 0 1px 0 #0000002e; filter: brightness(.95); }
button.big:focus-visible { outline: 4px solid var(--gold); outline-offset: 2px; }
.b-no:hover { background: var(--green); color: #fff; }
