.academy.is-course { height:100vh; height:100dvh; display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; }
.is-course > .tabs { position:static; }
.academy.is-course #workspace { display:flex; flex-direction:column; min-height:0; padding-bottom:0; }
.is-course .view-head { flex:none; }
.is-course .course-stream { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:none; }
.is-course .course-stream::after { content:""; display:block; height:var(--end-space, 0px); }
.is-course .map-area { padding-inline:.35rem; }
.install-sheet { width:min(calc(100% - 2rem),25rem); max-height:85dvh; padding:1.5rem; border:1px solid var(--edge); border-radius:1.35rem; color:var(--ink); }
.install-sheet::backdrop { background:#17365370; }
.install-sheet h2 { font-size:1.55rem; margin:.6rem 0; }
.wallet-detail { line-height:1.45; }
.install-sheet .primary { width:100%; margin-top:1rem; }
.reward-art { display:flex; align-items:center; justify-content:center; height:6rem; }
.reward-art img { width:7.3rem; height:6rem; object-fit:contain; }
.reward-gem { width:2.4rem; height:2.4rem; }
@media(prefers-reduced-motion:no-preference) {
 .install-sheet[open] .reward-art img { animation:reward-hop .6s ease-out; }
 .install-sheet[open] .reward-gem { animation:reward-coin .65s ease-out; }
 @keyframes reward-hop { 40% { transform:translate(5px,-8px) rotate(3deg); } }
 @keyframes reward-coin { from { opacity:0; transform:translate(-12px,12px) rotate(-35deg) scale(.8); } }
}
.auth-page.signin-dialog { width:min(calc(100% - 2.5rem),23rem); max-height:none; margin:clamp(1rem,6vh,4rem) auto; padding:0; border:0; box-shadow:none; overflow:visible; }
.auth-cat { display:block; width:9.5rem; height:7.5rem; object-fit:contain; margin:0 auto .8rem; }
.auth-page h1 { font-size:clamp(1.9rem,6vw,2.6rem); color:var(--ink-deep); text-align:center; margin-bottom:1.6rem; }
.email-change,.social-links a { color:var(--blue-deep); display:inline-flex; align-items:center; min-height:44px; }
.profile-identity p { overflow-wrap:anywhere; }
.social-links h2 { font-size:1.24rem; margin:1.5rem 0 .4rem; }
.social-links ul { padding:0; list-style:none; margin:0; }
.social-links li { min-height:3rem; display:flex; justify-content:space-between; align-items:center; gap:.5rem; border-bottom:1px solid var(--edge); }
.linked { color:#326849; }
.account-error,#page-error { color:#982137; }

.is-course .course-stream::-webkit-scrollbar { display:none; }
.load-more { display:block; margin:1.3rem auto; min-width:12rem; }
.study-stats { position:relative; display:flex; gap:clamp(.05rem,1vw,.65rem); align-items:center; z-index:6; }
.study-stats > button { display:flex; align-items:center; justify-content:center; gap:.3rem; min-height:44px; min-width:44px; padding:0 .32rem; border-radius:.65rem; font-variant-numeric:tabular-nums; }
.study-stats svg { width:1.5rem; height:1.5rem; }
.study-stats [data-stat=streak] { color:#b64e18; }
.study-stats [data-stat=diamonds] { color:#087bb4; }
.study-stats [aria-expanded=true] { background:#edf5fb; }
#stat-detail { position:absolute; top:calc(100% + .4rem); right:0; width:min(19rem,calc(100vw - 2rem)); border:1px solid #d5e0ec; border-radius:1rem; padding:1rem; background:#fff; box-shadow:0 .4rem 1.4rem #17365318; }
#stat-detail h2 { font-size:1.18rem; margin:0 0 .45rem; }
#stat-detail p { line-height:1.45; color:var(--quiet); margin:.35rem 0; }
#stat-detail progress { accent-color:var(--blue); width:100%; height:.6rem; }
.visit-week { display:flex; justify-content:space-between; margin:.8rem 0 0; padding:0; list-style:none; text-align:center; font-size:.8rem; }
.visit-week span { display:grid; place-items:center; margin-top:.3rem; width:1.7rem; height:1.7rem; border-radius:50%; background:#f0f3f5; color:#667284; }
.visit-week [aria-label="Был вход"] { background:#ffe5bd; color:#9b4713; font-weight:800; }
.install-link { min-height:44px; color:var(--blue-deep); text-align:left; }
.tabs a svg { width:1.72rem; height:1.72rem; }
@media (max-width:375px) { .app-header .brand img { width:5.7rem; } .study-stats > button { padding:0 .15rem; gap:.18rem; } }

.earned-gems { display:flex; align-items:center; justify-content:center; gap:.3rem; color:#087bb4; font-weight:700; }
.earned-gems .reward-gem { width:1.35rem; height:1.35rem; }

@font-face {
  font-family: 'Nunito Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/nunito-800-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/nunito-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-052F,U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-024F,U+2000-206F;
}
.by-path { width:clamp(5.3rem,20vw,8.75rem); height:5.15rem; max-height:none; flex:none; scale:1.18; margin-inline:1.1rem .75rem; }
.profile-summary,.social-links,.email-change,.settings-legal,.study-stats { font-family:"Golos Text",system-ui,sans-serif; }
.profile-summary { border:0; margin:.6rem 0 0; padding-block:1rem .7rem; }
main:has(.profile-summary) > .panel-title,.profile-name h2,.social-links h2 { font-family:"Nunito Display",Nunito,system-ui,sans-serif; font-weight:820; letter-spacing:-.025em; }
.profile-identity p { margin-top:.3rem; }
.social-links { margin-block:1.75rem .9rem; }
.social-links h2 { font-size:1.35rem; margin-bottom:.65rem; }
.social-links li { min-height:4.15rem; }
.social-name { display:flex; align-items:center; gap:.68rem; font-weight:620; }
.provider-icon { width:2.45rem; height:2.45rem; display:grid; place-items:center; border-radius:.8rem; }
.provider-icon.telegram { background:#209eda; border:0; box-shadow:none; }
.provider-icon.google { background:#fff; border:1px solid #dae2ec; }
.provider-icon.yandex { background:#fff0eb; }
.provider-icon img { object-fit:contain; }
.email-change,.social-links li a {
  justify-content:center; gap:.42rem; padding:.45rem .88rem; border-radius:.78rem;
  font-size:.88rem; font-weight:650; line-height:1.2; text-decoration:none;
  background:#e9f2ff; color:#2156a9; border:1px solid #c1d8f6; box-shadow:0 2px 0 #c1d8f6;
}
.email-change { background:white; border-color:#cddae9; box-shadow:0 2px 0 #cddae9; }
.email-change svg { width:1rem; height:1rem; }
.social-links .linked { color:#397258; font-size:.85rem; font-weight:600; }
.settings-legal.legal-links {
  display:flex; justify-content:center; flex-wrap:wrap; gap:.1rem 1.25rem;
  margin:1.65rem 0 .4rem; border-top:1px solid var(--edge); padding-top:.6rem;
}
.settings-legal.legal-links a {
  text-decoration:none; text-transform:uppercase; color:#657284; font-size:.72rem;
  letter-spacing:.045em; font-weight:780; min-height:44px;
}
@media (hover:hover) {
  .social-links li a:hover,.email-change:hover { background:#dcecff; }
  .settings-legal.legal-links a:hover { color:var(--ink); }
}
.study-stats > button strong { font-family:"Nunito Display",Nunito,system-ui,sans-serif; font-weight:900; font-size:1rem; }
#stat-detail { display:flow-root; width:min(21rem,calc(100vw - 2rem)); padding:1.15rem; }
#stat-detail[hidden] { display:none; }
#stat-detail h2 { font-family:"Nunito Display",Nunito,system-ui,sans-serif; font-weight:900; letter-spacing:-.025em; line-height:1.15; font-size:1.38rem; }
#stat-detail p { font-family:"Golos Text",system-ui,sans-serif; font-size:.89rem; line-height:1.5; }
.stat-illustration { float:right; margin:0 0 .45rem .7rem; width:4.85rem; height:4.85rem; object-fit:contain; }
#stat-detail[data-kind="diamonds"] .stat-illustration { float:left; margin:0 .9rem .35rem 0; }
#stat-detail[data-kind="diamonds"] h2 { color:#116a99; }
#stat-detail[data-kind="streak"] { background:#fff6e2; border-color:#eddcb7; }
#stat-detail[data-kind="streak"] h2 { color:#9c4a0d; }
#stat-detail[data-kind="level"] { background:#f2f7ff; }
#stat-detail progress { clear:both; display:block; margin-top:.85rem; }
.visit-week { clear:both; padding:.65rem .45rem; border-radius:.7rem; background:#fff; }
.install-link { clear:both; display:block; font-family:inherit; font-weight:650; }
