:root{color-scheme:dark;font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;color:#e5f0f4;background:#0b1118}*{box-sizing:border-box}body{margin:0}header,nav,main{max-width:1100px;margin:auto}header{padding:24px 20px;display:flex;justify-content:space-between;gap:16px}header b{color:#76dfbd;font-size:23px}header span,small{color:#94a8b5}nav{position:sticky;top:0;z-index:2;display:flex;gap:8px;padding:12px 16px;background:#0b1118f5;overflow-x:auto;border-bottom:1px solid #263642}button,select{font:inherit;border:1px solid #314652;border-radius:10px;padding:12px 18px;background:#121e28;color:#dce7ed;white-space:nowrap;cursor:pointer}button[aria-pressed=true]{background:#215446;border-color:#6ddbbb;color:#a9f8df}main{padding:22px 18px 50px}.hero,.panel,.card{background:#111e28;border:1px solid #283d48;border-radius:20px;padding:24px;margin-bottom:22px}.hero{background:linear-gradient(125deg,#153b32,#10202b)}p{color:#a3b7c3;margin-top:0}.hero strong{display:block;font-size:clamp(52px,10vw,90px);letter-spacing:-3px;color:#80ebc8;line-height:1.3}.hero small{display:block;margin-top:12px}.heading{display:flex;justify-content:space-between;align-items:center;gap:10px}h2{font-size:21px}canvas{display:block;width:100%;height:320px;margin:18px 0}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{margin:0;padding:22px}.card h3{margin:0 0 18px;color:#82dfc4}.row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:13px 0}.row span{color:#a4b5bf}.row b{font-size:18px}.positive{color:#f48996}.negative{color:#72b7fc}.card.total{border-color:#75b9a6;background:#153029}.warning{color:#efc46e}.card small{display:block;line-height:1.6}iframe{display:block;border:0;width:100%;height:calc(100dvh - 150px);min-height:500px}#detail{max-width:1400px;margin:auto}@media(max-width:600px){header span{font-size:12px}header{align-items:center}.cards{grid-template-columns:1fr}.hero,.panel{padding:20px}nav button{padding:11px 15px}canvas{height:280px}.heading small{font-size:11px}}

.trade-targets{margin-top:22px;border-top:1px solid #33554c;padding-top:12px}.trade-targets p{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.15fr);gap:12px;margin:12px 0;font-size:17px;align-items:baseline;white-space:nowrap}.trade-targets b{color:#e1eee9}.entry-target{color:#72b7fc}.exit-target{color:#7cdeb9;font-weight:600}@media(max-width:600px){.trade-targets p{gap:8px;font-size:clamp(10px,3.15vw,17px)}}
.hero>strong{color:#f2cf66}

#chart{touch-action:none;user-select:none;-webkit-user-select:none}.chart-controls{display:flex;gap:8px}.chart-controls button{padding:9px 14px;font-size:14px}.chart-controls button:last-child{margin-left:auto}.chart-controls button:disabled{opacity:.35;cursor:default}.chart-range{font-size:12px;margin:12px 0 8px;color:#94a8b5}#chart-state{display:block;line-height:1.6}

nav button small{display:block;margin-top:4px;font-size:11px;line-height:1.25;color:#f2cf66}nav button{align-self:stretch}

nav button small.tab-collateral{color:#b6d6cd;font-size:10px;margin-top:5px}

nav button small.tab-slots{color:#d8e6ed;font-size:10px;margin-top:4px}

.trade-targets p{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) minmax(0,1.15fr)}.position-notional{color:#f2cf66;font-variant-numeric:tabular-nums}@media(max-width:600px){.trade-targets p{grid-template-columns:auto minmax(0,1fr) minmax(0,1.15fr);font-size:13px;gap:6px 10px;white-space:normal}.trade-targets p>b{grid-row:span 2;align-self:center}.trade-targets .position-notional{grid-column:2 / 4}.trade-targets .entry-target,.trade-targets .exit-target{white-space:nowrap}}

.trade-targets p{padding-bottom:12px;border-bottom:1px solid #42665d}.trade-targets p:last-child{margin-bottom:0}

.chart-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:14px;margin:12px 0}#chart-current-gap{color:#f2cf66;font-size:clamp(28px,5vw,44px);font-weight:750;font-variant-numeric:tabular-nums;line-height:1.2;white-space:nowrap}@media(max-width:600px){.chart-heading{gap:8px;font-size:18px}#chart-current-gap{font-size:28px}.panel>.heading{flex-wrap:wrap}}

.cards>.card.total{grid-column:1 / -1;margin-top:8px;border-top:3px solid #75b9a6}.cards>.card.total h3{font-size:22px}.cards>.card.total>small{color:#b9d5ca;margin-top:14px}



.trade-targets p.unused-bot{opacity:.35;filter:grayscale(1)}

.cards>.card.unused-bot{opacity:.35;filter:grayscale(1)}

.trade-targets p{grid-template-columns:58px minmax(0,1fr) minmax(0,1fr) minmax(0,1.15fr)}.trade-targets .soyeon-target-name{font-size:12px;line-height:1.3;white-space:normal;align-self:center}@media(max-width:600px){.trade-targets p{grid-template-columns:48px minmax(0,1fr) minmax(0,1.15fr)}.trade-targets .soyeon-target-name{font-size:11px;line-height:1.35}}

.trade-targets .soyeon-target-name{text-align:center}

.bot-number{display:block;font-size:11px;font-weight:400;line-height:1.4;color:#93a6b0}.soyeon-target-name .bot-number{font-size:9px}

/* Compact Soyeon label; override the hero-wide small margin and align every row. */
.trade-targets p{align-items:center}
.trade-targets .soyeon-target-name{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;line-height:1.15;text-align:center}
.trade-targets .soyeon-target-name>span{display:block;color:inherit}
.trade-targets .soyeon-target-name>.bot-number{margin:2px 0 0;font-size:9px;line-height:1.1}
@media(max-width:600px){.trade-targets p{grid-template-rows:20px 20px;row-gap:6px;min-height:58px}.trade-targets p>b{grid-row:1 / 3}.trade-targets .soyeon-target-name{font-size:11px;line-height:1.15}}

.entry-target.entry-ended{color:#d4a3ff;font-weight:650}

.trade-targets .soyeon-target-name{font-size:inherit;line-height:normal;align-items:flex-start;text-align:left}.trade-targets .soyeon-primary-name{font-size:inherit;line-height:1.3}.trade-targets .soyeon-alias{margin:2px 0 0;font-size:8px;font-weight:400;line-height:1.2;white-space:nowrap}

.operating-status{margin:0 0 18px;font-size:15px;font-weight:650;line-height:1.5}.operating-normal{color:#82dcb1}.operating-error{color:#f08b95}

nav button.compact-tab{flex:0 0 122px;width:122px;white-space:normal;padding:12px 10px;line-height:1.5;text-align:center}nav .compact-tab>span{display:block}@media(max-width:600px){nav button.compact-tab{flex-basis:110px;width:110px;padding:11px 8px;font-size:14px}}

.card.total .combined-held-gap{color:#d4a3ff;font-size:23px}

.exit-target.grouped-exit-target{display:flex;flex-direction:column;gap:4px;font-size:.85em}

.chart-nearest-targets{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:0}.chart-nearest-targets>span{white-space:nowrap}.chart-heading{align-items:center}@media(max-width:600px){.chart-nearest-targets{font-size:12px;gap:5px}}

.chart-latest-fill{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:10px 14px;margin-left:auto;border-left:2px solid #37515e;min-width:150px;line-height:1.4}.chart-latest-fill small{font-size:11px;color:#a6b8c3}.chart-latest-fill b{font-size:17px;font-weight:700;white-space:nowrap}.chart-latest-fill.fill-entry{border-color:#72b7fc}.chart-latest-fill.fill-entry b{color:#72b7fc}.chart-latest-fill.fill-close{border-color:#d4a3ff}.chart-latest-fill.fill-close b{color:#d4a3ff}@media(max-width:600px){.chart-latest-fill{padding:8px 10px;min-width:0;flex:1;margin-left:0}.chart-latest-fill b{font-size:15px}}

@keyframes recent-fill-pulse{0%,100%{opacity:1}50%{opacity:.4}}.chart-latest-fill.fill-entry b,.chart-latest-fill.fill-close b{animation:recent-fill-pulse 1.8s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.chart-latest-fill.fill-entry b,.chart-latest-fill.fill-close b{animation:none}}

.chart-latest-fill.fill-entry,.chart-latest-fill.fill-close{border-color:#ff7785}.chart-latest-fill.fill-entry b,.chart-latest-fill.fill-close b{color:#ff7785}

/* Dashboard navigation: overview, related bot group, performance and other tools. */
nav[aria-label="대시보드 선택"]{align-items:stretch;gap:12px;padding:14px 16px;background:#0b121cf5;border-bottom-color:#30424d;scroll-padding:16px}
nav .home-nav-tab{flex:0 0 100px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;border:1px solid #3d6585;border-radius:16px;background:linear-gradient(150deg,#203e56,#132839);color:#d5eafb;box-shadow:inset 0 1px 0 #ffffff0a}
nav .home-nav-tab>span{font-size:20px;font-weight:700}
nav .home-nav-tab small.nav-caption{font-size:11px;font-weight:400;color:#a2bdd2;margin:0}
nav .home-nav-tab[aria-pressed=true]{background:linear-gradient(150deg,#315f81,#1b3b55);border-color:#8ac5f4;color:#f1f8ff;box-shadow:inset 0 0 0 1px #8ac5f433,0 3px 15px #0003}
nav .bot-tab-group{position:relative;flex:0 0 auto;border:1px solid #345044;border-radius:17px;padding:25px 7px 7px;background:linear-gradient(150deg,#12251f,#111c26);box-shadow:inset 0 1px 0 #c7fbe807}
nav .bot-group-caption{position:absolute;left:16px;top:7px;color:#91b8a9;font-size:10px;font-weight:600;letter-spacing:.4px;line-height:1}
nav .bot-tab-items{display:flex;align-items:stretch;gap:6px}
nav .bot-tab-items>button{flex:0 0 126px;min-width:126px;min-height:118px;border:1px solid #2b3e43;border-radius:11px;padding:14px 10px;background:#142229;color:#e0eee8;transition:background .15s,border-color .15s}
nav .bot-tab-items>button:hover{background:#1b3034;border-color:#51766b}
nav .bot-tab-items>button[aria-pressed=true]{background:linear-gradient(155deg,#28584a,#1b3b34);border-color:#7acfb2;box-shadow:inset 0 0 0 1px #7acfb226;color:#d5ffeb}
nav button.period-nav-tab{flex:0 0 126px;width:126px;border:1px solid #7d6336;border-radius:16px;background:linear-gradient(155deg,#352d1c,#261f15);color:#f3dca6;font-weight:650;line-height:1.7;box-shadow:inset 0 1px 0 #ffdc920d}
nav button.period-nav-tab[aria-pressed=true]{background:linear-gradient(155deg,#6b532b,#40321e);border-color:#f0ca7d;color:#fff1cd;box-shadow:inset 0 0 0 1px #f0ca7d26}
nav>button.compact-tab:not(.period-nav-tab){border-radius:16px;background:#131d28;color:#b9c9d8}
nav>button.compact-tab:not(.period-nav-tab)[aria-pressed=true]{background:#273447;border-color:#899dbb;color:#edf2ff}
@media(max-width:600px){nav[aria-label="대시보드 선택"]{gap:9px;padding:10px 12px;scroll-padding:12px}nav .home-nav-tab{flex-basis:82px;padding:12px 8px}nav .home-nav-tab>span{font-size:18px}nav .home-nav-tab small.nav-caption{font-size:10px}nav .bot-tab-group{padding:24px 5px 5px;border-radius:15px}nav .bot-group-caption{left:13px;top:7px;font-size:9px}nav .bot-tab-items{gap:5px}nav .bot-tab-items>button{flex-basis:116px;min-width:116px;min-height:116px;padding:12px 8px}nav button.period-nav-tab{flex-basis:112px;width:112px;font-size:13px}}

.fleet-log-panel{margin-top:24px}.fleet-log-panel .heading{flex-wrap:wrap}.fleet-trade-log{list-style:none;padding:0;margin:12px 0 0;max-height:460px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#3e5c60 transparent}.fleet-log-row{padding:16px 14px;border-bottom:1px solid #2b3e49;border-left:3px solid transparent}.fleet-log-row:last-child{border-bottom:0}.fleet-log-row time{display:block;color:#8da5b4;font-size:12px;margin-bottom:8px;font-variant-numeric:tabular-nums}.fleet-log-row>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}.fleet-log-row b{font-size:14px}.fleet-log-row span{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.fleet-log-entry{border-left-color:#72b7fc}.fleet-log-entry span{color:#72b7fc}.fleet-log-close{border-left-color:#d4a3ff}.fleet-log-close span{color:#d4a3ff}.fleet-log-empty{padding:24px 12px;color:#94a8b5;font-size:14px}@media(max-width:600px){.fleet-log-row{padding:14px 10px}.fleet-log-row span{font-size:13px}.fleet-log-panel .heading small{font-size:11px}}
#home #gap{animation:recent-fill-pulse 1.8s ease-in-out infinite}@media(prefers-reduced-motion:reduce){#home #gap{animation:none}}

.fleet-log-profit{margin-left:auto;padding:5px 9px;border:1px solid #3c4e59;border-radius:7px;background:#0d1821;font-size:14px!important;white-space:nowrap}@media(max-width:600px){.fleet-log-profit{margin-left:0;font-size:12px!important}}

.hero-slot-profit{position:relative;margin-top:22px;padding:20px 22px;border:1px solid #967d41;border-radius:17px;background:linear-gradient(120deg,#443919c9,#202b25d9);box-shadow:inset 0 1px 0 #f5df9b16,0 5px 18px #0002}.hero-slot-profit-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#f0dca6;font-size:14px;font-weight:600}.hero-slot-profit-badge{border:1px solid #a78c4e6b;border-radius:20px;background:#a58a3420;padding:4px 9px;font-size:10px;font-weight:500;white-space:nowrap}.hero-slot-profit strong{font-size:clamp(29px,5vw,42px);line-height:1.3;font-weight:750;letter-spacing:-1px;color:#ffdc78;margin:12px 0;font-variant-numeric:tabular-nums;animation:recent-fill-pulse 1.8s ease-in-out infinite}.hero-slot-profit small{display:block;margin:0;font-size:11px;line-height:1.6;color:#c9bea0}@media(max-width:600px){.hero-slot-profit{padding:17px 16px}.hero-slot-profit-heading{font-size:12px}.hero-slot-profit-badge{font-size:9px}}@media(prefers-reduced-motion:reduce){.hero-slot-profit strong{animation:none}}

.hero-slot-profit-period{display:inline-block;font-size:11px;font-weight:400;color:#c9bea0;margin-left:6px}

.fleet-trade-log{max-height:none;overflow:visible}.fleet-log-pagination{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:18px}.fleet-log-pagination button{padding:10px 14px}.fleet-log-pagination span{color:#b7c8cc;font-size:14px;white-space:nowrap}

.hero-funding-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hero-funding-grid .hero-slot-profit{min-width:0}.hero-funding-grid .hero-slot-profit strong{font-size:clamp(20px,3vw,32px);letter-spacing:-.5px}.cumulative-funding{border-color:#7d639b;background:linear-gradient(120deg,#342840c9,#202535d9)}.cumulative-funding strong{color:#d9b2ff;animation:none}@media(max-width:460px){.hero-funding-grid{gap:8px}.hero-funding-grid .hero-slot-profit{padding:14px 10px}.hero-funding-grid .hero-slot-profit-heading{font-size:11px}.hero-funding-grid .hero-slot-profit strong{font-size:20px}}

nav .bot-tab-items>button{display:flex;flex-direction:column;align-items:center;justify-content:center}nav .tab-group-method{font-size:10px!important;color:#b6a0e2!important;margin:5px 0 2px!important}nav .tab-group-entries{display:flex!important;flex-direction:column;gap:3px;font-size:10px!important;line-height:1.35}nav .tab-group-entries>span{white-space:nowrap}nav .soyeon-tab-alias{font-size:10px!important;color:#a6b9be!important;margin:3px 0!important}nav .bot-tab-title{font-size:inherit}

nav>a.btc-paper-link{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:stretch;flex:0 0 122px;width:122px;padding:12px 10px;border:1px solid #314652;border-radius:16px;background:#131d28;color:#b9c9d8;text-decoration:none;font:inherit;line-height:1.5;white-space:normal;text-align:center}nav>a.btc-paper-link:hover{background:#273447;border-color:#899dbb;color:#edf2ff}

.hero-funding-grid{margin-bottom:22px}.hero-funding-grid .hero-slot-profit{margin-top:0}.hero-funding-grid .hero-slot-profit strong{display:block}

.hero-top{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);gap:24px;align-items:center}.hero-profit-summary{border:1px solid #4b6266;border-radius:16px;background:#101f29b8;padding:18px 20px}.hero-profit-item>span{display:block;color:#b6c7cc;font-size:13px}.hero-profit-item>b{display:block;font-size:clamp(23px,3vw,34px);line-height:1.35;margin-top:7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.hero-profit-item.slot-profit>b{color:#f1d075}.hero-profit-item+ .hero-profit-item{border-top:1px solid #40515a;padding-top:15px;margin-top:15px}.hero .hero-profit-item small{font-size:10px;margin-top:4px}.hero-gap-block #gap{font-size:clamp(34px,7.5vw,82px)}@media(max-width:600px){.hero-top{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:10px;align-items:start}.hero-gap-block p{font-size:12px}.hero-gap-block #gap{font-size:clamp(27px,7.5vw,44px);letter-spacing:-1.5px}.hero-profit-summary{padding:12px 10px;border-radius:12px}.hero-profit-item>span{font-size:10px}.hero-profit-item>b{font-size:clamp(17px,4.5vw,25px)}.hero .hero-gap-block>small{font-size:10px}.hero-profit-item+.hero-profit-item{padding-top:10px;margin-top:10px}.hero .hero-profit-item small{font-size:9px}}

.hero-gap-block #gap{color:#f2cf66}

.hero-profit-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;overflow:hidden}.hero-profit-summary .hero-profit-item{padding:14px 12px;min-width:0;margin:0;border:0}.hero-profit-summary .hero-profit-item:nth-child(even){border-left:1px solid #40515a}.hero-profit-summary .hero-profit-item:nth-child(n+3){border-top:1px solid #40515a}.hero-profit-summary .hero-profit-item>span{font-size:11px;line-height:1.5}.hero-profit-summary .hero-profit-item>b{font-size:clamp(18px,2.3vw,27px)}.hero-top{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}@media(max-width:600px){.hero-top{grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:8px}.hero-profit-summary .hero-profit-item{padding:10px 6px}.hero-profit-summary .hero-profit-item>span{font-size:9px}.hero-profit-summary .hero-profit-item>b{font-size:clamp(13px,3.1vw,18px)}.hero-gap-block #gap{font-size:clamp(24px,6.8vw,38px)}}

/* Keep four summary amounts legible on narrow mobile screens. */
.hero-profit-summary .hero-profit-item>b{white-space:nowrap;overflow-wrap:normal;letter-spacing:-.35px}
@media(max-width:600px){.hero-top{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}.hero-profit-summary .hero-profit-item{padding:10px 5px}.hero-profit-summary .hero-profit-item>b{font-size:clamp(10px,3vw,17px);letter-spacing:-.45px}.hero-gap-block #gap{font-size:clamp(21px,5.8vw,34px)}}

.mobile-profit-break{display:none}@media(max-width:600px){.mobile-profit-break{display:block}}


/* Compact, joined 2x2 profit table. */
.hero-top{gap:12px;align-items:start}
.hero-profit-summary{width:100%;gap:0;padding:0;margin:0;border-radius:6px;align-self:start;grid-auto-rows:min-content}
.hero-profit-summary .hero-profit-item{display:flex;flex-direction:column;justify-content:flex-start;gap:3px;padding:8px;margin:0;min-height:0}
.hero-profit-summary .hero-profit-item>span{margin:0;line-height:1.25;font-size:11px}
.hero-profit-summary .hero-profit-item>b{margin:0;font-size:clamp(18px,2.1vw,25px);line-height:1.15;white-space:nowrap}
@media(max-width:600px){.hero-top{gap:4px}.hero-profit-summary{border-radius:4px}.hero-profit-summary .hero-profit-item{padding:6px 4px;gap:3px}.hero-profit-summary .hero-profit-item>span{font-size:9px;line-height:1.2;min-height:2.4em}.hero-profit-summary .hero-profit-item>b{font-size:clamp(11px,3.05vw,17px);line-height:1.15;letter-spacing:-.4px}}

#hero-funding-value{animation:none}
#hero-funding-value.funding-flash{animation:recent-fill-pulse 1.8s ease-in-out infinite}
#hero-funding-value.funding-positive{color:#f48996}
#hero-funding-value.funding-negative{color:#72b7fc}
@media(prefers-reduced-motion:reduce){#hero-funding-value.funding-flash{animation:none}}

#hero-cumulative-funding{animation:none}#hero-cumulative-funding.funding-positive{color:#f48996}#hero-cumulative-funding.funding-negative{color:#72b7fc}

.hero-funding-grid .hero-slot-profit{transition:background .25s,border-color .25s}
.hero-funding-grid .hero-slot-profit[data-funding-tone="positive"]{background:#472933;border-color:#a86172}
.hero-funding-grid .hero-slot-profit[data-funding-tone="negative"]{background:#20374d;border-color:#5f88ad}
.hero-funding-grid .hero-slot-profit[data-funding-tone="neutral"]{background:#17272d;border-color:#52636b}

/* Mobile: size the left profit column to its content, not half the panel. */
@media(max-width:600px){
 .hero-profit-summary{grid-template-columns:max-content minmax(0,1fr)}
 .hero-profit-summary .hero-profit-item{padding:6px 3px;gap:2px}
 .hero-profit-summary .hero-profit-item>span{font-size:9px;line-height:1.2}
 .hero-profit-summary .hero-profit-item>b{margin:0;font-size:clamp(11px,3vw,17px);letter-spacing:-.45px;white-space:nowrap}
}

/* Mobile profit table: hug both columns, with balanced breathing room. */
@media(max-width:600px){
 .hero-top{grid-template-columns:minmax(0,1fr) max-content;gap:10px;align-items:start}
 .hero-profit-summary{width:max-content;max-width:100%;grid-template-columns:max-content max-content;justify-self:end;border-radius:7px}
 .hero-profit-summary .hero-profit-item{padding:8px 5px;gap:5px}
 .hero-profit-summary .hero-profit-item>span{font-size:9px;line-height:1.3;min-height:2.6em}
 .hero-profit-summary .hero-profit-item>b{font-size:clamp(11px,3vw,17px);line-height:1.2;letter-spacing:-.35px;white-space:nowrap}
 .hero-gap-block p{margin-bottom:14px;line-height:1.5}
 .hero-gap-block #gap{font-size:clamp(19px,5.6vw,30px);letter-spacing:-1.2px}
 .hero .hero-gap-block>small{margin-top:15px;line-height:1.4}
}
@media(max-width:360px){.hero-top{gap:7px}.hero-profit-summary .hero-profit-item{padding:7px 4px}.hero-profit-summary .hero-profit-item>span{font-size:8px}.hero-profit-summary .hero-profit-item>b{font-size:11px}.hero-gap-block p{font-size:11px}.hero-gap-block #gap{font-size:19px}}

/* Desktop: compact content-sized profit table with comfortable spacing. */
@media(min-width:601px){
 .hero-top{grid-template-columns:minmax(0,1fr) max-content;gap:28px;align-items:center}
 .hero-profit-summary{width:max-content;max-width:100%;grid-template-columns:max-content max-content;justify-self:end;border-radius:12px}
 .hero-profit-summary .hero-profit-item{padding:15px 18px;gap:8px}
 .hero-profit-summary .hero-profit-item>span{font-size:12px;line-height:1.45;min-height:0}
 .hero-profit-summary .hero-profit-item>b{font-size:clamp(20px,2.15vw,28px);line-height:1.2;letter-spacing:-.45px;white-space:nowrap;margin:0}
}
@media(min-width:601px) and (max-width:850px){.hero-top{gap:16px}.hero-profit-summary .hero-profit-item{padding:12px 10px}.hero-profit-summary .hero-profit-item>span{font-size:10px}.hero-profit-summary .hero-profit-item>b{font-size:21px}.hero-gap-block #gap{font-size:clamp(34px,6.4vw,54px)}}

@media(max-width:600px){.hero-gap-block #gap{font-size:clamp(23px,6.6vw,36px);letter-spacing:-1.2px;white-space:nowrap}}@media(max-width:360px){.hero-gap-block #gap{font-size:clamp(22px,6.4vw,24px)}}

.hero-profit-summary .hero-profit-item>b.positive{color:#f48996}.hero-profit-summary .hero-profit-item>b.negative{color:#72b7fc}.hero-profit-summary .hero-profit-item.slot-profit>b:not(.positive):not(.negative){color:#b6c7cc}

/* Premium gap: dimensional gold, stable legibility through its pulse. */
#home .hero-gap-block #gap{
 font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap;
 color:#ffdc72;letter-spacing:-1.2px;
 text-shadow:0 1px 0 #c69a32,0 2px 0 #9b7023,0 3px 0 #6a4c1b,0 5px 8px #0009,0 0 18px #f9cb4938;
 animation:premium-gap-glow 2.4s ease-in-out infinite;
}
@keyframes premium-gap-glow{0%,100%{filter:brightness(1);opacity:1}50%{filter:brightness(1.18);opacity:1}}
@media(max-width:600px){
 .hero-top{position:relative}
 .hero-gap-block #gap{width:max-content;font-size:clamp(28px,8vw,44px)!important;line-height:1.15;letter-spacing:-1.5px;transform:translateY(1px)}
 .hero-gap-block p{font-size:11px;line-height:1.45;margin-bottom:15px}
 .hero-profit-summary .hero-profit-item{padding:8px 4px}
 .hero-profit-summary .hero-profit-item>span{font-size:8.5px}
}
@media(max-width:360px){.hero-gap-block #gap{font-size:clamp(26px,7.6vw,29px)!important;letter-spacing:-1.7px}.hero-top{gap:7px}.hero-profit-summary .hero-profit-item{padding:7px 3px}.hero-profit-summary .hero-profit-item>span{font-size:8px}}
@media(prefers-reduced-motion:reduce){#home .hero-gap-block #gap{animation:none}}

#chart-current-gap{animation:premium-gap-glow 2.4s ease-in-out infinite;text-shadow:0 1px 0 #9b7023,0 3px 7px #0007,0 0 12px #f9cb4938}@media(prefers-reduced-motion:reduce){#chart-current-gap{animation:none}}

/* The percentage immediately next to the main gap-chart title. */
#home .chart-heading #chart-current-gap{animation:chart-gap-flash 1.6s ease-in-out infinite;color:#f2cf66}
@keyframes chart-gap-flash{0%,100%{opacity:1;filter:brightness(1.05)}50%{opacity:.45;filter:brightness(1.25)}}
@media(prefers-reduced-motion:reduce){#home .chart-heading #chart-current-gap{animation:none}}

#chart-current-gap,#home .chart-heading #chart-current-gap{animation:none;opacity:1;filter:none}

/* Daily fleet slot profit uses a full-width fifth cell on compact screens. */
.hero-profit-summary .today-profit{grid-column:1/-1;border-left:0;background:#22333b80}.hero-profit-summary .today-profit small{font-size:10px;color:#a9bbc0;margin:0}
/* Daily profit card: soft indigo glow and a compact, distinct surface. */
.hero-profit-summary .today-profit{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(120deg,#24374d 0%,#26334b 48%,#38304a 100%);border-top:1px solid #788bb866;box-shadow:inset 0 1px 0 #c0d6ff17;gap:5px}
.hero-profit-summary .today-profit::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 90% 0%,#a59af530,transparent 64%);pointer-events:none}
.hero-profit-summary .today-profit>span{color:#d2def4;font-weight:700;letter-spacing:.02em}
.hero-profit-summary .today-profit>b{font-weight:800;text-shadow:0 2px 10px #0004}
.hero-profit-summary .today-profit small{color:#b4c2d8;font-size:10px;line-height:1.4}
@media(max-width:600px){.hero-profit-summary .today-profit{padding:10px 8px;gap:4px}.hero-profit-summary .today-profit>span{min-height:0;font-size:10px}.hero-profit-summary .today-profit>b{font-size:19px}.hero-profit-summary .today-profit small{font-size:9px}}

.bot-tab-items .tab-principal{color:#cad5df;font-size:12px;margin-top:5px}.bot-tab-items .tab-capital-delta{font-size:12px;font-weight:700;white-space:nowrap;margin-top:3px}.bot-tab-items .tab-capital-delta.positive{color:#ff727c}.bot-tab-items .tab-capital-delta.negative{color:#69aaff}@media(max-width:600px){.bot-tab-items .tab-principal,.bot-tab-items .tab-capital-delta{font-size:11px}}

nav .home-nav-tab .home-bot-health{display:grid;grid-template-columns:repeat(2,max-content);gap:5px 7px;margin:4px 0 0;font-size:10px;font-weight:500;line-height:1.4;color:#dbe7f0}nav .home-nav-tab .home-bot-health span{white-space:nowrap}@media(max-width:600px){nav .home-nav-tab .home-bot-health{font-size:9px;gap:5px 4px}}

.hero-profit-summary .today-profit .today-funding-total{font-size:12px;font-weight:650;margin-top:4px}.hero-profit-summary .today-profit .today-funding-total.positive{color:#ff727c}.hero-profit-summary .today-profit .today-funding-total.negative{color:#69aaff}@media(max-width:600px){.hero-profit-summary .today-profit .today-funding-total{font-size:10px}}

.card .row .combined-exchange-gap{color:#efd078;font-variant-numeric:tabular-nums}

.card .row .combined-exchange-gap[data-stale="true"]{color:#adb9c5}

.hero-profit-summary .today-profit .today-slot-detail{font-size:12px;font-weight:500;margin-top:5px}.today-profit .today-slot-detail strong{font-size:inherit;font-weight:700}.today-profit .today-slot-detail strong.positive{color:#ff727c}.today-profit .today-slot-detail strong.negative{color:#69aaff}@media(max-width:600px){.hero-profit-summary .today-profit .today-slot-detail{font-size:10px}}
/* Keep detail amounts independent from the large premium-gap strong style. */
.hero-profit-summary .today-profit .today-slot-detail{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 6px;line-height:1.5;letter-spacing:normal}
.hero-profit-summary .today-profit .today-slot-detail strong{display:inline;font-size:inherit;font-weight:700;line-height:inherit;letter-spacing:normal;white-space:nowrap;text-shadow:none;font-variant-numeric:tabular-nums;animation:none;transform:none}
