:root {
  --eh-bg: #eef7f6;
  --eh-bg-strong: #d9ece9;
  --eh-surface: #fffffc;
  --eh-surface-soft: #f5fbfa;
  --eh-surface-raised: rgba(255, 255, 252, 0.92);
  --eh-border: #c9d9d6;
  --eh-border-strong: #8db2ac;
  --eh-text: #102522;
  --eh-muted: #60726f;
  --eh-primary: #0b7f78;
  --eh-primary-dark: #075d58;
  --eh-primary-soft: #dff5f1;
  --eh-accent: #d99b28;
  --eh-accent-dark: #9c6811;
  --eh-ink: #102522;
  --eh-success: #138a63;
  --eh-warning: #b7791f;
  --eh-danger: #bf3f32;
  --eh-radius: 8px;
  --eh-shadow: 0 18px 48px rgba(16, 37, 34, 0.12);
  --eh-shadow-soft: 0 10px 26px rgba(16, 37, 34, 0.08);
  --eh-heading-font: "Barlow Condensed", "Aptos Narrow", "Arial Narrow", sans-serif;
  --eh-body-font: "IBM Plex Sans", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.app-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(11, 127, 120, 0.1) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, #eef7f6 0%, #f8fbf6 44%, #eef4f3 100%);
  color: var(--eh-text);
  font-family: var(--eh-body-font);
  letter-spacing: 0;
}

.app-body::selection {
  color: #ffffff;
  background: var(--eh-primary);
}

.signal-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.signal-field::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(16, 37, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 37, 34, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

.signal-field span {
  position: absolute;
  right: max(4vw, 30px);
  top: 88px;
  width: 34vw;
  max-width: 560px;
  aspect-ratio: 1;
  border: 1px solid rgba(11, 127, 120, 0.16);
  border-radius: 50%;
  transform: translate(38%, -36%);
}

.signal-field span:nth-child(2) {
  width: 48vw;
  max-width: 780px;
  border-color: rgba(217, 155, 40, 0.14);
}

.signal-field span:nth-child(3) {
  width: 64vw;
  max-width: 1040px;
  border-color: rgba(11, 127, 120, 0.08);
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 1200;
  padding: 9px 12px;
  color: #ffffff;
  background: var(--eh-ink);
  border-radius: var(--eh-radius);
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-container {
  max-width: 1500px;
}

.app-navbar {
  background: rgba(255, 255, 252, 0.86);
  border-bottom: 1px solid rgba(141, 178, 172, 0.44);
  box-shadow: 0 12px 32px rgba(16, 37, 34, 0.08);
  backdrop-filter: blur(18px);
}

.navbar-toggler {
  border-color: var(--eh-border-strong);
  border-radius: var(--eh-radius);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--eh-text);
  font-family: var(--eh-heading-font);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(16, 37, 34, 0.16));
}

.app-navlinks .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #29423f;
  font-weight: 700;
  border-radius: var(--eh-radius);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.app-navlinks .nav-link:hover,
.app-navlinks .nav-link:focus {
  color: var(--eh-primary);
  background: var(--eh-primary-soft);
  transform: translateY(-1px);
}

.app-navlinks .nav-link.is-active {
  color: var(--eh-primary-dark);
  background: var(--eh-primary-soft);
  box-shadow: inset 0 -2px 0 var(--eh-accent);
}

.app-main {
  min-height: calc(100vh - 146px);
  padding: 28px 0 46px;
}

.app-main:focus {
  outline: 0;
}

.app-footer {
  border-top: 1px solid var(--eh-border);
  background: rgba(255, 255, 252, 0.78);
  color: var(--eh-muted);
  padding: 18px 0;
  backdrop-filter: blur(12px);
}

.app-footer a {
  color: var(--eh-primary);
  font-weight: 700;
  text-decoration: none;
}

.page-heading {
  margin-bottom: 22px;
}

.page-heading h1,
.station-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-family: var(--eh-heading-font);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

.page-heading h1 {
  color: var(--eh-ink);
}

.page-heading p {
  margin: 6px 0 0;
  color: var(--eh-muted);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--eh-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel,
.metric-card,
.action-card,
.activity-card {
  background: var(--eh-surface-raised);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
  backdrop-filter: blur(12px);
}

.panel {
  padding: 20px;
  margin-bottom: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-header h2 {
  margin: 0;
  font-family: var(--eh-heading-font);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.dashboard-hero,
.station-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 22px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(16, 37, 34, 0.98) 0%, rgba(11, 127, 120, 0.92) 64%, rgba(217, 155, 40, 0.84) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 28px);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.dashboard-hero p,
.station-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.station-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(var(--eh-primary), var(--eh-accent));
}

.metric-card span {
  display: block;
  color: var(--eh-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--eh-heading-font);
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1;
  color: var(--eh-text);
}

.action-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.action-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  color: var(--eh-text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--eh-primary);
  box-shadow: 0 20px 44px rgba(11, 127, 120, 0.16);
}

.action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--eh-primary), var(--eh-accent));
  border-radius: var(--eh-radius);
  font-size: 1.25rem;
}

.activity-list,
.certificate-list {
  display: grid;
  gap: 8px;
}

.activity-row,
.certificate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--eh-text);
  text-decoration: none;
  background: var(--eh-surface-soft);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.activity-row:hover,
.certificate-row:hover {
  border-color: #9cc2ff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #344054;
  background: #eef2f7;
  border: 1px solid var(--eh-border);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-success {
  color: #065f46;
  background: #dff8ea;
  border-color: #a7e8c4;
}

.status-warning {
  color: #854d0e;
  background: #fff4d6;
  border-color: #f6d47a;
}

.status-danger {
  color: #9f1d16;
  background: #ffe6e3;
  border-color: #ffb8b2;
}

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

.toolbar .form-select,
.toolbar .form-control {
  min-width: min(100%, 340px);
}

.table-eham {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.table-eham thead th {
  color: #475467;
  background: #f1f5f9;
  border-bottom: 1px solid var(--eh-border);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-eham tbody td {
  border-color: #edf2f7;
  vertical-align: middle;
}

.callsign-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--eh-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.callsign-link img,
.flag-inline {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border: 1px solid #d0d5dd;
}

.bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.station-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.station-flag {
  width: 68px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
}

.station-subtitle {
  margin: 6px 0 0;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.definition-grid div {
  padding: 12px;
  background: var(--eh-surface-soft);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.definition-grid dt {
  color: var(--eh-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.definition-grid dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.lead-copy {
  color: #344054;
  font-size: 1.02rem;
  line-height: 1.65;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.media-tile {
  display: grid;
  gap: 8px;
  color: var(--eh-text);
  text-decoration: none;
}

.media-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--eh-radius);
  border: 1px solid var(--eh-border);
}

.form-panel {
  max-width: 860px;
}

.profile-form textarea,
.profile-form input {
  max-width: 760px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1120px;
  margin: 28px auto 0;
}

.auth-layout-wide {
  grid-template-columns: minmax(340px, 540px) minmax(0, 1fr);
}

.auth-card {
  background: var(--eh-surface);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
  padding: 28px;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
}

.auth-copy {
  margin: 10px 0 22px;
  color: var(--eh-muted);
  line-height: 1.6;
}

.auth-form .form-group,
.auth-form .mb-3 {
  margin-bottom: 14px;
}

.auth-form label {
  color: #344054;
  font-weight: 750;
}

.auth-form .form-control {
  min-height: 44px;
  border-color: var(--eh-border);
  border-radius: var(--eh-radius);
}

.auth-form .form-control:focus {
  border-color: #9cc2ff;
  box-shadow: 0 0 0 0.2rem rgba(31, 111, 235, 0.12);
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--eh-muted);
}

.auth-links a {
  color: var(--eh-primary);
  font-weight: 750;
  text-decoration: none;
}

.auth-side {
  margin-bottom: 0;
}

.auth-feature-list,
.auth-steps {
  display: grid;
  gap: 12px;
}

.auth-feature {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--eh-surface-soft);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.auth-feature i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--eh-primary);
  border-radius: var(--eh-radius);
  font-size: 1.1rem;
}

.auth-feature strong,
.auth-feature small {
  display: block;
}

.auth-feature small {
  margin-top: 2px;
  color: var(--eh-muted);
  line-height: 1.45;
}

.auth-steps div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: var(--eh-surface-soft);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.auth-steps strong {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: var(--eh-primary);
  border-radius: 999px;
}

.auth-note {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  color: #065f46;
  background: #dff8ea;
  border: 1px solid #a7e8c4;
  border-radius: var(--eh-radius);
}

.auth-note p {
  margin: 0;
}

.cluster-page {
  display: grid;
  gap: 20px;
}

.cluster-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(31, 111, 235, 0.88)),
    radial-gradient(circle at 82% 18%, rgba(25, 135, 84, 0.45), transparent 36%);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.cluster-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 850;
  background: linear-gradient(120deg, #ffffff 40%, #7ecfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cluster-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.cluster-hero .eyebrow {
  color: #9bd1ff;
}

.cluster-hero-actions,
.cluster-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cluster-hero-actions .btn,
.cluster-filter-actions .btn,
.cluster-share-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cluster-hero-metrics {
  display: grid;
  gap: 12px;
}

.cluster-hero-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  color: var(--eh-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--eh-radius);
}

.cluster-hero-metrics strong {
  font-size: 2rem;
  line-height: 1;
}

.cluster-hero-metrics span {
  color: var(--eh-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cluster-community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.community-tile {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  min-height: 98px;
  color: var(--eh-text);
  text-decoration: none;
  background: var(--eh-surface);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.community-tile:hover,
.community-tile:focus {
  color: var(--eh-text);
  border-color: var(--eh-primary);
  transform: translateY(-2px);
}

.community-tile img {
  width: 46px;
  height: 46px;
}

.community-tile strong,
.community-tile small {
  display: block;
}

.community-tile small {
  margin-top: 3px;
  color: var(--eh-muted);
  line-height: 1.35;
}

.community-tile > i {
  color: var(--eh-primary);
  font-size: 1.2rem;
}

.community-telegram {
  border-top: 4px solid #229ed9;
}

.community-whatsapp {
  border-top: 4px solid #25d366;
}

.community-android {
  border-top: 4px solid #3ddc84;
}

.community-tile.is-muted {
  opacity: 0.82;
}

.cluster-control-panel {
  position: sticky;
  top: 82px;
  z-index: 10;
}

.cluster-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.65fr)) auto;
  gap: 14px;
  align-items: end;
}

.cluster-controls .form-label {
  margin-bottom: 6px;
  color: var(--eh-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

#clusterAutoRefresh.is-active {
  color: #ffffff;
  background: var(--eh-primary);
  border-color: var(--eh-primary);
}

.cluster-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--eh-muted);
  font-size: 0.9rem;
}

.cluster-statusbar strong {
  color: var(--eh-text);
}

.cluster-live-section {
  background: transparent;
}

.cluster-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 36px 20px;
  color: var(--eh-muted);
  text-align: center;
  background: var(--eh-surface);
  border: 1px dashed var(--eh-border);
  border-radius: var(--eh-radius);
}

.empty-state i {
  color: var(--eh-primary);
  font-size: 2rem;
}

.empty-state h2 {
  margin: 0;
  color: var(--eh-text);
  font-size: 1.1rem;
}

.empty-state p {
  margin: 0;
}

.cluster-activity-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--eh-surface);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.cluster-activity-card.is-new {
  border-color: #25d366;
  animation: clusterPulse 2s ease;
}

@keyframes clusterPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.42); }
  100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

.cluster-card-top,
.cluster-card-meta,
.cluster-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cluster-card-top {
  justify-content: space-between;
}

.cluster-operator {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.cluster-flag {
  width: 30px;
  height: 20px;
  object-fit: cover;
  border: 1px solid var(--eh-border);
  border-radius: 4px;
}

.cluster-callsign {
  color: var(--eh-text);
  font-size: 1.15rem;
  font-weight: 850;
  text-decoration: none;
}

.cluster-callsign:hover {
  color: var(--eh-primary);
}

.cluster-name {
  display: block;
  max-width: 210px;
  overflow: hidden;
  color: var(--eh-muted);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-platform-badge {
  color: #5a3b00;
  background: #fff2cc;
  border: 1px solid #f8d779;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.cluster-card-meta {
  color: var(--eh-muted);
  font-size: 0.86rem;
}

.cluster-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cluster-activity-text {
  margin: 0;
  color: #344054;
  line-height: 1.5;
}

.cluster-share-actions {
  padding-top: 10px;
  border-top: 1px solid var(--eh-border);
}

.cluster-share-actions .btn {
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-padding-x: 0.45rem;
}

.cluster-table-wrap {
  max-height: 620px;
}

.cluster-table {
  margin: 0;
}

.cluster-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #344054;
  background: var(--eh-surface-soft);
  border-bottom: 1px solid var(--eh-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.cluster-table td {
  vertical-align: middle;
}

.cluster-table .activity-cell {
  max-width: 420px;
}

.cluster-table .activity-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-toast {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 1080;
  max-width: 360px;
  padding: 12px 16px;
  color: #ffffff;
  background: #172033;
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.activities-page {
  display: grid;
  gap: 20px;
}

.activities-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(31, 111, 235, 0.88)),
    radial-gradient(circle at 82% 18%, rgba(22, 132, 91, 0.38), transparent 34%);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.activities-hero h1 {
  margin: 0;
  font-size: 2.65rem;
  font-weight: 850;
  background: linear-gradient(120deg, #ffffff 40%, #7ecfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.activities-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
}

.activities-hero .eyebrow {
  color: #bcd7ff;
}

.activity-scope-switch,
.activities-filter-actions,
.activity-card-footer,
.activity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activity-scope-switch .btn,
.activities-filter-actions .btn,
.activity-card-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activities-hero-metrics {
  display: grid;
  gap: 12px;
}

.activities-hero-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  color: var(--eh-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--eh-radius);
}

.activities-hero-metrics strong {
  font-size: 2rem;
  line-height: 1;
}

.activities-hero-metrics span {
  color: var(--eh-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activities-filter-panel {
  position: sticky;
  top: 82px;
  z-index: 10;
}

.activities-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(4, minmax(140px, 0.7fr)) auto;
  gap: 14px;
  align-items: end;
}

.activities-filter-form .form-label {
  margin-bottom: 6px;
  color: var(--eh-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.activities-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--eh-muted);
  font-size: 0.9rem;
}

.activities-statusbar strong {
  color: var(--eh-text);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.activity-list-card {
  display: grid;
  overflow: hidden;
  background: var(--eh-surface);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.activity-image-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dbe3ee;
}

.activity-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.activity-list-card:hover .activity-image-link img {
  transform: scale(1.025);
}

.activity-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: #667085;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
}

.activity-status-en-curso {
  background: var(--eh-success);
}

.activity-status-proximamente {
  color: #4f3500;
  background: #ffd166;
}

.activity-status-finalizado {
  background: var(--eh-danger);
}

.activity-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.activity-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--eh-muted);
  font-size: 0.84rem;
}

.activity-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.activity-card-body h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 850;
}

.activity-card-body h2 a {
  color: var(--eh-text);
  text-decoration: none;
}

.activity-card-body h2 a:hover {
  color: var(--eh-primary);
}

.activity-card-body p {
  margin: 0;
  color: #475467;
  line-height: 1.5;
}

.activity-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.activity-card-facts div {
  padding: 10px;
  background: var(--eh-surface-soft);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.activity-card-facts small,
.activity-card-facts strong {
  display: block;
}

.activity-card-facts small {
  color: var(--eh-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-card-facts strong {
  margin-top: 2px;
  font-size: 0.88rem;
}

.activity-card-footer {
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--eh-border);
}

.soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  color: #174ea6;
  background: #eef5ff;
  border: 1px solid #c9ddff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.soft-badge-warning {
  color: #7a4b00;
  background: #fff7df;
  border-color: #f4d27a;
}

.adif-page {
  display: grid;
  gap: 20px;
}

.adif-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(31, 111, 235, 0.88)),
    radial-gradient(circle at 82% 18%, rgba(22, 132, 91, 0.38), transparent 34%);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.adif-hero h1 {
  margin: 0;
  font-size: 2.65rem;
  font-weight: 850;
  background: linear-gradient(120deg, #ffffff 40%, #7ecfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.adif-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
}

.adif-hero .eyebrow {
  color: #bcd7ff;
}

.adif-hero-actions,
.adif-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adif-hero-actions .btn,
.adif-submit-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.adif-hero-metrics {
  display: grid;
  gap: 12px;
}

.adif-hero-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  color: var(--eh-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--eh-radius);
}

.adif-hero-metrics strong {
  font-size: 2rem;
  line-height: 1;
}

.adif-hero-metrics span {
  color: var(--eh-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.adif-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  border-radius: var(--eh-radius);
}

.adif-result strong,
.adif-result span {
  display: block;
}

.adif-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.adif-upload-panel {
  min-width: 0;
}

.adif-form {
  display: grid;
  gap: 18px;
}

.adif-dropzone {
  position: relative;
  display: grid;
  padding: 28px;
  background: var(--eh-surface-soft);
  border: 2px dashed #b8c7dc;
  border-radius: var(--eh-radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.adif-dropzone.is-dragging,
.adif-dropzone.has-file {
  background: #eef5ff;
  border-color: var(--eh-primary);
}

.adif-file-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  cursor: pointer;
}

.adif-file-label strong,
.adif-file-label small {
  display: block;
}

.adif-file-label small {
  margin-top: 4px;
  color: var(--eh-muted);
}

.adif-file-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: var(--eh-primary);
  border-radius: var(--eh-radius);
  font-size: 1.65rem;
}

.adif-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-error {
  margin-top: -8px;
  color: var(--eh-danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.adif-side-panel,
.adif-step-list,
.adif-recent-list {
  display: grid;
  gap: 14px;
}

.adif-step-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.adif-step-list div > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--eh-primary);
  border-radius: 999px;
  font-weight: 850;
}

.adif-step-list p {
  margin: 0;
}

.adif-step-list strong,
.adif-step-list small {
  display: block;
}

.adif-step-list small {
  margin-top: 3px;
  color: var(--eh-muted);
  line-height: 1.35;
}

.adif-recent-item {
  display: grid;
  gap: 2px;
  padding: 12px;
  color: var(--eh-text);
  text-decoration: none;
  background: var(--eh-surface-soft);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.adif-recent-item:hover,
.adif-recent-item:focus {
  color: var(--eh-text);
  border-color: var(--eh-primary);
}

.adif-recent-item span,
.adif-recent-item small {
  color: var(--eh-muted);
}

.calendar-page {
  display: grid;
  gap: 20px;
}

.calendar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(31, 111, 235, 0.88)),
    radial-gradient(circle at 82% 18%, rgba(22, 132, 91, 0.45), transparent 34%);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.calendar-hero h1 {
  margin: 0;
  font-size: 2.65rem;
  font-weight: 850;
  background: linear-gradient(120deg, #ffffff 40%, #7ecfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calendar-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
}

.calendar-hero .eyebrow {
  color: #bcd7ff;
}

.calendar-hero-actions,
.calendar-filter-actions,
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-hero-actions .btn,
.calendar-filter-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-hero-metrics {
  display: grid;
  gap: 12px;
}

.calendar-hero-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  color: var(--eh-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--eh-radius);
}

.calendar-hero-metrics strong {
  font-size: 2rem;
  line-height: 1;
}

.calendar-hero-metrics span {
  color: var(--eh-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-filter-panel {
  position: sticky;
  top: 82px;
  z-index: 10;
}

.calendar-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.65fr)) auto;
  gap: 14px;
  align-items: end;
}

.calendar-filter-form .form-label {
  margin-bottom: 6px;
  color: var(--eh-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.calendar-panel {
  min-width: 0;
}

.calendar-legend {
  color: var(--eh-muted);
  font-size: 0.84rem;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-current {
  background: var(--eh-success);
}

.legend-upcoming {
  background: #ffd166;
}

.legend-finished {
  background: var(--eh-danger);
}

.ehamlog-calendar {
  min-height: 680px;
}

.ehamlog-calendar .fc {
  color: var(--eh-text);
}

.ehamlog-calendar .fc-toolbar-title {
  color: var(--eh-text);
  font-size: 1.15rem;
  font-weight: 850;
}

.ehamlog-calendar .fc-button {
  background: var(--eh-primary);
  border-color: var(--eh-primary);
  border-radius: var(--eh-radius);
  box-shadow: none;
  font-weight: 700;
}

.ehamlog-calendar .fc-button:hover,
.ehamlog-calendar .fc-button:focus {
  background: var(--eh-primary-dark);
  border-color: var(--eh-primary-dark);
}

.ehamlog-calendar .fc-button-primary:not(:disabled).fc-button-active {
  background: #172033;
  border-color: #172033;
}

.ehamlog-calendar .fc-list,
.ehamlog-calendar .fc-scrollgrid,
.ehamlog-calendar .fc-theme-standard td,
.ehamlog-calendar .fc-theme-standard th {
  border-color: var(--eh-border);
}

.ehamlog-calendar .fc-col-header-cell,
.ehamlog-calendar .fc-list-day-cushion {
  background: var(--eh-surface-soft);
}

.ehamlog-calendar .fc-event {
  border: 0;
  border-radius: 6px;
  padding: 2px 4px;
  cursor: pointer;
}

.ehamlog-calendar .calendar-event-en-curso {
  background: var(--eh-success);
}

.ehamlog-calendar .calendar-event-proximamente {
  color: #4f3500;
  background: #ffd166;
}

.ehamlog-calendar .calendar-event-finalizado {
  background: var(--eh-danger);
}

.ehamlog-calendar .calendar-scope-exterior {
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.8);
}

.calendar-event-content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.calendar-event-content strong,
.calendar-event-content small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-content small {
  opacity: 0.88;
  font-size: 0.74rem;
}

.calendar-agenda-list {
  display: grid;
  gap: 12px;
}

.calendar-agenda-item {
  display: grid;
  gap: 7px;
  padding: 14px;
  color: var(--eh-text);
  text-decoration: none;
  background: var(--eh-surface-soft);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.calendar-agenda-item:hover,
.calendar-agenda-item:focus {
  color: var(--eh-text);
  border-color: var(--eh-primary);
}

.calendar-agenda-item .activity-status {
  position: static;
  justify-self: start;
}

.calendar-agenda-item strong {
  line-height: 1.3;
}

.calendar-agenda-item small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--eh-muted);
}

.activity-detail-page {
  display: grid;
  gap: 20px;
}

.activity-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(132deg, rgba(16, 37, 34, 0.98), rgba(11, 127, 120, 0.92) 62%, rgba(217, 155, 40, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 30px);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.activity-detail-media {
  min-height: 360px;
  background: #172033;
}

.activity-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.activity-detail-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 32px;
}

.activity-detail-kicker,
.activity-detail-actions,
.activity-ranking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activity-detail-kicker .activity-status {
  position: static;
}

.activity-detail-copy h1 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 850;
}

.activity-detail-description {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.activity-detail-description p:last-child {
  margin-bottom: 0;
}

.activity-detail-actions .btn,
.activity-ranking-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.activity-detail-metrics .metric-card {
  padding: 16px;
}

.activity-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.activity-detail-sidebar {
  display: grid;
  gap: 20px;
}

.activity-ranking-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(110px, 150px) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.activity-ranking-toolbar .form-label {
  margin-bottom: 6px;
  color: var(--eh-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ranking-results-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--eh-muted);
  font-size: 0.9rem;
}

.activity-ranking-table-wrap {
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.activity-ranking-table {
  margin: 0;
}

.activity-ranking-table thead th {
  color: #344054;
  background: var(--eh-surface-soft);
  border-bottom: 1px solid var(--eh-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-callsign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
}

.ranking-callsign img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border: 1px solid var(--eh-border);
  border-radius: 3px;
}

.ranking-callsign a {
  color: var(--eh-text);
  font-weight: 850;
  text-decoration: none;
}

.ranking-callsign a:hover {
  color: var(--eh-primary);
}

.medal-list,
.contacted-stations,
.activity-operator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.medalla-badge,
.badge-obligatorio-star,
.station-chip,
.operator-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--eh-border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.medalla-badge {
  color: #344054;
  background: var(--eh-surface-soft);
}

.medal-bronze i {
  color: #b76e2d;
}

.medal-silver i {
  color: #8a94a6;
}

.medal-gold i {
  color: #c79700;
}

.medal-platinum i {
  color: #64748b;
}

.badge-obligatorio-star,
.operator-chip.is-required {
  color: #4f3500;
  background: #fff2cc;
  border-color: #f4d27a;
}

.station-chip,
.operator-chip {
  color: #344054;
  background: var(--eh-surface-soft);
}

.operator-chip:hover,
.operator-chip:focus {
  color: var(--eh-primary);
  border-color: var(--eh-primary);
}

.ranking-pagination {
  margin-top: 16px;
}

.activity-required-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 12px;
  color: #4f3500;
  background: #fff7df;
  border: 1px solid #f4d27a;
  border-radius: var(--eh-radius);
  font-size: 0.9rem;
}

.qsl-page {
  display: grid;
  gap: 20px;
}

.qsl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(31, 111, 235, 0.86)),
    radial-gradient(circle at 82% 18%, rgba(22, 132, 91, 0.45), transparent 34%);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.qsl-hero h1 {
  margin: 0;
  font-size: 2.65rem;
  font-weight: 850;
  background: linear-gradient(120deg, #ffffff 40%, #7ecfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qsl-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.qsl-hero .eyebrow {
  color: #bcd7ff;
}

.qsl-search-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: var(--eh-text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--eh-radius);
}

.qsl-search-card .form-label {
  margin: 0;
  color: var(--eh-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.qsl-search-card small {
  color: var(--eh-muted);
}

.qsl-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.qsl-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.qsl-download-card {
  display: grid;
  overflow: hidden;
  background: var(--eh-surface);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
}

.qsl-preview-button {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  padding: 0;
  overflow: hidden;
  background: #dbe3ee;
  border: 0;
}

.qsl-preview-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.qsl-preview-button:hover img,
.qsl-preview-button:focus img {
  transform: scale(1.025);
}

.qsl-download-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.qsl-download-body strong,
.qsl-download-body small {
  display: block;
}

.qsl-download-body strong {
  line-height: 1.3;
}

.qsl-download-body small {
  margin-top: 3px;
  color: var(--eh-muted);
}

.qsl-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.qsl-card-actions .btn,
.qsl-modal-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qsl-modal-content {
  border: 0;
  border-radius: var(--eh-radius);
}

.ranking-page {
  display: grid;
  gap: 20px;
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(31, 111, 235, 0.86)),
    radial-gradient(circle at 82% 18%, rgba(255, 209, 102, 0.38), transparent 34%);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.ranking-country-hero {
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(22, 132, 91, 0.86)),
    radial-gradient(circle at 82% 18%, rgba(31, 111, 235, 0.42), transparent 34%);
}

.ranking-hero h1 {
  margin: 0;
  font-size: 2.65rem;
  font-weight: 850;
  background: linear-gradient(120deg, #ffffff 40%, #7ecfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ranking-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
}

.ranking-hero .eyebrow {
  color: #ffe5a3;
}

.ranking-hero-actions,
.ranking-filter-actions,
.ranking-top-operators {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ranking-hero-actions .btn,
.ranking-filter-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ranking-hero-metrics {
  display: grid;
  gap: 12px;
}

.ranking-hero-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  color: var(--eh-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--eh-radius);
}

.ranking-hero-metrics strong {
  font-size: 2rem;
  line-height: 1;
}

.ranking-hero-metrics span {
  color: var(--eh-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ranking-filter-panel {
  position: sticky;
  top: 82px;
  z-index: 10;
}

.ranking-filter-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.ranking-filter-form .form-label {
  margin-bottom: 6px;
  color: var(--eh-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.ranking-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ranking-podium-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  background: var(--eh-surface);
  border: 1px solid var(--eh-border);
  border-top: 5px solid #8a94a6;
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.ranking-podium-card.podium-1 {
  border-top-color: #c79700;
}

.ranking-podium-card.podium-2 {
  border-top-color: #8a94a6;
}

.ranking-podium-card.podium-3 {
  border-top-color: #b76e2d;
}

.ranking-podium-card img {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border: 1px solid var(--eh-border);
  border-radius: 4px;
}

.ranking-podium-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 850;
}

.ranking-podium-card h2 a {
  color: var(--eh-text);
  text-decoration: none;
}

.ranking-podium-card h2 a:hover {
  color: var(--eh-primary);
}

.ranking-podium-card > strong {
  color: var(--eh-primary);
  font-size: 1.6rem;
  line-height: 1;
}

.ranking-podium-card small {
  color: var(--eh-muted);
}

.ranking-position,
.rank-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: #172033;
  border-radius: 999px;
  font-weight: 850;
}

.ranking-table-wrap {
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.ranking-table {
  margin: 0;
}

.ranking-table thead th {
  color: #344054;
  background: var(--eh-surface-soft);
  border-bottom: 1px solid var(--eh-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-rules {
  margin-bottom: 0;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  color: #ffffff;
  background: var(--eh-primary);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--eh-shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-operator-hero,
.home-public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
  gap: 20px;
  margin-bottom: 20px;
}

.home-operator-copy,
.home-public-copy {
  min-height: 330px;
  padding: 32px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(31, 111, 235, 0.9)),
    radial-gradient(circle at 82% 18%, rgba(22, 132, 91, 0.42), transparent 35%);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.home-public-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.home-operator-copy h1,
.home-public-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4.3rem);
  font-weight: 850;
  line-height: 1.02;
  background: linear-gradient(120deg, #ffffff 40%, #7ecfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-operator-copy p,
.home-public-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.home-operator-copy .eyebrow,
.home-public-copy .eyebrow {
  color: #9bd1ff;
}

.home-operator-side,
.home-cluster-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 330px;
  padding: 24px;
  background: var(--eh-surface);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.home-cluster-preview {
  min-height: 420px;
}

.home-operator-side h2,
.home-cluster-preview h2 {
  margin: 14px 0 8px;
  font-size: 1.45rem;
  font-weight: 850;
}

.home-operator-side p {
  color: var(--eh-muted);
}

.home-side-actions,
.home-preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-preview-header a {
  color: var(--eh-primary);
  font-weight: 800;
  text-decoration: none;
}

.status-pill-live {
  color: #075e54;
  background: #dcfce7;
  border-color: #a7f3d0;
}

.home-metric-grid .metric-card {
  min-height: 112px;
}

.home-workbench,
.home-public-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.home-workbench-card,
.home-feature-card {
  display: grid;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  color: var(--eh-text);
  text-decoration: none;
  background: var(--eh-surface);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.home-workbench-card {
  grid-template-columns: 44px 1fr auto;
}

.home-feature-card {
  grid-template-columns: 44px 1fr;
}

.home-workbench-card:hover,
.home-workbench-card:focus,
.home-feature-card:hover,
.home-feature-card:focus {
  color: var(--eh-text);
  border-color: var(--eh-primary);
  transform: translateY(-2px);
}

.home-workbench-card strong,
.home-workbench-card small,
.home-feature-card strong,
.home-feature-card small {
  display: block;
}

.home-workbench-card small,
.home-feature-card small {
  margin-top: 4px;
  color: var(--eh-muted);
  line-height: 1.35;
}

.home-workbench-card > .bi-arrow-right {
  color: var(--eh-primary);
}

.home-workbench-card.is-primary {
  border-top: 4px solid var(--eh-primary);
}

.home-feature-card > i {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--eh-primary);
  border-radius: var(--eh-radius);
  font-size: 1.25rem;
}

.home-feature-card.is-cluster > i {
  background: var(--eh-success);
}

.home-desktop-grid,
.home-public-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.home-public-grid {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.4fr);
}

.home-log-panel {
  min-width: 0;
}

.home-community-panel {
  padding: 20px;
  background: var(--eh-surface);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

.home-social-stack {
  display: grid;
  gap: 12px;
}

.home-social-stack .community-tile {
  grid-template-columns: 42px 1fr auto;
  min-height: 84px;
  padding: 14px;
  box-shadow: none;
}

.home-cluster-list {
  display: grid;
  gap: 10px;
}

.home-cluster-item {
  display: grid;
  gap: 2px;
  padding: 12px;
  color: var(--eh-text);
  text-decoration: none;
  background: var(--eh-surface-soft);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.home-cluster-item:hover,
.home-cluster-item:focus {
  color: var(--eh-text);
  border-color: var(--eh-primary);
}

.home-cluster-item strong {
  font-size: 1.05rem;
}

.home-cluster-item span,
.home-cluster-item small {
  color: var(--eh-muted);
}

.home-community-wide {
  min-width: 0;
}

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

.home-club-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(86px, 1fr));
  gap: 14px;
}

.home-club-logo {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 14px;
  background: var(--eh-surface-soft);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
}

.home-club-logo img {
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 2026 portal design system pass */
h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.modal-title {
  font-family: var(--eh-heading-font);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--eh-text);
}

a {
  color: var(--eh-primary);
}

a:hover,
a:focus {
  color: var(--eh-primary-dark);
}

.btn {
  --bs-btn-border-radius: var(--eh-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.25rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--eh-primary);
  --bs-btn-border-color: var(--eh-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--eh-primary-dark);
  --bs-btn-hover-border-color: var(--eh-primary-dark);
  --bs-btn-active-bg: var(--eh-primary-dark);
  --bs-btn-active-border-color: var(--eh-primary-dark);
  box-shadow: 0 10px 24px rgba(11, 127, 120, 0.18);
}

.btn-success {
  --bs-btn-bg: var(--eh-success);
  --bs-btn-border-color: var(--eh-success);
  --bs-btn-hover-bg: #0f7353;
  --bs-btn-hover-border-color: #0f7353;
}

.btn-warning {
  --bs-btn-color: #241704;
  --bs-btn-bg: #e9b44c;
  --bs-btn-border-color: #e9b44c;
  --bs-btn-hover-color: #241704;
  --bs-btn-hover-bg: var(--eh-accent);
  --bs-btn-hover-border-color: var(--eh-accent);
}

.btn-danger {
  --bs-btn-bg: var(--eh-danger);
  --bs-btn-border-color: var(--eh-danger);
}

.btn-info {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #297f9d;
  --bs-btn-border-color: #297f9d;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #216981;
  --bs-btn-hover-border-color: #216981;
}

.btn-secondary,
.btn-dark {
  --bs-btn-bg: var(--eh-ink);
  --bs-btn-border-color: var(--eh-ink);
  --bs-btn-hover-bg: #203c38;
  --bs-btn-hover-border-color: #203c38;
}

.btn-outline-primary {
  --bs-btn-color: var(--eh-primary);
  --bs-btn-border-color: rgba(11, 127, 120, 0.42);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--eh-primary);
  --bs-btn-hover-border-color: var(--eh-primary);
}

.btn-outline-secondary {
  --bs-btn-color: #48615d;
  --bs-btn-border-color: var(--eh-border-strong);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #48615d;
  --bs-btn-hover-border-color: #48615d;
}

.btn-outline-success {
  --bs-btn-color: var(--eh-success);
  --bs-btn-border-color: rgba(19, 138, 99, 0.42);
  --bs-btn-hover-bg: var(--eh-success);
  --bs-btn-hover-border-color: var(--eh-success);
}

.btn-light {
  --bs-btn-color: var(--eh-text);
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.9);
  --bs-btn-hover-color: var(--eh-text);
  --bs-btn-hover-bg: #f2fbf8;
  --bs-btn-hover-border-color: #f2fbf8;
}

.btn-outline-light {
  --bs-btn-color: #ffffff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.68);
  --bs-btn-hover-color: var(--eh-text);
  --bs-btn-hover-bg: #ffffff;
  --bs-btn-hover-border-color: #ffffff;
}

.form-control,
.form-select,
.form-check-input,
select.form-control {
  color: var(--eh-text);
  background-color: rgba(255, 255, 252, 0.94);
  border-color: var(--eh-border);
  border-radius: var(--eh-radius);
}

.form-control,
.form-select,
select.form-control {
  min-height: 42px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
select.form-control:focus {
  border-color: var(--eh-primary);
  box-shadow: 0 0 0 0.22rem rgba(11, 127, 120, 0.14);
}

.form-label,
.col-form-label,
label {
  color: #324b47;
  font-weight: 700;
}

.table {
  color: var(--eh-text);
}

.table-responsive,
.ranking-table-wrap,
.activity-ranking-table-wrap,
.cluster-table-wrap {
  border-radius: var(--eh-radius);
}

.table > :not(caption) > * > * {
  border-bottom-color: rgba(201, 217, 214, 0.72);
}

.table thead th,
.table-eham thead th,
.ranking-table thead th,
.activity-ranking-table thead th,
.cluster-table thead th {
  color: #35534e;
  background: #e8f4f1;
  border-bottom-color: var(--eh-border);
  font-weight: 800;
}

.modal-content,
.dropdown-menu,
.card,
.list-group-item {
  background: var(--eh-surface);
  border-color: var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow-soft);
}

.dropdown-item {
  color: var(--eh-text);
  font-weight: 600;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--eh-primary-dark);
  background: var(--eh-primary-soft);
}

.alert {
  border-radius: var(--eh-radius);
  border-color: transparent;
  box-shadow: var(--eh-shadow-soft);
}

.badge,
.status-pill,
.soft-badge,
.cluster-platform-badge,
.medalla-badge,
.badge-obligatorio-star,
.station-chip,
.operator-chip,
.rank-number,
.ranking-position {
  letter-spacing: 0;
}

.panel,
.card {
  overflow: clip;
}

.card {
  --bs-card-bg: var(--eh-surface-raised);
  --bs-card-border-color: var(--eh-border);
  --bs-card-border-radius: var(--eh-radius);
}

.card-header {
  border-bottom-color: var(--eh-border);
  font-family: var(--eh-heading-font);
  font-size: 1.2rem;
  font-weight: 800;
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-danger,
.card-header.bg-info,
.card-header.bg-dark,
.card-header.bg-secondary {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--eh-ink), var(--eh-primary)) !important;
}

.card-header.bg-warning {
  color: #241704 !important;
  background: linear-gradient(135deg, #f1c96c, var(--eh-accent)) !important;
}

.container > .card,
.container > .row,
.container > form,
.container > .text-center {
  position: relative;
}

.container.my-5,
.container.mt-5,
.container.mt-4,
.container.mt-1 {
  max-width: 1280px;
}

.container.my-5 > .row,
.container.mt-5 > .row,
.container.mt-4 > .row,
.container.mt-1 > .row {
  row-gap: 1rem;
}

.bg-light {
  background-color: rgba(245, 251, 250, 0.86) !important;
}

.text-primary {
  color: var(--eh-primary) !important;
}

.text-muted {
  color: var(--eh-muted) !important;
}

.home-operator-hero,
.home-public-hero {
  align-items: stretch;
}

.home-operator-copy,
.home-public-copy,
.cluster-hero,
.activities-hero,
.adif-hero,
.calendar-hero,
.ranking-hero,
.qsl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(132deg, rgba(16, 37, 34, 0.98), rgba(11, 127, 120, 0.92) 62%, rgba(217, 155, 40, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 30px);
}

.home-operator-copy::before,
.home-public-copy::before,
.cluster-hero::before,
.activities-hero::before,
.adif-hero::before,
.calendar-hero::before,
.ranking-hero::before,
.qsl-hero::before,
.activity-detail-hero::before,
.dashboard-hero::before,
.station-hero::before {
  position: absolute;
  inset: auto -70px -130px auto;
  z-index: -1;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.05),
    0 0 0 96px rgba(255, 255, 255, 0.035),
    0 0 0 144px rgba(255, 255, 255, 0.02);
}

.home-operator-copy h1,
.home-public-copy h1,
.cluster-hero h1,
.activities-hero h1,
.adif-hero h1,
.calendar-hero h1,
.ranking-hero h1,
.qsl-hero h1,
.activity-detail-copy h1,
.auth-card h1 {
  font-family: var(--eh-heading-font);
  font-weight: 800;
  line-height: 0.98;
  text-wrap: balance;
}

.home-operator-copy h1,
.home-public-copy h1 {
  max-width: 840px;
}

.home-operator-copy p,
.home-public-copy p,
.cluster-hero p,
.activities-hero p,
.adif-hero p,
.calendar-hero p,
.ranking-hero p,
.qsl-hero p {
  font-size: 1.05rem;
  line-height: 1.58;
}

.home-operator-side,
.home-cluster-preview,
.home-community-panel,
.auth-card,
.auth-side,
.qsl-search-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.96), rgba(245, 251, 250, 0.9));
}

.home-workbench-card,
.home-feature-card,
.community-tile,
.cluster-activity-card,
.activity-list-card,
.qsl-download-card,
.ranking-podium-card,
.calendar-agenda-item,
.adif-recent-item,
.home-cluster-item,
.activity-row,
.certificate-row,
.definition-grid div,
.activity-card-facts div,
.auth-feature,
.auth-steps div {
  background: rgba(255, 255, 252, 0.92);
  border-color: var(--eh-border);
  box-shadow: var(--eh-shadow-soft);
}

.home-workbench-card:hover,
.home-workbench-card:focus,
.home-feature-card:hover,
.home-feature-card:focus,
.community-tile:hover,
.community-tile:focus,
.cluster-activity-card:hover,
.activity-list-card:hover,
.qsl-download-card:hover,
.ranking-podium-card:hover,
.calendar-agenda-item:hover,
.adif-recent-item:hover,
.home-cluster-item:hover,
.activity-row:hover,
.certificate-row:hover {
  border-color: var(--eh-primary);
  box-shadow: 0 18px 42px rgba(11, 127, 120, 0.14);
}

.home-workbench-card strong,
.home-feature-card strong,
.community-tile strong,
.activity-card-body h2,
.ranking-podium-card h2,
.cluster-callsign,
.callsign-link {
  letter-spacing: 0;
}

.status-success,
.status-pill-live {
  color: #064d39;
  background: #dff7ec;
  border-color: #a5e5c8;
}

.status-warning,
.soft-badge-warning,
.activity-status-proximamente {
  color: #5f3c07;
  background: #fff0c7;
  border-color: #efc260;
}

.status-danger,
.activity-status-finalizado {
  color: #ffffff;
  background: var(--eh-danger);
  border-color: var(--eh-danger);
}

.soft-badge {
  color: var(--eh-primary-dark);
  background: var(--eh-primary-soft);
  border-color: rgba(11, 127, 120, 0.22);
}

.community-telegram,
.community-whatsapp,
.community-android {
  border-top-width: 3px;
}

.home-club-logo {
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.88), rgba(237, 247, 244, 0.88));
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.home-club-logo:hover {
  border-color: var(--eh-primary);
  transform: translateY(-2px);
}

.back-to-top {
  background: linear-gradient(135deg, var(--eh-primary), var(--eh-accent));
  box-shadow: 0 14px 30px rgba(11, 127, 120, 0.22);
}

.flatpickr-calendar {
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
  font-family: var(--eh-body-font);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover {
  background: var(--eh-primary);
  border-color: var(--eh-primary);
}

.qso-entry-page,
.download-results {
  display: grid;
  gap: 20px;
}

.qso-entry-form {
  display: grid;
  gap: 22px;
  max-width: 1120px;
}

.qso-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(16, 37, 34, 0.96), rgba(11, 127, 120, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 26px);
  border-radius: var(--eh-radius);
  color: #ffffff;
}

.qso-contact-card strong,
.qso-contact-card small {
  display: block;
}

.qso-contact-card strong {
  margin-top: 10px;
  font-family: var(--eh-heading-font);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.94;
}

.qso-contact-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.qso-country {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--eh-radius);
  font-weight: 700;
}

.qso-country img {
  width: 34px;
  height: 24px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
}

.qso-field-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  gap: 14px;
}

.qso-field-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qso-entry-actions,
.download-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-lookup {
  display: grid;
  min-height: min(620px, calc(100vh - 220px));
  place-items: center;
}

.download-lookup-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 560px);
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
  background: var(--eh-surface-raised);
  border: 1px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
  backdrop-filter: blur(14px);
}

.download-lookup-card img {
  width: min(260px, 72vw);
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(16, 37, 34, 0.14));
}

.download-lookup-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
}

.download-lookup-card p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--eh-muted);
}

.download-lookup-form {
  width: 100%;
}

.download-lookup-form .form-control {
  flex: 1 1 220px;
  text-transform: uppercase;
}

.download-lookup-form .btn {
  flex: 0 0 auto;
}

.download-results .qsl-gallery:has(.empty-state) {
  grid-template-columns: 1fr;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 992px) {
  .dashboard-hero,
  .station-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .action-grid,
  .content-grid,
  .home-operator-hero,
  .home-public-hero,
  .home-workbench,
  .home-public-sections,
  .home-desktop-grid,
  .home-public-grid,
  .home-community-grid,
  .adif-hero,
  .adif-layout,
  .auth-layout,
  .auth-layout-wide,
  .cluster-hero,
  .cluster-community-grid,
  .cluster-card-grid,
  .cluster-controls,
  .activities-hero,
  .activities-grid,
  .activities-filter-form,
  .calendar-hero,
  .calendar-layout,
  .calendar-filter-form,
  .activity-detail-hero,
  .activity-detail-layout,
  .activity-ranking-toolbar,
  .qsl-hero,
  .qsl-gallery,
  .ranking-hero,
  .ranking-filter-form,
  .ranking-podium {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-filter-panel {
    position: static;
  }

  .qso-field-grid,
  .qso-field-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-club-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cluster-control-panel,
  .activities-filter-panel,
  .calendar-filter-panel {
    position: static;
  }
}

@media (max-width: 576px) {
  .app-main {
    padding-top: 16px;
  }

  .dashboard-hero,
  .station-hero,
  .home-operator-copy,
  .home-public-copy,
  .home-operator-side,
  .home-cluster-preview,
  .adif-hero,
  .cluster-hero,
  .activities-hero,
  .calendar-hero,
  .panel,
  .auth-card {
    padding: 16px;
  }

  .metric-grid,
  .definition-grid,
  .home-workbench,
  .home-public-sections,
  .home-club-strip {
    grid-template-columns: 1fr;
  }

  .home-operator-copy,
  .home-public-copy,
  .home-cluster-preview,
  .home-operator-side {
    min-height: auto;
  }

  .home-operator-copy h1,
  .home-public-copy h1 {
    font-size: 2.2rem;
  }

  .home-workbench-card,
  .home-feature-card,
  .adif-hero-metrics div {
    min-height: auto;
  }

  .adif-hero h1 {
    font-size: 2rem;
  }

  .adif-file-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar > * {
    width: 100%;
  }

  .cluster-statusbar,
  .activities-statusbar,
  .cluster-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-hero h1 {
    font-size: 2rem;
  }

  .activity-detail-copy h1 {
    font-size: 2rem;
  }

  .activity-detail-copy {
    padding: 20px;
  }

  .activity-detail-media,
  .activity-detail-media img {
    min-height: 240px;
  }

  .ehamlog-calendar {
    min-height: 560px;
  }

  .activity-card-facts {
    grid-template-columns: 1fr;
  }

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

  .qsl-hero h1 {
    font-size: 2rem;
  }

  .ranking-hero h1 {
    font-size: 2rem;
  }

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

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

  .ranking-results-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-tile {
    grid-template-columns: 40px 1fr;
  }

  .qso-contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .qso-field-grid,
  .qso-field-grid-wide {
    grid-template-columns: 1fr;
  }

  .qso-entry-actions,
  .qso-entry-actions .btn,
  .download-lookup-form .btn {
    width: 100%;
  }

  .activities-hero h1 {
    font-size: 2rem;
  }

  .community-tile > i {
    display: none;
  }
}
