    /* Watchlist View */
    .watchlist-view-layout {
      display: flex;
      flex: 1;
      overflow: hidden;
    }

    .lists-sidebar {
      width: 220px;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }

    .lists-sidebar-header {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .lists-sidebar-header h3 {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-dim);
    }

    .lists-content {
      flex: 1;
      overflow-y: auto;
      padding: 8px;
    }

    .list-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
      color: var(--text);
      transition: all 0.1s;
    }
    .list-item:hover { background: rgba(255,255,255,0.05); }
    .list-item.active { background: var(--accent); color: #000; }
    .list-item .list-icon { font-size: 14px; width: 20px; text-align: center; }
    .list-item .list-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .list-item .list-count { font-size: 11px; color: var(--text-dim); }
    .list-item.active .list-count { color: rgba(0,0,0,0.6); }
    .list-item .list-edit-btn {
      opacity: 0;
      background: none;
      border: none;
      color: var(--text-dim);
      cursor: pointer;
      padding: 2px 6px;
      font-size: 14px;
      border-radius: 4px;
      transition: all 0.1s;
    }
    .list-item:hover .list-edit-btn { opacity: 1; }
    .list-item .list-edit-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
    .list-item.active .list-edit-btn { color: rgba(0,0,0,0.5); }
    .list-item.active .list-edit-btn:hover { background: rgba(0,0,0,0.1); color: #000; }

    .lists-divider {
      height: 1px;
      background: var(--border);
      margin: 8px 0;
    }

    .lists-section-label {
      padding: 8px 12px 4px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-dim);
    }

    .smart-list-header {
      padding: 8px 12px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      color: var(--text-dim);
      letter-spacing: 0.5px;
    }

    .watchlist-main {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .watchlist-bulk-bar {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 12px;
      background: rgba(106,178,242,0.1);
      border-bottom: 1px solid var(--border);
      font-size: 12px;
      flex-shrink: 0;
    }
    .watchlist-bulk-bar.visible {
      display: flex;
    }
    .watchlist-bulk-bar #watchlistBulkActions {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-wrap: wrap;
    }

    .watchlist-table-body {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .watchlist-toolbar {
      padding: 12px 16px;
      background: var(--card-bg);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .watchlist-search {
      flex: 1;
      max-width: 300px;
      position: relative;
    }

    .watchlist-search input {
      width: 100%;
      padding: 8px 12px 8px 32px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 13px;
    }

    .watchlist-search .search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-dim);
      font-size: 12px;
    }

    .watchlist-filters {
      display: flex;
      gap: 8px;
    }

    .filter-dropdown {
      position: relative;
    }

    .filter-dropdown select {
      appearance: none;
      padding: 8px 28px 8px 12px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 12px;
      cursor: pointer;
    }

    .filter-dropdown::after {
      content: '▼';
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 8px;
      color: var(--text-dim);
      pointer-events: none;
    }

    /* Custom Dropdown (styled) */
    .custom-dropdown {
      position: relative;
      display: inline-block;
    }

    .custom-dropdown-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 12px;
      cursor: pointer;
      min-width: 140px;
      justify-content: space-between;
    }

    .custom-dropdown-btn:hover {
      border-color: var(--accent);
    }

    .custom-dropdown-btn .arrow {
      font-size: 8px;
      color: var(--text-dim);
    }

    .custom-dropdown-menu {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      min-width: 100%;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.4);
      z-index: 1000;
      display: none;
      overflow: hidden;
    }

    .custom-dropdown.open .custom-dropdown-menu {
      display: block;
    }

    .custom-dropdown-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      color: var(--text);
      font-size: 12px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .custom-dropdown-item:hover {
      background: var(--hover);
    }

    .custom-dropdown-item.active {
      color: var(--accent);
    }

    .custom-dropdown-item .check {
      width: 16px;
      color: var(--accent);
    }

    .watchlist-table {
      flex: 1;
      overflow-y: auto;
      padding: 0 16px 12px;
    }

    .watchlist-table-header,
    .watchlist-table-row {
      display: flex;
      align-items: center;
      padding: 0 10px 0 2px;
      width: 100%;
      box-sizing: border-box;
    }

    .watchlist-table-header {
      padding-top: 8px;
      padding-bottom: 8px;
      font-size: 11px;
      font-weight: 600;
      flex-shrink: 0;
      text-transform: uppercase;
      color: var(--text-dim);
      border-bottom: 1px solid var(--border);
      background-color: var(--bg-primary);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .watchlist-table-header .watchlist-col-price,
    .watchlist-table-header .watchlist-col-change {
      text-align: right;
    }

    .watchlist-table-row {
      padding-top: 4px;
      padding-bottom: 4px;
      border-radius: 4px;
      transition: background 0.1s;
    }
    .watchlist-table-row:hover { background: var(--card-bg); }
    /* When keyboard nav active, suppress hover on non-focused rows */
    .watchlist-table-body:has(.watchlist-table-row.focused) .watchlist-table-row:not(.focused):hover,
    #marketplaceTableBody:has(.watchlist-table-row.focused) .watchlist-table-row:not(.focused):hover,
    #shopTabContent:has(.watchlist-table-row.focused) .watchlist-table-row:not(.focused):hover { background: transparent; }
    .watchlist-table-row.selected { background: rgba(106,178,242,0.15); }

    .watchlist-col-checkbox { width: 22px; flex-shrink: 0; }
    .watchlist-col-num { width: 24px; flex-shrink: 0; text-align: right; padding-right: 4px; color: var(--text-dim); font-size: 11px; }
    .watchlist-col-username { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .watchlist-col-list { width: 90px; flex-shrink: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .watchlist-col-shop { width: 90px; flex-shrink: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .watchlist-col-status { width: 80px; flex-shrink: 0; text-align: center; white-space: nowrap; }
    .watchlist-col-price { width: 80px; flex-shrink: 0; text-align: right; white-space: nowrap; }
    .watchlist-col-change { width: 60px; flex-shrink: 0; text-align: right; white-space: nowrap; font-size: 11px; }
    .watchlist-col-more { width: 28px; flex-shrink: 0; display: flex; justify-content: center; }
    .watchlist-col-actions { display: flex; justify-content: flex-end; gap: 4px; white-space: nowrap; }

    /* ⋮ kebab button */
    .btn-more {
      background: none;
      border: none;
      color: var(--text-dim);
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
      padding: 2px 6px;
      border-radius: 4px;
      opacity: 0.5;
      transition: opacity 0.1s, background 0.1s;
    }
    .btn-more:hover {
      opacity: 1;
      background: rgba(255,255,255,0.08);
    }
    .watchlist-table-row.focused .btn-more,
    .watchlist-table-row:hover .btn-more {
      opacity: 0.8;
    }

    /* Inline keyboard hints (visible only on focused row) */
    .row-hints {
      display: none;
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      gap: 4px;
    }
    .watchlist-col-username { position: relative; }
    .watchlist-table-row.focused .row-hints {
      display: inline-flex;
    }
    .row-hints {
      align-items: baseline;
      font-size: 10px;
      color: var(--text-dim);
      opacity: 0.5;
    }
    .row-hints kbd {
      display: inline;
      min-width: 0;
      font-size: 10px;
      font-family: inherit;
      font-weight: 600;
      background: none;
      border: none;
      border-radius: 0;
      padding: 0;
      color: inherit;
      margin-left: 6px;
    }
    .row-hints .hint-label {
      font-size: 10px;
      font-family: inherit;
      color: inherit;
      margin-left: 2px;
    }

    /* Context menu for row actions (Bloomberg style) */
    .row-context-menu {
      position: fixed;
      min-width: 160px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 6px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.4);
      z-index: 100;
      padding: 4px 0;
    }
    .row-context-menu button {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      padding: 7px 14px;
      background: none;
      border: none;
      color: var(--text);
      font-size: 12px;
      text-align: left;
      cursor: pointer;
    }
    .row-context-menu button:hover { background: var(--card-bg); }
    .row-context-menu button:last-child:hover { color: var(--error); }
    .ctx-key {
      display: inline-block;
      width: 16px;
      height: 16px;
      line-height: 16px;
      text-align: center;
      font-size: 10px;
      font-weight: 600;
      border-radius: 3px;
      background: rgba(255,255,255,0.08);
      color: var(--text-dim);
    }
    .ctx-divider {
      height: 1px;
      background: var(--border);
      margin: 4px 0;
    }

    .shop-indicator {
      display: inline-block;
      padding: 2px 6px;
      background: rgba(230, 196, 60, 0.12);
      border-radius: 3px;
      font-size: 11px;
      font-weight: 500;
      color: var(--yellow);
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      vertical-align: middle;
    }
    .shop-indicator.multi {
      background: rgba(230, 196, 60, 0.2);
    }

    .list-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      background: var(--bg);
      border-radius: 4px;
      font-size: 11px;
      color: var(--text-dim);
    }

    /* Smart list badges (shown when no custom list) */
    .smart-list-badge {
      font-size: 11px;
      padding: 2px 6px;
      border-radius: 3px;
      font-weight: 500;
    }
    .smart-sold {
      background: rgba(149, 165, 166, 0.15);
      color: #95a5a6;
    }
    .smart-onmarket {
      background: rgba(230, 126, 34, 0.15);
      color: #e67e22;
    }
    .smart-watching {
      background: rgba(52, 152, 219, 0.15);
      color: #3498db;
    }

    /* Create List Modal */
    .create-list-modal .color-picker {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .create-list-modal .color-option {
      width: 24px;
      height: 24px;
      border-radius: 4px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.1s;
    }
    .create-list-modal .color-option:hover { transform: scale(1.1); }
    .create-list-modal .color-option.selected { border-color: var(--text); }

    /* Move to List Dropdown */
    .move-list-dropdown {
      position: absolute;
      bottom: 100%;
      right: 0;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 4px 0;
      min-width: 160px;
      z-index: 100;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .move-list-option {
      padding: 6px 12px;
      font-size: 13px;
      cursor: pointer;
      white-space: nowrap;
    }
    .move-list-option:hover {
      background: var(--hover-bg);
    }
    .move-list-divider {
      height: 1px;
      background: var(--border);
      margin: 4px 0;
    }

    /* Add To Dropdown */
    .add-dropdown-wrapper {
      position: relative;
      display: inline-flex;
    }

    .add-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      margin-top: 4px;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
      min-width: 220px;
      z-index: 100;
      display: none;
    }
    .add-dropdown.visible { display: block; }

    .add-dropdown-header {
      padding: 8px 12px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      color: var(--text-dim);
      border-bottom: 1px solid var(--border);
    }

    .add-dropdown-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      cursor: pointer;
      font-size: 13px;
      transition: background 0.1s;
    }
    .add-dropdown-item:hover, .add-dropdown-item.focused { background: rgba(255,255,255,0.08); }
    .add-dropdown-item .icon { width: 18px; text-align: center; }
    .add-dropdown-item:last-child { border-radius: 0 0 8px 8px; }

    .add-dropdown-divider {
      height: 1px;
      background: var(--border);
      margin: 4px 0;
    }

    /* Move to List Dropdown - Global Floating */
    .move-dropdown-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 999;
      display: none;
    }
    .move-dropdown-overlay.visible { display: block; }
    .move-dropdown {
      position: fixed;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
      min-width: 200px;
      max-width: 280px;
      z-index: 1000;
      display: none;
      overflow: hidden;
    }
    .move-dropdown.visible { display: block; }
    .move-dropdown-search {
      padding: 8px;
      border-bottom: 1px solid var(--border);
    }
    .move-dropdown-search input {
      width: 100%;
      padding: 8px 10px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      font-size: 12px;
    }
    .move-dropdown-search input:focus {
      outline: none;
      border-color: var(--accent);
    }
    .move-dropdown-search input::placeholder {
      color: var(--text-dim);
    }
    .move-dropdown-list {
      max-height: 240px;
      overflow-y: auto;
    }
    .move-dropdown-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      cursor: pointer;
      font-size: 13px;
      transition: background 0.1s;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .move-dropdown-item:hover { background: rgba(255,255,255,0.08); }
    .move-dropdown-item.selected { background: var(--accent); color: #000; }
    .move-dropdown-item .list-icon { flex-shrink: 0; }
    .move-dropdown-item .list-name {
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .move-dropdown-empty {
      padding: 16px;
      text-align: center;
      color: var(--text-dim);
      font-size: 12px;
    }

    /* Shop Picker (inline dropdown for Add to Shop) */
    .shop-picker-dropdown {
      position: fixed;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 6px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.4);
      min-width: 160px;
      z-index: 1000;
      padding: 4px 0;
    }
    .shop-picker-item {
      padding: 8px 14px;
      font-size: 12px;
      color: var(--text);
      cursor: pointer;
      white-space: nowrap;
    }
    .shop-picker-item:hover { background: rgba(255,255,255,0.06); }
    .shop-picker-item.focused { background: var(--accent); color: #000; }

    /* ============ Detail Panel (Inline Row) ============ */
    @keyframes detailFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .watchlist-detail-panel {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      background: rgba(255, 255, 255, 0.03);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      animation: detailFadeIn 0.15s ease-out;
      font-size: 12px;
    }

    .detail-header-username {
      font-family: monospace;
      font-size: 13px;
      color: var(--accent);
      text-decoration: none;
      white-space: nowrap;
    }
    .detail-header-username:hover { text-decoration: underline; }

    .detail-header-price {
      color: var(--yellow);
      font-weight: 600;
      white-space: nowrap;
    }

    .detail-header-status {
      color: var(--text-dim);
      white-space: nowrap;
    }

    .detail-header-sep {
      color: var(--text-dim);
      opacity: 0.3;
    }

    .detail-sep {
      width: 1px;
      height: 20px;
      background: var(--border);
      flex-shrink: 0;
    }

    .detail-inline-label {
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .detail-inline-label span {
      font-size: 11px;
      color: var(--text-dim);
    }

    .detail-inline-label input[type="number"] {
      width: 80px;
      padding: 4px 8px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 5px;
      color: var(--text);
      font-size: 12px;
    }

    .detail-inline-label input[type="number"]:focus {
      outline: none;
      border-color: var(--accent);
    }

    .detail-inline-toggle {
      position: relative;
      width: 32px;
      height: 18px;
      cursor: pointer;
      flex-shrink: 0;
    }

    .detail-inline-toggle input {
      opacity: 0;
      width: 0;
      height: 0;
      position: absolute;
    }

    .detail-inline-toggle .toggle-slider {
      position: absolute;
      inset: 0;
      background: var(--border);
      border-radius: 9px;
      transition: background 0.2s;
    }

    .detail-inline-toggle .toggle-slider::before {
      content: '';
      position: absolute;
      width: 14px;
      height: 14px;
      left: 2px;
      bottom: 2px;
      background: var(--text);
      border-radius: 50%;
      transition: transform 0.2s;
    }

    .detail-inline-toggle input:checked + .toggle-slider {
      background: var(--accent);
    }

    .detail-inline-toggle input:checked + .toggle-slider::before {
      transform: translateX(14px);
    }

    .watchlist-detail-panel .btn-save-alert {
      padding: 4px 12px;
      background: var(--accent);
      color: #000;
      border: none;
      border-radius: 5px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: opacity 0.15s;
    }

    .watchlist-detail-panel .btn-save-alert:hover { opacity: 0.85; }
    .watchlist-detail-panel .btn-save-alert:disabled { opacity: 0.5; cursor: default; }

    .btn-close-detail {
      background: none;
      border: none;
      color: var(--text-dim);
      font-size: 16px;
      cursor: pointer;
      padding: 2px 6px;
      border-radius: 4px;
      line-height: 1;
      opacity: 0.5;
      transition: opacity 0.1s;
    }
    .btn-close-detail:hover { opacity: 1; }

    /* Responsive: stack on mobile */
    @media (max-width: 768px) {
      .watchlist-detail-panel {
        flex-wrap: wrap;
        gap: 8px;
      }
      .detail-inline-label input[type="number"] {
        width: 60px;
      }
    }

    /* Alerts table */
    .alerts-section-title {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-dim);
      padding: 12px 16px 6px;
    }

    .alert-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      border-radius: 4px;
      transition: background 0.1s;
    }
    .alert-row:hover { background: var(--card-bg); }

    .alert-row .alert-username {
      font-family: monospace;
      font-size: 13px;
      color: var(--text);
      min-width: 100px;
    }

    .alert-row .alert-type {
      font-size: 11px;
      color: var(--text-dim);
      flex: 1;
    }

    .alert-row .alert-price {
      font-size: 12px;
      color: var(--yellow);
      white-space: nowrap;
    }

    .alert-row .alert-time {
      font-size: 11px;
      color: var(--text-dim);
      white-space: nowrap;
    }

    .alert-row .alert-actions {
      display: flex;
      gap: 4px;
    }

    /* Expandable row highlight */
    .watchlist-table-row.expanded {
      background: var(--card-bg);
    }

