/* Workspace 3.11: persistent navigation, separated controls, coherent light surfaces. */
body.xauscan-dashboard{--xp-panel:var(--xd-panel);--xp-text:var(--xd-text);--xp-muted:var(--xd-muted);--xp-border:var(--xg-frame)}
body.xauscan-dashboard #sidebarCollapse{display:none!important}
body.xauscan-dashboard .nav-label{font-size:15px!important;line-height:1.55;white-space:normal}
body.xauscan-dashboard .sidebar-parent .nav-label{font-size:13px!important;letter-spacing:.045em}
body.xauscan-dashboard .sidebar-item.child{min-height:47px;padding-block:10px}
body.xauscan-dashboard .sidebar-nav{scrollbar-width:thin;scrollbar-color:var(--xau-border) transparent}
body.xauscan-dashboard .app-topbar{display:grid!important;grid-template-columns:minmax(160px,1fr) minmax(230px,290px) auto!important;gap:12px 20px!important;align-items:center;padding:16px 22px}
body.xauscan-dashboard .app-topbar-left{grid-column:1;grid-row:1;min-width:0}
body.xauscan-dashboard .app-topbar .global-gold-live{grid-column:2;grid-row:1;width:100%;min-width:0;max-width:100%;margin:0;box-sizing:border-box}
body.xauscan-dashboard .app-topbar .xd-preferences{grid-column:3;grid-row:1;margin:0;flex-shrink:0;position:relative;z-index:15}
body.xauscan-dashboard .app-topbar-chips{grid-column:1/-1;grid-row:2;flex-wrap:wrap!important;justify-content:flex-end;overflow:visible!important;gap:7px}
body.xauscan-dashboard .app-page-title{color:var(--xd-text);font-size:20px}.app-page-subtitle{line-height:1.6}
@media(min-width:901px){body.xauscan-dashboard .app-sidebar{width:280px!important}body.xauscan-dashboard .app-main{margin-left:280px;margin-right:0}html[dir=rtl] body.xauscan-dashboard .app-main{margin-left:0;margin-right:280px}}
@media(max-width:1100px){body.xauscan-dashboard .app-topbar{grid-template-columns:minmax(0,1fr) auto!important}body.xauscan-dashboard .app-topbar .xd-preferences{grid-column:2;grid-row:1}body.xauscan-dashboard .app-topbar .global-gold-live{grid-column:1/-1;grid-row:2;max-width:360px;justify-self:center}body.xauscan-dashboard .app-topbar-chips{grid-row:3}}
@media(max-width:900px){body.xauscan-dashboard .app-sidebar{width:min(280px,86vw)!important}body.xauscan-dashboard .app-main,html[dir=rtl] body.xauscan-dashboard .app-main{margin-inline:0!important}}
@media(max-width:600px){body.xauscan-dashboard .app-topbar{padding:12px;gap:10px!important}.app-page-subtitle{font-size:12px}.app-topbar-chips .chip{font-size:10px}.app-page-title{font-size:17px!important}}
html[data-xau-theme=light] body.xauscan-dashboard{--xau-text:#172e48;--xau-text-2:#354e67;--xau-muted:#4c637c;--xau-muted-2:#536b82;--xau-green:#097553;--xau-red:#b62e4b;--xau-gold:#805511;--xau-blue:#2567a9;--xau-purple:#6843ad}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-trade-desk-block,.overview-desk-stat,.overview-trade-consensus,.overview-terminal,.overview-market-terminal,.overview-hero-terminal,.overview-market-widget,.overview-market-card,.overview-native-quote,.overview-live-quote,.overview-tech-tile,.overview-bias-tile,.overview-next-event,.overview-next-catalyst,.market-status-banner,.market-status-countdown,.market-board-card,.cold-oracle-factor,.cold-oracle-block,.cold-oracle-score,.scalp-stat-card,.tg-item,.trader-profile-detail,.trader-profile-card,.xau-account-panel,.xau-account-hero,.xau-account-kpis article,.xau-profile-card,.xau-saved-card,.xau-membership-preview,.xau-login-card,.xau-account-benefits article,.pattern-result-card,.pattern-track-panel,.pattern-track-mini>div,.pattern-track-kpis article,.pattern-track-recent,.pattern-context-row span,.signal-plan-box,.section){background:#fff!important;border-color:#d5c299!important;color:#172e48!important;box-shadow:0 8px 24px #20394e0a!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-trade-desk-block,.overview-trade-consensus,.overview-next-event,.market-status-banner,.trader-profile-detail,.xau-membership-preview){background:linear-gradient(120deg,#fffcf5,#f6f9fc)!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-trade-desk-block,.overview-desk-stat,.overview-trade-consensus,.global-gold-live,.market-status-banner,.overview-next-event,.overview-next-catalyst,.trader-profile-detail,.trader-profile-card,.xau-account-shell,.pattern-result-card) :is(h1,h2,h3,h4,strong,b){color:#172e48}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-trade-desk-block,.overview-desk-stat,.overview-trade-consensus,.global-gold-live,.market-status-banner,.overview-next-event,.overview-next-catalyst,.trader-profile-detail,.trader-profile-card,.xau-account-shell,.pattern-result-card) :is(p,small){color:#4c637c!important}
html[data-xau-theme=light] body.xauscan-dashboard .global-gold-live{background:#edf8f4;border-color:#9cc7b8;color:#19364b}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-desk-stat-label,.overview-trade-desk-head>div>span,.pattern-track-mini span,.xau-account-panel-head span,.workspace-kicker,.overview-market-kicker){color:#805511}
html[data-xau-theme=light] body.xauscan-dashboard :is(.up,.positive,.win,.buy .overview-desk-stat-signal){color:#097553!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.down,.negative,.loss,.sell .overview-desk-stat-signal){color:#b62e4b!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.signal-plan-box,.xau-profile-form) :is(input,select){background:#fff!important;color:#172e48!important;border-color:#9bb0c4!important}
/* Personal desk */
/* Lower overview panels use the same light palette as the opening cards. */
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-gold-frame,.latest-signal-card,.overview-hi-news-card){background:#fff!important;color:#172e48!important;border-color:#d5c299!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.gold-news-head,.overview-news-highimpact-head,.overview-hi-news-card,.latest-signals-head,.latest-signal-card) :is(h2,h3,strong,b){color:#172e48!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.gold-news-head p,.gold-news-empty,.gold-news-foot,.overview-hi-news-foot,.overview-hi-news-top b,.latest-signals-head p,.latest-signal-card p){color:#4c637c!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-news-highimpact-head>div>span,.overview-hi-news-top>span){color:#805511!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-news-open,.merge-update-pill){background:#eef3f8!important;color:#354e67!important;border-color:#a9bccb!important}
html[data-xau-theme=light] body.xauscan-dashboard .merge-live-pill{background:#e9f7f0!important;color:#096647!important;border-color:#94c7b0!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.workspace-intro,.xau-account-intro,.xau-account-kpis article,.xau-account-panel,.xau-user-identity,.xau-profile-card,.xau-saved-card){background:linear-gradient(120deg,#fffdf7,#f4f8fc)!important;color:#172e48!important;border-color:#d0bd96!important}
html[data-xau-theme=light] body.xauscan-dashboard .workspace-intro :is(h1,p){color:#172e48!important}
html[data-xau-theme=light] body.xauscan-dashboard .xau-user-identity>div>span{color:#096647}
html[data-xau-theme=light] body.xauscan-dashboard .xau-plan-pill{color:#805511!important;background:#fff6df!important;border-color:#d2b574!important}
html[data-xau-theme=light] body.xauscan-dashboard .sidebar-parent .nav-label{color:#72510f!important}
html[data-xau-theme=light] body.xauscan-dashboard .global-gold-live{background:#edf8f4!important;border-color:#8ebbac!important;color:#172e48!important}
html[data-xau-theme=light] body.xauscan-dashboard .global-gold-live :is(b,strong){color:#172e48!important}
html[data-xau-theme=light] body.xauscan-dashboard .global-gold-live :is(small,.global-gold-native-change){color:#116d53!important}
html[data-xau-theme=light] body.xauscan-dashboard .desk-stat-copy>span{color:#805511!important}
html[data-xau-theme=light] body.xauscan-dashboard .desk-stat-bias.wait{color:#805511;background:#fff4d8;border-color:#d2b574}
html[data-xau-theme=light] body.xauscan-dashboard .desk-stat-bias.buy{color:#096647;background:#e7f6ee;border-color:#8ac6aa}
html[data-xau-theme=light] body.xauscan-dashboard .desk-stat-bias.sell{color:#a32342;background:#fff0f3;border-color:#d999a6}
html[data-xau-theme=light] body.xauscan-dashboard .overview-native-quote-foot :is(span,b){color:#116d53!important}
html[data-xau-theme=light] body.xauscan-dashboard .overview-price-session{background:#fff6df!important;border-color:#d2b574!important;color:#805511!important}
html[data-xau-theme=light] body.xauscan-dashboard .market-alert-side em{color:#4c637c!important}
html[data-xau-theme=light] body.xauscan-dashboard .chip.warn{color:#805511!important;background:#fff8e8!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-hero,.overview-price-panel,.overview-kpi-card,.overview-next-major-inline,.market-reopen-countdown,.market-close-countdown){background:linear-gradient(120deg,#fffcf6,#f2f7fb)!important;color:#172e48!important;border-color:#ceb786!important;box-shadow:0 7px 25px #23364a0b!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-live-title,.overview-next-major-copy strong,.market-alert-title,.market-alert-icon,.market-alert-side b){color:#172e48!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-next-major-copy small,.overview-next-major-copy em,.market-alert-sub,.market-alert-side small,.overview-desk-stat-sub,.overview-desk-stat-note,.overview-kpi-label,.overview-kpi-card small){color:#4c637c!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-next-major-side b,.overview-next-major-side small,.overview-native-symbol,.overview-price-session){color:#805511!important}
html[data-xau-theme=light] body.xauscan-dashboard :is(.overview-live-badge,.overview-native-quote-foot>b,.global-gold-status,.global-gold-change){color:#097553!important}
.xp-save,.xp-hub button,.xp-section button,[data-xp-older]{font-family:inherit;font-size:13px;font-weight:600;line-height:1.6}
.xp-hub,.xp-section{padding:26px;border:1px solid var(--xp-border);border-radius:19px;background:var(--xp-panel);color:var(--xp-text);margin:22px 0;scroll-margin-top:180px}
.xp-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:22px}.xp-heading h2{font-size:27px;line-height:1.5;margin:6px 0}.xp-heading>div>span{font-size:12px;letter-spacing:.12em;color:var(--xd-gold)}
.xp-hub p,.xp-section p{font-size:15px;line-height:1.85;color:var(--xp-muted)}.xp-section h3{font-size:22px;margin:0 0 20px}.xp-item h4{font-size:17px;line-height:1.6;margin:0;color:var(--xp-text)}
.xp-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-block:20px}.xp-summary>div{padding:18px;border:1px solid var(--xp-border);border-radius:13px;background:linear-gradient(120deg,#dcb6720c,transparent)}.xp-summary bdi{display:block;font:600 30px/1.3 XauOutfit,sans-serif;color:var(--xd-gold)}.xp-summary span{display:block;margin-top:8px;font-size:13px;line-height:1.6}
.xp-shortcuts{display:flex;gap:10px;flex-wrap:wrap}.xp-shortcuts a{color:var(--xp-text);text-decoration:none;padding:8px 12px;border:1px solid var(--xp-border);border-radius:9px;font-size:14px}
.xp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.xp-item{padding:20px;border:1px solid var(--xp-border);border-radius:13px;background:var(--xd-panel2);min-width:0;overflow-wrap:anywhere}.xp-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.xp-item-head>h4{flex:1}.xp-item>p{margin:10px 0}.xp-levels{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;line-height:1.8;margin-block:14px}.xp-levels>span{display:flex;gap:6px}.xp-outcome{display:block;margin-block:14px;font-size:16px}.xp-outcome.win{color:#54d9ab}.xp-outcome.loss{color:#ff859f}.xp-note{font-size:13px!important}.xp-empty{grid-column:1/-1;padding:24px;border:1px dashed var(--xp-border);border-radius:12px}
.xp-save,.xp-hub button,.xp-section button,[data-xp-older]{border:1px solid var(--xp-border);background:var(--xp-panel,var(--xd-panel));color:var(--xp-text,var(--xd-text));padding:9px 13px;border-radius:9px;cursor:pointer;min-height:40px}.xp-save{font-size:13px;white-space:nowrap;align-self:flex-start}.xp-save.saved{color:var(--xd-gold);background:linear-gradient(120deg,#dbb86b20,transparent);border-color:var(--xd-gold)}.xp-save:disabled,.xp-hub button:disabled{opacity:.6;cursor:wait}.xp-hub button:focus-visible,.xp-section button:focus-visible,.xp-save:focus-visible{outline:2px solid var(--xd-gold);outline-offset:3px}.xp-message:empty{display:none}.xp-item summary{cursor:pointer;font-size:14px;color:var(--xd-gold)}
@media(max-width:760px){.xp-hub,.xp-section{padding:20px}.xp-heading{flex-wrap:wrap}.xp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.xp-list{grid-template-columns:1fr}.xp-item-head{flex-wrap:wrap}.xp-heading h2{font-size:24px}}
