/* Panorama GTS — terminal de mercado no visual da GTS: preto, azul da marca, números em mono */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Michroma'; font-style: normal; font-display: swap; font-weight: 400; src: url('/fonts/michroma-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --ink: #050607; --ink-2: #08090B; --card: #0C0F12; --card-2: #10141A; --row: #0F1317;
  --rule: #1A1F23; --rule-2: #262D32;
  --paper: #ECEFEE; --mute: #A4ACA9; --dim: #6F7875; --faint: #4A524F;
  --brand: #2E8BF7; --brand-2: #2BC6F4; --brand-hi: #5AA8FF; --brand-soft: rgba(46,139,247,.10); --brand-line: rgba(46,139,247,.34);
  --up: #22D37E; --down: #FF5C6A; --up-soft: rgba(34,211,126,.16); --down-soft: rgba(255,92,106,.16);
  --head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Michroma', 'Eurostile', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 10px; --r-lg: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ink); color: var(--paper); }
body { font-family: var(--head); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: var(--brand-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); } .mute { color: var(--mute); } .small { font-size: 12.5px; }
.eyebrow { font-family: var(--display); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--rule-2); background: transparent; color: var(--paper); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s; }
.btn-solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-hi); border-color: var(--brand-hi); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--rule-2); background: var(--card); color: var(--mute); cursor: pointer; }
.icon-btn:hover { color: var(--paper); border-color: var(--brand-line); }
.link-btn { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 0; font-size: 13px; }
.link-btn:hover { color: var(--paper); }

/* topo */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(5,6,7,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.tb-in { max-width: 1840px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand img { height: 32px; width: auto; }
.brand-tag { font-family: var(--display); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-2); padding-left: 12px; border-left: 1px solid var(--rule-2); }
.tb-nav { display: flex; gap: 4px; }
.tb-nav a { color: var(--mute); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.tb-nav a:hover, .tb-nav a[aria-current="page"] { color: var(--paper); background: var(--card-2); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user { display: flex; gap: 10px; align-items: baseline; color: var(--mute); font-size: 13px; }
@media (max-width: 760px) { .hide-sm, .cta-sala { display: none !important; } .tb-in { gap: 12px; } .brand img { height: 26px; } .brand-tag { display: none; } }

.pano { max-width: 1840px; margin: 0 auto; padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 14px; }

/* favoritos */
.favs { display: flex; align-items: stretch; gap: 10px; }
.fav-list { display: flex; gap: 10px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.fav-list::-webkit-scrollbar { display: none; }
.fav { flex: 0 0 auto; min-width: 158px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: end; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); position: relative; overflow: hidden; }
.fav .f-l { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.fav .f-p { font-family: var(--mono); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fav .f-c { font-family: var(--mono); font-size: 12px; text-align: right; }
.fav svg.spark { position: absolute; inset: auto 0 0 0; width: 100%; height: 26px; opacity: .55; pointer-events: none; }
.fav.clock { min-width: 140px; display: flex; flex-direction: column; gap: 2px; border-color: var(--brand-line); background: linear-gradient(160deg, var(--brand-soft), transparent 70%), var(--card); }
.fav.clock strong { font-size: 19px; font-weight: 500; }
.fav.clock .dim { font-size: 11.5px; }
.favs .icon-btn { align-self: center; }
@media (max-width: 760px) { .fav.clock { display: none; } .fav { min-width: 140px; } }

/* grade */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); grid-auto-flow: row dense; }
.grid-2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.grid-chat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .grid-2, .grid-chat { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px 10px 14px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.c-title { font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.c-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 3px rgba(43,198,244,.18); }
.c-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c-note { font-size: 11.5px; }
.c-foot { font-size: 11.5px; padding: 8px 14px 11px; border-top: 1px solid var(--rule); margin-top: auto; }
.tool { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--rule-2); background: transparent; color: var(--mute); cursor: pointer; font-size: 12px; font-weight: 600; }
.tool .ic { width: 15px; height: 15px; }
.tool:hover { color: var(--paper); }
.tool[aria-pressed="true"] { color: #fff; background: var(--brand-soft); border-color: var(--brand-line); }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--rule-2); border-radius: 8px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--dim); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--card-2); color: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-2); }
.seg-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }

/* quadros de cotações */
.q-card .c-head { padding-block: 9px 8px; }
.q-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.q-tbl th { font-family: var(--display); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 400; text-align: right; padding: 7px 10px 5px; }
.q-tbl th:first-child { text-align: left; padding-left: 14px; }
.q-tbl td { padding: 6px 8px; border-top: 1px solid rgba(26,31,35,.7); text-align: right; white-space: nowrap; }
.q-tbl td:first-child { text-align: left; padding-left: 14px; max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
.q-tbl tr:hover td { background: var(--row); }
.q-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--paper); }
.cc { display: inline-grid; place-items: center; width: 22px; height: 15px; border-radius: 3px; background: var(--card-2); border: 1px solid var(--rule-2); font-family: var(--mono); font-size: 8.5px; color: var(--mute); letter-spacing: .02em; flex: 0 0 auto; }
.cc.cc-XX { color: var(--faint); }
.q-p { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; border-radius: 4px; transition: background .9s ease, color .9s ease; }
.q-c { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12.5px; min-width: 64px; }
.q-t { font-family: var(--mono); font-size: 10.5px; color: var(--faint); padding-left: 2px !important; }
.q-sp { width: 54px; padding-inline: 4px !important; }
.q-sp svg { display: block; width: 50px; height: 18px; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--dim); }
.flash-up { background: var(--up-soft); color: var(--up); transition: none; }
.flash-down { background: var(--down-soft); color: var(--down); transition: none; }
.q-card.frozen .q-tbl { opacity: .55; }
.q-card .frz[aria-pressed="true"] { color: var(--brand-2); }
.stale td.q-p, .stale td.q-c { opacity: .65; }
@media (max-width: 480px) { .q-t { display: none; } .q-sp { width: 44px; } .q-sp svg { width: 40px; } }

/* notícias */
.news { grid-row: span 4; max-height: 1640px; }
@media (min-width: 1700px) { .news { grid-row: span 3; } }
.news-list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1; font-size: var(--nfs, 13px); scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.news-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 10px; padding: 8px 14px; border-bottom: 1px solid rgba(26,31,35,.7); }
.news-list li.new { animation: newsin 2.4s ease; }
@keyframes newsin { from { background: var(--brand-soft); } to { background: transparent; } }
.news-list time { font-family: var(--mono); font-size: 11.5px; color: var(--brand-2); padding-top: 1px; }
.news-list a { color: var(--paper); font-weight: 600; line-height: 1.38; }
.news-list a:visited { color: var(--mute); }
.news-list .src { grid-column: 2; font-size: 11px; color: var(--dim); display: flex; gap: 8px; }
.news-list .src .orig { color: var(--faint); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skeleton { height: 46px; margin: 6px 14px; border-radius: 8px; background: linear-gradient(90deg, var(--card-2), #151a20, var(--card-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border: 0 !important; }
@keyframes sk { to { background-position: -200% 0; } }
@media (max-width: 760px) { .news { grid-row: auto; max-height: 520px; } }

/* calendário */
.cal-wrap { overflow: auto; max-height: 430px; }
.cal-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.cal-t th { position: sticky; top: 0; background: var(--card); font-family: var(--display); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 400; text-align: left; padding: 8px 10px 6px; z-index: 1; }
.cal-t td { padding: 7px 10px; border-top: 1px solid rgba(26,31,35,.7); vertical-align: top; }
.cal-t td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.cal-t th.n { text-align: right; }
.cal-t tr.past td { color: var(--dim); }
.cal-t tr.soon td { background: var(--brand-soft); }
.cal-t tr.hi .ev { font-weight: 700; }
.imp { display: inline-flex; gap: 2px; }
.imp i { width: 4px; height: 11px; border-radius: 1px; background: var(--rule-2); }
.imp.i2 i:nth-child(-n+2), .imp.i3 i { background: var(--brand); }
.imp.i3 i { background: var(--brand-2); }
.cal-empty { padding: 20px 14px; color: var(--dim); }

/* relógio de mercado */
.mclock { display: grid; grid-template-columns: minmax(200px, 1.05fr) minmax(220px, 1fr); gap: 18px; padding: 16px; align-items: center; }
.dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#dial { width: 100%; height: auto; display: block; }
.dial-next { font-size: 11.5px; color: var(--mute); text-align: center; }
.dial-next b { color: var(--brand-2); font-weight: 500; }
.board { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: rgba(8,10,13,.6); align-self: stretch; justify-content: space-between; }
.ex { position: relative; display: grid; grid-template-columns: 3px minmax(0, 1fr); column-gap: 11px; row-gap: 3px; padding: 7px 12px 0 0; border-top: 1px solid var(--rule); }
.ex:first-child { border-top: 0; }
.ex-bar { grid-row: 1 / 4; align-self: stretch; background: var(--c); opacity: .25; }
.ex.open .ex-bar { opacity: 1; box-shadow: 0 0 10px var(--c); }
.ex-l1, .ex-l2 { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.ex-id { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ex-id b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .05em; color: var(--paper); }
.ex-id small { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-l2 { font-size: 11px; color: var(--faint); }
.ex .cd { color: var(--dim); }
.ex.open .cd { color: var(--paper); }
.pill { flex: 0 0 auto; font-family: var(--display); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; padding: 3px 7px 2px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--dim); }
.ex.open .pill { color: var(--up); border-color: rgba(34,211,126,.45); background: rgba(34,211,126,.08); }
.ex-prog { grid-column: 2; height: 2px; margin-top: 4px; background: rgba(255,255,255,.04); }
.ex-prog i { display: block; height: 100%; background: linear-gradient(90deg, transparent, var(--c)); }
@media (max-width: 1280px) and (min-width: 1001px) { .mclock { grid-template-columns: 1fr; } #dial { max-width: 280px; } .dial-wrap { order: 0; } }
@media (max-width: 560px) { .mclock { grid-template-columns: 1fr; padding: 12px; } #dial { max-width: 270px; } }

/* TV */
.tv-frame { position: relative; aspect-ratio: 16 / 9; background: #000 url('/assets/banner-sala.jpg') center / cover; }
.tv-frame::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.tv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.tv-start { position: absolute; inset: 0; margin: auto; width: max-content; height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--brand-line); background: rgba(12,15,18,.85); color: #fff; font-weight: 700; cursor: pointer; z-index: 1; }
.tv-start:hover { border-color: var(--brand); }
.tv-card.big { grid-column: 1 / -1; }

/* chamada da sala */
.plan-card { padding: 22px; gap: 12px; justify-content: center; background: radial-gradient(120% 90% at 100% 0%, rgba(46,139,247,.18), transparent 60%), var(--card); border-color: var(--brand-line); }
.plan-h { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.plan-card .mute { max-width: 52ch; }
.plan-tease { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r); border: 1px dashed var(--brand-line); background: rgba(0,0,0,.25); }
.plan-tease strong { font-size: 16px; }
.plan-tease .lock { font-size: 12px; color: var(--brand-2); }
.plan-card .btn { align-self: flex-start; }
.about-card { padding: 18px; gap: 10px; }

/* mapas TradingView */
.map-card .tv-widget { height: 460px; }
.tv-widget .tradingview-widget-container, .tv-widget iframe { width: 100% !important; height: 100% !important; }
.tv-fallback { padding: 24px 14px; color: var(--dim); }

/* chat */
.chat-card { min-height: 380px; max-height: 520px; }
.chat-list { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; flex: 1; }
.chat-list li { padding: 5px 14px; font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; }
.chat-list time { font-family: var(--mono); font-size: 11px; color: var(--faint); flex: 0 0 auto; }
.chat-list b { font-weight: 700; color: var(--mute); }
.chat-list li.admin b { color: var(--brand-2); }
.chat-list .badge { font-family: var(--mono); font-size: 9px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--brand-line); color: var(--brand-2); }
.chat-list .del { margin-left: auto; background: none; border: 0; color: var(--faint); cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--rule); }
.chat-form input { flex: 1; min-width: 0; height: 38px; border-radius: 9px; border: 1px solid var(--rule-2); background: var(--ink-2); color: var(--paper); padding: 0 12px; font: inherit; }
.form-err { color: var(--down); font-size: 12.5px; min-height: 0; padding: 0 12px; }
.chat-card .form-err:not(:empty) { padding-bottom: 8px; }

.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 10px 0 30px; }

/* cadastro */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5,6,7,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; }
.gate-box { width: min(440px, 100%); background: var(--card); border: 1px solid var(--brand-line); border-radius: 18px; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.gate-logo { height: 38px; width: auto; align-self: flex-start; }
.gate-box h1 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.gate-tabs { align-self: stretch; } .gate-tabs button { flex: 1; padding-block: 7px; }
.gform { display: flex; flex-direction: column; gap: 11px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--mute); font-weight: 600; }
.field input, .field select { height: 42px; border-radius: 9px; border: 1px solid var(--rule-2); background: var(--ink-2); color: var(--paper); padding: 0 12px; font: inherit; font-size: 14.5px; font-weight: 500; }
.field input:focus, .field select:focus { border-color: var(--brand); outline: none; }
.phone-row { display: flex; gap: 8px; } .phone-row select { width: 44%; min-width: 0; } .phone-row input { flex: 1; min-width: 0; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--mute); }
.check input { margin-top: 2px; accent-color: var(--brand); }
.gform .form-err { padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body.gated .pano { filter: blur(6px); pointer-events: none; user-select: none; }

/* favoritos: escolha */
.dlg { border: 1px solid var(--rule-2); border-radius: 16px; background: var(--card); color: var(--paper); padding: 0; width: min(720px, calc(100% - 24px)); max-height: 86vh; }
.dlg::backdrop { background: rgba(0,0,0,.6); }
.dlg-in { display: flex; flex-direction: column; gap: 10px; padding: 18px; max-height: 86vh; }
.dlg-head, .dlg-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dlg-head h2 { font-size: 18px; }
.fav-pick { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.fav-pick h3 { grid-column: 1 / -1; margin: 10px 0 2px; font-family: var(--display); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.fav-pick label { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; cursor: pointer; }
.fav-pick input { accent-color: var(--brand); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card-2); border: 1px solid var(--rule-2); padding: 10px 16px; border-radius: 10px; z-index: 60; font-size: 13.5px; }

/* página do gráfico */
.chart-page { max-width: 1840px; margin: 0 auto; padding: 12px 16px 30px; display: flex; flex-direction: column; gap: 12px; }
.chart-page .ticker { height: 46px; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.chart-page .chart { height: calc(100vh - 170px); min-height: 520px; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.chart-page .quick { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== revisão de responsivo ===== */
.c-row { flex: 1 0 100%; order: 3; display: flex; align-items: center; gap: 6px; min-width: 0; }
.c-row .sp { flex: 1; }
.seg-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 100%; }
.seg-scroll::-webkit-scrollbar { display: none; }
#tv-ch { width: max-content; max-width: 100%; }
.news-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.news-tools::-webkit-scrollbar { display: none; }
.news-tools > * { flex: 0 0 auto; }
.q-sp { width: 46px; } .q-sp svg { width: 44px; }
.q-tbl td { padding-inline: 7px; }
.ev-meta { display: none; }
@media (max-width: 1100px) and (min-width: 761px) { .tb-nav a { padding: 8px 9px; } }
@media (max-width: 560px) {
  .cal-t thead { display: none; }
  .cal-t, .cal-t tbody { display: block; }
  .cal-t tr { display: grid; grid-template-columns: 48px minmax(0, 1fr); border-top: 1px solid rgba(26,31,35,.7); padding: 8px 0; }
  .cal-t td { border: 0; padding: 0 10px; }
  .cal-t td.c, .cal-t td.i, .cal-t td.f, .cal-t td.p { display: none; }
  .cal-t td.h { text-align: left; padding-top: 1px; }
  .ev-n { display: block; }
  .ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 11.5px; color: var(--dim); font-weight: 400; }
  .ev-meta b { color: var(--mute); font-family: var(--mono); font-weight: 500; }
}
@media (max-width: 480px) {
  .q-tbl .cc { display: none; }
  .q-name { gap: 0; }
  .q-sp { width: 38px; } .q-sp svg { width: 36px; }
  .q-tbl td { padding-inline: 5px; }
  .q-tbl td:first-child, .q-tbl th:first-child { padding-left: 12px; }
  .q-tbl { font-size: 12.5px; }
  .q-c { min-width: 58px; font-size: 12px; }
}
@media (max-width: 380px) {
  .tb-in { padding-inline: 12px; gap: 8px; }
  .brand img { height: 22px; }
  .tb-nav a { padding: 7px 8px; font-size: 13px; }
  .user #user-name { display: none; }
  .pano { padding-inline: 10px; }
  .q-sp { display: none; }
}

/* ===== Aulas grátis ===== */
.hide-xs { } @media (max-width: 420px) { .hide-xs { display: none; } }
.aulas-page { gap: 18px; }
.aulas-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; border-radius: 18px; border: 1px solid var(--brand-line); background: radial-gradient(90% 140% at 100% 0%, rgba(46,139,247,.22), transparent 55%), linear-gradient(180deg, #0D1219, #0A0D11); }
.aulas-hero h1 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 8px 0 10px; max-width: 22ch; }
.aulas-hero .mute { max-width: 60ch; }
.ah-stats { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--rule-2); background: rgba(0,0,0,.25); }
.ah-stats > div:last-child { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ah-stats strong { font-size: 22px; font-family: var(--mono); font-weight: 500; }
.ring { position: relative; width: 64px; height: 64px; } .ring svg { width: 64px; height: 64px; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 500; }
@media (max-width: 760px) { .aulas-hero { grid-template-columns: 1fr; padding: 20px; } }

.player { overflow: hidden; }
.pl-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; flex-wrap: wrap; }
.pl-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pl-info strong { font-size: 16px; }
.pl-actions { display: flex; gap: 8px; align-items: center; }
.player { max-width: 1100px; width: 100%; margin: 0 auto; }

.tracks { display: flex; flex-direction: column; gap: 16px; }
.track { border: 1px solid var(--rule); border-radius: 16px; background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.track > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.track h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 4px; }
.track p { font-size: 13.5px; max-width: 70ch; }
.tr-prog { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.tr-prog .mono { font-size: 12px; color: var(--mute); }
.tr-prog .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.tr-prog .bar i { display: block; height: 100%; background: var(--grad, linear-gradient(100deg, #2888F8, #28C8F8)); }
.track.soon { opacity: .75; border-style: dashed; }
.track.soon .pill { align-self: center; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.lesson { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--paper); }
.lesson .th, .lv .th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--card-2); border: 1px solid var(--rule); }
.lesson .th img, .lv .th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.lesson:hover .th img, .lv:hover .th img { transform: scale(1.04); }
.lesson .dur { position: absolute; right: 6px; bottom: 6px; font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.8); }
.lesson .ok { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--up); color: #04140B; }
.lesson .ok .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.lesson.done .ok { display: grid; }
.lesson.done .th img { opacity: .55; }
.lesson.on .th { outline: 2px solid var(--brand); outline-offset: 2px; }
.lesson .lt { display: flex; gap: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.lesson .num { color: var(--brand-2); font-size: 11.5px; padding-top: 2px; }
.latest-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.lv { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; color: var(--paper); cursor: pointer; font-size: 13px; font-weight: 600; }
.aulas-cta { max-width: none; }
#pl-done[aria-pressed="true"] { color: var(--up); border-color: rgba(34,211,126,.45); background: rgba(34,211,126,.08); }

/* ===== Abertura em 60 s · Termômetro · Destaques · Alertas ===== */
.fav-btns { display: flex; flex-direction: column; gap: 6px; align-self: center; }
.fav-btns .icon-btn { position: relative; }
.badge-n { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.brief-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1280px) { .brief-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .brief-grid .brief { grid-column: 1 / -1; } }
@media (max-width: 760px) { .brief-grid { grid-template-columns: 1fr; } }
.brief { border-color: var(--brand-line); background: radial-gradient(120% 120% at 0% 0%, rgba(46,139,247,.10), transparent 55%), var(--card); }
.brief .c-title .ic, .thermo .c-title .ic { color: var(--brand-2); }
.brief-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.brief-lead { font-size: 15.5px; line-height: 1.5; color: var(--paper); }
.brief-lead b { font-weight: 700; }
.brief-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bc { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rule); background: rgba(0,0,0,.2); }
.bc .eyebrow { margin-bottom: 2px; }
.bc-r { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.bc-r span { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-r b { font-weight: 500; font-size: 12.5px; }
.brief-next { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13.5px; }
.bn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bn .cdn { margin-left: auto; color: var(--brand-2); }
@media (max-width: 560px) { .brief-cols { grid-template-columns: 1fr; } .brief-lead { font-size: 14.5px; } }
.th-body { padding: 10px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#th-gauge { width: 100%; max-width: 260px; }
.th-label { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -6px; }
.th-label strong { font-size: 17px; }
.th-parts { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; }
.th-parts li { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: 10px; align-items: center; padding: 5px 2px; border-top: 1px solid rgba(26,31,35,.7); font-size: 12.5px; }
.th-parts li span:first-child { color: var(--mute); }
.th-parts b { font-weight: 500; font-size: 12px; }
.th-parts .tag { justify-self: end; font-family: var(--display); font-size: 7px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 6px 2px; border-radius: 999px; border: 1px solid var(--rule-2); }
.th-parts .tag.up { color: var(--up); border-color: rgba(34,211,126,.4); } .th-parts .tag.down { color: var(--down); border-color: rgba(255,92,106,.4); } .th-parts .tag.flat { color: var(--dim); }
.mv-list { list-style: none; margin: 0; padding: 6px 0; }
.mv-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(40px, 1fr) auto; gap: 12px; align-items: center; padding: 7px 14px; }
.mv-n { display: flex; flex-direction: column; min-width: 0; }
.mv-n b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-n small { font-size: 11px; color: var(--dim); }
.mv-bar { height: 6px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.mv-bar i { display: block; height: 100%; border-radius: 4px; }
.mv-bar i.up { background: var(--up); } .mv-bar i.down { background: var(--down); } .mv-bar i.flat { background: var(--dim); }
.mv-list .mono { font-size: 12.5px; font-weight: 500; min-width: 64px; text-align: right; }
.q-tbl tbody tr { cursor: pointer; }
.al-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 640px) { .al-form { grid-template-columns: 1fr 1fr; } .al-form .field:first-child { grid-column: 1 / -1; } .al-form .btn { grid-column: 1 / -1; } }
.al-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.al-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--rule); font-size: 13.5px; }
.al-list li.fired { opacity: .6; }
.al-ind { padding-top: 6px; }
.fav-list { min-width: 0; }
@media (max-width: 760px) { .user #user-name { display: none; } .tb-nav { gap: 0; } .tb-nav a { padding: 7px 9px; font-size: 13px; } .tb-in { gap: 10px; } }
@media (max-width: 380px) { .tb-nav a { padding: 6px 7px; font-size: 12.5px; } }
@media (max-width: 980px) { .cta-sala { display: none !important; } .user #user-name { display: none; } }

.brief-news { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--rule); }
.brief-news .eyebrow { margin-bottom: 4px; }
.brief-news a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--paper); font-size: 13.5px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(26,31,35,.6); }
.brief-news a:last-child { border-bottom: 0; }
.brief-news a:hover span { color: var(--brand-hi); }
.brief-news time { font-size: 11.5px; color: var(--brand-2); font-weight: 400; }
.brief-news span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-news small { font-size: 11px; color: var(--dim); font-weight: 400; }
@media (max-width: 560px) { .brief-news a { grid-template-columns: 40px minmax(0, 1fr); } .brief-news small { display: none; } .brief-news span { white-space: normal; } }
.lesson .th, .lv .th { background: linear-gradient(135deg, #0F1A28, #0B0F14); }
.player { scroll-margin-top: 76px; }

.lv-all .th { display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 40%, rgba(46,139,247,.25), transparent 70%), #0B0F14; }
.lv-play { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }

/* ===== Painel montável ===== */
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -2px; }
.dash-hint { font-size: 12px; }
.dash-actions { display: flex; gap: 8px; align-items: center; }
.dd { position: relative; }
.dd .badge-n { position: static; margin-left: 2px; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 270px; max-height: 70vh; overflow-y: auto; padding: 12px; border-radius: 12px; border: 1px solid var(--rule-2); background: #0B0E12; box-shadow: 0 20px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 2px; }
.dd-menu .eyebrow { margin-bottom: 6px; }
.dd-menu label { display: flex; gap: 9px; align-items: center; font-size: 13.5px; padding: 6px 4px; border-radius: 7px; cursor: pointer; }
.dd-menu label:hover { background: var(--card-2); }
.dd-menu input { accent-color: var(--brand); }
.w-x { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--faint); cursor: pointer; padding: 0; }
.w-x .ic { width: 14px; height: 14px; }
.w-x:hover { color: var(--down); border-color: rgba(255,92,106,.35); background: rgba(255,92,106,.06); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* modo grade (computador) */
body.dash-grid .dash { margin: 0 -6px; }
body.dash-grid .grid-stack-item-content { overflow: visible; }
body.dash-grid .dash-in > .card { height: 100%; }
body.dash-grid .card { display: flex; flex-direction: column; }
body.dash-grid .w-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
body.dash-grid .news { max-height: none; grid-row: auto; }
body.dash-grid .cal-wrap { max-height: none; }
body.dash-grid .c-head { cursor: grab; user-select: none; }
body.dash-grid .c-head:active { cursor: grabbing; }
body.dash-grid .map-card .tv-widget { flex: 1 1 auto; height: auto; min-height: 0; }
body.dash-grid .tv-card .tv-frame { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
body.dash-grid .plan-card { overflow: auto; }
body.dash-grid .plan-top { cursor: grab; }
body.dash-grid .mclock { align-items: start; }
body.dash-grid .clock-card #dial { max-width: 300px; margin: 0 auto; }
.grid-stack > .grid-stack-placeholder > .placeholder-content { border: 1.5px dashed var(--brand); background: rgba(46,139,247,.07); border-radius: 14px; }
.grid-stack-item.ui-draggable-dragging > .grid-stack-item-content > .card, .grid-stack-item.ui-resizable-resizing > .grid-stack-item-content > .card { border-color: var(--brand); box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px var(--brand-line); }
.grid-stack-item > .ui-resizable-se { background: none !important; width: 18px !important; height: 18px !important; right: 9px !important; bottom: 9px !important; transform: none !important; cursor: nwse-resize; opacity: 0; transition: opacity .15s; }
.grid-stack-item > .ui-resizable-se::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 9px; height: 9px; border-right: 2px solid var(--brand-hi); border-bottom: 2px solid var(--brand-hi); border-radius: 0 0 3px 0; }
.grid-stack-item:hover > .ui-resizable-se { opacity: 1; }
.grid-stack-item > .ui-resizable-e, .grid-stack-item > .ui-resizable-s { background: none !important; }

/* modo empilhado (celular) */
body.dash-flow .dash { display: flex; flex-direction: column; gap: 12px; }
body.dash-flow .dash-hint { display: none; }
body.dash-flow .news-list { max-height: 520px; }
body.dash-flow .map-card .tv-widget { height: 420px; }
body.dash-flow .cal-wrap { max-height: 430px; }
body.dash-flow .dash-bar { justify-content: flex-end; }

.about-line { font-size: 12px; text-align: center; padding: 6px 0 0; max-width: 980px; margin: 0 auto; line-height: 1.6; }

/* ===== Favoritos (revisão): número em cima à esquerda, gráfico embaixo sem sobrepor ===== */
.fav { display: flex; flex-direction: column; gap: 0; padding: 9px 12px 0; min-width: 172px; }
.fav .f-l { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.fav .f-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 3px; }
.fav .f-p { font-family: var(--mono); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fav .f-c { font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 2px 6px; border-radius: 6px; line-height: 1.2; text-align: right; }
.fav .f-c.up { background: rgba(34,211,126,.12); } .fav .f-c.down { background: rgba(255,92,106,.12); } .fav .f-c.flat { background: rgba(255,255,255,.05); }
.fav .f-sp { display: block; height: 26px; margin: 6px -12px 0; }
.fav .f-sp svg.spark { position: static; width: 100%; height: 26px; opacity: .9; }
.fav.clock { padding-bottom: 9px; justify-content: center; }

/* ===== Gráfico: faixa de cotações nossa, escura ===== */
.tape { height: 44px; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--card); position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tape-in { display: flex; gap: 28px; align-items: center; height: 100%; width: max-content; padding-left: 20px; animation: tape 60s linear infinite; }
.tape:hover .tape-in { animation-play-state: paused; }
.tape-i { display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap; font-size: 13px; }
.tape-i b { font-weight: 700; color: var(--mute); }
.tape-i .mono { font-weight: 500; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-in { animation: none; } .tape { overflow-x: auto; } }
#th-gauge { flex: 0 0 auto; width: 100%; max-width: 240px; height: auto; aspect-ratio: 220 / 130; }
.th-body > * { flex-shrink: 0; }
.dial-wrap svg { flex-shrink: 0; }
.fav { align-items: stretch; text-align: left; }
.fav .f-l { text-align: left; }
.mv-list li { padding-block: 5px; }
