/* live v111; ticker ny radar gray assets */
:root {
  --bg: #080b10;
  --panel: #10151c;
  --panel-2: #141a22;
  --line: rgba(148, 163, 184, .14);
  --text: #e8edf4;
  --muted: #8b98a8;
  --buy: #3dba74;
  --sell: #e35d5d;
  --neutral: #c9a227;
  --accent: #3d9a8c;
  --blue: #3d9a8c;
  --radius: 8px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html {
  overflow-x: clip;
  max-width: 100%;
}
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(61, 154, 140, .08), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(148, 163, 184, .05), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

.tg-shell {
  margin: 0 auto;
  max-width: 1480px;
  min-width: 0;
  padding: 18px max(16px, env(safe-area-inset-right)) 36px max(16px, env(safe-area-inset-left));
  width: 100%;
}

.tg-appbar {
  display: none;
}

.tg-top {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.tg-chrome {
  display: none;
}

.tg-site-nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 0 0 10px;
}

.tg-site-nav-logo {
  flex: 0 0 auto;
  margin: 0;
  max-width: 118px;
}

.tg-home-logo img,
.tg-site-nav-logo img {
  background: transparent;
  display: block;
  height: auto;
  max-height: 36px;
  object-fit: contain;
  width: auto;
}

.tg-site-nav-links {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  min-width: 0;
}

.tg-site-nav-links a {
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  padding: 6px 8px;
  text-decoration: none;
  white-space: nowrap;
}

.tg-site-nav-links a:hover {
  color: var(--text);
}

.tg-site-nav-links a.on {
  box-shadow: inset 0 -1px 0 rgba(61, 154, 140, .85);
  color: var(--text);
  font-weight: 650;
}

.tg-site-nav-links a.tg-nav-tmc {
  color: #c9a227;
}

.tg-site-nav-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.tg-nav-login {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.tg-nav-login:hover { color: var(--text); }

.tg-nav-signup {
  background: #c9a227;
  border-radius: 6px;
  color: #14110a;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  text-decoration: none;
}

.tg-nav-signup:hover {
  filter: brightness(1.05);
}

.tg-nav-course {
  color: #f4d58d;
  font-weight: 700;
  text-decoration: none;
}

.tg-nav-course:hover {
  color: #fff3c4;
}

.tg-nav-course-pill {
  background: linear-gradient(135deg, #8a6a2a 0%, #d7ad58 45%, #f4d58d 100%);
  border-radius: 6px;
  color: #14110a !important;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  text-decoration: none;
}

.tg-nav-course-pill:hover {
  filter: brightness(1.06);
  color: #14110a !important;
}

.tg-menu-toggle {
  align-items: center;
  background: rgba(148, 163, 184, .1);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
}

.tg-menu-bars {
  display: block;
  height: 12px;
  position: relative;
  width: 16px;
}

.tg-menu-bars::before,
.tg-menu-bars::after {
  background: currentColor;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 16px;
}

.tg-menu-bars::before {
  box-shadow: 0 5px 0 currentColor;
  top: 0;
}

.tg-menu-bars::after { bottom: 0; }

body.tg-menu-open .tg-menu-bars::before {
  box-shadow: none;
  top: 5px;
  transform: rotate(45deg);
}

body.tg-menu-open .tg-menu-bars::after {
  bottom: 5px;
  transform: rotate(-45deg);
}

.tg-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.tg-home-logo {
  display: inline-flex;
  margin: 0 0 12px;
  max-width: 260px;
  text-decoration: none;
}

.tg-home-logo img {
  display: block;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  width: min(240px, 100%);
}

.tg-home-logo:hover {
  opacity: .88;
}

.tg-home-logo-bar {
  flex: 0 0 auto;
  margin: 0;
  max-width: 72px;
}

.tg-home-logo-bar img {
  max-height: 44px;
  width: auto;
}

.tg-top h1 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 8px;
}

.tg-sub {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
}

.tg-top-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
}

.tg-top-actions > .tg-btn,
.tg-top-actions > .tg-live,
.tg-top-actions > .tg-alert-toggle {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.tg-top-actions .tg-btn-compact {
  line-height: 1.25;
  white-space: normal;
}

.tg-alert-toggle {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  user-select: none;
}

.tg-top-actions .tg-alert-toggle {
  background: rgba(148, 163, 184, .08);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  white-space: nowrap;
}

.tg-alert-toggle input {
  accent-color: var(--blue);
  height: 16px;
  width: 16px;
}

.tg-voice-unlock {
  align-items: center;
  background: rgba(244, 213, 141, .12);
  border: 1px solid rgba(244, 213, 141, .4);
  border-radius: 14px;
  color: #f4d58d;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.tg-voice-unlock[hidden] {
  display: none !important;
}

.tg-voice-unlock p {
  flex: 1 1 240px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.tg-voice-unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tg-alert-banner {
  animation: tg-flash 1.2s ease;
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .35);
  border-radius: 12px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.tg-alert-banner.compra {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .35);
  color: #86efac;
}

.tg-alert-banner.venda {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .35);
  color: #fca5a5;
}

@keyframes tg-flash {
  0% { transform: scale(.98); opacity: .4; }
  100% { transform: scale(1); opacity: 1; }
}

.tg-asset-signal {
  border-radius: 999px;
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-top: 4px;
  padding: 2px 8px;
}

.tg-asset-signal.compra { background: rgba(34, 197, 94, .18); color: #86efac; }
.tg-asset-signal.venda { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.tg-asset-signal.neutro { background: rgba(245, 158, 11, .18); color: #fcd34d; }

.tg-live {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 12px;
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.tg-live.error {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .35);
  color: #fca5a5;
}

.tg-donate {
  margin-top: 8px;
}

.tg-donate-pix {
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(59, 130, 246, .35);
  border-radius: 999px;
  color: #bfdbfe;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-left: 6px;
  padding: 4px 10px;
}

.tg-donate-pix:hover {
  background: rgba(59, 130, 246, .24);
}

.tg-btn {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  color: #04110f;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
}

.tg-btn-compact {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
}

.tg-btn-compact:hover {
  border-color: rgba(61, 154, 140, .45);
  color: #d7f3ee;
}

.tg-picker {
  margin-bottom: 18px;
}

.tg-picker-label,
.tg-step {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tg-picker-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tg-picker-head .tg-picker-label {
  margin-bottom: 0;
}

.tg-asset-search-btn {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.tg-asset-search-ico {
  font-size: 14px;
  line-height: 1;
}

.tg-asset-search-tabs {
  display: flex;
  gap: 6px;
}

.tg-asset-search-tab {
  background: rgba(2, 6, 23, .45);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.tg-asset-search-tab.on {
  background: rgba(61, 154, 140, .14);
  border-color: rgba(61, 154, 140, .5);
  color: #b7ebe2;
}

.tg-asset-search {
  background: rgba(15, 23, 42, .72);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.tg-asset-search[hidden] {
  display: none !important;
}

.tg-asset-search input[type="search"] {
  background: rgba(2, 6, 23, .55);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
  width: 100%;
}

.tg-asset-search input[type="search"]:focus {
  border-color: rgba(59, 130, 246, .55);
  outline: none;
}

.tg-asset-search-status {
  color: var(--muted);
  font-size: 12px;
  min-height: 1.2em;
}

.tg-asset-search-results {
  display: grid;
  gap: 6px;
  max-height: min(42vh, 320px);
  overflow: auto;
}

.tg-asset-search-item {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.tg-asset-search-item:hover,
.tg-asset-search-item:focus-visible {
  border-color: rgba(59, 130, 246, .55);
  outline: none;
}

.tg-asset-search-item strong {
  font-size: 14px;
}

.tg-asset-search-item small {
  color: var(--muted);
  font-size: 11px;
}

.tg-asset-recent {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tg-asset-recent-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tg-sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.tg-asset-grid {
  display: grid;
  gap: 14px;
}

.tg-asset-group {
  display: grid;
  gap: 8px;
}

.tg-asset-group-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tg-asset-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.tg-picker-timeframes {
  margin-bottom: 18px;
}

.tg-timeframe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tg-timeframe {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
}

.tg-timeframe.active {
  background: rgba(61, 154, 140, .14);
  border-color: rgba(61, 154, 140, .5);
  color: #b7ebe2;
}

.tg-asset {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: left;
}

.tg-asset:hover {
  border-color: rgba(61, 154, 140, .4);
}

.tg-asset.active {
  background: rgba(61, 154, 140, .12);
  border-color: rgba(61, 154, 140, .5);
  box-shadow: none;
}

.tg-asset strong { font-size: 16px; }
.tg-asset small { color: var(--muted); }

.tg-main {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 20px;
}

.tg-chart-panel,
.tg-vote-panel,
.tg-votes-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.tg-chart-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
}

.tg-chart-panel.tg-fs-active,
.tg-chart-panel:fullscreen,
.tg-chart-panel:-webkit-full-screen {
  background: #020617;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  padding: 8px 10px 10px;
  width: 100%;
  width: 100vw;
}

.tg-chart-panel.tg-fs-active {
  border-radius: 0;
  inset: 0;
  position: fixed;
  z-index: 120;
}

body.tg-fs-lock {
  overflow: hidden;
}

.tg-chart-panel.tg-fs-active .tg-chart-head,
.tg-chart-panel:fullscreen .tg-chart-head,
.tg-chart-panel:-webkit-full-screen .tg-chart-head {
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 12px;
  margin-bottom: 4px;
}

.tg-chart-panel.tg-fs-active .tg-chart-head > div:first-child,
.tg-chart-panel:fullscreen .tg-chart-head > div:first-child,
.tg-chart-panel:-webkit-full-screen .tg-chart-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.tg-chart-panel.tg-fs-active .tg-chart-head h2,
.tg-chart-panel:fullscreen .tg-chart-head h2,
.tg-chart-panel:-webkit-full-screen .tg-chart-head h2 {
  font-size: 16px;
  line-height: 1.15;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-chart-panel.tg-fs-active .tg-chart-head > div:first-child > p,
.tg-chart-panel:fullscreen .tg-chart-head > div:first-child > p,
.tg-chart-panel:-webkit-full-screen .tg-chart-head > div:first-child > p {
  display: none;
}

.tg-chart-panel.tg-fs-active .tg-chart-head-actions,
.tg-chart-panel:fullscreen .tg-chart-head-actions,
.tg-chart-panel:-webkit-full-screen .tg-chart-head-actions {
  align-items: center;
  flex: 0 0 auto;
  flex-direction: row;
  gap: 8px;
}

.tg-chart-panel.tg-fs-active .tg-price-box,
.tg-chart-panel:fullscreen .tg-price-box,
.tg-chart-panel:-webkit-full-screen .tg-price-box {
  gap: 0;
  min-width: 0;
  padding: 4px 8px;
}

.tg-chart-panel.tg-fs-active .tg-price-box span,
.tg-chart-panel:fullscreen .tg-price-box span,
.tg-chart-panel:-webkit-full-screen .tg-price-box span {
  display: none;
}

.tg-chart-panel.tg-fs-active .tg-price-box strong,
.tg-chart-panel:fullscreen .tg-price-box strong,
.tg-chart-panel:-webkit-full-screen .tg-price-box strong {
  font-size: 15px;
  line-height: 1.1;
}

.tg-chart-panel.tg-fs-active .tg-price-box small,
.tg-chart-panel:fullscreen .tg-price-box small,
.tg-chart-panel:-webkit-full-screen .tg-price-box small {
  font-size: 10px;
}

.tg-chart-panel.tg-fs-active .tg-chart-head-tools,
.tg-chart-panel:fullscreen .tg-chart-head-tools,
.tg-chart-panel:-webkit-full-screen .tg-chart-head-tools {
  gap: 6px;
}

.tg-chart-panel.tg-fs-active .tg-chart-head-tools .tg-btn,
.tg-chart-panel:fullscreen .tg-chart-head-tools .tg-btn,
.tg-chart-panel:-webkit-full-screen .tg-chart-head-tools .tg-btn,
.tg-chart-panel.tg-fs-active .tg-chart-grid-toggle,
.tg-chart-panel:fullscreen .tg-chart-grid-toggle,
.tg-chart-panel:-webkit-full-screen .tg-chart-grid-toggle {
  font-size: 11px;
  padding: 6px 9px;
}

.tg-chart-panel.tg-fs-active .tg-chart-stack,
.tg-chart-panel:fullscreen .tg-chart-stack,
.tg-chart-panel:-webkit-full-screen .tg-chart-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

.tg-chart-panel.tg-fs-active .tg-chart-workbench,
.tg-chart-panel:fullscreen .tg-chart-workbench,
.tg-chart-panel:-webkit-full-screen .tg-chart-workbench {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.tg-chart-panel.tg-fs-active .tg-chart-tools,
.tg-chart-panel:fullscreen .tg-chart-tools,
.tg-chart-panel:-webkit-full-screen .tg-chart-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.tg-chart-panel.tg-fs-active .tg-chart-tool-panels,
.tg-chart-panel:fullscreen .tg-chart-tool-panels,
.tg-chart-panel:-webkit-full-screen .tg-chart-tool-panels {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.tg-chart-panel.tg-fs-active .tg-chart-stage,
.tg-chart-panel:fullscreen .tg-chart-stage,
.tg-chart-panel:-webkit-full-screen .tg-chart-stage {
  display: grid;
  gap: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.tg-chart-panel.tg-fs-active .tg-chart-canvas-wrap,
.tg-chart-panel:fullscreen .tg-chart-canvas-wrap,
.tg-chart-panel:-webkit-full-screen .tg-chart-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.tg-chart-panel.tg-fs-active .tg-chart-main,
.tg-chart-panel:fullscreen .tg-chart-main,
.tg-chart-panel:-webkit-full-screen .tg-chart-main {
  height: auto !important;
  inset: 0;
  max-height: none;
  min-height: 0 !important;
  position: absolute;
}

.tg-chart-panel.tg-fs-active .tg-chart-rsi-wrap,
.tg-chart-panel:fullscreen .tg-chart-rsi-wrap,
.tg-chart-panel:-webkit-full-screen .tg-chart-rsi-wrap {
  flex: 0 0 auto;
}

.tg-chart-panel.tg-fs-active .tg-chart-rsi-wrap:not([hidden]),
.tg-chart-panel:fullscreen .tg-chart-rsi-wrap:not([hidden]),
.tg-chart-panel:-webkit-full-screen .tg-chart-rsi-wrap:not([hidden]) {
  height: 128px;
  max-height: 128px;
  min-height: 128px;
}

.tg-chart-panel.tg-fs-active .tg-chart-rsi,
.tg-chart-panel:fullscreen .tg-chart-rsi,
.tg-chart-panel:-webkit-full-screen .tg-chart-rsi {
  height: 128px !important;
  max-height: 128px;
  min-height: 128px !important;
}

.tg-fs-toolbar {
  display: none;
}

.tg-chart-panel.tg-fs-active .tg-fs-toolbar,
.tg-chart-panel:fullscreen .tg-fs-toolbar,
.tg-chart-panel:-webkit-full-screen .tg-fs-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 2px;
}

.tg-chart-panel.tg-fs-active .tg-fs-toolbar[hidden],
.tg-chart-panel:fullscreen .tg-fs-toolbar[hidden],
.tg-chart-panel:-webkit-full-screen .tg-fs-toolbar[hidden] {
  display: none !important;
}

.tg-fs-timeframes {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.tg-fs-price-tools {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
}

.tg-fs-price-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tg-fs-price-tools .tg-btn {
  font-size: 12px;
  min-width: 34px;
  padding: 6px 9px;
}

.tg-chart-panel.tg-fs-active .tg-fs-timeframes .tg-timeframe,
.tg-chart-panel:fullscreen .tg-fs-timeframes .tg-timeframe,
.tg-chart-panel:-webkit-full-screen .tg-fs-timeframes .tg-timeframe {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 6px 10px;
}

.tg-chart-panel.tg-fs-active .tg-chart-canvas-wrap,
.tg-chart-panel:fullscreen .tg-chart-canvas-wrap,
.tg-chart-panel:-webkit-full-screen .tg-chart-canvas-wrap {
  /* deixa a coluna de preço mais fácil de arrastar no dedo */
  --tg-price-hit: 56px;
}

.tg-chart-panel.tg-fs-active .tg-legend-help,
.tg-chart-panel:fullscreen .tg-legend-help,
.tg-chart-panel:-webkit-full-screen .tg-legend-help,
.tg-chart-panel.tg-fs-active .tg-chart-note,
.tg-chart-panel:fullscreen .tg-chart-note,
.tg-chart-panel:-webkit-full-screen .tg-chart-note {
  display: none;
}

.tg-chart-panel.tg-fs-active .tg-chart-legend,
.tg-chart-panel:fullscreen .tg-chart-legend,
.tg-chart-panel:-webkit-full-screen .tg-chart-legend {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  max-height: none;
}

.tg-chart-panel.tg-fs-active .tg-chart-legend .tg-ind,
.tg-chart-panel:fullscreen .tg-chart-legend .tg-ind,
.tg-chart-panel:-webkit-full-screen .tg-chart-legend .tg-ind {
  width: 100%;
}
.tg-chart-panel.tg-fs-active .tg-ind-ma-row .tg-ind,
.tg-chart-panel:fullscreen .tg-ind-ma-row .tg-ind,
.tg-chart-panel:-webkit-full-screen .tg-ind-ma-row .tg-ind {
  width: auto;
}

.tg-chart-panel.tg-fs-active .tg-mm-forecast-panel,
.tg-chart-panel:fullscreen .tg-mm-forecast-panel,
.tg-chart-panel:-webkit-full-screen .tg-mm-forecast-panel,
.tg-chart-panel.tg-fs-active .tg-tmc-panel,
.tg-chart-panel:fullscreen .tg-tmc-panel,
.tg-chart-panel:-webkit-full-screen .tg-tmc-panel,
.tg-chart-panel.tg-fs-active .tg-smc-panel,
.tg-chart-panel:fullscreen .tg-smc-panel,
.tg-chart-panel:-webkit-full-screen .tg-smc-panel,
.tg-chart-panel.tg-fs-active .tg-sniper-panel,
.tg-chart-panel:fullscreen .tg-sniper-panel,
.tg-chart-panel:-webkit-full-screen .tg-sniper-panel,
.tg-chart-panel.tg-fs-active .tg-true-tb-panel,
.tg-chart-panel:fullscreen .tg-true-tb-panel,
.tg-chart-panel:-webkit-full-screen .tg-true-tb-panel {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 8px 10px;
}

@media (max-width: 900px) {
  .tg-chart-panel.tg-fs-active .tg-chart-workbench,
  .tg-chart-panel:fullscreen .tg-chart-workbench,
  .tg-chart-panel:-webkit-full-screen .tg-chart-workbench {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tg-chart-panel.tg-fs-active .tg-chart-tools,
  .tg-chart-panel:fullscreen .tg-chart-tools,
  .tg-chart-panel:-webkit-full-screen .tg-chart-tools {
    max-height: 30dvh;
  }

  .tg-chart-panel.tg-fs-active .tg-chart-legend,
  .tg-chart-panel:fullscreen .tg-chart-legend,
  .tg-chart-panel:-webkit-full-screen .tg-chart-legend {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tg-chart-panel.tg-fs-active .tg-chart-legend .tg-ind,
  .tg-chart-panel:fullscreen .tg-chart-legend .tg-ind,
  .tg-chart-panel:-webkit-full-screen .tg-chart-legend .tg-ind {
    width: auto;
  }
}

@media (max-width: 720px) {
  .tg-chart-panel.tg-fs-active .tg-chart-head,
  .tg-chart-panel:fullscreen .tg-chart-head,
  .tg-chart-panel:-webkit-full-screen .tg-chart-head {
    flex-wrap: wrap;
  }

  .tg-chart-panel.tg-fs-active .tg-chart-head-actions,
  .tg-chart-panel:fullscreen .tg-chart-head-actions,
  .tg-chart-panel:-webkit-full-screen .tg-chart-head-actions {
    width: 100%;
  }

  .tg-chart-panel.tg-fs-active .tg-chart-tools,
  .tg-chart-panel:fullscreen .tg-chart-tools,
  .tg-chart-panel:-webkit-full-screen .tg-chart-tools {
    max-height: 26dvh;
  }
}

.tg-chart-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tg-chart-head-left {
  display: grid;
  flex: 1 1 320px;
  gap: 8px;
  min-width: 0;
}

.tg-chart-assetbar {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.tg-chart-assetbar .tg-asset-search-btn {
  flex: 0 0 auto;
  margin-top: 18px;
}

.tg-asset-grid-inline {
  display: flex;
  flex: 1 1 240px;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.tg-asset-grid-inline .tg-asset-group {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.tg-asset-grid-inline .tg-asset-group-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.tg-asset-grid-inline .tg-asset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  grid-template-columns: none;
}

.tg-asset-grid-inline .tg-asset {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  padding: 6px 9px;
}

.tg-asset-grid-inline .tg-asset strong {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
}

.tg-asset-grid-inline .tg-asset small {
  display: none;
}

.tg-asset-grid-inline .tg-asset-signal {
  font-size: 9px;
  padding: 1px 5px;
}

.tg-chart-identity h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
  margin: 0 0 2px;
}

.tg-chart-identity p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.tg-chart-tfbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 8px;
}

.tg-chart-tfbar-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tg-voice-log {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(244, 213, 141, .08), rgba(15, 23, 42, .35));
  border: 1px solid rgba(201, 162, 39, .38);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex: 1 1 220px;
  gap: 10px;
  max-width: min(520px, 100%);
  min-height: 38px;
  min-width: 180px;
  padding: 6px 12px;
  position: relative;
  transition: border-color .2s ease, background .2s ease;
}

.tg-voice-log:hover,
.tg-voice-log.is-open {
  border-color: rgba(244, 213, 141, .65);
  background:
    linear-gradient(180deg, rgba(244, 213, 141, .14), rgba(15, 23, 42, .45));
}

.tg-voice-log-kicker {
  color: rgba(244, 213, 141, .72);
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tg-voice-log-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tg-voice-log-time {
  color: rgba(244, 213, 141, .78);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}

.tg-voice-log-text {
  background: linear-gradient(90deg, #f8e7b0 0%, #d4af37 45%, #f4d58d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #e8c76b;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.15;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-text-fill-color: transparent;
}

.tg-voice-log-text.is-empty {
  background: none;
  color: rgba(212, 175, 55, .55);
  font-style: normal;
  -webkit-text-fill-color: rgba(212, 175, 55, .55);
}

.tg-voice-log-stack {
  background: rgba(8, 12, 18, .96);
  border: 1px solid rgba(201, 162, 39, .4);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  display: grid;
  gap: 8px;
  left: 0;
  padding: 10px 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
}

.tg-voice-log-stack[hidden] {
  display: none !important;
}

.tg-voice-log-item {
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
}

.tg-voice-log-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tg-voice-log-item time {
  color: rgba(244, 213, 141, .7);
  font-family: var(--mono);
  font-size: 10px;
}

.tg-voice-log-item p {
  color: #f4d58d;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

@media (max-width: 720px) {
  .tg-voice-log {
    flex-basis: 100%;
    max-width: none;
    order: 3;
  }
}

.tg-chart-head-actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tg-chart-head-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tg-chart-grid-toggle {
  align-items: center;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  justify-content: center;
  padding: 8px 12px;
  user-select: none;
}

.tg-chart-grid-toggle input {
  accent-color: var(--accent);
  margin: 0;
}

.tg-chart-grid-toggle.off {
  opacity: .7;
}

.tg-chart-head h2 { margin: 0 0 4px; }
.tg-chart-head p { color: var(--muted); margin: 0; }

.tg-price-box {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 2px;
  min-width: 140px;
  padding: 10px 12px;
  text-align: right;
}

.tg-price-box span { color: var(--muted); font-size: 12px; }
.tg-price-box strong { font-size: 22px; }
.tg-price-box small.up { color: var(--buy); }
.tg-price-box small.down { color: var(--sell); }
.tg-price-box .tg-day-change {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.tg-price-box .tg-day-change.up { color: var(--buy); }
.tg-price-box .tg-day-change.down { color: var(--sell); }

.tg-candle-clock {
  border-top: 1px solid rgba(148, 163, 184, .18);
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  text-align: left;
}
.tg-candle-clock-row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.tg-candle-clock-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tg-candle-clock strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.tg-candle-clock.bull strong { color: var(--buy); }
.tg-candle-clock.bear strong { color: var(--sell); }
.tg-candle-clock.closing strong {
  animation: tg-candle-pulse 1s ease-in-out infinite;
}
.tg-candle-clock-track {
  background: rgba(148, 163, 184, .18);
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
}
.tg-candle-clock-track i {
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  display: block;
  height: 100%;
  width: 0;
  transition: width .35s linear;
}
.tg-candle-clock.closing .tg-candle-clock-track i {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.tg-candle-clock-state {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.35;
}
@keyframes tg-candle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.tg-chart-period-toggle {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  user-select: none;
}
.tg-chart-period-toggle.off { opacity: .55; }
.tg-chart-period-toggle input { accent-color: #38bdf8; }

.tg-period-sep-overlay {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}
.tg-period-sep {
  background: rgba(148, 163, 184, .28);
  bottom: 0;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
}
.tg-period-sep.day {
  background: linear-gradient(180deg, rgba(56, 189, 248, .55), rgba(56, 189, 248, .12));
  width: 1px;
}
.tg-period-sep.week {
  background: linear-gradient(180deg, rgba(251, 191, 36, .7), rgba(251, 191, 36, .15));
  width: 2px;
}

.tg-coach {
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(30, 41, 59, .82));
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .35);
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  pointer-events: auto;
}
.tg-coach-rail {
  background: linear-gradient(160deg, rgba(15, 23, 42, .72), rgba(30, 41, 59, .55));
  border-radius: 10px;
  box-shadow: none;
  margin: 0 0 8px;
  max-width: none;
  position: static;
  width: 100%;
  z-index: auto;
}
.tg-coach.compra { border-color: rgba(34, 197, 94, .45); }
.tg-coach.venda { border-color: rgba(239, 68, 68, .45); }
.tg-coach.aligned { box-shadow: 0 0 0 1px rgba(250, 204, 21, .35); }
.tg-coach.hot { background: linear-gradient(135deg, rgba(30, 27, 75, .9), rgba(15, 23, 42, .88)); }
.tg-coach.soon { border-color: rgba(251, 191, 36, .5); }
.tg-coach.lateral { border-color: rgba(250, 204, 21, .55); }
.tg-coach-action.lateral { color: #fde68a; }
.tg-coach-main {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
}
.tg-coach-rail .tg-coach-main {
  grid-template-columns: 1fr;
  gap: 8px;
}
.tg-coach-rail .tg-coach-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  text-align: left;
}
.tg-coach-kicker {
  color: #94a3b8;
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tg-coach-side strong {
  display: block;
  font-size: 22px;
  letter-spacing: .04em;
  line-height: 1.1;
}
.tg-coach.compra .tg-coach-side strong { color: #4ade80; }
.tg-coach.venda .tg-coach-side strong { color: #f87171; }
.tg-coach.neutro .tg-coach-side strong { color: #e2e8f0; }
.tg-coach-thermo { min-width: 0; }
.tg-coach-thermo-track {
  background: rgba(148, 163, 184, .18);
  border-radius: 999px;
  display: flex;
  height: 10px;
  overflow: hidden;
}
.tg-coach-thermo-track i.buy { background: linear-gradient(90deg, #16a34a, #4ade80); display: block; height: 100%; }
.tg-coach-thermo-track i.sell { background: linear-gradient(90deg, #f87171, #ef4444); display: block; height: 100%; }
.tg-coach-thermo-labels {
  color: #94a3b8;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-top: 4px;
}
.tg-coach-meta {
  display: grid;
  gap: 4px;
  text-align: right;
}
.tg-coach-score {
  background: rgba(148, 163, 184, .12);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}
.tg-coach-score.q3, .tg-coach-score.q4 { color: #86efac; }
.tg-coach-score.q0, .tg-coach-score.q1 { color: #fca5a5; }
.tg-coach-zone {
  color: #cbd5e1;
  font-size: 11px;
  max-width: 120px;
}
.tg-coach-action {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.tg-coach-action.entrar_compra { color: #86efac; }
.tg-coach-action.entrar_venda { color: #fca5a5; }
.tg-coach-action.sair_compra,
.tg-coach-action.sair_venda { color: #7dd3fc; }
.tg-coach-hilo {
  color: #e879f9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.tg-coach-hilo.compra { color: #86efac; }
.tg-coach-hilo.venda { color: #f9a8d4; }
.tg-coach-fomo {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto auto 1fr;
  font-size: 11px;
  color: #fbbf24;
}
.tg-coach-fomo-track {
  background: rgba(251, 191, 36, .2);
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
}
.tg-coach-fomo-track i {
  background: #f59e0b;
  display: block;
  height: 100%;
  width: 0;
}
.tg-coach-pos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tg-coach-pos-btn {
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 999px;
  color: #cbd5e1;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  padding: 5px 10px;
}
.tg-coach-pos-btn.on {
  background: rgba(56, 189, 248, .18);
  border-color: rgba(56, 189, 248, .45);
  color: #e0f2fe;
  font-weight: 700;
}
.tg-coach-liq {
  color: #94a3b8;
  font-size: 11px;
  margin: 0;
}
@media (max-width: 900px) {
  .tg-coach-rail .tg-coach-main {
    grid-template-columns: 1fr;
  }
  .tg-coach-meta { text-align: left; }
}

.tg-studies-toolbar {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.tg-studies-bar,
.tg-studies-rail {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.tg-studies-brand {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-right: 2px;
  text-transform: uppercase;
}

.tg-studies-brand::after {
  color: #38bdf8;
  content: " · auto";
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
}

.tg-studies-tool {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  padding: 7px 8px;
  white-space: nowrap;
}

.tg-studies-tool:hover {
  border-color: rgba(125, 211, 252, 0.55);
  color: #f8fafc;
}

.tg-studies-tool.on {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.28), rgba(2, 132, 199, 0.18));
  border-color: rgba(56, 189, 248, 0.7);
  color: #e0f2fe;
}

.tg-studies-tool.magnet.on {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.3), rgba(126, 34, 206, 0.18));
  border-color: rgba(192, 132, 252, 0.7);
  color: #f3e8ff;
}

.tg-studies-tool.ghost {
  background: transparent;
  color: #94a3b8;
}

.tg-studies-tool.danger:hover {
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

.tg-studies-overlay {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

.tg-chart-canvas-wrap.tg-studies-drawing .tg-studies-overlay {
  pointer-events: auto;
  cursor: crosshair;
}

.tg-studies-svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.tg-study-line {
  fill: none;
  stroke: #38bdf8;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.tg-study-hline {
  fill: none;
  stroke: #fbbf24;
  stroke-dasharray: 5 4;
  stroke-width: 1.35;
}

.tg-study-dot {
  fill: #38bdf8;
  stroke: #0f172a;
  stroke-width: 1;
}

.tg-study-fib {
  fill: none;
  stroke: rgba(167, 139, 250, 0.75);
  stroke-width: 1;
}

.tg-study-fib.key {
  stroke: #c084fc;
  stroke-width: 1.45;
}

.tg-study-fib-box {
  fill: rgba(139, 92, 246, 0.06);
  stroke: rgba(167, 139, 250, 0.25);
  stroke-width: 1;
}

.tg-study-risk-stop {
  fill: rgba(239, 68, 68, 0.22);
  stroke: rgba(248, 113, 113, 0.55);
  stroke-width: 1;
}

.tg-study-risk-target {
  fill: rgba(34, 197, 94, 0.2);
  stroke: rgba(74, 222, 128, 0.55);
  stroke-width: 1;
}

.tg-study-risk-entry {
  stroke: #e2e8f0;
  stroke-width: 1.5;
}

.tg-study-zone {
  fill: rgba(56, 189, 248, 0.1);
  stroke: rgba(56, 189, 248, 0.65);
  stroke-dasharray: 4 3;
  stroke-width: 1.25;
}

.tg-study-measure {
  fill: none;
  stroke: #f472b6;
  stroke-width: 1.4;
}

.tg-study-measure-box {
  fill: rgba(244, 114, 182, 0.08);
  stroke: rgba(244, 114, 182, 0.35);
  stroke-width: 1;
}

.tg-study-label {
  fill: #cbd5e1;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 650;
  paint-order: stroke;
  stroke: rgba(2, 6, 23, 0.75);
  stroke-width: 3px;
}

.tg-study-label.accent {
  fill: #7dd3fc;
}

.tg-study-item.draft .tg-study-line,
.tg-study-item.draft .tg-study-hline,
.tg-study-item.draft .tg-study-fib,
.tg-study-item.draft .tg-study-measure {
  stroke-opacity: 0.85;
}

.tg-studies-hud {
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 2px;
  left: 0;
  min-width: 110px;
  padding: 7px 9px;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 7;
}

.tg-studies-hud strong {
  color: #7dd3fc;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tg-study-snap-ring {
  fill: rgba(56, 189, 248, 0.12);
  stroke: #38bdf8;
  stroke-width: 1.5;
}

.tg-study-snap-core {
  fill: #7dd3fc;
  stroke: #0f172a;
  stroke-width: 1;
}

.tg-study-snap-guide {
  fill: none;
  stroke: rgba(56, 189, 248, 0.35);
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.tg-candle-tip {
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  font-size: 12px;
  left: 0;
  line-height: 1.35;
  max-width: min(220px, 70%);
  min-width: 158px;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 6;
}

.tg-candle-tip[hidden] {
  display: none !important;
}

.tg-candle-tip-when {
  color: #94a3b8;
  font-size: 11px;
  margin-bottom: 6px;
}

.tg-candle-tip-grid {
  display: grid;
  gap: 3px 10px;
  grid-template-columns: auto auto;
}

.tg-candle-tip-grid span {
  color: #94a3b8;
}

.tg-candle-tip-grid strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.tg-candle-tip-grid strong.hi { color: #86efac; }
.tg-candle-tip-grid strong.lo { color: #fca5a5; }
.tg-candle-tip-grid strong.up { color: #4ade80; }
.tg-candle-tip-grid strong.dn { color: #f87171; }

.tg-chart-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  min-width: 0;
}

.tg-chart-workbench {
  align-items: stretch;
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  height: clamp(560px, calc(100svh - 80px), 900px);
  min-height: 560px;
  min-width: 0;
  overflow: hidden;
}

.tg-chart-tools {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  max-height: none;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
}

.tg-news-ticker {
  align-items: center;
  background: #07090d;
  border: 1px solid #2a3340;
  border-radius: 8px;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 40px;
  min-width: 0;
  overflow: hidden;
  padding: 6px 10px;
  width: 100%;
}

.tg-news-ticker-kicker {
  background: #b91c1c;
  border-radius: 3px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 6px;
}

.tg-news-ticker .tg-news-list {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.tg-news-marquee {
  animation: tg-news-scroll 42s linear infinite;
  display: inline-flex;
  gap: 18px;
  white-space: nowrap;
}

.tg-news-ticker:hover .tg-news-marquee {
  animation-play-state: paused;
}

@keyframes tg-news-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tg-news-chip {
  color: #e8eef6;
  font-size: 12px;
  font-weight: 650;
}

.tg-news-chip.star {
  color: #fde68a;
}

.tg-news-chip a {
  color: inherit;
  text-decoration: none;
}

.tg-news-chip a:hover {
  color: #93c5fd;
}

.tg-news-dot {
  color: #64748b;
}

.tg-news-ticker .tg-news-live {
  color: #86efac;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.tg-news-ticker .tg-news-next {
  display: none;
}

.tg-radar-toast {
  background: #111827;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  color: #f8fafc;
  max-width: 360px;
  padding: 14px 16px;
  position: fixed;
  right: 20px;
  z-index: 80;
}

.tg-radar-toast strong {
  color: #fbbf24;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.tg-radar-toast p {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.tg-radar-toast button {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.tg-news-head {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.tg-news-head strong {
  color: #e8eef6;
  font-size: 13px;
  letter-spacing: .02em;
}

.tg-news-live {
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.tg-news-sub {
  color: #9db0c4;
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
}

.tg-news-tabs {
  display: flex;
  gap: 6px;
}

.tg-news-tabs button {
  background: #1c2430;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #dbe7f3;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
}

.tg-news-tabs button.on {
  background: #14532d;
  border-color: #166534;
  color: #ecfdf5;
}

.tg-news-next {
  background: #3f1d1d;
  border: 1px solid #b91c1c;
  border-radius: 8px;
  color: #fecaca;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 9px;
}

.tg-news-next em {
  color: #fef08a;
  font-style: normal;
  font-weight: 800;
}

.tg-news-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: auto;
}

.tg-news-empty {
  color: #94a3b8;
  font-size: 12px;
  margin: 8px 0;
}

.tg-news-item {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  display: flex;
  gap: 7px;
  padding: 7px 8px;
}

.tg-news-item.star3 {
  background: rgba(127, 29, 29, .35);
  border-color: rgba(239, 68, 68, .55);
}

.tg-news-item.fresh {
  box-shadow: inset 3px 0 0 #22c55e;
}

.tg-news-item.flash {
  animation: tg-news-flash .9s ease;
}

@keyframes tg-news-flash {
  from { background: rgba(250, 204, 21, .28); }
  to { background: rgba(15, 23, 42, .72); }
}

.tg-news-stars {
  color: #facc15;
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: -1px;
  line-height: 1.2;
  padding-top: 1px;
}

.tg-news-item p {
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.35;
  margin: 0 0 3px;
}

.tg-news-item a {
  color: inherit;
  text-decoration: none;
}

.tg-news-item a:hover {
  color: #93c5fd;
}

.tg-news-item em,
.tg-news-item small {
  color: #94a3b8;
  display: block;
  font-size: 10px;
  font-style: normal;
}

.tg-news-item small b {
  color: #86efac;
}

.tg-chart-panel.tg-fs-active .tg-news-rail,
.tg-chart-panel:fullscreen .tg-news-rail,
.tg-chart-panel:-webkit-full-screen .tg-news-rail {
  display: none;
}

@media (max-width: 1180px) {
  .tg-chart-workbench {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }
}

.tg-chart-tool-panels {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

.tg-chart-stage {
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.tg-chart-stage .tg-chart-rsi-wrap {
  width: 100%;
}

.tg-chart-stage .tg-chart-canvas-wrap {
  border: 0;
  border-radius: 0;
  grid-row: 1;
  min-height: 0;
  position: relative;
}

.tg-chart-stage .tg-chart-main {
  border: 0;
  border-radius: 0;
  height: auto !important;
  inset: 0;
  max-height: none;
  min-height: 0 !important;
  position: absolute;
  width: 100%;
}
.tg-chart-stage .tg-chart-main > div,
.tg-chart-stage .tg-chart-main table,
.tg-chart-stage .tg-chart-rsi > div,
.tg-chart-stage .tg-chart-rsi table {
  height: 100% !important;
  width: 100% !important;
}

.tg-chart-stage .tg-chart {
  border: 0;
  border-radius: 0;
  min-height: 0;
}

.tg-chart-legend {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  min-height: 0;
}

.tg-chart-legend .tg-ind {
  width: 100%;
}

.tg-ind-ma-row {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}
.tg-ind-ma-row .tg-ind {
  justify-content: center;
  min-width: 0;
  padding: 4px 4px;
  width: auto;
}
.tg-ind-ma-row .tg-ind-name {
  font-size: 11px;
  letter-spacing: 0;
}
.tg-ind-ma-row .tg-ind-toggle input {
  margin-right: 3px;
}

.tg-ind-vdp-row {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) auto;
}
.tg-ind-vdp-row .tg-snd {
  flex: 0 0 auto;
  margin: 0;
}

.tg-vote-panel-rail {
  background: rgba(8, 12, 16, .45);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
  padding: 10px;
}

.tg-vote-panel-rail .tg-verdict strong {
  font-size: 22px;
}

.tg-vote-panel-rail .tg-catalog-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-desk-top {
  align-items: stretch;
  display: grid;
  gap: 10px 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
}

.tg-desk-top-assets {
  align-items: flex-start;
  background: linear-gradient(180deg, #1c222b 0%, #141a22 100%);
  border: 1px solid #3d4754;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
}

.tg-stock-picks {
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
  max-width: 100%;
  min-width: 0;
}

.tg-stock-picks-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.tg-stock-picks-horizons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tg-stock-picks-hz {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 5px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  padding: 4px 7px;
}

.tg-stock-picks-hz:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e2e8f0;
}

.tg-stock-picks-hz.on {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.55);
  color: #86efac;
}

.tg-stock-picks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tg-stock-pick {
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  max-width: 100%;
  padding: 6px 9px;
  text-align: left;
}

.tg-stock-pick:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.tg-stock-pick.active {
  border-color: rgba(45, 212, 191, 0.7);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25);
}

.tg-stock-pick strong {
  font-size: 12px;
  font-weight: 700;
}

.tg-stock-pick-meta {
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 1px;
  line-height: 1.2;
}

.tg-stock-pick-meta b {
  color: #4ade80;
  font-weight: 700;
}

.tg-stock-pick-meta b.neg {
  color: #f87171;
}

.tg-stock-pick .tg-asset-signal {
  font-size: 9px;
}

.tg-stock-picks-status,
.tg-stock-picks-note {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}

.tg-stock-picks-note {
  max-width: 52ch;
  opacity: 0.85;
}

.tg-desk-top-assets .tg-asset-group-label,
.tg-desk-top-assets .tg-stock-picks-note,
.tg-desk-top-assets .tg-stock-picks-status {
  color: #cbd5e1;
  font-weight: 700;
}

.tg-desk-top-assets .tg-stock-picks-hz {
  background: #0f141b;
  border-color: #475569;
  color: #e2e8f0;
}

.tg-desk-top-assets .tg-stock-picks-hz.on {
  background: #14532d;
  border-color: #166534;
  color: #ecfdf5;
}

.tg-desk-top-assets .tg-asset-search-btn {
  background: #2a3340;
  border-color: #0f141b;
  color: #f1f5f9;
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: 0;
  order: 2;
}

.tg-desk-top-assets .tg-asset-search-btn:hover {
  background: #111827;
  border-color: #334155;
  color: #ffffff;
}

.tg-desk-top-assets .tg-asset-grid-inline {
  flex: 1 1 0;
  min-width: 0;
  order: 1;
}

.tg-desk-top-assets .tg-stock-picks {
  order: 3;
  display: flex;
  min-height: 72px;
}

.tg-desk-top-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
}

.tg-desk-ops {
  align-content: flex-start;
  background: linear-gradient(180deg, #f3e6c4 0%, #dcc48a 100%);
  border: 1px solid #a67c2d;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  padding: 10px 12px;
}

.tg-desk-ops .tg-btn-compact,
.tg-desk-ops .tg-live,
.tg-desk-ops .tg-alert-toggle,
.tg-desk-ops .tg-voice-gender {
  min-height: 34px;
}

.tg-desk-ops .tg-btn-compact {
  background: #1c2430;
  border-color: #0f141b;
  color: #f4efe4;
}

.tg-desk-ops .tg-btn-compact:hover {
  background: #0f141b;
  border-color: #334155;
  color: #ffffff;
}

.tg-desk-ops .tg-live {
  align-items: center;
  background: #14532d;
  border: 1px solid #052e16;
  border-radius: var(--radius);
  color: #ecfdf5;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  padding: 0 10px;
}

.tg-desk-ops .tg-alert-toggle,
.tg-desk-ops .tg-voice-gender {
  background: #fff8ea;
  border: 1px solid #8a6418;
  border-radius: var(--radius);
  color: #3a2708;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  padding: 0 10px;
}

.tg-desk-ops .tg-voice-gender select {
  color: #3a2708;
}

.tg-voice-gender {
  align-items: center;
  display: inline-flex;
  min-height: 34px;
}

.tg-voice-gender select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  max-width: 7.5rem;
  outline: none;
  padding: 0;
}

.tg-voice-gender select option {
  background: #0f172a;
  color: #e2e8f0;
}

.tg-desk-ops .tg-btn-share {
  background: #0c4a6e;
  border-color: #075985;
  color: #e0f2fe;
}

.tg-desk-ops .tg-btn-course {
  background: #7a5410;
  border-color: #854d0e;
  color: #fff7ed;
}

.tg-desk-ops .tg-btn-course:hover {
  background: #92400e;
  color: #fffbeb;
}

.tg-btn-course {
  background: rgba(215, 173, 88, .16);
  border-color: rgba(215, 173, 88, .55);
  color: #f4d58d;
  font-weight: 800;
}

.tg-btn-course:hover {
  background: rgba(215, 173, 88, .28);
  color: #fff3c4;
}

.tg-desk-quote {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: flex-end;
}

.tg-desk-top-meta .tg-chart-identity {
  min-width: 0;
  text-align: right;
}

.tg-desk-top-meta .tg-price-box {
  min-width: 0;
  padding: 6px 10px;
}

.tg-desk-top-meta .tg-price-box strong {
  font-size: 16px;
}

.tg-desk-price-tools {
  margin-left: auto;
}

@media (max-width: 900px) {
  .tg-desk-top {
    grid-template-columns: 1fr;
  }

  .tg-desk-ops {
    justify-content: flex-start;
  }

  .tg-desk-quote {
    justify-content: flex-start;
  }

  .tg-desk-top-meta .tg-chart-identity {
    text-align: left;
  }

  .tg-desk-top-assets .tg-asset-search-btn {
    margin-top: 0;
  }

  .tg-chart-workbench {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(360px, 1fr) minmax(180px, 240px);
    height: clamp(720px, calc(100svh - 48px), 980px);
    min-height: 720px;
  }

  .tg-chart-tools {
    max-height: min(240px, 36vh);
  }

  .tg-chart-legend {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tg-chart-legend .tg-ind {
    width: auto;
  }
}

.tg-chart-canvas-wrap {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(55, 65, 85, 0.38) 0%, rgba(11, 18, 32, 0) 62%),
    radial-gradient(ellipse 120% 90% at 50% 100%, rgba(2, 6, 23, 0.55) 0%, transparent 55%),
    #0b1220;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

.tg-chart-brand {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.tg-chart-brand img {
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
  height: auto;
  max-height: min(42%, 220px);
  max-width: min(340px, 52%);
  object-fit: contain;
  opacity: 0.22;
}

.tg-chart-watermark {
  color: rgba(148, 163, 184, 0.42);
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, sans-serif;
  gap: 2px;
  letter-spacing: 0.04em;
  pointer-events: none;
  position: absolute;
  right: 72px;
  text-align: right;
  top: 14px;
  user-select: none;
  z-index: 2;
}

.tg-chart-watermark strong {
  color: rgba(226, 232, 240, 0.38);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.1;
}

.tg-chart-watermark span {
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 600;
  text-transform: uppercase;
}

.tg-ind-toggle.hilo .tg-ind-name {
  color: #e879f9;
}

.tg-chart-main {
  background: transparent;
  max-width: 100%;
  min-height: 0;
  position: relative;
  touch-action: none;
  width: 100%;
  z-index: 1;
}

.tg-chart-main table,
.tg-chart-main canvas {
  background: transparent !important;
}

.tg-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  left: 8px;
  pointer-events: none;
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
}

.tg-proof-chip {
  background: rgba(15, 23, 42, .78);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
}

.tg-proof-chip.brand {
  border-color: rgba(59, 130, 246, .45);
  color: #93c5fd;
}

.tg-rec-bar {
  align-items: center;
  background: rgba(127, 29, 29, .35);
  border: 1px solid rgba(248, 113, 113, .45);
  border-radius: 12px;
  color: #fecaca;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  padding: 8px 10px;
}

.tg-rec-bar[hidden] { display: none; }

.tg-rec-dot {
  animation: tg-rec-blink 1s infinite;
  background: #ef4444;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

@keyframes tg-rec-blink {
  50% { opacity: .25; }
}

.tg-btn-share {
  background: #0ea5e9;
}

.tg-share-modal {
  align-items: center;
  background: rgba(2, 6, 23, .72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 40;
}

.tg-share-modal[hidden] { display: none; }

.tg-share-card {
  background: #0f172a;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 640px;
  padding: 18px;
  width: min(640px, 100%);
}

.tg-share-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tg-share-head h2 { margin: 0; }

.tg-share-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.tg-share-lead, .tg-share-benefits { color: var(--muted); line-height: 1.45; }

.tg-share-steps {
  color: var(--text);
  margin: 0 0 12px;
  padding-left: 18px;
}

.tg-share-preview {
  background: #020617;
  border-radius: 10px;
  display: block;
  margin: 10px 0 8px;
  max-height: 220px;
  width: 100%;
}

.tg-share-preview[hidden] { display: none; }

.tg-share-file {
  color: #93c5fd;
  font-size: 13px;
  margin: 0 0 10px;
}

.tg-share-file[hidden] { display: none; }

.tg-share-caption {
  background: rgba(15, 23, 42, .8);
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.tg-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tg-share-login {
  color: #93c5fd;
  font-weight: 700;
}

.tg-chart-rsi {
  min-height: 110px;
}

.tg-chart-legend {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  min-height: 0;
}

.tg-ind {
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 5px 9px;
  text-transform: uppercase;
}

.tg-ind.ema20 { background: rgba(59, 130, 246, .18); color: #93c5fd; }
.tg-ind.ema80 { background: rgba(249, 115, 22, .18); color: #fdba74; }
.tg-ind.mm8 { background: rgba(20, 184, 166, .18); color: #5eead4; }
.tg-ind.mm80 { background: rgba(234, 179, 8, .18); color: #fde047; }
.tg-ind.rsi { background: rgba(61, 154, 140, .12); color: #9fd9cf; }
.tg-ind.true-tb { background: rgba(56, 189, 248, .12); color: #7dd3fc; }
.tg-ind.smc { background: rgba(148, 163, 184, .12); color: #cbd5e1; }
.tg-ind.tmc { background: rgba(61, 186, 116, .12); color: #86efac; }
.tg-ind.sniper { background: rgba(201, 162, 39, .14); color: #e8d48b; }
.tg-ind small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: .85;
  text-transform: none;
}
.tg-ind.live { background: rgba(34, 197, 94, .14); color: #86efac; }
.tg-ind.live.off { background: rgba(148, 163, 184, .12); color: #94a3b8; }

.tg-ind-toggle {
  cursor: pointer;
  user-select: none;
}

.tg-ind-toggle input {
  accent-color: #3b82f6;
  margin: 0 6px 0 0;
  vertical-align: middle;
}

.tg-ind-toggle.off {
  opacity: 1;
  text-decoration: none;
}

.tg-ind-toggle.off .tg-ind-name {
  opacity: .45;
  text-decoration: line-through;
}

.tg-legend-help {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 4px;
}

.tg-snd {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  margin-left: 5px;
  opacity: .95;
  padding: 0 1px;
  vertical-align: middle;
}

.tg-snd.off { opacity: .32; filter: grayscale(1); }

.tg-true-tb-panel {
  background: rgba(15, 23, 42, .72);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 4px;
  padding: 10px 12px;
  width: 100%;
}

.tg-true-tb-panel[hidden] {
  display: none;
}

.tg-vdp-panel {
  background: rgba(15, 23, 42, .72);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 4px;
  padding: 10px 12px;
  width: 100%;
}
.tg-vdp-panel[hidden] { display: none; }
.tg-vdp-panel-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.tg-vdp-panel-head strong {
  color: #e2e8f0;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tg-vdp-help { color: var(--muted); font-size: 11px; }
.tg-vdp-summary {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.tg-vdp-overlay {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}
.tg-vdp-bars {
  inset: 0;
  position: absolute;
}
.tg-vdp-row {
  align-items: center;
  display: flex;
  gap: 0;
  left: 10px;
  position: absolute;
  right: auto;
  transform: translateY(-50%);
}
.tg-vdp-bar {
  display: block;
  height: 5px;
  opacity: .55;
}
.tg-vdp-bar.buy {
  background: rgba(34, 197, 94, .65);
  border-radius: 2px 0 0 2px;
}
.tg-vdp-bar.sell {
  background: rgba(239, 68, 68, .65);
  border-radius: 0 2px 2px 0;
}
.tg-vdp-delta {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  margin-left: 4px;
  min-width: 36px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}
.tg-vdp-delta.up { color: #86efac; }
.tg-vdp-delta.down { color: #fca5a5; }
.tg-vdp-chip {
  background: rgba(15, 23, 42, .82);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  left: 10px;
  line-height: 1.3;
  max-width: min(280px, 46vw);
  padding: 5px 8px;
  position: absolute;
  right: auto;
  z-index: 3;
}
.tg-vdp-chip.top { bottom: 44px; top: auto; }
.tg-vdp-chip.bot { bottom: 18px; }
.tg-vdp-chip.up { color: #86efac; border-color: rgba(34, 197, 94, .35); }
.tg-vdp-chip.down { color: #fca5a5; border-color: rgba(239, 68, 68, .35); }

/* Com SMC: perfil mais fino à esquerda, sem números por nível — eixo direito livre para OB/FVG */
.tg-vdp-row.poc .tg-vdp-bar {
  box-shadow: 0 0 0 1px rgba(234, 179, 8, .85);
  opacity: .9;
}
.tg-vdp-overlay.with-smc .tg-vdp-row.poc .tg-vdp-bar {
  opacity: .7;
}
.tg-vdp-overlay.with-smc .tg-vdp-delta { display: none; }
.tg-vdp-overlay.with-smc .tg-vdp-chip {
  font-size: 9px;
  opacity: .9;
  padding: 3px 6px;
}

.tg-true-tb-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.tg-true-tb-head strong {
  color: #e2e8f0;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tg-true-tb-help {
  color: var(--muted);
  font-size: 11px;
}

.tg-true-tb-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tg-true-tb-btn {
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  min-width: 88px;
  padding: 6px 8px;
  text-transform: uppercase;
}

.tg-true-tb-btn.on {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.tg-true-tb-btn.active-chart {
  outline: 2px solid rgba(255, 255, 255, .18);
  outline-offset: 1px;
}

.tg-true-tb-btn.tf-1m.on { background: rgba(0, 255, 255, .14); color: #67e8f9; }
.tg-true-tb-btn.tf-5m.on { background: rgba(132, 204, 22, .14); color: #bef264; }
.tg-true-tb-btn.tf-15m.on { background: rgba(234, 179, 8, .14); color: #fde047; }
.tg-true-tb-btn.tf-1h.on { background: rgba(249, 115, 22, .14); color: #fdba74; }
.tg-true-tb-btn.tf-4h.on { background: rgba(217, 70, 239, .14); color: #f0abfc; }
.tg-true-tb-btn.tf-all.on { background: rgba(59, 130, 246, .16); color: #93c5fd; }

.tg-true-tb-levels {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 6px;
}

.tg-true-tb-chip {
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  padding: 3px 8px;
}

.tg-true-tb-chip strong {
  color: #e2e8f0;
  font-weight: 800;
}

.tg-true-tb-chip.top strong { color: #fca5a5; }
.tg-true-tb-chip.bottom strong { color: #86efac; }

.tg-smc-panel {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(168, 85, 247, .22);
  border-radius: 12px;
  margin-top: 4px;
  padding: 10px 12px;
  width: 100%;
}

.tg-smc-panel[hidden] { display: none; }

.tg-smc-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tg-smc-head strong {
  color: #e9d5ff;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tg-smc-signal {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 4px 10px;
}

.tg-smc-signal.compra { background: rgba(34, 197, 94, .18); color: #86efac; }
.tg-smc-signal.venda { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.tg-smc-signal.neutro { background: rgba(245, 158, 11, .14); color: #fcd34d; }
.tg-smc-signal.indisponivel { background: rgba(148, 163, 184, .12); color: #94a3b8; }

.tg-smc-summary {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.tg-smc-hierarchy {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.tg-smc-tf {
  background: rgba(148, 163, 184, .06);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  font-size: 10px;
  padding: 6px 8px;
  text-align: center;
}

.tg-smc-tf.active-chart {
  border-color: rgba(168, 85, 247, .45);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .18);
}

.tg-smc-tf strong {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}

.tg-smc-tf span { color: var(--muted); display: block; }
.tg-smc-tf .bias-alta { color: #86efac; font-weight: 800; }
.tg-smc-tf .bias-baixa { color: #fca5a5; font-weight: 800; }
.tg-smc-tf .bias-neutro { color: #fcd34d; font-weight: 800; }

.tg-tmc-panel {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, .72);
}

.tg-tmc-panel[hidden] { display: none; }

.tg-tmc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tg-tmc-head strong {
  font-size: 13px;
  letter-spacing: .02em;
}

.tg-tmc-signal {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.tg-tmc-signal.alta { background: rgba(34, 197, 94, .18); color: #86efac; }
.tg-tmc-signal.baixa { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.tg-tmc-signal.neutro { background: rgba(148, 163, 184, .12); color: #94a3b8; }

  .tg-ind.rsi,
  .tg-ind.sniper {
    font-size: 8px;
    letter-spacing: .01em;
    padding: 2px 5px;
  }

.tg-sniper-panel {
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(250, 204, 21, .35);
  border-radius: 10px;
  background: rgba(64, 48, 8, .35);
}

.tg-sniper-panel[hidden] { display: none; }

.tg-sniper-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tg-sniper-head strong {
  font-size: 10px;
  letter-spacing: .02em;
}

.tg-sniper-signal {
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 2px 6px;
}

.tg-sniper-signal.compra { background: rgba(34, 197, 94, .2); color: #86efac; }
.tg-sniper-signal.venda { background: rgba(239, 68, 68, .2); color: #fca5a5; }
.tg-sniper-signal.neutro { background: rgba(250, 204, 21, .14); color: #fde68a; }
.tg-sniper-signal.hold { background: rgba(59, 130, 246, .2); color: #93c5fd; }

.tg-sniper-summary,
.tg-sniper-hold {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  margin: 0;
}

.tg-sniper-hold {
  color: #fde68a;
  font-weight: 700;
  margin-top: 4px;
}

.tg-tmc-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tg-tmc-narrativa {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}

.tg-tmc-blink {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, .16);
  border: 1px solid rgba(245, 158, 11, .45);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  animation: tg-tmc-pisca 0.85s ease-in-out infinite;
}

.tg-tmc-blink[hidden] { display: none; }

@keyframes tg-tmc-pisca {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
  50% { opacity: 0.35; box-shadow: 0 0 14px rgba(245, 158, 11, 0.35); }
}

.tg-btn-reset {
  font-size: 12px;
  padding: 8px 12px;
}

.tg-chart-rsi-wrap:not([hidden]) {
  background: #0b1220;
  border: 0;
  border-radius: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  display: block;
  grid-row: 2;
  height: 132px;
  margin-top: 0;
  max-height: 132px;
  min-height: 132px;
  overflow: hidden;
  width: 100%;
}

.tg-chart-rsi-wrap[hidden] {
  display: none;
}

.tg-chart {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.tg-chart.tg-chart-rsi {
  background: #0b1220 !important;
  border: 0;
  border-radius: 0;
  flex: 1 1 auto;
  height: 100% !important;
  max-height: none;
  min-height: 0 !important;
  width: 100%;
}

/* Fundo só no host/table — NUNCA no canvas (a camada de cima é transparente e
   um background opaco nela esconde a linha do RSI). */
.tg-chart.tg-chart-rsi table {
  background: #0b1220 !important;
}
.tg-chart.tg-chart-rsi canvas {
  background: transparent !important;
}

.tg-chart-note {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}

.tg-vote-panel { padding: 16px; }

.tg-picker-help {
  color: var(--muted);
  font-size: 13px;
  margin: -4px 0 10px;
}

.tg-vote-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tg-vote-head .tg-step {
  margin: 0;
}

.tg-btn-compact {
  font-size: 13px;
  padding: 10px 14px;
  white-space: nowrap;
}

.tg-tf-breakdown {
  margin: 14px 0;
}

.tg-tf-breakdown-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.tg-tf-breakdown-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-tf-breakdown-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.tg-tf-breakdown-item {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 4px;
  padding: 10px;
  text-align: left;
  transition: border-color .15s, opacity .15s;
  width: 100%;
}

.tg-tf-breakdown-item.reference {
  opacity: .72;
}

.tg-tf-breakdown-item:hover {
  border-color: rgba(148, 163, 184, .35);
}

.tg-tf-breakdown-item.active,
.tg-tf-breakdown-item.official {
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .15);
  opacity: 1;
}

.tg-tf-official-tag {
  background: rgba(59, 130, 246, .18);
  border-radius: 999px;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 2px 8px;
  text-transform: uppercase;
  width: fit-content;
}

.tg-verdict {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
  padding: 16px;
  position: relative;
  text-align: center;
}

.tg-verdict-badge {
  background: rgba(34, 197, 94, .14);
  border-radius: 999px;
  color: #86efac;
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: 8px;
  padding: 4px 10px;
  text-transform: uppercase;
}

.tg-tf-breakdown-item span {
  color: var(--muted);
  font-size: 12px;
}

.tg-tf-breakdown-item small {
  color: var(--muted);
  font-size: 11px;
}

.tg-verdict-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tg-verdict strong {
  display: block;
  font-size: 42px;
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: 8px;
}

.tg-verdict.compra strong { color: var(--buy); }
.tg-verdict.venda strong { color: var(--sell); }
.tg-verdict.neutro strong { color: var(--neutral); }

.tg-verdict p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.tg-bar-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 64px 1fr 72px;
  margin-bottom: 8px;
  font-size: 13px;
}

.tg-bar-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.tg-bar-fill {
  border-radius: 999px;
  height: 100%;
}

.tg-metrics {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0;
  padding: 0;
}

.tg-metrics li {
  background: rgba(255, 255, 255, .03);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
}

.tg-catalog-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.tg-catalog-stats div {
  background: rgba(255, 255, 255, .03);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.tg-catalog-stats span { color: var(--muted); font-size: 12px; }
.tg-catalog-stats strong { font-size: 20px; }

.tg-updated {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
}

.tg-analysis-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.tg-votes-list { padding: 16px; }

.tg-votes-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tg-votes-head h2 { margin: 0; }

.tg-votes-head label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.tg-votes-head select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  min-width: 160px;
  padding: 10px 12px;
}

.tg-table-wrap { overflow: auto; }

.tg-votes-list .tg-table-wrap {
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: min(420px, 52vh);
  overflow: auto;
}

.tg-votes-list .tg-table-wrap thead th {
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}

.tg-votes-scroll-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
}

.tg-table-wrap table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.tg-table-wrap th,
.tg-table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.tg-table-wrap th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.tg-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  text-transform: uppercase;
}

.tg-pill.compra { background: rgba(34, 197, 94, .16); color: var(--buy); }
.tg-pill.venda { background: rgba(239, 68, 68, .16); color: var(--sell); }
.tg-pill.neutro { background: rgba(245, 158, 11, .16); color: var(--neutral); }

.tg-footer {
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}

.tg-analysis-loading {
  background: rgba(15, 23, 42, .55);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
}

.tg-analysis-loading[hidden] {
  display: none !important;
}

.tg-analysis-loading-row {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.tg-analysis-pct {
  color: var(--blue);
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  min-width: 44px;
}

.tg-analysis-loading .tg-loading-track {
  flex: 1;
  height: 8px;
  margin: 0;
}

.tg-analysis-loading .tg-loading-label {
  font-size: 12px;
}

.tg-loading {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(6, 10, 18, .82);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 9999;
}

.tg-loading[hidden] {
  display: none !important;
}

.tg-loading-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  max-width: 360px;
  padding: 24px 22px;
  text-align: center;
  width: calc(100% - 32px);
}

.tg-loading-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.tg-loading-pct {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin: 0 0 14px;
}

.tg-loading-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  height: 10px;
  margin: 0 0 12px;
  overflow: hidden;
}

.tg-loading-fill {
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: 999px;
  height: 100%;
  transition: width .25s ease;
  width: 0;
}

.tg-loading-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

@media (max-height: 900px) {
  .tg-shell {
    padding-top: 8px;
    padding-bottom: 18px;
  }
  .tg-site-nav {
    margin-bottom: 6px;
    padding-bottom: 6px;
  }
  .tg-top {
    gap: 8px;
    margin-bottom: 8px;
  }
  .tg-chart-tfbar {
    margin-bottom: 4px;
  }
  .tg-chart-workbench {
    height: clamp(540px, calc(100svh - 48px), 820px);
    min-height: 540px;
  }
}

@media (max-width: 1100px) {
  .tg-top-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .tg-main { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .tg-shell {
    padding: 0 max(10px, env(safe-area-inset-right)) 28px max(10px, env(safe-area-inset-left));
  }

  .tg-appbar {
    align-items: center;
    background: rgba(6, 10, 18, .94);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 10px;
    margin: 0 calc(-1 * max(10px, env(safe-area-inset-right))) 12px calc(-1 * max(10px, env(safe-area-inset-left)));
    padding: calc(8px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
    position: sticky;
    top: 0;
    z-index: 60;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .tg-appbar-meta {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tg-chrome .tg-home-logo {
    display: none;
  }

  .tg-appbar-meta strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tg-appbar-quote {
    flex: 0 0 auto;
    min-width: 0;
    text-align: right;
  }

  .tg-appbar-quote strong {
    display: block;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1.1;
  }

  .tg-appbar-quote small {
    color: var(--muted);
    font-size: 10px;
  }

  .tg-appbar-quote small.up { color: var(--buy); }
  .tg-appbar-quote small.down { color: var(--sell); }

  .tg-site-nav {
    display: none;
  }

  body.tg-menu-open .tg-site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 8px 2px 10px;
  }

  body.tg-menu-open .tg-site-nav-logo {
    display: none;
  }

  body.tg-menu-open .tg-site-nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  body.tg-menu-open .tg-site-nav-links a {
    padding: 10px 8px;
  }

  body.tg-menu-open .tg-site-nav-actions {
    justify-content: stretch;
  }

  body.tg-menu-open .tg-nav-signup {
    text-align: center;
    width: 100%;
  }

  .tg-top {
    gap: 0;
    margin-bottom: 10px;
  }

  .tg-top h1 {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .tg-sub { font-size: 14px; }

  .tg-top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-top-actions > * {
    min-width: 0;
  }

  .tg-top-actions .tg-btn-compact {
    white-space: normal;
  }

  .tg-top-actions .tg-alert-toggle {
    white-space: normal;
  }

  .tg-asset-row {
    display: flex;
    gap: 8px;
    margin: 0 -6px;
    overflow-x: auto;
    padding: 0 6px 4px;
    -webkit-overflow-scrolling: touch;
  }

  .tg-asset {
    flex: 0 0 auto;
    max-width: 72vw;
    min-width: 148px;
    padding: 12px 10px;
  }

  .tg-asset strong {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .tg-timeframe-grid {
    flex-wrap: nowrap;
    margin: 0 -6px;
    overflow-x: auto;
    padding: 0 6px 4px;
    -webkit-overflow-scrolling: touch;
  }

  .tg-timeframe {
    flex: 0 0 auto;
  }

  .tg-picker { margin-bottom: 12px; }

  .tg-picker-help { font-size: 12px; }

  .tg-chart-panel {
    overflow: hidden;
    padding: 10px;
  }

  .tg-chart-head {
    background: var(--panel);
    margin: 0 0 8px;
    padding-bottom: 8px;
  }

  .tg-chart-stage .tg-chart,
  .tg-chart-stage .tg-chart-main {
    height: auto !important;
    min-height: 0 !important;
  }

  .tg-chart-legend {
    gap: 6px;
  }

  .tg-ind {
    font-size: 10px;
    padding: 4px 8px;
  }

  .tg-ind small { display: none; }

  .tg-chart-head-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .tg-price-box {
    min-width: 0;
  }

  .tg-chart-head .tg-price-box {
    display: none;
  }

  .tg-price-box strong {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
  }

  .tg-vote-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .tg-votes-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .tg-votes-head select { min-width: 0; width: 100%; }

  .tg-table-wrap {
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
  }

  .tg-table-wrap table { min-width: 640px; }

  .tg-tf-breakdown-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .tg-catalog-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .tg-verdict strong { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .tg-top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-top-actions .tg-btn-compact {
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
    white-space: normal;
  }

  .tg-timeframe {
    font-size: 12px;
    padding: 9px 12px;
  }

  .tg-chart-rsi { min-height: 90px; }

  .tg-btn-compact {
    font-size: 12px;
    padding: 9px 10px;
  }

  .tg-table-wrap table { min-width: 560px; }

  .tg-table-wrap th,
  .tg-table-wrap td {
    font-size: 12px;
    padding: 8px 8px;
  }

  .tg-catalog-stats {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .tg-votes-list .tg-table-wrap {
    max-height: min(320px, 48vh);
  }

  .tg-footer { font-size: 12px; }

  .tg-desk-top-meta .tg-price-box { display: none; }

  .tg-appbar-quote strong { font-size: 15px; }
}

@media (max-width: 380px) {
  .tg-top-actions {
    grid-template-columns: 1fr;
  }
}

html.tg-embed-mode .tg-home-logo {
  display: none !important;
}

html.tg-embed-mode .tg-appbar {
  display: none !important;
}

html.tg-embed-mode .tg-chrome,
html.tg-embed-mode .tg-site-nav,
html.tg-embed-mode .tg-top {
  display: none !important;
}

html.tg-embed-mode .tg-desk-top-meta .tg-price-box {
  display: grid !important;
}

html.tg-embed-mode .tg-transparency,
html.tg-embed-mode .tg-votes-list,
html.tg-embed-mode .tg-voice-unlock,
html.tg-embed-mode .tg-top {
  display: none !important;
}

html.tg-embed-mode .tg-shell,
html.tg-embed-mode .tg-main,
html.tg-embed-mode .tg-chart-panel,
html.tg-embed-mode .tg-chart-stack {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

html.tg-embed-mode .tg-shell {
  max-width: none;
  padding: 4px 8px 4px;
  height: 100%;
}

html.tg-embed-mode .tg-chart-panel {
  border: 0;
  border-radius: 0;
  height: 100%;
  padding: 4px 6px 6px;
}

html.tg-embed-mode .tg-desk-top {
  align-items: start;
  display: grid;
  flex: 0 0 auto;
  gap: 8px 12px;
  grid-template-areas:
    "assets assets"
    "ops ops"
    "news news"
    "quote quote";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-height: none;
  overflow: visible;
}

html.tg-embed-mode .tg-desk-top-meta {
  display: contents;
}

html.tg-embed-mode .tg-desk-top-assets {
  grid-area: assets;
  min-width: 0;
}

html.tg-embed-mode .tg-desk-ops {
  grid-area: ops;
  justify-content: flex-start;
}

html.tg-embed-mode .tg-news-ticker {
  grid-area: news;
  min-height: 40px;
}

html.tg-embed-mode .tg-desk-quote {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  grid-area: quote;
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 900px) {
  html.tg-embed-mode,
  html.tg-embed-mode body {
    overflow: auto;
  }
  html.tg-embed-mode .tg-desk-top {
    grid-template-areas:
      "assets"
      "ops"
      "news"
      "quote";
    grid-template-columns: 1fr;
  }
  html.tg-embed-mode .tg-asset-grid-inline {
    max-height: none;
  }
  html.tg-embed-mode .tg-chart-workbench {
    min-height: 560px !important;
    grid-template-rows: auto minmax(360px, 1fr) minmax(160px, 220px);
  }
  html.tg-embed-mode .tg-chart-tools {
    max-height: 220px;
  }
}

html.tg-embed-mode .tg-asset-grid-inline {
  max-height: none;
  overflow: visible;
}

html.tg-embed-mode .tg-desk-ops {
  max-height: none;
  overflow: visible;
}

html.tg-embed-mode .tg-chart-identity {
  display: none;
}

html.tg-embed-mode .tg-chart-tfbar {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

/* Embed: workbench ocupa o resto do iframe — RSI em linha fixa, alinhado ao gráfico. */
html.tg-embed-mode .tg-chart-workbench {
  flex: 1 1 auto;
  height: auto;
  max-height: none;
  min-height: 560px !important;
}

html.tg-embed-mode .tg-chart-stage {
  min-height: 360px;
}

html.tg-embed-mode .tg-chart-tools {
  max-height: 620px;
}

html.tg-embed-mode .tg-chart-main,
html.tg-embed-mode .tg-chart.tg-chart-main {
  min-height: 0;
  max-height: none;
}

/* Modo embed (iframe na home tradergain.com.br) — sem scroll interno */
html.tg-embed-mode,
html.tg-embed-mode body {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

html.tg-embed-mode .tg-shell {
  padding-bottom: 8px;
}

html.tg-embed-mode .tg-footer {
  display: none;
}

html.tg-embed-mode .tg-votes-list .tg-table-wrap {
  max-height: min(360px, 45vh);
}

.tg-transparency {
  margin: 24px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
}

.tg-transparency .tg-votes-head h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tg-transparency td.compra { color: var(--buy); }
.tg-transparency td.venda { color: var(--sell); }
.tg-transparency td.neutro { color: var(--neutral); }

.tg-transparency-recent {
  margin-top: 16px;
}

.tg-transparency-recent ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.tg-asset-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.tg-asset-filters button {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.7);
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.tg-asset-filters button.on {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.18);
}

.tg-transparency-recent li.hit { color: var(--buy); }
.tg-transparency-recent li.miss { color: var(--sell); }

.tg-ind.mm-forecast { background: rgba(61, 154, 140, .14); color: #9fd9cf; }

.tg-mm-forecast-panel {
  margin-top: 4px;
  padding: 12px 12px;
  border: 1px solid rgba(61, 154, 140, .32);
  border-radius: var(--radius);
  background: rgba(16, 28, 26, .55);
}

.tg-mm-forecast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.tg-mm-forecast-score {
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(8, 12, 16, .55);
  font-family: var(--mono);
}

.tg-mm-forecast-score.alta { color: var(--buy); }
.tg-mm-forecast-score.baixa { color: var(--sell); }
.tg-mm-forecast-score.neutro { color: var(--neutral); }

.tg-mm-forecast-summary {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tg-mm-forecast-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tg-mm-forecast-levels div {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .55);
  font-size: 12px;
}

.tg-mm-forecast-levels strong {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .tg-mm-forecast-levels { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .tg-mm-forecast-levels { grid-template-columns: 1fr; }
}

/* —— Terminal look: votação + credibilidade —— */
.tg-vote-ind {
  align-items: center;
  background: rgba(148, 163, 184, .08);
  border-color: var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  text-transform: none;
  width: 100%;
}

.tg-vote-ind-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  margin-right: 4px;
  text-transform: uppercase;
}

.tg-vote-opt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  opacity: .55;
}

.tg-vote-sep {
  color: rgba(148, 163, 184, .35);
  font-size: 11px;
}

.tg-vote-opt.on {
  opacity: 1;
}

.tg-vote-ind.compra {
  background: rgba(61, 186, 116, .1);
  border-color: rgba(61, 186, 116, .35);
}

.tg-vote-ind.compra .tg-vote-opt.on { color: var(--buy); }

.tg-vote-ind.venda {
  background: rgba(227, 93, 93, .1);
  border-color: rgba(227, 93, 93, .35);
}

.tg-vote-ind.venda .tg-vote-opt.on { color: var(--sell); }

.tg-vote-ind.neutro {
  background: rgba(201, 162, 39, .1);
  border-color: rgba(201, 162, 39, .3);
}

.tg-vote-ind.neutro .tg-vote-opt.on { color: var(--neutral); }

.tg-price-box strong,
.tg-appbar-quote strong,
#livePrice,
#verdictSignal {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.tg-top h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}

.tg-proof-chip {
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}

.tg-mm-forecast-panel {
  border-color: rgba(61, 154, 140, .35);
  background: rgba(16, 28, 26, .55);
}

.tg-mm-forecast-score {
  border-radius: 6px;
}

.tg-chart-panel.tg-fs-active .tg-chart-tfbar,
.tg-chart-panel:fullscreen .tg-chart-tfbar,
.tg-chart-panel:-webkit-full-screen .tg-chart-tfbar {
  display: flex;
}

.tg-chart-panel.tg-fs-active .tg-desk-top,
.tg-chart-panel:fullscreen .tg-desk-top,
.tg-chart-panel:-webkit-full-screen .tg-desk-top {
  gap: 8px;
}

.tg-chart-panel.tg-fs-active .tg-asset-grid-inline,
.tg-chart-panel:fullscreen .tg-asset-grid-inline,
.tg-chart-panel:-webkit-full-screen .tg-asset-grid-inline {
  max-height: 64px;
  overflow: auto;
}

.tg-chart-canvas-wrap {
  background: #0a0e14;
  border: 1px solid rgba(148, 163, 184, .1);
  border-radius: 6px;
}

.tg-ind-toggle input {
  accent-color: var(--accent);
}

@media (max-width: 720px) {
  .tg-chart-assetbar .tg-asset-search-btn {
    margin-top: 0;
  }

  .tg-asset-grid-inline .tg-asset-group-label {
    display: none;
  }
}

/* v113 - grade organizada dos indicadores (desktop) */
@media (min-width: 901px) {
  .tg-chart-legend {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-chart-legend .tg-legend-help,
  .tg-chart-legend .tg-ind-toggle.mm-forecast,
  .tg-chart-legend .tg-ind-ma-row,
  .tg-chart-legend .tg-ind-vdp-row,
  .tg-chart-legend .tg-vote-ind,
  .tg-chart-legend .tg-ind.live {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tg-chart-legend > .tg-ind-toggle:not(.mm-forecast) {
    align-items: center;
    display: flex;
    gap: 3px;
    min-width: 0;
    padding: 4px 6px;
  }

  .tg-chart-legend > .tg-ind-toggle:not(.mm-forecast) .tg-ind-name {
    flex: 0 1 auto;
    line-height: 1.2;
    min-width: 0;
    white-space: normal;
  }

  .tg-chart-legend > .tg-ind-toggle:not(.mm-forecast) .tg-snd {
    flex: 0 0 auto;
    margin-left: auto;
  }
}





