.engine-feature-animation .htm-plot{position:relative;min-height:355px;overflow:hidden;background:radial-gradient(210px 115px at 60% 52%,rgba(201,40,61,.033),transparent 70%),#09090c}
.engine-feature-animation .htm-plot svg{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}
.engine-feature-animation .htm-plot-overlay{position:absolute;bottom:14px;left:16px;border:1px solid rgba(255,255,255,.08);background:#141318dc;color:#85838d;border-radius:5px;padding:6px 8px;font-size:9px;letter-spacing:.05em;font-weight:600;pointer-events:none}
.engine-feature-animation .htm-crosshair{stroke:#c5b9b855;stroke-dasharray:3 6;stroke-width:.75}
.engine-feature-animation .htm-price{fill:#99949a;font-size:10px;font-variant-numeric:tabular-nums}
.engine-feature-animation .htm-grid{stroke:#35303866;stroke-width:.75}
.engine-feature-animation .htm-candle{opacity:.94}
.engine-feature-animation .htm-chart-zone{opacity:0;transform:translateY(9px);transition:opacity .55s ease,transform .65s cubic-bezier(.16,1,.3,1)}
.engine-feature-animation .htm-chart-zone rect{vector-effect:non-scaling-stroke}
.engine-feature-animation .htm-zone-label{font-size:11px;font-weight:700;letter-spacing:.04em}
.engine-feature-animation.htm[data-step="0"] .htm-zone-0,.engine-feature-animation.htm[data-step="1"] .htm-zone-0,.engine-feature-animation.htm[data-step="2"] .htm-zone-0,.engine-feature-animation.htm[data-step="3"] .htm-zone-0{opacity:1;transform:translateY(0)}
.engine-feature-animation.htm[data-step="1"] .htm-zone-1,.engine-feature-animation.htm[data-step="2"] .htm-zone-1,.engine-feature-animation.htm[data-step="3"] .htm-zone-1{opacity:1;transform:translateY(0)}
.engine-feature-animation.htm[data-step="2"] .htm-zone-2,.engine-feature-animation.htm[data-step="3"] .htm-zone-2{opacity:1;transform:translateY(0)}
.engine-feature-animation.htm[data-step="3"] .htm-zone-3{opacity:1;transform:translateY(0)}
.engine-feature-animation .htm-cluster{opacity:0;transform:translateY(5px) scale(.985);transform-origin:50% 53%;transition:opacity .55s ease,transform .55s cubic-bezier(.2,1,.2,1)}
.engine-feature-animation.htm[data-step="4"] .htm-cluster{opacity:1;transform:none}
.engine-feature-animation .htm-cluster-pulse{transform-box:fill-box;transform-origin:center;opacity:0}
.engine-feature-animation.htm[data-step="4"] .htm-cluster-pulse{animation:htmPulse 2.7s ease-out infinite}
@keyframes htmPulse{0%{opacity:.55;transform:scale(.98)}70%,100%{opacity:0;transform:scale(1.085)}}
.engine-feature-animation.htm[data-step="1"] .htm-meter:after{transform:scaleX(.35)}
.engine-feature-animation.htm[data-step="2"] .htm-meter:after{transform:scaleX(.6)}
.engine-feature-animation.htm[data-step="3"] .htm-meter:after{transform:scaleX(.83)}
.engine-feature-animation.htm[data-step="4"] .htm-meter:after{transform:scaleX(1)}
.engine-feature-animation.htm[data-step="0"] .htm-tfrow[data-n="0"],.engine-feature-animation.htm[data-step="1"] .htm-tfrow[data-n="0"],.engine-feature-animation.htm[data-step="1"] .htm-tfrow[data-n="1"],.engine-feature-animation.htm[data-step="2"] .htm-tfrow[data-n="0"],.engine-feature-animation.htm[data-step="2"] .htm-tfrow[data-n="1"],.engine-feature-animation.htm[data-step="2"] .htm-tfrow[data-n="2"],.engine-feature-animation.htm[data-step="3"] .htm-tfrow,.engine-feature-animation.htm[data-step="4"] .htm-tfrow{opacity:1;background:#1e191e;border-color:#55363e}
.engine-feature-animation.htm[data-step="0"] .htm-tfrow[data-n="0"] em::after,.engine-feature-animation.htm[data-step="1"] .htm-tfrow[data-n="0"] em::after,.engine-feature-animation.htm[data-step="1"] .htm-tfrow[data-n="1"] em::after,.engine-feature-animation.htm[data-step="2"] .htm-tfrow[data-n="0"] em::after,.engine-feature-animation.htm[data-step="2"] .htm-tfrow[data-n="1"] em::after,.engine-feature-animation.htm[data-step="2"] .htm-tfrow[data-n="2"] em::after,.engine-feature-animation.htm[data-step="3"] .htm-tfrow em::after,.engine-feature-animation.htm[data-step="4"] .htm-tfrow em::after{content:'FOUND';color:#75d2ad}
.engine-feature-animation .htm-cluster-status{margin:auto 11px 11px;padding:12px 10px;border-radius:7px;background:#171017;border:1px solid #38232a;min-height:62px;display:flex;align-items:center;gap:9px;transition:border-color .4s,background .4s}
.engine-feature-animation .htm-cluster-icon{height:26px;width:26px;display:grid;place-items:center;border-radius:6px;color:#e58f9d;background:#42202b;font-size:14px}
.engine-feature-animation .htm-cluster-status strong{font-size:10px;letter-spacing:.03em;display:block}
.engine-feature-animation .htm-cluster-status small{font-size:9px;color:#8e858e;display:block;margin-top:4px}
.engine-feature-animation.htm[data-step="4"] .htm-cluster-status{border-color:#498a714d;background:#10221b}
.engine-feature-animation.htm[data-step="4"] .htm-cluster-icon{background:#1e4638;color:#77e9ac}
.engine-feature-animation.htm[data-step="0"] .htm-dots span:nth-child(1),.engine-feature-animation.htm[data-step="1"] .htm-dots span:nth-child(2),.engine-feature-animation.htm[data-step="2"] .htm-dots span:nth-child(3),.engine-feature-animation.htm[data-step="3"] .htm-dots span:nth-child(4),.engine-feature-animation.htm[data-step="4"] .htm-dots span:nth-child(5){background:#f55e50}
.engine-feature-animation .htf-plot{position:relative;min-height:355px;overflow:hidden;background:radial-gradient(210px 115px at 60% 52%,rgba(201,40,61,.033),transparent 70%),#09090c}
.engine-feature-animation .htf-plot svg{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}
.engine-feature-animation .htf-plot-overlay{position:absolute;bottom:14px;left:16px;border:1px solid rgba(255,255,255,.08);background:#141318dc;color:#85838d;border-radius:5px;padding:6px 8px;font-size:9px;letter-spacing:.05em;font-weight:600;pointer-events:none}
.engine-feature-animation .htf-grid{stroke:#35303866;stroke-width:.75}
.engine-feature-animation .htf-price{fill:#99949a;font-size:10px;font-variant-numeric:tabular-nums}
.engine-feature-animation /* FIB */
.htf-fib-anchors,.engine-feature-animation .htf-fib-level,.engine-feature-animation .htf-fib-pocket,.engine-feature-animation .htf-fib-match,.engine-feature-animation .htf-fib-badge{opacity:0;transition:opacity .5s ease,transform .55s cubic-bezier(.2,1,.3,1)}
.engine-feature-animation .htf-fib-anchors{transform:scale(.92);transform-origin:30% 45%}
.engine-feature-animation .htf-fib-level{transform:translateX(-13px)}
.engine-feature-animation .htf-fib-pocket{transform:scaleY(.8);transform-origin:50% 58%}
.engine-feature-animation .htf-fib-match{transform:translateY(7px)}
.engine-feature-animation .htf-fib-badge{transform:translateY(8px)}
.engine-feature-animation.htf-fib[data-step="1"] .htf-fib-anchors,.engine-feature-animation.htf-fib[data-step="2"] .htf-fib-anchors,.engine-feature-animation.htf-fib[data-step="3"] .htf-fib-anchors,.engine-feature-animation.htf-fib[data-step="4"] .htf-fib-anchors{opacity:1;transform:none}
.engine-feature-animation.htf-fib[data-step="2"] .htf-fib-level,.engine-feature-animation.htf-fib[data-step="3"] .htf-fib-level,.engine-feature-animation.htf-fib[data-step="4"] .htf-fib-level{opacity:1;transform:none}
.engine-feature-animation.htf-fib[data-step="3"] .htf-fib-pocket,.engine-feature-animation.htf-fib[data-step="4"] .htf-fib-pocket,.engine-feature-animation.htf-fib[data-step="3"] .htf-fib-match,.engine-feature-animation.htf-fib[data-step="4"] .htf-fib-match{opacity:1;transform:none}
.engine-feature-animation.htf-fib[data-step="4"] .htf-fib-badge{opacity:1;transform:none}
.engine-feature-animation .htf-fib-pulse{opacity:0;transform-box:fill-box;transform-origin:center}
.engine-feature-animation.htf-fib[data-step="4"] .htf-fib-pulse{animation:htfPulse 2.7s ease-out infinite}
.engine-feature-animation /* ALERTS */
.htf-alert .htf-extra-candles,.engine-feature-animation.htf-alert .htf-new-zone,.engine-feature-animation.htf-alert .htf-alert-mark{opacity:0;transition:opacity .6s ease,transform .6s ease}
.engine-feature-animation.htf-alert .htf-extra-candles{transform:translateX(-12px)}
.engine-feature-animation.htf-alert .htf-new-zone{transform:scaleY(.82);transform-origin:50% 55%}
.engine-feature-animation.htf-alert[data-step="2"] .htf-extra-candles,.engine-feature-animation.htf-alert[data-step="3"] .htf-extra-candles,.engine-feature-animation.htf-alert[data-step="4"] .htf-extra-candles,.engine-feature-animation.htf-alert[data-step="2"] .htf-new-zone,.engine-feature-animation.htf-alert[data-step="3"] .htf-new-zone,.engine-feature-animation.htf-alert[data-step="4"] .htf-new-zone{opacity:1;transform:none}
.engine-feature-animation.htf-alert[data-step="3"] .htf-alert-mark,.engine-feature-animation.htf-alert[data-step="4"] .htf-alert-mark{opacity:1}
.engine-feature-animation .htf-toast{position:absolute;top:70px;right:31px;width:255px;padding:14px;border:1px solid #6a424c;background:linear-gradient(145deg,#28191f,#131116);border-radius:10px;box-shadow:0 18px 50px #000a,0 0 30px #ba3c4616;opacity:0;transform:translateY(-12px) scale(.98);transition:opacity .5s ease,transform .5s cubic-bezier(.2,1,.3,1);pointer-events:none}
.engine-feature-animation.htf-alert[data-step="3"] .htf-toast,.engine-feature-animation.htf-alert[data-step="4"] .htf-toast{opacity:1;transform:none}
.engine-feature-animation .htf-toast-head{display:flex;align-items:center;gap:8px;color:#f0d1d6;font-size:10px;letter-spacing:.08em;font-weight:800;margin-bottom:7px}
.engine-feature-animation .htf-toast-bell{display:inline-grid;place-items:center;border-radius:5px;background:#512c36;height:23px;width:23px;color:#ffaaa0}
.engine-feature-animation .htf-toast strong{display:block;color:#fff;font-size:12px;margin-bottom:5px}
.engine-feature-animation .htf-toast p{margin:0;color:#afa1ac;font-size:10px}
.engine-feature-animation .htf-toast-chip{margin-top:10px;padding:5px 7px;display:inline-block;color:#89e7b7;border:1px solid #2c7150;background:#10251d;font-size:9px;font-weight:700;border-radius:4px}
.engine-feature-animation.htf-alert .htf-livepulse{opacity:.45}
.engine-feature-animation.htf-alert[data-step="1"] .htf-livepulse,.engine-feature-animation.htf-alert[data-step="2"] .htf-livepulse,.engine-feature-animation.htf-alert[data-step="3"] .htf-livepulse,.engine-feature-animation.htf-alert[data-step="4"] .htf-livepulse{opacity:1;animation:htfBlink 1.8s ease-in-out infinite}
.engine-feature-animation /* EQUITIES */
.htf-equity .htf-next-session,.engine-feature-animation.htf-equity .htf-gap-line,.engine-feature-animation.htf-equity .htf-qualified,.engine-feature-animation.htf-equity .htf-breaker{opacity:0;transition:opacity .55s,transform .5s ease}
.engine-feature-animation.htf-equity .htf-next-session{transform:translateX(9px)}
.engine-feature-animation.htf-equity .htf-gap-line{transform:scaleY(.87);transform-origin:58% 55%}
.engine-feature-animation.htf-equity .htf-qualified,.engine-feature-animation.htf-equity .htf-breaker{transform:translateY(7px)}
.engine-feature-animation.htf-equity[data-step="1"] .htf-next-session,.engine-feature-animation.htf-equity[data-step="2"] .htf-next-session,.engine-feature-animation.htf-equity[data-step="3"] .htf-next-session,.engine-feature-animation.htf-equity[data-step="4"] .htf-next-session{opacity:1;transform:none}
.engine-feature-animation.htf-equity[data-step="2"] .htf-gap-line,.engine-feature-animation.htf-equity[data-step="3"] .htf-gap-line,.engine-feature-animation.htf-equity[data-step="4"] .htf-gap-line{opacity:1;transform:none}
.engine-feature-animation.htf-equity[data-step="3"] .htf-qualified,.engine-feature-animation.htf-equity[data-step="4"] .htf-qualified{opacity:1;transform:none}
.engine-feature-animation.htf-equity[data-step="4"] .htf-breaker{opacity:1;transform:none}
@keyframes htfPulse{0%{opacity:.6;transform:scale(.98)}70%,100%{opacity:0;transform:scale(1.08)}}
@keyframes htfBlink{50%{opacity:.38}}

.engine-feature-animation { aspect-ratio:auto; container-type:inline-size; color:#f4eff2; font-family:var(--body); }
.engine-feature-animation .htm-plot,.engine-feature-animation .htf-plot { height:auto; min-height:0; aspect-ratio:720 / 355; background:#0b0c0e; }
.engine-feature-animation svg { font-family:var(--body); }
.engine-feature-animation .htm-plot-overlay,.engine-feature-animation .htf-plot-overlay { bottom:8px; left:8px; font-size:8px; padding:4px 6px; }
.feature-animation-controls { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; background:#111015; border-top:1px solid #ffffff0c; }
.feature-animation-phase { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#a89ca5; font-size:10px; }
.feature-animation-buttons { display:flex; flex:0 0 auto; gap:6px; }
.feature-animation-buttons button { padding:5px 8px; border:1px solid #ef625a2a; border-radius:5px; background:#ef625a08; color:#e7d8df; font:500 10px var(--body); cursor:pointer; }
.feature-animation-buttons button:hover { border-color:#ef625a80; background:#ef625a15; }
.feature-animation-buttons button:focus-visible { outline:2px solid var(--red); outline-offset:2px; }
.feature-animation-buttons button:disabled { opacity:.55; cursor:default; }
.engine-feature-animation[data-playing="false"] *,.engine-feature-animation[data-playing="false"] *::before,.engine-feature-animation[data-playing="false"] *::after { animation-play-state:paused!important; }
.engine-feature-animation .htf-toast { top:20px; right:12px; width:205px; padding:10px; border-color:#f55e5060; background:linear-gradient(145deg,#251719,#111015); }
@container (max-width:400px) { .engine-feature-animation .htf-toast { top:12px; right:8px; width:170px; padding:8px; } .engine-feature-animation .htf-toast-head { font-size:8px; margin-bottom:5px; } .engine-feature-animation .htf-toast strong { font-size:10px; } .engine-feature-animation .htf-toast p { font-size:8px; } .engine-feature-animation .htf-toast-chip { font-size:8px; margin-top:6px; } .feature-animation-phase { font-size:9px; } .feature-animation-buttons button { padding:5px 6px; } }
@media(prefers-reduced-motion:reduce) { .engine-feature-animation *,.engine-feature-animation *::before,.engine-feature-animation *::after { animation:none!important; transition:none!important; } }

.feature-animation-buttons button { min-height:28px; }
@container (max-width:400px) { .engine-feature-animation .htf-toast { top:8px; padding:7px; } .engine-feature-animation .htf-toast-head { gap:6px; margin-bottom:4px; line-height:1.2; } .engine-feature-animation .htf-toast-bell { height:18px; width:18px; } .engine-feature-animation .htf-toast strong { font-size:9px; line-height:1.2; margin-bottom:3px; } .engine-feature-animation .htf-toast p { line-height:1.4; } .engine-feature-animation .htf-toast-chip { padding:3px 5px; line-height:1.2; margin-top:5px; } }
@container (max-width:300px) { .engine-feature-animation .htf-toast { width:150px; } .engine-feature-animation .htf-toast p { display:none; } }

.engine-feature-animation .htf-fib-level[data-animation-delay="0"] { transition-delay:0ms; }
.engine-feature-animation .htf-fib-level[data-animation-delay="95"] { transition-delay:95ms; }
.engine-feature-animation .htf-fib-level[data-animation-delay="190"] { transition-delay:190ms; }
.engine-feature-animation .htf-fib-level[data-animation-delay="285"] { transition-delay:285ms; }
.engine-feature-animation .htf-fib-level[data-animation-delay="380"] { transition-delay:380ms; }

/* Interactive feature choreography. */
.engine-feature-animation .htm-chart-zone rect { transform-box:view-box; transform-origin:0 0; }
.engine-feature-animation.htm[data-step="4"] .htm-chart-zone { transform:none; }
.feature-cluster-trigger { position:absolute; left:28.89%; top:40.28%; width:58.33%; height:19.15%; padding:0; border:0; border-radius:4px; background:transparent; cursor:pointer; z-index:1; }
.feature-cluster-trigger:hover { box-shadow:inset 0 0 0 1px #75e4b480; }
.feature-cluster-trigger:focus-visible { outline:2px solid var(--red); outline-offset:3px; }
.feature-cluster-details { position:absolute; left:12px; top:12px; width:min(260px,calc(100% - 24px)); padding:10px; display:grid; gap:8px; border:1px solid #75e4b460; border-radius:8px; background:#101b17f5; box-shadow:0 6px 20px #0007; pointer-events:none; z-index:3; }
.feature-cluster-details[hidden],.feature-cluster-trigger[hidden] { display:none; }
.feature-cluster-details strong { color:#d1f8e5; font-size:11px; font-weight:600; }
.feature-cluster-details > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.feature-cluster-details span { color:#b9e8d1; font-size:11px; padding:4px 6px; border:1px solid #75e4b420; border-radius:4px; background:#75e4b407; }
.feature-cluster-details small { margin-left:5px; color:#8ba598; font-size:9px; }
.feature-fib-controls { position:absolute; left:8px; right:8px; top:6px; z-index:2; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; }
.feature-fib-controls button { min-width:0; min-height:24px; padding:4px 0; border:1px solid #ffffff1f; border-radius:4px; background:#111015ef; color:#c6b7c0; font:500 10px/1.2 var(--body); white-space:nowrap; cursor:pointer; }
.feature-fib-controls button:hover,.feature-fib-controls button.is-highlighted { color:#fff; border-color:#f55e50a0; background:#382122; }
.feature-fib-controls button[aria-pressed="true"] { border-color:#89e7b7; color:#bdf5d8; background:#132b20; }
.feature-fib-controls button:focus-visible { outline:2px solid var(--red); outline-offset:2px; }
.feature-fib-summary { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.engine-feature-animation .htf-fib-level { pointer-events:none; }
.engine-feature-animation.htf-fib[data-step="2"] .htf-fib-level,.engine-feature-animation.htf-fib[data-step="3"] .htf-fib-level,.engine-feature-animation.htf-fib[data-step="4"] .htf-fib-level { pointer-events:all; cursor:pointer; }
.engine-feature-animation.htf-fib[data-step="2"] .htf-fib-level.is-dimmed,.engine-feature-animation.htf-fib[data-step="3"] .htf-fib-level.is-dimmed,.engine-feature-animation.htf-fib[data-step="4"] .htf-fib-level.is-dimmed { opacity:.23; }
.engine-feature-animation .htf-fib-level.is-selected line { stroke:#ff9285; stroke-width:2.5; opacity:1; }
.engine-feature-animation .htf-fib-level.is-selected text { fill:#fff; font-size:12px; }
.engine-feature-animation .feature-fib-bb { transition:stroke-width .2s ease,filter .2s ease; }
.engine-feature-animation.has-fib-overlap .feature-fib-bb { stroke:#9bf0c3; stroke-width:2.8; filter:drop-shadow(0 0 4px #65cba04d); }
.engine-feature-animation.has-fib-overlap .htf-fib-pocket rect { stroke:#baffd6; stroke-width:1.2; }
.engine-feature-animation .feature-alert-scan { opacity:0; pointer-events:none; transform-box:view-box; transform-origin:0 0; }
.engine-feature-animation.htf-alert[data-step="1"] .feature-alert-scan { opacity:.7; }
.feature-scan-status { position:absolute; left:10px; top:10px; padding:5px 7px; border:1px solid #f55e5038; border-radius:5px; background:#141116e8; color:#dfb4af; font-size:9px; pointer-events:none; }
.engine-feature-animation.htf-alert[data-step="3"] .feature-scan-status,.engine-feature-animation.htf-alert[data-step="4"] .feature-scan-status { display:none; }
.engine-feature-animation .htf-extra-candles > g,.engine-feature-animation .htf-next-session > g { transform-box:view-box; transform-origin:0 0; }
.engine-feature-animation .feature-equity-gap-area { opacity:0; transition:opacity .4s ease; }
.engine-feature-animation.htf-equity[data-step="2"] .feature-equity-gap-area,.engine-feature-animation.htf-equity[data-step="3"] .feature-equity-gap-area,.engine-feature-animation.htf-equity[data-step="4"] .feature-equity-gap-area { opacity:1; }
.engine-feature-animation .feature-gap-close { opacity:.45; }
.engine-feature-animation .feature-gap-open { opacity:0; }
.engine-feature-animation.htf-equity[data-step="1"] .feature-gap-open,.engine-feature-animation.htf-equity[data-step="2"] .feature-gap-open,.engine-feature-animation.htf-equity[data-step="3"] .feature-gap-open,.engine-feature-animation.htf-equity[data-step="4"] .feature-gap-open { opacity:1; }
@container(max-width:300px) { .feature-fib-controls { gap:3px; left:6px; right:6px; } .feature-fib-controls button { font-size:9px; } .feature-cluster-details { padding:8px; gap:6px; } }
@media(forced-colors:active) { .feature-fib-controls button,.feature-cluster-details { border-color:CanvasText; } }

.feature-fib-controls { position:static; padding:6px 8px; min-height:38px; background:#111015; border-bottom:1px solid #ffffff0c; }
.feature-fib-controls button { min-height:25px; }
.feature-timeframe-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:6px 8px; min-height:38px; background:#111015; border-bottom:1px solid #ffffff0c; }
.feature-timeframe-strip span { display:grid; place-items:center; min-height:25px; border:1px solid #ffffff16; border-radius:4px; color:#827680; font-size:10px; }
.feature-timeframe-strip span.is-active { color:#b9e8d1; border-color:#75e4b448; background:#153025; }

/* Interactive Chrome extension drawing demo. */
.feature-extension-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:38px; padding:8px 10px; background:#111015; border-bottom:1px solid #ffffff0c; }
.feature-extension-brand { display:flex; align-items:center; gap:6px; color:#f4bfaf; font-size:9px; font-weight:650; letter-spacing:.06em; }
.feature-extension-brand svg { width:16px; height:16px; }
.feature-extension-mode { color:#95858e; font-size:9px; }
.feature-extension-plot svg { display:block; width:100%; height:100%; }
.feature-extension-plot text { font-size:10px; font-weight:600; font-family:var(--body); }
.feature-extension-grid path { fill:none; stroke:#ffffff08; stroke-width:1; }
.feature-extension-grid text { fill:#6a606b; font-size:9px; font-weight:400; }
.feature-extension-drawings,.feature-extension-success { opacity:0; }
.feature-extension-demo[data-state="drawing"] .feature-extension-drawings,.feature-extension-demo[data-state="drawn"] .feature-extension-drawings { opacity:1; }
.feature-extension-demo[data-state="drawn"] .feature-extension-source { opacity:0; }
.feature-extension-demo[data-state="drawn"] .feature-extension-success { opacity:1; }
.feature-extension-actions { display:flex; align-items:center; gap:8px; padding:10px; background:#111015; border-top:1px solid #ffffff0c; }
.feature-extension-actions button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:36px; border-radius:6px; cursor:pointer; font:550 12px/1.25 var(--body); }
.feature-extension-create { flex:1; padding:8px 12px; color:#fff; border:1px solid #ff9d8870; background:linear-gradient(120deg,#bd4943,#a34438); box-shadow:inset 0 1px 0 #ffffff12; }
.feature-extension-create:hover { background:linear-gradient(120deg,#ce554b,#b44e40); }
.feature-extension-create svg { width:18px; height:18px; flex:0 0 18px; }
.feature-extension-reset { padding:8px 10px; border:1px solid #ffffff1c; background:#ffffff03; color:#b4a6b0; }
.feature-extension-reset:hover { color:#fff; border-color:#ef625a70; }
.feature-extension-actions button:focus-visible { outline:2px solid var(--red); outline-offset:2px; }
.feature-extension-actions button:disabled { opacity:.65; cursor:default; }
.engine-feature-card .feature-extension-status { margin:0; padding:0 10px 10px; background:#111015; color:#a698a2; font-size:10px; line-height:1.5; min-height:40px; }
.feature-extension-demo[data-state="drawn"] .feature-extension-mode { color:#9bd6b6; }
@container(max-width:300px) { .feature-extension-brand { font-size:8px; letter-spacing:.02em; } .feature-extension-mode { font-size:8px; } .feature-extension-actions { gap:6px; padding:8px; } .feature-extension-actions button { font-size:11px; } .feature-extension-create { padding:8px 6px; } }
@media(forced-colors:active) { .feature-extension-actions button { border-color:CanvasText; } }

.engine-feature-card .feature-extension-status:empty { display:none; }

/* The selected Fib level determines the chart's confirmation badge. */
.engine-feature-animation.htf-fib.has-fib-selection[data-step="2"] .htf-fib-badge,
.engine-feature-animation.htf-fib.has-fib-selection[data-step="3"] .htf-fib-badge { opacity:1; transform:none; }
.engine-feature-animation.htf-fib[data-fib-match="false"] .feature-fib-badge-background { fill:#30181d; stroke:#c65c62; }
.engine-feature-animation.htf-fib[data-fib-match="false"] .feature-fib-badge-icon-background { fill:#4b2229; }
.engine-feature-animation.htf-fib[data-fib-match="false"] .feature-fib-badge-icon { stroke:#ff867c; }
.engine-feature-animation.htf-fib[data-fib-match="false"] .feature-fib-badge-text { fill:#ff9c91; }
.engine-feature-animation.htf-fib[data-fib-match="false"] .htf-fib-pulse,
.engine-feature-animation.htf-fib[data-fib-match="false"] .htf-fib-pocket,
.engine-feature-animation.htf-fib[data-fib-match="false"] .htf-fib-match { display:none; }

.engine-feature-animation.htf-fib[data-fib-match="false"] .feature-fib-controls button[aria-pressed="true"].is-highlighted { border-color:#c65c62; color:#ff9c91; background:#30181d; }

/* One selector for the two Golden Pocket boundaries. */
.feature-fib-controls { grid-template-columns:1fr 1.6fr 1fr 1fr; }
.feature-fib-controls .feature-fib-golden-pocket { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
.feature-fib-golden-pocket small { font-size:8px; line-height:1.2; font-weight:500; opacity:.8; }

/* Converted rectangles keep their timeframe and Fib metadata inside. */
.feature-extension-plot .feature-extension-zone-label { font-size:11px; }
.feature-extension-plot .feature-extension-zone-label,
.feature-extension-plot .feature-extension-zone-fib-label { paint-order:stroke; stroke:#0b0c0e; stroke-width:2px; stroke-linejoin:round; }
.feature-extension-demo[data-state="drawn"] .feature-extension-fibs,
.feature-extension-demo[data-state="drawn"] .feature-extension-fib-anchors { display:none; }

/* Partial mitigation accumulates only newly tested portions of the zone. */
.feature-mitigation-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; min-height:38px; padding:6px 8px; background:#111015; border-bottom:1px solid #ffffff0c; }
.feature-mitigation-strip span { display:grid; place-items:center; min-height:25px; border:1px solid #ffffff16; border-radius:4px; color:#827680; font-size:10px; }
.feature-mitigation-strip span.is-active { color:#f3c2a8; border-color:#ef95654d; background:#ef95650b; }
.engine-feature-animation .feature-mitigation-touch { opacity:0; transition:opacity .55s ease; }
.engine-feature-animation .feature-mitigation-touch.is-visible { opacity:1; }
.engine-feature-animation .feature-mitigation-remaining { transition:y .55s ease,height .55s ease; }
.engine-feature-animation .feature-mitigation-used { transition:height .55s ease; }
@container(max-width:300px) { .feature-mitigation-strip span { font-size:9px; } }
@media(prefers-reduced-motion:reduce) { .engine-feature-animation .feature-mitigation-touch,.engine-feature-animation .feature-mitigation-remaining,.engine-feature-animation .feature-mitigation-used { transition:none; } }

/* One card connects chart overlap with optional OB alert context. */
.feature-ob-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; min-height:38px; padding:6px 8px; background:#111015; border-bottom:1px solid #ffffff0c; }
.feature-ob-strip span { display:grid; place-items:center; min-height:25px; border:1px solid #ffffff16; border-radius:4px; color:#827680; font-size:10px; }
.feature-ob-strip span.is-active { color:#f3c2a8; border-color:#ef95654d; background:#ef95650b; }
.engine-feature-animation .feature-ob-zones,.engine-feature-animation .feature-ob-overlap,.engine-feature-animation .feature-ob-alert { opacity:0; transition:opacity .55s ease; }
.htf-ob-confluence[data-step="1"] .feature-ob-zones,.htf-ob-confluence[data-step="2"] .feature-ob-zones,.htf-ob-confluence[data-step="3"] .feature-ob-zones,.htf-ob-confluence[data-step="4"] .feature-ob-zones { opacity:1; }
.htf-ob-confluence[data-step="2"] .feature-ob-overlap,.htf-ob-confluence[data-step="3"] .feature-ob-overlap,.htf-ob-confluence[data-step="4"] .feature-ob-overlap,.htf-ob-confluence[data-step="3"] .feature-ob-alert,.htf-ob-confluence[data-step="4"] .feature-ob-alert { opacity:1; }
.feature-ob-alert { position:absolute; top:12px; right:12px; width:60%; padding:10px; display:grid; gap:5px; border:1px solid #ef956550; border-radius:8px; background:linear-gradient(145deg,#251b1a,#111015); pointer-events:none; }
.feature-ob-alert-heading { color:#e6ba9b; font-size:9px; font-weight:650; letter-spacing:.04em; }
.feature-ob-alert strong { color:#f5ebef; font-size:11px; font-weight:600; line-height:1.4; }
.feature-ob-alert-suffix { color:#b4edcf; font-size:11px; }
.feature-ob-alert-option { color:#b7a3a7; font-size:9px; }
@container(max-width:400px) {
  .engine-feature-animation.htf-ob-confluence .htf-plot { aspect-ratio:auto; }
  .engine-feature-animation.htf-ob-confluence .htf-plot > svg { height:auto; position:static; aspect-ratio:720 / 355; }
  .htf-ob-confluence .feature-ob-alert { position:static; width:auto; margin:8px; padding:9px; }
  .htf-ob-confluence[data-step="0"] .feature-ob-alert,.htf-ob-confluence[data-step="1"] .feature-ob-alert,.htf-ob-confluence[data-step="2"] .feature-ob-alert { display:none; }
}
@container(max-width:300px) { .feature-ob-strip span { font-size:9px; } .feature-ob-alert-heading,.feature-ob-alert-option { font-size:9px; } }
@media(prefers-reduced-motion:reduce) { .engine-feature-animation .feature-ob-zones,.engine-feature-animation .feature-ob-overlap,.engine-feature-animation .feature-ob-alert { transition:none; } }
@media(forced-colors:active) { .feature-ob-alert { border-color:CanvasText; } }

/* Partial FVGs can trim the opposite edge before a later 2x upgrade. */
.engine-feature-animation .feature-mitigation-used-bottom { transition:y .55s ease,height .55s ease; }
.feature-mitigation-summary { padding:8px 10px; border-top:1px solid #ffffff0c; background:#111015; color:#e3baa1; font-size:11px; line-height:1.5; }
@container(max-width:300px) { .feature-mitigation-summary { font-size:10px; } }
@media(prefers-reduced-motion:reduce) { .engine-feature-animation .feature-mitigation-used-bottom { transition:none; } }
