/* Government Exam Comparison - #3d85c6 */
/* Allow inner scroll areas; prevent page-level horizontal blowout */
body[data-tool-id="exam-comparison"] #tool-main.tool-content-slot {
  overflow: visible;
  max-width: 100%;
}

@media (max-width: 639px) {
  body[data-tool-id="exam-comparison"] .tool-page-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  body[data-tool-id="exam-comparison"] .tool-content-slot {
    padding: 4px;
  }

  #resultsSection .ec-actions {
    flex-direction: column;
  }

  #resultsSection .ec-actions .ec-btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  #resultsSection .ec-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #resultsSection .ec-actions .ec-btn {
    width: auto;
    flex: 1;
    min-width: 140px;
  }
}

#tool-main {
  --ec-brand: #3d85c6;
  --ec-brand-dark: #2c6dab;
  --ec-brand-light: #eaf4fb;
  --ec-brand-border: #b6d5f2;
  --ec-bg: #f4f8fc;
  --ec-surface: #ffffff;
  --ec-text: #1a2332;
  --ec-muted: #5c6b7a;
  --ec-border: rgba(61, 133, 198, 0.18);
  --ec-shadow: 0 8px 32px rgba(61, 133, 198, 0.12);
  --ec-radius: 16px;
  --ec-touch: 44px;
  --ec-pad-x: max(12px, env(safe-area-inset-left, 0px));
  --ec-pad-x-end: max(12px, env(safe-area-inset-right, 0px));
  --ec-easy: #22c55e;
  --ec-moderate: #eab308;
  --ec-hard: #f97316;
  --ec-very-hard: #ef4444;
  --ec-gold: #f59e0b;
  font-family: var(--font, 'DM Sans', system-ui, sans-serif);
  color: var(--ec-text);
  background: var(--ec-bg);
  background-image: radial-gradient(ellipse 70% 40% at 50% -5%, rgba(61, 133, 198, 0.1), transparent);
  padding-bottom: 16px;
}

.ec-wrap {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 10px var(--ec-pad-x-end) max(12px, env(safe-area-inset-bottom, 0px)) var(--ec-pad-x);
  min-width: 0;
  overflow-x: clip;
}

#resultsSection {
  min-width: 0;
  max-width: 100%;
}

.ec-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--ec-surface);
  border: 1px solid var(--ec-brand-border);
  border-radius: 999px;
  padding: 3px 5px;
  box-shadow: 0 2px 10px rgba(61, 133, 198, 0.12);
  flex-shrink: 0;
}

.ec-lang-btn {
  min-height: 36px;
  min-width: 38px;
  padding: 6px 11px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1;
  color: var(--ec-muted);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ec-lang-btn.active {
  background: var(--ec-brand);
  color: #fff;
}

.ec-lang-btn:focus-visible {
  outline: 2px solid var(--ec-brand);
  outline-offset: 2px;
}

.ec-lang-sep {
  color: var(--ec-brand-border);
  font-size: 0.8rem;
  line-height: 1;
  user-select: none;
  padding: 0 1px;
}

.ec-hero {
  text-align: center;
  margin-bottom: 16px;
  padding: 14px 14px 16px;
  background: linear-gradient(135deg, var(--ec-brand-light), transparent);
  border-radius: var(--ec-radius);
  border: 1px solid var(--ec-brand-border);
}

.ec-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ec-hero-head h1 {
  font-size: clamp(1.15rem, 3.8vw, 1.65rem);
  font-weight: 800;
  color: var(--ec-brand);
  margin: 0;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding-top: 4px;
}

@media (min-width: 640px) {
  .ec-hero {
    padding: 18px 18px 20px;
  }

  .ec-hero-head h1 {
    text-align: center;
    padding-top: 6px;
  }
}

.ec-hero p {
  color: var(--ec-muted);
  margin: 0;
  font-size: 0.88rem;
  max-width: 640px;
  margin-inline: auto;
}

.ec-card {
  background: var(--ec-surface);
  border: 1px solid var(--ec-brand-border);
  border-radius: var(--ec-radius);
  box-shadow: var(--ec-shadow);
  padding: 14px 12px;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 480px) {
  .ec-card {
    padding: 16px;
    margin-bottom: 14px;
  }
}

.ec-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ec-brand-dark);
  margin: 0 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
  word-break: break-word;
  flex-wrap: wrap;
}

.ec-card-sub {
  font-size: 0.78rem;
  color: var(--ec-muted);
  margin: -8px 0 12px;
}

.ec-subheading {
  margin-top: 18px !important;
  font-size: 0.85rem !important;
}

.ec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ec-brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.ec-input,
.ec-select {
  width: 100%;
  min-height: var(--ec-touch);
  padding: 12px 14px;
  border: 1px solid var(--ec-brand-border);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: var(--ec-surface);
  color: var(--ec-text);
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .ec-input,
  .ec-select {
    font-size: 0.9rem;
    min-height: 42px;
    padding: 10px 12px;
  }
}

.ec-input:focus,
.ec-select:focus {
  outline: 2px solid var(--ec-brand);
  outline-offset: 1px;
}

.ec-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.ec-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ec-surface);
  border: 1px solid var(--ec-brand-border);
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--ec-shadow);
  display: none;
}

.ec-search-results.open { display: block; }

.ec-search-item {
  min-height: var(--ec-touch);
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--ec-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ec-search-item:hover,
.ec-search-item:focus {
  background: var(--ec-brand-light);
}

.ec-search-item small {
  color: var(--ec-muted);
  display: block;
  font-size: 0.75rem;
}

.ec-slots {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ec-slots { grid-template-columns: repeat(3, 1fr); }
}

.ec-count-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.ec-count-btn {
  flex: 1;
  min-height: var(--ec-touch);
  padding: 10px 12px;
  border: 2px solid var(--ec-brand-border);
  border-radius: 10px;
  background: var(--ec-surface);
  color: var(--ec-text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.ec-count-btn.active {
  background: var(--ec-brand);
  color: #fff;
  border-color: var(--ec-brand);
}

.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--ec-touch);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .ec-btn {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 0.88rem;
  }
}

.ec-btn--primary { background: var(--ec-brand); color: #fff; }
.ec-btn--primary:hover { background: var(--ec-brand-dark); }
.ec-btn--ghost {
  background: transparent;
  color: var(--ec-brand);
  border: 2px solid var(--ec-brand-border);
}
.ec-btn--ghost:hover { background: var(--ec-brand-light); }
.ec-btn--sm {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.ec-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.ec-actions .ec-btn {
  width: 100%;
}

.ec-selector-actions {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin: 16px -12px -14px;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--ec-surface) 75%, transparent);
  border-top: 1px solid var(--ec-brand-border);
}

@media (min-width: 480px) {
  .ec-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ec-actions .ec-btn {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .ec-selector-actions {
    position: static;
    margin: 14px 0 0;
    padding: 0;
    background: none;
    border-top: none;
  }
}

.ec-winners {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .ec-winners { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .ec-winners { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (min-width: 520px) and (max-width: 719px) {
  .ec-winner.overall { grid-column: 1 / -1; }
}

.ec-winner {
  background: linear-gradient(135deg, var(--ec-brand-light), var(--ec-surface));
  border: 1px solid var(--ec-brand-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.ec-winner.overall {
  border-color: var(--ec-gold);
  background: linear-gradient(135deg, #fef3c7, var(--ec-surface));
}

.ec-winner-icon { font-size: 1.4rem; }
.ec-winner-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ec-muted);
  text-transform: none;
  margin: 4px 0;
  line-height: 1.35;
  word-break: break-word;
}
.ec-winner-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ec-brand-dark);
  line-height: 1.3;
  word-break: break-word;
}

.ec-meter-row { margin-bottom: 14px; }
.ec-meter-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ec-meter-head span:first-child {
  line-height: 1.3;
  word-break: break-word;
}

@media (min-width: 420px) {
  .ec-meter-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .ec-meter-head span:last-child {
    flex-shrink: 0;
  }
}

.ec-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 12px;
}

.ec-meter-seg {
  border-radius: 4px;
  background: var(--ec-border);
  transition: 0.3s;
}

.ec-meter-seg.on.easy { background: var(--ec-easy); }
.ec-meter-seg.on.moderate { background: var(--ec-moderate); }
.ec-meter-seg.on.hard { background: var(--ec-hard); }
.ec-meter-seg.on.very-hard { background: var(--ec-very-hard); }

.ec-meter-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.ec-meter-labels span {
  font-size: 0.58rem;
  color: var(--ec-muted);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

@media (min-width: 480px) {
  .ec-meter-labels span { font-size: 0.65rem; }
}

.ec-scores {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 400px) {
  .ec-scores { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .ec-scores { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

.ec-score-card {
  text-align: center;
  padding: 14px;
  border: 1px solid var(--ec-brand-border);
  border-radius: 12px;
}

.ec-score-val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ec-brand);
  line-height: 1;
}

.ec-score-name {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.3;
  word-break: break-word;
}
.ec-score-bar {
  height: 6px;
  background: var(--ec-border);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.ec-score-fill {
  height: 100%;
  background: var(--ec-brand);
  border-radius: 3px;
  transition: width 0.5s;
}

.ec-table-hint {
  display: block;
  margin: 0 0 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ec-brand);
  text-align: center;
  background: var(--ec-brand-light);
  border-radius: 8px;
}

.ec-compare-mobile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ec-compare-desktop {
  display: none;
}

.ec-compare-desktop-hint {
  display: none;
}

.ec-m-card {
  border: 1px solid var(--ec-brand-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ec-surface);
}

.ec-m-card-title {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ec-brand-dark);
  background: var(--ec-brand-light);
  line-height: 1.35;
  word-break: break-word;
}

.ec-m-card-body {
  display: flex;
  flex-direction: column;
}

.ec-m-card-row {
  padding: 10px 12px;
  border-top: 1px solid var(--ec-border);
}

.ec-m-card-row:first-child {
  border-top: none;
}

.ec-m-card-exam {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--ec-brand);
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
}

.ec-m-card-val {
  font-size: 0.86rem;
  color: var(--ec-text);
  line-height: 1.45;
  word-break: break-word;
}

@media (min-width: 640px) {
  .ec-compare-mobile { display: none; }
  .ec-compare-desktop { display: block; }
  .ec-compare-desktop-hint { display: none; }
}

.ec-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 12px;
  border: 1px solid var(--ec-brand-border);
  max-height: min(70vh, 520px);
  width: 100%;
  max-width: 100%;
  scroll-snap-type: x proximity;
}

.ec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 480px;
}

.ec-table th,
.ec-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--ec-border);
  text-align: left;
  vertical-align: top;
}

.ec-table th {
  background: var(--ec-brand);
  color: #fff;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ec-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 20;
  background: var(--ec-brand-dark);
  min-width: 140px;
}

.ec-table td:first-child {
  font-weight: 700;
  color: var(--ec-brand-dark);
  background: var(--ec-brand-light);
  position: sticky;
  left: 0;
  z-index: 5;
  min-width: 140px;
}

.ec-table tr:last-child td { border-bottom: none; }
.ec-table tbody tr:hover td { background: rgba(61, 133, 198, 0.06); }
.ec-table tbody tr:hover td:first-child { background: var(--ec-brand-light); }

.ec-best-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .ec-best-grid { grid-template-columns: repeat(2, 1fr); }
}

.ec-best-item {
  padding: 10px;
  border: 1px solid var(--ec-border);
  border-radius: 10px;
  font-size: 0.85rem;
  min-width: 0;
}

.ec-best-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--ec-brand);
  margin-bottom: 6px;
  line-height: 1.35;
  word-break: break-word;
}

.ec-best-item span {
  display: block;
  line-height: 1.45;
  word-break: break-word;
}

.ec-earnings {
  display: grid;
  gap: 12px;
}

@media (min-width: 600px) {
  .ec-earnings { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

.ec-earn-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--ec-brand-border);
  background: linear-gradient(135deg, var(--ec-brand-light), var(--ec-surface));
}

.ec-earn-val {
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  font-weight: 900;
  color: var(--ec-brand);
  line-height: 1.2;
  word-break: break-word;
}

.ec-earn-sub {
  font-size: 0.75rem;
  color: var(--ec-muted);
  margin-top: 4px;
}

.ec-field-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.ec-field-row .ec-field { flex: 1; min-width: 0; }

.ec-field-row .ec-field--action .ec-btn {
  width: 100%;
}

@media (min-width: 480px) {
  .ec-field-row {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .ec-field-row .ec-field { min-width: 120px; }

  .ec-field-row .ec-field--action .ec-btn {
    width: auto;
    margin-top: 22px;
  }
}

.ec-rankings-card {
  padding: 0;
  overflow: hidden;
}

.ec-rank-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 12px;
  border: none;
  background: linear-gradient(135deg, var(--ec-brand-light), var(--ec-surface));
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s, box-shadow 0.2s;
}

.ec-rank-toggle:hover,
.ec-rank-toggle:focus-visible {
  background: linear-gradient(135deg, #d6ebfa, var(--ec-brand-light));
  outline: 2px solid var(--ec-brand);
  outline-offset: -2px;
}

.ec-rank-toggle[aria-expanded="false"] {
  box-shadow: inset 0 0 0 2px var(--ec-brand-border);
}

.ec-rank-toggle__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ec-rank-toggle__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ec-brand-dark);
  line-height: 1.3;
}

.ec-rank-toggle__hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ec-brand);
}

.ec-rank-chevron {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ec-brand);
  color: #fff;
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.ec-rank-toggle[aria-expanded="true"] .ec-rank-chevron {
  transform: rotate(180deg);
}

.ec-rank-panel {
  padding: 0 16px 16px;
  border-top: 1px solid var(--ec-brand-border);
}

.ec-rank-panel[hidden] {
  display: none !important;
}

.ec-rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.ec-rank-tab {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid var(--ec-brand-border);
  background: var(--ec-surface);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ec-text);
  -webkit-tap-highlight-color: transparent;
}

.ec-rank-tab.active {
  background: var(--ec-brand);
  color: #fff;
  border-color: var(--ec-brand);
}

.ec-rank-list { list-style: none; margin: 0; padding: 0; }

.ec-rank-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ec-border);
  font-size: 0.88rem;
}

.ec-rank-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
}

.ec-rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ec-brand-light);
  color: var(--ec-brand);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ec-rank-num.top { background: var(--ec-gold); color: #fff; }

.ec-rank-meta {
  width: 100%;
  margin-left: 38px;
  font-size: 0.76rem;
  color: var(--ec-muted);
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 480px) {
  .ec-rank-meta {
    width: auto;
    margin-left: auto;
    font-size: 0.78rem;
  }
}

.ec-disclaimer-text {
  font-size: 0.85rem;
  color: var(--ec-muted);
  margin: 0;
  line-height: 1.55;
}

.ec-results-disclaimer {
  border-color: #f0c36d;
  background: #fffbf0;
}

.ec-results-disclaimer .ec-card-title {
  color: #9a6700;
}

.ec-results-disclaimer .ec-disclaimer-link {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0d9a8;
}

.ec-results-disclaimer .ec-disclaimer-link a {
  color: var(--ec-brand);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ec-results-disclaimer .ec-disclaimer-link a:hover,
.ec-results-disclaimer .ec-disclaimer-link a:focus {
  color: var(--ec-brand-dark);
  text-decoration-thickness: 2px;
}

.ec-note--section {
  margin-top: 12px;
  margin-bottom: 0;
}

.ec-score-sub {
  font-size: 0.68rem;
  color: var(--ec-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.ec-earn-label {
  font-size: 0.68rem;
  color: var(--ec-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.ec-disclaimer-link {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 10px 0 0;
}

.ec-disclaimer-link a {
  color: var(--ec-brand);
}

.ec-faq details {
  border: 1px solid var(--ec-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.ec-faq summary {
  min-height: var(--ec-touch);
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--ec-surface);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}

.ec-faq p {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 0.85rem;
  color: var(--ec-muted);
}

.ec-empty {
  text-align: center;
  color: var(--ec-muted);
  padding: 28px 16px;
  font-size: 0.9rem;
}

.ec-note {
  font-size: 0.72rem;
  color: var(--ec-muted);
  margin: 10px 0 0;
}

#resultsSection[hidden] { display: none !important; }

.ec-toast {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%) translateY(80px);
  background: var(--ec-text);
  color: var(--ec-surface);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}

.ec-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media print {
  #platform-header,
  #platform-footer,
  #relatedToolsMount,
  .ec-no-print,
  .ec-lang-switch,
  .ec-selector-card,
  .ec-rankings-card,
  .mn-report-issue { display: none !important; }

  body.platform-body { padding-top: 0 !important; }
  #tool-main { background: #fff !important; }
  .ec-wrap { max-width: 100%; padding: 0; }
  .ec-card { box-shadow: none; break-inside: avoid; }
  #resultsSection { display: block !important; }
  .ec-compare-mobile { display: none !important; }
  .ec-compare-desktop { display: block !important; }
  .ec-table-wrap { max-height: none; overflow: visible; }
  .ec-table th {
    background: #3d85c6 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
