#nce-panel{width:min(1180px,98vw)}
/* Coin-detail-only NeusX glass instrument; homepage remains untouched. */
#nce-panel .ncu-sr{padding:8px 10px;background:linear-gradient(110deg,#11362d99,#181c3099);border-block:1px solid #31594f;min-width:0}
#nce-panel .ncu-sr-controls{display:flex;flex-wrap:wrap;gap:6px}
#nce-panel .ncu-sr button{padding:5px 9px;min-height:32px;font-size:11px;border-radius:7px;background:#10221e;border:1px solid #41675b;color:#dbece6}
#nce-panel .ncu-sr button[aria-pressed=true]{color:#9fffd0;border-color:#62b18c;background:#174532}
#nce-panel .ncu-sr button:disabled{opacity:.45}
#nce-panel .ncu-sr summary{font-size:11px;color:#e0eee9;padding-top:6px;cursor:pointer;overflow-wrap:anywhere}
#nce-panel .ncu-sr p{font-size:11px;line-height:1.6;color:#bed1ca;overflow-wrap:anywhere;margin:6px 0}
#nce-panel .ncu-shell{border:1px solid #2d635c;border-radius:16px;overflow:hidden;box-shadow:0 16px 48px #0005;background:radial-gradient(ellipse at top left,#173c3659,transparent 65%),#09131f;color:#e9f8f6;font-variant-numeric:tabular-nums}
#nce-panel .ncu-sources{align-items:center;justify-content:space-between;border-bottom:1px solid #23453f}
#nce-panel .ncu-studies{display:flex;gap:6px;align-items:center;padding:8px 12px;flex-wrap:wrap;background:#0b211e66}
#nce-panel .ncu-studies>span{font-size:10px;letter-spacing:.12em;color:#b6d8d2;margin-right:8px}
#nce-panel .ncu-studies button,#nce-panel .ncu-sources button{border:1px solid #31554f;background:#102a26;color:#e4fff7;border-radius:9px;padding:6px 12px;min-height:32px}
#nce-panel .ncu-studies button[aria-pressed=true],#nce-panel .ncu-sources button[aria-pressed=true]{color:#7fffd4;border-color:#57aa91;background:#174538}
#nce-panel .ncu-layers summary{cursor:pointer;font-size:12px;color:#a8e9d7;padding:6px}
#nce-panel .ncu-layers>div{display:flex;flex-wrap:wrap;gap:5px;padding:8px 0}
#nce-panel .ncu-ta{padding:14px;border-top:1px solid #2c5d53;background:linear-gradient(135deg,#10372d77,#0a1725);text-align:left}
#nce-panel .ncu-ta-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#nce-panel .ncu-ta-heading b{font-size:12px;letter-spacing:.12em;color:#ecfff8}
#nce-panel .ncu-ta-heading em{display:inline-block;font-style:normal;color:#75f9c9;border:1px solid #347c65;border-radius:6px;padding:3px 8px}
#nce-panel .ncu-ta-heading>span{font-size:11px;color:#b0cec6}
#nce-panel .ncu-ta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#nce-panel .ncu-ta-grid>div{min-width:0;background:#07161099;border:1px solid #284d43;border-radius:10px;padding:10px}
#nce-panel .ncu-ta-grid span{display:block;font-size:10px;color:#b1ccc5;line-height:1.4}
#nce-panel .ncu-ta-grid strong{display:block;color:#f0fff8;font-size:14px;margin-top:4px;overflow-wrap:anywhere;font-weight:650}
#nce-panel .ncu-ta p,#nce-panel .ncu-evidence{font-size:11px;line-height:1.6;color:#b7d3cc;margin:9px 0 0}
#nce-panel .ncu-ta summary{font-size:11px;color:#9be3cd;cursor:pointer;padding:6px 0}
#nce-panel .ncu-evidence{padding:8px 14px;margin:0}
#nce-panel .ncu-warning:empty{display:none}
#nce-panel .ncu-full{border-radius:0}
@media(max-width:540px){#nce-panel .ncu-ta{padding:10px}#nce-panel .ncu-ta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#nce-panel .ncu-ta-grid strong{font-size:12px}#nce-panel .ncu-ta-heading b{font-size:11px}#nce-panel .ncu-studies{padding:7px;gap:5px}#nce-panel .ncu-studies button{padding:5px 9px}#nce-panel .ncu-full .ncu-pro{height:60dvh}}

#nce-panel .ncu-shell{background:#09131f;position:relative;color:#c5d1df}
/* Explicit touch mode intercepts only the plot, only while drawing/adjusting. */
.ncu-touch-tools{display:none;padding:8px;background:#102a26;border-bottom:1px solid #31554f;scroll-margin-top:76px}
.ncu-full .ncu-touch-tools{scroll-margin-top:0}
.ncu-touch-actions{display:flex;flex-wrap:wrap;gap:6px}
#nce-panel .ncu-touch-tools button{min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #4c8574;border-radius:8px;background:#153d32;color:#edfff8;font:600 12px system-ui;touch-action:manipulation}
#nce-panel .ncu-touch-tools button[aria-pressed=true]{background:#2a6955;border-color:#84ffce}
#nce-panel .ncu-touch-tools button:disabled{opacity:.45}
#nce-panel .ncu-touch-tools button[hidden],.ncu-touch-surface[hidden]{display:none}
.ncu-touch-tools p{margin:7px 0 0;font:12px/1.4 system-ui;color:#c4e9df}
.ncu-touch-surface{position:absolute;inset:0;z-index:20;touch-action:none;overflow:hidden;user-select:none}
#nce-panel .ncu-pro .ncu-touch-surface svg{width:100%;height:100%;pointer-events:none}
@media(pointer:coarse){.ncu-touch-tools{display:block}}
#nce-panel .ncu-pro{width:100%;height:510px;min-height:400px}
#nce-panel .ncu-pro svg{display:block;width:22px;height:22px}
#nce-panel .ncu-pro .tools svg{width:16px;height:16px}
#nce-panel .ncu-pro .icon-arrow svg{width:4px;height:6px}
#nce-panel .ncu-pro .menu-container svg{width:28px;height:28px}
#nce-panel .ncu-sources{display:flex;flex-wrap:wrap;gap:5px;padding:8px}
#nce-panel .ncu-sources button{min-height:32px;padding:4px 9px}
#nce-panel .ncu-full{position:fixed;inset:0;z-index:200;background:#09131f;padding:10px;overflow:auto}
#nce-panel .ncu-full .ncu-pro{height:calc(100dvh - 155px)}
@media(pointer:coarse){#nce-panel .ncu-full .ncu-pro{height:calc(100dvh - 300px);min-height:280px}}
#nce-panel .ncu-warning{color:#ffb881}
#nce-panel .ncu-pro .klinecharts-pro-period-bar{overflow-x:auto;white-space:nowrap}
#nce-panel .ncu-pro{--klinecharts-pro-background-color:#09131f;--klinecharts-pro-primary-color:#51dcb4}
#nce-panel:has(.ncu-pro) .nce-tfm-chart{display:none}
@media(max-width:540px){#nce-panel .ncu-pro{height:470px}#nce-panel .ncu-sources{padding:5px;gap:3px}#nce-panel .ncu-sources button{padding:3px 7px;font-size:11px}}

#nce-panel:has(.ncu-pro) [data-nce-view],#nce-panel:has(.ncu-pro) label:has(#nce-fit-overlays),#nce-panel:has(.ncu-pro) #nce-ohlc{display:none}

/* Chart-first workspace: one header, plot, reachable drawing bar. */
#nce-panel .ncu-settings{position:static;margin:0;padding:0;border:0;font-size:12px}
#nce-panel .ncu-settings>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px 10px;border:1px solid #31554f;border-radius:8px;color:#e4fff7;list-style:none}
#nce-panel .ncu-settings>summary::-webkit-details-marker{display:none}
#nce-panel .ncu-settings-body{position:absolute;top:80px;right:8px;z-index:70;width:min(360px,calc(100% - 16px));max-height:65dvh;overflow:auto;padding:10px;background:#101f2cf5;border:1px solid #456072;border-radius:12px;box-shadow:0 12px 32px #000a}
#nce-panel .ncu-settings-body button{min-height:44px}
#nce-panel .ncu-touch-tools{display:block;position:relative;flex:0 0 auto;margin:0;padding:6px 8px max(6px,env(safe-area-inset-bottom));background:#10221f;border-block:1px solid #31554f;z-index:30}
#nce-panel .ncu-touch-actions{display:flex;flex-wrap:nowrap;gap:5px;align-items:center;overflow-x:auto;scrollbar-width:none}
#nce-panel .ncu-touch-tools button{flex-shrink:0}
#nce-panel .ncu-touch-tools p{margin:4px 0 0;font-size:11px;line-height:16px;height:32px;min-height:32px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#nce-panel .ncu-tool-menu{position:absolute;bottom:100%;left:8px;right:8px;padding:10px;display:flex;gap:8px;background:#152b30;border:1px solid #527575;border-radius:12px;box-shadow:0 -8px 30px #0008}
#nce-panel .ncu-touch-tools [hidden]{display:none!important}
#nce-panel .ncu-touch-tools:is([data-state^=ray],[data-state=horizontal-start]) :is([data-draw],[data-inspect],[data-undo]){display:none}
#nce-panel .ncu-touch-tools[data-state=selected] :is([data-draw],[data-inspect],[data-undo]){display:none}
#nce-panel .ncu-touch-tools[data-state=inspect] :is([data-draw],[data-inspect],[data-undo]){display:none}
#nce-panel .ncu-touch-context{display:none}
#nce-panel .ncu-touch-context:has(button:not([hidden])){display:flex;position:absolute;bottom:calc(100% + 6px);left:8px;right:8px;gap:5px;overflow-x:auto;margin:0;padding:6px;background:#10232df5;border:1px solid #527575;border-radius:10px;box-shadow:0 -4px 20px #0008}
#nce-panel .ncu-full{display:flex;flex-direction:column;box-sizing:border-box;padding:0;width:100%;height:100dvh;overflow:hidden;gap:0}
#nce-panel .ncu-full>.ncu-coin-identity{position:absolute;top:14px;left:10px;max-width:105px;white-space:nowrap;overflow:hidden;pointer-events:none}
#nce-panel .ncu-full>.ncu-sources{margin-left:110px;flex:0 0 54px;min-height:54px;padding:4px 6px;flex-wrap:nowrap;gap:4px;justify-content:flex-end}
#nce-panel .ncu-full .ncu-sources>label{font-size:0}
#nce-panel .ncu-full .ncu-sources select{font-size:12px!important;min-height:44px;width:66px}
#nce-panel .ncu-full .ncu-sources>.ncu-expand{min-height:44px;font-size:11px;padding:5px 7px}
#nce-panel .ncu-full .ncu-settings>summary{font-size:11px;padding:5px 7px}
#nce-panel .ncu-full .ncu-settings-body{top:56px}
#nce-panel .ncu-full>.ncu-pro{flex:1 1 0;height:auto;min-height:0;width:100%}
#nce-panel .ncu-full>.ncu-ta,#nce-panel .ncu-full>.ncu-evidence{display:none}
#nce-panel .ncu-full>.ncu-warning:not(:empty){position:absolute;top:58px;left:6px;right:6px;z-index:80;padding:7px;background:#302312;border:1px solid #997038;border-radius:8px}
#nce-panel .ncu-full>.ncu-warning:empty{display:none}
#nce-panel .ncu-full .ncu-pro .klinecharts-pro-period-bar{display:none}
#nce-panel .ncu-full .klinecharts-pro-content{height:100%}
@media(max-width:900px),(pointer:coarse){
 #nce-panel .ncu-pro .klinecharts-pro-drawing-bar{display:none}
 #nce-panel .ncu-pro .klinecharts-pro-widget{width:100%}
}
@media(max-height:480px){
 #nce-panel .ncu-full .ncu-touch-tools{display:flex;align-items:center;gap:8px;padding:4px 8px}
 #nce-panel .ncu-full .ncu-touch-context{margin:0}
 #nce-panel .ncu-full .ncu-touch-tools p{flex:1;max-width:240px;margin:0}
}

#nce-panel .klinecharts-pro-watermark{font-size:18px;white-space:nowrap;opacity:.35;pointer-events:none}
#nce-panel .ncu-pro .klinecharts-pro-period-bar>*{flex-shrink:0}
#nce-panel .ncu-pro .klinecharts-pro-period-bar .tools{flex-shrink:0;min-width:max-content}
#nce-panel .ncu-pro .klinecharts-pro-period-bar{display:flex;overflow:auto}
@media(max-width:540px){#nce-panel .ncu-pro .klinecharts-pro-period-bar .tools{font-size:11px}#nce-panel .ncu-pro .klinecharts-pro-period-bar .tools svg{flex-shrink:0}}

/* tv-touch-1: stable workspace, independent of content above/below chart. */
@media(min-width:901px) and (pointer:fine){#nce-panel .ncu-touch-tools,#nce-panel .ncu-touch-surface,#nce-panel .ncu-price-scale{display:none!important}}
#nce-panel .ncu-touch-tools{display:block;position:relative;padding:6px;background:#10202d;flex:none}
#nce-panel .ncu-touch-tools [hidden]{display:none!important}
#nce-panel .ncu-touch-tools:is([data-state^=ray],[data-state=horizontal-start]) :is([data-draw],[data-inspect],[data-undo]){display:none}
#nce-panel .ncu-touch-tools[data-state=selected] :is([data-draw],[data-inspect],[data-undo]){display:none}
#nce-panel .ncu-touch-tools[data-state=inspect] :is([data-draw],[data-inspect],[data-undo]){display:none}
#nce-panel .ncu-touch-actions,#nce-panel .ncu-selected{display:flex;flex-wrap:nowrap;gap:5px;overflow-x:auto}
#nce-panel .ncu-touch-tools button{flex:none;min-height:44px;padding:6px 10px;background:#163345}
#nce-panel .ncu-touch-tools p{font-size:11px;min-height:16px;margin:4px 0}
#nce-panel .ncu-draw-sheet{position:absolute;bottom:100%;left:0;right:0;padding:10px;background:#142b3e;border:1px solid #68998e;z-index:40;display:flex;gap:8px}
#nce-panel .ncu-touch-surface[data-state^=ray],#nce-panel .ncu-touch-surface[data-state=horizontal-start]{box-shadow:inset 0 0 0 2px #78e8d399}
#nce-panel .ncu-coordinates{position:absolute;bottom:100%;left:0;right:0;padding:8px;background:#142b3e;z-index:41;display:grid;grid-template-columns:1fr 1fr;gap:6px}
#nce-panel .ncu-coordinates input{display:block;width:100%;min-width:0;min-height:44px;background:#09131f;color:white;border:1px solid #668e9a}
#nce-panel .ncu-diagnostics{font:10px system-ui;color:#9bb6c8;margin:0;padding:0;border:0}#nce-panel .ncu-diagnostics summary{margin:0;padding:2px 0;border:0;min-height:0}#nce-panel .ncu-full .ncu-layers{margin:0;padding:0;border:0}#nce-panel .ncu-full .ncu-layers summary{margin:0;padding:3px;border:0}
#nce-panel .ncu-diagnostics pre{position:absolute;bottom:100%;right:0;max-height:220px;overflow:auto;background:#07131f;padding:8px;z-index:42;max-width:90vw}
