/* ==========================================================================
   RT Position Calculator — frontend styles

   Two layers, switched by a root class:
   - LAYER 1  (.rtpc-calculator …)               — structure + semantic colour.
       Always on, in both appearance modes. Scoped under the root so a host
       theme's global button/input styling cannot override it (bleed-proof).
       Semantic colours (long = green, short = red, profit/loss, warnings) live
       here, so they are preserved regardless of theme.
   - LAYER 2  (.rtpc-style-custom …)             — chrome (the plugin's "Eigen
       stijl"). Only applies when the root also has .rtpc-style-custom, i.e. the
       pro "own style" mode. In the default "Volg thema" mode these rules are
       inert, so the host theme styles the neutral buttons, inputs, cards and
       typography.
   ========================================================================== */

/* ---- Tokens + always-on base -------------------------------------------- */
.rtpc-calculator {
	/* Palette */
	--rtpc-text: #17233a;
	--rtpc-muted: #5c6b81;
	--rtpc-faint: #8a99ad;
	--rtpc-border: #dce3ec;
	--rtpc-border-strong: #c4d0e0;
	--rtpc-bg: #eef2f7;
	--rtpc-surface: #ffffff;
	--rtpc-sunken: #f5f8fd;
	--rtpc-accent: #1367d8;
	--rtpc-accent-strong: #0f52ad;
	--rtpc-accent-soft: #e9f1fc;
	--rtpc-accent-contrast: #ffffff;
	--rtpc-long: #0e9f6e;
	--rtpc-long-soft: #e6f6ef;
	--rtpc-short: #e02d3c;
	--rtpc-short-soft: #fdeaec;
	--rtpc-warning-bg: #fff6da;
	--rtpc-warning-border: #f1db8f;
	--rtpc-warning-text: #6b4e00;

	/* Shape + rhythm */
	--rtpc-radius: 12px;
	--rtpc-radius-sm: 8px;
	--rtpc-field-h: 42px;
	--rtpc-gap: 22px;

	line-height: 1.5;
	padding: 28px;
}

.rtpc-calculator *,
.rtpc-calculator *::before,
.rtpc-calculator *::after {
	box-sizing: border-box;
}

/* Numbers everywhere use tabular figures so columns of values line up. */
.rtpc-calculator input,
.rtpc-calculator select,
.rtpc-metric,
.rtpc-metrics,
.rtpc-avg-entry,
[data-rtpc="leg-list"] {
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   LAYER 1 — STRUCTURE + SEMANTIC (both modes)
   ========================================================================== */

/* --- Title ---------------------------------------------------------------- */
.rtpc-title {
	margin: 0 0 22px;
}

/* --- Sections ------------------------------------------------------------- */
.rtpc-section {
	margin-bottom: 20px;
	padding: 22px 24px 24px;
}

.rtpc-section-title {
	margin: 0 0 20px;
	padding-bottom: 14px;
}

/* --- Input grid + fields -------------------------------------------------- */
.rtpc-grid {
	display: grid;
	gap: var(--rtpc-gap) 28px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rtpc-field--full {
	grid-column: 1 / -1;
}

.rtpc-fee-grid {
	display: grid;
	gap: var(--rtpc-gap) 28px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.rtpc-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.rtpc-field label,
.rtpc-field .rtpc-field-label {
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.3;
}

.rtpc-field input[type="text"],
.rtpc-field select {
	min-height: var(--rtpc-field-h);
	padding: 9px 12px;
	width: 100%;
}

/* --- Section 1: risk slider ---------------------------------------------- */
.rtpc-field--range .rtpc-range-meta {
	align-items: baseline;
	display: flex;
	font-weight: 700;
	justify-content: space-between;
}

.rtpc-field--range input[type="range"] {
	width: 100%;
}

.rtpc-risk-preview {
	font-size: 0.92rem;
	margin: 14px 0 0;
}

/* --- Section 2: direction ------------------------------------------------- */
.rtpc-direction-group {
	display: flex;
	gap: 12px;
}

.rtpc-direction {
	flex: 1 1 0;
	min-height: 46px;
	padding: 0 16px;
	cursor: pointer;
	font-weight: 700;
}

/* Semantic: long = green, short = red — always, and high-specificity so a
   theme (or the skin's neutral button styling) can never recolour them. */
.rtpc-calculator .rtpc-direction[data-rtpc-direction="long"].is-active {
	background: var(--rtpc-long);
	border-color: var(--rtpc-long);
	color: #fff;
}

.rtpc-calculator .rtpc-direction[data-rtpc-direction="short"].is-active {
	background: var(--rtpc-short);
	border-color: var(--rtpc-short);
	color: #fff;
}

/* --- Section 3: leverage -------------------------------------------------- */
.rtpc-field--leverage.is-disabled {
	opacity: 0.6;
}

.rtpc-lev {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rtpc-lev-set {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rtpc-lev-set input {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	font-weight: 600;
}

.rtpc-lev-x {
	font-size: 0.85rem;
}

.rtpc-lev-step {
	flex: 0 0 auto;
	width: var(--rtpc-field-h);
	height: var(--rtpc-field-h);
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

/* --- Live price control --------------------------------------------------- */
.rtpc-price-control .rtpc-price-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.rtpc-price-control .rtpc-symbol-search {
	position: relative;
	flex: 1 1 160px;
}

.rtpc-price-control .rtpc-symbol-preset {
	order: 9;
	flex: 1 1 100%;
	margin-top: 2px;
}

.rtpc-price-control .rtpc-symbol-input {
	width: 100%;
}

.rtpc-symbol-results {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	margin: 4px 0 0;
	padding: 4px;
	list-style: none;
	max-height: 240px;
	overflow-y: auto;
}

.rtpc-symbol-result {
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9em;
}

.rtpc-price-status {
	font-size: 0.85em;
}

.rtpc-price-caption {
	margin: 8px 0 0;
	font-size: 0.8em;
}

/* --- Ladder blocks (entry / take-profit) --------------------------------- */
.rtpc-ladder-block {
	padding: 16px 18px;
	margin: 2px 0;
}

.rtpc-ladder-block > .rtpc-field-label {
	display: block;
	margin-bottom: 12px;
	font-size: 0.9rem;
}

.rtpc-ladder {
	margin-top: 2px;
}

.rtpc-ladder-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.rtpc-ladder-row:last-child {
	margin-bottom: 0;
}

.rtpc-ladder-price {
	flex: 1 1 130px;
	min-width: 110px;
}

.rtpc-ladder-weight {
	flex: 0 0 64px;
	width: 64px;
	text-align: right;
}

.rtpc-ladder-weight-unit {
	font-size: 0.78rem;
}

.rtpc-row-label {
	flex: 0 0 60px;
	font-size: 0.82rem;
	font-weight: 600;
}

.rtpc-avg-entry {
	font-size: 0.9rem;
}

/* Per-rung currency value, on its own line under the rung. */
.rtpc-entry-value {
	flex: 1 1 100%;
	text-align: right;
	font-size: 0.8rem;
	margin: -4px 0 0;
}

.rtpc-entry-value:empty {
	display: none;
}

.rtpc-ladder-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0 0;
}

/* Order (maker/taker) segmented toggle — kept flat in both modes (a subtle UI
   control, not a primary button), so scope the reset under the root. */
.rtpc-order-toggle {
	display: inline-flex;
	overflow: hidden;
}

.rtpc-calculator .rtpc-order {
	border: 0;
	background: transparent;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1;
}

/* Active maker/taker: accent-filled selection indicator, always. */
.rtpc-calculator .rtpc-order.is-active {
	background: var(--rtpc-accent);
	color: #fff;
}

.rtpc-calculator .rtpc-ladder-remove {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0 4px;
}

/* Final-exit row has no remove button; reserve its width so prices align. */
.rtpc-ladder-row--final::after {
	content: "";
	flex: 0 0 20px;
}

/* Semantic: entry-weight warning is a validation error. */
.rtpc-calculator .rtpc-weights-warning {
	color: var(--rtpc-short);
	font-size: 0.82rem;
	margin: 6px 0 0;
}

/* --- Stop-loss ------------------------------------------------------------ */
.rtpc-stop-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* R/R-basis toggle sits inline after the stop "Auto" button. */
.rtpc-rr-basis-label {
	align-self: center;
	margin-left: 2px;
	font-size: 0.76rem;
	color: var(--rtpc-muted);
	white-space: nowrap;
}

.rtpc-stop-controls input[data-rtpc="stop-loss"] {
	flex: 1 1 130px;
}

/* --- Section 1: sizing mode (risk % vs manual size) ---------------------- */
.rtpc-sizing-group {
	display: flex;
	gap: 8px;
	margin: 6px 0 4px;
}

.rtpc-sizing-mode {
	flex: 1 1 0;
	cursor: pointer;
	padding: 7px 10px;
	font-size: 0.82rem;
	font-weight: 600;
}

/* Active sizing mode: accent-filled selection indicator, always. */
.rtpc-calculator .rtpc-sizing-mode.is-active {
	background: var(--rtpc-accent);
	border-color: var(--rtpc-accent);
	color: var(--rtpc-accent-contrast);
}

.rtpc-sizing-block {
	margin-top: 8px;
}

.rtpc-manual-size {
	display: flex;
	align-items: stretch;
	margin-top: 6px;
}

.rtpc-manual-size input[data-rtpc="manual-size"] {
	flex: 1 1 auto;
}

.rtpc-manual-size .rtpc-manual-unit {
	flex: 0 0 auto;
	width: auto;
	padding: 0 8px;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

/* --- Preset buttons (layout) --------------------------------------------- */
.rtpc-lev-preset,
.rtpc-risk-preset {
	padding: 6px 10px;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 600;
}

.rtpc-lev-presets,
.rtpc-risk-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rtpc-risk-presets {
	margin-top: 10px;
}

.rtpc-lev-preset {
	flex: 0 1 auto;
	min-width: 42px;
	text-align: center;
}

/* --- Text/secondary action buttons (Add rung, Auto, Last, Reset) --------- */
/* "Add" links stay flat in both modes (they read as links, not buttons). */
.rtpc-calculator [data-rtpc="entry-add"],
.rtpc-calculator [data-rtpc="tp-add"] {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 0.86rem;
	font-weight: 600;
	padding: 4px 0;
}

.rtpc-stop-auto,
.rtpc-price-last {
	cursor: pointer;
	padding: 9px 14px;
	min-height: var(--rtpc-field-h);
	font-size: 0.85rem;
	font-weight: 600;
}

.rtpc-reset-button {
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 10px 18px;
	margin-top: 16px;
}

/* --- Section 4: results --------------------------------------------------- */
.rtpc-results {
	background: transparent;
	border: 0;
	padding: 0;
}

.rtpc-summary-heading {
	margin: 0 0 10px;
}

.rtpc-summary-text {
	line-height: 1.5;
	margin: 0 0 16px;
}

.rtpc-metrics {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.rtpc-metrics li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
}

.rtpc-metrics li span {
	font-size: 0.8rem;
}

.rtpc-metrics li strong {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.rtpc-results-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.rtpc-metric-group-title {
	display: block;
	margin: 2px 0 8px;
}

.rtpc-metric {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 8px 0;
	font-size: 0.9rem;
}

.rtpc-metric strong {
	font-weight: 700;
	text-align: right;
}

/* Semantic colouring of key outcome values — always. */
.rtpc-calculator [data-rtpc="metric-loss"] {
	color: var(--rtpc-short);
}

/* Profit-lock stop: the "max loss" is a secured gain, so colour it like a profit. */
.rtpc-calculator [data-rtpc="metric-loss"].is-riskfree {
	color: var(--rtpc-long);
}

.rtpc-calculator [data-rtpc="metric-gain"],
.rtpc-calculator [data-rtpc="metric-total-profit"] {
	color: var(--rtpc-long);
}

[data-rtpc="leg-list"] {
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
	font-size: 0.82rem;
}

[data-rtpc="leg-list"] li {
	padding: 4px 0;
}

/* --- Feedback / warnings (semantic — always) ------------------------------ */
.rtpc-feedback {
	margin: 14px 0 0;
	padding: 0;
}

.rtpc-calculator .rtpc-feedback.is-visible {
	background: var(--rtpc-warning-bg);
	border: 1px solid var(--rtpc-warning-border);
	border-radius: var(--rtpc-radius-sm);
	color: var(--rtpc-warning-text);
	font-size: 0.86rem;
	line-height: 1.4;
	padding: 10px 12px;
}

/* --- Trade-setup chart + lightbox (semantic/functional — both modes) ------ */
.rtpc-chart {
	position: relative;
	margin: 16px 0 0;
	cursor: zoom-in;
}

.rtpc-chart svg {
	display: block;
	width: 100%;
	height: auto;
}

.rtpc-chart-hint {
	display: block;
	margin-top: 2px;
	font-size: 0.72rem;
	color: var(--rtpc-faint);
	text-align: right;
}

/* Session-times note (indexes / no history data). */
.rtpc-chart-note,
.rtpc-lightbox-note {
	margin: 8px 0 0;
	font-size: 0.76rem;
	line-height: 1.4;
	color: var(--rtpc-warning-text);
	background: var(--rtpc-warning-bg);
	border: 1px solid var(--rtpc-warning-border);
	border-radius: var(--rtpc-radius-sm);
	padding: 6px 9px;
}

.rtpc-lightbox-note {
	margin-top: 12px;
	font-size: 0.85rem;
}

.rtpc-calculator .rtpc-ch-line {
	stroke-width: 1.5;
}

.rtpc-calculator line.rtpc-ch-entry { stroke: var(--rtpc-accent); }
.rtpc-calculator line.rtpc-ch-avg { stroke: var(--rtpc-accent-strong); }
.rtpc-calculator line.rtpc-ch-sl { stroke: var(--rtpc-short); }
.rtpc-calculator line.rtpc-ch-tp { stroke: var(--rtpc-long); }
.rtpc-calculator line.rtpc-ch-be { stroke: var(--rtpc-faint); }
.rtpc-calculator line.rtpc-ch-liq { stroke: #8f1d28; }

.rtpc-calculator text.rtpc-ch-txt { fill: var(--rtpc-muted); }
.rtpc-calculator text.rtpc-ch-entry { fill: var(--rtpc-accent); }
.rtpc-calculator text.rtpc-ch-avg { fill: var(--rtpc-accent-strong); }
.rtpc-calculator text.rtpc-ch-sl { fill: var(--rtpc-short); }
.rtpc-calculator text.rtpc-ch-tp { fill: var(--rtpc-long); }
.rtpc-calculator text.rtpc-ch-be { fill: var(--rtpc-faint); }
.rtpc-calculator text.rtpc-ch-liq { fill: #8f1d28; }
.rtpc-calculator text.rtpc-ch-txt-loss { fill: var(--rtpc-short); font-weight: 700; }
.rtpc-calculator text.rtpc-ch-txt-gain { fill: var(--rtpc-long); font-weight: 700; }

.rtpc-calculator .rtpc-ch-zone-risk { fill: var(--rtpc-short-soft); opacity: 0.75; }
.rtpc-calculator .rtpc-ch-zone-reward { fill: var(--rtpc-long-soft); opacity: 0.75; }

/* With candles behind them, the zones dim so the price action stays readable. */
.rtpc-calculator .rtpc-ch-zone--dim { opacity: 0.4; }

/* History candles: up = long green, down = short red. */
.rtpc-calculator line.rtpc-ch-candle-up { stroke: var(--rtpc-long); }
.rtpc-calculator line.rtpc-ch-candle-down { stroke: var(--rtpc-short); }
.rtpc-calculator rect.rtpc-ch-candle-up { fill: var(--rtpc-long); }
.rtpc-calculator rect.rtpc-ch-candle-down { fill: var(--rtpc-short); }
.rtpc-calculator .rtpc-ch-body { opacity: 0.85; }
.rtpc-calculator .rtpc-ch-wick { stroke-width: 1; opacity: 0.7; }

.rtpc-calculator text.rtpc-ch-tick { fill: var(--rtpc-faint); }

.rtpc-ch-intervals {
	display: flex;
	gap: 6px;
	margin-top: 12px;
}

.rtpc-ch-interval {
	border: 1px solid var(--rtpc-border-strong);
	background: var(--rtpc-surface);
	color: var(--rtpc-muted);
	border-radius: 6px;
	padding: 5px 12px;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.rtpc-ch-interval:hover {
	border-color: var(--rtpc-accent);
	color: var(--rtpc-accent);
}

.rtpc-ch-interval.is-active {
	background: var(--rtpc-accent);
	border-color: var(--rtpc-accent);
	color: var(--rtpc-accent-contrast);
}

.rtpc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.55);
	padding: 24px;
}

.rtpc-lightbox[hidden] {
	display: none;
}

.rtpc-lightbox-panel {
	position: relative;
	background: var(--rtpc-surface);
	border-radius: var(--rtpc-radius);
	box-shadow: 0 18px 60px rgba(10, 20, 40, 0.35);
	max-width: 960px;
	width: 100%;
	max-height: 92vh;
	overflow: auto;
	padding: 22px;
}

.rtpc-lightbox-panel svg {
	display: block;
	width: 100%;
	height: auto;
}

.rtpc-lightbox-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	color: var(--rtpc-muted);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.rtpc-lightbox-close:hover {
	color: var(--rtpc-short);
}

.rtpc-share {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

.rtpc-share-url {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid var(--rtpc-border-strong);
	border-radius: var(--rtpc-radius-sm);
	padding: 8px 10px;
	font-size: 0.82rem;
	color: var(--rtpc-muted);
	background: var(--rtpc-sunken);
}

.rtpc-share-copy {
	flex: 0 0 auto;
	border: 1px solid var(--rtpc-accent);
	background: var(--rtpc-accent);
	color: var(--rtpc-accent-contrast);
	border-radius: var(--rtpc-radius-sm);
	padding: 8px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.rtpc-share-copy:hover {
	background: var(--rtpc-accent-strong);
	border-color: var(--rtpc-accent-strong);
}

/* --- Desktop: sticky results panel; stacks below 780px ------------------- */
@media (min-width: 780px) {
	.rtpc-calculator.rtpc-advanced {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		column-gap: 24px;
		align-items: start;
	}

	.rtpc-calculator.rtpc-advanced > .rtpc-title {
		grid-column: 1 / -1;
	}

	.rtpc-calculator.rtpc-advanced > section:not(:last-of-type) {
		grid-column: 1;
	}

	.rtpc-calculator.rtpc-advanced > section:last-of-type {
		grid-column: 2;
		grid-row: 2 / 999;
		position: sticky;
		top: 16px;
	}
}

/* --- Mobile --------------------------------------------------------------- */
@media (max-width: 640px) {
	.rtpc-calculator {
		padding: 18px;
	}

	.rtpc-grid {
		grid-template-columns: 1fr;
	}

	.rtpc-section {
		padding: 18px;
	}

	.rtpc-direction-group {
		flex-direction: column;
	}
}

/* ==========================================================================
   LAYER 2 — SKIN (Eigen stijl / pro): applies only under .rtpc-style-custom.
   In "Volg thema" mode these rules are inert and the host theme styles the
   neutral chrome. Scoped under the root class, so it also stays bleed-proof.
   ========================================================================== */

.rtpc-style-custom {
	background: var(--rtpc-bg);
	border: 1px solid var(--rtpc-border);
	border-radius: 16px;
	color: var(--rtpc-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.rtpc-style-custom .rtpc-title {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.15;
}

.rtpc-style-custom .rtpc-section {
	background: var(--rtpc-surface);
	border: 1px solid var(--rtpc-border);
	border-radius: var(--rtpc-radius);
	box-shadow: 0 1px 2px rgba(20, 40, 70, 0.05);
}

.rtpc-style-custom .rtpc-section-title {
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	border-bottom: 1px solid var(--rtpc-border);
}

.rtpc-style-custom .rtpc-field label,
.rtpc-style-custom .rtpc-field .rtpc-field-label {
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-field input[type="text"],
.rtpc-style-custom .rtpc-field select {
	appearance: none;
	background: var(--rtpc-surface);
	border: 1px solid var(--rtpc-border-strong);
	border-radius: var(--rtpc-radius-sm);
	color: var(--rtpc-text);
	font-size: 1rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.rtpc-style-custom .rtpc-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6b81' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 34px;
	cursor: pointer;
}

.rtpc-style-custom .rtpc-field input[type="text"]:hover,
.rtpc-style-custom .rtpc-field select:hover {
	border-color: var(--rtpc-accent);
}

.rtpc-style-custom .rtpc-field input[type="text"]:focus,
.rtpc-style-custom .rtpc-field select:focus,
.rtpc-style-custom .rtpc-field input[type="range"]:focus {
	border-color: var(--rtpc-accent);
	box-shadow: 0 0 0 3px var(--rtpc-accent-soft);
	outline: none;
}

.rtpc-style-custom .rtpc-field input::placeholder {
	color: var(--rtpc-faint);
}

.rtpc-style-custom .rtpc-field--range input[type="range"] {
	accent-color: var(--rtpc-accent);
}

.rtpc-style-custom .rtpc-risk-preview {
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-risk-preview strong {
	color: var(--rtpc-text);
}

.rtpc-style-custom .rtpc-direction {
	background: var(--rtpc-surface);
	border: 1px solid var(--rtpc-border-strong);
	border-radius: var(--rtpc-radius-sm);
	color: var(--rtpc-muted);
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	transition: all 0.15s;
}

.rtpc-style-custom .rtpc-direction:hover {
	border-color: var(--rtpc-border-strong);
	color: var(--rtpc-text);
}

.rtpc-style-custom .rtpc-lev-x {
	color: var(--rtpc-faint);
}

.rtpc-style-custom .rtpc-lev-step {
	border: 1px solid var(--rtpc-border-strong);
	background: var(--rtpc-surface);
	border-radius: var(--rtpc-radius-sm);
	color: var(--rtpc-muted);
	transition: all 0.15s;
}

.rtpc-style-custom .rtpc-symbol-results {
	background: var(--rtpc-surface);
	border: 1px solid var(--rtpc-border-strong);
	border-radius: var(--rtpc-radius-sm);
	box-shadow: 0 8px 24px rgba(20, 40, 70, 0.14);
}

.rtpc-style-custom .rtpc-symbol-result:hover {
	background: var(--rtpc-accent-soft);
}

.rtpc-style-custom .rtpc-price-status {
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-price-caption {
	color: var(--rtpc-faint);
}

.rtpc-style-custom .rtpc-ladder-block {
	border: 1px solid var(--rtpc-border);
	background: var(--rtpc-sunken);
	border-radius: var(--rtpc-radius);
}

.rtpc-style-custom .rtpc-ladder-weight-unit {
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-row-label {
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-avg-entry {
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-avg-entry strong {
	color: var(--rtpc-text);
}

.rtpc-style-custom .rtpc-entry-value {
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-order-toggle {
	border: 1px solid var(--rtpc-border-strong);
	border-radius: 6px;
}

.rtpc-style-custom .rtpc-order {
	color: var(--rtpc-muted);
	transition: background 0.15s, color 0.15s;
}

.rtpc-style-custom .rtpc-ladder-remove {
	color: var(--rtpc-faint);
	transition: color 0.15s;
}

.rtpc-style-custom .rtpc-ladder-remove:hover {
	color: var(--rtpc-short);
}

.rtpc-style-custom .rtpc-stop-controls input[data-rtpc="stop-loss"] {
	border-color: #eab6ba;
}

.rtpc-style-custom .rtpc-stop-controls input[data-rtpc="stop-loss"]:focus {
	border-color: var(--rtpc-short);
	box-shadow: 0 0 0 3px var(--rtpc-short-soft);
}

.rtpc-style-custom .rtpc-sizing-mode {
	border: 1px solid var(--rtpc-border-strong);
	background: var(--rtpc-surface);
	border-radius: var(--rtpc-radius-sm);
	color: var(--rtpc-muted);
	transition: all 0.15s;
}

.rtpc-style-custom .rtpc-sizing-mode:hover {
	border-color: var(--rtpc-accent);
	color: var(--rtpc-accent);
}

.rtpc-style-custom .rtpc-manual-size input[data-rtpc="manual-size"] {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.rtpc-style-custom .rtpc-manual-size .rtpc-manual-unit {
	border: 1px solid var(--rtpc-border-strong);
	border-left: 0;
	border-top-right-radius: var(--rtpc-radius-sm);
	border-bottom-right-radius: var(--rtpc-radius-sm);
	background-color: var(--rtpc-accent-soft);
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-lev-preset,
.rtpc-style-custom .rtpc-risk-preset {
	border: 1px solid var(--rtpc-border-strong);
	background: var(--rtpc-surface);
	border-radius: 6px;
	color: var(--rtpc-muted);
	transition: all 0.15s;
}

.rtpc-style-custom .rtpc-lev-step:hover,
.rtpc-style-custom .rtpc-lev-preset:hover,
.rtpc-style-custom .rtpc-risk-preset:hover {
	border-color: var(--rtpc-accent);
	color: var(--rtpc-accent);
	background: var(--rtpc-accent-soft);
}

.rtpc-style-custom [data-rtpc="entry-add"],
.rtpc-style-custom [data-rtpc="tp-add"] {
	color: var(--rtpc-accent);
}

.rtpc-style-custom [data-rtpc="entry-add"]:hover,
.rtpc-style-custom [data-rtpc="tp-add"]:hover {
	color: var(--rtpc-accent-strong);
	text-decoration: underline;
}

.rtpc-style-custom .rtpc-stop-auto,
.rtpc-style-custom .rtpc-price-last {
	border: 1px solid var(--rtpc-border-strong);
	background: var(--rtpc-surface);
	color: var(--rtpc-accent);
	border-radius: var(--rtpc-radius-sm);
	transition: all 0.15s;
}

.rtpc-style-custom .rtpc-stop-auto:hover,
.rtpc-style-custom .rtpc-price-last:hover {
	border-color: var(--rtpc-accent);
	background: var(--rtpc-accent-soft);
}

.rtpc-style-custom .rtpc-reset-button {
	border: 1px solid var(--rtpc-border-strong);
	background: var(--rtpc-surface);
	color: var(--rtpc-muted);
	border-radius: var(--rtpc-radius-sm);
	transition: all 0.15s;
}

.rtpc-style-custom .rtpc-reset-button:hover {
	border-color: var(--rtpc-short);
	color: var(--rtpc-short);
}

.rtpc-style-custom .rtpc-summary-heading {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-summary-text {
	color: var(--rtpc-text);
}

.rtpc-style-custom .rtpc-metrics li {
	background: var(--rtpc-sunken);
	border: 1px solid var(--rtpc-border);
	border-radius: var(--rtpc-radius-sm);
}

.rtpc-style-custom .rtpc-metrics li span {
	color: var(--rtpc-muted);
}

.rtpc-style-custom .rtpc-metric-group-title {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rtpc-faint);
}

.rtpc-style-custom .rtpc-metric {
	border-bottom: 1px solid var(--rtpc-border);
}

.rtpc-style-custom .rtpc-metric:last-child {
	border-bottom: 0;
}

.rtpc-style-custom .rtpc-metric span {
	color: var(--rtpc-muted);
}

.rtpc-style-custom [data-rtpc="leg-list"] {
	color: var(--rtpc-muted);
}

.rtpc-style-custom [data-rtpc="leg-list"] li {
	border-top: 1px dashed var(--rtpc-border);
}
