:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, #17213b 0, transparent 38%),
        #070a11;
    color: #f5f7fb;
}

.shell {
    width: min(1050px, calc(100% - 36px));
    margin: 0 auto;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.18em;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: #8293b1;
    font-size: 10px;
    letter-spacing: 0.16em;
}

.card {
    max-width: 560px;
    margin: 70px auto;
    padding: 34px;
    border: 1px solid #1d2941;
    border-radius: 22px;
    background: rgba(13, 20, 34, 0.9);
}

h1 {
    margin: 0 0 10px;
    font-size: 38px;
}

.subtitle {
    margin: 0 0 28px;
    color: #8fa0bd;
    line-height: 1.55;
}

.form-grid {
    display: grid;
    gap: 15px;
}

label {
    display: grid;
    gap: 7px;
    color: #b8c4d9;
    font-size: 13px;
}

input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #293a59;
    border-radius: 10px;
    background: #0c1525;
    color: #f3f7ff;
    font: inherit;
}

button,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid #425e89;
    border-radius: 10px;
    background: #192c49;
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.secondary {
    background: transparent;
    border-color: #283955;
    color: #c4cee0;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.message {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #111d30;
    color: #c9d5e9;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.metric {
    padding: 18px;
    border: 1px solid #202f49;
    border-radius: 14px;
    background: #0c1525;
}

.metric span {
    display: block;
    color: #7f90ae;
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 7px;
}

.status-ok {
    color: #73d8a5;
}

@media (max-width: 650px) {
    .card {
        margin-top: 35px;
        padding: 24px;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }
}

.password-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.password-toggle {
    min-width: 72px;
    padding: 8px 12px;
    background: transparent;
    border-color: #334766;
    font-size: 13px;
}

.password-rule {
    margin: -5px 0 2px;
    color: #7f90ae;
    font-size: 12px;
    line-height: 1.5;
}

.subscription-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #1f2d46;
}

.subscription-section h2 {
    margin: 0 0 16px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.plan-card {
    padding: 20px;
    border: 1px solid #243654;
    border-radius: 14px;
    background: #0c1525;
}

.plan-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.plan-interval {
    margin: 0 0 16px;
    color: #8394b3;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.plan-status {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid #334866;
    border-radius: 999px;
    color: #aab6ca;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

@media (max-width: 760px) {
    .plan-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   TEEWAI SUBSCRIBER NOTIFICATION CENTER
   ========================================================== */

.notification-nav {
    margin-left: auto;
}

.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: inherit;
    font-size: 20px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.notification-summary-section {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
}

.notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notification-settings-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.notification-setting {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}

.notification-setting span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.notification-status {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
}

.notification-panel {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: -430px;
    width: min(410px, 94vw);
    height: 100vh;
    padding: 20px;
    background: #0b1220;
    border-left: 1px solid rgba(255,255,255,.12);
    box-shadow: -12px 0 40px rgba(0,0,0,.35);
    transition: right .2s ease;
    overflow-y: auto;
}

.notification-panel.open {
    right: 0;
}

.notification-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.notification-panel-header strong {
    display: block;
}

.notification-panel-header small {
    display: block;
    margin-top: 4px;
    opacity: .7;
}

.notification-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 30px;
    cursor: pointer;
}

.notification-panel-actions {
    margin: 18px 0;
}

.notification-list {
    display: grid;
    gap: 9px;
}

.notification-item {
    display: grid;
    width: 100%;
    gap: 5px;
    padding: 14px;
    text-align: left;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: inherit;
    cursor: pointer;
}

.notification-item.unread {
    border-color: rgba(59,130,246,.55);
    background: rgba(59,130,246,.10);
}

.notification-item span {
    font-size: 12px;
    font-weight: 700;
}

.notification-item small {
    opacity: .78;
}

.notification-item time {
    margin-top: 3px;
    font-size: 10px;
    opacity: .55;
}

.live-alert-toast {
    position: fixed;
    z-index: 1100;
    right: 24px;
    bottom: 24px;
    width: min(380px, calc(100vw - 48px));
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(59,130,246,.55);
    background: #101a2d;
    box-shadow: 0 14px 40px rgba(0,0,0,.38);
}

.live-alert-toast strong,
.live-alert-toast span {
    display: block;
}

.live-alert-toast span {
    margin-top: 6px;
    opacity: .82;
}

.secondary-button {
    cursor: pointer;
}

@media (max-width: 720px) {
    .notification-settings-grid {
        grid-template-columns: 1fr;
    }

    .notification-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .live-alert-toast {
        right: 14px;
        bottom: 14px;
        width: calc(100vw - 28px);
    }
}


/* ==========================================================
   ALERT-011G — SUBSCRIBER SIGNAL DASHBOARD
   ========================================================== */

.dashboard-card {
    width: min(1450px, calc(100vw - 40px));
}

.dashboard-title-row,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-nav-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.dashboard-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,.7);
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.dashboard-workspace {
    display: grid;
    grid-template-columns:
        minmax(330px, .8fr)
        minmax(500px, 1.6fr);
    gap: 18px;
}

.signal-panel,
.live-market-panel {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}

.signal-list {
    display: grid;
    gap: 10px;
    max-height: 720px;
    overflow-y: auto;
}

.signal-card {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.035);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.signal-card:hover {
    border-color: rgba(59,130,246,.6);
}

.signal-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.signal-card-grid,
.signal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 12px;
}

.signal-card-grid span,
.signal-detail-grid span {
    opacity: .65;
}

.signal-win {
    border-left: 4px solid #22c55e;
}

.signal-loss {
    border-left: 4px solid #ef4444;
}

.signal-breakeven {
    border-left: 4px solid #f59e0b;
}

.signal-open {
    border-left: 4px solid #3b82f6;
}

.live-chart-container {
    width: 100%;
    height: 560px;
    overflow: hidden;
    border-radius: 12px;
    background: #080d17;
}

.live-market-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.chart-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    opacity: .55;
}

.selected-signal-details {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}

@media (max-width: 1050px) {
    .dashboard-summary-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .dashboard-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .dashboard-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-nav-actions {
        flex-wrap: wrap;
    }

    .live-chart-container {
        height: 430px;
    }
}

/* ============================================================
   ALERT-011H4
   TEEWAI Subscriber Dashboard — Signal Card Polish

   Presentation-only.
   Prevent horizontal overflow and keep subscriber signal
   information readable without altering lifecycle data.
   ============================================================ */

.dashboard-workspace {
    grid-template-columns:
        minmax(390px, .9fr)
        minmax(0, 1.6fr);
}

.signal-panel {
    min-width: 0;
}

.signal-list {
    min-width: 0;
    overflow-x: hidden;
}

.signal-card {
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    padding: 14px 16px;
}

.signal-card-top {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.signal-card-top strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signal-card-top span {
    white-space: nowrap;
}

.signal-card-grid {
    display: grid;
    grid-template-columns:
        minmax(72px, .7fr)
        minmax(0, 1fr);
    gap: 6px 14px;
    width: 100%;
    min-width: 0;
    font-size: 12px;
}

.signal-card-grid span {
    min-width: 0;
    opacity: .65;
    white-space: nowrap;
}

.signal-card-grid strong {
    min-width: 0;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-market-panel {
    min-width: 0;
}

@media (max-width: 1180px) {
    .dashboard-workspace {
        grid-template-columns:
            minmax(350px, .9fr)
            minmax(0, 1.5fr);
    }
}

@media (max-width: 1050px) {
    .dashboard-workspace {
        grid-template-columns: 1fr;
    }

    .signal-list {
        max-height: 520px;
    }
}


/* ============================================================
   ALERT-011H4 REV2
   Dashboard Workspace Width Correction
   Presentation only.
   ============================================================ */

.dashboard-workspace {
    display: grid;

    /*
     * Alerts receive a controlled readable column.
     * Live Market owns the remaining workspace.
     */
    grid-template-columns:
        minmax(360px, 420px)
        minmax(600px, 1fr);

    gap: 18px;
    width: 100%;
    min-width: 0;
}

.signal-panel,
.live-market-panel {
    min-width: 0;
}

.signal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.signal-card-top strong {
    /*
     * Market symbol remains readable instead of
     * collapsing prematurely to BINA...
     */
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 13px;
}

.signal-card-top span {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
}

.signal-card-grid {
    grid-template-columns:
        minmax(70px, .8fr)
        minmax(90px, 1fr);
}

.live-chart-container {
    width: 100%;
    min-width: 0;
}

/*
 * Only stack the panels when the viewport genuinely
 * cannot support the production two-column workspace.
 */
@media (max-width: 1100px) {
    .dashboard-workspace {
        grid-template-columns: 1fr;
    }

    .live-market-panel {
        width: 100%;
    }
}


/* ============================================================
   ALERT-011H4 REV3
   Dashboard containment + alert-card readability
   ============================================================ */

/*
 * Prevent the dashboard grid from forcing the document
 * wider than its parent.
 */
.dashboard-workspace {
    grid-template-columns:
        minmax(0, 420px)
        minmax(0, 1fr);

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.signal-panel,
.live-market-panel,
.signal-list,
.live-chart-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/*
 * Cards must remain entirely inside the alert panel.
 */
.signal-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/*
 * Give the market/direction header its own clean row.
 */
.signal-card-top {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.signal-card-top strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signal-card-top span {
    white-space: nowrap;
}

/*
 * Metadata values get enough room without expanding
 * the physical card.
 */
.signal-card-grid {
    display: grid;
    grid-template-columns:
        minmax(70px, .75fr)
        minmax(0, 1.25fr);
    column-gap: 10px;
    row-gap: 6px;
    width: 100%;
    min-width: 0;
}

.signal-card-grid strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

/*
 * Nothing inside the production dashboard may create
 * document-level horizontal scrolling.
 */
.dashboard-page,
.dashboard-shell,
.dashboard-container,
.dashboard-workspace {
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1100px) {
    .dashboard-workspace {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   ALERT-011H4 REV4
   TEEWAI Dashboard Root Layout Authority

   Resolves:
   - 1050px shell constraint
   - collapsed Live Market panel
   - summary metric compression
   - workspace overflow

   Presentation only.
   ============================================================ */

/*
 * dashboard-card is allowed to escape the normal 1050px
 * subscriber shell while remaining centred in the viewport.
 *
 * Other portal pages retain the standard shell width.
 */
.dashboard-card {
    width: min(1450px, calc(100vw - 48px));
    max-width: none;

    position: relative;
    left: 50%;
    transform: translateX(-50%);

    margin-left: 0;
    margin-right: 0;
}

/*
 * Six equal production metrics.
 * Each cell may shrink internally without forcing overflow.
 */
.dashboard-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 12px;
    width: 100%;
    min-width: 0;
}

.dashboard-summary-grid .metric {
    min-width: 0;
    width: 100%;
}

.dashboard-summary-grid .metric strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/*
 * Final desktop workspace authority.
 *
 * My Alerts remains large enough for complete signal metadata.
 * Live Market receives the majority of dashboard width.
 */
.dashboard-workspace {
    display: grid;

    grid-template-columns:
        minmax(390px, 430px)
        minmax(0, 1fr);

    gap: 18px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.signal-panel,
.live-market-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/*
 * Preserve the corrected Rev3 signal-card containment.
 */
.signal-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.signal-card-top {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 12px;
    min-width: 0;
}

.signal-card-grid {
    grid-template-columns:
        minmax(70px, .75fr)
        minmax(0, 1.25fr);

    width: 100%;
    min-width: 0;
}

.signal-card-grid strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

/*
 * Chart owns the available Live Market width.
 */
.live-chart-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/*
 * Responsive production breakpoints.
 */
@media (max-width: 1180px) {
    .dashboard-card {
        width: calc(100vw - 32px);
    }

    .dashboard-workspace {
        grid-template-columns:
            minmax(350px, 400px)
            minmax(0, 1fr);
    }

    .dashboard-summary-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-card {
        width: calc(100vw - 24px);
    }

    .dashboard-workspace {
        grid-template-columns: 1fr;
    }

    .dashboard-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   ALERT-011H4 REV4
   TEEWAI Dashboard Root Layout Authority

   Resolves:
   - 1050px shell constraint
   - collapsed Live Market panel
   - summary metric compression
   - workspace overflow

   Presentation only.
   ============================================================ */

/*
 * dashboard-card is allowed to escape the normal 1050px
 * subscriber shell while remaining centred in the viewport.
 *
 * Other portal pages retain the standard shell width.
 */
.dashboard-card {
    width: min(1450px, calc(100vw - 48px));
    max-width: none;

    position: relative;
    left: 50%;
    transform: translateX(-50%);

    margin-left: 0;
    margin-right: 0;
}

/*
 * Six equal production metrics.
 * Each cell may shrink internally without forcing overflow.
 */
.dashboard-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 12px;
    width: 100%;
    min-width: 0;
}

.dashboard-summary-grid .metric {
    min-width: 0;
    width: 100%;
}

.dashboard-summary-grid .metric strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/*
 * Final desktop workspace authority.
 *
 * My Alerts remains large enough for complete signal metadata.
 * Live Market receives the majority of dashboard width.
 */
.dashboard-workspace {
    display: grid;

    grid-template-columns:
        minmax(390px, 430px)
        minmax(0, 1fr);

    gap: 18px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.signal-panel,
.live-market-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/*
 * Preserve the corrected Rev3 signal-card containment.
 */
.signal-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.signal-card-top {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 12px;
    min-width: 0;
}

.signal-card-grid {
    grid-template-columns:
        minmax(70px, .75fr)
        minmax(0, 1.25fr);

    width: 100%;
    min-width: 0;
}

.signal-card-grid strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

/*
 * Chart owns the available Live Market width.
 */
.live-chart-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/*
 * Responsive production breakpoints.
 */
@media (max-width: 1180px) {
    .dashboard-card {
        width: calc(100vw - 32px);
    }

    .dashboard-workspace {
        grid-template-columns:
            minmax(350px, 400px)
            minmax(0, 1fr);
    }

    .dashboard-summary-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-card {
        width: calc(100vw - 24px);
    }

    .dashboard-workspace {
        grid-template-columns: 1fr;
    }

    .dashboard-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}



/* TEEWAI Live Market timeframe selector */
.chart-timeframe-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chart-timeframe-selector button {
    min-width: 38px;
    padding: 6px 9px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.72);
    color: #94a3b8;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.chart-timeframe-selector button:hover {
    border-color: rgba(56, 189, 248, 0.55);
    color: #e2e8f0;
}

.chart-timeframe-selector button.active {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.16);
    color: #e0f2fe;
}



/* TEEWAI Live Market price + timeframe toolbar */
.live-market-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.live-market-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.live-market-price-symbol {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.live-market-price-value {
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.live-market-price-value[data-direction="up"] {
    color: #22c55e;
}

.live-market-price-value[data-direction="down"] {
    color: #ef4444;
}

.live-market-price-value[data-direction="flat"] {
    color: #e2e8f0;
}



/* Live Market chart theme selector */
.chart-theme-selector {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chart-theme-selector button {
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.72);
    color: #94a3b8;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.chart-theme-selector button:hover {
    border-color: rgba(56, 189, 248, 0.55);
    color: #e2e8f0;
}

.chart-theme-selector button.active {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.16);
    color: #e0f2fe;
}



/* Subscriber-selected Live Market control */
.live-market-selector-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.live-market-selector-wrap label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.live-market-selector {
    min-width: 145px;
    padding: 6px 9px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.live-market-selector:focus {
    outline: none;
    border-color: #38bdf8;
}

.live-market-selector:disabled {
    cursor: default;
    opacity: 0.65;
}


/* ============================================================
 * My Markets Active Signal Board — final production polish
 * ============================================================ */

.signal-card {
    padding: 18px 20px;
}

.signal-card-top {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        max-content;

    align-items: start;
    column-gap: 18px;
    row-gap: 6px;
    width: 100%;
}

.signal-card-top strong {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.signal-card-top span {
    justify-self: end;
    align-self: start;

    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.signal-card-grid {
    display: grid;
    grid-template-columns:
        minmax(90px, .8fr)
        minmax(0, 1.2fr);

    column-gap: 18px;
    row-gap: 8px;

    margin-top: 14px;
    width: 100%;
}

.signal-card-grid span {
    min-width: 0;
    text-align: left;
}

.signal-card-grid strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

/*
 * Waiting cards need more room for the full TradingView symbol.
 */
.signal-card:not(.signal-open):not(.signal-win):not(.signal-loss):not(.signal-breakeven)
.signal-card-grid {
    grid-template-columns:
        minmax(76px, .6fr)
        minmax(0, 1.4fr);
}

/*
 * Prevent narrow dashboard widths from collapsing the signal board.
 */
@media (max-width: 1180px) {
    .signal-card {
        padding: 16px;
    }

    .signal-card-top {
        grid-template-columns:
            minmax(0, 1fr)
            max-content;
    }

    .signal-card-grid {
        grid-template-columns:
            minmax(82px, .75fr)
            minmax(0, 1.25fr);
    }
}


/* ============================================================
 * TSME Smart Money Engine — chart watermark
 * Presentation only. No chart interaction.
 * ============================================================ */

.live-chart-stage {
    position: relative;
    width: 100%;
    min-width: 0;
}

.live-chart-stage .live-chart-container {
    position: relative;
    z-index: 1;
}

.tsme-chart-watermark {
    position: absolute;
    left: 18px;
    bottom: 20px;

    width: 76px;
    height: 76px;

    background-image:
        url("/v2/static/branding/tsme-watermark-dark.svg");

    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    display: block;
    visibility: visible;

    pointer-events: none;
    user-select: none;

    z-index: 2;

    opacity: .20;

    transition:
        opacity .2s ease,
        filter .2s ease;
}

.live-chart-stage.chart-theme-dark
.tsme-chart-watermark {
    background-image:
        url("/v2/static/branding/tsme-watermark-dark.svg");

    opacity: .28;
}

.live-chart-stage.chart-theme-light
.tsme-chart-watermark {
    background-image:
        url("/v2/static/branding/tsme-watermark-light.svg");

    opacity: .16;
}

@media (max-width: 900px) {
    .tsme-chart-watermark {
        width: 62px;
        height: 62px;
        left: 14px;
        bottom: 16px;
    }
}

/* ============================================================
   TEEWAI SME — Subscriber Event Notification Preferences
   ============================================================ */

.notification-event-preferences {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.notification-event-group {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px;
    background: rgba(15, 23, 42, .34);
}

.notification-event-group h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.notification-event-group .subtitle {
    margin: 0 0 14px;
}

.notification-event-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
}

.notification-event-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
}

.notification-event-grid input {
    flex: 0 0 auto;
}

.notification-event-grid span {
    font-size: 13px;
}

@media (max-width: 680px) {
    .notification-event-preferences {
        grid-template-columns: 1fr;
    }

    .notification-event-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   TEEWAI SME — Notification Preference Layout REV2
   ============================================================ */

.notification-event-preferences {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.notification-event-group {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px;
    background: rgba(15, 23, 42, .28);
}

.notification-event-group h3 {
    margin: 0 0 6px;
}

.notification-event-group .subtitle {
    margin: 0 0 16px;
    line-height: 1.5;
}

.notification-event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.notification-event-grid label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    min-width: 0;

    margin: 0 !important;
    padding: 10px 12px !important;

    box-sizing: border-box;

    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 8px;

    background: rgba(15, 23, 42, .22);

    cursor: pointer;
}

.notification-event-grid label span {
    display: block;
    margin: 0 !important;
    padding: 0 !important;

    font-size: 13px;
    line-height: 1.3;
}

.notification-event-grid label input[type="checkbox"] {
    position: static !important;

    display: block !important;
    flex: 0 0 auto;

    width: 17px !important;
    height: 17px !important;

    margin: 0 0 0 14px !important;
    padding: 0 !important;

    transform: none !important;
}

@media (max-width: 760px) {
    .notification-event-preferences {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   TEEWAI SME — Notification Event Alignment FINAL
   Final authority over generic label/input form rules.
   ============================================================ */

.notification-event-group .notification-event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
}

.notification-event-group .notification-event-grid > label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-width: 0;

    padding: 10px 0;
    margin: 0;

    gap: 20px;

    cursor: pointer;
}

.notification-event-group .notification-event-grid > label > span {
    display: block;
    flex: 1 1 auto;

    margin: 0;
    padding: 0;

    font-size: 13px;
    line-height: 1.4;
}

.notification-event-group
.notification-event-grid
> label
> input[type="checkbox"] {
    display: block;

    flex: 0 0 auto;

    width: 18px !important;
    height: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 4px;

    cursor: pointer;
}

@media (max-width: 680px) {
    .notification-event-group .notification-event-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   TEEWAI SUBSCRIBER UX V2 — PRODUCTION AUTHORITY
   ========================================================= */

body.auth-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #eef8f5;
    background:
        radial-gradient(
            circle at 4% 8%,
            rgba(21, 222, 173, 0.17),
            transparent 28%
        ),
        radial-gradient(
            circle at 76% 28%,
            rgba(7, 93, 76, 0.10),
            transparent 32%
        ),
        #020706;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.auth-page * {
    box-sizing: border-box;
}

.auth-shell {
    min-height: 100vh;
    position: relative;
}

/* ---------- top navigation ---------- */

.auth-nav {
    position: relative;
    z-index: 10;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 5.2vw;
    border-bottom:
        1px solid rgba(89, 222, 185, 0.12);
    background:
        rgba(2, 8, 7, 0.88);
    backdrop-filter: blur(20px);
}

.auth-logo {
    width: 300px;
    height: 72px;
    display: block;
    overflow: hidden;
    position: relative;
}

/*
 * The approved source PNG contains the guideline caption
 * "PRIMARY LOGO" above the actual mark. The viewport below
 * crops that caption without modifying the source asset.
 */
.auth-logo img {
    width: 300px;
    height: auto;
    display: block;
    transform:
        translateY(-14px);
    transform-origin:
        left top;
}

.auth-nav-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border:
        1px solid rgba(46, 224, 178, 0.48);
    border-radius: 11px;
    color: #f2faf7;
    background:
        rgba(8, 28, 23, 0.50);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 850;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.auth-nav-link:hover {
    transform:
        translateY(-1px);
    border-color:
        #55e3bd;
    background:
        rgba(38, 184, 145, 0.08);
}

/* ---------- desktop composition ---------- */

.auth-layout {
    position: relative;
    min-height:
        calc(100vh - 92px);
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(500px, 0.92fr);
}

.auth-layout::before {
    content: "";
    position: absolute;
    inset: 0 43% 0 0;
    pointer-events: none;
    opacity: 0.15;
    background-image:
        repeating-radial-gradient(
            circle at 62% 44%,
            rgba(54, 220, 177, 0.38) 0,
            rgba(54, 220, 177, 0.38) 1px,
            transparent 1px,
            transparent 52px
        );
    mask-image:
        linear-gradient(
            to right,
            transparent,
            black 18%,
            black 75%,
            transparent
        );
}

/* teal data-wave treatment; CSS only */
.auth-layout::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: -12%;
    bottom: -210px;
    width: 72%;
    height: 430px;
    border-radius: 50%;
    pointer-events: none;
    transform:
        rotate(8deg);
    background:
        repeating-linear-gradient(
            168deg,
            rgba(32, 232, 180, 0.00) 0,
            rgba(32, 232, 180, 0.00) 16px,
            rgba(32, 232, 180, 0.13) 17px,
            rgba(32, 232, 180, 0.00) 19px
        );
    box-shadow:
        0 -70px 150px
        rgba(17, 215, 165, 0.10);
    filter:
        blur(0.1px);
}

.auth-intro {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:
        68px 6.8vw 78px 6.4vw;
    border-right:
        1px solid rgba(255,255,255,0.055);
}

.auth-eyebrow,
.auth-card-kicker {
    color: #42dfb5;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.20em;
}

.auth-intro h1 {
    max-width: 760px;
    margin:
        20px 0 25px;
    color: #f5faf8;
    font-size:
        clamp(3.25rem, 5vw, 5.35rem);
    line-height: 0.98;
    letter-spacing: -0.058em;
}

.auth-intro p {
    max-width: 650px;
    margin: 0;
    color: #9aafa8;
    font-size: 1.02rem;
    line-height: 1.72;
}

/* ---------- feature rail ---------- */

.auth-feature-grid {
    width: min(100%, 720px);
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    margin-top: 42px;
    overflow: hidden;
    border:
        1px solid rgba(67, 226, 184, 0.15);
    border-radius: 14px;
    background:
        rgba(1, 11, 9, 0.67);
    box-shadow:
        0 22px 60px
        rgba(0,0,0,0.18);
}

.auth-feature {
    min-width: 0;
    min-height: 122px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 17px;
    border-right:
        1px solid rgba(72, 218, 179, 0.12);
}

.auth-feature:last-child {
    border-right: 0;
}

.auth-feature b {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border:
        1px solid rgba(62, 231, 187, 0.24);
    border-radius: 50%;
    color: #50e3ba;
    background:
        rgba(33, 182, 143, 0.08);
    font-size: 0.63rem;
}

.auth-feature strong {
    color: #f0f7f4;
    font-size: 0.76rem;
    letter-spacing: 0.035em;
}

.auth-feature span {
    margin-top: 5px;
    color: #799089;
    font-size: 0.66rem;
    line-height: 1.4;
}

.auth-engine-signature {
    width: min(100%, 360px);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 38px;
    color: #48d8b1;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.23em;
}

.auth-engine-signature span {
    flex: 1;
    height: 1px;
    background:
        rgba(72, 216, 177, 0.40);
}

/* ---------- auth card ---------- */

.auth-card {
    position: relative;
    z-index: 3;
    width:
        min(calc(100% - 64px), 610px);
    align-self: center;
    justify-self: center;
    margin:
        48px 32px;
    padding:
        clamp(34px, 4vw, 48px);
    overflow: hidden;
    border:
        1px solid rgba(64, 221, 181, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(35, 188, 148, 0.08),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(8, 29, 24, 0.96),
            rgba(3, 14, 12, 0.98)
        );
    box-shadow:
        0 36px 110px rgba(0,0,0,0.36),
        inset 0 1px 0 rgba(255,255,255,0.025);
}

.auth-card::after {
    content: "";
    position: absolute;
    top: 22%;
    right: -110px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background:
        rgba(41, 217, 171, 0.10);
    filter:
        blur(70px);
    pointer-events: none;
}

.auth-card-kicker {
    position: relative;
    z-index: 1;
}

.auth-card h2 {
    position: relative;
    z-index: 1;
    margin:
        16px 0 0;
    color: #f5faf8;
    font-size:
        clamp(2rem, 2.7vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.auth-card-copy {
    position: relative;
    z-index: 1;
    margin:
        13px 0 30px;
    color: #849b94;
    font-size: 0.94rem;
    line-height: 1.55;
}

/* ---------- working form ---------- */

.auth-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
}

.auth-form label {
    display: grid;
    gap: 9px;
    color: #d0ddd9;
    font-size: 0.76rem;
    font-weight: 850;
}

.auth-form input {
    width: 100%;
    min-height: 54px;
    padding:
        0 16px;
    border:
        1px solid rgba(124, 173, 160, 0.24);
    border-radius: 10px;
    outline: 0;
    color: #eff8f5;
    background:
        rgba(8, 26, 22, 0.78);
    font: inherit;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.auth-form input::placeholder {
    color: #506860;
}

.auth-form input:focus {
    border-color:
        rgba(64, 228, 184, 0.67);
    background:
        rgba(12, 40, 33, 0.82);
    box-shadow:
        0 0 0 3px
        rgba(48, 211, 168, 0.08);
}

.auth-password-field {
    position: relative;
}

.auth-password-field input {
    padding-right: 78px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    transform:
        translateY(-50%);
    min-width: 57px;
    min-height: 37px;
    padding: 0 10px;
    border:
        1px solid rgba(53, 210, 170, 0.08);
    border-radius: 8px;
    color: #47dfb6;
    background:
        rgba(48, 170, 139, 0.09);
    cursor: pointer;
    font-size: 0.71rem;
    font-weight: 900;
}

.auth-submit {
    width: 100%;
    min-height: 58px;
    margin-top: 3px;
    border:
        1px solid rgba(104, 240, 203, 0.54);
    border-radius: 10px;
    color: #02120d;
    background:
        linear-gradient(
            100deg,
            #73edcc,
            #26d8ad
        );
    cursor: pointer;
    font-size: 0.90rem;
    font-weight: 950;
    box-shadow:
        0 16px 42px
        rgba(25, 211, 163, 0.15);
    transition:
        transform 150ms ease,
        box-shadow 150ms ease;
}

.auth-submit:hover {
    transform:
        translateY(-1px);
    box-shadow:
        0 20px 48px
        rgba(25, 211, 163, 0.20);
}

.auth-password-rule {
    margin:
        -7px 0 0;
    color: #617870;
    font-size: 0.68rem;
    line-height: 1.55;
}

/* Existing backend messages remain visible. */

.auth-page .notice,
.auth-page .message,
.auth-page .error,
.auth-page .success {
    position: relative;
    z-index: 2;
    margin:
        0 0 22px;
    border-radius: 9px;
}

/* ---------- tablet ---------- */

@media (max-width: 1050px) {

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-layout::before,
    .auth-layout::after {
        display: none;
    }

    .auth-intro {
        min-height: 500px;
        padding:
            68px 7vw;
        border-right: 0;
        border-bottom:
            1px solid rgba(255,255,255,0.055);
    }

    .auth-intro h1 {
        max-width: 760px;
        font-size:
            clamp(3rem, 7vw, 4.7rem);
    }

    .auth-card {
        width:
            min(calc(100% - 48px), 610px);
        margin:
            58px 24px 78px;
    }
}

/* ---------- mobile ---------- */

@media (max-width: 680px) {

    .auth-nav {
        min-height: 74px;
        padding:
            0 17px;
    }

    .auth-logo {
        width: 178px;
        height: 54px;
    }

    .auth-logo img {
        width: 178px;
        transform:
            translateY(-8px);
    }

    .auth-nav-link {
        min-height: 39px;
        padding:
            0 12px;
        font-size: 0.71rem;
    }

    .auth-intro {
        display: none;
    }

    .auth-layout {
        min-height:
            calc(100vh - 74px);
        display: block;
    }

    .auth-card {
        width: auto;
        margin:
            28px 16px 48px;
        padding:
            30px 22px;
        border-radius: 18px;
    }

    .auth-card h2 {
        font-size:
            1.9rem;
    }

    .auth-card-copy {
        margin-bottom:
            25px;
    }

    .auth-form {
        gap: 18px;
    }

    .auth-form input {
        min-height: 52px;
        font-size: 16px;
    }

    .auth-submit {
        min-height: 54px;
    }
}

@media (max-width: 390px) {

    .auth-logo {
        width: 155px;
    }

    .auth-logo img {
        width: 155px;
    }

    .auth-nav-link {
        padding:
            0 10px;
    }

    .auth-card {
        margin-left: 13px;
        margin-right: 13px;
        padding:
            27px 19px;
    }
}


/* =========================================================
   TEEWAI AUTH V2 — DESKTOP VERTICAL POSITION FIX
   ========================================================= */

@media (min-width: 1051px) {

    .auth-layout {
        align-items: start;
        min-height:
            calc(100vh - 92px);
        padding-top: 34px;
        padding-bottom: 44px;
    }

    .auth-intro {
        justify-content: flex-start;
        padding-top: 72px;
        padding-bottom: 52px;
    }

    .auth-card {
        align-self: start;
        margin-top: 38px;
        margin-bottom: 38px;
    }
}



/* =========================================================
   TEEWAI ACCOUNT UX V2
   ========================================================= */

body.account-page-v2 {
    margin: 0;
    min-height: 100vh;
    color: #edf7f4;
    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(35,214,167,0.10),
            transparent 30%
        ),
        #020706;
}

.account-page-v2 * {
    box-sizing: border-box;
}

.account-nav-v2 {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom:
        1px solid rgba(255,255,255,0.065);
    background:
        rgba(2,7,6,0.91);
    backdrop-filter: blur(18px);
}

.account-nav-inner-v2 {
    width: min(1440px, 92vw);
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.account-brand-v2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.account-brand-v2 img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.account-brand-v2 span {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.account-brand-v2 strong {
    font-size: 0.96rem;
    letter-spacing: 0.15em;
}

.account-brand-v2 small {
    margin-top: 5px;
    color: #6f8880;
    font-size: 0.53rem;
    letter-spacing: 0.20em;
}

.account-nav-actions-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-dashboard-link-v2 {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    border:
        1px solid rgba(255,255,255,0.09);
    border-radius: 9px;
    color: #cbdad5;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 800;
}

.account-shell-v2 {
    width: min(1320px, 92vw);
    margin: 0 auto;
    padding: 52px 0 80px;
}

.account-hero-v2 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 30px;
}

.account-eyebrow-v2 {
    color: #47deb6;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.account-hero-v2 h1 {
    margin: 12px 0 0;
    color: #f2faf7;
    font-size:
        clamp(2.4rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.account-hero-v2 p {
    max-width: 660px;
    margin: 15px 0 0;
    color: #81978f;
    line-height: 1.65;
}

.account-hero-status-v2 {
    min-width: 150px;
    padding: 16px 18px;
    border:
        1px solid rgba(70,222,182,0.17);
    border-radius: 12px;
    background:
        rgba(44,176,140,0.035);
}

.account-hero-status-v2 span {
    display: block;
    color: #607b72;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.account-hero-status-v2 strong {
    display: block;
    margin-top: 6px;
    color: #63e2be;
    font-size: 0.92rem;
}

.account-panel-v2 {
    margin-top: 14px;
    padding: 28px;
    border:
        1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(9,25,21,0.82),
            rgba(4,13,11,0.92)
        );
    box-shadow:
        0 22px 65px rgba(0,0,0,0.18);
}

.account-panel-v2 h2 {
    margin-top: 0;
    color: #eaf5f1;
    letter-spacing: -0.025em;
}

.account-identity-grid-v2 {
    margin-top: 14px;
}

.account-page-v2 .metric {
    border:
        1px solid rgba(255,255,255,0.065);
    border-radius: 12px;
    background:
        rgba(255,255,255,0.014);
}

.account-page-v2 .metric span {
    color: #637a72;
}

.account-notifications-v2
.notification-heading {
    margin-bottom: 22px;
}

.account-notifications-v2
.notification-settings-grid {
    gap: 10px;
}

.account-page-v2
.notification-setting,
.account-page-v2
.notification-event-group {
    border:
        1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    background:
        rgba(255,255,255,0.012);
}

.account-plan-panel-v2 {
    margin-top: 14px;
}

.account-plan-panel-v2
.plan-grid {
    gap: 12px;
}

.account-page-v2
.plan-card {
    border:
        1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    background:
        rgba(255,255,255,0.014);
}

.account-footer-actions-v2 {
    margin-top: 18px;
    padding-top: 20px;
    border-top:
        1px solid rgba(255,255,255,0.06);
}

@media (max-width: 780px) {

    .account-nav-inner-v2 {
        width: calc(100% - 30px);
        min-height: 70px;
    }

    .account-brand-v2 img {
        width: 38px;
        height: 38px;
    }

    .account-dashboard-link-v2 {
        display: none;
    }

    .account-shell-v2 {
        width: calc(100% - 30px);
        padding: 34px 0 60px;
    }

    .account-hero-v2 {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .account-hero-status-v2 {
        width: 100%;
    }

    .account-panel-v2 {
        padding: 20px;
        border-radius: 15px;
    }

    .account-page-v2 .account-grid,
    .account-page-v2 .notification-settings-grid,
    .account-page-v2 .notification-event-preferences,
    .account-page-v2 .plan-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   TEEWAI ACCOUNT UX V3
   APPROVED VISUAL AUTHORITY
   ========================================================= */

body.account-page-v2 {
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(22, 202, 157, 0.09),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 22%,
            rgba(11, 90, 72, 0.08),
            transparent 28%
        ),
        #020706;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.account-nav-v2 {
    min-height: 82px;
    border-bottom:
        1px solid rgba(58, 224, 181, 0.12);
}

.account-nav-inner-v2 {
    width: min(1480px, 94vw);
    min-height: 82px;
}

.account-brand-v2 {
    gap: 14px;
}

/* Visible without becoming oversized */
.account-brand-v2 img {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain !important;
    transform: none !important;
}

.account-brand-v2 strong {
    font-size: 1.15rem;
    letter-spacing: 0.10em;
}

.account-brand-v2 small {
    margin-top: 5px;
    color: #43dcb3;
    font-size: 0.62rem;
    letter-spacing: 0.17em;
}

.account-nav-actions-v2 {
    gap: 14px;
}

.account-dashboard-link-v2 {
    min-height: 46px;
    padding: 0 20px;
    border-color:
        rgba(56, 224, 182, 0.32);
    color: #58dfba;
    background:
        rgba(12, 54, 43, 0.18);
}

.account-page-v2 .notification-bell {
    width: 46px;
    height: 46px;
    border:
        1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background:
        rgba(255,255,255,0.025);
}


/* ---------------------------------------------------------
   Workspace hero
   --------------------------------------------------------- */

.account-shell-v2 {
    width: min(1460px, 92vw);
    padding-top: 54px;
}

.account-hero-v2 {
    align-items: center;
    margin-bottom: 34px;
}

.account-eyebrow-v2 {
    font-size: 0.72rem;
    color: #41ddb3;
}

.account-hero-v2 h1 {
    margin-top: 15px;
    font-size:
        clamp(2.8rem, 4.7vw, 4.6rem);
}

.account-hero-v2 p {
    margin-top: 17px;
    font-size: 0.98rem;
    color: #94a9a2;
}

.account-hero-status-v2 {
    min-width: 250px;
    padding: 23px 25px;
    border-color:
        rgba(67, 223, 182, 0.18);
    background:
        linear-gradient(
            145deg,
            rgba(8, 28, 23, 0.78),
            rgba(3, 14, 12, 0.92)
        );
}

.account-hero-status-v2::before {
    content: "✓";
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border:
        2px solid #30d8ad;
    border-radius: 10px;
    color: #30d8ad;
    font-weight: 900;
}

.account-hero-status-v2 strong {
    margin-top: 8px;
    font-size: 1.45rem;
}


/* ---------------------------------------------------------
   Notification Center master panel
   --------------------------------------------------------- */

.account-notifications-v2 {
    padding: 30px;
    border:
        1px solid rgba(77, 225, 187, 0.14);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 25, 20, 0.90),
            rgba(3, 14, 12, 0.96)
        );
}

.account-notifications-v2
.notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.account-notifications-v2
.notification-heading h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.account-notifications-v2
.notification-heading h2::before {
    content: "◉";
    margin-right: 13px;
    color: #3fe0b5;
}

.account-notifications-v2
.notification-heading .subtitle {
    margin-left: 38px;
    color: #92a8a0;
}

.account-notifications-v2
#enableLiveAlerts {
    min-height: 48px;
    padding: 0 22px;
    border:
        1px solid rgba(68, 224, 183, 0.22);
    border-radius: 10px;
    color: #eff8f5;
    background:
        linear-gradient(
            120deg,
            rgba(9, 111, 86, 0.95),
            rgba(7, 91, 73, 0.92)
        );
    font-weight: 850;
}


/* ---------------------------------------------------------
   Three primary notification controls
   --------------------------------------------------------- */

.account-page-v2
.notification-settings-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.account-page-v2
.notification-setting {
    min-height: 130px;
    display: grid;
    grid-template-columns:
        1fr auto;
    grid-template-rows:
        auto 1fr;
    align-items: center;
    gap: 10px 18px;
    padding: 24px;
    border:
        1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    background:
        rgba(255,255,255,0.012);
}

.account-page-v2
.notification-setting > span {
    align-self: end;
    color: #eef7f4;
    font-size: 0.91rem;
    font-weight: 850;
}

.account-page-v2
.notification-setting > span::after {
    display: block;
    margin-top: 7px;
    color: #81968f;
    font-size: 0.73rem;
    font-weight: 500;
    line-height: 1.45;
}

.account-page-v2
.notification-setting:nth-child(1) > span::after {
    content: "Show notification popups in your browser.";
}

.account-page-v2
.notification-setting:nth-child(2) > span::after {
    content: "Play an alert sound for eligible events.";
}

.account-page-v2
.notification-setting:nth-child(3) > span::after {
    content: "Choose how alert sounds are played.";
}


/* Native checkbox → compact switch appearance */

.account-page-v2
.notification-setting
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 48px;
    height: 26px;
    position: relative;
    margin: 0;

    border:
        1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    background:
        rgba(255,255,255,0.08);

    cursor: pointer;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.account-page-v2
.notification-setting
input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    border-radius: 50%;
    background: #e7efec;

    transition:
        transform 160ms ease;
}

.account-page-v2
.notification-setting
input[type="checkbox"]:checked {
    border-color:
        rgba(57, 224, 181, 0.42);
    background:
        linear-gradient(
            90deg,
            #0a8267,
            #21b78e
        );
}

.account-page-v2
.notification-setting
input[type="checkbox"]:checked::after {
    transform:
        translateX(21px);
}

.account-page-v2
.notification-setting
select {
    min-width: 165px;
    min-height: 44px;

    border:
        1px solid rgba(56, 218, 178, 0.28);
    border-radius: 9px;

    color: #edf7f4;
    background: #071612;

    padding: 0 12px;
}


/* ---------------------------------------------------------
   Browser + Sound preference panels
   --------------------------------------------------------- */

.account-page-v2
.notification-event-preferences {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.account-page-v2
.notification-event-group {
    padding: 24px;
    border:
        1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    background:
        rgba(255,255,255,0.012);
}

.account-page-v2
.notification-event-group h3 {
    margin:
        0 0 6px;
    font-size: 1rem;
    color: #eef7f4;
}

.account-page-v2
.notification-event-group .subtitle {
    margin:
        0 0 18px;
    color: #869b94;
    font-size: 0.78rem;
}

.account-page-v2
.notification-event-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

.account-page-v2
.notification-event-grid > label {
    min-height: 62px;
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 13px 14px !important;

    border: 0 !important;
    border-bottom:
        1px solid rgba(255,255,255,0.055) !important;
    border-radius: 0 !important;

    background:
        rgba(255,255,255,0.012) !important;
}

.account-page-v2
.notification-event-grid > label:first-child {
    border-radius:
        10px 10px 0 0 !important;
}

.account-page-v2
.notification-event-grid > label:last-child {
    border-bottom: 0 !important;
    border-radius:
        0 0 10px 10px !important;
}

.account-page-v2
.notification-event-grid
input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    flex:
        0 0 20px;

    accent-color:
        #28d8aa;
}

.account-page-v2
.notification-event-grid
span {
    color: #dce9e5;
    font-size: 0.78rem;
    font-weight: 750;
}


/* ---------------------------------------------------------
   Lower account / subscription areas
   --------------------------------------------------------- */

.account-page-v2
.account-panel-v2 {
    border-color:
        rgba(255,255,255,0.065);
}

.account-page-v2
.plan-card {
    transition:
        border-color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

.account-page-v2
.plan-card:hover {
    transform:
        translateY(-1px);
    border-color:
        rgba(66, 218, 179, 0.22);
    background:
        rgba(31, 109, 88, 0.04);
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .account-page-v2
    .notification-settings-grid {
        grid-template-columns: 1fr;
    }

    .account-page-v2
    .notification-event-preferences {
        grid-template-columns: 1fr;
    }

    .account-hero-status-v2 {
        min-width: 210px;
    }
}

@media (max-width: 780px) {

    .account-nav-inner-v2 {
        width: calc(100% - 28px);
    }

    .account-brand-v2 img {
        width: 48px !important;
        height: 48px !important;
    }

    .account-brand-v2 strong {
        font-size: 0.96rem;
    }

    .account-brand-v2 small {
        font-size: 0.54rem;
    }

    .account-hero-status-v2 {
        width: 100%;
    }

    .account-notifications-v2 {
        padding: 20px;
    }

    .account-notifications-v2
    .notification-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-notifications-v2
    #enableLiveAlerts {
        width: 100%;
    }
}


/* =========================================================
   TEEWAI MARKET COMMAND CENTER V2
   Presentation authority only.
   ========================================================= */

body.command-center-v2 {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #edf7f4;
    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(29, 211, 164, 0.10),
            transparent 31%
        ),
        radial-gradient(
            circle at 90% 18%,
            rgba(12, 94, 74, 0.08),
            transparent 29%
        ),
        #020706;
}

.command-center-v2 * {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Top navigation
   --------------------------------------------------------- */

.command-nav {
    position: sticky;
    top: 0;
    z-index: 100;

    min-height: 80px;

    border-bottom:
        1px solid rgba(70, 221, 183, 0.10);

    background:
        rgba(2, 7, 6, 0.91);

    backdrop-filter:
        blur(18px);
}

.command-nav-inner {
    width:
        min(1540px, calc(100% - 44px));

    min-height: 80px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.command-brand {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;

    color: inherit;
    text-decoration: none;
}

.command-brand img {
    width: 54px;
    height: 54px;

    flex:
        0 0 54px;

    object-fit: contain;
}

.command-brand-copy {
    display: flex;
    flex-direction: column;

    min-width: 0;

    line-height: 1;
}

.command-brand-copy strong {
    color: #f0f8f5;

    font-size: 1rem;
    font-weight: 900;

    letter-spacing: 0.14em;
}

.command-brand-copy small {
    margin-top: 6px;

    color: #3fd4aa;

    font-size: 0.52rem;
    font-weight: 850;

    letter-spacing: 0.17em;
}

.command-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-nav-link,
.command-live-alerts {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;

    border:
        1px solid rgba(255,255,255,0.065);

    border-radius: 9px;

    color: #8fa49d;

    background:
        rgba(255,255,255,0.014);

    text-decoration: none;

    font-size: 0.74rem;
    font-weight: 850;

    cursor: pointer;
}

.command-nav-link.active {
    color: #65e1bf;

    border-color:
        rgba(59, 217, 176, 0.21);

    background:
        rgba(43, 184, 145, 0.055);
}

.command-live-alerts {
    margin-left: 5px;

    color: #07130f;

    border-color:
        rgba(106, 236, 201, 0.52);

    background:
        linear-gradient(
            135deg,
            #71e9c7,
            #3ed0a8
        );
}


/* ---------------------------------------------------------
   Remove legacy dashboard shell/card appearance
   --------------------------------------------------------- */

.command-center-v2 > .shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.command-center-v2
.dashboard-card {
    width:
        min(1540px, calc(100% - 44px));

    max-width: none !important;

    margin:
        0 auto !important;

    padding:
        46px 0 72px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;
}


/* ---------------------------------------------------------
   Command header
   --------------------------------------------------------- */

.command-title-row {
    align-items: flex-end;

    margin-bottom: 28px;
}

.command-eyebrow {
    display: block;

    margin-bottom: 13px;

    color: #43d9af;

    font-size: 0.66rem;
    font-weight: 900;

    letter-spacing: 0.18em;
}

.command-title-row h1 {
    margin: 0;

    color: #f2f8f6;

    font-size:
        clamp(2.7rem, 4.4vw, 4.6rem);

    line-height: 0.98;

    letter-spacing:
        -0.05em;
}

.command-subtitle {
    max-width: 720px;

    margin-top: 15px !important;

    color: #829890 !important;

    font-size: 0.95rem;

    line-height: 1.6;
}

.command-system-status {
    min-width: 150px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding:
        13px 17px;

    border:
        1px solid rgba(55, 217, 174, 0.13);

    border-radius: 11px;

    background:
        rgba(27, 128, 101, 0.025);
}

.command-system-status .live-dot {
    width: 9px;
    height: 9px;
}

.command-system-status small {
    display: block;

    color: #607970;

    font-size: 0.52rem;
    font-weight: 900;

    letter-spacing: 0.13em;
}

.command-system-status strong {
    display: block;

    margin-top: 4px;

    color: #4ad9b0;

    font-size: 0.73rem;
}


/* ---------------------------------------------------------
   Summary cards
   --------------------------------------------------------- */

.command-center-v2
.dashboard-summary-grid {
    display: grid !important;

    grid-template-columns:
        repeat(6, minmax(0, 1fr)) !important;

    gap: 10px !important;

    margin:
        0 0 18px !important;
}

.command-center-v2
.dashboard-summary-grid .metric {
    min-width: 0;

    padding:
        17px 18px !important;

    border:
        1px solid rgba(255,255,255,0.055);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(7, 24, 20, 0.71),
            rgba(3, 14, 11, 0.86)
        );
}

.command-center-v2
.dashboard-summary-grid .metric span {
    color: #627970;

    font-size: 0.56rem;

    font-weight: 900;

    letter-spacing: 0.12em;
}

.command-center-v2
.dashboard-summary-grid .metric strong {
    display: block;

    margin-top: 8px;

    color: #eaf5f1;

    font-size: 1.28rem;
}


/* ---------------------------------------------------------
   Workspace
   --------------------------------------------------------- */

.command-center-v2
.dashboard-workspace {
    display: grid !important;

    grid-template-columns:
        minmax(320px, 0.31fr)
        minmax(0, 0.69fr) !important;

    gap: 14px !important;

    width: 100% !important;
    max-width: none !important;

    align-items: stretch;
}

.command-center-v2
.signal-panel,
.command-center-v2
.live-market-panel {
    min-width: 0;

    border:
        1px solid rgba(255,255,255,0.06);

    border-radius: 16px;

    background:
        linear-gradient(
            150deg,
            rgba(7, 23, 19, 0.82),
            rgba(3, 12, 10, 0.93)
        );

    box-shadow:
        0 22px 70px rgba(0,0,0,0.16);
}


/* ---------------------------------------------------------
   Active Signals rail
   --------------------------------------------------------- */

.command-center-v2
.signal-panel {
    padding:
        22px !important;
}

.command-center-v2
.signal-panel .section-heading {
    margin-bottom: 17px;
}

.command-center-v2
.signal-panel .section-heading h2,
.command-center-v2
.live-market-panel .section-heading h2 {
    margin: 0;

    color: #edf7f4;

    font-size: 1.1rem;

    letter-spacing:
        -0.02em;
}

.command-center-v2
.signal-panel .subtitle {
    margin-top: 6px;

    color: #71877f;
}

.command-center-v2
.signal-list {
    max-height:
        680px;

    overflow-y: auto;

    padding-right: 4px;
}

.command-center-v2
.signal-card {
    margin-bottom: 9px !important;

    padding:
        15px !important;

    border:
        1px solid rgba(255,255,255,0.055) !important;

    border-radius: 11px !important;

    background:
        rgba(255,255,255,0.012) !important;

    transition:
        border-color 140ms ease,
        background 140ms ease,
        transform 140ms ease;
}

.command-center-v2
.signal-card:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(60, 212, 173, 0.19) !important;

    background:
        rgba(35, 135, 108, 0.03) !important;
}

.command-center-v2
.signal-open {
    border-left:
        2px solid #42d9ae !important;
}


/* ---------------------------------------------------------
   Live Market panel
   --------------------------------------------------------- */

.command-center-v2
.live-market-panel {
    padding:
        22px;
}

.command-center-v2
.live-market-panel > .section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.command-center-v2
.live-market-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 8px;
}

.command-center-v2
.live-market-selector-wrap label {
    display: block;

    margin-bottom: 5px;

    color: #657a72;

    font-size: 0.55rem;

    font-weight: 900;

    letter-spacing: 0.10em;
}

.command-center-v2
.live-market-selector {
    min-height: 38px;

    border:
        1px solid rgba(255,255,255,0.075);

    border-radius: 8px;

    color: #cfddd8;

    background:
        #07120f;

    padding:
        0 10px;
}

.command-center-v2
.live-market-price {
    min-height: 38px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding:
        0 11px;

    border:
        1px solid rgba(60, 213, 174, 0.10);

    border-radius: 8px;

    background:
        rgba(35, 134, 108, 0.025);
}

.command-center-v2
.live-market-price-symbol {
    color: #718a81;

    font-size: 0.61rem;
}

.command-center-v2
.live-market-price-value {
    color: #70e2c0;

    font-size: 0.83rem;

    font-weight: 900;
}


/* ---------------------------------------------------------
   Chart
   --------------------------------------------------------- */

.command-center-v2
.live-chart-stage {
    overflow: hidden;

    border:
        1px solid rgba(255,255,255,0.055);

    border-radius: 12px;

    background:
        #030a08;
}

.command-center-v2
.live-chart-container {
    min-height:
        560px !important;

    height:
        560px !important;
}

.command-center-v2
.chart-timeframe-selector,
.command-center-v2
.chart-theme-selector {
    border-radius: 8px;
}

.command-center-v2
.chart-timeframe-selector button,
.command-center-v2
.chart-theme-selector button {
    min-height: 34px;

    border-color:
        rgba(255,255,255,0.06);
}

.command-center-v2
.chart-timeframe-selector button.active,
.command-center-v2
.chart-theme-selector button.active {
    color: #06120e;

    background:
        #57dbb6;
}


/* ---------------------------------------------------------
   Selected campaign details
   --------------------------------------------------------- */

.command-center-v2
.selected-signal-details {
    margin-top: 12px;

    padding: 16px;

    border:
        1px solid rgba(255,255,255,0.055);

    border-radius: 11px;

    background:
        rgba(255,255,255,0.012);
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1120px) {

    .command-center-v2
    .dashboard-summary-grid {
        grid-template-columns:
            repeat(3, 1fr) !important;
    }

    .command-center-v2
    .dashboard-workspace {
        grid-template-columns:
            1fr !important;
    }

    .command-center-v2
    .signal-list {
        max-height:
            440px;
    }

    .command-center-v2
    .live-chart-container {
        min-height:
            520px !important;

        height:
            520px !important;
    }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 720px) {

    .command-nav-inner {
        width:
            calc(100% - 28px);

        min-height:
            70px;
    }

    .command-brand img {
        width: 46px;
        height: 46px;

        flex-basis:
            46px;
    }

    .command-brand-copy strong {
        font-size: 0.88rem;
    }

    .command-brand-copy small {
        display: none;
    }

    .command-nav-links {
        gap: 5px;
    }

    .command-nav-link {
        display: none;
    }

    .command-live-alerts {
        min-height: 38px;

        padding:
            0 11px;

        font-size: 0.68rem;
    }

    .command-center-v2
    .dashboard-card {
        width:
            calc(100% - 28px);

        padding:
            34px 0 54px !important;
    }

    .command-title-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 17px;
    }

    .command-title-row h1 {
        font-size:
            clamp(2.25rem, 10vw, 3rem);
    }

    .command-system-status {
        width: 100%;
    }

    .command-center-v2
    .dashboard-summary-grid {
        grid-template-columns:
            repeat(2, 1fr) !important;

        gap: 8px !important;
    }

    .command-center-v2
    .dashboard-summary-grid .metric {
        padding:
            14px !important;
    }

    .command-center-v2
    .signal-panel,
    .command-center-v2
    .live-market-panel {
        padding:
            17px !important;
    }

    .command-center-v2
    .live-market-panel > .section-heading {
        flex-direction: column;
    }

    .command-center-v2
    .live-market-toolbar {
        width: 100%;

        justify-content: flex-start;
    }

    .command-center-v2
    .live-market-selector-wrap {
        width: 100%;
    }

    .command-center-v2
    .live-market-selector {
        width: 100%;
    }

    .command-center-v2
    .live-chart-container {
        min-height:
            430px !important;

        height:
            430px !important;
    }
}



/* =========================================================
   TEEWAI DASHBOARD V2.1 VISUAL INTEGRATION
   Presentation only.
   ========================================================= */

body.command-center-v21 {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;

    color: #eef7f4;

    background:
        radial-gradient(
            circle at 7% 0%,
            rgba(31, 211, 164, 0.10),
            transparent 29%
        ),
        radial-gradient(
            circle at 92% 17%,
            rgba(13, 88, 70, 0.08),
            transparent 27%
        ),
        #020706;
}

.command-center-v21 * {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Unified header
   --------------------------------------------------------- */

.command-nav-v21 {
    position: sticky;
    top: 0;
    z-index: 100;

    min-height: 78px;

    border-bottom:
        1px solid rgba(70,221,183,0.10);

    background:
        rgba(2,7,6,0.92);

    backdrop-filter:
        blur(18px);
}

.command-nav-inner-v21 {
    width:
        min(1540px, calc(100% - 44px));

    min-height: 78px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.command-brand-v21 {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    color: inherit;
    text-decoration: none;
}

.command-brand-v21 img {
    width: 54px;
    height: 54px;

    object-fit: contain;

    /* clean mark has internal padding */
    transform: scale(1.55);
    transform-origin: center;
}

.command-brand-v21 span {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.command-brand-v21 strong {
    color: #f3f9f7;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.command-brand-v21 small {
    margin-top: 6px;

    color: #47d9b1;

    font-size: 0.56rem;
    font-weight: 850;

    letter-spacing: 0.17em;
}

.command-links-v21 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-link-v21,
.command-alert-button-v21 {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 9px;

    color: #98aca5;

    background:
        rgba(255,255,255,0.014);

    text-decoration: none;

    font-size: 0.74rem;
    font-weight: 850;
}

.command-link-v21.active {
    color: #62dfba;

    border-color:
        rgba(61,216,176,0.20);

    background:
        rgba(33,151,119,0.045);
}

.command-alert-button-v21 {
    margin-left: 4px;

    color: #06130f;

    border-color:
        rgba(105,236,200,0.48);

    background:
        linear-gradient(
            135deg,
            #73e9c8,
            #3fcfaa
        );

    cursor: pointer;
}


/* ---------------------------------------------------------
   Remove old shell/card framing
   --------------------------------------------------------- */

.command-center-v21 > .shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.command-center-v21 .dashboard-card {
    width:
        min(1540px, calc(100% - 44px));

    max-width: none !important;

    margin:
        0 auto !important;

    padding:
        34px 0 64px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;
}


/* ---------------------------------------------------------
   Page heading
   --------------------------------------------------------- */

.command-title-v21 {
    margin-bottom: 22px;

    align-items: center;
}

.command-eyebrow-v21 {
    display: block;

    margin-bottom: 11px;

    color: #42dab0;

    font-size: 0.66rem;
    font-weight: 900;

    letter-spacing: 0.18em;
}

.command-title-v21 h1 {
    margin: 0;

    color: #f4faf8;

    font-size:
        clamp(2.65rem, 4.3vw, 4.35rem);

    line-height: 0.98;

    letter-spacing: -0.05em;
}

.command-title-v21 .subtitle {
    max-width: 680px;

    margin-top: 13px;

    color: #81958e;

    font-size: 0.92rem;

    line-height: 1.6;
}

.command-status-v21 {
    min-width: 156px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px 16px;

    border:
        1px solid rgba(58,217,175,0.13);

    border-radius: 10px;

    background:
        rgba(33,135,107,0.025);
}

.command-status-v21 small {
    display: block;

    color: #60766e;

    font-size: 0.51rem;
    font-weight: 900;

    letter-spacing: 0.12em;
}

.command-status-v21 strong {
    display: block;

    margin-top: 3px;

    color: #4cdcb3;

    font-size: 0.73rem;
}


/* ---------------------------------------------------------
   Summary metrics
   --------------------------------------------------------- */

.command-center-v21 .dashboard-summary-grid {
    grid-template-columns:
        repeat(6, minmax(0, 1fr)) !important;

    gap: 9px !important;

    margin-bottom: 14px !important;
}

.command-center-v21
.dashboard-summary-grid .metric {
    min-height: 86px;

    padding: 15px 17px !important;

    border:
        1px solid rgba(255,255,255,0.055);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(7,24,20,0.70),
            rgba(3,13,11,0.86)
        );
}

.command-center-v21
.dashboard-summary-grid .metric span {
    color: #637970;

    font-size: 0.54rem;

    font-weight: 900;

    letter-spacing: 0.11em;
}

.command-center-v21
.dashboard-summary-grid .metric strong {
    display: block;

    margin-top: 7px;

    font-size: 1.24rem;

    color: #edf6f3;
}


/* ---------------------------------------------------------
   Workspace balance
   --------------------------------------------------------- */

.command-center-v21 .dashboard-workspace {
    display: grid !important;

    grid-template-columns:
        minmax(290px, 0.28fr)
        minmax(0, 0.72fr) !important;

    gap: 13px !important;

    width: 100% !important;
    max-width: none !important;
}

.command-center-v21 .signal-panel,
.command-center-v21 .live-market-panel {
    min-width: 0;

    border:
        1px solid rgba(255,255,255,0.06);

    border-radius: 15px;

    background:
        linear-gradient(
            150deg,
            rgba(7,23,19,0.82),
            rgba(3,12,10,0.93)
        );

    box-shadow:
        0 20px 62px rgba(0,0,0,0.15);
}


/* ---------------------------------------------------------
   Signals panel
   --------------------------------------------------------- */

.command-center-v21 .signal-panel {
    padding: 19px !important;
}

.command-center-v21
.signal-panel .section-heading {
    margin-bottom: 14px;
}

.command-center-v21
.signal-panel .section-heading h2,
.command-center-v21
.live-market-panel .section-heading h2 {
    margin: 0;

    color: #edf7f4;

    font-size: 1.05rem;

    letter-spacing: -0.02em;
}

.command-center-v21
.signal-panel .subtitle {
    margin-top: 5px;

    color: #71857e;
}

.command-center-v21 .signal-list {
    max-height: 650px;
    overflow-y: auto;
}

.command-center-v21 .signal-card {
    margin-bottom: 8px !important;

    padding: 14px !important;

    border:
        1px solid rgba(255,255,255,0.055) !important;

    border-radius: 10px !important;

    background:
        rgba(255,255,255,0.012) !important;
}

.command-center-v21 .signal-open {
    border-left:
        2px solid #42d9ae !important;
}


/* ---------------------------------------------------------
   Live Market
   --------------------------------------------------------- */

.command-center-v21 .live-market-panel {
    padding: 19px;
}

.command-center-v21
.live-market-panel > .section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 14px;
}

.command-center-v21
.live-market-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 7px;
}

.command-center-v21
.live-market-selector,
.command-center-v21
.live-market-price {
    min-height: 37px;
}

.command-center-v21
.live-market-selector {
    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 8px;

    color: #d4e0dc;

    background: #07120f;
}

.command-center-v21
.live-market-price {
    padding: 0 10px;

    border:
        1px solid rgba(60,213,174,0.10);

    border-radius: 8px;

    background:
        rgba(34,134,107,0.025);
}

.command-center-v21
.live-market-price-value {
    color: #6be2be;

    font-weight: 900;
}


/* ---------------------------------------------------------
   Chart authority
   --------------------------------------------------------- */

.command-center-v21 .live-chart-stage {
    overflow: hidden;

    border:
        1px solid rgba(255,255,255,0.055);

    border-radius: 11px;

    background: #030a08;
}

.command-center-v21 .live-chart-container {
    height: 575px !important;
    min-height: 575px !important;
}

.command-center-v21
.chart-theme-selector button,
.command-center-v21
.chart-timeframe-selector button {
    min-height: 34px;
}

.command-center-v21
.chart-theme-selector button.active,
.command-center-v21
.chart-timeframe-selector button.active {
    color: #06130f;

    background: #58ddb8;
}


/* ---------------------------------------------------------
   Selected signal detail
   --------------------------------------------------------- */

.command-center-v21 .selected-signal-details {
    margin-top: 11px;

    padding: 15px;

    border:
        1px solid rgba(255,255,255,0.055);

    border-radius: 10px;

    background:
        rgba(255,255,255,0.012);
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1120px) {

    .command-center-v21
    .dashboard-summary-grid {
        grid-template-columns:
            repeat(3, 1fr) !important;
    }

    .command-center-v21
    .dashboard-workspace {
        grid-template-columns:
            1fr !important;
    }

    .command-center-v21
    .live-chart-container {
        height: 520px !important;
        min-height: 520px !important;
    }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 720px) {

    .command-nav-inner-v21 {
        width:
            calc(100% - 28px);

        min-height: 70px;
    }

    .command-brand-v21 img {
        width: 46px;
        height: 46px;

        transform: scale(1.45);
    }

    .command-brand-v21 strong {
        font-size: 0.87rem;
    }

    .command-brand-v21 small {
        display: none;
    }

    .command-link-v21 {
        display: none;
    }

    .command-alert-button-v21 {
        min-height: 38px;

        padding: 0 10px;

        font-size: 0.67rem;
    }

    .command-center-v21 .dashboard-card {
        width:
            calc(100% - 28px);

        padding:
            30px 0 50px !important;
    }

    .command-title-v21 {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .command-title-v21 h1 {
        font-size:
            clamp(2.2rem, 10vw, 3rem);
    }

    .command-status-v21 {
        width: 100%;
    }

    .command-center-v21
    .dashboard-summary-grid {
        grid-template-columns:
            repeat(2, 1fr) !important;
    }

    .command-center-v21
    .live-market-panel > .section-heading {
        flex-direction: column;
    }

    .command-center-v21
    .live-market-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    .command-center-v21
    .live-market-selector-wrap {
        width: 100%;
    }

    .command-center-v21
    .live-market-selector {
        width: 100%;
    }

    .command-center-v21
    .live-chart-container {
        height: 430px !important;
        min-height: 430px !important;
    }
}


/* =========================================================
   TEEWAI DASHBOARD V2.2 — COMMAND CENTER WORKSPACE POLISH
   Presentation authority only.
   ========================================================= */


/* ---------------------------------------------------------
   Overall spacing
   --------------------------------------------------------- */

.command-center-v21 .dashboard-card {
    padding-top: 30px !important;
}

.command-center-v21 .command-title-v21 {
    margin-bottom: 20px;
}

.command-center-v21 .dashboard-summary-grid {
    margin-bottom: 12px !important;
}


/* ---------------------------------------------------------
   Workspace proportions
   Give chart primary authority.
   --------------------------------------------------------- */

.command-center-v21 .dashboard-workspace {
    grid-template-columns:
        minmax(300px, 0.25fr)
        minmax(0, 0.75fr) !important;

    gap: 12px !important;
}


/* ---------------------------------------------------------
   Active Signals rail
   Fix cramped / truncated content.
   --------------------------------------------------------- */

.command-center-v21 .signal-panel {
    padding: 20px !important;
}

.command-center-v21 .signal-list {
    max-height: 680px;
    padding-right: 3px;
}

.command-center-v21 .signal-card {
    width: 100% !important;
    min-width: 0 !important;

    padding: 17px !important;

    overflow: hidden;

    border-radius: 12px !important;
}

.command-center-v21 .signal-card * {
    min-width: 0;
}

.command-center-v21 .signal-card strong,
.command-center-v21 .signal-card span,
.command-center-v21 .signal-card div,
.command-center-v21 .signal-card p {
    overflow-wrap: anywhere;
    word-break: normal;
}

.command-center-v21 .signal-card strong {
    line-height: 1.25;
}


/* Any generated card grids must remain inside the rail */

.command-center-v21 .signal-card > div {
    max-width: 100%;
}

.command-center-v21 .signal-card table {
    width: 100%;
    table-layout: fixed;
}

.command-center-v21 .signal-card td,
.command-center-v21 .signal-card th {
    white-space: normal !important;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Avoid narrow fields competing horizontally */

.command-center-v21 .signal-card [class*="row"],
.command-center-v21 .signal-card [class*="grid"] {
    max-width: 100%;
}


/* ---------------------------------------------------------
   Live Market heading / toolbar
   --------------------------------------------------------- */

.command-center-v21
.live-market-panel > .section-heading {
    margin-bottom: 20px;
    padding-bottom: 17px;

    border-bottom:
        1px solid rgba(255,255,255,0.055);
}

.command-center-v21
.live-market-panel .section-heading > div:first-child {
    min-width: 190px;
}

.command-center-v21
.live-market-panel .section-heading h2 {
    font-size: 1.12rem;
    line-height: 1.18;
}

.command-center-v21 #selectedMarketLabel {
    margin-top: 7px;

    color: #718a81;

    line-height: 1.45;
}


/* ---------------------------------------------------------
   Toolbar grouping
   --------------------------------------------------------- */

.command-center-v21 .live-market-toolbar {
    max-width: 760px;

    align-items: flex-end;

    gap: 8px 9px;
}

.command-center-v21 .live-market-selector-wrap {
    min-width: 178px;
}

.command-center-v21 .live-market-selector {
    width: 100%;
    min-height: 40px;

    padding: 0 12px;
}

.command-center-v21 .live-market-price {
    min-height: 40px;

    padding: 0 13px;

    white-space: nowrap;
}

.command-center-v21 .live-market-price-symbol {
    font-size: 0.65rem;
}

.command-center-v21 .live-market-price-value {
    font-size: 1rem;
}


/* ---------------------------------------------------------
   Dark / Light selector
   --------------------------------------------------------- */

.command-center-v21 .chart-theme-selector {
    display: flex;

    gap: 5px;

    padding: 3px;

    border:
        1px solid rgba(255,255,255,0.06);

    border-radius: 9px;

    background:
        rgba(255,255,255,0.012);
}

.command-center-v21
.chart-theme-selector button {
    min-width: 55px;
    min-height: 34px;

    border: 0 !important;

    border-radius: 6px;
}


/* ---------------------------------------------------------
   Timeframe rail
   --------------------------------------------------------- */

.command-center-v21 .chart-timeframe-selector {
    display: flex;

    gap: 5px;

    padding: 3px;

    border:
        1px solid rgba(255,255,255,0.06);

    border-radius: 9px;

    background:
        rgba(255,255,255,0.012);
}

.command-center-v21
.chart-timeframe-selector button {
    min-width: 43px;
    min-height: 34px;

    padding: 0 9px;

    border: 0 !important;

    border-radius: 6px;
}


/* ---------------------------------------------------------
   Chart — primary analytical surface
   --------------------------------------------------------- */

.command-center-v21 .live-chart-stage {
    margin-top: 4px;

    border-color:
        rgba(75,221,183,0.10);

    border-radius: 13px;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.01),
        0 18px 55px rgba(0,0,0,0.18);
}

.command-center-v21 .live-chart-container {
    height: 610px !important;
    min-height: 610px !important;
}


/* Keep watermark subtle */

.command-center-v21 .tsme-chart-watermark {
    opacity: 0.055 !important;
}


/* ---------------------------------------------------------
   Selected campaign detail area
   --------------------------------------------------------- */

.command-center-v21 .selected-signal-details {
    margin-top: 12px;

    padding: 18px;

    border-color:
        rgba(68,216,178,0.09);

    background:
        linear-gradient(
            145deg,
            rgba(8,27,22,0.72),
            rgba(4,14,12,0.88)
        );
}

.command-center-v21 .selected-signal-details * {
    min-width: 0;
}


/* ---------------------------------------------------------
   Scrollbar refinement
   --------------------------------------------------------- */

.command-center-v21 .signal-list {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(67,210,172,0.25)
        transparent;
}

.command-center-v21 .signal-list::-webkit-scrollbar {
    width: 6px;
}

.command-center-v21 .signal-list::-webkit-scrollbar-track {
    background: transparent;
}

.command-center-v21 .signal-list::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        rgba(67,210,172,0.22);
}


/* ---------------------------------------------------------
   Mid-size desktop
   --------------------------------------------------------- */

@media (max-width: 1320px) {

    .command-center-v21 .dashboard-workspace {
        grid-template-columns:
            minmax(280px, 0.28fr)
            minmax(0, 0.72fr) !important;
    }

    .command-center-v21
    .live-market-panel > .section-heading {
        flex-direction: column;
    }

    .command-center-v21 .live-market-toolbar {
        width: 100%;
        max-width: none;

        justify-content: flex-start;
    }
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1120px) {

    .command-center-v21 .dashboard-workspace {
        grid-template-columns:
            1fr !important;
    }

    .command-center-v21 .signal-list {
        max-height: 420px;
    }

    .command-center-v21 .live-chart-container {
        height: 540px !important;
        min-height: 540px !important;
    }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 720px) {

    .command-center-v21 .dashboard-summary-grid {
        gap: 7px !important;
    }

    .command-center-v21
    .dashboard-summary-grid .metric {
        min-height: 78px;

        padding: 13px !important;
    }

    .command-center-v21 .signal-panel,
    .command-center-v21 .live-market-panel {
        padding: 16px !important;
    }

    .command-center-v21
    .live-market-panel > .section-heading {
        padding-bottom: 14px;
    }

    .command-center-v21 .live-market-toolbar {
        display: grid;

        grid-template-columns:
            1fr;

        gap: 9px;
    }

    .command-center-v21 .live-market-selector-wrap,
    .command-center-v21 .live-market-price,
    .command-center-v21 .chart-theme-selector,
    .command-center-v21 .chart-timeframe-selector {
        width: 100%;
    }

    .command-center-v21 .chart-theme-selector,
    .command-center-v21 .chart-timeframe-selector {
        overflow-x: auto;
    }

    .command-center-v21
    .chart-timeframe-selector button {
        flex: 1 0 42px;
    }

    .command-center-v21 .live-chart-container {
        height: 450px !important;
        min-height: 450px !important;
    }
}


/* =========================================================
   TEEWAI COMMAND CENTER V2.2
   ACTIVE SIGNAL READABILITY CORRECTION
   ========================================================= */

/*
   Preserve the narrow signal rail while making each
   campaign readable without clipping critical values.
*/

.command-center-v21 .signal-card {
    padding: 18px !important;
}


/* Campaign identity gets its own full-width row */

.command-center-v21 .signal-card-header,
.command-center-v21 .signal-card-title {
    width: 100%;
    min-width: 0;
}


/*
   Generated signal metadata:
   give label/value pairs predictable space instead of
   allowing one column to consume the card.
*/

.command-center-v21 .signal-card dl {
    display: grid !important;
    grid-template-columns:
        minmax(72px, 0.85fr)
        minmax(90px, 1.15fr) !important;

    column-gap: 12px !important;
    row-gap: 8px !important;

    width: 100%;
}

.command-center-v21 .signal-card dt,
.command-center-v21 .signal-card dd {
    min-width: 0;
    margin: 0;
}

.command-center-v21 .signal-card dt {
    color: #829b92;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.command-center-v21 .signal-card dd {
    color: #eef8f5;
    text-align: right;
    font-size: 0.76rem;
    font-weight: 800;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
}


/*
   Protect common dynamically generated two-column
   structures used by the existing dashboard renderer.
*/

.command-center-v21 .signal-card [class*="meta"],
.command-center-v21 .signal-card [class*="detail"] {
    min-width: 0;
}

.command-center-v21 .signal-card [class*="meta-row"],
.command-center-v21 .signal-card [class*="detail-row"] {
    display: grid !important;

    grid-template-columns:
        minmax(70px, 0.85fr)
        minmax(88px, 1.15fr) !important;

    gap: 10px !important;

    width: 100%;
}

.command-center-v21
.signal-card [class*="meta-row"] > :last-child,
.command-center-v21
.signal-card [class*="detail-row"] > :last-child {
    min-width: 0;

    text-align: right;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}


/* Never abbreviate the important lifecycle values visually */

.command-center-v21 .signal-card {
    font-variant-numeric: tabular-nums;
}

.command-center-v21 .signal-card .direction,
.command-center-v21 .signal-card .timeframe,
.command-center-v21 .signal-card .entry,
.command-center-v21 .signal-card .status {
    white-space: nowrap !important;
}


/*
   Give Active Signals slightly more room on large
   desktops while Live Market remains dominant.
*/

@media (min-width: 1321px) {

    .command-center-v21 .dashboard-workspace {
        grid-template-columns:
            minmax(330px, 0.28fr)
            minmax(0, 0.72fr) !important;
    }
}


/* Compact desktop fallback */

@media (min-width: 1121px) and (max-width: 1320px) {

    .command-center-v21 .dashboard-workspace {
        grid-template-columns:
            minmax(300px, 0.30fr)
            minmax(0, 0.70fr) !important;
    }
}


/* =========================================================
   TEEWAI COMMAND CENTER
   ACTIVE SIGNAL CARD — EXACT STRUCTURE AUTHORITY
   ========================================================= */


/* ---------------------------------------------------------
   Card
   --------------------------------------------------------- */

.command-center-v21 .signal-card {
    width: 100% !important;
    min-width: 0 !important;

    display: block !important;

    padding: 18px !important;

    overflow: visible !important;

    text-align: left !important;
}


/* ---------------------------------------------------------
   Market / lifecycle header
   --------------------------------------------------------- */

.command-center-v21 .signal-card-top {
    width: 100% !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;

    gap: 14px !important;

    margin-bottom: 17px !important;
}

.command-center-v21 .signal-card-top > strong {
    min-width: 0 !important;

    color: #f2f8f6 !important;

    font-size: 0.88rem !important;
    font-weight: 900 !important;

    line-height: 1.32 !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.command-center-v21 .signal-card-top > span {
    flex: 0 0 auto !important;

    color: #55ddb8 !important;

    font-size: 0.65rem !important;
    font-weight: 900 !important;

    letter-spacing: 0.05em !important;

    white-space: nowrap !important;
}


/* ---------------------------------------------------------
   Lifecycle details
   Exact alternating:
   span = field
   strong = value
   --------------------------------------------------------- */

.command-center-v21 .signal-card-grid {
    width: 100% !important;
    min-width: 0 !important;

    display: grid !important;

    grid-template-columns:
        minmax(72px, 0.82fr)
        minmax(105px, 1.18fr) !important;

    column-gap: 16px !important;
    row-gap: 10px !important;

    align-items: center !important;
}


/* Labels */

.command-center-v21
.signal-card-grid > span {
    min-width: 0 !important;

    color: #80978f !important;

    font-size: 0.64rem !important;
    font-weight: 800 !important;

    letter-spacing: 0.045em !important;

    line-height: 1.25 !important;

    white-space: nowrap !important;

    overflow: visible !important;
    text-overflow: clip !important;
}


/* Values */

.command-center-v21
.signal-card-grid > strong {
    min-width: 0 !important;

    color: #edf7f4 !important;

    font-size: 0.72rem !important;
    font-weight: 900 !important;

    line-height: 1.3 !important;

    text-align: right !important;

    white-space: normal !important;

    overflow: visible !important;
    text-overflow: clip !important;

    overflow-wrap: anywhere !important;
}


/* Direction receives TEEWAI lifecycle emphasis */

.command-center-v21
.signal-card-grid > strong:nth-of-type(1) {
    color: #55ddb8 !important;
}


/* ---------------------------------------------------------
   Waiting-market cards use the same readable structure
   --------------------------------------------------------- */

.command-center-v21
.signal-card:not(.signal-open)
.signal-card-grid {
    grid-template-columns:
        minmax(72px, 0.82fr)
        minmax(105px, 1.18fr) !important;
}


/* ---------------------------------------------------------
   Remove legacy ellipsis authority
   --------------------------------------------------------- */

.command-center-v21
.signal-card-grid *,
.command-center-v21
.signal-card-top * {
    max-width: none !important;

    text-overflow: clip !important;
}


/* ---------------------------------------------------------
   Desktop rail
   Enough room for complete lifecycle values.
   --------------------------------------------------------- */

@media (min-width: 1321px) {

    .command-center-v21 .dashboard-workspace {
        grid-template-columns:
            minmax(350px, 0.29fr)
            minmax(0, 0.71fr) !important;
    }
}


/* ---------------------------------------------------------
   Medium desktop
   --------------------------------------------------------- */

@media (min-width: 1121px) and (max-width: 1320px) {

    .command-center-v21 .dashboard-workspace {
        grid-template-columns:
            minmax(320px, 0.31fr)
            minmax(0, 0.69fr) !important;
    }

    .command-center-v21 .signal-card {
        padding: 16px !important;
    }

    .command-center-v21 .signal-card-grid {
        column-gap: 12px !important;

        grid-template-columns:
            minmax(68px, 0.78fr)
            minmax(100px, 1.22fr) !important;
    }
}


/* ---------------------------------------------------------
   Mobile / stacked
   --------------------------------------------------------- */

@media (max-width: 1120px) {

    .command-center-v21 .signal-card-grid {
        grid-template-columns:
            minmax(80px, 0.72fr)
            minmax(120px, 1.28fr) !important;
    }
}


/* =========================================================
   TEEWAI COMMAND CENTER
   SELECTED CAMPAIGN LIFECYCLE PANEL V1
   ========================================================= */

.command-center-v21
.selected-signal-details {
    padding: 0 !important;

    overflow: hidden;

    border:
        1px solid rgba(65,216,177,0.10);

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(7,25,20,0.92),
            rgba(3,13,11,0.96)
        );
}

.lifecycle-panel-v1 {
    width: 100%;
}


/* Header */

.lifecycle-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding:
        20px 22px;

    border-bottom:
        1px solid rgba(255,255,255,0.055);
}

.lifecycle-kicker {
    color: #45d9b0;

    font-size: 0.57rem;
    font-weight: 900;

    letter-spacing: 0.15em;
}

.lifecycle-panel-head h3 {
    margin:
        7px 0 0;

    color: #edf7f4;

    font-size: 1rem;

    letter-spacing: -0.015em;
}

.lifecycle-state {
    min-width: 112px;

    padding:
        10px 13px;

    border:
        1px solid rgba(70,220,181,0.14);

    border-radius: 9px;

    background:
        rgba(35,145,115,0.035);
}

.lifecycle-state span {
    display: block;

    color: #6f877f;

    font-size: 0.52rem;
    font-weight: 900;

    letter-spacing: 0.12em;
}

.lifecycle-state strong {
    display: block;

    margin-top: 4px;

    color: #5ee0ba;

    font-size: 0.78rem;
}


/* Primary campaign values */

.lifecycle-primary-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px;

    background:
        rgba(255,255,255,0.045);
}

.lifecycle-metric {
    min-width: 0;

    padding:
        17px 18px;

    background:
        #06120f;
}

.lifecycle-metric span {
    display: block;

    color: #657b73;

    font-size: 0.53rem;
    font-weight: 900;

    letter-spacing: 0.10em;
}

.lifecycle-metric strong {
    display: block;

    margin-top: 7px;

    color: #eaf5f1;

    font-size: 0.83rem;

    overflow-wrap: anywhere;
}


/* TP ladder */

.lifecycle-targets {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 8px;

    padding:
        18px 20px;
}

.lifecycle-target {
    min-width: 0;

    padding:
        12px 13px;

    border:
        1px solid rgba(255,255,255,0.055);

    border-radius: 9px;

    background:
        rgba(255,255,255,0.012);
}

.lifecycle-target span {
    display: block;

    color: #667c74;

    font-size: 0.55rem;
    font-weight: 900;
}

.lifecycle-target strong {
    display: block;

    margin-top: 6px;

    color: #b7c7c1;

    font-size: 0.73rem;

    overflow-wrap: anywhere;
}

.lifecycle-target.reached {
    border-color:
        rgba(66,220,179,0.22);

    background:
        rgba(35,151,119,0.05);
}

.lifecycle-target.reached span,
.lifecycle-target.reached strong {
    color: #58dfb9;
}


/* Footer intelligence */

.lifecycle-footer-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1px;

    border-top:
        1px solid rgba(255,255,255,0.055);

    background:
        rgba(255,255,255,0.04);
}

.lifecycle-footer-grid > div {
    min-width: 0;

    padding:
        15px 18px;

    background:
        #06120f;
}

.lifecycle-footer-grid span {
    display: block;

    color: #61776f;

    font-size: 0.51rem;
    font-weight: 900;

    letter-spacing: 0.09em;
}

.lifecycle-footer-grid strong {
    display: block;

    margin-top: 6px;

    color: #dce9e5;

    font-size: 0.75rem;

    overflow-wrap: anywhere;
}


/* Tablet */

@media (max-width: 900px) {

    .lifecycle-primary-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .lifecycle-targets {
        grid-template-columns:
            repeat(3, 1fr);
    }
}


/* Mobile */

@media (max-width: 620px) {

    .lifecycle-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .lifecycle-state {
        width: 100%;
    }

    .lifecycle-primary-grid {
        grid-template-columns:
            1fr;
    }

    .lifecycle-targets {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .lifecycle-footer-grid {
        grid-template-columns:
            1fr;
    }
}

/* ==========================================================
   TEEWAI SME — MY MARKETS COMMERCIAL V2 RECONSTRUCTION
   Scope: body.markets-page-v2 / markets-* only.
   Reconstructed 2026-08-31 from preserved UI authority.
   ========================================================== */

body.markets-page-v2 {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% -8%, rgba(30, 72, 124, .28), transparent 38%),
        radial-gradient(circle at 88% 8%, rgba(181, 126, 28, .09), transparent 28%),
        #050a12;
    color: #edf3fb;
}

.markets-commercial-shell {
    min-height: 100vh;
}

.markets-commercial-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    min-height: 78px;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(111, 141, 184, .13);
    background: rgba(5, 11, 20, .94);
    backdrop-filter: blur(18px);
}

.markets-commercial-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: #f2f6fb;
    text-decoration: none;
}

.markets-commercial-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.markets-commercial-brand span {
    display: grid;
    gap: 3px;
}

.markets-commercial-brand strong {
    color: #f4f7fb;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.markets-commercial-brand small {
    color: #71849e;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.markets-commercial-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.markets-commercial-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 13px;
    color: #8193ad;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .02em;
    transition: color .16s ease, background .16s ease;
}

.markets-commercial-nav a:hover,
.markets-commercial-nav a:focus-visible {
    color: #e5edf7;
    background: rgba(255, 255, 255, .025);
    outline: none;
}

.markets-commercial-nav a.is-active {
    color: #e9c367;
}

.markets-commercial-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: #d7a936;
}

.markets-account-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(210, 154, 43, .42);
    border-radius: 9px;
    color: #e9c66d;
    background: rgba(75, 52, 12, .12);
    text-decoration: none;
    font-size: .75rem;
    font-weight: 850;
    white-space: nowrap;
}

.markets-account-return:hover,
.markets-account-return:focus-visible {
    border-color: rgba(225, 176, 66, .7);
    background: rgba(111, 77, 18, .18);
    outline: none;
}

.markets-mobile-menu-toggle {
    display: none;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(210, 154, 43, .55);
    border-radius: 9px;
    color: #ebc76b;
    background: rgba(75, 52, 12, .12);
    font: inherit;
    font-size: .78rem;
    font-weight: 850;
    cursor: pointer;
}

.markets-commercial-main {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 46px 0 54px;
}

.markets-commercial-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 2px 30px;
}

.markets-commercial-kicker,
.markets-panel-kicker {
    display: block;
    color: #d8ae4e;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .17em;
}

.markets-commercial-hero h1 {
    margin: 8px 0 9px;
    color: #f1f6fc;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -.035em;
}

.markets-commercial-hero p {
    max-width: 650px;
    margin: 0;
    color: #899ab2;
    font-size: .95rem;
    line-height: 1.7;
}

.markets-commercial-state {
    min-width: 155px;
    padding: 13px 15px;
    border: 1px solid rgba(67, 211, 169, .17);
    border-radius: 10px;
    background: rgba(27, 117, 92, .055);
}

.markets-commercial-state span {
    display: block;
    color: #68887e;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.markets-commercial-state strong {
    display: block;
    margin-top: 5px;
    color: #5bd7b3;
    font-size: .77rem;
    letter-spacing: .04em;
}

body.markets-page-v2 > .markets-commercial-shell > .markets-commercial-main > .subscription-section {
    margin: 0 0 18px;
    padding: 15px 17px !important;
    border: 1px solid rgba(74, 222, 128, .28) !important;
    border-radius: 11px;
    background: rgba(24, 111, 75, .075);
}

body.markets-page-v2 > .markets-commercial-shell > .markets-commercial-main > .subscription-section .subtitle {
    margin-bottom: 0;
}

.markets-commercial-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.markets-summary-card {
    min-width: 0;
    min-height: 126px;
    padding: 18px;
    border: 1px solid rgba(111, 141, 184, .14);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(13, 27, 48, .84), rgba(8, 18, 32, .9));
    box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
}

.markets-summary-card > span {
    display: block;
    color: #70839e;
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.markets-summary-card > strong {
    display: block;
    margin-top: 10px;
    color: #eef4fb;
    font-size: .98rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.markets-summary-card > small {
    display: block;
    margin-top: 7px;
    color: #6e8098;
    font-size: .68rem;
    line-height: 1.45;
}

.markets-commercial-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
    align-items: start;
    gap: 18px;
}

.markets-selected-panel,
.markets-request-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(111, 141, 184, .14);
    border-radius: 13px;
    background: rgba(7, 16, 29, .89);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
}

.markets-request-panel {
    position: sticky;
    top: 98px;
}

.markets-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
}

.markets-panel-header h2 {
    margin: 7px 0 7px;
    color: #edf3fa;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}

.markets-panel-header p {
    max-width: 650px;
    margin: 0;
    color: #7f91a9;
    font-size: .78rem;
    line-height: 1.6;
}

.markets-panel-badge {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid rgba(210, 154, 43, .26);
    border-radius: 999px;
    color: #d5ad56;
    background: rgba(83, 59, 15, .08);
    font-size: .51rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.markets-slot-table-head {
    display: grid;
    grid-template-columns: minmax(185px, .7fr) minmax(0, 1.3fr);
    gap: 16px;
    padding: 10px 16px;
    border: 1px solid rgba(111, 141, 184, .09);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: rgba(13, 27, 48, .52);
}

.markets-slot-table-head span {
    color: #667a95;
    font-size: .53rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.markets-commercial-slots {
    overflow: hidden;
    border: 1px solid rgba(111, 141, 184, .11);
    border-radius: 0 0 9px 9px;
    background: rgba(4, 11, 20, .52);
}

.markets-commercial-slots .plan-card {
    display: grid;
    grid-template-columns: minmax(185px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 16px;
    padding: 15px 16px;
    border: 0;
    border-bottom: 1px solid rgba(111, 141, 184, .09);
    border-radius: 0;
    background: transparent;
}

.markets-commercial-slots .plan-card:last-child {
    border-bottom: 0;
}

.markets-commercial-slots .plan-card h3 {
    margin: 0;
    color: #dce6f2;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.4;
}

.markets-commercial-slots .form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.markets-commercial-slots select,
.markets-request-panel input {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    border: 1px solid rgba(111, 141, 184, .22);
    border-radius: 8px;
    background: #091525;
    color: #e7eef7;
    font: inherit;
    font-size: .76rem;
    outline: none;
}

.markets-commercial-slots select:focus,
.markets-request-panel input:focus {
    border-color: rgba(210, 154, 43, .58);
    box-shadow: 0 0 0 3px rgba(210, 154, 43, .08);
}

.markets-commercial-slots button,
.markets-request-panel button {
    min-height: 43px;
    padding: 0 14px;
    border: 1px solid rgba(210, 154, 43, .46);
    border-radius: 8px;
    background: rgba(103, 72, 16, .21);
    color: #efd17f;
    font-size: .72rem;
    font-weight: 850;
    white-space: nowrap;
}

.markets-commercial-slots button:hover,
.markets-request-panel button:hover {
    border-color: rgba(226, 179, 70, .7);
    background: rgba(126, 89, 21, .28);
}

.markets-request-heading {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(111, 141, 184, .1);
}

.markets-request-content {
    padding-top: 16px;
}

.markets-request-panel .subtitle {
    margin: 0;
    color: #7588a1;
    font-size: .73rem;
    line-height: 1.55;
}

.markets-request-create {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(111, 141, 184, .1);
}

.markets-request-create h3 {
    margin: 0 0 11px;
    color: #dce7f4;
    font-size: .88rem;
}

.markets-request-create .form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.markets-request-create .subtitle {
    margin-top: 10px;
}

.markets-request-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.markets-request-panel .market-request-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(111, 141, 184, .11);
    border-radius: 9px;
    background: rgba(11, 23, 40, .68);
}

.markets-request-panel .market-request-main {
    min-width: 0;
}

.markets-request-panel .market-request-main strong,
.markets-request-panel .markets-request-panel .market-request-main span {
    display: block;
    overflow-wrap: anywhere;
}

.markets-request-panel .market-request-main strong {
    color: #e2ebf5;
    font-size: .76rem;
}

.markets-request-panel .market-request-main span {
    margin-top: 4px;
    color: #6d8099;
    font-size: .65rem;
}

.markets-request-panel .market-request-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: #71849c;
    font-size: .62rem;
}

.markets-request-panel .market-request-status {
    padding: 4px 7px;
    border: 1px solid rgba(210, 154, 43, .22);
    border-radius: 999px;
    color: #d7af59;
    background: rgba(83, 59, 15, .07);
    font-weight: 800;
}

.markets-request-panel .market-request-card > form,
.markets-request-panel .market-request-card > .subtitle {
    grid-column: 1 / -1;
}

.markets-request-panel .market-request-card > form button {
    width: 100%;
}

.markets-commercial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 18px 2px 0;
    border-top: 1px solid rgba(111, 141, 184, .09);
}

.markets-commercial-footer div {
    display: grid;
    gap: 3px;
}

.markets-commercial-footer strong {
    color: #aab9cb;
    font-size: .67rem;
    letter-spacing: .12em;
}

.markets-commercial-footer span {
    color: #63758d;
    font-size: .65rem;
}

.markets-commercial-footer a {
    color: #c8a450;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .markets-commercial-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .markets-commercial-nav {
        display: none;
    }

    .markets-mobile-menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .markets-commercial-header.mobile-menu-open
    .markets-commercial-nav {
        grid-column: 1 / -1;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 0 4px;
    }

    .markets-commercial-header.mobile-menu-open
    .markets-commercial-nav a {
        min-width: 0;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid rgba(111, 141, 184, .18);
        border-radius: 9px;
        background: rgba(13, 27, 48, .72);
    }

    .markets-commercial-header.mobile-menu-open
    .markets-commercial-nav a.is-active::after {
        left: 12px;
        right: 12px;
    }

    .markets-commercial-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .markets-commercial-workspace {
        grid-template-columns: 1fr;
    }

    .markets-request-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .markets-commercial-header {
        padding: 14px 18px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 13px;
    }

    .markets-account-return {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        justify-content: center;
    }

    .markets-commercial-header.mobile-menu-open
    .markets-commercial-nav {
        grid-template-columns: 1fr;
    }

    .markets-commercial-header.mobile-menu-open
    .markets-commercial-nav a {
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
    }

    .markets-commercial-main {
        width: calc(100% - 28px);
        padding-top: 27px;
    }

    .markets-commercial-hero {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 24px;
    }

    .markets-commercial-state {
        width: 100%;
    }

    .markets-commercial-summary {
        grid-template-columns: 1fr;
    }

    .markets-selected-panel,
    .markets-request-panel {
        padding: 17px;
    }

    .markets-panel-header {
        flex-direction: column;
    }

    .markets-panel-badge {
        align-self: flex-start;
    }

    .markets-slot-table-head {
        display: none;
    }

    .markets-commercial-slots {
        border-radius: 9px;
    }

    .markets-commercial-slots .plan-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .markets-commercial-slots .form-grid,
    .markets-request-create .form-grid {
        grid-template-columns: 1fr;
    }

    .markets-commercial-slots button,
    .markets-request-panel button {
        width: 100%;
    }

    .markets-request-panel .market-request-card {
        grid-template-columns: 1fr;
    }

    .markets-request-panel .market-request-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .markets-commercial-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .markets-commercial-brand strong {
        font-size: .82rem;
    }

    .markets-commercial-brand small {
        font-size: .51rem;
        letter-spacing: .10em;
    }

    .markets-commercial-mark {
        width: 38px;
        height: 38px;
    }

    .markets-mobile-menu-toggle {
        padding: 0 12px;
    }
}


/* =========================================================
   TEEWAI SIGNED-IN MOBILE NAVIGATION
   REV30A8
   Scoped to Dashboard + Account only.
   ========================================================= */

.command-nav-v21 .portal-mobile-menu-toggle,
.account-nav-v2 .portal-mobile-menu-toggle {
    display: none;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(67, 220, 179, 0.42);
    border-radius: 9px;
    color: #dffbf3;
    background: rgba(5, 33, 27, 0.62);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.command-nav-v21 .portal-mobile-navigation,
.account-nav-v2 .portal-mobile-navigation {
    display: none;
}

@media (max-width: 780px) {

    .command-nav-v21 .command-nav-inner-v21,
    .account-nav-v2 .account-nav-inner-v2 {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .command-nav-v21
    .portal-mobile-menu-toggle,
    .account-nav-v2
    .portal-mobile-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .command-nav-v21
    .portal-mobile-navigation,
    .account-nav-v2
    .portal-mobile-navigation {
        order: 50;
        width: 100%;
        flex-basis: 100%;
    }

    .command-nav-v21.portal-mobile-menu-open
    .portal-mobile-navigation,
    .account-nav-v2.portal-mobile-menu-open
    .portal-mobile-navigation {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 0 4px;
    }

    .command-nav-v21
    .portal-mobile-navigation a,
    .account-nav-v2
    .portal-mobile-navigation a {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 13px;
        border: 1px solid rgba(67, 220, 179, 0.15);
        border-radius: 9px;
        color: #b9c9c4;
        background: rgba(4, 22, 18, 0.72);
        text-decoration: none;
        font-size: 0.84rem;
        font-weight: 750;
    }

    .command-nav-v21
    .portal-mobile-navigation a.is-active,
    .account-nav-v2
    .portal-mobile-navigation a.is-active {
        color: #ffffff;
        border-color: rgba(67, 220, 179, 0.42);
        background: rgba(9, 55, 45, 0.72);
    }
}

@media (max-width: 520px) {

    .command-nav-v21
    .portal-mobile-menu-toggle,
    .account-nav-v2
    .portal-mobile-menu-toggle {
        padding-left: 11px;
        padding-right: 11px;
    }

    .account-nav-v2
    .account-dashboard-link-v2 {
        display: none;
    }
}



/* TEEWAI TRUE STANDALONE HOME — MOBILE VISIBILITY CONTRACT
   Home is a persistent header action, never a menu item. */
@media (max-width: 1180px) {
    .command-nav-v21 .teewai-standalone-home,
    .account-nav-v2 .teewai-standalone-home,
    .markets-commercial-header .teewai-standalone-home {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 11px;
        white-space: nowrap;
    }
}


/* TEEWAI TRUE HOME — COMPACT MOBILE HEADER CONTRACT
   Home remains a header action; it must never become a
   full-width navigation row. */
@media (max-width: 760px) {

    .command-nav-v21 .teewai-standalone-home,
    .account-nav-v2 .teewai-standalone-home,
    .markets-commercial-header .teewai-standalone-home {
        width: auto !important;
        min-width: 0 !important;
        min-height: 40px !important;
        padding: 0 10px !important;
        margin-left: auto;
        flex: 0 0 auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: end !important;
        align-self: center !important;
        white-space: nowrap;
    }

    .markets-commercial-header {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            auto !important;
    }

    .markets-commercial-header
    > .markets-account-return:not(.teewai-standalone-home) {
        grid-column: 1 / -1;
    }
}


/* TEEWAI MY MARKETS — MOBILE HEADER RELEASE CONTRACT
   My Markets navigation must not remain locked while the
   subscriber scrolls. Home remains a compact header icon. */
@media (max-width: 760px) {

    .markets-commercial-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        grid-template-columns:
            minmax(0, 1fr)
            auto
            auto !important;

        align-items: center !important;
    }

    .markets-commercial-header
    .teewai-standalone-home.teewai-home-icon {
        display: inline-flex !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;

        align-items: center !important;
        justify-content: center !important;

        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: end !important;

        border: 1px solid rgba(210, 154, 43, .55);
        border-radius: 9px;
        background: rgba(75, 52, 12, .12);
        color: #ebc76b;

        text-decoration: none;
        font-size: 1.25rem;
        font-weight: 850;
        line-height: 1;
    }

    .markets-commercial-header
    .markets-mobile-menu-toggle {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        justify-self: end !important;
    }

    .markets-commercial-header
    > .markets-account-return:not(.teewai-standalone-home) {
        grid-column: 1 / -1 !important;
        width: auto;
    }
}


/* TEEWAI MY MARKETS — STICKY COMPACT MOBILE HEADER CONTRACT
   Only brand + Home + Menu stay accessible while scrolling.
   Return-to-account is ordinary scrolling page content. */
@media (max-width: 760px) {

    .markets-commercial-header {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 50 !important;

        grid-template-columns:
            minmax(0, 1fr)
            42px
            auto !important;

        align-items: center !important;
        gap: 10px !important;

        min-height: 64px !important;
        padding: 10px 14px !important;
    }

    .markets-commercial-header
    .teewai-standalone-home.teewai-home-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        justify-self: end !important;
    }

    .markets-commercial-header
    .markets-mobile-menu-toggle {
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 0 11px !important;
        margin: 0 !important;
        justify-self: end !important;
    }

    .markets-mobile-account-return-wrap {
        width: calc(100% - 28px);
        margin: 16px auto 0;
    }

    .markets-mobile-account-return-wrap
    .markets-account-return {
        width: 100%;
        box-sizing: border-box;
        display: inline-flex;
        justify-content: center;
    }

    .markets-commercial-header.mobile-menu-open
    .markets-commercial-nav {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
}


/* TEEWAI MY MARKETS — MOBILE INTERACTIVE HIT LAYER
   Home and Menu must remain the authoritative tap targets
   while the compact header is sticky. */
@media (max-width: 760px) {

    .markets-commercial-header {
        z-index: 1000 !important;
        isolation: isolate !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }

    .markets-commercial-header
    .markets-commercial-brand {
        position: relative !important;
        z-index: 1001 !important;
        pointer-events: auto !important;
    }

    .markets-commercial-header
    .teewai-standalone-home.teewai-home-icon {
        position: relative !important;
        z-index: 1010 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    .markets-commercial-header
    .markets-mobile-menu-toggle {
        position: relative !important;
        z-index: 1010 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    .markets-commercial-header
    .markets-commercial-nav {
        position: relative;
        z-index: 1005;
    }

    .markets-commercial-header.mobile-menu-open
    .markets-commercial-nav {
        pointer-events: auto !important;
    }

    .markets-commercial-header.mobile-menu-open
    .markets-commercial-nav a {
        position: relative;
        z-index: 1006;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
}

/* TEEWAI UNIFIED MEMBER HEADER V1 */

.account-nav-v2,
.markets-commercial-header{
 min-height:78px;
 border-bottom:1px solid rgba(70,221,183,.10);
 background:rgba(2,7,6,.92);
 backdrop-filter:blur(18px);
}

/* ACCOUNT */
.account-nav-inner-v2{
 width:min(1540px,calc(100% - 44px));
 min-height:78px;
 gap:28px;
}
.account-brand-v2{gap:13px}
.account-brand-v2 img{
 width:54px!important;height:54px!important;
 object-fit:contain;
 transform:scale(1.55);
 transform-origin:center;
}
.account-brand-v2 strong{
 color:#f3f9f7;font-size:1rem;
 font-weight:900;letter-spacing:.13em;
}
.account-brand-v2 small{
 margin-top:6px;color:#47d9b1;
 font-size:.56rem;font-weight:850;
 letter-spacing:.17em;
}

/* MY MARKETS */
.markets-commercial-header{
 grid-template-columns:minmax(230px,1fr) auto auto;
 gap:28px;
 padding:0 max(22px,calc((100% - 1540px)/2));
}
.markets-commercial-brand{gap:13px}
.markets-commercial-mark{
 width:54px;height:54px;
 object-fit:contain;
 transform:scale(1.55);
 transform-origin:center;
}
.markets-commercial-brand span{
 display:flex;flex-direction:column;
 gap:0;line-height:1;
}
.markets-commercial-brand strong{
 color:#f3f9f7;font-size:1rem;
 font-weight:900;letter-spacing:.13em;
}
.markets-commercial-brand small{
 margin-top:6px;color:#47d9b1;
 font-size:.56rem;font-weight:850;
 letter-spacing:.17em;
}
.markets-commercial-nav{gap:8px}
.markets-commercial-nav a{
 min-height:42px;padding:0 15px;
 border:1px solid rgba(255,255,255,.07);
 border-radius:9px;color:#98aca5;
 background:rgba(255,255,255,.014);
 font-size:.74rem;font-weight:850;
}
.markets-commercial-nav a.is-active{
 color:#62dfba;
 border-color:rgba(61,216,176,.20);
 background:rgba(33,151,119,.045);
}
.markets-commercial-nav a.is-active::after{display:none}
.markets-commercial-nav a:hover,
.markets-commercial-nav a:focus-visible{
 color:#dffbf3;
 background:rgba(33,151,119,.045);
}
.markets-mobile-menu-toggle{
 border-color:rgba(67,220,179,.42);
 color:#dffbf3;
 background:rgba(5,33,27,.62);
}

@media(max-width:1180px){
 .markets-commercial-header{padding:10px 22px}
 .markets-commercial-header.mobile-menu-open
 .markets-commercial-nav a{
  color:#b9c9c4;
  border-color:rgba(67,220,179,.15);
  background:rgba(4,22,18,.72);
 }
 .markets-commercial-header.mobile-menu-open
 .markets-commercial-nav a.is-active{
  color:#fff;
  border-color:rgba(67,220,179,.42);
  background:rgba(9,55,45,.72);
 }
}


/* =========================================================
   TEEWAI AUTH HEADER VISUAL V1
   Shared authority: Signup + Signin
   ========================================================= */

.auth-nav {
    min-height: 78px;
    padding: 0 max(22px, calc((100% - 1540px) / 2));
    border-bottom: 1px solid rgba(70,221,183,.10);
    background: rgba(2,7,6,.92);
    backdrop-filter: blur(18px);
}

.auth-logo {
    width: 78px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.auth-logo img,
.signup-auth-page .auth-logo img {
    width: 54px !important;
    height: 54px !important;
    display: block;
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(1.55) !important;
    transform-origin: center !important;
}

.auth-nav-link {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(61,216,176,.20);
    border-radius: 9px;
    color: #dffbf3;
    background: rgba(33,151,119,.045);
    font-size: .74rem;
    font-weight: 850;
}

@media (max-width: 680px) {
    .auth-nav {
        min-height: 78px;
        padding: 0 17px;
    }

    .auth-logo,
    .signup-auth-page .auth-logo {
        width: 64px !important;
        height: 58px !important;
    }

    .auth-logo img,
    .signup-auth-page .auth-logo img {
        width: 48px !important;
        height: 48px !important;
        transform: scale(1.45) !important;
    }
}


/* =========================================================
   TEEWAI AUTH BRAND V2
   Official mark + unified wordmark
   ========================================================= */

.auth-logo,
.signup-auth-page .auth-logo {
    width: auto !important;
    height: 64px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 13px;
    overflow: visible !important;
    color: #ffffff;
    text-decoration: none;
}

.auth-logo img,
.signup-auth-page .auth-logo img {
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px;
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(1.55) !important;
    transform-origin: center !important;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.auth-brand-copy strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.auth-brand-copy small {
    margin-top: 6px;
    color: #47d9b1;
    font-size: .56rem;
    font-weight: 850;
    letter-spacing: .17em;
}

@media (max-width: 680px) {
    .auth-logo,
    .signup-auth-page .auth-logo {
        width: auto !important;
        height: 58px !important;
        gap: 10px;
    }

    .auth-logo img,
    .signup-auth-page .auth-logo img {
        width: 48px !important;
        height: 48px !important;
        flex-basis: 48px;
        transform: scale(1.45) !important;
    }

    .auth-brand-copy strong {
        font-size: .86rem;
    }

    .auth-brand-copy small {
        margin-top: 5px;
        font-size: .50rem;
    }
}

/* =========================================================
   TEEWAI AUTH BRAND V2 FIX1
   Official mark geometry correction
   ========================================================= */

.auth-logo img,
.signup-auth-page .auth-logo img {
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

@media (max-width: 680px) {
    .auth-logo img,
    .signup-auth-page .auth-logo img {
        width: 48px !important;
        height: 48px !important;
        flex-basis: 48px !important;
        transform: none !important;
    }
}

/* =========================================================
   TEEWAI AUTH BRAND V3 FINAL
   Canonical auth identity
   ========================================================= */

.auth-nav .auth-logo,
.auth-nav .auth-logo:link,
.auth-nav .auth-logo:visited,
.auth-nav .auth-logo:hover,
.auth-nav .auth-logo:active {
    width: auto !important;
    height: 64px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    overflow: visible !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.auth-nav .auth-logo img {
    width: 62px !important;
    height: 62px !important;
    flex: 0 0 62px !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

.auth-nav .auth-brand-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.auth-nav .auth-brand-copy strong,
.auth-nav .auth-logo:link .auth-brand-copy strong,
.auth-nav .auth-logo:visited .auth-brand-copy strong,
.auth-nav .auth-logo:hover .auth-brand-copy strong,
.auth-nav .auth-logo:active .auth-brand-copy strong {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    letter-spacing: .13em !important;
}

.auth-nav .auth-brand-copy small,
.auth-nav .auth-logo:link .auth-brand-copy small,
.auth-nav .auth-logo:visited .auth-brand-copy small,
.auth-nav .auth-logo:hover .auth-brand-copy small,
.auth-nav .auth-logo:active .auth-brand-copy small {
    margin-top: 6px !important;
    color: #47d9b1 !important;
    text-decoration: none !important;
    font-size: .56rem !important;
    font-weight: 850 !important;
    letter-spacing: .17em !important;
}

@media (max-width: 680px) {
    .auth-nav .auth-logo,
    .auth-nav .auth-logo:link,
    .auth-nav .auth-logo:visited {
        height: 58px !important;
        gap: 11px !important;
    }

    .auth-nav .auth-logo img {
        width: 54px !important;
        height: 54px !important;
        flex-basis: 54px !important;
    }

    .auth-nav .auth-brand-copy strong {
        font-size: .86rem !important;
    }

    .auth-nav .auth-brand-copy small {
        margin-top: 5px !important;
        font-size: .50rem !important;
    }
}


/* =========================================================
   TEEWAI AUTH DASHBOARD PARITY V1
   Dashboard brand treatment is canonical.
   ========================================================= */

.auth-nav {
    min-height: 78px !important;
    padding: 0 max(22px, calc((100% - 1540px) / 2)) !important;
    border-bottom: 1px solid rgba(70,221,183,0.10) !important;
    background: rgba(2,7,6,0.92) !important;
    backdrop-filter: blur(18px) !important;
}

.auth-nav .auth-logo,
.auth-nav .auth-logo:link,
.auth-nav .auth-logo:visited,
.auth-nav .auth-logo:hover,
.auth-nav .auth-logo:active {
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 13px !important;
    overflow: visible !important;
    color: inherit !important;
    text-decoration: none !important;
}

.auth-nav .auth-logo img {
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;
    object-fit: contain !important;
    transform: scale(1.55) !important;
    transform-origin: center !important;
}

.auth-nav .auth-brand-copy {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1 !important;
}

.auth-nav .auth-brand-copy strong,
.auth-nav .auth-logo:visited .auth-brand-copy strong {
    color: #f3f9f7 !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.13em !important;
    text-decoration: none !important;
}

.auth-nav .auth-brand-copy small,
.auth-nav .auth-logo:visited .auth-brand-copy small {
    margin-top: 6px !important;
    color: #47d9b1 !important;
    font-size: 0.56rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.17em !important;
    text-decoration: none !important;
}

@media (max-width: 680px) {
    .auth-nav {
        padding: 0 17px !important;
    }
}

/* TEEWAI MEMBER BRAND CONSISTENCY V1 */
.markets-commercial-brand,
.account-brand-v2,
.site-nav .brand {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:13px!important;
    min-width:max-content;
    text-decoration:none!important;
}

.markets-commercial-brand img,
.account-brand-v2 img,
.site-nav .brand img {
    width:54px!important;
    height:54px!important;
    flex:0 0 54px!important;
    object-fit:contain!important;
    transform:scale(1.55)!important;
    transform-origin:center!important;
}

.markets-commercial-brand span,
.account-brand-v2 span,
.site-nav .brand-copy {
    display:flex!important;
    flex-direction:column!important;
    line-height:1!important;
}

.markets-commercial-brand strong,
.account-brand-v2 strong,
.site-nav .brand-copy strong {
    color:#f3f9f7!important;
    font-size:1rem!important;
    font-weight:900!important;
    letter-spacing:.13em!important;
    text-decoration:none!important;
}

.markets-commercial-brand small,
.account-brand-v2 small,
.site-nav .brand-copy small {
    margin-top:6px!important;
    color:#47d9b1!important;
    font-size:.56rem!important;
    font-weight:850!important;
    letter-spacing:.17em!important;
    text-decoration:none!important;
}

.markets-commercial-header,
.account-nav-v2,
.site-nav {
    min-height:78px!important;
}

/* TEEWAI Signup Feedback Visibility V1 */
.auth-feedback {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(45, 212, 191, 0.45);
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.10);
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 600;
}

.auth-feedback:empty {
    display: none;
}


/* ==========================================================
   TEEWAI MONTHLY PERFORMANCE V1
   Subscriber-specific historical performance presentation.
   ========================================================== */

.monthly-performance-panel {
    width: 100%;
    min-width: 0;
    margin: 18px 0 22px;
    padding: 20px;
    border: 1px solid rgba(83, 203, 190, 0.18);
    border-radius: 16px;
    background: rgba(7, 19, 24, 0.72);
    box-sizing: border-box;
    overflow: hidden;
}

.monthly-performance-panel .section-heading {
    margin-bottom: 16px;
}

.monthly-performance-panel .section-heading h2 {
    margin: 0;
}

.monthly-performance-panel .subtitle {
    margin: 6px 0 0;
}

.monthly-performance-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.monthly-performance-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.monthly-performance-table th,
.monthly-performance-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    white-space: nowrap;
}

.monthly-performance-table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.72;
}

.monthly-performance-table td {
    font-size: 0.92rem;
}

.monthly-performance-table th:not(:first-child),
.monthly-performance-table td:not(:first-child) {
    text-align: right;
}

.monthly-performance-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 720px) {
    .monthly-performance-panel {
        margin: 14px 0 18px;
        padding: 16px;
        border-radius: 14px;
    }

    .monthly-performance-table th,
    .monthly-performance-table td {
        padding: 11px 10px;
    }
}
