/* v3.17 — native chart, signal evaluation and educational library. */
.xauscan-dashboard{--chart-bg:#0b151f;--chart-ink:#c1d1e0;--chart-grid:#233344;--chart-up:#42d3ae;--chart-down:#ff758e}
html[data-xau-theme="light"] .xauscan-dashboard{--chart-bg:#fbfdff;--chart-ink:#334e68;--chart-grid:#dce5ee;--chart-up:#087f65;--chart-down:#c62c4b}
.xauscan-dashboard .scalper-dual-charts{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:18px}
.xauscan-dashboard .pattern-chart-card{min-width:0}
.xauscan-dashboard .xauscan-native-chart{background:var(--chart-bg);min-height:410px}
.xauscan-dashboard .xauscan-native-chart svg{display:block;width:100%;height:410px}
.xauscan-dashboard .xau-candle-up{fill:var(--chart-up)!important;stroke:var(--chart-up)!important;filter:none!important}
.xauscan-dashboard .xau-candle-down{fill:var(--chart-down)!important;stroke:var(--chart-down)!important;filter:none!important}
.xauscan-dashboard :is(.xau-price-label,.xau-time-label,.xau-chart-caption){fill:var(--chart-ink)!important;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.xauscan-dashboard .xau-chart-caption{font-size:12px}
.xauscan-dashboard .xau-grid{stroke:var(--chart-grid)!important;stroke-dasharray:3 5;opacity:.8}
.xauscan-dashboard .xau-tag-connector{stroke:var(--chart-ink);fill:none;stroke-width:1}
.xauscan-dashboard .xau-level-tag.last{fill:#f7d579;stroke:#9b6a0d}
.xauscan-dashboard .xau-level-text.last{fill:#302000;font-size:10px;font-weight:800}
.xauscan-dashboard .xau-evaluation-heading{margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.xauscan-dashboard .xau-evaluation-heading h2{font-size:23px;margin:0 0 7px}
.xauscan-dashboard .xau-evaluation-heading p{color:var(--muted);font-size:14px;margin:0;line-height:1.6}
.xauscan-dashboard .scalper-analysis-grid{gap:24px;align-items:start}
.xauscan-dashboard .scalper-pattern-top{flex-wrap:wrap;gap:18px}
.xauscan-dashboard .scalper-pattern-title{min-width:180px;flex:1}
.xauscan-dashboard .scalper-status-panel{min-width:210px;max-width:100%}
.xauscan-dashboard #scalpPatternScanReason{font-size:15px;line-height:1.8;max-width:75ch}
.xauscan-dashboard .pattern-context-row{display:flex;flex-wrap:wrap;gap:8px}
.xauscan-dashboard .pattern-context-row>span{font-size:12px;line-height:1.5}
.xauscan-dashboard .pattern-disclaimer{font-size:13px;line-height:1.7;margin-top:18px}
.xau-pattern-bank{background:var(--panel,#101d2a);color:var(--text,#e8f0f8);border:1px solid #94703b;border-radius:18px;padding:26px;margin:24px 0}
.xau-pattern-bank>header{display:flex;justify-content:space-between;align-items:start;gap:24px;padding-bottom:22px;border-bottom:1px solid var(--line,#34485a)}
.xau-pattern-bank h2{font-size:27px;margin:8px 0}
.xau-pattern-bank p{font-size:15px;line-height:1.8;color:var(--muted,#b7c7d5);margin:6px 0}
.xau-pattern-bank label{display:grid;gap:8px;font-size:13px;font-weight:650;min-width:230px}
.xau-pattern-bank select{background:var(--panel2,#152738);color:var(--text,#e8f0f8);border:1px solid #9b793d;border-radius:9px;padding:12px;font-size:14px;max-width:100%;width:100%}
.xau-lesson-body{display:grid;grid-template-columns:minmax(170px,230px) minmax(0,1fr);gap:28px;padding-top:24px}
.xau-lesson-body figure{margin:0;padding:18px 12px;background:var(--panel2,#152738);border-radius:12px;align-self:start}
.xau-lesson-body svg{width:100%;height:auto;overflow:visible}
.xau-lesson-body figcaption{font-size:12px;line-height:1.6;color:var(--muted,#b7c7d5);text-align:center;margin-top:15px}
.lesson-axis{fill:none;stroke:var(--chart-grid,#65758b);stroke-width:1}
.lesson-level{fill:none;stroke:#ad8130;stroke-width:1.5;stroke-dasharray:4 4}
.lesson-path{fill:none;stroke:var(--chart-up,#42d3ae);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.lesson-point{fill:#c79a37}
.xau-lesson-title{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.xau-lesson-title h3{margin:0;font-size:22px}
.xau-lesson-title span{font-size:12px;padding:5px 9px;border:1px solid #9b793d;border-radius:20px;color:var(--text)}
.xau-lesson-body dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 0}
.xau-lesson-body dl>div{padding:15px;border:1px solid var(--line,#34485a);border-radius:10px}
.xau-lesson-body dt{font-size:13px;font-weight:800;color:var(--text);margin-bottom:7px}
.xau-lesson-body dd{margin:0;font-size:14px;line-height:1.75;color:var(--muted,#b7c7d5)}
.xau-pattern-bank .xau-lesson-note{margin-top:22px;padding-top:16px;border-top:1px solid var(--line,#34485a);font-size:13px}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.xauscan-chart-toolbar,.xauscan-chart-legend,.pattern-chart-topline){background:#f4f7fb!important;color:#203e59!important;border-color:#d0dce7!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.xauscan-chart-toolbar button,.xauscan-chart-toolbar .active){color:#253c54!important;background:#fff!important;border-color:#bdcbd8!important}
html[data-xau-theme="light"] body.xauscan-dashboard .xauscan-chart-toolbar button.active{background:#f9edcb!important;border-color:#ab7719!important;color:#614306!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.xau-evaluation-heading p,.pattern-disclaimer,.scalper-gate-summary small,.scalper-pattern-panel p){color:#455e76!important}
html[data-xau-theme="light"] body.xauscan-dashboard .scalper-gate-summary{background:#f4f7fb!important;border-color:#cad7e3!important}
html[data-xau-theme="light"] body.xauscan-dashboard .scalper-gate-summary :is(span,b){color:#233f57!important}
@media(max-width:1250px){.xauscan-dashboard .scalper-dual-charts{grid-template-columns:minmax(0,1fr)}.xauscan-dashboard .scalper-analysis-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.xau-pattern-bank{padding:18px}.xau-pattern-bank>header{flex-direction:column}.xau-pattern-bank label{min-width:0;width:100%}.xau-lesson-body{grid-template-columns:minmax(0,1fr);gap:20px}.xau-lesson-body figure{max-width:270px;justify-self:center}.xau-lesson-body dl{grid-template-columns:minmax(0,1fr)}.xauscan-dashboard .xauscan-native-chart,.xauscan-dashboard .xauscan-native-chart svg{min-height:340px;height:340px}}

/* Verified in the live Strategy Generator: legacy v300/v301 panels had no light treatment. */
html[data-xau-theme="light"] body.xauscan-dashboard #strategyPanelGenerator :is(.v300-library-panel,.v300-builder-panel,.v300-dna-panel,.v301-research-flow,.v301-config-zone,.v300-core-grid,.v301-readiness,.v301-lab-bridge,.v300-frequency-box,.v300-funnel,.v300-ai-result,.v300-inspector-grid>div,.v300-dna-grid>div,.v301-lab-map>div){background:#fff!important;background-image:none!important;color:#17324d!important;border-color:#c6d4e1!important;box-shadow:0 4px 15px #17324d08!important}
html[data-xau-theme="light"] body.xauscan-dashboard #strategyPanelGenerator :is(.v300-mode-tabs button,.v300-recipe,.v300-condition-row,.v301-profile-strip button,.v301-library-search,.v300-library-filter button,.v301-derived-target,.v301-cond-fixed,.v300-logic-bar button,.v300-ai-chips button,.v300-candidate,.v301-flow-step>span){background:#f7f9fc!important;background-image:none!important;border-color:#c6d4e1!important;color:#203e59!important}
html[data-xau-theme="light"] body.xauscan-dashboard #strategyPanelGenerator :is(.v300-mode-tabs button.active,.v300-recipe.active,.v301-profile-strip button.active,.v300-library-filter button.active,.v300-candidate.active){background:#fff3d7!important;border-color:#a57921!important;color:#6c4c0b!important}
html[data-xau-theme="light"] body.xauscan-dashboard #strategyPanelGenerator :is(p,small,label,.v300-condition-copy small,.v301-flow-step small,.v301-readiness-meta small,.v300-dna-grid span){color:#475f75!important;opacity:1}
html[data-xau-theme="light"] body.xauscan-dashboard #strategyPanelGenerator :is(b,h3,h4,.v300-condition-copy b,.v301-readiness-meta span){color:#17324d!important}
html[data-xau-theme="light"] body.xauscan-dashboard #strategyPanelGenerator :is(.v300-section-title span,.v301-zone-head span,.v300-builder-count strong,.v300-frequency-box b,.v301-derived-target b,.v300-recipe-icon){color:#805713!important}
html[data-xau-theme="light"] body.xauscan-dashboard #strategyPanelGenerator :is(input,select,textarea){color-scheme:light;background:#fff!important;color:#17324d!important;border-color:#afc1d2!important}
html[data-xau-theme="light"] body.xauscan-dashboard #strategyPanelGenerator input::placeholder{color:#526b80!important}
.xauscan-dashboard .v300-section-title.inline>div:first-child{display:flex;flex-direction:column;gap:6px;min-width:0}
.xauscan-dashboard .v300-condition-row{min-width:0;grid-template-columns:24px minmax(120px,1fr) 78px 65px 85px 28px}
.xauscan-dashboard .v300-generator-shell{grid-template-columns:minmax(190px,.8fr) minmax(0,2fr)}
.xauscan-dashboard .v300-dna-panel{grid-column:1/-1}
.xauscan-dashboard .v300-dna-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.xauscan-dashboard .ai-brief-case{display:block!important}
.xauscan-dashboard .ai-brief-case>span{display:block;margin-bottom:10px;font-size:12px;line-height:1.5}
.xauscan-dashboard .ai-brief-case>p{margin:0;font-size:15px;line-height:1.8}
html[data-xau-theme="light"] body.xauscan-dashboard .ai-brief-case.bullish>span{color:#087556!important}
html[data-xau-theme="light"] body.xauscan-dashboard .ai-brief-case.bearish>span{color:#b42c4a!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.idea-level,.idea-card .idea-levels>span){background:#f1f6fb!important;border-color:#cbd8e4!important;color:#203e59!important}
html[data-xau-theme="light"] body.xauscan-dashboard .idea-level :is(b,span){color:#203e59!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.pattern-chart-topline>span,.pattern-chart-topline b,.xauscan-chart-status,.xauscan-chart-legend){color:#344f68!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.ai-gold-kicker,.ai-brief-kicker,.strategy-panel-kicker,.strategy-hero-kicker){color:#805713!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.idea-source-btn,.idea-open-btn){background:#f2e2b7!important;border-color:#a87718!important;color:#20354a!important}
@media(max-width:1050px){.xauscan-dashboard .v300-generator-shell{grid-template-columns:minmax(0,1fr)}.xauscan-dashboard .v300-condition-row{grid-template-columns:24px minmax(0,1fr)}.xauscan-dashboard .v300-condition-row>:nth-child(n+3){grid-column:2}.xauscan-dashboard .v300-recipe-list{max-height:320px}}
@media(max-width:600px){.xauscan-dashboard .v300-dna-grid{grid-template-columns:minmax(0,1fr)}}

/* Live QA: Strategy Tools, equities, Oracle and Track Record. */
html[data-xau-theme="light"] body.xauscan-dashboard :is(.strategy-tool-card,.strategy-tool-result,.stock-kpi,.ownership-stat-grid article,.ownership-overlap-list article,.track-integrity-note,.track-kpi-grid>article,.track-row,.oracle-v241-signal-card,.oracle-v241-quick,.oracle-v241-block,.oracle-lab-brief-card,.oracle-lab-session-card,.oracle-extreme-card,.oracle-streak-panel,.oracle-play-card,.oracle-corr-card,.oracle-mini-play,.oracle-v242-subpanel,.oracle-forecast-main,.oracle-forecast-session,.oracle-analogue-chart,.oracle-edge-card,.oracle-range-roadmap,.oracle-extreme-note,.oracle-correction-visual,.oracle-v243-freshness>div){background:#fff!important;background-image:none!important;color:#19344f!important;border-color:#c8d6e3!important;box-shadow:0 4px 16px #19344f08!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.strategy-tool-card,.stock-kpi,.ownership-stat-grid article,.ownership-overlap-head,.ownership-overlap-list,.track-integrity-note,.track-kpi-grid,.track-row,.oracle-v241-signal-card,.oracle-v241-quick,.oracle-v241-block,.oracle-lab-brief-card,.oracle-lab-session-card,.oracle-extreme-card,.oracle-streak-panel,.oracle-play-card,.oracle-corr-card,.oracle-mini-play,.oracle-v242-subpanel,.oracle-forecast-main,.oracle-forecast-session,.oracle-analogue-chart,.oracle-edge-card,.oracle-range-roadmap,.oracle-extreme-note,.oracle-correction-visual) :is(h2,h3,h4,b,strong){color:#17324d!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.strategy-tool-card,.stock-kpi,.ownership-stat-grid article,.ownership-overlap-list,.track-integrity-note,.track-kpi-grid,.track-row,.oracle-v241-signal-card,.oracle-v241-quick,.oracle-v241-block) :is(p,small,span,em){color:#4a6178!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.stock-kpi,.ownership-overlap-list,.track-row,.oracle-v241-signal-card,.oracle-v241-quick,.oracle-v241-block) :is(.up,.positive,.win){color:#087756!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.stock-kpi,.track-row,.oracle-v241-signal-card,.oracle-v241-quick,.oracle-v241-block) :is(.down,.negative,.loss){color:#b42b49!important}
html[data-xau-theme="light"] body.xauscan-dashboard .strategy-tool-card.active{background:#fff3d8!important;border-color:#a87718!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.day-nav-btn,.ux-guide,.ux-guide-item,.oracle-play-card .then,.oracle-v242-outcome-map>div,.oracle-window){background:#f4f8fc!important;color:#233e58!important;border-color:#c4d3e2!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.ux-guide-title,.ux-guide-item b,.market-board-card-top strong,.market-board-card-top b,.ownership-overlap-head b,.ownership-note b){color:#233e58!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.ownership-note span,.ownership-source,.oracle-v243-freshness small){color:#4a6178!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.metals-ratio-value,.gold-silver-value,.ownership-ticker){color:#805713!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.kavout-news-ai-hero,.kavout-news-driver,.kavout-news-timeline>*,.dedicated-news-summary,.dedicated-news-grid article,.dedicated-news-card,.news-pulse-card){background:#f5f8fc!important;color:#203e59!important;border-color:#c8d6e3!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.kavout-news-ai-hero,.kavout-news-driver,.kavout-news-timeline>*,.dedicated-news-summary,.dedicated-news-grid article,.dedicated-news-card,.news-pulse-card) :is(h2,h3,h4,b,strong){color:#17324d!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.kavout-news-ai-hero,.kavout-news-driver,.kavout-news-timeline>*,.dedicated-news-summary,.dedicated-news-grid article,.dedicated-news-card,.news-pulse-card) :is(p,small,span,em){color:#475f76!important}
.xauscan-dashboard .track-row-time{overflow-wrap:anywhere;line-height:1.6;min-width:0}
.xauscan-dashboard .track-row-time small{display:block}
.xauscan-dashboard .day-nav-btn:disabled{opacity:.5;cursor:not-allowed}
.xauscan-dashboard .xau-data-age-notice{padding:14px 18px;margin:16px 0;border:1px solid #a87b24;border-radius:10px;background:#fff5dc;color:#674709;font-size:14px;line-height:1.7}

html[data-xau-theme="light"] body.xauscan-dashboard .app-content .workspace-intro p{color:#435d75!important;font-size:15px!important;line-height:1.75!important;opacity:1!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content :is(.ai-sync-status.live,.pattern-live-pill,.merge-live-pill){color:#087557!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content :is(.strategy-panel-kicker,.strategy-panel-hero>div>span,.ai-brief-main>span,.ratio-value,.market-board-card-top>span:last-child){color:#7e5713!important}
.xauscan-dashboard .app-content .xau-pattern-bank h3{line-height:1.4}
@media(prefers-reduced-motion:reduce){.xauscan-dashboard .tab.active{animation:none!important}.xauscan-dashboard .app-content *{scroll-behavior:auto!important}}

/* Final live QA: evaluation panels and remaining legacy badges. */
html[data-xau-theme="light"] body.xauscan-dashboard .app-content :is(.scalper-pattern-panel,.scalper-plan-column,.oracle-v243-freshness>span,.oracle-status-chip,.oracle-lab-brief-icon){background:#f4f8fc!important;background-image:none!important;color:#203d57!important;border-color:#c6d6e5!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content :is(.scalper-pattern-panel,.scalper-plan-column,.oracle-v243-freshness,.oracle-status-chip) :is(small,span,b,p,h3,strong,em){color:#29455e!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content :is(.pattern-chart-topline>span,.ai-brief-kicker,.ai-brief-label,.strategy-panel-kicker,.oracle-lab-group-title,.oracle-v241-principle){color:#435774!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content .oracle-v241-ring{box-shadow:inset 0 0 0 13px #e3edf5,0 0 0 1px #bccfde}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content .oracle-v241-ring>div{background:#fff!important;border-color:#c6d6e5!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content #oracleBiasPct{color:#17324d!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content .pattern-quality-chip.empty{display:none!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content :is(.kavout-news-ai-copy h3,.kavout-news-driver b,.kavout-news-ai-meta em,.kavout-news-ai-copy>span,.kavout-news-driver>span,.xau-indicator-copy p,.strategy-indicator-note){color:#314f68!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content .kavout-news-ai-meta em{background:#edf3fa!important;border-color:#c7d5e5!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content .xau-indicator-card{background:#fff!important;border-color:#c9d7e5!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content :is(.xau-indicator-copy p,.strategy-indicator-note){font-size:13px!important;line-height:1.7!important}
html[data-xau-theme="light"] body.xauscan-dashboard :is(.idea-modal-source,.idea-modal-source strong,.idea-modal-source span,.idea-modal-kicker){color:#435f79!important}
html[data-xau-theme="light"] body.xauscan-dashboard .idea-modal-level :is(b,strong){color:#29455e!important}
html[data-xau-theme="light"] body.xauscan-dashboard .idea-source-type{background:#fff7df!important;color:#705019!important;border-color:#b89045!important}
html[data-xau-theme="light"] body.xauscan-dashboard .app-content .xauscan-chart-topline>div>span{color:#78530e!important}
@media(max-width:700px){
 body.xauscan-dashboard.admin-bar #wpadminbar{position:fixed!important;top:0}
 .xauscan-dashboard .xauscan-chart-legend{height:auto!important;min-height:37px;flex-wrap:wrap;gap:8px 12px;padding:9px!important;overflow:visible!important}
}
html[data-xau-theme="light"] body.xauscan-dashboard #gold-news-hub #kavoutNewsIntel .kavout-news-ai-copy h3,
html[data-xau-theme="light"] body.xauscan-dashboard #gold-news-hub #kavoutNewsIntel .kavout-news-driver b,
html[data-xau-theme="light"] body.xauscan-dashboard #gold-news-hub #kavoutNewsIntel .kavout-news-driver>span,
html[data-xau-theme="light"] body.xauscan-dashboard #gold-news-hub #kavoutNewsIntel .kavout-news-ai-copy>span{color:#27465f!important}

/* 1 Min Scalper: validated feed, clear light surfaces and readable journal. */
#scalper1m .scalper-dual-charts.feed-invalid{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr)!important}
#scalper1m .feed-invalid .xauscan-execution-card{order:1}
#scalper1m .feed-invalid .tradingview-reference-card{order:2}
#scalper1m .feed-invalid .xauscan-chart-toolbar,#scalper1m .feed-invalid .xauscan-chart-legend{display:flex!important}
#scalper1m .feed-invalid .xauscan-native-chart{min-height:340px;height:505px!important}
@media(max-width:1250px){#scalper1m .scalper-dual-charts.feed-invalid{grid-template-columns:minmax(0,1fr)!important}}
#scalper1m .xau-feed-warning{display:grid;gap:10px;min-height:145px;padding:24px;background:#172a38;color:#e9f2f8;border-left:4px solid #e1b857;align-content:center}
#scalper1m .xau-feed-warning b{font-size:17px;color:#ffdb7b}
#scalper1m .xau-feed-warning p{margin:0;max-width:74ch;line-height:1.55;color:#e2edf5}
#scalper1m .xau-feed-warning span{font-size:12px;color:#b6cbd8}
#scalper1m .scalper-pattern-top{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
#scalper1m .scalper-pattern-title{min-width:0!important}
#scalper1m .scalper-status-panel{max-width:none!important;width:100%;min-width:0!important}
#scalper1m .scalper-status-panel .pattern-result-status{grid-template-columns:minmax(0,1fr) auto!important}
#scalper1m .pattern-context-row{justify-content:flex-start!important}
#scalper1m .scalper-analysis-card .pattern-trade-grid .plan-box>b{text-align:left!important;overflow-wrap:anywhere}
#scalper1m .scalper-move-box>strong{overflow-wrap:anywhere}
#scalper1m .xau-lesson-direction{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;margin:14px 0 2px;padding:11px 13px;border:1px solid #547c70;background:#132a2b;border-radius:10px}
#scalper1m .xau-lesson-direction span{font-size:12px;color:#abc9c1}
#scalper1m .xau-lesson-direction strong{font-size:14px;color:#76e3b8}
#scalper1m .xau-lesson-direction.sell{border-color:#955365;background:#2c1d28}
#scalper1m .xau-lesson-direction.sell strong{color:#ff8aa1}
#scalper1m .xau-lesson-direction.conditional{border-color:#967b3b;background:#2e291a}
#scalper1m .xau-lesson-direction.conditional strong{color:#f4d778}
#scalper1m .watch-state.stale{color:#eed27d!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m :is(.scalper-pattern-panel,.scalper-plan-column,.scalper-gate-summary,.scalper-move-box,.pattern-watch-zone,.pattern-unified-journal,.pattern-track-table-wrap){background:#f5f8fc!important;background-image:none!important;border-color:#c9d7e5!important;color:#17324d!important;box-shadow:none!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m :is(.scalper-analysis-card .plan-box,.pattern-context-row span,.pattern-track-kpis article,.pattern-watch-kpis article){background:#fff!important;background-image:none!important;border-color:#ccd9e5!important;color:#17324d!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m :is(.scalper-pattern-panel h3,.scalper-gate-summary>b,.scalper-move-box>strong,.pattern-watch-title strong,.pattern-journal-title strong,.pattern-track-kpis article>strong,.pattern-watch-kpis article>strong){color:#17324d!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m :is(.scalper-pattern-panel>p,.scalper-gate-summary>small,.scalper-move-box>small,.pattern-watch-title small,.pattern-journal-title small,.pattern-track-kpis article>small,.pattern-watch-kpis article>small,.pattern-track-foot){color:#425d75!important;opacity:1!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .scalper-status-panel .pattern-result-status>span{background:#fff6df!important;color:#754f0c!important;border-color:#c69d45!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .scalper-status-panel .pattern-quality-chip{background:#e8f6ef!important;color:#0b654e!important;border-color:#70b99f!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .scalper-gate-summary>b{color:#77510c!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .scalper-analysis-card .plan-box>b{color:#17324d!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .scalper-analysis-card .plan-box.entry>b{color:#095d9b!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .scalper-analysis-card .plan-box.stop>b{color:#a72140!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .scalper-analysis-card .plan-box.tp>b{color:#087051!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-unified-table th{background:#e9f0f7!important;color:#294760!important;border-color:#cbd9e5!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-unified-table td{background:#fff!important;color:#203b54!important;border-color:#e0e7ee!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-unified-table tr[data-journal-type="watch"] td{background:#fffcf3!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-unified-table tr[data-journal-type="signal"] td{background:#f2faf6!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-unified-table td>small{color:#536b80!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-journal-sync{background:#fff!important;border-color:#c5d4e1!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-journal-sync :is(span,b){color:#26455f!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-journal-filters button{background:#fff!important;color:#28455e!important;border-color:#bdcfde!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-journal-filters button.active{background:#17384e!important;color:#fff!important;border-color:#17384e!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-journal-filters button.active b{color:#fff!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .journal-empty-state{background:#f5f8fc!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .journal-empty-state :is(b,span){color:#294760!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-direction{background:#edf7f2!important;border-color:#8bc8ad!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-direction span{color:#345d4f!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-direction strong{color:#076a4a!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-direction.sell{background:#fff0f3!important;border-color:#dea4b0!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-direction.sell strong{color:#a72140!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-direction.conditional{background:#fff6df!important;border-color:#d5b16b!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-direction.conditional strong{color:#77510c!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-feed-warning{background:#fff8e8!important;color:#17324d!important;border-color:#ba8a2f!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-feed-warning :is(b,p,span){color:#28445b!important}
@media(max-width:900px){#scalper1m .scalper-analysis-grid{grid-template-columns:minmax(0,1fr)!important}#scalper1m .scalper-status-panel .pattern-result-status{grid-template-columns:minmax(0,1fr)!important}}

/* Keep status and direction labels legible on the light journal. */
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-watch-title>div>span,
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-watch-kpis article>span{color:#795515!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-watch-title>b,
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .journal-type.watch{color:#77500a!important;background:#fff1cf!important;border-color:#ceaa5a!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-track-side.buy{color:#006b4c!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .pattern-track-side.sell{color:#a92242!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .watch-state.stale{color:#77500a!important;background:#fff1cf!important;border-color:#ceaa5a!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m #patternTrackState.warn{color:#77500a!important;background:#fff1cf!important;border-color:#ceaa5a!important}
#scalper1m .feed-invalid .xauscan-chart-status i{background:#d49a2d!important;box-shadow:0 0 0 3px #d49a2d24!important}
#scalper1m #scalpPatternScanner.feed-invalid .pattern-live-pill{color:#f3d589!important;background:#3b311c!important;border-color:#947332!important}
#scalper1m #scalpPatternScanner.feed-invalid .pattern-live-pill i{background:#d49a2d!important;box-shadow:0 0 0 3px #d49a2d24!important}
#scalper1m #scalpPatternScanner.feed-invalid .pattern-update-pill.auto{display:none!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m #scalpPatternScanner.feed-invalid .pattern-live-pill{color:#76500b!important;background:#fff1cf!important;border-color:#ceaa5a!important}

/* v3.17.8 — Pattern Data Bank readability / semantic color pass */
#scalper1m .xau-pattern-bank{padding:30px 30px 26px}
#scalper1m .xau-pattern-bank>header{gap:30px;padding-bottom:24px}
#scalper1m .xau-pattern-bank .workspace-kicker{font-size:12px;letter-spacing:.11em;font-weight:850;color:#f4bf45}
#scalper1m .xau-pattern-bank h2{font-size:30px;line-height:1.2;margin:10px 0 9px;color:#f5f8fc}
#scalper1m .xau-pattern-bank>header p{font-size:16px;line-height:1.7;color:#c3d2df;max-width:76ch}
#scalper1m .xau-pattern-bank label{font-size:14px;font-weight:800;color:#f3f7fb;gap:9px}
#scalper1m .xau-pattern-bank select{font-size:15px;font-weight:700;padding:13px 14px}
#scalper1m .xau-lesson-body{gap:32px;padding-top:28px}
#scalper1m .xau-lesson-body figcaption{font-size:13px;line-height:1.65;color:#b8c9d8}
#scalper1m .xau-lesson-title{gap:12px}
#scalper1m .xau-lesson-title h3{font-size:25px;line-height:1.25;color:#f7fbff;font-weight:850}
#scalper1m .xau-lesson-title span{font-size:13px;font-weight:750;padding:6px 10px;color:#f6d98e;background:#2d281b;border-color:#a77e32}
#scalper1m .xau-lesson-body>.xau-lesson-content>p,
#scalper1m .xau-lesson-body>div>p{font-size:16px;line-height:1.75;color:#c8d6e2;margin:8px 0 12px}
#scalper1m .xau-lesson-direction{margin:16px 0 4px;padding:14px 16px;gap:8px 14px;border-width:1px}
#scalper1m .xau-lesson-direction span{font-size:14px;font-weight:750;color:#c5ddd7}
#scalper1m .xau-lesson-direction strong{font-size:16px;font-weight:850;letter-spacing:.005em;color:#72e4b8}
#scalper1m .xau-lesson-direction.sell span{color:#e5bcc7}
#scalper1m .xau-lesson-direction.sell strong{color:#ff7896}
#scalper1m .xau-lesson-direction.conditional span{color:#e6d39a}
#scalper1m .xau-lesson-direction.conditional strong{color:#f6cf5a}
#scalper1m .xau-lesson-body dl{gap:18px;margin-top:22px}
#scalper1m .xau-lesson-body dl>div{padding:18px 18px 17px;border-radius:12px;border-width:1px;background:#111d29}
#scalper1m .xau-lesson-body dt{font-size:15px;line-height:1.3;font-weight:900;margin-bottom:9px;letter-spacing:.01em}
#scalper1m .xau-lesson-body dd{font-size:16px;line-height:1.7;font-weight:560;color:#d4e0ea}
#scalper1m .xau-lesson-body dl>div:nth-child(1){border-color:#356f9f;background:linear-gradient(180deg,#102536 0%,#111d29 100%)}
#scalper1m .xau-lesson-body dl>div:nth-child(1) dt{color:#65bdf5}
#scalper1m .xau-lesson-body dl>div:nth-child(2){border-color:#3e806c;background:linear-gradient(180deg,#102a26 0%,#111d29 100%)}
#scalper1m .xau-lesson-body dl>div:nth-child(2) dt{color:#67ddb3}
#scalper1m .xau-lesson-body dl>div:nth-child(3){border-color:#8d4c5d;background:linear-gradient(180deg,#2b1820 0%,#111d29 100%)}
#scalper1m .xau-lesson-body dl>div:nth-child(3) dt{color:#ff829b}
#scalper1m .xau-lesson-body dl>div:nth-child(4){border-color:#8d6b33;background:linear-gradient(180deg,#2b2417 0%,#111d29 100%)}
#scalper1m .xau-lesson-body dl>div:nth-child(4) dt{color:#f4c65c}
#scalper1m .xau-pattern-bank .xau-lesson-note{font-size:14px;line-height:1.75;color:#aebfce;margin-top:24px;padding-top:18px}

html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-pattern-bank h2,
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-title h3,
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-pattern-bank label{color:#17324d!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-pattern-bank>header p,
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body>div>p,
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-pattern-bank .xau-lesson-note{color:#405b73!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-title span{background:#fff7e5!important;color:#785311!important;border-color:#c7a35c!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dl>div{background:#fff!important;color:#17324d!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dd{color:#36536c!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dl>div:nth-child(1){background:#eef7ff!important;border-color:#8bbce0!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dl>div:nth-child(1) dt{color:#08649f!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dl>div:nth-child(2){background:#edf8f3!important;border-color:#8cc9b3!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dl>div:nth-child(2) dt{color:#087151!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dl>div:nth-child(3){background:#fff0f3!important;border-color:#dfa5b1!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dl>div:nth-child(3) dt{color:#a72140!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dl>div:nth-child(4){background:#fff7e8!important;border-color:#d8b775!important}
html[data-xau-theme="light"] body.xauscan-dashboard #scalper1m .xau-lesson-body dl>div:nth-child(4) dt{color:#80580d!important}

@media(max-width:700px){
  #scalper1m .xau-pattern-bank{padding:21px 18px}
  #scalper1m .xau-pattern-bank h2{font-size:26px}
  #scalper1m .xau-lesson-title h3{font-size:23px}
  #scalper1m .xau-lesson-body dd{font-size:15px}
  #scalper1m .xau-lesson-direction strong{font-size:15px}
}



/* v3.17.17 — 1-Min Scalper Market Context */
.scalper-context-panel{border:1px solid rgba(214,171,77,.34);border-radius:18px;background:linear-gradient(145deg,rgba(11,23,33,.98),rgba(8,17,25,.98));padding:22px;margin:20px 0;box-shadow:0 16px 42px rgba(0,0,0,.18)}
.scalper-context-head{display:flex;justify-content:space-between;gap:22px;align-items:stretch;margin-bottom:18px}.scalper-context-head h2{margin:3px 0 6px;font-size:28px;line-height:1.1}.scalper-context-head p{margin:0;color:#9eb0bd;font-size:16px;line-height:1.55;max-width:760px}
.scalper-context-score{min-width:225px;border:1px solid rgba(129,153,169,.28);border-radius:15px;padding:14px 17px;background:rgba(9,18,26,.72);display:flex;flex-direction:column;justify-content:center}.scalper-context-score span{font-size:12px;font-weight:800;letter-spacing:.08em;color:#9cafbc}.scalper-context-score strong{font-size:30px;line-height:1.15;margin:5px 0;color:#f3f6f8}.scalper-context-score b{font-size:15px}.scalper-context-score small{margin-top:5px;color:#8fa3b1;font-size:12px}.scalper-context-score.bull{border-color:rgba(57,205,145,.42);box-shadow:inset 0 0 30px rgba(57,205,145,.05)}.scalper-context-score.bull b{color:#5ee0a5}.scalper-context-score.bear{border-color:rgba(245,103,114,.42);box-shadow:inset 0 0 30px rgba(245,103,114,.05)}.scalper-context-score.bear b{color:#ff7c88}.scalper-context-score.neutral b{color:#e5bd63}.scalper-context-score.stale{opacity:.78}
.scalper-context-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:11px}.scalper-context-grid article{min-height:104px;border:1px solid rgba(116,143,160,.2);border-radius:13px;background:rgba(14,28,39,.67);padding:13px 14px;display:flex;flex-direction:column;justify-content:center}.scalper-context-grid article span{font-size:12px;font-weight:800;letter-spacing:.06em;color:#91a6b4}.scalper-context-grid article strong{font-size:18px;color:#eef4f7;line-height:1.25;margin:6px 0 4px;word-break:break-word}.scalper-context-grid article small{font-size:12px;color:#8fa2af;line-height:1.35}.scalper-context-grid article.supportive{border-color:rgba(57,205,145,.38);background:linear-gradient(145deg,rgba(24,67,53,.34),rgba(12,28,35,.75))}.scalper-context-grid article.supportive strong{color:#74e8b3}.scalper-context-grid article.conflict{border-color:rgba(245,103,114,.38);background:linear-gradient(145deg,rgba(75,31,39,.3),rgba(12,25,34,.75))}.scalper-context-grid article.conflict strong{color:#ff8a94}.scalper-context-grid article.neutral{border-color:rgba(221,178,83,.27)}
.scalper-context-foot{margin-top:13px;padding-top:12px;border-top:1px solid rgba(130,151,164,.14);font-size:13px;color:#8ea2b0}.scalper-context-foot b{color:#e9c66f}.scalper-context-panel.feed-missing .scalper-context-grid{opacity:.55}
.journal-context-badge{display:block;margin-top:6px;width:max-content;max-width:100%;padding:4px 7px;border-radius:7px;font-size:11px!important;font-weight:800;letter-spacing:.02em}.journal-context-badge.bull{background:rgba(58,198,140,.12);border:1px solid rgba(58,198,140,.28);color:#62dca5!important}.journal-context-badge.bear{background:rgba(241,102,113,.12);border:1px solid rgba(241,102,113,.28);color:#ff8590!important}.journal-context-badge.neutral{background:rgba(218,177,83,.1);border:1px solid rgba(218,177,83,.24);color:#e2bd6b!important}
html[data-xau-theme="light"] body.xauscan-dashboard .scalper-context-panel{background:#fff;border-color:#d8c28b;box-shadow:0 10px 30px rgba(28,53,72,.06)}html[data-xau-theme="light"] body.xauscan-dashboard .scalper-context-head p{color:#5e7385}html[data-xau-theme="light"] body.xauscan-dashboard .scalper-context-score,html[data-xau-theme="light"] body.xauscan-dashboard .scalper-context-grid article{background:#f8fafc;border-color:#d9e2e9}html[data-xau-theme="light"] body.xauscan-dashboard .scalper-context-grid article strong,html[data-xau-theme="light"] body.xauscan-dashboard .scalper-context-score strong{color:#17314b}
@media(max-width:1180px){.scalper-context-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.scalper-context-head{flex-direction:column}.scalper-context-score{min-width:0}.scalper-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scalper-context-grid article{min-height:92px}.scalper-context-head h2{font-size:24px}}@media(max-width:470px){.scalper-context-grid{grid-template-columns:1fr}}
