.workspace[data-right-panel-collapsed="true"] {
  grid-template-columns: var(--drawing-rail-width) minmax(0, 1fr) 38px;
}
.workspace[data-right-panel-collapsed="true"] .right-panel {
  grid-template-columns: 38px;
}
.workspace[data-right-panel-collapsed="true"] .right-panel-tools {
  grid-column: 1;
}
@media (max-width: 800px) {
  :root {
    --drawing-rail-width: 44px;
  }
  .workspace,
  .workspace[data-right-panel-collapsed="true"] {
    height: calc(100dvh - 88px);
    grid-template-columns: var(--drawing-rail-width) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
  }
  .workspace .right-panel,
  html[data-theme] .workspace .right-panel,
  .workspace[data-right-panel-collapsed="true"] .right-panel {
    position: absolute;
    inset: 0;
    z-index: 45;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 44px minmax(0, 1fr);
    background: transparent;
  }
  .workspace:not([data-mobile-panel-open="true"]) .right-panel {
    display: none;
  }
  html[data-theme] .workspace[data-mobile-panel-open="true"] .right-panel {
    pointer-events: auto;
    background: var(--surface, #131722);
  }
  .workspace[data-mobile-panel-open="true"] > :is(.chart-panel, .drawing-tools) {
    visibility: hidden;
  }
  .mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-inline: 4px;
  }
  .workspace .right-panel-tools {
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
    border: 0;
  }
  .workspace .right-panel-tools button,
  .workspace[data-right-panel-collapsed="true"] .right-panel-tools button {
    flex-shrink: 0;
  }
  .mobile-panel-back {
    display: flex;
    align-items: center;
    min-height: 36px;
    gap: 4px;
    padding-inline: 4px 10px;
    font-size: 12px;
  }
  .mobile-panel-back svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
  }
  .workspace .right-panel-view {
    grid-row: 2;
    pointer-events: auto;
    overflow: hidden;
  }
  .workspace .right-panel-view > .objects-panel {
    max-width: none;
  }
  .workspace .watchlist-panel .details,
  .workspace .watchlist-panel .private-note {
    display: none;
  }
  .workspace .quote-row {
    height: 44px;
  }
  .workspace .quote-row .quote-percent {
    max-width: none;
  }
}
