/* CandleScan v8: light-first, clean exchange-style UI. Inter only; blue primary; white surfaces, soft gray fills, pill controls. */
:root{--bg:#fff;--bg2:#f5f7fa;--card:#fff;--card2:#f7f8fa;--fill:#eef0f3;--fill2:#e3e6eb;--line:#e6e8ec;--line2:#d3d7de;--tx:#0a0b0d;--tx2:#32353d;--mut:#5b616e;--mut2:#8a919e;
  --acc:#0052ff;--acc2:#0045d6;--accbg:#eef3ff;--up:#098551;--upbg:#e8f6ef;--dn:#cf202f;--dnbg:#fdecee;--neck:#c76a00;--neckbg:#fff3e3;
  --r:20px;--r2:14px;--disp:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--ease:cubic-bezier(.2,.7,.2,1);--sh:0 1px 2px rgba(10,11,13,.04),0 4px 16px -8px rgba(10,11,13,.08);--sh2:0 2px 4px rgba(10,11,13,.04),0 18px 40px -18px rgba(10,11,13,.18)}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--tx);font:16px/1.55 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;font-feature-settings:"cv11","ss01"}
a{color:var(--acc);text-decoration:none}a:hover{color:var(--acc2)}
.wrap{max-width:1180px;margin:0 auto;padding:0 32px}
.skip{position:absolute;left:-999px}.skip:focus{left:10px;top:10px;background:var(--acc);color:#fff;padding:8px 14px;border-radius:999px;z-index:99}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--mut)}.tiny{font-size:12.5px}.up{color:var(--up)}.dn{color:var(--dn)}.dim{color:var(--mut);font-weight:500}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:10px}
h1,h2,h3{font-family:var(--disp);letter-spacing:-.025em;line-height:1.1;margin:0;color:var(--tx)}
/* header */
.top{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--line)}
.topin{display:flex;align-items:center;gap:28px;height:72px}
.brand{display:flex;align-items:center;gap:10px;color:var(--tx);font:700 19px/1 var(--disp);letter-spacing:-.02em}.brand:hover{color:var(--tx)}
.brand .bm{width:32px;height:32px;border-radius:9px;background:var(--acc);display:grid;place-items:center;flex:none;overflow:hidden}.brand .bm svg{display:block}
.top nav{display:flex;gap:4px}.top nav a{color:var(--tx);padding:9px 14px;border-radius:999px;font-weight:600;font-size:15px;transition:background .2s}
.top nav a:hover{background:var(--fill);color:var(--tx)}.top nav a[aria-current]{background:var(--fill)}
.tcta{margin-left:auto;display:flex;gap:8px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 22px;border-radius:999px;font:600 15px/1 Inter,sans-serif;border:0;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s,box-shadow .2s}
.btn-p{background:var(--acc);color:#fff}.btn-p:hover{background:var(--acc2);color:#fff}
.btn-s{background:var(--fill);color:var(--tx)}.btn-s:hover{background:var(--fill2);color:var(--tx)}
.btn-i{width:44px;padding:0}.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* hero */
.hero{padding:80px 32px 36px}.hero.sm{padding:56px 32px 24px}
.hero h1{font-size:clamp(40px,6.4vw,72px);font-weight:600;letter-spacing:-.04em;line-height:1.02;max-width:900px}.hero h1 .dim{color:var(--mut);font-weight:600}.hero.sm h1{font-size:clamp(32px,4.4vw,48px)}
.lead{font-size:clamp(16px,1.6vw,18px);color:var(--tx2);max-width:640px;margin:22px 0 0;line-height:1.6}
.hcta{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}
.meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px;color:var(--mut);font-size:14px}.meta span{background:var(--bg2);border-radius:999px;padding:7px 14px}.meta b{color:var(--tx);font-weight:600}
.newb{color:var(--acc);background:var(--accbg);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:600}
/* filters */
.filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0 26px;position:sticky;top:72px;z-index:10;padding:12px 0 14px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid transparent}
.sel select{appearance:none;-webkit-appearance:none;background:var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230a0b0d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;color:var(--tx);border:0;border-radius:999px;height:40px;padding:0 40px 0 18px;font:600 14px Inter,sans-serif;cursor:pointer}
.sel select:hover{background-color:var(--fill2)}
.seg{display:inline-flex;gap:2px;background:var(--fill);border-radius:999px;padding:3px}
.seg button{background:none;border:0;color:var(--tx);font:600 13.5px Inter,sans-serif;height:34px;min-width:44px;padding:0 14px;border-radius:999px;cursor:pointer;transition:background .2s,color .2s}
.seg button:hover{background:rgba(10,11,13,.05)}.seg button[aria-pressed=true]{background:var(--tx);color:#fff}
.count{margin-left:auto;color:var(--mut);font-size:14px}
/* cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:16px}
.pc{display:flex;flex-direction:column;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px;color:var(--tx);transition:box-shadow .3s var(--ease),border-color .3s,transform .3s var(--ease);opacity:0;transform:translateY(8px);animation:up .5s var(--ease) forwards;animation-delay:calc(min(var(--i),16) * 30ms)}
.pc:hover{box-shadow:var(--sh2);border-color:var(--line2);transform:translateY(-2px)}
.pc[hidden]{display:none}
.pc.new{border-color:#b3c9ff}.pc.new .pc-f time:before{content:"New · ";color:var(--acc);font-weight:600}
@keyframes up{to{opacity:1;transform:none}}
.pc-h{display:flex;align-items:center;gap:12px}.pc-h img,.fb{width:32px;height:32px;border-radius:50%;flex:none;background:var(--fill)}
.fb{display:inline-grid;place-items:center;font:700 14px var(--disp);color:var(--mut)}
.pc-n{display:flex;flex-direction:column;min-width:0;line-height:1.25}.pc-n b{font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc-n span{color:var(--mut);font-size:13px}
.tf{margin-left:auto;font:600 12px/1 Inter,sans-serif;color:var(--tx);background:var(--fill);border-radius:999px;padding:6px 10px}
.pc-c{border-radius:var(--r2);background:var(--bg2);overflow:hidden}
.mini{display:block;width:100%;height:128px}
.mini .k line{stroke-width:1}.mini .k.u line,.mini .k.u rect{stroke:var(--up);fill:var(--up)}.mini .k.d line,.mini .k.d rect{stroke:var(--dn);fill:var(--dn)}.mini .k{opacity:.38}
.ov{fill:none;stroke:var(--acc);stroke-width:2;stroke-linecap:round;stroke-dasharray:600;stroke-dashoffset:600;animation:draw 1s .2s var(--ease) forwards}
.ov-neck{stroke:var(--neck)}
@keyframes draw{to{stroke-dashoffset:0}}
.pc-f{display:flex;align-items:center;gap:10px;font-size:14px;flex-wrap:wrap;row-gap:8px}.pc-f time{margin-left:auto;color:var(--mut);font-size:13px;white-space:nowrap}
.pn{display:flex;align-items:center;gap:8px;font-weight:500;min-width:0}.pn i,.plist i{width:8px;height:8px;border-radius:50%;flex:none;background:var(--mut2)}
i.bull{background:var(--up)}i.bear{background:var(--dn)}
.empty{color:var(--mut);padding:48px 0;text-align:center;background:var(--bg2);border-radius:var(--r)}
.list{padding-bottom:88px}
/* coin page */
.crumbs{display:flex;gap:8px;color:var(--mut);font-size:14px;padding:28px 0 18px}.crumbs a{color:var(--mut)}.crumbs a:hover{color:var(--tx)}
.ch{display:flex;align-items:center;gap:16px;margin-bottom:24px}.ch .lg{width:48px;height:48px;border-radius:50%}.ch h1{font-size:clamp(28px,3.6vw,40px);font-weight:600}
.lg.fb{font-size:18px}
.px{margin:8px 0 0;display:flex;gap:12px;align-items:baseline}.px b{font:600 28px/1 var(--disp);letter-spacing:-.02em}.px span{font-size:15px;font-weight:600}
.cgrid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;padding-bottom:88px}
.chartbox,.side{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px}
.ctool{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.tabs{display:inline-flex;gap:2px;background:var(--fill);border-radius:999px;padding:3px}
.tabs button{position:relative;background:none;border:0;color:var(--tx);font:600 13.5px Inter,sans-serif;height:34px;min-width:54px;border-radius:999px;cursor:pointer}
.tabs button:hover{background:rgba(10,11,13,.05)}.tabs button[aria-selected=true]{background:var(--tx);color:#fff}
.tabs button i{position:absolute;top:7px;right:9px;width:6px;height:6px;border-radius:50%;background:var(--acc)}
.tabs button[aria-selected=true] i{background:#8fb0ff}
.creset{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:999px;border:0;background:var(--fill);color:var(--tx);font:600 13px Inter,sans-serif;cursor:pointer;transition:background .2s,opacity .2s}
.creset:hover{background:var(--fill2)}.creset[disabled]{opacity:.45;cursor:default}.creset svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chint{color:var(--mut2);font-size:12.5px}
.chart{height:min(60vh,540px);min-height:340px;opacity:0;transition:opacity .5s var(--ease);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:contain}.ready .chart{opacity:1}
.note{color:var(--mut);font-size:13px;margin:12px 2px 2px}
.side h2{font-size:18px;font-weight:600;margin:2px 4px 12px}
.plist{list-style:none;margin:0;padding:0}.plist a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;color:var(--tx);font-size:14.5px;transition:background .2s}
.plist a:hover,.plist a.on{background:var(--bg2)}.plist .tf{margin-left:auto}.plist time{color:var(--mut);font-size:12.5px;min-width:56px;text-align:right}
/* library */
.lib{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;padding-bottom:88px}
.lc{display:block;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;color:var(--tx);transition:box-shadow .3s var(--ease),border-color .3s,transform .3s var(--ease);opacity:0;animation:up .5s var(--ease) forwards;animation-delay:calc(var(--i) * 30ms)}
.lc:hover{box-shadow:var(--sh2);border-color:var(--line2);transform:translateY(-2px);color:var(--tx)}
.lc .diag{background:var(--bg2);border-radius:var(--r2)}
.lc h2{font-size:18px;font-weight:600;margin:16px 0 6px}.lc p{color:var(--mut);font-size:14.5px;margin:0}.lv{display:inline-block;margin-top:14px;font-size:12.5px;font-weight:600;color:var(--acc);background:var(--accbg);border-radius:999px;padding:4px 10px}
.diag{display:block;width:100%;height:auto}.dp{fill:none;stroke:var(--tx);stroke-width:1.7;stroke-linejoin:round;opacity:.8}
.pat{padding-bottom:88px}.pgrid{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;margin-bottom:48px}
.pat h1{font-size:clamp(34px,4.6vw,56px);font-weight:600;letter-spacing:-.035em}.pat p{color:var(--tx2);max-width:620px}.pat .lead{color:var(--tx)}
.pdiag{background:var(--bg2);border-radius:24px;padding:24px}
.h2{font-size:24px;font-weight:600;margin:0 0 18px}
.prose{max-width:760px;padding-top:64px;padding-bottom:88px}.prose h1{font-size:clamp(32px,4.4vw,48px);font-weight:600;letter-spacing:-.035em;margin-bottom:26px}.prose h2{font-size:21px;font-weight:600;margin:36px 0 10px}.prose p,.prose li{color:var(--tx2)}
/* footer */
.foot{background:var(--bg2);border-top:1px solid var(--line);padding:56px 0 40px;margin-top:24px}
.fgrid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:32px;margin-bottom:36px}
.fgrid h4{margin:0 0 14px;font-size:14px;font-weight:600;color:var(--tx)}.fgrid ul{list-style:none;margin:0;padding:0}.fgrid li{margin:0 0 10px}.fgrid li a{color:var(--mut);font-size:14.5px}.fgrid li a:hover{color:var(--tx)}
.fgrid .fb1 p{color:var(--mut);font-size:14px;margin:14px 0 0;max-width:300px}
.disc{color:var(--tx2);font-size:13px;margin:0 0 10px;padding-top:24px;border-top:1px solid var(--line)}.foot .tiny{color:var(--mut)}.foot .tiny a,.disc a{color:var(--mut);text-decoration:underline}
@media (max-width:900px){.cgrid,.pgrid{grid-template-columns:1fr}.hero{padding-top:56px}.fgrid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.wrap{padding:0 18px}.hero{padding:40px 18px 20px}.hero.sm{padding:36px 18px 18px}.topin{height:64px;gap:12px}.top nav{display:none}.brand span{font-size:18px}.count{width:100%;margin-left:2px}.filters{top:64px}.chart{min-height:320px;height:56vh}.chartbox,.side{padding:14px;border-radius:18px}.btn{height:42px;padding:0 18px;font-size:14.5px}.btn-i{width:42px}}
@media (prefers-reduced-motion:reduce){.pc,.lc{animation:none;opacity:1;transform:none}.ov{animation:none;stroke-dashoffset:0}.chart{transition:none}}
/* mobile nav (menu) */
.top .mnav{display:none}.top .mmenu{display:none}
@media (max-width:560px){.top .mnav{display:inline-flex}.top .mmenu[open]{display:block}.top .mmenu{position:fixed;inset:64px 0 auto 0;background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--sh2);padding:8px 18px 18px;z-index:29}.mmenu a{display:block;padding:14px 4px;color:var(--tx);font-weight:600;font-size:17px;border-bottom:1px solid var(--line)}.mmenu a:last-child{border:0}}
/* two lists, card meta, rules */
.lst{margin-bottom:64px}.lh{display:flex;align-items:baseline;gap:14px;margin:6px 0 4px}.lh h2{font-size:clamp(24px,2.6vw,30px);font-weight:600;letter-spacing:-.03em}.lh .count{margin-left:0}
.sub{color:var(--mut);font-size:15px;margin:4px 0 20px;max-width:720px}
.filters .newb{margin-left:auto}
.pc-f .pn{font-size:14px;color:var(--tx);flex:1 1 100%;min-width:0}.pc-f .dist{margin-left:auto;color:var(--acc);font-size:13.5px;white-space:nowrap;font-weight:600}
.pc.new .pc-f .dist:before{content:"New · ";color:var(--acc)}
.side h3{font:600 12px/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);margin:16px 12px 8px}
.plist a span:not(.tf){display:flex;flex-direction:column;min-width:0;line-height:1.35}.plist small{color:var(--mut);font-size:12.5px}.plist em{font-style:normal;color:var(--acc);font-size:12.5px;white-space:nowrap}
.rules{color:var(--tx2);max-width:760px;margin:0 0 48px;padding-left:20px}.rules li{margin:8px 0}
@media (max-width:560px){.filters .newb{margin-left:0}}
.pc-f .dist,.pc-f time{margin-left:16px}
.plist small.dx{color:var(--acc)}.plist b{font-weight:600}
/* move labels */
.mv{font:600 12px/1 Inter,sans-serif;border-radius:999px;padding:6px 10px;white-space:nowrap}
.pc-f .mv{margin-left:16px}.pc-f .mv+.dist,.pc-f .mv+time{margin-left:auto}
.mv-up{color:var(--up);background:var(--upbg)}.mv-dn{color:var(--dn);background:var(--dnbg)}.mv-fo{color:var(--neck);background:var(--neckbg)}
.mv-w{background:transparent;box-shadow:inset 0 0 0 1px currentColor}
.plist small.mvw{color:var(--neck)}
/* coin directory: asset list */
.csearch{margin-top:24px;max-width:560px;position:relative}.csearch:before{content:"";position:absolute;left:18px;top:50%;width:16px;height:16px;transform:translateY(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b616e' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat}
.csearch input{width:100%;height:52px;padding:0 18px 0 46px;border-radius:999px;border:0;background:var(--fill);color:var(--tx);font:inherit;font-size:16px;outline:none;transition:box-shadow .2s,background .2s}.csearch input:focus{background:#fff;box-shadow:0 0 0 2px var(--acc)}
.chead,.clist a{display:grid;grid-template-columns:56px minmax(0,1fr) 120px 120px;align-items:center;gap:12px}
.chead{color:var(--mut);font-size:13.5px;font-weight:600;padding:0 16px 10px;border-bottom:1px solid var(--line)}
.clist{list-style:none;margin:0 0 72px;padding:0}.clist li[hidden]{display:none}
.clist a{padding:12px 16px;border-bottom:1px solid var(--line);color:var(--tx);font-size:15px;transition:background .15s}.clist a:hover{background:var(--bg2);color:var(--tx)}
.clist .rk{color:var(--mut);font-size:13.5px;font-variant-numeric:tabular-nums}
.clist .as{display:flex;align-items:center;gap:12px;min-width:0}.clist .as img,.clist .as .fb{width:32px;height:32px;border-radius:50%;flex:none}
.clist .as span{display:flex;flex-direction:column;min-width:0;line-height:1.3}.clist b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.clist small{color:var(--mut);font-size:13px}
.clist .src{color:var(--mut);font-size:14px}.clist .go{justify-self:end;font:600 13.5px/1 Inter,sans-serif;color:var(--acc);background:var(--accbg);border-radius:999px;padding:9px 14px}
@media (max-width:640px){.chead,.clist a{grid-template-columns:40px minmax(0,1fr) auto}.chead .h-src,.clist .src{display:none}.clist a{padding:12px 6px}.chead{padding:0 6px 10px}}
/* pattern feedback buttons (outside the chart) */
.pc-a{display:flex;flex-direction:column;gap:12px;color:inherit}.pc-a:hover{color:inherit}
.pv{display:flex;gap:6px;flex-wrap:wrap}.pv button{font:600 13px/1 Inter,sans-serif;padding:9px 13px;border-radius:999px;border:0;background:var(--fill);color:var(--tx2);cursor:pointer;transition:color .2s,background .2s}
.pv button:hover{background:var(--fill2);color:var(--tx)}
.pv button[data-v="1"][aria-pressed="true"]{color:#fff;background:var(--up)}
.pv button[data-v="0"][aria-pressed="true"]{color:#fff;background:var(--dn)}
.pv.busy{opacity:.6;pointer-events:none}
.pc .pv{justify-content:flex-end;padding-top:12px;border-top:1px solid var(--line)}.pv.sm button{font-size:12px;padding:7px 11px}
.vbar{display:flex;flex-direction:column;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.vbar[hidden]{display:none}.vrow{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px;color:var(--tx2);font-weight:500}
/* admin */
.adm h1{font-size:clamp(30px,4vw,44px);font-weight:600;letter-spacing:-.035em;margin-bottom:12px}.adm h2{font-size:20px;font-weight:600;margin:36px 0 12px}
.adm table{width:100%;border-collapse:collapse;font-size:14.5px}.adm th,.adm td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line);white-space:nowrap}.adm th{color:var(--mut);font-weight:600;font-size:13.5px}.adm td.n,.adm th.n{text-align:right;font-variant-numeric:tabular-nums}.adm tbody tr:hover{background:var(--bg2)}
.adm .wrapx{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);padding:4px 8px}.adm form{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.adm input{font:inherit;height:48px;padding:0 18px;border-radius:999px;border:0;background:var(--fill);color:var(--tx);min-width:280px;outline:none}.adm input:focus{background:#fff;box-shadow:0 0 0 2px var(--acc)}.adm button{font:600 15px Inter,sans-serif;height:48px;padding:0 24px;border-radius:999px;border:0;background:var(--acc);color:#fff;cursor:pointer}.adm button:hover{background:var(--acc2)}
.adm .exp a{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;background:var(--fill);color:var(--tx);font-weight:600;font-size:14px;margin:0 6px 6px 0}.adm .exp a:hover{background:var(--fill2)}
/* home list tabs */
.vtabs{display:flex;gap:6px;width:100%;overflow-x:auto;scrollbar-width:none;margin-bottom:4px}.vtabs::-webkit-scrollbar{display:none}
.vtabs button{flex:none;display:inline-flex;align-items:center;background:var(--fill);border:0;border-radius:999px;color:var(--tx);font:600 14.5px Inter,sans-serif;height:42px;padding:0 18px;white-space:nowrap;cursor:pointer;transition:background .2s,color .2s}
.vtabs button:hover{background:var(--fill2)}.vtabs button[aria-selected=true]{background:var(--tx);color:#fff}
.vtabs .vc{display:inline-block;margin-left:8px;min-width:22px;padding:2px 7px;border-radius:999px;background:rgba(10,11,13,.07);color:var(--mut);font-size:12px;text-align:center;font-variant-numeric:tabular-nums}
.vtabs button[aria-selected=true] .vc{background:rgba(255,255,255,.18);color:#fff}
.seg[hidden],.lst[hidden]{display:none}
@media (max-width:560px){.vtabs{gap:4px}.vtabs button{font-size:13px;height:38px;padding:0 12px}.vtabs .vc{margin-left:5px;padding:1px 6px;min-width:0}.filters{gap:8px;padding:10px 0}}
@media (max-width:430px){.vtabs button{font-size:12.5px;padding:0 10px}.vtabs .vc{font-size:11px;margin-left:4px;padding:1px 5px}}
@media (hover:none){.pv button:hover{background:var(--fill);color:var(--tx2)}}
@media (max-width:560px){.filters .sel{flex:1 1 0;min-width:0}.filters .sel select{width:100%;height:36px;font-size:13px;padding:0 32px 0 14px}.filters .seg button{min-width:36px;height:30px;padding:0 10px}}
/* prev / next through the home list (desktop: row above the chart; mobile: sticky bottom bar) */
.pnav{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:14px}.pnav[hidden]{display:none}
.pn-back{color:var(--tx);font-weight:600;margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.pn-back:hover{color:var(--acc)}
.pn-c{color:var(--mut);font-variant-numeric:tabular-nums;white-space:nowrap}.pn-c b{color:var(--tx);font-weight:600}
.pn-b{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 18px;border-radius:999px;background:var(--fill);color:var(--tx);font-weight:600;white-space:nowrap;transition:background .2s}
.pn-b.next{flex-direction:row-reverse;background:var(--acc);color:#fff}.pn-b.next:hover{background:var(--acc2);color:#fff}.pn-b svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pn-b:hover{background:var(--fill2);color:var(--tx)}.pn-b.off{opacity:.4;pointer-events:none}
@media (max-width:560px){
  .pnav{position:fixed;left:0;right:0;bottom:0;z-index:25;margin:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.95);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line);box-shadow:0 -8px 24px -16px rgba(10,11,13,.2);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;grid-template-areas:"prev back next" "prev count next";column-gap:10px;row-gap:2px;align-items:center}
  .pnav[hidden]{display:none}.pn-b.prev{grid-area:prev}.pn-b.next{grid-area:next}
  .pn-back{grid-area:back;margin:0;text-align:center;font-size:13px}.pn-c{grid-area:count;text-align:center;font-size:12.5px}
  .pn-b{height:44px}
  body.has-pnav{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
}
@media (max-width:430px){.vtabs{gap:4px}.vtabs button{padding:0 9px}#vc-all{display:none}.tcta .btn-p{padding:0 16px}}
.btn svg{flex:none}
.cauto{margin-left:auto;height:34px;padding:0 14px;border-radius:999px;border:0;background:var(--fill);color:var(--mut);font:600 13px Inter,sans-serif;cursor:pointer;transition:background .2s,color .2s}
.cauto[aria-pressed=true]{background:var(--accbg);color:var(--acc)}.cauto:hover{background:var(--fill2)}
.cauto+.creset{margin-left:0}
@media (max-width:560px){.chint{order:3;width:100%;font-size:12px}}
/* v8.1 mobile chart: one tool row (icon-only reset), chart sized to fit between the sticky header and the Prev/Next bar */
@media (max-width:560px){
  .ctool{gap:6px;flex-wrap:nowrap}.ctool .tabs button{min-width:46px}.creset span{display:none}.creset{padding:0 11px}.chint{display:none}
  .chart{min-height:260px;height:calc(100vh - 230px);height:calc(100svh - 230px);max-height:520px}
  body.has-pnav .chart{height:calc(100vh - 300px);height:calc(100svh - 300px)}
  .chartbox{padding:12px 10px}
}
/* v9 markets: market filter, class chip, contract note */
.seg.mkt button,.seg.mkt a{display:inline-flex;align-items:center;gap:6px}
.seg.mkt .mc{font-size:11.5px;font-weight:600;color:var(--mut);font-variant-numeric:tabular-nums}
.seg.mkt [aria-pressed=true] .mc{color:rgba(255,255,255,.7)}
.ctabs{margin-top:18px}.ctabs a{text-decoration:none;color:var(--tx);font:600 13.5px Inter,sans-serif;height:34px;padding:0 14px;border-radius:999px}
.ctabs a[aria-pressed=true]{background:var(--tx);color:#fff}
.mkc{display:inline-block;font:600 10.5px/1 Inter,sans-serif;font-style:normal;letter-spacing:.02em;text-transform:uppercase;color:#0052ff;background:rgba(0,82,255,.08);border-radius:999px;padding:3px 6px;vertical-align:1px}
.mkl{margin:2px 0 0;color:var(--mut);font-size:13.5px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mknote{margin-top:8px}.list .mknote{margin:24px 0 0}
@media (max-width:560px){.seg.mkt{width:100%;overflow-x:auto;scrollbar-width:none}.seg.mkt::-webkit-scrollbar{display:none}.seg.mkt button{flex:1 0 auto;padding:0 10px}}
/* v11: 1H added to the timeframe filter and a sort select: on phones the two selects share a row and the timeframes get their own */
@media (max-width:560px){.filters .seg[aria-label="Timeframe"]{width:100%}.filters .seg[aria-label="Timeframe"] button{flex:1 1 0}.filters .sel{flex:1 1 40%}}
/* v12: card bottom row = price (+24h change) for everyone; Clear / Not clear only in admin view (html.adm) */
.pc-b{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line);min-height:30px}
.pc .pc-b .pv{padding-top:0;border-top:0;margin-left:auto}
.pc-b .px{display:inline-flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}.pc-b .px b{font-size:15px;font-weight:600;color:var(--tx)}
.pc-b .px .up,.pc-b .px .dn{font-size:13px;font-weight:600}.pc-b .px .up{color:var(--up)}.pc-b .px .dn{color:var(--dn)}
html:not(.is-admin) .pv,html:not(.is-admin) .vbar{display:none!important}
html:not(.is-admin) .pc-b:not(:has(.px)){display:none}
/* v12: search above the filter rows (client-side live filter by coin name / ticker) */
.srch{position:relative;flex:1 1 100%}
.srch input{width:100%;height:46px;border:0;border-radius:999px;background:var(--fill);color:var(--tx);font:500 16px Inter,sans-serif;padding:0 48px 0 46px;outline:none;-webkit-appearance:none;appearance:none;transition:background .2s,box-shadow .2s}
.srch input::placeholder{color:var(--mut)}.srch input:hover{background:var(--fill2)}.srch input:focus{background:#fff;box-shadow:0 0 0 2px var(--acc)}
.srch input::-webkit-search-cancel-button{display:none}
.srch>svg{position:absolute;left:17px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:none;stroke:var(--mut);stroke-width:2;pointer-events:none}
.srch button{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:999px;background:var(--fill2);color:var(--tx);font:600 18px/1 Inter,sans-serif;cursor:pointer}
.srch button[hidden]{display:none}
@media (max-width:560px){.srch input{height:44px}}
/* v12b: search on the same row as the view pills (fills the rest of the width); wraps under them when there is no room */
.vrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%;margin-bottom:4px}
.vrow .vtabs{width:auto;flex:0 1 auto;min-width:0;margin-bottom:0}
.vrow .srch{flex:1 1 260px;min-width:0}
.vrow .srch input{height:42px}
@media (max-width:560px){.vrow{gap:8px}.vrow .vtabs{width:100%;flex:1 1 100%}.vrow .srch{flex:1 1 100%}.vrow .srch input{height:42px}}
/* v12c: the view pills (All / Breakouts / Watchlist) are a segmented control exactly like the market and timeframe rows below:
   same 3px fill track, 13.5px/600 labels, 34px pills (30px on phones), 0 14px padding (0 10px), plain muted counts */
.filters .vtabs{display:inline-flex;gap:2px;background:var(--fill);border-radius:999px;padding:3px;overflow-x:auto}
.filters .vtabs button{background:none;font:600 13.5px Inter,sans-serif;height:34px;min-width:44px;padding:0 14px;gap:6px;justify-content:center}
.filters .vtabs button:hover{background:rgba(10,11,13,.05)}.filters .vtabs button[aria-selected=true]{background:var(--tx);color:#fff}
.filters .vtabs .vc,.filters #vc-all{display:inline;margin:0;min-width:0;padding:0;border-radius:0;background:none;font-size:11.5px;font-weight:600;color:var(--mut);font-variant-numeric:tabular-nums}
.filters .vtabs button[aria-selected=true] .vc{background:none;color:rgba(255,255,255,.7)}
.vrow .srch input{height:40px}
@media (max-width:560px){.filters .vtabs{width:100%;flex:1 1 100%}.filters .vtabs button{flex:1 0 auto;min-width:36px;height:30px;padding:0 10px}.vrow .srch input{height:40px}}
@media (max-width:359px){.filters .vtabs button{padding:0 7px}}
/* v13: no description paragraph under the list headings; the heading row keeps the old spacing to the grid */
.lst .lh{margin-bottom:18px}
/* v14 compact cards: 2 columns on phones (about 4 cards where 1 used to be), 3-4 on desktop. Ticker first, short pattern label,
   shorter lines-only mini chart, badge, price + 24h; admin votes as small icon buttons. Off-screen cards skip layout and paint
   (content-visibility), so ~550 inline SVG charts stay cheap. */
.grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.grid .pc{padding:12px;gap:8px;min-width:0;content-visibility:auto;contain-intrinsic-size:auto 250px}
.grid .pc-a{gap:8px;min-width:0}
.grid .pc-h{gap:8px;min-width:0}.grid .pc-h img,.grid .pc-h .fb{width:24px;height:24px}.grid .pc-h .fb{font-size:12px}
.grid .pc-n{line-height:1.2}.grid .pc-n b{font-size:14px}.grid .pc-n span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid .tf{padding:4px 7px;font-size:12px;flex:none}
.grid .mini{height:96px}.grid .pc-c{border-radius:10px}
.grid .pc-f{gap:6px;row-gap:6px;font-size:12.5px;flex-wrap:wrap}
.grid .pc-f .pn{flex:1 1 100%;gap:6px;font-size:12.5px;min-width:0}.grid .pn .pnt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.grid .pc-f .mv{margin-left:0;padding:4px 8px;font-size:12px}
.grid .pc-f time,.grid .pc-f .dist{margin-left:auto;font-size:12px}
.grid .pc-b{padding-top:8px;gap:6px;min-height:0;row-gap:4px}
.grid .pc-b .px{gap:6px;flex-wrap:wrap;row-gap:0;min-width:0}.grid .pc-b .px b{font-size:13.5px}.grid .pc-b .px .up,.grid .pc-b .px .dn{font-size:12px}
.grid .pc .pv{gap:4px;flex-wrap:nowrap}
.grid .pc .pv button{font-size:0;width:28px;height:28px;padding:0;display:inline-grid;place-items:center}
.grid .pc .pv button[data-v="1"]::before{content:"✓";font-size:14px}.grid .pc .pv button[data-v="0"]::before{content:"✕";font-size:13px}
@media (max-width:560px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .grid .pc{padding:9px;gap:6px;border-radius:14px;contain-intrinsic-size:auto 200px}.grid .pc-a{gap:6px}
  .grid .pc-h{gap:6px}.grid .pc-h img,.grid .pc-h .fb{width:20px;height:20px}.grid .pc-n b{font-size:13px}
  .grid .tf{padding:3px 6px}
  .grid .mini{height:58px}.grid .pc-c{border-radius:8px}
  .grid .pc-f time,.grid .pc-f .dist{display:none}
  .grid .pc-f .pn{font-size:12px}.grid .pn i{width:6px;height:6px}
  .grid .pc-b{padding-top:6px}.grid .pc-b .px b{font-size:13px}
  .grid .pc .pv button{width:26px;height:26px}
}
@media (hover:none){.grid .pc:hover{transform:none}}
.grid .pc-n .mkc{font-size:11.5px;padding:2px 5px;vertical-align:1px}
/* v15: Sort sits on the search row (desktop: pills | search | sort; phones: pills, then search | sort) */
.vrow .sel{flex:none}
.vrow .sel select{height:40px}
@media (max-width:560px){
  .vrow .srch{flex:1 1 0;min-width:0}
  .vrow .srch>svg{left:13px}.vrow .srch input{padding:0 12px 0 38px;text-overflow:ellipsis}
  .vrow .srch:has(button:not([hidden])) input{padding-right:42px}
  .vrow .sel,.filters .vrow .sel{flex:0 0 128px;min-width:0}
  .vrow .sel select,.filters .vrow .sel select{width:100%;height:40px;font-size:13px;padding:0 26px 0 13px;background-position:right 11px center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
}
/* v16: short home hero (headline, one line of summary, stat pills); the cards start higher */
.hero.hh{padding:48px 32px 18px}.hero.hh h1{font-size:clamp(36px,5vw,56px)}.hero.hh .lead{margin-top:12px;max-width:560px}.hero.hh .meta{margin-top:18px;gap:8px}
@media (max-width:560px){.hero.hh{padding:26px 18px 10px}.hero.hh h1{font-size:34px}.hero.hh .lead{font-size:15.5px;line-height:1.5;margin-top:10px}.hero.hh .meta{margin-top:14px;gap:6px;font-size:13px}.hero.hh .meta span{padding:6px 11px}}
/* ---------- v17 accounts + alerts ---------- */
.tsign[hidden]{display:none}
.hacc{display:inline-flex;gap:8px;align-items:center}.hbell{position:relative}
.hbadge{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--dn);color:#fff;font:700 11px/18px Inter,sans-serif;font-style:normal;text-align:center;box-shadow:0 0 0 2px #fff}
.huser svg,.hbell svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:560px){.tcta{gap:6px}.tcta>a[aria-label="Search coins"]{display:none}.tcta .btn{height:40px}.tcta .btn-i{width:40px}.tsign{padding:0 14px;font-size:14px}.tcta .btn-p{padding:0 14px;font-size:14px}}
@media (max-width:359px){.brand span{font-size:16px}.tsign{padding:0 11px}.tcta .btn-p{padding:0 11px}}
.al-cta{margin-top:16px;height:40px;padding:0 18px;font-size:14.5px}.al-cta svg,.al-coin svg,.al-pick svg,.acc-row svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hero.hh .al-cta+.meta{margin-top:14px}
.ch .al-coin{margin-left:auto;align-self:center;height:40px;padding:0 16px;font-size:14px}.al-coin[aria-pressed=true]{background:var(--accbg);color:var(--acc)}
@media (max-width:560px){.ch{flex-wrap:wrap}.ch .al-coin{margin-left:0;width:100%}}
/* card bell (bottom row, right) */
.pc-al{flex:none;margin-left:auto;width:28px;height:28px;border:0;border-radius:999px;background:var(--fill);cursor:pointer;padding:0;position:relative}
.pc-al::before{content:"";position:absolute;inset:7px;background:var(--mut);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 1 1 12 0c0 5 2 6.5 2 6.5H4S6 14 6 9'/%3E%3Cpath d='M10 19a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 1 1 12 0c0 5 2 6.5 2 6.5H4S6 14 6 9'/%3E%3Cpath d='M10 19a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center/contain no-repeat}
.pc-al:hover{background:var(--fill2)}.pc-al[aria-pressed=true]{background:var(--acc)}.pc-al[aria-pressed=true]::before{background:#fff}
.grid .pc .pv{margin-left:auto}.grid .pc .pv+.pc-al{margin-left:0}
html:not(.is-admin) .pc-b:not(:has(.px)){display:flex}
@media (max-width:560px){.pc-al{width:26px;height:26px}.pc-al::before{inset:6px}}
/* auth / account pages */
.acc{padding:40px 32px 80px;display:flex;justify-content:center}
.acc-card{width:100%;max-width:420px;text-align:center}.acc-card.acc-wide{max-width:560px;text-align:left}
.acc-ic{width:56px;height:56px;border-radius:18px;background:var(--accbg);color:var(--acc);display:grid;place-items:center;margin:0 auto 18px}.acc-ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.acc-ic.big{width:64px;height:64px}
.acc h1{font-size:clamp(28px,4vw,36px);font-weight:600;letter-spacing:-.03em}.acc-sub{color:var(--mut);margin:8px 0 22px;font-size:15px}
.acc form{display:flex;flex-direction:column;gap:12px;text-align:left}
.acc label>span{display:block;font-size:13px;font-weight:600;color:var(--tx2);margin:0 0 6px 4px}
.acc input[type=email],.acc input[type=password]{width:100%;height:48px;border:0;border-radius:14px;background:var(--fill);font:500 16px Inter,sans-serif;padding:0 16px;color:var(--tx);outline:none}
.acc input:focus{background:#fff;box-shadow:0 0 0 2px var(--acc)}
.acc-go{width:100%;height:48px;margin-top:6px}.acc-err{color:var(--dn);font-size:14px;margin:0}.acc-err[hidden]{display:none}
.acc-alt{margin-top:18px;color:var(--mut);font-size:14.5px}.acc-priv{margin-top:22px;color:var(--mut2);font-size:12.5px;line-height:1.5}
.acc-plan{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--bg2);border-radius:16px;padding:16px 18px;margin-bottom:14px}
.acc-plan b{display:block;font-size:18px}.acc-plan span{color:var(--mut);font-size:14px}.acc-plan .btn{height:40px;font-size:14px}
.acc-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.acc-row .btn{height:42px;font-size:14px}
.acc-tog{display:flex;align-items:center;gap:10px;margin:16px 0;font-size:15px}.acc-tog input{width:20px;height:20px;accent-color:var(--acc)}.acc-tog em{color:var(--mut);font-style:normal;font-size:13px;display:block}
.acc-del{margin-top:22px;color:var(--mut);font-size:14px}.acc-del summary{cursor:pointer}.acc-del form{margin-top:10px;flex-direction:row;flex-wrap:wrap}.acc-del input{flex:1 1 200px}
.acc-danger{background:var(--dnbg);color:var(--dn);height:48px}
/* sheets */
.acc-lock,.acc-lock body{overflow:hidden}
.acc-ov{position:fixed;inset:0;z-index:60;background:rgba(10,11,13,.38);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .2s}
.acc-ov.on{opacity:1}
.acc-sh{position:relative;background:#fff;width:100%;max-width:520px;max-height:88vh;max-height:88dvh;display:flex;flex-direction:column;border-radius:22px 22px 0 0;padding:22px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:var(--sh2);transform:translateY(20px);transition:transform .25s var(--ease)}
.acc-ov.on .acc-sh{transform:none}
@media (min-width:700px){.acc-ov{align-items:center}.acc-sh{border-radius:22px;padding:26px}}
.acc-sh.sm{text-align:center}.acc-sh h2{font-size:22px;font-weight:600;letter-spacing:-.02em}
.acc-x{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:999px;background:var(--fill);font:500 22px/1 Inter,sans-serif;cursor:pointer;color:var(--tx)}
.acc-ph{display:flex;align-items:baseline;gap:12px;padding-right:44px}.acc-use{color:var(--acc);font-weight:600;font-size:14px;white-space:nowrap}
.acc-meter{height:6px;border-radius:999px;background:var(--fill);margin:12px 0 0;overflow:hidden}.acc-meter i{display:block;height:100%;width:0;background:var(--acc);border-radius:999px;transition:width .3s}
.acc-sh .acc-sub{margin:10px 0 12px;font-size:14px}
.acc-s{margin-bottom:10px}.acc-s input{height:44px}
.acc-tabs{display:flex;overflow-x:auto;scrollbar-width:none;margin-bottom:8px;width:100%}.acc-tabs::-webkit-scrollbar{display:none}.acc-tabs button{flex:1 0 auto;height:30px;padding:0 10px;font-size:13px}
.acc-list{list-style:none;margin:0 -6px;padding:0;overflow-y:auto;flex:1 1 auto;min-height:120px;-webkit-overflow-scrolling:touch}
.acc-it{display:flex;align-items:center;gap:12px;padding:9px 6px;border-radius:12px;cursor:pointer}.acc-it:hover{background:var(--bg2)}
.acc-lg{width:30px;height:30px;flex:none;border-radius:50%;background:var(--fill);display:grid;place-items:center;overflow:hidden}.acc-lg img{width:30px;height:30px}.acc-lg b{font-size:13px;color:var(--mut)}
.acc-nm{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.25}.acc-nm b{font-size:14.5px}.acc-nm span{font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acc-sw{appearance:none;-webkit-appearance:none;flex:none;width:44px;height:26px;border-radius:999px;background:var(--fill2);position:relative;cursor:pointer;transition:background .2s;margin:0}
.acc-sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.acc-sw:checked{background:var(--acc)}.acc-sw:checked::after{transform:translateX(18px)}.acc-sw:disabled{opacity:.6}
.acc-more,.acc-load{color:var(--mut);font-size:13.5px;padding:12px 6px}
.acc-upl{margin-top:10px;border:0;background:var(--accbg);color:var(--acc);font:600 13.5px Inter,sans-serif;border-radius:999px;padding:11px 14px;cursor:pointer}
.acc-tiers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 16px}.acc-tier{border:1px solid var(--line);border-radius:16px;padding:14px 10px;display:flex;flex-direction:column;gap:4px}
.acc-tier b{font-size:15px}.acc-tier span{color:var(--mut);font-size:13.5px}.acc-tier em{font-style:normal;font-weight:700;font-size:20px}.acc-tier small{font-size:12px;color:var(--mut);font-weight:500}
.acc-tier.pro{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}
.acc-soon{color:var(--acc);font-size:14px;margin:10px 0 0}.acc-soon[hidden]{display:none}
.acc-sh.sm .acc-go{margin-top:8px}
.acc-toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translate(-50%,20px);background:var(--tx);color:#fff;font:600 14px Inter,sans-serif;padding:12px 18px;border-radius:999px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:70;white-space:normal;text-align:center;width:max-content;max-width:calc(100vw - 32px)}
.acc-toast.on{opacity:1;transform:translate(-50%,0)}
/* alerts inbox */
.acc-inbox{width:100%;max-width:640px}.acc-inbox .lh{align-items:center;flex-wrap:wrap}.al-pick{margin-left:auto;height:38px;font-size:14px;padding:0 14px}
.al-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.al-it{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;color:var(--tx)}.al-it:hover{color:var(--tx);border-color:var(--line2)}
.al-it.un{border-color:#b3c9ff;background:#f7f9ff}
.al-k{flex:none;font:600 12px/1 Inter,sans-serif;padding:6px 9px;border-radius:999px;background:var(--fill)}.al-breakout{color:var(--up);background:var(--upbg)}.al-breakdown{color:var(--dn);background:var(--dnbg)}.al-watch{color:var(--acc);background:var(--accbg)}
.al-b{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.3}.al-b b{font-size:15px}.al-b span{font-size:13px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.al-it time{color:var(--mut);font-size:12.5px;flex:none}
@media (max-width:560px){.acc{padding:24px 18px 60px}}
.tsign svg{display:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* tiny phones: the header Watchlist button gives way (the view pills and the menu have it); signed in, the account icon moves into the menu */
@media (max-width:359px){.tcta>.btn-p{display:none}}
@media (max-width:430px){.hacc .huser{display:none}}
.mmenu .mm-acc{border-top:1px solid var(--line)}
.acc-sh>*:not(.acc-list){flex:none}

/* v18 ClearBreaks: footer X link */
.fgrid .fx{display:inline-flex;align-items:center;gap:8px;margin-top:14px;color:var(--tx);font-size:14px;font-weight:600}.fgrid .fx svg{fill:currentColor;flex:none}.fgrid .fx:hover{color:var(--acc)}
/* v18 picker Save: toggles stage locally; one sticky Save at the bottom of the sheet */
.acc-foot{display:flex;flex-direction:column;gap:6px;padding-top:12px;margin:0 -18px;padding-left:18px;padding-right:18px;border-top:1px solid var(--line);background:#fff}
@media (min-width:700px){.acc-foot{margin:0 -26px;padding-left:26px;padding-right:26px}}
.acc-save{width:100%;height:50px;border:0;border-radius:999px;background:var(--acc);color:#fff;font:600 16px Inter,sans-serif;cursor:pointer;transition:background .2s,color .2s}
.acc-save:disabled{background:var(--fill);color:var(--mut);cursor:default}
.acc-save.ok,.acc-save.ok:disabled{background:#05b169;color:#fff}
.acc-foot .acc-upl{margin-top:2px;padding:6px 10px;font-size:12.5px;background:none;align-self:center}
.acc-upl.flash{animation:accfl 1s}@keyframes accfl{0%,60%{background:var(--accbg)}100%{background:none}}
.acc-err{margin:2px 0 0;color:#cf202f;font-size:13.5px;text-align:center}
.acc-cf{position:absolute;inset:0;z-index:2;background:rgba(255,255,255,.72);display:flex;align-items:flex-end;border-radius:inherit}
.acc-cfb{width:100%;background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(10,11,13,.08);padding:20px 18px calc(18px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;text-align:center}
.acc-cfb b{font-size:18px}.acc-cfb p{margin:6px 0 14px;color:var(--mut);font-size:14px}.acc-cfb div{display:flex;gap:10px}.acc-cfb .btn{flex:1;height:46px;justify-content:center}
/* v18 coin page (mobile): compact coin header (alerts = icon button beside the name), chart fitted by coin.js */
@media (max-width:560px){
  .coin .crumbs{padding:18px 0 12px}
  .coin .ch{flex-wrap:nowrap;gap:12px;margin-bottom:14px}.coin .ch>div{min-width:0}
  .coin .ch .al-coin{margin-left:auto;width:42px;padding:0;flex:none;align-self:flex-start;justify-content:center}
  .coin .ch .al-coin span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .coin .chart{min-height:200px;max-height:none}
  .coin .chartbox>.note:first-of-type{font-size:12px;line-height:1.4;margin-top:8px}
  body.has-pnav{padding-bottom:calc(var(--pnh,calc(80px + env(safe-area-inset-bottom))) + 12px)}
}
/* v18 header: the wider ClearBreaks wordmark; Sign in becomes an icon button on narrow phones */
@media (max-width:430px){.tsign{width:40px;padding:0!important;justify-content:center}.tsign span{display:none}.tsign svg{display:block;width:18px;height:18px}}
@media (max-width:560px){
  .coin .ch .lg{width:40px;height:40px;align-self:flex-start;margin-top:2px}.coin .ch h1{font-size:24px;line-height:1.15}
  .coin .ch .px{margin-top:6px;gap:8px;flex-wrap:wrap;row-gap:2px}.coin .ch .px b{font-size:24px}.coin .ch .px span{font-size:13.5px;white-space:nowrap}
}

/* v20 bookmarks (Pro): bookmark + bell on every card and coin page */
.pc-ic{display:inline-flex;gap:6px;margin-left:auto;flex:none}.pc-ic .pc-al{margin-left:0}
.grid .pc .pv+.pc-ic{margin-left:0}
.pc-bm{flex:none;width:28px;height:28px;border:0;border-radius:999px;background:var(--fill);cursor:pointer;padding:0;position:relative}
.pc-bm::before{content:"";position:absolute;inset:7px;background:var(--mut);-webkit-mask:var(--bmi) center/contain no-repeat;mask:var(--bmi) center/contain no-repeat}
.pc-bm{--bmi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1v16l-6.5-4.2-6.5 4.2v-16a1 1 0 0 1 1-1z'/%3E%3C/svg%3E")}
.pc-bm[aria-pressed=true]{--bmi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1v16l-6.5-4.2-6.5 4.2v-16a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");background:var(--accbg)}
.pc-bm[aria-pressed=true]::before{background:var(--acc)}.pc-bm:hover{background:var(--fill2)}
@media (max-width:560px){.pc-bm{width:26px;height:26px}.pc-bm::before{inset:6px}.pc-ic{gap:5px}}
.ch-act{display:flex;gap:8px;margin-left:auto;align-self:center;flex:none}.ch-act .al-coin{margin-left:0}
.bm-coin{height:40px;padding:0 16px;font-size:14px}.bm-coin svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.bm-coin[aria-pressed=true]{background:var(--accbg);color:var(--acc)}.bm-coin[aria-pressed=true] svg{fill:currentColor}
@media (max-width:560px){.coin .ch-act{align-self:flex-start;gap:6px}.coin .ch .bm-coin{width:42px;padding:0;justify-content:center}
  .coin .ch .bm-coin span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
.acc-sh.bmk .acc-tier span{font-size:13px}.acc-tiers .acc-tier span+span{margin-top:-2px}
.acc-sh.sm a.acc-go{display:flex;align-items:center;justify-content:center;margin-top:8px}
.bm-list{display:flex;flex-direction:column;gap:8px}.bm-it{gap:8px}.bm-a{display:flex;align-items:center;gap:12px;flex:1;min-width:0;color:var(--tx)}.bm-a:hover{color:var(--tx)}
.bm-up{border:1px solid var(--line);border-radius:16px;padding:18px}.bm-up p{margin:0 0 12px}
.acc-plan span+span{display:block}
#acc-up[hidden]{display:none}
