/* KeepEye "Liquid Glass" style, after Apple's iOS 26 design. Scoped to html.lq, chosen under Style, loaded after
   every other stylesheet. It only changes looks: every page, component and piece of content stays the same.
   Apple's rule: content sits on calm, solid surfaces (grouped grey background, white cards in light; black and
   #1C1C1E in dark); Liquid Glass is the navigation layer that floats above it: the header, the tab bar, menus,
   sheets, the current tab and floating buttons. The glass is made visible by its edges, not by colour: a bright
   specular top rim, a thin outer hairline, an inner lens shade at the bottom and a soft drop shadow.
   No colour glows, no gradients behind the page. System font, iOS system colours, concentric rounded corners.
   Devices set to reduce transparency, and browsers without blur, get frosted solid glass instead. */

/* ------------------------------------------------------------------ tokens: light */
:root.lq,:root.lq[data-theme]{
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI Variable Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --disp:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI Variable Display","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --r-xs:7px; --r-sm:12px; --r-md:16px; --r:20px; --r-lg:30px;
  /* iOS grouped surfaces */
  --bg:#F2F2F7; --panel:#FFFFFF; --panel2:#F2F2F7; --panel3:#E5E5EA; --well:rgba(118,118,128,.12);
  --line:rgba(60,60,67,.12); --line2:rgba(60,60,67,.2);
  --fg:#000000; --text2:#1C1C1E; --muted:rgba(60,60,67,.6); --faint:rgba(60,60,67,.3);
  --accent:#007AFF; --accent-ink:#FFFFFF; --accent-2:#0066D6; --accent-soft:rgba(0,122,255,.1); --accent-line:rgba(0,122,255,.4); --accent-txt:#007AFF; --accent-glow:rgba(0,122,255,0);
  --link:#007AFF;
  --up:#248A3D; --down:#D70015; --warn:#C93400; --info:#007AFF;
  --up-soft:rgba(52,199,89,.13); --down-soft:rgba(255,59,48,.11); --warn-soft:rgba(255,149,0,.13); --info-soft:rgba(0,122,255,.1);
  /* glass */
  --lq-glass:rgba(250,250,252,.62); --lq-glass-hi:rgba(252,252,254,.84);
  --lq-blur:blur(24px) saturate(200%);
  --lq-rim:rgba(255,255,255,.95);          /* specular top edge */
  --lq-hair:rgba(0,0,0,.09);               /* outer hairline that separates glass from a white page */
  --lq-lens:rgba(0,0,0,.05);               /* inner shade at the bottom edge */
  --lq-edge:inset 0 1px 0 var(--lq-rim),inset 0 -1px 1px var(--lq-lens),0 0 0 .5px var(--lq-hair);
  --lq-sh:var(--lq-edge),0 2px 6px rgba(0,0,0,.06),0 12px 32px -8px rgba(0,0,0,.16);
  --lq-sh-hi:var(--lq-edge),0 4px 12px rgba(0,0,0,.07),0 24px 60px -12px rgba(0,0,0,.25);
  --lq-ctl:rgba(118,118,128,.12); --lq-ctl-h:rgba(118,118,128,.2);
  --lq-sel:#FFFFFF; --lq-sel-sh:0 0 0 .5px rgba(0,0,0,.04),0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04);
  --lq-card-sh:0 0 0 .5px rgba(0,0,0,.04),0 1px 3px rgba(0,0,0,.05);
  --sh-pop:var(--lq-sh-hi);
  --scrim:rgba(0,0,0,.2);
  --hdr:var(--lq-glass);
  --solid:#FFFFFF;
  color-scheme:light;
}
/* ------------------------------------------------------------------ tokens: dark */
:root.lq[data-theme="dark"]{
  --bg:#000000; --panel:#1C1C1E; --panel2:#2C2C2E; --panel3:#3A3A3C; --well:rgba(118,118,128,.24);
  --line:rgba(84,84,88,.4); --line2:rgba(84,84,88,.65);
  --fg:#FFFFFF; --text2:#EBEBF5; --muted:rgba(235,235,245,.6); --faint:rgba(235,235,245,.3);
  --accent:#0A84FF; --accent-ink:#FFFFFF; --accent-2:#409CFF; --accent-soft:rgba(10,132,255,.18); --accent-line:rgba(64,156,255,.5); --accent-txt:#409CFF; --link:#409CFF;
  --up:#30D158; --down:#FF453A; --warn:#FF9F0A; --info:#64D2FF;
  --up-soft:rgba(48,209,88,.15); --down-soft:rgba(255,69,58,.15); --warn-soft:rgba(255,159,10,.15); --info-soft:rgba(100,210,255,.15);
  --lq-glass:rgba(30,30,32,.62); --lq-glass-hi:rgba(38,38,40,.84);
  --lq-blur:blur(24px) saturate(180%);
  --lq-rim:rgba(255,255,255,.22); --lq-hair:rgba(255,255,255,.1); --lq-lens:rgba(0,0,0,.35);
  --lq-sh:var(--lq-edge),0 2px 8px rgba(0,0,0,.4),0 14px 36px -8px rgba(0,0,0,.6);
  --lq-sh-hi:var(--lq-edge),0 4px 14px rgba(0,0,0,.45),0 26px 64px -12px rgba(0,0,0,.7);
  --lq-ctl:rgba(118,118,128,.24); --lq-ctl-h:rgba(118,118,128,.34);
  --lq-sel:#636366; --lq-sel-sh:inset 0 .5px 0 rgba(255,255,255,.18),0 3px 8px rgba(0,0,0,.3);
  --lq-card-sh:inset 0 .5px 0 rgba(255,255,255,.06);
  --scrim:rgba(0,0,0,.5); --solid:#1C1C1E;
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){:root.lq[data-theme="system"]{
  --bg:#000000; --panel:#1C1C1E; --panel2:#2C2C2E; --panel3:#3A3A3C; --well:rgba(118,118,128,.24);
  --line:rgba(84,84,88,.4); --line2:rgba(84,84,88,.65);
  --fg:#FFFFFF; --text2:#EBEBF5; --muted:rgba(235,235,245,.6); --faint:rgba(235,235,245,.3);
  --accent:#0A84FF; --accent-ink:#FFFFFF; --accent-2:#409CFF; --accent-soft:rgba(10,132,255,.18); --accent-line:rgba(64,156,255,.5); --accent-txt:#409CFF; --link:#409CFF;
  --up:#30D158; --down:#FF453A; --warn:#FF9F0A; --info:#64D2FF;
  --up-soft:rgba(48,209,88,.15); --down-soft:rgba(255,69,58,.15); --warn-soft:rgba(255,159,10,.15); --info-soft:rgba(100,210,255,.15);
  --lq-glass:rgba(30,30,32,.62); --lq-glass-hi:rgba(38,38,40,.84);
  --lq-blur:blur(24px) saturate(180%);
  --lq-rim:rgba(255,255,255,.22); --lq-hair:rgba(255,255,255,.1); --lq-lens:rgba(0,0,0,.35);
  --lq-sh:var(--lq-edge),0 2px 8px rgba(0,0,0,.4),0 14px 36px -8px rgba(0,0,0,.6);
  --lq-sh-hi:var(--lq-edge),0 4px 14px rgba(0,0,0,.45),0 26px 64px -12px rgba(0,0,0,.7);
  --lq-ctl:rgba(118,118,128,.24); --lq-ctl-h:rgba(118,118,128,.34);
  --lq-sel:#636366; --lq-sel-sh:inset 0 .5px 0 rgba(255,255,255,.18),0 3px 8px rgba(0,0,0,.3);
  --lq-card-sh:inset 0 .5px 0 rgba(255,255,255,.06);
  --scrim:rgba(0,0,0,.5); --solid:#1C1C1E;
  color-scheme:dark}}

/* ------------------------------------------------------------------ base and type */
html.lq,html.lq body{background:var(--bg);color:var(--fg);font-family:var(--sans)}
html.lq body{-webkit-font-smoothing:antialiased;letter-spacing:-.01em}
html.lq :is(h1,h2,h3,h4,.thead h2,.ov h1){font-family:var(--disp);font-weight:700;letter-spacing:-.022em}
html.lq .ov h1{font-size:clamp(28px,4.6vw,36px);line-height:1.1;letter-spacing:-.03em}
html.lq .ov p{color:var(--muted)}
html.lq :focus-visible{outline:none!important;box-shadow:0 0 0 3px rgba(0,122,255,.5)!important}
html.lq ::selection{background:rgba(0,122,255,.2)}
html.lq svg[stroke],html.lq svg [stroke]{stroke-linecap:round;stroke-linejoin:round}

/* ------------------------------------------------------------------ content: calm solid cards (iOS grouped lists) */
html.lq :is(.card,.rc,.box,.tbox,.prf-sec){background:var(--panel);border:0;border-radius:var(--r);box-shadow:var(--lq-card-sh)}
html.lq :is(.card,.tbox,.prf-sec) :is(.card,.tbox,.box,.rc){background:var(--panel2);box-shadow:none}
html.lq :is(.banner,.adcard,.bst,.ctx){background:var(--panel);border:0;border-radius:var(--r);box-shadow:var(--lq-card-sh)}
html.lq .hl .hcard{background:transparent;box-shadow:none;border:0}
html.lq a.card,html.lq .card[data-open]{transition:transform .3s cubic-bezier(.3,1.3,.5,1),box-shadow .3s}
@media (hover:hover){html.lq a.card:hover,html.lq .card[data-open]:hover{transform:translateY(-1px);box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 8px 24px -8px rgba(0,0,0,.18)}}

/* table: an inset grouped list */
html.lq th{background:var(--panel);color:var(--muted);font-weight:600;font-size:13px;border-bottom:.5px solid var(--line)}
html.lq td{border-bottom:.5px solid var(--line)}
html.lq tbody tr:hover td{background:var(--panel2)}
html.lq td.col-tok,html.lq th.col-tok{background:var(--panel)!important}
html.lq tbody tr:hover td.col-tok{background:var(--panel2)!important}
html.lq .tk .nm .sym{font-weight:600}
html.lq .lg{border-radius:50%}

/* ------------------------------------------------------------------ the glass layer */
/* header: a glass bar; its bottom edge shows once the page scrolls under it */
html.lq header{background:var(--lq-glass);-webkit-backdrop-filter:var(--lq-blur);backdrop-filter:var(--lq-blur);border-bottom:0;box-shadow:0 .5px 0 var(--line)}
html.lq .topad{background:var(--panel);border:0;box-shadow:0 .5px 0 var(--line)}
html.lq .mbar{border-top:0}
/* sidebar on wide screens: a quiet sidebar like macOS, the current item in a glass capsule */
html.lq .side{background:var(--bg);border-right:.5px solid var(--line)}
html.lq .snav a{border-radius:12px;color:var(--fg);font-weight:500}
html.lq .snav a:hover{background:var(--lq-ctl)}
html.lq .snav a[aria-current="page"],html.lq .snav a.cur{background:var(--panel);color:var(--accent);font-weight:600;box-shadow:var(--lq-sel-sh)}
html.lq .snav a[aria-current="page"] svg{color:var(--accent)}

/* glass buttons: icon buttons, search, the wallet button when connected */
html.lq :is(.ibtn,.sbtn,.wallet:is(.on,.tgp,.wprof),.mad .adx){
  background:var(--lq-glass-hi);-webkit-backdrop-filter:var(--lq-blur);backdrop-filter:var(--lq-blur);
  border:0;color:var(--fg);box-shadow:var(--lq-edge),0 2px 8px rgba(0,0,0,.08)}
html.lq .ibtn{border-radius:50%;height:42px;min-width:42px}
html.lq .sbtn{border-radius:21px;height:42px;color:var(--muted)}
html.lq .sbtn kbd{border:0;background:var(--well);border-radius:6px}
html.lq .wallet:is(.on,.tgp,.wprof){border-radius:21px;height:42px}
html.lq :is(.ibtn,.sbtn,.wallet:is(.on,.tgp,.wprof)):hover{background:var(--lq-glass)}

/* main actions: iOS filled buttons with a glass sheen on top */
html.lq :is(.pill,.wallet){height:42px;padding:0 20px;border-radius:21px;border:0;font-weight:600;color:#fff;
  background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,0) 55%),var(--accent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 -1px 0 rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.08)}
html.lq :is(.pill,.wallet):hover{filter:brightness(1.06)}
html.lq .wallet:is(.on,.tgp,.wprof){color:var(--fg)}
html.lq .pill.red{background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0) 55%),var(--down)}
/* secondary buttons: iOS tinted fills */
html.lq :is(.pill.ghost,.ghost,.tool,.close,.morebtn,.tp-act,.fsoc a,.ov-links a,.presets button,select){
  border:0;background:var(--lq-ctl);color:var(--fg);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html.lq :is(.pill.ghost,.ghost,.tool,.close,.morebtn,.tp-act,.fsoc a,.ov-links a,.presets button):hover{background:var(--lq-ctl-h)}
html.lq :is(.tool,.close,.morebtn,.tp-act,.fsoc a,select){border-radius:999px}
html.lq .ov-links a{height:36px;padding:0 15px;border-radius:18px;font-weight:600}
html.lq .presets button{height:34px;padding:0 14px;border-radius:17px;font-weight:600}
html.lq .tp-act{height:40px;font-weight:600}
html.lq :is(.adx,.star){border-radius:50%}
html.lq .presets button .cnt,html.lq .tabs .cnt{background:transparent;color:inherit;opacity:.55}
html.lq :is(.tag,.adtag,.cnt){border-radius:6px}

/* ------------------------------------------------------------------ choices: the iOS segmented control */
html.lq :is(.seg,.tseg,.ch-tabs){border:0;border-radius:999px;padding:2px;background:var(--lq-ctl);box-shadow:none}
html.lq :is(.seg,.tseg) button{border-radius:999px;color:var(--fg);font-weight:600}
html.lq :is(.seg,.tseg) button[aria-pressed="true"]{background:var(--lq-sel);box-shadow:var(--lq-sel-sh)}
html.lq :is(.seg,.tseg,.tp-ints,.tp-mode,.disc-tabs,.ch-tabs).thumbed::before{background:var(--lq-sel);box-shadow:var(--lq-sel-sh);border-radius:999px}
/* tabs and filter chips: the current one is a raised glass capsule */
html.lq .tabs,html.lq .tp-tabs,html.lq .tp-nav{border-bottom:0;gap:4px;padding:4px 2px}
html.lq :is(.tabs,.tp-tabs,.tp-nav) button{height:36px;padding:0 14px;border-radius:18px;color:var(--muted);font-weight:600}
html.lq :is(.tabs,.tp-tabs,.tp-nav) button:hover{color:var(--fg)}
html.lq .tabs:not(.thumbed) button[aria-pressed="true"]::after{display:none}
html.lq :is(.tabs,.tp-tabs):not(.thumbed) button[aria-pressed="true"],html.lq .tp-nav:not(.thumbed) button[aria-current="true"]{background:var(--lq-sel);color:var(--fg);box-shadow:var(--lq-sel-sh)}
html.lq :is(.tabs,.tp-tabs,.lg-tabs,.tp-nav).thumbed::before{top:0;bottom:auto;height:var(--th);border-radius:18px;background:var(--lq-sel);box-shadow:var(--lq-sel-sh);transform:translate(var(--tx),var(--ty))}
html.lq :is(.tabs,.tp-tabs,.lg-tabs,.tp-nav).thumbed>:is([aria-pressed="true"],[aria-current="true"]){color:var(--fg)!important}
html.lq .presets button[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
html.lq .presets.thumbed::before{background:var(--fg);box-shadow:none;border-radius:17px}
html.lq .presets.thumbed>[aria-pressed="true"]{color:var(--bg)!important}
html.lq .stylepick button{border:0;background:var(--lq-ctl)}
html.lq .stylepick button[aria-pressed="true"]{background:var(--lq-sel);color:var(--accent);box-shadow:var(--lq-sel-sh)}

/* ------------------------------------------------------------------ inputs (iOS search fields) */
html.lq :is(input[type="text"],input[type="search"],input[type="number"],input[type="url"],input[type="email"],input:not([type]),textarea):not(.sq input){border:0;border-radius:12px;background:var(--lq-ctl);padding-left:14px;padding-right:14px;min-height:40px}
html.lq :is(input,textarea):not(.sq input):focus{box-shadow:0 0 0 3px rgba(0,122,255,.4);outline:none}

/* ------------------------------------------------------------------ floating glass: menus, sheets, search, toasts */
html.lq .scrim{background:var(--scrim)}
html.lq :is(.tmp,.dd,.menu,.bpop){border:0;border-radius:20px;background:var(--lq-glass-hi);-webkit-backdrop-filter:blur(40px) saturate(200%);backdrop-filter:blur(40px) saturate(200%);box-shadow:var(--lq-sh-hi)}
html.lq .tmp button{border-radius:10px}
html.lq :is(.modal,.sbox){border:0;border-radius:30px;background:var(--lq-glass-hi);-webkit-backdrop-filter:blur(40px) saturate(200%);backdrop-filter:blur(40px) saturate(200%);box-shadow:var(--lq-sh-hi)}
html.lq .drawer{border:0;border-radius:30px 0 0 30px;background:var(--lq-glass-hi);-webkit-backdrop-filter:blur(40px) saturate(200%);backdrop-filter:blur(40px) saturate(200%);box-shadow:var(--lq-sh-hi)}
html.lq .hrow{border-radius:12px}
html.lq .hrow:hover{background:var(--lq-ctl)}
html.lq .toast{border:0;border-radius:22px;background:var(--lq-glass-hi);-webkit-backdrop-filter:var(--lq-blur);backdrop-filter:var(--lq-blur);box-shadow:var(--lq-sh-hi);color:var(--fg)}
html.lq .mad{border:0;border-radius:22px;background:var(--lq-glass-hi);-webkit-backdrop-filter:var(--lq-blur);backdrop-filter:var(--lq-blur);box-shadow:var(--lq-sh);bottom:calc(84px + env(safe-area-inset-bottom,0px))}

/* ------------------------------------------------------------------ phone tab bar: a floating glass capsule */
html.lq .tabbar{left:16px;right:16px;bottom:calc(10px + env(safe-area-inset-bottom,0px));padding:4px;border:0;border-radius:30px;
  background:var(--lq-glass-hi);-webkit-backdrop-filter:blur(30px) saturate(200%);backdrop-filter:blur(30px) saturate(200%);box-shadow:var(--lq-sh)}
html.lq.tg .tabbar{bottom:calc(10px + var(--tg-bottom,0px));padding-bottom:4px}
html.lq .tabbar a,html.lq .tabbar button{border-radius:26px;color:var(--fg);font-weight:500;font-size:10.5px;min-height:52px}
html.lq .tabbar .cur{color:var(--accent);background:var(--lq-ctl)}
html.lq .tabbar.thumbed::before{display:none}
html.lq .tabbar a#mSwap svg{border-radius:50%;background:var(--accent);color:#fff;padding:6px;margin:-6px 0 -1px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 6px rgba(0,0,0,.15)}
html.lq .tabbar :is(#mGifts,#mApps) .hot{box-shadow:none}
@media (max-width:760px){html.lq body{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}}

/* ------------------------------------------------------------------ footer */
html.lq footer{border-top:.5px solid var(--line)}

/* ------------------------------------------------------------------ press feel */
@media (prefers-reduced-motion:no-preference){
  html.lq :is(.pill,.wallet,.tool,.ibtn,.presets button,.ov-links a,.tp-act,.tabs button,.seg button,.tabbar a){transition:transform .3s cubic-bezier(.3,1.5,.5,1),background-color .2s,filter .2s}
  html.lq :is(.pill,.wallet,.tool,.ibtn,.presets button,.ov-links a,.tp-act,.tabs button,.seg button,.tabbar a):active{transform:scale(.95)}
}

/* ------------------------------------------------------------------ less transparency, or no blur: frosted solid */
@media (prefers-reduced-transparency:reduce){
  :root.lq{--lq-glass:rgba(250,250,252,.97);--lq-glass-hi:rgba(252,252,254,.98)}
  :root.lq[data-theme="dark"]{--lq-glass:rgba(30,30,32,.97);--lq-glass-hi:rgba(38,38,40,.98)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root.lq{--lq-glass:rgba(250,250,252,.96);--lq-glass-hi:rgba(252,252,254,.97)}
  :root.lq[data-theme="dark"]{--lq-glass:rgba(30,30,32,.96);--lq-glass-hi:rgba(38,38,40,.97)}
}
