:root {
  --bg: #f5f8f9; --surface: #ffffff; --text: #14211f; --muted: #5d6f6b; --line: #d9e3e1;
  --accent: #0b8f6f; --accent-soft: #e2f4ee; --good: #0a7a5c; --bad: #b4233a;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a1113; --surface: #111c1f; --text: #eaf3f1; --muted: #93a9a5; --line: #23363a; --accent: #34c5a5; --accent-soft: #12332c; --good: #4fd6b2; --bad: #ff8a9b; }
}
* { box-sizing: border-box; }
body { width: 380px; max-height: 590px; margin: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 13px/1.45 system-ui, "Microsoft YaHei", "PingFang SC", sans-serif; }
header { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.title strong { font-size: 15px; }
.title span { font-size: 11px; color: var(--muted); }
button { font: inherit; color: inherit; cursor: pointer; }
.icon { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 16px; }
.icon:hover, .chip:hover { border-color: var(--accent); }
.icon.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tools { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 8px; }
input[type="search"], input[type="number"] { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; gap: 6px; }
.chip { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; }
.chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
main { flex: 1; overflow-y: auto; padding: 0 14px 6px; min-height: 120px; }
.platform { position: sticky; top: 0; z-index: 1; margin: 0; padding: 8px 0 4px; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.plan { margin-bottom: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.info { flex: 1; min-width: 0; }
.info a { color: var(--text); font-weight: 600; text-decoration: none; }
.info a:hover { color: var(--accent); }
.meta { margin-top: 1px; font-size: 11px; color: var(--muted); }
.price { text-align: right; }
.price b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--good); }
.price small { font-size: 11px; font-variant-numeric: tabular-nums; }
.down { color: var(--good); } .up { color: var(--bad); } .flat { color: var(--muted); }
.bell { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 14px; }
.bell.on { background: var(--accent-soft); border-color: var(--accent); }
.panel { padding: 8px 10px 10px; border-top: 1px dashed var(--line); }
.panel p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.presets button, .custom button, .clear { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.presets button:hover, .custom button:hover { border-color: var(--accent); color: var(--accent); }
.custom { display: flex; gap: 6px; }
.custom input { flex: 1; }
.clear { color: var(--bad); }
.empty { padding: 28px 0; text-align: center; color: var(--muted); }
footer { padding: 8px 14px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.switch { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 12px; }
.switch input { margin-top: 2px; accent-color: var(--accent); }
#overlay-note { margin: 4px 0 0 24px; color: var(--muted); font-size: 11px; }
#site { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 12px; text-decoration: none; }
#site:hover { text-decoration: underline; }
