@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #293c35;
  background: #fafbf8;
  font-synthesis: none;
  --teal: #246b56;
  --muted: #77817b;
  --border: #e7ebe4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  transition:
    transform 0.15s,
    background 0.15s;
}
button:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #dd8b32;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
aside {
  width: 252px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  text-decoration: none;
  color: #254d40;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}
.brand-light {
  font-weight: 500;
}
.brand-icon {
  background: var(--teal);
  border-radius: 12px;
  color: white;
  font-size: 29px;
  width: 37px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  position: relative;
}
.brand-icon span {
  position: absolute;
  font-size: 15px;
  color: #f6d579;
  right: -6px;
  top: -9px;
}
.workspace {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #8c948e;
  margin: 36px 8px 19px;
}
nav button {
  width: 100%;
  border: 0;
  background: none;
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 16px;
  margin: 6px 0;
  color: #758078;
  border-radius: 10px;
  text-align: left;
  font-size: 21px;
}
nav button span {
  font-size: 13px;
  font-weight: 600;
}
nav button.active {
  background: #eaf2eb;
  color: var(--teal);
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8c948e;
  margin: 34px 10px 15px;
}
.sidebar-note {
  margin-top: auto;
  background: #faf8ef;
  border: 1px solid #eeecdf;
  padding: 20px;
  border-radius: 16px;
}
.sidebar-note > span {
  font-size: 30px;
  color: #aa8438;
  display: block;
  margin-bottom: 6px;
}
.sidebar-note strong {
  font-size: 13px;
  line-height: 1.7;
}
.sidebar-note p {
  font-size: 11px;
  line-height: 1.8;
  color: #8a887a;
  margin-bottom: 0;
}
.local-label {
  font-size: 10px;
  color: #8b978d;
  margin: 24px 4px 0;
}
main {
  margin-left: 252px;
}
header {
  height: 90px;
  background: #ffffffb0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
  font-size: 12px;
  font-weight: 500;
}
.breadcrumb {
  color: #90998f;
}
.slash {
  margin: 0 12px;
  color: #c6ccc5;
}
.profile {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
}
.profile select {
  border: 0;
  background: transparent;
  width: auto;
  font-size: 12px;
  margin: 0;
}
.avatar {
  width: 35px;
  height: 35px;
  background: #f7e5b8;
  border: 3px solid #fff;
  outline: 1px solid #eee2c7;
  border-radius: 50%;
  font-size: 20px;
  text-align: center;
  color: #9f7138;
}
.content {
  max-width: 1320px;
  margin: auto;
  padding: 37px 44px 48px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #7c8b7e;
  margin-bottom: 11px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.8px;
}
h1 {
  font-size: 30px;
  margin: 0 0 10px;
  font-weight: 800;
}
p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
  margin: 0 0 12px;
}
.heading p {
  margin: 0;
}
.badge {
  border: 1px solid #e0e5d9;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 14px;
  background: #f2f4e9;
  white-space: nowrap;
}
.primary {
  border: 0;
  background: var(--teal);
  color: white;
  border-radius: 9px;
  padding: 13px 19px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 23px 0 33px;
}
.summary-grid > div {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.summary-grid p {
  margin: 0;
}
.summary-grid strong {
  display: block;
  color: #425247;
  font-size: 11px;
  font-weight: 600;
}
.summary-grid small {
  display: block;
  color: #92998f;
  font-size: 9px;
  margin-top: 3px;
}
.stat-icon {
  width: 36px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 21px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 15px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 18px;
  margin: 0;
}
.section-heading > span {
  color: #879081;
  font-size: 10px;
}
.subjects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.subject {
  border: 1px solid #00000007;
  border-radius: 15px;
  padding: 20px;
  text-align: left;
  position: relative;
  color: #344d41;
}
.peach {
  background: #fcf0e7;
}
.purple {
  background: #efecf8;
}
.green {
  background: #edf3e7;
}
.yellow {
  background: #faf4dd;
}
.blue {
  background: #eaf1f8;
}
.pink {
  background: #f8ecec;
}
.subject-icon {
  display: inline-flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  background: #ffffffa6;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 700;
}
.subject-state {
  font-size: 7px;
  letter-spacing: 0.8px;
  position: absolute;
  right: 18px;
  top: 34px;
  color: #727d70;
}
.subject h3 {
  font-size: 15px;
  letter-spacing: -0.3px;
  margin: 18px 0 6px;
}
.subject p {
  font-size: 10px;
  color: #7c847c;
  margin-bottom: 22px;
}
.subject-bottom {
  font-size: 9px;
  font-weight: 500;
  border-top: 1px solid #00000009;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
}
.subject-bottom span {
  font-size: 17px;
}
.mission-row {
  display: flex;
  align-items: center;
  background: white;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 12px;
  gap: 16px;
}
.mission-icon {
  padding: 13px;
  background: #ecf1e5;
  border-radius: 12px;
  color: var(--teal);
}
.mission-row strong {
  font-size: 14px;
}
.mission-row p {
  font-size: 11px;
  margin: 4px 0 0;
}
.mission-row button {
  margin-left: auto;
}
.empty {
  border: 1px dashed #d6dfd0;
  background: #f5f7f0;
  padding: 28px;
  color: #87917f;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
}
footer {
  border-top: 1px solid var(--border);
  padding: 20px 44px;
  color: #90998c;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
footer span {
  color: #7f8d72;
}
.notice {
  background: #fff5db;
  border: 1px solid #eddfb3;
  border-radius: 10px;
  color: #78622e;
  padding: 15px;
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 25px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 19px;
  margin-top: 0;
}
.panel label {
  display: block;
  margin: 18px 0;
  font-size: 12px;
  color: #526153;
  font-weight: 500;
}
input,
select {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #dce3d7;
  border-radius: 8px;
  color: #344b3a;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
}
.upload {
  border: 2px dashed #d5dfce;
  border-radius: 12px;
  padding: 25px 14px;
  text-align: center;
  background: #f8faf4;
}
.upload > span {
  display: block;
  font-size: 38px;
  color: #7f9679;
}
.upload strong,
.upload small {
  display: block;
  line-height: 1.8;
}
.upload small {
  font-size: 10px;
  color: #8c9784;
}
.upload input {
  font-size: 10px;
}
.worksheet {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: auto;
}
.secondary {
  border: 1px solid #cddcca;
  border-radius: 8px;
  background: #f4f8ee;
  color: var(--teal);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
}
.panel .secondary {
  margin: 10px 0;
  display: block;
  width: 100%;
}
.muted {
  display: block;
  font-size: 11px;
  color: #8a9582;
  line-height: 1.7;
}
.draft-question {
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}
.draft-question strong {
  font-size: 13px;
}
.draft-question label {
  margin: 12px 0;
  font-size: 11px;
}
.text-button {
  border: 0;
  background: none;
  color: #56765a;
  font-size: 12px;
  padding: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.danger {
  background: #fff;
  border: 1px solid #e4c8c1;
  padding: 10px;
  color: #914d3f;
  border-radius: 8px;
}
.privacy {
  margin-top: 20px;
}
.play-wrap {
  max-width: 730px;
  margin: 15px auto;
}
progress {
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  accent-color: var(--teal);
  margin-bottom: 25px;
}
progress::-webkit-progress-bar {
  background: #e9eede;
}
progress::-webkit-progress-value {
  background: var(--teal);
}
.question-panel {
  border: 1px solid #e3e7d6;
  background: white;
  border-radius: 22px;
  padding: 40px;
  text-align: center;
}
.question-panel h1 {
  font-size: 32px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.junior .question-panel h1 {
  font-size: 42px;
}
.question-panel form {
  max-width: 440px;
  margin: 25px auto;
}
.question-panel input {
  font-size: 25px;
  text-align: center;
  padding: 15px;
}
.question-panel label {
  font-size: 12px;
  color: #7e8c76;
}
.question-panel small {
  margin-top: 10px;
}
.answer-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}
.feedback {
  background: #eaf2e3;
  border-radius: 10px;
  padding: 15px;
  color: #44613c;
  margin: 20px 0;
  font-size: 13px;
}
.calm {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
}
.study-hero {
  background: #f0f1df;
  border: 1px solid #e7e9d2;
  border-radius: 22px;
  padding: 30px 34px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.study-hero h2 {
  color: #304f3f;
  font-size: 30px;
  line-height: 1.35;
  margin: 0 0 12px;
}
.study-hero > p:not(.eyebrow) {
  max-width: 65ch;
  color: #526153;
  font-size: 15px;
}
.study-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.study-actions button,
.topic-card button,
.exam-form button,
.lesson-panel button,
.assessment-summary button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.study-actions .secondary {
  margin: 0;
  width: auto;
}
.exam-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 25px;
  margin-bottom: 24px;
}
.exam-form h2 {
  margin: 0 0 12px;
  font-size: 21px;
}
.exam-form p {
  color: #526153;
  font-size: 14px;
}
.exam-fields,
.topic-options,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.exam-fields {
  margin: 20px 0;
}
.exam-fields label {
  min-width: 0;
  margin: 0;
  color: #526153;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.exam-fields input,
.exam-fields select,
.exam-form textarea {
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  font-size: 16px;
}
.exam-form textarea {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: white;
  border: 1px solid #dce3d7;
  border-radius: 8px;
  color: #344b3a;
  line-height: 1.6;
  resize: vertical;
}
.topic-options {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  gap: 10px;
}
.topic-options legend {
  padding: 0 6px;
  color: #344b3a;
  font-size: 14px;
  font-weight: 700;
}
.topic-options .topic-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  margin: 0;
  background: #f5f8ef;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #344b3a;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.topic-option input {
  accent-color: var(--teal);
}
.lesson-preview {
  background: #fafbf8;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 16px;
  margin-top: 18px;
}
.lesson-preview summary,
.review-item summary {
  padding: 14px 0;
  min-height: 48px;
  color: #344b3a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.lesson-preview p,
.lesson-preview ol {
  color: #526153;
  font-size: 15px;
  line-height: 1.8;
}
.topic-grid {
  margin: 20px 0 24px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: white;
  overflow-wrap: anywhere;
}
.topic-card h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 10px;
}
.topic-card p {
  color: #526153;
  font-size: 14px;
  margin: 12px 0 18px;
}
.topic-card button {
  margin-top: auto;
}
.topic-card .secondary {
  width: auto;
  margin: auto 0 0;
}
.status-pill {
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.status-new {
  background: #f1f3ee;
  border-color: #dce3d7;
  color: #526153;
}
.status-review {
  background: #fff5db;
  border-color: #eddfb3;
  color: #78622e;
}
.status-practising {
  background: #eaf1f8;
  border-color: #cbdbea;
  color: #355d7a;
}
.status-ready {
  background: #eaf2e3;
  border-color: #cddcca;
  color: var(--teal);
}
.lesson-panel {
  padding: 30px;
  text-align: left;
  overflow-wrap: anywhere;
}
.lesson-panel h1 {
  font-size: 28px;
  line-height: 1.45;
  margin-bottom: 18px;
}
.lesson-panel p,
.lesson-panel ol,
.worked-example p,
.worked-example ol {
  color: #344b3a;
  font-size: 16px;
  line-height: 1.85;
}
.lesson-panel ol,
.lesson-steps,
.lesson-preview ol {
  padding-left: 25px;
}
.lesson-panel li,
.lesson-steps li,
.lesson-preview li {
  padding-left: 5px;
  margin-bottom: 10px;
}
.lesson-steps li::marker {
  color: var(--teal);
  font-weight: 700;
}
.worked-example {
  padding: 20px;
  margin: 24px 0;
  border: 1px solid #e7e9d2;
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: #f5f6e9;
}
.worked-example h2,
.worked-example h3 {
  font-size: 19px;
  margin: 0 0 12px;
  line-height: 1.5;
}
.study-save {
  display: block;
  margin: 14px 0;
  color: #526153;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.review-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.review-item {
  min-width: 0;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  text-align: left;
  overflow-wrap: anywhere;
}
.review-item[open] {
  padding-bottom: 16px;
}
.review-item[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.review-item p {
  color: #526153;
  font-size: 15px;
  line-height: 1.8;
}
.assessment-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.assessment-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cddcca;
  border-radius: 9px;
  background: white;
  color: #344b3a;
  font-size: 15px;
  font-weight: 700;
}
.assessment-nav .answered {
  background: #eaf2e3;
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.assessment-nav .current {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow:
    0 0 0 2px white,
    0 0 0 4px var(--teal);
}
.assessment-summary {
  overflow-wrap: anywhere;
}
.assessment-summary > h2 {
  color: var(--teal);
  font-size: 26px;
  line-height: 1.4;
}
.assessment-summary > p {
  color: #526153;
  font-size: 15px;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
  .subject {
    padding: 25px;
  }
  .subject h3 {
    font-size: 17px;
  }
  .subject p {
    font-size: 12px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 215px;
    padding: 30px 16px;
  }
  main {
    margin-left: 215px;
  }
  .content {
    padding: 28px;
  }
  .summary-grid > div {
    padding: 12px;
    gap: 7px;
  }
  .summary-grid small {
    font-size: 8px;
  }
  .subject-state {
    font-size: 6px;
    right: 12px;
  }
  .subject {
    padding: 16px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
}
.auth-wrap {
  max-width: 580px;
  margin: 6vh auto;
  padding: 20px;
}
.auth-wrap p,
.family-content p {
  overflow-wrap: anywhere;
}
.auth-wrap input,
.family-fields input,
.family-fields select {
  font-size: 16px;
}
.auth-wrap button,
.family-content button,
#logout {
  min-height: 44px;
  white-space: normal;
}
#logout {
  margin-top: 18px;
}
.family-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.family-fields label {
  margin: 0;
  min-width: 0;
}
.child-account {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.child-account:last-child {
  border-bottom: 0;
}
.sync-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-left: 3px solid var(--teal);
  background: #edf3e7;
  font-size: 12px;
  line-height: 1.7;
}
.sync-banner[data-status="offline"],
.sync-banner[data-status="error"],
.sync-banner[data-status="conflict"] {
  background: #fff5db;
  border-color: #b86825;
}
.profile {
  min-width: 0;
  max-width: 55%;
}
.profile select {
  max-width: 100%;
  text-overflow: ellipsis;
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    font-size: 22px;
  }
  .workspace,
  .nav-label,
  .sidebar-note,
  .local-label {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    margin-top: 12px;
  }
  nav button {
    justify-content: center;
    gap: 6px;
    padding: 10px 5px;
    font-size: 18px;
  }
  nav button span {
    font-size: 10px;
  }
  main {
    margin-left: 0;
  }
  header {
    height: 65px;
    padding: 0 20px;
  }
  .content {
    padding: 25px 20px;
  }
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 24px;
  }
  .badge {
    font-size: 8px;
    padding: 8px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .summary-grid > div {
    padding: 12px;
  }
  .summary-grid small {
    font-size: 10px;
  }
  .summary-grid strong {
    font-size: 12px;
  }
  .subjects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .subject-state {
    position: static;
    display: block;
    margin-top: 12px;
  }
  .subject h3 {
    font-size: 14px;
  }
  .subject p {
    min-height: 34px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading > span {
    font-size: 9px;
  }
  .mission-row {
    flex-wrap: wrap;
  }
  .mission-row button {
    margin-left: 0;
  }
  .question-panel {
    padding: 25px 18px;
  }
  .junior .question-panel h1 {
    font-size: 32px;
  }
  .answer-actions {
    flex-direction: column;
  }
  footer {
    padding: 20px;
    line-height: 1.7;
  }
  footer span {
    display: none;
  }
  .exam-fields,
  .topic-options,
  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .study-hero,
  .exam-form,
  .lesson-panel {
    padding: 22px 18px;
  }
  .study-hero h2,
  .lesson-panel h1 {
    font-size: 25px;
  }
  .study-actions {
    align-items: stretch;
  }
  .study-actions button {
    flex: 1 1 180px;
  }
  .topic-card,
  .worked-example {
    padding: 18px;
  }
  .topic-options {
    padding: 12px;
  }
  .family-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  aside nav {
    flex-wrap: wrap;
  }
  aside nav button {
    flex: 1 1 90px;
  }
}
.ai-tools {
  background: #f5f8ef;
  border: 1px solid #dae5d0;
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
}
.ai-tools h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.ai-tools .check {
  font-size: 11px;
}
#ai-status {
  margin-top: 14px;
  color: #46633e;
  overflow-wrap: anywhere;
}
.source-note {
  background: #fff8e9;
  border-left: 3px solid #d7b365;
  border-radius: 6px;
  padding: 12px;
  overflow-wrap: anywhere;
}
.source-note strong {
  font-size: 11px;
}
.source-note p {
  font-size: 11px;
  margin: 8px 0 0;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
