.v2-watchlist-page {
    width: 100%;
    min-width: 0;
}

.v2-watchlist-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.v2-watchlist-header h1 {
    margin: 0;
    color: #f1f4f8;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.v2-watchlist-header p {
    margin: 6px 0 0;
    color: #8994a3;
    font-size: 13px;
}

.v2-watchlist-freshness {
    color: #737d89;
    font-size: 11px;
    white-space: nowrap;
}

.v2-watchlist-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 160px));
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--v2-border);
    border-radius: 6px;
    background: #111720;
    margin-bottom: 12px;
}

.v2-watchlist-stat {
    min-width: 0;
    padding: 10px 14px;
    border-right: 1px solid var(--v2-border);
}

.v2-watchlist-stat:last-child {
    border-right: 0;
}

.v2-watchlist-stat span {
    display: block;
    color: #7f8a98;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.v2-watchlist-stat strong {
    display: block;
    margin-top: 4px;
    color: #edf1f6;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.v2-watchlist-stat:nth-child(2) strong {
    color: #55c98a;
}

.v2-watchlist-stat:nth-child(3) strong {
    color: #d8b84c;
}

.v2-watchlist-toolbar {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

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

.v2-wl-filter {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #8994a3;
    padding: 6px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.v2-wl-filter:hover {
    color: #cdd5df;
    background: #151c26;
}

.v2-wl-filter.is-active {
    color: #d9c8ff;
    border-color: #40325c;
    background: #211a31;
}

.v2-watchlist-count {
    color: #737d89;
    font-size: 11px;
}

.v2-watchlist-table-panel {
    overflow: hidden;
    border: 1px solid var(--v2-border);
    border-radius: 7px;
    background: var(--v2-bg-surface);
}

.v2-watchlist-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.v2-watchlist-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: var(--v2-font-body);
}

.v2-watchlist-table th {
    height: 34px;
    padding: 0 12px;
    border-bottom: 1px solid var(--v2-border);
    color: #707b89;
    font-size: var(--v2-font-label);
    font-weight: 650;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: nowrap;
}

.v2-watchlist-table th.is-number,
.v2-watchlist-table td.is-number {
    text-align: right;
}

.v2-watchlist-table th:nth-child(1) { width: 8%; }
.v2-watchlist-table th:nth-child(2) { width: 9%; }
.v2-watchlist-table th:nth-child(3) { width: 8%; }
.v2-watchlist-table th:nth-child(4) { width: 10%; }
.v2-watchlist-table th:nth-child(5) { width: 8%; }
.v2-watchlist-table th:nth-child(6) { width: 9%; }
.v2-watchlist-table th:nth-child(7) { width: 12%; }
.v2-watchlist-table th:nth-child(8) { width: 36%; }

.v2-watchlist-table td {
    height: 52px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--v2-border);
    color: #b9c2ce;
    vertical-align: middle;
}

.v2-watchlist-table tbody tr:last-child td {
    border-bottom: 0;
}

.v2-watchlist-table tbody tr:hover {
    background: var(--v2-bg-hover);
}

.v2-watchlist-symbol {
    color: #eef2f7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.v2-watchlist-symbol:hover {
    color: #b998ff;
}

.v2-watchlist-number {
    font-variant-numeric: tabular-nums;
}

.v2-watchlist-positive {
    color: #55c98a !important;
}

.v2-watchlist-negative {
    color: #e56d74 !important;
}

.v2-watchlist-neutral {
    color: #8994a3 !important;
}

.v2-watchlist-view {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid #303a47;
    border-radius: 4px;
    color: #aab4c1;
    background: #151c25;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .035em;
    white-space: nowrap;
}

.v2-watchlist-view.is-constructive {
    border-color: #28533e;
    color: #65d294;
    background: #14231d;
}

.v2-watchlist-view.is-watch {
    border-color: #554923;
    color: #d8b84c;
    background: #252116;
}

.v2-watchlist-detail {
    min-width: 0;
}

.v2-watchlist-detail-primary {
    overflow: hidden;
    color: #aab4c1;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.v2-watchlist-note {
    overflow: hidden;
    margin-top: 3px;
    color: #a978ff;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.v2-watchlist-loading,
.v2-watchlist-empty,
.v2-watchlist-error {
    height: 110px !important;
    color: #7f8a98 !important;
    text-align: center !important;
}

@media (max-width: 1100px) {
    .v2-watchlist-table {
        min-width: 940px;
    }
}

@media (max-width: 768px) {
    .v2-watchlist-header {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .v2-watchlist-header h1 {
        font-size: 21px;
    }

    .v2-watchlist-freshness {
        display: none;
    }

    .v2-watchlist-summary {
        grid-template-columns: repeat(4, minmax(78px, 1fr));
        overflow-x: auto;
    }

    .v2-watchlist-stat {
        padding: 11px 10px;
    }

    .v2-watchlist-stat span {
        font-size: 9px;
    }

    .v2-watchlist-stat strong {
        font-size: 17px;
    }

    .v2-watchlist-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .v2-watchlist-table {
        min-width: 0;
        table-layout: auto;
    }

    .v2-watchlist-table th,
    .v2-watchlist-table td {
        display: none;
    }

    .v2-watchlist-table th:nth-child(1),
    .v2-watchlist-table td:nth-child(1),
    .v2-watchlist-table th:nth-child(2),
    .v2-watchlist-table td:nth-child(2),
    .v2-watchlist-table th:nth-child(3),
    .v2-watchlist-table td:nth-child(3),
    .v2-watchlist-table th:nth-child(6),
    .v2-watchlist-table td:nth-child(6),
    .v2-watchlist-table th:nth-child(7),
    .v2-watchlist-table td:nth-child(7) {
        display: table-cell;
    }

    .v2-watchlist-table th,
    .v2-watchlist-table td {
        padding-left: 7px;
        padding-right: 7px;
    }

    .v2-watchlist-table th:nth-child(1) { width: 18%; }
    .v2-watchlist-table th:nth-child(2) { width: 21%; }
    .v2-watchlist-table th:nth-child(3) { width: 18%; }
    .v2-watchlist-table th:nth-child(6) { width: 20%; }
    .v2-watchlist-table th:nth-child(7) { width: 23%; }

    .v2-watchlist-table td {
        height: 48px;
    }
}

.v2-watchlist-header-status {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.v2-monitoring-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #2a3441;
    border-radius: 5px;
    background: #121922;
    color: #8994a3;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.v2-monitoring-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #737d89;
}

.v2-monitoring-status.is-enabled {
    border-color: #28533e;
    color: #72d69c;
    background: #13211b;
}

.v2-monitoring-status.is-enabled .v2-monitoring-dot {
    background: #55c98a;
}

.v2-monitoring-status.is-disabled {
    border-color: #554923;
    color: #d8b84c;
    background: #211e15;
}

.v2-monitoring-status.is-disabled .v2-monitoring-dot {
    background: #d8b84c;
}

@media (max-width: 768px) {
    .v2-watchlist-header-status {
        display: none;
    }
}

.v2-watchlist-summary {
    grid-template-columns: repeat(5, minmax(110px, 150px));
}

.v2-watchlist-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.v2-watchlist-search,
.v2-watchlist-sort {
    height: 32px;
    border: 1px solid #293341;
    border-radius: 5px;
    background: #111821;
    color: #c2cad5;
    font: inherit;
    font-size: 11px;
    outline: none;
}

.v2-watchlist-search {
    width: 190px;
    padding: 0 10px;
}

.v2-watchlist-sort {
    width: 130px;
    padding: 0 8px;
}

.v2-watchlist-count {
    margin: -2px 0 8px;
    text-align: right;
}

.v2-watchlist-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 12px;
    align-items: start;
}

.v2-watchlist-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-watchlist-side-panel {
    border: 1px solid var(--v2-border);
    border-radius: 7px;
    background: var(--v2-bg-surface);
    padding: 12px;
}

.v2-watchlist-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.v2-watchlist-side-head h2 {
    margin: 0;
    color: #d9e0e8;
    font-size: 13px;
    font-weight: 700;
}

#v2-alerts-count-badge {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #554923;
    border-radius: 11px;
    color: #d8b84c;
    background: #211e15;
    font-size: 10px;
    font-weight: 700;
}

.v2-active-alert {
    padding: 9px 0;
    border-top: 1px solid var(--v2-border);
}

.v2-active-alert:first-child {
    border-top: 0;
    padding-top: 0;
}

.v2-active-alert-symbol {
    color: #edf2f7;
    font-size: 12px;
    font-weight: 700;
}

.v2-active-alert-rule {
    margin-top: 3px;
    color: #8792a0;
    font-size: 10px;
}

.v2-active-alert-status {
    margin-top: 4px;
    color: #55c98a;
    font-size: 10px;
    font-weight: 650;
}

.v2-watchlist-side-copy {
    margin: 0;
    color: #8f9aa8;
    font-size: 11px;
    line-height: 1.45;
}

.v2-watchlist-side-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #55c98a;
    font-size: 10px;
    font-weight: 650;
}

.v2-watchlist-table th:nth-child(8) {
    width: 24%;
}

.v2-watchlist-table th:nth-child(9) {
    width: 9%;
}

.v2-watchlist-table th:nth-child(10) {
    width: 4%;
}

.v2-watchlist-row-menu {
    border: 0;
    background: transparent;
    color: #7f8a98;
    font-size: 16px;
    cursor: default;
    padding: 2px 4px;
}

@media (max-width: 1180px) {
    .v2-watchlist-workspace {
        grid-template-columns: 1fr;
    }

    .v2-watchlist-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================
   Watchlist desktop actions
   ========================================================== */

.v2-watchlist-add-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-watchlist-add-toggle,
.v2-watchlist-add-submit,
.v2-watchlist-action-primary,
.v2-watchlist-action-secondary,
.v2-watchlist-action-danger {
    height: 32px;
    border-radius: 4px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.v2-watchlist-add-toggle {
    padding: 0 11px;
    border: 1px solid rgba(132, 95, 246, 0.55);
    background: rgba(132, 95, 246, 0.10);
    color: #b9a3ff;
    white-space: nowrap;
}

.v2-watchlist-add-toggle:hover,
.v2-watchlist-add-toggle[aria-expanded="true"] {
    border-color: rgba(132, 95, 246, 0.82);
    background: rgba(132, 95, 246, 0.17);
    color: #d3c6ff;
}

.v2-watchlist-add-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-watchlist-add-form[hidden] {
    display: none;
}

.v2-watchlist-add-symbol {
    width: 92px;
    height: 32px;
    box-sizing: border-box;
    border: 1px solid #27313d;
    border-radius: 4px;
    background: #111820;
    color: #e7ebf0;
    padding: 0 9px;
    outline: none;
    font: inherit;
    font-size: 12px;
    text-transform: uppercase;
}

.v2-watchlist-add-symbol:focus {
    border-color: rgba(132, 95, 246, 0.72);
}

.v2-watchlist-add-submit {
    padding: 0 10px;
    border: 1px solid rgba(132, 95, 246, 0.58);
    background: #6f52d9;
    color: #ffffff;
}

.v2-watchlist-add-submit:hover {
    background: #7c5ce7;
}

.v2-watchlist-action-status {
    min-height: 17px;
    margin-top: 5px;
    font-size: 11px;
    line-height: 17px;
    color: #7f8a98;
}

.v2-watchlist-action-status.is-success {
    color: #53b987;
}

.v2-watchlist-action-status.is-error {
    color: #e07b7b;
}

.v2-watchlist-table td:last-child {
    position: relative;
}

.v2-watchlist-row-menu {
    border: 0;
    background: transparent;
    color: #8c97a5;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
}

.v2-watchlist-row-menu:hover,
.v2-watchlist-row-menu[aria-expanded="true"] {
    background: var(--v2-bg-hover);
    color: #d5dbe3;
}

.v2-watchlist-action-popover {
    position: absolute;
    z-index: 40;
    top: calc(50% + 13px);
    right: 6px;
    width: 178px;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid #283441;
    border-radius: 5px;
    background: #111820;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    text-align: left;
}

.v2-watchlist-action-item {
    display: block;
    width: 100%;
    min-height: 30px;
    padding: 6px 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #d6dce4;
    text-align: left;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.v2-watchlist-action-item:hover {
    background: var(--v2-bg-hover);
}

.v2-watchlist-action-item.is-danger {
    color: #df8585;
}

.v2-watchlist-action-item.is-danger:hover {
    background: rgba(190, 70, 70, 0.10);
}

.v2-watchlist-action-separator {
    height: 1px;
    margin: 4px 3px;
    background: #27313d;
}

.v2-watchlist-action-popover.is-note-editor {
    width: 250px;
    padding: 9px;
}

.v2-watchlist-action-popover.is-remove-confirm {
    width: 220px;
    padding: 10px;
}

.v2-watchlist-action-heading {
    margin-bottom: 7px;
    color: #9fa9b5;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.v2-watchlist-note-editor {
    display: block;
    width: 100%;
    min-height: 68px;
    resize: vertical;
    box-sizing: border-box;
    border: 1px solid #2a3542;
    border-radius: 4px;
    background: #0d141b;
    color: #e2e7ed;
    padding: 7px 8px;
    outline: none;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
}

.v2-watchlist-note-editor:focus {
    border-color: rgba(132, 95, 246, 0.72);
}

.v2-watchlist-action-footer {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.v2-watchlist-action-primary,
.v2-watchlist-action-secondary,
.v2-watchlist-action-danger {
    height: 28px;
    padding: 0 9px;
    font-size: 11px;
}

.v2-watchlist-action-primary {
    border: 1px solid rgba(132, 95, 246, 0.62);
    background: #6f52d9;
    color: #ffffff;
}

.v2-watchlist-action-secondary {
    border: 1px solid var(--v2-border-strong);
    background: #151d26;
    color: #adb6c1;
}

.v2-watchlist-action-danger {
    border: 1px solid rgba(202, 80, 80, 0.52);
    background: rgba(170, 54, 54, 0.16);
    color: #ef9b9b;
}

.v2-watchlist-remove-copy {
    color: #c9d0d9;
    font-size: 12px;
    line-height: 1.45;
}

.v2-watchlist-remove-copy strong {
    color: #ffffff;
}

.v2-watchlist-add-submit:disabled,
.v2-watchlist-action-primary:disabled,
.v2-watchlist-action-danger:disabled {
    opacity: 0.55;
    cursor: default;
}


/* ==========================================================
   Watchlist desktop price alert actions
   ========================================================== */

.v2-watchlist-action-popover.is-price-alert-editor {
    width: 260px;
    padding: 9px;
}

.v2-watchlist-price-alert-fields {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 6px;
}

.v2-watchlist-price-alert-direction,
.v2-watchlist-price-alert-target {
    width: 100%;
    height: 32px;
    box-sizing: border-box;
    border: 1px solid #2a3542;
    border-radius: 4px;
    background: #0d141b;
    color: #e2e7ed;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.v2-watchlist-price-alert-direction {
    padding: 0 7px;
}

.v2-watchlist-price-alert-target {
    padding: 0 8px;
}

.v2-watchlist-price-alert-direction:focus,
.v2-watchlist-price-alert-target:focus {
    border-color: rgba(132, 95, 246, 0.72);
}

.v2-active-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.v2-active-alert-main {
    min-width: 0;
}

.v2-active-alert-cancel {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid var(--v2-border-strong);
    border-radius: 3px;
    background: #151d26;
    color: #8f9aa8;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.v2-active-alert-cancel:hover {
    border-color: rgba(202, 80, 80, 0.48);
    background: rgba(170, 54, 54, 0.10);
    color: #df8585;
}

.v2-active-alert-cancel:disabled {
    opacity: 0.55;
    cursor: default;
}

/* Guest account CTA */
.v2-guest-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid #403661;
    background: var(--v2-bg-surface);
}

.v2-guest-cta-copy {
    min-width: 0;
}

.v2-guest-cta-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--v2-accent-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.v2-guest-cta h2 {
    margin: 0 0 5px;
    color: var(--v2-text-primary);
    font-size: 16px;
    font-weight: 650;
}

.v2-guest-cta p {
    max-width: 720px;
    margin: 0;
    color: var(--v2-text-secondary);
    font-size: 12px;
    line-height: 1.55;
}

.v2-guest-cta-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.v2-guest-cta-primary,
.v2-guest-cta-secondary {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.v2-guest-cta-primary {
    border: 1px solid var(--v2-accent);
    background: var(--v2-accent);
    color: #fff;
}

.v2-guest-cta-secondary {
    border: 1px solid var(--v2-border);
    background: var(--v2-bg-elevated);
    color: var(--v2-text-primary);
}

.v2-guest-cta-primary:hover {
    background: var(--v2-accent-soft);
    border-color: var(--v2-accent-soft);
}

.v2-guest-cta-secondary:hover {
    border-color: #4a586b;
    background: var(--v2-bg-hover);
}

@media (max-width: 768px) {
    .v2-guest-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .v2-guest-cta-actions {
        width: 100%;
    }

    .v2-guest-cta-primary,
    .v2-guest-cta-secondary {
        flex: 1 1 0;
    }
}
