.invest-mode-head{display:flex;align-items:flex-start;justify-content:center;gap:20px;padding:22px 24px 8px}
.invest-head-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto;margin-left:0}
.invest-mode-copy{display:grid;gap:6px;justify-items:center;text-align:center}
.invest-mode-copy.is-subtitle-only{gap:0}
.invest-mode-copy h3{margin:0;font-family:'DM Sans',sans-serif;font-size:1.2rem;font-weight:800;color:var(--text-dark)}
.invest-mode-copy p{margin:0 auto;color:var(--text-muted);font-size:0.88rem;line-height:1.55;max-width:760px}
html[data-home-preview-route="testing-features"] .invest-mode-head,
.template-index-free-html[data-home-layout="approved-homepage"] .invest-mode-head,
.template-index-free-html[data-home-experiment="free-preview-gate"] .invest-mode-head{display:flex;align-items:flex-start;justify-content:center}
html[data-home-preview-route="testing-features"] .invest-mode-copy,
.template-index-free-html[data-home-layout="approved-homepage"] .invest-mode-copy,
.template-index-free-html[data-home-experiment="free-preview-gate"] .invest-mode-copy{justify-items:center;text-align:center}
html[data-home-preview-route="testing-features"] .invest-mode-copy p,
.template-index-free-html[data-home-layout="approved-homepage"] .invest-mode-copy p,
.template-index-free-html[data-home-experiment="free-preview-gate"] .invest-mode-copy p{margin-inline:auto}
html[data-home-preview-route="testing-features"] .invest-head-actions,
.template-index-free-html[data-home-layout="approved-homepage"] .invest-head-actions,
.template-index-free-html[data-home-experiment="free-preview-gate"] .invest-head-actions{justify-self:auto}
.invest-settings-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;border:1px solid var(--table-line-strong);background:var(--card-bg);color:var(--text-muted);cursor:pointer;transition:.18s ease;box-shadow:none}
.invest-settings-btn:hover{color:var(--primary);border-color:rgba(67,56,202,0.28);background:rgba(67,56,202,0.04)}
.invest-settings-btn svg{width:18px;height:18px}
.invest-category-bar{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;padding:22px 24px 18px}
.table-card[data-home-table-intro-removed="1"] .invest-category-bar{padding-top:24px}
.table-search-slot{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex:0 0 320px;min-width:320px;max-width:320px;margin-left:auto}
.table-search-slot .search-wrap{position:relative;width:100%;max-width:none}
.table-search-slot .search-control-row{display:block}
.table-search-slot .search-wrap label{display:none}
.table-search-slot .search-wrap input{min-height:36px;border-radius:999px;padding:0 16px;font-size:0.92rem}
.table-search-slot .search-dd{top:calc(100% + 10px)}
.table-search-slot mark{background:rgba(67,56,202,0.12);color:var(--primary);padding:0 .08em;border-radius:.28em}
.invest-category-pills{display:flex;gap:8px;flex-wrap:nowrap;align-items:center;min-width:0;padding:0}
.invest-category-main-pills{flex:0 1 auto}
.invest-category-tail-pills{flex:0 0 auto}
.invest-category-tail-pills:empty{display:none}
.invest-cat-pill{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;border-radius:999px;border:1.5px solid var(--border);background:transparent;color:var(--text-muted);font-family:'DM Sans',sans-serif;font-size:0.8rem;font-weight:700;cursor:pointer;text-decoration:none;transition:.18s ease}
.invest-cat-pill:hover{border-color:rgba(67,56,202,0.34);color:var(--primary)}
.invest-cat-pill.active{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:none}
.signals-filters-section .filters-row{grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) minmax(170px,1fr) minmax(280px,340px)}
.signals-filters-section .filter-group.search{min-width:0;width:100%;max-width:340px;justify-self:end}
.signals-filters-section .search-control-row{display:block}
.signals-filters-section .search-control-row input{display:block;min-width:0;width:100%}
.search-settings-slot,
.search-settings-slot:empty,
[data-mode="short"] .signals-filters-section .search-settings-slot{display:none!important}
.signals-filters-section{transition:.18s ease}
.tf-controls{display:grid;gap:12px;flex:1;min-width:0}
.tf-presets-line{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;flex-wrap:wrap}
.tf-label{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;border-radius:999px;background:rgba(67,56,202,0.08);color:var(--primary);font-family:'DM Sans',sans-serif;font-size: 0.86rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;box-shadow:inset 0 0 0 1px rgba(67,56,202,0.12)}
.invest-chip{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 10px;border-radius:999px;font-family:'DM Sans',sans-serif;font-size: 0.9rem;font-weight:800;white-space:nowrap}
.invest-chip.up,.invest-chip.bullish,.invest-chip.gold,.invest-chip.low,.invest-chip.good{background:#dcfce7;color:#15803d}
.invest-chip.down,.invest-chip.bearish,.invest-chip.death,.invest-chip.high,.invest-chip.bad{background:#fee2e2;color:#dc2626}
.invest-chip.neutral,.invest-chip.medium,.invest-chip.flat{background:#e2e8f0;color:#475569}
.invest-signal-stack{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:128px}
.invest-signal-note{font-family:'JetBrains Mono',monospace;font-size: 0.9rem;color:var(--text-muted);white-space:nowrap}
.invest-number{font-family:'JetBrains Mono',monospace;font-size:0.84rem;font-weight:700}
.invest-number.good{color:#15803d}
.invest-number.medium{color:#475569}
.invest-number.bad{color:#dc2626}
.invest-yield{font-family:'JetBrains Mono',monospace;font-size:0.84rem;font-weight:700;color:var(--text-dark)}
.invest-settings-overlay{position:fixed;inset:0;background:rgba(15,23,42,0.38);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:.18s ease;z-index:120}
.invest-settings-overlay.open{opacity:1;pointer-events:auto}
.invest-settings-modal{position:fixed;top:50%;left:50%;width:min(440px,calc(100vw - 32px));max-height:min(82vh,780px);display:flex;flex-direction:column;border:1px solid var(--border);border-radius:18px;background:var(--card-bg);box-shadow:none;transform:translate(-50%,-50%) scale(.98);opacity:0;pointer-events:none;transition:.18s ease;z-index:121;overflow:hidden}
.invest-settings-modal.open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
.invest-settings-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px 14px;border-bottom:1px solid var(--border)}
.invest-settings-head h4{margin:0;font-family:'DM Sans',sans-serif;font-size:1rem;font-weight:800;color:var(--text-dark)}
.invest-settings-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text-muted);font-size:1.1rem;cursor:pointer;transition:.18s ease}
.invest-settings-close:hover{background:#fee2e2;color:#dc2626;border-color:#fecaca}
.invest-settings-body{padding:8px 22px 18px;overflow:auto}
.invest-settings-group{padding-top:10px}
.invest-settings-group-label{margin:0 0 8px;font-family:'DM Sans',sans-serif;font-size: 0.86rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}
.invest-setting-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid rgba(148,163,184,0.16)}
.invest-setting-row:last-child{border-bottom:none}
.invest-setting-copy{display:grid;gap:2px}
.invest-setting-name{font-family:'DM Sans',sans-serif;font-size:0.84rem;font-weight:700;color:var(--text-dark)}
.invest-setting-desc{font-size:0.74rem;line-height:1.45;color:var(--text-muted)}
.invest-setting-switch{position:relative;display:inline-flex;align-items:center;justify-content:center;width:46px;height:26px;flex-shrink:0}
.invest-setting-switch input{position:absolute;opacity:0;inset:0;cursor:pointer}
.invest-setting-slider{position:absolute;inset:0;border-radius:999px;background:#cbd5e1;transition:.18s ease}
.invest-setting-slider:before{content:'';position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,0.22);transition:.18s ease}
.invest-setting-switch input:checked + .invest-setting-slider{background:var(--primary)}
.invest-setting-switch input:checked + .invest-setting-slider:before{transform:translateX(20px)}
.invest-settings-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--border);background:rgba(248,250,252,0.75)}
.invest-settings-footer button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 16px;border-radius:10px;font-family:'DM Sans',sans-serif;font-size:0.82rem;font-weight:800;cursor:pointer;transition:.18s ease}
.invest-settings-reset{border:1px solid var(--border);background:var(--bg);color:var(--text-muted)}
.invest-settings-reset:hover{border-color:rgba(67,56,202,0.26);color:var(--primary)}
.invest-settings-done{border:1px solid var(--primary);background:var(--primary);color:#fff;box-shadow:none}
.invest-settings-done:hover{background:var(--primary-dark);border-color:var(--primary-dark)}
[data-mode="short"] .invest-category-bar{display:none}
[data-mode="short"] .table-long-lock-overlay{display:none}
@media(max-width:900px){
  .invest-category-bar{display:grid;grid-template-columns:1fr;padding:20px 18px 18px}
  .table-card[data-home-table-intro-removed="1"] .invest-category-bar{padding-top:20px}
  .table-search-slot{max-width:none;justify-self:stretch;min-width:0;margin-left:0}
  .invest-category-pills{flex-wrap:wrap}
  .signals-filters-section .filters-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .signals-filters-section .filter-group{min-width:0}
  .signals-filters-section .filter-group.search,
  .signals-filters-section .search-wrap,
  .signals-filters-section .search-control-row,
  .signals-filters-section .search-control-row input{max-width:none;min-width:0;width:100%}
  .signals-filters-section .filter-group.search{justify-self:stretch}
  .table-scroll-cues,
  .table-scroll-hint { justify-content:flex-start; }
  .table-scroll-hint { display:inline-flex; }
  .invest-mode-head{padding:20px 18px 8px}
  .invest-head-actions{width:100%;justify-content:flex-start;margin-left:0}
  .tf-controls{flex-wrap:wrap}
  .table-toolbar-actions{width:100%;justify-content:space-between;margin-left:0}
}
@media(max-width:640px){
  .invest-mode-head{flex-direction:column;align-items:stretch;gap:12px}
  .invest-category-bar{gap:12px}
  .invest-head-actions{justify-content:space-between;margin-left:0}
  .signals-filters-section .filters-row{grid-template-columns:minmax(0,1fr)!important;gap:12px}
  .signals-filters-section .filter-group,
  .signals-filters-section .filter-group.search,
  .signals-filters-section .search-wrap,
  .signals-filters-section .search-control-row,
  .signals-filters-section .search-control-row input{min-width:0;width:100%;max-width:100%}
  html[data-home-preview-route="testing-features"] .invest-mode-head,
  .template-index-free-html[data-home-layout="approved-homepage"] .invest-mode-head,
  .template-index-free-html[data-home-experiment="free-preview-gate"] .invest-mode-head{display:flex;flex-direction:column;align-items:stretch;gap:12px}
  html[data-home-preview-route="testing-features"] .invest-mode-copy,
  .template-index-free-html[data-home-layout="approved-homepage"] .invest-mode-copy,
  .template-index-free-html[data-home-experiment="free-preview-gate"] .invest-mode-copy{justify-items:center;text-align:center}
  html[data-home-preview-route="testing-features"] .invest-head-actions,
  .template-index-free-html[data-home-layout="approved-homepage"] .invest-head-actions,
  .template-index-free-html[data-home-experiment="free-preview-gate"] .invest-head-actions{justify-self:auto}
  .invest-settings-modal{top:auto;bottom:0;left:0;width:100%;max-height:84vh;border-radius:18px 18px 0 0;transform:translateY(16px)}
  .invest-settings-modal.open{transform:translateY(0)}
  .tf-label{align-self:flex-start}
}
@media(max-width:700px){
  html[data-mode="long"] .table-long-lock-overlay,
  body[data-mode="long"] .table-long-lock-overlay {
    left: 50%;
    top: var(--bc-long-lock-top, 44vh);
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100vw - 48px);
    z-index: 18;
  }
  .table-long-lock-card .lock-btn {
    min-height: 48px;
    padding: 0 24px;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(67,56,202,0.22);
  }
}
[data-theme="dark"] .tf-label{background:rgba(129,140,248,0.16);color:#c7d2fe;box-shadow:inset 0 0 0 1px rgba(129,140,248,0.18)}
[data-theme="dark"] .tf-upsell-note{background:rgba(99,102,241,0.12);border-color:rgba(129,140,248,0.28)}
[data-theme="dark"] .tf-upsell-note-copy{color:#e5e7eb}
[data-theme="dark"] .invest-settings-btn,
[data-theme="dark"] .invest-settings-modal{background:var(--card-bg)}
[data-theme="dark"] .invest-settings-reset{background:rgba(15,23,42,0.48)}
[data-theme="dark"] .invest-settings-footer{background:rgba(15,23,42,0.56)}
[data-theme="dark"] .long-inline-lock-cta { background: rgba(15,23,42,0.92); border-color: rgba(129,140,248,0.28); color: #c7d2fe; box-shadow: none; }
[data-theme="dark"] .long-inline-lock-cta:hover { color: #e0e7ff; }
[data-theme="dark"] .invest-chip.neutral,
[data-theme="dark"] .invest-chip.medium,
[data-theme="dark"] .invest-chip.flat{background:rgba(148,163,184,0.16);color:#cbd5e1}