  /* Compact confirm popover — 2 icon-only buttons (back + trash) */
  .modal-back.popover {
    background: transparent;
    display: block;
  }
  /* Destructive confirmation popover. Unified with .market-pop look (padding 8px,
     soft shadow, 40x40 icon-btns inherited). The .confirm-pop namespace carries
     the danger color rules + preselect highlight; layout (flex-direction:row,
     gap) is applied inline by openConfirmModal to override .market-pop column. */
  .confirm-pop .icon-btn:focus,
  .confirm-pop .icon-btn.preselect {
    outline: none;
    background: linear-gradient(180deg, #348370 0%, #1c503b 100%);
    color: #f1f7f3;
  }
  .confirm-pop .icon-btn.danger {
    background: linear-gradient(180deg, #8a3a2c 0%, #4a1d15 100%);
    border-color: rgba(180,80,60,0.55);
    color: #ffd4c4;
  }
  .confirm-pop .icon-btn.danger:hover {
    background: linear-gradient(180deg, #a64535 0%, #5a221a 100%);
  }
  .confirm-pop .icon-btn.danger:focus,
  .confirm-pop .icon-btn.danger.preselect {
    background: linear-gradient(180deg, #a64535 0%, #5a221a 100%);
  }

  /* Compact sell/buy popover (positioned absolutely at cursor) */
  .market-pop {
    width: auto; min-width: 0;
    padding: 8px;
    position: fixed;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    box-shadow: 0 8px 22px rgba(0,0,0,0.55);
  }
  @media (max-width: 640px) {
    .market-pop,
    .market-pop-body {
      max-width: calc(100vw - 16px);
    }
  }
  .market-pop input.price {
    width: 88px;
    text-align: center;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 700;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    color: var(--text);
    outline: none;
  }
  .market-pop input.price:focus {
    border-color: var(--accent);
    box-shadow: none;
  }
  .market-pop .icon-btn { width: 40px; height: 40px; border-radius: 12px; }
  .market-pop .icon-btn svg { width: 18px; height: 18px; }
