/* kit: the Grove canopy tokens, type and controls, shared by the app (Lite, Pro) and the docs.
   Scopes: :root/.dk = the night page, .lt = pale, .em = the emerald sheet. kit.js repaints them for the 19 palettes and day. */
:root,.dk{
  --bg0:#061a17;--bg1:#0b2420;--bg2:#12312b;--ink:#e9f5ef;--ink2:#bdd4cb;--ink3:#8aa79e;--ice:#4fe3a6;--cta:#4fe3a6;--on-cta:#04231a;--cta-h:#7df0bf;
  --ac-rgb:79,227,166;--wh:255,255,255;--ink-rgb:233,245,239;--ln-rgb:79,227,166;--hi:#fff;
  --well:rgba(0,0,0,.26);--hair:rgba(255,255,255,.09);--hair2:rgba(255,255,255,.15);--fill:rgba(255,255,255,.07);--fill2:rgba(255,255,255,.11);--fill3:rgba(255,255,255,.17);
  color:var(--ink)}
.lt{
  --bg0:#fbfdfc;--bg1:#e6f0ea;--bg2:#d8e6de;--ink:#0a1f1b;--ink2:#2e4a43;--ink3:#4c635d;--ice:#086c4b;--cta:#086c4b;--on-cta:#fbfdfc;--cta-h:#0a1f1b;
  --ac-rgb:8,108,75;--wh:10,31,27;--ink-rgb:10,31,27;--ln-rgb:8,108,75;--hi:#000;
  --well:rgba(10,31,27,.05);--hair:rgba(10,31,27,.1);--hair2:rgba(10,31,27,.16);--fill:rgba(10,31,27,.05);--fill2:rgba(10,31,27,.08);--fill3:rgba(10,31,27,.13);
  color:var(--ink)}
.em{
  --bg0:#073f30;--bg1:#0a5541;--bg2:#0d6650;--ink:#f1fbf6;--ink2:#d0ebdf;--ink3:#b4ddcc;--ice:#8ff0c9;
  --ac-rgb:143,240,201;--wh:255,255,255;--ink-rgb:241,251,246;--ln-rgb:143,240,201;--hi:#fff;
  --well:rgba(0,0,0,.2);--hair:rgba(255,255,255,.13);--hair2:rgba(255,255,255,.2);--fill:rgba(255,255,255,.08);--fill2:rgba(255,255,255,.12);--fill3:rgba(255,255,255,.2);
  color:var(--ink)}
:root{--page:#061a17;--page-rgb:6,26,23;--fd:'General Sans',-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;--fw:'Switzer',var(--fd);--fm:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --ease:cubic-bezier(.22,1,.36,1);--r:10px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--page);color-scheme:dark}
body{margin:0;background:var(--page);color:var(--ink);font:400 16px/1.5 var(--fd);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
h1,h2,h3,h4{margin:0;font-weight:500;font-family:var(--fd)}
a{color:inherit}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
:focus-visible{outline:2px solid var(--ice);outline-offset:3px;border-radius:6px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[hidden]{display:none!important}
img,svg{display:block}
.nw{white-space:nowrap}
.num{font-variant-numeric:tabular-nums}

/* scrollbar: a thin rounded thumb in the page's own ink, the accent while you hold it */
@supports not selector(::-webkit-scrollbar){html{scrollbar-width:thin;scrollbar-color:rgba(var(--ink-rgb),.3) transparent}}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{min-height:56px;border:3.5px solid transparent;border-radius:99px;background:rgba(var(--ink-rgb),.26) padding-box}
::-webkit-scrollbar-thumb:hover{border-width:3px;background-color:rgba(var(--ac-rgb),.75)}
::-webkit-scrollbar-thumb:active{background-color:rgb(var(--ac-rgb))}
::-webkit-scrollbar-corner{background:transparent}

/* ---------- brand ---------- */
.brand{display:inline-flex;align-items:center;text-decoration:none;font-size:22px;line-height:1;white-space:nowrap;border-radius:6px}
.brand .mk{height:.95em;width:auto;margin-right:.32em;color:var(--ink)}
.wt .u{font-family:var(--fw);font-weight:800;letter-spacing:-.045em;color:var(--ink)}
.wt .mod{font-family:var(--fw);font-weight:300;letter-spacing:-.035em;color:var(--ice)}

/* ---------- controls ---------- */
.btn{appearance:none;border:0;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:46px;padding:0 22px;border-radius:8px;font-size:15.5px;font-weight:500;text-decoration:none;white-space:nowrap;transition:transform .18s var(--ease),background .2s,opacity .2s;-webkit-tap-highlight-color:transparent}
.btn:active:not(:disabled){transform:scale(.97)}
.btn:disabled{opacity:.45}
.btn-cta{background:var(--cta);color:var(--on-cta)}
.btn-cta:hover:not(:disabled){background:var(--cta-h)}
.btn-cta.has-arr{padding-right:8px}
.btn-cta .arr{display:grid;place-items:center;width:30px;height:30px;border-radius:5px;background:var(--on-cta);color:var(--cta)}
.btn-cta .arr svg{width:12px;height:12px}
.btn-sm{height:38px;padding:0 16px;font-size:14.5px}.btn-sm.has-arr{padding-right:6px}.btn-sm .arr{width:26px;height:26px}
.em .btn-cta{background:var(--ice);color:var(--bg0)}.em .btn-cta:hover:not(:disabled){background:var(--ink)}.em .btn-cta .arr{background:var(--bg0);color:var(--ice)}
.btn-q{background:var(--fill2);color:var(--ink)}
.btn-q:hover:not(:disabled){background:var(--fill3)}
.btn-block{width:100%}
.tlink{color:var(--ink);text-decoration:none;font-size:15px;font-weight:500;border-bottom:1px solid var(--hair2);padding-bottom:2px}
.tlink:hover{border-color:var(--ink)}
.seg{display:inline-flex;padding:3px;border-radius:8px;background:var(--well);box-shadow:inset 0 0 0 1px var(--hair);max-width:100%;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg button{appearance:none;border:0;background:none;height:32px;padding:0 14px;border-radius:6px;font-size:14px;font-weight:500;color:var(--ink2);white-space:nowrap;transition:background .2s,color .2s;flex:none}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed=true],.seg button[aria-selected=true]{background:var(--fill3);color:var(--ink);font-weight:600}
.seg.fill{display:flex;width:100%}.seg.fill button{flex:1}
.seg.lg button{height:40px;font-size:15px}
.ibtn{appearance:none;border:0;display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:var(--fill2);color:var(--ink);flex:none;transition:background .2s}
.ibtn:hover{background:var(--fill3)}
.ibtn svg{width:17px;height:17px}

/* inputs */
.field{display:block;border-radius:10px;background:var(--well);box-shadow:inset 0 0 0 1px var(--hair);padding:12px 14px 12px 16px;transition:box-shadow .2s}
.field:focus-within{box-shadow:inset 0 0 0 1.5px var(--ice)}
.field .l{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;color:var(--ink3)}
.field .l button{appearance:none;border:0;background:none;padding:0 0 0 8px;color:var(--ice);font-weight:600;font-size:13.5px}
.field .row{display:flex;align-items:center;gap:12px;margin-top:6px}
.field input,.field .ro{flex:1 1 0;width:0;min-width:0;border:0;background:none;outline:0;padding:0;font-size:30px;font-weight:500;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.field input::placeholder{color:var(--ink3)}
.tok{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 6px;border-radius:8px;background:var(--fill2);font-size:15px;font-weight:600;white-space:nowrap;flex:none}
.coin{width:24px;height:24px;border-radius:50%;flex:none}
.pairc{display:inline-flex;flex:none}
/* a pool's coins: the first in front, USDC last and behind; every coin is backed so a see-through logo never shows the
   one behind it. Past three assets, two coins and a +N disc. */
.pairc>*{position:relative;border-radius:50%;background:var(--bg1);box-shadow:0 0 0 2px var(--bg1)}
.pairc>*+*{margin-left:-8px}.pairc.many>*+*{margin-left:-8px}
.pairc.lg .coin{width:34px;height:34px}.pairc.lg>*+*{margin-left:-11px}.pairc.lg.many>*+*{margin-left:-11px}
.pairc .more{display:grid;place-items:center;z-index:1;background:var(--bg2);color:var(--ink2);font-size:11.5px;font-weight:600;letter-spacing:-.02em}
.pairc .more{z-index:10}
.pairc.lg .more{font-size:13px}

/* key/value lists */
.kv{display:grid;gap:0}
.kv>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;font-size:14.5px;border-top:1px solid var(--hair)}
.kv>div:first-child{border-top:0}
.kv>div span{color:var(--ink3)}
.kv>div b{font-weight:500;font-variant-numeric:tabular-nums;text-align:right}
.kv>div.big b{font-size:19px;letter-spacing:-.02em}
.warn{margin:12px 0 0;font-size:14px;color:var(--ink);padding:10px 14px;border-radius:8px;background:rgba(var(--ac-rgb),.14)}
.note{font-size:13.5px;color:var(--ink3);margin:14px 0 0}
.acc{color:var(--ice)}

/* charts (built by vaults.js) */
.chart{display:block;width:100%;height:auto;overflow:visible;font:400 12px var(--fd);touch-action:pan-y}
.chart text{fill:var(--ink3);font-variant-numeric:tabular-nums}
.chart .g{stroke:var(--hair)}
.chart .fb{fill:rgba(var(--ac-rgb),.16)}
.chart .fq{fill:rgba(var(--ink-rgb),.07)}
.chart .lb{fill:none;stroke:var(--ice);stroke-width:1.8}
.chart .lt2{fill:none;stroke:var(--ink);stroke-width:2;stroke-linejoin:round}
.chart .fl{stroke:var(--ink2);stroke-dasharray:4 5}
.chart .pl{stroke:rgba(var(--ink-rgb),.4)}
.chart .pm{fill:var(--ink)}
.chart .tf{fill:var(--ink2)}
.chart .ta{fill:var(--ice)}
.chart .tn{fill:var(--ink);font-weight:600}
.chart .xh{opacity:0;transition:opacity .15s;pointer-events:none}
.chart .xh .xl{stroke:rgba(var(--ink-rgb),.45)}
.chart .xh .xc{fill:var(--bg0);stroke:var(--ink);stroke-width:2}
.chart .xh .tip{fill:var(--bg0);stroke:var(--hair2)}
.chart .xh .t1{fill:var(--ink);font-weight:600;font-size:13px}
.chart .xh .t2,.chart .xh .t3{fill:var(--ink2)}

/* toast */
.toast{position:fixed;z-index:90;left:50%;bottom:24px;transform:translate(-50%,24px);opacity:0;pointer-events:none;display:flex;gap:12px;align-items:flex-start;max-width:min(440px,calc(100vw - 32px));padding:14px 18px 14px 14px;border-radius:10px;background:var(--bg2);color:var(--ink);box-shadow:0 0 0 1px var(--hair),0 24px 48px -20px rgba(0,0,0,.5);transition:transform .45s var(--ease),opacity .3s}
.toast.on{transform:translate(-50%,0);opacity:1}
.toast .ic{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--cta);color:var(--on-cta);flex:none}
.toast b{display:block;font-weight:600;font-size:15px}
.toast span{display:block;color:var(--ink2);font-size:14px;margin-top:2px}

/* ---------- colour: the palette as a round button bottom right, as on the site ---------- */
.palf{position:fixed;right:14px;bottom:14px;z-index:70}
.palf-btn{appearance:none;border:0;padding:0;width:42px;height:42px;border-radius:8px;background:var(--bg2);display:grid;place-items:center;box-shadow:0 0 0 1px var(--hair2),0 10px 24px -14px rgba(0,0,0,.5);transition:transform .2s var(--ease)}
.palf-btn:hover{transform:scale(1.06)}
.pal-cur{display:block;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,var(--a) 0 50%,var(--b) 50% 100%);box-shadow:inset 0 0 0 1px rgba(var(--ink-rgb),.22)}
.palf-pop{position:absolute;right:0;bottom:54px;width:max-content;max-width:calc(100vw - 28px);padding:12px 12px 10px;border-radius:10px;background:var(--bg2);box-shadow:0 0 0 1px var(--hair2),0 18px 36px -20px rgba(0,0,0,.6);transform-origin:bottom right;animation:palIn .26s var(--ease)}
@keyframes palIn{from{opacity:0;transform:translateY(8px) scale(.97)}}
.pal-hd{display:flex;justify-content:space-between;align-items:baseline;gap:20px;font-size:14px;color:var(--ink3);margin:0 4px 10px}
.pal-hd b{font-weight:500;color:var(--ink)}
.pal-grp{display:grid;grid-template-columns:repeat(7,36px);gap:2px}
.pal-sw{appearance:none;border:0;padding:0;width:36px;height:36px;border-radius:50%;background:none;display:grid;place-items:center}
.pal-sw .sw{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,var(--a) 0 50%,var(--b) 50% 100%);box-shadow:inset 0 0 0 1px rgba(var(--ink-rgb),.22);transition:transform .2s var(--ease)}
.pal-sw:hover .sw{transform:scale(1.12)}
.pal-sw[aria-checked=true] .sw{box-shadow:inset 0 0 0 1px rgba(var(--ink-rgb),.22),0 0 0 2px var(--bg2),0 0 0 4px var(--ink)}
.pal-sw:focus-visible{border-radius:50%}

/* Lite / Pro: a two-way switch made of links */
.seg a{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:6px;font-size:14px;font-weight:500;color:var(--ink2);text-decoration:none;white-space:nowrap;transition:background .2s,color .2s}
.seg a:hover{color:var(--ink)}
.seg a[aria-current=page]{background:var(--fill3);color:var(--ink);font-weight:600}

/* wallet menu */
.wmenu{position:fixed;z-index:85;width:280px;padding:16px;border-radius:10px;background:var(--bg2);box-shadow:0 0 0 1px var(--hair2),0 24px 48px -20px rgba(0,0,0,.6);animation:palIn .22s var(--ease)}
.wmenu .ad{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px}
.wmenu .ad i{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,var(--ice),rgba(var(--ac-rgb),.25));flex:none}
.wmenu .ad small{display:block;font-size:12.5px;font-weight:400;color:var(--ink3)}
.wmenu .kv{margin:12px 0 4px}
.wmenu .kv>div span{display:inline-flex;align-items:center;gap:8px}
.wmenu .acts{display:flex;gap:8px;margin-top:12px}
.wmenu .acts .btn{flex:1;height:38px;font-size:14px;padding:0 12px}

/* charts draw in once when a view opens */
.fresh .chart .lt2,.fresh .chart .lb{stroke-dasharray:1;animation:drawIn 1.1s var(--ease) both}
.fresh .chart .fb,.fresh .chart .fq{animation:fadeIn .9s .25s var(--ease) both}
@keyframes drawIn{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes fadeIn{from{opacity:0}}

/* ---------- glossary "i" and its bubble ---------- */
.ii{appearance:none;border:0;display:inline-grid;place-items:center;width:15px;height:15px;margin-left:5px;border-radius:50%;padding:0;background:var(--fill2);color:var(--ink2);font:italic 600 10px/1 Georgia,serif;vertical-align:1px;cursor:help;flex:none;transition:background .2s,color .2s}
.ii:hover,.ii:focus-visible{background:var(--ice);color:var(--bg0)}
.tipb{position:fixed;z-index:120;max-width:290px;padding:10px 13px;border-radius:8px;background:var(--ink);color:var(--page);font-size:13px;line-height:1.45;box-shadow:0 14px 30px -14px rgba(0,0,0,.5);pointer-events:none;animation:popIn .18s var(--ease)}
@keyframes popIn{from{opacity:0;transform:translateY(4px)}}

/* ---------- price and volume block ---------- */
.pblock{border-radius:10px;background:var(--bg0);padding:14px 14px 12px}
.pb-hd,.pb-ft{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--ink3)}
.pb-hd span:first-child{font-weight:500;color:var(--ink2)}
.pb-hd b,.pb-ft b{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.pb-ft b.up{color:var(--ice)}.pb-ft b.dn{color:var(--ink2)}
.pblock .pchart{margin:8px 0 6px}
.pb-note{margin:8px 0 0;font-size:12.5px;color:var(--ink3)}

/* ---------- vault card in the beta app's order ---------- */
.vcard2{display:grid;grid-template-columns:minmax(170px,1.15fr) repeat(4,minmax(0,1fr));gap:18px 26px;align-items:start;text-decoration:none;color:var(--ink);border-radius:10px;background:var(--bg1);padding:18px 22px;transition:background .2s}
.vcard2:hover{background:var(--bg2)}
.vc-id{display:flex;align-items:center;gap:12px}.vc-id b{display:block;font-size:20px;font-weight:500;letter-spacing:-.02em}.vc-id small{display:block;font-size:13px;color:var(--ink3)}
.vc-pos{margin:12px 0 0;font-size:13px;color:var(--ink3)}.vc-pos b{font-weight:500;color:var(--ice)}
.vc-c{min-width:0}
.vc-h{display:flex;align-items:center;font-size:12.5px;color:var(--ink3)}
.vc-big{display:block;font-size:24px;font-weight:500;letter-spacing:-.03em;margin:2px 0 8px;font-variant-numeric:tabular-nums;white-space:nowrap}
.vk{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;padding:2px 0}
.vk span{display:inline-flex;align-items:center;color:var(--ink3)}
.vk b{font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.acc{color:var(--ice)}
.meter{display:inline-flex;gap:2px;align-items:flex-end;height:12px}
.meter i{width:4px;border-radius:1px;background:var(--hair2)}
.meter i:nth-child(1){height:5px}.meter i:nth-child(2){height:7px}.meter i:nth-child(3){height:9px}.meter i:nth-child(4){height:11px}.meter i:nth-child(5){height:12px}
.meter i.f{background:currentColor}
@media (max-width:1100px){.vcard2{grid-template-columns:repeat(2,minmax(0,1fr))}.vc-a{grid-column:1/-1}}
@media (max-width:480px){.vcard2{grid-template-columns:minmax(0,1fr);padding:16px}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
