/* STEP 75 / V89: PRIME Tools with Clean Chart / PRIME Walls guard.
   Expanded PRIME TOOLS menu + Volume Profile + DOM restore after Clean Chart. */

html body.terminal-active,
html body.gp-terminal-active {
  --gp-prime-tools-bg: rgba(5, 5, 6, .96);
  --gp-prime-tools-bg-2: rgba(12, 12, 14, .98);
  --gp-prime-tools-line: rgba(255, 255, 255, .13);
  --gp-prime-tools-line-soft: rgba(255, 255, 255, .08);
  --gp-prime-tools-text: #f7f7f8;
  --gp-prime-tools-muted: rgba(247, 247, 248, .65);
}

/* Hide only after JS safely inserts PRIME TOOLS.
   Original buttons remain in DOM so existing click handlers and access checks stay untouched. */
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav button[data-dashboard-tab="orderflow"],
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav button[data-dashboard-tab="orderflow"],
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav button[data-mobile-prime-indicator],
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav button[data-mobile-prime-indicator],
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav button[data-dashboard-tab="liquiditywalls"],
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav button[data-dashboard-tab="liquiditywalls"],
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav #gp-sidebar-script-lab-btn,
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav #gp-sidebar-script-lab-btn,
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav button[data-dashboard-tab="heatmap"],
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav button[data-dashboard-tab="heatmap"],
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav button[data-dashboard-tab="bubbles"],
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav button[data-dashboard-tab="bubbles"],
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav button[data-dashboard-tab="dom"],
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav button[data-dashboard-tab="dom"],
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav button[data-dashboard-tab="volume"],
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav button[data-dashboard-tab="volume"],
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav button[data-dashboard-tab="journal"],
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav button[data-dashboard-tab="journal"],
html body.gp-prime-tools-v89-ready.terminal-active .gp-terminal-side nav button[data-dashboard-tab="news"],
html body.gp-prime-tools-v89-ready.gp-terminal-active .gp-terminal-side nav button[data-dashboard-tab="news"] {
  display: none !important;
}

html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn {
  position: relative !important;
  display: flex !important;
  overflow: hidden !important;
}

html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn span,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn span {
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, .18));
}

html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn::after,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn:hover::after,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn:hover::after,
html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.active::after,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.active::after,
html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.is-open::after,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.is-open::after {
  opacity: 1;
}

html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.active,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.active,
html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.is-open,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.is-open {
  color: #ffffff !important;
  background: linear-gradient(135deg, #000000, #1c1c20) !important;
  border-color: rgba(255,255,255,.20) !important;
  box-shadow: inset 3px 0 rgba(255,255,255,.45), 0 12px 28px rgba(0,0,0,.34) !important;
}

.gp-prime-tools-popover {
  position: fixed;
  left: 154px;
  top: 92px;
  z-index: 100420;
  width: min(420px, calc(100vw - 22px));
  color: var(--gp-prime-tools-text, #f7f7f8);
  background:
    radial-gradient(circle at 12% -10%, rgba(255,255,255,.08), transparent 34%),
    linear-gradient(180deg, var(--gp-prime-tools-bg-2, rgba(12,12,14,.98)), var(--gp-prime-tools-bg, rgba(5,5,6,.96)));
  border: 1px solid var(--gp-prime-tools-line, rgba(255,255,255,.13));
  border-radius: 18px;
  box-shadow: 0 26px 72px rgba(0,0,0,.70), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  max-height: min(78dvh, 760px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-10px, -6px, 0) scale(.985);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gp-prime-tools-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

body:not(.terminal-active):not(.gp-terminal-active) .gp-prime-tools-popover,
body.gp-home-page-active .gp-prime-tools-popover,
body.gp-profile-open .gp-prime-tools-popover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gp-prime-tools-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 13px 11px;
  border-bottom: 1px solid var(--gp-prime-tools-line-soft, rgba(255,255,255,.08));
  cursor: grab;
  user-select: none;
}

.gp-prime-tools-popover.is-dragging .gp-prime-tools-popover__head {
  cursor: grabbing;
}

.gp-prime-tools-popover__title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gp-prime-tools-popover__title strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.gp-prime-tools-popover__title span {
  color: var(--gp-prime-tools-muted, rgba(247,247,248,.65));
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-prime-tools-popover__close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
}

.gp-prime-tools-popover__close:hover {
  background: rgba(255,255,255,.12);
}

.gp-prime-tools-popover__body {
  padding: 12px;
  max-height: calc(min(78dvh, 760px) - 68px);
  overflow: auto;
}

.gp-prime-tools-popover__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.gp-prime-tools-action {
  appearance: none;
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.gp-prime-tools-action:hover,
.gp-prime-tools-action.is-active {
  background: linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.035));
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

.gp-prime-tools-action > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.10);
  font-size: 15px;
  line-height: 1;
}

.gp-prime-tools-action > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.gp-prime-tools-action strong {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: .025em;
}

.gp-prime-tools-action small {
  color: var(--gp-prime-tools-muted, rgba(247,247,248,.65));
  font-size: 10px;
  line-height: 1.28;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-prime-tools-action em {
  min-width: 42px;
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.76);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.gp-prime-tools-action.is-active em {
  color: #111111;
  background: #ffffff;
  border-color: #ffffff;
}

.gp-prime-tools-popover__foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(247,247,248,.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.gp-prime-tools-popover__foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gp-prime-tools-popover__foot span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28d888;
  box-shadow: 0 0 10px rgba(40,216,136,.55);
}


/* Clean Chart wins instantly: prevents PRIME Walls from flashing during cleanup. */
body.gp-prime-walls-clean-suppress #gp-prime-walls-overlay,
body.gp-prime-walls-clean-suppress #gp-prime-walls-overlay canvas,
body.gp-prime-walls-clean-suppress #gp-prime-right-intel,
body.gp-prime-walls-clean-suppress #gp-prime-right-slot,
body.gp-prime-walls-clean-suppress .gp-prime-right-intel,
body.gp-prime-walls-clean-suppress .gp-prime-walls-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
  animation: none !important;
}

@media (max-width: 760px) {
  .gp-prime-tools-popover {
    left: 11px !important;
    right: 11px !important;
    top: auto !important;
    bottom: 86px !important;
    width: auto !important;
    max-height: min(72dvh, 520px);
    overflow: auto;
    transform: translate3d(0, 12px, 0) scale(.985);
  }

  .gp-prime-tools-popover.is-open {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .gp-prime-tools-action {
    min-height: 62px;
  }
}


/* STEP 75 / V89: green active state inside expanded PRIME TOOLS menu. */
html body.terminal-active,
html body.gp-terminal-active {
  --gp-prime-tools-active: #25e58f;
  --gp-prime-tools-active-soft: rgba(37, 229, 143, .15);
  --gp-prime-tools-active-line: rgba(37, 229, 143, .50);
}

html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.active,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.active,
html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.is-open,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.is-open {
  border-color: var(--gp-prime-tools-active-line) !important;
  box-shadow: inset 3px 0 var(--gp-prime-tools-active), 0 0 18px rgba(37,229,143,.14), 0 12px 28px rgba(0,0,0,.34) !important;
}

html body.terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.active span,
html body.gp-terminal-active .gp-terminal-side nav #gp-prime-tools-sidebar-btn.active span {
  color: var(--gp-prime-tools-active) !important;
  filter: drop-shadow(0 0 9px rgba(37,229,143,.42)) !important;
}

.gp-prime-tools-action.is-active {
  background:
    radial-gradient(circle at 10% 0%, rgba(37,229,143,.18), transparent 42%),
    linear-gradient(135deg, rgba(37,229,143,.115), rgba(255,255,255,.035)) !important;
  border-color: var(--gp-prime-tools-active-line, rgba(37,229,143,.50)) !important;
  box-shadow: inset 0 0 0 1px rgba(37,229,143,.13), 0 0 18px rgba(37,229,143,.08) !important;
}

.gp-prime-tools-action.is-active > span {
  color: var(--gp-prime-tools-active, #25e58f) !important;
  background: rgba(37,229,143,.13) !important;
  border-color: rgba(37,229,143,.35) !important;
  box-shadow: 0 0 14px rgba(37,229,143,.18) !important;
}

.gp-prime-tools-action.is-active strong {
  color: #ffffff !important;
}

.gp-prime-tools-action.is-active small {
  color: rgba(225,255,240,.78) !important;
}

.gp-prime-tools-action.is-active em {
  min-width: 54px !important;
  color: #04120b !important;
  background: var(--gp-prime-tools-active, #25e58f) !important;
  border-color: rgba(145,255,198,.72) !important;
  box-shadow: 0 0 16px rgba(37,229,143,.24) !important;
}

.gp-prime-tools-action.is-active em::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 999px;
  background: #04120b;
  vertical-align: 1px;
}

/* Fallback: if Clean Chart and PRIME Walls ever overlap, Clean Chart wins visually. */
body.gp-clean-chart-active.gp-prime-right-intel-active #gp-prime-right-intel,
body.gp-clean-chart-visuals-only.gp-prime-right-intel-active #gp-prime-right-intel,
body.gp-clean-chart-active.gp-prime-right-intel-active #gp-prime-right-slot,
body.gp-clean-chart-visuals-only.gp-prime-right-intel-active #gp-prime-right-slot {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* STEP 74 fallback: if any old delayed PRIME Walls timer runs after Clean Chart, keep it visually neutral. */
body.gp-prime-walls-clean-suppress.gp-prime-right-intel-active #gp-prime-right-intel,
body.gp-prime-walls-clean-suppress.gp-prime-right-intel-active #gp-prime-right-slot,
body.gp-prime-walls-clean-suppress #gp-prime-walls-header-btn.active,
body.gp-prime-walls-clean-suppress #gp-prime-walls-header-btn.is-active,
body.gp-prime-walls-clean-suppress #gp-prime-walls-btn.active,
body.gp-prime-walls-clean-suppress #gp-prime-walls-btn.is-active,
body.gp-prime-walls-clean-suppress [data-gp-action="togglePrimeWalls"].active,
body.gp-prime-walls-clean-suppress [data-gp-action="togglePrimeWalls"].is-active {
  box-shadow: none !important;
}


/* STEP 75 / V89: Clean Chart must keep the original right-side DOM column visible on desktop. */
@media (min-width: 1181px) {
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored:not(.gp-prime-right-intel-active) .main,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored:not(.gp-prime-right-intel-active) .main {
    grid-column: 2 !important;
    grid-row: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored:not(.gp-prime-right-intel-active) #app > #sidebar,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored:not(.gp-prime-right-intel-active) #app > #sidebar,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only:not(.gp-prime-right-intel-active) #app > #sidebar,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only:not(.gp-prime-right-intel-active) #app > #sidebar {
    grid-column: 3 !important;
    grid-row: 3 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: var(--gp-step05-chart-min-height, 640px) !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored:not(.gp-prime-right-intel-active) #gp-prime-right-slot,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored:not(.gp-prime-right-intel-active) #gp-prime-right-slot {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored:not(.gp-prime-right-intel-active) #sidebar.gp-prime-dom-docked,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored:not(.gp-prime-right-intel-active) #sidebar.gp-prime-dom-docked {
    display: flex !important;
  }
}

/* STEP 75 hard restore: keep the normal chart + right DOM layout after Clean Chart.
   Overrides older clean-chart rules that tried to turn the terminal into a chart-only view. */
@media (min-width: 1181px) {
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active #app,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active #app,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only #app,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only #app,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored #app,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored #app {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) var(--gp-step01-dom-width, clamp(360px, 27vw, 460px)) !important;
    grid-template-rows:
      48px
      var(--gp-step05-overview-height, 78px)
      minmax(calc(var(--gp-step05-chart-min-height, 430px) - 22px), max-content)
      var(--gp-step12-orderflow-row-height, minmax(238px, 27vh))
      minmax(var(--gp-step12-calendar-height, 360px), max-content) !important;
    gap: 8px !important;
    padding: 0 8px 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-content: start !important;
    align-items: stretch !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .header,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .header,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .header,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .header,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .header,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .header {
    grid-column: 1 / 4 !important;
    grid-row: 1 !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .gp-terminal-side,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .gp-terminal-side,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .gp-terminal-side,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .gp-terminal-side,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .gp-terminal-side,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .gp-terminal-side {
    grid-column: 1 !important;
    grid-row: 2 / 6 !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .gp-market-overview,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .gp-market-overview,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .gp-market-overview,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .gp-market-overview,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .gp-market-overview,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .gp-market-overview {
    grid-column: 2 / 4 !important;
    grid-row: 2 !important;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active #app > .main,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active #app > .main,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only #app > .main,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only #app > .main,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored #app > .main,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored #app > .main {
    grid-column: 2 !important;
    grid-row: 3 !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 430px !important;
    max-width: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .chart-container,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .chart-container,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .chart-container,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .chart-container,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .chart-container,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .chart-container {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 430px !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active #app > #sidebar,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active #app > #sidebar,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only #app > #sidebar,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only #app > #sidebar,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored #app > #sidebar,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored #app > #sidebar {
    grid-column: 3 !important;
    grid-row: 3 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 430px !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active #sidebar #levels-summary,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active #sidebar #levels-summary,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only #sidebar #levels-summary,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only #sidebar #levels-summary,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored #sidebar #levels-summary,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored #sidebar #levels-summary {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .tools-panel,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .tools-panel,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .tools-panel,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .tools-panel,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .tools-panel,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .tools-panel {
    grid-column: 2 / 4 !important;
    grid-row: 4 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .gp-terminal-bottom,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .gp-terminal-bottom,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .gp-terminal-bottom--calendar-only,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-active .gp-terminal-bottom--calendar-only,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .gp-terminal-bottom,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .gp-terminal-bottom,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .gp-terminal-bottom--calendar-only,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-chart-visuals-only .gp-terminal-bottom--calendar-only,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .gp-terminal-bottom,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .gp-terminal-bottom,
  html body.terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .gp-terminal-bottom--calendar-only,
  html body.gp-terminal-active.gp-dashboard-chart-mode.gp-clean-dom-restored .gp-terminal-bottom--calendar-only {
    grid-column: 2 / 4 !important;
    grid-row: 5 !important;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
