:root {
	--atpt-bg: #071018;
	--atpt-panel: #0d1823;
	--atpt-panel-2: #111f2c;
	--atpt-panel-3: #162837;
	--atpt-line: #24394a;
	--atpt-line-soft: rgba(126, 166, 194, .18);
	--atpt-text: #f4f8fb;
	--atpt-muted: #9cb0bf;
	--atpt-blue: #35a9e0;
	--atpt-blue-deep: #00698f;
	--atpt-green: #37e07d;
	--atpt-red: #ff6565;
}

body.atp-trading-page,
body.atp-trading-history-page { background: var(--atpt-bg); color: var(--atpt-text); }
body.atp-trading-page .entry-header,
body.atp-trading-history-page .entry-header { display: none; }
body.atp-trading-page main > .wp-block-post-title,
body.atp-trading-history-page main > .wp-block-post-title { display: none; }
body.atp-trading-page .entry-content,
body.atp-trading-history-page .entry-content { margin: 0; max-width: none; }
body.atp-trading-page main,
body.atp-trading-history-page main { background: var(--atpt-bg); }

.atp-trading-surface,
.atp-trading-history-shell {
	box-sizing: border-box;
	width: min(1280px, calc(100% - 36px));
	max-width: none;
	margin: 0 auto;
	padding: 24px 0 64px;
	color: var(--atpt-text);
	font-family: "Segoe UI", Arial, sans-serif;
}
.atp-trading-surface *, .atp-trading-history-shell * { box-sizing: border-box; }
.atp-trading-surface a, .atp-trading-history-shell a { color: inherit; }

.atp-trading-breadcrumb { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--atpt-muted); font-size: 13px; }
.atp-trading-breadcrumb a { color: #7ac8ef; text-decoration: none; }
.atp-trading-breadcrumb a:hover { text-decoration: underline; }

.atp-trading-hero {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	min-height: 154px;
	padding: 28px 30px;
	border: 1px solid #284254;
	border-radius: 18px;
	background: radial-gradient(circle at 76% 0, rgba(20, 141, 187, .16), transparent 34%), linear-gradient(135deg, #101e29, #0b151f 70%);
	box-shadow: 0 22px 54px rgba(0, 0, 0, .25);
}
.atp-trading-mark { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 17px; background: linear-gradient(145deg, #0083ad, #00516f); color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.04em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.atp-trading-title > span,
.atp-trading-ledger-head > div > span,
.atp-trading-chart header span,
.atp-trading-now > span,
.atp-trading-section > header span,
.atp-trading-results header span { color: #53bce9; font-size: 12px; font-weight: 800; letter-spacing: .115em; }
.atp-trading-title h1 { margin: 4px 0 6px; color: #fff; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; }
.atp-trading-title p { max-width: 700px; margin: 0; color: #b5c6d2; font-size: 16px; line-height: 1.45; }
.atp-trading-live { display: grid; justify-items: end; gap: 11px; min-width: 268px; }
.atp-trading-live > div { display: flex; gap: 18px; color: #dbe9f1; font-size: 13px; }
.atp-trading-live > div span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.atp-trading-live i, .atp-trading-update i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--atpt-green); box-shadow: 0 0 0 4px rgba(55,224,125,.1); }
.atp-trading-live small { color: var(--atpt-muted); font-size: 12px; }
.atp-trading-live button { min-height: 38px; padding: 0 18px; border: 1px solid #318eb5; border-radius: 9px; background: #00698f; color: #fff; font-size: 14px; font-weight: 750; cursor: pointer; }
.atp-trading-live button.is-active { background: #0d7f5b; border-color: #39b98d; }

.atp-trading-nav { display: flex; align-items: center; gap: 24px; min-height: 52px; margin: 12px 0 18px; padding: 0 18px; overflow-x: auto; border: 1px solid #213747; border-radius: 12px; background: #0c1721; scrollbar-width: thin; }
.atp-trading-nav a { flex: none; color: #c5d4de; font-size: 13px; font-weight: 700; text-decoration: none; }
.atp-trading-nav a:hover { color: #fff; }
.atp-trading-nav span { flex: 1; min-width: 12px; }
.atp-trading-nav a:last-child { color: #58bde7; }

.atp-trading-ledger { overflow: hidden; margin-bottom: 18px; border: 1px solid #263f51; border-radius: 14px; background: var(--atpt-panel); box-shadow: 0 24px 58px rgba(0,0,0,.32); }
.atp-trading-ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 118px; padding: 23px 28px; background: linear-gradient(180deg, #122332, #101c27); }
.atp-trading-ledger-head h2 { margin: 3px 0 4px; color: #fff; font-size: 28px; line-height: 1.12; }
.atp-trading-ledger-head p { margin: 0; color: var(--atpt-muted); font-size: 14px; }
.atp-trading-update { display: grid; grid-template-columns: 10px auto; align-items: center; column-gap: 5px; text-align: right; }
.atp-trading-update strong { color: #eaf3f8; font-size: 14px; }
.atp-trading-update small { grid-column: 1 / -1; margin-top: 5px; color: var(--atpt-muted); font-size: 12px; }

.atp-trading-kpis { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--atpt-line); border-bottom: 1px solid var(--atpt-line); background: #0e1a25; }
.atp-trading-kpis > div { min-width: 0; padding: 15px 16px; border-right: 1px solid var(--atpt-line); }
.atp-trading-kpis > div:last-child { border-right: 0; }
.atp-trading-kpis span { display: block; margin-bottom: 7px; color: #8ea5b5; font-size: 11px; text-transform: uppercase; }
.atp-trading-kpis strong { color: #f5fbff; font-size: 16px; font-variant-numeric: tabular-nums; }
.atp-trading-surface .is-positive { color: var(--atpt-green) !important; }
.atp-trading-surface .is-negative { color: var(--atpt-red) !important; }

.atp-trading-table-wrap { width: 100%; overflow-x: auto; background: #0d1620; scrollbar-color: #36546a #0a1219; }
.atp-trading-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: #edf5f9; font-size: 11px; font-variant-numeric: tabular-nums; }
.atp-trading-table th, .atp-trading-table td { height: 39px; padding: 7px 3px; text-align: center; vertical-align: middle; white-space: nowrap; }
.atp-trading-table thead th { border-right: 1px solid rgba(167,210,235,.24); border-bottom: 1px solid #3c7597; background: linear-gradient(180deg, #07587a, #04445f); color: #fff; font-weight: 750; }
.atp-trading-table thead tr:last-child th { background: linear-gradient(180deg, #0b6790, #075174); }
.atp-trading-table thead th:last-child { border-right: 0; }
.atp-trading-table .atp-trading-groups th { height: 32px; padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.atp-trading-table tbody td { overflow: hidden; border-bottom: 1px solid #1f3040; text-overflow: ellipsis; background: #101923; }
.atp-trading-table tbody tr:nth-child(even) td { background: #141f2a; }
.atp-trading-table tbody tr:hover td { background: #1b2b39; }
.atp-trading-table td:first-child { position: sticky; left: 0; z-index: 2; color: #fff; }
.atp-trading-table .atp-trading-movement { padding-right: 6px; padding-left: 6px; text-align: left; }
.atp-trading-table col:nth-child(1) { width: 5.5%; }
.atp-trading-table col:nth-child(2) { width: 5.4%; }
.atp-trading-table col:nth-child(3),.atp-trading-table col:nth-child(4),.atp-trading-table col:nth-child(8),.atp-trading-table col:nth-child(10) { width: 5.2%; }
.atp-trading-table col:nth-child(5),.atp-trading-table col:nth-child(9),.atp-trading-table col:nth-child(13) { width: 4.8%; }
.atp-trading-table col:nth-child(6) { width: 3.5%; }
.atp-trading-table col:nth-child(7) { width: 4.3%; }
.atp-trading-table col:nth-child(11) { width: 4.6%; }
.atp-trading-table col:nth-child(12) { width: 4%; }
.atp-trading-table col:nth-child(14) { width: 3.4%; }
.atp-trading-table col:nth-child(15) { width: 5.8%; }
.atp-trading-table col:nth-child(16) { width: 4.6%; }
.atp-trading-table col:nth-child(17) { width: 5.8%; }
.atp-trading-table col:nth-child(18) { width: 17.9%; }

.atp-trading-empty { display: grid; place-items: center; min-height: 124px; gap: 5px; padding: 26px; text-align: center; background: #0d1620; }
.atp-trading-empty strong { color: #fff; font-size: 18px; }
.atp-trading-empty span { color: var(--atpt-muted); font-size: 14px; }
.atp-trading-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; padding: 11px 18px; border-top: 1px solid #284252; background: #141d26; color: #b9c9d3; font-size: 12px; }
.atp-trading-strip > span { padding: 0 14px; border-right: 1px solid #3a4b58; }
.atp-trading-strip > span:first-child { padding-left: 0; }
.atp-trading-strip > span:last-child { border-right: 0; }
.atp-trading-strip b { color: #fff; }
.atp-trading-results { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); align-items: stretch; border-top: 1px solid var(--atpt-line); background: #0c151e; }
.atp-trading-results > * { display: grid; align-content: center; min-height: 76px; padding: 14px 18px; border-right: 1px solid var(--atpt-line); }
.atp-trading-results > *:last-child { border-right: 0; }
.atp-trading-results h3 { margin: 3px 0 0; color: #fff; font-size: 19px; }
.atp-trading-results > div span { margin-bottom: 5px; color: #91a7b6; font-size: 11px; text-transform: uppercase; }
.atp-trading-results > div strong { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }

.atp-trading-market { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(290px, .9fr); gap: 18px; margin-bottom: 18px; }
.atp-trading-chart, .atp-trading-now, .atp-trading-section { border: 1px solid #243b4b; border-radius: 14px; background: var(--atpt-panel); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.atp-trading-chart { overflow: hidden; }
.atp-trading-chart header { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 18px 20px; border-bottom: 1px solid var(--atpt-line); }
.atp-trading-chart h2, .atp-trading-now h2, .atp-trading-section h2 { margin: 4px 0 0; color: #fff; font-size: 25px; }
.atp-trading-chart header small { color: var(--atpt-muted); font-size: 12px; }
.atp-trading-chart .atvc-tv { width: 100%; min-width: 0; height: 500px; aspect-ratio: auto; background: #0b1219; }
.atp-trading-chart > p { margin: 0; padding: 9px 15px; color: #728998; font-size: 11px; text-align: right; }
.atp-trading-chart > p a { color: #7fcbed; }

.atp-trading-now { padding: 20px; }
.atp-trading-now > h2 { margin-bottom: 14px; }
.atp-trading-now > div { display: grid; gap: 12px; }
.atp-trading-news-card, .atp-trading-analysis-grid article { min-width: 0; padding: 16px; border: 1px solid #284151; border-radius: 11px; background: var(--atpt-panel-2); }
.atp-trading-now .atp-trading-news-card { padding: 14px; }
.atp-trading-news-card > div { display: flex; align-items: center; gap: 8px; color: #879fad; font-size: 11px; }
.atp-trading-news-card > div span { padding: 3px 7px; border-radius: 99px; background: #0c5773; color: #d9f2fd; font-weight: 700; }
.atp-trading-news-card h3, .atp-trading-analysis-grid h3, .atp-trading-analysis-teaser h3 { margin: 9px 0 7px; color: #fff; font-size: 17px; line-height: 1.28; }
.atp-trading-news-card p, .atp-trading-analysis-grid p, .atp-trading-analysis-teaser p { margin: 0; color: #adbfca; font-size: 14px; line-height: 1.5; }
.atp-trading-news-card footer, .atp-trading-analysis-grid footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; }
.atp-trading-news-card footer a, .atp-trading-analysis-grid footer a { color: #66c8ef; font-size: 12px; font-weight: 700; text-decoration: none; }
.atp-trading-analysis-teaser { margin-top: 14px; padding: 16px; border-radius: 11px; background: linear-gradient(135deg, #0b536d, #113242); }
.atp-trading-analysis-teaser > span { color: #8ee0ff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.atp-trading-analysis-teaser a { text-decoration: none; }

.atp-trading-section { margin-bottom: 18px; padding: 24px; }
.atp-trading-section > header { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.atp-trading-section > header p { max-width: 520px; margin: 0; color: var(--atpt-muted); font-size: 14px; text-align: right; }
.atp-trading-news-grid, .atp-trading-analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.atp-trading-news-grid > .atvc-grid-toggle, .atp-trading-analysis-grid > .atvc-grid-toggle { grid-column: 1 / -1; }
.atp-trading-analysis-grid time { color: #839aa9; font-size: 11px; }
.atp-trading-analysis-grid h3 a { text-decoration: none; }
.atp-trading-content-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 125px; gap: 4px; padding: 20px; border: 1px dashed #345064; border-radius: 11px; text-align: center; }
.atp-trading-content-empty b { color: #fff; }
.atp-trading-content-empty p { margin: 0; color: var(--atpt-muted); font-size: 14px; }

/* La Comunidad conserva todas sus funciones y adopta únicamente el tema de esta página. */
.atp-trading-surface .atvc-community { margin-top: 0; border-color: #284252; background: var(--atpt-panel); color: var(--atpt-text); box-shadow: 0 20px 48px rgba(0,0,0,.24); }
.atp-trading-surface .atvc-community .atvc-section-head h2,
.atp-trading-surface .atvc-community h3,
.atp-trading-surface .atvc-community b { color: #fff; }
.atp-trading-surface .atvc-community .atvc-section-head p,
.atp-trading-surface .atvc-community p { color: #aebfca; }
.atp-trading-surface .atvc-community-body,
.atp-trading-surface .atvc-community-stream,
.atp-trading-surface .atvc-presence-panel { border-color: #263e4f; background: #0c1620; }
.atp-trading-surface .atvc-message { border-color: #294153; background: #111f2b; }
.atp-trading-surface .atvc-message.is-system { background: #102937; }
.atp-trading-surface .atvc-composer { border-color: #2b4659; background: #111f2b; }
.atp-trading-surface .atvc-composer textarea { border-color: #365469; background: #09131c; color: #fff; }
.atp-trading-surface .atvc-message-actions button,
.atp-trading-surface .atvc-message-actions a { color: #86cceb; }

/* Histórico: mismos datos y comportamiento, acabado oscuro y moneda en puntos. */
.atp-trading-history-shell .atp-history {
	--at-primary: #f4f8fb;
	--at-blue: #53bce9;
	--at-positive: #37e07d;
	--at-negative: #ff6565;
	--at-border: #284252;
	--at-soft: #0d1823;
	color: var(--atpt-text);
}
.atp-trading-history-shell .atp-history-head,
.atp-trading-history-shell .atp-history-panel,
.atp-trading-history-shell .atp-history-kpis,
.atp-trading-history-shell .atp-history-filters { border-color: #284252; background: var(--atpt-panel); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.atp-trading-history-shell .atp-history-kpis > div { background: #101923; }
.atp-trading-history-shell .atp-history-head h2,
.atp-trading-history-shell .atp-history-section-head h3,
.atp-trading-history-shell .atp-history-kpis strong { color: #fff; }
.atp-trading-history-shell .atp-history-head span,
.atp-trading-history-shell .atp-history-section-head p,
.atp-trading-history-shell .atp-history-kpis span { color: var(--atpt-muted); }
.atp-trading-history-shell .atp-history-table { color: #edf5f9; }
.atp-trading-history-shell .atp-history-table th { background: #075174; color: #fff; }
.atp-trading-history-shell .atp-history-table td { border-color: #213646; background: #101923; }
.atp-trading-history-shell .atp-history-table tr:nth-child(even) td { background: #14212c; }
.atp-trading-history-shell .atp-history-table tbody tr:hover td { background: #192b38; }
.atp-trading-history-shell .atp-history-table .atp-history-sticky { background: #101923; box-shadow: 4px 0 8px rgba(0,0,0,.22); }
.atp-trading-history-shell .atp-history-table tr:nth-child(even) .atp-history-sticky { background: #14212c; }
.atp-trading-history-shell .atp-history-filters input,
.atp-trading-history-shell .atp-history-filters select { border-color: #365469; background: #09131c; color: #fff; }
.atp-trading-history-shell .atp-history-filters label,
.atp-trading-history-shell .atp-history-legend span,
.atp-trading-history-shell .atp-history-empty { color: var(--atpt-muted); }
.atp-trading-history-shell .atp-history-empty strong { color: #fff; }
.atp-trading-history-shell .atp-chart-grid { stroke: #24394a; }
.atp-trading-history-shell .atp-chart-label,
.atp-trading-history-shell .atp-chart-date { fill: #9cb0bf; }
.atp-trading-history-shell .atp-chart-line.is-portfolio { stroke: #35a9e0; }
.atp-trading-history-shell .atp-chart-line.is-benchmark { stroke: #8aa8b9; }

@media (max-width: 980px) {
	.atp-trading-hero { grid-template-columns: auto 1fr; }
	.atp-trading-live { grid-column: 1 / -1; width: 100%; grid-template-columns: 1fr auto; justify-items: start; }
	.atp-trading-live > div { align-self: center; }
	.atp-trading-live small { display: none; }
	.atp-trading-live button { grid-column: 2; grid-row: 1; }
	.atp-trading-kpis { grid-template-columns: repeat(3, 1fr); }
	.atp-trading-kpis > div:nth-child(3) { border-right: 0; }
	.atp-trading-kpis > div:nth-child(-n+3) { border-bottom: 1px solid var(--atpt-line); }
	.atp-trading-results { grid-template-columns: repeat(2, 1fr); }
	.atp-trading-results header { grid-column: 1 / -1; min-height: 64px; border-right: 0; border-bottom: 1px solid var(--atpt-line); }
	.atp-trading-results > div:nth-of-type(2), .atp-trading-results > div:nth-of-type(4) { border-right: 0; }
	.atp-trading-market { grid-template-columns: 1fr; }
	.atp-trading-now > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.atp-trading-analysis-teaser { margin-top: 12px; }
}

@media (max-width: 700px) {
	.atp-trading-surface, .atp-trading-history-shell { width: min(100% - 20px, 1280px); padding-top: 12px; }
	.atp-trading-breadcrumb { margin-bottom: 11px; }
	.atp-trading-hero { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 18px 16px; border-radius: 13px; }
	.atp-trading-mark { width: 50px; height: 50px; border-radius: 12px; font-size: 18px; }
	.atp-trading-title > span { font-size: 10px; }
	.atp-trading-title h1 { margin-top: 3px; font-size: 30px; }
	.atp-trading-title p { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
	.atp-trading-live { grid-template-columns: 1fr auto; gap: 8px; }
	.atp-trading-live > div { gap: 12px; font-size: 12px; }
	.atp-trading-live button { min-height: 34px; padding: 0 13px; font-size: 12px; }
	.atp-trading-nav { gap: 19px; min-height: 45px; margin-bottom: 12px; padding: 0 13px; }
	.atp-trading-nav span { display: none; }
	.atp-trading-ledger { border-radius: 12px; }
	.atp-trading-ledger-head { display: block; min-height: 0; padding: 16px; position: relative; }
	.atp-trading-ledger-head > div:first-child { min-width: 0; }
	.atp-trading-ledger-head > div:first-child > span { display: block; font-size: clamp(9px,2.75vw,11px); line-height: 1.15; max-width: calc(100% - 124px); white-space: nowrap; }
	.atp-trading-ledger-head h2 { font-size: 23px; margin: 8px 0 3px; white-space: nowrap; }
	.atp-trading-ledger-head p { font-size: 12px; line-height: 1.2; white-space: nowrap; }
	.atp-trading-update { align-items: center; display: flex; gap: 7px; max-width: none; position: absolute; right: 16px; top: 16px; }
	.atp-trading-update strong { display: none; }
	.atp-trading-update small { color: #eaf3f8; font-size: 10px; font-weight: 800; grid-column: auto; margin: 0; white-space: nowrap; }
	.atp-trading-kpis { grid-template-columns: repeat(2, 1fr); }
	.atp-trading-kpis > div { padding: 10px 12px; border-bottom: 1px solid var(--atpt-line); }
	.atp-trading-kpis > div:nth-child(odd) { border-right: 1px solid var(--atpt-line); }
	.atp-trading-kpis > div:nth-child(even) { border-right: 0; }
	.atp-trading-kpis > div:nth-last-child(-n+2) { border-bottom: 0; }
	.atp-trading-kpis span { line-height: 1.15; margin-bottom: 3px; font-size: 10px; }
	.atp-trading-kpis strong { font-size: 14px; line-height: 1.2; }
	.atp-trading-table { min-width: 1390px; }
	.atp-trading-table th, .atp-trading-table td { height: 38px; font-size: 12px; }
	.atp-trading-strip { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; }
	.atp-trading-strip > span { flex: none; }
	.atp-trading-results { grid-template-columns: 1fr 1fr; }
	.atp-trading-results > * { min-height: 68px; padding: 12px; }
	.atp-trading-chart .atvc-tv { height: 470px; }
	.atp-trading-chart header { min-height: 68px; padding: 14px; }
	.atp-trading-chart h2, .atp-trading-now h2, .atp-trading-section h2 { font-size: 22px; }
	.atp-trading-now { padding: 17px 14px; }
	.atp-trading-now > div { grid-template-columns: 1fr; }
	.atp-trading-section { padding: 18px 14px; }
	.atp-trading-section > header { display: block; margin-bottom: 14px; }
	.atp-trading-section > header p { margin-top: 7px; font-size: 13px; text-align: left; }
	.atp-trading-news-grid, .atp-trading-analysis-grid { grid-template-columns: 1fr; }
	.atp-trading-news-grid:not(.is-expanded) > article:nth-of-type(n+3),
	.atp-trading-analysis-grid:not(.is-expanded) > article:nth-of-type(n+3) { display: none; }
}

@media (max-width: 430px) {
	.atp-trading-title h1 { font-size: 27px; }
	.atp-trading-ledger-head { align-items: flex-start; }
	.atp-trading-update strong { line-height: 1.2; }
	.atp-trading-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.atp-trading-results > div { border-right: 1px solid var(--atpt-line); border-bottom: 1px solid var(--atpt-line); }
	.atp-trading-results > div:nth-of-type(even) { border-right: 0; }
	.atp-trading-results > div:nth-last-of-type(-n+2) { border-bottom: 0; }
}

/* Diseño híbrido: identidad operativa oscura dentro de la interfaz clara de ActivoTrading. */
body.atp-trading-page,
body.atp-trading-history-page { background: #f4f7f6; color: #123b4b; }
body.atp-trading-page main,
body.atp-trading-history-page main { background: #f4f7f6; }
body.atp-trading-page main.at-content-shell,
body.atp-trading-history-page main.at-content-shell {
	max-width: none !important;
	padding: 0 !important;
}
body.atp-trading-page main.at-content-shell > .at-article-content,
body.atp-trading-history-page main.at-content-shell > .at-article-content {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.atp-trading-surface,
.atp-trading-history-shell { color: #123b4b; }
.atp-trading-surface { padding-top: 34px; }
.atp-trading-history-shell {
	width: min(1180px, calc(100% - 40px));
	padding-top: 34px;
}
.atp-trading-breadcrumb { color: #657d86; }
.atp-trading-breadcrumb a { color: #087da7; }

.atp-trading-surface section,
.atp-trading-surface .atp-trading-hero { scroll-margin-top: 76px; }
.atp-trading-nav {
	position: sticky;
	top: 5px;
	z-index: 30;
	border-color: #d5e2e6;
	background: rgba(255,255,255,.97);
	box-shadow: 0 8px 25px rgba(0,53,78,.07);
}
.admin-bar .atp-trading-nav { top: 37px; }
.atp-trading-nav a { color: #345865; }
.atp-trading-nav a:hover { color: #004d6b; }
.atp-trading-nav a:last-child { color: #087da7; }

.atp-trading-chart .atvc-tv-head-actions { align-items: flex-end; display: flex; flex-direction: column; gap: 6px; }
.atp-trading-chart .atvc-tv-head-actions > span { color: var(--atpt-muted); font-size: 12px; }
.atp-trading-chart .atvc-tv-head-actions button {
	margin: 0;
	padding: 7px 11px;
	border: 1px solid #315a70;
	border-radius: 999px;
	background: #122b39;
	color: #bfe8f8;
	font-size: 11px;
	font-weight: 750;
	line-height: 1;
	cursor: pointer;
}
.atp-trading-chart .atvc-tv-head-actions button:hover,
.atp-trading-chart .atvc-tv-head-actions button.is-active { border-color: #53bce9; background: #087da7; color: #fff; }

.atp-trading-now,
.atp-trading-section {
	border-color: #d5e2e6;
	background: #fff;
	box-shadow: 0 14px 36px rgba(0,53,78,.06);
}
.atp-trading-now h2,
.atp-trading-section h2 { color: #003f5b; }
.atp-trading-section > header p { color: #607983; }
.atp-trading-news-card,
.atp-trading-analysis-grid article {
	border-color: #d7e4e8;
	background: #f8fbfb;
}
.atp-trading-news-card h3,
.atp-trading-analysis-grid h3 { color: #073f56; }
.atp-trading-news-card p,
.atp-trading-analysis-grid p { color: #607983; }
.atp-trading-analysis-grid time,
.atp-trading-news-card > div { color: #758b94; }
.atp-trading-news-card footer a,
.atp-trading-analysis-grid footer a { color: #006d95; }
.atp-trading-content-empty {
	border-color: #bfd3da;
	background: #f7fafb;
}
.atp-trading-content-empty b { color: #003f5b; }
.atp-trading-content-empty p { color: #607983; }

.atp-trading-surface .atvc-community {
	border-color: #d5e2e6;
	background: #fff;
	color: #153e4d;
	box-shadow: 0 14px 36px rgba(0,53,78,.06);
}
.atp-trading-surface .atvc-community .atvc-section-head h2,
.atp-trading-surface .atvc-community h3,
.atp-trading-surface .atvc-community b { color: #003f5b; }
.atp-trading-surface .atvc-community .atvc-section-head p,
.atp-trading-surface .atvc-community p { color: #607983; }
.atp-trading-surface .atvc-community-body,
.atp-trading-surface .atvc-community-stream,
.atp-trading-surface .atvc-presence-panel { border-color: #d7e4e8; background: #f8fbfb; }
.atp-trading-surface .atvc-message { border-color: #d9e6e9; background: #fff; }
.atp-trading-surface .atvc-message.is-system { background: #edf7f9; }
.atp-trading-surface .atvc-composer { border-color: #d4e2e6; background: #f7fafb; }
.atp-trading-surface .atvc-composer textarea { border-color: #bfd2d7; background: #fff; color: #173844; }
.atp-trading-surface .atvc-message-actions button,
.atp-trading-surface .atvc-message-actions a { color: #397082; }

/* Histórico: cabecera financiera oscura y contenido de lectura claro. */
.atp-trading-history-shell .atp-history {
	--at-positive: #087d59;
	--at-negative: #b23845;
	color: #173f4e;
}
.atp-trading-history-shell .atp-history-head {
	border-color: #284252;
	background: radial-gradient(circle at 82% 0, rgba(29,151,198,.2), transparent 38%), linear-gradient(135deg,#101e29,#0b151f 70%);
	box-shadow: 0 18px 44px rgba(0,53,78,.12);
}
.atp-trading-history-shell .atp-history-head h2 { color: #fff; }
.atp-trading-history-shell .atp-history-head > div > span,
.atp-trading-history-shell .atp-history-head p,
.atp-trading-history-shell .atp-history-benchmark span,
.atp-trading-history-shell .atp-history-benchmark small { color: #aebfca; }
.atp-trading-history-shell .atp-history-benchmark { border-color: #486170; }
.atp-trading-history-shell .atp-history-benchmark strong { color: #61c5eb; }
.atp-trading-history-shell .atp-history-kpis {
	border-color: #d5e2e6;
	background: #d5e2e6;
	box-shadow: 0 12px 32px rgba(0,53,78,.06);
}
.atp-trading-history-shell .atp-history-kpis > div { background: #fff; }
.atp-trading-history-shell .atp-history-kpis span { color: #6a8089; }
.atp-trading-history-shell .atp-history-kpis strong { color: #083f55; }
.atp-trading-history-shell .atp-history-filters {
	border-color: #d5e2e6;
	background: #eef5f6;
	box-shadow: none;
}
.atp-trading-history-shell .atp-history-filters label { color: #496a77; }
.atp-trading-history-shell .atp-history-filters input,
.atp-trading-history-shell .atp-history-filters select { border-color: #c5d7dc; background: #fff; color: #173844; }
.atp-trading-history-shell .atp-history-panel {
	border-color: #d5e2e6;
	background: #fff;
	box-shadow: 0 14px 36px rgba(0,53,78,.06);
}
.atp-trading-history-shell .atp-history-section-head { border-color: #d5e2e6; }
.atp-trading-history-shell .atp-history-section-head p { max-width: 620px; }
.atp-trading-history-shell .atp-history-section-head h3,
.atp-trading-history-shell .atp-history-empty strong { color: #003f5b; }
.atp-trading-history-shell .atp-history-section-head p,
.atp-trading-history-shell .atp-history-empty,
.atp-trading-history-shell .atp-history-legend span { color: #607983; }
.atp-trading-history-shell .atp-history-table th { background: #075174; color: #fff; }
.atp-trading-history-shell .atp-history-table td,
.atp-trading-history-shell .atp-history-table .atp-history-sticky { border-color: #dfe8eb; background: #fff; color: #173844; }
.atp-trading-history-shell .atp-history-table tr:nth-child(even) td,
.atp-trading-history-shell .atp-history-table tr:nth-child(even) .atp-history-sticky { background: #f5f8f9; }
.atp-trading-history-shell .atp-history-table tbody tr:hover td { background: #edf6f8; }
.atp-trading-history-shell .atp-chart-grid { stroke: #dfe8ea; }
.atp-trading-history-shell .atp-chart-label,
.atp-trading-history-shell .atp-chart-date { fill: #66818c; }

@media (max-width: 600px) {
	.atp-trading-surface { width: min(100% - 20px, 1280px); padding-top: 20px; }
	.atp-trading-history-shell { width: min(100% - 20px, 1180px); padding-top: 20px; }
	.atp-trading-nav { top: 3px; }
	.admin-bar .atp-trading-nav { top: 3px; }
}
