:root {
  color-scheme: light;
  --ink: #14201b;
  --muted: #66736d;
  --paper: #ffffff;
  --background: #f3f5f1;
  --line: #dfe5df;
  --green: #176b4d;
  --green-dark: #0f513a;
  --green-soft: #e7f4ed;
  --red: #a33a32;
  --red-soft: #faece9;
  --amber: #8a5d0a;
  --amber-soft: #fff3d7;
  --purple: #6542a5;
  --purple-soft: #f0eafd;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }

.hidden { display: none !important; }

.news-ticker {
  overflow: hidden;
  color: #fff;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.news-ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  padding: 8px 0;
  animation: ticker-scroll 24s linear infinite;
}

.news-ticker span {
  padding-left: 100vw;
  padding-right: 40px;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 750;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker-track {
    width: auto;
    animation: none;
  }

  .news-ticker span {
    padding: 8px 14px;
    white-space: normal;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--green);
  border-radius: 12px;
  font-weight: 800;
}

.brand-title {
  margin: 0;
  font-size: 1rem;
  line-height: .98;
  letter-spacing: -.02em;
  font-weight: 800;
}
.topbar .eyebrow { margin-bottom: 2px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topnav a, .site-footer a {
  color: var(--green-dark);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.topnav a:hover, .site-footer a:hover {
  text-decoration: underline;
}

.auth-area { position: relative; display: flex; align-items: center; gap: 10px; margin-left: 0; }
.google-login-button, .auth-logout-button { border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-size: .86rem; font-weight: 750; }
.google-login-button { color: #fff; background: var(--green); border-color: var(--green); }
.google-login-button:hover { background: var(--green-dark); }
.auth-login-link { color: var(--green-dark); font-size: .86rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.auth-login-link:hover { text-decoration: underline; }
.auth-logout-button { color: var(--green-dark); background: #fff; }
.auth-user { position: relative; display: flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: .86rem; font-weight: 750; cursor: pointer; }
.auth-user > .auth-greeting, .auth-user > #authUserEmail, .auth-user > #authHeaderUserEmail { display: none; }
.auth-user > .auth-avatar { width: 28px; height: 28px; font-size: .72rem; }
.auth-message { margin: 0; color: var(--red); font-size: .8rem; }
.auth-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; display: none; min-width: 150px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px rgba(15, 42, 31, .14); cursor: default; }
.auth-dropdown.open { display: grid; gap: 2px; }
.auth-dropdown a, .auth-dropdown button { display: block; width: 100%; padding: 9px 10px; color: var(--green-dark); background: transparent; border: 0; border-radius: 8px; font: inherit; font-size: .86rem; text-align: left; text-decoration: none; }
.auth-dropdown a:hover, .auth-dropdown button:hover { background: var(--green-soft); }
.auth-avatar, .account-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 800;
}
.account-shell { width: min(860px, 100%); margin: 0 auto; }
.account-shell[hidden] { display: none; }
.account-card { padding: clamp(24px, 5vw, 48px); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 48px rgba(15, 42, 31, .08); }
.account-intro { max-width: 62ch; color: var(--muted); }
.account-tabs { display: flex; gap: 4px; margin-top: 26px; padding: 5px; overflow-x: auto; background: #f1f4f1; border: 1px solid var(--line); border-radius: 14px; scrollbar-width: thin; }
.account-tabs button { flex: 1 0 auto; min-height: 42px; padding: 9px 13px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: .9rem; font-weight: 800; white-space: nowrap; }
.account-tabs button[aria-selected="true"] { color: var(--green-dark); background: #fff; border-color: #cfe2d8; box-shadow: 0 2px 8px rgba(15, 42, 31, .08); }
.account-tabs button:focus-visible { outline: 3px solid #8ac5a6; outline-offset: 2px; }
.account-tab-panel { min-height: 260px; padding-top: 28px; }
.account-tab-panel[hidden] { display: none; }
.account-identity { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.account-name { margin: 0; font-size: 1.3rem; }
.account-email { margin: 4px 0 0; color: var(--muted); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.account-actions a, .account-actions button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--green-dark); background: #fff; font-weight: 750; text-decoration: none; cursor: pointer; }
.account-actions .primary { color: #fff; background: var(--green); border-color: var(--green); }
.account-status { margin-top: 18px; color: var(--muted); }
.my-works { margin: 0; }
.my-works h2 { margin: 0 0 6px; font-size: 1.3rem; }
.my-works-help { margin: 0 0 18px; color: var(--muted); }
.my-work-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.my-work-card h3 { margin: 0 0 6px; color: var(--green-dark); font-size: 1rem; }
.my-work-card p { margin: 3px 0; color: var(--muted); font-size: .9rem; }
.my-work-card .primary { flex: 0 0 auto; padding: 9px 13px; color: #fff; background: var(--green); border: 1px solid var(--green); border-radius: 9px; font: inherit; font-weight: 750; cursor: pointer; }
.my-work-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.my-work-delete { padding: 9px 10px; color: #a4362d; background: transparent; border: 1px solid #e9c8c3; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
.my-work-delete:hover { background: #fff2ef; }
.account-danger-zone { margin-top: 44px; padding: 22px; border: 1px solid #efd8d4; border-radius: 16px; background: #fffafa; }
.account-danger-zone h2 { margin: 4px 0 12px; color: #7f2923; font-size: 1.15rem; }
.account-danger-zone p { max-width: 64ch; margin: 0 0 16px; color: var(--muted); }
.account-delete-button { padding: 10px 14px; color: #8f2f28; background: #fff; border: 1px solid #dca8a2; border-radius: 10px; font: inherit; font-weight: 750; cursor: pointer; }
.account-delete-button:hover { background: #fff2ef; }
.account-delete-button:disabled, .share-modal-button:disabled, .share-modal-close:disabled { cursor: wait; opacity: .62; }
.account-status.error { color: #9c3028; }
.compass-ranking-feature { display: grid; gap: 5px; min-width: min(100%, 285px); }
.compass-ranking-feature p { margin: 0; font-size: .84rem; line-height: 1.35; }
.compass-ranking-feature .text-button { justify-self: start; padding: 3px 0; font-weight: 750; }
.compass-ranking-feature .primary-button { margin-top: 0; }
.compass-ranking-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  color: var(--green-dark);
  background: #f3faf6;
  border-bottom: 1px solid #d8e9df;
  font-size: .86rem;
  font-weight: 750;
}
.compass-ranking-summary .text-button { flex: 0 0 auto; padding: 4px 0; }
.compass-account { margin: 0; }
.compass-feature-card { padding: clamp(20px, 4vw, 30px); background: #f8fcfa; border: 1px solid #cfe2d8; border-radius: 18px; }
.compass-account h2 { max-width: 28ch; margin: 6px 0 8px; color: var(--green-dark); font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -.03em; }
.compass-intro { max-width: 56ch; margin: 0; color: var(--muted); }
.compass-summary { margin: 16px 0; color: var(--green-dark); }
.compass-summary p { margin: 0; color: var(--muted); }
.compass-summary ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.compass-guarantees { display: grid; gap: 5px; margin: 18px 0 0; padding: 0; color: var(--green-dark); list-style: none; font-size: .88rem; }
.compass-modal-card { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.compass-modal-card h3 { margin: 22px 0 10px; font-size: 1.15rem; }
.compass-modal-card h3:first-child { margin-top: 0; }
.compass-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.compass-options label, .compass-choice-cards label { cursor: pointer; }
.compass-options label { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; }
.compass-options label:has(input:checked), .compass-choice-cards label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.compass-choice-cards { display: grid; gap: 10px; margin-top: 18px; }
.compass-choice-cards label { display: grid; gap: 4px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.compass-choice-cards input { align-self: start; }
.compass-choice-cards strong { color: var(--green-dark); }
.compass-choice-cards span, .compass-note { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.compass-wizard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.compass-wizard-actions .secondary-button { margin-right: 0; }
.compass-targets { margin-top: 18px; }
.compass-targets h3 { margin: 22px 0 8px; }
.compass-targets label { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 750; }
.compass-targets input { width: 100%; padding: 10px 12px; color: var(--ink); border: 1px solid #ccd7d0; border-radius: 10px; background: #fff; }
.compass-search-results { display: grid; gap: 7px; margin-top: 8px; }
.compass-search-results div { display: flex; gap: 6px; padding: 6px; background: #f8faf7; border: 1px solid var(--line); border-radius: 10px; }
.compass-search-results button { padding: 7px 9px; color: var(--green-dark); background: transparent; border: 0; border-radius: 8px; text-align: left; font: inherit; font-size: .86rem; font-weight: 700; }
.compass-search-results button:first-child { flex: 1; }
.compass-search-results button:hover { background: var(--green-soft); }
.compass-search-results p { margin: 0; color: var(--muted); font-size: .88rem; }
.compass-target-list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.compass-target-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; }
.compass-target-list .empty { color: var(--muted); }
.compass-target-list span { color: var(--muted); }
.compass-target-list button { margin-left: auto; padding: 4px 7px; color: #8f2f28; background: transparent; border: 1px solid #e1b9b4; border-radius: 7px; font: inherit; font-size: .78rem; font-weight: 750; }
@media (max-width: 560px) { .my-work-card { align-items: flex-start; flex-direction: column; } }

main {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(30px, 6vw, 92px);
  min-height: 410px;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.hero h1 {
  max-width: 760px;
  margin: 8px 0 18px;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.teacher-note {
  max-width: 680px;
  margin: 18px 0 0;
  padding: 14px 16px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #cfe5d8;
  border-radius: 14px;
  line-height: 1.55;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0;
}

.trust-stats div {
  padding: 12px 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 42, 31, .05);
}

.trust-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
}

.trust-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.stats-card {
  padding: 20px;
  text-align: center;
}

.stats-card .trust-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto;
}

.stats-card .trust-stats div {
  box-shadow: none;
}

.stats-eyebrow {
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 42px 28px;
  text-align: center;
  background: var(--paper);
  border: 2px dashed #b8c8be;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(24, 56, 42, .08);
  transition: .18s ease;
}

.drop-zone.dragging {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-2px);
}

.drop-zone span, .drop-zone small { color: var(--muted); }
.drop-zone a { color: var(--green-dark); font-weight: 750; }
.drop-zone small { margin-top: 8px; }
.latest-calls-panel {
  margin: 18px 0 24px;
  padding: 16px;
  border: 1px solid #cfe2d8;
  border-radius: 18px;
  background: #f8fcfa;
}
.latest-calls-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.latest-calls-heading strong,
.latest-calls-heading small,
.latest-call-content strong,
.latest-call-content small { display: block; }
.latest-calls-heading small,
.latest-call-content small,
.latest-calls-loading { color: var(--muted); }
.latest-calls-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.latest-call-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dce9e2;
  border-radius: 13px;
  background: #fff;
}
.latest-call-card.is-pending { background: #f7f8f7; }
.latest-call-icon { font-size: 1.25rem; }
.latest-call-content { min-width: 0; }
.latest-call-open {
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.latest-call-open:hover { background: var(--green-dark); }

#mainSponsorSlot:empty, #specialtySponsorSlot:empty { display: none; }
.sponsor-card {
  display: block;
  width: 100%;
  margin: 18px 0 24px;
  padding: 20px 22px;
  text-align: center;
  border: 1px solid #b8d8c5;
  border-top: 3px solid var(--green);
  border-radius: 18px;
  background: #f1f9f4;
  box-shadow: 0 8px 24px rgba(30, 83, 54, .07);
}
.sponsor-card-specialty { margin-top: 18px; }
.sponsor-card-content { max-width: 720px; margin: 0 auto; }
.sponsor-label {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.sponsor-name, .sponsor-title, .sponsor-description { display: block; }
.sponsor-name { color: var(--ink); font-size: 1.32rem; font-weight: 750; }
.sponsor-title { margin: 3px 0 0; font-size: 1.08rem; font-weight: 650; }
.sponsor-description { margin: 5px 0 0; color: var(--muted); font-size: 1rem; }
.sponsor-cta { display: inline-flex; margin-top: 10px; white-space: nowrap; }
.sponsor-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 35, 25, .72);
}
.sponsor-modal-card {
  position: relative;
  display: flex;
  max-width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  padding: 20px;
  overflow: auto;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: var(--paper);
}
.sponsor-modal-title { align-self: flex-start; margin: 0 48px 0 0; font-size: 1.15rem; }
.sponsor-modal-image { display: block; max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.sponsor-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.sponsor-modal-open { overflow: hidden; }
.upload-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 18px;
  font-weight: 900;
}

.primary-button, .secondary-button, .text-button {
  border: 0;
  border-radius: 10px;
  font-weight: 750;
}
.primary-button {
  margin-top: 10px;
  padding: 12px 18px;
  color: white;
  background: var(--green);
}
.primary-button:hover { background: var(--green-dark); }
.secondary-button {
  padding: 10px 14px;
  color: var(--green-dark);
  background: var(--green-soft);
}
.text-button { padding: 8px; color: var(--green); background: transparent; }
.mini-button {
  padding: 6px 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 0;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 750;
}
.mini-button:hover { background: #d8ecdf; }
.mini-button:disabled { cursor: not-allowed; opacity: .45; }
.mini-button.danger { color: var(--red); background: var(--red-soft); }
.order-input {
  width: 64px;
  min-height: 38px;
  padding: 7px 8px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}
.vacancy-note-cell { min-width: 220px; }
.vacancy-note-input {
  width: 100%;
  min-width: 190px;
  min-height: 60px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  font: inherit;
  font-size: .82rem;
  line-height: 1.35;
}
.vacancy-note-input:focus {
  border-color: var(--green);
  outline: 2px solid rgba(20, 122, 86, .15);
}
.vacancy-note-cell small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
}

.status-panel, .error-panel, .warning-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  margin: 26px 0;
  border-radius: 14px;
}
.status-panel { background: var(--paper); border: 1px solid var(--line); }
.status-panel p, .error-panel p { margin: 4px 0 0; color: var(--muted); }
.error-panel { display: block; color: var(--red); background: var(--red-soft); border: 1px solid #efc9c4; }
.error-panel .error-support { margin-top: 10px; }
.error-panel .error-support a { color: var(--green-dark); font-weight: 800; }
.warning-panel { color: var(--amber); background: var(--amber-soft); }
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--green-soft);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.results { scroll-margin-top: 20px; }
.results-heading, .section-heading, .table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.results-heading h2 { margin: 5px 0 0; font-size: clamp(1.6rem, 3vw, 2.5rem); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.summary-grid article {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.summary-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .82rem; }
.summary-grid strong { font-size: 1.55rem; }

.filters-card, .table-card {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(30, 53, 43, .035);
}
.filters-card { padding: 22px; }
.section-heading h3, .table-heading h3 { margin: 4px 0 0; font-size: 1.25rem; }
.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.filters-grid label, .sort-control { display: flex; flex-direction: column; gap: 7px; }
.filters-grid label > span, .sort-control > span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
}
.specialty-filter-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}
.specialty-filter-group > small {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.3;
}
.specialty-add-button {
  align-self: flex-start;
  padding: 2px 0;
  color: var(--green);
  background: transparent;
  border: 0;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}
.specialty-add-button:hover { text-decoration: underline; }
.specialty-add-button:disabled {
  cursor: not-allowed;
  opacity: .5;
  text-decoration: none;
}
.field-title {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
}
.primary-button:disabled { cursor: not-allowed; opacity: .65; }
.filters-grid select, .filters-grid input, .sort-control select {
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.filters-grid .checkbox-filter {
  align-self: end;
  min-height: 42px;
  padding: 9px 11px;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  background: var(--green-soft);
  border: 1px solid #cfe5d8;
  border-radius: 9px;
  cursor: pointer;
}
.filters-grid .checkbox-filter input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.filters-grid .checkbox-filter > span {
  color: var(--green-dark);
  font-size: .82rem;
  line-height: 1.25;
}
.search-label { grid-column: span 2; }
.quick-origin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}
.quick-origin-buttons button {
  padding: 7px 10px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  background: var(--green-soft);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.quick-origin-buttons button:hover { background: #d8ecdf; }
.quick-origin-buttons button.is-selected {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.quick-origin-zones {
  margin-top: 10px;
}
.quick-origin-zones-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.table-heading { padding: 19px 22px; border-bottom: 1px solid var(--line); }
.table-heading p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.table-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.my-list-actions { max-width: 760px; }
.destructive-text-button { color: var(--red); }
.remote-work-save-help {
  flex: 1 0 100%;
  max-width: 620px;
  margin-left: auto !important;
  text-align: right;
}
.my-list-search { width: min(100%, 320px); }
.my-list-search label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
.my-list-search input { width: 100%; }
.sort-control { min-width: 210px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 1450px; border-collapse: collapse; }
th {
  position: sticky;
  top: 0;
  padding: 12px 14px;
  color: var(--muted);
  background: #f8faf7;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .72rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}
td {
  max-width: 330px;
  padding: 14px;
  border-bottom: 1px solid #edf0ec;
  vertical-align: top;
  font-size: .86rem;
  line-height: 1.45;
}
tbody tr:hover { background: #fbfcfa; }
td small { display: block; margin-top: 4px; color: var(--muted); }
.page-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.requirement { max-width: 290px; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.tag {
  display: inline-flex;
  padding: 4px 7px;
  margin-bottom: 5px;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 800;
}
.tag.red { color: var(--red); background: var(--red-soft); }
.tag.amber { color: var(--amber); background: var(--amber-soft); }
.tag.purple { color: var(--purple); background: var(--purple-soft); }
.tag.green { color: var(--green-dark); background: var(--green-soft); }
.action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 210px;
}
.compass-explanation-control { flex: 1 0 100%; margin-top: 2px; }
.compass-why-button {
  padding: 4px 0;
  color: var(--green-dark);
  font-size: .76rem;
  text-align: left;
}
.compass-explanation-card {
  width: min(330px, calc(100vw - 48px));
  margin-top: 6px;
  padding: 12px;
  color: var(--ink);
  background: #f8fcfa;
  border: 1px solid #cfe2d8;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 42, 31, .08);
}
.compass-explanation-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.compass-explanation-heading strong { color: var(--green-dark); font-size: .82rem; }
.compass-explanation-close { padding: 0 3px; color: var(--muted); background: transparent; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.compass-explanation-card ul { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.compass-explanation-card li { font-size: .8rem; line-height: 1.4; }
.row-warning { margin-top: 6px; color: var(--red); font-size: .76rem; font-weight: 700; }
.empty-state { padding: 40px 20px; color: var(--muted); text-align: center; }
.disclaimer { margin: 20px auto 0; max-width: 900px; color: var(--muted); text-align: center; font-size: .8rem; }

.info-card {
  margin-top: 22px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(30, 53, 43, .035);
}
.info-card h2 {
  max-width: 760px;
  margin: 6px 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.info-card p { color: var(--muted); line-height: 1.6; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.info-grid article {
  padding: 18px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.info-grid strong { display: block; margin-bottom: 8px; }
.info-grid p { margin: 0; }

.tutorial-video {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 380px);
  gap: 16px;
  align-items: center;
  max-width: 920px;
  margin-top: 20px;
  padding: 14px;
  background: #f6faf7;
  border: 1px solid #dbece2;
  border-radius: 16px;
}

.tutorial-video strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.tutorial-video p {
  margin: 0;
}

.tutorial-video a {
  display: inline-block;
  margin-top: 10px;
  color: var(--green-dark);
  font-weight: 850;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f1f18;
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(15, 42, 31, .14);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-card { scroll-margin-top: 24px; }
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.contact-actions a { text-decoration: none; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.site-footer p {
  max-width: 760px;
  margin: 0;
  font-size: .82rem;
}
.site-footer .footer-copyright {
  flex: 0 0 100%;
  max-width: none;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .74rem;
}
.footer-links {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}
.footer-main-links { font-weight: 700; }
.footer-legal-links {
  font-size: .76rem;
  opacity: .78;
}

.legal-page {
  max-width: 850px;
  padding: 56px 20px;
}
.legal-page a {
  color: var(--green-dark);
  font-weight: 750;
  text-decoration: none;
}
.legal-page h1 {
  margin: 24px 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.04em;
}
.legal-page p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.content-page {
  max-width: 940px;
  padding: 54px 0 72px;
}
.content-page h1 {
  max-width: 880px;
  margin: 10px 0 18px;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.content-page h2 {
  margin: 36px 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -.025em;
}
.content-page p,
.content-page li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}
.content-page a {
  color: var(--green-dark);
  font-weight: 750;
}
.lead {
  max-width: 860px;
  margin: 0 0 22px;
  font-size: 1.12rem !important;
}
.content-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 34px;
}
.content-cta a { text-decoration: none; }
.support-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 12px;
}
.support-actions-single {
  grid-template-columns: minmax(240px, 560px);
}
.support-button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 12px 16px;
  color: white !important;
  background: var(--green);
  border-radius: 14px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.support-button-large {
  min-height: 74px;
  justify-items: center;
  font-size: 1.04rem;
}
.support-button small {
  display: block;
  opacity: .85;
  font-size: .82rem;
  font-weight: 750;
}
.support-button:hover { background: var(--green-dark); }
.support-button.disabled {
  color: var(--muted) !important;
  background: #eef2ed;
  cursor: not-allowed;
}
.content-list {
  padding-left: 1.3rem;
}
.notice-box {
  padding: 20px 22px;
  margin-top: 34px;
  background: var(--green-soft);
  border: 1px solid #cfe5d8;
  border-radius: 16px;
}
.notice-box h2 { margin-top: 0; }
.notice-box p { margin-bottom: 0; color: var(--green-dark); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.guide-card {
  display: block;
  padding: 20px;
  color: var(--ink) !important;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(30, 53, 43, .035);
}
.guide-card:hover {
  border-color: #b8c8be;
  transform: translateY(-1px);
}
.guide-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.guide-card span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}
.faq-block {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.faq-block h2 {
  margin-top: 30px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(680px, calc(100% - 36px));
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(24, 56, 42, .18);
}
.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-actions .primary-button { margin-top: 0; }

.page-jump-buttons {
  position: fixed;
  right: 76px;
  bottom: 16px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-jump-buttons button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(24, 56, 42, .22);
  font-size: 1.25rem;
  font-weight: 900;
}
.page-jump-buttons button:hover { background: var(--green-dark); }

.floating-my-list-button {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 18;
  min-height: 46px;
  max-width: calc(100vw - 180px);
  padding: 11px 17px;
  overflow: hidden;
  color: white;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(24, 56, 42, .22);
  font-size: .9rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.floating-my-list-button:hover { background: var(--green-dark); }

.share-rail {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 17;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.share-rail.open {
  display: flex;
}

.share-button,
.share-fab {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(24, 56, 42, .18);
  font-weight: 900;
  text-decoration: none;
}

.share-button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.share-button.whatsapp { background: #25d366; }
.share-button.telegram { background: #229ed9; }
.share-button.facebook { background: #1877f2; }
.share-button.copy { color: var(--ink); background: var(--paper); }
.share-button:hover,
.share-fab:hover {
  transform: translateY(-1px);
}

.share-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 19;
  display: grid;
  background: #e60012;
  font-size: 1.25rem;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 32, 27, .58);
}

.share-modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 30px;
  background: var(--paper);
  border-top: 4px solid var(--green);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.share-modal-card h2 {
  margin: 0 44px 10px 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -.035em;
}

.share-modal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.share-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.share-modal-close:hover { background: #f0f3ef; }

.share-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.share-modal-button {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 12px 16px;
  color: white;
  border: 0;
  border-radius: 14px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.share-modal-button.whatsapp { grid-column: 1 / -1; background: #25d366; }
.share-modal-button.telegram { background: #229ed9; }
.share-modal-button.copy { color: var(--ink); background: #f4f1ec; }
.share-modal-button.support { grid-column: 1 / -1; background: var(--green); }
.share-modal-button.danger { background: #a4362d; }
.delete-work-actions { grid-template-columns: 1fr 1fr; }
.delete-account-actions { grid-template-columns: 1fr 1fr; }
.support-modal-actions { grid-template-columns: 1fr; }

/* Estadísticas: vista previa del taller. */
.statistics-page {
  width: min(1180px, calc(100% - 32px));
}

.statistics-intro {
  max-width: 800px;
  margin-bottom: 26px;
}

.statistics-intro h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.statistics-demo-notice {
  margin-bottom: 22px;
  padding: 16px 18px;
  color: #684900;
  background: var(--amber-soft);
  border: 1px solid #ead49b;
  border-radius: 16px;
}

.statistics-demo-notice p {
  margin: 5px 0 0;
  line-height: 1.5;
}

.statistics-controls,
.statistics-panel,
.statistics-method-note {
  margin-top: 20px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(15, 42, 31, .05);
}

.statistics-controls .section-heading {
  align-items: center;
  margin-bottom: 22px;
}

.statistics-controls h2,
.statistics-panel h2,
.statistics-dashboard-heading h2 {
  margin: 4px 0 0;
  letter-spacing: -.035em;
}

.statistics-course-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #cfe5d8;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
}

.statistics-group-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.statistics-group-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 18px 20px;
  color: var(--ink);
  background: #f8faf7;
  border: 2px solid var(--line);
  border-radius: 18px;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.statistics-group-button:hover {
  border-color: #a9cfba;
  transform: translateY(-1px);
}

.statistics-group-button.active {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: var(--green);
}

.statistics-group-icon { font-size: 1.75rem; }
.statistics-group-button strong { font-size: 1.05rem; }

.statistics-filter-steps {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(300px, 1.3fr);
  gap: 16px;
  max-width: 900px;
  margin-top: 20px;
}

.statistics-specialty-control {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.statistics-specialty-control .eyebrow { margin-bottom: -2px; }

.statistics-specialty-control select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #ccd7d0;
  border-radius: 12px;
}

.statistics-dashboard { margin-top: 30px; }
.statistics-dashboard-heading,
.statistics-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.statistics-context {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.statistics-heading-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.statistics-share-button {
  cursor: pointer;
  white-space: nowrap;
}

.statistics-share-status {
  min-height: 18px;
  color: var(--muted);
  font-size: .78rem;
  text-align: right;
}

.statistics-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.statistics-kpi {
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.statistics-kpi span {
  display: block;
  min-height: 42px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.statistics-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -.04em;
}

.statistics-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  color: var(--muted);
  font-size: .8rem;
}

.statistics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.statistics-legend i { width: 10px; height: 10px; border-radius: 999px; }
.statistics-legend .mandatory,
.statistics-bar-group .mandatory { background: #cf594f; }
.statistics-legend .voluntary,
.statistics-bar-group .voluntary { background: #e9b94c; }
.statistics-legend .unknown,
.statistics-bar-group .unknown { background: #cbd2cd; }

.statistics-chart {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.statistics-chart-row { display: grid; gap: 8px; }
.statistics-chart-label { display: flex; justify-content: space-between; gap: 18px; }
.statistics-chart-label span { color: var(--muted); font-size: .88rem; }
.statistics-bar-track {
  width: 100%;
  height: 20px;
  overflow: hidden;
  background: #edf0ed;
  border-radius: 999px;
}
.statistics-bar-group { display: flex; min-width: 2px; height: 100%; overflow: hidden; border-radius: inherit; }
.statistics-bar-group span { height: 100%; }

.statistics-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
}

.statistics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.statistics-table th,
.statistics-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.statistics-table th {
  color: var(--muted);
  background: #f8faf7;
  font-size: .78rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.statistics-table tbody tr:last-child td { border-bottom: 0; }
.statistics-table-note { margin: 14px 0 0; color: var(--muted); font-size: .88rem; }

.statistics-method-note {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #cfe5d8;
}
.statistics-method-note p { margin: 6px 0 0; line-height: 1.55; }

.statistics-explainer {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
}

.statistics-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.statistics-explainer-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.statistics-explainer-grid h3 { margin: 0 0 8px; font-size: 1rem; }
.statistics-explainer-grid p { margin: 0; line-height: 1.55; color: var(--muted); }

.statistics-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: clamp(22px, 4vw, 36px);
  color: white;
  background: var(--green-dark);
  border-radius: 22px;
}

.statistics-cta h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -.04em;
}

.statistics-cta p { max-width: 720px; margin: 0; line-height: 1.55; }
.statistics-cta .eyebrow { color: #bfe5d1; }
.statistics-cta-button {
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--green-dark);
  background: white;
  text-decoration: none;
  white-space: nowrap;
}
.statistics-cta-button:hover { color: white; background: var(--green); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .trust-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-card .trust-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-grid { grid-template-columns: repeat(2, 1fr); }
  .search-label { grid-column: span 2; }
  .info-grid { grid-template-columns: 1fr; }
  .tutorial-video { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .support-actions { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer .footer-copyright { width: 100%; text-align: left; }
  .footer-links { justify-items: start; }
  .site-footer nav { justify-content: flex-start; }
  .cookie-banner { align-items: flex-start; flex-direction: column; }
  .statistics-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statistics-cta { align-items: flex-start; flex-direction: column; }
  .statistics-explainer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  main { width: min(100% - 20px, 1500px); padding-top: 28px; }
  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px;
  }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand-title { font-size: .9rem; }
  .nav-menu {
    position: relative;
    margin-left: auto;
  }
  .nav-toggle {
    display: block;
    padding: 9px 12px;
    color: var(--green-dark);
    background: var(--green-soft);
    border: 1px solid #cfe5d8;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 850;
    cursor: pointer;
  }
  .topnav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: none;
    width: min(220px, calc(100vw - 24px));
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(15, 42, 31, .14);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-menu.open .topnav { display: flex; }
  .topnav a {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .86rem;
  }
  .topnav a:hover {
    background: var(--green-soft);
    text-decoration: none;
  }
  .auth-area { width: 100%; margin: 10px 0 0; flex-wrap: wrap; }
  .hero h1 { font-size: 2.25rem; }
  .trust-stats { grid-template-columns: 1fr; }
  .stats-card .trust-stats { grid-template-columns: 1fr; }
  .drop-zone { padding: 30px 18px; }
  .latest-calls-list { grid-template-columns: 1fr; }
  .latest-call-card { grid-template-columns: auto minmax(0, 1fr); }
  .latest-call-open { grid-column: 1 / -1; width: 100%; }
  .sponsor-card { padding: 18px 16px; }
  .sponsor-card-content { max-width: none; }
  .sponsor-cta { width: 100%; }
  .sponsor-modal { padding: 10px; }
  .sponsor-modal-card { max-height: calc(100vh - 20px); padding: 16px; }
  .summary-grid, .filters-grid { grid-template-columns: 1fr; }
  .search-label { grid-column: auto; }
  .quick-origin-buttons button {
    flex: 1 1 120px;
    padding-inline: 8px;
  }
  .results-heading, .section-heading, .table-heading { align-items: flex-start; flex-direction: column; }
  .sort-control { width: 100%; }
  .my-list-actions { width: 100%; align-items: stretch; }
  .my-list-actions > button, .my-list-actions .compass-ranking-feature { width: 100%; }
  .my-list-actions .primary-button, .my-list-actions .secondary-button { width: 100%; }
  .compass-ranking-summary { align-items: flex-start; padding-inline: 16px; }
  .compass-explanation-card { width: min(300px, calc(100vw - 52px)); box-shadow: none; }
  .my-list-search { width: 100%; }
  .page-jump-buttons { right: 74px; bottom: 18px; }
  .page-jump-buttons button { width: 42px; height: 42px; }
  .floating-my-list-button {
    left: 12px;
    bottom: 18px;
    min-height: 42px;
    max-width: calc(100vw - 150px);
    padding: 9px 14px;
    font-size: .84rem;
  }
  .share-rail { right: 14px; bottom: 72px; }
  .share-modal-card { padding: 24px; }
  .account-tabs { margin-inline: -4px; }
  .account-tabs button { flex-basis: auto; padding-inline: 12px; }
  .account-tab-panel { min-height: 220px; }
  .compass-options { grid-template-columns: 1fr; }
  .compass-wizard-actions { justify-content: stretch; }
  .compass-wizard-actions button { flex: 1 1 42%; }
  .share-modal-actions { grid-template-columns: 1fr; }
  .share-modal-button.whatsapp { grid-column: auto; }
  .statistics-page { width: min(100% - 20px, 1180px); }
  .statistics-group-selector,
  .statistics-filter-steps,
  .statistics-kpis { grid-template-columns: 1fr; }
  .statistics-group-button { min-height: 70px; }
  .statistics-dashboard-heading,
  .statistics-panel-heading { align-items: flex-start; flex-direction: column; }
  .statistics-context { text-align: left; }
  .statistics-heading-actions { width: 100%; justify-items: start; }
  .statistics-share-button { width: 100%; }
  .statistics-share-status { text-align: left; }
  .statistics-kpi { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
  .statistics-kpi span { min-height: 0; }
  .statistics-kpi strong { margin-top: 0; font-size: 1.65rem; }
  .statistics-chart-label { align-items: flex-start; flex-direction: column; gap: 2px; }
  .statistics-cta-button { width: 100%; text-align: center; }
}
