html, body{ height: 100%; }

body.chart-page{
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.chart-page-main{
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "chart sidebar";
  gap: 0;
  padding: 0;
  box-sizing: border-box;
}
.chart-page-main.sidebar-hidden .chart-page-sidebar {
  pointer-events: none;
}

.chart-page-chart{
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chart-page-sidebar{
  grid-area: sidebar;
  width: var(--sidebar-w, 320px);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
  transition: width 280ms cubic-bezier(.4,0,.2,1);
}
.chart-page-main.sidebar-hidden .chart-page-sidebar {
  width: 0 !important;
}

.sidebar-resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
  z-index: 20;
  background: transparent;
  transition: background 0.18s ease;
  user-select: none;
  touch-action: none;
}
.sidebar-resize-handle:hover,
.sidebar-resize-handle.is-dragging {
  background: rgba(8, 153, 129, 0.25);
}
.chart-page-main.sidebar-hidden .sidebar-resize-handle {
  display: none;
}

.chart-page-shell,
.chart-page-list{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chart-page-shell{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chart-page-shell .chart-inline-host{
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  z-index: 0;
}

.chart-page-shell .chart-inline-canvas{ height: 100%; }

.chart-page-list{
  flex: 1 1 auto;
  min-height: 0;
  min-width: var(--sidebar-w, 320px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  --tablebar-h: 80px;
}

.chart-page-tablebar{
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: var(--tablebar-h);
  height: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 14px;
  box-sizing: border-box;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.chart-page-field span{
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.chart-page-tablebar label.chart-page-search{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.chart-page-tablebar label.chart-page-search > #searchLabel{
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-page-tablebar label.chart-page-search > #searchLabel{
  grid-column: 1;
  grid-row: 1;
}

.chart-page-tablebar label.chart-page-search > #listMeta{
  display: block;
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: none;
}

.chart-page-field select,
.chart-page-field input,
.chart-page-tablebar label.chart-page-search > input{
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline: none;
  box-sizing: border-box;
}

.chart-page-tablebar label.chart-page-search > input{
  grid-column: 1;
  grid-row: 1;
}

.chart-page-field select:focus,
.chart-page-field input:focus,
.chart-page-tablebar label.chart-page-search > input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(7,143,120,.18);
}

.chart-page-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chart-page-table thead{
  flex: 0 0 auto;
  display: table;
  width: 100%;
  table-layout: fixed;
}

.chart-page-table thead th{
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  padding: 10px 6px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.chart-page-table tbody{
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.chart-page-table tbody tr{
  display: table;
  width: 100%;
  table-layout: fixed;
}

.chart-page-table td{
  font-size: 11px;
  padding: 9px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-page-table td.sym{
  text-align: left;
  font-weight: 600;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.chart-page-row{ cursor: pointer; }
.chart-page-row:hover{ background: rgba(255,255,255,.04); }

.chart-page-row.is-active td{
  background: rgba(8,153,129,.12);
  border-bottom-color: rgba(8,153,129,.22);
}

.chart-page-row.is-active td:first-child{
  box-shadow: inset 3px 0 0 rgba(8,153,129,.45);
}

.chart-page-row.is-active-2 td{
  background: rgba(59,130,246,.10);
  border-bottom-color: rgba(59,130,246,.20);
}
.chart-page-row.is-active-2 td:first-child{
  box-shadow: inset 3px 0 0 rgba(59,130,246,.50);
}
.chart-page-row.is-active-3 td{
  background: rgba(234,179,8,.09);
  border-bottom-color: rgba(234,179,8,.18);
}
.chart-page-row.is-active-3 td:first-child{
  box-shadow: inset 3px 0 0 rgba(234,179,8,.50);
}
.chart-page-row.is-active-4 td{
  background: rgba(168,85,247,.10);
  border-bottom-color: rgba(168,85,247,.20);
}
.chart-page-row.is-active-4 td:first-child{
  box-shadow: inset 3px 0 0 rgba(168,85,247,.50);
}

.chart-page-group-row{ cursor: default; }

.chart-page-group-row td{
  padding: 10px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.chart-page-chg.pos,
.chart-page-chg.neg{ font-weight: 700; }

.chart-page-chg.pos{ color: var(--accent); }
.chart-page-chg.neg{ color: var(--danger); }

.cat-vol {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: .78rem;
}

.chart-page-table tbody::-webkit-scrollbar{ width: 10px; height: 0; }
.chart-page-table tbody::-webkit-scrollbar-track{ background: transparent; }

.chart-page-table tbody::-webkit-scrollbar-thumb{
  background: transparent;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.chart-page-table tbody.has-vscroll{
  scrollbar-color: var(--accent) transparent;
}

.chart-page-table tbody.has-vscroll::-webkit-scrollbar-thumb{
  background: var(--accent);
  opacity: .55;
  box-shadow: 0 0 0 1px var(--accent-soft-border);
}

@supports (background: color-mix(in srgb, red 50%, transparent)){
  .chart-page-table tbody.has-vscroll{
    scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent;
  }
  .chart-page-table tbody.has-vscroll::-webkit-scrollbar-thumb{
    background: color-mix(in srgb, var(--accent) 55%, transparent);
    opacity: 1;
  }
}

.chart-page-table tbody.has-vscroll.is-scrolling::-webkit-scrollbar-thumb{
  opacity: .85;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent);
}

#symbolsWrapper{ display: none; }

@media (max-width: 520px){
  .chart-page-tablebar label.chart-page-search > #listMeta{ display: none; }
}

@media (max-width: 1024px){
  #symbolsWrapper{ display: inline-flex; }

  body.chart-page footer{
    padding: 8px 12px;
    font-size: 10px;
    line-height: 1.25;
  }

  body.chart-page footer p,
  body.chart-page footer a{
    font-size: inherit;
  }

  body.chart-page footer p{
    margin: .25rem 0;
  }

  .chart-page-main{
    grid-template-columns: 1fr;
    grid-template-areas: "chart";
    padding: 0;
    gap: 0;
  }

  .chart-page-sidebar{ display: none; }

  #layoutBtn,
  #sidebarToggleBtn,
  #fullscreenBtn,
  #fullscreenBtn2,
  #fullscreenBtn3,
  #fullscreenBtn4,
  #screenshotBtn,
  #screenshotBtn2,
  #screenshotBtn3,
  #screenshotBtn4,
  .chart-toolbar-handle { display: none !important; }

  .chart-page-shell{
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .chart-inline-shell.chart-page-shell{ padding: 0; }

  .chart-inline-topbar{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
    padding: .45rem .55rem .35rem;
  }

  .chart-inline-title{ min-width: 0; }

  .chart-inline-symbol{
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .chart-inline-ctrls{
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .35rem .45rem;
    overflow: hidden;
  }

  .chart-inline-label{
    padding: .18rem .4rem;
    border-radius: 10px;
  }

  .chart-tools{
    flex-wrap: wrap;
    max-width: 100%;
    gap: .25rem;
    padding: .18rem .22rem;
    border-radius: 10px;
  }

  .tool-btn{
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .tool-btn svg{
    width: 16px;
    height: 16px;
  }

  .chart-page-shell .chart-inline-host{
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .chart-page-chart{
    padding: 0;
  }

  .chart-page-shell{
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .chart-page-shell .chart-inline-host{
    margin: 0;
    border-radius: 0;
  }
}

.chart-symmodal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.chart-symmodal.is-open{ display: block; }

.chart-symmodal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.chart-symmodal__panel{
  position: absolute;
  left: 50%;
  top: 10vh;
  transform: translateX(-50%);
  width: min(92vw, 460px);
  max-height: min(75vh, 640px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chart-symmodal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
}

.chart-symmodal__title{ font-weight: 800; }

.chart-symmodal__close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
}

.chart-symmodal__body{
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.chart-symmodal__search input{
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 0 10px;
  outline: none;
  box-sizing: border-box;
}

.chart-symmodal__list{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}

.chart-symmodal__item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  user-select: none;
}

.chart-symmodal__item:last-child{ border-bottom: 0; }
.chart-symmodal__item:hover{ background: rgba(255,255,255,.04); }
.chart-symmodal__item.is-active{ background: rgba(8,153,129,.12); }

.chart-symmodal__left{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chart-symmodal__right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.chart-symmodal__sym{
  font-weight: 700;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.chart-symmodal__price{
  font-weight: 800;
  font-size: 12px;
  color: var(--text);
}

.chart-symmodal__subline{
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-symmodal__chg{
  font-weight: 800;
  font-size: 11px;
  white-space: nowrap;
}

.chart-symmodal__chg.pos{ color: var(--accent); }
.chart-symmodal__chg.neg{ color: var(--danger); }

@media (max-width: 1024px){
  .chart-page-charts-wrap{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    gap: 0;
  }

  .chart-page-chart{
    padding: 0;
  }

  .chart-page-shell{
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .chart-page-shell .chart-inline-host{
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .chart-page-shell .chart-inline-canvas{
    width: 100% !important;
  }
}

@media (max-width: 1024px){
  .chart-page-shell .chart-inline-host{
    height: clamp(440px, 78vh, 900px);
    height: clamp(440px, 78svh, 900px);
    min-height: 440px;
  }

  .chart-page-shell .chart-inline-canvas{
    height: 100%;
    width: 100% !important;
    display: block;
  }
}

.chart-page-charts-wrap {
  grid-area: chart;
  min-width: 0;
  min-height: 0;
  display: grid;
  overflow: hidden;
  position: relative;
}

.chart-page-charts-wrap[data-layout="1x1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.chart-page-charts-wrap[data-layout="2h"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.chart-page-charts-wrap[data-layout="2v"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.chart-page-charts-wrap[data-layout="2x2"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.chart-pane[hidden] { display: none !important; }

.chart-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.chart-pane:first-child {
  border-left: none;
  border-top: none;
}
.chart-page-charts-wrap[data-layout="2v"] .chart-pane:nth-child(2) {
  border-left: none;
}
.chart-page-charts-wrap[data-layout="2h"] .chart-pane:nth-child(2) {
  border-top: none;
}
.chart-page-charts-wrap[data-layout="2x2"] .chart-pane:nth-child(2) {
  border-top: none;
}
.chart-page-charts-wrap[data-layout="2x2"] .chart-pane:nth-child(3) {
  border-left: none;
}

@keyframes rv-pane-in {
  0%   { opacity: 0; transform: scale(0.94) translateZ(0); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) translateZ(0); }
}
@keyframes rv-pane-out {
  0%   { opacity: 1; transform: scale(1) translateZ(0); }
  100% { opacity: 0; transform: scale(0.97) translateZ(0); }
}
.chart-pane.rv-pane-entering {
  animation: rv-pane-in 380ms cubic-bezier(.22, 1, .36, 1) both;
  will-change: opacity, transform;
}
.chart-pane.rv-pane-leaving {
  animation: rv-pane-out 220ms cubic-bezier(.4, 0, 1, 1) both;
  will-change: opacity, transform;
}

.chart-pane.is-pane-active::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  border: 2px solid transparent;
}
#chart1Pane.is-pane-active::after { border-color: rgba(8, 153, 129, 0.85); }
#chart2Pane.is-pane-active::after { border-color: rgba(59, 130, 246, 0.85); }
#chart3Pane.is-pane-active::after { border-color: rgba(234, 179, 8, 0.85); }
#chart4Pane.is-pane-active::after { border-color: rgba(168, 85, 247, 0.85); }

.chart-tools--vertical {
  transition: width 280ms cubic-bezier(.4,0,.2,1),
              opacity 200ms ease,
              padding 280ms cubic-bezier(.4,0,.2,1);
}
.chart-pane.toolbar-hidden .chart-tools--vertical {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-right: none !important;
  opacity: 0;
  overflow: hidden !important;
}

.chart-toolbar-handle {
  flex: none;
  width: 14px;
  align-self: stretch;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, width 0.18s ease;
  color: var(--muted, #8a8a8a);
}
.chart-toolbar-handle:hover {
  background: var(--bg-2, rgba(120,120,120,.08));
  width: 18px;
  color: var(--text);
}
.chart-toolbar-handle svg {
  opacity: 0.35;
  transition: opacity 0.18s ease, transform 0.28s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.chart-toolbar-handle:hover svg {
  opacity: 1;
}

.chart-pane.toolbar-hidden .chart-toolbar-handle svg {
  transform: rotate(180deg);
  opacity: 0.35;
}
.chart-pane.toolbar-hidden .chart-toolbar-handle:hover svg {
  opacity: 1;
}

body.chart-page {
  display: block;
}

body.chart-page .app-shell {
  height: 100vh;
  
  overflow: clip;
}

body.chart-page .main-area {
  height: 100vh;
  overflow: hidden;
}

body.chart-page .chart-page-main {
  
  height: calc(100vh - var(--header-h, 52px) - env(safe-area-inset-top, 0px));
  overflow: hidden;
}

@media (min-width: 1025px) {
  .chart-page-shell .chart-inline-host {
    min-height: 360px;
  }
}

@media (max-width: 639px) {
  body.chart-page .chart-page-main {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
}

body.chart-page .chart-page-shell {
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  border-right: none;
}

body.chart-page .chart-page-list {
  border-radius: 0;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.chart-page-shell .chart-inline-host {
  border-radius: 0 !important;
  border: none !important;
}

.chart-inline-shell.chart-page-shell {
  padding: 0;
}

.chart-page-shell .chart-inline-topbar {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
}

.chart-inline-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
}

.chart-inline-body .chart-inline-host {
  flex: 1 1 auto;
  min-width: 0;
}

.chart-tools--vertical {
  flex-direction: column !important;
  flex: none;
  width: 44px;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 0;
  gap: 2px;
  border-right: 1px solid var(--border);
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  background: var(--card-bg);
  align-self: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  flex-wrap: nowrap !important;
}
.chart-tools--vertical::-webkit-scrollbar { display: none; }

.chart-tools--vertical .tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.chart-tools--vertical .tool-btn svg {
  width: 16px;
  height: 16px;
}

.tool-sep {
  width: 24px;
  height: 1px;
  background: var(--border);
  margin: 3px 0;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .chart-inline-body {
    flex-direction: column;
  }

  .chart-tools--vertical {
    flex-direction: row !important;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 4px 8px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap !important;
    gap: 3px;
    justify-content: flex-start;
  }

  .chart-tools--vertical .tool-btn {
    width: 28px;
    height: 28px;
  }

  .tool-sep {
    width: 1px;
    height: 20px;
    margin: 0 3px;
  }
}

.chart-grid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, color .12s, border-color .12s;
}
.chart-grid-btn:hover {
  background: var(--hover-bg, rgba(255,255,255,.06));
  color: var(--text);
}
.chart-grid-btn.is-active {
  background: rgba(8,153,129,.12);
  border-color: rgba(8,153,129,.45);
  color: var(--accent);
}

.chart-layout-popup {
  position: fixed;
  z-index: 20000;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.chart-layout-popup[hidden] { display: none !important; }

.layout-popup-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 2px;
}

.layout-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.layout-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  padding: 6px;
}
.layout-opt:hover {
  background: rgba(255,255,255,.07);
  color: var(--text);
}
.layout-opt.is-active {
  border-color: var(--accent);
  background: rgba(8,153,129,.12);
  color: var(--accent);
}
.layout-opt svg {
  width: 100%;
  height: 100%;
}

.chart-toolbar-toggle {
  opacity: .6;
  transition: opacity .15s, transform .15s;
}
.chart-toolbar-toggle:hover { opacity: 1; }
.chart-toolbar-toggle.is-active {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent);
}

.chart-page-main:fullscreen {
  height: 100vh;
  height: 100dvh;
  background: var(--bg, #131722);
}
.chart-page-main:-webkit-full-screen {
  height: 100vh;
  background: var(--bg, #131722);
}

.chart-page-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--card-bg, #131722);
  display: flex;
  flex-direction: column;
}
.chart-page-shell:fullscreen .chart-inline-body {
  flex: 1;
  min-height: 0;
}
.chart-page-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: var(--card-bg, #131722);
  display: flex;
  flex-direction: column;
}
.chart-page-shell:-webkit-full-screen .chart-inline-body {
  flex: 1;
  min-height: 0;
}


