/* WhalesStreet Trader — uses the whalesstreet theme tokens, with fallbacks. */
.wst {
	--wst-navy: var(--navy, #20295f);
	--wst-ink: var(--ink, #1b2140);
	--wst-slate: var(--slate, #4a5662);
	--wst-paper: var(--paper, #f4f6fa);
	--wst-blue: var(--blue, #4b8ac7);
	--wst-ok: var(--ok, #1f7a55);
	--wst-warn: var(--warn, #9a5b00);
	--wst-bad: var(--bad, #a12a2a);
	--wst-line: #e3e7ef;
	--wst-r: var(--r-m, 14px);
	--wst-rs: var(--r-s, 8px);
	font-family: var(--font, system-ui, sans-serif);
	color: var(--wst-ink);
	font-size: var(--fs-s, 0.9375rem);
	line-height: 1.55;
	margin: 0 0 2rem;
}
.wst *, .wst *::before, .wst *::after { box-sizing: border-box; }
.wst h2, .wst h3, .wst h4 { color: var(--wst-navy); margin: 0 0 .5rem; line-height: 1.25; }
.wst h3 { font-size: var(--fs-m, 1.0625rem); }
.wst h4 { font-size: var(--fs-s, .9375rem); }
.wst-card {
	background: #fff;
	border: 1px solid var(--wst-line);
	border-radius: var(--wst-r);
	padding: clamp(16px, 3vw, 24px);
	margin-bottom: 16px;
	box-shadow: 0 1px 2px rgba(18, 22, 42, .04);
}
.wst-center { text-align: center; }
.wst-muted, .wst-help { color: var(--wst-slate); }
.wst-help { margin: 0 0 1rem; }
.wst-disclaimer { color: var(--wst-slate); font-size: var(--fs-xs, .8125rem); margin-top: 12px; }

.wst-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 10px 18px;
	background: var(--wst-navy); color: #fff; border: 1px solid var(--wst-navy);
	border-radius: var(--wst-rs); font: inherit; font-weight: 600; cursor: pointer;
	text-decoration: none; list-style: none;
}
.wst-btn:hover { background: var(--navy-deep, #151b44); color: #fff; }
.wst-btn:disabled { opacity: .55; cursor: progress; }
.wst-btn-ghost { background: transparent; color: var(--wst-navy); }
.wst-btn-ghost:hover { background: var(--wst-paper); color: var(--wst-navy); }
.wst-btn:focus-visible, .wst-tab:focus-visible, .wst input:focus-visible, .wst select:focus-visible, .wst textarea:focus-visible, .wst-link:focus-visible {
	outline: none; box-shadow: var(--focus, 0 0 0 3px #fff, 0 0 0 5px #4b8ac7);
}
.wst summary.wst-btn::-webkit-details-marker { display: none; }
.wst-link { background: none; border: 0; min-height: 44px; min-width: 44px; padding: 4px 8px; color: var(--wst-blue); font: inherit; cursor: pointer; text-decoration: underline; }

.wst-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 16px; margin: 1rem 0; }
.wst label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: var(--fs-xs, .8125rem); color: var(--wst-slate); }
.wst label[hidden] { display: none; }
.wst-full { margin-bottom: 1rem; }
.wst input, .wst select, .wst textarea {
	width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; font-size: 16px; color: var(--wst-ink);
	background: #fff; border: 1px solid #cfd6e3; border-radius: var(--wst-rs);
}
.wst textarea { min-height: auto; resize: vertical; }
.wst-check { flex-direction: row !important; align-items: center; gap: 6px !important; }
.wst-check input { width: auto; min-height: auto; }
.wst-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wst-form-msg { color: var(--wst-slate); }

.wst-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 24px; }
.wst-filters label { flex: 1 1 160px; }
.wst-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.wst-areas a { display: block; padding: 12px 14px; border: 1px solid var(--wst-line); border-radius: var(--wst-r); background: #fff; color: var(--wst-navy); text-decoration: none; font-weight: 600; min-height: 44px; }
.wst-areas a span { display: block; font-weight: 400; font-size: var(--fs-xs, .8125rem); color: var(--wst-slate); }
.wst-areas a:hover, .wst-areas a:focus-visible { border-color: var(--wst-blue); }
.wst-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.wst-tab {
	min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--wst-line);
	background: #fff; color: var(--wst-navy); font: inherit; font-weight: 600; cursor: pointer;
}
.wst-tab.is-active { background: var(--wst-navy); color: #fff; border-color: var(--wst-navy); }

.wst-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.wst-out div { background: var(--wst-paper); border-radius: var(--wst-rs); padding: 10px 12px; }
.wst-out .is-key { background: var(--wst-navy); color: #fff; }
.wst-out .is-key dt { color: var(--blue-soft, #a9c8e8); }
.wst-out dt { font-size: var(--fs-xs, .8125rem); color: var(--wst-slate); }
.wst-out dd { margin: 2px 0 0; font-size: var(--fs-l, 1.375rem); font-weight: 600; font-variant-numeric: tabular-nums; }

.wst-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.wst-stat { background: #fff; border: 1px solid var(--wst-line); border-radius: var(--wst-r); padding: 14px 16px; display: flex; flex-direction: column; }
.wst-stat span, .wst-stat small { color: var(--wst-slate); font-size: var(--fs-xs, .8125rem); }
.wst-stat strong { font-size: var(--fs-l, 1.375rem); color: var(--wst-navy); font-variant-numeric: tabular-nums; }

.wst-table-wrap { overflow-x: auto; padding: 0; position: relative; } /* position: the visually-hidden header cell must not escape the scroll box */
.wst-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wst-table th, .wst-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--wst-line); white-space: nowrap; }
.wst-table th { font-size: var(--fs-xs, .8125rem); color: var(--wst-slate); font-weight: 600; background: var(--wst-paper); }
.wst-pos { color: var(--wst-ok); }
.wst-neg { color: var(--wst-bad); }

.wst-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.wst-list { list-style: none; margin: 0 0 12px; padding: 0; }
.wst-list li { padding: 8px 0; border-bottom: 1px solid var(--wst-line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wst-list li:last-child { border-bottom: 0; }

.wst-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wst-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs, .8125rem); font-weight: 600; background: var(--wst-navy); color: #fff; }
.wst-badge-muted { background: var(--wst-paper); color: var(--wst-slate); }
.wst-bias-bullish { background: var(--wst-ok); }
.wst-bias-bearish { background: var(--wst-bad); }
.wst-bias-neutral { background: var(--wst-slate); }

.wst-analysis-card { background: #fff; border: 1px solid var(--wst-line); border-radius: var(--wst-r); padding: clamp(16px, 3vw, 24px); }
.wst-meta { color: var(--wst-slate); font-size: var(--fs-xs, .8125rem); }
.wst-levels ul { margin: 0; padding-inline-start: 18px; font-variant-numeric: tabular-nums; }
.wst-scenario { border-inline-start: 4px solid var(--wst-slate); background: var(--wst-paper); border-radius: var(--wst-rs); padding: 12px 14px; margin: 12px 0; }
.wst-bull { border-color: var(--wst-ok); }
.wst-bear { border-color: var(--wst-bad); }
.wst-invalid { border-color: var(--wst-warn); }

.wst-dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; }
.wst-quick { display: flex; flex-wrap: wrap; gap: 8px; }

.wst-chat { display: flex; flex-direction: column; border: 1px solid var(--wst-line); border-radius: var(--wst-r); background: #fff; overflow: hidden; }
.wst-chat-log { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: min(65vh, 640px); min-height: 260px; overflow-y: auto; background: var(--wst-paper); }
.wst-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; overflow-wrap: anywhere; }
.wst-msg p { margin: 0 0 .5em; }
.wst-msg p:last-child, .wst-msg ul:last-child { margin-bottom: 0; }
.wst-msg ul { margin: 0 0 .5em; padding-inline-start: 18px; }
.wst-msg-user { align-self: flex-end; background: var(--wst-navy); color: #fff; }
.wst-msg-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--wst-line); }
.wst-msg-error { border-color: var(--wst-bad); color: var(--wst-bad); }
.wst-chat-form { padding: 12px; border-top: 1px solid var(--wst-line); }
.wst-chat-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.wst-chat-bar .wst-btn[type=submit] { margin-inline-start: auto; }
.wst-file { flex-direction: row !important; color: var(--wst-navy) !important; font-size: inherit !important; }
.wst-chat-meta, .wst-file-name { color: var(--wst-slate); font-size: var(--fs-xs, .8125rem); margin: 0; }
.wst-chat .wst-disclaimer { padding: 0 12px 12px; margin: 0; }

@media (max-width: 600px) {
	.wst-msg { max-width: 100%; }
	.wst-chat-bar .wst-btn[type=submit] { width: 100%; }
	.wst-quick .wst-btn { flex: 1 1 auto; }
}

/* Unified member navigation */
.wst-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.wst-shell .ws-tabs { display: none; } /* core account tabs are covered by the sidebar */
.wst-nav { font-family: var(--font, system-ui, sans-serif); position: sticky; top: 96px; }
.wst-nav ul { list-style: none; margin: 0; padding: 0; }
.wst-nav__toggle > summary { display: none; }
.wst-nav__sec { margin-bottom: 6px; }
.wst-nav__top { display: block; padding: 10px 12px; border-radius: var(--r-s, 8px); font-weight: 600; color: var(--navy, #20295f); text-decoration: none; min-height: 44px; }
.wst-nav__sec ul a { display: block; padding: 8px 12px 8px 24px; padding-inline-start: 24px; color: var(--slate, #4a5662); text-decoration: none; font-size: var(--fs-s, .9375rem); border-radius: var(--r-s, 8px); min-height: 40px; }
.wst-nav a:hover, .wst-nav a:focus-visible { background: var(--paper, #f4f6fa); color: var(--navy, #20295f); outline: none; }
.wst-nav a[aria-current="page"] { background: var(--navy, #20295f); color: #fff; }
.wst-nav__sec.is-active > .wst-nav__top { background: var(--paper, #f4f6fa); }
.wst-nav__admin { border-top: 1px solid #e3e7ef; padding-top: 8px; margin-top: 10px; }
.wst-nav__d > summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
.wst-nav__d > summary::-webkit-details-marker { display: none; }
.wst-nav__d > summary .wst-nav__top { flex: 1; }
.wst-nav__d > summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: 0 14px; border-right: 2px solid var(--slate, #4a5662); border-bottom: 2px solid var(--slate, #4a5662); transform: rotate(45deg); transition: transform .15s; }
.wst-nav__d[open] > summary::after { transform: rotate(-135deg); }
.wst-nav__d > summary:focus-visible { outline: 2px solid var(--navy, #20295f); outline-offset: 2px; border-radius: var(--r-s, 8px); }
.wst-archive-nav { margin-bottom: 20px; }
@media (max-width: 900px) {
	.wst-shell { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.wst-nav { position: static; border: 1px solid #e3e7ef; border-radius: var(--r-m, 14px); background: #fff; }
	.wst-nav__toggle > summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-weight: 600; color: var(--navy, #20295f); cursor: pointer; }
	.wst-nav__toggle > ul { padding: 0 8px 8px; }
}

/* Block navigation on multi-section templates (EA page, course catalogue, analysis archive) */
.ws-wrap > .wst-nav, .wst-filters + .wst-nav, .ws-section .wst-nav:not(.wst-shell .wst-nav) { position: static; margin-bottom: 24px; }
@media (min-width: 901px) { .wst-nav:not(.wst-shell .wst-nav) .wst-nav__d > summary::after { display: none; } .wst-nav:not(.wst-shell .wst-nav) .wst-nav__d > ul { display: none; } .wst-nav:not(.wst-shell .wst-nav) .wst-nav__toggle > ul { display: flex; flex-wrap: wrap; gap: 4px 18px; } .wst-nav:not(.wst-shell .wst-nav) .wst-nav__sec ul { display: none; } .wst-nav:not(.wst-shell .wst-nav) .wst-nav__sec { margin: 0; } }

/* Line charts (ECB history, journal equity) */
.wst-chartbox { margin-top: 1.25rem; border-top: 1px solid var(--wst-line); padding-top: 1rem; }
.wst-chart-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.wst-chart-head h4 { margin: 0; font-size: 1rem; }
.wst-chart { position: relative; min-height: 180px; }
.wst-chart svg { display: block; width: 100%; height: 220px; direction: ltr; touch-action: pan-y; cursor: crosshair; }
.wst-chart-line { fill: none; stroke: var(--wst-blue); stroke-width: 2; }
.wst-chart-zero { stroke: var(--wst-line); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.wst-chart-cursor { stroke: var(--wst-slate); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
.wst-chart-dot { fill: var(--wst-navy); }
.wst-chart-read { font-weight: 600; font-variant-numeric: tabular-nums; min-height: 1.5em; direction: ltr; text-align: start; }
.wst-chart-axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--wst-slate); direction: ltr; }
.wst-chart-note { font-size: .85rem; }
@media (max-width: 600px) { .wst-chart svg { height: 180px; } }

/* Assistant replies: numbered lists, tables, inline code */
.wst-msg ol { margin: 0 0 .5em; padding-inline-start: 22px; }
.wst-msg li { margin-bottom: .25em; }
.wst-msg code { font-size: .9em; background: var(--wst-paper); padding: 1px 5px; border-radius: 4px; direction: ltr; unicode-bidi: isolate; }
.wst-msg-table { overflow-x: auto; margin: 0 0 .5em; max-width: 100%; }
.wst-msg-table table { border-collapse: collapse; font-size: .9em; min-width: 100%; }
.wst-msg-table th, .wst-msg-table td { border: 1px solid var(--wst-line); padding: 6px 8px; text-align: start; vertical-align: top; }
.wst-msg-table th { background: var(--wst-paper); }
.wst-chat-form textarea { width: 100%; box-sizing: border-box; }

.wst-msg pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--wst-paper); border-radius: 8px; padding: 8px 10px; margin: 0 0 .5em; font-size: .9em; text-align: left; }


.wst-sources { margin: .5em 0 0; padding-top: .4em; border-top: 1px dashed var(--wst-line); color: var(--wst-slate); }


/* Candlestick chart */
.wst-chart-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.wst-chartbox [data-wst-candles] svg, .wst-chartbox svg { overflow: visible; }
.wst-c-up { stroke: var(--wst-ok); fill: var(--wst-ok); vector-effect: non-scaling-stroke; }
.wst-c-dn { stroke: var(--wst-bad); fill: var(--wst-bad); vector-effect: non-scaling-stroke; }
.wst-c-grid { stroke: var(--wst-line); vector-effect: non-scaling-stroke; }
.wst-c-ax { fill: var(--wst-slate); font-size: 11px; }
.wst-c-sma { fill: none; stroke: var(--wst-blue); stroke-width: 1.5; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.wst-c-spot { stroke: var(--wst-navy); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
[data-wst-candles] .wst-chart svg { height: 300px; }
[data-wst-candles] .wst-chart-read { font-size: .8rem; white-space: normal; }
@media (max-width: 600px) { [data-wst-candles] .wst-chart svg { height: 240px; } }

.wst-nav__na { display: block; padding: 4px 10px; color: var(--wst-slate); opacity: .7; cursor: default; }
.wst-nav__na small { font-size: .7rem; border: 1px solid var(--wst-line); border-radius: 999px; padding: 0 6px; margin-inline-start: 4px; }


/* Calendar, news, alerts, strategies, materials */
.wst-feed .wst-filters, .wst-materials .wst-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 14px; }
.wst-cal tr.is-past td { opacity: .6; }
.wst-imp { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--wst-line); }
.wst-imp-high { background: #fde8e8; color: var(--wst-bad); border-color: #f5c2c2; }
.wst-imp-medium { background: #fff4e0; color: var(--wst-warn); border-color: #f3dcae; }
.wst-news { list-style: none; margin: 0; padding: 0; }
.wst-news li { padding: 12px 0; border-bottom: 1px solid var(--wst-line); }
.wst-news__title { font-weight: 600; display: block; }
.wst-news__meta, .wst-news__rel { display: block; font-size: .8rem; color: var(--wst-slate); margin-top: 3px; }
.wst-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.wst-alert-hit { background: #eaf6ef; border: 1px solid #bfe3cd; color: var(--wst-ok); padding: 10px 12px; border-radius: var(--wst-rs); }
.wst-msg-ok { color: var(--wst-ok); } .wst-msg-error { color: var(--wst-bad); }
.wst-alert-form label, .wst-strategies form.wst-card label { display: block; margin-bottom: 10px; }
.wst-alert-form input, .wst-alert-form select, .wst-strategies input, .wst-strategies textarea { width: 100%; box-sizing: border-box; }
.wst-alert-form .wst-check input { width: auto; }
.wst-inline { display: inline; }
.wst-material-video iframe { max-width: 100%; }

.wst-about-data{margin-top:12px;font-size:.85rem;color:var(--wst-muted,#6b7280)}.wst-about-data summary{cursor:pointer;font-weight:500}.wst-about-data p{margin:.5em 0 0}

/* Journal: performance breakdown + CSV import (added 0.8.0) */
.wst-analytics h4 { margin-top: 1rem; }
.wst-analytics .wst-table td, .wst-analytics .wst-table th { white-space: nowrap; }
.wst-import input[type=file] { width: 100%; max-width: 420px; }
.wst-import .wst-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.wst-import-msg { color: var(--wst-slate); margin-top: 8px; overflow-wrap: anywhere; }

/* Member workspace layout: use the full page width (same as the page title) instead of the 72ch reading column,
   so the side menu and the tools line up with the heading; compact page header on workspace pages. */
.ws-wrap.ws-prose:has(> .wst-shell) { max-width: none; }
.ws-prose > .wst-shell + *, .ws-prose > * + .wst-shell { margin-top: 0; }
.ws-main:has(.wst-shell) .ws-page-head h1 { font-size: var(--fs-xl, 1.75rem); }
.ws-main:has(.wst-shell) .ws-page-head { padding-block: clamp(20px, 3vw, 32px); }
.wst-shell__main > .wst:first-child, .wst-shell__main > *:first-child { margin-top: 0; }

/* =====================================================================================
   Platform shell 0.10 — one application layout for every signed-in member area.
   Dark sidebar + page header, light working canvas, dark market workspace.
   Only applies under body.wst-app (set by WST_Nav::is_app()); public pages are untouched.
   ===================================================================================== */
body.wst-app {
	--a-bg: #eef1f6; --a-panel: #fff; --a-line: #dfe4ee; --a-line-2: #eef1f6; --a-text: #1b2140; --a-muted: #5f6b80;
	--a-side: #0d1120; --a-head: #12162a; --a-accent: #4b8ac7; --a-accent-2: #8fb6de; --a-up: #26a269; --a-down: #e5534b;
	display: grid; grid-template-columns: 264px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto;
	min-height: 100vh; background: var(--a-bg); color: var(--a-text);
}
body.wst-app > * { grid-column: 2; min-width: 0; }
body.wst-app > .wsa-side { grid-column: 1; grid-row: 1 / span 4; }
body.wst-app > .ws-header { grid-row: 1; }
body.wst-app > .wsa-head { grid-row: 2; }
body.wst-app > .ws-main { grid-row: 3; }
body.wst-app > .ws-footer { grid-row: 4; }
body.wst-app > .wsa-scrim { display: none; }

/* ---------- sidebar */
.wsa-side {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3352 transparent;
	display: flex; flex-direction: column; background: var(--a-side); color: rgba(255, 255, 255, .75);
	border-inline-end: 1px solid rgba(169, 200, 232, .1); z-index: 60; font-family: var(--font, system-ui, sans-serif);
}
.wsa-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 18px; border-bottom: 1px solid rgba(169, 200, 232, .1); min-height: 64px; }
.wsa-brand .ws-logo img, .wsa-brand .custom-logo { height: 34px; width: auto; }
.wsa-close { display: none; }
.wsa-side .wst-nav--app { position: static; padding: 12px 10px 16px; flex: 1; border: 0; background: none; font-size: .875rem; }
.wsa-side .wst-nav--app ul { list-style: none; margin: 0; padding: 0; }
.wsa-side .wst-nav--app .wst-nav__sec { margin: 0 0 2px; }
.wsa-side .wst-nav--app .wst-nav__top { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: rgba(255, 255, 255, .78); font-weight: 500; background: none; text-decoration: none; }
.wsa-side .wst-nav--app .wst-ico { flex: none; opacity: .8; }
.wsa-side .wst-nav--app a:hover, .wsa-side .wst-nav--app a:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; }
.wsa-side .wst-nav--app .wst-nav__sec.is-active > .wst-nav__top,
.wsa-side .wst-nav--app .wst-nav__sec.is-active > .wst-nav__d > summary .wst-nav__top { color: #fff; background: rgba(75, 138, 199, .16); }
.wsa-side .wst-nav--app .wst-nav__sec.is-active .wst-ico { color: var(--a-accent-2); opacity: 1; }
.wsa-side .wst-nav--app .wst-nav__d > summary { border-radius: 8px; }
.wsa-side .wst-nav--app .wst-nav__d > summary::after { width: 7px; height: 7px; margin: 0 10px; border-color: rgba(255, 255, 255, .35); border-width: 0 1.5px 1.5px 0; border-style: solid; }
.wsa-side .wst-nav--app .wst-nav__d > summary:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 1px; }
.wsa-side .wst-nav--app .wst-nav__sec ul { margin: 2px 0 8px; margin-inline-start: 19px; padding: 0; padding-inline-start: 10px; border-inline-start: 1px solid rgba(169, 200, 232, .14); }
.wsa-side .wst-nav--app .wst-nav__sec ul a { display: block; min-height: 34px; padding: 7px 10px; color: rgba(255, 255, 255, .58); font-size: .8125rem; border-radius: 6px; background: none; text-decoration: none; }
.wsa-side .wst-nav--app a[aria-current="page"] { background: rgba(75, 138, 199, .22); color: #fff; font-weight: 500; }
.wsa-side .wst-nav--app .wst-nav__sec ul a[aria-current="page"] { border-inline-start: 2px solid var(--a-accent); border-start-start-radius: 0; border-end-start-radius: 0; }
.wsa-side .wst-nav--app .wst-nav__na { color: rgba(255, 255, 255, .35); padding: 7px 10px; font-size: .8125rem; }
.wsa-side .wst-nav--app .wst-nav__na small { border-color: rgba(255, 255, 255, .2); }
.wsa-side .wst-nav--app .wst-nav__admin { border-top: 1px solid rgba(169, 200, 232, .1); padding-top: 10px; margin-top: 10px; }
.wsa-user { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-top: 1px solid rgba(169, 200, 232, .1); }
.wsa-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .875rem; color: #fff; background: linear-gradient(135deg, #4b8ac7, #20295f); }
.wsa-user__t { display: grid; min-width: 0; line-height: 1.3; }
.wsa-user__t strong { color: #fff; font-size: .8125rem; font-weight: 600; }
.wsa-user__t small { color: rgba(255, 255, 255, .45); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- top bar (the site header, compacted) */
.wst-app .ws-header { background: rgba(13, 17, 32, .96); border-bottom: 1px solid rgba(169, 200, 232, .1); }
.wst-app .ws-header .ws-wrap { width: auto; max-width: none; margin: 0; padding-inline: clamp(16px, 2.2vw, 28px); }
.wst-app .ws-header__inner { min-height: 56px; }
.wst-app .ws-header .ws-logo { display: none; }
.wst-app .ws-header .ws-nav { margin-inline-start: auto; }
.wst-app .ws-nav__list { gap: 22px; }
.wst-app .ws-nav__list a, .wst-app .ws-nav__login { font-size: .8125rem; }
.wst-app .ws-nav__account a { font-size: .8125rem; }

/* ---------- page header */
.wsa-head { background: radial-gradient(70% 140% at 100% 0%, rgba(75, 138, 199, .18), transparent 60%), linear-gradient(180deg, #12162a, #161c36); color: #fff; padding: 22px clamp(16px, 2.2vw, 28px) 0; border-bottom: 1px solid rgba(169, 200, 232, .12); font-family: var(--font, system-ui, sans-serif); }
.wsa-head__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.wsa-head__t { min-width: 0; }
.wsa-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--a-accent-2); }
.wsa-title { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.1vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.wsa-desc { margin: 6px 0 0; color: rgba(255, 255, 255, .62); font-size: .875rem; line-height: 1.5; max-width: 72ch; }
.wsa-head__act { display: flex; gap: 8px; align-items: center; flex: none; }
.wsa-head__act .ws-lang { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; color: #fff; font-size: .8125rem; text-decoration: none; }
.wsa-head__act .ws-lang:hover { background: rgba(255, 255, 255, .08); }
.wsa-menu { display: none; }
.wsa-tabs ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.wsa-tabs ul::-webkit-scrollbar { display: none; }
.wsa-tabs a, .wsa-tabs .is-na { display: block; white-space: nowrap; padding: 11px 14px; color: rgba(255, 255, 255, .62); font-size: .8125rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.wsa-tabs a:hover { color: #fff; }
.wsa-tabs a[aria-current] { color: #fff; border-bottom-color: var(--a-accent); }
.wsa-tabs .is-na { opacity: .45; cursor: default; }
.wsa-tabs .is-na small { font-size: .65rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; padding: 0 6px; }
.wsa-head:not(:has(.wsa-tabs)) .wsa-head__row { padding-bottom: 22px; }

/* ---------- working canvas */
.wst-app--head .ws-main > .ws-page-head, .wst-app--head .ws-main > .ws-hero { display: none; }
.wst-app .ws-main { font-size: .9375rem; }
.wst-app .ws-main .ws-wrap { width: auto; max-width: 1480px; margin-inline: 0; padding-inline: clamp(16px, 2.2vw, 28px); }
.wst-app .ws-main .ws-wrap.ws-narrow { max-width: 1480px; }
.wst-app .ws-section { padding-block: 24px 40px; }
.wst-app .ws-section--page { padding-top: 24px; }
.wst-app .ws-section--tint { background: transparent; padding-top: 0; }
.wst-app .ws-section--tint > .ws-wrap { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; padding: 20px 24px; margin-inline: clamp(16px, 2.2vw, 28px); max-width: calc(1480px - 2 * clamp(16px, 2.2vw, 28px)); }
.wst-app .ws-section--tint > .ws-wrap > h2 { font-size: 1rem; }
.wst-app .ws-prose { max-width: none; }
.wst-app .ws-main h2 { font-size: 1.15rem; }
.wst-app .ws-account > h2 { font-size: 1.25rem; margin-bottom: 16px; }
.wst-app--hero .ws-main > .ws-hero { padding-block: 28px 36px; background: radial-gradient(60% 120% at 100% 0%, rgba(75, 138, 199, .25), transparent 60%), linear-gradient(180deg, #161c36, #20295f); }
.wst-app--hero .ws-main > .ws-hero .ws-hero__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 30ch; }
.wst-app--hero .ws-main > .ws-hero .ws-hero__text { font-size: 1rem; }
.wst-app--hero .ws-main > .ws-hero .ws-pulse { display: none; }
.wst-app--hero .ws-main > .ws-page-head { background: transparent; border: 0; padding-block: 24px 0; }

/* panels */
.wst-app .ws-card, .wst-app .wst-card, .wst-app .wst-analysis-card, .wst-app .ws-plan, .wst-app .wst-stat {
	background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
}
.wst-app .ws-card { padding: 20px; }
.wst-app .ws-card:not(.ws-course):not(.ws-stat) > h3:first-child, .wst-app .wst-card > h3:first-child, .wst-app .wst-card > h2:first-child {
	font-size: .9375rem; font-weight: 600; color: #20295f; margin: -2px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--a-line-2);
}
.wst-app .ws-grid { gap: 16px; }
.wst-app .ws-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }

/* KPI tiles on the overview */
.wst-app .ws-account .ws-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; margin-bottom: 18px; }
.wst-app .ws-card.ws-stat { position: relative; gap: 2px; padding: 18px 20px 16px; border-top: 3px solid var(--a-accent); }
.wst-app .ws-grid > .ws-stat:nth-child(4n + 2) { border-top-color: #1f7a55; }
.wst-app .ws-grid > .ws-stat:nth-child(4n + 3) { border-top-color: #b8892c; }
.wst-app .ws-grid > .ws-stat:nth-child(4n + 4) { border-top-color: #20295f; }
.wst-app .ws-stat__n { font-size: 2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wst-app .ws-stat__n--text { font-size: 1.25rem; }
.wst-app .ws-stat a { font-size: .8125rem; font-weight: 500; color: var(--a-accent); text-decoration: none; margin-top: 6px; }
.wst-app .ws-stat a:hover { text-decoration: underline; }

/* lists, tables, alerts, badges */
.wst-app .ws-dl { gap: 0 24px; }
.wst-app .ws-dl dt, .wst-app .ws-dl dd { padding: 9px 0; border-bottom: 1px solid var(--a-line-2); }
.wst-app .ws-dl dt { font-size: .8125rem; }
.wst-app .ws-alert { border-radius: 10px; background: #eaf2fb; border: 1px solid #cfe0f3; border-inline-start: 4px solid var(--a-accent); font-size: .875rem; }
.wst-app .ws-alert--error { background: #fdf0ef; border-color: #f4cdca; border-inline-start-color: #a12a2a; }
.wst-app .ws-alert--success { background: #ecf7f1; border-color: #c7e7d5; border-inline-start-color: #1f7a55; }
.wst-app .ws-table, .wst-app .wst-table { font-size: .875rem; }
.wst-app .ws-table th, .wst-app .wst-table th { background: #f6f8fb; color: var(--a-muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.wst-app .ws-table th, .wst-app .ws-table td { padding: 11px 12px; border-bottom: 1px solid var(--a-line-2); }
.wst-app .ws-table tbody tr:hover, .wst-app .wst-table tbody tr:hover { background: #f8fafc; }
.wst-app .ws-table-wrap, .wst-app .wst-table-wrap { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; }
.wst-app .ws-badge { font-weight: 600; font-size: .72rem; padding: 2px 9px; }
.wst-app .ws-account > .ws-tabs, .wst-app .ws-main .ws-tabs { display: none; }
.wst-app .ws-progress { height: 8px; background: #e6eaf2; }
.wst-app .ws-progress span { background: linear-gradient(90deg, #4b8ac7, #6aa6dd); }
.wst-app .ws-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f3f5f9; border: 1px solid var(--a-line); border-radius: 8px; padding: 6px 10px; display: inline-block; direction: ltr; }
.wst-app .ws-onboarding { border-top-color: var(--a-line-2); }
.wst-app .ws-onboarding ol { padding-inline-start: 1.2em; }
.wst-app .ws-onboarding li { margin-bottom: 8px; }

/* buttons and fields: denser, application sized */
.wst-app .ws-main .ws-btn { min-height: 40px; padding: 0 16px; font-size: .875rem; border-radius: 8px; }
.wst-app .ws-main .ws-btn--sm { min-height: 34px; padding: 0 12px; font-size: .8125rem; }
.wst-app .wst-btn { min-height: 40px; padding: 8px 16px; font-size: .875rem; border-radius: 8px; }
.wst-app .ws-main input[type="text"], .wst-app .ws-main input[type="email"], .wst-app .ws-main input[type="password"], .wst-app .ws-main input[type="tel"], .wst-app .ws-main input[type="number"], .wst-app .ws-main input[type="search"], .wst-app .ws-main input[type="url"], .wst-app .ws-main input[type="date"], .wst-app .ws-main select, .wst-app .ws-main textarea {
	min-height: 42px; padding: 8px 12px; font-size: .9375rem; border: 1px solid #cfd6e3; border-radius: 8px; background-color: #fff;
}
.wst-app .ws-main textarea { min-height: 110px; }
.wst-app .wst label, .wst-app .ws-account label { font-size: .78rem; color: var(--a-muted); }

/* segmented tabs (calculators etc.) */
.wst-app .wst-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: #e6eaf2; border-radius: 10px; margin-bottom: 14px; }
.wst-app .wst-tab { min-height: 36px; padding: 6px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--a-muted); font-size: .875rem; }
.wst-app .wst-tab:hover { color: #20295f; }
.wst-app .wst-tab.is-active { background: #fff; color: #20295f; box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.wst-app .wst-out div { background: #f3f5f9; border: 1px solid var(--a-line-2); border-radius: 10px; }
.wst-app .wst-out .is-key { background: linear-gradient(135deg, #20295f, #2b3a85); border-color: transparent; }
.wst-app .wst-stat { padding: 14px 16px; }
.wst-app .wst-stat strong { font-size: 1.5rem; letter-spacing: -.01em; }

/* quick-link tiles */
.wst-app .wst-areas { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.wst-app .wst-areas a { position: relative; padding: 14px 36px 14px 16px; padding-inline: 16px 36px; border-radius: 12px; border-color: var(--a-line); font-size: .875rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wst-app .wst-areas a::after { content: ""; position: absolute; inset-inline-end: 16px; top: 18px; width: 7px; height: 7px; border-top: 1.5px solid var(--a-accent); border-inline-end: 1.5px solid var(--a-accent); transform: rotate(45deg); }
.wst-app.rtl .wst-areas a::after { transform: rotate(-45deg); }
.wst-app .wst-areas a:hover { border-color: var(--a-accent); box-shadow: 0 4px 12px rgba(32, 41, 95, .08); transform: translateY(-1px); }

/* ---------- course catalogue */
.wsa-catbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.wsa-catbar__seg { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--a-line); border-radius: 12px; }
.wsa-catbar__seg > * { display: grid; padding: 8px 18px; border-radius: 9px; text-decoration: none; line-height: 1.3; color: var(--a-muted); }
.wsa-catbar__seg b { font-size: .875rem; color: #20295f; font-weight: 600; }
.wsa-catbar__seg small { font-size: .72rem; }
.wsa-catbar__seg a:hover { background: #f3f5f9; }
.wsa-catbar__seg .is-on { background: #20295f; }
.wsa-catbar__seg .is-on b, .wsa-catbar__seg .is-on small { color: #fff; }
.wsa-catbar__note { margin: 0; font-size: .8125rem; color: var(--a-muted); }
.wst-app .ws-course { border-top: 3px solid #20295f; transition: box-shadow .15s, transform .15s; }
.wst-app .ws-course:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .1); transform: translateY(-2px); }
.wst-app .ws-course__media img { aspect-ratio: 16 / 9; }
.wst-app .ws-course h3 { font-size: 1.05rem; line-height: 1.35; margin-top: 18px; }
.wst-app .ws-course > p { font-size: .875rem; color: var(--a-muted); }
.wst-app .ws-course__foot { background: #f8fafc; border-top-color: var(--a-line-2); padding-inline: 20px; }
.wst-app .ws-price__amount { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.wst-app .ws-course-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 340px; }
.wst-app .ws-course-layout > .ws-prose { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; padding: 24px 28px; }
.wst-app .ws-curriculum { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; top: 72px; }
.wst-app .ws-buybox { border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 12px 32px rgba(5, 8, 25, .35); }
@media (max-width: 960px) { .wst-app .ws-course-layout { grid-template-columns: 1fr; } }

/* ---------- free learning library */
.wst-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; line-height: 1.5; white-space: nowrap; background: rgba(169, 200, 232, .14); color: #a9c8e8; }
.wst-chip--live { color: #5fd39a; background: rgba(46, 194, 126, .12); }
.wst-chip--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(95, 211, 154, .2); }
.wst-chip--warn { color: #f0b45a; background: rgba(240, 180, 90, .14); }
.wst-chip--off { color: #ef8a84; background: rgba(229, 83, 75, .14); }
.wst-chip--free { color: #fff; background: #1f7a55; }
.wst-lib-intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 18px; border: 1px solid #cde9d8; border-radius: 12px; background: linear-gradient(90deg, #eaf6ef, #fff 70%); }
.wst-lib-intro p { margin: 0; font-size: .875rem; color: #2c3a4f; }
.wst-materials .wst-empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed #c6d0e2; border-radius: 14px; color: var(--wst-slate); }
.wst-materials .wst-empty svg { margin: 0 auto 12px; color: var(--wst-blue); }
.wst-materials .wst-empty h3 { color: var(--wst-navy); font-size: 1.05rem; }
.wst-materials .wst-empty .wst-actions { justify-content: center; margin-top: 16px; }
.wst-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wst-lib__item { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #dfe4ee; border-radius: 12px; transition: box-shadow .15s, transform .15s; }
.wst-lib__item:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .1); transform: translateY(-2px); }
.wst-lib__media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #20295f, #12162a); }
.wst-lib__media img { width: 100%; height: 100%; object-fit: cover; }
.wst-lib__media.is-video::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(13, 17, 32, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='white'/%3E%3C/svg%3E") center/26px no-repeat; }
.wst-lib__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.wst-lib__body h3 { font-size: 1rem; margin: 0; }
.wst-lib__body h3 a { text-decoration: none; }
.wst-lib__body p { margin: 0; font-size: .875rem; color: var(--wst-slate); }
.wst-lib__meta { font-size: .75rem !important; }
.wst-lib__cta { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .875rem; color: var(--wst-blue); text-decoration: none; }

/* ---------- market workspace (Market Intelligence) */
.wst-mi { margin: 0 0 24px; padding: 0; overflow: hidden; background: #0f1426; color: #d6deec; border: 1px solid #1f2842; border-radius: 14px; box-shadow: 0 10px 30px rgba(10, 14, 30, .18); }
.wst-mi__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #1f2842; }
.wst-mi .wst-mi__bar h2 { margin: 0; color: #fff; font-size: 1rem; font-weight: 600; }
.wst-mi__status { display: flex; flex-wrap: wrap; gap: 6px; }
.wst-mi__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.wst-mi .wst-mi__chart { margin: 0; padding: 14px 18px 12px; border: 0; border-inline-end: 1px solid #1f2842; }
.wst-mi .wst-chart-head { margin-bottom: 10px; }
.wst-mi .wst-chart-head h4 { color: #fff; font-size: .875rem; }
.wst-symbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: #141b31; border: 1px solid #232d4a; border-radius: 10px; }
.wst-symbar a { padding: 6px 10px; border-radius: 7px; color: #9fb0cc; font-size: .78rem; font-weight: 600; text-decoration: none; direction: ltr; font-variant-numeric: tabular-nums; }
.wst-symbar a:hover { color: #fff; background: #1b2440; }
.wst-symbar a[aria-current] { color: #fff; background: #4b8ac7; }
.wst-symsel { display: none; }
.wst-mi select { width: auto; min-height: 34px; padding: 4px 28px 4px 10px; font-size: .8125rem; color: #e6ecf6; background-color: #141b31; border: 1px solid #2a3556; border-radius: 8px; }
.wst-mi .wst-chart { min-height: 260px; }
.wst-mi [data-wst-candles] .wst-chart svg, .wst-mi .wst-mi__chart .wst-chart svg { height: 360px; }
.wst-mi .wst-c-grid, .wst-mi .wst-chart-zero { stroke: #1f2842; }
.wst-mi .wst-c-ax { fill: #7d8aa6; }
.wst-mi .wst-c-up { stroke: var(--a-up, #26a269); fill: var(--a-up, #26a269); }
.wst-mi .wst-c-dn { stroke: var(--a-down, #e5534b); fill: var(--a-down, #e5534b); }
.wst-mi .wst-c-sma { stroke: #e2b14d; }
.wst-mi .wst-c-spot, .wst-mi .wst-chart-cursor { stroke: #a9c8e8; }
.wst-mi .wst-chart-line { stroke: #6aa6dd; }
.wst-mi .wst-chart-dot { fill: #a9c8e8; }
.wst-mi .wst-chart-read { color: #e6ecf6; }
.wst-mi .wst-muted, .wst-mi .wst-chart-axis, .wst-mi .wst-chart-note { color: #7d8aa6; }
.wst-mi__quotes { padding: 14px 0 12px; background: #0c1120; }
.wst-mi .wst-mi__quotes h3 { margin: 0 16px 8px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: #8fa0bf; }
.wst-qt { width: 100%; border-collapse: collapse; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.wst-qt th, .wst-qt td { padding: 9px 12px; text-align: start; border-bottom: 1px solid #1a2238; }
.wst-qt thead th { padding-block: 6px; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #6f7d99; }
.wst-qt tbody th { font-weight: 600; color: #e6ecf6; border-inline-start: 2px solid transparent; }
.wst-qt tbody th a { color: inherit; text-decoration: none; }
.wst-qt tbody th a:hover { color: #8fb6de; text-decoration: underline; }
.wst-qt td:nth-child(2) { color: #fff; font-weight: 600; text-align: end; }
.wst-qt tbody tr:hover { background: #121a30; }
.wst-qt tr.is-on { background: rgba(75, 138, 199, .14); }
.wst-qt tr.is-on th { border-inline-start-color: #4b8ac7; }
.wst-mi__fine { margin: 10px 16px 0; font-size: .72rem; color: #6f7d99; }
.wst-mi .wst-mi__hist { margin: 0; padding: 14px 18px; border-top: 1px solid #1f2842; }
.wst-mi .wst-about-data { margin: 0; padding: 10px 18px 14px; border-top: 1px solid #1f2842; color: #8fa0bf; }
.wst-mi .wst-about-data summary { color: #a9c8e8; }
@media (max-width: 1180px) { .wst-mi__grid { grid-template-columns: 1fr; } .wst-mi .wst-mi__chart { border-inline-end: 0; border-bottom: 1px solid #1f2842; } }
@media (max-width: 640px) { .wst-symbar { display: none; } .wst-symsel { display: block; } .wst-mi [data-wst-candles] .wst-chart svg, .wst-mi .wst-mi__chart .wst-chart svg { height: 250px; } }

/* analysis archive cards under the workspace */
.wst-app .wst-analysis-card { padding: 18px 20px; transition: box-shadow .15s; }
.wst-app .wst-analysis-card:hover { box-shadow: 0 8px 22px rgba(16, 24, 40, .08); }
.wst-app .wst-filters { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; padding: 12px 14px; }

/* ---------- footer: compact on member pages */
.wst-app .ws-footer { padding-top: 0; background: transparent; color: var(--a-muted); }
.wst-app .ws-footer__grid { display: none; }
.wst-app .ws-footer .ws-wrap { width: auto; max-width: 1480px; margin: 0; padding-inline: clamp(16px, 2.2vw, 28px); }
.wst-app .ws-footer__legal { margin: 0; padding: 16px 0 24px; border-top: 1px solid var(--a-line); font-size: .75rem; }
.wst-app .ws-footer .ws-risk, .wst-app .ws-footer p { color: #6b7690; }

/* ---------- tablet and phone: the sidebar becomes a drawer */
@media (max-width: 1024px) {
	body.wst-app { grid-template-columns: minmax(0, 1fr); }
	body.wst-app > * { grid-column: 1; }
	body.wst-app > .wsa-side { grid-column: 1; grid-row: auto; }
	.wsa-side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(300px, 86vw); height: auto; z-index: 100001; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
	body.rtl .wsa-side { transform: translateX(105%); }
	body.wsa-open .wsa-side, .wsa-side:target { transform: none !important; }
	body.wst-app > .wsa-scrim { display: block; position: fixed; inset: 0; z-index: 100000; background: rgba(5, 8, 18, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
	body.wsa-open > .wsa-scrim, .wsa-side:target ~ .wsa-scrim { opacity: 1; pointer-events: auto; }
	.wsa-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: #fff; font-size: 1.5rem; line-height: 1; text-decoration: none; }
	.wsa-close:hover { background: rgba(255, 255, 255, .08); }
	.wst-app .ws-header .ws-logo { display: block; }
	.wst-app .ws-header .ws-logo img { height: 34px; }
	.wsa-head { padding: 16px 16px 0; }
	.wsa-head__row { flex-wrap: wrap; }
	.wsa-head__t { order: 2; flex: 1 1 100%; }
	.wsa-menu { order: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; color: #fff; font-size: .8125rem; font-weight: 500; text-decoration: none; }
	.wsa-head__act { order: 1; margin-inline-start: auto; }
	.wsa-menu__bars, .wsa-menu__bars::before, .wsa-menu__bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
	.wsa-menu__bars::before { position: absolute; top: -5px; }
	.wsa-menu__bars::after { position: absolute; top: 5px; }
}
@media (max-width: 600px) {
	.wst-app .ws-section { padding-block: 16px 28px; }
	.wst-app .ws-card { padding: 16px; }
	.wst-app .ws-section--tint > .ws-wrap { margin-inline: 16px; padding: 16px; }
	.wsa-catbar__seg { width: 100%; } .wsa-catbar__seg > * { flex: 1; }
}
@media print { .wsa-side, .wsa-head, .wsa-scrim { display: none !important; } body.wst-app { display: block; } }

/* 0.10.1: fixes after browser review + ticker, interactive chart, AI workspace */
.wst-app .wst-mi select { width: auto; min-height: 34px; padding: 4px 28px 4px 10px; font-size: .8125rem; color: #e6ecf6; background-color: #141b31; border: 1px solid #2a3556; border-radius: 8px; }
@media (min-width: 1025px) { .wsa-head__act .ws-lang { display: none; } }
.wsa-ticker { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 14px; }
.wsa-ticker::-webkit-scrollbar { display: none; }
.wsa-tk { flex: none; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: baseline; padding: 7px 12px; border: 1px solid rgba(169, 200, 232, .14); border-radius: 10px; background: rgba(255, 255, 255, .03); color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.wsa-tk:hover { border-color: rgba(169, 200, 232, .35); background: rgba(255, 255, 255, .06); color: #fff; }
.wsa-tk b { font-size: .75rem; font-weight: 600; color: #a9c8e8; }
.wsa-tk span { font-size: .875rem; font-weight: 600; text-align: end; }
.wsa-tk small { grid-column: 1 / -1; font-size: .66rem; color: rgba(255, 255, 255, .45); }
.wsa-tk.is-off span { display: none; }
.wst-mi .wst-chart.wst-lwc { min-height: 0; }
.wst-lwc-box { height: 420px; }
.wst-mi .wst-lwc .wst-chart-read { font-size: .78rem; color: #c9d4e8; margin-bottom: 6px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .wst-lwc-box { height: 300px; } }
/* AI workspace */
.wst-aiw { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.wst-aiw__side { position: sticky; top: 72px; margin: 0; padding: 18px; background: #0f1426; color: #d6deec; border: 1px solid #1f2842; border-radius: 14px; }
.wst-aiw__side h2 { color: #fff; font-size: 1rem; margin: 0 0 6px; }
.wst-aiw__side .wst-muted { color: #8fa0bf; font-size: .8125rem; }
.wst-aiw__f { border: 0; margin: 14px 0 0; padding: 0; }
.wst-aiw__f legend { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8fa0bf; margin-bottom: 6px; }
.wst-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.wst-seg button { min-height: 32px; padding: 4px 10px; border: 1px solid #2a3556; border-radius: 8px; background: #141b31; color: #c9d4e8; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.wst-seg button:hover { border-color: #4b8ac7; color: #fff; }
.wst-seg button[aria-pressed="true"] { background: #4b8ac7; border-color: #4b8ac7; color: #fff; }
.wst-aiw__acts { display: grid; gap: 8px; margin-top: 16px; }
.wst-aiw__act { display: grid; gap: 2px; text-align: start; padding: 12px 14px; border: 1px solid #2a3556; border-radius: 10px; background: linear-gradient(135deg, #17203a, #121a30); color: #fff; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.wst-aiw__act:hover { border-color: #4b8ac7; transform: translateY(-1px); }
.wst-aiw__act b { font-size: .875rem; }
.wst-aiw__act small { font-size: .75rem; color: #8fa0bf; }
.wst-aiw__legend { margin-top: 18px; padding-top: 14px; border-top: 1px solid #1f2842; }
.wst-aiw__legend h3 { color: #fff; font-size: .78rem; margin: 0 0 8px; }
.wst-aiw__legend p { font-size: .75rem; color: #8fa0bf; margin: 0 0 6px; }
.wst-aiw__legend b { color: #e6ecf6; }
.wst-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.wst-dot--fact { background: #5fd39a; } .wst-dot--calc { background: #6aa6dd; } .wst-dot--ai { background: #e2b14d; }
.wst-app .wst-chat { margin: 0; background: #fff; border: 1px solid var(--a-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; min-height: 560px; }
.wst-app .wst-chat-log { flex: 1; min-height: 380px; max-height: 62vh; overflow-y: auto; }
.wst-app .wst-msg { border-radius: 12px; }
.wst-app .wst-msg-assistant { background: #f4f6fa; border: 1px solid var(--a-line-2); }
@media (max-width: 1024px) { .wst-aiw { grid-template-columns: 1fr; } .wst-aiw__side { position: static; } }
/* 0.10.2 */
.wst-mi__grid > *, .wst-mi .wst-chart-head > * { min-width: 0; }
.wst-mi .wst-lwc .wst-chart-read { direction: ltr; text-align: left; }
/* 0.10.3 */
.wst-symbar a small { font-size: .66rem; font-weight: 500; opacity: .75; }
.wst-proxy { margin: 0 0 10px; padding: 8px 12px; border: 1px solid rgba(240, 180, 90, .35); border-radius: 8px; background: rgba(240, 180, 90, .08); color: #e9c98f; font-size: .78rem; line-height: 1.5; }
.wst-proxy strong { color: #f0b45a; }
.wst-proxy[hidden] { display: none; }
/* 0.10.3 */
.wst-mi .wst-proxy { margin: 0 0 8px; padding: 7px 10px; font-size: .75rem; color: #f0c674; background: rgba(226, 177, 77, .1); border: 1px solid rgba(226, 177, 77, .3); border-radius: 8px; }
.wst-prov { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed #d5dbe7; font-size: .78rem; color: #4a5662; display: grid; gap: 4px; }
.wst-prov b { color: #1b2140; }

/* Scrolling market tape */
.wsa-tape { position: relative; overflow: hidden; margin: -6px 0 12px; border-block: 1px solid rgba(169,200,232,.12); background: rgba(255,255,255,.02); -webkit-mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.wsa-tape__run { display: flex; width: max-content; animation: wsa-tape 60s linear infinite; }
.wsa-tape:hover .wsa-tape__run { animation-play-state: paused; }
.wsa-tape__set { display: flex; }
.wsa-tp { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 16px; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; border-inline-end: 1px solid rgba(169,200,232,.08); border-radius: 4px; transition: background .6s; }
.wsa-tp:hover { color: #fff; background: rgba(255,255,255,.05); }
.wsa-tp b { font-size: .72rem; font-weight: 600; color: #a9c8e8; letter-spacing: .02em; }
.wsa-tp__p { font-size: .82rem; font-weight: 600; }
.wsa-tp i { font-style: normal; font-size: .7rem; font-weight: 600; }
.wsa-tp i.up { color: #2ecc8f; } .wsa-tp i.dn { color: #ff5d6c; }
.wsa-tp.fl-up { animation: wsa-flu 1.2s; } .wsa-tp.fl-dn { animation: wsa-fld 1.2s; }
@keyframes wsa-flu { 0% { background: rgba(46,204,143,.35); } 100% { background: transparent; } }
@keyframes wsa-fld { 0% { background: rgba(255,93,108,.35); } 100% { background: transparent; } }
@keyframes wsa-tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wsa-tape__run { animation-duration: 180s; } }

/* Secondary buttons: solid light blue with white text, readable on light and dark sections */
.wst-btn.wst-btn-ghost, a.wst-btn.wst-btn-ghost { background: #3d74b8; border-color: #3d74b8; color: #fff; }
.wst-btn.wst-btn-ghost:hover, a.wst-btn.wst-btn-ghost:hover, .wst-btn.wst-btn-ghost:focus-visible { background: #2f619f; border-color: #2f619f; color: #fff; }

/* Calendar quick ranges */
.wst-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.wst-quick .wst-chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #3d74b8; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; }
.wst-quick .wst-chip:hover, .wst-quick .wst-chip.is-on { background: #20295f; color: #fff; }
.wst-filters input[type="date"] { min-height: 44px; width: 100%; }
.wst-cal { min-width: 560px; }
.wst-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.wsa-tp.is-closed .wsa-tp__p::after { content: " ·"; opacity: .5; }
.wsa-tp.is-closed { opacity: .7; }

/* Analysis card: clearer hierarchy */
.wst-trend { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: 1.05rem; }
.wst-trend span { color: var(--wst-slate); }
.wst-trend b { padding: 4px 12px; border-radius: 999px; background: var(--wst-paper); }
.wst-sec-h { margin: 18px 0 6px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wst-slate); }
.wst-analysis-card .wst-scenario h4 { margin: 0 0 6px; font-size: 1rem; }
.wst-scenario.wst-concl { border-inline-start-color: #20295f; background: #eef3fb; font-weight: 500; }
.single-ws_analysis .entry-content img, .single-ws_analysis .ws-prose img { width: 100%; height: auto; border-radius: 12px; }

/* Page titles on the dark header stay white whatever the theme sets for headings. */
.wsa-head .wsa-title, .wsa-head h1.wsa-title, .wsa-head p.wsa-title { color: #fff !important; }

/* Contrast fixes: page titles on the dark header are white; links inside light notice boxes are navy. */
.wsa-head .wsa-title { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; opacity: 1 !important; }
.ws-alert a, .ws-alert .ws-link, .wst-app .ws-alert a { color: var(--navy, #1f2860) !important; -webkit-text-fill-color: currentColor; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Mobile menu: the toggle icon stays white in every state and becomes a close (X) when open; light buttons keep navy text. */
.ws-nav-toggle, .ws-nav-toggle:hover, .ws-nav-toggle:focus, .ws-nav-toggle:active, .ws-nav-toggle[aria-expanded="true"] { color: #fff !important; }
.ws-nav-toggle .ws-nav-toggle__bars, .ws-nav-toggle .ws-nav-toggle__bars::before, .ws-nav-toggle .ws-nav-toggle__bars::after { background: #fff !important; }
.ws-nav-toggle[aria-expanded="true"] .ws-nav-toggle__bars { background: transparent !important; }
.ws-nav-toggle[aria-expanded="true"] .ws-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.ws-nav-toggle[aria-expanded="true"] .ws-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }
.ws-btn--light, .ws-nav .ws-btn--light, .ws-nav__account .ws-btn--light, .wst-app .ws-nav__account a.ws-btn--light { color: var(--navy, #20295f) !important; -webkit-text-fill-color: var(--navy, #20295f) !important; }

/* Text links inside white cards (e.g. Forgot your password?, Create an account) stay navy and visible. */
.ws-card .ws-muted a, .ws-auth .ws-muted a { color: var(--navy, #20295f) !important; -webkit-text-fill-color: var(--navy, #20295f) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
