.token-pro {min-width:0;scroll-margin-top:100px}
.token-pro>summary{cursor:pointer;font-size:18px;font-weight:700;padding:14px 0}
.token-pro-card{border:1px solid #dce4da;border-radius:12px;padding:16px;margin:20px 0;min-width:0;background:#fff;color:#172219}
.token-pro-card h3{font-size:18px;line-height:1.4;margin:0 0 8px}
.token-pro-card p,.token-pro-note{font-size:14px;line-height:1.6}
.token-pro-widget{height:820px!important;width:100%;min-width:0}
.token-pro-card:nth-of-type(2) .token-pro-widget{height:620px!important}
.token-pro-widget>.tradingview-widget-container__widget{height:calc(100% - 32px);width:100%}
.token-pro-widget>a{font-size:12px}
.token-pro-link{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;box-sizing:border-box;border-radius:8px;background:#dfff00;color:#121811!important;text-decoration:none;font-size:14px;font-weight:650}
[data-theme=dark] .token-pro-card{background:#1e2329;color:#eaecef;border-color:#363e4a}
.token-nav a[href='#token-pro']{font-weight:700}
.token-pro-card .token-pro-widget.is-pending{height:120px!important;opacity:.65}
.token-pro-card .token-pro-link,.token-pro-card .token-pro-retry{margin:8px 8px 0 0;max-width:100%}
.token-pro-research{margin-top:20px;padding-top:16px;border-top:1px solid #858e9a}
.token-pro-research h4{font-size:16px;line-height:1.5;margin:0 0 8px;color:inherit}
.token-pro-research summary{cursor:pointer;padding:12px 0;font-size:14px;line-height:1.5;color:inherit}
@media(max-width:900px){.token-main #token-pro{order:1}.token-pro-card{padding:10px}.token-pro-widget{height:900px!important}.token-pro-card:nth-of-type(2) .token-pro-widget{height:660px!important}}
.token-pro-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:16px 0}
.token-pro-toolbar label{display:grid;gap:6px;font-size:12px;color:var(--muted,#68707d)}
.token-pro-toolbar :is(select,button){min-height:44px;padding:8px 12px;border:1px solid var(--border,#d8dce2);border-radius:6px;background:var(--surface,#fff);color:var(--text,#20242b);font-size:13px}
.token-pro-scale-help{display:block;margin:12px 0;font-size:12px;line-height:1.6;color:var(--muted,#68707d)}
.token-pro-card:fullscreen{box-sizing:border-box;padding:20px;overflow:auto;background:var(--surface,#fff);color:var(--text,#20242b)}
.token-pro-card:fullscreen .token-pro-widget{height:calc(100dvh - 240px)!important;min-height:400px}
body.chart-mobile-open{overflow:hidden}
html body .token-pro-card.is-expanded{position:fixed;inset:0;z-index:1000;box-sizing:border-box;margin:0;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:auto;overscroll-behavior:contain;border:0;border-radius:0;background:var(--panel,var(--surface,#fff));color:var(--ink,var(--text,#20242b))}
html body .token-pro-card.is-expanded .token-pro-toolbar{position:sticky;top:0;z-index:2;padding-block:8px;background:inherit}
html body .token-pro-card.is-expanded .token-pro-widget{height:max(360px,calc(100dvh - 260px))!important;width:100%;margin:0}
html body .token-pro-card.is-expanded .token-pro-widget.is-unavailable{height:160px!important;min-height:0}

/* Gráfico ampliado: respiro lateral, faixa de cotações e banner */
html body .token-pro-card .desk-ticker,html body .token-pro-card .desk-expanded-ad{display:none}
html body .token-pro-card.is-wide{padding:24px clamp(16px,3vw,40px)!important;box-sizing:border-box;overflow:auto}
html body .token-pro-card:fullscreen{padding:24px clamp(16px,3vw,40px)!important;overflow:auto}
html body .token-pro-card.is-wide .desk-ticker{display:flex}
html body .token-pro-card.is-wide .desk-expanded-ad{display:block;margin:4px 0 16px}
html body .token-pro-card.is-wide .desk-expanded-ad .ad-placeholder{min-height:90px;max-width:728px;margin:0 auto;display:grid;place-content:center;text-align:center;gap:4px}
html body .token-pro-card.is-wide>h2,html body .token-pro-card.is-wide>h3{margin-top:4px}
html body .token-pro-card.is-wide .token-pro-widget:not(.is-pending){height:calc(100dvh - 380px)!important;min-height:360px}
.desk-ticker{align-items:center;gap:12px;margin:0 0 20px;padding:10px 12px;border:1px solid var(--line,#dde3dc);border-radius:12px;background:var(--panel-soft,#f5f7f2);overflow:hidden}
html[data-theme=dark] .desk-ticker{background:#15181d;border-color:#2b3039}
.desk-ticker-badge{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.03em;background:rgba(127,127,127,.12);color:inherit;white-space:nowrap}
.desk-ticker-badge.is-live{background:#dfff19;color:#101114}
.desk-ticker-badge.is-live::before{content:'';width:7px;height:7px;border-radius:50%;background:#16a34a}
.desk-ticker-viewport{flex:1;min-width:0;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.desk-ticker-track{display:flex;width:max-content;animation:deskTicker 60s linear infinite}
.desk-ticker:hover .desk-ticker-track,.desk-ticker:focus-within .desk-ticker-track{animation-play-state:paused}
.desk-ticker-group{display:flex;gap:28px;padding-right:28px}
.desk-ticker-item{display:inline-flex;align-items:baseline;gap:8px;white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums;padding:2px 6px;border-radius:6px}
.desk-ticker-item b{font-weight:700}
.desk-ticker-change{font-size:12px;font-weight:650}
.desk-ticker-change.is-up{color:#127b55}.desk-ticker-change.is-down{color:#b82c43}
html[data-theme=dark] .desk-ticker-change.is-up{color:#3bdaa2}html[data-theme=dark] .desk-ticker-change.is-down{color:#ff7180}
@keyframes deskTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:no-preference){.desk-ticker-item.flash-up{animation:deskFlashUp 1s ease}.desk-ticker-item.flash-down{animation:deskFlashDown 1s ease}}
@keyframes deskFlashUp{from{background:rgba(34,197,94,.25)}to{background:transparent}}
@keyframes deskFlashDown{from{background:rgba(239,68,68,.25)}to{background:transparent}}
@media (prefers-reduced-motion:reduce){.desk-ticker-track{animation:none}.desk-ticker-viewport{overflow-x:auto}}
@media(max-width:700px){.desk-ticker-badge{display:none}html body .token-pro-card.is-wide{padding:16px!important}}
html body .token-pro-card.is-wide .token-pro-widget:not(.is-pending){min-height:420px!important}
/* Controles do painel nunca passam da largura da tela. */
html body .token-pro-toolbar{min-width:0;max-width:100%}
html body .token-pro-toolbar label{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
html body .token-pro-toolbar :is(select,button){max-width:100%;min-width:0;text-overflow:ellipsis}
@media(max-width:760px){html body .token-pro-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}html body .token-pro-toolbar label:first-child{grid-column:1/-1}html body .token-pro-toolbar label select{width:100%}html body .token-pro-toolbar>button{grid-column:1/-1}}
