        body { overflow-x: clip; }

        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 6px);
            opacity: 0.6;
            pointer-events: none;
            z-index: -1;
            mix-blend-mode: lighten;
        }

        .main-content {
            padding: 0 clamp(1.25rem, 3vw, 3rem) 2rem;
            max-width: 1760px;
            margin-left: auto;
            margin-right: auto;
        }

        /* ─── Mission Control Hero ─── */
        .dmc-greeting {
            position: relative;
            padding: 7rem clamp(1.25rem, 3vw, 3rem) 1.75rem;
        }

        .dmc-greeting-inner {
            position: relative;
            max-width: 1760px;
            margin: 0 auto;
        }

        .dmc-greeting-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1.5rem;
            margin-bottom: 1.15rem;
        }

        .dmc-greeting-left { flex: 1; min-width: 0; }

        .dmc-greeting-eyebrow {
            font-size: 0.6rem;
            font-weight: 800;
            letter-spacing: 0.17em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.38);
            margin-bottom: 0.5rem;
        }

        .dmc-greeting h1 {
            font-size: clamp(1.45rem, 2.4vw, 1.9rem);
            font-weight: 900;
            color: rgba(255,255,255,0.95);
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        .dmc-greeting h1 em {
            font-style: normal;
            background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 55%, var(--primary-gold) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .dmc-glance-chips {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
            /* Sit on the greeting line (h1), not the date eyebrow above it. */
            align-self: flex-end;
        }

        .dmc-glance-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            background: rgba(10,14,22,0.6);
            border: 1px solid rgba(201,176,55,0.16);
            border-radius: 999px;
            padding: 0.3rem 0.75rem;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
        }

        .dmc-glance-k {
            font-size: 0.5rem;
            font-weight: 800;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.38);
            white-space: nowrap;
        }

        .dmc-glance-v {
            font-size: 0.78rem;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            color: rgba(255,255,255,0.9);
            display: flex;
            align-items: center;
            gap: 0.35rem;
            white-space: nowrap;
        }

        .dmc-glance-sub {
            font-size: 0.56rem;
            font-weight: 600;
            color: rgba(255,255,255,0.35);
            white-space: nowrap;
        }

        .market-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .market-dot.open {
            background: var(--success-green);
            box-shadow: 0 0 6px var(--success-green);
            animation: marketPulse 2s ease-in-out infinite;
        }

        .market-dot.closed { background: rgba(255,255,255,0.22); }

        .market-dot.pre {
            background: #e8c66a;
            box-shadow: 0 0 6px rgba(232,198,106,0.5);
        }

        @keyframes marketPulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--success-green); }
            50%       { opacity: 0.45; box-shadow: 0 0 10px var(--success-green); }
        }

        /* Session rail: the trading day drawn under the greeting */
        .dmc-session-rail-wrap { position: relative; }

        .dmc-session-rail {
            height: 4px;
            border-radius: 99px;
            overflow-x: clip;
            background: rgba(255,255,255,0.06);
        }

        .dmc-session-fill {
            height: 100%;
            width: 0;
            border-radius: 99px;
            background: rgba(201,176,55,0.55);
        }

        .dmc-session-cursor {
            position: absolute;
            top: -3px;
            left: 0;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            transform: translateX(-50%);
            background: var(--secondary-gold);
            box-shadow: 0 0 0 3px rgba(201,176,55,0.15);
        }

        .dmc-session-rail-wrap.closed .dmc-session-cursor { display: none; }

        .dmc-session-marks {
            display: flex;
            justify-content: space-between;
            margin-top: 0.5rem;
        }

        .dmc-session-mark {
            font-size: 0.56rem;
            font-weight: 800;
            letter-spacing: 0.13em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.3);
        }

        .dmc-session-mark.now { color: rgba(201,176,55,0.9); }

        /* ─── Unusual Activity Monitor section (primary home; dark-pool.html stays live) ─── */
        .dash-darkpool {
            padding: 0 clamp(1.25rem, 3vw, 3rem) 2rem;
            max-width: 1760px;
            margin-left: auto;
            margin-right: auto;
        }

        .ddp-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.35rem 1rem;
            margin-bottom: 0.35rem;
        }

        .ddp-title-wrap {
            display: flex;
            align-items: baseline;
            gap: 0.6rem;
            min-width: 0;
        }

        .dash-darkpool .section-title-premium {
            font-size: 1rem;
            text-transform: uppercase;
        }

        .dash-darkpool .dp-table th,
        .dash-darkpool .dp-table td,
        .dash-darkpool .dp-table .dp-num { text-align: center; }
        .dash-darkpool .dp-table .dp-spark-cell { text-align: center; }
        .dash-darkpool .dp-table .dp-spark { margin-inline: auto; }

        .ddp-scope {
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--primary-gold, #b3a17d);
            border: 1px solid rgba(179, 161, 125, 0.35);
            border-radius: 999px;
            padding: 0.15rem 0.55rem;
            white-space: nowrap;
        }

        .ddp-asof {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.45);
            white-space: nowrap;
        }

        /* ─── Mission panels ─── */
        .dmc-panels-outer {
            padding: 0 2rem 1.75rem;
        }

        .dmc-panels {
            max-width: 1760px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
            gap: 1.25rem;
        }

        .main-content .dmc-panels-outer {
            padding: 0 0 1.25rem;
        }

        .main-content .dmc-panels {
            max-width: none;
        }

        .dmc-panel {
            background: rgba(10, 14, 22, 0.65);
            border: 1px solid rgba(201,176,55,0.18);
            border-radius: 16px;
            padding: 1.25rem 1.35rem 1rem;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            flex-direction: column;
            min-height: 196px;
        }

        .dmc-panel-header {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.4);
        }

        .dmc-panel-header i { color: var(--primary-gold); font-size: 0.7rem; }

        /* Premium treatment for section headers (text-only, no leading icons) */
        .section-title-premium {
            position: relative;
            display: inline-block;
            font-weight: 800;
            letter-spacing: 0.06em;
            line-height: 1.1;
            color: rgba(236, 228, 209, 0.95);
            text-shadow: 0 1px 10px rgba(201, 176, 55, 0.12);
            padding-bottom: 0.22rem;
        }

        .section-title-premium::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, rgba(201,176,55,0.75), rgba(226,207,181,0.12));
        }

        .dmc-panel-header .section-title-premium {
            font-size: 0.74rem;
            text-transform: uppercase;
        }

        .bento-card-title.section-title-premium {
            font-size: 1rem;
            margin-bottom: 0;
            color: rgba(236, 228, 209, 0.95);
        }

        .dmc-count-badge {
            margin-left: auto;
            background: rgba(201,176,55,0.1);
            border: 1px solid rgba(201,176,55,0.22);
            color: var(--primary-gold);
            border-radius: 20px;
            font-size: 0.6rem;
            padding: 0.1rem 0.5rem;
            font-weight: 700;
            letter-spacing: 0.04em;
        }

        .dmc-panel-divider {
            border: none;
            border-top: 1px solid rgba(255,255,255,0.06);
            margin: 0.65rem 0;
        }

        /* Signals panel */
        .dmc-signal-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.28rem 0;
        }

        .dmc-ticker {
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            padding: 0.15rem 0.5rem;
            border-radius: 6px;
            background: rgba(201,176,55,0.1);
            color: var(--primary-gold);
            border: 1px solid rgba(201,176,55,0.22);
            min-width: 44px;
            text-align: center;
        }

        .dmc-dir {
            font-size: 0.66rem;
            font-weight: 700;
            padding: 0.12rem 0.42rem;
            border-radius: 20px;
        }

        .dmc-dir.call { color: #4ade80; background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.2); }
        .dmc-dir.put  { color: #f87171; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2); }

        .dmc-empty {
            font-size: 0.78rem;
            color: rgba(255,255,255,0.22);
            text-align: center;
            padding: 0.75rem 0;
            margin: 0;
        }

        .dmc-week-label {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.28);
            margin-top: 0.1rem;
        }

        /* Market Pulse panel */
        .dmc-score-num {
            font-size: 2.1rem;
            font-weight: 900;
            line-height: 1;
            letter-spacing: -0.03em;
            background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 0.15rem;
        }

        .dmc-trend-label {
            font-size: 0.78rem;
            font-weight: 600;
            color: rgba(255,255,255,0.55);
        }

        .dmc-pulse-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
        }

        .dmc-market-countdown {
            font-size: 0.72rem;
            font-weight: 600;
            color: rgba(255,255,255,0.4);
        }

        /* Market Pulse panel — chart layout */
        .pulse-panel { min-height: 300px; }

        .pulse-panel .pulse-top-row {
            display: flex;
            align-items: baseline;
            gap: 0.7rem;
        }

        .pulse-panel .dmc-score-num {
            margin-bottom: 0;
            font-size: 2rem;
        }

        .pulse-panel .dmc-trend-label { font-weight: 600; }

        .pulse-mobile-symbol,
        .pulse-header-status,
        .pulse-label-mobile {
            display: none;
        }

        .pulse-change-stack {
            display: inline-flex;
            align-items: baseline;
            gap: 0.22rem;
        }

        .pulse-change-period {
            color: rgba(255,255,255,0.35);
            font-size: 0.85em;
            font-weight: 500;
        }

        .pulse-change-value {
            font-size: 1.15em;
            font-weight: 800;
        }

        .pulse-sentiment {
            font-weight: 700;
        }

        .ma-dot {
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            margin-right: 0.3rem;
            vertical-align: middle;
        }

        #pulse-chart {
            width: 100%;
            flex: 1 1 auto;
            min-height: 170px;
            margin: 0.35rem 0 0.2rem;
            position: relative;
        }

        /* Portfolio panel */
        .dmc-stat-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.28rem 0;
        }

        .dmc-stat-label {
            font-size: 0.66rem;
            color: rgba(255,255,255,0.35);
            font-weight: 600;
            letter-spacing: 0.02em;
        }

        .dmc-stat-val {
            font-size: 0.8rem;
            font-weight: 800;
            color: rgba(255,255,255,0.8);
        }

        .dmc-panel-footer {
            display: block;
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--primary-gold);
            text-decoration: none;
            letter-spacing: 0.02em;
            transition: opacity 0.2s;
            margin-top: auto;
            padding-top: 0.5rem;
        }

        .dmc-panel-footer:hover { opacity: 0.7; }

        /* ---- Bento grid ---- */
        .bento-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.25rem;
            min-width: 0;
        }

        /* Every direct child of the grid must be constrained to its column */
        .bento-grid > * { min-width: 0; }

        .bento-card {
            background: rgba(10, 14, 22, 0.7);
            border: 1px solid rgba(201, 176, 55, 0.18);
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
            min-width: 0;       /* prevent grid item from expanding past column width */
            overflow-x: clip;   /* ensure nothing escapes the card boundary */
        }

        .bento-card-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary-gold);
            margin-bottom: 1.1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .bento-card-title i { font-size: 0.95rem; }

        /* ---- Stock table ---- */
        .card-stocks { grid-column: 1 / -1; overflow-x: clip; }

        /* Expandable channel row: column container = compact main + collapsible detail */
        .stock-row {
            display: flex;
            flex-direction: column;
            padding: 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

        .stock-row:last-child { border-bottom: none; }

        .stock-row-main {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.7rem 0.55rem;
            cursor: pointer;
            border-radius: 10px;
            transition: background 0.18s;
        }

        .stock-row-main:hover { background: rgba(255, 255, 255, 0.025); }

        /* Live quote (price + day change) shown on the compact row */
        .sc-quote {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            line-height: 1.15;
            min-width: 78px;
            flex-shrink: 0;
        }
        .sc-price  { font-size: 0.85rem; font-weight: 800; color: var(--light-text); }
        .sc-change { font-size: 0.7rem;  font-weight: 700; }
        .sc-change.up   { color: #4ade80; }
        .sc-change.down { color: #f87171; }
        .sc-quote.loading .sc-price,
        .sc-quote.loading .sc-change { color: rgba(255,255,255,0.25); }

        .sc-chevron {
            color: rgba(255,255,255,0.3);
            font-size: 0.72rem;
            transition: transform 0.22s, color 0.22s;
            flex-shrink: 0;
            width: 14px;
            text-align: center;
        }
        .stock-row.expanded .sc-chevron { transform: rotate(180deg); color: var(--primary-gold); }

        /* Collapsible detail panel */
        .stock-row-detail {
            max-height: 0;
            overflow-x: clip;
            overflow-y: hidden; /* clips collapsed accordion content (max-height:0) */
            transition: max-height 0.3s ease;
        }
        .stock-row.expanded .stock-row-detail { max-height: 560px; }

        .sc-detail-inner { padding: 0.1rem 0.55rem 0.95rem; }

        .sc-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
        .sc-stat {
            flex: 1; min-width: 92px;
            background: rgba(15,19,32,0.6);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 10px;
            padding: 0.5rem 0.7rem;
        }
        .sc-stat-label {
            font-size: 0.57rem; text-transform: uppercase; letter-spacing: 0.05em;
            color: rgba(255,255,255,0.35); font-weight: 600; margin-bottom: 0.22rem;
        }
        .sc-stat-val { font-size: 1.05rem; font-weight: 800; color: var(--light-text); line-height: 1; }
        .sc-stat-val.pos { color: #4ade80; }
        .sc-stat-val.neg { color: #f87171; }
        .sc-stat-sub { font-size: 0.56rem; color: rgba(255,255,255,0.3); margin-top: 0.2rem; }

        .sc-recent-label {
            font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em;
            color: rgba(255,255,255,0.35); font-weight: 700; margin-bottom: 0.45rem;
        }
        .sc-recent-list { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.85rem; }
        .sc-recent-dir { font-weight: 700; padding: 0.1rem 0.42rem; border-radius: 5px; font-size: 0.62rem; flex-shrink: 0; }
        .sc-recent-dir.call { color: #4ade80; background: rgba(74,222,128,0.1); }
        .sc-recent-dir.put  { color: #f87171; background: rgba(248,113,113,0.1); }
        .sc-recent-status { color: rgba(255,255,255,0.6); font-weight: 600; white-space: nowrap; }
        .sc-recent-status.open  { color: #4ade80; }
        .sc-recent-status.win   { color: #4ade80; }
        .sc-recent-status.loss  { color: #f87171; }
        .sc-recent-date { color: rgba(255,255,255,0.3); font-size: 0.66rem; white-space: nowrap; }
        .sc-recent-empty { font-size: 0.72rem; color: rgba(255,255,255,0.25); padding: 0.2rem 0; }

        /* Recent-trade row: dir · contract · premium/expiry/exit · status · date, expands to reasons */
        .sc-trade {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 8px;
            overflow-x: clip;
        }
        .sc-trade-head {
            width: 100%;
            display: flex; align-items: center; gap: 0.5rem;
            padding: 0.38rem 0.55rem;
            background: transparent; border: 0; color: inherit;
            font-size: 0.72rem; font-family: inherit; text-align: left; cursor: pointer;
        }
        .sc-trade-head:hover { background: rgba(255,255,255,0.03); }
        .sc-trade-contract { font-weight: 700; color: rgba(255,255,255,0.88); white-space: nowrap; }
        .sc-trade-meta {
            flex: 1; min-width: 0;
            font-size: 0.66rem; color: rgba(255,255,255,0.42);
            overflow-x: clip; text-overflow: ellipsis; white-space: nowrap;
        }
        .sc-trade-chev {
            font-size: 0.6rem; color: rgba(255,255,255,0.3);
            transition: transform 0.22s, color 0.22s; flex-shrink: 0;
        }
        .sc-trade.expanded .sc-trade-chev { transform: rotate(180deg); color: var(--primary-gold); }
        .sc-trade-expand { display: none; padding: 0.15rem 0.55rem 0.6rem; }
        .sc-trade.expanded .sc-trade-expand { display: flex; flex-direction: column; gap: 0.5rem; }
        .sc-trade-reason {
            position: relative;
            padding: 0.55rem 0.65rem;
            border-radius: 8px;
            border: 1px solid rgba(179, 161, 125, 0.12);
            background: rgba(8, 11, 15, 0.55);
        }
        .sc-trade-reason:has(.sc-trade-fence) { padding-bottom: 1.25rem; }
        .sc-trade-reason-label {
            font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.08em;
            color: rgba(179, 161, 125, 0.85); font-weight: 700; margin-bottom: 0.35rem;
        }
        .sc-trade-story { font-size: 0.72rem; line-height: 1.55; color: rgba(220, 224, 230, 0.92); margin: 0; }
        .sc-trade-story.muted { color: rgba(255,255,255,0.38); }
        .sc-trade-fence {
            position: absolute; right: 0.65rem; bottom: 0.4rem;
            font-size: 0.5rem; letter-spacing: 0.02em;
            color: rgba(255,255,255,0.24); font-weight: 500; line-height: 1.2;
            pointer-events: none; user-select: none;
        }

        .sc-detail-actions {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .stock-ticker-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
            border: 1px solid transparent;
        }

        .stock-info {
            flex: 1;
            min-width: 0;
        }

        .stock-info .ticker {
            font-weight: 700;
            font-size: 0.92rem;
            color: var(--light-text);
        }

        .stock-info .name {
            font-size: 0.78rem;
            color: var(--gray-text);
        }

        .stock-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-shrink: 0;
        }

        .stock-actions .tg-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.3rem 0.7rem;
            border: 1px solid rgba(201, 176, 55, 0.3);
            border-radius: 8px;
            color: var(--primary-gold);
            font-size: 0.75rem;
            font-weight: 600;
            text-decoration: none;
            background: transparent;
            transition: background 0.2s, border-color 0.2s;
            white-space: nowrap;
        }

        .stock-actions .tg-btn:hover {
            background: rgba(201, 176, 55, 0.1);
            border-color: var(--primary-gold);
        }

        .stock-actions .tg-btn i { font-size: 0.8rem; }

        .stock-actions .signals-link {
            color: var(--primary-gold);
            font-size: 0.78rem;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.2s;
        }

        .stock-actions .signals-link:hover {
            color: var(--secondary-gold);
        }

        .sc-detail-actions .signals-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            min-height: 34px;
            padding: 0.44rem 0.85rem;
            border-radius: 8px;
            border: 1px solid rgba(201, 176, 55, 0.28);
            background: rgba(201, 176, 55, 0.08);
            color: var(--primary-gold);
            font-size: 0.76rem;
            font-weight: 800;
            text-decoration: none;
            white-space: nowrap;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
        }

        .sc-detail-actions .signals-link:hover {
            background: rgba(201, 176, 55, 0.14);
            border-color: rgba(201, 176, 55, 0.45);
            color: var(--secondary-gold);
            transform: translateY(-1px);
        }

        /* ---- Portfolio Stats card ---- */
        .card-stats {
            grid-column: 2;
            grid-row: 1;
            display: flex;
            flex-direction: column;
            gap: 0;
            padding: 1.4rem;
        }

        .stats-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        /* 2×2 stat tiles */
        .stats-tile-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.65rem;
            margin-bottom: 1.1rem;
        }

        .mobile-portfolio-summary {
            display: none;
        }

        .stats-tile {
            background: rgba(15, 19, 32, 0.65);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 11px;
            padding: 0.75rem 0.85rem;
            position: relative;
            overflow-x: clip;
        }

        .stats-tile-label {
            font-size: 0.63rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.35);
            margin-bottom: 0.3rem;
            white-space: nowrap;
        }

        .stats-tile-label-mobile {
            display: none;
        }

        .stats-tile-value {
            font-size: 1.7rem;
            font-weight: 900;
            line-height: 1;
            letter-spacing: -0.02em;
            color: var(--light-text);
        }

        .stats-tile-value.pnl-pos { color: #4ade80; }
        .stats-tile-value.pnl-neg { color: #ef4444; }

        .stats-tile-sub {
            font-size: 0.62rem;
            color: rgba(255,255,255,0.25);
            margin-top: 0.25rem;
            overflow-x: clip;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Active plans section */
        .stats-plans-header {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.35);
            margin-bottom: 0.55rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .stats-plans-header .plans-count-badge {
            background: rgba(201,176,55,0.12);
            color: var(--primary-gold);
            border: 1px solid rgba(201,176,55,0.25);
            border-radius: 20px;
            font-size: 0.6rem;
            padding: 0.1rem 0.45rem;
            font-weight: 700;
        }

        .stats-plan-row {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }

        .stats-plan-row:last-child { border-bottom: none; }

        .stats-plan-ticker {
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            padding: 0.2rem 0.5rem;
            border-radius: 6px;
            background: rgba(201,176,55,0.1);
            color: var(--primary-gold);
            border: 1px solid rgba(201,176,55,0.22);
            white-space: nowrap;
            min-width: 38px;
            text-align: center;
        }

        .stats-plan-dir {
            font-size: 0.68rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .stats-plan-dir.long  { color: #4ade80; }
        .stats-plan-dir.short { color: #ef4444; }

        .stats-plan-meta {
            flex: 1;
            font-size: 0.67rem;
            color: rgba(255,255,255,0.4);
            min-width: 0;
            overflow-x: clip;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .stats-plan-rr {
            font-size: 0.68rem;
            font-weight: 700;
            color: #60a5fa;
            white-space: nowrap;
        }

        .stats-plan-status {
            font-size: 0.6rem;
            font-weight: 700;
            padding: 0.12rem 0.4rem;
            border-radius: 20px;
            white-space: nowrap;
        }

        .stats-plan-status.watching { color: var(--primary-gold); background: rgba(201,176,55,0.1); border: 1px solid rgba(201,176,55,0.25); }
        .stats-plan-status.active   { color: #4ade80; background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.25); }

        .stats-empty {
            font-size: 0.78rem;
            color: rgba(255,255,255,0.25);
            text-align: center;
            padding: 0.75rem 0;
        }

        .stats-more-link {
            font-size: 0.68rem;
            color: var(--gray-text);
            text-decoration: none;
            transition: color 0.2s;
        }

        .stats-more-link:hover { color: var(--primary-gold); }

        /* Ghost tool links at bottom */
        .stats-tool-links {
            display: flex;
            gap: 0.6rem;
            margin-top: auto;
            padding-top: 0.9rem;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        .stats-tool-link {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            flex: 1;
            justify-content: center;
            padding: 0.45rem 0;
            border: 1px solid rgba(201,176,55,0.2);
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            color: rgba(255,255,255,0.5);
            text-decoration: none;
            transition: background 0.2s, border-color 0.2s, color 0.2s;
        }

        .stats-tool-link:hover {
            background: rgba(201,176,55,0.07);
            border-color: rgba(201,176,55,0.4);
            color: var(--primary-gold);
        }

        /* ---- Economic Indicators card ---- */
        .card-econ {
            grid-column: 1;
        }

        .econ-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.1rem;
        }

        .econ-header-left {
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .econ-timestamp {
            font-size: 0.67rem;
            color: rgba(255,255,255,0.25);
        }

        .econ-stat-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.8rem;
        }

        .econ-stat {
            background: rgba(15, 19, 32, 0.65);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            padding: 0.9rem 1rem;
            position: relative;
            overflow-x: clip;
            animation: statFadeUp 0.45s ease both;
        }

        .econ-stat:nth-child(1) { animation-delay: 0ms; }
        .econ-stat:nth-child(2) { animation-delay: 80ms; }
        .econ-stat:nth-child(3) { animation-delay: 160ms; }
        .econ-stat:nth-child(4) { animation-delay: 240ms; }

        @keyframes statFadeUp {
            from { opacity: 0; transform: translateY(8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Top rail: icon (+ optional FOMC) left · series label right */
        .econ-stat-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.45rem;
            margin-bottom: 0.15rem;
        }

        .econ-stat-icon {
            width: 26px; height: 26px;
            border-radius: 7px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.72rem;
            flex-shrink: 0;
        }

        #econ-card-cpi  .econ-stat-icon { background: rgba(249,115,22,0.12); color: #f97316; }
        #econ-card-core .econ-stat-icon { background: rgba(99,102,241,0.12);  color: #818cf8; }
        #econ-card-ppi  .econ-stat-icon { background: rgba(139,92,246,0.12);  color: #a78bfa; }
        #econ-card-fed  .econ-stat-icon { background: rgba(201,176,55,0.12);  color: var(--primary-gold); }

        .econ-s-badge {
            font-size: 0.58rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            padding: 0.13rem 0.42rem;
            border-radius: 20px;
            border: 1px solid;
            flex-shrink: 0;
        }

        .fomc-s-badge { color: var(--primary-gold); border-color: rgba(201,176,55,0.3); background: rgba(201,176,55,0.07); }

        .econ-stat-label {
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.38);
            margin: 0 0 0 auto;
            white-space: nowrap;
            text-align: right;
        }

        /* Own row under the header — centers over value + date (same idea as Yesterday) */
        .econ-stat-trend {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 1.05rem;
            margin: 0.1rem 0 0.35rem;
            font-size: 0.65rem;
            font-weight: 700;
            white-space: nowrap;
            text-align: center;
            line-height: 1.2;
        }

        .econ-stat-value-row {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 0.4rem;
            flex-wrap: wrap;
            margin-bottom: 0.3rem;
        }

        .econ-stat-value {
            font-size: 1.85rem;
            font-weight: 900;
            color: var(--light-text);
            line-height: 1;
            letter-spacing: -0.02em;
            transition: color 0.5s;
            text-align: center;
        }

        .econ-stat-value.loading {
            background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
            background-size: 200% 100%;
            animation: shimmerStat 1.4s infinite;
            border-radius: 5px;
            color: transparent;
            min-width: 55px;
        }

        @keyframes shimmerStat {
            0%   { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .trend-up        { color: #ef4444; }
        .trend-down      { color: #4ade80; }
        .trend-flat      { color: rgba(255,255,255,0.3); font-weight: 600; }

        .econ-stat-date {
            font-size: 0.63rem;
            color: rgba(255,255,255,0.22);
            text-align: center;
        }

        .econ-source {
            font-size: 0.68rem;
            color: rgba(255,255,255,0.18);
            margin-top: 0.7rem;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        /* ---- Fear & Greed card ---- */
        .card-fg {
            grid-column: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            overflow-x: clip;
        }

        .card-fg::before {
            content: '';
            position: absolute;
            top: -50px; left: 50%; transform: translateX(-50%);
            width: 280px; height: 220px;
            background: radial-gradient(ellipse, rgba(201,176,55,0.06), transparent 70%);
            pointer-events: none;
        }

        /* Top rail: title left · zone pill right — one line, full header size */
        .fg-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            margin-bottom: 0.2rem;
            width: 100%;
            position: relative;
        }

        .fg-card-title {
            margin: 0;
            text-align: left;
            white-space: nowrap;
            line-height: 1.15;
            flex-shrink: 0;
        }

        /* Centered on its own row so it sits over the middle of the arc */
        .fg-delta {
            width: 100%;
            text-align: center;
            font-size: 0.7rem;
            font-weight: 650;
            color: rgba(255,255,255,0.35);
            white-space: nowrap;
            min-height: 1rem;
            line-height: 1.2;
            margin: 0.15rem 0 0.1rem;
        }

        .fg-card-live {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.67rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            color: #4ade80;
            border: 1px solid rgba(74,222,128,0.3);
            background: rgba(74,222,128,0.07);
            padding: 0.18rem 0.55rem;
            border-radius: 50px;
        }

        .fg-card-live-dot {
            width: 5px; height: 5px;
            border-radius: 50%;
            background: #4ade80;
            animation: econPulse 2s ease-in-out infinite;
        }

        #fg-gauge {
            max-width: 260px;
            width: 100%;
            display: block;
            margin: 0 auto;
        }

        /* #fg-needle rotation handled via SVG transform attribute in fear-greed.js */

        .fg-val-num {
            font-size: 2.6rem;
            font-weight: 900;
            line-height: 1;
            color: var(--light-text);
            transition: color 0.6s;
            letter-spacing: -0.03em;
            margin-top: -0.2rem;
        }

        .fg-zone-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.28rem;
            padding: 0.24rem 0.58rem;
            border-radius: 50px;
            font-size: 0.64rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            border: 1px solid rgba(201,176,55,0.3);
            background: rgba(201,176,55,0.07);
            color: var(--primary-gold);
            margin-top: 0;
            margin-left: auto;
            transition: all 0.6s;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .fg-zone-badge i {
            font-size: 0.55rem;
        }

        .fg-card-note {
            font-size: 0.67rem;
            color: rgba(255,255,255,0.2);
            margin-top: 0.65rem;
            border-top: 1px solid rgba(255,255,255,0.04);
            padding-top: 0.6rem;
            width: 100%;
            position: relative;
        }

        /* ---- Guide Modal ---- */
        .guide-modal-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.72);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .guide-modal-backdrop.open {
            display: flex;
        }

        .guide-modal {
            background: rgba(8, 11, 18, 0.97);
            border: 1px solid rgba(201, 176, 55, 0.28);
            border-radius: 18px;
            width: 100%;
            max-width: 460px;
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
            animation: modalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
            overflow-x: clip;
        }

        @keyframes modalIn {
            from { opacity: 0; transform: translateY(18px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0)   scale(1); }
        }

        .guide-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem 1rem;
            border-bottom: 1px solid rgba(201, 176, 55, 0.1);
        }

        .guide-modal-header-left {
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }

        .guide-modal-ticker-badge {
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            padding: 0.25rem 0.65rem;
            border-radius: 6px;
        }

        .guide-modal-header h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--light-text);
            margin: 0;
        }

        .guide-modal-close {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: var(--gray-text);
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.8rem;
            transition: background 0.2s, color 0.2s;
            flex-shrink: 0;
        }

        .guide-modal-close:hover {
            background: rgba(255, 255, 255, 0.12);
            color: var(--light-text);
        }

        .guide-modal-list {
            padding: 0.85rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .guide-modal-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.9rem 1rem;
            border: 1px solid rgba(201, 176, 55, 0.1);
            border-radius: 12px;
            background: rgba(26, 31, 46, 0.4);
            cursor: pointer;
            text-decoration: none;
            transition: border-color 0.2s, background 0.2s, transform 0.2s;
        }

        .guide-modal-item:hover {
            border-color: rgba(201, 176, 55, 0.4);
            background: rgba(201, 176, 55, 0.07);
            transform: translateX(3px);
        }

        .guide-modal-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(201, 176, 55, 0.18), rgba(201, 176, 55, 0.06));
            border: 1px solid rgba(201, 176, 55, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-gold);
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .guide-modal-info {
            flex: 1;
            min-width: 0;
        }

        .guide-modal-info strong {
            display: block;
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--light-text);
            margin-bottom: 0.2rem;
        }

        .guide-modal-info span {
            display: block;
            font-size: 0.76rem;
            color: var(--gray-text);
            line-height: 1.4;
            white-space: nowrap;
            overflow-x: clip;
            text-overflow: ellipsis;
        }

        .guide-modal-arrow {
            color: rgba(201, 176, 55, 0.4);
            font-size: 0.75rem;
            transition: color 0.2s, transform 0.2s;
            flex-shrink: 0;
        }

        .guide-modal-item:hover .guide-modal-arrow {
            color: var(--primary-gold);
            transform: translateX(3px);
        }

        .guide-modal-footer {
            padding: 0.75rem 1.5rem 1rem;
            text-align: center;
            border-top: 1px solid rgba(201, 176, 55, 0.08);
        }

        .guide-modal-footer a {
            font-size: 0.78rem;
            color: var(--gray-text);
            text-decoration: none;
            transition: color 0.2s;
        }

        .guide-modal-footer a:hover {
            color: var(--primary-gold);
        }

        /* ── Signal Chart modal ── */
        .sc-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.78);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 1100;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .sc-backdrop.open { display: flex; }

        .sc-modal {
            background: linear-gradient(180deg, rgba(8, 11, 18, 0.98), rgba(5, 8, 16, 0.98));
            border: 1px solid rgba(201, 176, 55, 0.28);
            border-radius: 18px;
            width: 100%;
            max-width: 920px;
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
            animation: modalIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
            overflow-x: clip;
            display: flex;
            flex-direction: column;
        }

        .sc-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.1rem 1.4rem;
            border-bottom: 1px solid rgba(201, 176, 55, 0.12);
            flex-wrap: wrap;
        }

        .sc-header-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 0;
            flex: 1;
        }

        .sc-badge {
            font-size: 0.95rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            padding: 0.35rem 0.7rem;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .sc-header-text { min-width: 0; }

        .sc-contract {
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--light-text);
            white-space: nowrap;
            overflow-x: clip;
            text-overflow: ellipsis;
        }
        .sc-contract.call { color: #3fb950; }
        .sc-contract.put  { color: var(--danger-red); }

        .sc-last {
            font-size: 0.74rem;
            color: var(--gray-text);
            margin-top: 0.1rem;
        }
        .sc-last.up   { color: #3fb950; }
        .sc-last.down { color: var(--danger-red); }

        .sc-live {
            align-items: center;
            gap: 0.4rem;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            padding: 0.3rem 0.55rem;
            border-radius: 6px;
            flex-shrink: 0;
        }
        .sc-live.live    { background: rgba(63,185,80,0.14);   color: #6fcf76; }
        .sc-live.delayed { background: rgba(201,176,55,0.16);  color: var(--secondary-gold); }
        .sc-live.closed  { background: rgba(160,160,160,0.14); color: var(--gray-text); }
        .sc-live-dot {
            width: 7px; height: 7px; border-radius: 50%;
            background: currentColor;
            flex-shrink: 0;
        }
        .sc-live.live .sc-live-dot { animation: scLivePulse 1.6s ease-in-out infinite; }
        @keyframes scLivePulse {
            0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(63,185,80,0.5); }
            50%      { opacity: 0.5; box-shadow: 0 0 0 4px rgba(63,185,80,0); }
        }

        .sc-status {
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            padding: 0.3rem 0.6rem;
            border-radius: 6px;
            flex-shrink: 0;
        }
        .sc-status.open    { background: rgba(179,161,125,0.16); color: var(--secondary-gold); }
        .sc-status.hit     { background: rgba(42,87,31,0.35);    color: #6fcf76; }
        .sc-status.closed  { background: rgba(160,160,160,0.16); color: var(--gray-text); }
        .sc-status.stopped { background: rgba(255,59,59,0.16);   color: var(--danger-red); }

        .sc-close {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: var(--gray-text);
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.85rem;
            transition: background 0.2s, color 0.2s;
            flex-shrink: 0;
        }
        .sc-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--light-text); }

        .sc-tf-bar {
            display: flex;
            gap: 0.35rem;
            padding: 0.7rem 1.4rem 0;
        }
        .sc-tf-static {
            background: rgba(201, 176, 55, 0.16);
            border: 1px solid rgba(201, 176, 55, 0.5);
            color: var(--secondary-gold);
            font-size: 0.74rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            padding: 0.3rem 0.7rem;
            border-radius: 7px;
        }
        .sc-data-note {
            margin-left: auto;
            align-self: center;
            font-size: 0.68rem;
            color: var(--gray-text);
            font-style: italic;
        }

        .sc-chart-wrap {
            position: relative;
            width: 100%;
            height: 440px;
            padding: 0.5rem 0.75rem 0;
        }

        #scChart { width: 100%; height: 100%; }

        .sc-overlay {
            display: none;
            position: absolute;
            inset: 0;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            text-align: center;
            color: var(--gray-text);
            font-size: 0.85rem;
            background: rgba(5, 8, 16, 0.6);
        }
        .sc-overlay .sc-spinner {
            width: 30px;
            height: 30px;
            border: 3px solid rgba(201, 176, 55, 0.2);
            border-top-color: var(--primary-gold);
            border-radius: 50%;
            animation: scSpin 0.8s linear infinite;
        }
        @keyframes scSpin { to { transform: rotate(360deg); } }

        .sc-retry {
            margin-top: 0.4rem;
            background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
            border: none;
            color: #0b0b0b;
            font-weight: 700;
            font-size: 0.78rem;
            padding: 0.45rem 1rem;
            border-radius: 8px;
            cursor: pointer;
        }
        .sc-error-icon { color: var(--danger-red); font-size: 1.4rem; }

        .sc-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem 1.1rem;
            padding: 0.85rem 1.4rem 1.1rem;
            border-top: 1px solid rgba(201, 176, 55, 0.1);
        }
        .sc-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; }
        .sc-legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
        .sc-legend-label { color: var(--gray-text); }
        .sc-legend-value { color: var(--light-text); font-weight: 700; }

        @media (max-width: 640px) {
            .sc-backdrop { padding: 0; align-items: stretch; }
            .sc-modal { max-width: none; border-radius: 0; height: 100%; }
            .sc-chart-wrap { height: auto; flex: 1; }
        }

        /* button reset for signals-link */
        button.signals-link {
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            font-family: inherit;
        }

        /* ---- Responsive ---- */
        /* ─── 860px: portfolio chips hand off to the snapshot panel / mobile tiles ─── */
        @media (max-width: 860px) {
            .dmc-chip-portfolio { display: none; }
        }

        /* ─── 768px: single-column bento, adjust content ─── */
        @media (max-width: 768px) {
            .main-content {
                padding: 0 1rem 2rem;
            }

            .dash-darkpool {
                padding: 0 1rem 1.5rem;
            }

            .ddp-asof {
                font-size: 0.68rem;
                white-space: normal;
            }

            .dmc-greeting { padding: 6rem 1.25rem 1.25rem; }
            .dmc-panels-outer { padding: 0 1.25rem 1.5rem; }

            .dmc-panels {
                grid-template-columns: 1fr;
            }

            .bento-grid {
                grid-template-columns: 1fr;
                grid-template-rows: auto;
            }

            .card-stocks, .card-econ, .card-fg {
                grid-column: 1 / -1;
            }

            .econ-stat-grid { grid-template-columns: 1fr 1fr; }
        }

        /* ─── 600px: greeting stacks vertically ─── */
        @media (max-width: 600px) {
            .dmc-greeting { padding: 5.2rem 1rem 1rem; }

            .dash-darkpool .ddp-head { gap: 0.25rem; }
            .dash-darkpool .ddp-asof { font-size: 0.64rem; }
            .dash-darkpool .dp-card { overflow: hidden; }
            .dash-darkpool .dp-table { min-width: 0; table-layout: fixed; font-size: 0.68rem; }
            .dash-darkpool .dp-table th,
            .dash-darkpool .dp-table td { padding: 0.62rem 0.35rem; }
            .dash-darkpool .dp-table th:nth-child(n+6),
            .dash-darkpool .dp-table td:nth-child(n+6) { display: none; }
            .dash-darkpool .dp-table th:nth-child(1) { width: 24%; }
            .dash-darkpool .dp-table th:nth-child(2) { width: 24%; }
            .dash-darkpool .dp-table th:nth-child(3) { width: 24%; }
            .dash-darkpool .dp-table th:nth-child(4) { width: 28%; }
            .sig-live-block { margin-top: 0.7rem; padding: 0.7rem 0.7rem 2.15rem; }
            .sig-live-tag { display: none; }
            .sig-live-value { font-size: 1.2rem; }
            .sig-live-pct { font-size: 0.675rem; top: -0.25rem; }
            .sig-live-foot { gap: 0.45rem; margin-top: 0.55rem; padding-top: 0.55rem; }
            .dmc-panels-outer { padding: 0 1rem 1.25rem; }

            .dmc-greeting-top {
                flex-direction: column;
                align-items: stretch;
                gap: 0.7rem;
                margin-bottom: 0.9rem;
            }

            .dmc-greeting-left { text-align: center; }

            .dmc-greeting-eyebrow { margin-bottom: 0.3rem; }

            .dmc-greeting h1 { font-size: 1.2rem; }

            .dmc-glance-chips {
                width: 100%;
                align-self: stretch;
            }

            .dmc-chip-session {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 0.6rem;
                padding: 0.5rem 0.85rem;
            }

            .dmc-chip-session .dmc-glance-k { display: none; }
            .dmc-chip-session .dmc-glance-sub { margin-top: 0; }

            .dmc-session-mark { font-size: 0.5rem; letter-spacing: 0.1em; }
            .dmc-mark-t { display: none; }

            .mobile-portfolio-summary {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.5rem;
                margin-bottom: 0.75rem;
            }

            .mobile-portfolio-summary .stats-tile {
                min-width: 0;
                padding: 0.65rem 0.75rem;
                border-color: rgba(255,255,255,0.075);
                display: flex;
                align-items: baseline;
                justify-content: space-between;
                gap: 0.45rem;
            }

            .mobile-portfolio-summary .stats-tile-label {
                margin-bottom: 0;
                color: rgba(255,255,255,0.42);
                font-size: 0.672rem;
                font-weight: 800;
                letter-spacing: 0.08em;
            }
            .mobile-portfolio-summary .stats-tile-label-desktop { display: none; }
            .mobile-portfolio-summary .stats-tile-label-mobile { display: inline; }

            .mobile-portfolio-summary .stats-tile-value {
                font-size: clamp(0.88rem, 4.24vw, 1.04rem);
                font-weight: 900;
                letter-spacing: -0.025em;
                white-space: nowrap;
            }

            .portfolio-panel {
                display: none;
            }
        }

        @media (max-width: 390px) {
            .dmc-session-mark {
                font-size: 0.48rem;
                letter-spacing: 0.08em;
            }
        }

        /* ─── Desktop-compact signal rows ─── */
        @media (min-width: 768px) {
            .stock-row-main {
                padding: 0.36rem 0.55rem;
            }
            .stock-ticker-icon {
                width: 30px;
                height: 30px;
                font-size: 0.8rem;
                border-radius: 8px;
            }
            .stock-info {
                display: flex;
                align-items: baseline;
                gap: 0.45rem;
            }
            .stock-info .ticker { font-size: 0.84rem; }
            .stock-info .name   { font-size: 0.72rem; }
        }

        /* ─── Telegram status chip / connect bar ─── */
        .tg-status-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.28rem 0.72rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            margin-bottom: 0.7rem;
        }
        .tg-status-chip.tg-linked {
            background: rgba(179,161,125,0.07);
            border: 1px solid rgba(179,161,125,0.22);
            color: var(--secondary-gold);
        }
        .tg-status-chip.tg-linked .tg-dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: #4ade80; flex-shrink: 0;
        }
        .tg-status-chip.tg-revoked {
            background: rgba(255,59,59,0.07);
            border: 1px solid rgba(255,59,59,0.22);
            color: #f87171;
        }
        .tg-connect-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.55rem 0.7rem;
            margin-bottom: 0.7rem;
            background: rgba(179,161,125,0.04);
            border: 1px solid rgba(179,161,125,0.13);
            border-radius: 10px;
        }
        .tg-connect-bar-text {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.5);
            line-height: 1.4;
        }
        .tg-connect-bar-text i { color: var(--primary-gold); margin-right: 0.3rem; }
        .tg-connect-btn {
            display: inline-flex; align-items: center; gap: 0.35rem;
            background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
            color: var(--darker-bg);
            padding: 0.38rem 0.85rem;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.73rem;
            text-decoration: none;
            white-space: nowrap;
            flex-shrink: 0;
            letter-spacing: 0.01em;
        }

        /* ─── 520px: stock rows wrap ─── */
        @media (max-width: 520px) {
            .stock-row-main {
                flex-wrap: wrap;
                gap: 0.35rem 0.6rem;
            }

            .sc-quote { min-width: 64px; }
            .stock-actions .tg-btn,
            .stock-actions .signals-link { font-size: 0.72rem; }
        }

        /* ─── 480px: tightest view ─── */
        @media (max-width: 480px) {
            .stats-tile-grid { grid-template-columns: 1fr 1fr; }
            .bento-card { padding: 1rem; }
            .econ-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }

            /* Same stacked design as desktop, scaled down */
            .econ-stat { min-height: 0; padding: 0.65rem 0.55rem; }
            .econ-stat-label { font-size: 0.56rem; }
            .econ-stat-value { font-size: 1.25rem; }
            .econ-stat-trend { font-size: 0.55rem; }
            .econ-stat-date { font-size: 0.55rem; white-space: nowrap; }
            #econ-fed-date { font-size: 0.5rem; }
            .fomc-s-badge { display: none; }
        }

        /* ---- Trading Activity Heatmap ---- */
        .card-heatmap {
            grid-column: 1 / -1;
            margin-top: 0;
        }

        .heatmap-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.1rem;
        }

        .heatmap-year-badge {
            font-size: 0.78rem;
            font-weight: 600;
            color: rgba(255,255,255,0.4);
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            padding: 0.2rem 0.65rem;
            border-radius: 20px;
            letter-spacing: 0.05em;
        }

        .heatmap-scroll {
            overflow-x: auto;
            overflow-y: visible;
            padding-bottom: 0.25rem;
        }

        .heatmap-scroll svg { display: block; min-width: 560px; }

        .heat-cell { cursor: default; transition: opacity 0.15s; }
        .heat-cell:hover { opacity: 0.75; }

        .heatmap-footer {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.75rem;
            margin-top: 1.25rem;
            padding-top: 1.1rem;
            border-top: 1px solid rgba(201, 176, 55, 0.1);
        }

        .hm-stat {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .hm-stat-label {
            font-size: 0.72rem;
            font-weight: 600;
            color: rgba(255,255,255,0.4);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            overflow-x: clip;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .hm-stat-value {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--light-text);
            line-height: 1;
        }

        .hm-stat-value.hm-highlight {
            background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .heatmap-legend {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            margin-top: 0.85rem;
            font-size: 0.72rem;
            color: rgba(255,255,255,0.35);
        }

        .heatmap-legend-cells {
            display: flex;
            gap: 3px;
            margin-left: 0.25rem;
        }

        .hm-legend-cell {
            width: 11px;
            height: 11px;
            border-radius: 2px;
        }

        @media (max-width: 768px) {
            .heatmap-footer { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
        }

        @media (max-width: 480px) {
            .hm-stat-value { font-size: 1rem; }
            .hm-stat-label { font-size: 0.6rem; letter-spacing: 0.03em; }
        }

        /* ── Latest Signals Section ── */
        .signals-section {
            background: #0a0e16;
            border: 1px solid rgba(201, 176, 55, 0.18);
            border-radius: 16px;
            padding: 1.25rem;
            margin-bottom: 1.25rem;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
        }

        .signals-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 0.5rem;
            position: relative;
            z-index: 10;
        }

        .signals-section-left {
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }

        .signals-section-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary-gold);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 0;
        }

        .signals-count-badge {
            background: rgba(201,176,55,0.12);
            color: var(--primary-gold);
            border: 1px solid rgba(201,176,55,0.25);
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 700;
            padding: 0.12rem 0.5rem;
        }

        .signals-refresh-note {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.67rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            color: rgba(255,255,255,0.5);
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.035);
            padding: 0.2rem 0.6rem;
            border-radius: 50px;
        }

        .signals-refresh-note i {
            color: var(--primary-gold);
            font-size: 0.62rem;
        }

        .sig-header-action {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--primary-gold);
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.2s, opacity 0.2s;
        }

        .sig-header-action:hover {
            color: #f0dfb5;
        }

        .sig-command-center {
            display: grid;
            grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.88fr);
            gap: 1rem;
            /* Content-height columns — do not stretch the activity list
               to a carousel min-height that no longer matches the card. */
            align-items: start;
        }

        .sig-command-featured {
            min-width: 0;
        }

        .sig-command-center .sig-carousel-outer {
            min-height: 0 !important;
            align-items: stretch;
        }

        .sig-command-center .sig-carousel-track {
            max-width: none;
            margin: 0;
            /* Absolute cards + a fixed min-height left a void under Progress.
               Height is set to the active card by _syncCommandFeaturedHeight. */
            min-height: 0 !important;
            height: auto !important;
        }

        .sig-command-center .sig-card {
            max-width: none;
        }

        .sig-command-center .sig-featured-card {
            display: flex;
            flex-direction: column;
        }

        .sig-command-center .sig-featured-card.active {
            position: relative;
        }

        .sig-command-center .sig-featured-card .sig-progress-row {
            margin-top: 0.65rem;
        }

        .sig-command-center .sig-activity-panel {
            align-self: start;
            height: fit-content;
        }

        .sig-command-center .sig-story-strip {
            margin-top: 0.65rem;
        }

        /* Story strip under the featured card: why opened while open, why closed once closed */
        .sig-story-strip {
            position: relative;
            margin-top: 0.65rem;
            padding: 0.75rem 1rem 1.1rem;
            border-radius: 14px;
            border: 1px solid rgba(179, 161, 125, 0.14);
            background: rgba(8, 11, 15, 0.55);
        }
        .sig-story-strip[hidden] { display: none !important; }
        .sig-story-label {
            font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em;
            color: rgba(179, 161, 125, 0.85); font-weight: 700;
            cursor: pointer; list-style: none;
        }
        .sig-story-label::-webkit-details-marker { display: none; }
        .sig-story-label::after { content: '+'; float: right; font-size: 0.9rem; line-height: 0.7; }
        .sig-story-strip[open] .sig-story-label::after { content: '−'; }
        .sig-story-content { position: relative; padding: 0.45rem 0 1.1rem; }
        .sig-story-text {
            font-size: 0.78rem; line-height: 1.6;
            color: rgba(220, 224, 230, 0.92); margin: 0;
        }
        .sig-story-fence {
            position: absolute; right: 0; bottom: 0;
            font-size: 0.5rem; letter-spacing: 0.02em;
            color: rgba(255,255,255,0.24); font-weight: 500; line-height: 1.2;
            pointer-events: none; user-select: none;
        }

        .sig-activity-panel {
            min-width: 0;
            display: flex;
            flex-direction: column;
            border-radius: 14px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.025);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
            overflow-x: clip;
        }

        .sig-activity-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1rem 0.7rem;
            border-bottom: 1px solid rgba(255,255,255,0.055);
        }

        .sig-activity-header h3 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 800;
            color: rgba(255,255,255,0.84);
            letter-spacing: 0;
        }

        .sig-activity-header .section-title-premium {
            font-size: 0.86rem;
            font-weight: 800;
            letter-spacing: 0.055em;
            color: rgba(236, 228, 209, 0.96);
            text-transform: uppercase;
        }

        .section-title-premium,
        .dmc-panel-header .section-title-premium,
        .bento-card-title.section-title-premium,
        .sig-activity-header .section-title-premium {
            font-size: 1rem !important;
        }

        /* Wrapper is layout-invisible on desktop; becomes the one-row
           arrow carousel on mobile. */
        .sig-activity-carousel {
            display: contents;
        }

        .sig-activity-arrow {
            display: none;
        }

        .sig-activity-list {
            display: flex;
            flex-direction: column;
            flex: 0 0 auto;
            min-height: 0;
        }

        .sig-activity-row {
            width: 100%;
            min-width: 0;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 0.72rem;
            padding: 0.82rem 1rem;
            border: 0;
            border-bottom: 1px solid rgba(255,255,255,0.045);
            border-left: 3px solid transparent;
            background: transparent;
            color: inherit;
            text-align: left;
            cursor: pointer;
            transition: background 0.18s, border-color 0.18s;
        }

        .sig-activity-row:hover,
        .sig-activity-row.active {
            background: rgba(255,255,255,0.045);
        }

        .sig-activity-row.active {
            border-left-color: var(--primary-gold);
        }

        .sig-activity-ticker {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 3.35rem;
            max-width: 6.5rem;
            min-height: 1.75rem;
            padding: 0.32rem 0.54rem;
            border-radius: 7px;
            font-size: 0.78rem;
            font-weight: 900;
            line-height: 1;
            overflow-x: clip;
            text-overflow: ellipsis;
        }

        .sig-activity-main {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 0.28rem;
        }

        .sig-activity-top {
            display: flex;
            align-items: center;
            gap: 0.48rem;
            min-width: 0;
        }

        .sig-activity-dir {
            display: inline-flex;
            align-items: center;
            gap: 0.28rem;
            flex-shrink: 0;
            font-size: 0.68rem;
            font-weight: 900;
            line-height: 1;
        }

        .sig-activity-dir.call { color: #4ade80; }
        .sig-activity-dir.put { color: #ef4444; }

        .sig-activity-type {
            min-width: 0;
            overflow-x: clip;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: rgba(255,255,255,0.45);
            font-size: 0.72rem;
            font-weight: 650;
        }

        .sig-activity-side {
            min-width: 5.4rem;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.28rem;
        }

        .sig-activity-side .sig-status-badge {
            font-size: 0.63rem;
            padding: 0.22rem 0.46rem;
        }

        .sig-activity-side .sig-time {
            font-size: 0.66rem;
        }

        .sig-activity-link {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.85rem 1rem 0.95rem;
            color: var(--primary-gold);
            font-size: 0.76rem;
            font-weight: 800;
            text-decoration: none;
            border-top: 1px solid rgba(255,255,255,0.055);
            transition: color 0.2s, background 0.2s;
        }

        .sig-activity-link:hover {
            color: #f0dfb5;
            background: rgba(201,176,55,0.05);
        }

        .sig-activity-empty {
            margin: 0;
            padding: 1rem;
            color: rgba(255,255,255,0.32);
            font-size: 0.78rem;
        }

        .sig-bottom-controls {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            flex-wrap: wrap;
            margin: 0 0 1rem;
            padding: 0 0 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }

        .sig-control-group {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            flex-wrap: wrap;
        }

        .sig-control-divider {
            width: 1px;
            align-self: stretch;
            min-height: 2rem;
            background: rgba(255,255,255,0.08);
        }

        .sig-filter-btn {
            min-height: 2.2rem;
            min-width: 4.9rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.36rem;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: rgba(255,255,255,0.58);
            padding: 0.42rem 0.72rem;
            font-size: 0.74rem;
            font-weight: 800;
            letter-spacing: 0;
            white-space: nowrap;
            cursor: pointer;
            transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
        }

        .sig-filter-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(255,255,255,0.16);
            background: rgba(255,255,255,0.065);
            color: rgba(255,255,255,0.82);
        }

        .sig-filter-btn.active {
            color: #f0dfb5;
            border-color: rgba(201,176,55,0.45);
            background: rgba(201,176,55,0.1);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }

        .sig-filter-btn.open.active,
        .sig-filter-btn.call.active {
            color: #4ade80;
            border-color: rgba(74,222,128,0.34);
            background: rgba(74,222,128,0.1);
        }

        .sig-filter-btn.tp.active {
            color: #f59e0b;
            border-color: rgba(245,158,11,0.38);
            background: rgba(245,158,11,0.12);
        }

        .sig-filter-btn.closed.active {
            color: #60a5fa;
            border-color: rgba(96,165,250,0.42);
            background: rgba(96,165,250,0.12);
        }

        .sig-filter-btn.put.active {
            color: #f87171;
            border-color: rgba(248,113,113,0.36);
            background: rgba(248,113,113,0.11);
        }

        .sig-search-wrap {
            flex: 1 1 220px;
            min-width: min(100%, 220px);
            min-height: 2.35rem;
            display: flex;
            align-items: center;
            gap: 0.55rem;
            margin-left: auto;
            padding: 0 0.78rem;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.03);
            color: rgba(255,255,255,0.32);
            transition: border-color 0.18s, background 0.18s;
        }

        .sig-search-wrap:focus-within {
            border-color: rgba(201,176,55,0.35);
            background: rgba(255,255,255,0.045);
        }

        .sig-search-wrap input {
            width: 100%;
            min-width: 0;
            border: 0;
            outline: 0;
            background: transparent;
            color: rgba(255,255,255,0.82);
            font: inherit;
            font-size: 0.78rem;
            font-weight: 650;
            letter-spacing: 0;
        }

        .sig-search-wrap input::placeholder {
            color: rgba(255,255,255,0.32);
        }


        /* ── Carousel wrapper ── */
        .sig-carousel-outer {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow-x: clip;
        }

        /* ── Sliding track ── */
        .sig-carousel-track {
            position: relative;
            width: 100%;
            max-width: 760px;
            margin: 0 auto;
            min-height: 360px;
            overflow-x: clip;
        }

        /* ── Individual signal card (carousel mode) ── */
        .sig-card {
            background: linear-gradient(145deg, rgba(14,19,31,0.98), rgba(7,10,17,0.98));
            border: 1px solid rgba(201, 176, 55, 0.16);
            border-radius: 14px;
            padding: 1.1rem;
            position: absolute;
            width: 100%;
            box-sizing: border-box;
            top: 0;
            left: 0;
            overflow-x: clip;
            transform-origin: center;
            transform: translateY(30px) scale(0.97);
            opacity: 0;
            visibility: hidden;
            z-index: 1;
            pointer-events: none;
            cursor: pointer;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 42px rgba(0,0,0,0.28);
            /* No transition by default — command-center cards should switch immediately. */
            transition: none;
        }

        /* Active command-center card; no legacy carousel slide/fade motion. */
        .sig-card.active {
            transform: none;
            opacity: 1;
            visibility: visible;
            z-index: 3;
            pointer-events: auto;
            transition: border-color 0.25s;
        }

        /* Outgoing / waiting cards: no transition — disappear instantly on class change */
        .sig-card.next {
            transform: translateY(30px) scale(0.97);
            opacity: 0;
            visibility: hidden;
            z-index: 1;
            pointer-events: none;
        }

        .sig-card.prev {
            transform: translateY(-30px) scale(0.97);
            opacity: 0;
            visibility: hidden;
            z-index: 1;
            pointer-events: none;
        }

        .sig-card.hidden {
            transform: translateY(30px) scale(0.97);
            opacity: 0;
            visibility: hidden;
            z-index: 1;
            pointer-events: none;
        }

        .sig-card:hover {
            border-color: rgba(201, 176, 55, 0.3);
        }

        .sig-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            border-radius: 12px 12px 0 0;
            background: var(--sig-top, linear-gradient(90deg,#c9b037,#e2cfb5));
        }

        .sig-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.85rem;
            margin-bottom: 1rem;
        }

        .sig-card-left {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            min-width: 0;
            max-width: 100%;
            gap: 0.5rem;
        }

        .sig-ticker-badge {
            font-size: 0.95rem;
            font-weight: 800;
            letter-spacing: 0;
            line-height: 1;
            padding: 0.42rem 0.7rem;
            border-radius: 7px;
            max-width: 9ch;
            overflow-x: clip;
            text-overflow: ellipsis;
        }

        .sig-contract-type {
            font-size: 0.76rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.32rem;
            padding: 0.34rem 0.58rem;
            border-radius: 7px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.07);
            line-height: 1;
        }

        .sig-contract-type.call { color: #4ade80; }
        .sig-contract-type.put  { color: #ef4444; }

        .sig-signal-type {
            display: none;
            font-size: 0.74rem;
            font-weight: 600;
            color: rgba(255,255,255,0.54);
            letter-spacing: 0;
            min-width: 0;
            max-width: 260px;
            overflow-x: clip;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .sig-card-right {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 0.45rem;
            min-width: 0;
            max-width: 100%;
        }

        .sig-status-badge,
        .sig-tp-badge {
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0;
            padding: 0.26rem 0.55rem;
            border-radius: 7px;
            background: rgba(245,158,11,0.18);
            color: #f59e0b;
            border: 1px solid rgba(245,158,11,0.3);
            white-space: nowrap;
            max-width: 100%;
            overflow-x: clip;
            text-overflow: ellipsis;
        }

        .sig-status-badge.open {
            background: rgba(74,222,128,0.1);
            color: #4ade80;
            border-color: rgba(74,222,128,0.24);
        }
        .sig-status-badge.tp2 {
            background: rgba(132,204,22,0.12);
            color: #84cc16;
            border-color: rgba(132,204,22,0.28);
        }
        .sig-tp-badge.closed {
            background: rgba(74,222,128,0.12);
            color: #4ade80;
            border-color: rgba(74,222,128,0.25);
        }
        .sig-status-badge.closed {
            background: rgba(255,255,255,0.06);
            color: rgba(255,255,255,0.7);
            border-color: rgba(255,255,255,0.12);
        }
        .sig-status-badge.stopped {
            background: rgba(239,68,68,0.12);
            color: #f87171;
            border-color: rgba(239,68,68,0.34);
        }

        .sig-time {
            font-size: 0.72rem;
            color: rgba(255,255,255,0.38);
            white-space: nowrap;
        }

        .sig-featured-body {
            display: grid;
            grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.45fr);
            gap: 1rem;
            align-items: stretch;
        }

        .sig-featured-details {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .sig-entry-block {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
            padding: 0.95rem 1rem;
            border-radius: 10px;
            background: rgba(255,255,255,0.035);
            border: 1px solid rgba(255,255,255,0.06);
        }

        .sig-entry-label {
            font-size: 0.66rem;
            font-weight: 700;
            letter-spacing: 0;
            text-transform: uppercase;
            color: rgba(255,255,255,0.38);
            display: block;
            margin-bottom: 0.35rem;
        }

        .sig-entry-price {
            font-size: 2.15rem;
            font-weight: 900;
            color: var(--light-text);
            letter-spacing: 0;
            line-height: 1;
            margin-bottom: 0;
            overflow-wrap: normal;
            white-space: nowrap;
        }

        .sig-stats-row {
            display: flex;
            gap: 1.1rem;
            margin-bottom: 0.5rem;
        }

        .sig-stat {
            display: flex;
            flex-direction: column;
            gap: 0.08rem;
        }

        .sig-stat label {
            font-size: 0.57rem;
            font-weight: 700;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.28);
        }

        .sig-stat span {
            font-size: 0.82rem;
            font-weight: 700;
            color: rgba(255,255,255,0.7);
        }

        .sig-contract-footer {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            padding-top: 0.65rem;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        .sig-contract-chip {
            font-size: 0.63rem;
            font-weight: 600;
            color: rgba(255,255,255,0.42);
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 5px;
            padding: 0.14rem 0.42rem;
            white-space: nowrap;
        }

        .sig-contract-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            overflow-x: clip;
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 10px;
            background: rgba(255,255,255,0.025);
        }

        .sig-contract-cell {
            min-width: 0;
            padding: 0.85rem 0.75rem;
            border-right: 1px solid rgba(255,255,255,0.06);
        }

        .sig-contract-cell:last-child {
            border-right: none;
        }

        .sig-contract-cell span {
            display: block;
            margin-bottom: 0.28rem;
            font-size: 0.64rem;
            font-weight: 700;
            letter-spacing: 0;
            text-transform: uppercase;
            color: rgba(255,255,255,0.35);
        }

        .sig-contract-cell strong {
            display: block;
            min-width: 0;
            font-size: 0.86rem;
            font-weight: 800;
            color: rgba(255,255,255,0.82);
            line-height: 1.25;
            overflow-wrap: anywhere;
        }

        .sig-contract-cell.sig-exp-soon strong { color: #f59e0b; }
        .sig-contract-cell.sig-exp-urgent strong,
        .sig-contract-cell.sig-exp-expired strong { color: #ef4444; }

        .sig-metric-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.55rem;
        }

        .sig-metric-cell {
            min-width: 0;
            padding: 0.7rem 0.72rem;
            border-radius: 9px;
            border: 1px solid rgba(255,255,255,0.065);
            background: rgba(255,255,255,0.028);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.024);
        }

        .sig-metric-cell span {
            display: block;
            margin-bottom: 0.22rem;
            color: rgba(255,255,255,0.34);
            font-size: 0.58rem;
            font-weight: 850;
            letter-spacing: 0.04em;
            line-height: 1;
            text-transform: uppercase;
        }

        .sig-metric-cell strong {
            display: block;
            min-width: 0;
            color: rgba(255,255,255,0.86);
            font-size: 0.74rem;
            font-weight: 850;
            line-height: 1.25;
            overflow-wrap: break-word;
            word-break: normal;
        }

        /* ── Live contract value (open positions only) ── */
        .sig-live-block {
            margin-top: 1rem;
            padding: 0.9rem 0.95rem;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.07);
            background: rgba(255,255,255,0.028);
            position: relative;
            padding-bottom: 2.15rem;
        }

        .sig-live-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.6rem;
            margin-bottom: 0.5rem;
        }

        .sig-live-label {
            color: rgba(255,255,255,0.38);
            font-size: 0.6rem;
            font-weight: 850;
            letter-spacing: 0.04em;
            line-height: 1;
            text-transform: uppercase;
        }

        .sig-live-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.22rem 0.5rem;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.14);
            background: none;
            color: rgba(255,255,255,0.45);
            cursor: pointer;
            font-family: inherit;
            font-size: 0.56rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            transition: color 0.15s ease, border-color 0.15s ease;
            display: none !important;
            position: absolute;
            left: 0.75rem;
            bottom: 0.65rem;
        }

        .sig-live-tag:hover,
        .sig-live-tag[aria-expanded="true"] {
            border-color: rgba(179,161,125,0.45);
            color: var(--primary-gold);
        }

        .sig-live-main {
            display: flex;
            align-items: baseline;
            gap: 0.6rem;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        .sig-live-value {
            color: var(--light-text);
            font-size: 1.6rem;
            font-weight: 900;
            line-height: 1;
            white-space: nowrap;
        }

        .sig-live-pct {
            font-size: 0.675rem;
            font-weight: 850;
            line-height: 1;
            position: relative;
            top: -0.35rem;
            margin-left: -0.35rem;
        }

        .sig-live-pct.pos,
        .sig-live-total.pos { color: #5bd07a; }

        .sig-live-pct.neg,
        .sig-live-total.neg { color: var(--danger-red); }

        .sig-live-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-top: 0.7rem;
            padding-top: 0.7rem;
            border-top: 1px solid rgba(255,255,255,0.055);
            min-height: 2.6rem;
        }

        /* Bottom-aligned so the stepper buttons sit level with the count itself,
         * which is the lower row of the stacked count/unit pair. */
        .sig-live-qty {
            display: flex;
            align-items: flex-end;
            gap: 0.3rem;
            margin-inline: auto;
        }

        /* Groups the count with its unit. column-reverse puts the unit above the
         * count on desktop; the mobile block flips it to a caption underneath. */
        .sig-live-qty-box {
            display: flex;
            flex-direction: column-reverse;
            align-items: center;
            gap: 0.25rem;
            min-width: 0;
        }

        .sig-live-step {
            width: 1.45rem;
            height: 1.45rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.04);
            color: rgba(255,255,255,0.7);
            cursor: pointer;
            font-family: inherit;
            font-size: 0.82rem;
            font-weight: 800;
            line-height: 1;
            transition: border-color 0.15s ease, color 0.15s ease;
        }

        .sig-live-step:hover {
            border-color: rgba(179,161,125,0.45);
            color: var(--primary-gold);
        }

        .sig-live-qty-input {
            width: 2.9rem;
            padding: 0.22rem 0.3rem;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.12);
            background: var(--field-bg);
            color: var(--light-text);
            font-family: inherit;
            font-size: 0.78rem;
            font-weight: 800;
            text-align: center;
            appearance: textfield;
            -moz-appearance: textfield;
        }

        .sig-live-qty-input::-webkit-outer-spin-button,
        .sig-live-qty-input::-webkit-inner-spin-button {
            margin: 0;
            -webkit-appearance: none;
        }

        .sig-live-qty-input:focus {
            outline: none;
            border-color: rgba(179,161,125,0.55);
        }

        .sig-live-qty-unit {
            color: rgba(255,255,255,0.34);
            font-size: 0.6rem;
            font-weight: 800;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        .sig-live-total-wrap {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.25rem;
            min-width: 0;
            position: absolute;
            top: 0.9rem;
            right: 0.8rem;
        }

        .sig-live-total-label {
            color: rgba(255,255,255,0.34);
            font-size: 0.55rem;
            font-weight: 850;
            letter-spacing: 0.04em;
            line-height: 1;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .sig-live-total {
            font-size: 1.6rem;
            font-weight: 900;
            line-height: 1;
            white-space: nowrap;
        }

        .sig-live-explain {
            margin: 0.6rem 0 0;
            color: rgba(255,255,255,0.42);
            font-size: 0.68rem;
            font-weight: 600;
            line-height: 1.5;
        }

        .sig-live-explain {
            padding-top: 0.6rem;
            border-top: 1px solid rgba(255,255,255,0.055);
        }

        @media (min-width: 769px) {
            .sig-live-block { padding-bottom: 0.9rem; }
            .sig-live-tag { display: none; }
            .sig-live-foot {
                position: static;
                min-height: 0;
                margin-top: 0;
                padding-top: 0;
                border-top: 0;
            }
            .sig-live-qty {
                position: absolute;
                top: 0.92rem;
                left: 50%;
                transform: translateX(-50%);
                margin: 0;
            }
            .sig-live-qty-box {
                flex-direction: column-reverse;
                gap: 0.25rem;
            }
            .sig-live-qty-unit { display: block; }
        }

        .sig-progress-row {
            margin-top: 1rem;
            padding: 0.9rem 0.15rem 0.15rem;
            border-top: 1px solid rgba(255,255,255,0.06);
        }

        .sig-progress-label {
            margin-bottom: 0.72rem;
            font-size: 0.66rem;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: uppercase;
            color: rgba(255,255,255,0.4);
        }

        .sig-progress-track {
            position: relative;
            display: grid;
            grid-template-columns: repeat(var(--sig-step-count), minmax(0, 1fr));
            gap: 0;
            align-items: start;
            isolation: isolate;
        }

        .sig-progress-track::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: 0.42rem;
            height: 2px;
            background: rgba(255,255,255,0.1);
            z-index: 0;
        }

        .sig-card.active .sig-progress-track::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: 0.42rem;
            height: 2px;
            background: linear-gradient(90deg,
                rgba(74,222,128,0.24),
                rgba(201,176,55,0.5),
                rgba(74,222,128,0.58),
                rgba(245,158,11,0.48),
                rgba(74,222,128,0.24)
            );
            background-size: 220% 100%;
            filter: drop-shadow(0 0 5px rgba(74,222,128,0.24));
            opacity: 0.64;
            animation: sigProgressFlow 5.5s linear infinite;
            z-index: 0;
            pointer-events: none;
        }

        .sig-progress-step {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 0;
            gap: 0.24rem;
            text-align: center;
            z-index: 1;
        }

        .sig-progress-dot {
            position: relative;
            width: 0.86rem;
            height: 0.86rem;
            border-radius: 50%;
            background: #121826;
            border: 2px solid rgba(255,255,255,0.22);
            box-shadow: 0 0 0 4px #0b101b;
            z-index: 1;
        }

        .sig-progress-step.done .sig-progress-dot {
            --sig-pulse-color: rgba(74,222,128,0.38);
            background: #4ade80;
            border-color: #4ade80;
            box-shadow: 0 0 0 4px rgba(74,222,128,0.14);
        }

        .sig-progress-step.tp1.done .sig-progress-dot {
            --sig-pulse-color: rgba(245,158,11,0.42);
            background: #f59e0b;
            border-color: #f59e0b;
        }
        .sig-progress-step.tp2.done .sig-progress-dot,
        .sig-progress-step.tp3.done .sig-progress-dot,
        .sig-progress-step.closed.done .sig-progress-dot {
            --sig-pulse-color: rgba(132,204,22,0.4);
            background: #84cc16;
            border-color: #84cc16;
        }
        .sig-progress-step.stop.done .sig-progress-dot {
            --sig-pulse-color: rgba(239,68,68,0.42);
            background: #ef4444;
            border-color: #ef4444;
        }

        .sig-progress-step.current .sig-progress-dot::after {
            content: '';
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            border: 1px solid var(--sig-pulse-color, rgba(74,222,128,0.38));
            border-right-color: transparent;
            border-bottom-color: rgba(255,255,255,0.16);
            box-shadow: 0 0 10px var(--sig-pulse-color, rgba(74,222,128,0.38));
            animation: sigProgressHalo 3.2s linear infinite;
            pointer-events: none;
        }

        .sig-progress-step-label {
            max-width: 100%;
            font-size: 0.68rem;
            font-weight: 800;
            color: rgba(255,255,255,0.72);
            overflow-x: clip;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .sig-progress-step.pending .sig-progress-step-label {
            color: rgba(255,255,255,0.36);
        }

        .sig-progress-step-value {
            max-width: 100%;
            font-size: 0.62rem;
            font-weight: 700;
            color: rgba(255,255,255,0.46);
            line-height: 1.25;
            overflow-wrap: anywhere;
        }

        .sig-progress-step-date,
        .sig-progress-step-time {
            max-width: 100%;
            color: rgba(255,255,255,0.36);
            font-size: 0.56rem;
            font-weight: 650;
            line-height: 1.18;
            overflow-wrap: anywhere;
        }

        @keyframes sigProgressFlow {
            from { background-position: 0% 50%; }
            to { background-position: 220% 50%; }
        }

        @keyframes sigProgressHalo {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @media (prefers-reduced-motion: reduce) {
            .sig-card.active .sig-progress-track::after,
            .sig-progress-step.current .sig-progress-dot::after {
                animation: none;
                display: none;
            }
        }

        /* Icon-only tools sit in the header, left of the outcome badge */
        .sig-card-actions {
            display: inline-flex;
            align-items: center;
            gap: 0.28rem;
            flex-shrink: 0;
            margin: 0;
        }

        .sig-action-btn {
            width: 1.85rem;
            height: 1.85rem;
            min-width: 1.85rem;
            min-height: 1.85rem;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.045);
            color: rgba(255,255,255,0.72);
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0;
            text-decoration: none;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
        }

        .sig-action-btn:hover {
            transform: translateY(-1px);
            background: rgba(255,255,255,0.075);
            border-color: rgba(255,255,255,0.16);
            color: rgba(255,255,255,0.9);
        }

        .sig-action-btn.primary {
            color: #111827;
            background: linear-gradient(135deg, #f0dfb5, #c9b037);
            border-color: rgba(240,223,181,0.8);
        }


        .sig-empty {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.28);
            padding: 1.5rem 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            position: static;
            width: 100%;
        }

        /* ── Carousel footer: dots ── */
        .sig-carousel-footer {
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 1.1rem;
        }

        .sig-carousel-dots {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sig-carousel-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(201,176,55,0.3);
            border: none;
            cursor: pointer;
            padding: 0;
            transition: all 0.3s;
        }

        .sig-carousel-dot.active {
            width: 24px;
            border-radius: 4px;
            background: var(--primary-gold);
        }

        /* ── Single-channel plan restrictions ── */
        .stock-row.row-locked {
            opacity: 0.38;
            pointer-events: none;
            position: relative;
            user-select: none;
        }

        .stock-row.row-locked::after {
            content: '\f023'; /* fa-lock */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.75rem;
            color: rgba(255,255,255,0.3);
        }

        /* Wrapper that sits over the heatmap + tool-links when locked */
        .bundle-gate {
            position: relative;
        }

        .bundle-gate-overlay {
            position: absolute;
            inset: 0;
            background: rgba(8, 11, 18, 0.75);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border-radius: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            z-index: 2;
        }

        .bundle-gate-overlay i {
            font-size: 1.3rem;
            color: rgba(201,176,55,0.7);
        }

        .bundle-gate-overlay span {
            font-size: 0.78rem;
            font-weight: 600;
            color: rgba(240,236,224,0.55);
            letter-spacing: 0.03em;
        }

        .bundle-gate-overlay a {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #c9b037;
            text-decoration: none;
            border: 1px solid rgba(201,176,55,0.35);
            padding: 0.3em 0.9em;
            border-radius: 100px;
            transition: background 0.2s, color 0.2s;
        }

        .bundle-gate-overlay a:hover {
            background: rgba(201,176,55,0.12);
            color: #f0d060;
        }

        /* Sub-badge variant for single plan */
        .sub-badge.single-plan {
            background: rgba(201,176,55,0.08);
            border-color: rgba(201,176,55,0.4);
            color: #c9b037;
        }

        /* ── Announcement banner ── */
        #announcement-banner {
            display: none;
            align-items: center;
            gap: 0.65rem;
            padding: 0.75rem 1.1rem;
            border-radius: 12px;
            font-size: 0.82rem;
            font-weight: 500;
            margin-bottom: 1.25rem;
            animation: fadeInDown 0.35s ease;
            border: 1px solid transparent;
        }

        #announcement-banner.ann-visible {
            display: flex;
        }

        #announcement-banner.ann-info {
            background: rgba(59, 130, 246, 0.12);
            border-color: rgba(96, 165, 250, 0.35);
            color: #bfdbfe;
        }

        #announcement-banner.ann-warning {
            background: rgba(245, 158, 11, 0.12);
            border-color: rgba(251, 191, 36, 0.35);
            color: #fde68a;
        }

        #announcement-banner.ann-success {
            background: rgba(34, 197, 94, 0.12);
            border-color: rgba(74, 222, 128, 0.35);
            color: #bbf7d0;
        }

        #announcement-banner .ann-icon {
            flex-shrink: 0;
            opacity: 0.85;
        }

        #announcement-banner .ann-close {
            margin-left: auto;
            background: none;
            border: none;
            color: inherit;
            opacity: 0.55;
            cursor: pointer;
            font-size: 0.85rem;
            padding: 0;
            line-height: 1;
            transition: opacity 0.15s;
            flex-shrink: 0;
        }

        #announcement-banner .ann-close:hover { opacity: 1; }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* ── Channel offline badge ── */
        .offline-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #ef9a9a;
            background: rgba(211,47,47,0.12);
            border: 1px solid rgba(239,154,154,0.22);
            border-radius: 6px;
            padding: 0.22rem 0.55rem;
        }

        .stock-row.row-offline .tg-btn {
            opacity: 1;
            pointer-events: none;
        }

        .stock-row.row-offline .signals-link {
            opacity: 0.25;
            pointer-events: none;
        }

        /* ── Signal card: status left border (A-3) ── */
        .sig-card[data-status="open"] {
            border-left: 3px solid #4ade80;
        }
        .sig-card[data-status="tp1"] {
            border-left: 3px solid #f59e0b;
            opacity: 1;
        }
        .sig-card[data-status="tp2"] {
            border-left: 3px solid #84cc16;
            opacity: 1;
        }
        .sig-card[data-status="closed"] {
            border-left: 3px solid rgba(255,255,255,0.18);
            opacity: 1;
        }
        .sig-card[data-status="stopped"] {
            border-left: 3px solid #ef4444;
            opacity: 1;
        }

        /* ── Status badge sizing (A-3) ── */
        .sig-tp-badge {
            font-size: 0.72rem;
            padding: 0.18rem 0.55rem;
        }

        /* ── Entry price size increase (B-3) ── */
        .sig-entry-price { font-size: 2.15rem; }

        /* ── Stat label size increase (B-3) ── */
        .sig-stat label { font-size: 0.7rem; }

        /* ── Expiry urgency chips (A-2) ── */
        .sig-contract-chip.exp-soon {
            color: #f59e0b;
            background: rgba(245,158,11,0.1);
            border-color: rgba(245,158,11,0.3);
        }
        .sig-contract-chip.exp-urgent {
            color: #ef4444;
            background: rgba(239,68,68,0.12);
            border-color: rgba(239,68,68,0.35);
            font-weight: 700;
        }
        .sig-contract-chip.exp-expired {
            color: #ef4444;
            background: rgba(239,68,68,0.12);
            border-color: rgba(239,68,68,0.35);
            font-weight: 700;
            text-decoration: line-through;
        }

        /* ── Skeleton loading cards (D-3) ── */
        @keyframes shimmerCard {
            0%   { background-position: -400px 0; }
            100% { background-position: 400px 0; }
        }
        .sig-card-skeleton {
            background: linear-gradient(90deg,
                rgba(255,255,255,0.03) 25%,
                rgba(255,255,255,0.07) 50%,
                rgba(255,255,255,0.03) 75%
            );
            background-size: 800px 100%;
            animation: shimmerCard 1.6s infinite linear;
            border-color: rgba(255,255,255,0.06);
            min-height: 160px;
            cursor: default;
            pointer-events: none;
        }
        .sig-card-skeleton::before { display: none; }

        /* ── Telegram loading button (G-4) ── */
        .tg-btn.tg-btn-loading {
            opacity: 0.45;
            pointer-events: none;
            min-width: 2.2rem;
        }

        /* ── Stats empty states (I-1) ── */
        .stats-empty-val {
            color: rgba(255,255,255,0.22);
            font-size: 1.4rem;
        }
        .stats-empty-link {
            font-size: 0.65rem;
            color: rgba(201,176,55,0.65);
            text-decoration: none;
            transition: color 0.2s;
        }
        .stats-empty-link:hover { color: #c9b037; }

        /* ── Market Pulse card (G-2) ── */
        .card-pulse {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            width: 100%;
            margin-bottom: 1.25rem;
        }
        .pulse-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .pulse-score-row {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .pulse-score-num {
            font-size: 2.6rem;
            font-weight: 900;
            line-height: 1;
            letter-spacing: -0.03em;
            color: rgba(255,255,255,0.85);
            min-width: 3rem;
        }
        .pulse-score-right {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }
        .pulse-label {
            font-size: 0.78rem;
            font-weight: 700;
            color: rgba(255,255,255,0.7);
            letter-spacing: 0.02em;
        }
        .pulse-bar-track {
            height: 5px;
            background: rgba(255,255,255,0.07);
            border-radius: 10px;
            overflow-x: clip;
        }
        .pulse-bar-fill {
            height: 100%;
            width: 0%;
            border-radius: 10px;
            background: #4ade80;
            transition: width 0.8s ease, background 0.4s;
        }
        .pulse-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
        }
        .pulse-chip {
            font-size: 0.62rem;
            font-weight: 600;
            padding: 0.15rem 0.5rem;
            border-radius: 5px;
            border: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.45);
            background: rgba(255,255,255,0.04);
        }
        .pulse-chip.above { color: #4ade80; border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.07); }
        .pulse-chip.below { color: #ef4444; border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.07); }

        /* Mobile: all three SMA chips stay on one line */
        @media (max-width: 640px) {
            .pulse-chips { flex-wrap: nowrap; gap: 0.25rem; }
            .pulse-chip {
                flex: 1 1 0;
                min-width: 0;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 0.22rem;
                font-size: 0.55rem;
                padding: 0.14rem 0.3rem;
                white-space: nowrap;
            }
            .pulse-chip .ma-dot {
                flex: 0 0 6px;
                width: 6px;
                height: 6px;
                margin-right: 0.12rem;
            }
        }
        .pulse-note {
            font-size: 0.62rem;
            color: rgba(255,255,255,0.25);
            margin: 0;
        }
        .pulse-live-badge {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            color: rgba(255,255,255,0.35);
        }
        .pulse-live-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
        }
        .pulse-live-dot.live {
            background: #4ade80;
            box-shadow: 0 0 0 3px rgba(74,222,128,0.2);
        }

        /* ── Grid view toggle button (B-2) ── */
        .signals-header-right {
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }
        .sig-view-toggle {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 7px;
            color: rgba(255,255,255,0.45);
            cursor: pointer;
            padding: 0.28rem 0.55rem;
            font-size: 0.78rem;
            line-height: 1;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }
        .sig-view-toggle:hover,
        .sig-view-toggle.active {
            background: rgba(201,176,55,0.1);
            border-color: rgba(201,176,55,0.3);
            color: #c9b037;
        }

        /* ── Ticker deck row (grid mode B-2 redesign) ── */
        .sig-carousel-outer.deck-mode,
        .sig-carousel-outer.deck-mode .sig-carousel-track {
            overflow: visible !important;
            min-height: auto !important;
            height: auto !important;
        }
        .sig-deck-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.85rem;
            padding: 0.75rem 0 1rem;
        }
        .sig-deck-card {
            flex: 1 1 0;
            min-width: 130px;
            border-radius: 14px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-left-width: 3px;
            padding: 1.25rem 1.4rem;
            cursor: pointer;
            user-select: none;
            transition: transform 0.2s, background 0.2s, border-color 0.2s;
            animation: deckCardIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
        }
        .sig-deck-card:hover {
            background: rgba(255,255,255,0.06);
            transform: translateY(-2px);
        }
        .sig-deck-ticker {
            font-size: 1.1rem;
            font-weight: 800;
            letter-spacing: 0.03em;
            line-height: 1;
            margin-bottom: 0.35rem;
        }
        .sig-deck-meta {
            font-size: 0.62rem;
            color: rgba(255,255,255,0.4);
            margin-bottom: 0.5rem;
        }
        .sig-deck-open-badge {
            display: inline-block;
            font-size: 0.6rem;
            font-weight: 700;
            padding: 0.1rem 0.45rem;
            border-radius: 5px;
            background: rgba(74,222,128,0.12);
            color: #4ade80;
            border: 1px solid rgba(74,222,128,0.2);
        }
        .sig-deck-open-badge.none {
            background: rgba(255,255,255,0.04);
            color: rgba(255,255,255,0.3);
            border-color: rgba(255,255,255,0.08);
        }
        @keyframes deckCardIn {
            from { opacity: 0; transform: translateY(18px) scale(0.95); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* ── Signal fan popout ── */
        .sig-fan-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(5,8,14,0.65);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 999;
        }
        .sig-fan-backdrop.is-open {
            display: block;
            animation: backdropIn 0.2s ease both;
        }
        .sig-fan-panel {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%) scale(0.88);
            width: min(940px, 92vw);
            max-height: 82vh;
            overflow-x: clip;
            border-radius: 22px;
            background: rgba(10,14,22,0.96);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.1);
            z-index: 1000;
            flex-direction: column;
        }
        .sig-fan-panel.is-open {
            display: flex;
            animation: popoutIn 0.22s ease both;
        }
        .sig-fan-panel.is-closing {
            animation: popoutOut 0.18s ease forwards;
        }
        @keyframes popoutIn {
            from { opacity: 0; transform: translate(-50%,-48%) scale(0.88); }
            to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
        }
        @keyframes popoutOut {
            from { opacity: 1; transform: translate(-50%,-50%) scale(1); }
            to   { opacity: 0; transform: translate(-50%,-48%) scale(0.92); }
        }
        @keyframes backdropIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        .sig-fan-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.25rem 0.85rem;
            border-bottom: 1px solid rgba(255,255,255,0.07);
            flex-shrink: 0;
        }
        .sig-fan-title {
            font-size: 1rem;
            font-weight: 800;
            letter-spacing: 0.02em;
        }
        .sig-fan-count {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.4);
            margin-left: 0.5rem;
            font-weight: 400;
        }
        .sig-fan-close {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.6);
            border-radius: 8px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background 0.2s, color 0.2s;
        }
        .sig-fan-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
        .sig-fan-body {
            overflow-y: auto;
            padding: 1rem 1.25rem 1.25rem;
            flex: 1;
        }
        .sig-fan-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 0.85rem;
        }
        .sig-fan-back-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: none;
            border: none;
            color: rgba(255,255,255,0.45);
            font-size: 0.75rem;
            padding: 0.25rem 0;
            margin-bottom: 0.85rem;
            cursor: pointer;
            transition: color 0.2s;
        }
        .sig-fan-back-btn:hover { color: rgba(255,255,255,0.9); }
        .sig-fan-detail-wrap { overflow-y: auto; }
        .sig-fan-grid .sig-card {
            position: static !important;
            transform: none !important;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            max-width: none;
            will-change: opacity, transform;
            transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, border-color 0.2s !important;
            /* Replace gold border with neutral — left status border still applies */
            border-top-color: rgba(255,255,255,0.07) !important;
            border-right-color: rgba(255,255,255,0.07) !important;
            border-bottom-color: rgba(255,255,255,0.07) !important;
        }
        .sig-fan-grid .sig-card.fan-visible {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto;
            animation: fanCardIn 0.35s cubic-bezier(0.34,1.2,0.64,1) both;
        }
        /* Inside the fan popout: remove top-gradient stripe,
           restore full opacity for all status states */
        .sig-fan-grid .sig-card::before { display: none !important; }
        .sig-fan-grid .sig-card[data-status="tp1"],
        .sig-fan-grid .sig-card[data-status="tp2"],
        .sig-fan-grid .sig-card[data-status="closed"] { opacity: 1 !important; }
        @keyframes fanCardIn {
            from { opacity: 0; transform: translateY(20px) scale(0.94); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* ── Wider carousel card on desktop (B-3) ── */
        @media (min-width: 769px) {
            .sig-card { max-width: 760px; }
            .sig-carousel-outer { min-height: 410px; }
        }

        /* ── Earnings Calendar chips (J-1) ── */
        .earnings-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-bottom: 0.85rem;
            padding-bottom: 0.85rem;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            min-height: 1.6rem;
        }
        .earnings-chip {
            font-size: 0.62rem;
            font-weight: 700;
            padding: 0.18rem 0.55rem;
            border-radius: 5px;
            border: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.55);
            background: rgba(255,255,255,0.04);
            text-decoration: none;
            white-space: nowrap;
            transition: background 0.15s, color 0.15s;
            letter-spacing: 0.03em;
        }
        .earnings-chip:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }
        .earnings-chip.soon {
            color: #f59e0b;
            background: rgba(245,158,11,0.1);
            border-color: rgba(245,158,11,0.3);
        }
        .earnings-chip.soon:hover { background: rgba(245,158,11,0.18); }
        .earnings-row-label {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.25);
            align-self: center;
            white-space: nowrap;
        }

        @media (max-width: 768px) {
            .sig-command-center {
                grid-template-columns: 1fr;
            }

            .sig-carousel-track {
                max-width: 100%;
                min-height: 450px;
            }

            .sig-card-top {
                flex-direction: column;
                align-items: flex-start;
                margin-bottom: 0.6rem;
            }

            .sig-card-left {
                width: 100%;
            }

            .sig-card-right {
                width: 100%;
                justify-content: flex-start;
            }

            .sig-signal-type {
                max-width: 100%;
            }

            .sig-featured-body {
                grid-template-columns: 1fr;
                gap: 0.55rem;
            }

            /* Compact the card so most of the signal data sits in one screen.
               Entry collapses from a tall hero to a slim label-left / price-right bar,
               metrics pack 3-up, and the stat cells lose their generous padding. */
            .sig-featured-details { gap: 0.55rem; }

            .sig-entry-block {
                flex-direction: row;
                align-items: baseline;
                justify-content: space-between;
                gap: 0.8rem;
                padding: 0.5rem 0.8rem;
            }

            .sig-entry-label { margin-bottom: 0; }
            .sig-entry-price { font-size: 1.5rem; }

            .sig-metric-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 0.4rem;
            }

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

            .sig-contract-cell {
                padding: 0.6rem 0.7rem;
            }

            .sig-metric-cell {
                padding: 0.55rem 0.62rem;
            }

            .sig-live-block { padding: 0.75rem 0.8rem; }
            .sig-live-value { font-size: 1.35rem; }

            /* At phone widths a single row cannot hold thumb-sized stepper
             * controls and the total, so the footer stacks: stepper spans the
             * full width with 44px tap targets, total gets its own labeled row. */
            .sig-live-foot {
                flex-direction: column;
                align-items: stretch;
                gap: 0.7rem;
            }

            /* Top-aligned so the buttons sit level with the count box rather than
             * centering against the count plus its caption. */
            .sig-live-qty {
                justify-content: space-between;
                align-items: flex-start;
            }

            /* Open P&L reads first, then the stepper it responds to. */
            .sig-live-total-wrap { order: -1; }

            /* Unit becomes a caption under the count instead of sitting beside it. */
            .sig-live-qty-box {
                flex-direction: column;
                gap: 0.3rem;
            }

            .sig-live-qty-unit { text-align: center; }

            .sig-live-step {
                width: 1.8rem;
                height: 1.8rem;
                font-size: 0.85rem;
            }

            .sig-live-qty-input {
                width: 2.9rem;
                height: 1.8rem;
                font-size: 0.82rem;
            }

            .sig-live-total-wrap {
                flex-direction: column;
                align-items: flex-end;
                gap: 0.25rem;
            }

            .sig-live-total { font-size: 1.2rem; }

            .sig-contract-cell:nth-child(2n) {
                border-right: none;
            }

            .sig-contract-cell:nth-child(n + 3) {
                border-top: 1px solid rgba(255,255,255,0.06);
            }

            .sig-progress-row {
                margin-top: 0.65rem;
                padding-top: 0.7rem;
            }

            /* Mobile: activity panel moves above the featured preview (right
               under the P&L / Win Rate tiles) and compacts to one row with
               prev/next arrows that drive the featured carousel. */
            .sig-activity-panel {
                max-height: none;
                order: -1;
            }

            .sig-activity-carousel {
                display: flex;
                align-items: stretch;
            }

            .sig-activity-arrow {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                flex: 0 0 2.2rem;
                border: 0;
                background: transparent;
                color: rgba(236, 228, 209, 0.65);
                font-size: 0.78rem;
                cursor: pointer;
                transition: color 0.18s, background 0.18s;
            }

            .sig-activity-prev,
            .sig-activity-next { border: 0; }

            .sig-activity-arrow:active {
                color: var(--primary-gold);
                background: rgba(255,255,255,0.04);
            }

            .sig-activity-carousel .sig-activity-list {
                flex: 1 1 auto;
                min-width: 0;
            }

            .sig-activity-list .sig-activity-row {
                display: none;
            }

            .sig-activity-list .sig-activity-row.active {
                display: grid;
                background: transparent;
                border-left-color: transparent;
                border-bottom: 0;
            }

            .sig-bottom-controls {
                align-items: stretch;
            }

            .sig-control-divider {
                display: none;
            }

            .sig-search-wrap {
                flex-basis: 100%;
                margin-left: 0;
            }
        }

        @media (max-width: 520px) {
            .pulse-panel .dmc-score-num {
                font-size: 1.6rem;
            }

            .section-title-premium,
            .dmc-panel-header .section-title-premium,
            .bento-card-title.section-title-premium,
            .sig-activity-header .section-title-premium {
                font-size: 0.9rem !important;
            }

            .sig-carousel-track {
                min-height: 450px;
            }

            .sig-command-center .sig-carousel-track {
                min-height: 0;
            }

            .sig-card {
                padding: 0.85rem;
            }

            .sig-entry-price {
                font-size: 1.4rem;
            }

            .sig-command-center .sig-entry-block {
                justify-content: space-between;
                align-items: center;
                text-align: left;
                gap: 0.55rem;
            }

            .sig-contract-cell {
                display: flex;
                align-items: baseline;
                justify-content: space-between;
                gap: 0.35rem;
                white-space: nowrap;
            }

            .sig-contract-cell span {
                display: inline;
                margin: 0;
                font-size: 0.66rem;
            }

            .sig-contract-cell strong {
                display: inline;
                font-size: 0.6rem;
                overflow-wrap: normal;
            }

            /* Keep contract stats 2-up on phones so the card stays short, not a long single column */
            .sig-contract-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .sig-contract-cell:nth-child(2n) {
                border-right: none;
            }

            .sig-contract-cell:nth-child(n + 3) {
                border-top: 1px solid rgba(255,255,255,0.06);
            }

            .sig-progress-row {
                overflow-x: auto;
                padding-bottom: 0.35rem;
            }

            .sig-progress-track {
                min-width: 320px;
            }

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

            .sig-activity-row {
                grid-template-columns: 3rem 2.7rem minmax(0, 1fr);
                align-items: center;
                gap: 0.35rem;
                padding: 0.65rem 0.55rem;
            }

            .sig-activity-ticker { width: 3rem; min-width: 0; min-height: 1.5rem; padding: 0.25rem 0.3rem; font-size: 0.68rem; }
            .sig-activity-top { display: block; overflow-x: clip; }
            .sig-activity-dir {
                font-family: Arial, Helvetica, sans-serif;
                font-size: 0.64rem;
                letter-spacing: 0.025em;
                text-transform: uppercase;
            }
            .sig-activity-type { display: none; }
            .sig-activity-side { width: 5.35rem; min-width: 0; display: grid; grid-template-columns: 3.15rem 1.9rem; align-items: center; justify-self: end; gap: 0.3rem; white-space: nowrap; }
            .sig-activity-side .sig-status-badge { width: 100%; display: inline-flex; justify-content: center; text-align: center; font-size: 0.56rem; padding: 0.18rem 0.38rem; }
            .sig-activity-side .sig-time { font-size: 0.56rem; }

            /* Keep the active card in flow so the story strip below never gets
             * covered while the carousel swaps cards or recalculates height. */
            .sig-command-center .sig-featured-card { padding-bottom: 0.9rem; }
            .sig-command-center .sig-featured-card.active { position: relative; }
            .sig-command-center .sig-card-top { flex-direction: row; align-items: center; gap: 0.4rem; }
            .sig-command-center .sig-card-left { width: auto; min-width: 0; flex: 1 1 auto; flex-wrap: nowrap; gap: 0.35rem; }
            .sig-command-center .sig-card-right { width: auto; flex: 0 0 auto; }
            .sig-command-center .sig-card-top .sig-ticker-badge,
            .sig-command-center .sig-card-top .sig-direction-badge { flex: 0 0 auto; }
            .sig-command-center .sig-card-top .sig-signal-type { display: inline; min-width: 0; overflow-x: clip; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,0.52); font-size: 0.64rem; font-weight: 700; }
            .sig-command-center .sig-card-top .sig-time { position: absolute; right: 0.85rem; bottom: 0.55rem; font-size: 0.6rem; }

            .sig-story-strip { padding: 0.75rem 0.85rem; }
            .sig-story-strip:not([open]) { margin-top: 0.3rem; }
            .sig-story-content { padding-bottom: 0; }
            .sig-story-fence { position: static; display: block; margin-top: 0.45rem; text-align: right; }

            .pulse-live-badge { min-width: 0; }
            .pulse-live-dot { display: none; }
            .pulse-header-symbol { display: none; }
            .pulse-header-status { display: inline; overflow-x: clip; text-overflow: ellipsis; white-space: nowrap; }
            .pulse-mobile-symbol { display: block; margin-top: 0.52rem; color: rgba(255,255,255,0.42); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; }
            .pulse-panel .pulse-top-row { align-items: flex-end; gap: 0.45rem; }
            .pulse-panel .dmc-trend-label { display: flex; flex: 1 1 auto; min-width: 0; align-items: flex-end; justify-content: flex-start; gap: 0.45rem; margin-left: 0; text-align: left; }
            .pulse-label-desktop { display: none; }
            .pulse-label-mobile { display: flex; flex: 1 1 auto; align-items: flex-end; justify-content: space-between; gap: 0.45rem; }
            .pulse-change-stack { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.05; }
            .pulse-change-period { order: -1; font-size: 0.6rem; letter-spacing: 0.04em; text-transform: none; }
            .pulse-sentiment { white-space: nowrap; }
            .pulse-panel #qstatSince { display: none; }

            .sig-command-center .sig-carousel-track { min-height: 0; }

            /* Compact segmented filter bars instead of full-width stacked buttons */
            .sig-control-group {
                display: grid;
                grid-auto-flow: column;
                grid-auto-columns: 1fr;
                gap: 0.4rem;
                width: 100%;
            }

            .sig-filter-btn {
                width: 100%;
                min-width: 0;
                gap: 0.25rem;
                padding: 0.45rem 0.3rem;
                font-size: 0.68rem;
            }
        }

        /* Pulse Dashboard parity: keep the desktop hierarchy and labels in the
           same order as the approved mobile treatment. */
        @media (min-width: 521px) {
            .pulse-panel .dmc-score-num { font-size: 1.6rem; }
            .pulse-live-badge { min-width: 0; }
            .pulse-live-dot { display: none; }
            .pulse-header-symbol { display: none; }
            .pulse-header-status { display: inline; overflow-x: clip; text-overflow: ellipsis; white-space: nowrap; }
            .pulse-mobile-symbol { display: block; margin-top: 0.52rem; color: rgba(255,255,255,0.42); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; }
            .pulse-panel .pulse-top-row { align-items: flex-end; gap: 0.45rem; }
            .pulse-panel .dmc-trend-label { display: flex; flex: 1 1 auto; min-width: 0; align-items: flex-end; justify-content: flex-start; gap: 0.45rem; margin-left: 0; text-align: left; }
            .pulse-label-desktop { display: none; }
            .pulse-label-mobile { display: flex; flex: 1 1 auto; align-items: flex-end; justify-content: space-between; gap: 0.45rem; }
            .pulse-change-stack { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.05; }
            .pulse-change-period { order: -1; font-size: 0.6rem; letter-spacing: 0.04em; text-transform: none; }
            .pulse-sentiment { white-space: nowrap; }
            .pulse-panel #qstatSince { display: none; }
        }

        /* ── Mobile bento card order (G-3) ── */
        @media (max-width: 768px) {
            .card-fg     { order: 1; }
            .card-econ   { order: 2; }
            .card-stats  { order: 3; }
            .card-stocks { order: 4; }
        }

        /* ── Mobile scroll-perf ── */
        /* Backdrop blur is re-sampled by the GPU every scroll frame. These
           surfaces sit on near-opaque backgrounds (.dmc-panel 65%, .sig-fan-panel
           96%), so the heavy radius is barely visible. Cap it on small screens;
           desktop keeps its full blur above. The auto-scrolling ticker is purely
           decorative, so freeze it on small screens. Live dots (marketPulse,
           econPulse) and loading spinners/shimmers keep running. */
        @media (max-width: 768px) {
            .dmc-panel {
                backdrop-filter: blur(6px);
                -webkit-backdrop-filter: blur(6px);
            }
            .sig-fan-panel {
                backdrop-filter: blur(8px);
                -webkit-backdrop-filter: blur(8px);
            }
        }

        /* Dashboard signal command center: compact controls and information-dense card. */
        .signals-section-header {
            flex-wrap: nowrap;
            margin-bottom: 0.85rem;
        }

        .signals-header-right {
            flex: 1 1 auto;
            justify-content: flex-end;
            min-width: 0;
        }

        .signals-header-right .sig-search-wrap {
            flex: 0 1 340px;
            min-width: 180px;
            min-height: 2.1rem;
            margin-left: 0;
        }

        @media (min-width: 769px) {
            .signals-section-header {
                display: grid;
                grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.88fr);
                gap: 1rem;
            }

            .signals-header-right {
                display: grid;
                grid-template-columns: auto minmax(180px, 1fr);
                justify-content: stretch;
                gap: 0.55rem;
            }

            .sig-filter-menu { justify-self: start; }
            .sig-search-menu { width: 100%; max-width: none; }
            .sig-search-menu .sig-search-wrap { max-width: none; }
        }

        .sig-filter-menu {
            position: relative;
            flex: 0 0 auto;
        }

        .sig-search-menu {
            position: relative;
            flex: 0 1 340px;
            min-width: 180px;
        }

        .sig-search-trigger { display: none; }
        .sig-search-popover { display: block !important; }

        .sig-search-menu .sig-search-wrap {
            width: 100%;
            min-width: 0;
        }

        .sig-filter-menu summary {
            list-style: none;
        }

        .sig-filter-menu summary::-webkit-details-marker {
            display: none;
        }

        .sig-filter-trigger {
            min-height: 2.1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            padding: 0.4rem 0.7rem;
            border: 1px solid rgba(255,255,255,0.11);
            border-radius: 8px;
            background: rgba(255,255,255,0.04);
            color: rgba(255,255,255,0.7);
            font-size: 0.72rem;
            font-weight: 800;
            cursor: pointer;
        }

        .sig-filter-menu[open] .sig-filter-trigger {
            border-color: rgba(201,176,55,0.4);
            color: #f0dfb5;
        }

        .sig-filter-menu .sig-bottom-controls {
            position: absolute;
            z-index: 30;
            top: calc(100% + 0.45rem);
            right: 0;
            width: min(560px, calc(100vw - 4rem));
            display: grid;
            gap: 0.65rem;
            margin: 0;
            padding: 0.75rem;
            border: 1px solid rgba(201,176,55,0.22);
            border-radius: 10px;
            background: #0b1019;
            box-shadow: 0 16px 36px rgba(0,0,0,0.42);
        }

        .sig-filter-menu .sig-control-group {
            flex-wrap: nowrap;
        }

        .sig-filter-menu .sig-filter-btn {
            min-width: 0;
            min-height: 2rem;
            flex: 1 1 0;
            padding: 0.35rem 0.58rem;
        }

        .sig-command-center .sig-featured-card,
        .sig-activity-panel {
            border-color: rgba(255,255,255,0.085);
            box-shadow: none;
        }

        .sig-command-center .sig-featured-card::before {
            display: none;
        }

        .sig-command-center .sig-card[data-status] {
            border-left-width: 1px;
            border-left-color: rgba(255,255,255,0.085);
        }

        .sig-command-center .sig-featured-card {
            padding: 0.9rem;
        }

        .sig-command-center .sig-card-top {
            margin-bottom: 0.7rem;
        }

        .sig-command-center .sig-featured-body {
            grid-template-columns: minmax(145px, 0.65fr) minmax(0, 1.6fr);
            gap: 0.65rem;
        }

        .sig-command-center .sig-entry-block,
        .sig-command-center .sig-contract-cell,
        .sig-command-center .sig-metric-cell {
            padding: 0.58rem 0.65rem;
        }

        .sig-command-center .sig-entry-price {
            font-size: 1.8rem;
        }

        .sig-command-center .sig-featured-details {
            gap: 0.5rem;
        }

        .sig-command-center .sig-progress-row {
            margin-top: 0.65rem;
            padding-top: 0.65rem;
            overflow: visible;
        }

        .sig-command-center .sig-progress-label {
            margin-bottom: 0.55rem;
        }

        .sig-command-center .sig-progress-track {
            width: 100%;
            min-width: 0;
        }

        .sig-command-center .sig-card-actions {
            display: inline-flex;
            gap: 0.28rem;
            margin: 0;
            padding: 0;
        }

        .sig-command-center .sig-action-btn {
            flex: 0 0 auto;
            width: 1.75rem;
            height: 1.75rem;
            min-width: 1.75rem;
            min-height: 1.75rem;
            padding: 0;
            font-size: 0.68rem;
        }

        @media (max-width: 768px) {
            .signals-section-header {
                align-items: center;
                gap: 0.6rem;
            }

            .signals-section-left {
                flex: 0 0 auto;
            }

            .signals-header-right {
                gap: 0.45rem;
            }

            .signals-header-right .sig-search-wrap {
                flex: 1 1 auto;
                min-width: 0;
            }

            .sig-filter-menu {
                position: static;
            }

            .sig-filter-menu .sig-bottom-controls {
                right: 0;
                left: 0;
                width: auto;
            }

            .sig-command-center .sig-featured-body {
                grid-template-columns: 1fr;
            }

            .sig-command-center .sig-entry-block {
                padding: 0.48rem 0.65rem;
            }
        }

        @media (max-width: 520px) {
            .signals-section {
                padding: 0.85rem;
            }

            .sig-command-center .sig-entry-price {
                font-size: 1.44rem;
            }

            .signals-section-header {
                flex-wrap: nowrap;
                gap: 0.4rem;
            }

            .signals-header-right {
                width: auto;
                flex: 0 0 auto;
                margin-left: auto;
                gap: 0.35rem;
            }

            .sig-filter-menu {
                position: static;
                flex: 0 0 auto;
                min-width: 0;
            }

            .sig-search-menu {
                position: relative;
                flex: 0 0 auto;
                min-width: 0;
            }

            .sig-filter-menu .sig-bottom-controls {
                top: calc(100% + 0.45rem);
                right: 0;
                left: 0;
                width: auto;
            }

            .sig-filter-trigger,
            .sig-search-trigger {
                width: 2rem;
                min-width: 2rem;
                min-height: 2rem;
                padding: 0;
            }

            .sig-filter-trigger span { display: none; }

            .sig-search-menu .sig-search-trigger {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border: 1px solid rgba(255,255,255,0.11);
                border-radius: 8px;
                background: rgba(255,255,255,0.04);
                color: rgba(255,255,255,0.7);
                cursor: pointer;
            }

            .sig-search-popover {
                position: absolute;
                z-index: 30;
                top: calc(100% + 0.45rem);
                right: 0;
                width: min(280px, calc(100vw - 3.7rem));
                padding: 0.55rem;
                border: 1px solid rgba(201,176,55,0.22);
                border-radius: 10px;
                background: #0b1019;
                box-shadow: 0 16px 36px rgba(0,0,0,0.42);
            }

            .sig-search-menu > .sig-search-popover {
                display: none !important;
            }

            .sig-search-menu.is-open > .sig-search-popover {
                display: block !important;
            }

            .sig-search-menu .sig-search-wrap {
                min-height: 2rem;
            }

            .sig-filter-menu .sig-control-group {
                display: grid;
                grid-auto-flow: column;
                grid-auto-columns: 1fr;
                width: 100%;
            }

            .sig-command-center .sig-card-top {
                flex-direction: row;
                align-items: center;
            }

            .sig-command-center .sig-card-top .sig-ticker-badge { font-size: 0.78rem; font-weight: 900; }
            .sig-command-center .sig-card-top .sig-contract-type { font-size: 0.68rem; font-weight: 800; }
            .sig-command-center .sig-card-top .sig-signal-type { font-size: 0.62rem; font-weight: 650; color: rgba(255,255,255,0.58); }
            .sig-command-center .sig-card-top .sig-status-badge { font-size: 0.58rem; font-weight: 800; }

            .sig-command-center .sig-card-right {
                width: auto;
                justify-content: flex-end;
            }

            .sig-command-center .sig-progress-row {
                overflow: visible;
                padding-bottom: 0;
            }

            .sig-command-center .sig-progress-track {
                min-width: 0;
            }

            .sig-command-center .sig-progress-step-value,
            .sig-command-center .sig-progress-step-date,
            .sig-command-center .sig-progress-step-time {
                font-size: 0.5rem;
            }

            .sig-command-center .sig-card-actions {
                flex-wrap: wrap;
            }
        }

        /* CLS guard: footer is injected at runtime by footer-component.js. Reserve
           its rendered height so the swap does not shift the page bottom. Nav is
           position:fixed, so its placeholder needs no reserved space. */
        #footer-placeholder { display: block; min-height: 120px; }
        @media (max-width: 900px) { #footer-placeholder { min-height: 150px; } }
        @media (max-width: 560px) { #footer-placeholder { min-height: 180px; } }

        /* ================================================================
           SECTOR ROTATION — preview card (links to sector-flow.html)
        ================================================================ */
        .card-sector-flow {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .sfp-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.6rem;
        }

        .sfp-updated {
            font-size: 0.66rem;
            color: rgba(255, 255, 255, 0.4);
            white-space: nowrap;
        }

        .sfp-body { flex: 1; }

        .sfp-state {
            font-size: 0.76rem;
            color: rgba(255, 255, 255, 0.45);
            margin: 0;
        }

        .sfp-rows { display: flex; flex-direction: column; }

        .sfp-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.8rem;
            padding: 0.42rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .sfp-row:last-child { border-bottom: none; }

        .sfp-label {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.45);
            letter-spacing: 0.03em;
        }

        .sfp-value {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--light-text);
            font-variant-numeric: tabular-nums;
            text-align: right;
        }

        .sfp-pos { color: #4ade80; }
        .sfp-neg { color: #ff6b6b; }

        .sfp-footer-link {
            font-size: 0.74rem;
            font-weight: 600;
            color: var(--primary-gold);
            text-decoration: none;
        }

        .sfp-footer-link:hover { color: var(--secondary-gold); }

        /* ─── Sector heat tape (preview strip under Rotation state) ───
           Diverging ramp with a neutral gray midpoint, same values as the
           full tape on sector-flow.html. Every row also prints its heat
           number, so nothing here is encoded by color alone. */
        .sfp-tape {
            --sfp-tape-neg-3: #FF6B6B;
            --sfp-tape-neg-2: #C23A3C;
            --sfp-tape-neg-1: #7E2126;
            --sfp-tape-zero:  #232833;
            --sfp-tape-pos-1: #1E6B41;
            --sfp-tape-pos-2: #2FA85E;
            --sfp-tape-pos-3: #4ADE80;
            margin-top: 0.9rem;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .sfp-tape[hidden] { display: none; }

        .sfp-tape-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.6rem;
            margin-bottom: 0.5rem;
        }

        .sfp-tape-title {
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.42);
        }

        .sfp-tape-meta {
            font-size: 0.62rem;
            color: rgba(255, 255, 255, 0.32);
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
        }

        /* Narrow cards scroll the strip in their own container rather than
           squeezing the labels to nothing. */
        .sfp-tape-wrap {
            overflow-x: auto;
            overflow-y: clip;
            -webkit-overflow-scrolling: touch;
        }

        /* The renderer sizes the viewBox to the container, so the strip fits
           without scrolling and its text keeps a fixed pixel size. The floor is
           a fallback for the case where the card has no measurable width yet. */
        .sfp-tape-wrap svg {
            display: block;
            width: 100%;
            height: auto;
            min-width: 260px;
        }

        .sfp-tape-label {
            font-size: 8.5px;
            font-weight: 700;
            letter-spacing: 0.04em;
            fill: rgba(255, 255, 255, 0.52);
        }

        .sfp-tape-value {
            font-size: 8.5px;
            font-weight: 700;
            fill: rgba(255, 255, 255, 0.66);
        }

        .sfp-tape-value-pos { fill: #4ade80; }
        .sfp-tape-value-neg { fill: #ff6b6b; }

        .sfp-tape-cell { shape-rendering: crispEdges; }
        .sfp-tape-neutral { fill: var(--sfp-tape-zero); }
        .sfp-tape-pos-1 { fill: var(--sfp-tape-pos-1); }
        .sfp-tape-pos-2 { fill: var(--sfp-tape-pos-2); }
        .sfp-tape-pos-3 { fill: var(--sfp-tape-pos-3); }
        .sfp-tape-neg-1 { fill: var(--sfp-tape-neg-1); }
        .sfp-tape-neg-2 { fill: var(--sfp-tape-neg-2); }
        .sfp-tape-neg-3 { fill: var(--sfp-tape-neg-3); }
        .sfp-tape-gap { fill: rgba(255, 255, 255, 0.04); }
        .sfp-tape-degraded { opacity: 0.55; }

        .sfp-tape-legend {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            margin-top: 0.5rem;
        }

        .sfp-tape-legend-label {
            font-size: 0.55rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.28);
        }

        .sfp-tape-legend-label:last-child { margin-left: 0.15rem; }
        .sfp-tape-legend-label:first-child { margin-right: 0.15rem; }

        .sfp-sw {
            width: 14px;
            height: 7px;
            border-radius: 1px;
        }

        .sfp-sw.sfp-tape-neutral { background: var(--sfp-tape-zero); }
        .sfp-sw.sfp-tape-pos-1 { background: var(--sfp-tape-pos-1); }
        .sfp-sw.sfp-tape-pos-2 { background: var(--sfp-tape-pos-2); }
        .sfp-sw.sfp-tape-pos-3 { background: var(--sfp-tape-pos-3); }
        .sfp-sw.sfp-tape-neg-1 { background: var(--sfp-tape-neg-1); }
        .sfp-sw.sfp-tape-neg-2 { background: var(--sfp-tape-neg-2); }
        .sfp-sw.sfp-tape-neg-3 { background: var(--sfp-tape-neg-3); }

/* Compact daily Unusual Activity preview, alongside the existing mission panels. */
.dmc-panels { grid-template-columns: minmax(0, 2.3fr) minmax(300px, 1fr); align-items: start; }
.dmc-panel { min-width: 0; }
.unusual-preview { align-self: start; }
.unusual-preview .dmc-panel-header { flex-wrap: wrap; }
.uap-date { margin-left: auto; color: rgba(255,255,255,0.45); font-size: 0.65rem; letter-spacing: 0; text-transform: none; }
.uap-caption, .uap-note, .uap-state { color: rgba(255,255,255,0.48); font-size: 0.7rem; line-height: 1.5; }
.uap-caption { margin: 0.15rem 0 0.7rem; }
.uap-state { margin: 0.5rem 0; }
.uap-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.uap-table[hidden], .uap-state[hidden] { display: none; }
.uap-table thead th { padding: 0 0 0.55rem; font-size: 0.6rem; font-weight: 600; color: rgba(255,255,255,0.4); }
.uap-table th { text-align: left; }
.uap-table td, .uap-table th:not(:first-child) { text-align: right; }
.uap-table tbody th, .uap-table td { padding: 0.65rem 0; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.76rem; }
.uap-table tbody th { color: var(--light-text); font-weight: 700; letter-spacing: 0.02em; }
.uap-table td { color: rgba(255,255,255,0.65); }
.uap-table .uap-activity { color: var(--primary-gold); font-weight: 700; }
.uap-note { margin: auto 0 0; padding-top: 0.85rem; font-size: 0.62rem; }
/* The chart is the main workspace; two previews form a compact side rail. */
.pulse-panel { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; }
.sector-flow-panel { grid-column: 2; grid-row: 1; }
.unusual-preview { grid-column: 2; grid-row: 2; }
.pulse-panel #tv-spy-chart { display: flex; flex: 1; min-height: 440px; }
.pulse-panel .bcs-tv-chart { display: flex; flex-direction: column; flex: 1; min-width: 0; margin: 0; }
.pulse-panel #tv-spy-chart iframe { height: 0; min-height: 440px; flex: 1; }
.sector-flow-panel .sfp-body { flex: 0 1 auto; }
.sector-flow-panel .sfp-tape { margin-top: 0; padding-top: 0; border-top: 0; }
.sector-flow-panel .dmc-panel-footer { margin-top: 0; }
@media (max-width: 1000px) {
    .dmc-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pulse-panel { grid-column: 1 / -1; grid-row: 1; }
    .sector-flow-panel { grid-column: 1; grid-row: 2; }
    .unusual-preview { grid-column: 2; grid-row: 2; }
    .pulse-panel #tv-spy-chart, .pulse-panel #tv-spy-chart iframe { min-height: 400px; }
}
@media (max-width: 768px) {
    .dmc-panels { grid-template-columns: minmax(0, 1fr); }
    .pulse-panel, .sector-flow-panel, .unusual-preview { grid-column: 1; grid-row: auto; }
    .pulse-panel #tv-spy-chart, .pulse-panel #tv-spy-chart iframe { min-height: 360px; }
}

/* Fill the signal row when the featured description adds height. */
@media (min-width: 769px) {
    .sig-command-center .sig-activity-panel { align-self: stretch; height: auto; }
    .sig-command-center .sig-activity-list { flex: 1 1 auto; }
    .sig-command-center .sig-activity-row { flex: 1 0 auto; }
}
