/* TelccFree — Student analytics (compact entry + bilingual dashboard) */

/* ── Compact entry on main B2 page ── */
.telc-weakness-entry-host {
  width: 100%;
  margin-top: 16px;
  box-sizing: border-box;
}

.sa-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  width: 100%;
  min-height: 168px;
  box-sizing: border-box;
  padding: 1.35rem 1.6rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(115deg, #4c1d95 0%, #5b21b6 42%, #2563eb 100%);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(49, 46, 129, 0.28);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.sa-entry--feature .sa-entry__glow {
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 0;
}

.sa-entry--feature .sa-entry__glow::before {
  content: "";
  position: absolute;
  left: -90px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.sa-entry.is-rtl {
  direction: rtl;
  text-align: right;
}

.sa-entry:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.sa-entry:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.sa-entry__copy,
.sa-entry__aside,
.sa-entry__icon,
.sa-entry__cta {
  position: relative;
  z-index: 1;
}

.sa-entry__icon {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sa-entry__icon svg {
  width: 1.85rem;
  height: 1.85rem;
}

.sa-entry__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

.sa-entry__title {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.sa-entry__sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.sa-entry__aside {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 0 auto;
}

.sa-entry__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: #4c1d95;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.sa-entry:hover .sa-entry__cta,
.sa-entry:focus-visible .sa-entry__cta {
  background: #f8fafc;
}

html.dark .sa-entry,
body.dark .sa-entry {
  background: linear-gradient(115deg, #3b0764 0%, #4c1d95 40%, #1d4ed8 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

html.dark .sa-entry:hover,
body.dark .sa-entry:hover {
  filter: brightness(1.08);
}

@media (max-width: 720px) {
  .sa-entry {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 1.2rem 1.15rem 1.25rem;
  }
  .sa-entry__aside {
    justify-content: space-between;
  }
  .sa-entry__cta {
    flex: 1 1 auto;
  }
}

/* ── Overlay shell ── */
.telc-sa-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
}

.telc-sa-overlay.is-open {
  display: block;
}

.telc-sa-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.telc-sa-overlay__sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  overflow: hidden;
}

.telc-sa-overlay__toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  z-index: 2;
}

.sa-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.sa-back-btn:hover,
.sa-back-btn:focus-visible {
  border-color: #cbd5e1;
  background: #f8fafc;
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.telc-sa-overlay__body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 1rem 1.25rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

body.telc-sa-overlay-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .telc-sa-overlay__sheet {
    inset: 2.5vh auto auto 50%;
    transform: translateX(-50%);
    width: min(1080px, 94vw);
    max-height: 95vh;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  }
}

html.dark .telc-sa-overlay__sheet,
body.dark .telc-sa-overlay__sheet {
  background: #0b1220;
  border-color: #1f2937;
}

html.dark .telc-sa-overlay__toolbar,
body.dark .telc-sa-overlay__toolbar,
html.dark .sa-back-btn,
body.dark .sa-back-btn {
  background: #111827;
  border-color: #1f2937;
  color: #f9fafb;
}

/* ── Bilingual helpers ── */
.sa-bi {
  display: inline-flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.sa-bi--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.sa-bi--stack {
  flex-direction: column;
}

.sa-bi__primary {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.sa-bi__secondary {
  font-weight: 500;
  font-size: 0.82em;
  color: #64748b;
  line-height: 1.3;
}

.is-ar-primary .sa-bi.is-ar-primary .sa-bi__primary,
.sa-bi.is-ar-primary .sa-bi__primary {
  font-weight: 700;
}

.is-de-primary .sa-bi.is-de-primary .sa-bi__secondary[lang="ar"],
.sa-bi.is-de-primary .sa-bi__secondary[lang="ar"] {
  font-size: 0.8em;
}

.sa-bi--title .sa-bi__primary {
  font-size: 1.2rem;
}

.sa-bi--meta .sa-bi__primary {
  font-weight: 500;
  font-size: 0.8rem;
  color: #64748b;
}

.sa-bi--score .sa-bi__primary {
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.sa-bi--label .sa-bi__primary {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

/* ── Dashboard layout ── */
.sa-panel--dash {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: #0f172a;
}

.sa-dash-head {
  margin-bottom: 0.85rem;
}

.sa-dash-head .sa-title {
  margin: 0 0 0.3rem;
}

.sa-dash-head .sa-lead {
  margin: 0;
  max-width: 36rem;
}

.sa-dash-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
}

.sa-dash-layout > .sa-summary {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .sa-dash-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 1rem;
  }

  .sa-dash-layout > .sa-summary {
    grid-column: 1 / -1;
  }

  .sa-dash-main {
    grid-column: 1;
    grid-row: 2;
  }

  .sa-dash-side {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 0.25rem;
  }
}

.sa-dash-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Summary cards */
.sa-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.sa-summary__card {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sa-summary__card strong {
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sa-summary__card--strong {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.sa-summary__card--strong strong {
  color: #15803d;
}

.sa-summary__card--need {
  border-color: #fed7aa;
  background: #fff7ed;
}

.sa-summary__card--need strong {
  color: #c2410c;
}

.sa-summary__card--muted {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.sa-summary__card--muted strong {
  color: #475569;
}

.sa-block .sa-h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

/* Rows */
.sa-row {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 0.45rem;
  overflow: hidden;
}

.sa-row--is-weak {
  border-color: #fecaca;
}

.sa-row--is-improve {
  border-color: #fed7aa;
}

.sa-row--is-strong {
  border-color: #bbf7d0;
}

.sa-row--muted {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.sa-row__hit {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

.sa-row__hit.is-static {
  cursor: default;
}

.sa-row__arrow {
  color: #94a3b8;
  font-size: 0.85rem;
  width: 1rem;
  text-align: center;
}

.sa-row__name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
}

.sa-row__meta {
  display: block;
  margin-top: 0.15rem;
}

.sa-row__status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: end;
}

.sa-row--is-weak .sa-row__status .sa-bi__primary {
  color: #b91c1c;
}

.sa-row--is-improve .sa-row__status .sa-bi__primary {
  color: #c2410c;
}

.sa-row--is-strong .sa-row__status .sa-bi__primary {
  color: #15803d;
}

.sa-row__detail {
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.86rem;
  color: #334155;
}

.sa-row__detail p {
  margin: 0.4rem 0 0;
}

.sa-row__cta {
  margin-top: 0.55rem;
}

.sa-row__hint {
  font-size: 0.78rem;
  color: #64748b;
  max-width: 11rem;
}

.sa-mini {
  margin: 0;
}

.sa-note {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
}

.sa-empty-mini {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.sa-empty-mini__hint {
  font-size: 0.8rem;
  color: #64748b;
}

.sa-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  color: #475569;
}

.sa-empty p {
  margin: 0.4rem 0 0;
}

/* Priority card — CTA always pinned */
.sa-priority-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.sa-priority-card--is-weak {
  border-color: #fecaca;
}

.sa-priority-card--is-improve {
  border-color: #fed7aa;
}

.sa-priority-card__scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.85rem 0.9rem 0.5rem;
  min-height: 0;
}

.sa-priority-card__head {
  margin: 0 0 0.45rem;
}

.sa-priority-card__area {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.sa-priority-card__status {
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
}

.sa-priority-card__ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0.25rem 0 0.65rem;
}

.sa-ring {
  width: 88px;
  height: 88px;
}

.sa-ring__track {
  stroke: #e2e8f0;
}

.sa-ring__fill {
  stroke: #ea580c;
}

.sa-priority-card--is-weak .sa-ring__fill {
  stroke: #dc2626;
}

.sa-priority-card--is-strong .sa-ring__fill {
  stroke: #16a34a;
}

.sa-ring__text {
  font-size: 14px;
  font-weight: 800;
  fill: #0f172a;
}

.sa-priority-card__ring-lbl {
  text-align: center;
}

.sa-priority-card__block {
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #334155;
}

.sa-priority-card__block p {
  margin: 0.2rem 0 0;
}

.sa-priority-card__footer {
  flex: 0 0 auto;
  padding: 0.65rem 0.9rem 0.85rem;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

.sa-btn--cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sa-btn--cta .sa-bi__primary {
  color: #fff;
}

.sa-btn--cta .sa-bi__secondary {
  color: rgba(255, 255, 255, 0.82);
}

.sa-btn--cta:hover,
.sa-btn--cta:focus-visible {
  background: #1e293b;
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.sa-settings {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #64748b;
}

.sa-settings summary {
  cursor: pointer;
  font-weight: 600;
}

.sa-reset {
  margin-top: 0.45rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.telc-analytics-focus-pulse {
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.28) !important;
}

@media (max-width: 720px) {
  .sa-summary {
    grid-template-columns: 1fr;
  }

  .sa-row__hit {
    grid-template-columns: minmax(0, 1fr);
  }

  .sa-row__status {
    text-align: start;
  }
}

html.dark .sa-summary__card,
body.dark .sa-summary__card,
html.dark .sa-row,
body.dark .sa-row,
html.dark .sa-priority-card,
body.dark .sa-priority-card,
html.dark .sa-empty-mini,
body.dark .sa-empty-mini,
html.dark .sa-empty,
body.dark .sa-empty {
  background: #111827;
  border-color: #1f2937;
  color: #e5e7eb;
}

html.dark .sa-bi__primary,
body.dark .sa-bi__primary,
html.dark .sa-row__name,
body.dark .sa-row__name,
html.dark .sa-priority-card__area,
body.dark .sa-priority-card__area,
html.dark .sa-ring__text,
body.dark .sa-ring__text {
  color: #f9fafb;
  fill: #f9fafb;
}

html.dark .sa-priority-card__footer,
body.dark .sa-priority-card__footer {
  background: #111827;
  border-color: #1f2937;
}

html.dark .sa-btn--cta,
body.dark .sa-btn--cta {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0f172a;
}

html.dark .sa-btn--cta .sa-bi__primary,
body.dark .sa-btn--cta .sa-bi__primary {
  color: #0f172a;
}

html.dark .sa-btn--cta .sa-bi__secondary,
body.dark .sa-btn--cta .sa-bi__secondary {
  color: #475569;
}

/* ══════════════════════════════════════════════════════════════
   V2 learner analysis — badges, chips, priorities, area cards
   ══════════════════════════════════════════════════════════════ */

.sa-panel--dash {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.sa-panel--dash * {
  overflow-wrap: anywhere;
}

.sa-block {
  min-width: 0;
}

.sa-basis {
  margin: -0.35rem 0 0;
}

/* ── status badge ── */
.sa-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  max-width: 100%;
}

.sa-bi--badge .sa-bi__primary {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.sa-bi--badge .sa-bi__secondary {
  font-size: 0.66rem;
  line-height: 1.2;
}

.sa-badge--is-strong { border-color: #86efac; background: #f0fdf4; }
.sa-badge--is-strong .sa-bi__primary { color: #15803d; }
.sa-badge--is-good { border-color: #bbf7d0; background: #f6fdf9; }
.sa-badge--is-good .sa-bi__primary { color: #166534; }
.sa-badge--is-improve { border-color: #fed7aa; background: #fff7ed; }
.sa-badge--is-improve .sa-bi__primary { color: #c2410c; }
.sa-badge--is-weak { border-color: #fecaca; background: #fef2f2; }
.sa-badge--is-weak .sa-bi__primary { color: #b91c1c; }
.sa-badge--is-muted { border-color: #e2e8f0; background: #f8fafc; }
.sa-badge--is-muted .sa-bi__primary { color: #475569; }

/* ── chips (trend, consistency, confidence) ── */
.sa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  min-width: 0;
}

.sa-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  max-width: 100%;
}

.sa-bi--chip .sa-bi__primary {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.sa-bi--chip .sa-bi__secondary {
  font-size: 0.68rem;
  line-height: 1.2;
}

.sa-chip--is-up { border-color: #86efac; background: #f0fdf4; }
.sa-chip--is-up .sa-bi__primary { color: #15803d; }
.sa-chip--is-flat { border-color: #cbd5e1; background: #f8fafc; }
.sa-chip--is-flat .sa-bi__primary { color: #475569; }
.sa-chip--is-down { border-color: #fecaca; background: #fef2f2; }
.sa-chip--is-down .sa-bi__primary { color: #b91c1c; }

/* ── prose ── */
.sa-prose {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.sa-prose--alt {
  font-size: 0.8rem;
  color: #64748b;
}

.sa-prose--sm {
  font-size: 0.83rem;
}

.sa-note-card {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  color: #475569;
}

/* ── priority ── */
.sa-block--priority .sa-priority-card {
  margin-bottom: 0.6rem;
}

.sa-priority-card--is-good,
.sa-priority-card--is-strong { border-color: #bbf7d0; }
.sa-priority-card--is-muted { border-color: #e2e8f0; }

.sa-priority-card__sample {
  margin: 0.5rem 0 0;
}

.sa-priority-card__ring {
  margin: 0.35rem 0 0;
}

.sa-prio-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sa-prio-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem 0.75rem;
}

.sa-prio-row--is-weak { border-color: #fecaca; }
.sa-prio-row--is-improve { border-color: #fed7aa; }

.sa-prio-row__rank {
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sa-prio-row__body {
  min-width: 0;
}

.sa-prio-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.65rem;
}

.sa-prio-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-top: 0.35rem;
}

.sa-prio-row__cta {
  margin-top: 0.55rem;
}

/* ── area cards (all nine exam parts) ── */
.sa-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.6rem;
}

.sa-area-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem 0.75rem;
  min-width: 0;
}

.sa-area-card--is-strong,
.sa-area-card--is-good { border-color: #bbf7d0; }
.sa-area-card--is-improve { border-color: #fed7aa; }
.sa-area-card--is-weak { border-color: #fecaca; }
.sa-area-card--is-muted { background: #f8fafc; }

.sa-area-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.sa-area-card__name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 0;
}

.sa-area-card__body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.55rem;
  min-width: 0;
}

.sa-area-card__ring {
  flex: 0 0 auto;
}

.sa-area-card__ring .sa-ring {
  width: 68px;
  height: 68px;
}

.sa-area-card__noring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 700;
}

.sa-area-card__facts {
  flex: 1 1 auto;
  margin: 0;
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.sa-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.sa-fact dt {
  min-width: 0;
}

.sa-fact dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sa-area-card__hint {
  margin: 0.45rem 0 0;
}

.sa-area-card__cta {
  margin-top: 0.6rem;
}

/* ── buttons ── */
.sa-btn__arrow {
  margin-inline-start: 0.4rem;
}

.sa-btn--ghost {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sa-btn--ghost:hover,
.sa-btn--ghost:focus-visible {
  background: #f8fafc;
  border-color: #94a3b8;
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

/* ── mobile ── */
@media (max-width: 720px) {
  .sa-area-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sa-prio-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sa-area-card__body {
    gap: 0.6rem;
  }

  .sa-priority-card__area {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .sa-area-card__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .sa-area-card__facts {
    width: 100%;
  }
}

/* ── dark mode ── */
html.dark .sa-note-card,
body.dark .sa-note-card,
html.dark .sa-prio-row,
body.dark .sa-prio-row,
html.dark .sa-area-card,
body.dark .sa-area-card,
html.dark .sa-btn--ghost,
body.dark .sa-btn--ghost {
  background: #111827;
  border-color: #1f2937;
  color: #e5e7eb;
}

html.dark .sa-badge,
body.dark .sa-badge,
html.dark .sa-chip,
body.dark .sa-chip {
  background: #0b1220;
  border-color: #1f2937;
}

html.dark .sa-area-card__name,
body.dark .sa-area-card__name,
html.dark .sa-fact dd,
body.dark .sa-fact dd {
  color: #f9fafb;
}

html.dark .sa-prose,
body.dark .sa-prose,
html.dark .sa-prose--alt,
body.dark .sa-prose--alt {
  color: #cbd5e1;
}

html.dark .sa-prio-row__rank,
body.dark .sa-prio-row__rank {
  background: #f8fafc;
  color: #0f172a;
}

html.dark .sa-area-card__noring,
body.dark .sa-area-card__noring {
  border-color: #1f2937;
}

/* Ring colour follows the performance category on the area cards too. */
.sa-area-card--is-strong .sa-ring__fill,
.sa-area-card--is-good .sa-ring__fill,
.sa-priority-card--is-good .sa-ring__fill {
  stroke: #16a34a;
}

.sa-area-card--is-improve .sa-ring__fill {
  stroke: #ea580c;
}

.sa-area-card--is-weak .sa-ring__fill {
  stroke: #dc2626;
}

.sa-area-card--is-muted .sa-ring__fill {
  stroke: #cbd5e1;
}
