/* Shared application component recipes. New screens reuse these recipes. */
:root { --ds-frame-gap: var(--ds-layout-viewport-gap); --ds-shell-radius: var(--ds-radius-shell); --ds-panel-radius: var(--ds-radius-panel); --ds-card-radius: var(--ds-radius-card); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: default; }
button, input, textarea { border-radius: 0; }
button { background: none; border: 0; }
:focus-visible { outline: 3px solid var(--ds-color-line); outline-offset: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: var(--ds-font-weight-medium); }
.icon { display: inline-block; width: var(--ds-size-icon); height: var(--ds-size-icon); flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: var(--ds-space-3) 18px; border-radius: var(--ds-radius-small); }
.skip-link:focus { top: 16px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 35px 18px 22px; border-right: 1px solid var(--ds-color-line); z-index: 40; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding-left: var(--ds-space-4); width: fit-content; font-family: var(--ds-font-sans); font-size: var(--ds-font-size-page); line-height: 1; letter-spacing: -1.9px; }
.brand-symbol { display: flex; width: 31px; height: 32px; position: relative; }
.brand-symbol span { position: absolute; bottom: 0; width: 20px; height: 30px; border: 1.7px solid var(--ds-color-ink); border-bottom: 0; border-radius: 20px 20px 0 0; }
.brand-symbol span:first-child { left: 0; }
.brand-symbol span:last-child { left: 11px; height: 23px; }
.primary-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item.active { font-weight: var(--ds-font-weight-medium); }
.nav-soon { margin-left: auto; font-size: var(--ds-font-size-caption); border: 1px solid var(--ds-color-line); border-radius: var(--ds-radius-small); padding: 1px 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 44px; }
.sidebar-bottom .nav-item { font-size: var(--ds-font-size-caption); min-height: 42px; }
.workspace { margin-left: 236px; min-width: 0; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 43px; border-bottom: 1px solid var(--ds-color-line); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: var(--ds-space-4); }
.topbar-left { font-size: var(--ds-font-size-secondary); min-width: 0; }
.topbar-divider { font-size: var(--ds-font-size-secondary); }
.topbar-right { gap: 18px; }
.demo-badge { font-size: var(--ds-font-size-caption); border: 1px solid var(--ds-color-line); padding: 3px var(--ds-space-2); border-radius: var(--ds-radius-card); letter-spacing: .3px; }
.avatar { display: grid; place-items: center; border: 3px solid var(--ds-color-line); width: 36px; height: 36px; border-radius: 50%; font-size: var(--ds-font-size-caption); }
.icon-button { display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; min-width: 40px; height: 40px; transition: background var(--ds-motion-fast); }
.menu-toggle { display: none; }
main { max-width: 1510px; margin: 0 auto; padding: 37px 43px 34px; }
.eyebrow { display: block; font-size: var(--ds-font-size-caption); letter-spacing: 1.65px; font-weight: var(--ds-font-weight-medium); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-3); border-radius: var(--ds-radius-button); padding: var(--ds-space-3) var(--ds-space-6); min-height: var(--ds-size-button); font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); line-height: 1.4; border: var(--ds-border-width) solid var(--ds-component-button-secondary-border); box-shadow: var(--ds-shadow-button-secondary); transition: background var(--ds-motion-fast), box-shadow var(--ds-motion-fast), transform var(--ds-motion-fast); }
.button .icon { width: 17px; height: 17px; }
/* Кнопки не сдвигаются при наведении и нажатии: нажатие показывает только грань, которая становится тоньше */
.button-small { padding: var(--ds-space-2) var(--ds-space-5); min-height: var(--ds-size-control); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-4); margin-bottom: 19px; }
.section-heading h2 { font-size: var(--ds-font-size-lead); letter-spacing: -.45px; }
.section-heading p { font-size: var(--ds-font-size-secondary); margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: var(--ds-font-size-caption); line-height: 1.4; padding: var(--ds-space-1) 7px; border-radius: var(--ds-radius-small); width: fit-content; white-space: nowrap; }
.status-dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--ds-font-size-secondary); border-top: 1px solid var(--ds-color-line); padding-top: 14px; margin-top: auto; }
.card-link .icon { width: 17px; height: 17px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; font-size: var(--ds-font-size-secondary); text-align: left; }
.lesson-tabs { display: flex; gap: 27px; border-bottom: 1px solid var(--ds-color-line); }
.lesson-tab { display: flex; align-items: center; gap: 7px; font-size: var(--ds-font-size-secondary); padding: var(--ds-space-3) 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lesson-tab .icon { width: 16px; height: 16px; }
.lesson-panel { padding: var(--ds-space-6) 0 0; }
.lesson-panel h3 { font-size: var(--ds-font-size-secondary); margin-bottom: var(--ds-space-3); }
.lesson-panel > p { font-size: var(--ds-font-size-secondary); line-height: 1.9; max-width: 600px; }
.progress-track { width: 100%; height: 4px; border-radius: var(--ds-radius-small); overflow: hidden; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; transition: width var(--ds-motion-progress); }
.field-description { font-size: var(--ds-font-size-secondary); margin-bottom: var(--ds-space-4); }
textarea { width: 100%; min-height: 160px; resize: vertical; border: 1px solid var(--ds-color-line); border-radius: var(--ds-radius-small); padding: var(--ds-space-4); font-size: var(--ds-font-size-tag); line-height: 1.8; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.mentor-journey { margin-top: 34px; }
.journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--ds-radius-control); overflow: hidden; }
.journey-step { padding: var(--ds-space-6) 23px; position: relative; transition: background var(--ds-motion-fast); }
.journey-step + .journey-step { border-left: 1px solid var(--ds-color-line); }
.journey-number { display: block; font-family: var(--ds-font-sans); font-size: var(--ds-font-size-page); line-height: 1; margin-bottom: 18px; }
.journey-state { font-size: var(--ds-font-size-caption); text-transform: uppercase; letter-spacing: 1.6px; }
.journey-step h3 { font-size: var(--ds-font-size-body); letter-spacing: -.4px; margin-top: 7px; }
.journey-step p { font-size: var(--ds-font-size-secondary); line-height: 1.8; margin: var(--ds-space-2) 0 var(--ds-space-5); }
.journey-step .card-link { border: 0; padding-top: 0; font-size: var(--ds-font-size-caption); }
.future-label { display: flex; align-items: center; gap: 7px; font-size: var(--ds-font-size-caption); }
.future-label .icon { width: 15px; height: 15px; }
.modal-backdrop { position: fixed; inset: 0; backdrop-filter: blur(5px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--ds-space-6); overflow: auto; }
.modal { border-radius: var(--ds-radius-card); max-width: 470px; width: 100%; padding: var(--ds-space-9); position: relative; max-height: calc(100dvh - 48px); overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-close .icon { width: 19px; height: 19px; }
.modal-emblem { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--ds-radius-control); margin-bottom: var(--ds-space-5); }
.modal .eyebrow { font-size: var(--ds-font-size-caption); margin-bottom: 10px; }
.modal h2 { font-family: var(--ds-font-sans); font-size: var(--ds-font-size-page); line-height: 1.15; letter-spacing: -.7px; margin-bottom: 14px; }
.modal > p { font-size: var(--ds-font-size-secondary); line-height: 1.9; margin-bottom: 21px; }
.modal form label { display: block; font-size: var(--ds-font-size-secondary); margin-bottom: var(--ds-space-2); }
.modal input { width: 100%; border: 1px solid var(--ds-color-line); border-radius: var(--ds-radius-small); padding: var(--ds-space-3) 13px; font-size: var(--ds-font-size-secondary); }
.modal form .button { width: 100%; margin-top: 17px; }
.profile-note { font-size: var(--ds-font-size-secondary); line-height: 1.8; border-top: 1px solid var(--ds-color-line); padding-top: 17px; margin-top: 22px; }
.help-links { display: flex; flex-direction: column; gap: var(--ds-space-2); margin-bottom: 23px; }
.help-links a { display: flex; align-items: center; gap: 10px; padding: 14px 13px; border-radius: var(--ds-radius-small); font-size: var(--ds-font-size-secondary); transition: background var(--ds-motion-fast); }
.help-links a .icon:first-child { width: 17px; height: 17px; }
.help-links a .icon:last-child { width: 15px; height: 15px; margin-left: auto; }
.support-pending { display: flex; gap: 11px; align-items: center; font-size: var(--ds-font-size-secondary); line-height: 1.8; }
.support-pending > .icon { width: 19px; height: 19px; }
.toast { position: fixed; bottom: 24px; left: calc(50% + 118px); transform: translate(-50%, 14px); z-index: 120; opacity: 0; pointer-events: none; transition: opacity var(--ds-motion-fast), transform var(--ds-motion-fast); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.sidebar-scrim { display: none; }
.noscript-message { position: fixed; inset: 20% 10% auto; z-index: 300; padding: var(--ds-space-10); border: 1px solid var(--ds-color-line); border-radius: var(--ds-radius-small); }
@media (min-width: 1550px) {
main { padding-top: 44px; }
}
@media (max-width: 1250px) {
.sidebar { width: 215px; padding-inline: 13px; }
.workspace { margin-left: 215px; }
.brand { font-size: var(--ds-font-size-page); }
.topbar { padding-inline: 30px; }
main { padding: 31px 30px; }
.toast { left: calc(50% + 107px); }
}
@media (max-width: 1060px) {
.journey-step { padding: var(--ds-space-5) var(--ds-space-4); }
.journey-step h3 { font-size: var(--ds-font-size-body); }
}
@media (max-width: 820px) {
.sidebar { width: 250px; transform: translateX(-100%); transition: transform var(--ds-motion-normal); padding-top: 30px; }
.menu-open .sidebar { transform: translateX(0); }
.sidebar-scrim:not([hidden]) { display: block; position: fixed; inset: 0; width: auto; height: auto; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; transform: none; z-index: var(--ds-layer-navigation-scrim); backdrop-filter: blur(2px); }
.workspace { margin-left: 0; }
.menu-toggle { display: inline-flex; margin-left: -10px; }
.topbar { height: 66px; padding-inline: var(--ds-space-7); }
.topbar-left { gap: var(--ds-space-3); }
.topbar-right { gap: var(--ds-space-3); }
main { padding: var(--ds-space-7); }
.toast { left: 50%; }
}
@media (max-width: 680px) {
.topbar { padding-inline: 21px; }
.topbar-label, .topbar-divider { display: none; }
.topbar-left { gap: 10px; }
main { padding: 25px 21px; }
.eyebrow { font-size: var(--ds-font-size-caption); letter-spacing: 1.5px; }
.card-link { font-size: var(--ds-font-size-secondary); padding-top: var(--ds-space-3); }
.lesson-tab { min-height: 46px; font-size: var(--ds-font-size-secondary); }
.lesson-panel > p { font-size: var(--ds-font-size-tag); }
textarea:not(.ds-field), .modal input:not(.ds-field) { font-size: var(--ds-font-size-body); }
.section-heading h2 { font-size: var(--ds-font-size-lead); }
.section-heading p { font-size: var(--ds-font-size-secondary); }
.mentor-journey { margin-top: var(--ds-space-7); }
.journey-grid { grid-template-columns: 1fr; }
.journey-step { padding: 23px var(--ds-space-6) 23px 72px; }
.journey-step + .journey-step { border-left: none; border-top: 1px solid var(--ds-color-line); }
.journey-number { position: absolute; top: 27px; left: 22px; font-size: var(--ds-font-size-page); }
.journey-step h3 { font-size: var(--ds-font-size-lead); }
.journey-step p { font-size: var(--ds-font-size-secondary); margin-bottom: var(--ds-space-4); }
.journey-step .card-link { font-size: var(--ds-font-size-caption); }
.journey-state { font-size: var(--ds-font-size-caption); }
.modal-backdrop { padding: 18px; }
.modal { padding: 30px var(--ds-space-6); }
.modal h2 { font-size: var(--ds-font-size-page); }
.modal form label { font-size: var(--ds-font-size-secondary); }
.help-links a { font-size: var(--ds-font-size-secondary); min-height: 49px; }
.toast { bottom: 18px; }
}
@media (max-width: 370px) {
main { padding-inline: var(--ds-space-4); }
.topbar { padding-inline: var(--ds-space-4); }
.topbar-right { gap: var(--ds-space-2); }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { transition: none !important; animation: none !important; }
}
.eyebrow { font-size: var(--ds-font-size-caption) !important; letter-spacing: 1.3px; }
.status { font-size: var(--ds-font-size-caption); }
.nav-soon, .demo-badge { font-size: var(--ds-font-size-caption); }
.card-link { font-size: var(--ds-font-size-secondary); }
@media (max-width: 680px) {
.card-link { font-size: var(--ds-font-size-secondary); }
.eyebrow { font-size: var(--ds-font-size-caption) !important; }
}
.home-view .workspace { min-height: 100dvh; display: flex; flex-direction: column; }
.home-view .topbar { height: 70px; flex: 0 0 70px; }
.home-view main { width: 100%; max-width: none; margin: 0; flex: 1; padding: var(--ds-space-6) 35px; display: flex; flex-direction: column; justify-content: flex-start; }
.profile-avatar { display: flex; justify-content: center; align-items: center; position: relative; width: 84px; height: 84px; margin: 19px auto 15px; border: 5px solid var(--ds-color-line); outline: 1px solid var(--ds-color-line); border-radius: 50%; font-family: var(--ds-font-sans); font-size: var(--ds-font-size-page); transition: background var(--ds-motion-fast); }
.profile-avatar > .icon { width: 32px; height: 32px; stroke-width: 1.2; }
.avatar-spark { position: absolute; right: -7px; bottom: -1px; border: 3px solid var(--ds-color-line); width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: var(--ds-font-size-body); font-family: var(--ds-font-sans); }
.course-card-access-link:hover { text-decoration: underline; text-underline-offset: var(--ds-space-1); }
.ds-course-card { display: flex; flex-direction: column; gap: var(--ds-space-3); padding: var(--ds-space-3); min-width: 0; }
.course-card-active { background: var(--ds-component-courseCard-active-background); color: var(--ds-component-courseCard-active-foreground); }
.course-card-inactive { background: var(--ds-component-courseCard-inactive-background); color: var(--ds-component-courseCard-inactive-foreground); border-color: var(--ds-component-courseCard-inactive-border); border-bottom-color: var(--ds-component-card-edge); box-shadow: var(--ds-shadow-inactive-card); }
.program-card-cover { display: grid; place-items: center; position: relative; isolation: isolate; height: var(--ds-size-program-cover); overflow: hidden; flex-shrink: 0; border-radius: var(--ds-radius-media); background: var(--ds-component-courseCard-inactive-coverBackground); }
.program-card-cover > .ds-program-artwork { width: var(--ds-size-program-artwork-cover); height: var(--ds-size-program-artwork-cover); opacity: var(--ds-component-courseCard-inactive-artOpacity); filter: grayscale(var(--ds-component-courseCard-inactive-artGrayscale)); }
.program-card-cover > .lesson-preview.lesson-preview-compact { width: 100%; height: 100%; min-height: 0; border-radius: inherit; }
.lesson-preview-compact .lesson-preview-play { top: 43%; width: var(--ds-space-10); height: var(--ds-space-10); }
.lesson-preview-compact .lesson-preview-play .icon { width: var(--ds-space-5); height: var(--ds-space-5); }
.lesson-preview-compact .lesson-preview-caption { left: var(--ds-space-3); bottom: var(--ds-space-2); max-width: calc(100% - var(--ds-space-6)); }
.lesson-preview-compact .lesson-preview-caption > span { margin-top: 0; font-size: var(--ds-font-size-caption); }
.lesson-preview-compact.has-poster .lesson-preview-caption { padding: var(--ds-space-1) var(--ds-space-2); }
.access-badge { position: absolute; top: var(--ds-space-2); right: var(--ds-space-2); z-index: 1; font-size: var(--ds-font-size-caption); pointer-events: none; }
.course-card-copy { display: grid; gap: var(--ds-space-2); }
.course-card-copy h3 { font-size: var(--ds-font-size-body); line-height: var(--ds-font-line-tight); overflow-wrap: anywhere; }
.course-card-meta { display: flex; align-items: center; align-content: start; justify-content: space-between; flex-wrap: wrap; gap: var(--ds-space-1) var(--ds-space-2); min-height: var(--ds-space-8); }
.course-card-meta p { font-size: var(--ds-font-size-secondary); line-height: var(--ds-font-line-body); color: var(--ds-color-text-secondary); }
.course-card-all-lessons { display: inline-flex; align-items: center; min-height: var(--ds-space-6); font-size: var(--ds-font-size-caption); text-decoration: underline; text-underline-offset: var(--ds-space-1); }
.course-card-actions { display: flex; align-items: stretch; min-height: var(--ds-size-control); margin-top: auto; }
.course-card-actions .button { width: 100%; min-width: 0; font-size: var(--ds-font-size-caption); }
.course-card-access-link { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-2); width: 100%; min-height: var(--ds-size-control); padding: var(--ds-space-2); font-size: var(--ds-font-size-caption); color: var(--ds-component-courseCard-inactive-foreground); }
.course-card-access-link .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.course-card-access-link:hover { text-decoration: underline; text-underline-offset: var(--ds-space-1); }

@media (min-width: 1550px) {
.program-card-cover { height: var(--ds-size-program-cover-wide); }
.course-card-copy h3 { font-size: var(--ds-font-size-body); }
}
@media (max-width: 700px) {
}

.lesson-preview { display: block; position: relative; isolation: isolate; flex: 1; min-height: var(--ds-size-lesson-preview-min); overflow: hidden; border-radius: var(--ds-radius-item); background: var(--ds-component-lessonPreview-background); color: var(--ds-component-lessonPreview-foreground); }
.lesson-preview-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.lesson-preview-number { position: absolute; top: var(--ds-space-4); font-size: var(--ds-font-size-caption); padding: var(--ds-space-2) var(--ds-space-3); border-radius: var(--ds-radius-pill); background: var(--ds-color-background-surface); color: var(--ds-color-text-primary); }
.lesson-preview-number { left: var(--ds-space-4); }
.lesson-preview-play { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: var(--ds-space-16); height: var(--ds-space-16); border: 0; border-radius: var(--ds-radius-pill); background: var(--ds-component-lessonPreview-playBackground); color: var(--ds-component-lessonPreview-playForeground); box-shadow: var(--ds-shadow-button-icon); transition: transform var(--ds-motion-fast), box-shadow var(--ds-motion-fast); }
.lesson-preview-play .icon { width: var(--ds-space-7); height: var(--ds-space-7); margin-left: var(--ds-space-1); }
.lesson-preview:hover .lesson-preview-play { box-shadow: var(--ds-shadow-button-icon-hover); }
.lesson-preview:active .lesson-preview-play { box-shadow: var(--ds-shadow-button-icon-pressed); }
.lesson-preview-caption { position: absolute; left: var(--ds-space-6); bottom: var(--ds-space-5); max-width: calc(100% - var(--ds-space-12)); }
.lesson-preview-caption h4 { margin: 0; font-size: var(--ds-font-size-page); line-height: var(--ds-font-line-tight); font-weight: var(--ds-font-weight-medium); }
.lesson-preview-caption > span { display: block; margin-top: var(--ds-space-2); font-size: var(--ds-font-size-caption); color: var(--ds-color-text-secondary); }
.lesson-preview.has-poster .lesson-preview-caption { padding: var(--ds-space-3); border-radius: var(--ds-radius-control); background: var(--ds-component-courseCard-active-background); }
.access-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: var(--ds-radius-small); white-space: nowrap; font-size: var(--ds-font-size-caption); line-height: 1; flex-shrink: 0; }
.access-badge .icon { width: 12px; height: 12px; }
@media (min-width: 1550px) {
.home-view main { max-width: none; padding: 30px 45px; }
.profile-avatar { width: 96px; height: 96px; margin-top: var(--ds-space-7); }
}
@media (min-width: 1550px) and (min-height: 900px) {
.access-badge { font-size: var(--ds-font-size-caption); padding: 7px 10px; }
.profile-avatar { width: 120px; height: 120px; font-size: var(--ds-font-size-display); }
}
@media (min-width: 821px) and (max-height: 760px) {
.home-view main { padding-top: 18px; padding-bottom: 18px; }
}
@media (max-width: 1180px) and (min-width: 701px) {
.home-view main { padding-left: 25px; padding-right: 25px; }
.access-badge { font-size: var(--ds-font-size-caption); padding: 5px 6px; }
}
@media (max-width: 960px) and (min-width: 821px) {
.home-view main { padding-inline: var(--ds-space-5); }
}
@media (max-width: 820px) {
.home-view .topbar { height: 66px; flex-basis: 66px; }
.home-view main { padding-top: var(--ds-space-6); padding-bottom: var(--ds-space-6); }
}
@media (max-width: 700px) {
.lesson-preview { flex: none; min-height: calc(var(--ds-space-16) * 4); }
.lesson-preview-number { top: var(--ds-space-3); font-size: var(--ds-font-size-caption); }
.lesson-preview-number { left: var(--ds-space-3); }
.lesson-preview-caption { left: var(--ds-space-4); bottom: var(--ds-space-4); max-width: calc(100% - var(--ds-space-8)); }
.lesson-preview-caption h4 { font-size: var(--ds-font-size-title); }
.lesson-preview-caption > span { font-size: var(--ds-font-size-caption); }
.home-view main { padding: 23px 21px; justify-content: flex-start; }
.profile-avatar { grid-column: 1; grid-row: 1/3; width: 66px; height: 66px; margin: 0; font-size: var(--ds-font-size-page); }
.profile-avatar > .icon { width: 26px; height: 26px; }
.avatar-spark { width: 23px; height: 23px; font-size: var(--ds-font-size-secondary); }
.access-badge { font-size: var(--ds-font-size-caption); }
}
@media (max-width: 370px) {
.home-view main { padding-inline: var(--ds-space-4); }
}

/* Theme roles */
html { min-height: 100%; background: var(--ds-color-canvas); }
body { min-height: 100dvh; padding: var(--ds-frame-gap); background: var(--ds-color-background-canvas); }
.sidebar { inset: var(--ds-frame-gap) auto var(--ds-frame-gap) var(--ds-frame-gap); background: var(--ds-color-ink); color: var(--ds-color-surface); border-right: 0; border-radius: var(--ds-layout-viewport-radius); }
.workspace { min-height: calc(100dvh - 2 * var(--ds-frame-gap)); background: var(--ds-color-background-canvas); border-radius: var(--ds-layout-viewport-radius); padding-top: 1px; }
.home-view .workspace { min-height: calc(100dvh - 2 * var(--ds-frame-gap)); }
/* Шапка — три колонки: аватарка, поиск, монетки с уведомлениями. Боковые колонки не уже своего содержимого: когда места мало, сжимается поиск, а не наезжает на монетки */
.topbar, .home-view .topbar { position: relative; z-index: var(--ds-layer-header); display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, var(--ds-size-header-search)) minmax(max-content, 1fr); gap: var(--ds-space-6); height: var(--ds-size-topbar); flex: 0 0 var(--ds-size-topbar); margin: var(--ds-space-3) var(--ds-space-3) 0 calc(var(--ds-space-3) - var(--ds-size-rail)); padding: var(--ds-space-2); border: 0; border-radius: 0; background: transparent; }
.topbar-left, .topbar-right { gap: var(--ds-space-2); }
.topbar-right { justify-content: flex-end; min-width: 0; }
.header-control { width: var(--ds-size-square-button); height: var(--ds-size-square-button); border-radius: var(--ds-radius-icon-button); background: var(--ds-component-iconButton-background-default); color: var(--ds-component-iconButton-foreground); border: 0; box-shadow: var(--ds-shadow-button-icon); }
.topbar .menu-toggle { background: var(--ds-component-iconButton-background-default); border-radius: var(--ds-radius-icon-button); }
.header-control:hover { background: var(--ds-component-iconButton-background-hover); }
.header-control[aria-expanded="true"] { background: var(--ds-color-palette-sun-50); }
.header-notifications, .header-profile { position: relative; }
.header-popover { position: absolute; top: calc(100% + var(--ds-space-3)); width: var(--ds-size-header-panel); max-width: calc(100vw - var(--ds-space-8)); padding: var(--ds-space-6); background: var(--ds-color-background-surface); border: var(--ds-border-width) solid var(--ds-color-border-default); border-radius: var(--ds-radius-panel); box-shadow: var(--ds-shadow-drawer); z-index: var(--ds-layer-popover); }
.header-notifications-panel { right: 0; }
/* Открытая панель поднимает шапку над боковым меню, иначе меню её перекрывает */
.topbar:has(.header-popover:not([hidden])) { z-index: var(--ds-layer-popover); }
.header-profile-panel { left: 0; display: grid; gap: var(--ds-space-4); padding: var(--ds-space-4); }
/* Аватарка ученика вместо фирменного знака: зелёная квадратная кнопка с первой буквой имени — скругление radius.icon-button, как у кнопок шапки.
   Без тени и нижней грани: плоский зелёный знак. Наведение мышью раскрывает боковое меню (createNavigationController) —
   его плашка профиля встаёт ровно на место аватарки */
.topbar .header-avatar { width: var(--ds-size-square-button); height: var(--ds-size-square-button); flex-shrink: 0; border: 0; border-radius: var(--ds-radius-icon-button); background: var(--ds-color-brand-primary); color: var(--ds-color-text-inverse); font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); box-shadow: none; transition: background var(--ds-motion-fast), box-shadow var(--ds-motion-fast); }
.topbar .header-avatar:hover { background: var(--ds-component-button-primary-background-hover); }
.topbar .header-avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--ds-color-background-brandPrimary-subtle); }
/* Имя подсвечено светло-зелёной плашкой */
.header-profile-card { display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-3); border-radius: var(--ds-radius-control); background: var(--ds-color-background-brandPrimary-subtle); }
.header-profile-initial { display: grid; place-items: center; flex: 0 0 auto; width: var(--ds-size-square-button); height: var(--ds-size-square-button); border-radius: var(--ds-radius-icon-button); background: var(--ds-color-brand-primary); color: var(--ds-color-text-inverse); font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
/* Своя аватарка в квадрате шапки и меню профиля вместо первой буквы: скругление — как у квадрата */
.has-photo { overflow: hidden; padding: 0; }
.avatar-photo { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
/* Фото в окне профиля: превью слева, кнопки и пояснение справа */
.profile-photo { display: flex; align-items: center; gap: var(--ds-space-4); margin-bottom: var(--ds-space-5); }
.profile-photo-copy { display: grid; gap: var(--ds-space-2); min-width: 0; }
.profile-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-3); }
.modal form .profile-photo-actions .button { width: auto; margin-top: 0; }
.profile-photo-note { font-size: var(--ds-font-size-secondary); }
.header-profile-text { display: grid; gap: 2px; min-width: 0; }
.header-profile-label { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-tag); }
.header-profile-name { font-size: var(--ds-font-size-body); overflow-wrap: anywhere; }
.header-profile-edit { width: 100%; }
/* «Роль» у администратора · RoleSelect: строкой во всю ширину плашки под аватаркой и именем — в меню аватарки и в плашке бокового меню;
   подпись «Роль» и компактный выпадающий список, название роли помещается целиком */
.header-profile-card:has(> .view-role), .sidebar-profile:has(> .view-role) { flex-wrap: wrap; }
.view-role { flex: 1 0 100%; display: flex; align-items: center; gap: var(--ds-space-2); min-width: 0; }
.view-role .ds-label { flex: none; color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-tag); font-weight: var(--ds-font-weight-normal); }
.view-role .ds-select { flex: 1 1 auto; min-width: 0; }
.view-role .ds-field { min-height: var(--ds-size-segment); padding-block: 0; font-size: var(--ds-font-size-secondary); }
/* Выбор потока в шапке у администратора: значок и компактный список */
.view-stream { display: flex; align-items: center; gap: var(--ds-space-2); min-width: 0; color: var(--ds-color-text-secondary); }
.view-stream .ds-select { min-width: 0; }
.view-stream .ds-field { min-height: var(--ds-size-segment); max-width: 14rem; padding-block: 0; font-size: var(--ds-font-size-secondary); }
/* На телефоне в шапке нет места под список: квадратная кнопка со значком, как соседние; системный список открывается по нажатию */
@media (max-width: 820px) {
  .view-stream { position: relative; flex: none; justify-content: center; width: var(--ds-size-square-button); height: var(--ds-size-square-button); border-radius: var(--ds-radius-icon-button); background: var(--ds-component-iconButton-background-default); color: var(--ds-component-iconButton-foreground); box-shadow: var(--ds-shadow-button-icon); }
  .view-stream:hover { background: var(--ds-component-iconButton-background-hover); box-shadow: var(--ds-shadow-button-icon-hover); }
  .view-stream:has(.ds-field:focus-visible) { outline: 3px solid var(--ds-color-focus-ring); outline-offset: 2px; }
  .view-stream .ds-select { position: absolute; inset: 0; }
  .view-stream .ds-select > .icon { display: none; }
  .view-stream .ds-field { width: 100%; height: 100%; max-width: none; min-height: 0; opacity: 0; cursor: pointer; }
}
.header-notifications-panel h2 { font-size: var(--ds-font-size-body); }
.header-notifications-empty { display: grid; justify-items: center; gap: var(--ds-space-3); padding-top: var(--ds-space-7); padding-bottom: var(--ds-space-2); text-align: center; }
.header-notifications-empty > .icon { color: var(--ds-color-text-secondary); }
.header-notifications-empty h3 { font-size: var(--ds-font-size-secondary); }
.header-notifications-empty p { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-tag); }
/* Уведомление о морковке за вход: значок слева, заголовок и пояснение */
.header-notifications-list { display: grid; gap: var(--ds-space-2); margin: var(--ds-space-4) 0 0; padding: 0; list-style: none; }
.header-notification { display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-3); border: var(--ds-border-item) solid var(--ds-component-dashboard-itemBorder); border-radius: var(--ds-radius-item); }
.header-notification-icon { flex: none; width: var(--ds-size-notification-icon); height: auto; }
.header-notification-mark { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--ds-color-status-warning-background); color: var(--ds-color-status-warning-icon); }
.header-notification-mark .icon { width: 50%; height: 50%; }
.header-notification-text { display: grid; gap: 2px; min-width: 0; font-size: var(--ds-font-size-tag); color: var(--ds-color-text-secondary); }
.header-notification-text strong { font-family: var(--ds-font-sans); font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); }
.brand-dot { color: var(--ds-color-accent); }
.brand-symbol span { border-color: var(--ds-color-surface); }
.brand-symbol span:last-child { border-color: var(--ds-color-accent); }
.sidebar .nav-soon { background: var(--ds-color-inverse-subtle); color: var(--ds-color-inverse-muted); border-color: var(--ds-color-inverse-subtle); }
.nav-soon, .demo-badge { border-color: var(--ds-color-line); background: var(--ds-color-background-canvas); }
.avatar { background: var(--ds-component-avatar-background); color: var(--ds-color-ink); border-color: var(--ds-color-surface); box-shadow: 0 0 0 1px var(--ds-color-line); }

.profile-avatar, .avatar-spark { border-color: var(--ds-color-surface); }
.profile-avatar { outline: 2px solid var(--ds-color-accent); background: var(--ds-component-avatar-background); color: var(--ds-component-avatar-foreground); }
.profile-avatar:hover { background: var(--ds-color-palette-neutral-300); }
.avatar-spark { background: var(--ds-color-brand-primary); color: var(--ds-color-ink); }
.progress-track { background: var(--ds-color-track); }
.progress-track > span { background: var(--ds-component-progress-fill); }
.access-badge { border-radius: var(--ds-radius-small); }
.access-open { background: var(--ds-component-badge-accessOpen-background); color: var(--ds-component-badge-accessOpen-foreground); }
.access-closed { background: var(--ds-component-badge-accessClosed-background); color: var(--ds-component-badge-accessClosed-foreground); }
.journey-grid, .modal { background: var(--ds-color-surface); border-radius: var(--ds-component-card-radius); }
.button { border-radius: var(--ds-radius-button); }
.lesson-tabs { border-color: var(--ds-color-line); }
.modal { box-shadow: var(--ds-shadow-dialog); }
.topbar-label, .topbar-left, .section-heading p, .text-button, .lesson-panel > p, .field-description, .journey-step p, .modal > p, .profile-note, .support-pending, .eyebrow, .journey-state, .future-label, .nav-soon, .demo-badge, .lesson-tab, .modal-close { color: var(--ds-color-muted); }
.topbar-divider { color: var(--ds-color-subtle); }
.icon-button:hover { background: var(--ds-color-hover); }
:focus-visible { outline-color: var(--ds-color-focus-ring); }
.sidebar :focus-visible { outline-color: var(--ds-color-focus-ring); }
/* Основная кнопка по макету — лёгкий градиент сверху вниз и тёмная нижняя грань.
   Рамка прозрачная, а градиент рисуется и под ней: иначе общая серая рамка .button давала белую полосу по краю.
   Наведение — кнопка чуть темнеет (градиент hoverStart → hoverEnd, плавно: цвета градиента — анимируемые переменные).
   Нажатие — кнопка прожимается: сдвигается вниз на толщину грани, от грани остаётся полоска size.button-depth-pressed */
@property --button-top { syntax: '<color>'; inherits: false; initial-value: transparent; }
@property --button-bottom { syntax: '<color>'; inherits: false; initial-value: transparent; }
.button-dark { --button-top: var(--ds-component-button-primary-background-default); --button-bottom: var(--ds-component-button-primary-background-gradientEnd); --button-press: calc(var(--ds-size-button-depth) - var(--ds-size-button-depth-pressed)); border-color: transparent; background: linear-gradient(var(--button-top), var(--button-bottom)) border-box; color: var(--ds-component-button-primary-foreground-default); box-shadow: var(--ds-shadow-button-primary); transition: --button-top var(--ds-motion-fast), --button-bottom var(--ds-motion-fast), box-shadow var(--ds-motion-press), transform var(--ds-motion-press); }
.button-dark:hover:not(:disabled) { --button-top: var(--ds-component-button-primary-background-hoverStart); --button-bottom: var(--ds-component-button-primary-background-hoverEnd); box-shadow: var(--ds-shadow-button-primary-hover); }
.button-dark:active:not(:disabled) { --button-top: var(--ds-component-button-primary-background-hoverStart); --button-bottom: var(--ds-component-button-primary-background-hoverEnd); transform: translateY(var(--button-press)); box-shadow: var(--ds-shadow-button-primary-pressed); }
.button-complete { background: var(--ds-color-success-bg); border-color: transparent; color: var(--ds-color-success-text); }
.button-complete { border-color: var(--ds-color-status-success-border); box-shadow: var(--ds-shadow-button-complete); }
/* «Пройдено» при наведении — насыщеннее зелёный, без жёлтого */
.button-complete:hover:not(:disabled) { background: var(--ds-color-palette-green-200); }
.button-complete:active:not(:disabled) { box-shadow: var(--ds-shadow-button-complete-pressed); }
.status { background: var(--ds-color-neutral-bg); color: var(--ds-color-muted); }
.status-open { background: var(--ds-color-success-bg); color: var(--ds-color-success-text); }
.status-preparing { background: var(--ds-color-status-info-background); color: var(--ds-color-status-info-foreground); }
.modal-emblem { background: var(--ds-color-accent); color: var(--ds-color-ink); }
.card-link { color: var(--ds-color-ink); }
.card-link, .lesson-tabs, .profile-note { border-color: var(--ds-color-line); }
.text-button:hover { color: var(--ds-color-ink); }
.lesson-tab.active { color: var(--ds-color-ink); border-color: var(--ds-color-ink); }
.future-step { background: var(--ds-color-hover); border-color: var(--ds-color-line); }
.help-links a .icon:first-child, .help-links a .icon:last-child { color: var(--ds-color-ink); }
textarea:not(.ds-field), .modal input:not(.ds-field) { background: var(--ds-color-surface); border-color: var(--ds-color-field-border); }
textarea::placeholder { color: var(--ds-color-subtle); }
.journey-step + .journey-step { border-color: var(--ds-color-line); }
a.journey-step:hover, .help-links a:hover { background: var(--ds-color-accent-soft); }
.journey-number { color: var(--ds-component-journey-number); }
.modal-backdrop { background: var(--ds-color-overlay-scrim); }
.sidebar-scrim:not([hidden]) { background: var(--ds-color-scrim); }
.help-links a { background: var(--ds-color-background-canvas); }
@media (min-width: 821px) and (max-height: 760px) {
.home-view main { padding: var(--ds-space-3) var(--ds-space-7); }
.profile-avatar { width: 72px; height: 72px; margin-top: 14px; margin-bottom: var(--ds-space-3); }
}
@media (max-width: 820px) {
:root { --ds-shell-radius: var(--ds-radius-mobile-shell); }
.workspace { border-radius: var(--ds-layout-viewport-radius); }
.sidebar { border-radius: var(--ds-shell-radius); transform: translateX(calc(-100% - var(--ds-frame-gap) - 24px)); }
.sidebar.open { transform: translateX(0); }
.topbar, .home-view .topbar { margin: var(--ds-space-3) var(--ds-space-3) 0; height: var(--ds-size-topbar-mobile); flex-basis: var(--ds-size-topbar-mobile); grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--ds-space-3); row-gap: var(--ds-space-2); padding: var(--ds-space-2) var(--ds-space-3); }
.topbar > .ds-search { grid-row: 2; grid-column: 1 / -1; }
.topbar > .topbar-right { grid-row: 1; grid-column: 2; }
.topbar .menu-toggle { margin-left: 0; }
.topbar .header-popover { position: fixed; top: calc(var(--ds-size-control) + var(--ds-space-8)); max-width: calc(100vw - var(--ds-space-12)); }
.topbar .header-notifications-panel { right: var(--ds-space-6); }
.topbar .header-profile-panel { left: var(--ds-space-6); }
}
@media (max-width: 700px) {
:root { --ds-panel-radius: var(--ds-radius-mobile-panel); --ds-card-radius: var(--ds-radius-mobile-card); --ds-radius-card: var(--ds-radius-mobile-card); --ds-radius-item: var(--ds-radius-mobile-item); }
.home-view main { padding: 23px var(--ds-space-4); }
}
@media (max-width: 370px) {
.home-view main { padding-inline: var(--ds-space-3); }
}

/* Navigation recipe */
.workspace { margin-left: var(--ds-size-rail); }
.sidebar { top: calc(var(--ds-size-topbar) + var(--ds-space-6)); width: var(--ds-size-rail); padding: var(--ds-space-3) var(--ds-space-2) var(--ds-space-4) calc(var(--ds-space-3) + var(--ds-space-2)); display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(min-content, 1fr); gap: var(--ds-space-4); background: var(--ds-color-background-canvas); color: var(--ds-color-ink); border-radius: var(--ds-layout-viewport-radius); overflow-x: hidden; overflow-y: auto; scrollbar-width: none; transition: width var(--ds-motion-normal) ease, background var(--ds-motion-normal) ease, box-shadow var(--ds-motion-normal) ease, transform var(--ds-motion-normal) ease, top 0s linear var(--ds-motion-normal), padding-top 0s linear var(--ds-motion-normal); }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar .brand { width: 100%; min-height: var(--ds-size-control); flex-shrink: 0; padding: 0 var(--ds-space-2); gap: var(--ds-space-3); font-size: var(--ds-font-size-page); letter-spacing: -1.3px; white-space: nowrap; }
.sidebar .brand-symbol { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--ds-color-brand-primary); }
.sidebar .brand-symbol span { bottom: 10px; width: 15px; height: 23px; border-color: var(--ds-color-text-primary); }
.sidebar .brand-symbol span:first-child { left: 8px; }
.sidebar .brand-symbol span:last-child { left: 17px; height: 18px; border-color: var(--ds-color-text-primary); }
.sidebar .brand-dot { color: var(--ds-color-brand-primary); }
.sidebar .brand-name, .sidebar .nav-text, .sidebar .nav-soon { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: opacity var(--ds-motion-fast) ease, max-width var(--ds-motion-normal) ease; }
.sidebar-toggle { min-width: 0; display: none; place-items: center; width: 40px; height: 36px; flex-shrink: 0; margin: 0 var(--ds-space-2) var(--ds-space-6); border-radius: var(--ds-radius-media); background: var(--ds-color-surface); color: var(--ds-color-ink); }
.sidebar-toggle:hover { background: var(--ds-color-line); }
.sidebar-toggle .icon { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform var(--ds-motion-normal) ease; }
/* Кнопки полосы стоят ровно под аватаркой шапки: левый отступ полосы равен отступу аватарки (space-3 шапки + space-2 её поля), шаг между кнопками — space-2 */
.sidebar .primary-nav, .sidebar .sidebar-bottom { padding: 0; width: 100%; flex-shrink: 0; align-items: flex-start; gap: var(--ds-space-2); background: transparent; border-radius: 0; }
.sidebar .sidebar-bottom { grid-row: 3; align-self: end; display: flex; flex-direction: column; margin-top: 0; }
.sidebar .primary-nav { grid-row: 2; margin-block: 0; }
/* Полоса начинается под шапкой, поэтому середина её второго ряда ниже середины экрана. Отрицательный отступ сверху — разница между
   отступом полосы сверху (шапка, space-6 и space-3 поля) и снизу (рамка и space-4 поля): сетка делит его между первым и третьим рядом пополам,
   и основная группа встаёт ровно по центру экрана. На низких окнах сдвига нет: группе не хватит места над собой */
@media (min-width: calc(820px + 1px)) and (min-height: 640px) {
.sidebar .primary-nav { margin-top: calc(var(--ds-frame-gap) + var(--ds-space-4) - var(--ds-size-topbar) - var(--ds-space-6) - var(--ds-space-3)); }
}
.sidebar .nav-item { font-size: var(--ds-font-size-tag); }
.sidebar .nav-soon { padding: 0; border: 0; margin-left: auto; background: var(--ds-color-neutral-bg); color: var(--ds-color-muted); font-size: var(--ds-font-size-caption); }
.sidebar .nav-item.active .nav-soon { background: var(--ds-color-palette-sun-100); color: var(--ds-color-ink); }
.sidebar :focus-visible { outline-color: var(--ds-color-ink); outline-offset: 3px; }
.sidebar-expanded .sidebar { width: var(--ds-size-drawer); background: var(--ds-color-surface); box-shadow: var(--ds-shadow-drawer); border-radius: var(--ds-shell-radius); }
.sidebar-expanded .brand-name, .sidebar-expanded .nav-text, .sidebar-expanded .nav-soon { max-width: 200px; opacity: 1; }
.sidebar-expanded .nav-item { width: 100%; justify-content: flex-start; padding-inline: var(--ds-space-3); gap: var(--ds-space-3); }
.sidebar-expanded .nav-soon { display: inline-block; padding: 2px 5px; }
.sidebar-expanded .sidebar-toggle { background: var(--ds-color-hover); }
.sidebar-expanded .sidebar-toggle .icon { transform: rotate(90deg); }
/* Раскрытое меню на компьютере тянется до самого верха и закрывает шапку; верхний отступ растёт на ту же величину, поэтому пункты не сдвигаются под курсором.
   Верх и отступ меняются сразу, без анимации: иначе плашка профиля въезжала бы снизу. Так аватарка плашки сразу стоит на месте аватарки шапки,
   а плашка с именем проявляется на месте, как подписи пунктов. При сворачивании верх возвращается после того, как меню сузилось и погасло */
.sidebar-expanded .sidebar { top: var(--ds-frame-gap); padding-top: calc(var(--ds-size-topbar) + var(--ds-space-6) - var(--ds-frame-gap) + var(--ds-space-3)); transition-delay: 0s; }
/* Плашка профиля вверху меню: аватарка встаёт на место аватарки шапки (отступ шапки сверху — space-3 и 1 px рамки рабочей области), рядом «Мой профиль», имя и кнопка редактирования. В свёрнутой полосе скрыта.
   Ширина плашки сразу как у раскрытого меню: пока меню расширяется, она не сжимается и не переносит текст (иначе аватарка съезжала бы вниз), а открывается слева направо, как подписи пунктов */
.sidebar-profile { position: absolute; top: calc(var(--ds-space-3) + 1px - var(--ds-frame-gap)); left: var(--ds-space-3); width: calc(var(--ds-size-drawer) - 2 * var(--ds-space-3)); display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-2); border-radius: var(--ds-radius-control); background: var(--ds-color-background-brandPrimary-subtle); opacity: 0; visibility: hidden; transition: opacity var(--ds-motion-fast) ease, visibility var(--ds-motion-fast) ease; }
.sidebar-expanded .sidebar-profile { opacity: 1; visibility: visible; }
.sidebar-profile .header-profile-text { flex: 1 1 auto; }
.sidebar-profile-name { overflow: hidden; font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-edit { flex: none; }
.toast { left: calc(50% + var(--ds-size-rail) / 2); }
@media (max-width: 820px) {
.workspace { margin-left: 0; }
.sidebar { inset: var(--ds-layout-drawer-gap) auto var(--ds-layout-drawer-gap) var(--ds-layout-drawer-gap); display: flex; gap: 0; width: min(var(--ds-size-drawer), calc(100vw - 32px)); padding: 22px var(--ds-space-3) 18px; background: var(--ds-color-surface); border-radius: var(--ds-shell-radius); box-shadow: var(--ds-shadow-drawer); transform: translateX(calc(-100% - var(--ds-layout-drawer-gap) - 24px)); }
.menu-open { overflow: hidden; }
.menu-open .sidebar { transform: translateX(0); }
.sidebar .brand { padding-right: var(--ds-space-8); }
.sidebar .brand-name, .sidebar .nav-text, .sidebar .nav-soon { max-width: 200px; opacity: 1; }
.sidebar-toggle { display: grid; position: absolute; top: var(--ds-space-2); right: var(--ds-space-2); width: var(--ds-size-control); height: var(--ds-size-control); margin: 0; background: var(--ds-color-hover); }
.sidebar-toggle .icon { transform: none; }
.sidebar .primary-nav { margin-top: var(--ds-space-8); margin-bottom: var(--ds-space-7); }
/* На телефоне плашка профиля стоит в потоке под кнопкой закрытия */
.sidebar-profile { position: static; width: auto; margin-top: var(--ds-space-10); opacity: 1; visibility: visible; }
.sidebar-profile + .primary-nav { margin-top: var(--ds-space-6); }
.sidebar .sidebar-bottom { margin-top: auto; }
.sidebar .nav-item { width: 100%; justify-content: flex-start; padding-inline: var(--ds-space-3); gap: var(--ds-space-3); }
.sidebar .nav-soon { display: inline-block; padding: 2px 5px; }
.toast { left: 50%; }
}

/* Главная по макету Figma «платформа», кадр 4:35: профиль с питомцем, материалы и задачи, успеваемость и ссылки */
.dashboard-grid { display: grid; flex: 1; grid-template-columns: minmax(0, 512fr) minmax(0, 478fr) minmax(0, 484fr); gap: 30px; align-items: stretch; }
.dashboard-column { display: grid; grid-template-rows: auto 1fr; gap: 19px; min-width: 0; }
.student-profile, .dashboard-card { min-width: 0; border-radius: var(--ds-component-card-radius); }
.dashboard-card { padding: 30px; }
.dashboard-card > h2, .dashboard-card-head > h2 { margin-bottom: 19px; font-size: var(--ds-font-size-title); font-weight: var(--ds-font-weight-medium); line-height: 1.2; }
/* Строка заголовка с элементом справа: заголовок слева, переключатель в правом углу; на узкой карточке переключатель переносится под заголовок */
.dashboard-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-2) var(--ds-space-3); margin-bottom: 19px; }
.dashboard-card-head > h2 { margin-bottom: 0; }
.dashboard-card-head > .ds-segmented { margin-bottom: 0; }
.week-materials .dashboard-card-head { margin-bottom: var(--ds-space-2); }
.week-materials-part { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-secondary); margin-bottom: var(--ds-space-4); }
/* Успеваемость — колонка: столбики растягиваются на всю оставшуюся высоту карточки */
.dashboard-card.performance-card { display: flex; flex-direction: column; }
/* Рейтинг под успеваемостью: карточка занимает остаток колонки, таблица прокручивается внутри.
   Когда колонка не ограничена высотой окна (планшет, телефон), видно около семи строк, остальные прокручиваются */
.dashboard-card.rating-card { display: flex; flex-direction: column; min-height: 0; }
.rating-card .ds-rating { max-height: var(--ds-size-rating-list); }
/* Пьедестал резервирует место для имени, зверька и ступени даже в карточке без соседнего блока. */
.rating-card .ds-rating-podium {
  --podium-figure: var(--ds-size-podium-animal);
  --podium-min-step: var(--ds-size-podium-step-1);
  --podium-inset: var(--ds-space-12);
  flex: 1 0 calc(var(--podium-min-step) + var(--podium-figure) + var(--podium-inset));
  container-type: size;
}
.rating-card .podium-place {
  --podium-animal: calc(var(--podium-figure) * .82);
  --podium-gold: clamp(var(--podium-min-step), calc(100cqh - var(--podium-figure) - var(--podium-inset)), calc(var(--ds-size-podium-step-1) * 3));
  --podium-shown: max(var(--ds-space-8), calc(var(--podium-gold) * var(--podium-share)));
}
.rating-card .rating-summary { flex: none; }
.rating-card .podium-place[data-place="1"] { --podium-share: 1; --podium-animal: var(--podium-figure); }
.rating-card .podium-place[data-place="2"] { --podium-share: .727; }
.rating-card .podium-place[data-place="3"] { --podium-share: .545; }
.rating-card .podium-step { height: var(--podium-shown); }
.rating-card .podium-coins img { height: min(var(--ds-space-5), calc(var(--podium-shown) * .5)); }
.student-profile { display: flex; flex-direction: column; justify-content: space-between; gap: var(--ds-space-10); padding: 35px 31px 47px; }
.student-profile-top { display: grid; justify-items: center; gap: var(--ds-space-5); text-align: center; }
.student-profile h2 { font-size: var(--ds-font-size-title); font-weight: var(--ds-font-weight-medium); line-height: 1.2; overflow-wrap: anywhere; }
.student-profile-greeting { display: grid; justify-items: center; gap: var(--ds-space-1); }
.student-room-link { display: inline-flex; align-items: center; gap: var(--ds-space-2); padding-block: var(--ds-space-1); color: var(--ds-color-text-primary); font-size: var(--ds-font-size-secondary); text-decoration: underline; text-underline-offset: var(--ds-space-1); }
.student-room-link .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.student-profile-bottom { display: grid; gap: 14px; }
.student-profile-bottom > .button-block { margin-block: var(--ds-space-2) var(--ds-size-button-depth); }
/* Главная при остановленном обучении (access-closed.js → PausedProfile, PausedAccess): вместо питомца — замочек,
   что случилось и кнопки; справа — что открыто и что на паузе */
.student-profile-paused .student-profile-bottom { gap: var(--ds-space-3); }
/* Питомца нет: высота верхней части — по содержимому, а не по месту под питомца (container-type: size у обычной карточки) */
.dashboard-grid > .student-profile.student-profile-paused > .student-profile-top { flex: none; min-height: 0; container-type: normal; align-content: center; }
.student-profile-paused .student-profile-bottom > .button-block { margin-block: 0 var(--ds-size-button-depth); }
.paused-lock { display: grid; place-items: center; width: 7rem; height: 7rem; border-radius: 50%; background: var(--ds-color-background-subtle); color: var(--ds-color-text-secondary); }
.paused-lock .icon { width: var(--ds-space-12); height: var(--ds-space-12); }
.paused-copy { display: grid; gap: var(--ds-space-2); max-width: 26rem; }
/* Уведомление на карточке паузы — жёлтая плашка: что сделать, чтобы открылась следующая неделя */
.paused-notice { max-width: 26rem; }
/* «Мой путь» на паузе: пометка над листанием — почему на карте открыто не всё */
.city-pause-note { display: flex; align-items: flex-start; gap: var(--ds-space-2); margin: 0 var(--ds-space-5) var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-small); background: var(--ds-color-background-subtle); color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-secondary); }
.city-pause-note .icon { flex: none; width: var(--ds-space-4); height: var(--ds-space-4); margin-top: 2px; }
.paused-title { font-size: var(--ds-font-size-lead); font-weight: var(--ds-font-weight-medium); }
/* Карточка «Что сейчас доступно» одна в колонке — на всю высоту, как успеваемость с рейтингом */
.dashboard-column > .paused-access { grid-row: 1 / -1; }
.paused-group + .paused-group { margin-top: var(--ds-space-6); }
.paused-group-title { margin-bottom: var(--ds-space-3); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
.paused-list { display: grid; gap: var(--ds-space-3); margin: 0; padding: 0; list-style: none; }
.paused-list li { display: flex; align-items: center; gap: var(--ds-space-3); }
.paused-list-icon { display: grid; place-items: center; flex: none; width: var(--ds-space-8); height: var(--ds-space-8); border-radius: 50%; }
.paused-list-icon .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.paused-list[data-state="open"] .paused-list-icon { background: var(--ds-color-success-bg); color: var(--ds-color-success-text); }
.paused-list[data-state="locked"] .paused-list-icon { background: var(--ds-color-background-subtle); color: var(--ds-color-text-secondary); }
.paused-note { margin-top: var(--ds-space-6); font-size: var(--ds-font-size-secondary); }
.material-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-height: calc(82px * 3 + 20px); margin: 0 -19px 0 0; padding: 0 19px 0 0; list-style: none; }
.material-item, .stat-row { display: flex; align-items: center; gap: var(--ds-space-3); border: var(--ds-border-item) solid var(--ds-component-dashboard-itemBorder); border-radius: var(--ds-radius-item); }
.material-item { justify-content: space-between; min-height: 82px; padding: 11px 14px 11px 21px; }
.material-copy { display: grid; justify-items: start; gap: 9px; min-width: 0; }
.material-title { display: block; max-width: 100%; overflow: hidden; font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-normal); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.material-meta { display: flex; align-items: center; gap: 14px; }
.material-reward { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); line-height: 1; }
.material-coin { display: block; width: var(--ds-size-material-coin); height: auto; }
/* Блокнот задач: лист с обводкой повёрнут на 1,3°, как в макете, а текст и линейки остаются ровными */
.dashboard-card.notebook { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 14px 30px 0; border: 0; background: transparent; }
.notebook::before { content: ""; position: absolute; inset: 0; z-index: -1; border: var(--ds-border-item) solid var(--ds-component-notebook-border); border-radius: var(--ds-component-card-radius); background: var(--ds-component-notebook-background); transform: rotate(-1.3deg); }
/* Кольца всегда круглые: не сжимаются, а лишние, что не влезли в ряд, переносятся во второй ряд и прячутся */
.notebook-rings { --ring-size: 28px; display: flex; flex: none; flex-wrap: wrap; justify-content: center; gap: 36px; height: var(--ring-size); margin-bottom: 14px; overflow: hidden; transform: rotate(-1.3deg); }
.notebook-rings > span { flex: none; width: var(--ring-size); height: var(--ring-size); border: var(--ds-border-item) solid var(--ds-component-notebook-border); border-radius: 50%; background: var(--ds-component-notebook-hole); }
.starter-plan-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dashboard-card.notebook[data-empty] { align-self: start; }
.dashboard-card.notebook .starter-plan-title { margin-bottom: var(--ds-space-2); }
.starter-plan-empty { margin-bottom: var(--ds-space-4); color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-secondary); }
.starter-checklist { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; margin: 0 -19px 0 0; padding: 0 19px var(--ds-space-6) 0; list-style: none; --ds-scroll-thumb: var(--ds-component-notebook-scrollbar); }
.starter-checklist > li + li { border-top: 2px solid var(--ds-component-notebook-line); }
.starter-step { display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; min-height: calc(var(--ds-size-checkbox) + 28px); padding-block: 14px; color: var(--ds-component-task-text); font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); line-height: 1.2; cursor: pointer; }
/* Флажок — сам input без системного вида; отмеченный заливается жёлтым, а текст бледнеет и зачёркивается */
.task-check { appearance: none; flex: none; width: var(--ds-size-checkbox); height: var(--ds-size-checkbox); margin: 0; border: var(--ds-border-item) solid var(--ds-component-task-box); border-radius: var(--ds-radius-checkbox); background: transparent; cursor: pointer; transition: background var(--ds-motion-fast), border-color var(--ds-motion-fast); }
.task-check:checked { background: url("../../assets/home/check.svg") center / 100% no-repeat, var(--ds-component-task-doneBackground); border-color: var(--ds-component-task-doneBackground); }
.task-text { position: relative; flex: 1; min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; transition: color var(--ds-motion-fast); }
/* Палочки из макета: на каждую строку своя кривоватая линия по длине текста (рисует task-strikes.js).
   При отметке строки прочерчиваются слева направо по очереди, при снятии — стираются с последней */
.task-strikes { position: absolute; inset: 0; pointer-events: none; }
.task-strike { position: absolute; left: calc(var(--strike-x) - var(--ds-space-1)); top: var(--strike-y); width: calc(var(--strike-w) + 2 * var(--ds-space-1)); height: var(--strike-h); background: var(--ds-component-task-strike); mask: url("../../assets/home/strike-1.svg") center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path var(--strike-duration) ease-in-out var(--strike-out-delay); }
.task-strike[data-shape="2"] { mask-image: url("../../assets/home/strike-2.svg"); }
.task-strike[data-shape="3"] { mask-image: url("../../assets/home/strike-3.svg"); }
.task-strike[data-shape="4"] { mask-image: url("../../assets/home/strike-4.svg"); }
.task-check:checked + .task-text { color: var(--ds-component-task-doneText); }
.task-check:checked + .task-text .task-strike { clip-path: inset(0); transition-delay: var(--strike-in-delay); }
/* Свои заметки ученика: та же строка блокнота и крестик «удалить» справа */
.starter-checklist > li.own-note { display: flex; align-items: center; gap: var(--ds-space-2); }
.own-note > .starter-step { flex: 1; }
/* Задача, перенесённая с прошлой недели (carry-over.js): та же строка блокнота и тихая пометка «с недели N» справа */
.starter-checklist > li.carried-note { display: flex; align-items: center; gap: var(--ds-space-2); }
.carried-note > .starter-step { flex: 1; }
.task-from { flex: none; color: var(--ds-component-task-doneText); font-size: var(--ds-font-size-caption); white-space: nowrap; }
.text-button.task-remove { flex: none; justify-content: center; width: var(--ds-space-8); height: var(--ds-space-8); border-radius: var(--ds-radius-checkbox); color: var(--ds-component-task-doneText); }
.text-button.task-remove:hover { color: var(--ds-component-task-text); background: var(--ds-component-notebook-line); }
.task-remove > .icon { width: var(--ds-space-5); height: var(--ds-space-5); }
/* Строка «Добавить свою заметку» закреплена под списком: поле на линейке блокнота и квадратная кнопка «+» */
.own-note-form { display: flex; flex: none; align-items: center; gap: var(--ds-space-3); padding-block: var(--ds-space-3) var(--ds-space-5); border-top: var(--ds-border-item) solid var(--ds-component-notebook-line); }
.ds-field.notebook-field, .ds-field.notebook-field:hover, .ds-field.notebook-field:focus { flex: 1; min-width: 0; min-height: var(--ds-size-checkbox); padding: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ds-component-task-text); font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); line-height: 1.2; }
.ds-field.notebook-field:focus { box-shadow: 0 var(--ds-border-field) 0 var(--ds-component-input-border-focus); }
.ds-field.notebook-field::placeholder { color: var(--ds-color-text-secondary); }
/* «+» своей заметки — тихая кнопка soft квадратом размером с флажок блокнота, чтобы не перетягивать внимание с заметок */
.stat-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.stat-row { min-height: 64px; padding: 9px 14px 9px 11px; }
.stat-icon { display: grid; place-items: center; flex: none; width: var(--ds-size-control); height: var(--ds-size-control); border-radius: var(--ds-radius-slot); background: var(--ds-component-dashboard-iconBackground); color: var(--ds-component-dashboard-iconForeground); }
.stat-icon > .icon { width: var(--ds-space-5); height: var(--ds-space-5); }
/* Плитки «Успеваемости» по образцу: цветной фон, фигура в углу, значок в кольце прогресса (заполнение — --quest-fill из data-fill) */
.path-quests .progress-quests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-4); }
/* Три колонки — только на широком экране: на более узком у морковок в карточке приветствия пропадает отступ 4 px до рамки.
   Тогда приветствие встаёт отдельной строкой на всю ширину, а материалы с блокнотом и успеваемость со ссылками — двумя колонками под ним */
@media (width < 1550px) {
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-grid > .student-profile { grid-column: 1 / -1; }
}
/* Широкая строка приветствия — две колонки: слева питомец с приветствием, справа неделя, морковки и кнопка */
@media (min-width: 1061px) and (width < 1550px) {
.dashboard-grid > .student-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
/* Питомец — как на широком экране: растёт под высоту правой колонки (неделя, морковки, кнопка), приветствие под ним.
   Высота блока — от строки сетки (container-type: size), поэтому правая колонка задаёт высоту, а питомец её заполняет;
   ширина питомца не больше 80 % колонки и не меньше size.pet-home */
.dashboard-grid > .student-profile > .student-profile-top { align-self: stretch; min-height: calc(var(--ds-size-pet-home) * 1.2 + var(--ds-space-16) + var(--ds-space-2)); container-type: size; align-content: center;
  --pet-fit: max(var(--ds-size-pet-home), min(calc((100cqh - var(--ds-space-16) - var(--ds-space-2)) / 1.2), 80cqi)); }
.dashboard-grid > .student-profile .pet-companion-character { width: var(--pet-fit); }
.dashboard-grid > .student-profile .ds-pet-companion { width: min(100%, calc(var(--pet-fit) * 1.244)); }
}
@media (max-width: 1180px) {
.dashboard-grid { gap: var(--ds-space-5); }
}
@media (max-width: 700px) {
.dashboard-grid, .dashboard-column:last-child, .path-quests .progress-quests { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-4); }
.student-profile { gap: var(--ds-space-6); padding: var(--ds-space-6) var(--ds-space-5) var(--ds-space-7); }
.dashboard-card { padding: var(--ds-space-6) var(--ds-space-5); }
.dashboard-card > h2, .dashboard-card-head > h2, .student-profile h2 { font-size: var(--ds-font-size-lead); }
/* На телефоне список тоже прокручивается внутри карточки, полоса прокрутки уходит в поле карточки */
.material-list { margin-right: calc(-1 * var(--ds-space-3)); padding-right: var(--ds-space-3); }
.material-item { padding-left: var(--ds-space-4); }
.feed-streak-days { gap: var(--ds-space-1); }
.feed-streak-name { font-size: var(--ds-font-size-caption); }
.feed-streak-slot { height: calc(var(--ds-size-feed-slot) * .75); }
.feed-streak-status { font-size: var(--ds-font-size-tag); }
/* На телефоне морковкам нужно место: ячейки с отступом 4 px получают ширину за счёт внутренних полей полоски */
.ds-feed-streak { padding-inline: var(--ds-space-2); }
.starter-step { font-size: var(--ds-font-size-secondary); }
.dashboard-card.notebook { padding-inline: var(--ds-space-5); }
}
/* Широкий экран: питомец с приветствием занимает всё место над неделей и морковками, без пустоты посередине карточки.
   Питомец растёт под это место (--pet-fit: высота блока без приветствия и отступов; ширина не больше 80 % карточки),
   но не бывает меньше size.pet-home. Если места не хватает, карточка становится выше. Тень шире питомца в 168 / 135 ≈ 1.244 раза, как в макете */
@media (min-width: 1550px) {
.student-profile-top { flex: 1 1 0; min-height: calc(var(--ds-size-pet-home) * 1.2 + var(--ds-space-16) + var(--ds-space-2)); container-type: size; align-content: center;
  --pet-fit: max(var(--ds-size-pet-home), min(calc((100cqh - var(--ds-space-16) - var(--ds-space-2)) / 1.2), 80cqi)); }
.student-profile-top .pet-companion-character { width: var(--pet-fit); }
.student-profile-top .ds-pet-companion { width: min(100%, calc(var(--pet-fit) * 1.244)); }
}
/* Главная в три колонки (широкий экран) помещается в один экран без прокрутки: отступы и крупные элементы сжимаются по высоте окна.
   Значения в vh посчитаны от макета высотой 900px и не растут больше макета. Ниже 720px окна питомец не помещается
   в своём наименьшем размере — тогда страница прокручивается как обычно, как и на планшете и телефоне */
@media (min-width: 1550px) and (min-height: 720px) {
.home-view {
  --ds-size-feed-slot: clamp(30px, 6.7vh, 60px);
  --ds-size-feed-candy: clamp(20px, 3.4vh, 31px);
  --ds-size-button-large: clamp(48px, 8.3vh, 75px);
  --ds-size-week-art: clamp(44px, 7.5vh, 68px);
  --ds-size-week-art-icon: clamp(34px, 5.9vh, 53px);
  /* Столбики успеваемости на невысоком окне ниже — освобождают место рейтингу под ними */
  --ds-size-progress-column: clamp(24px, calc(40vh - 236px), 168px);
}
.home-view .workspace { height: calc(100dvh - 2 * var(--ds-frame-gap)); min-height: 0; }
.home-view main { min-height: 0; padding-block: clamp(12px, 2.8vh, 30px); }
.home-view .dashboard-grid { min-height: 0; grid-template-rows: minmax(0, 1fr); }
.home-view .dashboard-column { min-height: 0; grid-template-rows: auto minmax(0, 1fr); gap: clamp(10px, 2.1vh, 19px); }
.home-view .dashboard-card { display: flex; flex-direction: column; min-height: 0; padding: clamp(14px, calc(5vh - 15px), 30px) clamp(22px, 1.9vw, 30px); }
.home-view .dashboard-card > h2, .home-view .dashboard-card-head > h2, .home-view .student-profile h2 { flex: none; font-size: clamp(20px, 2.7vh, 24px); }
.home-view .dashboard-card > h2, .home-view .dashboard-card-head { margin-bottom: clamp(8px, calc(3vh - 8px), 19px); }
.home-view .dashboard-card-head { flex: none; }
.home-view .student-profile { min-height: 0; gap: clamp(10px, 2.5vh, 40px); padding-block: clamp(16px, 3.9vh, 35px) clamp(18px, 4.4vh, 47px); }
.home-view .student-profile-top { gap: clamp(8px, 2.2vh, 20px); }
.home-view .student-profile-bottom { gap: clamp(8px, 1.6vh, 14px); }
.home-view .ds-progress-quest { padding-block: clamp(8px, 1.6vh, 14px) clamp(9px, 1.7vh, 15px); }
.home-view .ds-feed-streak { gap: clamp(6px, 1.1vh, 10px); padding-block: clamp(10px, 2vh, 18px) clamp(8px, 1.6vh, 14px); }
.home-view .feed-streak-day { gap: clamp(4px, 1.3vh, 12px); }
/* Если окно совсем низкое, прокручиваются только списки внутри карточек, а не вся страница */
.home-view .rating-card .ds-rating { max-height: none; }
/* Когда над рейтингом есть успеваемость, пьедестал использует компактные размеры. */
.home-view .performance-card + .rating-card .ds-rating-podium {
  --podium-figure: clamp(var(--ds-space-8), 6vh, var(--ds-size-podium-animal));
  --podium-min-step: var(--ds-space-8);
  --podium-inset: var(--ds-space-10);
  padding-top: 0;
}
.home-view .rating-summary { margin-top: clamp(6px, 1.2vh, 16px); }
.home-view .material-list, .home-view .stat-list { flex: 0 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
/* Материалов видно не больше трёх — остальные прокручиваются, а блокнот под карточкой не сжимается */
.home-view .material-list { max-height: calc(3 * clamp(56px, 9.1vh, 82px) + 20px); }
.home-view .stat-list { gap: clamp(6px, 1.1vh, 10px); scrollbar-width: thin; scrollbar-color: var(--ds-component-dashboard-scrollbar) transparent; }
.home-view .material-item { min-height: clamp(56px, 9.1vh, 82px); padding-block: clamp(6px, 1.2vh, 11px); }
.home-view .material-copy { gap: clamp(4px, 1vh, 9px); }
.home-view .material-item .square-action { --square-size: clamp(46px, 6.7vh, 60px); }
.home-view .stat-row { min-height: clamp(40px, calc(13.3vh - 56px), 64px); padding-block: clamp(3px, 1vh, 9px); }
.home-view .stat-icon { width: clamp(32px, 4.9vh, 44px); height: clamp(32px, 4.9vh, 44px); min-height: clamp(32px, 4.9vh, 44px); }
/* Плашки связи сжимаются по высоте окна: на низком экране меньше иконка и отступы */
.home-view .community-links { gap: clamp(10px, 1.6vh, 16px); }
.home-view .ds-link-tile { min-height: 0; gap: clamp(6px, 1.2vh, 12px); padding-block: clamp(10px, 1.8vh, 16px); }
.home-view .link-tile-icon { width: clamp(34px, 5.3vh, 48px); height: clamp(34px, 5.3vh, 48px); }
.home-view .starter-step { padding-block: clamp(8px, 1.6vh, 14px); min-height: 0; }
.home-view .dashboard-card.notebook { padding-top: clamp(10px, 1.6vh, 14px); padding-bottom: 0; }
.home-view .notebook-rings { margin-bottom: clamp(6px, 1.6vh, 14px); }
.home-view .own-note-form { padding-block: clamp(6px, 1.2vh, 12px) clamp(10px, 2vh, 20px); }
}
/* На низком экране пояснения в плашках связи не помещаются: прячем их с экрана, но оставляем для экранного диктора */
@media (min-width: 1550px) and (min-height: 720px) and (max-height: 760px) {
.home-view .link-tile-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Вкладка «Обучение»: урок сразу наверху без заголовка страницы, справа оглавление. Всё по системе главной —
   белые карточки dashboard-card, заголовки Rubik, текст Inter, рамочные строки material-item, ярлыки tag-chip */
.back-link { display: inline-flex; align-items: center; gap: var(--ds-space-2); margin-bottom: var(--ds-space-4); font-size: var(--ds-font-size-secondary); color: var(--ds-color-muted); }
.back-link .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.back-link:hover { color: var(--ds-color-ink); }
/* Хлебные крошки над уроком из раздела (LessonTrail): «← Неделя N / Раздел / Урок» в одну строку, разделитель — «/».
   Ссылки — серые, при наведении тёмные; текущий урок — тёмный и обрезается «…»; на узком экране строка переносится */
.lesson-trail { margin-bottom: var(--ds-space-4); font-size: var(--ds-font-size-secondary); }
.lesson-trail-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-1) var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.lesson-trail-list > li { display: inline-flex; align-items: center; gap: var(--ds-space-2); min-width: 0; }
.lesson-trail-list > li + li::before { content: "/"; color: var(--ds-color-text-disabled); }
.lesson-trail-link { display: inline-flex; align-items: center; gap: var(--ds-space-2); color: var(--ds-color-muted); }
.lesson-trail-link .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.lesson-trail-link:hover { color: var(--ds-color-ink); }
.lesson-trail-current { overflow: hidden; max-width: 40ch; color: var(--ds-color-ink); text-overflow: ellipsis; white-space: nowrap; }
.detail-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-4); margin-bottom: var(--ds-space-6); }
.detail-heading h1 { font-size: var(--ds-font-size-page); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.detail-heading p { margin-top: var(--ds-space-2); font-size: var(--ds-font-size-secondary); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); grid-template-areas: "lesson program"; gap: 19px 30px; align-items: start; }
.lesson-card { grid-area: lesson; }
.lesson-aside { grid-area: program; display: grid; gap: var(--ds-space-2); min-width: 0; }
/* Оглавление не выше экрана (size.lesson-toc-screen — экран без шапки и отступов) и не растягивается под длинный урок:
   короткая программа — по содержимому, без пустоты; длинная — список прокручивается внутри, заголовок, поиск и фильтр стоят на месте.
   Пока листают урок, оглавление прилипает к верху экрана */
.lesson-aside { display: flex; flex-direction: column; position: sticky; top: var(--ds-space-6); align-self: start; max-height: max(var(--ds-size-lesson-toc-min), var(--ds-size-lesson-toc-screen)); }
.lesson-aside > .aside-help { flex: none; }
.lesson-aside .program-card { display: flex; flex-direction: column; flex: 0 1 auto; gap: var(--ds-space-4); min-height: 0; overflow: hidden; }
.lesson-aside .program-card > h2, .lesson-aside .ds-filter { flex: none; }
.lesson-toc-scroll { display: grid; align-content: start; gap: var(--ds-space-6); flex: 1; min-height: 0; margin: calc(-1 * var(--ds-space-1)); padding: var(--ds-space-1); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lesson-toc-scroll:focus-visible { outline: 2px solid var(--ds-color-focus-ring); outline-offset: 2px; }
.lesson-toc-empty { font-size: var(--ds-font-size-secondary); color: var(--ds-color-muted); }
.lesson-aside, .lesson-aside [tabindex="-1"] { scroll-margin-top: var(--ds-space-6); }
.lesson-aside:focus, .lesson-aside [tabindex="-1"]:focus { outline: none; }
/* Видео и обложка-заглушка урока */
.video-placeholder, .video-frame { position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ds-panel-radius); }
.video-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
/* Обложка видео под плеером: видна, пока Кинескоп загружается */
.video-frame-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ds-component-lessonPreview-background); }
.video-placeholder { isolation: isolate; background: var(--ds-component-lessonPreview-background); color: var(--ds-component-lessonPreview-foreground); }
/* Обложка урока без записи: превью бывает только с Кинескопа, без него — серый фон и кнопка воспроизведения, картинок нет */
.video-placeholder.is-blank, .lesson-preview.has-placeholder, .plan-material-cover.is-blank { background: var(--ds-color-background-canvas); }
.video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: var(--ds-space-16); height: var(--ds-space-16); transform: translate(-50%, -50%); border: 0; border-radius: var(--ds-radius-pill); background: var(--ds-component-lessonPreview-playBackground); color: var(--ds-component-lessonPreview-playForeground); box-shadow: var(--ds-shadow-button-icon); }
.video-play .icon { width: var(--ds-space-7); height: var(--ds-space-7); margin-left: var(--ds-space-1); }
/* Видео, которое площадка не даёт встроить: кнопка «Смотреть на Кинескопе» по центру обложки и пояснение под ней */
.video-elsewhere-copy { position: absolute; top: 50%; left: 50%; display: grid; justify-items: center; gap: var(--ds-space-2); width: max-content; max-width: 90%; transform: translate(-50%, -50%); text-align: center; }
.video-elsewhere-note { padding: var(--ds-space-1) var(--ds-space-3); border-radius: var(--ds-radius-pill); background: var(--ds-color-surface); color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-caption); }
/* Название урока, ярлык части программы и отметка о прохождении */
.lesson-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--ds-space-4); margin: var(--ds-space-6) 0 var(--ds-space-5); }
/* Название не уже своего самого длинного слова: если рядом не помещается блок просмотра, он переносится под название и остаётся справа */
.lesson-title { display: grid; justify-items: start; gap: var(--ds-space-3); flex: 1 1 min-content; min-width: 0; }
.lesson-title h2 { font-size: var(--ds-font-size-title); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
/* Досмотр урока вместо ручной отметки: подпись о монетках, полоса просмотра и процент; после досмотра — зелёный ярлык */
.lesson-watch { display: grid; justify-items: end; gap: var(--ds-space-2); flex: none; width: min(100%, var(--ds-size-lesson-watch)); margin-left: auto; }
.lesson-watch .progress-track { height: var(--ds-space-2); }
.lesson-watch-text { color: var(--ds-color-text-primary); font-size: var(--ds-font-size-secondary); text-align: right; }
.lesson-watch-percent { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-tag); }
/* Монетки за урок: число и монетка — «Досмотрите урок — получите 2 🪙» или «+2 🪙 получено» */
.lesson-watch-reward { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--ds-space-2); }
.coin-icons-row { display: inline-flex; align-items: center; gap: var(--ds-space-1); color: var(--ds-color-text-primary); font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); }
.video-frame > div { position: absolute; inset: 0; }
button.video-play { cursor: pointer; transition: transform var(--ds-motion-press); }
button.video-play:active { transform: translate(-50%, -50%) scale(.94); }
/* Кнопки раздела — шрифтом и размером кнопок главной, а не прежние 12 px */
.lesson-layout .button:not(.square-action) { font-size: var(--ds-font-size-secondary); }
.lesson-card .ds-segment { display: inline-flex; align-items: center; gap: var(--ds-space-2); }
.lesson-card .ds-segment .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.lesson-card .lesson-panel { padding-top: var(--ds-space-1); }
.lesson-card .lesson-panel h3 { margin-bottom: var(--ds-space-2); font-size: var(--ds-font-size-body); }
.lesson-card .lesson-panel > p { max-width: 640px; font-size: var(--ds-font-size-secondary); line-height: var(--ds-font-line-body); }
.lesson-materials-notice { margin-top: var(--ds-space-5); }
.notes-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-3); margin-top: var(--ds-space-4); }
.notes-footer > span { font-size: var(--ds-font-size-secondary); color: var(--ds-color-muted); }
/* Оглавление: прогресс, группы «Уроки», «Практики» и закрытая основная программа */
.program-card { display: grid; gap: var(--ds-space-6); }
.dashboard-card.program-card > h2 { margin-bottom: 0; }
.program-group-head { display: grid; gap: var(--ds-space-1); margin-bottom: var(--ds-space-3); }
.program-group-head h3 { font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.program-group-head p { font-size: var(--ds-font-size-secondary); }
.material-list.program-list { max-height: none; margin: 0; padding: 0; overflow: visible; }
.program-list .material-title { white-space: normal; }
.material-item.is-soon { border-style: dashed; }
/* Изученный материал: название серое, а вся строка — ссылка, чтобы открыть материал снова; при наведении строка сереет, при фокусе обводится */
.material-item.is-complete { position: relative; transition: background var(--ds-motion-fast); }
.material-item.is-complete .material-title { color: var(--ds-component-dashboard-doneText); text-decoration: none; }
.material-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.material-open:focus-visible { outline: none; }
.material-item.is-complete:has(.material-open:hover) { background: var(--ds-component-dashboard-doneHover); }
.material-item.is-complete:has(.material-open:focus-visible) { outline: 3px solid var(--ds-color-focus-ring); outline-offset: 2px; }
/* Строки оглавления: рамка как у строк материалов, слева номер. Текущий урок — зелёная подсветка, пройденный — галочка, практика — жёлтый значок */
.lesson-toc { display: grid; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.lesson-toc-row { display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-2) var(--ds-space-3); border: var(--ds-border-item) solid var(--ds-component-lessonToc-border); border-radius: var(--ds-radius-item); color: inherit; text-decoration: none; transition: background-color var(--ds-motion-fast), border-color var(--ds-motion-fast); }
a.lesson-toc-row:hover { background: var(--ds-component-lessonToc-hover); }
.lesson-toc-marker { display: grid; place-items: center; flex: none; width: var(--ds-space-10); height: var(--ds-space-10); border-radius: var(--ds-radius-slot); background: var(--ds-component-lessonToc-marker); color: var(--ds-component-lessonToc-markerForeground); font-family: var(--ds-font-sans); font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); }
.lesson-toc-marker .icon { width: var(--ds-space-5); height: var(--ds-space-5); }
.lesson-toc-copy { display: grid; gap: 2px; min-width: 0; }
.lesson-toc-title { font-family: var(--ds-font-sans); font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.lesson-toc-status { font-size: var(--ds-font-size-caption); color: var(--ds-color-muted); }
.lesson-toc-item.is-current .lesson-toc-row { border-color: var(--ds-component-lessonToc-current-border); background: var(--ds-component-lessonToc-current-background); }
.lesson-toc-item.is-current .lesson-toc-marker { background: var(--ds-component-lessonToc-current-marker); color: var(--ds-component-lessonToc-current-markerForeground); }
.lesson-toc-item.is-current .lesson-toc-status { color: var(--ds-component-lessonToc-done-markerForeground); font-weight: var(--ds-font-weight-medium); }
.lesson-toc-item.is-complete .lesson-toc-marker { background: var(--ds-component-lessonToc-done-marker); color: var(--ds-component-lessonToc-done-markerForeground); }
.lesson-toc-item.is-practice .lesson-toc-marker { background: var(--ds-component-lessonToc-practice-marker); color: var(--ds-component-lessonToc-practice-markerForeground); }
/* Сквозное оглавление: вся программа одним списком, недели разделены тонкой линией с номером, темой и итогом справа.
   Разделитель прилипает к верху списка, пока листают его неделю; у текущей недели линия зелёная */
.lesson-toc-scroll { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-5); }
.toc-week-count { flex: none; font-size: var(--ds-font-size-secondary); color: var(--ds-component-lessonToc-week-muted); white-space: nowrap; }
.toc-week { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-2); min-width: 0; }
.toc-divider { position: sticky; top: calc(-1 * var(--ds-space-1)); z-index: 1; display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-2) 0; background: var(--ds-component-card-background); }
.toc-divider-title { display: flex; align-items: baseline; gap: var(--ds-space-2); min-width: 0; margin: 0; font-family: var(--ds-font-sans); font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); white-space: nowrap; }
.toc-divider-title > span:first-child { flex: none; }
.toc-divider-theme { overflow: hidden; color: var(--ds-component-lessonToc-week-muted); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-normal); text-overflow: ellipsis; }
.toc-divider-line { flex: 1; min-width: var(--ds-space-4); height: var(--ds-border-width); background: var(--ds-component-lessonToc-week-border); }
.toc-week.is-current .toc-divider-line { background: var(--ds-component-lessonToc-week-currentBorder); }
.toc-divider .ds-badge { flex: none; }
.toc-divider-lock { display: inline-flex; flex: none; align-items: center; gap: var(--ds-space-1); color: var(--ds-component-lessonToc-week-muted); font-size: var(--ds-font-size-caption); }
.toc-divider-lock .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.toc-week.is-locked .toc-divider-title > span:first-child { color: var(--ds-component-lessonToc-week-muted); }
.tag-chip.toc-week-now { background: var(--ds-component-lessonToc-week-nowBackground); color: var(--ds-component-lessonToc-week-nowForeground); }
.tag-chip.toc-week-left { background: var(--ds-component-lessonToc-week-leftBackground); color: var(--ds-component-lessonToc-week-leftForeground); box-shadow: inset 0 0 0 var(--ds-border-width) var(--ds-component-lessonToc-week-leftBorder); }
.toc-week-note, .toc-week-empty { font-size: var(--ds-font-size-caption); color: var(--ds-component-lessonToc-week-muted); }
/* Тест — сиреневый значок с флажком; несделанное в прошедшей неделе — жёлтая подпись состояния */
.lesson-toc-item.is-test .lesson-toc-marker { background: var(--ds-component-lessonToc-test-marker); color: var(--ds-component-lessonToc-test-markerForeground); }
/* Текстовый материал — кремовый значок с книжкой, как блокнот */
.lesson-toc-item.is-material .lesson-toc-marker { background: var(--ds-component-lessonToc-material-marker); color: var(--ds-component-lessonToc-material-markerForeground); }
/* Карточка материала: текст для чтения или задание практики. Абзацы, подзаголовки и списки — из описания в админке */
.lesson-card .material-article { display: grid; gap: var(--ds-space-3); max-width: 640px; }
.lesson-card .material-article h3 { margin: var(--ds-space-2) 0 0; }
.lesson-card .material-article h3:first-child { margin-top: 0; }
.material-article > p, .material-article-list { font-size: var(--ds-font-size-secondary); line-height: var(--ds-font-line-body); text-wrap: pretty; }
.material-article-list { display: grid; gap: var(--ds-space-2); margin: 0; padding-left: var(--ds-space-5); color: var(--ds-color-muted); }
.material-article-list li::marker { color: var(--ds-component-lessonToc-current-marker); }
.material-article-end { display: flex; padding-top: var(--ds-space-2); }
/* Материалы к уроку, практике, тесту и тексту (MaterialShelf) — карточки библиотеки; в вкладке и под заданием — с отступом сверху */
.material-article .material-shelf, .ds-tab-panel .material-shelf { margin-top: var(--ds-space-2); }
/* Практика по блокам: цель, шаги, совет, как сдать */
.lesson-card .material-article h4.practice-block-title { margin: var(--ds-space-2) 0 0; font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
.admin-practice-fields { display: grid; gap: var(--ds-space-4); margin: 0; padding: var(--ds-space-4) 0 0; border: 0; border-top: var(--ds-border-width) solid var(--ds-color-line); min-width: 0; }
.admin-practice-fields[hidden] { display: none; }
/* Материалы из раздела «Материалы» в окне материала (LibraryPicker): свёрнутая строка «Материалы из раздела „Материалы“ · выбрано N»,
   внутри — флажки по темам библиотеки списком: окно узкое, длинные названия в две колонки не помещаются */
.admin-library-picker > .ds-accordion-summary { flex-wrap: wrap; gap: var(--ds-space-1) var(--ds-space-2); padding: var(--ds-space-3) var(--ds-space-4); border: var(--ds-border-width) solid var(--ds-color-border-default); border-radius: var(--ds-radius-item); }
.admin-library-picker[open] > .ds-accordion-summary { margin-bottom: var(--ds-space-3); }
.admin-library-title { font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); }
.admin-library-meta, .admin-library-hint { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-tag); }
.admin-library-hint { margin: 0 0 var(--ds-space-3); }
.admin-library-group { display: grid; gap: var(--ds-space-2); margin: 0 0 var(--ds-space-3); padding: 0; border: 0; min-width: 0; }
.admin-library-topic { padding: 0; margin-bottom: var(--ds-space-2); font-size: var(--ds-font-size-tag); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-text-secondary); }
.admin-library-options { display: grid; gap: var(--ds-space-2); }
.admin-practice-fields legend { padding: 0; margin-bottom: var(--ds-space-3); }
.lesson-toc-item.is-missed .lesson-toc-status { color: var(--ds-component-lessonToc-week-leftForeground); font-weight: var(--ds-font-weight-medium); }
.aside-help { width: 100%; padding: var(--ds-space-4) var(--ds-space-2); font-size: var(--ds-font-size-secondary); }
.aside-help .icon { width: 18px; height: 18px; }
.aside-help .icon:last-child { margin-left: auto; }
@media (max-width: 1180px) {
.lesson-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: var(--ds-space-4) var(--ds-space-5); }
}
@media (max-width: 960px) {
.lesson-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lesson" "program"; }
/* Оглавление под уроком: не прилипает, тоже не выше экрана — список прокручивается внутри, если длинный */
.lesson-aside { position: static; max-height: var(--ds-size-lesson-toc-screen-mobile); }
}
@media (max-width: 700px) {
.detail-heading { flex-wrap: wrap; margin-bottom: var(--ds-space-5); }
.detail-heading p { font-size: var(--ds-font-size-secondary); }
.video-play { width: var(--ds-space-10); height: var(--ds-space-10); }
.video-play .icon { width: var(--ds-space-5); height: var(--ds-space-5); }
.lesson-title-row { flex-direction: column; align-items: stretch; margin-top: var(--ds-space-5); }
.lesson-title h2 { font-size: var(--ds-font-size-lead); }
.lesson-watch { justify-items: start; width: 100%; }
.lesson-watch-text { text-align: left; }
.lesson-watch-reward { justify-content: flex-start; }
.notes-footer { flex-direction: column; align-items: flex-start; }
}

/* Админка (#/admin) — разделы «Пользователи» и «Программы» у администратора; недели программы карточками dashboard-card,
   строки материалов и пользователей — рамочные, как material-item; действия — круглые кнопки-значки справа */
.admin-panel { padding-top: var(--ds-space-2); }
.admin-panel h3, .admin-card-title { margin: 0; font-size: var(--ds-font-size-lead); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-3); margin-bottom: var(--ds-space-5); }
.admin-summary { font-size: var(--ds-font-size-secondary); }
.admin-weeks, .admin-panel { display: grid; gap: var(--ds-space-5); }
.admin-weeks { grid-template-columns: minmax(0, 1fr); }
.admin-week { display: grid; gap: var(--ds-space-4); }
.admin-week-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ds-space-3); }
.admin-week-title { display: grid; gap: var(--ds-space-1); min-width: 0; }
/* Свёрнутая неделя — одна строка: номер, тема и сводка; карточка ниже, чтобы быстро долистать до нужной */
.admin-week.is-collapsed { padding-block: var(--ds-space-4); }
.admin-week-body { display: grid; gap: var(--ds-space-4); }
.admin-week-body[hidden] { display: none; }
.admin-week-heading { flex: 1; min-width: 0; }
.admin-week-toggle { display: flex; align-items: flex-start; gap: var(--ds-space-3); width: 100%; min-height: var(--ds-size-button); padding: var(--ds-space-1) 0; border: 0; border-radius: var(--ds-radius-item); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.admin-week-toggle:focus-visible { outline: 2px solid var(--ds-color-focus-ring); outline-offset: 2px; }
.admin-week-toggle > .icon { flex: none; width: var(--ds-space-6); height: var(--ds-space-6); margin-top: var(--ds-space-1); color: var(--ds-color-muted); transition: transform var(--ds-motion-fast); }
.admin-week-toggle[aria-expanded="false"] > .icon { transform: rotate(-90deg); }
.admin-week-toggle:hover > .icon { color: var(--ds-color-ink); }
.admin-week-number { color: var(--ds-color-ink); }
.admin-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2) var(--ds-space-4); }
@media (prefers-reduced-motion: reduce) { .admin-week-toggle > .icon { transition: none; } }
.admin-week-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2) var(--ds-space-3); }
.admin-week-theme, .admin-empty { font-size: var(--ds-font-size-secondary); color: var(--ds-color-muted); }
.admin-list { display: grid; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.admin-row { display: flex; align-items: center; gap: var(--ds-space-3); min-height: var(--ds-size-field); padding: var(--ds-space-2) var(--ds-space-2) var(--ds-space-2) var(--ds-space-4); border: var(--ds-border-item) solid var(--ds-component-dashboard-itemBorder); border-radius: var(--ds-radius-item); }
.admin-row-copy { display: grid; flex: 1; gap: var(--ds-space-1); min-width: 0; }
.admin-row-title { font-weight: var(--ds-font-weight-medium); overflow-wrap: anywhere; }
.admin-row-meta { font-size: var(--ds-font-size-caption); color: var(--ds-color-muted); overflow-wrap: anywhere; }
.admin-row-self { font-weight: var(--ds-font-weight-normal); color: var(--ds-color-muted); }
.admin-row-actions { display: flex; flex: none; gap: var(--ds-space-1); }
.admin-row .admin-kind { flex: none; min-width: calc(var(--ds-space-12) + var(--ds-space-10)); }
.admin-row[data-kind="Практика"] .admin-kind { background: var(--ds-component-lessonToc-practice-marker); color: var(--ds-component-lessonToc-practice-markerForeground); }
.admin-row[data-kind="Материал"] .admin-kind { background: var(--ds-component-lessonToc-material-marker); color: var(--ds-component-lessonToc-material-markerForeground); }
.admin-add { justify-self: start; }
/* Пояснение к части программы и к оплате: кому и когда открывается */
.admin-part-note { margin: 0; max-width: 70ch; font-size: var(--ds-font-size-secondary); color: var(--ds-color-muted); }
/* Ярлык доступа ученика (AccessBadge) в строке потока и оплаты */
.admin-access { flex: none; }
/* Пользователи: форма в одну строку, список с поиском и ролью выпадающим списком */
.admin-users-add, .admin-users { display: grid; gap: var(--ds-space-4); }
.admin-user-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: var(--ds-space-4) var(--ds-space-3); }
.admin-user-form .admin-user-submit { grid-column: 1 / -1; justify-self: start; }
.admin-field { display: grid; gap: var(--ds-space-2); min-width: 0; }
.admin-field .ds-label, .admin-dialog-form .ds-label { font-size: var(--ds-font-size-secondary); }
.admin-user-submit { min-height: var(--ds-size-field); }
.admin-users-list { display: grid; gap: var(--ds-space-3); }
.admin-user .ds-user-avatar { flex: none; }
.admin-user-role { flex: none; width: 210px; }
.admin-user-role .ds-field { min-height: var(--ds-size-button); padding-block: var(--ds-space-2); font-size: var(--ds-font-size-secondary); }
/* Шапка программы: выбор программы и «Новая программа», ниже название и потоки ярлыками-ссылками */
.admin-program-head, .admin-stream { display: grid; gap: var(--ds-space-4); }
.admin-stream:focus-visible { outline: 2px solid var(--ds-color-focus-ring); outline-offset: 2px; }
.admin-program-picker { display: grid; grid-template-columns: minmax(0, 28rem) auto; align-items: end; justify-content: start; gap: var(--ds-space-3); }
.admin-program-new { min-height: var(--ds-size-field); }
.admin-links, .admin-stream-program { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2) var(--ds-space-3); }
.admin-stream-program { align-items: end; }
.admin-stream-program > .admin-field { flex: 0 1 28rem; }
.admin-links-label { font-size: var(--ds-font-size-secondary); color: var(--ds-color-ink); font-weight: var(--ds-font-weight-medium); }
.admin-chips { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.admin-chip { display: inline-flex; align-items: center; gap: var(--ds-space-2); min-height: var(--ds-size-button); padding: var(--ds-space-1) var(--ds-space-4); border-radius: var(--ds-radius-pill); background: var(--ds-color-neutral-bg); color: var(--ds-color-ink); font-size: var(--ds-font-size-secondary); text-decoration: none; }
.admin-chip:hover { background: var(--ds-color-hover); }
.admin-chip:focus-visible { outline: 2px solid var(--ds-color-focus-ring); outline-offset: 2px; }
.admin-chip .icon { width: var(--ds-space-5); height: var(--ds-space-5); flex: none; }
/* Окно «Добавить учеников»: флажки списком, длинный список прокручивается внутри окна */
.admin-checks { display: grid; gap: var(--ds-space-2); max-height: min(50vh, 26rem); margin: 0; padding: 0; border: 0; overflow-y: auto; }
/* Окна админки: поля друг под другом, вид и монетки — в одну строку */
.admin-dialog-form { display: grid; gap: var(--ds-space-4); }
.admin-dialog-form .field-description { margin: calc(-1 * var(--ds-space-1)) 0 0; font-size: var(--ds-font-size-caption); }
.admin-dialog-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 140px); gap: var(--ds-space-3); }
.admin-dialog-actions { display: grid; gap: var(--ds-space-2); justify-items: center; }
.admin-dialog-actions .button { width: 100%; }
/* Текстовая кнопка в окне («Вернуться к задачам», «Не переносить», «Отмена»): высота как у обычной кнопки, текст по центру —
   так между ней и зелёной кнопкой ровный отступ, и нажимать её удобно */
.admin-dialog-actions .text-button { min-height: var(--ds-size-button); justify-content: center; padding: 0 var(--ds-space-4); }
.modal .admin-dialog-form .button, .modal .admin-dialog-actions .button { margin-top: 0; }
/* Широкое окно Dialog({ className: 'modal-wide' }): у самого окна прокрутки нет — оно всегда в экране.
   Заголовок, пояснение и кнопки на месте, список флажков занимает остаток высоты и прокручивается сам, только если не влез и в ширину */
.modal.modal-wide { display: flex; flex-direction: column; overflow: hidden; }
/* Заголовок не заходит под крестик закрытия (окно переноса и его подтверждение) */
.modal-wide > h2, .carry-confirm > h2 { padding-right: var(--ds-space-10); }
.modal-wide > h2, .modal-wide > p { flex: none; }
.modal-wide > p { line-height: var(--ds-font-line-body); }
.modal-wide > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.modal-wide .admin-checks { flex: 0 1 auto; min-height: 0; max-height: none; }
.modal-wide .admin-dialog-actions { flex: none; grid-auto-flow: column; justify-content: start; align-items: center; }
.modal-wide .admin-dialog-actions .button { width: auto; }
/* Окно «Перенести задачи на эту неделю?»: не шире 560px, задачи одной колонкой. Окно всегда в экране — заголовок, пояснение
   и кнопки видны; если задач много, прокручивается только их список (полоса прокрутки — у списка, не у окна) */
.modal.carry-dialog { max-width: 560px; }
/* Выбор питомца при первом входе (pet-choice.js): 16 карточек-переключателей с персонажем и именем — на компьютере 8 × 2, на планшете и телефоне 4 × 4;
   выбранная — с зелёной рамкой */
.modal.pet-choice-dialog { max-width: 800px; }
.pet-choice-form { display: grid; gap: var(--ds-space-6); margin-top: var(--ds-space-6); }
.pet-choice-list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--ds-space-2); margin: 0; padding: 0; border: 0; }
.pet-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.pet-choice-input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pet-choice-card { display: grid; justify-items: center; gap: var(--ds-space-1); padding: var(--ds-space-2) var(--ds-space-1); border: var(--ds-border-highlight) solid var(--ds-color-border-subtle); border-radius: var(--ds-radius-item); background: var(--ds-color-background-surface); transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.pet-choice-art { display: block; width: 100%; max-width: 64px; height: auto; }
.pet-choice-name { max-width: 100%; overflow: hidden; font-size: var(--ds-font-size-tag); font-weight: var(--ds-font-weight-medium); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.pet-choice:hover .pet-choice-card { background: var(--ds-color-background-subtle); }
.pet-choice-input:checked + .pet-choice-card { border-color: var(--ds-color-brand-primary); background: var(--ds-color-background-brandPrimary-subtle); transform: translateY(-2px); }
.pet-choice-input:focus-visible + .pet-choice-card { outline: 3px solid var(--ds-color-focus-ring); outline-offset: 2px; }
.pet-choice-submit { width: 100%; }
@media (max-width: 820px) {
  .pet-choice-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .pet-choice-form { gap: var(--ds-space-5); margin-top: var(--ds-space-5); }
  /* Карточки узкие: без боковых отступов имя «Медведь» помещается целиком; кнопка «Выбрать» остаётся внизу окна при прокрутке */
  .pet-choice-card { padding: var(--ds-space-2) 0; }
  .pet-choice-art { max-width: 48px; }
  /* Тень цвета окна закрывает нижний отступ окна, чтобы карточки не просвечивали под кнопкой */
  .pet-choice-actions { position: sticky; bottom: 0; z-index: 1; padding-top: var(--ds-space-3); background: var(--ds-color-background-surface); box-shadow: 0 var(--ds-space-9) 0 var(--ds-color-background-surface); }
}
@media (prefers-reduced-motion: reduce) {
  .pet-choice-card { transition: none; }
  .pet-choice-input:checked + .pet-choice-card { transform: none; }
}
.carry-dialog .carry-list { grid-template-columns: minmax(0, 1fr); align-content: start; overflow-y: auto; overscroll-behavior: contain; }
/* Флажок Checkbox в окне (например, «Обязательный материал»): старые правила .modal label и .modal input его не растягивают */
.modal form label.ds-check { display: flex; margin-bottom: 0; font-size: inherit; }
.modal .ds-check-input { width: var(--ds-size-checkbox); height: var(--ds-size-checkbox); padding: 0; border: var(--ds-border-item) solid var(--ds-component-task-box); border-radius: var(--ds-radius-checkbox); }
.modal .ds-check-input:not(.ds-field) { background: transparent; }
.modal .ds-check-input:checked:not(.ds-field) { border-color: var(--ds-component-task-doneBackground); background: url("../../assets/home/check.svg") center / 100% no-repeat, var(--ds-component-task-doneBackground); }
/* В окнах админки поля — обычные Field дизайн-системы (без старой рамки .modal input), текст 16, чтобы форма помещалась */
.modal .admin-dialog-form .ds-field { border: 0; border-radius: var(--ds-radius-field); padding: var(--ds-size-field-padding-y) var(--ds-size-field-padding-x); font-size: var(--ds-font-size-body); }
.modal .admin-dialog-form .ds-select > select.ds-field { padding-right: calc(var(--ds-size-field-padding-x) + var(--ds-space-6)); }
.modal .admin-dialog-form textarea.ds-field { min-height: calc(var(--ds-space-10) * 3); }

@media (max-width: 820px) {
  .admin-user-form, .admin-program-picker { grid-template-columns: minmax(0, 1fr); }
  .admin-program-new { justify-self: start; }
  .admin-stream-program > .admin-field { flex-basis: 100%; }
  .admin-row { flex-wrap: wrap; padding: var(--ds-space-3); }
  .admin-row-copy { flex-basis: calc(100% - var(--ds-space-12) * 2); }
  .admin-row > .admin-row-actions { width: 100%; justify-content: flex-end; }
  .admin-user-role { flex: 1; width: auto; }
  .admin-user .admin-row-copy { flex-basis: calc(100% - var(--ds-space-12)); }
  /* Ученик в потоке и строка оплаты: фото и имя — первой строкой, ярлык доступа и кнопка — второй, кнопка справа */
  .admin-member > .icon-button, .admin-payment > .icon-button { margin-left: auto; }
}

/* Город Настав — карта «Мой путь» */
.city-view main { max-width: none; padding-block: var(--ds-space-5) var(--ds-space-8); }
.pixel-city { display: grid; gap: var(--ds-space-4); }
.city-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: var(--ds-space-4); align-items: start; }
.city-map-card, .city-detail-card { padding: 0; border: 0; border-radius: var(--ds-radius-panel); overflow: hidden; }
.city-scene { position: relative; isolation: isolate; aspect-ratio: 1641 / 958; overflow: hidden; background: var(--ds-color-background-brandPrimary-subtle); --city-building-blur: blur(9px); }
.city-art { width: 100%; height: 100%; display: block; }
/* SVG наследует фильтр только для закрытых фасадов, сохраняя порядок слоёв карты. */
.city-art[data-locked-buildings~='k1'] { --city-blur-k1: var(--city-building-blur); }
.city-art[data-locked-buildings~='k2'] { --city-blur-k2: var(--city-building-blur); }
.city-art[data-locked-buildings~='k3'] { --city-blur-k3: var(--city-building-blur); }
.city-art[data-locked-buildings~='k4'] { --city-blur-k4: var(--city-building-blur); }
.city-art[data-locked-buildings~='k5'] { --city-blur-k5: var(--city-building-blur); }
.city-art[data-locked-buildings~='k6'] { --city-blur-k6: var(--city-building-blur); }
.city-art[data-locked-buildings~='k7'] { --city-blur-k7: var(--city-building-blur); }
.city-art[data-locked-buildings~='k8'] { --city-blur-k8: var(--city-building-blur); }
.city-art[data-locked-buildings~='clients'] { --city-blur-clients: var(--city-building-blur); }
/* Живой слой карты лежит ровно поверх неё и не мешает нажимать на здания */
.city-life { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Закрытый «Мой путь» (pixel-city.js → LockedCity): карта размыта и чуть приглушена, справа — замочек и пояснение по центру */
.city-map-locked .city-scene > img { filter: blur(10px) saturate(0.85); transform: scale(1.04); }
.city-locked-card { display: flex; }
.city-locked-content { display: grid; flex: 1; align-content: center; justify-items: center; gap: var(--ds-space-4); padding: var(--ds-space-8) var(--ds-space-6); text-align: center; }
.city-locked-content h2 { font-size: var(--ds-font-size-lead); font-weight: var(--ds-font-weight-medium); line-height: 1.25; }
.city-locked-icon { display: grid; place-items: center; width: var(--ds-space-16); height: var(--ds-space-16); border-radius: 50%; background: var(--ds-color-background-subtle); color: var(--ds-color-text-secondary); }
.city-locked-icon .icon { width: var(--ds-space-8); height: var(--ds-space-8); }
@media (max-width: 680px) {
  .city-locked-content { padding: var(--ds-space-6) var(--ds-space-4); }
}
.city-area-start { --city-soft: var(--ds-color-palette-green-100); }
.city-area-sites { --city-soft: var(--ds-color-palette-paper-100); }
.city-area-apps { --city-soft: var(--ds-color-palette-lilac-100); }
.city-area-final { --city-soft: var(--ds-color-palette-sun-100); }
.city-area-clients { --city-soft: var(--ds-color-palette-paper-100); }
.city-marker.ds-button { position: absolute; left: var(--city-x); top: var(--city-y); transform: translate(-50%, -50%); display: flex; min-width: 0; gap: 0; padding: 0; border-radius: var(--ds-radius-pill); color: var(--ds-color-ink); isolation: isolate; z-index: 40; }
.city-marker::before { content: ''; position: absolute; inset: -125% -35% 0; z-index: -1; }
/* Точки — по центру здания, чуть ниже середины: координаты из рамок зданий на карте 1641 × 958 */
.city-marker-start { --city-x: 14.56%; --city-y: 71.91%; }
.city-marker-k1 { --city-x: 22.39%; --city-y: 46.16%; }
.city-marker-k2 { --city-x: 16.15%; --city-y: 21.35%; }
.city-marker-k3 { --city-x: 38.70%; --city-y: 17.59%; }
.city-marker-k4 { --city-x: 40.43%; --city-y: 49.33%; }
.city-marker-k5 { --city-x: 56.28%; --city-y: 36.59%; }
.city-marker-k6 { --city-x: 74.62%; --city-y: 18.20%; }
.city-marker-k7 { --city-x: 87.63%; --city-y: 37.03%; }
.city-marker-k8 { --city-x: 81.14%; --city-y: 65.42%; }
.city-marker-clients { --city-x: 54.02%; --city-y: 71.85%; }
.city-point { display: grid; place-items: center; width: var(--ds-space-8); aspect-ratio: 1; border-radius: var(--ds-radius-pill); border: var(--ds-border-highlight) solid var(--ds-color-surface); background: var(--city-soft); box-shadow: var(--ds-shadow-hover); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); }
.city-point .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
/* Животные учеников потока у здания модуля, где ученик сейчас. Толпа стоит перед зданием и только на суше:
   трава, дорожки, мосты — не на воде и не на обрыве острова. Места (--x/--y — где лапы касаются земли) собирает
   scripts/city-ground.py по самой карте: до 60 мест у каждого здания, дальше места повторяются. Тесно — нормально,
   зверьки могут перекрывать друг друга, но не точки модулей (те выше, 40). Зверёк под курсором — ещё выше (popover). Размер зверька — доля ширины карты (cqi) */
.city-scene { container-type: inline-size; }
.city-crowd { --city-pet: 3.2cqi; position: absolute; inset: 0; pointer-events: none; }
/* Где стоит толпа: полянка перед входом в здание (координаты карты 1641 × 958), не на подписях «Предобучение» и «Клиенты» */
.city-pet { position: absolute; left: var(--x); top: var(--y); width: var(--city-pet); transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; }
.city-pet-art { display: block; width: 100%; height: auto; transition: transform var(--ds-motion-fast); }

.city-pet:hover .city-pet-art, .city-pet.is-open .city-pet-art { transform: translateY(-15%); }
/* «Вы» над своим зверьком — чтобы найти себя в толпе */
.city-pet-you { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding: 0 var(--ds-space-1); border-radius: var(--ds-radius-pill); background: var(--ds-color-brand-primary); color: var(--ds-color-text-inverse); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); line-height: 1.4; white-space: nowrap; pointer-events: none; }
/* Подсказка — Tooltip над зверьком: имя и монетки. У верхних зданий — под зверьком, у краёв карты прижата внутрь */
.city-pet-tip { position: absolute; left: 50%; bottom: calc(100% + var(--ds-size-tooltip-tail) + var(--ds-size-tooltip-depth)); transform: translateX(-50%); opacity: 0; visibility: hidden; pointer-events: none; white-space: nowrap; transition: opacity var(--ds-motion-fast), visibility var(--ds-motion-fast); }
.city-pet:hover .city-pet-tip, .city-pet.is-open .city-pet-tip { opacity: 1; visibility: visible; }
.city-pet.is-self:hover .city-pet-you, .city-pet.is-self.is-open .city-pet-you { visibility: hidden; }
.city-crowd.city-marker-k2 .city-pet-tip, .city-crowd.city-marker-k3 .city-pet-tip, .city-crowd.city-marker-k6 .city-pet-tip { top: calc(100% + var(--ds-size-tooltip-tail)); bottom: auto; }
.city-crowd.city-marker-k2 .city-pet-tip::after, .city-crowd.city-marker-k3 .city-pet-tip::after, .city-crowd.city-marker-k6 .city-pet-tip::after { top: auto; bottom: calc(100% + var(--ds-border-item) - 1px); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.city-crowd.city-marker-start .city-pet-tip, .city-crowd.city-marker-k2 .city-pet-tip { --tooltip-tail-x: 20%; transform: translateX(-20%); }
.city-crowd.city-marker-k7 .city-pet-tip, .city-crowd.city-marker-k8 .city-pet-tip { --tooltip-tail-x: 80%; transform: translateX(-80%); }
/* city-ground:start — места зверьков на суше, собраны scripts/city-ground.py; руками не править.
   --x/--y — точка, где лапы касаются земли (% карты); чем ниже зверёк, тем он ближе к зрителю (z-index 1–29) */
.city-marker-start > :nth-child(60n + 1) { --x: 15.60%; --y: 82.57%; z-index: 21; }
.city-marker-start > :nth-child(60n + 2) { --x: 12.86%; --y: 81.00%; z-index: 20; }
.city-marker-start > :nth-child(60n + 3) { --x: 18.53%; --y: 82.57%; z-index: 21; }
.city-marker-start > :nth-child(60n + 4) { --x: 15.60%; --y: 90.08%; z-index: 27; }
.city-marker-start > :nth-child(60n + 5) { --x: 20.90%; --y: 79.75%; z-index: 18; }
.city-marker-start > :nth-child(60n + 6) { --x: 10.30%; --y: 78.50%; z-index: 14; }
.city-marker-start > :nth-child(60n + 7) { --x: 12.49%; --y: 90.08%; z-index: 28; }
.city-marker-start > :nth-child(60n + 8) { --x: 18.53%; --y: 90.40%; z-index: 28; }
.city-marker-start > :nth-child(60n + 9) { --x: 17.06%; --y: 79.44%; z-index: 17; }
.city-marker-start > :nth-child(60n + 10) { --x: 17.06%; --y: 85.70%; z-index: 25; }
.city-marker-start > :nth-child(60n + 11) { --x: 14.87%; --y: 78.50%; z-index: 15; }
.city-marker-start > :nth-child(60n + 12) { --x: 10.30%; --y: 88.52%; z-index: 26; }
.city-marker-start > :nth-child(60n + 13) { --x: 22.91%; --y: 77.87%; z-index: 14; }
.city-marker-start > :nth-child(60n + 14) { --x: 7.92%; --y: 88.52%; z-index: 27; }
.city-marker-start > :nth-child(60n + 15) { --x: 6.28%; --y: 80.69%; z-index: 19; }
.city-marker-start > :nth-child(60n + 16) { --x: 25.11%; --y: 85.70%; z-index: 25; }
.city-marker-start > :nth-child(60n + 17) { --x: 5.91%; --y: 86.64%; z-index: 26; }
.city-marker-start > :nth-child(60n + 18) { --x: 25.29%; --y: 78.50%; z-index: 15; }
.city-marker-start > :nth-child(60n + 19) { --x: 5.18%; --y: 77.24%; z-index: 12; }
.city-marker-start > :nth-child(60n + 20) { --x: 27.12%; --y: 82.25%; z-index: 20; }
.city-marker-start > :nth-child(60n + 21) { --x: 6.28%; --y: 72.55%; z-index: 9; }
.city-marker-start > :nth-child(60n + 22) { --x: 26.02%; --y: 74.74%; z-index: 10; }
.city-marker-start > :nth-child(60n + 23) { --x: 27.67%; --y: 78.50%; z-index: 16; }
.city-marker-start > :nth-child(60n + 24) { --x: 7.56%; --y: 69.10%; z-index: 7; }
.city-marker-start > :nth-child(60n + 25) { --x: 13.95%; --y: 83.19%; z-index: 22; }
.city-marker-start > :nth-child(60n + 26) { --x: 15.42%; --y: 85.39%; z-index: 24; }
.city-marker-start > :nth-child(60n + 27) { --x: 12.49%; --y: 84.45%; z-index: 23; }
.city-marker-start > :nth-child(60n + 28) { --x: 18.71%; --y: 79.75%; z-index: 18; }
.city-marker-start > :nth-child(60n + 29) { --x: 11.21%; --y: 81.63%; z-index: 20; }
.city-marker-start > :nth-child(60n + 30) { --x: 12.13%; --y: 78.50%; z-index: 16; }
.city-marker-start > :nth-child(60n + 31) { --x: 20.17%; --y: 82.57%; z-index: 22; }
.city-marker-start > :nth-child(60n + 32) { --x: 14.14%; --y: 91.34%; z-index: 29; }
.city-marker-start > :nth-child(60n + 33) { --x: 17.06%; --y: 91.65%; z-index: 29; }
.city-marker-start > :nth-child(60n + 34) { --x: 24.01%; --y: 75.68%; z-index: 11; }
.city-marker-start > :nth-child(60n + 35) { --x: 5.55%; --y: 83.19%; z-index: 23; }
.city-marker-start > :nth-child(60n + 36) { --x: 4.63%; --y: 80.69%; z-index: 19; }
.city-marker-start > :nth-child(60n + 37) { --x: 26.75%; --y: 85.07%; z-index: 24; }
.city-marker-start > :nth-child(60n + 38) { --x: 3.53%; --y: 78.50%; z-index: 17; }
.city-marker-start > :nth-child(60n + 39) { --x: 25.47%; --y: 71.29%; z-index: 8; }
.city-marker-start > :nth-child(60n + 40) { --x: 27.67%; --y: 75.68%; z-index: 12; }
.city-marker-start > :nth-child(60n + 41) { --x: 8.84%; --y: 66.91%; z-index: 6; }
.city-marker-start > :nth-child(60n + 42) { --x: 20.35%; --y: 65.34%; z-index: 5; }
.city-marker-start > :nth-child(60n + 43) { --x: 27.12%; --y: 72.55%; z-index: 10; }
.city-marker-start > :nth-child(60n + 44) { --x: 18.71%; --y: 63.78%; z-index: 3; }
.city-marker-start > :nth-child(60n + 45) { --x: 29.13%; --y: 77.24%; z-index: 13; }
.city-marker-start > :nth-child(60n + 46) { --x: 12.68%; --y: 63.15%; z-index: 2; }
.city-marker-start > :nth-child(60n + 47) { --x: 7.19%; --y: 66.28%; z-index: 5; }
.city-marker-start > :nth-child(60n + 48) { --x: 15.60%; --y: 62.53%; z-index: 1; }
.city-marker-start > :nth-child(60n + 49) { --x: 22.00%; --y: 64.41%; z-index: 4; }
.city-marker-start > :nth-child(60n + 50) { --x: 26.93%; --y: 69.73%; z-index: 7; }
.city-marker-start > :nth-child(60n + 51) { --x: 28.76%; --y: 73.49%; z-index: 10; }
.city-marker-start > :nth-child(60n + 52) { --x: 14.14%; --y: 61.27%; z-index: 1; }
.city-marker-start > :nth-child(60n + 53) { --x: 28.58%; --y: 70.67%; z-index: 8; }
.city-marker-start > :nth-child(60n + 54) { --x: 30.77%; --y: 77.56%; z-index: 13; }
.city-marker-start > :nth-child(60n + 55) { --x: 30.23%; --y: 74.74%; z-index: 11; }
.city-marker-start > :nth-child(60n + 56) { --x: 7.92%; --y: 63.47%; z-index: 2; }
.city-marker-start > :nth-child(60n + 57) { --x: 23.64%; --y: 63.78%; z-index: 3; }
.city-marker-start > :nth-child(60n + 58) { --x: 26.93%; --y: 66.91%; z-index: 6; }
.city-marker-start > :nth-child(60n + 59) { --x: 5.91%; --y: 64.41%; z-index: 4; }
.city-marker-start > :nth-child(60n + 60) { --x: 30.23%; --y: 71.92%; z-index: 9; }
.city-marker-k1 > :nth-child(60n + 1) { --x: 22.00%; --y: 54.38%; z-index: 11; }
.city-marker-k1 > :nth-child(60n + 2) { --x: 19.07%; --y: 54.38%; z-index: 11; }
.city-marker-k1 > :nth-child(60n + 3) { --x: 23.46%; --y: 58.77%; z-index: 17; }
.city-marker-k1 > :nth-child(60n + 4) { --x: 16.70%; --y: 57.20%; z-index: 15; }
.city-marker-k1 > :nth-child(60n + 5) { --x: 16.51%; --y: 51.88%; z-index: 10; }
.city-marker-k1 > :nth-child(60n + 6) { --x: 26.20%; --y: 60.33%; z-index: 19; }
.city-marker-k1 > :nth-child(60n + 7) { --x: 21.82%; --y: 62.84%; z-index: 21; }
.city-marker-k1 > :nth-child(60n + 8) { --x: 18.89%; --y: 63.15%; z-index: 22; }
.city-marker-k1 > :nth-child(60n + 9) { --x: 24.19%; --y: 62.53%; z-index: 20; }
.city-marker-k1 > :nth-child(60n + 10) { --x: 14.87%; --y: 54.70%; z-index: 12; }
.city-marker-k1 > :nth-child(60n + 11) { --x: 16.33%; --y: 61.90%; z-index: 19; }
.city-marker-k1 > :nth-child(60n + 12) { --x: 14.32%; --y: 50.94%; z-index: 9; }
.city-marker-k1 > :nth-child(60n + 13) { --x: 14.69%; --y: 59.08%; z-index: 17; }
.city-marker-k1 > :nth-child(60n + 14) { --x: 12.86%; --y: 56.58%; z-index: 14; }
.city-marker-k1 > :nth-child(60n + 15) { --x: 27.12%; --y: 65.03%; z-index: 23; }
.city-marker-k1 > :nth-child(60n + 16) { --x: 14.32%; --y: 45.62%; z-index: 8; }
.city-marker-k1 > :nth-child(60n + 17) { --x: 13.59%; --y: 62.53%; z-index: 20; }
.city-marker-k1 > :nth-child(60n + 18) { --x: 29.31%; --y: 65.97%; z-index: 24; }
.city-marker-k1 > :nth-child(60n + 19) { --x: 26.39%; --y: 68.79%; z-index: 25; }
.city-marker-k1 > :nth-child(60n + 20) { --x: 14.50%; --y: 41.54%; z-index: 6; }
.city-marker-k1 > :nth-child(60n + 21) { --x: 10.12%; --y: 51.57%; z-index: 9; }
.city-marker-k1 > :nth-child(60n + 22) { --x: 33.88%; --y: 59.39%; z-index: 18; }
.city-marker-k1 > :nth-child(60n + 23) { --x: 30.23%; --y: 40.92%; z-index: 6; }
.city-marker-k1 > :nth-child(60n + 24) { --x: 28.58%; --y: 69.73%; z-index: 26; }
.city-marker-k1 > :nth-child(60n + 25) { --x: 20.54%; --y: 53.13%; z-index: 10; }
.city-marker-k1 > :nth-child(60n + 26) { --x: 23.46%; --y: 55.64%; z-index: 13; }
.city-marker-k1 > :nth-child(60n + 27) { --x: 22.00%; --y: 57.20%; z-index: 15; }
.city-marker-k1 > :nth-child(60n + 28) { --x: 18.89%; --y: 57.20%; z-index: 16; }
.city-marker-k1 > :nth-child(60n + 29) { --x: 18.34%; --y: 51.88%; z-index: 10; }
.city-marker-k1 > :nth-child(60n + 30) { --x: 22.00%; --y: 60.02%; z-index: 18; }
.city-marker-k1 > :nth-child(60n + 31) { --x: 17.43%; --y: 54.38%; z-index: 12; }
.city-marker-k1 > :nth-child(60n + 32) { --x: 20.35%; --y: 64.41%; z-index: 23; }
.city-marker-k1 > :nth-child(60n + 33) { --x: 11.94%; --y: 62.53%; z-index: 21; }
.city-marker-k1 > :nth-child(60n + 34) { --x: 25.47%; --y: 71.29%; z-index: 27; }
.city-marker-k1 > :nth-child(60n + 35) { --x: 30.77%; --y: 67.22%; z-index: 25; }
.city-marker-k1 > :nth-child(60n + 36) { --x: 12.86%; --y: 41.54%; z-index: 7; }
.city-marker-k1 > :nth-child(60n + 37) { --x: 27.12%; --y: 71.29%; z-index: 27; }
.city-marker-k1 > :nth-child(60n + 38) { --x: 22.00%; --y: 35.59%; z-index: 2; }
.city-marker-k1 > :nth-child(60n + 39) { --x: 23.64%; --y: 35.59%; z-index: 3; }
.city-marker-k1 > :nth-child(60n + 40) { --x: 25.29%; --y: 35.59%; z-index: 3; }
.city-marker-k1 > :nth-child(60n + 41) { --x: 7.92%; --y: 55.95%; z-index: 13; }
.city-marker-k1 > :nth-child(60n + 42) { --x: 18.16%; --y: 35.59%; z-index: 4; }
.city-marker-k1 > :nth-child(60n + 43) { --x: 30.23%; --y: 70.04%; z-index: 26; }
.city-marker-k1 > :nth-child(60n + 44) { --x: 31.87%; --y: 39.98%; z-index: 5; }
.city-marker-k1 > :nth-child(60n + 45) { --x: 26.93%; --y: 35.59%; z-index: 4; }
.city-marker-k1 > :nth-child(60n + 46) { --x: 7.74%; --y: 49.37%; z-index: 8; }
.city-marker-k1 > :nth-child(60n + 47) { --x: 20.54%; --y: 34.03%; z-index: 1; }
.city-marker-k1 > :nth-child(60n + 48) { --x: 28.58%; --y: 72.55%; z-index: 28; }
.city-marker-k1 > :nth-child(60n + 49) { --x: 36.62%; --y: 57.83%; z-index: 16; }
.city-marker-k1 > :nth-child(60n + 50) { --x: 16.51%; --y: 34.97%; z-index: 2; }
.city-marker-k1 > :nth-child(60n + 51) { --x: 8.29%; --y: 63.15%; z-index: 22; }
.city-marker-k1 > :nth-child(60n + 52) { --x: 26.39%; --y: 74.11%; z-index: 29; }
.city-marker-k1 > :nth-child(60n + 53) { --x: 28.58%; --y: 35.59%; z-index: 5; }
.city-marker-k1 > :nth-child(60n + 54) { --x: 22.73%; --y: 33.09%; z-index: 1; }
.city-marker-k1 > :nth-child(60n + 55) { --x: 9.38%; --y: 41.86%; z-index: 7; }
.city-marker-k1 > :nth-child(60n + 56) { --x: 24.19%; --y: 75.37%; z-index: 29; }
.city-marker-k1 > :nth-child(60n + 57) { --x: 6.28%; --y: 55.95%; z-index: 14; }
.city-marker-k1 > :nth-child(60n + 58) { --x: 9.02%; --y: 66.60%; z-index: 24; }
.city-marker-k1 > :nth-child(60n + 59) { --x: 36.62%; --y: 62.21%; z-index: 20; }
.city-marker-k1 > :nth-child(60n + 60) { --x: 30.23%; --y: 72.86%; z-index: 28; }
.city-marker-k2 > :nth-child(60n + 1) { --x: 16.21%; --y: 31.42%; z-index: 9; }
.city-marker-k2 > :nth-child(60n + 2) { --x: 13.28%; --y: 31.42%; z-index: 9; }
.city-marker-k2 > :nth-child(60n + 3) { --x: 18.59%; --y: 28.60%; z-index: 5; }
.city-marker-k2 > :nth-child(60n + 4) { --x: 17.85%; --y: 35.49%; z-index: 16; }
.city-marker-k2 > :nth-child(60n + 5) { --x: 20.41%; --y: 32.99%; z-index: 11; }
.city-marker-k2 > :nth-child(60n + 6) { --x: 10.54%; --y: 32.99%; z-index: 12; }
.city-marker-k2 > :nth-child(60n + 7) { --x: 14.38%; --y: 39.25%; z-index: 18; }
.city-marker-k2 > :nth-child(60n + 8) { --x: 22.79%; --y: 30.17%; z-index: 7; }
.city-marker-k2 > :nth-child(60n + 9) { --x: 22.06%; --y: 35.80%; z-index: 16; }
.city-marker-k2 > :nth-child(60n + 10) { --x: 8.35%; --y: 34.24%; z-index: 13; }
.city-marker-k2 > :nth-child(60n + 11) { --x: 24.07%; --y: 33.61%; z-index: 13; }
.city-marker-k2 > :nth-child(60n + 12) { --x: 12.37%; --y: 41.44%; z-index: 20; }
.city-marker-k2 > :nth-child(60n + 13) { --x: 14.38%; --y: 43.32%; z-index: 22; }
.city-marker-k2 > :nth-child(60n + 14) { --x: 24.98%; --y: 29.23%; z-index: 7; }
.city-marker-k2 > :nth-child(60n + 15) { --x: 7.25%; --y: 28.60%; z-index: 5; }
.city-marker-k2 > :nth-child(60n + 16) { --x: 24.25%; --y: 23.59%; z-index: 1; }
.city-marker-k2 > :nth-child(60n + 17) { --x: 9.45%; --y: 41.44%; z-index: 20; }
.city-marker-k2 > :nth-child(60n + 18) { --x: 26.26%; --y: 34.55%; z-index: 15; }
.city-marker-k2 > :nth-child(60n + 19) { --x: 7.43%; --y: 39.56%; z-index: 19; }
.city-marker-k2 > :nth-child(60n + 20) { --x: 26.26%; --y: 25.78%; z-index: 3; }
.city-marker-k2 > :nth-child(60n + 21) { --x: 27.18%; --y: 30.48%; z-index: 8; }
.city-marker-k2 > :nth-child(60n + 22) { --x: 4.88%; --y: 32.67%; z-index: 10; }
.city-marker-k2 > :nth-child(60n + 23) { --x: 28.46%; --y: 27.04%; z-index: 4; }
.city-marker-k2 > :nth-child(60n + 24) { --x: 28.46%; --y: 35.80%; z-index: 17; }
.city-marker-k2 > :nth-child(60n + 25) { --x: 14.75%; --y: 30.17%; z-index: 8; }
.city-marker-k2 > :nth-child(60n + 26) { --x: 17.85%; --y: 31.42%; z-index: 10; }
.city-marker-k2 > :nth-child(60n + 27) { --x: 14.75%; --y: 32.99%; z-index: 12; }
.city-marker-k2 > :nth-child(60n + 28) { --x: 16.94%; --y: 28.91%; z-index: 6; }
.city-marker-k2 > :nth-child(60n + 29) { --x: 16.21%; --y: 34.24%; z-index: 14; }
.city-marker-k2 > :nth-child(60n + 30) { --x: 13.28%; --y: 34.24%; z-index: 14; }
.city-marker-k2 > :nth-child(60n + 31) { --x: 20.23%; --y: 28.91%; z-index: 6; }
.city-marker-k2 > :nth-child(60n + 32) { --x: 22.06%; --y: 32.67%; z-index: 11; }
.city-marker-k2 > :nth-child(60n + 33) { --x: 25.90%; --y: 22.96%; z-index: 1; }
.city-marker-k2 > :nth-child(60n + 34) { --x: 7.80%; --y: 42.38%; z-index: 21; }
.city-marker-k2 > :nth-child(60n + 35) { --x: 6.15%; --y: 41.44%; z-index: 21; }
.city-marker-k2 > :nth-child(60n + 36) { --x: 27.73%; --y: 24.53%; z-index: 2; }
.city-marker-k2 > :nth-child(60n + 37) { --x: 29.92%; --y: 28.29%; z-index: 4; }
.city-marker-k2 > :nth-child(60n + 38) { --x: 29.56%; --y: 24.84%; z-index: 2; }
.city-marker-k2 > :nth-child(60n + 39) { --x: 14.38%; --y: 50.84%; z-index: 23; }
.city-marker-k2 > :nth-child(60n + 40) { --x: 30.65%; --y: 31.42%; z-index: 10; }
.city-marker-k2 > :nth-child(60n + 41) { --x: 16.21%; --y: 51.77%; z-index: 24; }
.city-marker-k2 > :nth-child(60n + 42) { --x: 17.85%; --y: 51.77%; z-index: 25; }
.city-marker-k2 > :nth-child(60n + 43) { --x: 12.74%; --y: 51.46%; z-index: 24; }
.city-marker-k2 > :nth-child(60n + 44) { --x: 30.10%; --y: 39.56%; z-index: 19; }
.city-marker-k2 > :nth-child(60n + 45) { --x: 19.50%; --y: 51.77%; z-index: 25; }
.city-marker-k2 > :nth-child(60n + 46) { --x: 31.02%; --y: 26.10%; z-index: 3; }
.city-marker-k2 > :nth-child(60n + 47) { --x: 31.38%; --y: 35.80%; z-index: 17; }
.city-marker-k2 > :nth-child(60n + 48) { --x: 21.15%; --y: 51.77%; z-index: 26; }
.city-marker-k2 > :nth-child(60n + 49) { --x: 9.81%; --y: 51.15%; z-index: 23; }
.city-marker-k2 > :nth-child(60n + 50) { --x: 14.93%; --y: 53.65%; z-index: 26; }
.city-marker-k2 > :nth-child(60n + 51) { --x: 31.75%; --y: 39.56%; z-index: 20; }
.city-marker-k2 > :nth-child(60n + 52) { --x: 16.94%; --y: 54.28%; z-index: 27; }
.city-marker-k2 > :nth-child(60n + 53) { --x: 18.59%; --y: 54.28%; z-index: 28; }
.city-marker-k2 > :nth-child(60n + 54) { --x: 33.03%; --y: 34.55%; z-index: 15; }
.city-marker-k2 > :nth-child(60n + 55) { --x: 20.23%; --y: 54.28%; z-index: 28; }
.city-marker-k2 > :nth-child(60n + 56) { --x: 3.05%; --y: 47.39%; z-index: 22; }
.city-marker-k2 > :nth-child(60n + 57) { --x: 22.24%; --y: 53.97%; z-index: 27; }
.city-marker-k2 > :nth-child(60n + 58) { --x: 13.47%; --y: 55.22%; z-index: 29; }
.city-marker-k2 > :nth-child(60n + 59) { --x: 33.39%; --y: 37.37%; z-index: 18; }
.city-marker-k2 > :nth-child(60n + 60) { --x: 15.66%; --y: 56.16%; z-index: 29; }
.city-marker-k3 > :nth-child(60n + 1) { --x: 38.15%; --y: 29.85%; z-index: 13; }
.city-marker-k3 > :nth-child(60n + 2) { --x: 41.07%; --y: 29.85%; z-index: 13; }
.city-marker-k3 > :nth-child(60n + 3) { --x: 35.77%; --y: 27.04%; z-index: 7; }
.city-marker-k3 > :nth-child(60n + 4) { --x: 36.14%; --y: 33.61%; z-index: 20; }
.city-marker-k3 > :nth-child(60n + 5) { --x: 41.62%; --y: 34.86%; z-index: 23; }
.city-marker-k3 > :nth-child(60n + 6) { --x: 44.00%; --y: 29.54%; z-index: 12; }
.city-marker-k3 > :nth-child(60n + 7) { --x: 33.21%; --y: 34.55%; z-index: 22; }
.city-marker-k3 > :nth-child(60n + 8) { --x: 31.57%; --y: 26.72%; z-index: 6; }
.city-marker-k3 > :nth-child(60n + 9) { --x: 39.61%; --y: 26.72%; z-index: 6; }
.city-marker-k3 > :nth-child(60n + 10) { --x: 39.61%; --y: 32.99%; z-index: 20; }
.city-marker-k3 > :nth-child(60n + 11) { --x: 31.02%; --y: 31.42%; z-index: 16; }
.city-marker-k3 > :nth-child(60n + 12) { --x: 43.63%; --y: 37.06%; z-index: 26; }
.city-marker-k3 > :nth-child(60n + 13) { --x: 29.37%; --y: 28.60%; z-index: 10; }
.city-marker-k3 > :nth-child(60n + 14) { --x: 30.47%; --y: 23.28%; z-index: 2; }
.city-marker-k3 > :nth-child(60n + 15) { --x: 32.11%; --y: 39.56%; z-index: 27; }
.city-marker-k3 > :nth-child(60n + 16) { --x: 28.28%; --y: 25.16%; z-index: 4; }
.city-marker-k3 > :nth-child(60n + 17) { --x: 28.64%; --y: 35.80%; z-index: 25; }
.city-marker-k3 > :nth-child(60n + 18) { --x: 46.74%; --y: 21.40%; z-index: 1; }
.city-marker-k3 > :nth-child(60n + 19) { --x: 27.36%; --y: 30.48%; z-index: 15; }
.city-marker-k3 > :nth-child(60n + 20) { --x: 48.75%; --y: 23.59%; z-index: 3; }
.city-marker-k3 > :nth-child(60n + 21) { --x: 26.26%; --y: 27.04%; z-index: 7; }
.city-marker-k3 > :nth-child(60n + 22) { --x: 26.45%; --y: 34.24%; z-index: 21; }
.city-marker-k3 > :nth-child(60n + 23) { --x: 26.08%; --y: 22.96%; z-index: 2; }
.city-marker-k3 > :nth-child(60n + 24) { --x: 24.98%; --y: 30.48%; z-index: 15; }
.city-marker-k3 > :nth-child(60n + 25) { --x: 36.50%; --y: 29.85%; z-index: 14; }
.city-marker-k3 > :nth-child(60n + 26) { --x: 37.42%; --y: 27.35%; z-index: 8; }
.city-marker-k3 > :nth-child(60n + 27) { --x: 37.96%; --y: 32.67%; z-index: 19; }
.city-marker-k3 > :nth-child(60n + 28) { --x: 41.26%; --y: 27.04%; z-index: 8; }
.city-marker-k3 > :nth-child(60n + 29) { --x: 34.86%; --y: 35.49%; z-index: 24; }
.city-marker-k3 > :nth-child(60n + 30) { --x: 33.58%; --y: 37.37%; z-index: 27; }
.city-marker-k3 > :nth-child(60n + 31) { --x: 31.75%; --y: 35.80%; z-index: 25; }
.city-marker-k3 > :nth-child(60n + 32) { --x: 30.47%; --y: 39.56%; z-index: 28; }
.city-marker-k3 > :nth-child(60n + 33) { --x: 47.84%; --y: 19.21%; z-index: 1; }
.city-marker-k3 > :nth-child(60n + 34) { --x: 50.40%; --y: 24.22%; z-index: 4; }
.city-marker-k3 > :nth-child(60n + 35) { --x: 24.80%; --y: 33.92%; z-index: 21; }
.city-marker-k3 > :nth-child(60n + 36) { --x: 24.44%; --y: 23.59%; z-index: 3; }
.city-marker-k3 > :nth-child(60n + 37) { --x: 23.52%; --y: 31.73%; z-index: 18; }
.city-marker-k3 > :nth-child(60n + 38) { --x: 22.43%; --y: 29.54%; z-index: 12; }
.city-marker-k3 > :nth-child(60n + 39) { --x: 22.24%; --y: 33.61%; z-index: 20; }
.city-marker-k3 > :nth-child(60n + 40) { --x: 21.15%; --y: 31.42%; z-index: 17; }
.city-marker-k3 > :nth-child(60n + 41) { --x: 20.60%; --y: 28.60%; z-index: 11; }
.city-marker-k3 > :nth-child(60n + 42) { --x: 51.86%; --y: 44.57%; z-index: 28; }
.city-marker-k3 > :nth-child(60n + 43) { --x: 48.93%; --y: 48.64%; z-index: 29; }
.city-marker-k3 > :nth-child(60n + 44) { --x: 20.60%; --y: 34.24%; z-index: 22; }
.city-marker-k3 > :nth-child(60n + 45) { --x: 18.95%; --y: 28.60%; z-index: 11; }
.city-marker-k3 > :nth-child(60n + 46) { --x: 48.75%; --y: 51.77%; z-index: 29; }
.city-marker-k3 > :nth-child(60n + 47) { --x: 39.61%; --y: 29.85%; z-index: 14; }
.city-marker-k3 > :nth-child(60n + 48) { --x: 41.07%; --y: 32.36%; z-index: 19; }
.city-marker-k3 > :nth-child(60n + 49) { --x: 37.42%; --y: 34.86%; z-index: 23; }
.city-marker-k3 > :nth-child(60n + 50) { --x: 42.35%; --y: 30.79%; z-index: 16; }
.city-marker-k3 > :nth-child(60n + 51) { --x: 30.29%; --y: 25.78%; z-index: 5; }
.city-marker-k3 > :nth-child(60n + 52) { --x: 28.09%; --y: 27.66%; z-index: 9; }
.city-marker-k3 > :nth-child(60n + 53) { --x: 21.69%; --y: 35.80%; z-index: 26; }
.city-marker-k3 > :nth-child(60n + 54) { --x: 38.88%; --y: 28.29%; z-index: 9; }
.city-marker-k3 > :nth-child(60n + 55) { --x: 38.88%; --y: 31.42%; z-index: 17; }
.city-marker-k3 > :nth-child(60n + 56) { --x: 36.87%; --y: 31.73%; z-index: 18; }
.city-marker-k3 > :nth-child(60n + 57) { --x: 40.34%; --y: 28.29%; z-index: 10; }
.city-marker-k3 > :nth-child(60n + 58) { --x: 42.90%; --y: 35.18%; z-index: 24; }
.city-marker-k3 > :nth-child(60n + 59) { --x: 30.65%; --y: 28.29%; z-index: 10; }
.city-marker-k3 > :nth-child(60n + 60) { --x: 29.19%; --y: 26.41%; z-index: 5; }
.city-marker-k4 > :nth-child(60n + 1) { --x: 40.59%; --y: 60.13%; z-index: 12; }
.city-marker-k4 > :nth-child(60n + 2) { --x: 37.84%; --y: 58.56%; z-index: 10; }
.city-marker-k4 > :nth-child(60n + 3) { --x: 43.33%; --y: 58.56%; z-index: 10; }
.city-marker-k4 > :nth-child(60n + 4) { --x: 42.78%; --y: 63.57%; z-index: 15; }
.city-marker-k4 > :nth-child(60n + 5) { --x: 34.92%; --y: 59.50%; z-index: 11; }
.city-marker-k4 > :nth-child(60n + 6) { --x: 43.69%; --y: 68.27%; z-index: 19; }
.city-marker-k4 > :nth-child(60n + 7) { --x: 49.54%; --y: 57.93%; z-index: 9; }
.city-marker-k4 > :nth-child(60n + 8) { --x: 48.99%; --y: 52.92%; z-index: 5; }
.city-marker-k4 > :nth-child(60n + 9) { --x: 38.57%; --y: 62.32%; z-index: 14; }
.city-marker-k4 > :nth-child(60n + 10) { --x: 40.59%; --y: 64.51%; z-index: 16; }
.city-marker-k4 > :nth-child(60n + 11) { --x: 30.90%; --y: 67.33%; z-index: 18; }
.city-marker-k4 > :nth-child(60n + 12) { --x: 51.74%; --y: 56.99%; z-index: 8; }
.city-marker-k4 > :nth-child(60n + 13) { --x: 41.68%; --y: 75.78%; z-index: 25; }
.city-marker-k4 > :nth-child(60n + 14) { --x: 48.81%; --y: 48.85%; z-index: 3; }
.city-marker-k4 > :nth-child(60n + 15) { --x: 37.11%; --y: 75.47%; z-index: 24; }
.city-marker-k4 > :nth-child(60n + 16) { --x: 51.37%; --y: 52.92%; z-index: 6; }
.city-marker-k4 > :nth-child(60n + 17) { --x: 39.31%; --y: 76.41%; z-index: 25; }
.city-marker-k4 > :nth-child(60n + 18) { --x: 34.73%; --y: 74.84%; z-index: 23; }
.city-marker-k4 > :nth-child(60n + 19) { --x: 28.70%; --y: 65.76%; z-index: 17; }
.city-marker-k4 > :nth-child(60n + 20) { --x: 30.90%; --y: 71.40%; z-index: 20; }
.city-marker-k4 > :nth-child(60n + 21) { --x: 32.36%; --y: 74.53%; z-index: 22; }
.city-marker-k4 > :nth-child(60n + 22) { --x: 53.56%; --y: 54.49%; z-index: 7; }
.city-marker-k4 > :nth-child(60n + 23) { --x: 28.70%; --y: 69.83%; z-index: 19; }
.city-marker-k4 > :nth-child(60n + 24) { --x: 40.77%; --y: 79.54%; z-index: 28; }
.city-marker-k4 > :nth-child(60n + 25) { --x: 42.23%; --y: 60.75%; z-index: 13; }
.city-marker-k4 > :nth-child(60n + 26) { --x: 39.49%; --y: 57.93%; z-index: 9; }
.city-marker-k4 > :nth-child(60n + 27) { --x: 41.68%; --y: 57.93%; z-index: 10; }
.city-marker-k4 > :nth-child(60n + 28) { --x: 36.93%; --y: 62.32%; z-index: 14; }
.city-marker-k4 > :nth-child(60n + 29) { --x: 42.05%; --y: 66.08%; z-index: 17; }
.city-marker-k4 > :nth-child(60n + 30) { --x: 44.97%; --y: 57.62%; z-index: 8; }
.city-marker-k4 > :nth-child(60n + 31) { --x: 37.84%; --y: 77.97%; z-index: 27; }
.city-marker-k4 > :nth-child(60n + 32) { --x: 35.83%; --y: 77.35%; z-index: 27; }
.city-marker-k4 > :nth-child(60n + 33) { --x: 33.46%; --y: 76.72%; z-index: 26; }
.city-marker-k4 > :nth-child(60n + 34) { --x: 27.24%; --y: 67.01%; z-index: 18; }
.city-marker-k4 > :nth-child(60n + 35) { --x: 26.14%; --y: 60.13%; z-index: 12; }
.city-marker-k4 > :nth-child(60n + 36) { --x: 29.43%; --y: 72.65%; z-index: 21; }
.city-marker-k4 > :nth-child(60n + 37) { --x: 30.71%; --y: 74.53%; z-index: 22; }
.city-marker-k4 > :nth-child(60n + 38) { --x: 52.65%; --y: 49.16%; z-index: 4; }
.city-marker-k4 > :nth-child(60n + 39) { --x: 39.12%; --y: 79.85%; z-index: 29; }
.city-marker-k4 > :nth-child(60n + 40) { --x: 54.30%; --y: 51.98%; z-index: 5; }
.city-marker-k4 > :nth-child(60n + 41) { --x: 27.06%; --y: 69.83%; z-index: 20; }
.city-marker-k4 > :nth-child(60n + 42) { --x: 31.63%; --y: 77.04%; z-index: 26; }
.city-marker-k4 > :nth-child(60n + 43) { --x: 25.23%; --y: 62.63%; z-index: 15; }
.city-marker-k4 > :nth-child(60n + 44) { --x: 55.39%; --y: 54.18%; z-index: 6; }
.city-marker-k4 > :nth-child(60n + 45) { --x: 27.79%; --y: 72.34%; z-index: 21; }
.city-marker-k4 > :nth-child(60n + 46) { --x: 54.30%; --y: 49.16%; z-index: 4; }
.city-marker-k4 > :nth-child(60n + 47) { --x: 24.50%; --y: 60.13%; z-index: 13; }
.city-marker-k4 > :nth-child(60n + 48) { --x: 29.07%; --y: 75.47%; z-index: 24; }
.city-marker-k4 > :nth-child(60n + 49) { --x: 31.26%; --y: 41.34%; z-index: 2; }
.city-marker-k4 > :nth-child(60n + 50) { --x: 43.51%; --y: 37.58%; z-index: 1; }
.city-marker-k4 > :nth-child(60n + 51) { --x: 29.98%; --y: 77.97%; z-index: 28; }
.city-marker-k4 > :nth-child(60n + 52) { --x: 23.95%; --y: 55.74%; z-index: 7; }
.city-marker-k4 > :nth-child(60n + 53) { --x: 25.59%; --y: 71.09%; z-index: 20; }
.city-marker-k4 > :nth-child(60n + 54) { --x: 23.77%; --y: 63.88%; z-index: 16; }
.city-marker-k4 > :nth-child(60n + 55) { --x: 27.42%; --y: 75.16%; z-index: 23; }
.city-marker-k4 > :nth-child(60n + 56) { --x: 37.48%; --y: 83.30%; z-index: 29; }
.city-marker-k4 > :nth-child(60n + 57) { --x: 54.84%; --y: 46.35%; z-index: 3; }
.city-marker-k4 > :nth-child(60n + 58) { --x: 23.03%; --y: 58.87%; z-index: 11; }
.city-marker-k4 > :nth-child(60n + 59) { --x: 33.64%; --y: 37.58%; z-index: 2; }
.city-marker-k4 > :nth-child(60n + 60) { --x: 42.05%; --y: 35.70%; z-index: 1; }
.city-marker-k5 > :nth-child(60n + 1) { --x: 54.91%; --y: 45.62%; z-index: 14; }
.city-marker-k5 > :nth-child(60n + 2) { --x: 59.66%; --y: 47.81%; z-index: 17; }
.city-marker-k5 > :nth-child(60n + 3) { --x: 55.45%; --y: 50.63%; z-index: 20; }
.city-marker-k5 > :nth-child(60n + 4) { --x: 52.71%; --y: 49.06%; z-index: 18; }
.city-marker-k5 > :nth-child(60n + 5) { --x: 64.23%; --y: 45.93%; z-index: 15; }
.city-marker-k5 > :nth-child(60n + 6) { --x: 49.79%; --y: 49.06%; z-index: 19; }
.city-marker-k5 > :nth-child(60n + 7) { --x: 53.26%; --y: 54.07%; z-index: 22; }
.city-marker-k5 > :nth-child(60n + 8) { --x: 66.61%; --y: 43.11%; z-index: 12; }
.city-marker-k5 > :nth-child(60n + 9) { --x: 51.07%; --y: 52.82%; z-index: 21; }
.city-marker-k5 > :nth-child(60n + 10) { --x: 51.80%; --y: 57.20%; z-index: 24; }
.city-marker-k5 > :nth-child(60n + 11) { --x: 60.39%; --y: 28.08%; z-index: 3; }
.city-marker-k5 > :nth-child(60n + 12) { --x: 64.05%; --y: 29.65%; z-index: 5; }
.city-marker-k5 > :nth-child(60n + 13) { --x: 43.57%; --y: 37.47%; z-index: 11; }
.city-marker-k5 > :nth-child(60n + 14) { --x: 66.42%; --y: 29.65%; z-index: 6; }
.city-marker-k5 > :nth-child(60n + 15) { --x: 69.35%; --y: 34.34%; z-index: 11; }
.city-marker-k5 > :nth-child(60n + 16) { --x: 45.03%; --y: 57.52%; z-index: 25; }
.city-marker-k5 > :nth-child(60n + 17) { --x: 68.62%; --y: 30.58%; z-index: 7; }
.city-marker-k5 > :nth-child(60n + 18) { --x: 49.97%; --y: 24.95%; z-index: 2; }
.city-marker-k5 > :nth-child(60n + 19) { --x: 42.47%; --y: 34.03%; z-index: 10; }
.city-marker-k5 > :nth-child(60n + 20) { --x: 44.30%; --y: 29.33%; z-index: 5; }
.city-marker-k5 > :nth-child(60n + 21) { --x: 73.74%; --y: 46.56%; z-index: 16; }
.city-marker-k5 > :nth-child(60n + 22) { --x: 71.36%; --y: 32.46%; z-index: 9; }
.city-marker-k5 > :nth-child(60n + 23) { --x: 42.66%; --y: 57.83%; z-index: 26; }
.city-marker-k5 > :nth-child(60n + 24) { --x: 70.63%; --y: 28.71%; z-index: 4; }
.city-marker-k5 > :nth-child(60n + 25) { --x: 54.36%; --y: 48.43%; z-index: 18; }
.city-marker-k5 > :nth-child(60n + 26) { --x: 61.30%; --y: 47.81%; z-index: 17; }
.city-marker-k5 > :nth-child(60n + 27) { --x: 56.00%; --y: 53.44%; z-index: 22; }
.city-marker-k5 > :nth-child(60n + 28) { --x: 65.87%; --y: 45.62%; z-index: 15; }
.city-marker-k5 > :nth-child(60n + 29) { --x: 49.42%; --y: 52.51%; z-index: 20; }
.city-marker-k5 > :nth-child(60n + 30) { --x: 50.15%; --y: 57.20%; z-index: 25; }
.city-marker-k5 > :nth-child(60n + 31) { --x: 62.77%; --y: 27.77%; z-index: 3; }
.city-marker-k5 > :nth-child(60n + 32) { --x: 51.07%; --y: 22.76%; z-index: 1; }
.city-marker-k5 > :nth-child(60n + 33) { --x: 48.51%; --y: 23.38%; z-index: 2; }
.city-marker-k5 > :nth-child(60n + 34) { --x: 42.66%; --y: 30.27%; z-index: 7; }
.city-marker-k5 > :nth-child(60n + 35) { --x: 40.83%; --y: 33.72%; z-index: 10; }
.city-marker-k5 > :nth-child(60n + 36) { --x: 74.83%; --y: 44.36%; z-index: 13; }
.city-marker-k5 > :nth-child(60n + 37) { --x: 43.21%; --y: 60.65%; z-index: 27; }
.city-marker-k5 > :nth-child(60n + 38) { --x: 70.08%; --y: 61.90%; z-index: 28; }
.city-marker-k5 > :nth-child(60n + 39) { --x: 71.54%; --y: 60.02%; z-index: 27; }
.city-marker-k5 > :nth-child(60n + 40) { --x: 41.01%; --y: 57.83%; z-index: 26; }
.city-marker-k5 > :nth-child(60n + 41) { --x: 72.09%; --y: 29.96%; z-index: 6; }
.city-marker-k5 > :nth-child(60n + 42) { --x: 75.38%; --y: 47.18%; z-index: 16; }
.city-marker-k5 > :nth-child(60n + 43) { --x: 41.01%; --y: 30.90%; z-index: 8; }
.city-marker-k5 > :nth-child(60n + 44) { --x: 68.98%; --y: 64.41%; z-index: 29; }
.city-marker-k5 > :nth-child(60n + 45) { --x: 41.56%; --y: 60.65%; z-index: 28; }
.city-marker-k5 > :nth-child(60n + 46) { --x: 75.75%; --y: 39.04%; z-index: 12; }
.city-marker-k5 > :nth-child(60n + 47) { --x: 39.18%; --y: 33.72%; z-index: 10; }
.city-marker-k5 > :nth-child(60n + 48) { --x: 47.23%; --y: 21.50%; z-index: 1; }
.city-marker-k5 > :nth-child(60n + 49) { --x: 43.21%; --y: 63.47%; z-index: 29; }
.city-marker-k5 > :nth-child(60n + 50) { --x: 54.36%; --y: 52.19%; z-index: 20; }
.city-marker-k5 > :nth-child(60n + 51) { --x: 54.72%; --y: 54.70%; z-index: 23; }
.city-marker-k5 > :nth-child(60n + 52) { --x: 65.14%; --y: 28.08%; z-index: 4; }
.city-marker-k5 > :nth-child(60n + 53) { --x: 69.90%; --y: 32.15%; z-index: 9; }
.city-marker-k5 > :nth-child(60n + 54) { --x: 73.37%; --y: 30.90%; z-index: 8; }
.city-marker-k5 > :nth-child(60n + 55) { --x: 76.29%; --y: 44.68%; z-index: 14; }
.city-marker-k5 > :nth-child(60n + 56) { --x: 52.35%; --y: 52.82%; z-index: 21; }
.city-marker-k5 > :nth-child(60n + 57) { --x: 65.33%; --y: 43.74%; z-index: 13; }
.city-marker-k5 > :nth-child(60n + 58) { --x: 53.63%; --y: 55.95%; z-index: 24; }
.city-marker-k5 > :nth-child(60n + 59) { --x: 48.69%; --y: 49.69%; z-index: 19; }
.city-marker-k5 > :nth-child(60n + 60) { --x: 52.35%; --y: 55.32%; z-index: 23; }
.city-marker-k6 > :nth-child(60n + 1) { --x: 71.97%; --y: 28.81%; z-index: 8; }
.city-marker-k6 > :nth-child(60n + 2) { --x: 69.04%; --y: 29.44%; z-index: 10; }
.city-marker-k6 > :nth-child(60n + 3) { --x: 74.89%; --y: 28.81%; z-index: 9; }
.city-marker-k6 > :nth-child(60n + 4) { --x: 70.69%; --y: 33.51%; z-index: 15; }
.city-marker-k6 > :nth-child(60n + 5) { --x: 76.90%; --y: 32.57%; z-index: 15; }
.city-marker-k6 > :nth-child(60n + 6) { --x: 66.12%; --y: 28.81%; z-index: 9; }
.city-marker-k6 > :nth-child(60n + 7) { --x: 76.17%; --y: 37.58%; z-index: 17; }
.city-marker-k6 > :nth-child(60n + 8) { --x: 70.14%; --y: 18.16%; z-index: 3; }
.city-marker-k6 > :nth-child(60n + 9) { --x: 77.09%; --y: 27.24%; z-index: 5; }
.city-marker-k6 > :nth-child(60n + 10) { --x: 79.10%; --y: 33.51%; z-index: 16; }
.city-marker-k6 > :nth-child(60n + 11) { --x: 63.74%; --y: 28.81%; z-index: 10; }
.city-marker-k6 > :nth-child(60n + 12) { --x: 80.56%; --y: 25.99%; z-index: 3; }
.city-marker-k6 > :nth-child(60n + 13) { --x: 68.49%; --y: 15.34%; z-index: 2; }
.city-marker-k6 > :nth-child(60n + 14) { --x: 67.03%; --y: 42.59%; z-index: 17; }
.city-marker-k6 > :nth-child(60n + 15) { --x: 60.45%; --y: 27.87%; z-index: 7; }
.city-marker-k6 > :nth-child(60n + 16) { --x: 75.26%; --y: 43.84%; z-index: 19; }
.city-marker-k6 > :nth-child(60n + 17) { --x: 78.00%; --y: 42.59%; z-index: 18; }
.city-marker-k6 > :nth-child(60n + 18) { --x: 73.80%; --y: 46.97%; z-index: 24; }
.city-marker-k6 > :nth-child(60n + 19) { --x: 65.20%; --y: 45.09%; z-index: 20; }
.city-marker-k6 > :nth-child(60n + 20) { --x: 77.09%; --y: 46.35%; z-index: 21; }
.city-marker-k6 > :nth-child(60n + 21) { --x: 79.46%; --y: 46.66%; z-index: 22; }
.city-marker-k6 > :nth-child(60n + 22) { --x: 77.64%; --y: 50.10%; z-index: 28; }
.city-marker-k6 > :nth-child(60n + 23) { --x: 61.91%; --y: 48.23%; z-index: 26; }
.city-marker-k6 > :nth-child(60n + 24) { --x: 83.12%; --y: 46.97%; z-index: 24; }
.city-marker-k6 > :nth-child(60n + 25) { --x: 73.43%; --y: 27.56%; z-index: 6; }
.city-marker-k6 > :nth-child(60n + 26) { --x: 70.69%; --y: 30.69%; z-index: 12; }
.city-marker-k6 > :nth-child(60n + 27) { --x: 73.43%; --y: 30.38%; z-index: 11; }
.city-marker-k6 > :nth-child(60n + 28) { --x: 69.23%; --y: 32.25%; z-index: 14; }
.city-marker-k6 > :nth-child(60n + 29) { --x: 70.14%; --y: 15.34%; z-index: 2; }
.city-marker-k6 > :nth-child(60n + 30) { --x: 75.44%; --y: 46.66%; z-index: 23; }
.city-marker-k6 > :nth-child(60n + 31) { --x: 79.28%; --y: 49.48%; z-index: 27; }
.city-marker-k6 > :nth-child(60n + 32) { --x: 60.27%; --y: 47.60%; z-index: 25; }
.city-marker-k6 > :nth-child(60n + 33) { --x: 85.86%; --y: 44.47%; z-index: 20; }
.city-marker-k6 > :nth-child(60n + 34) { --x: 84.77%; --y: 46.66%; z-index: 23; }
.city-marker-k6 > :nth-child(60n + 35) { --x: 82.39%; --y: 49.48%; z-index: 27; }
.city-marker-k6 > :nth-child(60n + 36) { --x: 78.73%; --y: 52.30%; z-index: 29; }
.city-marker-k6 > :nth-child(60n + 37) { --x: 87.51%; --y: 44.47%; z-index: 20; }
.city-marker-k6 > :nth-child(60n + 38) { --x: 84.03%; --y: 49.48%; z-index: 28; }
.city-marker-k6 > :nth-child(60n + 39) { --x: 70.69%; --y: 27.87%; z-index: 7; }
.city-marker-k6 > :nth-child(60n + 40) { --x: 72.15%; --y: 31.32%; z-index: 13; }
.city-marker-k6 > :nth-child(60n + 41) { --x: 75.44%; --y: 26.62%; z-index: 4; }
.city-marker-k6 > :nth-child(60n + 42) { --x: 75.26%; --y: 31.32%; z-index: 13; }
.city-marker-k6 > :nth-child(60n + 43) { --x: 67.58%; --y: 29.44%; z-index: 10; }
.city-marker-k6 > :nth-child(60n + 44) { --x: 76.36%; --y: 29.44%; z-index: 11; }
.city-marker-k6 > :nth-child(60n + 45) { --x: 78.18%; --y: 31.63%; z-index: 14; }
.city-marker-k6 > :nth-child(60n + 46) { --x: 76.72%; --y: 43.53%; z-index: 18; }
.city-marker-k6 > :nth-child(60n + 47) { --x: 78.18%; --y: 47.91%; z-index: 25; }
.city-marker-k6 > :nth-child(60n + 48) { --x: 72.33%; --y: 26.93%; z-index: 4; }
.city-marker-k6 > :nth-child(60n + 49) { --x: 69.59%; --y: 34.13%; z-index: 16; }
.city-marker-k6 > :nth-child(60n + 50) { --x: 65.02%; --y: 28.18%; z-index: 8; }
.city-marker-k6 > :nth-child(60n + 51) { --x: 62.83%; --y: 27.56%; z-index: 6; }
.city-marker-k6 > :nth-child(60n + 52) { --x: 67.40%; --y: 14.72%; z-index: 1; }
.city-marker-k6 > :nth-child(60n + 53) { --x: 69.41%; --y: 13.78%; z-index: 1; }
.city-marker-k6 > :nth-child(60n + 54) { --x: 74.16%; --y: 45.09%; z-index: 21; }
.city-marker-k6 > :nth-child(60n + 55) { --x: 65.94%; --y: 43.53%; z-index: 19; }
.city-marker-k6 > :nth-child(60n + 56) { --x: 76.36%; --y: 47.91%; z-index: 26; }
.city-marker-k6 > :nth-child(60n + 57) { --x: 64.29%; --y: 46.35%; z-index: 22; }
.city-marker-k6 > :nth-child(60n + 58) { --x: 77.82%; --y: 53.86%; z-index: 29; }
.city-marker-k6 > :nth-child(60n + 59) { --x: 74.34%; --y: 26.93%; z-index: 5; }
.city-marker-k6 > :nth-child(60n + 60) { --x: 68.49%; --y: 31.00%; z-index: 12; }
.city-marker-k7 > :nth-child(60n + 1) { --x: 88.06%; --y: 44.99%; z-index: 9; }
.city-marker-k7 > :nth-child(60n + 2) { --x: 85.13%; --y: 46.56%; z-index: 11; }
.city-marker-k7 > :nth-child(60n + 3) { --x: 88.42%; --y: 50.00%; z-index: 17; }
.city-marker-k7 > :nth-child(60n + 4) { --x: 91.35%; --y: 48.75%; z-index: 15; }
.city-marker-k7 > :nth-child(60n + 5) { --x: 83.49%; --y: 50.63%; z-index: 17; }
.city-marker-k7 > :nth-child(60n + 6) { --x: 90.07%; --y: 54.07%; z-index: 20; }
.city-marker-k7 > :nth-child(60n + 7) { --x: 80.01%; --y: 47.18%; z-index: 12; }
.city-marker-k7 > :nth-child(60n + 8) { --x: 92.99%; --y: 55.01%; z-index: 21; }
.city-marker-k7 > :nth-child(60n + 9) { --x: 90.43%; --y: 44.99%; z-index: 9; }
.city-marker-k7 > :nth-child(60n + 10) { --x: 88.24%; --y: 57.52%; z-index: 25; }
.city-marker-k7 > :nth-child(60n + 11) { --x: 84.22%; --y: 56.89%; z-index: 24; }
.city-marker-k7 > :nth-child(60n + 12) { --x: 79.46%; --y: 50.94%; z-index: 18; }
.city-marker-k7 > :nth-child(60n + 13) { --x: 96.28%; --y: 52.19%; z-index: 19; }
.city-marker-k7 > :nth-child(60n + 14) { --x: 78.00%; --y: 42.80%; z-index: 7; }
.city-marker-k7 > :nth-child(60n + 15) { --x: 77.82%; --y: 48.12%; z-index: 14; }
.city-marker-k7 > :nth-child(60n + 16) { --x: 91.90%; --y: 58.46%; z-index: 26; }
.city-marker-k7 > :nth-child(60n + 17) { --x: 95.19%; --y: 55.95%; z-index: 23; }
.city-marker-k7 > :nth-child(60n + 18) { --x: 79.28%; --y: 34.97%; z-index: 6; }
.city-marker-k7 > :nth-child(60n + 19) { --x: 89.34%; --y: 60.96%; z-index: 28; }
.city-marker-k7 > :nth-child(60n + 20) { --x: 76.17%; --y: 45.30%; z-index: 10; }
.city-marker-k7 > :nth-child(60n + 21) { --x: 78.18%; --y: 54.38%; z-index: 20; }
.city-marker-k7 > :nth-child(60n + 22) { --x: 76.54%; --y: 37.79%; z-index: 7; }
.city-marker-k7 > :nth-child(60n + 23) { --x: 77.27%; --y: 32.78%; z-index: 5; }
.city-marker-k7 > :nth-child(60n + 24) { --x: 74.16%; --y: 47.18%; z-index: 13; }
.city-marker-k7 > :nth-child(60n + 25) { --x: 86.41%; --y: 44.68%; z-index: 8; }
.city-marker-k7 > :nth-child(60n + 26) { --x: 83.49%; --y: 46.87%; z-index: 12; }
.city-marker-k7 > :nth-child(60n + 27) { --x: 89.88%; --y: 56.89%; z-index: 24; }
.city-marker-k7 > :nth-child(60n + 28) { --x: 93.72%; --y: 57.52%; z-index: 26; }
.city-marker-k7 > :nth-child(60n + 29) { --x: 77.82%; --y: 50.94%; z-index: 18; }
.city-marker-k7 > :nth-child(60n + 30) { --x: 97.01%; --y: 54.70%; z-index: 21; }
.city-marker-k7 > :nth-child(60n + 31) { --x: 76.17%; --y: 48.12%; z-index: 14; }
.city-marker-k7 > :nth-child(60n + 32) { --x: 90.98%; --y: 61.27%; z-index: 29; }
.city-marker-k7 > :nth-child(60n + 33) { --x: 78.37%; --y: 57.20%; z-index: 25; }
.city-marker-k7 > :nth-child(60n + 34) { --x: 76.72%; --y: 55.64%; z-index: 22; }
.city-marker-k7 > :nth-child(60n + 35) { --x: 89.15%; --y: 63.78%; z-index: 29; }
.city-marker-k7 > :nth-child(60n + 36) { --x: 80.74%; --y: 26.20%; z-index: 1; }
.city-marker-k7 > :nth-child(60n + 37) { --x: 75.81%; --y: 31.52%; z-index: 5; }
.city-marker-k7 > :nth-child(60n + 38) { --x: 77.09%; --y: 27.45%; z-index: 1; }
.city-marker-k7 > :nth-child(60n + 39) { --x: 75.62%; --y: 28.71%; z-index: 2; }
.city-marker-k7 > :nth-child(60n + 40) { --x: 74.16%; --y: 30.90%; z-index: 4; }
.city-marker-k7 > :nth-child(60n + 41) { --x: 73.80%; --y: 60.02%; z-index: 28; }
.city-marker-k7 > :nth-child(60n + 42) { --x: 72.52%; --y: 31.21%; z-index: 4; }
.city-marker-k7 > :nth-child(60n + 43) { --x: 73.98%; --y: 28.08%; z-index: 2; }
.city-marker-k7 > :nth-child(60n + 44) { --x: 71.05%; --y: 33.09%; z-index: 6; }
.city-marker-k7 > :nth-child(60n + 45) { --x: 72.15%; --y: 59.39%; z-index: 27; }
.city-marker-k7 > :nth-child(60n + 46) { --x: 88.60%; --y: 47.18%; z-index: 13; }
.city-marker-k7 > :nth-child(60n + 47) { --x: 82.39%; --y: 49.06%; z-index: 16; }
.city-marker-k7 > :nth-child(60n + 48) { --x: 91.35%; --y: 55.01%; z-index: 22; }
.city-marker-k7 > :nth-child(60n + 49) { --x: 74.89%; --y: 44.36%; z-index: 8; }
.city-marker-k7 > :nth-child(60n + 50) { --x: 77.27%; --y: 30.27%; z-index: 3; }
.city-marker-k7 > :nth-child(60n + 51) { --x: 72.52%; --y: 28.71%; z-index: 3; }
.city-marker-k7 > :nth-child(60n + 52) { --x: 89.34%; --y: 45.62%; z-index: 10; }
.city-marker-k7 > :nth-child(60n + 53) { --x: 84.40%; --y: 48.12%; z-index: 15; }
.city-marker-k7 > :nth-child(60n + 54) { --x: 91.16%; --y: 50.94%; z-index: 19; }
.city-marker-k7 > :nth-child(60n + 55) { --x: 83.49%; --y: 52.82%; z-index: 20; }
.city-marker-k7 > :nth-child(60n + 56) { --x: 79.28%; --y: 48.75%; z-index: 16; }
.city-marker-k7 > :nth-child(60n + 57) { --x: 78.92%; --y: 46.56%; z-index: 11; }
.city-marker-k7 > :nth-child(60n + 58) { --x: 92.26%; --y: 56.58%; z-index: 23; }
.city-marker-k7 > :nth-child(60n + 59) { --x: 77.45%; --y: 45.93%; z-index: 10; }
.city-marker-k7 > :nth-child(60n + 60) { --x: 88.60%; --y: 59.39%; z-index: 27; }
.city-marker-k8 > :nth-child(60n + 1) { --x: 81.11%; --y: 77.56%; z-index: 17; }
.city-marker-k8 > :nth-child(60n + 2) { --x: 78.18%; --y: 77.56%; z-index: 17; }
.city-marker-k8 > :nth-child(60n + 3) { --x: 84.03%; --y: 77.56%; z-index: 18; }
.city-marker-k8 > :nth-child(60n + 4) { --x: 79.65%; --y: 81.94%; z-index: 24; }
.city-marker-k8 > :nth-child(60n + 5) { --x: 75.08%; --y: 74.74%; z-index: 11; }
.city-marker-k8 > :nth-child(60n + 6) { --x: 85.31%; --y: 83.82%; z-index: 25; }
.city-marker-k8 > :nth-child(60n + 7) { --x: 81.11%; --y: 86.64%; z-index: 28; }
.city-marker-k8 > :nth-child(60n + 8) { --x: 73.61%; --y: 79.12%; z-index: 20; }
.city-marker-k8 > :nth-child(60n + 9) { --x: 82.57%; --y: 80.69%; z-index: 22; }
.city-marker-k8 > :nth-child(60n + 10) { --x: 86.41%; --y: 77.24%; z-index: 16; }
.city-marker-k8 > :nth-child(60n + 11) { --x: 83.49%; --y: 87.27%; z-index: 29; }
.city-marker-k8 > :nth-child(60n + 12) { --x: 88.24%; --y: 81.00%; z-index: 23; }
.city-marker-k8 > :nth-child(60n + 13) { --x: 78.92%; --y: 87.58%; z-index: 29; }
.city-marker-k8 > :nth-child(60n + 14) { --x: 72.70%; --y: 75.37%; z-index: 13; }
.city-marker-k8 > :nth-child(60n + 15) { --x: 75.26%; --y: 86.33%; z-index: 28; }
.city-marker-k8 > :nth-child(60n + 16) { --x: 72.52%; --y: 82.57%; z-index: 24; }
.city-marker-k8 > :nth-child(60n + 17) { --x: 90.62%; --y: 80.38%; z-index: 22; }
.city-marker-k8 > :nth-child(60n + 18) { --x: 71.24%; --y: 78.50%; z-index: 19; }
.city-marker-k8 > :nth-child(60n + 19) { --x: 70.69%; --y: 73.49%; z-index: 10; }
.city-marker-k8 > :nth-child(60n + 20) { --x: 92.44%; --y: 77.24%; z-index: 16; }
.city-marker-k8 > :nth-child(60n + 21) { --x: 92.26%; --y: 73.17%; z-index: 10; }
.city-marker-k8 > :nth-child(60n + 22) { --x: 69.23%; --y: 76.62%; z-index: 14; }
.city-marker-k8 > :nth-child(60n + 23) { --x: 89.15%; --y: 64.09%; z-index: 9; }
.city-marker-k8 > :nth-child(60n + 24) { --x: 67.03%; --y: 77.56%; z-index: 18; }
.city-marker-k8 > :nth-child(60n + 25) { --x: 79.65%; --y: 76.30%; z-index: 13; }
.city-marker-k8 > :nth-child(60n + 26) { --x: 82.57%; --y: 76.30%; z-index: 14; }
.city-marker-k8 > :nth-child(60n + 27) { --x: 79.65%; --y: 79.12%; z-index: 20; }
.city-marker-k8 > :nth-child(60n + 28) { --x: 77.45%; --y: 75.05%; z-index: 12; }
.city-marker-k8 > :nth-child(60n + 29) { --x: 84.77%; --y: 80.06%; z-index: 21; }
.city-marker-k8 > :nth-child(60n + 30) { --x: 79.83%; --y: 84.76%; z-index: 26; }
.city-marker-k8 > :nth-child(60n + 31) { --x: 86.96%; --y: 83.19%; z-index: 25; }
.city-marker-k8 > :nth-child(60n + 32) { --x: 88.60%; --y: 83.82%; z-index: 26; }
.city-marker-k8 > :nth-child(60n + 33) { --x: 73.61%; --y: 85.07%; z-index: 27; }
.city-marker-k8 > :nth-child(60n + 34) { --x: 71.05%; --y: 81.32%; z-index: 23; }
.city-marker-k8 > :nth-child(60n + 35) { --x: 69.59%; --y: 79.44%; z-index: 20; }
.city-marker-k8 > :nth-child(60n + 36) { --x: 93.91%; --y: 74.11%; z-index: 11; }
.city-marker-k8 > :nth-child(60n + 37) { --x: 89.15%; --y: 61.27%; z-index: 8; }
.city-marker-k8 > :nth-child(60n + 38) { --x: 73.61%; --y: 60.65%; z-index: 7; }
.city-marker-k8 > :nth-child(60n + 39) { --x: 69.96%; --y: 64.41%; z-index: 10; }
.city-marker-k8 > :nth-child(60n + 40) { --x: 71.05%; --y: 62.21%; z-index: 9; }
.city-marker-k8 > :nth-child(60n + 41) { --x: 78.37%; --y: 57.20%; z-index: 4; }
.city-marker-k8 > :nth-child(60n + 42) { --x: 84.03%; --y: 57.20%; z-index: 4; }
.city-marker-k8 > :nth-child(60n + 43) { --x: 90.80%; --y: 61.59%; z-index: 8; }
.city-marker-k8 > :nth-child(60n + 44) { --x: 88.24%; --y: 58.77%; z-index: 6; }
.city-marker-k8 > :nth-child(60n + 45) { --x: 65.57%; --y: 78.81%; z-index: 19; }
.city-marker-k8 > :nth-child(60n + 46) { --x: 71.97%; --y: 59.71%; z-index: 7; }
.city-marker-k8 > :nth-child(60n + 47) { --x: 76.90%; --y: 55.95%; z-index: 3; }
.city-marker-k8 > :nth-child(60n + 48) { --x: 64.29%; --y: 76.93%; z-index: 15; }
.city-marker-k8 > :nth-child(60n + 49) { --x: 89.70%; --y: 57.20%; z-index: 5; }
.city-marker-k8 > :nth-child(60n + 50) { --x: 78.37%; --y: 54.07%; z-index: 2; }
.city-marker-k8 > :nth-child(60n + 51) { --x: 92.26%; --y: 59.08%; z-index: 6; }
.city-marker-k8 > :nth-child(60n + 52) { --x: 63.56%; --y: 79.44%; z-index: 21; }
.city-marker-k8 > :nth-child(60n + 53) { --x: 63.92%; --y: 85.39%; z-index: 27; }
.city-marker-k8 > :nth-child(60n + 54) { --x: 83.49%; --y: 52.82%; z-index: 1; }
.city-marker-k8 > :nth-child(60n + 55) { --x: 91.35%; --y: 56.58%; z-index: 3; }
.city-marker-k8 > :nth-child(60n + 56) { --x: 62.64%; --y: 76.93%; z-index: 15; }
.city-marker-k8 > :nth-child(60n + 57) { --x: 93.91%; --y: 58.46%; z-index: 5; }
.city-marker-k8 > :nth-child(60n + 58) { --x: 79.28%; --y: 51.57%; z-index: 1; }
.city-marker-k8 > :nth-child(60n + 59) { --x: 89.88%; --y: 54.38%; z-index: 2; }
.city-marker-k8 > :nth-child(60n + 60) { --x: 81.11%; --y: 75.05%; z-index: 12; }
.city-marker-clients > :nth-child(60n + 1) { --x: 54.91%; --y: 79.96%; z-index: 16; }
.city-marker-clients > :nth-child(60n + 2) { --x: 51.98%; --y: 79.96%; z-index: 17; }
.city-marker-clients > :nth-child(60n + 3) { --x: 57.83%; --y: 79.96%; z-index: 17; }
.city-marker-clients > :nth-child(60n + 4) { --x: 51.98%; --y: 84.97%; z-index: 22; }
.city-marker-clients > :nth-child(60n + 5) { --x: 54.36%; --y: 88.41%; z-index: 25; }
.city-marker-clients > :nth-child(60n + 6) { --x: 62.04%; --y: 78.39%; z-index: 15; }
.city-marker-clients > :nth-child(60n + 7) { --x: 49.24%; --y: 89.67%; z-index: 26; }
.city-marker-clients > :nth-child(60n + 8) { --x: 52.71%; --y: 92.48%; z-index: 28; }
.city-marker-clients > :nth-child(60n + 9) { --x: 55.45%; --y: 83.72%; z-index: 20; }
.city-marker-clients > :nth-child(60n + 10) { --x: 49.60%; --y: 85.59%; z-index: 23; }
.city-marker-clients > :nth-child(60n + 11) { --x: 64.23%; --y: 79.65%; z-index: 15; }
.city-marker-clients > :nth-child(60n + 12) { --x: 63.50%; --y: 85.59%; z-index: 23; }
.city-marker-clients > :nth-child(60n + 13) { --x: 46.86%; --y: 90.29%; z-index: 27; }
.city-marker-clients > :nth-child(60n + 14) { --x: 65.69%; --y: 76.51%; z-index: 11; }
.city-marker-clients > :nth-child(60n + 15) { --x: 44.85%; --y: 88.10%; z-index: 25; }
.city-marker-clients > :nth-child(60n + 16) { --x: 42.11%; --y: 76.20%; z-index: 10; }
.city-marker-clients > :nth-child(60n + 17) { --x: 67.89%; --y: 78.08%; z-index: 13; }
.city-marker-clients > :nth-child(60n + 18) { --x: 42.66%; --y: 87.16%; z-index: 24; }
.city-marker-clients > :nth-child(60n + 19) { --x: 44.30%; --y: 68.37%; z-index: 8; }
.city-marker-clients > :nth-child(60n + 20) { --x: 41.01%; --y: 79.65%; z-index: 16; }
.city-marker-clients > :nth-child(60n + 21) { --x: 40.65%; --y: 85.28%; z-index: 22; }
.city-marker-clients > :nth-child(60n + 22) { --x: 69.90%; --y: 79.96%; z-index: 18; }
.city-marker-clients > :nth-child(60n + 23) { --x: 69.71%; --y: 75.57%; z-index: 9; }
.city-marker-clients > :nth-child(60n + 24) { --x: 39.55%; --y: 76.51%; z-index: 11; }
.city-marker-clients > :nth-child(60n + 25) { --x: 53.44%; --y: 81.21%; z-index: 19; }
.city-marker-clients > :nth-child(60n + 26) { --x: 54.72%; --y: 91.86%; z-index: 28; }
.city-marker-clients > :nth-child(60n + 27) { --x: 63.50%; --y: 77.14%; z-index: 12; }
.city-marker-clients > :nth-child(60n + 28) { --x: 51.07%; --y: 92.48%; z-index: 29; }
.city-marker-clients > :nth-child(60n + 29) { --x: 49.42%; --y: 92.48%; z-index: 29; }
.city-marker-clients > :nth-child(60n + 30) { --x: 43.39%; --y: 89.67%; z-index: 27; }
.city-marker-clients > :nth-child(60n + 31) { --x: 41.19%; --y: 88.41%; z-index: 26; }
.city-marker-clients > :nth-child(60n + 32) { --x: 42.84%; --y: 67.12%; z-index: 7; }
.city-marker-clients > :nth-child(60n + 33) { --x: 39.37%; --y: 79.96%; z-index: 18; }
.city-marker-clients > :nth-child(60n + 34) { --x: 39.00%; --y: 84.34%; z-index: 21; }
.city-marker-clients > :nth-child(60n + 35) { --x: 70.99%; --y: 77.77%; z-index: 12; }
.city-marker-clients > :nth-child(60n + 36) { --x: 70.99%; --y: 82.15%; z-index: 20; }
.city-marker-clients > :nth-child(60n + 37) { --x: 39.37%; --y: 87.16%; z-index: 24; }
.city-marker-clients > :nth-child(60n + 38) { --x: 43.02%; --y: 64.30%; z-index: 6; }
.city-marker-clients > :nth-child(60n + 39) { --x: 51.80%; --y: 57.72%; z-index: 2; }
.city-marker-clients > :nth-child(60n + 40) { --x: 50.15%; --y: 58.04%; z-index: 3; }
.city-marker-clients > :nth-child(60n + 41) { --x: 70.99%; --y: 73.70%; z-index: 8; }
.city-marker-clients > :nth-child(60n + 42) { --x: 38.09%; --y: 78.08%; z-index: 14; }
.city-marker-clients > :nth-child(60n + 43) { --x: 41.38%; --y: 65.55%; z-index: 7; }
.city-marker-clients > :nth-child(60n + 44) { --x: 43.94%; --y: 61.80%; z-index: 4; }
.city-marker-clients > :nth-child(60n + 45) { --x: 53.26%; --y: 56.47%; z-index: 2; }
.city-marker-clients > :nth-child(60n + 46) { --x: 72.09%; --y: 79.96%; z-index: 19; }
.city-marker-clients > :nth-child(60n + 47) { --x: 72.27%; --y: 75.89%; z-index: 10; }
.city-marker-clients > :nth-child(60n + 48) { --x: 37.36%; --y: 83.40%; z-index: 20; }
.city-marker-clients > :nth-child(60n + 49) { --x: 72.27%; --y: 84.03%; z-index: 21; }
.city-marker-clients > :nth-child(60n + 50) { --x: 37.36%; --y: 75.57%; z-index: 10; }
.city-marker-clients > :nth-child(60n + 51) { --x: 68.98%; --y: 64.93%; z-index: 6; }
.city-marker-clients > :nth-child(60n + 52) { --x: 42.29%; --y: 61.80%; z-index: 5; }
.city-marker-clients > :nth-child(60n + 53) { --x: 54.91%; --y: 54.59%; z-index: 1; }
.city-marker-clients > :nth-child(60n + 54) { --x: 73.37%; --y: 78.08%; z-index: 14; }
.city-marker-clients > :nth-child(60n + 55) { --x: 36.26%; --y: 77.77%; z-index: 13; }
.city-marker-clients > :nth-child(60n + 56) { --x: 40.65%; --y: 63.05%; z-index: 5; }
.city-marker-clients > :nth-child(60n + 57) { --x: 52.16%; --y: 54.28%; z-index: 1; }
.city-marker-clients > :nth-child(60n + 58) { --x: 43.21%; --y: 59.29%; z-index: 4; }
.city-marker-clients > :nth-child(60n + 59) { --x: 44.85%; --y: 57.72%; z-index: 3; }
.city-marker-clients > :nth-child(60n + 60) { --x: 73.55%; --y: 74.01%; z-index: 9; }
/* city-ground:end */
.city-crowd > .city-pet.is-self { z-index: 30; }
.city-crowd > .city-pet:hover, .city-crowd > .city-pet.is-open { z-index: var(--ds-layer-popover); }
/* Монетки ученика — иконка и число, без слова (и в подсказке над зверьком, и в списке в карточке здания) */
.city-pet-coins { display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-1); font-weight: var(--ds-font-weight-medium); }
.city-pet-coin { display: block; flex: none; width: var(--ds-space-4); height: auto; }
/* В карточке здания: «Здесь сейчас N учеников» — раскрывается списком имён с монетками */
.city-pets-here { font-size: var(--ds-font-size-secondary); }
.city-pets-summary { cursor: pointer; }
.city-pets-names { display: grid; gap: var(--ds-space-1); margin: var(--ds-space-2) 0 0; padding: 0; list-style: none; font-size: var(--ds-font-size-caption); color: var(--ds-color-muted); }
.city-pets-names li { display: flex; justify-content: space-between; gap: var(--ds-space-3); }
.city-pin-label { display: none; pointer-events: none; position: absolute; inset: calc(100% + var(--ds-space-1)) auto auto 50%; transform: translateX(-50%); padding: var(--ds-space-1) var(--ds-space-2); border-radius: var(--ds-radius-small); background: var(--ds-color-surface); box-shadow: var(--ds-shadow-hover); color: var(--ds-color-ink); font-size: var(--ds-font-size-caption); white-space: nowrap; line-height: 1.2; }
.city-marker-start .city-pin-label, .city-marker-clients .city-pin-label,
.city-marker[aria-pressed='true'] .city-pin-label, .city-marker:hover .city-pin-label, .city-marker:focus-visible .city-pin-label { display: block; }
.city-marker[aria-pressed='true'], .city-marker:hover, .city-marker:focus-visible { z-index: 41; }
.city-marker[aria-pressed='true'] .city-point { color: var(--ds-color-text-inverse); background: var(--ds-color-brand-primary); }
.city-marker:focus-visible { outline-color: var(--ds-color-ink); }
.city-detail-art { aspect-ratio: 2.15; display: grid; overflow: hidden; background: var(--city-soft); }
/* Здание целиком на мягком фоне района: вектор вписывается с полями, не обрезается */
.city-detail-art img { width: 100%; height: 100%; object-fit: contain; padding: var(--ds-space-4); min-height: 0; }
.city-detail-body { display: grid; justify-items: start; gap: var(--ds-space-2); padding: var(--ds-space-5); }
.city-detail-body h2 { margin-top: var(--ds-space-1); font-size: var(--ds-font-size-title); line-height: 1.15; }
.city-detail-body p { font-size: var(--ds-font-size-secondary); line-height: 1.45; }
.city-module-title { font-weight: var(--ds-font-weight-medium); }
.city-detail-badge { gap: var(--ds-space-1); background: var(--city-soft); color: var(--ds-color-ink); }
.city-detail-badge .icon { width: var(--ds-space-3); height: var(--ds-space-3); }
.city-start-progress { margin-top: var(--ds-space-2); }
.city-start-link { width: 100%; margin-block: var(--ds-space-2) var(--ds-space-1); }
/* Недели модуля — короткий список: номер недели и тема, строки разделены линией */
.city-weeks { display: grid; width: 100%; margin: var(--ds-space-2) 0 0; padding: var(--ds-space-1) var(--ds-space-3); list-style: none; background: var(--ds-color-background-subtle); border-radius: var(--ds-radius-control); }
.city-week { display: grid; gap: 2px; min-width: 0; padding-block: var(--ds-space-2); border-top: var(--ds-border-width) solid var(--ds-color-line); }
.city-week:first-child { border-top: 0; }
.city-week-number { font-size: var(--ds-font-size-caption); color: var(--ds-color-text-secondary); }
.city-week-title { font-size: var(--ds-font-size-tag); font-weight: var(--ds-font-weight-medium); line-height: 1.3; color: var(--ds-color-ink); }
.city-detail-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-2); padding: var(--ds-space-3) var(--ds-space-5); border-top: var(--ds-border-width) solid var(--ds-color-line); color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-tag); }
.city-detail-nav button { width: var(--ds-space-10); min-width: 0; height: var(--ds-space-10); }
.city-detail-nav button:disabled { opacity: .38; }
.city-announcer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.city-back-to-map.ds-button { display: none; }
.city-detail-body h2:focus { outline: none; }

@media (min-width: 1250px) {
  .city-pin-label { display: block; }
}

/* «Мой путь» на компьютере — в один экран без прокрутки страницы: карта вписывается в оставшуюся высоту окна целиком,
   панель модуля той же высоты, а описание модуля прокручивается внутри панели; кнопки листания остаются внизу на месте */
@media (min-width: calc(960px + 1px)) and (min-height: 560px) {
  .city-view { --city-panel: 22rem; }
  .city-view .workspace { display: flex; flex-direction: column; height: calc(100dvh - 2 * var(--ds-frame-gap)); min-height: 0; }
  .city-view main { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding-block: var(--ds-space-4); }
  .city-view .pixel-city { flex: 1; min-height: 0; }
  .city-view .city-layout { height: 100%; min-height: 0; container-type: size; grid-template-columns: auto minmax(var(--city-panel), 36rem); justify-content: center; align-items: center;
    --city-map-width: min(calc(100cqw - var(--city-panel) - var(--ds-space-4)), calc(100cqh * 1641 / 958)); }
  /* Ширина карты — меньшая из двух: сколько осталось по ширине рядом с панелью и сколько позволяет высота при пропорциях картинки */
  .city-view .city-map-card { width: var(--city-map-width); }
  /* Панель модуля ровно по высоте карты */
  .city-view .city-detail-card { display: flex; flex-direction: column; min-height: 0; height: calc(var(--city-map-width) * 958 / 1641); }
  .city-view #city-detail { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .city-view .city-detail-nav { flex: none; }
}
@media (max-width: 1180px) and (min-width: calc(960px + 1px)) {
  .city-view { --city-panel: 18rem; }
}

@media (max-width: 1180px) {
  .city-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); }
}
@media (max-width: 960px) {
  .city-layout { grid-template-columns: minmax(0, 1fr); }
  .city-detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .city-detail-art { aspect-ratio: auto; min-height: 0; max-height: 17rem; align-self: start; }
  .city-detail-count { display: none; }
  .city-back-to-map.ds-button { display: inline-flex; align-items: center; gap: var(--ds-space-2); width: auto; color: var(--ds-color-ink); font-size: var(--ds-font-size-tag); }
  .city-back-to-map .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
}
@media (max-width: 680px) {
  .city-map-card, .city-detail-card { border-radius: var(--ds-radius-mobile-panel); }
  .city-detail-content { display: block; }
  .city-detail-art { aspect-ratio: 2.15; }
  .city-marker::before { inset: -65% -12% 0; }
  .city-point { width: var(--ds-space-7); }
  .city-crowd { --city-pet: 4cqi; }
  .city-pet-you { display: none; }
  .city-pin-label, .city-marker-start .city-pin-label, .city-marker-clients .city-pin-label,
  .city-marker[aria-pressed='true'] .city-pin-label, .city-marker:hover .city-pin-label, .city-marker:focus-visible .city-pin-label { display: none; }
}

/* Главная: плашки доходят до тех же краёв, что и шапка, — правый край карточек совпадает с колокольчиком.
   Отступ = внешний отступ шапки (space-3) + её внутренний (space-2); слева такой же, чтобы карточки растянулись симметрично */
@media (min-width: 821px) {
.home-view main { padding-inline: calc(var(--ds-space-3) + var(--ds-space-2)); }
}

/* Раздел «Программа» · WeekPlan (#/program): всё, что вышло за неделю. Слева баннер недели, «Материалы недели» карточками
   и план по дням; справа календарь месяца с переключателем недель программы и задания недели */
.plan-page { display: grid; gap: var(--ds-space-5); min-width: 0; }
/* Недели программы — под календарём: «Неделя 5 из 12» одной строкой ровно посередине между стрелками к соседним неделям */
.plan-weeks { display: grid; gap: var(--ds-space-4); min-width: 0; }
.plan-weeks-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-2); }
.plan-weeks-head { padding-top: var(--ds-space-4); border-top: var(--ds-border-width) solid var(--ds-component-adminOverview-card-border); }
.plan-weeks-copy { display: flex; align-items: center; justify-content: center; min-width: 0; text-align: center; }
.plan-weeks-title { font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
.plan-week-step { flex: none; }
.plan-week-step.is-disabled { opacity: .38; pointer-events: none; }
/* Номер недели — поле ввода прямо в заголовке «Неделя [5] из 12»: ввели номер и Enter — переход к неделе. Стрелки поля спрятаны */
.plan-week-jump { display: inline-flex; align-items: center; gap: var(--ds-space-2); margin: 0; white-space: nowrap; }
.plan-week-input { width: 3.25em; min-height: 2.25rem; padding: 0 var(--ds-space-1); border: 0; border-radius: var(--ds-radius-field); background: var(--ds-component-input-background-default); box-shadow: inset 0 0 0 var(--ds-border-field) var(--ds-component-input-border-default); color: var(--ds-component-input-foreground-default); font: inherit; text-align: center; appearance: textfield; -moz-appearance: textfield; transition: box-shadow var(--ds-motion-fast), background-color var(--ds-motion-fast); }
.plan-week-input::-webkit-outer-spin-button, .plan-week-input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.plan-week-input:hover { background: var(--ds-component-input-background-hover); }
.plan-week-input:focus, .plan-week-input:focus-visible { outline: none; background: var(--ds-component-input-background-focus); box-shadow: inset 0 0 0 var(--ds-border-field) var(--ds-component-input-border-focus); }
/* Монетки недели вместо «Сделано N из M»: «4 из 7 монеток», «заработано за неделю N» и круговая шкала с монеткой в центре */
.plan-coins-count { font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
.plan-head { display: grid; gap: var(--ds-space-3); }
.plan-head-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-2) var(--ds-space-4); }
.plan-week-title { margin: 0; font-size: var(--ds-font-size-title); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.plan-week-theme { color: var(--ds-color-muted); font-weight: var(--ds-font-weight-normal); }
.plan-progress { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--ds-space-4); font-size: var(--ds-font-size-secondary); }
.plan-progress .progress-track { height: var(--ds-space-2); }
.plan-progress-text { color: var(--ds-color-muted); white-space: nowrap; }
.plan-summary { color: var(--ds-color-muted); font-size: var(--ds-font-size-tag); }
.plan-next { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); padding: var(--ds-space-4) var(--ds-space-5); border: var(--ds-border-item) solid var(--ds-component-lessonToc-current-border); border-radius: var(--ds-radius-item); background: var(--ds-component-lessonToc-current-background); }
.plan-next-copy { display: grid; gap: var(--ds-space-1); min-width: 0; }
.plan-next-label { color: var(--ds-component-lessonToc-done-markerForeground); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); }
.plan-next-title { font-family: var(--ds-font-sans); font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.plan-next-meta { color: var(--ds-color-muted); font-size: var(--ds-font-size-caption); }
.plan-next-action { flex: none; }
.plan-next.is-done { justify-content: flex-start; }
.plan-next-icon { display: grid; place-items: center; flex: none; width: var(--ds-space-10); height: var(--ds-space-10); border-radius: 50%; background: var(--ds-component-lessonToc-current-marker); color: var(--ds-component-lessonToc-current-markerForeground); }
.plan-next-icon .icon { width: var(--ds-space-5); height: var(--ds-space-5); }
.plan-empty { color: var(--ds-color-muted); font-size: var(--ds-font-size-secondary); }
.plan-detail { display: grid; gap: var(--ds-space-4); min-width: 0; }
.plan-back { justify-self: start; }
/* В «Программе» у карточки материала нет соседнего оглавления — именованная область lesson из .lesson-layout тут не нужна */
.plan-detail > .lesson-card { grid-area: auto; }
.lesson-aside > .aside-program { flex: none; padding-bottom: 0; }
/* «Следующий урок» под таймкодами — компактно, как рекомендации справа на YouTube, чтобы таймкодам хватало места:
   слева мини-плеер (рецепт lesson-preview — обложка, белая кнопка воспроизведения) с длительностью в углу, справа название, вид и монетки за досмотр. Вся карточка — ссылка; при наведении кнопка воспроизведения приподнимается, как у плеера */
/* Карточка небольшая, как карточки уроков в «Программе»: маленький заголовок, плотные отступы, мини-плеер 7,5rem, название в две строки.
   Таймкоды над ней не ниже size.lesson-timecodes-min — примерно в 2,5 раза выше этой карточки и на невысоком экране */
.lesson-aside > .next-lesson-card { flex: none; }
/* Компактная карточка с маленькими отступами: скругление меньше общего у карточек (45px) — превью внутри (15px) плюс отступ */
.dashboard-card.next-lesson-card { padding: var(--ds-space-4) var(--ds-space-5); border-radius: var(--ds-radius-panel); }
.dashboard-card.next-lesson-card > h2 { margin-bottom: var(--ds-space-3); font-size: var(--ds-font-size-body); line-height: var(--ds-font-line-tight); }
.lesson-aside .timecodes-card { min-height: var(--ds-size-lesson-timecodes-min); }
.next-lesson { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: var(--ds-space-3); color: inherit; text-decoration: none; border-radius: var(--ds-radius-item); }
.next-lesson-player { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
.next-lesson-player .lesson-preview-play { top: 50%; width: var(--ds-space-8); height: var(--ds-space-8); }
.next-lesson-player .lesson-preview-play .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.next-lesson:hover .lesson-preview-play { box-shadow: var(--ds-shadow-button-icon-hover); }
.next-lesson-duration { position: absolute; right: var(--ds-space-1); bottom: var(--ds-space-1); padding: var(--ds-space-1) var(--ds-space-2); border-radius: var(--ds-radius-small); background: var(--ds-color-background-surface); color: var(--ds-color-text-primary); font-size: var(--ds-font-size-caption); line-height: 1; }
.next-lesson-copy { display: grid; gap: var(--ds-space-1); min-width: 0; }
.next-lesson-title { font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.next-lesson:hover .next-lesson-title { text-decoration: underline; }
.next-lesson-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.next-lesson-meta { display: flex; align-items: center; gap: var(--ds-space-2); color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-tag); }
@media (max-width: 680px) {
  .plan-progress { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-2); }
  .plan-next { flex-direction: column; align-items: stretch; padding: var(--ds-space-4); }
  .plan-next-action { justify-content: center; }
}

/* Обзор раздела «Программы» в админке (components/admin-overview.js) — по образцу учебного дашборда:
   слева баннер выбранной программы, карточки программ и расписание потоков, справа «Эта неделя» и «Наполнение программы» */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); gap: var(--ds-space-5); align-items: start; }
.overview-main, .overview-side { display: grid; gap: var(--ds-space-5); min-width: 0; }
/* «Программа»: календарь с неделями и блокнот «Задания недели» стоят на месте, пока листаются материалы недели.
   Колонка не выше экрана; поля внутри — чтобы не обрезались тень карточки и наклон блокнота */
.plan-overview > .overview-side { position: sticky; top: var(--ds-space-5); max-height: calc(100dvh - 2 * var(--ds-space-5)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: calc(-1 * var(--ds-space-3)); padding: var(--ds-space-3); }
/* Колонка не прокручивается: календарь с монетками по своей высоте, блокнот занимает остаток. Заметки короткие (shortNote), поэтому обычная неделя
   помещается целиком; если заданий совсем много, список листается внутри блокнота, как на главной
   (до breakpoint.tablet колонка раскрывается — display: contents ниже по файлу — и это не действует) */
.plan-overview > .overview-side { display: flex; flex-direction: column; overflow: visible; }
.plan-overview > .overview-side > * { flex: none; }
.plan-overview > .overview-side > .notebook { flex: 0 1 auto; min-height: 0; }
.plan-overview > .overview-side > .notebook .starter-checklist { flex: 0 1 auto; min-height: 0; }
/* Заметки в этой колонке — в одну строку: что не влезло, уходит в «…» (полный текст — в подсказке), палочка зачёркивания обрезается вместе с текстом.
   Строки плотнее, чем на главной */
.plan-overview > .overview-side > .notebook .task-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-overview > .overview-side > .notebook .starter-step { min-height: 0; padding-block: var(--ds-space-3); }
.overview-section { display: grid; gap: var(--ds-space-3); min-width: 0; }
.overview-grid .overview-section-title, .overview-grid .overview-card-title, .admin-program-weeks > .overview-section-title { margin: 0; font-size: var(--ds-font-size-title); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.overview-muted { color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-secondary); }
/* Баннер программы: зелёный, белый текст, ноутбук справа */
.overview-hero { position: relative; display: flex; align-items: center; gap: var(--ds-space-4); min-height: 15rem; padding: var(--ds-space-8); overflow: hidden; border-radius: var(--ds-radius-card);
  background: linear-gradient(135deg, var(--ds-component-adminOverview-hero-background), var(--ds-component-adminOverview-hero-backgroundEnd)); color: var(--ds-component-adminOverview-hero-foreground); }
.overview-hero::after { content: ""; position: absolute; right: -4rem; bottom: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: var(--ds-component-adminOverview-hero-decor); opacity: .35; }
.overview-hero-copy { position: relative; z-index: 1; display: grid; gap: var(--ds-space-3); max-width: 34rem; }
.overview-hero-eyebrow { font-size: var(--ds-font-size-caption); opacity: .85; }
.overview-hero-title { margin: 0; color: inherit; font-size: var(--ds-font-size-title); }
.overview-hero-text { margin: 0; color: inherit; font-size: var(--ds-font-size-secondary); line-height: var(--ds-font-line-body); opacity: .92; text-wrap: pretty; }
.overview-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2); margin-top: var(--ds-space-1); }
.overview-hero .overview-hero-link { padding-inline: 0; margin-right: var(--ds-space-2); color: inherit; font-weight: var(--ds-font-weight-medium); }
.overview-hero .overview-hero-button { background: var(--ds-component-adminOverview-hero-chipBackground); color: var(--ds-component-adminOverview-hero-chipForeground); }
.overview-hero-art { position: relative; z-index: 1; flex: none; width: 13rem; height: auto; margin: calc(-1 * var(--ds-space-4)) calc(-1 * var(--ds-space-2)) calc(-1 * var(--ds-space-4)) auto; pointer-events: none; user-select: none; }
.overview-streams { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.overview-stream { display: inline-flex; align-items: center; gap: var(--ds-space-1); padding: var(--ds-space-1) var(--ds-space-3); border-radius: var(--ds-radius-pill); background: var(--ds-component-adminOverview-hero-chipBackground);
  color: var(--ds-component-adminOverview-hero-chipForeground); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); text-decoration: none; }
.overview-stream .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
/* Карточки программ: обложка с градиентом и ноутбуком, название, что в программе, полоса прохождения потока */
.overview-programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: var(--ds-space-4); margin: 0; padding: 0; list-style: none; }
.overview-program { display: flex; min-width: 0; }
.overview-program-card { --cover-top: var(--ds-component-adminOverview-cover-green-top); --cover-bottom: var(--ds-component-adminOverview-cover-green-bottom);
  display: grid; align-content: start; gap: var(--ds-space-3); width: 100%; padding: var(--ds-space-3); border: 2px solid var(--ds-component-adminOverview-card-border); border-radius: var(--ds-radius-tile);
  background: var(--ds-component-card-background); color: inherit; text-decoration: none; transition: border-color var(--ds-motion-fast), transform var(--ds-motion-fast); }
.overview-program-card[data-cover="lilac"] { --cover-top: var(--ds-component-adminOverview-cover-lilac-top); --cover-bottom: var(--ds-component-adminOverview-cover-lilac-bottom); }
.overview-program-card[data-cover="sun"] { --cover-top: var(--ds-component-adminOverview-cover-sun-top); --cover-bottom: var(--ds-component-adminOverview-cover-sun-bottom); }
.overview-program-card:hover { transform: translateY(-2px); }
.overview-program-card.is-selected { border-color: var(--ds-component-adminOverview-card-selectedBorder); }
.overview-program-cover { position: relative; display: grid; place-items: center; height: 7.5rem; overflow: hidden; border-radius: var(--ds-radius-small); background: linear-gradient(160deg, var(--cover-top), var(--cover-bottom)); }
.overview-program-cover img { width: 7rem; height: auto; user-select: none; }
.overview-program-streams { position: absolute; left: var(--ds-space-2); bottom: var(--ds-space-2); display: inline-flex; align-items: center; gap: var(--ds-space-1); padding: 2px var(--ds-space-2);
  border-radius: var(--ds-radius-pill); background: var(--ds-component-adminOverview-card-chipBackground); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); }
.overview-program-streams .icon { width: 14px; height: 14px; }
.overview-program-title { font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.overview-stats { display: flex; justify-content: space-between; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); }
.overview-stat { display: inline-flex; align-items: center; gap: 4px; }
.overview-stat .icon { width: 14px; height: 14px; }
.overview-program-progress { display: grid; gap: var(--ds-space-1); }
.overview-program-meta { display: flex; justify-content: space-between; gap: var(--ds-space-2); color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); }
.overview-program-add { display: grid; place-content: center; justify-items: center; gap: var(--ds-space-2); width: 100%; min-height: 15rem; border: 2px dashed var(--ds-component-adminOverview-card-addBorder);
  border-radius: var(--ds-radius-tile); background: transparent; color: var(--ds-component-adminOverview-card-muted); font: inherit; font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); cursor: pointer; }
.overview-program-add:hover:not(:disabled) { border-color: var(--ds-component-adminOverview-card-selectedBorder); color: var(--ds-component-adminOverview-hero-chipForeground); }
.overview-program-add:disabled { cursor: default; opacity: .5; }
.overview-program-add-icon { display: grid; place-items: center; width: var(--ds-space-10); height: var(--ds-space-10); border-radius: var(--ds-radius-pill); background: var(--ds-component-adminOverview-cover-green-top); color: var(--ds-component-adminOverview-hero-chipForeground); }
/* «Эта неделя»: семь дней, сегодняшний — зелёная таблетка; потоки; кольцо оплаты */
.overview-week, .overview-readiness, .overview-schedule { display: grid; gap: var(--ds-space-4); min-width: 0; }
.overview-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--ds-space-1); margin: 0; padding: 0; list-style: none; text-align: center; }
.overview-day { display: grid; gap: var(--ds-space-2); padding: var(--ds-space-2) 0; border-radius: var(--ds-radius-item); }
.overview-day-name { color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); }
.overview-day-date { font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); }
.overview-day.is-today { background: var(--ds-component-adminOverview-day-todayBackground); color: var(--ds-component-adminOverview-day-todayForeground); }
.overview-day.is-today .overview-day-name { color: inherit; opacity: .85; }
/* Календарь месяца · MonthCalendar (components/calendar.js): «Ноябрь 2026», строка Пн–Вс и числа; неделя с сегодняшним днём —
   светло-зелёная полоса, сегодня — зелёный кружок, дни соседних месяцев приглушены */
.month-calendar { display: grid; gap: var(--ds-space-3); min-width: 0; }
/* Календарь недели в «Программе»: заголовок месяца слева, ниже семь дней — как «Эта неделя» в админке */
.week-calendar { display: grid; gap: var(--ds-space-4); min-width: 0; }
.week-calendar-title { display: block; }
.month-calendar-title { font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); text-align: center; }
.month-calendar-grid { width: 100%; border-collapse: separate; border-spacing: 0 var(--ds-space-1); table-layout: fixed; text-align: center; }
.month-calendar-weekday { padding-bottom: var(--ds-space-1); color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-normal); }
.month-calendar-day { padding: 2px 0; font-size: var(--ds-font-size-secondary); }
.month-calendar-number { display: inline-grid; place-items: center; width: var(--ds-space-8); height: var(--ds-space-8); border-radius: 50%; }
.month-calendar-day.is-outside { color: var(--ds-component-adminOverview-card-muted); opacity: .5; }
.month-calendar-week.is-current .month-calendar-day { background: var(--ds-component-lessonToc-current-background); }
.month-calendar-week.is-current .month-calendar-day:first-child { border-radius: var(--ds-radius-pill) 0 0 var(--ds-radius-pill); }
.month-calendar-week.is-current .month-calendar-day:last-child { border-radius: 0 var(--ds-radius-pill) var(--ds-radius-pill) 0; }
.month-calendar-day.is-today .month-calendar-number { background: var(--ds-component-adminOverview-day-todayBackground); color: var(--ds-component-adminOverview-day-todayForeground); font-weight: var(--ds-font-weight-medium); }
.overview-events { display: grid; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.overview-event { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ds-space-1) var(--ds-space-3); font-size: var(--ds-font-size-secondary); }
.overview-event span { color: var(--ds-component-adminOverview-card-muted); }
.overview-students { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-item); background: var(--ds-component-adminOverview-schedule-row); }
.overview-students-copy { display: grid; gap: 2px; font-size: var(--ds-font-size-secondary); }
.overview-ring { position: relative; flex: none; width: 3.5rem; height: 3.5rem; }
.overview-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.overview-ring circle { fill: none; stroke-width: 4; }
.overview-ring-track { stroke: var(--ds-component-adminOverview-ring-track); }
.overview-ring-value { stroke: var(--ds-component-adminOverview-ring-value); stroke-linecap: round; }
.overview-ring-number { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); }
/* «Наполнение программы»: плашки с названием, стрелкой к части, подписью и полосой с процентом */
.overview-ready-list { display: grid; gap: var(--ds-space-3); margin: 0; padding: 0; list-style: none; }
.overview-ready { display: grid; gap: var(--ds-space-2); padding: var(--ds-space-4); border: var(--ds-border-width) solid var(--ds-component-adminOverview-card-border); border-radius: var(--ds-radius-item); }
.overview-ready-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-2); font-size: var(--ds-font-size-secondary); }
.overview-ready-link { display: inline-grid; place-items: center; width: var(--ds-space-8); height: var(--ds-space-8); margin: calc(-1 * var(--ds-space-2)) calc(-1 * var(--ds-space-2)) calc(-1 * var(--ds-space-2)) 0; border-radius: var(--ds-radius-pill); color: var(--ds-component-adminOverview-hero-chipForeground); }
.overview-ready-link .icon { width: 18px; height: 18px; transform: rotate(-45deg); }
.overview-ready-link:hover { background: var(--ds-component-adminOverview-cover-green-top); }
.overview-ready .overview-muted { font-size: var(--ds-font-size-caption); }
.overview-ready-bar { display: flex; align-items: center; gap: var(--ds-space-3); }
.overview-ready-bar .ds-progress { flex: 1; }
.overview-ready-value { flex: none; min-width: 2.5rem; text-align: right; color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); }
/* «Расписание потоков»: строка на поток, ячейка — неделя; полосы предобучения и обучения, линия сегодняшней недели */
.overview-legend { display: flex; flex-wrap: wrap; gap: var(--ds-space-4); color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); }
.overview-legend-item { display: inline-flex; align-items: center; gap: var(--ds-space-2); }
.overview-legend-item::before { content: ""; width: var(--ds-space-3); height: var(--ds-space-3); border-radius: 4px; background: var(--ds-component-adminOverview-schedule-main); }
.overview-legend-item.is-pre::before { background: var(--ds-component-adminOverview-schedule-pre); }
.overview-legend-item.is-now::before { width: 2px; border-radius: 0; background: var(--ds-component-adminOverview-schedule-now); }
/* Линия «сегодня» выступает за строку на 4 px — запас сверху и снизу, чтобы не появлялась вертикальная прокрутка */
.overview-schedule-scroll { display: grid; gap: var(--ds-space-2); padding-block: var(--ds-space-1); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.overview-rows { display: grid; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.overview-row { display: grid; grid-template-columns: 6.5rem minmax(30rem, 1fr); align-items: center; gap: var(--ds-space-3); }
.overview-row-name { font-size: var(--ds-font-size-secondary); color: var(--ds-component-adminOverview-card-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: var(--ds-space-8); border-radius: var(--ds-radius-small); background: var(--ds-component-adminOverview-schedule-row); }
.overview-row-head .overview-cells { height: var(--ds-space-5); background: none; }
.overview-cell { position: relative; min-width: 0; border-left: var(--ds-border-width) solid var(--ds-component-adminOverview-schedule-line); }
.overview-cell:first-child, .overview-row-head .overview-cell { border-left-color: transparent; }
.overview-cell.is-pre, .overview-cell.is-main { border-left-color: transparent; margin-block: var(--ds-space-1); }
.overview-cell.is-pre { background: var(--ds-component-adminOverview-schedule-pre); color: var(--ds-component-adminOverview-schedule-preText); }
.overview-cell.is-main { background: var(--ds-component-adminOverview-schedule-main); color: var(--ds-component-adminOverview-schedule-mainText); }
.overview-row.is-current .overview-cell.is-main { background: var(--ds-component-adminOverview-schedule-currentMain); color: var(--ds-component-adminOverview-schedule-currentMainText); }
.overview-cell.is-first { border-top-left-radius: var(--ds-radius-slot); border-bottom-left-radius: var(--ds-radius-slot); }
.overview-cell.is-last { border-top-right-radius: var(--ds-radius-slot); border-bottom-right-radius: var(--ds-radius-slot); }
.overview-cell.is-now::after { content: ""; position: absolute; top: calc(-1 * var(--ds-space-1)); bottom: calc(-1 * var(--ds-space-1)); left: 50%; width: 2px; background: var(--ds-component-adminOverview-schedule-now); }
.overview-cell-label { position: absolute; z-index: 1; top: 50%; left: var(--ds-space-2); transform: translateY(-50%); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); white-space: nowrap; }
.overview-row-head .overview-cell-label { left: 0; color: var(--ds-component-adminOverview-card-muted); font-weight: var(--ds-font-weight-normal); }
.admin-program-weeks { display: grid; gap: var(--ds-space-4); margin-top: var(--ds-space-3); }
.admin-program-weeks > h2:focus { outline: none; }
/* «Программа» ученика в формате дашборда — те же рецепты обзора, что у админки (overview-*), со своими деталями:
   баннер недели со «Следующим шагом» в белой плашке, каждый материал недели карточкой, план недели по дням, календарь с неделями и задания справа */
.plan-materials .overview-section-title:focus { outline: none; }
/* Карточка модуля недели (макет «Group 5»): белая карточка с нижней кромкой, слева «Модуль N. Здание», заголовок модуля и серые таблетки
   с числом материалов недели, внизу — чему научитесь; справа — здание модуля из «Города Настав» (assets/city/<id>.svg, как на карте «Мой путь») */
/* Плашка модуля ровно той же высоты, что карточка календаря: --plan-calendar-height ставит bindPlanHeroHeight (week-plan.js).
   Картинка вписывается в эту высоту, лишнее не растягивает плашку */
.plan-hero { display: flex; align-items: stretch; gap: var(--ds-space-8); box-sizing: border-box; height: var(--plan-calendar-height, auto); min-height: 0; overflow: hidden; padding: var(--ds-space-8) var(--ds-space-12); }
.plan-hero-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 0; min-width: 0; align-self: stretch; }
.plan-hero-eyebrow { color: var(--ds-color-ink); font-size: var(--ds-font-size-secondary); }
.plan-hero-title { margin: var(--ds-space-2) 0 0; color: var(--ds-color-ink); font-size: var(--ds-font-size-title); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.plan-hero-title:focus { outline: none; }
.plan-hero-tags { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); margin: var(--ds-space-4) 0 0; padding: 0; list-style: none; }
.plan-hero-text { max-width: 30rem; margin: auto 0 0; padding-top: var(--ds-space-8); color: var(--ds-color-ink); font-size: var(--ds-font-size-body); line-height: var(--ds-font-line-body); text-wrap: pretty; }
/* Прошлые потоки: темы недель и списки разделов старой платформы бывают длинными — текст не больше трёх строк (на телефоне двух), с многоточием, а не обрывом посреди строки */
.plan-hero-legacy { height: auto; min-height: var(--plan-calendar-height, auto); } /* не меньше календаря, но длинная тема недели не вытесняет текст */
.plan-hero-legacy .plan-hero-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.plan-hero-art { flex: 0 1 auto; width: auto; max-width: 20rem; height: 100%; min-height: 0; object-fit: contain; pointer-events: none; user-select: none; }
/* «Материалы недели» карточками: каждый урок, текст, практика, тест, файл и ссылка — карточка overview-program-card.
   Обложка цвета вида (уроки и тесты — зелёные, тексты, файлы и ссылки — сиреневые, практики — жёлтые) со значком и ярлыком вида;
   внизу — действие со стрелкой и монетки или «✓ Просмотрен». Таблетки фильтра — над карточками; на телефоне одной строкой с прокруткой */
.plan-materials { scroll-margin-top: var(--ds-space-6); }
.plan-materials-head { display: grid; gap: var(--ds-space-3); min-width: 0; }
.plan-material-area { display: grid; gap: var(--ds-space-3); min-width: 0; }
/* Разделы недели («Тильда», «Адаптив»): подзаголовок над своими карточками */
.plan-section { display: grid; gap: var(--ds-space-3); min-width: 0; }
.plan-section + .plan-section { margin-top: var(--ds-space-3); }
.plan-section-title { display: flex; align-items: center; gap: var(--ds-space-2); margin: 0; font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
/* «?» у подзаголовка «Чайные уроки»: подсказка над значком — при наведении, фокусе с клавиатуры и нажатии (aria-expanded) */
.plan-hint { position: relative; display: inline-flex; color: var(--ds-color-text-secondary); cursor: help; border-radius: var(--ds-radius-pill); }
.plan-hint > .icon { width: var(--ds-size-icon); height: var(--ds-size-icon); }
.plan-hint:hover, .plan-hint:focus-visible, .plan-hint[aria-expanded="true"] { color: var(--ds-color-text-primary); }
.plan-hint-tip { position: absolute; z-index: var(--ds-layer-popover); bottom: calc(100% + var(--ds-size-tooltip-tail) + var(--ds-size-tooltip-depth) + var(--ds-space-1)); left: 50%; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%); transition: opacity var(--ds-motion-fast), visibility var(--ds-motion-fast); }
.plan-hint:hover .plan-hint-tip, .plan-hint:focus-visible .plan-hint-tip, .plan-hint[aria-expanded="true"] .plan-hint-tip { opacity: 1; visibility: visible; }
.plan-material[hidden] { display: none; }
.plan-material-card { --cover-icon: var(--ds-component-adminOverview-cover-green-icon); font: inherit; text-align: left; cursor: pointer; }
.plan-material-card[data-cover="lilac"] { --cover-icon: var(--ds-component-adminOverview-cover-lilac-icon); }
.plan-material-card[data-cover="sun"] { --cover-icon: var(--ds-component-adminOverview-cover-sun-icon); }
.plan-material-card:focus-visible { outline: 2px solid var(--ds-color-focus-ring); outline-offset: 2px; }
.plan-material-cover { height: 6rem; }
/* Превью урока с Кинескопа: кадр во всю обложку (обрезается по центру), значок и ярлык поверх */
.plan-material-cover.has-poster { background: var(--ds-color-background-subtle); }
.overview-program-cover img.plan-material-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plan-material-cover.has-poster .plan-kind-icon { position: relative; z-index: 1; }
.plan-material-cover.has-poster .overview-program-streams { z-index: 1; }
.plan-material-card.is-complete .plan-material-poster { opacity: .55; }
.plan-kind-icon { display: grid; place-items: center; width: var(--ds-space-12); height: var(--ds-space-12); border-radius: 50%; background: var(--ds-component-adminOverview-card-chipBackground); color: var(--cover-icon); }
.plan-kind-icon .icon { width: var(--ds-space-6); height: var(--ds-space-6); }
/* Тематическая обложка (has-art): у практик, тестов, текстов, файлов и ссылок (у видео без превью с Кинескопа — серая is-blank) — миниатюра из «Материалов» (LibraryPreview)
   по названию материала (artKind: бриф — анкета, договор — договор с печатью, чек-лист — галочки), цвет обложки — тема миниатюры (artTopic → component.library.cover.*).
   Миниатюра стоит квадратом по центру, лист выглядывает из-под нижнего края; при наведении оживает так же, как карточка в «Материалах».
   Значок вида — маленьким кружком в левом верхнем углу; у сделанного — галочка, миниатюра приглушена */
.plan-material-card.has-art { --library-cover-top: var(--ds-component-library-cover-vibe-top); --library-cover-bottom: var(--ds-component-library-cover-vibe-bottom); --library-accent: var(--ds-component-library-cover-vibe-accent); }
.plan-material-card.has-art[data-topic="design"] { --library-cover-top: var(--ds-component-library-cover-design-top); --library-cover-bottom: var(--ds-component-library-cover-design-bottom); --library-accent: var(--ds-component-library-cover-design-accent); }
.plan-material-card.has-art[data-topic="clients"] { --library-cover-top: var(--ds-component-library-cover-clients-top); --library-cover-bottom: var(--ds-component-library-cover-clients-bottom); --library-accent: var(--ds-component-library-cover-clients-accent); }
.plan-material-card.has-art[data-topic="legal"] { --library-cover-top: var(--ds-component-library-cover-legal-top); --library-cover-bottom: var(--ds-component-library-cover-legal-bottom); --library-accent: var(--ds-component-library-cover-legal-accent); }
.plan-material-cover.has-art { background: linear-gradient(160deg, var(--library-cover-top), var(--library-cover-bottom)); }
.plan-material-art { position: absolute; left: 50%; bottom: 0; height: 135%; aspect-ratio: 1; container-type: inline-size; transform: translateX(-43%); }
/* «Файлы и ссылки»: листок вдвое крупнее и виден только верхней половиной — она заполняет обложку по высоте, лист уходит за нижний край */
.plan-material[data-filter-kind="files"] .plan-material-art { bottom: auto; top: -60%; height: 270%; }
.plan-material-cover.has-art .plan-kind-icon { position: absolute; top: var(--ds-space-2); left: var(--ds-space-2); z-index: 1; width: var(--ds-space-8); height: var(--ds-space-8); }
.plan-material-cover.has-art .plan-kind-icon .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.plan-material-card.is-complete .plan-material-art { filter: grayscale(.6); opacity: .6; }
/* Карточка раздела уроков (PlanFolderCard): на обложке — стопка из трёх уроков-«кадров» (превью или кнопка воспроизведения),
   при наведении стопка раскрывается веером. Значок папки — кружком слева сверху, «N уроков» — ярлыком справа сверху */
.plan-folder-card { --fan: 0; }
.plan-folder-card:hover, .plan-folder-card:focus-visible { --fan: 1; }
/* Обложка раздела — серая, чтобы раздел отличался от зелёных карточек уроков */
.plan-folder-cover { background: var(--ds-color-background-canvas); }
.plan-folder-stack { position: absolute; left: 50%; bottom: calc(var(--ds-space-3) * -1); width: 56%; aspect-ratio: 16 / 9; transform: translateX(-50%); }
.plan-folder-sheet { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--ds-color-border-subtle); border-radius: var(--ds-radius-small); background: var(--ds-color-surface); color: var(--cover-icon); box-shadow: var(--ds-shadow-hover); transition: transform .3s ease; }
.plan-folder-sheet img { width: 100%; height: 100%; object-fit: cover; }
.plan-folder-sheet .icon { width: var(--ds-space-6); height: var(--ds-space-6); }
.plan-folder-sheet:nth-last-child(3) { transform: translate(calc(-14% - 10% * var(--fan)), calc(-12% - 6% * var(--fan))) rotate(calc(-7deg - 5deg * var(--fan))); }
.plan-folder-sheet:nth-last-child(2) { transform: translate(calc(12% + 10% * var(--fan)), calc(-8% - 6% * var(--fan))) rotate(calc(6deg + 5deg * var(--fan))); }
.plan-folder-sheet:last-child { transform: translateY(calc(-4% * var(--fan))); }
.plan-folder-cover .plan-kind-icon { position: absolute; top: var(--ds-space-2); left: var(--ds-space-2); z-index: 1; width: var(--ds-space-8); height: var(--ds-space-8); }
.plan-folder-cover .plan-kind-icon .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.plan-folder-count { position: absolute; top: var(--ds-space-2); right: var(--ds-space-2); z-index: 1; padding: var(--ds-space-1) var(--ds-space-2); border-radius: var(--ds-radius-pill); background: var(--ds-component-adminOverview-card-chipBackground); color: var(--cover-icon); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); }
.plan-folder-open { display: inline-flex; margin-left: auto; color: var(--cover-icon); transition: transform .2s ease; }
.plan-folder-open .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.plan-folder-card:hover .plan-folder-open { transform: translateX(var(--ds-space-1)); }
.plan-folder-card.is-complete .plan-folder-stack { filter: grayscale(.6); opacity: .6; }
/* Страница раздела: шапка с названием, числом уроков и полосой просмотренного, ниже — карточки уроков раздела */
.plan-folder-head { display: grid; gap: var(--ds-space-4); }
.plan-folder-copy { display: grid; gap: var(--ds-space-1); }
.plan-folder-eyebrow, .plan-folder-meta { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-secondary); }
.plan-folder-title { margin: 0; color: var(--ds-color-ink); font-size: var(--ds-font-size-title); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); }
.plan-folder-title:focus { outline: none; }
.plan-folder-page > .overview-programs { margin-top: var(--ds-space-4); }
@media (prefers-reduced-motion: reduce) { .plan-folder-sheet, .plan-folder-open { transition: none; } }
/* Карточка материала — колонка: низ (подпись и монетки) всегда прижат к низу карточки, сколько бы строк ни занимало название.
   Название — не больше двух строк, дальше «…»; полностью оно в подсказке title и для экранного диктора */
.overview-program-card.plan-material-card { display: flex; flex-direction: column; }
.plan-material-card .overview-program-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.plan-material-foot { align-items: center; margin-top: auto; }
.plan-material-state { display: inline-flex; align-items: center; gap: 4px; color: var(--ds-component-adminOverview-hero-chipForeground); font-weight: var(--ds-font-weight-medium); }
.plan-material-state .icon { width: 14px; height: 14px; }
.plan-material-state.is-done { color: var(--ds-component-lessonToc-done-markerForeground); }
.plan-material-state.is-missed { color: var(--ds-component-adminOverview-card-muted); }
.plan-material-card.is-complete .overview-program-title { color: var(--ds-component-adminOverview-card-muted); }
.plan-material-card.is-complete .plan-kind-icon { background: var(--ds-component-lessonToc-done-marker); color: var(--ds-component-lessonToc-done-markerForeground); }
.plan-material-card .coin-icons-value { font-size: var(--ds-font-size-caption); }
/* План недели — таймлайн (week-schedule.js): выбор дней и времени, итог «всё помещается / не хватает», строка на материал.
   Полоса стоит на днях data-from…data-to в сетке из 7 колонок; цвет — по виду материала (component.weekPlan) */
.plan-timeline { display: grid; gap: var(--ds-space-4); min-width: 0; }
.plan-timeline-head { display: grid; gap: var(--ds-space-1); }
.plan-time { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--ds-space-3) var(--ds-space-6); margin: 0; }
.plan-time-group { display: grid; gap: var(--ds-space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.plan-time-label { padding: 0; color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); }
.plan-time-options { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); }
.plan-time-option { min-width: 2.75rem; }
/* Свободное время в день — ползунок Range: подпись как у дней, ширина — до 28rem рядом с днями, на телефоне во всю строку */
.plan-time-range { flex: 1 1 16rem; max-width: 28rem; }
.plan-time-range .ds-range-label { color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); }
.plan-verdict { display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-item); background: var(--ds-component-weekPlan-ok-background); }
.plan-verdict-icon { flex: none; display: grid; place-items: center; width: var(--ds-space-8); height: var(--ds-space-8); border-radius: 50%; background: var(--ds-color-surface); color: var(--ds-component-weekPlan-ok-text); }
.plan-verdict-icon .ds-icon { width: 1.1rem; height: 1.1rem; }
.plan-verdict-copy { display: grid; gap: 2px; min-width: 0; }
.plan-verdict.is-tight { background: var(--ds-component-weekPlan-tight-background); }
.plan-verdict.is-tight .plan-verdict-icon { color: var(--ds-component-weekPlan-tight-text); }
.plan-verdict.is-short { background: var(--ds-component-weekPlan-short-background); }
.plan-verdict.is-short .plan-verdict-icon { color: var(--ds-component-weekPlan-short-text); }
.plan-timeline-scroll { display: grid; gap: var(--ds-space-2); min-width: 0; padding-bottom: var(--ds-space-1); overflow-x: auto; scrollbar-width: thin; }
.plan-lines { display: grid; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.plan-line { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(28rem, 1fr); align-items: center; gap: var(--ds-space-3); }
.plan-line-name { display: flex; align-items: center; gap: var(--ds-space-2); min-width: 0; }
.plan-line-head .plan-line-name { color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); }
.plan-line-icon { flex: none; display: grid; place-items: center; width: var(--ds-space-8); height: var(--ds-space-8); border-radius: 50%; background: var(--line-bg, var(--ds-component-weekPlan-track)); color: var(--line-text, inherit); }
.plan-line-icon .ds-icon { width: 1rem; height: 1rem; }
.plan-line-copy { display: grid; gap: 2px; min-width: 0; }
.plan-line-title { display: -webkit-box; overflow: hidden; color: inherit; font-size: var(--ds-font-size-secondary); font-weight: var(--ds-font-weight-medium); line-height: var(--ds-font-line-tight); text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.plan-line-title:hover { text-decoration: underline; }
.plan-line-meta { color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); }
.plan-line-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 2.5rem; border-radius: var(--ds-radius-small); background: var(--ds-component-weekPlan-track); }
.plan-line-head .plan-line-track { min-height: 0; background: none; }
.plan-line-day { grid-row: 1; }
/* Дни — каждый в своей колонке, иначе полоса материала сдвигает их при авторасстановке */
.plan-line-day:nth-child(1) { grid-column: 1; } .plan-line-day:nth-child(2) { grid-column: 2; } .plan-line-day:nth-child(3) { grid-column: 3; } .plan-line-day:nth-child(4) { grid-column: 4; } .plan-line-day:nth-child(5) { grid-column: 5; } .plan-line-day:nth-child(6) { grid-column: 6; } .plan-line-day:nth-child(7) { grid-column: 7; }
.plan-line-day + .plan-line-day { border-left: var(--ds-border-width) solid var(--ds-component-weekPlan-grid); }
.plan-line-head .plan-line-day { border: 0; color: var(--ds-component-adminOverview-card-muted); font-size: var(--ds-font-size-caption); text-align: center; }
.plan-line-head .plan-line-day.is-study { color: inherit; font-weight: var(--ds-font-weight-medium); }
/* Сегодня — вертикальная линия по центру дня, как в «Расписании потоков» админки */
.plan-line-day.is-now { background: linear-gradient(var(--ds-component-weekPlan-now), var(--ds-component-weekPlan-now)) center / 2px 100% no-repeat; }
.plan-line-head .plan-line-day.is-now { background: none; color: var(--ds-component-weekPlan-now); }
.plan-line-bar { position: relative; z-index: 1; grid-row: 1; display: flex; align-items: center; gap: var(--ds-space-2); min-width: 0; margin: var(--ds-space-1); padding: 0 var(--ds-space-2); border-left: 3px solid var(--line-accent); border-radius: var(--ds-radius-small); background: var(--line-bg); color: var(--line-text); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); white-space: nowrap; overflow: hidden; }
.plan-line.is-optional .plan-line-bar { border-left-style: dashed; }
.plan-line-time-short { display: none; }
.plan-line-bar[data-from="0"] { grid-column-start: 1; } .plan-line-bar[data-from="1"] { grid-column-start: 2; } .plan-line-bar[data-from="2"] { grid-column-start: 3; }
.plan-line-bar[data-from="3"] { grid-column-start: 4; } .plan-line-bar[data-from="4"] { grid-column-start: 5; } .plan-line-bar[data-from="5"] { grid-column-start: 6; } .plan-line-bar[data-from="6"] { grid-column-start: 7; }
.plan-line-bar[data-to="0"] { grid-column-end: 2; } .plan-line-bar[data-to="1"] { grid-column-end: 3; } .plan-line-bar[data-to="2"] { grid-column-end: 4; }
.plan-line-bar[data-to="3"] { grid-column-end: 5; } .plan-line-bar[data-to="4"] { grid-column-end: 6; } .plan-line-bar[data-to="5"] { grid-column-end: 7; } .plan-line-bar[data-to="6"] { grid-column-end: 8; }
.plan-line.is-lessons { --line-bg: var(--ds-component-weekPlan-lessons-background); --line-accent: var(--ds-component-weekPlan-lessons-accent); --line-text: var(--ds-component-weekPlan-lessons-text); }
.plan-line.is-reading { --line-bg: var(--ds-component-weekPlan-reading-background); --line-accent: var(--ds-component-weekPlan-reading-accent); --line-text: var(--ds-component-weekPlan-reading-text); }
.plan-line.is-practice { --line-bg: var(--ds-component-weekPlan-practice-background); --line-accent: var(--ds-component-weekPlan-practice-accent); --line-text: var(--ds-component-weekPlan-practice-text); }
.plan-line.is-tests { --line-bg: var(--ds-component-weekPlan-tests-background); --line-accent: var(--ds-component-weekPlan-tests-accent); --line-text: var(--ds-component-weekPlan-tests-text); }
/* Что не встало в план: обязательное — красным заголовком, необязательное — спокойным «Можно пропустить» */
.plan-left { display: grid; gap: var(--ds-space-2); }
.plan-left-title { margin: 0; font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
.plan-left.is-short .plan-left-title { color: var(--ds-component-weekPlan-short-text); }
.plan-left-list { display: grid; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.plan-left-item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-1) var(--ds-space-2); padding: var(--ds-space-2) var(--ds-space-3); border-radius: var(--ds-radius-item); background: var(--ds-component-weekPlan-track); }
.plan-left-item .plan-line-title { flex: 1 1 12rem; }
@media (max-width: 680px) {
  .plan-hero { flex-direction: column; align-items: stretch; gap: var(--ds-space-4); padding: var(--ds-space-6) var(--ds-space-5); }
  .plan-hero-copy { flex: 1 1 auto; align-self: stretch; }
  /* На телефоне текст модуля сам занимает всю высоту календаря — картинке места не остаётся, её не показываем */
  .plan-hero-art { display: none; }
  .plan-hero-text { padding-top: var(--ds-space-4); }
  .plan-hero-legacy .plan-hero-text { -webkit-line-clamp: 2; }
  .plan-materials-head .ds-chip-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--ds-space-1) * -1); padding-inline: var(--ds-space-1); }
  .plan-materials-head .ds-chip-filter::-webkit-scrollbar { display: none; }
  .plan-materials-head .ds-chip-filter-option { flex: none; }
  /* Материалов за неделю 15–30 — на телефоне по две карточки в ряд с низкой обложкой, а не длинная лента по одной */
  .overview-programs.plan-material-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-3); }
  .plan-material-cover { height: 5.5rem; place-items: start center; padding-top: var(--ds-space-2); }
  /* Карточки узкие: листок «Файлов и ссылок» поменьше, чтобы помещался по ширине, но по-прежнему виден верхней частью */
  .plan-material[data-filter-kind="files"] .plan-material-art { top: -38%; height: 190%; }
  .plan-material-cover .plan-kind-icon { width: var(--ds-space-10); height: var(--ds-space-10); }
  .plan-material-foot { flex-wrap: wrap; row-gap: var(--ds-space-1); }
  /* На телефоне название материала — над полосой, семь дней во всю ширину: весь план виден без прокрутки вбок */
  .plan-line { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-1); }
  .plan-lines { gap: var(--ds-space-3); }
  .plan-line-head .plan-line-name { display: none; }
  .plan-line-icon { width: var(--ds-space-6); height: var(--ds-space-6); }
  .plan-line-bar { padding: 0 var(--ds-space-1); }
  .plan-line-time { display: none; }
  .plan-line-time-short { display: inline; }
}
@media (max-width: 1180px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-side { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }
  /* Колонки друг под другом — закреплять нечего. Порядок на планшете и телефоне: модуль недели → карточка недель
     (календарь, «Неделя N из M», монетки) → материалы недели → план по дням → блокнот «Задания недели» */
  .plan-overview > .overview-main, .plan-overview > .overview-side { display: contents; }
  .plan-overview .plan-hero { order: 1; }
  .plan-overview .plan-weeks-card { order: 2; }
  .plan-overview .plan-materials { order: 3; }
  .plan-overview .plan-schedule { order: 4; }
  .plan-overview .notebook { order: 5; }
}
@media (max-width: 680px) {
  .overview-hero { flex-direction: column; align-items: stretch; min-height: 0; padding: var(--ds-space-6) var(--ds-space-5); border-radius: var(--ds-radius-mobile-card); }
  .overview-hero-art { order: -1; width: 7rem; margin: 0 0 calc(-1 * var(--ds-space-2)); }
  /* на телефоне ссылка — отдельной строкой, кнопки правки и удаления — вместе под ней */
  .overview-hero .overview-hero-link { flex-basis: 100%; justify-content: flex-start; margin-right: 0; }
  .overview-programs { grid-template-columns: minmax(0, 1fr); }
  .overview-program-add { min-height: 8rem; }
  .overview-row { grid-template-columns: 5rem minmax(26rem, 1fr); }
}

/* Таймкоды урока · LessonTimecodes (справа от видео в «Уроках»): строка — время в плашке, название части и стрелка воспроизведения
   при наведении. Часть, которая идёт сейчас, — зелёная, как открытый урок в оглавлении (lessonToc.current.*). Список прокручивается внутри карточки */
/* Таймкоды: вид скролла — ds-scroll, бегунок отодвинут к краю карточки */
.timecode-list { display: grid; align-content: start; gap: var(--ds-space-2); flex: 1; min-height: 0; margin: calc(-1 * var(--ds-space-1)) calc(-1 * var(--ds-space-4)) calc(-1 * var(--ds-space-1)) calc(-1 * var(--ds-space-1)); padding: var(--ds-space-1) var(--ds-space-4) var(--ds-space-1) var(--ds-space-1); list-style: none; overscroll-behavior: contain; }
.timecode { display: flex; align-items: center; gap: var(--ds-space-3); width: 100%; min-height: var(--ds-size-square-button); padding: var(--ds-space-2) var(--ds-space-3); border: var(--ds-border-item) solid var(--ds-component-lessonToc-border); border-radius: var(--ds-radius-item); background: var(--ds-component-card-background); color: var(--ds-color-ink); font-family: var(--ds-font-sans); font-size: var(--ds-font-size-secondary); line-height: var(--ds-font-line-tight); text-align: left; cursor: pointer; transition: background-color var(--ds-motion-fast), border-color var(--ds-motion-fast); }
.timecode:hover { background: var(--ds-component-lessonToc-hover); }
a.timecode { text-decoration: none; }
.timecode:focus-visible { outline: 2px solid var(--ds-color-focus-ring); outline-offset: 2px; }
.timecode-time { flex: none; min-width: 4.5em; padding: var(--ds-space-1) var(--ds-space-2); border-radius: var(--ds-radius-pill); background: var(--ds-component-lessonToc-marker); color: var(--ds-color-muted); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); font-variant-numeric: tabular-nums; text-align: center; }
.timecode-title { flex: 1; min-width: 0; font-weight: var(--ds-font-weight-medium); }
.timecode-play { display: grid; place-items: center; flex: none; color: var(--ds-color-muted); opacity: 0; transition: opacity var(--ds-motion-fast); }
.timecode-play .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.timecode:hover .timecode-play, .timecode:focus-visible .timecode-play, .timecode.is-current .timecode-play { opacity: 1; }
.timecode.is-current { border-color: var(--ds-component-lessonToc-current-border); background: var(--ds-component-lessonToc-current-background); }
.timecode.is-current .timecode-time { background: var(--ds-component-lessonToc-current-marker); color: var(--ds-component-lessonToc-current-markerForeground); }
.timecode.is-current .timecode-play { color: var(--ds-component-lessonToc-done-markerForeground); }
.timecode-empty { display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-4); border-radius: var(--ds-radius-item); background: var(--ds-component-lessonToc-week-lockedBackground); color: var(--ds-color-muted); font-size: var(--ds-font-size-secondary); }
.timecode-empty .icon { flex: none; width: var(--ds-space-5); height: var(--ds-space-5); }
@media (prefers-reduced-motion: reduce) { .timecode, .timecode-play { transition: none; } }

/* Мой профиль: слева «Обо мне» и «Мои успехи», справа иллюстрированные комнаты питомца. */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--ds-space-5); align-items: start; }
.profile-column { display: grid; gap: var(--ds-space-5); min-width: 0; }
.profile-person { display: flex; align-items: center; gap: var(--ds-space-4); margin-bottom: var(--ds-space-5); }
.profile-person-text { display: grid; justify-items: start; gap: var(--ds-space-2); min-width: 0; }
.profile-person-name { font-size: var(--ds-font-size-lead); font-weight: var(--ds-font-weight-medium); line-height: 1.2; overflow-wrap: anywhere; }
.profile-facts { display: grid; gap: 0; margin: 0 0 var(--ds-space-5); }
.profile-fact { display: grid; gap: var(--ds-space-1); padding-block: var(--ds-space-3); border-top: var(--ds-border-item) solid var(--ds-color-border-subtle); }
.profile-fact dt { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-caption); }
.profile-fact dd { display: grid; justify-items: start; gap: var(--ds-space-2); margin: 0; color: var(--ds-color-text-primary); overflow-wrap: anywhere; }
.profile-fact-note { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-secondary); }
.profile-edit { width: 100%; }
/* Плитки успехов: две в ряд, в узкой карточке — одна под другой */
.profile-stats-card { container-type: inline-size; }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-3); margin: 0; padding: 0; list-style: none; }
@container (max-width: 420px) { .profile-stats { grid-template-columns: minmax(0, 1fr); } }
.profile-stat { display: flex; align-items: center; gap: var(--ds-space-3); min-width: 0; padding: var(--ds-space-4); border-radius: var(--ds-radius-item); background: var(--ds-component-petRoom-statBackground); }
.profile-stat-icon, .profile-stat-mark { flex: none; width: var(--ds-size-coins-way-icon); height: var(--ds-size-coins-way-icon); }
.profile-stat-mark { display: grid; place-items: center; border-radius: var(--ds-radius-pill); background: var(--ds-color-background-surface); color: var(--ds-component-petRoom-stageCurrent); }
.profile-stat-mark .icon { width: var(--ds-space-5); height: var(--ds-space-5); }
.profile-stat-text { display: grid; min-width: 0; }
.profile-stat-value { font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
.profile-stat-label { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-caption); }

.pet-room { container-type: inline-size; scroll-margin-top: var(--ds-space-3); }
.pet-room-gallery { display: grid; gap: var(--ds-space-3); margin-bottom: var(--ds-space-5); }
.pet-room-gallery > .ds-segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.pet-room-gallery .ds-segment { padding-inline: var(--ds-space-2); }
.pet-room-gallery > .pet-room-panel { padding: 0; }
.pet-room-scene {
  --room-pet-x: 50%;
  --room-pet-floor: 10%;
  position: relative;
  overflow: hidden;
  border-radius: var(--ds-radius-tile);
  background: var(--ds-color-background-subtle);
}
/* Положение персонажа на полу в исходных иллюстрациях 1280 × 760. */
.pet-room-scene[data-room="bedroom"] { --room-pet-floor: 19%; }
.pet-room-scene[data-room="terrace"] { --room-pet-x: 52%; --room-pet-floor: 8%; }
.pet-room-art { display: block; width: 100%; height: auto; }
.pet-room-scene .ds-pet-companion { position: absolute; left: var(--room-pet-x); bottom: var(--room-pet-floor); transform: translateX(-50%); width: 15%; }
.pet-room-scene[data-stage="teen"] .ds-pet-companion { width: 17%; }
.pet-room-scene[data-stage="adult"] .ds-pet-companion { width: 19%; }
.pet-room-scene .pet-companion-character { width: 100%; }
.pet-room-scene .pet-companion-shadow { width: 72%; margin-top: -5%; }
@container (max-width: 300px) { .pet-room-gallery > .ds-segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pet-room-body { display: grid; gap: var(--ds-space-5); }
.pet-room-meter { display: grid; gap: var(--ds-space-2); }
.pet-room-meter-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ds-space-2); }
.pet-room-meter-count, .pet-room-note { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-secondary); }
.pet-room-meter .progress-track { height: var(--ds-space-2); }
.pet-room-stages-wrap { display: grid; gap: var(--ds-space-3); }
.pet-room-subtitle { font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
.pet-room-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-3); margin: 0; padding: 0; list-style: none; }
.pet-room-stage { display: grid; align-content: start; gap: var(--ds-space-1); padding: var(--ds-space-3); border: 2px solid var(--ds-component-petRoom-stageNext); border-radius: var(--ds-radius-item); }
.pet-room-stage[data-state="done"] { border-color: var(--ds-component-petRoom-stageDone); }
.pet-room-stage[data-state="current"] { border-color: var(--ds-component-petRoom-stageCurrent); }
.pet-room-stage[data-state="next"] .pet-room-stage-title { color: var(--ds-color-text-secondary); }
.pet-room-stage-text { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-caption); }
.pet-room-link { justify-self: start; }

@media (max-width: 960px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .profile-stats { grid-template-columns: minmax(0, 1fr); }
  .pet-room-stages { grid-template-columns: minmax(0, 1fr); }
}

/* Страница входа на тестовый адрес (vhod.html): карточка по центру экрана, лиса сверху, поле пароля и «Войти» на всю ширину */
.gate { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: var(--ds-space-6) var(--ds-space-4); box-sizing: border-box; background: var(--ds-color-background-canvas); }
.gate-card { display: grid; justify-items: center; gap: var(--ds-space-4); width: 100%; max-width: 420px; padding: var(--ds-space-10) var(--ds-space-8) var(--ds-space-8); box-sizing: border-box; text-align: center; }
.gate-pet { width: 96px; height: 96px; }
.gate-title { margin: 0; font-size: var(--ds-font-size-title); }
.gate-text { margin: 0; color: var(--ds-color-text-secondary); }
.gate-form { display: grid; gap: var(--ds-space-2); width: 100%; margin-top: var(--ds-space-2); text-align: left; }
.gate-submit { width: 100%; margin-top: var(--ds-space-4); }

/* «Успеваемость» — таблица куратора: ученики потока, практики недели флажками, итог «принято» */
.progress-card { display: grid; gap: var(--ds-space-4); }
.progress-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ds-space-4); }
.progress-controls { display: flex; flex-wrap: wrap; gap: var(--ds-space-3); }
.progress-controls .admin-field { flex: 1 1 14rem; }
.progress-list { display: grid; gap: var(--ds-space-3); }
/* Таблица плотная: все практики потока видны без прокрутки вбок (вбок листается только на узком экране — имя закреплено слева).
   Строки низкие — ученик в одну колонку (имя и фамилия, под ними ник), отступы ячеек space.1; флажок практики уменьшен до space.5 */
/* position: relative — скрытые подписи для диктора (ds-sr-only, position: absolute) остаются внутри обёртки и не расширяют страницу на телефоне */
.progress-table-wrap { position: relative; overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--ds-radius-item); }
.progress-table-wrap:focus-visible { outline: 2px solid var(--ds-color-focus-ring); outline-offset: 2px; }
.progress-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--ds-font-size-secondary); color: var(--ds-color-text-primary); }
.progress-table th, .progress-table td { padding: var(--ds-space-1); border-top: var(--ds-border-width) solid var(--ds-color-border-default); text-align: left; vertical-align: middle; }
.progress-table thead th, .progress-table thead td { border-top: 0; color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-medium); vertical-align: bottom; }
.progress-table tbody th { font-weight: var(--ds-font-weight-medium); white-space: nowrap; }
/* Имя закреплено слева: на телефоне таблица листается вбок, а видно, чья строка */
.progress-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--ds-color-background-surface); }
.progress-table tr.is-self > * { background: var(--ds-component-ratingTable-selfBackground); }
/* Подсветка всех ячеек, включая закреплённое имя ученика. */
.progress-table tbody tr:has(.curator-accept:focus-visible) > * { background: var(--ds-color-palette-sun-100); }
@media (hover: hover) {
  .progress-table tbody tr:hover > * { background: var(--ds-color-palette-sun-100); }
}
@media (hover: none) {
  .progress-table tbody tr:focus-within > * { background: var(--ds-color-palette-sun-100); }
}
.progress-name { display: block; }
.progress-sub { display: block; color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-caption); font-weight: var(--ds-font-weight-normal); }
.progress-telegram { color: var(--ds-color-tile-lessons-icon); }
/* Шапка: сверху «Неделя» и номера недель над их практиками, под ними номера практик; неделя отделена тонкой линией слева */
.progress-table .progress-head-label { text-align: right; }
.progress-table .progress-head-week { color: var(--ds-color-text-primary); text-align: center; }
.progress-table .progress-practice { color: var(--ds-color-text-primary); text-align: center; font-variant-numeric: tabular-nums; }
.progress-table .progress-practice, .progress-table .progress-cell, .progress-table .progress-head-week { padding-inline: calc(var(--ds-space-1) / 2); }
.progress-table .is-week-start { border-left: var(--ds-border-width) solid var(--ds-color-border-subtle); }
.progress-cell { text-align: center; }
.progress-total { white-space: nowrap; text-align: right; }
.progress-table th.progress-total { text-align: right; }
.progress-cell .ds-check-input { display: block; width: var(--ds-space-5); height: var(--ds-space-5); margin: 0 auto; }

/* Закрытый «Мой путь» · PathClosed (components/path-access.js): ученикам потоков до 8-го — белая карточка с замочком,
   пояснением и кнопкой «Написать в службу заботы» по центру */
.path-closed { display: grid; justify-items: center; padding-bottom: var(--ds-space-8); }
.path-closed .ds-empty-state { padding-bottom: var(--ds-space-5); }
.path-closed-actions { display: flex; justify-content: center; }

/* Практика: слева задание, материалы к практике и ответ, справа колонка «Что изучить для практики» (PracticePrep).
   На широком экране колонка закреплена при прокрутке; уже экрана — одна колонка, список сразу под заданием, перед ответом */
.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); grid-template-rows: auto 1fr; grid-template-areas: "task prep" "rest prep"; column-gap: var(--ds-space-8); align-items: start; }
.practice-layout > .material-article { grid-area: task; min-width: 0; }
.practice-layout > .practice-prep { grid-area: prep; position: sticky; top: var(--ds-space-6); margin-top: var(--ds-space-1); }
.practice-rest { grid-area: rest; display: grid; min-width: 0; }
.practice-prep { display: grid; gap: var(--ds-space-3); padding: var(--ds-space-5); border: var(--ds-border-item) solid var(--ds-color-border-subtle); border-radius: var(--ds-radius-tile); background: var(--ds-color-background-subtle); }
.lesson-card .practice-prep-title { margin: 0; font-size: var(--ds-font-size-body); font-weight: var(--ds-font-weight-medium); }
.practice-prep-note { margin: 0; color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-secondary); }
.practice-prep-list { display: grid; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.practice-prep-link { display: flex; align-items: flex-start; gap: var(--ds-space-3); padding: var(--ds-space-3); border-radius: var(--ds-radius-item); background: var(--ds-color-background-surface); color: inherit; text-decoration: none; transition: transform var(--ds-motion-fast); }
.practice-prep-link:hover { transform: translateY(calc(-1 * var(--ds-space-1) / 2)); }
.practice-prep-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: var(--ds-space-8); height: var(--ds-space-8); border-radius: var(--ds-radius-pill); background: var(--ds-color-background-subtle); color: var(--ds-color-text-secondary); }
.practice-prep-icon .icon { width: var(--ds-space-4); height: var(--ds-space-4); }
.practice-prep-item.is-done .practice-prep-icon { background: var(--ds-component-lessonToc-done-marker); color: var(--ds-component-lessonToc-done-markerForeground); }
.practice-prep-copy { display: grid; gap: var(--ds-space-1); min-width: 0; }
.practice-prep-kind { color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-tag); }
.practice-prep-name { font-size: var(--ds-font-size-secondary); line-height: 1.35; overflow-wrap: anywhere; }
.practice-prep-item.is-done .practice-prep-name { color: var(--ds-color-text-secondary); }
@media (max-width: 820px) {
  .practice-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "task" "prep" "rest"; }
  .practice-layout > .practice-prep { position: static; margin-top: var(--ds-space-5); }
}
.gate-help { font-size: var(--ds-font-size-secondary); }
.gate-link { color: var(--ds-color-text-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gate-link:hover { color: var(--ds-color-brand-primary); }
.gate-owner { width: 100%; margin: 0; padding-top: var(--ds-space-4); border-top: 1px solid var(--ds-color-line); color: var(--ds-color-text-secondary); font-size: var(--ds-font-size-caption); line-height: var(--ds-font-line-body); }
/* Плашка сохранения на сервер (boot.js): нет связи, вход истёк, админку изменили на другом устройстве */
.sync-notice { position: fixed; left: 50%; bottom: var(--ds-space-6); z-index: 130; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--ds-space-3); width: max-content; max-width: calc(100% - 2 * var(--ds-space-4)); padding: var(--ds-space-3) var(--ds-space-5); transform: translateX(-50%); box-sizing: border-box; border-radius: var(--ds-radius-pill); background: var(--ds-color-text-primary); color: var(--ds-color-surface); font-size: var(--ds-font-size-secondary); text-align: center; box-shadow: var(--ds-shadow-button-icon); }
.sync-notice-action { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: var(--ds-font-weight-medium); text-decoration: underline; cursor: pointer; }
