.hfxc{--bg:#131722;--b:#2a2e39;--txt:#d1d4dc;--mut:#787b86;--hov:#2a2e39;--acc:#2962ff;--menu:#1e222d;--up:#089981;--down:#f23645;position:relative;display:flex;flex-direction:column;background:var(--bg);color:var(--txt);border:1px solid var(--b);border-radius:8px;overflow:hidden;max-width:100%;font-family:-apple-system,BlinkMacSystemFont,"Trebuchet MS",Roboto,Ubuntu,sans-serif;font-size:13px;line-height:1.3;box-sizing:border-box;-webkit-font-smoothing:antialiased}.hfxc[data-theme="light"]{--bg:#fff;--b:#e0e3eb;--txt:#131722;--mut:#6a6d78;--hov:#f0f3fa;--menu:#fff}.hfxc *{box-sizing:border-box}.hfxc [hidden]{display:none!important}.hfxc button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-appearance:none;appearance:none;box-shadow:none;text-transform:none;letter-spacing:0;border-radius:0}.hfxc button:focus-visible{outline:2px solid var(--acc);outline-offset:-2px}.hfxc svg{display:block;pointer-events:none}.hfxc__top{display:flex;align-items:center;gap:2px;height:40px;padding:0 6px;border-bottom:1px solid var(--b);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;flex:none}.hfxc__top::-webkit-scrollbar{display:none}.hfxc__sym{display:flex;align-items:center;gap:8px;padding:0 10px;height:30px;border-radius:4px;white-space:nowrap}.hfxc__sym b{font-size:14px;font-weight:700;color:var(--txt)}.hfxc__sym:hover,.hfxc__btn:hover,.hfxc__tf:hover{background:var(--hov)}.hfxc__coin{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#ffd54f,#f9a825);color:#5d4300;font-size:10px;font-weight:800}.hfxc__sep{display:block;width:1px;height:20px;background:var(--b);margin:0 6px;flex:none}.hfxc__tfs{display:flex;gap:1px}.hfxc__tf{min-width:32px;height:30px;padding:0 8px;border-radius:4px;font-size:13px;font-weight:500;color:var(--txt)}.hfxc__tf.is-active{color:var(--acc);background:rgba(41,98,255,.14)}.hfxc__btn{display:inline-flex;align-items:center;gap:2px;height:30px;min-width:32px;padding:0 4px;border-radius:4px;color:var(--txt);white-space:nowrap}.hfxc__btn svg{width:24px;height:24px}.hfxc__btn--txt{padding:0 10px 0 4px;gap:4px;font-weight:500}.hfxc__btn:disabled{opacity:.35;cursor:default}.hfxc__btn:disabled:hover{background:none}.hfxc__caret,.hfxc__gc{width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid var(--mut);display:inline-block}.hfxc__fill{flex:1;min-width:8px}.hfxc__main{display:flex;position:relative;min-height:0}.hfxc__left{width:52px;flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;border-right:1px solid var(--b);overflow-y:auto;overflow-x:hidden;scrollbar-width:none}.hfxc__left::-webkit-scrollbar{display:none}.hfxc__tool{position:relative;width:40px;height:36px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:4px;color:var(--txt)}.hfxc__tool svg{width:28px;height:28px}.hfxc__tool:hover{background:var(--hov)}.hfxc__tool.is-active{color:var(--acc);background:rgba(41,98,255,.14)}.hfxc__gc{position:absolute;right:1px;top:50%;margin-top:-2px;transform:rotate(-90deg);padding:6px 4px;border-top-width:5px;opacity:.9}.hfxc__lsep{display:block;width:28px;height:1px;background:var(--b);margin:4px 0;flex:none}.hfxc__area{position:relative;flex:1;min-width:0}.hfxc__chart{position:absolute;inset:0}.hfxc__legend{position:absolute;left:10px;top:8px;z-index:3;pointer-events:none;font-size:12.5px;font-variant-numeric:tabular-nums;max-width:calc(100% - 90px)}.hfxc__legend em{font-style:normal;color:var(--mut);margin-right:3px}.hfxc__l1{display:flex;align-items:center;gap:6px;color:var(--txt);margin-bottom:2px;white-space:nowrap}.hfxc__l1 b{font-size:14px;font-weight:600}.hfxc__l1 span{color:var(--mut)}.hfxc__dot{width:8px;height:8px;border-radius:50%;background:var(--mut);display:inline-block}.hfxc__dot.is-live{background:var(--up);box-shadow:0 0 0 3px rgba(8,153,129,.25)}.hfxc__l2,.hfxc__l3{white-space:nowrap}.hfxc__l3{color:var(--txt);margin-top:1px}.hfxc .is-up{color:var(--up)}.hfxc .is-down{color:var(--down)}.hfxc__rt{position:absolute;right:76px;bottom:38px;z-index:4;width:30px;height:30px;border-radius:50%;background:var(--menu)!important;border:1px solid var(--b)!important;display:flex;align-items:center;justify-content:center;color:var(--txt);box-shadow:0 2px 8px rgba(0,0,0,.3)}.hfxc__rt svg{width:22px;height:22px}.hfxc.is-drawing .tv-lightweight-charts,.hfxc.is-drawing .tv-lightweight-charts *{cursor:crosshair!important}.hfxc.is-over .tv-lightweight-charts,.hfxc.is-over .tv-lightweight-charts *{cursor:pointer!important}.hfxc.is-dragging .tv-lightweight-charts,.hfxc.is-dragging .tv-lightweight-charts *{cursor:grabbing!important}.hfxc__ptb{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:2px;padding:4px 6px;background:var(--menu);border:1px solid var(--b);border-radius:6px;box-shadow:0 4px 16px rgba(0,0,0,.35)}.hfxc__pg{display:flex;align-items:center;gap:1px;padding:0 4px;margin:0 2px;border-left:1px solid var(--b);border-right:1px solid var(--b)}.hfxc__pc,.hfxc__pw,.hfxc__ps,.hfxc__pt,.hfxc__pd{width:30px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px;color:var(--txt)}.hfxc__pc:hover,.hfxc__pw:hover,.hfxc__ps:hover,.hfxc__pt:hover,.hfxc__pd:hover{background:var(--hov)}.hfxc__pw.is-active,.hfxc__ps.is-active{background:rgba(41,98,255,.2)}.hfxc__pc i{display:block;width:18px;height:18px;border-radius:3px;border:1px solid rgba(255,255,255,.3)}.hfxc__pw i{display:block;width:16px;background:currentColor}.hfxc__ps i{display:block;width:18px;height:0;border-top:2px solid currentColor}.hfxc__ps i.is-dashed{border-top-style:dashed}.hfxc__ps i.is-dotted{border-top-style:dotted}.hfxc__pt{font-weight:700;font-size:13px}.hfxc__pd svg{width:22px;height:22px}.hfxc__pop{position:absolute;top:36px;left:6px;display:grid;grid-template-columns:repeat(6,22px);gap:6px;padding:8px;background:var(--menu);border:1px solid var(--b);border-radius:6px;box-shadow:0 4px 16px rgba(0,0,0,.35)}.hfxc__sw{width:22px;height:22px;border-radius:4px;border:1px solid rgba(128,128,128,.4)!important}.hfxc__sw:hover{transform:scale(1.12)}.hfxc__menu{position:absolute;z-index:30;min-width:190px;padding:6px 0;background:var(--menu);border:1px solid var(--b);border-radius:6px;box-shadow:0 6px 24px rgba(0,0,0,.4)}.hfxc__mi{display:flex;align-items:center;gap:8px;width:100%;padding:0 12px 0 8px;height:34px;text-align:left;color:var(--txt)}.hfxc__mi svg{width:24px;height:24px;flex:none}.hfxc__mi:hover{background:var(--hov)}.hfxc__ml{flex:1;white-space:nowrap;padding-left:4px}.hfxc__mc{width:16px;color:var(--acc);font-weight:700}.hfxc__mhead{padding:6px 14px 4px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--mut)}.hfxc__msep{display:block;height:1px;margin:4px 0;background:var(--b)}.hfxc__bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;height:28px;padding:0 12px;border-top:1px solid var(--b);font-size:12px;color:var(--mut);flex:none}.hfxc__status.is-bad{color:var(--down)}.hfxc__tz{font-variant-numeric:tabular-nums;white-space:nowrap}.hfxc.is-full{position:fixed;inset:0;z-index:999999;border-radius:0;border:0;height:100%}.hfxc.is-full .hfxc__main{height:auto!important;flex:1}body.hfxc-noscroll{overflow:hidden}@media (max-width:640px){.hfxc__left{width:42px}.hfxc__tool{width:34px;height:34px}.hfxc__tool svg{width:24px;height:24px}.hfxc__btn--txt span{display:none}.hfxc__legend{font-size:11.5px}.hfxc__l1 b{font-size:12.5px}.hfxc__rt{right:60px}.hfxc__ptb{top:auto;bottom:8px}}.hfxc--flex{height:100vh;height:100dvh;min-height:520px;width:100%}.hfxc--flex .hfxc__main{flex:1 1 auto;min-height:0}.hfxc.is-full.hfxc--flex{height:100%;min-height:0}

/* ---- v1.2.0: countdown to bar close ---- */
.hfxc__cd{position:absolute;right:0;z-index:3;height:16px;line-height:16px;text-align:center;font-weight:600;color:#fff;background:var(--up);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;pointer-events:none}

/* ---- v1.2.0: status line toggles ---- */
.hfxc.hs-no-title .hfxc__l1{display:none}
.hfxc.hs-no-ohlc .hfxc__ohlc{display:none}
.hfxc.hs-no-chg .hfxc__chg{display:none}
.hfxc.hs-no-vol .hfxc__lvol{display:none}
.hfxc.hs-no-ind .hfxc__lind{display:none}

/* ---- v1.2.0: settings dialog ---- */
.hfxc__modal{position:absolute;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(0,0,0,.55)}
.hfxc .hs-dlg{display:flex;flex-direction:column;width:660px;max-width:100%;height:min(560px,100%);background:var(--menu);color:var(--txt);border:1px solid var(--b);border-radius:8px;box-shadow:0 12px 48px rgba(0,0,0,.5);overflow:hidden}
.hfxc .hs-head{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 10px 20px;font-size:18px;font-weight:600;flex:none}
.hfxc .hs-x{width:32px;height:32px;font-size:24px;line-height:1;border-radius:4px;color:var(--mut)}
.hfxc .hs-x:hover{background:var(--hov);color:var(--txt)}
.hfxc .hs-body{display:flex;flex:1;min-height:0;border-top:1px solid var(--b);border-bottom:1px solid var(--b)}
.hfxc .hs-tabs{width:180px;flex:none;padding:6px 0;border-right:1px solid var(--b);overflow-y:auto}
.hfxc .hs-tab{display:block;width:100%;height:40px;padding:0 20px;text-align:left;color:var(--txt)}
.hfxc .hs-tab:hover{background:var(--hov)}
.hfxc .hs-tab.is-active{background:var(--hov);font-weight:600;box-shadow:inset 3px 0 0 var(--acc)}
.hfxc .hs-pane{flex:1;min-width:0;overflow-y:auto;padding:4px 22px 18px}
.hfxc .hs-sec{margin:18px 0 6px;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--mut)}
.hfxc .hs-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px}
.hfxc .hs-lab,.hfxc .hs-chk{display:flex;align-items:center;gap:10px}
.hfxc .hs-chk{cursor:pointer;user-select:none}
.hfxc .hs-chk input{width:16px;height:16px;margin:0;accent-color:var(--acc);cursor:pointer}
.hfxc .hs-ex{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.hfxc .hs-col{display:inline-flex;align-items:center;gap:6px}
.hfxc .hs-col input[type=color]{width:34px;height:26px;padding:0;border:1px solid var(--b);border-radius:4px;background:none;cursor:pointer}
.hfxc .hs-col input[type=range]{width:60px;margin:0;accent-color:var(--acc)}
.hfxc .hs-sel,.hfxc .hs-num{height:30px;padding:0 8px;background:var(--bg);color:var(--txt);border:1px solid var(--b);border-radius:4px;font:inherit}
.hfxc .hs-num{width:80px}
.hfxc .hs-foot{display:flex;align-items:center;gap:8px;padding:12px 16px;flex:none}
.hfxc .hs-fill{flex:1}
.hfxc .hs-btn{height:34px;padding:0 18px;border:1px solid var(--b);border-radius:4px;font-weight:500;color:var(--txt)}
.hfxc .hs-btn:hover{background:var(--hov)}
.hfxc .hs-ok{background:var(--acc);border-color:var(--acc);color:#fff}
.hfxc .hs-ok:hover{background:#1e53e5}
@media (max-width:640px){.hfxc .hs-body{flex-direction:column}.hfxc .hs-tabs{width:auto;display:flex;flex:none;padding:0;border-right:0;border-bottom:1px solid var(--b);overflow-x:auto}.hfxc .hs-tab{width:auto;white-space:nowrap;padding:0 14px}.hfxc .hs-tab.is-active{box-shadow:inset 0 -3px 0 var(--acc)}.hfxc .hs-pane{padding:2px 14px 14px}.hfxc .hs-row{flex-wrap:wrap;padding:4px 0}}
/* Drawing UX refinement */
.hfxc__ptb{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.hfxc__ptb button{transition:background .12s ease,color .12s ease}
.hfxc__ptb button:focus-visible{outline:2px solid var(--acc);outline-offset:1px}
.hfxc__tool.is-active{box-shadow:inset 0 0 0 1px rgba(41,98,255,.32)}
.hfxc__tool{transition:background .12s ease,color .12s ease}


/* ---- v1.4.0: drawing tools v2 ---- */
.hfxc.hfxd-drawing .tv-lightweight-charts,.hfxc.hfxd-drawing .tv-lightweight-charts *{cursor:crosshair!important}
.hfxc.hfxd-over .tv-lightweight-charts,.hfxc.hfxd-over .tv-lightweight-charts *{cursor:pointer!important}
.hfxc.hfxd-handle .tv-lightweight-charts,.hfxc.hfxd-handle .tv-lightweight-charts *{cursor:move!important}
.hfxc.hfxd-dragging .tv-lightweight-charts,.hfxc.hfxd-dragging .tv-lightweight-charts *{cursor:grabbing!important}
.hfxc .hfxd-te{position:absolute;z-index:8;min-width:140px;max-width:70%;padding:4px 6px;font:600 14px/1.3 -apple-system,"Trebuchet MS",sans-serif;background:var(--menu);border:1px solid var(--acc);border-radius:4px;outline:0;resize:none;overflow:hidden}
.hfxc .hs-area{width:100%;margin:6px 0;padding:8px;background:var(--bg);color:var(--txt);border:1px solid var(--b);border-radius:4px;font:inherit;resize:vertical}
.hfxc .hs-foot .hs-btn{padding:0 12px}
