:root {
  --ink: #18212f;
  --muted: #6b7788;
  --line: #e4e9f0;
  --panel: #ffffff;
  --page: #f5f7fa;
  --green: #16835f;
  --green-soft: #e7f6ef;
  --red: #c64f5e;
  --red-soft: #fff0f1;
  --blue: #3564b7;
  --navy: #1f2a44;
}

body {
  background: var(--page);
  color: var(--ink);
}

.navbar {
  background: var(--navy) !important;
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #fff !important;
}

.quarto-title-block {
  display: none;
}

.page-shell {
  max-width: 1420px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
}

.eyebrow,
.control-label,
.panel-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--green);
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 1rem 0 2.5rem;
}

.control-bar {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.06);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.3rem;
}

.control-copy {
  min-width: 14rem;
}

.control-label {
  color: var(--ink);
}

.control-help {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.date-control .form-group {
  margin: 0;
}

.date-control label {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.date-control input {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--ink);
  padding: 0.5rem 0.65rem;
}

.ticker-control .form-group,
.stock-load-control .form-group,
.edge-control .form-group {
  margin: 0;
}

.ticker-control label {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ticker-control input {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--ink);
  padding: 0.5rem 0.65rem;
  text-transform: uppercase;
}

.stock-load-control button {
  background: var(--blue);
  border: 0;
  border-radius: 0.55rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.58rem 0.85rem;
  white-space: nowrap;
}

.edge-control label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.stock-control-bar {
  flex-wrap: wrap;
}

.stock-control-bar .control-copy {
  flex: 1 1 22rem;
}

.period-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.5rem 0 0.8rem;
}

.period-line strong {
  color: var(--ink);
}

.stock-prompt {
  background: #eef3fb;
  border: 1px solid #d7e1f1;
  border-radius: 0.8rem;
  color: var(--blue);
  padding: 1rem;
}

.stock-warning {
  background: #fff4db;
  border: 1px solid #f0d99e;
  border-radius: 0.8rem;
  color: #8a6415;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
}

.stock-metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stock-metric-grid div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
}

.stock-metric-grid span,
.stock-metric-grid strong {
  display: block;
}

.stock-metric-grid span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
}

.stock-metric-grid strong {
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.movers-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mover-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.05);
  min-width: 0;
  overflow: hidden;
}

.panel-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
}

.panel-kicker {
  color: var(--green);
  margin-bottom: 0.3rem;
}

.loser .panel-kicker {
  color: var(--red);
}

.volume-panel .panel-kicker {
  color: var(--blue);
}

.panel-heading h2 {
  font-size: 1.4rem;
  margin: 0;
}

.panel-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.mover-table {
  border-collapse: collapse;
  margin: 0;
  width: 100%;
}

.mover-table th {
  background: #fbfcfd;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.8rem 0.75rem;
  text-align: left;
  text-transform: uppercase;
}

.mover-table td {
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  padding: 0.78rem 0.75rem;
  vertical-align: top;
}

.mover-table .rank {
  color: #a3acb9;
  font-variant-numeric: tabular-nums;
  width: 2.5rem;
}

.mover-table .ticker {
  font-weight: 800;
  white-space: nowrap;
}

.mover-table .change {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.mover-table .gainer {
  color: var(--green);
}

.mover-table .loser {
  color: var(--red);
}

.market-cap {
  color: var(--muted);
  white-space: nowrap;
}

.position {
  min-width: 5.3rem;
  white-space: nowrap;
}

.position-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  min-width: 2.6rem;
  padding: 0.25rem 0.38rem;
  text-align: center;
}

.position-badge.high {
  background: var(--green-soft);
  color: var(--green);
}

.position-badge.mid {
  background: #eef1f6;
  color: #4f5d70;
}

.position-badge.low {
  background: var(--red-soft);
  color: var(--red);
}

.position-label {
  color: var(--muted);
  font-size: 0.68rem;
  margin-left: 0.28rem;
}

.themes {
  min-width: 13rem;
}

.volume-section {
  margin-top: 2rem;
}

.table-scroll {
  overflow-x: auto;
}

.volume-table {
  min-width: 1000px;
}

.volume-score,
.volume-peak,
.spike-days,
.spike-rate {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.volume-score {
  color: var(--blue);
  font-weight: 800;
}

.volume-peak {
  font-weight: 700;
}

.volume-empty {
  margin-top: 2rem;
}

.theme-ranking-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-ranking-card,
.chart-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.05);
  min-width: 0;
  overflow: hidden;
}

.theme-ranking-heading,
.chart-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1.15rem 1.25rem 0.95rem;
}

.chart-legend {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.35rem 1.1rem;
  padding: 0.8rem 1.25rem 0;
}

.chart-legend span {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
}

.chart-legend i {
  display: inline-block;
  flex: none;
}

.legend-line,
.legend-dash {
  border-top: 2px solid;
  width: 1.4rem;
}

.legend-dash {
  border-top-style: dashed;
}

.legend-box,
.legend-fill {
  border: 1.5px solid;
  height: 0.7rem;
  width: 0.9rem;
}

.legend-fill {
  border: 0;
}

.legend-dot {
  border-radius: 50%;
  height: 0.55rem;
  width: 0.55rem;
}

.chart-note {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.4rem 1.25rem 0;
}

.theme-ranking-heading h2,
.chart-heading h2 {
  font-size: 1.25rem;
  margin: 0;
}

.theme-ranking-card.pressure .panel-kicker {
  color: var(--red);
}

.theme-ranking-card.attention .panel-kicker,
.chart-panel .panel-kicker,
.theme-table-panel .panel-kicker {
  color: var(--blue);
}

.theme-ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme-ranking-list li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
}

.theme-ranking-list li:first-child {
  border-top: 0;
}

.theme-ranking-name,
.theme-ranking-meta {
  display: block;
}

.theme-ranking-name {
  font-size: 0.86rem;
  font-weight: 750;
}

.theme-ranking-meta {
  color: var(--muted);
  font-size: 0.69rem;
  margin-top: 0.15rem;
}

.theme-ranking-value {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.theme-ranking-card.leader .theme-ranking-value {
  color: var(--green);
}

.theme-ranking-card.pressure .theme-ranking-value {
  color: var(--red);
}

.theme-ranking-card.attention .theme-ranking-value {
  color: var(--blue);
}

.theme-chart-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 2rem 0;
}

.chart-panel figure {
  margin: 0;
  padding: 0.8rem 0.9rem 1rem;
  width: 100%;
}

.chart-panel svg {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.theme-summary-table {
  min-width: 1620px;
}

.theme-summary-table td:not(:first-child) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.theme-name-cell {
  font-weight: 750;
  min-width: 17rem;
}

.table-sort-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: inherit;
  gap: 0.3rem;
  letter-spacing: inherit;
  padding: 0;
  text-transform: inherit;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
  color: var(--blue);
}

.sort-indicator {
  color: #9aa5b4;
  font-size: 0.72rem;
  letter-spacing: 0;
}

th[aria-sort="ascending"] .sort-indicator,
th[aria-sort="descending"] .sort-indicator {
  color: var(--blue);
}

.rank-cell {
  color: var(--muted);
  font-weight: 750;
  text-align: center;
  width: 3.5rem;
}

.benchmark-row td {
  border-bottom-color: #c7d7ef;
  border-top: 1px solid #c7d7ef;
}

.benchmark-row .theme-name-cell {
  color: var(--blue);
}

.benchmark-badge {
  background: #eaf1fb;
  border-radius: 999px;
  color: var(--blue);
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  margin-left: 0.45rem;
  padding: 0.2rem 0.4rem;
  text-transform: uppercase;
  vertical-align: middle;
}

.horizon-return,
.attention-delta {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.horizon-return.positive,
.attention-delta.positive {
  background: var(--green-soft);
  color: var(--green);
}

.horizon-return.negative,
.attention-delta.negative {
  background: var(--red-soft);
  color: var(--red);
}

.horizon-return.neutral,
.attention-delta.neutral {
  color: var(--muted);
}

.horizon-return.unavailable,
.attention-delta.unavailable {
  color: var(--muted);
  font-weight: 500;
}

.state-cell {
  min-width: 8.5rem;
}

.state-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.48rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.state-chip.emerging {
  background: #e7f3fb;
  color: #246d9b;
}

.state-chip.sustained {
  background: var(--green-soft);
  color: var(--green);
}

.state-chip.fading {
  background: #fff4db;
  color: #8a6415;
}

.state-chip.broken {
  background: var(--red-soft);
  color: var(--red);
}

.state-chip.uptrend,
.state-chip.leading {
  background: var(--green-soft);
  color: var(--green);
}

.state-chip.pullback,
.state-chip.fading {
  background: #fff4db;
  color: #8a6415;
}

.state-chip.rebound,
.state-chip.emerging {
  background: #e7f3fb;
  color: #246d9b;
}

.state-chip.downtrend,
.state-chip.lagging {
  background: var(--red-soft);
  color: var(--red);
}

.state-chip.choppy,
.state-chip.mixed {
  background: #eef1f6;
  color: #526174;
}

.state-chip.unavailable {
  background: #eef1f6;
  color: var(--muted);
}

.state-chip.unconfirmed {
  border-color: currentColor;
  opacity: 0.72;
}

.state-note {
  color: var(--muted);
  display: block;
  font-size: 0.61rem;
  margin-top: 0.22rem;
}

.sample-badge {
  background: #fff4db;
  border-radius: 999px;
  color: #8a6415;
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 750;
  margin-left: 0.45rem;
  padding: 0.2rem 0.4rem;
  vertical-align: middle;
}

.theme-view-button,
.dialog-close-button {
  background: #eef3fb;
  border: 1px solid #d7e1f1;
  border-radius: 0.5rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.4rem 0.65rem;
}

.theme-view-button:hover,
.theme-view-button:focus-visible,
.dialog-close-button:hover,
.dialog-close-button:focus-visible {
  background: #e1eafa;
}

.theme-dialog {
  background: var(--panel);
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 24px 70px rgba(20, 29, 48, 0.25);
  color: var(--ink);
  max-height: 88vh;
  padding: 0;
  width: min(1200px, calc(100vw - 2rem));
}

.theme-dialog::backdrop {
  background: rgba(24, 33, 47, 0.55);
  backdrop-filter: blur(2px);
}

.theme-dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.theme-dialog-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem 1.4rem 1rem;
}

.theme-dialog-header h2 {
  font-size: 1.55rem;
  margin: 0;
}

.theme-dialog-header p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
}

.icon-close {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 2.1rem;
  justify-content: center;
  line-height: 1;
  width: 2.1rem;
}

.icon-close:hover,
.icon-close:focus-visible {
  background: #f1f4f8;
  color: var(--ink);
}

.theme-dialog-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 1rem 1.4rem;
}

.theme-dialog-metrics div {
  background: #f7f9fc;
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
}

.theme-dialog-metrics span,
.theme-dialog-metrics strong {
  display: block;
}

.theme-dialog-metrics span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.theme-dialog-metrics strong {
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.theme-member-scroll {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-height: 50vh;
  overflow: auto;
}

.theme-member-table {
  min-width: 1380px;
}

.theme-member-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.theme-dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.85rem 1.4rem;
}

.theme-tag {
  background: #eef1f6;
  border-radius: 999px;
  color: #4f5d70;
  display: inline-block;
  font-size: 0.68rem;
  line-height: 1.2;
  margin: 0.1rem 0.2rem 0.1rem 0;
  padding: 0.28rem 0.48rem;
}

.muted {
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-state {
  background: var(--red-soft);
  border: 1px solid #f4c9ce;
  border-radius: 0.8rem;
  color: var(--red);
  padding: 1rem;
}

.footnote {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .control-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

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

  .theme-ranking-grid,
  .theme-chart-grid {
    grid-template-columns: 1fr;
  }

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

/* Ideas board */
.ideas-shell {
  max-width: 1180px;
}

.home-shell h1 {
  max-width: 14ch;
}

.home-shell .lede {
  max-width: 46rem;
}

.home-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.home-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.05);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.home-card:hover,
.home-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 14px 34px rgba(53, 100, 183, 0.12);
}

.home-card .panel-kicker {
  color: var(--green);
}

.home-card p {
  flex: 1;
  margin: 0;
}

.home-card-link {
  color: var(--blue);
  font-weight: 700;
}

.home-disclaimer {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 2rem 0 0;
}

.ideas-disclaimer {
  background: #eef3fb;
  border-left: 3px solid var(--blue);
  border-radius: 0.35rem;
  color: #43536d;
  font-size: 0.88rem;
  margin: -1.4rem 0 1.5rem;
  padding: 0.75rem 1rem;
}

.ideas-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.8fr);
}

.ideas-list-panel,
.ideas-compose-panel,
.ideas-identity,
.ideas-thread-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.05);
  min-width: 0;
  padding: 1.25rem;
}

.ideas-identity {
  margin-bottom: 1.25rem;
}

.ideas-identity h2,
.ideas-compose-panel h2,
.ideas-section-heading h2 {
  font-size: 1.25rem;
  margin: 0;
}

.ideas-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ideas-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.ideas-card {
  border-top: 1px solid var(--line);
  color: inherit;
  display: block;
  padding: 1rem 0;
  text-decoration: none;
}

.ideas-card:hover h3,
.ideas-card:focus-visible h3 {
  color: var(--blue);
}

.ideas-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}

.ideas-preview,
.ideas-full-body,
.ideas-reply-body {
  color: #455267;
  line-height: 1.55;
  margin: 0.35rem 0 0.7rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ideas-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ideas-card-meta,
.ideas-byline,
.ideas-signed-in {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
}

.ideas-byline {
  color: var(--muted);
  font-size: 0.78rem;
}

.ideas-author {
  color: var(--ink);
  font-weight: 750;
}

.ideas-verified {
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
}

.ideas-time,
.ideas-replies {
  color: var(--muted);
  font-size: 0.75rem;
}

.ideas-replies {
  margin-left: auto;
}

.ideas-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.ideas-form p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
}

.ideas-form label:not(.ideas-honeypot) {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
  margin-top: 0.35rem;
}

.ideas-form input,
.ideas-form textarea {
  background: #fff;
  border: 1px solid #cfd7e2;
  border-radius: 0.55rem;
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.ideas-form textarea {
  resize: vertical;
}

.ideas-form input:focus,
.ideas-form textarea:focus,
.ideas-form button:focus-visible,
.ideas-secondary:focus-visible,
.ideas-back:focus-visible {
  outline: 3px solid rgba(53, 100, 183, 0.25);
  outline-offset: 2px;
}

.ideas-form button,
.ideas-secondary {
  background: var(--blue);
  border: 0;
  border-radius: 0.55rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 750;
  justify-self: start;
  padding: 0.62rem 0.9rem;
}

.ideas-secondary {
  background: #eef1f6;
  color: #40506a;
}

.ideas-form button:disabled,
.ideas-secondary:disabled {
  cursor: wait;
  opacity: 0.6;
}

.ideas-form-status {
  min-height: 1.2em;
}

.ideas-form-status.success,
.ideas-notice.success {
  color: var(--green);
}

.ideas-form-status.error,
.ideas-notice.error,
.ideas-error {
  color: var(--red);
}

.ideas-notice:not(:empty) {
  margin: 0 0 1rem;
}

.ideas-notice {
  font-size: 0.88rem;
}

.ideas-empty {
  background: #fbfcfd;
  border: 1px dashed #cfd7e2;
  border-radius: 0.7rem;
  color: var(--muted);
  padding: 1rem;
}

.ideas-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.ideas-captcha:empty {
  display: none;
}

.ideas-back {
  color: var(--blue);
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-decoration: none;
}

.ideas-full-idea h2 {
  font-size: 1.5rem;
  margin: 0 0 0.7rem;
  overflow-wrap: anywhere;
}

.ideas-full-body {
  margin-top: 1rem;
}

.ideas-replies-list {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.ideas-replies-list h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.ideas-reply {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.ideas-reply-panel {
  margin-top: 1.25rem;
}

@media (max-width: 800px) {
  .ideas-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding-top: 2.5rem;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .panel-subtitle {
    text-align: left;
  }

  .mover-table th,
  .mover-table td {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .mover-table th:nth-child(1),
  .mover-table td:nth-child(1) {
    display: none;
  }

  .theme-summary-table th:nth-child(1),
  .theme-summary-table td:nth-child(1),
  .theme-member-table th:nth-child(1),
  .theme-member-table td:nth-child(1) {
    display: table-cell;
  }

  .theme-dialog-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .theme-dialog-header,
  .theme-dialog-metrics,
  .theme-dialog-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .themes {
    min-width: 9rem;
  }
}
