/* WhalesStreet Market Insight terminal (0.11). Brand: navy #20295F, light blue #4B8AC7, light gray #DDDDDD, dark gray #4A5662. */
.wst-term {
	--t-bg: #0d1224;
	--t-panel: #121935;
	--t-line: rgba(141, 155, 184, .16);
	--t-text: #e6ebf5;
	--t-dim: #8d9bb8;
	--t-blue: #4b8ac7;
	--t-navy: #20295f;
	--t-up: #2bb37b;
	--t-dn: #e5534b;
	--t-warn: #e2b14d;
	position: relative;
	background: radial-gradient(120% 80% at 85% -10%, rgba(75, 138, 199, .16), transparent 60%), var(--t-bg);
	color: var(--t-text);
	border: 1px solid rgba(75, 138, 199, .22);
	border-radius: 18px;
	padding: clamp(12px, 2vw, 20px);
	margin: 0 0 28px;
	box-shadow: 0 18px 50px -24px rgba(13, 18, 36, .7);
	font-variant-numeric: tabular-nums;
}
.wst-term h3 { color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: .01em; margin: 0 0 10px; }
.wst-term h3 small { color: var(--t-dim); font-weight: 400; font-size: .75rem; margin-inline-start: 6px; }
.wst-term h4 { color: #fff; font-size: .82rem; font-weight: 600; margin: 0 0 6px; }
.wst-term button { font: inherit; }

/* header */
.wt-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wt-syms { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.wt-syms::-webkit-scrollbar { display: none; }
.wt-syms button {
	flex: 0 0 auto; background: transparent; color: var(--t-dim); border: 1px solid transparent; border-radius: 10px;
	padding: 8px 12px; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 38px; transition: color .15s, background .15s, border-color .15s;
}
.wt-syms button:hover { color: #fff; }
.wt-syms button[aria-selected="true"] { color: #fff; background: rgba(75, 138, 199, .16); border-color: rgba(75, 138, 199, .45); }
.wt-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-seg { display: inline-flex; background: rgba(255, 255, 255, .03); border: 1px solid var(--t-line); border-radius: 10px; padding: 3px; gap: 2px; }
.wt-seg button {
	background: transparent; border: 0; color: var(--t-dim); border-radius: 7px; padding: 6px 10px; font-size: .78rem; font-weight: 500;
	cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.wt-seg button:hover:not(:disabled) { color: #fff; }
.wt-seg button[aria-pressed="true"] { background: var(--t-navy); color: #fff; box-shadow: inset 0 0 0 1px rgba(75, 138, 199, .5); }
.wt-seg button:disabled { opacity: .4; cursor: not-allowed; }
.wt-seg i { width: 10px; height: 2px; border-radius: 2px; display: inline-block; }
.wt-seg i.wt-dash { background: repeating-linear-gradient(90deg, var(--t-dn) 0 3px, transparent 3px 5px); }
.wt-seg i.wt-bars { height: 8px; width: 9px; background: linear-gradient(90deg, var(--t-up) 0 2px, transparent 2px 3px, var(--t-dn) 3px 5px, transparent 5px 6px, var(--t-up) 6px 9px); }
.wst-term button:focus-visible { outline: 2px solid var(--t-blue); outline-offset: 2px; }

/* body */
.wt-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.wt-main { min-width: 0; position: relative; }
.wt-status { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wt-chip { font-size: .72rem; line-height: 1; padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: #c9d3e6; border: 1px solid var(--t-line); white-space: nowrap; }
.wt-chip.wt-muted { color: var(--t-dim); }
.wt-chip.wt-warn { color: #1b1300; background: var(--t-warn); border-color: transparent; font-weight: 600; }
.wt-f-fresh { color: #bff0d9; background: rgba(43, 179, 123, .14); border-color: rgba(43, 179, 123, .4); }
.wt-f-delayed { color: #ffe6b0; background: rgba(226, 177, 77, .12); border-color: rgba(226, 177, 77, .4); }
.wt-f-stale { color: #ffc9c5; background: rgba(229, 83, 75, .14); border-color: rgba(229, 83, 75, .45); }
.wt-f-closed { color: #c9d3e6; background: rgba(141, 155, 184, .12); }
.wt-proxy { margin: 0 0 8px; font-size: .78rem; color: #ffe6b0; background: rgba(226, 177, 77, .08); border-inline-start: 3px solid var(--t-warn); padding: 8px 10px; border-radius: 6px; }
.wt-read { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--t-dim); min-height: 22px; margin-bottom: 4px; }
.wt-read b { color: #fff; font-weight: 600; }
.wt-read em { color: var(--t-text); font-style: normal; }
.wt-read .up, .wst-term .up { color: var(--t-up); }
.wt-read .dn, .wst-term .dn { color: var(--t-dn); }
.wt-chart { height: clamp(320px, 52vh, 520px); border-radius: 12px; background: var(--t-panel); border: 1px solid var(--t-line); }
.wt-pane { height: 130px; margin-top: 6px; border-radius: 12px; background: var(--t-panel); border: 1px solid var(--t-line); }
.wst-term.is-loading .wt-chart, .wst-term.is-loading .wt-pane { opacity: .55; transition: opacity .2s; }
.wst-term.is-loading .wt-chart::after {
	content: ""; position: absolute; inset-inline: 0; top: 78px; height: 2px; margin-inline: 12px;
	background: linear-gradient(90deg, transparent, var(--t-blue), transparent); background-size: 40% 100%; background-repeat: no-repeat;
	animation: wt-scan 1.1s linear infinite;
}
@keyframes wt-scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .wst-term.is-loading .wt-chart::after { animation: none; } }
.wt-msg { position: absolute; inset: 70px 0 auto; margin: auto; max-width: 360px; text-align: center; background: rgba(13, 18, 36, .92); border: 1px solid var(--t-line); border-radius: 12px; padding: 18px; z-index: 3; }
.wt-msg p { margin: 0 0 12px; color: #c9d3e6; }

/* side */
.wt-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wt-card { background: var(--t-panel); border: 1px solid var(--t-line); border-radius: 14px; padding: 14px; }
.wt-wl { list-style: none; margin: 0; padding: 0; }
.wt-wl li + li { border-top: 1px solid var(--t-line); }
.wt-wl button {
	width: 100%; display: grid; grid-template-columns: 1fr 64px auto auto 8px; align-items: center; gap: 8px;
	background: transparent; border: 0; color: var(--t-text); padding: 9px 4px; cursor: pointer; text-align: start; border-radius: 8px; min-height: 44px;
}
.wt-wl button:hover, .wt-wl button.is-on { background: rgba(75, 138, 199, .1); }
.wt-wn { font-weight: 600; font-size: .82rem; }
.wt-wn small { color: var(--t-dim); font-weight: 400; font-size: .68rem; }
.wt-wp { font-size: .82rem; }
.wt-wc { font-size: .74rem; min-width: 52px; text-align: end; }
.wt-wl svg { width: 64px; height: 20px; }
.wt-wl polyline { fill: none; stroke-width: 1.4; }
.wt-wl polyline.up { stroke: var(--t-up); }
.wt-wl polyline.dn { stroke: var(--t-dn); }
.wt-dot { width: 7px; height: 7px; border-radius: 50%; padding: 0; border: 0; }
.wt-dot.wt-f-fresh { background: var(--t-up); }
.wt-dot.wt-f-delayed { background: var(--t-warn); }
.wt-dot.wt-f-stale { background: var(--t-dn); }
.wt-dot.wt-f-closed { background: var(--t-dim); }
.wt-dim { color: var(--t-dim); }
.wt-err { color: #ffc9c5; }

/* workspace */
.wt-bias { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; margin-bottom: 10px; background: rgba(141, 155, 184, .1); }
.wt-bias span { color: var(--t-dim); font-size: .75rem; }
.wt-bias strong { font-size: 1rem; }
.wt-bias--bullish { background: linear-gradient(90deg, rgba(43, 179, 123, .18), transparent); } .wt-bias--bullish strong { color: var(--t-up); }
.wt-bias--bearish { background: linear-gradient(90deg, rgba(229, 83, 75, .18), transparent); } .wt-bias--bearish strong { color: var(--t-dn); }
.wt-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0 0 10px; font-size: .76rem; }
.wt-kv dt { color: var(--t-dim); } .wt-kv dd { margin: 0; }
.wt-lv { width: 100%; border-collapse: collapse; font-size: .78rem; margin-bottom: 10px; }
.wt-lv th, .wt-lv td { padding: 5px 4px; border-bottom: 1px solid var(--t-line); text-align: start; }
.wt-lv thead th { color: var(--t-dim); font-weight: 500; font-size: .7rem; }
.wt-lv td:last-child { color: var(--t-dim); font-size: .7rem; }
.wt-lv .wt-r th { color: var(--t-dn); } .wt-lv .wt-s th { color: var(--t-up); }
.wt-lv .wt-now td, .wt-lv .wt-now th { color: #fff; font-weight: 600; background: rgba(75, 138, 199, .08); }
.wt-ind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.wt-ind div { background: rgba(255, 255, 255, .03); border: 1px solid var(--t-line); border-radius: 8px; padding: 7px; min-width: 0; }
.wt-ind span { display: block; color: var(--t-dim); font-size: .66rem; }
.wt-ind b { display: block; font-size: .9rem; color: #fff; }
.wt-ind small { display: block; color: var(--t-dim); font-size: .62rem; line-height: 1.3; overflow-wrap: anywhere; }
.wt-scen { border: 1px solid var(--t-line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.wt-scen.is-primary { border-color: rgba(75, 138, 199, .5); background: rgba(75, 138, 199, .06); }
.wt-scen--bull h4 { color: #bff0d9; } .wt-scen--bear h4 { color: #ffc9c5; }
.wt-scen h4 small { color: var(--t-dim); font-weight: 400; }
.wt-scen dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: .76rem; }
.wt-scen dt { color: var(--t-dim); } .wt-scen dd { margin: 0; }
.wt-method { font-size: .72rem; color: var(--t-dim); margin-bottom: 6px; }
.wt-method summary { cursor: pointer; color: #c9d3e6; }
.wt-fine { font-size: .68rem; color: var(--t-dim); margin: 6px 0 0; }

/* AI */
.wt-ai { margin-top: 16px; }
.wt-btn {
	display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 9px 16px; border-radius: 10px; cursor: pointer;
	background: linear-gradient(180deg, #2a3678, var(--t-navy)); color: #fff; border: 1px solid rgba(75, 138, 199, .55); font-weight: 600; font-size: .84rem; text-decoration: none;
}
.wt-btn:hover:not(:disabled) { border-color: var(--t-blue); color: #fff; }
.wt-btn:disabled { opacity: .5; cursor: not-allowed; }
.wt-ai-out { margin-top: 12px; }
.wt-prov { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.wt-prov > div { border: 1px dashed var(--t-line); border-radius: 10px; padding: 10px; font-size: .74rem; color: #c9d3e6; }
.wt-prov ul { margin: 0; padding-inline-start: 16px; }
.wt-ai-reply { border-inline-start: 3px solid var(--t-blue); padding: 4px 14px; font-size: .86rem; line-height: 1.65; }
.wt-ai-reply p { margin: 0 0 .7em; }

/* responsive */
@media (max-width: 960px) {
	.wt-body { grid-template-columns: 1fr; }
	.wt-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 640px) {
	.wst-term { border-radius: 14px; padding: 10px; margin-inline: -4px; }
	.wt-side { grid-template-columns: 1fr; }
	.wt-ctl { width: 100%; }
	.wt-ctl .wt-tog { order: 3; overflow-x: auto; max-width: 100%; }
	.wt-chart { height: 340px; }
	.wt-pane { height: 110px; }
	.wt-prov { grid-template-columns: 1fr; }
	.wt-status .wt-chip:nth-child(n+5) { display: none; }
}

/* 0.13 live ticks */
@keyframes wt-fu { from { background: rgba(43,179,123,.45); color: #fff; } to { background: transparent; } }
@keyframes wt-fd { from { background: rgba(229,83,75,.45); color: #fff; } to { background: transparent; } }
.wt-wp, .wt-livechip { border-radius: 4px; padding: 1px 3px; transition: color .2s; }
.wt-wp.wt-up, .wt-livechip.wt-up { animation: wt-fu .8s ease-out; color: #7ee2b4; }
.wt-wp.wt-dn, .wt-livechip.wt-dn { animation: wt-fd .8s ease-out; color: #ff9b94; }
.wt-livechip:empty { display: none; }
.wt-livechip { display: inline-block; margin: 0 0 8px; font-weight: 600; }
.wt-livedot { display: none; color: var(--t-up); font-weight: 600; }
.wst-term.is-live .wt-livedot { display: inline; }
@media (prefers-reduced-motion: reduce) { .wt-wp.wt-up, .wt-wp.wt-dn, .wt-livechip.wt-up, .wt-livechip.wt-dn { animation: none; } }
/* Show every instrument: wrap instead of a hidden horizontal scroll */
.wt-syms { flex-wrap: wrap; overflow: visible; gap: 6px; }
.wt-syms button { flex: 0 0 auto; }

.wt-pick { display: block; max-width: 340px; }
.wt-picksel { width: 100%; min-height: 44px; padding: 8px 40px 8px 14px; border-radius: 10px; border: 1px solid rgba(75,138,199,.45); background: rgba(75,138,199,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; color: #fff; font-weight: 600; font-size: 1rem; appearance: none; -webkit-appearance: none; cursor: pointer; }
[dir="rtl"] .wt-picksel { padding: 8px 14px 8px 40px; background-position: left 14px center; }
.wt-picksel option, .wt-picksel optgroup { background: #141a3a; color: #fff; }
.wt-syms[hidden] { display: none !important; }

/* Analysis page shows only the published (human) analyses: no AI card, no automated reading. */
.wt-ai, .wt-ws { display: none !important; }
