/* GOOD: restrained refinement of the incumbent exchange, guided by Lovart. */
:root{--radius:12px;--radius-sm:8px;--good-ease:cubic-bezier(.16,1,.3,1)}
:root[data-theme=dark]{--bg:#0b0e11;--bg-soft:#10151d;--surface:#151b24;--surface-2:#1c2430;--surface-3:#293444;--border:#2a3442;--text:#f1f4f8;--text-2:#c0cad7;--text-3:#9aa8ba;--brand:#f4c430;--brand-2:#f7d363;--brand-ink:#201c0d;--brand-soft:rgba(244,196,48,.11);--up:#19cc91;--down:#ff647d;--grad-brand:linear-gradient(var(--brand),var(--brand));--grad-hero:linear-gradient(135deg,#181e27,#11171f)}
:root[data-theme=light]{--bg:#f4f6f8;--bg-soft:#f4f6f9;--surface:#fff;--surface-2:#f4f6f9;--surface-3:#e7ecf3;--border:#dce3ec;--text:#172334;--text-2:#425168;--text-3:#637188;--brand:#e1b021;--brand-2:#f0c447;--brand-ink:#241d09;--brand-soft:rgba(225,176,33,.12);--up:#087c58;--down:#c92f50;--grad-brand:linear-gradient(#f4c430,#f4c430);--grad-hero:linear-gradient(135deg,#fff,#f7f8fb)}
:root{scrollbar-color:var(--surface-3) var(--bg);scrollbar-width:thin}
:root body{font-size:14px;letter-spacing:0;line-height:1.55;transition:none}
:root ::selection{background:var(--brand);color:var(--brand-ink)}
:root input,:root select,:root textarea{caret-color:var(--brand);accent-color:var(--brand)}
:root input::placeholder,:root textarea::placeholder{color:var(--text-3);opacity:1}
:root input[type=number]{appearance:textfield;-moz-appearance:textfield}
:root input::-webkit-inner-spin-button,:root input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
:root button,:root a,:root input,:root select,:root textarea{-webkit-tap-highlight-color:transparent}
:root button:focus-visible,:root a:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
:root input:focus-visible,:root select:focus-visible,:root textarea:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
:root button,:root a,:root input,:root select,:root textarea{transition:background-color 160ms var(--good-ease),border-color 160ms var(--good-ease),color 160ms var(--good-ease)}
:root button:disabled{cursor:not-allowed}
:root .brand{gap:9px;font-size:19px;font-weight:780;letter-spacing:-.025em}
:root .brand-mark{width:30px;height:30px;border-radius:8px;background:var(--brand);box-shadow:none;color:var(--brand-ink)}
:root .topbar{background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none}
:root .topbar-inner{height:64px}
:root .top-actions{gap:8px}
:root .top-actions .icon-btn,:root .top-actions .lang-pill{background:transparent;border-color:var(--border)}
:root .desktop-nav a{font-size:13px;font-weight:650;padding:8px 11px}
:root .icon-btn{border-radius:10px}
:root .btn{min-height:42px;border-radius:10px;font-weight:650}
:root .btn-sm{min-height:34px}
:root .btn-primary{background:var(--brand);color:var(--brand-ink)}
:root .btn-primary:hover{filter:brightness(1.04)}
:root .btn-buy,:root .oe-submit.buy,:root .ct-submit.long,:root .ct-side button.long.active,:root .sc-submit.up,:root .op-submit.call,:root .side-trade{background:#18c78b;color:#07271c}
:root .btn-sell,:root .oe-submit.sell,:root .ct-submit.short,:root .ct-side button.short.active,:root .sc-submit.down,:root .op-submit.put{background:#d83857;color:#fff}
:root .input,:root .select{min-height:44px;border-radius:9px;background:var(--bg-soft);border-color:var(--border);color:var(--text)}
:root .field{gap:7px;margin-bottom:16px}
:root .field label{color:var(--text-2);font-size:12px;font-weight:600}
:root .card,:root .panel,:root .ticker-bar,:root .ct-ticker,:root .ct-entry,:root .ct-account,:root .sc-ticker,:root .sc-chart,:root .sc-entry,:root .sc-account,:root .op-ticker,:root .op-chart,:root .op-entry,:root .op-account{border-radius:12px;box-shadow:none}
:root .card-head{padding:16px}
:root .panel-head{padding:11px 12px;font-weight:650}
:root .section{margin-top:26px}
:root .section-head{margin-bottom:13px;gap:12px;align-items:center}
:root .section-title{font-size:20px;font-weight:740;letter-spacing:-.025em}
:root .section-sub{font-size:12px;line-height:1.6;color:var(--text-3)}
:root .hero{border-radius:16px;background:var(--surface);padding:30px 24px}
:root .hero:after,:root .hero-tag{display:none}
:root .hero h1{letter-spacing:-.03em;line-height:1.15;font-weight:780;margin:14px 0 12px}
:root .hero h1 .accent{background:none;color:var(--brand);-webkit-text-fill-color:var(--brand)}
:root .hero p{line-height:1.65;color:var(--text-2);max-width:52ch}
:root .hero .live-chip{background:transparent;padding:0;color:var(--up);font-weight:650}
:root .quick-grid{padding:4px 2px;background:var(--surface);border:1px solid var(--border);border-radius:12px;gap:0}
:root .quick-tile{border:0;background:transparent;border-radius:0;padding:14px 6px;gap:7px;font-weight:600}
:root .quick-tile:hover{transform:none;background:var(--surface-2)}
:root .quick-ico{width:34px;height:34px;border-radius:10px}
:root .hot-card{border-radius:10px;padding:12px;gap:8px}
:root .hot-card .sym,:root .hot-card .px{font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}
:root .hot-card .chg{font-size:11px}
:root .market-row{padding:14px 16px;min-height:66px}
:root .market-head{min-height:38px;background:var(--surface-2);color:var(--text-3);font-size:11px}
:root .market-data:hover{background:var(--surface-2)}
:root .market-name .symbol{font-size:14px;font-weight:700}
:root .market-name .name{font-size:11px;color:var(--text-3)}
:root .market-price,:root .market-row .price{font-weight:650;font-variant-numeric:tabular-nums}
:root .chg-pill{border-radius:6px;font-size:12px;font-weight:700;padding:6px 9px}
:root .trade-page{gap:10px}
:root .ticker-bar{padding:14px;gap:14px;min-width:0}
:root .tk-pair{font-weight:730}
:root .tk-last,:root .ct-last,:root .sc-price b,:root .op-price b{font-variant-numeric:tabular-nums;font-weight:750;letter-spacing:-.025em}
:root .tk-last{font-size:22px}
:root .tk-stats .lbl{font-size:11px}
:root .tk-chart,:root .tk-trade{border-radius:8px;min-height:32px;padding:5px 10px}
:root .oe-head{min-height:43px;padding:10px 12px;gap:14px}
:root .oe-title{font-size:13px;font-weight:700}
:root .oe-types button{min-height:26px;font-size:13px;padding:3px 0}
:root .oe-mobile-tabs{margin:8px 10px 0;border:0;padding:3px;background:var(--bg-soft);border-radius:8px;gap:3px}
:root .oe-mobile-tabs button{min-height:34px;padding:7px 6px;border-radius:6px;border:0!important;color:var(--text-2);font-size:13px}
:root .oe-mobile-tabs button:first-child.active{background:rgba(25,204,145,.14);color:var(--up)}
:root .oe-mobile-tabs button:last-child.active{background:rgba(216,56,87,.14);color:var(--down)}
:root .oe-grid{gap:18px;padding:16px}
:root .oe-avail{font-size:11px;gap:5px;flex-wrap:wrap;margin-bottom:12px;line-height:1.5}
:root .oe-avail b{font-weight:600;font-variant-numeric:tabular-nums}
:root .oe-input{margin-bottom:12px}
:root .oe-input label{font-size:11px;line-height:1.5;margin-bottom:5px;color:var(--text-2)}
:root .oe-input input{height:42px;border-radius:8px;padding-left:10px;padding-right:45px;background:var(--bg-soft);border-color:var(--border);font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}
:root .oe-input .unit{bottom:12px;right:9px;font-size:10px;line-height:18px;color:var(--text-3)}
:root .oe-percent{gap:5px;margin:4px 0 14px}
:root .oe-percent button{min-height:30px;border-radius:6px;padding:4px 0;font-size:10px;color:var(--text-2);background:transparent}
:root .oe-percent button:hover{background:var(--brand-soft)}
:root .oe-submit{height:43px;border-radius:8px;font-size:14px;font-weight:700}
:root .oe-submit.login{color:var(--brand-ink)}
:root .bk-head,:root .bk-row,:root .tape-head,:root .tape-row{font-variant-numeric:tabular-nums}
:root .bk-head{font-size:11px;color:var(--text-3)}
:root .bk-row{font-size:12px;line-height:1.6}
:root .bk-mid{padding:12px;border-color:var(--border)}
:root .bk-last{font-size:19px;font-weight:730;letter-spacing:-.02em}
:root .op-tabs{gap:18px;padding:0 14px}
:root .op-tabs button{font-size:12px;min-height:44px}
:root .op-tr,:root .funds-row{padding-top:11px;padding-bottom:11px;font-size:12px}
:root .chart-toolbar{min-height:40px;height:40px}
:root .chart-toolbar button{min-height:30px}
:root .tb-dropdown{border-radius:10px;padding:7px;box-shadow:0 12px 32px rgba(0,0,0,.18)}
:root .pane-tabs{gap:3px}
:root .pane-tabs button{font-size:11px;font-weight:600;min-height:27px}
:root .price-chart.fullscreen{border-radius:0}
:root .ct-entry{padding:16px}
:root .ct-side button,:root .ct-types button{min-height:36px;border-radius:7px}
:root .ct-submit{min-height:44px;border-radius:8px}
:root .ct-field input,:root .ct-field select{border-radius:8px;min-height:42px}
:root .sc-entry,:root .op-entry{padding:18px}
:root .sc-submit,:root .op-submit{min-height:44px;border-radius:9px}
:root .balance-card{background:var(--surface);border-radius:16px;padding:22px}
:root .balance-card .amount{font-size:34px;font-weight:750;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
:root .balance-card .label{font-size:13px}
:root .asset-row{min-height:72px;padding:16px}
:root .flow-row,:root .setting-row{padding-top:16px;padding-bottom:16px}
:root .profile-hero{border-radius:14px}
:root .profile-hero h2{font-size:22px;letter-spacing:-.025em}
:root .modal{border-radius:16px 16px 0 0}
:root .modal-head h3{font-size:18px;font-weight:720;letter-spacing:-.02em}
:root .modal .btn-block{min-height:46px}
:root .empty-state{padding:34px 16px;font-size:12px;line-height:1.7}
:root .empty-state svg{opacity:.65}
:root .footer{margin-top:40px}
:root .footer a:hover{color:var(--text);text-decoration:underline;text-underline-offset:4px}
:root .bottom-nav{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;border-color:var(--border);padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px))}
:root .bottom-nav a{min-height:47px;gap:4px;padding:5px 0;font-size:11px;line-height:1.3;font-weight:600;border-radius:10px}
:root .bottom-nav a.router-link-active{background:var(--brand-soft)}
:root .bottom-nav a.router-link-exact-active,:root .bottom-nav a[aria-current=page]{color:var(--brand);background:var(--brand-soft)}
:root .desktop-nav a.router-link-exact-active,:root .desktop-nav a[aria-current=page]{color:var(--brand);background:var(--brand-soft)}
:root .bottom-nav a.nav-trade .nav-icon{width:24px;height:24px;border-radius:0;margin-top:0;background:none;color:inherit;border:0;box-shadow:none}
:root .bottom-nav a.nav-trade{color:var(--text-3)}
:root .bottom-nav a.nav-trade.router-link-active{color:var(--brand)}
:root .bottom-nav a.nav-trade.router-link-exact-active,:root .bottom-nav a.nav-trade[aria-current=page]{color:var(--brand)}
:root .bottom-nav .nav-icon svg{width:21px;height:21px}
@media(min-width:900px){
  :root .hero{padding:42px 40px}:root .hero h1{font-size:48px}:root .section-title{font-size:22px}
  :root .trade-page{gap:12px}:root .ticker-bar{padding:16px}
}
@media(max-width:1023px){
  :root .trade-page{gap:8px;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr)}
  :root .oe-head{padding:8px 10px;gap:10px}:root .oe-types{gap:10px}
  :root .oe-grid{padding:12px 10px;gap:10px}
  :root .oe-avail{font-size:11px}:root .oe-input input{height:42px;padding-right:39px}
  :root .oe-percent button{font-size:10px}:root .oe-input .unit{right:7px;font-size:10px}
  :root .book-panel .panel-head{padding:10px 9px;min-height:43px}
  :root .book-panel .panel-head>span:first-child{font-size:12px}
  :root .bk-head,:root .bk-row{font-size:11px;padding-left:8px;padding-right:8px;gap:4px;line-height:1.75}
  :root .bk-last{font-size:15px}:root .bk-mid{padding:10px 8px}
  :root .tk-last{font-size:20px}:root .tk-stats .lbl{font-size:10px}
  :root .topbar-inner{height:60px}:root .main-content{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:639px){
  :root .hero{padding:22px 20px;margin-top:14px}:root .hero h1{font-size:31px}:root .hero p{font-size:13px;margin-bottom:18px}
  :root .hero-actions .btn{min-height:42px;padding:9px 13px}
  :root .section{margin-top:24px}:root .section-title{font-size:19px}
  :root .quick-tile{font-size:12px;padding:13px 5px}:root .quick-ico{width:32px;height:32px}
  :root .hot-card{padding:11px 10px}:root .market-row{padding:14px 12px}
  :root .market-row .symbol{font-size:13px}:root .chg-pill{font-size:11px;padding:6px 7px}
  :root .balance-card .amount{font-size:32px}:root .auth-panel{padding-top:24px}
  :root .ct-entry{padding:14px}:root .sc-entry,:root .op-entry{padding:15px}
}
@media(max-width:359px){
  :root .brand{font-size:17px;gap:7px}:root .brand-mark{width:28px;height:28px}:root .top-actions{gap:6px}
  :root .top-actions .lang-pill{padding:0 7px}:root .top-actions .btn-sm{padding:7px 10px}
  :root .oe-grid{padding:10px 8px}:root .oe-mobile-tabs{margin-left:8px;margin-right:8px}
  :root .oe-input .unit{right:6px;font-size:9px}:root .oe-input input{padding-left:7px;padding-right:35px}
  :root .oe-avail{font-size:10px}:root .oe-percent{gap:3px}:root .oe-percent button{font-size:9px}
  :root .bk-head,:root .bk-row{font-size:10px;padding-left:6px;padding-right:6px}:root .bk-last{font-size:14px}
  :root .oe-head{gap:7px;padding-left:8px;padding-right:8px}:root .oe-title,:root .oe-types button{font-size:12px}
  :root .hero h1{font-size:28px}
}
@media(prefers-reduced-motion:reduce){:root *,:root *::before,:root *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
:root[data-theme=light]{--brand:#896600;--brand-2:#a77e08;--good-brand-fill:#f4c430;--chart-up:#087c58;--chart-down:#c92f50}
:root #chart-attribution{color:var(--text-3)!important;line-height:1.8!important}
:root .brand-mark,:root .btn-primary,:root .oe-submit.login,:root .ct-submit.login{background:var(--good-brand-fill,var(--brand));color:var(--brand-ink)}
:root .quick-ico[class*="tone-"]{background:var(--brand-soft);color:var(--brand)}
:root .live-dot.live,:root .live-state.live{box-shadow:none}
@media(max-width:1023px){
  :root input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]),:root select,:root textarea{font-size:16px!important}
}
@media(max-width:639px){
  :root .market-row{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) 64px;gap:6px;padding-left:12px;padding-right:12px}
  :root .pair-cell{gap:6px}
  :root .pair-cell .base{font-size:13px}
  :root .pair-cell .coin-icon.md{width:26px;height:26px;font-size:10px}
  :root .hot-card .coin-icon{display:none}
  :root .hot-card .sym{flex:1;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
  :root .hot-card .chg{flex-shrink:0;white-space:nowrap}
}
@media(max-width:480px){
  :root .trade-page .ticker-bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px;row-gap:10px}
  :root .trade-page .tk-pair{grid-column:1/3;grid-row:1;min-width:0;max-width:100%;justify-self:start}
  :root .trade-page .tk-star{grid-column:3;grid-row:1;justify-self:start}
  :root .trade-page .tk-live{grid-column:3;grid-row:1;justify-self:end;align-self:center}
  :root .trade-page .tk-price{grid-column:1;grid-row:2;min-width:0}
  :root .trade-page .tk-stats{grid-column:2;grid-row:2;min-width:0}
  :root .trade-page .tk-chart{grid-column:3;grid-row:2;margin-left:0;white-space:nowrap;padding-left:8px;padding-right:8px}
}
@media(max-width:359px){
  :root .market-row{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) 60px;padding-left:8px;padding-right:8px}
  :root .pair-cell .base{font-size:12px}
  :root .pair-cell .coin-icon.md{width:24px;height:24px;font-size:9px}
}
