@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --econ-bg: #f7f4ee;
  --econ-surface: #ffffff;
  --econ-surface-soft: #fbf8f3;
  --econ-ink: #1f1f1f;
  --econ-muted: #66605b;
  --econ-red: #EF4047;
  --econ-blue: #2369a9;
  --econ-gold: #946c10;
  --econ-border: #d9d2c9;
  --econ-border-strong: #c4b9ab;
  --econ-shadow: 0 10px 22px rgba(38, 27, 20, 0.09);
}

* {
  box-sizing: border-box;
}

.econ-body {
  margin: 0;
  background:
    radial-gradient(1200px 340px at 14% -9%, rgba(239, 64, 71, 0.09), transparent 58%),
    radial-gradient(980px 280px at 86% -13%, rgba(35, 105, 169, 0.07), transparent 54%),
    var(--econ-bg);
  color: var(--econ-ink);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.econ-body.econ-body-embed {
  background: transparent;
}

.econ-body.econ-body-embed .econ-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.econ-body.econ-body-embed .econ-panel {
  background: transparent;
  border: 0;
  border-top: 0;
  box-shadow: none;
}

.econ-body.econ-body-embed .econ-grid {
  padding: 0;
}

.econ-body.econ-body-embed .econ-header {
  border-bottom: 0;
  padding-bottom: 8px;
}

.econ-preview-topbar {
  max-width: 1140px;
  margin: 10px auto 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.econ-preview-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.econ-preview-nav a {
  color: #2a2521;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.econ-preview-nav a:hover {
  border-color: rgba(42, 37, 33, 0.45);
}

.econ-preview-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--econ-muted);
  font-size: 0.75rem;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.econ-preview-lang select {
  border: 1px solid var(--econ-border-strong);
  border-radius: 8px;
  background: #fff;
  padding: 5px 8px;
  color: #2a2521;
  font-size: 0.75rem;
}

.econ-preview-footer {
  max-width: 1140px;
  margin: 0 auto 14px;
  padding: 0 18px 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.econ-preview-footer a {
  color: #2a2521;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 37, 33, 0.32);
}

.econ-preview-footer a:hover {
  border-color: rgba(42, 37, 33, 0.62);
}

.econ-body.econ-body-embed .econ-preview-footer {
  display: none;
}

.econ-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px;
}

.econ-page.embed {
  max-width: none;
  margin: 0;
  padding: 0;
}

.econ-panel {
  background: var(--econ-surface);
  border: 1px solid var(--econ-border-strong);
  border-top: 4px solid var(--econ-red);
  box-shadow: var(--econ-shadow);
}

.econ-panel.embed {
  background: #fff;
  border: 0;
  border-top: 0;
  box-shadow: none;
}

.econ-panel.embed .econ-header {
  display: none;
}

.econ-panel.embed .econ-controls {
  background: transparent;
  border-bottom: 0;
  padding: 8px 0 10px;
}

.econ-panel.embed .econ-grid {
  padding: 0;
}

.econ-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--econ-border);
}

.econ-kicker {
  margin: 0;
  color: var(--econ-red);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.econ-title {
  margin: 6px 0 8px;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.17;
}

.econ-subtitle {
  margin: 0;
  color: var(--econ-muted);
  max-width: 58ch;
  font-size: 0.95rem;
}

.econ-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  color: var(--econ-muted);
  font-size: 0.8rem;
}

.econ-meta-controls {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.econ-meta-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
}

.econ-meta-links-label {
  color: #8b8176;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: 2px;
}

.econ-meta-links-lang .econ-meta-link.active {
  color: var(--econ-red);
}

.econ-meta-links-currency .econ-meta-link.active {
  color: var(--econ-blue);
}

.econ-meta-link {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #665f57;
  font-size: inherit;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  line-height: 1;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.econ-meta-link:hover {
  color: #2d2722;
  border-bottom-color: rgba(45, 39, 34, 0.35);
}

.econ-meta-link.active {
  color: #1f1f1f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.econ-meta-link:focus-visible {
  outline: 2px solid #2369a9;
  outline-offset: 2px;
  border-radius: 2px;
}

.econ-meta-sep {
  color: #988e83;
  font-size: 0.68rem;
}

.econ-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--econ-border);
  background: var(--econ-surface-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
}

.econ-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1A8F85;
}

.econ-status.stale::before {
  background: #bd7c00;
}

.econ-status.partial::before {
  background: #8f5865;
}

.econ-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--econ-border);
  background: var(--econ-surface-soft);
}

.econ-controls-embed {
  justify-content: flex-end;
  align-items: center;
}

.econ-control-label {
  font-size: 0.76rem;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  color: var(--econ-muted);
  min-width: 84px;
}

.econ-date {
  display: grid;
  gap: 3px;
}

.econ-date small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--econ-muted);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.econ-date input,
.econ-date .econ-date-trigger {
  border: 1px solid var(--econ-border-strong);
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--econ-ink);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.77rem;
  min-height: 40px;
}

.econ-date .econ-date-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.econ-date .econ-date-trigger[disabled] {
  cursor: not-allowed;
  color: #857e74;
  background: #f2eee9;
}

.econ-date input:focus-visible,
.econ-date .econ-date-trigger:focus-visible,
.econ-event-select:focus-visible,
.econ-cal-nav:focus-visible,
.econ-cal-day-btn:focus-visible,
.econ-btn:focus-visible {
  outline: 2px solid #2369a9;
  outline-offset: 2px;
}

.econ-btn {
  border: 1px solid var(--econ-border-strong);
  background: #fff;
  color: var(--econ-ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.econ-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 64, 71, 0.55);
}

.econ-btn.active {
  background: rgba(239, 64, 71, 0.09);
  border-color: rgba(239, 64, 71, 0.58);
}

.econ-btn-mini {
  min-height: 40px;
  padding: 7px 11px;
  font-size: 0.72rem;
}

.econ-embed-box {
  margin-left: auto;
  border: 1px solid var(--econ-border);
  border-radius: 12px;
  background: #fff;
}

.econ-embed-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
}

.econ-embed-trigger::-webkit-details-marker {
  display: none;
}

.econ-embed-body {
  border-top: 1px solid var(--econ-border);
  padding: 8px;
  display: grid;
  gap: 6px;
  min-width: min(420px, calc(100vw - 72px));
}

.econ-embed-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--econ-muted);
}

.econ-embed-label {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6f675f;
}

.econ-embed-code {
  min-height: 98px;
  border: 1px solid var(--econ-border-strong);
  border-radius: 8px;
  padding: 8px;
  width: 100%;
  resize: vertical;
  font-family: 'Roboto Mono', 'IBM Plex Mono', Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  background: #fdfbf8;
  color: #26201b;
}

.econ-embed-copy-status {
  min-height: 18px;
  font-size: 0.68rem;
  color: #1f5f94;
  font-weight: 700;
}

.econ-panel-footer {
  padding: 0 18px 14px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.econ-embed-footer {
  margin: 0;
}

.econ-embed-link {
  list-style: none;
  cursor: pointer;
  color: #2a2521;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 37, 33, 0.32);
}

.econ-embed-link:hover {
  border-color: rgba(42, 37, 33, 0.62);
}

.econ-embed-link::-webkit-details-marker {
  display: none;
}

.econ-embed-footer[open] {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
}

.econ-embed-footer .econ-embed-body {
  border-top: 1px solid var(--econ-border);
  border: 1px solid var(--econ-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--econ-shadow);
}

.econ-grid {
  display: grid;
  gap: 12px;
  padding: 14px 18px 18px;
  align-items: start;
}

.econ-health {
  border: 1px solid var(--econ-border);
  background: var(--econ-surface-soft);
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.econ-health-main {
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #332d27;
}

.econ-health-meta {
  font-size: 0.72rem;
  color: var(--econ-muted);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.econ-health-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.econ-health-pill {
  border: 1px solid var(--econ-border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-weight: 700;
  background: #fff;
  color: #50483f;
}

.econ-health-pill.success {
  border-color: rgba(35, 105, 169, 0.4);
  background: rgba(35, 105, 169, 0.11);
  color: #1f4f7e;
}

.econ-health-pill.partial,
.econ-health-pill.fallback {
  border-color: rgba(148, 108, 16, 0.45);
  background: rgba(148, 108, 16, 0.14);
  color: #6a4c12;
}

.econ-health-pill.no-update,
.econ-health-pill.stale {
  border-color: rgba(120, 111, 103, 0.5);
  background: rgba(120, 111, 103, 0.16);
  color: #5b534b;
}

.econ-health-pill.error,
.econ-health-pill.unknown {
  border-color: rgba(239, 64, 71, 0.4);
  background: rgba(239, 64, 71, 0.13);
  color: #8d1f1b;
}

.econ-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.econ-grid.embed .econ-tabs {
  justify-content: center;
}

.econ-tab {
  min-height: 40px;
  border: 1px solid var(--econ-border-strong);
  background: #fff;
  color: #2b2621;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.econ-tab.active {
  border-color: rgba(239, 64, 71, 0.58);
  background: rgba(239, 64, 71, 0.09);
}

.econ-tab-panel {
  display: none;
}

.econ-tab-panel.active {
  display: block;
}

.econ-grid.full .econ-tabs {
  display: none;
}

.econ-grid.full .econ-tab-panel {
  display: block;
}

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

.econ-grid.full [data-panel='overview'],
.econ-grid.full [data-panel='chart'] {
  grid-column: 1 / -1;
}

.econ-grid.full [data-panel='receipt'] {
  grid-column: 1 / span 1;
}

.econ-grid.full [data-panel='ai'] {
  grid-column: 2 / span 2;
}

.econ-grid.full [data-panel='ai'] .econ-labs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.econ-chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
}

.econ-series-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  border-bottom: 1px dashed var(--econ-border);
}

.econ-series-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.econ-series-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.econ-series-btn.is-hidden {
  opacity: 0.58;
  background: #f6f2ed;
  border-style: dashed;
}

.econ-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
}

.econ-tab-panel .econ-metrics {
  padding: 10px 12px 12px;
}

.econ-fg-card {
  border: 1px solid var(--econ-border);
  border-bottom: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ef 100%);
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(74, 64, 56, 0.08);
}

.econ-fg-card.is-stale {
  background: linear-gradient(180deg, #ffffff 0%, #f4efe7 100%);
}

.econ-fg-head h5 {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
}

.econ-fg-head p {
  margin: 4px 0 0;
  color: var(--econ-muted);
  font-size: 0.76rem;
}

.econ-fg-body {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.econ-fg-meter {
  position: relative;
  width: 236px;
  height: 152px;
}

.econ-fg-arc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  width: 236px;
  height: 118px;
  border-radius: 236px 236px 0 0;
  overflow: hidden;
  filter: drop-shadow(0 8px 14px rgba(74, 64, 56, 0.12));
}

.econ-fg-arc::before {
  content: '';
  position: absolute;
  width: 236px;
  height: 236px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    #2e7d4f 0%,
    #66a83a 30%,
    #d8a22b 58%,
    #d96a2a 78%,
    #EF4047 100%
  );
}

.econ-fg-arc::after {
  content: '';
  position: absolute;
  width: 182px;
  height: 182px;
  left: 27px;
  top: 27px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #fbf8f2 100%);
  border: 1px solid rgba(116, 103, 91, 0.16);
}

.econ-fg-needle {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 4px;
  height: 90px;
  background: var(--needle-color, #1f1f1f);
  border-radius: 999px;
  transform-origin: 50% 100%;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(31, 31, 31, 0.24);
  transition: transform 380ms cubic-bezier(0.2, 0.7, 0.15, 1), background-color 220ms ease;
}

.econ-fg-hub {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #2b2520;
  border: 2px solid #fff;
  z-index: 4;
  box-shadow: 0 3px 10px rgba(31, 31, 31, 0.25);
}

.econ-fg-score {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.56rem;
  font-weight: 700;
  color: #2b2520;
  letter-spacing: 0.01em;
}

.econ-fg-scale {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.67rem;
  font-weight: 700;
  color: #6f655a;
}

.econ-fg-scale-left,
.econ-fg-scale-right {
  max-width: 44%;
  line-height: 1.2;
}

.econ-fg-scale-right {
  text-align: right;
}

.econ-fg-meta {
  display: grid;
  gap: 9px;
}

.econ-fg-zone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--econ-border);
  background: #fff;
}

.econ-fg-zone.extreme_fear,
.econ-fg-zone.fear,
.econ-fg-zone.extreme_stress,
.econ-fg-zone.high_stress {
  border-color: rgba(239, 64, 71, 0.4);
  background: rgba(239, 64, 71, 0.1);
  color: #8d1f1b;
}

.econ-fg-zone.neutral {
  border-color: rgba(148, 108, 16, 0.45);
  background: rgba(148, 108, 16, 0.11);
  color: #6a4c12;
}

.econ-fg-zone.greed,
.econ-fg-zone.extreme_greed,
.econ-fg-zone.low_stress,
.econ-fg-zone.minimal_stress {
  border-color: rgba(46, 125, 79, 0.45);
  background: rgba(46, 125, 79, 0.11);
  color: #2e7d4f;
}

.econ-fg-stats {
  display: grid;
  gap: 4px;
  font-size: 0.76rem;
  color: #4a433b;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(116, 103, 91, 0.18);
  border-radius: 10px;
  padding: 8px 9px;
}

.econ-fg-note {
  margin: 0;
  font-size: 0.73rem;
  color: #7f7568;
}

@media (prefers-reduced-motion: reduce) {
  .econ-fg-needle {
    transition: none;
  }
}

.econ-card {
  border: 1px solid var(--econ-border);
  background: #fff;
  padding: 11px;
}

.econ-card h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--econ-muted);
  font-weight: 700;
}

.econ-value {
  margin: 8px 0 4px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.econ-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  color: var(--econ-muted);
}

.econ-mamaliga-index-note {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--econ-muted);
}

.econ-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 12px;
}

.econ-section {
  border: 1px solid var(--econ-border);
  background: #fff;
}

.econ-section h4 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--econ-border);
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
}

.econ-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--econ-border);
}

.econ-chart-head .econ-chart-controls {
  padding: 0;
  gap: 8px;
}

.econ-chart-head .econ-chart-controls .econ-control-label {
  min-width: auto;
}

.econ-chart-range-controls {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.econ-chart-range-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.econ-chart-range-controls .econ-control-label {
  min-width: auto;
  margin-right: 2px;
  align-self: center;
}

.econ-chart-range-controls .econ-date-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.econ-chart-range-controls .econ-date-inline small {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.76rem;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  color: var(--econ-muted);
}

.econ-chart-range-controls .econ-date input {
  min-height: 36px;
}

.econ-chart-range-controls .econ-btn {
  min-height: 36px;
}

.econ-chart-subtitle {
  margin-top: 8px;
}

.econ-chart-wrap {
  position: relative;
  padding: 10px 12px 12px;
}

.econ-svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.econ-grid-line {
  stroke: rgba(74, 64, 56, 0.18);
  stroke-width: 1;
}

.econ-axis {
  stroke: rgba(43, 37, 33, 0.5);
  stroke-width: 1.25;
}

.econ-y,
.econ-x {
  fill: #776f67;
  font-size: 10px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.econ-y-right {
  fill: #6a645e;
}

.econ-axis-title {
  fill: #59524a;
  font-size: 10px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-weight: 700;
}

.econ-axis-title-right {
  fill: #5e5650;
}

.econ-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.econ-event-line {
  stroke: color-mix(in srgb, var(--event-color) 55%, #6a625b 45%);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.62;
}

.econ-event-dot {
  stroke: #fff;
  stroke-width: 1.2;
  cursor: pointer;
}

.econ-point {
  stroke: #fff;
  stroke-width: 1.2;
  cursor: pointer;
  transition: transform 120ms ease, stroke-width 120ms ease;
  transform-origin: center;
  transform-box: fill-box;
}

.econ-point:hover,
.econ-point:focus-visible {
  transform: scale(1.32);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 4px rgba(27, 22, 18, 0.42));
}

.econ-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.econ-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--econ-border);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  color: #453f39;
  background: var(--econ-surface-soft);
}

.econ-pill-toggle {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 130ms ease, background-color 130ms ease, opacity 130ms ease;
}

.econ-pill-toggle:hover {
  border-color: rgba(49, 39, 31, 0.42);
}

.econ-pill-toggle:focus-visible {
  outline: 2px solid #2369a9;
  outline-offset: 2px;
}

.econ-pill-toggle.is-hidden {
  color: #8c8276;
  background: #f3efe9;
  border-style: dashed;
  opacity: 0.82;
}

.econ-pill-toggle.is-hidden .econ-dot {
  filter: grayscale(1) saturate(0);
  opacity: 0.48;
}

.econ-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.econ-receipt {
  padding: 10px 12px 12px;
}

.econ-receipt-paper {
  position: relative;
  border: 1px solid var(--econ-border);
  background:
    linear-gradient(180deg, #fff 0%, #fffefc 100%);
  box-shadow: 0 4px 14px rgba(28, 20, 14, 0.08);
  overflow: hidden;
  max-height: none;
}

.econ-receipt-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(247, 242, 234, 0.58) 48%, rgba(255, 255, 255, 0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 220px;
  background-position: 0 -260px;
  opacity: 0;
  animation: econReceiptPrintSweep 1.1s ease-out forwards;
}

.econ-receipt-head {
  padding: 10px 12px 8px;
  border-bottom: 1px dashed var(--econ-border-strong);
  position: relative;
}

.econ-receipt-head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 6px;
  background:
    linear-gradient(-45deg, transparent 75%, rgba(196, 185, 171, 0.9) 75%) 0 0 / 6px 6px,
    linear-gradient(45deg, transparent 75%, rgba(196, 185, 171, 0.9) 75%) 3px 0 / 6px 6px;
}

.econ-receipt-store {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a443d;
  font-weight: 700;
}

.econ-receipt-time,
.econ-receipt-subtitle {
  margin: 4px 0 0;
  color: var(--econ-muted);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.68rem;
}

.econ-receipt-time {
  border-top: 1px dotted rgba(128, 115, 102, 0.6);
  border-bottom: 1px dotted rgba(128, 115, 102, 0.6);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.econ-receipt-list {
  list-style: none;
  margin: 0;
  padding: 4px 12px 6px;
  display: grid;
  gap: 6px;
}

.econ-receipt-item {
  padding: 9px 0 8px;
  border-bottom: 1px dashed rgba(128, 115, 102, 0.4);
  opacity: 0;
  transform: translateY(-7px);
  filter: blur(0.6px);
  animation: econReceiptLinePrint 420ms ease forwards;
  animation-delay: var(--receipt-delay, 0ms);
}

.econ-receipt-main,
.econ-receipt-change-row,
.econ-receipt-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: baseline;
}

.econ-receipt-name {
  font-size: 0.84rem;
  color: #28221d;
  font-weight: 700;
}

.econ-receipt-price {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #2a2521;
  text-align: right;
  white-space: nowrap;
}

.econ-receipt-change-row {
  margin-top: 3px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.68rem;
  color: var(--econ-muted);
}

.econ-receipt-change {
  text-align: right;
  font-weight: 700;
}

.econ-receipt-change.up {
  color: #157142;
}

.econ-receipt-change.down {
  color: #b3150f;
}

.econ-receipt-change.flat {
  color: #7d7368;
}

.econ-receipt-change.na {
  color: #9a9289;
  font-weight: 600;
}

.econ-receipt-total {
  padding: 12px 12px 12px;
  border-top: 2px solid #2d2823;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: static;
  background: #fffefc;
  opacity: 0;
  transform: translateY(-7px);
  filter: blur(0.6px);
  animation: econReceiptLinePrint 420ms ease forwards;
  animation-delay: var(--receipt-delay, 0ms);
}

.econ-receipt-total strong {
  font-size: 0.96rem;
  color: #1f1a16;
  letter-spacing: 0;
  text-transform: none;
}

.econ-market {
  padding: 10px 12px 12px;
}

.econ-signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.econ-signal-card {
  border: 1px solid var(--econ-border);
  background: var(--econ-surface-soft);
  padding: 8px;
}

.econ-signal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.econ-signal-head h5 {
  margin: 0;
  font-size: 0.8rem;
}

.econ-signal-delta {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.78rem;
}

.econ-signal-delta.up {
  color: #ab1d18;
}

.econ-signal-delta.down {
  color: #1b5e96;
}

.econ-signal-track {
  margin: 7px 0 6px;
  height: 20px;
  border: 1px solid var(--econ-border);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.econ-signal-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(48, 36, 26, 0.2);
}

.econ-signal-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 3px;
}

.econ-signal-bar.up {
  background: linear-gradient(180deg, rgba(201, 59, 51, 0.45), rgba(168, 41, 34, 0.95));
}

.econ-signal-bar.down {
  background: linear-gradient(180deg, rgba(50, 128, 186, 0.42), rgba(30, 93, 142, 0.92));
}

.econ-signal-card p {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  color: var(--econ-muted);
}

.econ-labs {
  padding: 10px 12px 12px;
}

.econ-insights {
  display: grid;
  gap: 8px;
}

.econ-events {
  border-top: 1px solid var(--econ-border);
  margin-top: 10px;
  padding: 10px 12px 0;
  display: grid;
  gap: 8px;
}

.econ-section-subtitle {
  margin: 0 0 8px;
  padding: 0 12px;
  color: #66605b;
  font-size: 0.83rem;
}

.econ-labs-disclaimer {
  margin: 10px 12px 0;
  padding-top: 8px;
  border-top: 1px solid var(--econ-border);
  color: #6f665d;
  font-size: 0.73rem;
  line-height: 1.45;
}

.econ-inline-meta {
  margin: 0 0 10px;
}

.econ-events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.econ-events-head h5 {
  margin: 0;
  font-size: 0.85rem;
}

.econ-events-head p {
  margin: 3px 0 0;
  font-size: 0.71rem;
  color: var(--econ-muted);
  flex: 1 1 100%;
}

.econ-events-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  align-items: end;
}

.econ-event-select {
  border: 1px solid var(--econ-border-strong);
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 40px;
  color: var(--econ-ink);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.77rem;
}

.econ-events-list {
  display: grid;
  gap: 6px;
}

.econ-event-item {
  border: 1px solid var(--econ-border);
  background: var(--econ-surface-soft);
  padding: 8px;
}

.econ-event-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.econ-event-item strong {
  font-size: 0.8rem;
}

.econ-event-type {
  border: 1px solid color-mix(in srgb, var(--event-color) 45%, #c4b9ab 55%);
  background: color-mix(in srgb, var(--event-color) 12%, #fff 88%);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #413830;
}

.econ-event-meta {
  margin: 6px 0 0;
  font-size: 0.7rem;
  color: var(--econ-muted);
}

.econ-event-meta a {
  color: #215f96;
  text-decoration: underline;
}

.econ-event-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.econ-insights-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.econ-date-analysis {
  min-width: 180px;
  position: relative;
}

.econ-calendar-popover {
  position: absolute;
  z-index: 40;
  left: 0;
  top: calc(100% + 6px);
  width: min(328px, calc(100vw - 40px));
  border: 1px solid var(--econ-border);
  background: #fff;
  box-shadow: 0 10px 28px rgba(34, 25, 18, 0.2);
  border-radius: 10px;
  padding: 8px;
}

.econ-cal-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 6px;
}

.econ-cal-month {
  text-align: center;
  font-size: 0.78rem;
  font-family: 'Lora', Georgia, serif;
  text-transform: capitalize;
}

.econ-cal-nav {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--econ-border-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: #302a24;
  cursor: pointer;
}

.econ-cal-nav[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.econ-cal-weekdays {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.econ-cal-weekdays span {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.63rem;
  text-transform: uppercase;
  color: var(--econ-muted);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.econ-cal-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.econ-cal-day {
  min-height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.econ-cal-day-btn {
  border: 1px solid var(--econ-border);
  background: #fff;
  color: #2c2722;
  cursor: pointer;
}

.econ-cal-day-btn:hover {
  border-color: rgba(239, 64, 71, 0.58);
  background: rgba(239, 64, 71, 0.08);
}

.econ-cal-day-btn.selected {
  border-color: rgba(35, 105, 169, 0.58);
  background: rgba(35, 105, 169, 0.12);
  color: #1d4f81;
  font-weight: 700;
}

.econ-cal-day-disabled {
  border: 1px dashed rgba(132, 125, 117, 0.4);
  color: #a39c92;
  background: #f6f2ed;
}

.econ-cal-day-empty {
  border: 1px solid transparent;
  visibility: hidden;
}

.econ-insights-hint {
  margin: 0;
  color: var(--econ-muted);
  font-size: 0.69rem;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.econ-insights-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.econ-insights-panels {
  display: block;
}

.econ-insights-panel[hidden] {
  display: none !important;
}

.econ-labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.econ-lab-card {
  border: 1px solid var(--econ-border);
  background: var(--econ-surface-soft);
  padding: 8px;
}

.econ-lab-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.econ-lab-head h5 {
  margin: 0;
  font-size: 0.84rem;
}

.econ-lab-badge-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.econ-lab-status {
  border: 1px solid var(--econ-border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.67rem;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-weight: 700;
}

.econ-lab-status.generated {
  background: rgba(35, 105, 169, 0.12);
  border-color: rgba(35, 105, 169, 0.45);
  color: #1f4f7e;
}

.econ-lab-status.fallback {
  background: rgba(196, 132, 26, 0.14);
  border-color: rgba(159, 102, 16, 0.45);
  color: #7d4f0d;
}

.econ-lab-inline-reason {
  font-size: 0.68rem;
  color: #7d4f0d;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.econ-lab-model,
.econ-lab-previous,
.econ-lab-reason,
.econ-lab-generated {
  margin: 6px 0 0;
  color: var(--econ-muted);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.69rem;
}

.econ-lab-previous {
  color: #5c5349;
}

.econ-lab-content {
  margin: 7px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #2a2521;
}

.econ-lab-content-preview {
  display: block;
}

.econ-lab-more {
  margin-top: 6px;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.econ-lab-more summary {
  cursor: pointer;
  display: inline-block;
  border: 1px solid var(--econ-border-strong);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #2a2521;
  background: #fff;
}

.econ-lab-more[open] summary {
  margin: 0;
}

.econ-lab-more[open] {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 6px;
}

.econ-lab-content-full {
  margin: 0;
}

.econ-lab-history {
  margin-top: 6px;
}

.econ-lab-history summary {
  cursor: pointer;
  display: inline-block;
  border: 1px solid var(--econ-border);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.67rem;
  font-weight: 700;
  color: #2f2924;
  background: #fff;
}

.econ-lab-history ul {
  margin: 6px 0 0;
  padding: 0 0 0 16px;
  display: grid;
  gap: 4px;
}

.econ-lab-history li {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.66rem;
  color: #5c5349;
}

.econ-lab-history li strong {
  color: #2f2924;
  font-size: 0.67rem;
  font-weight: 700;
}

.econ-weekly {
  padding: 2px 0 0;
}

.econ-weekly-title {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.96rem;
  color: #2a2521;
}

.econ-weekly-subtitle {
  margin: 4px 0 0;
  color: var(--econ-muted);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.71rem;
}

.econ-weekly-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: var(--econ-muted);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.69rem;
}

.econ-weekly-grid {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.econ-weekly-section {
  border: 1px solid var(--econ-border);
  background: var(--econ-surface-soft);
  padding: 8px;
}

.econ-weekly-section h5 {
  margin: 0;
  font-size: 0.82rem;
  font-family: 'Lora', Georgia, serif;
  color: #2b2621;
}

.econ-weekly-section p {
  margin: 6px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #3d3731;
}

.econ-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 10px));
  pointer-events: none;
  z-index: 5;
  border: 1px solid rgba(46, 33, 22, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 22px rgba(45, 33, 25, 0.19);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.69rem;
  color: #31251f;
  line-height: 1.38;
  max-width: min(320px, calc(100% - 18px));
  white-space: normal;
  opacity: 0;
}

.econ-tooltip-title {
  margin: 0 0 4px;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f1813;
}

.econ-tooltip-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 5px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #f7f1ea;
  border: 1px solid rgba(46, 33, 22, 0.14);
}

.econ-tooltip-main span {
  color: #4b4239;
}

.econ-tooltip-main strong {
  color: #1b1510;
  font-size: 0.77rem;
}

.econ-tooltip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 0;
}

.econ-tooltip-row span:first-child {
  color: #5f564e;
}

.econ-tooltip-row span:last-child {
  color: #2b221d;
  text-align: right;
}

.econ-tooltip.visible {
  opacity: 1;
}

.econ-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(46, 33, 22, 0.28);
  border-bottom: 1px solid rgba(46, 33, 22, 0.28);
  transform: translateX(-50%) rotate(45deg);
}

.econ-event-popover {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 10px));
  z-index: 6;
  min-width: min(320px, calc(100% - 20px));
  max-width: min(340px, calc(100% - 20px));
  border: 1px solid rgba(45, 33, 24, 0.32);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 10px 24px rgba(32, 22, 14, 0.2);
  border-radius: 10px;
  padding: 8px 9px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  line-height: 1.4;
  color: #302720;
  pointer-events: auto;
  opacity: 0;
}

.econ-event-popover.visible {
  opacity: 1;
}

.econ-event-popover::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.99);
  border-right: 1px solid rgba(45, 33, 24, 0.32);
  border-bottom: 1px solid rgba(45, 33, 24, 0.32);
  transform: translateX(-50%) rotate(45deg);
}

.econ-event-popover-title {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f1812;
}

.econ-event-popover-meta {
  margin-top: 4px;
  color: #625950;
  font-size: 0.69rem;
}

.econ-event-popover-details {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: #3a312a;
}

.econ-event-popover-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.econ-event-pop-link {
  text-decoration: none;
}

.econ-empty,
.econ-error {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--econ-border-strong);
  background: var(--econ-surface-soft);
  color: var(--econ-muted);
  font-size: 0.84rem;
}

.econ-error {
  border-style: solid;
  border-color: rgba(239, 64, 71, 0.4);
  color: #7b1e1b;
  background: #fff3f2;
}

.econ-skel-line,
.econ-skeleton-card,
.econ-skeleton-block {
  position: relative;
  overflow: hidden;
  background: #f0ebe4;
}

.econ-skel-line::after,
.econ-skeleton-card::after,
.econ-skeleton-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.68) 48%, transparent 78%);
  transform: translateX(-120%);
  animation: econSkeletonSweep 1.4s ease-in-out infinite;
}

.econ-skel-line {
  border: 1px solid var(--econ-border);
  border-radius: 999px;
}

.econ-skel-input {
  width: 148px;
  height: 40px;
}

.econ-skel-btn {
  width: 74px;
  height: 40px;
}

.econ-skeleton-card {
  border: 1px solid var(--econ-border);
  min-height: 118px;
}

.econ-skeleton-block {
  border: 1px solid var(--econ-border);
}

.econ-skeleton-labs {
  min-height: 300px;
}

.econ-skeleton-chart {
  min-height: 360px;
}

.econ-skeleton-receipt {
  min-height: 420px;
}

.econ-method-panel {
  border-top-color: var(--econ-blue);
}

.econ-method-header .econ-meta {
  align-self: center;
}

.econ-method-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
}

.econ-method-grid {
  display: grid;
  gap: 12px;
  padding: 14px 18px 18px;
}

.econ-method-card {
  border: 1px solid var(--econ-border);
  background: #fff;
  padding: 12px;
}

.econ-method-card h2 {
  margin: 0 0 8px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
}

.econ-method-card p {
  margin: 0;
  color: #3f3934;
  font-size: 0.86rem;
  line-height: 1.45;
}

.econ-method-notes {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

.econ-method-notes li {
  color: #3f3934;
  font-size: 0.84rem;
  line-height: 1.42;
}

.econ-method-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.econ-method-source {
  border: 1px solid var(--econ-border);
  background: var(--econ-surface-soft);
  border-radius: 10px;
  padding: 9px 10px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  color: #2e2924;
  font-weight: 700;
}

.econ-method-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

@keyframes econReceiptLinePrint {
  from {
    opacity: 0;
    transform: translateY(-7px);
    filter: blur(0.6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes econReceiptPrintSweep {
  0% {
    opacity: 0;
    background-position: 0 -260px;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background-position: 0 calc(100% + 40px);
  }
}

@keyframes econSkeletonSweep {
  to {
    transform: translateX(120%);
  }
}

@media (max-width: 980px) {
  .econ-page {
    padding: 12px;
  }

  .econ-preview-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 12px;
  }

  .econ-preview-footer {
    justify-content: flex-start;
    padding: 0 12px 12px;
    margin-bottom: 10px;
  }

  .econ-body.econ-body-embed .econ-preview-footer {
    justify-content: center;
  }

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

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

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

  .econ-header {
    flex-direction: column;
    padding: 14px 12px 10px;
  }

  .econ-controls {
    padding: 10px 12px;
    gap: 10px 8px;
  }

  .econ-controls-embed {
    display: none;
  }

  .econ-panel-footer {
    display: none;
  }

  .econ-chart-head {
    flex-direction: column;
    align-items: stretch;
  }

  .econ-chart-range-controls {
    margin-left: 0;
    align-items: stretch;
  }

  .econ-chart-range-row {
    justify-content: flex-start;
  }

  .econ-grid {
    padding: 12px;
    gap: 10px;
  }

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

  .econ-grid.full [data-panel='overview'],
  .econ-grid.full [data-panel='chart'],
  .econ-grid.full [data-panel='receipt'],
  .econ-grid.full [data-panel='ai'] {
    grid-column: 1 / -1;
  }

  .econ-grid.full [data-panel='ai'] .econ-labs-grid {
    grid-template-columns: 1fr;
  }

  .econ-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .econ-meta-controls {
    justify-items: start;
  }

  .econ-chart-wrap,
  .econ-receipt,
  .econ-market,
  .econ-labs,
  .econ-fg-card,
  .econ-tab-panel .econ-metrics,
  .econ-events,
  .econ-section-subtitle,
  .econ-labs-disclaimer {
    padding-inline: 10px;
  }

  .econ-embed-body {
    min-width: 0;
  }

  .econ-method-grid {
    padding: 12px;
  }

  .econ-method-footer {
    padding: 0 12px 14px;
  }

  .econ-fg-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .econ-fg-meta {
    width: 100%;
  }

  .econ-health-pills {
    margin-left: 0;
    width: 100%;
  }

  .econ-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .econ-grid.embed .econ-tabs {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .econ-tab {
    flex: 0 0 auto;
  }

  .econ-insights-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .econ-date-analysis {
    width: 100%;
  }

  .econ-calendar-popover {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .econ-tabs {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
  }

  .econ-grid.embed .econ-tabs {
    justify-content: center;
  }

  .econ-tab {
    flex: 0 1 auto;
    padding: 8px 12px;
  }

  .econ-health {
    padding: 10px 12px;
    row-gap: 6px;
  }

  .econ-health-pills {
    gap: 6px;
    margin-top: 4px;
  }

  .econ-chart-controls {
    padding: 8px 10px 6px;
    gap: 6px;
  }

  .econ-series-controls {
    padding: 6px 10px 8px;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .econ-btn,
  .econ-point,
  .econ-receipt-item,
  .econ-receipt-total,
  .econ-receipt-paper::before,
  .econ-skel-line::after,
  .econ-skeleton-card::after,
  .econ-skeleton-block::after {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
