.a1-route,
.a1-lesson {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 18px;
  color: #172033;
}
.a1-route-summary,
.a1-flow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0;
}
.a1-module {
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 18px;
  padding: 16px;
  margin: 16px 0;
}
.a1-module-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.a1-module-head > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #edf4ff;
  color: #1769e0;
  font-weight: 800;
}
.a1-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.a1-topic-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  border: 1px solid #d9e2f0;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  color: #172033;
  min-height: 142px;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.a1-topic-card.ready {
  border-color: #7fb1ff;
  background: #f7fbff;
}
.a1-topic-card.ready:hover {
  transform: translateY(-2px);
  border-color: #1677ff;
  box-shadow: 0 8px 24px rgba(23, 105, 224, 0.12);
}
.a1-topic-card.done {
  border-color: #8fd0a1;
  background: #f6fff8;
}
.a1-topic-card.planned,
.a1-topic-card.locked {
  opacity: 0.62;
  cursor: not-allowed;
}
.a1-topic-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #edf4ff;
  font-size: 1.55rem;
}
.a1-topic-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.a1-topic-copy strong {
  font-size: 1.08rem;
  color: #172033;
}
.a1-topic-description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #526174;
}
.a1-topic-card small {
  margin-top: auto;
  color: #1769e0;
  font-weight: 800;
}
.a1-topic-card.locked small {
  color: #667085;
}
.a1-future-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 9px;
}
.a1-future-module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e7ef;
  border-radius: 12px;
  padding: 10px 12px;
}
.a1-future-module > span {
  grid-row: 1/3;
  color: #98a2b3;
  font-weight: 800;
}
.a1-future-module small {
  color: #98a2b3;
}
.a1-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px 0 18px;
}
.a1-stepper-seven {
  grid-template-columns: repeat(7, 1fr);
}
.a1-stepper span {
  min-height: 38px;
  border-radius: 10px;
  background: #eef2f7;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px 6px;
  color: #667085;
  border: 1px solid #dfe6ef;
}
.a1-stepper span.active {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}
.a1-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1769e0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.a1-back {
  margin-bottom: 10px;
}
.a1-goal {
  background: #edf6ff;
  border-left: 4px solid #1677ff;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
}
.a1-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.a1-rule-grid article,
.a1-review-card {
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 14px;
  padding: 14px;
}
.a1-rule-grid h3,
.a1-review-card h3 {
  margin: 0 0 6px;
}
.a1-rule-grid p,
.a1-review-card p {
  margin: 0;
  white-space: pre-line;
}
.a1-review-card {
  margin: 10px 0;
}
.a1-review-card small {
  color: #a35400;
}
.a1-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.a1-example {
  border: 1px solid #dce5f2;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  opacity: 1;
}
.a1-example strong {
  display: block !important;
  font-size: 1.1rem;
  font-weight: 800;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.a1-example small {
  display: block !important;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.a1-main {
  margin-top: 18px;
}
.a1-question-card,
.a1-result {
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 18px;
  padding: 22px;
}
.a1-counter {
  font-size: 0.85rem;
  color: #667085;
  margin-bottom: 8px;
}
.a1-options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.a1-options button,
.a1-options .a1-option {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #ccd8ea;
  background: #fff;
  color: #172033 !important;
  border-radius: 12px;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 1;
  cursor: pointer;
  -webkit-text-fill-color: #172033;
}
.a1-options button:hover,
.a1-options .a1-option:hover {
  border-color: #1677ff;
  background: #f6faff;
}
.a1-options button:disabled,
.a1-options .a1-option:disabled {
  cursor: default;
  opacity: 1;
}
.a1-score {
  font-size: 3rem;
  font-weight: 900;
  color: #1769e0;
}
.a1-weak-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.a1-weak-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4e5;
  border: 1px solid #ffd79c;
}
.a1-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.a1-special {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid #dfe6f2;
  border-radius: 20px;
  background: #fbfcff;
}
.a1-special > h2 {
  margin-top: 0;
}
.a1-memory {
  padding: 16px;
  border: 1px solid #f0d48b;
  background: #fffaf0;
  border-radius: 16px;
}
.a1-memory > strong {
  font-size: 1.15rem;
}
.a1-memory p {
  margin: 6px 0 14px;
}
.a1-syllables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.a1-syllables button {
  min-height: 88px;
  border: 2px solid #9bd3a6;
  border-radius: 16px;
  background: #f5fff6;
  cursor: pointer;
}
.a1-syllables b {
  display: block;
  font-size: 2.3rem;
  color: #27853a;
}
.a1-syllables small {
  font-size: 1rem;
}
.a1-listen-card {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
  border: 1px solid #d9e2f0;
  border-radius: 16px;
  background: #fff;
}
.a1-audio {
  padding: 10px 14px;
  border: 1px solid #8fb7ff;
  border-radius: 12px;
  background: #f4f8ff;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0;
  cursor: pointer;
}
.a1-gapword {
  font-size: 2rem;
  letter-spacing: 0.04em;
}
.a1-choice-label {
  font-weight: 700;
  color: #344054;
}
.a1-inline-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.a1-inline-options button {
  min-width: 78px;
  padding: 11px 18px;
  border: 1px solid #9db8e8;
  border-radius: 10px;
  background: #fff;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 1;
}
.a1-inline-options button:hover {
  border-color: #1677ff;
  background: #f4f8ff;
}
.a1-inline-options button:disabled {
  opacity: 1;
  color: #667085 !important;
  -webkit-text-fill-color: #667085;
}
.a1-stress-rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.a1-stress-rules article {
  padding: 14px;
  border: 1px solid #dfe6f2;
  border-radius: 14px;
  background: #fff;
}
.a1-stress-rules h3 {
  margin-top: 0;
}
.a1-tilde-warning {
  margin-top: 18px;
  padding: 18px;
  border: 2px solid #ef6a6a;
  border-radius: 18px;
  background: #fff7f7;
}
.a1-tilde-warning h3 {
  margin-top: 0;
  color: #c82424;
}
.a1-pairs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.a1-pairs article {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #f0b7b7;
  border-radius: 12px;
}
.a1-pairs article > div {
  display: flex;
  flex-direction: column;
}
.a1-pairs b {
  font-size: 1.25rem;
}
.a1-pairs small {
  color: #667085;
}
.a1-pairs span {
  color: #d92d20;
  font-weight: 900;
}
.a1-country-reference {
  margin: 28px 0;
  padding: 22px;
  background: #f8fbff;
  border: 1px solid #cfe0f5;
  border-radius: 22px;
}
.country-ref-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.country-ref-head h2 {
  margin: 0 0 8px;
}
.country-ref-head p {
  margin: 0;
  color: #526174;
  max-width: 700px;
  line-height: 1.5;
}
.country-path {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #1769e0;
  font-size: 0.84rem;
  font-weight: 800;
}
.country-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #667085;
  font-size: 0.82rem;
}
.country-es-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  margin-left: 3px;
  border-radius: 6px;
  background: #eaf7ee;
  border: 1px solid #8bc79c;
  color: #18743a;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
}
.country-flag-img {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.08);
  vertical-align: middle;
}
.country-ref-table {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
}
.country-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) 20px minmax(
      175px,
      0.9fr
    ) 20px minmax(250px, 1.45fr);
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.country-row:hover {
  border-color: #9fc3f2;
  box-shadow: 0 4px 14px rgba(23, 105, 224, 0.07);
}
.country-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.country-cell > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.country-cell small {
  font-size: 0.7rem;
  color: #7a8798;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.country-cell strong,
.country-cell b {
  font-size: 1rem;
  color: #172033;
}
.country-name strong {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 1.08rem;
}
.country-capital b {
  white-space: nowrap;
  font-size: 0.96rem;
}
.country-arrow {
  text-align: center;
  color: #9aa9bb;
  font-weight: 900;
}
.country-audio {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #c5d8f3;
  border-radius: 9px;
  background: #f5f9ff;
  cursor: pointer;
  padding: 0;
}
.country-audio:hover {
  background: #e7f1ff;
  border-color: #7faef0;
}
.country-nationality {
  align-items: flex-start;
}
.country-nat {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2px;
}
.country-nat > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.country-nat.same {
  gap: 7px;
}
.country-same {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff5d9;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 800;
}
.country-more {
  display: block;
  margin: 8px auto 22px;
  padding: 10px 18px;
  border: 1px solid #9cbbe5;
  border-radius: 12px;
  background: #fff;
  color: #1769e0;
  font-weight: 800;
  cursor: pointer;
}
.country-extra {
  margin-top: 0;
}
#countryMiniQuiz {
  margin-top: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 16px;
}
#countryMiniQuiz h3 {
  margin-top: 0;
}
.country-quiz-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.country-inline-audio {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px;
}
.country-quiz-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.country-quiz-options button,
.country-next {
  padding: 10px 12px;
  border: 1px solid #a9c1e4;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font-weight: 700;
  cursor: pointer;
}
.country-quiz-options button:hover,
.country-next:hover {
  border-color: #1677ff;
  background: #f4f8ff;
}
.country-quiz-result {
  min-height: 24px;
  font-weight: 800;
}
.country-next {
  color: #1769e0;
}
.a1-boot-section {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #d7e3f2;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.a1-boot-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.a1-boot-title > span {
  font-size: 2rem;
  line-height: 1;
}
.a1-boot-title h3 {
  margin: 0 0 5px;
  color: #172033;
}
.a1-boot-title p {
  margin: 0;
  color: #526174;
}
.a1-boot-section .stem-diagram {
  margin-top: 8px;
}
.a1-boot-section .boot-note {
  margin-bottom: 0;
}
.a1-boot-section .boot-outline:after {
  left: calc(100% - 3px);
  right: auto;
  width: calc(100% + 12px);
}
.stem-color-diagram .boot-grid {
  padding: 18px;
  gap: 10px;
}
.stem-color-diagram .changed-cell {
  background: #fff4f4;
  border-color: #efb7b7;
}
.stem-color-diagram .unchanged-cell {
  background: #f7fff1;
  border-color: #b9d9a8;
}
.stem-color-diagram .unchanged-cell .stem-highlight {
  color: #2e9b45;
}
.a1-boot-visual {
  position: relative;
  padding-top: 4px;
}
.a1-boot-visual .stem-infinitive {
  margin-bottom: 24px;
}
.a1-boot-visual .stem-infinitive > span {
  display: block;
  white-space: nowrap;
}
.a1-boot-visual .stem-infinitive .stem-highlight {
  display: inline;
  color: #2e9b45;
  padding: 0;
}
.a1-lesson-navigation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.a1-lesson-navigation button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cbd8ea;
  border-radius: 10px;
  background: #fff;
  color: #1769e0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}
.a1-lesson-navigation button:hover:not(:disabled) {
  border-color: #1677ff;
  background: #f4f8ff;
}
.a1-lesson-navigation button:disabled {
  cursor: default;
  color: #98a2b3;
  background: #f5f7fa;
  border-color: #e3e8ef;
}
.a1-stepper button {
  min-height: 38px;
  border-radius: 10px;
  background: #eef2f7;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px 6px;
  color: #667085;
  border: 1px solid #dfe6ef;
  cursor: pointer;
}
.a1-stepper button:hover:not(:disabled) {
  background: #e2edff;
  color: #1769e0;
  border-color: #9ec1f6;
}
.a1-stepper button.active {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}
.a1-stepper button:disabled {
  cursor: default;
  opacity: 0.68;
}
.a1-reflexive-visual {
  margin: 22px 0;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #cfe0f5;
  border-radius: 18px;
}
.a1-reflexive-visual-head h3 {
  margin: 0 0 5px;
  color: #172033;
}
.a1-reflexive-visual-head p {
  margin: 0;
  color: #526174;
  line-height: 1.45;
}
.a1-reflexive-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}
.a1-reflexive-table {
  width: 100%;
  min-width: 570px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #c5d4e9;
  border-radius: 12px;
  overflow: hidden;
  font-size: 1rem;
}
.a1-reflexive-table th,
.a1-reflexive-table td {
  padding: 11px 14px;
  border-right: 1px solid #b9c9df;
  border-bottom: 1px solid #b9c9df;
  text-align: left;
}
.a1-reflexive-table tr > *:last-child {
  border-right: 0;
}
.a1-reflexive-table tbody tr:last-child > * {
  border-bottom: 0;
}
.a1-reflexive-table thead th {
  font-size: 1.12rem;
  font-weight: 500;
}
.a1-reflexive-table thead th:nth-child(2),
.a1-reflexive-table tbody td:nth-child(2) {
  background: #fff0b3;
}
.a1-reflexive-table thead th:nth-child(3),
.a1-reflexive-table tbody td:nth-child(3) {
  background: #e9f0ff;
}
.a1-reflexive-table thead th:nth-child(3) span,
.a1-reflexive-table tbody td:nth-child(3) b {
  color: #e03131;
}
.a1-reflexive-table tbody th {
  font-weight: 500;
  white-space: nowrap;
}
.a1-reflexive-table tbody td {
  font-size: 1.08rem;
}
.a1-reflexive-table em {
  font-style: normal;
}
.grammar-card .grammar-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin: 14px 0 18px;
  border: 1px solid #c5d4e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(32, 63, 107, 0.04);
}
.grammar-card .grammar-table th,
.grammar-card .grammar-table td {
  padding: 11px 13px;
  border-right: 1px solid #d7e2f0;
  border-bottom: 1px solid #d7e2f0;
  text-align: left;
  line-height: 1.35;
}
.grammar-card .grammar-table tr > *:last-child {
  border-right: 0;
}
.grammar-card .grammar-table tbody tr:last-child > * {
  border-bottom: 0;
}
.grammar-card .grammar-table thead th {
  background: #edf4ff;
  color: #315b99;
  font-size: 0.82rem;
  font-weight: 800;
}
.grammar-card .grammar-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}
.grammar-card .grammar-table tbody td:first-child {
  font-weight: 700;
  color: #27364b;
}
.grammar-visual-placeholder,
.a1-reflexive-visual,
.a1-boot-section {
  box-shadow: 0 3px 10px rgba(32, 63, 107, 0.04);
}
@media (max-width: 700px) {
  .a1-route,
  .a1-lesson {
    padding: 0 10px;
    margin: 12px auto;
  }
  .a1-rule-grid,
  .a1-stress-rules {
    grid-template-columns: 1fr;
  }
  .a1-lesson-navigation {
    position: sticky;
    top: 8px;
    z-index: 12;
    padding: 8px 0;
    background: rgba(247, 249, 252, 0.96);
    backdrop-filter: blur(6px);
  }
  .a1-lesson-navigation button {
    flex: 1;
    min-height: 44px;
    font-size: 0.9rem;
  }
  .a1-stepper,
  .a1-stepper-seven {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  .a1-stepper button {
    min-height: 42px;
    font-size: 0.82rem;
  }
  .a1-topic-grid,
  .a1-future-modules {
    grid-template-columns: 1fr;
  }
  .a1-topic-card {
    min-height: auto;
  }
  .a1-question-card,
  .a1-result {
    padding: 16px;
  }
  .a1-result-actions button {
    width: 100%;
  }
  .a1-pairs {
    grid-template-columns: 1fr;
  }
  .a1-syllables {
    gap: 6px;
  }
  .a1-syllables b {
    font-size: 1.7rem;
  }
  .a1-special {
    padding: 14px;
  }
  .a1-country-reference {
    padding: 14px;
  }
  .country-ref-head {
    display: block;
  }
  .country-path {
    display: inline-block;
    margin-top: 12px;
    white-space: normal;
  }
  .country-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 13px;
  }
  .country-arrow {
    display: none;
  }
  .country-cell {
    padding-bottom: 7px;
    border-bottom: 1px dashed #e1e8f1;
  }
  .country-nationality {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .country-quiz-options {
    grid-template-columns: 1fr;
  }
}
.a1-possessive-visual {
  margin: 22px 0;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #cfe0f5;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(32, 63, 107, 0.04);
}
.a1-possessive-visual h3 {
  margin: 0 0 5px;
  color: #172033;
}
.a1-possessive-visual p {
  margin: 0;
  color: #526174;
  line-height: 1.45;
}
.a1-possessive-table {
  width: 100%;
  min-width: 460px;
  margin-top: 14px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #c5d4e9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.a1-possessive-table th,
.a1-possessive-table td {
  padding: 11px 14px;
  border-right: 1px solid #b9c9df;
  border-bottom: 1px solid #b9c9df;
  text-align: left;
}
.a1-possessive-table tr > *:last-child {
  border-right: 0;
}
.a1-possessive-table tbody tr:last-child > * {
  border-bottom: 0;
}
.a1-possessive-table thead th {
  background: #edf4ff;
  color: #315b99;
  font-size: 0.88rem;
}
.a1-possessive-table tbody td:nth-child(2) {
  background: #fff0b3;
}
.a1-possessive-table tbody td:nth-child(3) {
  background: #e9f0ff;
}

.a1-image-visual {
  margin: 22px 0;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #cfe0f5;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(32, 63, 107, 0.04);
}
.a1-image-visual h3 {
  margin: 0 0 5px;
  color: #172033;
}
.a1-image-visual p {
  margin: 0 0 14px;
  color: #526174;
  line-height: 1.45;
}
.a1-image-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c5d4e9;
  border-radius: 12px;
  background: #fff;
}

.a1-distance-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.a1-distance-visual article {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 2px solid #2c8a43;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.a1-distance-visual strong {
  font-size: 1.1rem;
  color: #1b2d44;
}
.a1-distance-visual small {
  min-height: 32px;
  color: #c52d3a;
  line-height: 1.25;
}
.a1-distance-visual b {
  font-size: 1.14rem;
  color: #1b55c9;
}
.a1-distance-visual span {
  font-size: 2.7rem;
  line-height: 1;
}
@media (max-width: 620px) {
  .a1-distance-visual {
    grid-template-columns: 1fr;
  }
  .a1-distance-visual article {
    min-height: 0;
  }
}
.a1-family-layout{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));grid-template-rows:repeat(4,auto);gap:28px 18px;min-width:720px;padding:10px}.a1-family-layout article{position:relative;min-height:72px;padding:10px 9px;border:1px solid #c5d4e9;border-radius:10px;background:#fff;text-align:center}.a1-family-layout span{position:absolute;top:7px;right:8px;font-size:1.25rem}.a1-family-layout article[style*="grid-row:3"] span{top:auto;bottom:7px}.a1-family-layout article[style*="grid-row:4"]{transform:translateX(-78px)}.a1-family-layout b,.a1-family-layout small{display:block;font-size:.92rem;line-height:1.3}.a1-family-layout b{color:#172033}.a1-family-layout small{color:#1b55c9}.a1-family-tree-visual{overflow-x:auto}
.a1-vocab-cards{margin:22px 0;padding:18px;background:#f8fbff;border:1px solid #cfe0f5;border-radius:18px}.a1-vocab-cards h3{margin:0 0 12px}.a1-vocab-cards>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.a1-vocab-card{position:relative;min-height:92px;padding:12px 42px 12px 12px;border:1px solid #c5d4e9;border-radius:12px;background:#fff;text-align:left;cursor:pointer}.a1-vocab-card span{position:absolute;right:10px;top:10px;font-size:1.6rem}.a1-vocab-card b,.a1-vocab-card small{display:block}.a1-vocab-card b{font-size:1.08rem;color:#172033}.a1-vocab-card small{display:none;margin-top:6px;color:#1b55c9}.a1-vocab-card.is-flipped{background:#edf4ff}.a1-vocab-card.is-flipped small{display:block}@media(max-width:620px){.a1-vocab-cards>div{grid-template-columns:1fr}}
.a1-vocab-card.is-study small{display:block}.a1-vocab-visual{margin:22px 0;padding:18px;background:#f8fbff;border:1px solid #cfe0f5;border-radius:18px}.a1-vocab-visual h3{margin:0 0 12px}.a1-vocab-visual>div{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.a1-vocab-visual article{display:grid;gap:6px;justify-items:center;padding:12px;border:1px solid #c5d4e9;border-radius:12px;background:#fff}.a1-vocab-visual span{font-size:2.5rem}.a1-vocab-visual b{color:#1b55c9}@media(max-width:620px){.a1-vocab-visual>div{grid-template-columns:repeat(2,1fr)}}
.a1-family-tree-visual{margin:22px 0;padding:18px;background:#f8fbff;border:1px solid #cfe0f5;border-radius:18px}.a1-family-tree-visual h3{margin:0 0 12px}.a1-family-generations{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;text-align:center}.a1-family-generations article{padding:12px;border:1px solid #c5d4e9;border-radius:12px;background:#fff}.a1-family-generations span{display:block;font-size:2.4rem}.a1-family-generations b{color:#1b55c9}.a1-family-generations i{grid-column:1/4;color:#526174;font-size:1.5rem;font-style:normal}@media(max-width:620px){.a1-family-generations{gap:8px}}
.a1-family-extra{display:grid;grid-template-columns:1fr 1fr 40px 1.4fr;gap:10px;margin-top:14px;align-items:center;text-align:center}.a1-family-extra article{padding:10px;border:1px solid #c5d4e9;border-radius:12px;background:#fff}.a1-family-extra span{display:block;font-size:2rem}.a1-family-extra b{color:#1b55c9}.a1-family-extra i{font-style:normal;color:#526174;font-size:1.5rem}@media(max-width:620px){.a1-family-extra{grid-template-columns:1fr 1fr}.a1-family-extra i{display:none}}
.a1-family-caption{margin:0 0 12px;color:#526174}.a1-family-chart,.a1-family-nephew{padding:14px;border:1px solid #c5d4e9;border-radius:14px;background:#fff;text-align:center}.a1-family-chart>i,.a1-family-nephew i{display:block;margin:8px;color:#526174;font-size:1.4rem;font-style:normal}.family-pair,.family-branches,.family-branches article>div{display:flex;gap:10px;align-items:center;justify-content:center}.family-pair b,.family-branches b,.a1-family-nephew b{padding:9px;border-radius:10px;background:#edf4ff;color:#1b55c9}.family-branches{align-items:stretch}.family-branches article{flex:1;display:grid;place-items:center;gap:7px;padding:10px;border:1px solid #d7e2f0;border-radius:12px}.family-branches small{color:#526174}.family-branches strong{padding:9px;border-radius:10px;background:#fff0b3;color:#172033}.a1-family-nephew{margin-top:12px}@media(max-width:620px){.family-branches{flex-direction:column}.family-branches article>div{flex-wrap:wrap}}

.a1-preposition-visual {
  margin: 22px 0;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #cfe0f5;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(32, 63, 107, 0.04);
}
.a1-preposition-visual h3 {
  margin: 0 0 5px;
  color: #172033;
}
.a1-preposition-visual > p {
  margin: 0 0 14px;
  color: #526174;
  line-height: 1.45;
}
.a1-preposition-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.a1-preposition-flow article {
  display: grid;
  grid-template-rows: auto 42px auto auto auto;
  justify-items: center;
  align-items: center;
  gap: 5px;
  min-height: 188px;
  padding: 13px;
  border: 1px solid #c5d4e9;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.a1-preposition-flow strong {
  font-size: 1.32rem;
  color: #1b55c9;
}
.a1-preposition-flow span {
  font-size: 2.6rem;
  line-height: 1;
  color: #4b78c7;
  font-weight: 800;
}
.a1-preposition-flow b {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 35px;
  padding: 3px 10px;
  border: 3px solid #3b5f9e;
  color: #1b2d44;
  font-size: 0.86rem;
}
.a1-preposition-flow small {
  min-height: 34px;
  color: #526174;
  line-height: 1.2;
}
.a1-preposition-flow em {
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 800;
  color: #172033;
}
.a1-preposition-en b {
  border-radius: 3px;
}
.a1-preposition-a {
  border-top: 3px solid #7fa2e0 !important;
}
.a1-preposition-en {
  border-top: 3px solid #3b5f9e !important;
}
.a1-preposition-de {
  border-top: 3px solid #8ea4c7 !important;
}
@media (max-width: 620px) {
  .a1-preposition-flow {
    grid-template-columns: 1fr;
  }
  .a1-preposition-flow article {
    grid-template-columns: 56px 50px 70px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    min-height: 0;
    text-align: left;
  }
  .a1-preposition-flow strong {
    grid-column: 1;
    grid-row: 1;
  }
  .a1-preposition-flow span {
    grid-column: 2;
    grid-row: 1/3;
  }
  .a1-preposition-flow b {
    grid-column: 3;
    grid-row: 1/3;
  }
  .a1-preposition-flow small {
    grid-column: 4;
    grid-row: 1;
    min-height: 0;
  }
  .a1-preposition-flow em {
    grid-column: 4;
    grid-row: 2;
  }
}

.a1-location-visual {
  margin: 22px 0;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #cfe0f5;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(32, 63, 107, 0.04);
}
.a1-location-visual h3 {
  margin: 0 0 5px;
  color: #172033;
}
.a1-location-visual > p {
  margin: 0 0 14px;
  color: #526174;
  line-height: 1.45;
}
.a1-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.a1-location-grid article {
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 12px;
  border: 1px solid #c5d4e9;
  border-radius: 14px;
  background: #fff;
}
.a1-ball-box {
  position: relative;
  grid-row: 1/3;
  width: 92px;
  height: 82px;
  overflow: visible;
}
.a1-ball-box b {
  position: absolute;
  left: 29px;
  top: 11px;
  color: #2562c2;
  font-size: 55px;
  line-height: 55px;
  font-weight: 400;
}
.a1-ball-box i {
  position: absolute;
  z-index: 2;
  font-style: normal;
  font-size: 29px;
  line-height: 1;
}
.a1-pos-top i {
  left: 33px;
  top: 0;
}
.a1-pos-bottom i {
  left: 33px;
  bottom: 0;
}
.a1-pos-left i {
  left: 0;
  top: 29px;
}
.a1-pos-right i {
  right: 0;
  top: 29px;
}
.a1-pos-front i {
  left: 33px;
  bottom: 3px;
}
.a1-pos-behind i {
  left: 33px;
  top: 19px;
  z-index: 0;
  opacity: 0.72;
}
.a1-pos-inside i {
  left: 33px;
  top: 28px;
  font-size: 25px;
}
.a1-pos-outside i {
  right: 0;
  bottom: 0;
}
.a1-location-grid strong {
  font-size: 0.98rem;
  line-height: 1.3;
  color: #172033;
}
.a1-location-grid small {
  align-self: start;
  color: #526174;
  line-height: 1.2;
}
@media (max-width: 620px) {
  .a1-location-grid {
    grid-template-columns: 1fr;
  }
  .a1-location-grid article {
    min-height: 104px;
  }
  .a1-location-grid strong {
    font-size: 0.95rem;
  }
}

.a1-city-visual {
  margin: 22px 0;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #cfe0f5;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(32, 63, 107, 0.04);
}
.a1-city-visual h3 {
  margin: 0 0 5px;
}
.a1-city-visual > p {
  margin: 0 0 14px;
  color: #526174;
}
.a1-city-map {
  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  grid-template-rows: 66px 52px;
  align-items: center;
  justify-items: center;
  padding: 14px;
  border: 1px solid #c5d4e9;
  border-radius: 14px;
  background: #fff;
}
.a1-city-map > b,
.a1-city-map strong,
.a1-city-map em {
  padding: 12px;
  border-radius: 10px;
  background: #edf4ff;
  color: #172033;
  font-style: normal;
}
.a1-map-straight {
  font-size: 2rem;
  color: #2b6ed0;
}
.a1-map-turn {
  grid-column: 2;
  grid-row: 2;
  font-size: 2rem;
  color: #2b6ed0;
}
.a1-city-map small {
  display: block;
  font-size: 0.72rem;
  color: #526174;
  text-align: center;
}
.a1-city-map em {
  grid-column: 3;
  grid-row: 2;
  background: #fff5d8;
}
@media (max-width: 620px) {
  .a1-city-map {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 8px;
  }
  .a1-city-map > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .a1-map-turn {
    transform: rotate(90deg);
  }
}

.a1-word-visual {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid #bfd4f4;
  border-radius: 18px;
  background: #f4f8ff;
  font-size: 2.55rem;
  line-height: 1;
}

.a1-word-flag {
  display: block;
  width: 58px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgb(16 24 40 / 18%);
}

.a1-answer-explanation {
  display: inline-block;
  margin-top: 8px;
  color: #344054;
  font-weight: 600;
  line-height: 1.45;
}


.a1-tener-visual {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #bed5f6;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff, #fffdf5);
}
.a1-tener-visual h3 { margin: 0; color: #135fc5; }
.a1-tener-visual p { margin: 8px 0 16px; color: #344054; }
.a1-tener-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.a1-tener-grid article { display: grid; gap: 5px; justify-items: center; padding: 14px 8px; border: 1px solid #c9dcf6; border-radius: 14px; background: #fff; text-align: center; font-family: inherit; }
.a1-tener-grid span { font-size: 2.1rem; line-height: 1; }
.a1-tener-grid b { color: #123b7a; font-size: 1.02rem; }
.a1-tener-grid small { color: #526174; font-weight: 600; }
.a1-tener-visual h4 { margin: 24px 0 10px; color: #123b7a; font-size: 1.05rem; }
.a1-tener-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.a1-tener-extra section { display: grid; align-content: start; padding: 10px 14px; border: 1px solid #c9dcf6; border-radius: 14px; background: #fff; }
.a1-tener-extra section > div { display: grid; grid-template-columns: 26px minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; column-gap: 8px; min-width: 0; padding: 9px 0; border-bottom: 1px solid #dbe7f7; font-family: inherit; font-size: .95rem; line-height: 1.35; }
.a1-tener-extra section > div:last-child { border-bottom: 0; }
.a1-tener-extra span { grid-column: 1; font-size: 1.15rem; line-height: 1; }
.a1-tener-extra b, .a1-tener-extra small { min-width: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
.a1-tener-extra b { grid-column: 2; color: #123b7a; font-weight: 700; }
.a1-tener-extra small { grid-column: 3; color: #526174; font-weight: 500; }
@media (max-width: 760px) { .a1-tener-extra { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .a1-tener-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .a1-tener-extra section > div { grid-template-columns: 24px minmax(0, 1.2fr) minmax(0, 1fr); font-size: .88rem; column-gap: 6px; } }


.a1-tener-illustration {
  display: block;
  width: min(100%, 980px);
  margin: 16px auto 20px;
  border: 1px solid #bed5f6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(16 24 40 / 8%);
}


/* Question words: paired columns keep the prompt and its meaning aligned. */
.a1-question-words-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 12px;
}
.a1-question-words-table {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  background: #fff;
}
.a1-question-words-table h3 { margin: 0 0 10px; color: #172033; }
.a1-question-words-table > div { display: grid; gap: 0; }
.a1-question-words-table p {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #e4edf8;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.35;
}
.a1-question-words-table p:last-child { border-bottom: 0; }
.a1-question-words-table b,
.a1-question-words-table span { min-width: 0; font: inherit; }
.a1-question-words-table b { color: #123b7a; font-weight: 700; }
.a1-question-words-table span { color: #344054; font-weight: 500; }
@media (max-width: 720px) {
  .a1-question-words-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .a1-question-words-table { padding: 12px; }
  .a1-question-words-table p {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    font-size: .94rem;
  }
}


/* Numbers: each Spanish form is paired with its interface-language meaning. */
.a1-numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 12px;
}
.a1-numbers-table {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  background: #fff;
}
.a1-numbers-table h3 { margin: 0 0 10px; color: #172033; }
.a1-numbers-table > div { display: grid; gap: 0; }
.a1-numbers-table p {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid #e4edf8;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.32;
}
.a1-numbers-table p:last-child { border-bottom: 0; }
.a1-numbers-table b,
.a1-numbers-table span { min-width: 0; font: inherit; }
.a1-numbers-table b { color: #123b7a; font-weight: 700; }
.a1-numbers-table span { color: #344054; font-weight: 500; }
@media (max-width: 720px) {
  .a1-numbers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .a1-numbers-table { padding: 12px; }
  .a1-numbers-table p { gap: 8px; font-size: .94rem; }
}


/* A1 design foundation: one calm, readable learning surface across all lessons. */
:root {
  --a1-ink: #172033;
  --a1-muted: #526174;
  --a1-line: #dce6f3;
  --a1-blue: #1769e0;
  --a1-blue-soft: #edf5ff;
  --a1-surface: #ffffff;
  --a1-page: #f5f8fc;
  --a1-radius: 16px;
}
.grammar-section {
  max-width: 980px;
  margin: 28px auto 36px;
  padding: 26px;
  border: 1px solid #e5edf7;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgb(33 65 110 / 7%);
}
.a1-route,
.a1-lesson {
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  color: var(--a1-ink);
}
.a1-lesson-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.a1-lesson-navigation button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #bfd3f2;
  border-radius: 11px;
  background: var(--a1-surface);
  color: var(--a1-blue);
  font: inherit;
  font-weight: 750;
  box-shadow: none;
}
.a1-lesson-navigation button:hover:not(:disabled) {
  background: var(--a1-blue-soft);
  border-color: #79a8eb;
}
.a1-lesson-navigation button:disabled {
  color: #98a2b3;
  border-color: #e1e8f1;
  background: #f7f9fc;
}
.a1-stepper,
.a1-stepper-seven {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 20px;
}
.a1-stepper button {
  min-width: 0;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid #dce6f3;
  border-radius: 10px;
  background: #f3f6fa;
  color: #758198;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: none;
}
.a1-stepper button.active {
  border-color: var(--a1-blue);
  background: var(--a1-blue);
  color: #fff;
}
.a1-stepper button:not(:disabled):not(.active):hover {
  background: var(--a1-blue-soft);
  border-color: #a8c6ef;
  color: #245eaf;
}
.a1-kicker {
  margin: 0 0 5px;
  color: var(--a1-blue);
  font-size: .78rem;
  letter-spacing: .055em;
}
.a1-lesson > h2 {
  max-width: 760px;
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -.015em;
}
.a1-lesson > p:not(.a1-goal) {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--a1-ink);
  font-size: 1rem;
  line-height: 1.52;
}
.a1-goal {
  margin: 12px 0 10px;
  padding: 13px 15px;
  border: 1px solid #cfe0f7;
  border-left: 4px solid var(--a1-blue);
  border-radius: 12px;
  background: var(--a1-blue-soft);
  color: var(--a1-ink);
  font-weight: 700;
  line-height: 1.42;
}
.a1-rule-grid {
  gap: 14px;
  margin: 20px 0;
}
.a1-rule-grid article,
.a1-review-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 17px;
  border-color: var(--a1-line);
  border-radius: var(--a1-radius);
  box-shadow: 0 2px 6px rgb(28 62 105 / 3%);
}
.a1-rule-grid h3,
.a1-review-card h3 {
  margin: 0 0 8px;
  color: var(--a1-ink);
  font-size: 1.12rem;
  line-height: 1.22;
}
.a1-rule-grid p,
.a1-review-card p {
  color: var(--a1-ink);
  font-size: 1rem;
  line-height: 1.45;
}
.a1-question-card,
.a1-result {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  border-color: var(--a1-line);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgb(28 62 105 / 4%);
}
.a1-question-card h2 {
  margin: 8px 0 2px;
  font-size: clamp(1.42rem, 2.5vw, 1.82rem);
  line-height: 1.22;
}
.a1-task-hint {
  margin: 0;
  color: var(--a1-muted);
  line-height: 1.4;
}
.a1-counter {
  margin-bottom: 10px;
  color: #61708a;
  font-variant-numeric: tabular-nums;
}
.a1-options {
  gap: 9px;
  margin: 20px 0 12px;
}
.a1-options button,
.a1-options .a1-option {
  min-height: 52px;
  padding: 13px 15px;
  border-color: #cbd9ec;
  border-radius: 12px;
  background: var(--a1-surface);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.a1-options button:hover,
.a1-options .a1-option:hover {
  transform: translateY(-1px);
  border-color: #78a9ed;
  background: #f8fbff;
}
.a1-main {
  min-height: 46px;
  margin-top: 18px;
  padding: 11px 17px;
  border-radius: 12px;
  font-weight: 750;
}
.a1-result-actions {
  align-items: stretch;
}
@media (max-width: 760px) {
  .grammar-section {
    margin: 16px 10px 26px;
    padding: 18px 14px;
    border-radius: 18px;
  }
  .a1-lesson-navigation {
    margin-bottom: 12px;
  }
  .a1-stepper,
  .a1-stepper-seven {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 0 0 4px;
    scrollbar-width: thin;
  }
  .a1-stepper button {
    flex: 0 0 auto;
    min-width: 104px;
  }
  .a1-rule-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .a1-rule-grid article,
  .a1-review-card {
    min-height: 0;
    padding: 15px;
  }
  .a1-question-card,
  .a1-result {
    padding: 18px 15px;
    border-radius: 17px;
  }
}
@media (max-width: 420px) {
  .a1-lesson-navigation button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: .9rem;
  }
  .a1-stepper button { min-width: 96px; font-size: .74rem; }
  .a1-question-card h2 { font-size: 1.36rem; }
}


/* A1 route card system: predictable scan order and equal visual weight. */
.a1-route {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}
.a1-route-summary,
.a1-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 17px 18px;
  border: 1px solid var(--a1-line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 3px 10px rgb(28 62 105 / 3%);
}
.a1-module {
  margin: 18px 0;
  padding: 19px;
  border-color: var(--a1-line);
  border-radius: 20px;
  box-shadow: 0 3px 10px rgb(28 62 105 / 3%);
}
.a1-module-head {
  min-height: 48px;
  gap: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8eef6;
}
.a1-module-head > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}
.a1-module-head strong,
.a1-module-head h2,
.a1-module-head h3 {
  margin: 0;
  color: var(--a1-ink);
  font-size: 1.18rem;
  line-height: 1.25;
}
.a1-topic-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 13px;
  margin-top: 16px;
}
.a1-topic-card {
  min-height: 154px;
  padding: 16px;
  border-color: var(--a1-line);
  border-radius: 16px;
  box-shadow: none;
}
.a1-topic-card.ready {
  background: #fff;
  border-color: #bfd4f3;
}
.a1-topic-card.ready:hover {
  transform: translateY(-2px);
  border-color: #6ea3ec;
  box-shadow: 0 8px 18px rgb(28 62 105 / 9%);
}
.a1-topic-card.done {
  background: #fbfffc;
  border-color: #b9dfc2;
}
.a1-topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--a1-blue-soft);
}
.a1-topic-copy {
  min-height: 120px;
  gap: 8px;
}
.a1-topic-copy strong {
  font-size: 1.03rem;
  line-height: 1.26;
}
.a1-topic-description {
  font-size: .91rem;
  line-height: 1.4;
}
.a1-topic-card small {
  padding-top: 2px;
  font-size: .82rem;
}
.a1-future-modules {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}
.a1-future-module {
  min-height: 70px;
  padding: 12px 13px;
  border-color: #e1e9f3;
  border-radius: 13px;
}
@media (max-width: 760px) {
  .a1-route { padding: 0; }
  .a1-route-summary,
  .a1-flow {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
    padding: 15px;
  }
  .a1-module {
    margin: 14px 0;
    padding: 15px;
    border-radius: 17px;
  }
  .a1-topic-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 13px; }
  .a1-topic-card { min-height: 132px; }
  .a1-topic-copy { min-height: 0; }
}


/* Subject pronouns: paired columns keep the full paradigm easy to scan. */
.a1-pronoun-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.a1-pronoun-column {
  border: 1px solid #d7e3f5;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.a1-pronoun-column h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 1rem;
  background: #f2f7ff;
  color: #113f79;
}
.a1-pronoun-column > div {
  padding: 6px 14px;
}
.a1-pronoun-column p {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(0, 1.5fr);
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #edf2fa;
  line-height: 1.35;
}
.a1-pronoun-column p:last-child { border-bottom: 0; }
.a1-pronoun-column b,
.a1-pronoun-column span {
  font: inherit;
}
.a1-pronoun-column b { color: #0c2d5b; }
.a1-pronoun-column span { color: #425a78; }

@media (max-width: 640px) {
  .a1-pronoun-grid { grid-template-columns: 1fr; gap: 10px; }
  .a1-pronoun-column p { grid-template-columns: minmax(104px, .9fr) minmax(0, 1.35fr); }
}
