/**
 * Orderflow Heatmap Pro — App-Styles.
 *
 * Gleiche Bauweise wie Tradingjournal und Liquidation Heatmap: Der Container
 * stempelt seinen Zustand selbst (ofp--dark/ofp--light,
 * ofp--look-cyber/ofp--look-standard), unabhaengig von der Theme-Kaskade und
 * den invertierten Theme-Presets. Alle Farben sind feste Werte. Die
 * Token-Namen und -Werte entsprechen 1:1 denen des Journals und der
 * Liquidation Heatmap, damit alle drei Seiten identisch wirken.
 */

/* ------------------------------------------------------------------ */
/* Token-Definition ueber den selbst gestempelten Zustand              */
/* ------------------------------------------------------------------ */
.ofp {
	--ofp-bg: #f4f6fb;
	--ofp-panel: #ffffff;
	--ofp-panel-2: #eef1f7;
	--ofp-border: #d4dae6;
	--ofp-text: #16202e;
	--ofp-text-dim: #4b5768;
	--ofp-accent: #0e7490;
	--ofp-accent-text: #ffffff;
	--ofp-pos: #0d7a45;
	--ofp-neg: #b3323e;
	--ofp-warn: #92600a;
	--ofp-pos-bg: #e2f4ea;
	--ofp-neg-bg: #fbe9eb;
	--ofp-warn-bg: #fdf3df;
	--ofp-zone: #6d28d9;
	--ofp-ice: #0891b2;
	--ofp-chart-bg: #ffffff;
	--ofp-chart-grid: rgba(100, 116, 139, 0.22);
	--ofp-chart-axis: rgba(100, 116, 139, 0.45);
	--ofp-chart-label: #4b5768;
	--ofp-radius: 12px;
	--ofp-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
	--ofp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
	--ofp-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
	--ofp-focus: #0e7490;

	font-family: var(--ofp-font);
	color: var(--ofp-text);
	background: var(--ofp-bg);
	border-radius: var(--ofp-radius);
	line-height: 1.5;
	font-size: 15px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 14px;
	box-sizing: border-box;
}
.ofp *, .ofp *::before, .ofp *::after { box-sizing: border-box; }

.ofp.ofp--dark {
	--ofp-bg: #0b1220;
	--ofp-panel: #121c30;
	--ofp-panel-2: #0e1729;
	--ofp-border: #2b3a55;
	--ofp-text: #e6ebf4;
	--ofp-text-dim: #9aa8bf;
	--ofp-accent: #38bdf8;
	--ofp-accent-text: #06121f;
	--ofp-pos: #4ade80;
	--ofp-neg: #f87171;
	--ofp-warn: #fbbf24;
	--ofp-pos-bg: rgba(74, 222, 128, 0.12);
	--ofp-neg-bg: rgba(248, 113, 113, 0.12);
	--ofp-warn-bg: rgba(251, 191, 36, 0.12);
	--ofp-zone: #a78bfa;
	--ofp-ice: #22d3ee;
	--ofp-chart-bg: #0e1729;
	--ofp-chart-grid: rgba(148, 163, 184, 0.16);
	--ofp-chart-axis: rgba(148, 163, 184, 0.34);
	--ofp-chart-label: #9aa8bf;
	--ofp-shadow: 0 8px 26px rgba(2, 6, 23, 0.5);
	--ofp-focus: #38bdf8;
}

/* Cyber-Look: knappere Radien, Mono-Zahlen, leichte Kanten-Glows */
.ofp.ofp--look-cyber { --ofp-radius: 10px; }
.ofp.ofp--look-cyber.ofp--dark {
	--ofp-panel: rgba(15, 23, 42, 0.92);
	--ofp-border: rgba(56, 189, 248, 0.28);
	--ofp-shadow: 0 10px 30px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.08);
}
.ofp.ofp--look-cyber .ofp-kpi__value,
.ofp.ofp--look-cyber .ofp-num { font-family: var(--ofp-mono); }

/* ------------------------------------------------------------------ */
/* Kopfzeile                                                           */
/* ------------------------------------------------------------------ */
.ofp-head {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.ofp .ofp-h1 {
	margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.01em;
	color: var(--ofp-text);
}
.ofp .ofp-sub { margin: 2px 0 0; font-size: 13.5px; color: var(--ofp-text-dim); }

.ofp-status {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px; border-radius: 999px;
	background: var(--ofp-panel); border: 1px solid var(--ofp-border);
	font-size: 12.5px; color: var(--ofp-text-dim); white-space: nowrap;
}
.ofp-status__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--ofp-warn); flex: 0 0 8px;
}
.ofp-status[data-state="live"] .ofp-status__dot {
	background: var(--ofp-pos); animation: ofp-pulse 2s ease-in-out infinite;
}
.ofp-status[data-state="error"] .ofp-status__dot { background: var(--ofp-neg); }
@keyframes ofp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
	.ofp-status[data-state="live"] .ofp-status__dot { animation: none; }
}

.ofp-head__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ofp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ofp .ofp-icon {
	background: var(--ofp-panel) !important;
	color: var(--ofp-text-dim) !important;
	border: 1px solid var(--ofp-border) !important;
	border-radius: 8px !important;
	min-width: 34px; height: 34px !important; min-height: 0 !important;
	padding: 0 9px !important; font: inherit; font-size: 12.5px; font-weight: 600;
	line-height: 1; cursor: pointer; box-shadow: none !important;
	letter-spacing: normal !important; text-transform: none !important;
	display: inline-flex; align-items: center; justify-content: center;
	transition: color .15s ease, border-color .15s ease;
}
.ofp .ofp-icon:hover { color: var(--ofp-text) !important; border-color: var(--ofp-accent) !important; }
.ofp .ofp-icon:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 2px; }
.ofp .ofp-icon[aria-pressed="true"] {
	color: var(--ofp-accent-text) !important;
	background: var(--ofp-accent) !important;
	border-color: var(--ofp-accent) !important;
}

/* ------------------------------------------------------------------ */
/* Werkzeugleiste                                                      */
/* ------------------------------------------------------------------ */
.ofp-toolbar {
	display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
	background: var(--ofp-panel); border: 1px solid var(--ofp-border);
	border-radius: var(--ofp-radius); box-shadow: var(--ofp-shadow);
	padding: 12px 14px; margin-bottom: 12px;
}
/* ⛔ `width` MUSS am FELD stehen, nicht nur am Eingabeelement.
   Das Theme setzt global `label { display:flex; align-items:center; width:100%;
   margin-bottom:.5em }` — die Felder "Markt" und "Börse" SIND `<label>`, werden
   also unabhaengig vom `select`/`input` auf volle Breite gezogen. Ergebnis:
   jedes Feld bekommt eine eigene Zeile, die Leiste wird zur Spalte
   (gemessen 23.08.2026 an der echten Seite). `align-items` ebenso, sonst stuende
   "MARKT" mittig ueber dem Feld statt links. Eigener Selektor (0,2,0) schlaegt
   `label` (0,0,1) — die Eigenschaft muss nur ueberhaupt gesetzt werden. */
.ofp .ofp-field {
	display: flex; flex-direction: column; gap: 5px;
	align-items: flex-start;
	width: auto;
	margin: 0; flex: 0 0 auto;
}
.ofp .ofp-field--grow { flex: 1 1 320px; min-width: 0; width: auto; }
/* Die Ebenen-Schalter brauchen die ganze Breite und stehen sonst versetzt neben
   den kurzen Feldern (gemessen: Beschriftung 42px hoeher als die uebrigen). */
.ofp .ofp-field--row { flex: 1 1 100%; min-width: 0; width: auto; }
/* Das Info-Symbol steht IM Beschriftungselement - sonst wird es im
   Spalten-Flex zu einer eigenen Zeile (Ati, 23.08.2026). */
.ofp-field__label {
	display: inline-flex; align-items: center;
	font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
	text-transform: uppercase; color: var(--ofp-text-dim);
}

/* Gegen den Cyber-Skin, der select/button global mit !important stylt.
   `width` und `margin` sind PFLICHT: das Theme setzt global
   `select { width: var(--wp--custom--input--width, 100%); margin: 0 0 1em; }`.
   Ohne Gegenwert waere jedes Feld so breit wie die Leiste und die
   Werkzeugleiste fiele in mehrere Zeilen auseinander. */
.ofp .ofp-select {
	appearance: none;
	width: auto !important;
	margin: 0 !important;
	background: var(--ofp-panel-2) !important;
	color: var(--ofp-text) !important;
	border: 1px solid var(--ofp-border) !important;
	border-radius: 8px !important;
	padding: 8px 30px 8px 11px !important;
	font: inherit; font-size: 14px; line-height: 1.3;
	min-width: 140px; height: auto !important;
	box-shadow: none !important; text-transform: none !important;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%) !important;
	background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52% !important;
	background-size: 5px 5px, 5px 5px !important;
	background-repeat: no-repeat !important;
}
.ofp .ofp-select:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 2px; }

/* Markt-Suchfeld. `width`/`margin` wie beim Select gegen die globalen
   Theme-Regeln fuer Eingabefelder. */
.ofp .ofp-input {
	width: 190px !important;
	margin: 0 !important;
	background: var(--ofp-panel-2) !important;
	color: var(--ofp-text) !important;
	border: 1px solid var(--ofp-border) !important;
	border-radius: 8px !important;
	padding: 8px 11px !important;
	font: inherit; font-size: 14px; line-height: 1.3;
	height: auto !important; min-height: 0 !important;
	box-shadow: none !important; text-transform: uppercase !important;
	letter-spacing: normal !important;
}
.ofp .ofp-input::placeholder { color: var(--ofp-text-dim); text-transform: none; }
.ofp .ofp-input:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 2px; }
.ofp .ofp-input[aria-invalid="true"] { border-color: var(--ofp-neg) !important; }
.ofp-field__hint { font-size: 11.5px; color: var(--ofp-neg); min-height: 0; }
.ofp-field__hint:empty { display: none; }

.ofp-favs { display: flex; gap: 6px; flex-wrap: wrap; }
.ofp .ofp-fav {
	background: var(--ofp-panel-2) !important;
	color: var(--ofp-text-dim) !important;
	border: 1px solid var(--ofp-border) !important;
	border-radius: 7px !important;
	padding: 7px 10px !important; margin: 0 !important;
	font: inherit; font-size: 12.5px; font-weight: 600;
	height: auto !important; min-height: 0 !important; width: auto !important;
	cursor: pointer; box-shadow: none !important;
	letter-spacing: normal !important; text-transform: none !important;
}
.ofp .ofp-fav:hover { color: var(--ofp-text) !important; border-color: var(--ofp-accent) !important; }
.ofp .ofp-fav:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 2px; }
.ofp .ofp-fav.is-active {
	background: var(--ofp-accent) !important;
	color: var(--ofp-accent-text) !important;
	border-color: var(--ofp-accent) !important;
}

/* Ansichts-Umschalter */
.ofp-views { display: flex; gap: 6px; flex-wrap: wrap; }
.ofp .ofp-view {
	background: var(--ofp-panel-2) !important;
	color: var(--ofp-text-dim) !important;
	border: 1px solid var(--ofp-border) !important;
	border-radius: 8px !important;
	padding: 7px 11px !important; margin: 0 !important;
	font: inherit; font-size: 12.5px; font-weight: 600;
	height: auto !important; min-height: 0 !important; width: auto !important;
	cursor: pointer; box-shadow: none !important;
	letter-spacing: normal !important; text-transform: none !important;
	transition: color .15s ease, border-color .15s ease;
}
.ofp .ofp-view:hover { color: var(--ofp-text) !important; border-color: var(--ofp-accent) !important; }
.ofp .ofp-view:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 2px; }
.ofp .ofp-view.is-active {
	background: var(--ofp-accent) !important;
	color: var(--ofp-accent-text) !important;
	border-color: var(--ofp-accent) !important;
}

.ofp-toggles { display: flex; gap: 7px; flex-wrap: wrap; }
.ofp .ofp-toggle {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--ofp-panel-2) !important;
	color: var(--ofp-text-dim) !important;
	border: 1px solid var(--ofp-border) !important;
	border-radius: 999px !important;
	padding: 6px 10px !important;
	font: inherit; font-size: 12.5px; font-weight: 500;
	cursor: pointer; height: auto !important; min-height: 0 !important;
	letter-spacing: normal !important; text-transform: none !important;
	box-shadow: none !important; transition: color .15s ease, border-color .15s ease;
}
.ofp .ofp-toggle:hover { color: var(--ofp-text) !important; }
.ofp .ofp-toggle:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 2px; }
.ofp .ofp-toggle.is-active {
	color: var(--ofp-text) !important;
	border-color: var(--ofp-accent) !important;
}
.ofp-toggle__dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--ofp-border); flex: 0 0 7px;
}
.ofp .ofp-toggle.is-active .ofp-toggle__dot { background: var(--ofp-accent); }

/* ------------------------------------------------------------------ */
/* Einstellungs-Ebene                                                  */
/* ------------------------------------------------------------------ */
.ofp-settings {
	background: var(--ofp-panel); border: 1px solid var(--ofp-border);
	border-radius: var(--ofp-radius); box-shadow: var(--ofp-shadow);
	padding: 14px; margin-bottom: 12px;
}
.ofp-settings[hidden] { display: none; }
.ofp-settings__grid {
	display: grid; gap: 12px 16px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
/* Wie beim Feld in der Werkzeugleiste: `width` MUSS gesetzt werden, weil das
   Theme `label { width:100% }` global vergibt - im Raster egal, aber der
   Ausrichtung wegen bleibt es ausdruecklich stehen. */
.ofp .ofp-set {
	display: flex; flex-direction: column; gap: 5px;
	align-items: flex-start; width: auto; margin: 0; min-width: 0;
}
.ofp .ofp-set--wide { grid-column: 1 / -1; }
.ofp-set__label {
	display: inline-flex; align-items: center;
	font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
	text-transform: uppercase; color: var(--ofp-text-dim);
}
.ofp .ofp-set .ofp-select,
.ofp .ofp-set .ofp-input { width: 100% !important; min-width: 0; text-transform: none !important; }
.ofp .ofp-set .ofp-input[type="number"] { font-family: var(--ofp-mono); }

/* Schieber. `width`/`margin` wie bei den uebrigen Feldern gegen die globalen
   Theme-Regeln fuer Eingabeelemente. */
.ofp .ofp-range {
	-webkit-appearance: none; appearance: none;
	width: 100% !important; margin: 4px 0 0 !important;
	height: 20px !important; min-height: 0 !important;
	background: transparent !important; border: 0 !important;
	padding: 0 !important; box-shadow: none !important; cursor: pointer;
}
.ofp .ofp-range::-webkit-slider-runnable-track {
	height: 5px; border-radius: 999px; background: var(--ofp-panel-2);
	border: 1px solid var(--ofp-border);
}
.ofp .ofp-range::-moz-range-track {
	height: 5px; border-radius: 999px; background: var(--ofp-panel-2);
	border: 1px solid var(--ofp-border);
}
.ofp .ofp-range::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 15px; height: 15px; margin-top: -6px; border-radius: 50%;
	background: var(--ofp-accent); border: 0; cursor: pointer;
}
.ofp .ofp-range::-moz-range-thumb {
	width: 15px; height: 15px; border-radius: 50%;
	background: var(--ofp-accent); border: 0; cursor: pointer;
}
.ofp .ofp-range:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 3px; }
.ofp-range__wert {
	margin-left: auto; padding-left: 8px; font-weight: 600;
	font-family: var(--ofp-mono); font-size: 11px; color: var(--ofp-accent);
	text-transform: none; letter-spacing: normal;
}
.ofp .ofp-set__label { width: 100%; }

.ofp-settings__foot {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ofp-border);
}
.ofp-settings__note { font-size: 11.5px; color: var(--ofp-text-dim); }
.ofp .ofp-settings__foot .ofp-btn {
	cursor: pointer; padding: 8px 15px !important; font-size: 13.5px;
	background: var(--ofp-panel-2) !important; color: var(--ofp-text) !important;
	height: auto !important; min-height: 0 !important; width: auto !important;
	margin: 0 !important; letter-spacing: normal !important; text-transform: none !important;
	box-shadow: none !important;
}
.ofp .ofp-settings__foot .ofp-btn--primary {
	background: var(--ofp-accent) !important; color: var(--ofp-accent-text) !important;
	border-color: var(--ofp-accent) !important;
}

/* ------------------------------------------------------------------ */
/* Erklaerungen (Info-Symbol + Sprechblase)                            */
/* ------------------------------------------------------------------ */
.ofp .ofp-i {
	display: inline-flex; align-items: center; justify-content: center;
	width: 15px !important; height: 15px !important; min-height: 0 !important;
	min-width: 0; padding: 0 !important; margin: 0 0 0 5px !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--ofp-text-dim) !important;
	border: 1px solid var(--ofp-border) !important;
	font: inherit; font-size: 10px; font-weight: 700; line-height: 1;
	font-family: var(--ofp-mono); text-transform: none !important;
	letter-spacing: normal !important; box-shadow: none !important;
	cursor: help; vertical-align: middle; flex: 0 0 auto;
	transition: color .15s ease, border-color .15s ease;
}
.ofp .ofp-i:hover,
.ofp .ofp-i[aria-expanded="true"] {
	color: var(--ofp-accent-text) !important;
	background: var(--ofp-accent) !important;
	border-color: var(--ofp-accent) !important;
}
.ofp .ofp-i:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 2px; }

.ofp-ipop {
	position: fixed; z-index: 40; display: none; max-width: 340px;
	background: var(--ofp-panel); color: var(--ofp-text);
	border: 1px solid var(--ofp-border); border-radius: 10px;
	box-shadow: var(--ofp-shadow); padding: 11px 13px;
	font-size: 12.5px; line-height: 1.5;
}
.ofp-ipop__titel {
	font-weight: 650; margin-bottom: 5px; color: var(--ofp-text);
}
.ofp-ipop__was { margin: 0 0 7px; }
.ofp-ipop__wofuer {
	margin: 0; padding-top: 7px; border-top: 1px solid var(--ofp-border);
	color: var(--ofp-text-dim);
}
.ofp-ipop__wofuer b {
	display: block; font-size: 10.5px; text-transform: uppercase;
	letter-spacing: .05em; color: var(--ofp-accent); margin-bottom: 2px;
	font-weight: 700;
}
@media (max-width: 600px) { .ofp-ipop { max-width: 84vw; font-size: 12px; } }

/* ------------------------------------------------------------------ */
/* Kennzahlen                                                          */
/* ------------------------------------------------------------------ */
.ofp-kpis {
	display: grid; gap: 10px; margin-bottom: 12px;
	grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}
.ofp-kpi {
	background: var(--ofp-panel); border: 1px solid var(--ofp-border);
	border-radius: var(--ofp-radius); box-shadow: var(--ofp-shadow);
	padding: 11px 13px; min-width: 0;
}
.ofp-kpi__label {
	display: flex; align-items: center;
	font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
	text-transform: uppercase; color: var(--ofp-text-dim);
	white-space: nowrap;
}
.ofp-kpi__value {
	font-size: 20px; font-weight: 650; margin-top: 3px;
	color: var(--ofp-text); overflow-wrap: anywhere;
}
.ofp-kpi__sub { font-size: 12px; color: var(--ofp-text-dim); margin-top: 1px; }
.ofp-kpi__value.is-pos, .ofp-kpi__sub.is-pos, .is-pos { color: var(--ofp-pos); }
.ofp-kpi__value.is-neg, .ofp-kpi__sub.is-neg, .is-neg { color: var(--ofp-neg); }

/* ------------------------------------------------------------------ */
/* Layout: Inhalt + Seitenspalte                                       */
/* ------------------------------------------------------------------ */
.ofp-shell { display: flex; gap: 12px; align-items: flex-start; }
.ofp-main { flex: 1 1 auto; min-width: 0; outline: none; }
.ofp-side { flex: 0 0 290px; display: flex; flex-direction: column; gap: 12px; }

.ofp-panel {
	background: var(--ofp-panel); border: 1px solid var(--ofp-border);
	border-radius: var(--ofp-radius); box-shadow: var(--ofp-shadow);
}
.ofp .ofp-panel__title {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin: 0; padding: 11px 13px; font-size: 13.5px; font-weight: 600;
	color: var(--ofp-text); border-bottom: 1px solid var(--ofp-border);
}
.ofp-panel__name { display: inline-flex; align-items: center; min-width: 0; }
.ofp-badge {
	background: var(--ofp-panel-2); color: var(--ofp-text-dim);
	border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 600;
}

/* Flaeche */
.ofp-chart { position: relative; overflow: hidden; min-height: 340px; }
.ofp-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.ofp-canvas.is-dragging { cursor: grabbing; }

.ofp-loading {
	position: absolute; inset: 0; z-index: 3;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--ofp-panel); color: var(--ofp-text-dim); font-size: 13.5px;
}
.ofp-loading[hidden] { display: none; }
.ofp-spinner {
	width: 17px; height: 17px; border-radius: 50%;
	border: 2px solid var(--ofp-border); border-top-color: var(--ofp-accent);
	animation: ofp-spin .8s linear infinite;
}
@keyframes ofp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ofp-spinner { animation-duration: 3s; } }

.ofp-legend {
	position: absolute; top: 10px; left: 12px; z-index: 2;
	display: flex; gap: 12px; flex-wrap: wrap;
	background: var(--ofp-panel-2); border: 1px solid var(--ofp-border);
	border-radius: 8px; padding: 6px 10px; font-size: 11.5px; color: var(--ofp-text-dim);
}
.ofp-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.ofp-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ofp-swatch--kurs { background: var(--ofp-accent); }
.ofp-swatch--buy { background: var(--ofp-pos); }
.ofp-swatch--sell { background: var(--ofp-neg); }
.ofp-swatch--poc { background: var(--ofp-warn); }
.ofp-swatch--vwap { background: var(--ofp-zone); }
.ofp-swatch--ice { background: var(--ofp-ice); }

/* Aufbau-Hinweis der Liquiditaets-Spur: direkt UNTER der Legende, damit sich
   beide nicht ueberlagern (vorher wurde er auf die Flaeche gezeichnet und lag
   hinter der Legende - Ati, 23.08.2026). */
.ofp-build {
	position: absolute; top: 44px; left: 12px; z-index: 2;
	background: var(--ofp-panel-2); border: 1px solid var(--ofp-border);
	border-radius: 8px; padding: 4px 10px;
	font-size: 11px; font-family: var(--ofp-mono); color: var(--ofp-text-dim);
	white-space: nowrap; pointer-events: none;
}
.ofp-build[hidden] { display: none; }
@media (max-width: 700px) { .ofp-build { top: 66px; font-size: 10px; } }

.ofp-hint {
	position: absolute; bottom: 10px; left: 12px; z-index: 2;
	font-size: 11px; color: var(--ofp-text-dim); opacity: .75;
}
.ofp-tooltip {
	position: fixed; z-index: 20; display: none; pointer-events: none;
	background: var(--ofp-panel); color: var(--ofp-text);
	border: 1px solid var(--ofp-border); border-radius: 9px;
	box-shadow: var(--ofp-shadow); padding: 9px 11px; font-size: 12.5px;
	min-width: 178px;
}
.ofp-tooltip__price { font-weight: 650; margin-bottom: 4px; font-family: var(--ofp-mono); }
.ofp-tooltip__row { display: flex; justify-content: space-between; gap: 14px; }
.ofp-tooltip__row span { color: var(--ofp-text-dim); }
.ofp-tooltip__row b { font-family: var(--ofp-mono); font-weight: 600; }

/* Vollbild-Knopf an der Flaeche */
.ofp .ofp-chart-full {
	position: absolute; top: 10px; right: 12px; z-index: 4;
	background: var(--ofp-panel-2) !important;
	color: var(--ofp-text-dim) !important;
	border: 1px solid var(--ofp-border) !important;
	border-radius: 8px !important;
	width: auto !important; height: 30px !important; min-height: 0 !important;
	padding: 0 11px !important; margin: 0 !important; font: inherit;
	font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
	line-height: 1; cursor: pointer; box-shadow: none !important;
	letter-spacing: normal !important; text-transform: none !important;
	display: inline-flex; align-items: center; justify-content: center;
	opacity: .75; transition: opacity .15s ease, color .15s ease, border-color .15s ease;
}
.ofp .ofp-chart-full:hover { opacity: 1; color: var(--ofp-text) !important; border-color: var(--ofp-accent) !important; }

/* Vollfenster-Knopf links neben VOLLBILD (gemessen: VOLLBILD 78 px breit,
   12 px vom Rand -> 12 + 78 + 8). Gleiche Optik. */
.ofp .ofp-chart-fenster {
	position: absolute; top: 10px; right: 98px; z-index: 4;
	background: var(--ofp-panel-2) !important;
	color: var(--ofp-text-dim) !important;
	border: 1px solid var(--ofp-border) !important;
	border-radius: 8px !important;
	width: auto !important; height: 30px !important; min-height: 0 !important;
	padding: 0 11px !important; margin: 0 !important; font: inherit;
	font-size: 11.5px; font-weight: 700;
	line-height: 1; cursor: pointer; box-shadow: none !important;
	letter-spacing: normal !important; text-transform: none !important;
	display: inline-flex; align-items: center; justify-content: center;
	opacity: .75; transition: opacity .15s ease, color .15s ease, border-color .15s ease;
}
.ofp .ofp-chart-fenster:hover { opacity: 1; color: var(--ofp-text) !important; border-color: var(--ofp-accent) !important; }
.ofp .ofp-chart-fenster:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 2px; opacity: 1; }

/* Vollfenster: die Flaeche liegt fest ueber dem ganzen Browserfenster.
   Gemessen 19.09.2026: kein Vorfahr mit transform/filter/contain - fixed
   bezieht sich also wirklich auf das Fenster. */
.ofp .ofp-chart.ofp-chart--fenster {
	position: fixed !important; inset: 0 !important; z-index: 100000 !important;
	width: 100vw !important; height: 100vh !important; max-width: none !important;
	margin: 0 !important; border-radius: 0 !important; border: 0 !important;
	background: var(--ofp-chart-bg);
}
html.ofp-fenster-offen, html.ofp-fenster-offen body { overflow: hidden !important; }
/* GEMESSEN 19.09.2026: <main> (z-index 1) und .wp-site-blocks (z-index 1) bilden
   eigene Stapelkontexte - die Flaeche kam darin nicht ueber Kopfzeile und Logo.
   Nur solange das Vollfenster offen ist: beide nach oben heben; schwebende
   Knoepfe und Maskottchen ausblenden (wie beim Full Window der Heatmap). */
html.ofp-fenster-offen .wp-site-blocks,
html.ofp-fenster-offen main.site-main { z-index: 2147470000 !important; }
html.ofp-fenster-offen #mintify-tradebuttons-logo,
html.ofp-fenster-offen #tbbro-host,
html.ofp-fenster-offen .tbbro-bubble,
html.ofp-fenster-offen .tbpo-launcher,
html.ofp-fenster-offen #tb-adminbar-toggle { visibility: hidden !important; }
.ofp-chart--fenster .ofp-hud {
	display: block; position: absolute; z-index: 5;
	top: 50px; left: 12px; right: auto; bottom: auto;
	width: 290px; max-height: calc(100% - 80px); overflow: auto;
	background: var(--ofp-panel); border: 1px solid var(--ofp-border);
	border-radius: 10px; box-shadow: var(--ofp-shadow);
	padding: 10px 12px 11px; font-size: 12px; color: var(--ofp-text);
}
.ofp-chart--fenster .ofp-hud__grid { grid-template-columns: 1fr; gap: 3px 10px; }
.ofp-chart--fenster .ofp-hud__head { gap: 8px; margin-bottom: 7px; }
.ofp-chart--fenster .ofp-hud__price { font-size: 17px; }
.ofp-chart--fenster .ofp-hud__tape { display: none; }
.ofp-chart--fenster.ofp-chart--aufbau .ofp-hud { top: 76px; }
.ofp-chart--fenster .ofp-hint { bottom: 10px; }
.ofp .ofp-chart-full:focus-visible { outline: 2px solid var(--ofp-focus); outline-offset: 2px; opacity: 1; }

/* Info-Leiste: nur im Vollbild der Flaeche sichtbar - sonst stuenden die
   gleichen Werte doppelt neben den Kennzahlen. */
.ofp-hud { display: none; }
/* ⛔ KEIN `padding-bottom` mehr: die Info-Leiste lag als breiter Streifen unten
   und deckte Zeitachse und Volumenbalken zu (Ati, 23.08.2026). Sie sitzt jetzt
   als schmales Feld oben rechts und nimmt der Flaeche keine Hoehe weg. */
.ofp-chart:fullscreen {
	width: 100vw !important; height: 100vh !important;
	max-width: none; border-radius: 0; border: 0;
	background: var(--ofp-chart-bg);
}
/* Die Box sitzt LINKS UNTER DER LEGENDE (Ati, 23.08.2026 — rechts war sie im
   Weg). Gemessen: Legende endet bei ~41 px, der Aufbau-Hinweis bei ~68 px.
   Solange der Hinweis steht, beginnt die Box bei 76 px, sonst rutscht sie auf
   50 px hoch - die Klasse setzt das Skript. */
.ofp-chart:fullscreen .ofp-hud {
	display: block; position: absolute; z-index: 5;
	top: 50px; left: 12px; right: auto; bottom: auto;
	width: 290px; max-height: calc(100% - 80px); overflow: auto;
	background: var(--ofp-panel); border: 1px solid var(--ofp-border);
	border-radius: 10px; box-shadow: var(--ofp-shadow);
	padding: 10px 12px 11px; font-size: 12px; color: var(--ofp-text);
}
.ofp-chart:fullscreen .ofp-hud__grid { grid-template-columns: 1fr; gap: 3px 10px; }
.ofp-chart:fullscreen .ofp-hud__head { gap: 8px; margin-bottom: 7px; }
.ofp-chart:fullscreen .ofp-hud__price { font-size: 17px; }
.ofp-chart:fullscreen .ofp-hud__tape { display: none; }
.ofp-chart--aufbau:fullscreen .ofp-hud { top: 76px; }
.ofp-chart:fullscreen .ofp-hint { bottom: 10px; }
/* ⚠️ Auf dieser Seite liegt `DIV.tbbro-host` (BRO-Assistent) fest verankert mit
   z-index 2147480500 ueber allem. Im ELEMENT-Vollbild (Knopf „VOLLBILD") malt
   es nicht mit, im Browser-Vollbild (F11) schon. Der freie Streifen unten sorgt
   dafuer, dass Zeitachse und Volumenbalken auch dann sichtbar bleiben.
   Das fremde Plugin bleibt unangetastet. */
.ofp:fullscreen { padding-bottom: 76px; }
.ofp-chart:fullscreen .ofp-chart-full { top: 12px; right: 14px; }

.ofp-hud__head {
	display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
	margin-bottom: 8px;
}
.ofp-hud__sym { font-weight: 650; letter-spacing: .02em; }
.ofp-hud__price { font-family: var(--ofp-mono); font-size: 19px; font-weight: 650; }
.ofp-hud__change { font-family: var(--ofp-mono); font-weight: 600; }
.ofp-hud__spread { color: var(--ofp-text-dim); font-family: var(--ofp-mono); font-size: 11.5px; }

.ofp-hud__grid {
	display: grid; gap: 4px 16px;
	grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
	margin-bottom: 8px;
}
.ofp-hud__grid span { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.ofp-hud__grid i {
	font-style: normal; color: var(--ofp-text-dim); font-size: 11px;
	text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.ofp-hud__grid b { font-family: var(--ofp-mono); font-weight: 600; white-space: nowrap; }

.ofp-hud__meter { position: relative; height: 7px; border-radius: 999px; background: var(--ofp-neg-bg); overflow: hidden; }
.ofp-hud__fill { display: block; height: 100%; width: 50%; background: var(--ofp-pos); transition: width .2s ease; }
.ofp-hud__meterlab {
	position: absolute; right: 0; top: -17px; font-size: 11px; color: var(--ofp-text-dim);
}
.ofp-hud__meterlab b { font-family: var(--ofp-mono); color: var(--ofp-text); }
.ofp-hud__tape {
	display: flex; gap: 10px; align-items: baseline; margin-top: 9px;
	font-size: 11.5px; overflow: hidden;
}
.ofp-hud__tape i {
	font-style: normal; color: var(--ofp-text-dim); font-size: 11px;
	text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; flex: 0 0 auto;
}
.ofp-hud-tape {
	font-family: var(--ofp-mono); color: var(--ofp-text-dim);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Bid/Ask-Druck */
.ofp-meter {
	height: 9px; margin: 11px 13px 6px; border-radius: 999px;
	background: var(--ofp-neg-bg); overflow: hidden;
}
.ofp-meter__fill {
	display: block; height: 100%; border-radius: 999px;
	background: var(--ofp-pos); transition: width .2s ease;
}
.ofp-pressure__legend {
	display: flex; justify-content: space-between; gap: 10px;
	padding: 0 13px 11px; font-size: 11.5px; color: var(--ofp-text-dim);
}
.ofp-pressure__legend b { font-family: var(--ofp-mono); font-weight: 600; }

/* Alarme */
.ofp-alerts[hidden] { display: none; }
.ofp-alerts__list { max-height: 190px; overflow-y: auto; }
.ofp-alerts__item {
	display: flex; align-items: center; gap: 8px;
	padding: 8px 13px; border-bottom: 1px solid var(--ofp-border);
	font-size: 12.5px; background: var(--ofp-warn-bg);
	animation: ofp-slide-in .28s ease;
}
.ofp-alerts__item:last-child { border-bottom: 0; }
.ofp-alerts__tag { color: var(--ofp-warn); font-weight: 700; font-size: 11px; letter-spacing: .04em; }
.ofp-alerts__body { color: var(--ofp-text); font-family: var(--ofp-mono); font-size: 11.5px; }
@keyframes ofp-slide-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ofp-alerts__item { animation: none; } }

/* Iceberg-Liste */
.ofp-ice__list { list-style: none; margin: 0; padding: 6px 0; }
.ofp-ice__item {
	display: flex; align-items: center; gap: 9px;
	padding: 6px 13px; font-size: 12.5px;
}
.ofp-ice__mark { color: var(--ofp-ice); flex: 0 0 auto; }
.ofp-ice__price { font-family: var(--ofp-mono); color: var(--ofp-text); flex: 1 1 auto; }
.ofp-ice__meta { font-family: var(--ofp-mono); font-size: 11px; color: var(--ofp-text-dim); flex: 0 0 auto; }
.ofp-ice__empty { margin: 0; padding: 13px; font-size: 12.5px; color: var(--ofp-text-dim); }
.ofp-ice__empty[hidden] { display: none; }

/* Time & Sales */
.ofp-tape__list { max-height: 330px; overflow-y: auto; }
.ofp-tape__item {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 6px 13px; border-bottom: 1px solid var(--ofp-border); font-size: 12.5px;
}
.ofp-tape__item:last-child { border-bottom: 0; }
.ofp-tape__item.is-big { background: var(--ofp-warn-bg); }
.ofp-tape__side {
	font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
	padding: 2px 6px; border-radius: 5px; flex: 0 0 auto;
}
.ofp-tape__side.buy { background: var(--ofp-pos-bg); color: var(--ofp-pos); }
.ofp-tape__side.sell { background: var(--ofp-neg-bg); color: var(--ofp-neg); }
.ofp-tape__price { font-family: var(--ofp-mono); font-weight: 600; flex: 1 1 auto; text-align: right; }
.ofp-tape__amount { font-family: var(--ofp-mono); font-size: 11px; color: var(--ofp-text-dim); flex: 0 0 auto; }
.ofp-tape__empty { margin: 0; padding: 13px; font-size: 12.5px; color: var(--ofp-text-dim); }
.ofp-tape__empty[hidden] { display: none; }

/* Quellen */
.ofp-sources__list { list-style: none; margin: 0; padding: 6px 0; }
.ofp-sources__item {
	display: flex; align-items: center; gap: 8px;
	padding: 6px 13px; font-size: 12.5px; color: var(--ofp-text);
}
.ofp-sources__state { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.ofp-sources__state.on { background: var(--ofp-pos); }
.ofp-sources__state.off { background: var(--ofp-border); }
.ofp-sources__note {
	margin: 0; padding: 9px 13px 12px; font-size: 11.5px; line-height: 1.45;
	color: var(--ofp-text-dim); border-top: 1px solid var(--ofp-border);
}

/* Vollbild */
.ofp:fullscreen {
	overflow-y: auto; max-width: none; border-radius: 0;
	padding: 18px; background: var(--ofp-bg);
}
.ofp:fullscreen .ofp-chart { height: calc(100vh - 320px) !important; min-height: 320px; }

/* Gesperrt / Hinweis */
.ofp-locked { padding: 34px 20px; text-align: center; }
.ofp .ofp-locked h2 { margin: 0 0 8px; font-size: 20px; }
.ofp .ofp-btn {
	display: inline-block; padding: 9px 17px; border-radius: 8px;
	font-size: 14px; font-weight: 600; text-decoration: none !important;
	border: 1px solid var(--ofp-border) !important;
}
.ofp .ofp-btn--primary {
	background: var(--ofp-accent) !important;
	color: var(--ofp-accent-text) !important;
	border-color: var(--ofp-accent) !important;
}

.ofp-skip { position: absolute; left: -9999px; }
.ofp-skip:focus {
	position: static; display: inline-block; padding: 6px 12px;
	background: var(--ofp-accent); color: var(--ofp-accent-text) !important;
}

/* ------------------------------------------------------------------ */
/* Schmale Fenster                                                     */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
	/* In Spaltenrichtung bestimmt align-items die Breite: mit dem fuer Desktop
	   noetigen flex-start wuerde die Hauptspalte auf Inhaltsbreite wachsen. */
	.ofp-shell { flex-direction: column; align-items: stretch; }
	.ofp-side { flex: 1 1 auto; width: 100%; }
	.ofp-tape__list { max-height: 260px; }
}
@media (max-width: 600px) {
	.ofp { padding: 10px; font-size: 14.5px; }
	.ofp .ofp-h1 { font-size: 19px; }
	.ofp-kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
	.ofp-kpi__value { font-size: 17px; }
	.ofp .ofp-field, .ofp .ofp-field--grow { flex: 1 1 100%; }
	.ofp .ofp-select, .ofp .ofp-input { width: 100% !important; min-width: 0; }
	.ofp-favs { width: 100%; }
	.ofp .ofp-fav { flex: 1 1 auto; }
	.ofp-hint { display: none; }
	.ofp-legend { gap: 8px; font-size: 10.5px; }
}

/* Boersen-Links neben den Markt-Feldern (20.09.2026, Ati). */
.ofp-affiliate {
	display: flex;
	align-items: flex-end;
	min-width: 0;
}

.ofp-affiliate:empty {
	display: none;
}
