:root {
  --drawing-rail-width: 54px;
}
.right-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  min-height: 0;
  min-width: 0;
  background: #131722;
}
.workspace {
  grid-template-columns: var(--drawing-rail-width) minmax(0, 1fr) var(--right-panel-width, 380px);
}
.panel-divider {
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 30;
  cursor: col-resize;
  touch-action: none;
}
.panel-divider::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 3px;
  width: 3px;
  background: var(--control-line, #444444);
  pointer-events: none;
}
.panel-divider:hover,
.panel-divider:focus-visible {
  background: transparent;
  outline: none;
}
.resizing-panels,
.resizing-panels * {
  cursor: col-resize !important;
  user-select: none !important;
}
@media (min-width: 1700px) {
  .workspace {
    grid-template-columns: var(--drawing-rail-width) minmax(0, 1fr) var(--right-panel-width, 420px);
  }
}
@media (min-width: 801px) and (max-width: 1200px) {
  .workspace {
    grid-template-columns: var(--drawing-rail-width) minmax(0, 1fr) var(--right-panel-width, 340px);
  }
}
.right-panel-view {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
}
.right-panel-view[hidden] {
  display: none !important;
}
.right-panel-view > .watchlist-panel,
.right-panel-view > .objects-panel {
  position: static;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  box-shadow: none;
}
.right-panel-tools {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-left: 1px solid #2a2e39;
}
.right-panel-tools button {
  width: 34px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #9598a1;
}
.right-panel-tools button:hover,
.right-panel-tools button[aria-selected="true"] {
  color: #d1d4dc;
  background: #2a2e39;
}
.right-panel-tools svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
.right-panel .object-row {
  gap: 4px;
}
.right-panel .object-row:hover {
  background: #2a2e39;
}
.right-panel .object-row > button[data-object-action] {
  display: grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 26px;
  padding: 2px;
  flex-shrink: 0;
}
.right-panel .object-row > button[data-object-action][aria-pressed="true"] {
  opacity: 1;
}
.quote-row td:last-child {
  position: relative;
}
.quote-remove {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  opacity: 0;
  pointer-events: none;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 2px;
  border: 1px solid #787b86;
  border-radius: 4px;
  background: #131722;
  color: #d1d4dc;
}
.quote-remove:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.quote-row:has(.quote-remove:focus-visible) .quote-percent {
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .quote-row:hover .quote-remove {
    opacity: 1;
    pointer-events: auto;
  }
  .quote-row:hover .quote-percent {
    opacity: 0;
  }
}
.quote-more {
  display: none;
}
@media (hover: none), (pointer: coarse) {
  .watchlist-scroll th:nth-child(2) {
    width: 23%;
  }
  .watchlist-scroll th:nth-child(3) {
    width: 17%;
  }
  .watchlist-scroll th:nth-child(4) {
    width: 26%;
    padding-right: 34px;
  }
  .quote-row td:last-child {
    padding: 0;
  }
  .quote-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
  }
  .quote-row .quote-percent {
    opacity: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .quote-remove {
    display: none;
  }
  .quote-more {
    display: grid;
    flex: 0 0 32px;
    height: 36px;
    place-items: center;
    padding: 0;
    color: var(--text);
    border-radius: 4px;
    font-size: 20px;
    line-height: 1;
  }
  .quote-more:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
}
.watchlist-context-menu > button {
  display: flex;
  gap: 6px;
  align-items: center;
}
.watchlist-context-menu > button > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.watchlist-context-menu > button > kbd {
  margin-left: auto;
  flex-shrink: 0;
}
.quote-row[draggable="true"] {
  cursor: grab;
}
.quote-row.dragging {
  opacity: 0.45;
}
.quote-row.drop-before > td {
  box-shadow: inset 0 2px #2962ff;
}
.quote-row.drop-after > td {
  box-shadow: inset 0 -2px #2962ff;
}
@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .panel-divider {
    display: none;
  }
  .right-panel {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
