:root{color-scheme:dark;--bg:#0d1118;--panel:#171d27;--muted:#8996a7;--edge:#2a3341;--ink:#f2f4f7;--red:#e54d59;--green:#28c991;--primary:#b31e2d;font:14px system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink)}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.4;cursor:not-allowed}.app{max-width:1050px;margin:auto;min-height:100vh;padding:0 18px 30px}.top{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:20px 0 18px;border-bottom:1px solid var(--edge);flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px}.logo{font-size:26px;font-weight:900;border-radius:10px;background:#242a33;border-left:4px solid var(--red);padding:10px 11px;line-height:1}.logo span{color:var(--red)}.brand-title{font-size:19px;font-weight:900;letter-spacing:.1px}.brand-title span{font-weight:500;color:#b9c3d1;font-size:12px}.sub{color:var(--muted);font-size:12px;margin-top:5px}.sub i,footer span{color:var(--red);font-style:normal;padding:0 4px}.mode{background:#462731;color:#ffd9dd;border:1px solid #69414b;padding:7px 9px;border-radius:7px;font-size:10px;font-weight:800;white-space:nowrap}.status-panel{display:flex;align-items:center;background:var(--panel);padding:14px;margin-top:18px;border:1px solid var(--edge);border-radius:12px;gap:11px}.dot{width:10px;height:10px;border-radius:50%;background:#5f6570;flex:none}.dot.good{background:var(--green);box-shadow:0 0 0 4px #1a4d3b}.dot.warn{background:#ffbc66}.status-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.status-copy strong{font-size:13px}.status-copy small{font-size:11px;color:var(--muted)}.count-chip{background:#263344;border:1px solid #34455d;border-radius:6px;padding:6px 9px;font-weight:700;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}.stat{background:var(--panel);border:1px solid var(--edge);padding:14px 12px;border-radius:11px;min-height:93px;display:flex;flex-direction:column;gap:8px}.stat>span{font-size:11px;color:var(--muted)}.stat strong{font-size:22px;letter-spacing:-.5px;line-height:1.1;white-space:nowrap}.stat small{color:var(--muted);font-size:11px;margin-left:3px}.stat strong small{font-size:18px}.stat strong em{font-style:normal}.green{color:var(--green)}.red{color:#ff6e78}.actions{display:flex;gap:9px;margin-top:15px}.primary,.secondary{border:0;border-radius:9px;padding:13px 16px;font-weight:800;font-size:12px}.primary{background:#13885f;color:white}.secondary{background:#273346;color:#f8fbff}.secondary.compact{margin-left:auto;background:#352832;color:#ffe9ea}.warning{color:#d6bd98;background:#28241e;border:1px solid #50402b;border-radius:9px;font-size:11px;line-height:1.55;padding:10px 12px;margin-top:12px}.tabs{display:flex;gap:7px;margin-top:22px;border-bottom:1px solid var(--edge);padding-bottom:8px}.tabs button{border:0;background:transparent;color:#99a7b9;font-weight:650;padding:10px 14px;border-radius:8px}.tabs button.active{color:#fff;background:#303947}.tabs span{background:#424c5a;border-radius:20px;padding:1px 5px}.section{margin-top:16px}.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:12px}.section-head>span{font-size:11px;color:#8ea6a5}.section h2,.events h2{font-size:16px;margin:0 0 10px}.section-head h2{margin:0}.coins{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.coin{background:var(--panel);border:1px solid var(--edge);border-radius:12px;padding:13px 14px;display:flex;flex-direction:column;gap:12px}.coin-head,.coin-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.coin-name{font-size:15px;font-weight:820}.coin-price{font-size:14px;letter-spacing:-.2px;font-weight:700}.pill{font-size:10px;border:1px solid #374453;padding:5px 8px;border-radius:7px;color:#abb8c8;background:#252c37;white-space:nowrap}.pill.long{color:#62e4ae;background:#123b2d;border-color:#236247}.pill.short{color:#ff8d92;background:#3c2028;border-color:#64343b}.coin-foot{font-size:11px;color:var(--muted)}.sequence{display:flex;gap:5px;align-items:center}.sequence i{width:12px;height:20px;background:#687384;border-radius:2px;border:2px solid #687384}.sequence i.V{background:#22bd84;border-color:#22bd84}.sequence i.R{background:#e45a63;border-color:#e45a63}.sequence i.N{height:3px;margin-block:8px}.status-small{color:#aab8c9;text-align:right}.hide{display:none!important}.trades{display:flex;flex-direction:column;gap:9px}.trade{border:1px solid var(--edge);border-radius:10px;padding:13px;background:var(--panel)}.trade strong{font-size:13px}.trade .line{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.trade small{font-size:11px;color:var(--muted)}.hint{font-size:12px;color:#a6b2bf;line-height:1.6}.link-btn{background:transparent;border:0;color:#b8ccf5;padding:7px;font-size:12px}.events{margin-top:24px}.log{border:1px solid var(--edge);background:#121923;border-radius:10px;padding:10px 12px;max-height:220px;min-height:86px;overflow-y:auto;color:#aec7ec;font:11px/1.6 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.log p{margin:0 0 5px}.log .error{color:#ff9e9f}.log .ok{color:#87e1b3}.section form{max-width:520px;display:flex;flex-direction:column;gap:14px}.section form label{font-size:12px;color:#c6d0da;display:flex;flex-direction:column;gap:6px}input{padding:12px;border-radius:8px;border:1px solid #455367;background:#1e2837;color:white;outline:none}input:focus{border-color:#a1b4c9}.fineprint{color:var(--muted);font-size:12px;line-height:1.65;margin-top:20px;padding:13px;background:#151d27;border:1px solid var(--edge);border-radius:10px}footer{border-top:1px solid var(--edge);color:#8593a4;font-size:10px;margin-top:20px;padding-top:15px;text-align:center}
@media(max-width:700px){.app{padding:0 12px 24px}.top{padding-top:15px}.mode{font-size:9px}.brand-title{font-size:17px}.sub{font-size:11px}.stats{grid-template-columns:repeat(2,1fr)}.coins{grid-template-columns:1fr}.coin{padding:13px}.actions .primary{flex:1}.actions .secondary{flex:0 0 auto}.actions .secondary.compact{font-size:11px}.section-head>span{font-size:10px}.stat strong{font-size:20px}.status-copy small{font-size:10px}}
@media(max-width:370px){.top{gap:8px}.logo{font-size:21px}.brand-title{font-size:15px}.mode{font-size:8px}.actions{flex-wrap:wrap}.actions button{flex:1}}
