.ear-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.25rem 0 1.75rem;
}

.ear-hero {
  position: relative;
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  background: linear-gradient(128deg, #7f1d1d 0%, #b91c1c 42%, #ef4444 72%, #f87171 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(185, 28, 28, 0.22);
}

.ear-hero-glow {
  position: absolute;
  inset: -35% auto auto 68%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.ear-hero-inner {
  position: relative;
}

.ear-hero-main {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.ear-hero-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  flex-shrink: 0;
}

.ear-hero-icon {
  font-size: 1.5rem;
  color: #fff;
}

.ear-hero-title {
  color: #fff !important;
  font-size: 1.5rem !important;
}

.ear-hero-desc {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.ear-hero-stats {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
}

.ear-tabs {
  margin-top: 0.25rem;
}

.ear-tab-panel {
  min-height: 200px;
}

.ear-card-icon,
.ear-metric-icon {
  color: #dc2626;
  width: 1.1rem;
  text-align: center;
}

.ear-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.875rem;
  color: var(--mantine-color-dimmed, #64748b);
  line-height: 1.65;
}

.ear-upload-zone {
  cursor: pointer;
  border-style: dashed !important;
  transition: border-color 0.2s, background 0.2s;
}

.ear-upload-zone:hover {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.04);
}

.ear-upload-icon {
  font-size: 2rem;
  color: #ef4444;
}

.ear-metric-card {
  background: var(--mantine-color-body, #fff);
}

.ear-metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mantine-color-text, #0f172a);
  line-height: 1.2;
}

.ear-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ear-table th,
.ear-table td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  text-align: left;
}

.ear-table th {
  font-weight: 600;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ear-report-pre {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: #0f1419;
  color: #e2e8f0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 520px;
}

.ear-analyze-status,
.ear-upload-status {
  min-height: 1.25rem;
  margin-top: 0.35rem;
}

.ear-empty {
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.ear-notification-anchor {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  pointer-events: none;
}

.ear-beat-table {
  overflow-x: auto;
}
