/* Window controls move the existing frame; application content stays mounted. */
.os-window {
  position: relative;
  container: app-window / inline-size;
}
.os-window-resize {
  display: none;
}
@media (min-width: 701px) and (min-height: 480px) {
  .os-windowbar {
    cursor: grab;
    touch-action: none;
    user-select: none;
  }
  .paper-os .os-window[data-floating='true'] {
    position: fixed;
    z-index: 4;
    left: var(--window-left);
    top: var(--window-top);
    width: var(--window-width);
    height: var(--window-height);
    min-height: 0;
    min-width: 0;
    max-width: none;
    flex: none;
    margin: 0;
    transform: none;
  }
  .paper-os:not(.os-maximized) .os-window-resize {
    display: block;
    position: absolute;
    z-index: 12;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    touch-action: none;
  }
  .os-window-resize[data-window-edge='n'],
  .os-window-resize[data-window-edge='s'] {
    left: 13px;
    right: 13px;
    height: 7px;
    cursor: ns-resize;
  }
  .os-window-resize[data-window-edge='n'] {
    top: 0;
  }
  .os-window-resize[data-window-edge='s'] {
    bottom: 0;
  }
  .os-window-resize[data-window-edge='e'],
  .os-window-resize[data-window-edge='w'] {
    top: 13px;
    bottom: 13px;
    width: 7px;
    cursor: ew-resize;
  }
  .os-window-resize[data-window-edge='e'] {
    right: 0;
  }
  .os-window-resize[data-window-edge='w'] {
    left: 0;
  }
  .os-window-resize[data-window-edge='ne'],
  .os-window-resize[data-window-edge='nw'],
  .os-window-resize[data-window-edge='se'],
  .os-window-resize[data-window-edge='sw'] {
    width: 14px;
    height: 14px;
  }
  .os-window-resize[data-window-edge='ne'] {
    top: 0;
    right: 0;
    cursor: nesw-resize;
  }
  .os-window-resize[data-window-edge='nw'] {
    top: 0;
    left: 0;
    cursor: nwse-resize;
  }
  .os-window-resize[data-window-edge='se'] {
    bottom: 0;
    right: 0;
    cursor: nwse-resize;
  }
  .os-window-resize[data-window-edge='sw'] {
    bottom: 0;
    left: 0;
    cursor: nesw-resize;
  }
  .os-window-resize[data-window-edge='se']::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    right: 3px;
    bottom: 3px;
    background: repeating-linear-gradient(
      135deg,
      transparent 0 2px,
      var(--bi-muted) 2px 3px,
      transparent 3px 4px
    );
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.65;
  }
  .os-window-resize:focus-visible {
    outline: 2px solid var(--bi-primary);
    outline-offset: -2px;
    background: var(--bi-primary-tint);
  }
  .os-window-interacting,
  .os-window-interacting * {
    cursor: var(--window-cursor) !important;
    user-select: none !important;
  }
  .os-window-interacting iframe {
    pointer-events: none;
  }
  .os-window[data-window-compact] .trade-order-panel {
    overflow: auto;
  }
  .os-window[data-window-compact] .trade-book {
    overflow: visible;
    flex: none;
    display: block;
  }
  .os-window[data-window-compact] .trade-order-controls {
    overflow: visible;
  }
  .os-window[data-window-compact] .trade-middle {
    grid-template-rows: minmax(120px, 1fr) 120px;
  }
}
@container app-window (max-width: 1000px) {
  .os-secondary-app {
    padding: 24px;
  }
  .os-guide-grid {
    grid-template-columns: 1fr;
  }
  .os-page-heading {
    align-items: start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .scan-heading,
  .scan-tools {
    padding-inline: 16px;
  }
  .scan-heading h2 {
    font-size: 25px;
  }
  .scan-column-head {
    padding-inline: 12px;
  }
  .scan-column-head p {
    display: none;
  }
  .scan-column-head h3 {
    font-size: 11px;
  }
  .scan-token {
    padding-inline: 12px;
  }
  .scan-token-title {
    display: block;
  }
  .scan-token-title small {
    display: none;
  }
  .scan-ca {
    display: block;
    margin-top: 7px;
  }
}
