/* Danity student interface: soft clay surfaces with restrained depth. */
.brand { gap: 10px; letter-spacing: -.025em; }
.brand img {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 2px solid #c7a463;
  border-radius: 50%;
  object-fit: cover;
  filter: none;
  box-shadow: 0 0 0 3px #f6fbf4, 0 6px 15px #193c2d29;
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand:hover img { transform: translateY(-2px); box-shadow: 0 0 0 3px #f6fbf4, 0 9px 19px #193c2d38; }
.brand:focus-visible { outline: 2px solid #2f7852; outline-offset: 5px; border-radius: 7px; }
@media (max-width: 420px) { .brand img { width: 42px; height: 42px; flex-basis: 42px; } }
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } }
.student-home, .course-app, .learning-view {
  --clay-bg: #edf4ed;
  --clay-paper: #f9fcf7;
  --clay-ink: #193c2d;
  --clay-muted: #586d60;
  --clay-green: #327653;
  --clay-mint: #dcebd9;
  --clay-peach: #f8e8db;
  --clay-shadow: 9px 11px 24px #9eb6a561, -6px -6px 17px #ffffffc9;
  --clay-soft: 5px 7px 16px #aec3b063, -4px -4px 12px #ffffffbd;
  --clay-inset: inset 3px 3px 7px #c9d9caab, inset -3px -3px 7px #ffffffd9;
  background: var(--clay-bg);
  color: var(--clay-ink);
}
.student-home h1, .student-home h2, .student-home h3,
.course-app h1, .course-app h2, .course-app h3,
.learning-view h1, .learning-view h2, .learning-view h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -.045em;
}
.student-home .eyebrow, .course-app .eyebrow, .learning-view .eyebrow {
  color: #427c5a;
  font: 700 10px 'DM Sans', sans-serif;
  letter-spacing: .13em;
}
.student-home .app-head, .course-app .app-head, .learning-view .app-head {
  min-height: 74px;
  border-bottom: 1px solid #ffffffd9;
  background: #f7fbf5ed;
  box-shadow: 0 5px 18px #aac0aa36;
  backdrop-filter: blur(14px);
}
.student-home .brand, .course-app .brand, .learning-view .brand { color: var(--clay-ink); font-weight: 600; }
.student-home .brand span, .course-app .brand span, .learning-view .brand span {
  width: 38px; height: 38px; border-radius: 13px;
  background: linear-gradient(145deg, #488960, #246448); color: white;
  box-shadow: 3px 4px 8px #95b49d, inset 1px 1px 2px #ffffff80;
}
.student-home .avatar {
  background: #dcebd9; color: var(--clay-ink);
  box-shadow: var(--clay-inset);
}
.student-home .app-layout { max-width: 1450px; grid-template-columns: 205px minmax(0, 1fr); gap: 17px; }
.student-home .side {
  top: 74px; min-height: calc(100vh - 74px);
  padding: 32px 12px; border-right: 0;
}
.student-home .side-label { margin-left: 18px; color: #77917d; }
.student-home .side a { border-radius: 16px; color: var(--clay-muted); font-size: 13px; }
.student-home .side a.active {
  background: linear-gradient(145deg, #f8fcf6, #dcebdc);
  color: var(--clay-ink); box-shadow: var(--clay-soft);
}
.student-home .side a:not(.active):hover { background: #e3efe1; }
.student-main { max-width: 1170px; padding: 35px clamp(20px, 4vw, 56px) 105px; }
.student-home .crumb { margin-bottom: 18px; color: #68806e; }
.welcome-panel {
  min-height: 262px; grid-template-columns: minmax(0, 1fr) 185px;
  align-items: center; gap: 25px; padding: 38px clamp(28px, 5vw, 56px);
  border: 1px solid #ffffffd9; border-radius: 29px;
  background: linear-gradient(125deg, #e4f0de 0%, #d2e8d3 64%, #bfe0cb 100%);
  color: var(--clay-ink); box-shadow: var(--clay-shadow);
}
.welcome-panel::after { display: none; }
.welcome-panel h1 { max-width: none; font-size: clamp(39px, 5vw, 59px); line-height: 1.1; letter-spacing: -.05em; }
.welcome-panel h1 em { color: #2f7852; font-style: normal; }
.welcome-panel .eyebrow { color: #3f7752; }
.welcome-panel p:not(.eyebrow) { max-width: 510px; margin: 12px 0 22px; color: #42634b; font-size: 15px; }
.welcome-art { display: grid; min-height: 160px; place-items: center; }
.welcome-art > span {
  display: grid; width: 146px; height: 146px; place-items: center;
  border: 2px solid #ffffffcf; border-radius: 42px;
  background: linear-gradient(145deg, #f9fff5, #c3dfc6);
  color: #2f7652; box-shadow: 12px 13px 18px #7faf8a6b, inset 4px 4px 10px #ffffffeb;
  transform: rotate(-7deg);
}
.welcome-art svg { width: 78px; height: 78px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.primary-action, .library-search button, .learning-button {
  border: 1px solid #266347; border-radius: 14px;
  background: linear-gradient(145deg, #39835a, #286b4b); color: white;
  box-shadow: 4px 6px 11px #6e9e79a8, inset 1px 1px 2px #ffffff4d;
  font-weight: 700;
}
.primary-action { padding: 13px 20px; font-size: 13px; }
.primary-action:hover, .library-search button:hover, .learning-button:hover { background: #266c4a; transform: translateY(-2px); }
.primary-action span { font-size: 19px; }
.student-home .catalog-section, .student-page .catalog-section { margin-top: 43px; }
.student-home .section-heading { margin-bottom: 18px; }
.student-home .section-heading h2, .course-app .section-title h2 { font-size: clamp(26px, 3vw, 35px); letter-spacing: -.04em; }
.text-link { color: #2b6d4b; font-size: 13px; }
.course-count { border: 0; border-radius: 12px; background: #e0eddc; color: #456d50; font: 700 11px 'DM Sans', sans-serif; }
.continue-grid, .course-grid { gap: 19px; }
.continue-card, .course-tile, .study-subject, .subject-folder, .topic-list, .question-card,
.note-article, .learning-card, .review-card, .account-panel, .account-security, .search-note-list,
.library-search, .progress-strip {
  border: 1px solid #ffffffd9; border-radius: 22px;
  background: var(--clay-paper); box-shadow: var(--clay-soft);
}
.continue-card { min-height: 112px; grid-template-columns: 50px minmax(0, 1fr) 16px; padding: 20px; }
.continue-card:hover, .course-tile:hover, .study-subject:hover, .subject-folder:hover, .topic-row:hover {
  transform: translateY(-3px); box-shadow: var(--clay-shadow);
}
.continue-icon, .folder-symbol, .topic-row > span {
  border-radius: 14px; background: linear-gradient(145deg, #e9f5e3, #d1e4d3); color: #2c7350;
  box-shadow: var(--clay-inset);
}
.continue-card small { color: #5d8269; font: 700 10px 'DM Sans', sans-serif; }
.continue-card strong { font: 700 17px/1.25 'DM Sans', sans-serif; letter-spacing: -.02em; }
.continue-card em { color: var(--clay-muted); font-size: 12px; }
.continue-card > b { color: var(--clay-green); }
.resume-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .85fr); gap: 17px; align-items: stretch; }
.resume-layout.is-single { grid-template-columns: 1fr; }
.resume-feature { display: flex; min-width: 0; min-height: 270px; flex-direction: column; padding: 27px 30px; border: 1px solid #ffffffeb; border-radius: 25px; background: linear-gradient(135deg, #d9ecd7, #c9e5d1); box-shadow: var(--clay-shadow); }
.resume-feature-top { display: flex; align-items: center; gap: 11px; }
.resume-feature-icon, .resume-side-icon { display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #f2faf0; color: #317352; box-shadow: var(--clay-inset); }
.resume-feature-icon { width: 43px; height: 43px; }
.resume-feature-icon svg, .resume-side-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resume-feature-course { color: #456f52; font-size: 12px; font-weight: 700; }
.resume-feature-label { margin: 23px 0 7px; color: #497e58; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.resume-feature h3 { margin: 0; font-size: clamp(24px, 2.5vw, 31px); line-height: 1.18; overflow-wrap: anywhere; }
.resume-feature-copy { max-width: 560px; margin: 10px 0 20px; color: #4e6b57; font-size: 13px; line-height: 1.55; }
.resume-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-top: auto; }
.resume-feature-foot > span { color: #5a775e; font-size: 11px; }
.resume-feature-foot a { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #2f7652; box-shadow: 4px 5px 10px #7aaa81a1; color: white; font-size: 12px; font-weight: 800; white-space: nowrap; }
.resume-feature-foot a:hover { background: #256442; transform: translateY(-2px); }
.resume-feature-foot a b { font-size: 17px; }
.resume-side { display: grid; align-content: start; gap: 11px; }
.resume-side h3 { margin: 2px 0 3px; color: #3d6549; font-size: 16px; }
.resume-side-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 14px; align-items: center; gap: 12px; min-height: 105px; padding: 17px; border: 1px solid #ffffffd9; border-radius: 20px; background: var(--clay-paper); box-shadow: var(--clay-soft); color: var(--clay-ink); transition: transform .2s ease, box-shadow .2s ease; }
.resume-side-item:hover { transform: translateY(-3px); box-shadow: var(--clay-shadow); }
.resume-side-icon { width: 42px; height: 42px; }
.resume-side-item > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.resume-side-item small { color: #598166; font-size: 10px; font-weight: 700; }
.resume-side-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.resume-side-item em { color: #53755c; font-size: 11px; font-style: normal; }
.resume-side-item > b { color: #3b7853; }
.progress-strip { margin-top: 30px; padding: 18px 22px; }
.progress-strip strong { color: var(--clay-green); font: 700 25px 'DM Sans', sans-serif; }
.progress-strip span { color: var(--clay-muted); font-size: 12px; }
.progress-strip a { color: var(--clay-green); font-size: 12px; }
.course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-tile {
  min-height: 218px; padding: 21px; border-radius: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile-head { display: flex; align-items: center; gap: 12px; }
.course-tile .tile-art { display: grid; width: 56px; height: 56px; flex: 0 0 56px; margin: 0; place-items: center; border-radius: 17px; background: #dbe9d8; box-shadow: var(--clay-inset); }
.course-tile .tile-art svg { width: 28px; height: 28px; fill: none; stroke: #327452; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.course-tile.tile-odisha .tile-art { background: #f6e8d5; }
.course-tile.tile-odisha .tile-art svg { stroke: #a7673d; }
.course-tile.tile-ncert .tile-art { background: #e6e2f4; }
.course-tile.tile-ncert .tile-art svg { stroke: #7163a4; }
.tile-number { color: #537660; font: 700 11px 'DM Sans', sans-serif; letter-spacing: .08em; }
.tile-info { min-height: 0; margin: 17px 0 0; }
.tile-info strong { color: var(--clay-ink); font: 700 21px/1.2 'DM Sans', sans-serif; letter-spacing: -.03em; }
.tile-info small { display: -webkit-box; overflow: hidden; margin-top: 7px; color: var(--clay-muted); font-size: 12px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile-foot { margin-top: auto; padding-top: 15px; border-top: 1px solid #dce9dd; color: #477456; font-size: 12px; }
.tile-arrow { width: 29px; height: 29px; border-radius: 10px; background: #d8e9d5; color: #2b7050; font-size: 20px; }
.page-intro, .course-banner, .subject-banner {
  padding: 31px clamp(25px, 4vw, 45px); border: 1px solid #ffffffd9; border-radius: 26px;
  background: linear-gradient(125deg, #deeddb, #cde5d1); color: var(--clay-ink);
  box-shadow: var(--clay-shadow);
}
.page-intro::after, .course-banner::after { display: none; }
.page-intro h1, .course-banner h1, .subject-banner h1 { font-size: clamp(35px, 4.5vw, 52px); letter-spacing: -.05em; }
.page-intro > p:not(.eyebrow), .course-banner p:not(.eyebrow), .subject-banner p:not(.eyebrow) { max-width: 640px; margin: 8px 0 0; color: #4c6b56; font-size: 14px; }
.library-search { display: flex; align-items: end; gap: 15px; margin-top: 23px; padding: 16px; }
.library-search label { margin: 0; white-space: nowrap; }
.library-search > div { flex: 1; }
.library-search input { min-height: 46px; border-color: #d2e3d2; border-radius: 12px; background: #f5faf3; }
.library-search button { min-height: 46px; }
.study-directory { margin-top: 34px; }
.study-group { margin-top: 25px; }
.study-group h3 { margin-bottom: 13px; font-size: 20px; }
.study-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.study-subject { min-height: 88px; padding: 18px 20px; }
.study-subject strong { font-size: 14px; }
.study-subject span { margin-top: 14px; color: #337452; font-size: 12px; font-weight: 700; }
.study-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 24px; }
.study-actions a, .study-material-card, .study-result-list a { border: 1px solid #ffffffd9; border-radius: 21px; background: var(--clay-paper); box-shadow: var(--clay-soft); color: var(--clay-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.study-actions a:hover, .study-material-card:hover, .study-result-list a:hover { transform: translateY(-3px); box-shadow: var(--clay-shadow); }
.study-actions a { display: grid; grid-template-columns: 45px 1fr 18px; align-items: center; gap: 2px 11px; min-height: 93px; padding: 17px; }
.study-action-icon { display: grid; grid-row: span 2; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: #e1efe0; color: #327452; box-shadow: var(--clay-inset); }
.study-action-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.study-actions strong { align-self: end; font-size: 14px; }
.study-actions small { grid-column: 2; align-self: start; color: var(--clay-muted); font-size: 11px; }
.study-actions b { grid-column: 3; grid-row: 1 / span 2; color: var(--clay-green); font-size: 19px; }
.study-material { margin-top: 41px; scroll-margin-top: 95px; }
.study-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.study-material-card { display: flex; min-height: 173px; flex-direction: column; padding: 20px 22px; }
.study-material-type { color: #437958; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.study-material-card strong { margin-top: 12px; font-size: 18px; line-height: 1.3; }
.study-material-card small { margin-top: 6px; color: var(--clay-muted); font-size: 12px; line-height: 1.4; }
.study-material-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 17px; color: #326c4d; font-size: 12px; font-weight: 700; }
.study-material-foot b { font-size: 15px; }
.study-test-card { background: #fcf9f3; }
.study-test-card .study-material-type { color: #a26a3c; }
.study-result-list { display: grid; gap: 11px; }
.study-result-list a { display: flex; align-items: center; gap: 15px; min-height: 74px; padding: 15px 19px; }
.study-result-list a > span:first-child { display: grid; gap: 5px; flex: 1; min-width: 0; }
.study-result-list strong { font-size: 14px; }
.study-result-list small { color: var(--clay-muted); font-size: 11px; }
.study-result-score { padding: 8px 11px; border-radius: 10px; background: #deefdb; color: #2a6b48; font-size: 12px; font-weight: 800; white-space: nowrap; }
.study-result-list b { color: #326c4d; font-size: 11px; white-space: nowrap; }
.study-load-error { margin-top: 30px; }
.account-hero { border: 1px solid #ffffffd9; border-radius: 24px; background: linear-gradient(125deg, #dcebd9, #cbe3d1); color: var(--clay-ink); box-shadow: var(--clay-shadow); }
.account-avatar { border-radius: 20px; background: #f8fcf7; color: #2e7351; box-shadow: var(--clay-inset); font-family: 'DM Sans', sans-serif; }
.account-hero .eyebrow { color: #4a7a58; }
.account-hero h2 { font-size: 27px; }
.account-hero p:last-child { color: #54715e; }
.account-simple, .account-access { margin-top: 18px; }
.account-panel h2 { font-size: 21px; }
.account-panel dl div { border-color: #dfebdd; }
.account-panel dt { color: #65806b; }
.account-panel dd { color: var(--clay-ink); }
.account-access li { border-radius: 11px; background: #e0efdb; }
.account-action { margin-top: 17px; }
.account-security { padding: 24px 29px; }
.account-security h2 { font-size: 20px; }
.account-security > a { border-radius: 12px; }
.search-note-list { overflow: hidden; }
.search-note-list a:hover { background: #eaf4e8; }
.catalog-empty, .content-empty, .test-empty { border: 1px solid #ffffffd9; border-radius: 18px; background: var(--clay-paper); box-shadow: var(--clay-soft); }
.course-page { max-width: 1120px; padding-top: 30px; }
.course-banner { display: block; min-height: 0; }
.course-banner .eyebrow { color: #447958; }
.course-banner > div:first-child > span { margin-top: 18px; border-radius: 12px; background: #eaf4e5; color: #3f7553; font: 700 11px 'DM Sans', sans-serif; }
.subject-folders, .content-section { margin-top: 36px; }
.subject-grid { gap: 16px; }
.subject-folder { min-height: 100px; padding: 19px; }
.folder-symbol svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.subject-copy b { font: 700 17px/1.2 'DM Sans', sans-serif; }
.subject-copy em { color: #6b806e; font-size: 12px; }
.subject-folder i { color: #327452; }
.topic-list { overflow: hidden; }
.topic-row { min-height: 66px; transition: transform .2s, box-shadow .2s; }
.topic-row b { font-size: 13px; }
.topic-row small { color: #4b7857; font-size: 11px; }
.test-area { padding: 0; background: none; }
.test-empty { padding: 22px; }
.learning-main { max-width: 960px; padding-top: 32px; }
.learning-crumb { color: #6f8674; }
.note-article, .question-card, .review-card { border-radius: 23px; }
.note-article { padding: clamp(25px, 5vw, 48px); }
.note-article h1, .test-intro h1, .result-hero h1 { font-size: clamp(33px, 4vw, 48px); }
.note-body { color: #304d3a; }
.test-intro, .result-hero {
  border: 1px solid #ffffffd9; border-radius: 25px;
  background: linear-gradient(130deg, #dcebd9, #c5e3cc); color: var(--clay-ink);
  box-shadow: var(--clay-shadow);
}
.test-intro .eyebrow, .result-hero .eyebrow { color: #447d59; }
.test-intro > p:not(.eyebrow), .result-hero > p:not(.eyebrow) { color: #4f6c58; }
.test-intro > div span { border: 0; border-radius: 12px; background: #f0f8ed; color: #3c6f4e; font: 700 11px 'DM Sans', sans-serif; box-shadow: var(--clay-inset); }
.test-intro #test-timer { color: #245c40; }
.question-card { padding: 26px; }
.question-card legend { font: 700 21px/1.35 'DM Sans', sans-serif; }
.question-card legend span { color: #4c8460; font: 700 11px 'DM Sans', sans-serif; }
.option-list label > span { border: 1px solid #e1ebdf; border-radius: 13px; background: #f5faf3; font-size: 14px; }
.option-list label b { border-radius: 8px; background: #dcebd9; color: #2e6f4c; }
.option-list input:checked + span { border-color: #69a97d; background: #e0f0df; box-shadow: var(--clay-inset); }
.result-hero strong { color: #2c7350; font-family: 'DM Sans', sans-serif; }
.result-hero strong small { color: #4b6655; }
.result-hero > div > a:last-child { color: #2c7350; }
.result-hero .learning-button { color: white; background: #327653; }
.review-card.is-correct { border-left: 5px solid #4f9a63; }
.review-card.is-incorrect { border-left: 5px solid #d45555; }
.review-card h3 { font: 700 20px/1.3 'DM Sans', sans-serif; }
.review-card > div { border-radius: 14px; }
.attempt-history { margin: 26px 0 30px; }
.attempt-history h2 { margin: 0; font-size: 25px; }
.attempt-history > p { margin: 7px 0 16px; color: var(--clay-muted); font-size: 13px; }
.attempt-history-list { display: grid; gap: 10px; }
.attempt-history-list a { display: flex; align-items: center; gap: 15px; min-height: 72px; padding: 14px 18px; border: 1px solid #ffffffd9; border-radius: 17px; background: var(--clay-paper); box-shadow: var(--clay-soft); color: var(--clay-ink); text-decoration: none; }
.attempt-history-list a:hover { background: #e9f4e7; }
.attempt-history-list a > span { display: grid; gap: 5px; flex: 1; }
.attempt-history-list strong { font-size: 14px; }
.attempt-history-list small { color: var(--clay-muted); font-size: 11px; }
.attempt-history-list b { padding: 8px 11px; border-radius: 10px; background: #deefdb; color: #2a6b48; font-size: 13px; white-space: nowrap; }
.attempt-history-list em { color: #327452; font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.attempt-start { margin-top: 22px; padding: 25px; }
.attempt-start h2 { margin: 0 0 8px; font-size: 23px; }
.attempt-start p { margin: 0 0 19px; color: var(--clay-muted); font-size: 13px; }
.student-home :is(a, button, input):focus-visible, .course-app :is(a, button):focus-visible, .learning-view :is(a, button, input):focus-visible { outline: 3px solid #26744d; outline-offset: 3px; }
@media (max-width: 900px) { .library-search { display: block; } .library-search label { margin-bottom: 10px; } .resume-layout { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .study-actions { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
  .student-home .side { display: none; }
  .student-home .app-layout { display: block; }
  .student-main, .course-page, .learning-main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .student-home .app-head, .course-app .app-head, .learning-view .app-head { min-height: 64px; }
  .welcome-panel { min-height: 0; grid-template-columns: 1fr 76px; padding: 27px; }
  .welcome-panel h1 { max-width: none; font-size: clamp(34px, 8vw, 43px); }
  .welcome-panel p:not(.eyebrow) { max-width: 300px; font-size: 13px; }
  .welcome-art { position: static; width: 76px; height: 76px; min-height: 0; opacity: 1; }
  .welcome-art > span { width: 76px; height: 76px; border-radius: 24px; }
  .welcome-art svg { width: 40px; height: 40px; }
  .resume-feature { min-height: 0; padding: 24px; }
  .student-home .section-heading h2 { font-size: 28px; }
  .course-grid, .continue-grid, .study-subject-grid, .subject-grid, .study-material-grid { grid-template-columns: 1fr; }
  .course-tile { min-height: 202px; }
  .page-intro, .course-banner, .subject-banner { padding: 27px; }
  .mobile-bottom {
    inset: auto 12px 12px; min-height: calc(67px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: unset;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    border: 1px solid #ffffffec; border-radius: 23px;
    background: #f9fcf7f5; box-shadow: 7px 8px 22px #92ad98aa, -4px -4px 16px #ffffffde;
    backdrop-filter: blur(16px);
  }
  .mobile-bottom a { min-height: 54px; color: #5d7563; }
  .mobile-bottom a.is-active { color: #255f42; }
  .mobile-bottom a.is-active .nav-icon { border-radius: 12px; background: #dcecd9; box-shadow: var(--clay-inset); }
  .mobile-bottom svg { width: 21px; height: 21px; }
}
@media (max-width: 520px) {
  .student-main { padding-top: 22px; }
  .welcome-panel { grid-template-columns: 1fr; }
  .welcome-art { display: none; }
  .progress-strip { gap: 11px 22px; }
  .progress-strip a { width: 100%; margin-left: 0; }
  .page-intro h1 { font-size: 37px; }
  .library-search > div { flex-direction: column; }
  .library-search button { width: 100%; }
  .topic-row { grid-template-columns: 30px 1fr; }
  .topic-row small { grid-column: 2; }
  .account-hero { padding: 21px; }
  .account-hero h2 { overflow-wrap: anywhere; }
  .resume-feature-foot { align-items: flex-start; flex-direction: column; }
  .resume-feature-foot a { width: 100%; justify-content: center; }
  .study-result-list b { display: none; }
  .attempt-history-list em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .continue-card, .course-tile, .study-subject, .subject-folder, .topic-row, .study-actions a, .study-material-card, .study-result-list a, .resume-side-item, .resume-feature-foot a,
  .primary-action, .library-search button, .learning-button { transition: none; }
}

/* Student sign-in uses the same soft visual language. */
.login { background: #edf4ed; }
.login aside { background: linear-gradient(145deg, #dcebd9, #c1dfc8); color: #193c2d; }
.login aside::before, .login aside::after { border-color: #ffffff80; }
.login aside .brand { color: #193c2d; }
.login aside .brand span { border-radius: 13px; background: #327653; color: white; box-shadow: 4px 5px 9px #86ab8e; }
.login aside .eyebrow { color: #447c59; }
.login aside h1 { font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: -.05em; }
.login aside em { color: #2e7851; font-style: normal; }
.login aside p { color: #486a53; }
.login aside small { color: #567761; }
.login main { background: #edf4ed; }
.google-login { padding: 34px; border: 1px solid #ffffffd9; border-radius: 26px; background: #f9fcf7; box-shadow: 9px 11px 24px #9eb6a561, -6px -6px 17px #ffffffc9; }
.google-login::before { border-radius: 15px; background: #dcebd9; box-shadow: inset 3px 3px 7px #c9d9caab, inset -3px -3px 7px #ffffffd9; }
.google-login h2 { color: #193c2d; font: 700 36px/1.1 'DM Sans', sans-serif; letter-spacing: -.04em; }
.google-login > p { color: #586d60; }
.google-button { min-height: 56px; border: 1px solid #dce9dc; border-radius: 14px; background: #f8fcf6; box-shadow: 5px 6px 13px #aec3b063, -4px -4px 12px #ffffffbd; }
.google-button:hover { background: #e9f4e8; }
@media (max-width: 780px) {
  .login aside { min-height: 230px; }
  .login aside h1 { font-size: 42px; }
  .login main { padding: 25px 5% 55px; }
  .google-login { width: min(100%, 460px); padding: 27px; }
}

/* Keep the academy mark and student account control consistent on every page. */
.app-head .brand {
  min-width: 0;
  gap: 0;
  color: #193c2d;
  line-height: 1;
  text-decoration: none;
}
.app-head .brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-right: 10px;
  border: 1px solid #c6a66a;
  border-radius: 50%;
  background: #080808;
  object-fit: cover;
  box-shadow: 0 2px 8px #193c2d24;
  transform: none;
  transition: none;
}
.app-head .brand:hover img { transform: none; box-shadow: 0 2px 8px #193c2d24; }
.app-head .account-link {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 3px 12px 3px 3px;
  border: 1px solid #d9e6d9;
  border-radius: 999px;
  background: #fff;
  color: #193c2d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 3px 10px #193c2d12;
}
.app-head .account-link:hover { border-color: #9fc5a7; background: #f8fcf7; }
.app-head .account-link:focus-visible { outline: 2px solid #2f7852; outline-offset: 3px; }
.app-head .account-link > span:last-child {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-head .account-link .avatar {
  box-sizing: border-box;
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  border-radius: 50%;
  background: #dcebd9;
  color: #193c2d;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
}
.app-head .account-link .avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
@media (max-width: 600px) {
  .app-head .brand { font-size: 14px; }
  .app-head .brand img { width: 40px; height: 40px; flex-basis: 40px; margin-right: 8px; }
  .app-head .account-link {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 3px;
    justify-content: center;
  }
  .app-head .account-link > span:last-child { display: none; }
}
