:root {
  --rs-radius: 0.95rem;
  --rs-radius-sm: 0.75rem;
  --rs-shadow: 0 0.85rem 2rem rgba(15, 23, 42, 0.06);
  --rs-shadow-sm: 0 0.35rem 1rem rgba(15, 23, 42, 0.045);
  --rs-text: #0f172a;
  --rs-muted: #5b6475;
  --rs-border: rgba(15, 23, 42, 0.08);
  --rs-surface: #ffffff;
  --rs-surface-alt: #f8fafc;
  --rs-primary: #0d6efd;
  --rs-primary-soft: rgba(13, 110, 253, 0.1);
  --rs-success-soft: rgba(25, 135, 84, 0.12);
  --rs-danger-soft: rgba(220, 53, 69, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--rs-text);
  background: #f5f7fb;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1050;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #0b1220;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88) !important;
}

.navbar-brand {
  color: var(--rs-text);
  font-size: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #0d6efd 0%, #6ea8fe 100%);
  color: #fff;
  box-shadow: var(--rs-shadow-sm);
}

.brand-subtitle {
  display: block;
  font-size: 0.73rem;
  line-height: 1.1;
  color: var(--rs-muted);
  font-weight: 500;
}

.hero-shell,
.detail-panel,
.feature-card,
.stat-card,
.metric-card,
.filter-panel,
.glass-panel,
.quick-link,
.signal-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow-sm);
}

.hero-shell {
  padding: 1.25rem;
  position: relative;
}

.hero-gradient {
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(13, 110, 253, 0.04) 0%, rgba(255, 255, 255, 0.96) 55%, rgba(255, 255, 255, 0.98) 100%);
}

.hero-compact {
  padding: 1rem 1.1rem;
}

.eyebrow-pill,
.trust-pill,
.chip-toggle,
.quick-link,
.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 600;
}

.eyebrow-pill {
  width: fit-content;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--rs-primary);
  background: var(--rs-primary-soft);
}

.summary-list,
.highlight-list,
.how-to-list {
  display: grid;
  gap: 0.55rem;
}

.stats-strip .stat-card,
.stat-card {
  height: 100%;
  padding: 1.3rem 1.35rem;
}

.stat-value {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  display: block;
  color: var(--rs-muted);
  font-size: 0.94rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.card-rs:hover,
.card-rs:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--rs-shadow);
  border-color: rgba(13, 110, 253, 0.18);
}

.detail-panel,
.metric-card,
.filter-panel {
  padding: 1rem;
}

.filter-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

.filters-toolbar {
  display: grid;
  grid-template-columns: minmax(16rem, 1.6fr) repeat(2, minmax(10rem, 0.75fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.filter-field {
  min-width: 0;
}

.filter-field .form-label {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.filter-field .form-control,
.filter-field .form-select,
.filter-actions .btn,
.catalog-card .btn {
  font-size: 0.9rem;
}

.filter-field .form-control,
.filter-field .form-select {
  min-height: 2.45rem;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
}

.compact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
}

.hero-market {
  padding: 1.05rem 1.1rem 1.1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(13, 110, 253, 0.14), transparent 42%),
    radial-gradient(circle at 92% 100%, rgba(25, 135, 84, 0.08), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.hero-market::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.hero-market-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16.5rem, 22rem) minmax(11.5rem, auto);
  gap: 0.85rem;
  align-items: stretch;
}

.hero-market-fx {
  --hero-dxy-chart-height: 9.25rem;
  width: 100%;
  min-width: 16.5rem;
  max-width: 22rem;
  align-self: stretch;
}

.hero-panel-card--fx {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(var(--hero-dxy-chart-height) + 3.35rem);
}

.hero-panel-card--fx .hero-dxy-widget {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  width: 100%;
  min-height: var(--hero-dxy-chart-height);
}

.hero-market-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 110, 253, 0.14);
  color: var(--rs-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-dji-panel {
  padding: 0.85rem 0.95rem;
  border-radius: calc(var(--rs-radius-sm) + 2px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero-dji-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.hero-dji-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rs-muted);
}

.hero-dji-count {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.15rem;
  line-height: 1.1;
}

.hero-dji-count strong {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-dji-count span {
  font-size: 0.86rem;
  color: var(--rs-muted);
}

.hero-dji-avg {
  flex-shrink: 0;
  min-width: 5.5rem;
  padding: 0.45rem 0.62rem;
  border-radius: 0.72rem;
  text-align: right;
}

.hero-dji-avg-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-dji-avg strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero-dji-avg--up {
  background: rgba(25, 135, 84, 0.12);
  color: #146c43;
}

.hero-dji-avg--down {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
}

.hero-dji-avg--flat {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.hero-dji-meter {
  display: flex;
  width: 100%;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  margin-bottom: 0.65rem;
}

.hero-dji-meter-seg {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.35s ease;
}

.hero-dji-meter-seg--up {
  background: linear-gradient(90deg, #34d399, #198754);
}

.hero-dji-meter-seg--down {
  background: linear-gradient(90deg, #f87171, #dc3545);
}

.hero-dji-meter-seg--flat {
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

.hero-dji-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-dji-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hero-dji-chip--up {
  background: rgba(25, 135, 84, 0.1);
  color: #146c43;
}

.hero-dji-chip--down {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
}

.hero-dji-chip--flat {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.hero-dji-footnote {
  margin-top: 0.55rem;
  font-size: 0.74rem;
  color: var(--rs-muted);
}

.hero-panel-card {
  height: 100%;
  padding: 0.75rem 0.8rem 0.55rem;
  border-radius: calc(var(--rs-radius-sm) + 2px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.hero-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.14), rgba(13, 110, 253, 0.04));
  color: var(--rs-primary);
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rs-muted);
}

.hero-panel-sub {
  font-size: 0.78rem;
  color: var(--rs-text);
  opacity: 0.72;
}

.hero-dxy-widget {
  width: 100%;
  overflow: hidden;
  border-radius: 0.65rem;
}

.hero-dxy-native {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  min-height: var(--hero-dxy-chart-height);
  padding: 0.15rem 0.05rem 0;
}

.hero-dxy-quote {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.hero-dxy-price {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--rs-text);
  line-height: 1;
}

.hero-dxy-change {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-dxy-change--up {
  color: #146c43;
}

.hero-dxy-change--down {
  color: #b02a37;
}

.hero-dxy-change--flat {
  color: #475569;
}

.hero-dxy-chart {
  display: block;
  width: 100%;
  height: calc(var(--hero-dxy-chart-height) - 1.85rem);
  min-height: 5.75rem;
  overflow: visible;
}

.hero-dxy-line {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.hero-dxy-area {
  stroke: none;
}

.hero-dxy-chart--up .hero-dxy-line {
  stroke: #198754;
}

.hero-dxy-chart--up .hero-dxy-area {
  fill: rgba(25, 135, 84, 0.16);
}

.hero-dxy-chart--down .hero-dxy-line {
  stroke: #dc3545;
}

.hero-dxy-chart--down .hero-dxy-area {
  fill: rgba(220, 53, 69, 0.14);
}

.hero-dxy-chart--flat .hero-dxy-line {
  stroke: #64748b;
}

.hero-dxy-chart--flat .hero-dxy-area {
  fill: rgba(100, 116, 139, 0.12);
}

.hero-dxy-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--hero-dxy-chart-height) - 1.85rem);
  border-radius: 0.65rem;
  background: rgba(226, 232, 240, 0.45);
  color: var(--rs-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-market-lenses {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-lens-stack {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  flex: 1;
}

.hero-lens {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--rs-border);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  appearance: none;
  font: inherit;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background-color 0.12s ease;
}

.hero-lens:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.06);
}

.hero-lens:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.28);
}

.hero-lens-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.hero-lens-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.hero-lens-copy strong {
  font-size: 0.84rem;
  line-height: 1.15;
}

.hero-lens-copy small {
  font-size: 0.72rem;
  color: var(--rs-muted);
  line-height: 1.2;
}

.hero-lens--important {
  border-color: #e7c75f;
  background: #fffdf5;
}

.hero-lens--important .hero-lens-icon {
  background: #fff3c2;
  color: #6a4d00;
}

.hero-lens--growth {
  border-color: #8ccfb0;
  background: #f6fdf9;
}

.hero-lens--growth .hero-lens-icon {
  background: #def7e8;
  color: #0f5132;
}

.hero-lens--decline {
  border-color: #e3a3a3;
  background: #fffafa;
}

.hero-lens--decline .hero-lens-icon {
  background: #ffe4e4;
  color: #842029;
}

.market-index-card {
  min-width: min(100%, 15.5rem);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rs-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--rs-shadow-sm);
}

.market-index-card-head {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.market-index-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rs-muted);
}

.market-index-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rs-text);
}

.market-index-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.25rem;
}

.market-index-price {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--rs-text);
}

.market-index-change {
  font-size: 0.84rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.market-index-change--up {
  color: #0d7a4e;
}

.market-index-change--down {
  color: #c0392b;
}

.market-index-change--flat {
  color: var(--rs-muted);
}

.market-index-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--rs-muted);
}

.compact-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.48rem 0.78rem;
  border: 1px solid var(--rs-border);
  border-radius: 0.78rem;
  background: #fff;
  color: var(--rs-muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.compact-stat-btn {
  font: inherit;
  cursor: pointer;
  appearance: none;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.12s ease;
}

.compact-stat-btn--important {
  background: #fff8db;
  border-color: #e7c75f;
  color: #6a4d00;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.compact-stat-btn--important:hover {
  background: #fff3c2;
  border-color: #ccab43;
  color: #4f3900;
  transform: translateY(-1px);
}

.compact-stat-btn--important:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.45);
}

.compact-stat-btn--growth {
  background: #ecfdf3;
  border-color: #8ccfb0;
  color: #0f5132;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.compact-stat-btn--growth:hover {
  background: #def7e8;
  border-color: #61b88e;
  color: #0b3d26;
  transform: translateY(-1px);
}

.compact-stat-btn--growth:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.4);
}

.compact-stat-btn--decline {
  background: #fff1f1;
  border-color: #e3a3a3;
  color: #842029;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.compact-stat-btn--decline:hover {
  background: #ffe4e4;
  border-color: #cd7474;
  color: #64171d;
  transform: translateY(-1px);
}

.compact-stat-btn--decline:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(248, 113, 113, 0.45);
}

.compact-stat-btn:active {
  transform: translateY(0);
}

.compact-stat strong {
  color: var(--rs-text);
}

.card-rs {
  border-radius: var(--rs-radius);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.catalog-card {
  overflow: hidden;
  box-shadow:
    var(--rs-shadow-sm),
    0 1px 0 rgba(15, 23, 42, 0.055);
}

.catalog-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.catalog-brand-row {
  min-width: 0;
}

.catalog-logo-wrap {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.catalog-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.catalog-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rs-primary);
  background: var(--rs-primary-soft);
  letter-spacing: -0.02em;
}

.catalog-logo-wrap.is-fallback .catalog-logo {
  display: none;
}

.catalog-logo-wrap.is-fallback .catalog-logo-fallback {
  display: flex;
}

.catalog-card-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(13rem, 1.05fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "main meta"
    "actions actions";
  gap: 0.7rem;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.catalog-card-main {
  min-width: 0;
  grid-area: main;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0.45rem;
  container-type: inline-size;
  container-name: catalog-card-main;
}

.catalog-card-main .signal-card {
  margin-top: 0;
  flex-shrink: 0;
}

.compact-catalog-grid {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  align-self: stretch;
}

.catalog-card-actions {
  grid-area: actions;
  padding-top: 0.15rem;
  margin-top: 0.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* CTA: anchor <a class="btn btn-primary catalog-open-btn catalog-open-btn--prio-*">
   The main glow now comes from the priority chip itself, not a generic button hotspot. */
.catalog-open-btn.btn.btn-primary {
  --catalog-btn-shadow: 0 0.35rem 0.95rem rgba(13, 110, 253, 0.22);
  --bs-btn-padding-y: 0;
  --bs-btn-padding-x: 1rem;
  --bs-btn-line-height: 1.2;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 2.55rem;
  padding-block: 0.38rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: var(--bs-btn-line-height);
  border: none;
  border-radius: var(--rs-radius-sm);
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  background-color: #0d6efd;
  background-image: linear-gradient(135deg, #0d6efd 0%, #4f8dff 52%, #6ea8fe 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: var(--catalog-btn-shadow);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.catalog-open-btn-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  max-width: 100%;
}

.catalog-open-btn-head-row {
  --cta-head-fs: 0.88rem;
  --cta-head-lh: 1.2;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.catalog-open-btn-head-inner {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
}

.catalog-open-btn-headline {
  display: block;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-size: var(--cta-head-fs);
  line-height: var(--cta-head-lh);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  text-align: center;
}

.catalog-open-btn-meta {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 0.28rem;
  display: block;
  transform: translateY(
    calc((var(--cta-head-fs) * var(--cta-head-lh)) / 2 - 100%)
  );
}

.catalog-open-btn-count {
  font-size: 0.49rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.9;
  white-space: nowrap;
}

.catalog-open-prio {
  --catalog-prio-glow-core: rgba(255, 255, 255, 0.5);
  --catalog-prio-glow-mid: rgba(255, 255, 255, 0.18);
  --catalog-prio-icon-size: 0.52rem;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  width: auto;
  max-width: 100%;
  min-height: 0.92rem;
  padding: 0.12rem 0.38rem 0.12rem 0.28rem;
  flex-shrink: 0;
  border-radius: 999px;
  line-height: 1;
  cursor: inherit;
  overflow: visible;
  box-sizing: border-box;
}

.catalog-open-prio::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 1.55rem);
  height: 1.75rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(
      ellipse at center,
      var(--catalog-prio-glow-core) 0%,
      var(--catalog-prio-glow-mid) 38%,
      transparent 74%
    );
  filter: blur(7px);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

.catalog-open-prio > .bi {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--catalog-prio-icon-size);
  line-height: 1;
  width: 1em;
  height: 1em;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.catalog-open-prio > .bi::before {
  vertical-align: 0;
  line-height: 1;
}

.catalog-open-prio .catalog-open-btn-count {
  position: relative;
  z-index: 0;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  height: var(--catalog-prio-icon-size);
}

.catalog-open-btn--prio-urgent {
  border-left-color: #f87171;
}

.catalog-open-btn--prio-important {
  border-left-color: #facc15;
}

.catalog-open-btn--prio-planned {
  border-left-color: #4ade80;
}

.catalog-open-prio--urgent {
  --catalog-prio-glow-core: rgba(254, 226, 226, 0.9);
  --catalog-prio-glow-mid: rgba(248, 113, 113, 0.45);
  background: #dc2626;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 0 11px 0 rgba(220, 38, 38, 0.22);
}

.catalog-open-prio--important {
  --catalog-prio-glow-core: rgba(254, 240, 138, 1);
  --catalog-prio-glow-mid: rgba(250, 204, 21, 0.62);
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  color: #713f12;
  box-shadow:
    0 0 0 1px rgba(113, 63, 18, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 13px 0 rgba(250, 204, 21, 0.2);
}

.catalog-open-prio--planned {
  --catalog-prio-glow-core: rgba(220, 252, 231, 0.82);
  --catalog-prio-glow-mid: rgba(74, 222, 128, 0.38);
  background: #15803d;
  color: #f0fdf4;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 0 11px 0 rgba(34, 197, 94, 0.18);
}

.catalog-open-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 0.45rem 1.15rem rgba(13, 110, 253, 0.28);
}

.catalog-open-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 0.2rem 0.65rem rgba(13, 110, 253, 0.22);
}

.catalog-open-btn:focus-visible {
  outline: 0;
  box-shadow:
    var(--catalog-btn-shadow),
    0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}

.catalog-title {
  --catalog-title-fit-max: 1.28rem;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-block: 0.1rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--rs-text);
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  font-size: clamp(0.95rem, 2.1vw + 0.65rem, 1.38rem);
  min-height: clamp(2.65rem, 6vw + 1.5rem, 3.85rem);
}

@supports (width: 1cqi) {
  .catalog-title {
    font-size: clamp(0.92rem, 3.6cqi + 0.52rem, 1.42rem);
    min-height: clamp(2.65rem, 11cqi + 1.35rem, 4rem);
  }
}

.badge-soft-primary {
  color: var(--rs-primary);
  background: var(--rs-primary-soft);
}

.badge-soft-neutral {
  color: #334155;
  background: #eef2f7;
}

.catalog-exchange {
  color: var(--rs-muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

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

.catalog-meta-item {
  padding: 0.65rem 0.75rem;
  border-radius: var(--rs-radius-sm);
  background: var(--rs-surface-alt);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.catalog-meta-label {
  display: block;
  color: var(--rs-muted);
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.catalog-meta-value {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}

.catalog-sparkline {
  margin-top: auto;
  padding: 0.45rem 0.55rem;
  border-radius: var(--rs-radius-sm);
  background: var(--rs-surface-alt);
  border: 1px solid rgba(15, 23, 42, 0.04);
  color: #64748b;
}

.catalog-sparkline.catalog-sparkline-btn {
  width: 100%;
  display: block;
  text-align: left;
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition:
    filter 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.catalog-sparkline-btn:hover {
  filter: brightness(0.98);
  border-color: rgba(15, 23, 42, 0.1);
}

.catalog-sparkline-btn:active {
  filter: brightness(0.96);
}

.catalog-sparkline-btn:focus {
  outline: none;
}

.catalog-sparkline-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.28);
}

.catalog-tv-mini {
  display: block;
  width: 100%;
  min-height: 10.5rem;
  overflow: hidden;
  border-radius: calc(var(--rs-radius-sm) - 2px);
  pointer-events: none;
}

.catalog-tv-mini-host {
  display: block;
  width: 100%;
  height: 10.5rem;
  min-height: 10.5rem;
  overflow: hidden;
  background: #fff;
}

.catalog-tv-mini-host .tradingview-widget-container__widget,
.catalog-tv-mini-host iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.catalog-tv-mini-host .tradingview-widget-copyright {
  display: none;
}

.catalog-sparkline--up {
  color: #198754;
}

.catalog-sparkline--down {
  color: #dc3545;
}

.catalog-sparkline--neutral {
  color: #64748b;
}

#catalog-tv-modal .catalog-tv-modal-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#catalog-tv-modal .catalog-tv-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#catalog-tv-modal .catalog-tv-iframe {
  flex: 1 1 auto;
  width: 100%;
  min-height: 60vh;
  height: 100%;
  background: #f8fafc;
}

.catalog-tv-close-pill {
  font-weight: 600;
}

.catalog-tv-modal-header .catalog-tv-close-icon {
  margin-left: 0;
}

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

.signal-card {
  padding: 0.75rem 0.85rem;
  border-radius: var(--rs-radius-sm);
}

.signal-card-inline strong {
  font-size: 0.85rem;
}

.signal-card-inline p {
  margin-top: 0.25rem;
  font-size: 0.78rem;
}

.signal-card.is-positive {
  background: var(--rs-success-soft);
  border-color: rgba(25, 135, 84, 0.12);
}

.signal-card.is-negative {
  background: var(--rs-danger-soft);
  border-color: rgba(220, 53, 69, 0.12);
}

.signal-card.is-neutral {
  background: rgba(15, 23, 42, 0.04);
}

.signal-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: currentColor;
}

.is-positive .signal-dot,
.metric-trend.is-positive {
  color: #198754;
}

.is-negative .signal-dot,
.metric-trend.is-negative {
  color: #dc3545;
}

.is-neutral .signal-dot,
.metric-trend.is-neutral {
  color: #64748b;
}

.metric-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.metric-trend {
  padding: 0.28rem 0.55rem;
  background: rgba(15, 23, 42, 0.05);
  font-size: 0.82rem;
}

.summary-list,
.highlight-list,
.how-to-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.summary-list li,
.highlight-list li,
.how-to-list li {
  color: var(--rs-text);
  line-height: 1.55;
}

.split-list {
  columns: 2;
  column-gap: 1.5rem;
}

.split-list li {
  break-inside: avoid;
}

.empty-state {
  padding: 3rem 1rem;
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.05);
  color: var(--rs-muted);
  font-size: 1.8rem;
}

.catalog-skeleton {
  min-height: 23rem;
  overflow: hidden;
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.9) 25%, rgba(241, 245, 249, 1) 50%, rgba(226, 232, 240, 0.9) 75%);
  background-size: 200% 100%;
  animation: pulse-slide 1.25s linear infinite;
}

.skeleton-line + .skeleton-line {
  margin-top: 0.7rem;
}

.skeleton-line.short {
  width: 58%;
}

.skeleton-line.medium {
  width: 78%;
}

.footer-note {
  max-width: 26rem;
}

@keyframes pulse-slide {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 991.98px) {
  .hero-shell {
    padding: 1rem;
  }

  .hero-market-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-market-fx {
    min-width: 0;
    max-width: none;
    --hero-dxy-chart-height: 8.75rem;
  }

  .hero-market-lenses {
    grid-column: 1 / -1;
  }

  .hero-lens-stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-lens {
    flex: 1 1 calc(33.333% - 0.35rem);
    min-width: 9.5rem;
  }

  .filters-toolbar {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(9rem, 0.75fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .filters-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-meta-grid,
  .compact-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-panel,
  .metric-card,
  .filter-panel,
  .glass-panel {
    padding: 0.9rem;
  }

  .hero-shell,
  .hero-compact {
    padding: 0.85rem;
  }

  .hero-market-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero-market-fx {
    min-width: 0;
    max-width: none;
    --hero-dxy-chart-height: 8.5rem;
  }

  .hero-lens-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .hero-lens {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 0;
    min-width: 0;
    padding: 0.45rem 0.28rem;
    gap: 0.28rem;
  }

  .hero-lens-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
  }

  .hero-lens-copy strong {
    font-size: 0.72rem;
  }

  .hero-lens-copy small {
    font-size: 0.62rem;
    line-height: 1.15;
  }

  .hero-dji-count strong {
    font-size: 1.25rem;
  }

  .container {
    --bs-gutter-x: 0.85rem;
  }

  .navbar-brand {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.85rem;
  }

  .compact-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .compact-stat {
    width: auto;
    justify-content: center;
    padding: 0.45rem 0.3rem;
    font-size: 0.76rem;
  }

  .compact-stat strong {
    display: block;
  }

  .split-list {
    columns: 1;
  }

  .catalog-card-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "main meta"
      "actions actions";
    gap: 0.55rem;
  }

  .catalog-card .card-body {
    padding: 0.75rem !important;
  }

  .catalog-title {
    line-height: 1.14;
    letter-spacing: -0.03em;
    font-size: clamp(0.88rem, 2.4vw + 0.55rem, 1.18rem);
    min-height: clamp(2.45rem, 7vw + 1.2rem, 3.2rem);
  }

  @supports (width: 1cqi) {
    .catalog-title {
      min-height: clamp(2.45rem, 10cqi + 1.1rem, 3.35rem);
      font-size: clamp(0.88rem, 3.4cqi + 0.42rem, 1.22rem);
    }
  }

  .catalog-title {
    --catalog-title-fit-max: 1.22rem;
  }

  .catalog-exchange {
    font-size: 0.72rem;
  }

  .badge-soft-primary,
  .badge-soft-neutral {
    font-size: 0.7rem;
  }

  .catalog-logo-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
  }

  .catalog-logo-fallback {
    font-size: 0.74rem;
  }

  .catalog-meta-item {
    padding: 0.45rem 0.5rem;
  }

  .catalog-meta-label {
    font-size: 0.66rem;
    margin-bottom: 0.15rem;
  }

  .catalog-meta-value {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .catalog-sparkline {
    padding: 0.25rem 0.3rem;
  }

  .catalog-tv-mini,
  .catalog-tv-mini-host {
    min-height: 9.5rem;
    height: 9.5rem;
  }

  .signal-card {
    padding: 0.55rem 0.6rem;
  }

  .signal-card-inline strong {
    font-size: 0.76rem;
  }

  .signal-card-inline p {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .catalog-open-btn,
  .filter-actions .btn {
    font-size: 0.88rem;
  }

  .catalog-open-btn-head-row {
    --cta-head-fs: 0.82rem;
  }

  .catalog-open-prio {
    --catalog-prio-icon-size: 0.48rem;
    min-height: 0.85rem;
    padding: 0.1rem 0.32rem 0.1rem 0.24rem;
    gap: 0.2rem;
  }

  .catalog-open-prio .catalog-open-btn-count {
    font-size: 0.462rem;
  }

  .filter-field .form-control,
  .filter-field .form-select {
    min-height: 2.2rem;
    font-size: 0.88rem;
  }

  .filter-field .form-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem !important;
  }

  .filter-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .filter-actions .btn {
    width: 100%;
  }

  .filter-field-search {
    grid-column: 1 / -1;
  }

  .row#catalog-grid {
    --bs-gutter-x: 0.55rem;
    --bs-gutter-y: 0.55rem;
  }

  #key-metrics .row {
    --bs-gutter-x: 0.55rem;
    --bs-gutter-y: 0.55rem;
  }

  .metric-card {
    padding: 0.75rem;
  }

  .metric-card .h5 {
    font-size: 0.95rem;
  }

  .metric-trend {
    padding: 0.2rem 0.4rem;
    font-size: 0.72rem;
  }

  .summary-list,
  .highlight-list {
    padding-left: 0.95rem;
  }

  .summary-list li,
  .highlight-list li {
    font-size: 0.85rem;
    line-height: 1.38;
  }

  .empty-state {
    padding: 2rem 0.5rem;
  }
}

@media (max-width: 479.98px) {
  .compact-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .catalog-card-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "main meta"
      "actions actions";
  }

  .catalog-logo-wrap {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.5rem;
  }

  .catalog-logo-fallback {
    font-size: 0.7rem;
  }

  .catalog-open-btn {
    min-height: 2.65rem;
    padding-block: 0.34rem;
  }

  .catalog-meta-grid,
  .compact-meta-grid {
    gap: 0.4rem;
  }

  .metric-card,
  .detail-panel,
  .filter-panel {
    padding: 0.7rem;
  }

  .mobile-two-cols > .col-md-6 {
    width: 50%;
  }

  .signal-card .summary-list li,
  .signal-card p {
    font-size: 0.78rem;
  }
}
