/* Shared home-page design based on the Open Design prototype. */
:root {
  --bg:#eef6ff;--card:#fff;--border:#d9e4f2;--hover:#f4f9ff;
  --text:#1b2440;--muted:#4f5a76;--faint:#56617c;--accent:#0a5fb0;
  --green:#2f7a00;--red:#b72531;--amber:#7a5600;--link:#0a5fb0;
  --ink:#1b2440;--soft:#e3f3ff;--line-strong:#b9cce4;
  --blue:#1cb0f6;--blue-edge:#1899d6;--hero-blue:#1a5fb4;--hero-deep:#1e4f96;
  --yellow:#ffc800;--yellow-edge:#d9a100;--yellow-soft:#fff4c2;
  --shadow:0 2px 6px rgba(27,36,64,.055);
  --mono:ui-monospace,"SFMono-Regular",Consolas,monospace;
  --r:10px;
  --cols:minmax(0,1fr) 104px 108px 184px;
}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.ui-sprite{position:absolute;width:0;height:0;overflow:hidden}
.ui-icon{width:17px;height:17px;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.skip-link{position:fixed;top:8px;left:12px;z-index:100;background:var(--ink);color:#fff;padding:10px 14px;transform:translateY(-150%)}
.skip-link:focus{transform:none}
button:disabled{cursor:default}
#main{width:100%;max-width:1520px;margin:0 auto;padding:0 clamp(20px,3vw,44px) 64px}
#main:focus{outline:none}
#side{width:216px;background:var(--bg);padding:16px 12px;gap:0;height:100dvh;scrollbar-width:thin}
#side .logo,.mobile-brand{display:inline-flex;align-items:center;gap:9px;color:var(--text);font-size:21px;font-weight:770;line-height:1;letter-spacing:-.045em}
#side .logo{margin:0 0 20px 3px;padding-right:35px;height:34px;width:max-content}
.brand-mark{display:block;width:32px;height:32px;flex:none}
#sideToggle{left:174px;top:17px;background:transparent;color:var(--muted);border-color:transparent}
body.side-folded #sideToggle{top:15px;left:10px;width:34px;height:34px;border-color:var(--border)}
body.side-folded .topbar{padding-left:26px}
#side .snav{gap:3px;margin-bottom:15px}
#side .sitem{min-height:35px;padding:5px 8px;font-size:13px;line-height:1.35;font-weight:540;gap:9px}
#side .sitem .ui-icon{width:15px;height:15px;color:var(--muted)}
#side .sitem.current{background:var(--soft);border-inline-start-color:var(--accent);color:var(--accent);font-weight:720}
#side .sitem.current .ui-icon{color:inherit}
#side .shead{border:0;background:none;padding:5px 8px;min-height:29px;text-align:left;font-size:11px;letter-spacing:.05em}
#side .shead .dot{width:6px;height:6px;border-radius:50%}
.side-caption{border-top:1px solid var(--border);padding:13px 8px 0;font-size:10px;font-weight:730;letter-spacing:.12em;color:var(--muted)}
#side a.slink{min-height:30px;font-size:12px}
.topbar,.top-actions{display:flex;align-items:center;gap:8px}
.topbar{min-height:56px;justify-content:space-between}
.top-nav{display:flex;align-items:center;gap:4px}
.top-nav a,.top-nav button{display:flex;align-items:center;min-height:34px;padding:0 10px;border:0;border-block-end:2px solid transparent;background:transparent;color:var(--muted);font-size:12px;font-weight:650;cursor:pointer}
.top-nav .top-feed,.top-nav a:hover,.top-nav button:hover{border-block-end-color:var(--accent);color:var(--accent)}
.mobile-brand{display:none}
.top-actions>*{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;background:var(--card);border:1px solid var(--border);border-radius:8px;padding:0 10px;color:var(--text);font-size:12px;font-weight:680;white-space:nowrap;cursor:pointer}
.top-actions>#bmBtn{border:1px solid var(--border);border-radius:8px;padding:0;width:34px;color:var(--muted);font-size:12px}
.top-actions>#installBtn{display:none}
.top-actions>*:hover,.top-actions>#bmBtn:hover{background:var(--soft);color:var(--accent);border-color:var(--line-strong)}
.market-hero{
  position:relative;isolation:isolate;overflow:hidden;border:1px solid #3876bd;border-radius:var(--r);
  background:var(--hero-blue);color:#fff
}
.market-hero::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.44;
  background:url("token-radar.svg?v=20261117-5") left 27% center / min(44vw,530px) auto no-repeat,
    linear-gradient(#b9d9ff29 1px,transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg,#b9d9ff29 1px,transparent 1px) 0 0 / 30px 30px
}
.hero-main{display:grid;grid-template-columns:minmax(0,1fr) max-content max-content;align-items:center;gap:20px;padding:8px 12px 8px 21px}
.signal-dot{border-radius:50%;width:7px;height:7px;background:currentColor;display:inline-block;flex:none;box-shadow:0 0 0 4px #1cb0f626}
.hero-copy h1{font-size:clamp(25px,3.1vw,44px);font-weight:780;line-height:1.12;letter-spacing:-.04em}
:lang(zh-CN) .hero-copy h1{letter-spacing:0}
.hero-copy p{font-size:13px;color:#e0eeff;margin-top:7px}
.hero-feishu{display:inline-flex;align-items:center;gap:6px;min-height:28px;margin-top:6px;padding:3px 8px;border:1px solid #91bdf3;border-radius:6px;background:#194f99;color:#fff;font-size:11px;font-weight:650;cursor:pointer}
.hero-feishu:hover{background:#246bbe}
.hero-feishu .ui-icon{width:14px;height:14px}
.market-hero .global-banner{
  display:grid;gap:2px;text-align:left;min-width:0;padding:8px 12px;background:var(--hero-deep);
  border:1px solid #73a3e0;border-radius:8px;color:#e7f2ff;cursor:pointer
}
.market-hero .global-banner:hover{border-color:#eaf4ff;background:#194581}
.global-banner:focus-visible,.hero-qr:focus-visible{outline-color:var(--yellow)}
.gb-label{color:#e0eeff;font-size:10px;font-weight:710}
.market-hero .global-banner #gbNum{color:#ffe37a;font:720 clamp(21px,2.55vw,35px)/1.12 var(--mono);white-space:nowrap;letter-spacing:-.05em}
.gb-breakdown{display:grid;grid-template-columns:1fr auto;column-gap:12px;font-size:10px;line-height:1.35}
.gb-breakdown>span{display:contents}
.gb-breakdown strong{font:650 10px/1.35 var(--mono);text-align:right;color:#fff}
.catalogue-overview{padding:14px;border:1px solid var(--blue-edge);border-radius:10px;background:var(--soft);margin-bottom:18px}
.catalogue-title{display:flex;gap:16px;justify-content:space-between;align-items:start}
.catalogue-title h3{font-size:15px}.catalogue-title p{font-size:12px;color:var(--muted);margin-top:5px}
.catalogue-title>b{white-space:nowrap;font:750 24px/1.2 var(--mono);color:var(--accent)}
.catalogue-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.catalogue-parts>div{display:grid;gap:4px;padding:10px;border:1px solid var(--border);border-radius:7px;background:var(--card);min-width:0}
.catalogue-parts span{font-size:11px;font-weight:650}.catalogue-parts b{font:700 19px/1.3 var(--mono);color:var(--accent)}
.catalogue-parts small{font-size:10px;color:var(--muted)}
.catalogue-range{font-size:12px;margin-bottom:8px}.catalogue-range button{border:0;padding:3px;background:transparent;color:var(--accent);text-decoration:underline;cursor:pointer;font:inherit}
.catalogue-detail{border-top:1px solid var(--border);margin-top:10px;padding-top:8px;font-size:12px}
.catalogue-detail summary{cursor:pointer;color:var(--accent);font-weight:650;min-height:28px;padding-block:5px}
.catalogue-detail ul{list-style:none;padding:0;margin:3px 0}
.catalogue-detail li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}
.catalogue-detail li>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.catalogue-detail a{font-weight:650;color:var(--accent);overflow-wrap:anywhere}
.catalogue-detail small{flex-basis:100%;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.catalogue-detail li>strong{font:650 12px/1.5 var(--mono);white-space:nowrap}
.verified-ledger-title{font-size:14px;margin-bottom:10px}
@media(max-width:600px){
  .catalogue-title{flex-direction:column;gap:8px}
  .catalogue-parts{grid-template-columns:1fr}
  .catalogue-parts>div{grid-template-columns:1fr auto;align-items:center}
  .catalogue-parts small{grid-column:1/-1}
}
.gb-unit{font-size:10px;font-weight:660}
.gb-link{color:#e0eeff;font-weight:670;font-size:10px}
.hero-qr{
  display:grid;grid-template-columns:auto 112px;align-items:center;column-gap:12px;padding:4px 4px 4px 12px;
  background:#e8f3ff;border:1px solid #c6e0fd;color:var(--text);border-radius:9px;text-align:left;cursor:zoom-in
}
.hero-qr img{grid-column:2;grid-row:1;display:block;width:112px;height:112px;border-radius:4px}
.hero-qr:hover{background:#fff}
.hero-qr-copy{grid-column:1;grid-row:1;display:grid;gap:3px;white-space:nowrap}
.hero-qr-copy strong{font-size:13px;line-height:1.15}
.hero-qr-copy>span,.hero-qr-copy time{font-size:10px;color:var(--muted)}
#wxPanel #wxQrImg{width:min(330px,100%)}
.community-options{display:flex;justify-content:center;gap:6px;margin:10px 0}
.community-options button{min-height:36px;padding:6px 15px;border:1px solid var(--line-strong);border-radius:8px;background:var(--card);color:var(--muted);font-size:13px;font-weight:650;cursor:pointer}
.community-options button[aria-pressed="true"]{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.community-join{display:flex;justify-content:center;align-items:center;gap:6px;min-height:40px;margin-top:10px;border:1px solid var(--blue-edge);border-radius:8px;background:var(--blue);color:var(--text);font-size:13px;font-weight:700}
.community-join[hidden]{display:none}
#wxMiss[hidden]{display:none}
.wx-expiry{font-size:12px;color:var(--muted);margin-bottom:6px}
.market-hero .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border:0;border-top:1px solid #bdd9ff4d;background:#103d7999}
.market-hero .stat{display:flex;gap:9px;align-items:baseline;justify-content:space-between;min-width:0;padding:7px 13px;color:#e2efff;font-size:11px;font-weight:610}
.market-hero .stat:not(:last-child){border-right:1px solid #bdd9ff4d}
.market-hero .stat b{color:#fff;font:690 14px/1.2 var(--mono);white-space:nowrap}
#newsTicker{display:flex;align-items:center;overflow:hidden;gap:8px;margin:6px 0 13px;padding:2px 3px;min-height:30px;background:transparent}
#newsTicker .ntk-label{display:flex;white-space:nowrap;flex:none;font-weight:760;align-items:center;gap:8px;color:var(--accent);font-size:11px}
#newsTicker .ntk-scroll{min-width:0;flex:1;overflow:hidden}
#newsTicker .ntk-items,#newsTicker .ntk-item{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;color:var(--muted);font-size:12px}
#newsTicker .ntk-item b{color:var(--text)}
#newsTicker .ntk-item.ntk-enter{animation:ntk-enter .22s ease-out}
@keyframes ntk-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.ntk-controls{display:flex;gap:3px;flex:none}
.ntk-controls button{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--muted);cursor:pointer}
.ntk-controls button:hover:not(:disabled){color:var(--accent);border-color:var(--line-strong)}
.ntk-controls button:focus-visible{outline-offset:-3px}
.ntk-controls button:disabled{opacity:.5}
.ntk-controls .ui-icon{width:14px;height:14px}
[data-news-toggle][data-playing="true"] .ntk-play,[data-news-toggle][data-playing="false"] .ntk-pause{display:none}
#feed,#navArea,#faq{scroll-margin-block-start:12px}
.feed-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.feed-heading h2{font-size:23px;font-weight:760;letter-spacing:-.035em;line-height:1.2}
.feed-heading p{color:var(--muted);font-size:12px;margin-top:3px}
#resultCount{flex:none;color:var(--muted);font-size:11px;font-weight:630;font-variant-numeric:tabular-nums}
.toolbar{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:7px;margin:0 0 9px}
.tabs{gap:3px;padding:0;flex-wrap:wrap;background:transparent;border:0}
.tab{background:transparent;border:1px solid transparent;color:var(--muted);border-radius:8px;min-height:34px;padding:4px 9px;font-size:12px;font-weight:660}
.tab:hover{background:var(--soft);border-color:transparent}
.tab.active{color:var(--accent);background:var(--card);border-color:var(--line-strong);box-shadow:var(--shadow)}
.filter-controls{display:flex;align-items:center;gap:7px;min-width:0;margin-left:auto}
.search-box,#typeFilter{height:37px;background:var(--card);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:12px;box-shadow:var(--shadow)}
.search-box{display:flex;align-items:center;gap:7px;min-width:0;padding:0 8px 0 10px}
.search-box:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.search-box .ui-icon{color:var(--muted);width:15px;height:15px}
.search-box #search,.search-box #search:focus{border:0;background:none;box-shadow:none;outline:none;border-radius:0;padding:0;width:clamp(110px,12vw,190px);min-height:0;font-size:12px;font-weight:560}
.search-box #search::placeholder{color:var(--muted);font-weight:500}
.search-box kbd{display:grid;place-items:center;min-width:18px;height:18px;color:var(--muted);background:var(--bg);border:1px solid var(--border);border-radius:4px;font:11px var(--mono)}
#typeFilter{padding:0 7px;min-height:0}
#typeFilter:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.lhead,.row,.skel{grid-template-columns:var(--cols);column-gap:12px;padding-inline:13px}
.lhead{margin:0;min-height:36px;background:#e4effb;color:var(--muted);font-size:11px}
.lhead .sortbtn{font-size:11px;white-space:nowrap}
.lhead .sortbtn[data-sort="tokens"]{text-align:center}
.lhead .lbl:last-child{text-align:right}
.lhead .sortbtn.on{color:var(--accent);font-weight:760}
#cards{box-shadow:var(--shadow)}
.layer-head{display:flex;align-items:center;gap:8px;padding:7px 13px;background:var(--hover);border-bottom:1px solid var(--border);color:var(--muted);min-height:34px}
.layer-head h3{color:var(--text);font-size:12px;font-weight:760}
.layer-head p{font-size:11px}
.layer-head .ui-icon{width:15px;height:15px;color:var(--accent)}
.layer-head.L0 .ui-icon{color:var(--red)}
.layer-head.L4 .ui-icon{color:var(--amber)}
.layer-head.featured-heading{background:var(--yellow-soft)}
.layer-head.featured-heading .ui-icon{color:var(--amber)}
.row.featured-offer{box-shadow:inset 3px 0 var(--accent);background:#f8fcff}
.featured-label{background:var(--yellow-soft);border-color:#eed985;color:#765500;font-weight:700}
.row .r-tok .application-chip{color:var(--amber);background:var(--yellow-soft);border-color:#edd68b}
.layer-count{font:650 10px var(--mono);margin-left:auto;white-space:nowrap}
.row,.row.agg{grid-template-rows:auto;background:var(--card);padding-block:8px;min-height:66px;border-bottom-color:var(--border)}
.row:hover,.row.agg:hover{background:var(--hover)}
.row.agg:has(.aggToggle[aria-expanded="true"]){background:#edf5ff}
.row .r-tok,.row .r-state,.row .r-ops,.row>.r-content{grid-row:1;min-width:0}
.row .r-tok{grid-column:2}
.row>.r-content{grid-column:1;position:relative;padding-inline-start:43px}
.skel .a{grid-column:2;grid-row:1;justify-self:center}
.skel .b{grid-column:1;grid-row:1}
.skel .c{grid-column:3;grid-row:1}
.skel .d{grid-column:4;grid-row:1;justify-self:end}
.row .r-state{grid-column:3}
.row .r-ops{grid-column:4}
.r-tok .num{font:700 17px/1.18 var(--mono);letter-spacing:-.045em;overflow-wrap:anywhere}
.r-tok .unit{font-family:inherit;font-size:10px;line-height:1.3}
.row.agg .r-tok{white-space:normal}
.row .r-tok .unit[style]{white-space:normal!important;font-size:10px!important}
.r-line1{align-items:center;gap:2px 7px;flex-wrap:wrap}
.r-provider{line-height:1.3;color:var(--text);font-size:16px;font-weight:760;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.provider-icon {
  --logo-size: 18px;
  display: inline-grid;
  place-items: center;
  width: var(--logo-size);
  height: var(--logo-size);
  line-height: 1;
  flex: none;
  white-space: nowrap;
}
.provider-icon img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.provider-icon > * { grid-area: 1 / 1; }
.provider-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: var(--soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
}
.provider-initial::before { content: attr(data-initial); }
.provider-icon img[data-loaded="true"] + .provider-initial { display: none; }
.provider-icon--row {
  --logo-size:34px;
  position:absolute;inset:1px auto auto 0;padding:5px;border:1px solid var(--border);border-radius:8px;background:var(--card);
}
.provider-icon--side { --logo-size: 14px; }
.provider-icon--nav { --logo-size: 16px; margin-inline-end: 5px; vertical-align: -3px; }
.r-value{order:1;flex:1 0 100%;color:var(--text);font-size:12px;min-width:0}
.r-line2{display:flex;flex-wrap:wrap;gap:3px 5px;margin-top:3px}
.row .chip,.row .badge{font-size:10px;line-height:1.4;padding:1px 5px}
.row .chip{background:var(--hover);border-color:var(--border)}
.row .chip.gold{background:var(--yellow-soft);border-color:#edd68b}
.row .r-line2 .chip.gold{color:var(--red);background:#ffecec;border-color:#f4c4ca}
.r-notes:not(:empty){display:block;flex:1 0 100%;text-align:left;font-size:11px;line-height:1.42;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.r-notes:empty{display:none}
.r-notes a{color:var(--link);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.agg-detail .row{background:var(--hover);border-inline-start:3px solid #a9caef;padding-inline-start:10px}
.r-state{gap:3px;font-size:10px;line-height:1.25}
.r-state>*{white-space:normal}
.r-ops{gap:4px;flex-wrap:wrap}
.r-ops .go,.aggToggle{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 7px;border:1px solid var(--line-strong);border-radius:8px;font-size:11px;font-weight:760;line-height:1.25}
.aggToggle{background:var(--card);color:var(--accent);box-shadow:none}
.aggToggle:hover,.aggToggle[aria-expanded="true"]{background:var(--soft);color:var(--accent)}
.r-ops .go{
  background:var(--blue);color:var(--text);border-color:var(--blue-edge);
  box-shadow:0 3px 0 var(--blue-edge);margin-block-end:3px;
  transition:background-color .15s,transform .15s,box-shadow .15s;
}
.r-ops .go:hover{background:#4cc3fb;filter:none}
.r-ops .go:active{transform:translateY(2px);box-shadow:0 1px 0 var(--blue-edge)}
.r-ops .go.cgo{
  background:var(--yellow);color:var(--ink);border-color:var(--yellow-edge);
  box-shadow:0 4px 0 var(--yellow-edge),0 0 0 2px var(--yellow-soft);margin-block-end:4px;
}
.r-ops .go.cgo:hover{background:#ffd633}
.r-ops .go.cgo:active{transform:translateY(3px);box-shadow:0 1px 0 var(--yellow-edge),0 0 0 2px var(--yellow-soft)}
.r-ops .apiBtn,.r-ops .claim,.r-ops .couponFlag{min-width:26px;min-height:27px;padding:3px 5px;border-radius:6px}
.r-ops .claim:hover{color:var(--amber);background:#fef6e6}
.empty .tab{background:var(--card);border-color:var(--border);color:var(--accent)}
.empty .tab:hover{background:var(--soft)}
.empty{display:grid;justify-items:center;gap:5px;padding:40px 15px}
.empty button{margin-top:7px}
#bottomNav{padding-bottom:calc(4px + env(safe-area-inset-bottom))}
#bottomNav button{justify-content:center;min-width:0;flex:1;padding:3px 4px;font-size:10px;font-weight:640;border-radius:8px}
#bottomNav button.on{background:var(--soft);color:var(--accent)}
#bottomNav .ui-icon{width:18px;height:18px}
#apiPanel,#calcPanel,#sumPanel,#planPanel,#sharePanel,#subPanel,#authPanel{left:50%}

@media(max-width:1020px){
  :root{--cols:minmax(0,1fr) 89px 86px 141px}
  .row,.lhead,.skel{column-gap:9px}
  .filter-controls{margin-left:0}
  .hero-main{gap:12px}
  .hero-qr{grid-template-columns:1fr;gap:2px;padding:3px;text-align:center}
  .hero-qr img{grid-column:1;grid-row:1;margin-inline:auto;width:96px;height:96px}
  .hero-qr-copy{grid-column:1;grid-row:2;gap:1px}
  .hero-qr-copy strong{font-size:11px}
  .hero-qr-copy>span{display:none}
  .hero-qr-copy time{font-size:9px;line-height:1.25}
}
@media(max-width:860px){
  #main{padding:0 12px calc(69px + env(safe-area-inset-bottom))}
  .topbar{min-height:47px}
  .mobile-brand{display:inline-flex}
  .top-nav{display:none}
  .hero-main{padding:8px 10px 8px 14px;gap:10px}
  .lhead{display:grid;border-top-left-radius:var(--r);border-top-right-radius:var(--r)}
}
@media(max-width:680px){
  .search-box kbd{display:none}
  .tabs{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;padding:3px;scrollbar-width:thin}
  .tabs .tab{flex:none}
  .filter-controls{width:100%}
  .search-box{flex:1;order:-1}
  .search-box #search,.search-box #search:focus{width:100%}
}
@media(max-width:600px){
  .hero-main{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:4px;padding:5px 7px 5px 11px}
  .market-hero::before{background-position:right -58px top -40px;background-size:305px;opacity:.28}
  .hero-copy{grid-column:1;grid-row:1;align-self:end}
  .hero-copy h1{font-size:clamp(19px,5.6vw,27px)}
  :lang(zh-CN) .hero-copy h1 span{display:block;white-space:nowrap}
  .hero-copy p{font-size:10px;line-height:1.2;margin-top:3px}
  .hero-feishu{min-height:24px;margin-top:4px;padding:2px 6px;font-size:10px}
  .market-hero .global-banner{grid-column:1;grid-row:2;justify-self:start;align-self:start;gap:2px;padding:4px 6px}
  .market-hero .global-banner #gbNum{grid-row:2;font-size:20px}
  .gb-breakdown{font-size:9px;column-gap:7px}.gb-breakdown strong{font-size:9px}
  .gb-unit{font-size:9px}
  .gb-link{display:none}
  .gb-label{font-size:9px}
  .hero-qr{grid-column:2;grid-row:1/3}
  .hero-qr img{width:90px;height:90px}
  .market-hero .stat{display:grid;gap:2px;padding:5px 4px 5px 7px;font-size:9px;line-height:1.2}
  .market-hero .stat b{font-size:12px}
  #newsTicker{padding-inline:5px;margin:3px 0 6px;gap:6px;min-height:28px}
  #newsTicker .ntk-label,#newsTicker .ntk-item{font-size:10px}
  .ntk-controls button{width:26px;height:26px}
  .feed-heading h2{font-size:19px}
  .lhead{display:flex;gap:16px;justify-content:flex-start;padding:2px 10px;min-height:34px}
  .lhead .lbl{display:none}
  .lhead .sortbtn{min-height:26px}
  .layer-head{padding:5px 8px;min-height:29px}
  .layer-head p{display:none}
  #cards .row,#freecloudArea .row{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:4px 9px;padding:9px 10px}
  #cards .row>.r-content,#freecloudArea .row>.r-content{grid-column:1/-1;grid-row:1}
  #cards .row>.r-tok,#freecloudArea .row>.r-tok{grid-column:1;grid-row:2;text-align:left;line-height:1.25}
  #cards .row>.r-state,#freecloudArea .row>.r-state{grid-column:1;grid-row:3;flex-direction:row;flex-wrap:wrap}
  #cards .row>.r-ops,#freecloudArea .row>.r-ops{grid-column:2;grid-row:2/4;max-width:147px}
  #cards .row .r-ops .go,#freecloudArea .row .r-ops .go,.row .aggToggle{flex-basis:auto;padding:5px 8px;min-height:36px;font-size:11px}
  .r-tok .num{font-size:15px}
  .r-tok .num{display:inline}
  .r-tok .unit:not([style]){display:inline-block}
  .r-tok .num+.unit{margin-inline-start:4px}
  .r-tok .unit[style]{margin:1px 0 0!important}
  .r-line1{align-items:baseline}
  .row>.r-content{padding-inline-start:34px}
  .provider-icon--row{--logo-size:27px;padding:4px;border-radius:6px}
  .r-value{font-size:11px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
  .row .fm-wrap{margin:4px 0 0;border:1px solid var(--line-strong);border-radius:6px}
  .r-notes:not(:empty){font-size:11px}
  .skel{grid-template-columns:minmax(0,1fr) 56px 40px}
  .skel .a,.skel .d{width:100%}
  .skel .d{grid-column:3}
  .skel .c{display:none}
}
@media(max-width:420px){
  .community-btn span{display:none}
}
@media(max-width:370px){
  .top-actions{gap:4px}
  .top-actions>*{padding:0 7px}
  .feed-heading{flex-wrap:wrap;gap:2px}
  #cards .row>.r-state,#freecloudArea .row>.r-state{grid-column:1/-1}
  #cards .row>.r-ops,#freecloudArea .row>.r-ops{grid-row:2}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
.source-links{position:relative;font-size:11px}
.source-links summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:4px;min-height:20px}
.source-links summary::-webkit-details-marker{display:none}
.source-links summary::after{content:"+";font-weight:800;color:var(--accent)}
.source-links[open] summary::after{content:"−"}
.source-links[open]{flex-basis:100%}
.source-links[open] summary{width:max-content}
.source-links ul{list-style:none;margin-top:4px;padding:4px 8px;border:1px solid var(--border);border-radius:6px;background:var(--card)}
.source-links a{display:inline-block;padding:3px 0;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:2px}

.source-links p{margin-top:4px;color:var(--muted);overflow-wrap:anywhere}
.row .gate-chip{color:#2458a8;background:#eef4ff;border-color:#d6e3fb}

.offer-timing{color:var(--muted)}
.offer-deadline{color:var(--red);font-variant-numeric:tabular-nums}
.r-state .badge::before{content:"";display:inline-block;width:5px;height:5px;margin-inline-end:4px;margin-block-end:1px;border-radius:50%;background:currentColor}

/* Native units stay legible beside converted first-month references. */
.quota-value{display:block}.quota-value .unit{display:block}.quota-native{font-size:10px;line-height:1.3;margin-top:3px;white-space:normal;overflow-wrap:anywhere}.quota-original{display:block;font-size:13px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}.quota-explanation{color:var(--text)}

/* Daily estimates keep their assumptions visible and editable. */
#listhead{position:relative}
.daily-estimates-open{position:absolute;left:145px;top:4px;min-height:28px;padding:2px 8px;border:1px solid var(--line-strong);border-radius:6px;background:var(--card);color:var(--accent);font-size:10px;font-weight:650;cursor:pointer}
.quota-estimated .num{font-size:14px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.quota-estimated .unit{font-size:10px}
.estimate-link{border:0;border-bottom:1px dotted var(--accent);background:none;color:var(--accent);font-size:10px;line-height:1.4;padding:0;margin-top:3px;cursor:pointer}
.daily-estimate-entry{display:grid;gap:5px;width:100%;padding:13px 15px;margin:12px 0;border:1px solid var(--line-strong);border-radius:10px;background:var(--soft);text-align:left;color:var(--text);cursor:pointer}
.daily-estimate-entry span,.daily-estimate-entry small{font-size:12px;color:var(--muted)}
#dailyEstimateDialog{width:min(780px,calc(100vw - 24px));max-width:none;max-height:86dvh;margin:auto;padding:20px;background:var(--card);color:var(--text);border:2px solid var(--line-strong);border-radius:14px;box-shadow:0 18px 60px #132f5d40;overflow:auto}
#dailyEstimateDialog::backdrop{background:#0e244980}
.estimate-dialog-head{display:flex;align-items:center;gap:12px;justify-content:space-between}
.estimate-dialog-head h3{font-size:18px;line-height:1.4}
.estimate-dialog-head button{flex-shrink:0;width:32px;height:32px;background:var(--card);color:var(--muted);border:1px solid var(--border);border-radius:7px;cursor:pointer}
.estimate-intro,.estimate-scope{font-size:12px;line-height:1.65;color:var(--muted);margin:9px 0 13px}
.estimate-settings{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px;background:var(--bg);border-radius:9px;border:1px solid var(--border)}
.estimate-settings label{display:grid;gap:5px;flex:1;min-width:160px;font-size:11px;color:var(--muted)}
.estimate-settings input{width:100%;min-width:0;min-height:34px;padding:5px 8px;border:1px solid var(--line-strong);border-radius:6px;background:var(--card);color:var(--text);font:650 13px var(--mono)}
.estimate-settings button{padding:6px 10px;min-height:34px;background:var(--card);border:1px solid var(--line-strong);border-radius:6px;color:var(--accent);font-size:11px;cursor:pointer}
.estimate-settings small{width:100%;font-size:10px;line-height:1.6;color:var(--muted)}
.estimate-totals{display:grid;grid-template-columns:.65fr 1.4fr 1.4fr;gap:9px;margin-top:12px}
.estimate-totals>div{display:grid;align-content:start;gap:5px;padding:11px;background:var(--soft);border:1px solid var(--line-strong);border-radius:9px;min-width:0}
.estimate-totals span,.estimate-totals small{font-size:10px;color:var(--muted);line-height:1.4}
.estimate-totals b{font-size:15px;color:var(--accent);overflow-wrap:anywhere}
.estimate-list{display:grid;gap:10px}
.estimate-item{padding:13px;border:1px solid var(--border);border-radius:9px;min-width:0}
.estimate-item.selected{border-color:var(--accent);background:var(--hover)}
.estimate-item header{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:13px}
.estimate-kind{padding:2px 5px;border-radius:4px;background:var(--soft);color:var(--accent);font-size:10px}
.estimate-metrics{display:grid;grid-template-columns:1fr 1.25fr 1.25fr;gap:9px;margin:12px 0 8px}
.estimate-metrics>div{display:grid;align-content:start;gap:4px;min-width:0}
.estimate-metrics span,.estimate-metrics small{font-size:10px;line-height:1.5;color:var(--muted)}
.estimate-metrics b{font-size:13px;overflow-wrap:anywhere}
.estimate-item details{font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.estimate-item summary{cursor:pointer;color:var(--accent)}
.estimate-item details p{margin:7px 0;color:var(--muted)}
.estimate-item details a{color:var(--accent);text-decoration:underline}
.estimate-shared{font-size:10px;color:var(--muted);margin-bottom:7px}
@media(max-width:600px){
  .daily-estimates-open{position:static;margin-left:auto;flex-shrink:0}
  .lhead .sortbtn{font-size:10px}
  .quota-estimated .unit{display:block!important}
  #dailyEstimateDialog{width:calc(100vw - 18px);max-height:90dvh;padding:13px}
  .estimate-dialog-head h3{font-size:16px}
  .estimate-settings{padding:9px;gap:8px}
  .estimate-settings label{min-width:100px}
  .estimate-totals{grid-template-columns:.55fr 1.45fr}
  .estimate-totals>div:last-child{grid-column:1/-1}
  .estimate-metrics{grid-template-columns:1fr 1fr}
  .estimate-metrics>div:first-child{grid-column:1/-1}
  .estimate-item{padding:10px}
}
