/* A small entry point; each analysis keeps its own, spacious surface. */
html.market-tools-ready .market-top-actions #klineAdvancedLiquidityEntry,
html.market-tools-ready .market-top-actions #dmaTopControl,
html.market-tools-ready #screenSettingsBtn,
html.market-tools-ready .market-top-actions #methodRadarBtn,
html.market-tools-ready .market-top-actions #disciplineModeBtn,
html.market-tools-ready .market-top-actions #priceAlertBtn,
html.market-tools-ready .market-top-actions #klineThemeToggleTop,
html.market-tools-ready .market-top-actions a[href^="/currency-pulse"] {display:none!important}
/* The historical selector hid the entire live Pivot/Fibonacci panel. Keep only its legacy trigger hidden. */
html.market-tools-ready #daily-level-menu > summary {display:none!important}
html.market-tools-ready .market-top-actions #marketToolsBtn {display:flex!important;align-items:center;justify-content:center;width:auto!important;min-width:88px;min-height:40px;padding:0 12px!important;border:1px solid var(--market-border-strong,#424856);border-radius:10px;color:var(--market-gold,#f5c400);font:600 13px/1.2 Inter,system-ui,sans-serif;gap:6px}
.market-tool-dialog {--tool-bg:var(--market-panel,#10151d);--tool-text:var(--market-text,#edf1f7);box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1100px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--market-border-strong,#354050);border-radius:18px;background:var(--tool-bg);color:var(--tool-text);box-shadow:0 30px 100px #0008;font:14px/1.5 Inter,system-ui,sans-serif;overflow:hidden}
.market-tool-dialog[open]{display:flex;flex-direction:column}.market-tool-dialog::backdrop{background:#05080db8}
.market-tool-dialog[data-mode="menu"]{width:min(620px,calc(100vw - 48px))}.market-tool-dialog[data-mode="forex"]{height:calc(100dvh - 48px);width:min(1440px,calc(100vw - 48px))}
.market-tool-header{flex:none;display:flex;gap:12px;align-items:center;padding:18px 22px;border-bottom:1px solid var(--market-border,#303a47)}.market-tool-header>div{flex:1;min-width:0}.market-tool-header h2{margin:0;font-size:19px;line-height:1.3}.market-tool-header p{margin:4px 0 0;color:var(--market-muted,#a6b0bf);font-size:13px}.market-tool-header button{flex:none;width:44px;height:44px;border:1px solid var(--market-border,#3b4657);border-radius:10px;background:transparent;color:inherit;font-size:24px;cursor:pointer}.market-tool-header button[hidden]{display:none}
.market-tool-body{min-height:0;overflow:auto;overscroll-behavior:contain}.market-tools-menu{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 22px 24px}.market-tools-menu h3{grid-column:1/-1;margin:6px 0 0;color:var(--market-muted,#a6b0bf);font-size:12px;font-weight:600}.market-tool-option{text-align:start;display:flex;flex-direction:column;gap:6px;min-height:90px;padding:16px;border:1px solid var(--market-border,#303a47);border-radius:12px;background:var(--market-card,#171d27);color:inherit;font:inherit;cursor:pointer}.market-tool-option:hover,.market-tool-option:focus-visible{border-color:var(--market-gold,#f5c400)}.market-tool-option strong{font-size:14px}.market-tool-option small{font-size:12px;color:var(--market-muted,#a6b0bf)}
.market-tool-dialog[data-mode="forex"] .market-tool-body{flex:1;display:flex;position:relative;overflow:hidden}.market-forex-frame{display:block;flex:1;width:100%;height:100%;min-height:0;border:0;background:var(--tool-bg)}.market-tool-body>[hidden]{display:none!important}.market-tool-loading{position:absolute;top:12px;left:22px;pointer-events:none}.market-tool-dialog[data-mode="levels"] .daily-level-panel{display:block!important;position:static!important;width:auto!important;max-height:none!important;padding:20px!important;border:0!important;box-shadow:none!important;background:transparent!important;transform:none!important}.market-tool-dialog .daily-level-panel-heading{display:none!important}.market-tool-dialog .daily-level-panel-body{max-height:none!important;font-size:14px!important}.market-tool-dialog .daily-level-panel label,.market-tool-dialog .daily-level-panel button,.market-tool-dialog .daily-level-panel select{min-height:44px;font-size:14px!important}
html[data-theme="light"] .market-tool-dialog,html[data-kline-page-theme="light"] .market-tool-dialog{--tool-bg:#f6f7fa;--tool-text:#182334;--market-muted:#526074;--market-card:#fff;--market-border:#d3d9e2;--market-border-strong:#bdc7d3}
/* Existing native dialogs remain independent from the tool menu. */
@media(min-width:760px){#alertsSheet .market-sheet__panel{width:min(700px,calc(100vw - 48px));max-height:85dvh;margin:auto;border-radius:18px}#alertsSheet .alert-create-card{padding:24px}#alertsSheet .alert-current strong{font-size:24px}#alertsSheet .alert-primary,#alertsSheet .alert-price-field input{min-height:44px;font-size:16px}#alertsSheet .alert-price-field span,#alertsSheet .alert-permission-note,#alertsSheet .alert-row__main span{font-size:13px}#alertsSheet .alert-row__main strong{font-size:16px}}
@media(max-width:759px){.market-tool-dialog,.market-tool-dialog[data-mode="menu"],.market-tool-dialog[data-mode="forex"]{width:100%;height:100dvh;max-height:100dvh;max-width:100%;border-radius:0;border:0}.market-tool-header{padding:calc(12px + env(safe-area-inset-top)) 16px 12px;gap:8px}.market-tool-header h2{font-size:18px}.market-tool-header p{font-size:12px}.market-tool-body{padding-bottom:env(safe-area-inset-bottom)}.market-tools-menu{padding:12px 16px 20px;gap:10px}.market-tool-option{min-height:106px;padding:13px}.market-tool-option strong{font-size:14px}.market-tool-option small{line-height:1.4}}
@media(max-width:370px){.market-tools-menu{grid-template-columns:1fr}.market-tool-option{min-height:76px}}
