/* Study tools extend the same touch-first surfaces, including Telegram dark mode. */
.button { text-decoration: none; }
.study-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.study-tabs a, .chip-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink-soft); background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 750; }
.study-tabs a[aria-current] { background: var(--purple); color: white; border-color: transparent; }
.study-card { min-width: 0; padding: 26px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.study-card h2 { margin-bottom: 16px; }
.study-card p { line-height: 1.6; }
.study-card a:not(.button):not(.work-tile):not(.subject-tile) { color: var(--purple); }
.study-columns, .subject-grid, .work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.subject-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.subject-tile, .work-tile { display: block; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; }
.subject-tile:hover, .work-tile:hover { border-color: var(--purple); }
.subject-tile strong { display: block; margin: 12px 0 8px; }
.subject-dot { display: block; width: 14px; height: 14px; border-radius: 5px; }
.subject-tile small, .work-tile small, .muted { color: var(--ink-soft); line-height: 1.6; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; margin-bottom: 16px; }
.work-tile h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.work-tile p { margin: 0 0 14px; color: var(--ink-soft); font-size: 13px; }
.stage-chip { display: inline-block; padding: 6px 10px; border-radius: 10px; color: var(--purple); background: var(--surface); font-size: 12px; font-weight: 750; }
.stage-defended { color: #14876b; }
.is-finished { opacity: .7; }
.study-list { display: grid; gap: 10px; margin: 16px 0; }
.study-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.study-row > *, .check-row > *, .study-form > *, .study-form-grid > * { min-width: 0; }
.study-row small, .study-row strong, .check-row small { display: block; }
.study-form { display: grid; gap: 16px; min-width: 0; }
.study-form label { display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 700; min-width: 0; }
.study-form :is(input, select, textarea) { display: block; width: 100%; min-width: 0; min-inline-size: 0; max-width: 100%; box-sizing: border-box; padding: 12px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 16px; }
.study-form :is(input[type=date], input[type=time], input[type=datetime-local]) { -webkit-appearance: none; appearance: none; min-height: 46px; }
.study-form textarea { resize: vertical; }
.study-form :is(input, select, textarea):focus-visible, .stage-choice:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.study-form input[type=file] { font-size: 13px; }
.study-form .button { justify-self: start; }
.study-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inline-study-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.study-form p { margin-bottom: 0; }
.material-card { padding: 16px; background: var(--paper); border-radius: 14px; }
.material-card > a { display: block; margin-top: 8px; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.spaced-heading { margin-top: 24px; }
.stage-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.stage-choice { min-height: 76px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.stage-choice small { display: block; margin-bottom: 8px; }
.stage-choice.selected { background: var(--purple); color: white; }
.check-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.check-row .task-check { flex: 0 0 44px; width: 44px; height: 44px; }
.check-row [aria-pressed=true] { background: var(--purple); color: white; }
.strike { text-decoration: line-through; color: var(--ink-soft); }
.window-time { font-size: 30px; font-weight: 800; letter-spacing: -.04em; margin: 12px 0; }
.narrow-card { max-width: 780px; }
.study-empty { padding: 30px 0; color: var(--ink-soft); }
.study-empty h3 { color: var(--ink); }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; }
.destination-card { display: grid; justify-items: start; gap: 8px; padding: 22px 0; }
.destination-card strong { font-size: 28px; }
.route-steps { padding-left: 26px; }
.route-steps li { padding: 10px; line-height: 1.6; }
.campus-native-card { overflow: hidden; }
.campus-native { display: grid; gap: 16px; min-width: 0; }
.campus-native-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.campus-native-head h2 { margin-bottom: 4px; }
.campus-map-state { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.campus-map-state[data-kind=ready] { color: #18765e; }
.campus-map-state[data-kind=error] { color: #c34c30; }
.campus-route-picker { display: grid; grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr) auto; gap: 10px; align-items: end; }
.campus-route-picker label { display: grid; gap: 7px; min-width: 0; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.campus-route-picker input { width: 100%; min-width: 0; box-sizing: border-box; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink); font-size: 16px; }
.campus-route-picker input:focus { border-color: var(--orange, #ef7f1a); outline: 3px solid color-mix(in srgb, var(--orange, #ef7f1a) 18%, transparent); }
.campus-swap { width: 42px; height: 46px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink); font-size: 19px; cursor: pointer; }
.campus-floor-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 5px; scrollbar-width: none; }
.campus-floor-tabs::-webkit-scrollbar { display: none; }
.campus-floor-tabs button { flex: 0 0 42px; min-height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink-soft); font-weight: 800; cursor: pointer; }
.campus-floor-tabs button[aria-pressed=true] { border-color: transparent; background: var(--orange, #ef7f1a); color: white; box-shadow: 0 7px 18px rgba(239,127,26,.24); }
.campus-map-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.campus-map-controls .campus-floor-tabs { min-width: 0; }
.campus-zoom { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.campus-zoom button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); font-weight: 800; cursor: pointer; }
.campus-zoom button:first-child, .campus-zoom button:last-child { width: 40px; padding: 0; font-size: 20px; }
.campus-route-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.campus-route-steps[hidden] { display: none; }
.campus-route-steps button { width: 100%; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface-soft); text-align: left; cursor: pointer; }
.campus-route-steps b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--brand); }
.campus-route-steps span { line-height: 1.45; }
.campus-map-viewport { position: relative; width: 100%; height: auto; min-height: 0; aspect-ratio: 1; overflow: auto; border: 2px solid color-mix(in srgb,var(--ink) 24%,var(--line)); border-radius: 20px; background: #f7f4ef; touch-action: pan-y; overscroll-behavior: contain; }
.campus-map-canvas { position: relative; width: 100%; aspect-ratio: 1; cursor: crosshair; transform-origin: 0 0; background:#f7f4ef; }
.campus-map-canvas svg { display: block; width: 100%; height: 100%; }
.campus-map-canvas svg g[id^=routes-] { opacity: 0; pointer-events: none; }
.campus-map-canvas .bonch-route-path { fill: none; stroke: #f47b20; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 3px rgba(94,42,0,.32)); animation: campus-route-in .65s ease both; pointer-events: none; }
.campus-map-pin { position: absolute; z-index: 3; width: 32px; height: 32px; margin: -16px 0 0 -16px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; color: white; font-size: 12px; font-weight: 900; box-shadow: 0 5px 14px rgba(25,19,14,.3); pointer-events: none; }
.campus-map-pin[hidden] { display: none; }
.pin-from { background: #222b39; }
.pin-to { background: #f47b20; }
.bonch-map-marker { pointer-events:none; filter:drop-shadow(0 7px 9px rgba(20,25,38,.42)); }
.bonch-map-marker path { stroke:none; }
.bonch-map-marker text { fill:#fff; font-size:25px; font-weight:950; font-family:system-ui,sans-serif; }
.bonch-map-marker.marker-from path { fill:#2878df; }
.bonch-map-marker.marker-to path { fill:#e44747; }
.campus-map-help { margin: 0; padding: 12px 14px; border-radius: 13px; background: color-mix(in srgb, var(--orange, #ef7f1a) 10%, var(--paper)); color: var(--ink-soft); font-size: 13px; }
.campus-map-canvas{transition:transform .24s cubic-bezier(.2,.75,.25,1);transform-origin:center;will-change:transform}.campus-map-canvas:is(.is-gesturing,.is-camera-moving){transition:none}.bonch-room-label{transform-box:view-box;transform-origin:0 0}.campus-amenity-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.campus-amenity-legend span{padding:6px 9px;border-radius:9px;color:white;font-size:10px;font-weight:850}.campus-amenity-legend .is-buffet{background:#269b62}.campus-amenity-legend .is-dining{background:#d94949}.campus-amenity-legend small{color:var(--ink-soft)}.bonch-room-highlight{stroke:#fff!important;stroke-width:4px!important;filter:drop-shadow(0 4px 7px rgba(11,17,28,.32))}.bonch-room-highlight.is-buffet{fill:#35bd78!important}.bonch-room-highlight.is-dining{fill:#e65353!important}
.bonch-room-today:not(.bonch-room-highlight){fill:#f0a340!important;stroke:#fff!important;stroke-width:4px!important;filter:drop-shadow(0 3px 6px rgba(142,72,8,.34))}
.campus-place-filters{display:flex;gap:7px;width:100%;overflow-x:auto;padding:1px 0 5px;scrollbar-width:none}.campus-place-filters::-webkit-scrollbar{display:none}.campus-place-filters button{--place-color:var(--brand);flex:1 0 max-content;min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:var(--surface);font-size:11px;font-weight:850;cursor:pointer}.campus-place-filters button[data-map-category=food]{--place-color:#269b62}.campus-place-filters button[data-map-category=libraries]{--place-color:#8b5e3c}.campus-place-filters button[data-map-category=important]{--place-color:#d77d28}.campus-place-filters button[data-map-category=coworking]{--place-color:#7650b7}.campus-place-filters button[data-map-category=toilets]{--place-color:#287eb2}.campus-place-filters button svg{width:19px;height:19px;fill:none;stroke:var(--place-color);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.campus-place-filters button[aria-pressed=true]{color:#fff;border-color:transparent;background:var(--place-color);box-shadow:0 6px 16px color-mix(in srgb,var(--place-color) 24%,transparent)}.campus-place-filters button[aria-pressed=true] svg{stroke:#fff}.bonch-place-marker{pointer-events:none;filter:drop-shadow(0 7px 10px rgba(10,18,30,.44))}.bonch-place-marker circle{fill:#202a38;stroke:#fff;stroke-width:4;vector-effect:non-scaling-stroke}.bonch-place-marker>g{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.bonch-place-marker text{fill:#fff;font-family:system-ui,sans-serif;font-size:25px;font-weight:950}.bonch-place-marker.place-food circle{fill:#269b62}.bonch-place-marker.place-libraries circle{fill:#8b5e3c}.bonch-place-marker.place-important circle{fill:#d77d28}.bonch-place-marker.place-coworking circle{fill:#7650b7}.bonch-place-marker.place-toilets circle{fill:#287eb2}
.campus-place-list{padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft)}.campus-place-list[hidden]{display:none}.campus-place-list>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.campus-place-list h3{margin:2px 0 0}.campus-place-list>header button{width:36px;height:36px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--surface);font-size:22px}.campus-place-list>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.campus-place-list>div>button{min-width:0;display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:var(--surface);text-align:left}.campus-place-list>div>button>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;color:#fff;background:var(--brand);font-weight:900}.campus-place-list b,.campus-place-list small{display:block}.campus-place-list b{font-size:11px}.campus-place-list small{margin-top:3px;color:var(--ink-soft);font-size:9px}@media(max-width:520px){.campus-place-list>div{grid-template-columns:1fr}}
.campus-place-list[data-category=food]>div>button>span{background:#269b62}.campus-place-list[data-category=libraries]>div>button>span{background:#8b5e3c}.campus-place-list[data-category=important]>div>button>span{background:#d77d28}.campus-place-list[data-category=coworking]>div>button>span{background:#7650b7}.campus-place-list[data-category=toilets]>div>button>span{background:#287eb2}
.campus-place-filters button svg.restroom-filter-icon{width:25px}.bonch-place-marker.place-toilets>.bonch-restroom-icon circle{fill:#fff;stroke:none;stroke-width:0}.bonch-place-marker.place-toilets>.bonch-restroom-icon path{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.campus-place-list[data-category=toilets]>div>button>span svg{width:29px;height:29px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.campus-place-list[data-category=toilets]>div>button>span svg circle{fill:#fff;stroke:none;stroke-width:0}
.campus-native[data-active-point=from] [data-route-from], .campus-native[data-active-point=to] [data-route-to] { border-color: var(--orange, #ef7f1a); }
[data-tg-theme=dark] .campus-map-viewport, [data-theme=dark] .campus-map-viewport { background: #18202b; }
[data-tg-theme=dark] .campus-map-canvas, [data-theme=dark] .campus-map-canvas { background:#18202b; }
[data-tg-theme=dark] .campus-map-canvas svg, [data-theme=dark] .campus-map-canvas svg { filter: invert(.86) hue-rotate(165deg) saturate(.72) brightness(.92) contrast(1.28); }
[data-tg-theme=dark] .campus-map-canvas .bonch-route-path, [data-theme=dark] .campus-map-canvas .bonch-route-path { filter: invert(1) hue-rotate(180deg) drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
[data-tg-theme=dark] .campus-map-canvas :is(.bonch-room-highlight,.bonch-room-today,.bonch-place-marker),[data-theme=dark] .campus-map-canvas :is(.bonch-room-highlight,.bonch-room-today,.bonch-place-marker){filter:invert(1) hue-rotate(180deg) saturate(1.2) drop-shadow(0 5px 8px rgba(0,0,0,.35))}
@keyframes campus-route-in { from { stroke-dasharray: 12 18; opacity: .15; } to { stroke-dasharray: 1 0; opacity: 1; } }
.lesson-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lesson-links a { color: var(--purple); padding: 8px 10px; min-height: 40px; border-radius: 10px; text-decoration: none; background: var(--surface); font-size: 12px; font-weight: 750; }
.homework-target-field { margin: 4px 0 10px; }
.homework-target-field select { width: 100%; min-width: 0; font-size: 16px; }
.homework-target-field small, .homework-target-summary { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.community-settings { margin: 0 28px 28px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fffdf8; }
.community-settings h2 { margin-bottom: 10px; }
.community-settings form { padding: 0; }
.profile-options, .welcome-choice { display: grid; gap: 10px; margin: 16px 0; }
.profile-options label, .welcome-choice label { display: block; margin: 0; cursor: pointer; }
.profile-options input[type="radio"], .welcome-choice input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.profile-options span, .welcome-choice label span { display: grid; gap: 5px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); }
.profile-options small, .welcome-choice small { color: var(--ink-soft); font-weight: 500; line-height: 1.45; }
.profile-options input[type="radio"]:checked + span, .welcome-choice input[type="radio"]:checked + span { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,92,231,.12); background: #f0edff; }
.profile-options input[type="radio"]:focus-visible + span, .welcome-choice input[type="radio"]:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }
.welcome-shell { min-height: calc(100dvh - 190px); display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,480px); align-items: center; gap: clamp(36px,8vw,120px); max-width: 1080px; margin: 0 auto; }
.welcome-copy .brand-mark { margin-bottom: 30px; }
.welcome-copy h1 { font-size: clamp(42px,7vw,76px); max-width: 700px; }
.welcome-copy > p:last-child { max-width: 620px; color: var(--ink-soft); line-height: 1.7; font-size: 17px; }
.welcome-choice { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.welcome-choice .button { margin-top: 8px; justify-content: center; }
.target-lesson-card { border-left: 4px solid var(--purple); }
.file-preview-head { align-items: center; }
.file-preview-head h1 { max-width: 900px; overflow-wrap: anywhere; }
.file-preview-card { min-height: min(72vh, 760px); display: grid; place-items: center; overflow: hidden; }
.inapp-file-image { display: block; max-width: 100%; max-height: 76vh; margin: auto; border-radius: 16px; object-fit: contain; }
.inapp-file-frame { display: block; width: 100%; height: min(76vh, 920px); min-height: 560px; border: 0; border-radius: 16px; background: #fff; }
.pdf-preview-card { display: block; min-height: 70vh; padding: clamp(10px, 2vw, 18px); overflow: visible; background: color-mix(in srgb, var(--surface) 88%, var(--paper)); }
.pdf-viewer { width: 100%; min-width: 0; }
.pdf-toolbar { position: sticky; top: 72px; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 16px); margin: 0 auto 14px; padding: 9px 14px; color: var(--ink); background: color-mix(in srgb, var(--surface-solid) 94%, transparent); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 28px rgba(70,35,10,.12); backdrop-filter: blur(14px); }
.pdf-toolbar strong, .pdf-toolbar span { font-size: 13px; white-space: nowrap; }
.pdf-toolbar span { color: var(--brand-strong); }
.pdf-pages { display: grid; gap: clamp(14px, 3vw, 24px); width: 100%; }
.pdf-page { position: relative; display: grid; justify-items: center; width: 100%; min-height: min(72vh, 760px); padding: clamp(8px, 2vw, 14px); background: #d8d5d1; border: 1px solid rgba(70,48,31,.15); border-radius: 15px; box-shadow: 0 14px 38px rgba(44,28,16,.13); box-sizing: border-box; }
.pdf-page-label { margin: 0 0 8px; color: #504940; font-size: 12px; font-weight: 800; }
.pdf-page canvas { display: block; max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.pdf-page.is-loading::after { content: 'Загружаем страницу…'; align-self: center; color: #625b54; font-size: 13px; }
.pdf-error { padding: 24px; text-align: center; }
.inapp-file-text { width: 100%; max-height: 76vh; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.file-generic { max-width: 520px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.file-generic > span { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: linear-gradient(145deg, var(--brand-strong), var(--brand)); font-size: 12px; font-weight: 900; }
.faq-shell { width: min(880px, 100%); margin: 0 auto; }
.faq-head { margin-bottom: 24px; text-align: center; }
.faq-head .brand-mark { margin: 0 auto 18px; }
.faq-head h1 { margin: 5px 0 8px; font-size: clamp(36px, 7vw, 64px); }
.faq-head > p:last-child { color: var(--ink-soft); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 30px rgba(104,55,18,.05); }
.faq-list summary { padding: 17px 19px; color: var(--ink); font-weight: 820; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--brand); font-size: 20px; line-height: 1; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div { padding: 0 19px 18px; color: var(--ink-soft); line-height: 1.65; }
.faq-list details p { margin: 0; }
.faq-list a { color: var(--brand-strong); }
.faq-back { width: max-content; margin: 22px auto 0; }
.registration-legal { display: grid; gap: 10px; }
.legal-validation { margin: 0; padding: 11px 13px; color: #fff; background: linear-gradient(135deg, #b9362c, var(--danger)); border-radius: 12px; font-size: 14px; font-weight: 750; line-height: 1.4; }
.legal-validation[hidden] { display: none; }
.legal-shell { width: min(880px, 100%); margin: 0 auto; }
.legal-back { margin:0 0 14px; padding:10px 14px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:var(--surface); font:inherit; font-weight:800; cursor:pointer; }
.legal-nav { position: sticky; top: 10px; z-index: 2; display: flex; justify-content: center; gap: 8px; margin: 0 auto 20px; padding: 7px; width: max-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); }
.legal-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 750; text-decoration: none; }
.legal-nav a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.legal-shell section { margin: 12px 0; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 30px rgba(104,55,18,.05); }
.legal-shell section h2 { margin: 0 0 10px; font-size: 21px; }
.legal-shell section p { color: var(--ink-soft); line-height: 1.68; }
.legal-shell section p:last-child { margin-bottom: 0; }
.legal-shell section li { margin: 7px 0; color: var(--ink-soft); line-height: 1.55; }
.account-privacy-settings a { color: var(--brand-strong); }
[data-tg-theme=dark] :is(.community-settings, .welcome-choice) { background: var(--surface); }
[data-tg-theme=dark] :is(.profile-options span, .welcome-choice label span) { background: #222e40; }
[data-tg-theme=dark] :is(.profile-options input[type="radio"]:checked + span, .welcome-choice input[type="radio"]:checked + span) { background: #2c2846; }
.window-card { margin-top: 16px; }
.study-card :is(h1,h2,h3,a,span,strong,small,button), .day-header h1 { overflow-wrap: anywhere; }
[data-tg-theme=dark] .study-tabs a[aria-current], [data-tg-theme=dark] .stage-choice.selected { background: #6957df; }
@media (max-width: 680px) {
  .study-tabs { gap: 6px; margin-bottom: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .study-tabs a { padding: 10px 12px; justify-content: center; text-align: center; font-size: 12px; }
  .study-card { padding: 20px 16px; border-radius: 20px; }
  .study-columns, .work-grid, .subject-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .study-form-grid { grid-template-columns: minmax(0,1fr); }
  .stage-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stage-choice:last-child { grid-column: 1 / -1; }
  .stage-choice { min-height: 60px; }
  .study-row { font-size: 13px; }
  .study-card .button { max-width: 100%; white-space: normal; }
  .inline-study-form { grid-template-columns: minmax(0,1fr); }
  .study-tabs + .day-header { align-items: stretch; }
  .community-settings { margin: 0 12px 12px; padding: 14px; }
  .welcome-shell { min-height: auto; grid-template-columns: minmax(0,1fr); gap: 24px; }
  .welcome-copy h1 { font-size: 42px; }
  .welcome-copy > p:last-child { font-size: 15px; }
  .welcome-choice { padding: 16px; }
  .campus-route-picker { grid-template-columns: minmax(0,1fr) 42px; }
  .campus-route-picker label:nth-of-type(2) { grid-column: 1 / -1; }
  .campus-route-picker [data-route-build] { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .campus-map-viewport { min-height: 0; height: auto; aspect-ratio: 1; border-radius: 16px; }
  .campus-map-controls { align-items: stretch; flex-direction: column; }
  .campus-zoom { justify-content: flex-end; }
  .file-preview-card { min-height: 62vh; padding: 12px; }
  .inapp-file-frame { min-height: 68vh; height: 68vh; border-radius: 12px; }
  .pdf-preview-card { padding: 8px; }
  .pdf-toolbar { top: 10px; }
  .pdf-page { min-height: 58vh; padding: 7px; border-radius: 12px; }
}
.developer-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.developer-stats article { padding:18px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.developer-stats span { display:block; color:var(--ink-soft); font-size:12px; }
.developer-stats strong { display:block; margin-top:8px; font-size:30px; }
.developer-analytics { margin-bottom:14px; overflow:hidden; }
.developer-analytics-head h2 { margin:3px 0 5px; }
.analytics-filters { display:flex; justify-content:space-between; gap:12px; margin:18px 0 10px; flex-wrap:wrap; }
.analytics-filters>div { display:flex; gap:4px; padding:4px; border-radius:14px; background:var(--surface-soft); }
.analytics-filters button { border:0; padding:9px 13px; border-radius:10px; color:var(--ink-soft); background:transparent; font:inherit; font-weight:800; cursor:pointer; }
.analytics-filters button.is-active { color:#fff; background:var(--brand-strong); box-shadow:0 6px 16px color-mix(in srgb,var(--brand) 28%,transparent); }
.analytics-legend { display:flex; gap:18px; margin:10px 3px; color:var(--ink-soft); font-size:12px; font-weight:800; }
.analytics-legend span::before { content:""; display:inline-block; width:9px; height:9px; margin-right:7px; border-radius:50%; background:#f07b25; }
.analytics-legend .activity::before { background:#7b65d8; }
.analytics-canvas-wrap { position:relative; width:100%; min-height:260px; }
.analytics-canvas-wrap canvas { display:block; width:100%; height:260px; }
.analytics-canvas-wrap p { position:absolute; inset:0; place-items:center; color:var(--ink-soft); }
.analytics-canvas-wrap p:not([hidden]) { display:grid; }
.analytics-radio { position:absolute; opacity:0; pointer-events:none; }
.analytics-css-controls { display:flex; justify-content:space-between; gap:12px; margin:18px 0 12px; flex-wrap:wrap; }
.analytics-css-controls>div { display:flex; gap:4px; padding:4px; border-radius:14px; background:var(--surface-soft); }
.analytics-css-controls label { padding:9px 13px; border-radius:10px; color:var(--ink-soft); font-size:13px; font-weight:800; cursor:pointer; }
#chart-period-day:checked~.analytics-css-controls label[for=chart-period-day],#chart-period-week:checked~.analytics-css-controls label[for=chart-period-week],#chart-period-month:checked~.analytics-css-controls label[for=chart-period-month],#chart-metric-registrations:checked~.analytics-css-controls label[for=chart-metric-registrations],#chart-metric-activity:checked~.analytics-css-controls label[for=chart-metric-activity],#chart-metric-both:checked~.analytics-css-controls label[for=chart-metric-both]{color:#fff;background:var(--brand-strong)}
.analytics-css-chart { display:none; align-items:stretch; gap:5px; height:260px; padding:15px 4px 0; border-bottom:1px solid var(--line); }
#chart-period-day:checked~.analytics-css-charts .chart-day,#chart-period-week:checked~.analytics-css-charts .chart-week,#chart-period-month:checked~.analytics-css-charts .chart-month{display:flex}
.analytics-bucket { flex:1; min-width:0; display:grid; grid-template-rows:1fr 25px; gap:6px; text-align:center; }
.analytics-bars { display:flex; align-items:flex-end; justify-content:center; gap:2px; min-height:190px; border-bottom:1px solid var(--line); background:repeating-linear-gradient(to top,transparent 0,transparent 24%,color-mix(in srgb,var(--line) 65%,transparent) 25%); }
.analytics-bars i { position:relative; width:min(13px,42%); min-height:3px; border-radius:6px 6px 1px 1px; background:#f07b25; transition:height .25s ease; }
.analytics-bars .bar-activity { background:#7b65d8; }
.analytics-bars b { position:absolute; left:50%; bottom:100%; transform:translate(-50%,-3px); color:var(--ink-soft); font-size:9px; font-style:normal; }
.analytics-bucket small { overflow:hidden; color:var(--ink-soft); font-size:9px; white-space:nowrap; }
#chart-metric-registrations:checked~.analytics-css-charts .bar-activity,#chart-metric-activity:checked~.analytics-css-charts .bar-registration{display:none}
.developer-groups { display:flex; gap:10px; flex-wrap:wrap; }
.developer-groups span { display:flex; gap:12px; padding:10px 14px; border-radius:14px; background:var(--surface-soft); }
.developer-users { display:grid; gap:8px; }
.developer-users article { display:grid; grid-template-columns:minmax(180px,1.5fr) 1fr .7fr 1fr; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
.developer-users small { display:block; color:var(--ink-soft); }
.broadcast-preview { margin:12px 0; padding:16px; border-radius:18px; color:#fff; background:#182636; }
.broadcast-preview span { font-weight:800; color:#ff9a3d; }
.broadcast-preview [data-preview-text] { margin-top:12px; white-space:pre-wrap; line-height:1.55; }
.broadcast-preview blockquote { margin:8px 0; padding:8px 11px; border-left:3px solid #ff9a3d; background:#ffffff0d; border-radius:4px 10px 10px 4px; }
.tg-spoiler { padding:1px 4px; color:transparent; background:#73808d; border-radius:4px; }
.tg-spoiler:hover { color:#fff; }
.broadcast-editor-help { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 8px; }
.broadcast-editor-help button { padding:8px 11px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--surface); cursor:pointer; }
.broadcast-preview img,.broadcast-history-image { display:block; width:100%; max-height:320px; object-fit:cover; border-radius:14px; margin-top:10px; }
.maintenance-screen { min-height:65vh; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:12px; }
.maintenance-gear { width:92px; height:92px; display:grid; place-items:center; border-radius:30px; background:color-mix(in srgb,var(--brand) 18%,var(--surface)); color:var(--brand-strong); font-size:48px; animation:maintenance-turn 8s linear infinite; }
.maintenance-screen h1 { margin:0; font-size:clamp(38px,8vw,82px); }
.maintenance-screen strong { padding:10px 16px; border-radius:99px; background:var(--surface); border:1px solid var(--line); }
@keyframes maintenance-turn { to { transform:rotate(360deg); } }
@media(max-width:700px){.developer-stats{grid-template-columns:1fr 1fr}.developer-users article{grid-template-columns:1fr}.developer-users article>span,.developer-users time{font-size:12px}.analytics-filters{display:grid}.analytics-filters>div{display:grid;grid-template-columns:repeat(3,1fr)}.analytics-filters button{padding:9px 6px;font-size:12px}.analytics-canvas-wrap,.analytics-canvas-wrap canvas{min-height:230px;height:230px}}
.teacher-line a { color:inherit; font-weight:800; text-decoration:underline; text-decoration-color:color-mix(in srgb,var(--brand) 55%,transparent); }
.teacher-rating { display:inline-flex; margin-left:7px; padding:4px 7px; border-radius:999px; color:#7c4800; background:#ffe2a8; font-size:10px; font-weight:900; }
.teacher-rating.is-empty,.teacher-no-reviews { color:var(--ink-soft); background:var(--surface-soft); border:1px solid var(--line); }
.teacher-hero { display:grid; grid-template-columns:150px minmax(0,1fr); gap:26px; align-items:center; }
.teacher-hero>img,.teacher-avatar { width:150px; height:180px; object-fit:cover; border-radius:24px; background:var(--brand-soft); }
.teacher-avatar { display:grid; place-items:center; color:var(--brand-strong); font-size:64px; font-weight:900; }
.teacher-hero h1 { margin:4px 0 8px; font-size:clamp(30px,5vw,58px); }
.teacher-title { color:var(--ink-soft); font-size:17px; }
.teacher-score { display:flex; align-items:baseline; gap:9px; margin-top:15px; }.teacher-score strong{font-size:34px;color:var(--brand-strong)}
.teacher-no-reviews { display:inline-flex; margin-top:14px; padding:8px 12px; border-radius:999px; font-weight:800; }
.menu-profile { display:flex; align-items:center; gap:18px; padding:24px; margin-bottom:14px; border:1px solid var(--line); border-radius:24px; background:var(--surface); }
.menu-profile h1 { margin:3px 0; font-size:clamp(25px,5vw,42px); }
.menu-profile p { margin:0; color:var(--ink-soft); }
.profile-statistics-button{margin-left:auto;min-width:190px;display:grid;grid-template-columns:42px minmax(0,1fr) 14px;gap:10px;align-items:center;padding:11px 13px;border:1px solid color-mix(in srgb,var(--brand) 38%,var(--line));border-radius:17px;color:var(--ink);background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 15%,var(--surface)),var(--surface));text-decoration:none}.profile-statistics-button>svg{width:24px;height:24px;padding:8px;border-radius:12px;color:#fff;background:linear-gradient(145deg,var(--brand),#ffac49);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;box-sizing:content-box}.profile-statistics-button b,.profile-statistics-button small{display:block}.profile-statistics-button small{margin-top:2px;color:var(--ink-soft);font-size:10px}.profile-statistics-button>i{color:var(--brand);font-size:22px;font-style:normal}
.attendance-streak{display:inline-flex;margin-top:10px;padding:6px 10px;border-radius:10px;color:#d56b19;background:color-mix(in srgb,#f28c28 13%,var(--surface));font-size:11px}
.menu-avatar { flex:0 0 62px; width:62px; height:62px; display:grid; place-items:center; border-radius:20px; color:#fff; background:linear-gradient(145deg,var(--brand),var(--brand-strong)); font-size:27px; font-weight:900; }
.menu-lk-card { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:14px; }.menu-lk-card h2{margin:3px 0}.menu-lk-card .lk-connect{width:100%}
.lk-progress { display:grid; gap:10px; }.lk-progress>div{display:grid;grid-template-columns:14px minmax(0,1fr) 28px;gap:13px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.lk-progress>div>span{width:10px;height:10px;border-radius:50%;background:var(--line)}.lk-progress>div small{display:block;margin-top:3px;color:var(--ink-soft)}.lk-progress>div>i{width:22px;height:22px;border:2px solid var(--line);border-radius:50%}.lk-progress>div[data-state=loading]>i{border-color:var(--brand-soft);border-top-color:var(--brand-strong);animation:maintenance-turn .7s linear infinite}.lk-progress>div[data-state=done]>i{display:grid;place-items:center;border:0;color:#fff;background:#24a36b}.lk-progress>div[data-state=done]>i:after{content:'✓';font-style:normal;font-weight:900}.lk-progress>div[data-state=done]>span{background:#24a36b}.lk-progress>div[data-state=error]>i{display:grid;place-items:center;border:0;color:#fff;background:var(--danger)}.lk-progress>div[data-state=error]>i:after{content:'!';font-style:normal;font-weight:900}.lk-progress-error{padding:13px;border-radius:13px;color:#8f201c;background:#ffe7e3}
.menu-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.menu-grid>a { display:grid; grid-template-columns:48px minmax(0,1fr) 18px; gap:13px; align-items:center; padding:18px; border:1px solid var(--line); border-radius:19px; color:var(--ink); background:var(--surface); text-decoration:none; }
.menu-grid>a>span { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; color:var(--brand-strong); background:var(--brand-soft); font-size:23px; }
.menu-grid>a>span svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.menu-grid b,.menu-grid small { display:block; }.menu-grid small{margin-top:4px;color:var(--ink-soft)}.menu-grid i{font-size:26px;font-style:normal;color:var(--ink-soft)}
.menu-grid .is-locked { opacity:.55; pointer-events:none; }
.menu-grid .menu-wide{grid-column:1/-1}.menu-grid [data-menu-kind=settings]{order:98}.menu-grid [data-menu-kind=documents]{order:99}
.menu-grid .menu-update{order:-1}
.menu-grid [data-menu-kind=settings]>span{color:#7d8490;background:color-mix(in srgb,#7d8490 14%,var(--surface))}.menu-grid [data-menu-kind=diary]>span{color:#2d9a68;background:color-mix(in srgb,#2d9a68 14%,var(--surface))}.menu-grid [data-menu-kind=messages]>span{color:#3489d8;background:color-mix(in srgb,#3489d8 14%,var(--surface))}.menu-grid [data-menu-kind=rhythm]>span{color:#9a68d5;background:color-mix(in srgb,#9a68d5 14%,var(--surface))}
.menu-notification-form .notification-group { display:grid; gap:10px; padding:14px; border-radius:18px; background:var(--surface-soft); }
.notification-option-card { padding:12px 14px; border:1px solid var(--line); border-radius:15px; background:var(--surface); }
.notification-option-card .notification-toggle { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:2px 0; }
.notification-time-field { display:grid; grid-template-columns:minmax(0,1fr) minmax(128px,160px); gap:12px; align-items:center; margin-top:10px; padding-top:10px; border-top:1px solid var(--line); }
.notification-time-field input { width:100%; min-width:0; }
.notification-group input[type="time"]{color:var(--ink)!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:13px!important;padding:11px 13px!important;color-scheme:light dark;box-shadow:none!important}.notification-group select{color:var(--ink)!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:13px!important}.notification-group input[type="time"]::-webkit-calendar-picker-indicator{opacity:.72;filter:none}
.lk-chat-list,.lk-chat-thread{display:grid;gap:10px}.lk-chat-list>a{display:grid;grid-template-columns:48px minmax(0,1fr) 18px;gap:13px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;color:var(--ink);background:var(--surface);text-decoration:none}.lk-chat-list a div{min-width:0}.lk-chat-list b,.lk-chat-list p,.lk-chat-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lk-chat-list p{margin:5px 0;color:var(--ink-soft)}.lk-chat-list small{color:var(--ink-soft)}.lk-chat-list i{font-size:25px;font-style:normal;color:var(--ink-soft)}.lk-chat-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;color:#fff;background:linear-gradient(145deg,var(--brand),var(--brand-strong));font-weight:900}.lk-chat-thread article{max-width:86%;padding:13px 15px;border:1px solid var(--line);border-radius:18px 18px 18px 5px;background:var(--surface)}.lk-chat-thread article:nth-child(even){justify-self:end;border-radius:18px 18px 5px 18px;background:var(--brand-soft)}.lk-chat-thread p{margin:7px 0;line-height:1.5;white-space:pre-wrap}.lk-chat-thread small{color:var(--ink-soft)}.lk-chat-compose{position:sticky;bottom:78px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:14px;padding:10px}.lk-chat-compose textarea{min-width:0;resize:none}@media(max-width:600px){.lk-chat-compose{grid-template-columns:1fr}.notification-time-field{grid-template-columns:1fr}.notification-group input[type="time"]{width:100%;box-sizing:border-box}}
.notification-option-card>small { display:block; margin-top:7px; color:var(--ink-soft); }
@media(max-width:700px){.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.menu-profile{padding:18px}.menu-grid>a{grid-template-columns:40px minmax(0,1fr);gap:9px;padding:12px;min-height:92px}.menu-grid>a>span{width:40px;height:40px;border-radius:13px}.menu-grid>a>i{display:none}.menu-grid small{font-size:9px;line-height:1.35}.menu-grid b{font-size:12px}.menu-grid .menu-wide{grid-template-columns:40px minmax(0,1fr) 18px;min-height:68px}.menu-grid .menu-wide>i{display:block}}
.statistics-hero{position:relative;min-height:260px;display:grid;grid-template-columns:minmax(0,1fr) 190px;align-items:end;gap:24px;margin-bottom:14px;padding:30px;overflow:hidden;border:1px solid #ff9948;border-radius:28px;color:#fff;background:radial-gradient(circle at 84% 13%,rgba(255,151,52,.38),transparent 29%),linear-gradient(135deg,#17110d 0%,#311708 58%,#8c350b 135%);box-shadow:0 24px 60px rgba(94,39,8,.22)}.statistics-hero:after{content:"";position:absolute;width:230px;height:230px;right:-80px;top:-110px;border:35px solid rgba(255,151,52,.13);border-radius:50%}.statistics-hero a{color:#ffb876}.statistics-hero>div>span{display:block;margin-top:25px;color:#ffb876;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.13em}.statistics-hero h1{margin:7px 0 10px;font-size:clamp(42px,8vw,76px);line-height:.88;letter-spacing:-.055em}.statistics-hero p{margin:0;color:#e8d4c7}.statistics-score{position:relative;z-index:1;align-self:center;padding:22px;border:1px solid rgba(255,255,255,.2);border-radius:24px;background:rgba(10,8,7,.35);backdrop-filter:blur(12px)}.statistics-score small,.statistics-score strong{display:block}.statistics-score small{color:#e8d4c7}.statistics-score strong{margin:5px 0 13px;font-size:48px}.statistics-score>i{display:block;height:7px;border-radius:10px;background:rgba(255,255,255,.15);overflow:hidden}.statistics-score>i:after{content:"";display:block;width:var(--score);height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff7a1a,#ffc06b)}.stat-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.stat-kpi{position:relative;min-height:142px;padding:18px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--surface)}.stat-kpi:after{content:"";position:absolute;width:82px;height:82px;right:-30px;bottom:-35px;border-radius:50%;background:var(--kpi-color,#ef7f2d);opacity:.16}.stat-kpi span,.stat-kpi small{display:block;color:var(--ink-soft)}.stat-kpi span{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.stat-kpi b{display:block;margin:9px 0 4px;color:var(--kpi-color,#ef7f2d);font-size:39px;line-height:1}.stat-kpi small{font-size:10px}.stat-kpi.is-blue{--kpi-color:#3789d8}.stat-kpi.is-fire{--kpi-color:#e85835}.stat-kpi.is-green{--kpi-color:#28a16d}.stat-activity{margin-bottom:14px;padding:20px}.stat-activity>header,.stat-subjects>header,.stat-tasks>header,.stat-history>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:17px}.stat-activity h2,.stat-subjects h2,.stat-tasks h2,.stat-history h2{margin:2px 0 0}.stat-activity>header>span,.stat-crown{padding:7px 9px;border-radius:10px;color:var(--brand-strong);background:var(--brand-soft);font-size:10px;font-weight:850}.stat-bars{height:150px;display:flex;align-items:stretch;gap:3px}.stat-bars>i{min-width:0;flex:1;display:grid;grid-template-rows:1fr 15px;align-items:end;gap:5px;font-style:normal}.stat-bars>i>span{height:100%;display:flex;flex-direction:column-reverse;justify-content:flex-start;overflow:hidden;border-radius:5px;background:color-mix(in srgb,var(--line) 55%,transparent)}.stat-bars b,.stat-bars em{display:block;min-height:0}.stat-bars b{background:#6d5ce7}.stat-bars em{background:linear-gradient(#ffad55,#ef7617)}.stat-bars small{overflow:visible;color:var(--ink-soft);font-size:7px;text-align:center}.stat-legend{display:flex;justify-content:flex-end;gap:14px;margin-top:9px;color:var(--ink-soft);font-size:10px}.stat-legend span{display:flex;align-items:center;gap:5px}.stat-legend i{width:8px;height:8px;border-radius:3px;background:#ef7617}.stat-legend i.task{background:#6d5ce7}.statistics-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.stat-subjects,.stat-tasks,.stat-history{padding:20px}.stat-subjects article,.stat-tasks article{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}.stat-subjects article>i{width:8px;height:38px;border-radius:7px;background:var(--subject-color)}.stat-subjects article b,.stat-subjects article small,.stat-tasks article b,.stat-tasks article small{display:block}.stat-subjects article small,.stat-tasks article small{margin-top:3px;color:var(--ink-soft);font-size:10px}.stat-subjects article strong,.stat-tasks article strong{font-size:13px}.stat-tasks article>span{width:8px;height:38px;border-radius:7px;background:var(--task-color)}.stat-empty{padding:24px 5px;color:var(--ink-soft);text-align:center}.stat-history>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat-history article{display:grid;grid-template-columns:42px 6px minmax(0,1fr) 20px;gap:9px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.stat-history time{font-size:11px;font-weight:850}.stat-history article>i{width:6px;height:38px;border-radius:7px;background:var(--subject-color)}.stat-history article b,.stat-history article small{display:block}.stat-history article small{margin-top:3px;color:var(--ink-soft);font-size:9px}.stat-history article>strong{color:#25a56c}
@media(max-width:700px){.menu-profile{display:grid;grid-template-columns:52px minmax(0,1fr)}.profile-statistics-button{grid-column:1/-1;width:100%;margin:4px 0 0;box-sizing:border-box}.statistics-hero{min-height:300px;grid-template-columns:1fr;padding:22px}.statistics-score{width:100%;box-sizing:border-box}.stat-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-kpi{min-height:124px;padding:15px}.statistics-columns{grid-template-columns:1fr}.stat-history>div{grid-template-columns:1fr}.stat-bars{height:125px;gap:2px}}
.lk-chat-files{display:grid;gap:8px;margin:10px 0}.lk-chat-files>a{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;padding:10px;border:1px solid color-mix(in srgb,var(--brand) 35%,var(--line));border-radius:13px;background:var(--surface-soft);color:var(--ink);text-decoration:none}.lk-chat-files>a>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--brand);color:#fff;font-weight:900}.lk-chat-files div{display:grid;min-width:0}.lk-chat-files small{font-size:11px}.lk-chat-files strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.docx-preview{width:100%;display:grid;gap:12px}.docx-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}.docx-page{box-sizing:border-box;width:min(100%,820px);min-height:70vh;margin:auto;padding:clamp(20px,6vw,68px);border:1px solid var(--line);border-radius:10px;background:#fff;color:#171717;box-shadow:0 12px 35px rgba(0,0,0,.12)}.docx-page p{margin:0 0 12px;line-height:1.55;white-space:pre-wrap}.docx-table-wrap{max-width:100%;margin:16px 0;overflow:auto}.docx-page table{width:100%;border-collapse:collapse}.docx-page td{padding:7px;border:1px solid #aaa;vertical-align:top}.docx-toolbar .text-button{color:var(--brand-strong)}@media(max-width:600px){.docx-toolbar{align-items:flex-start;flex-direction:column}.docx-page{padding:20px 16px}}
.language-choice-link{appearance:none;padding:0;border:0;background:none;color:var(--brand-strong);font:inherit;font-weight:800;cursor:pointer}.language-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.language-choice-grid button{display:grid;gap:4px;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft);color:var(--ink);text-align:left;cursor:pointer}.language-choice-grid button small{color:var(--ink-soft)}.language-choice-grid button.is-selected{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}.language-study-choice{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,420px);gap:20px;align-items:center}.language-study-choice h2{margin:4px 0}@media(max-width:650px){.language-study-choice{grid-template-columns:1fr}.language-choice-grid{grid-template-columns:1fr 1fr}}
.live-countdown{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;margin:10px 0 4px;padding:7px 11px;border:1px solid color-mix(in srgb,var(--item-color,var(--brand)) 45%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--item-color,var(--brand)) 10%,var(--surface));color:var(--ink);font-size:12px;font-variant-numeric:tabular-nums}.live-countdown[hidden]{display:none}.live-countdown>span{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:var(--item-color,var(--brand));box-shadow:0 0 0 4px color-mix(in srgb,var(--item-color,var(--brand)) 16%,transparent);animation:countdownPulse 2s ease-in-out infinite}.live-countdown strong{font-size:12px;white-space:nowrap}.timeline-item.is-in-progress .timeline-content{border-color:color-mix(in srgb,var(--item-color,var(--brand)) 42%,var(--line))}@keyframes countdownPulse{50%{opacity:.45;transform:scale(.82)}}@media(prefers-reduced-motion:reduce){.live-countdown>span{animation:none}}
.lk-message-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 18px;padding:5px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}.lk-message-tabs a{display:grid;place-items:center;min-height:42px;border-radius:12px;color:var(--ink-soft);font-weight:850;text-decoration:none}.lk-message-tabs a[aria-current]{background:var(--brand);color:#fff;box-shadow:0 7px 18px color-mix(in srgb,var(--brand) 24%,transparent)}.lk-group-posts{display:grid;gap:12px}.lk-group-post{padding:16px}.lk-group-post>header{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center}.lk-group-post>header div{display:grid;gap:3px;min-width:0}.lk-group-post>header b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lk-group-post>header small{color:var(--ink-soft)}.lk-group-post h2{margin:15px 0 5px;font-size:18px}.lk-group-post>p{margin:0 0 12px;line-height:1.5;white-space:pre-wrap}
.academic-records{display:grid;gap:12px}.diary-mark{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px}.diary-mark small{color:var(--ink-soft)}.diary-mark h2,.academic-record h2{margin:4px 0 0;font-size:18px}.diary-status{display:grid;place-items:center;min-width:48px;height:48px;padding:0 10px;border-radius:15px;background:var(--brand-soft);color:var(--brand-strong);font-size:20px;font-weight:950}.diary-status-у{background:color-mix(in srgb,#25a768 16%,var(--surface));color:#16804b}.diary-status-н{background:color-mix(in srgb,#e85656 16%,var(--surface));color:#c63d3d}.academic-record{padding:18px}.academic-record dl{display:grid;gap:0;margin:14px 0 0}.academic-record dl>div{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1fr);gap:14px;padding:11px 0;border-top:1px solid var(--line)}.academic-record dt{color:var(--ink-soft)}.academic-record dd{margin:0;font-weight:750;text-align:right}.academic-empty{display:grid;justify-items:center;padding:34px 20px;text-align:center}.academic-empty>span{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:var(--surface-soft);color:var(--ink-soft);font-size:28px}.academic-empty h2{margin:14px 0 5px;font-size:18px}.academic-empty p{margin:0;color:var(--ink-soft)}@media(max-width:600px){.academic-record dl>div{grid-template-columns:1fr;gap:4px}.academic-record dd{text-align:left}}
.teacher-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:14px 0; }
.teacher-facts-compact { grid-template-columns:repeat(2,minmax(0,320px)); }
.teacher-facts article { padding:15px; border:1px solid var(--line); border-radius:16px; background:var(--surface); overflow-wrap:anywhere; }.teacher-facts small{display:block;color:var(--ink-soft);margin-bottom:7px}
.teacher-source { color:var(--ink-soft); font-size:12px; }.teacher-source a{color:var(--brand-strong)}
.teacher-review-form fieldset{border:0;padding:0;margin:0 0 14px}.star-picker{display:flex;flex-direction:row-reverse;justify-content:flex-end}.star-picker input{position:absolute;opacity:0}.star-picker label{margin:0!important;color:#c6c2bb;font-size:34px;cursor:pointer}.star-picker input:checked~label,.star-picker label:hover,.star-picker label:hover~label{color:var(--brand)}
.teacher-reviews{display:grid;gap:10px;margin-top:20px}.teacher-reviews article{padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}.teacher-reviews header{display:flex;justify-content:space-between;gap:10px}.teacher-reviews header span{color:var(--brand)}.teacher-reviews p{line-height:1.55}.teacher-reviews small{color:var(--ink-soft)}
@media(max-width:680px){.teacher-hero{grid-template-columns:86px minmax(0,1fr);gap:15px}.teacher-hero>img,.teacher-avatar{width:86px;height:108px;border-radius:17px}.teacher-avatar{font-size:38px}.teacher-facts{grid-template-columns:1fr 1fr}.teacher-hero h1{font-size:28px}}
.lesson-type-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.lesson-type-picker a { display:flex; flex-direction:column; gap:8px; min-height:120px; padding:18px; text-decoration:none; color:var(--ink); border:1px solid var(--line); border-radius:20px; background:var(--surface); transition:transform .18s ease,border-color .18s ease,background .18s ease; }
.lesson-type-picker a:hover,.lesson-type-picker a.is-selected { transform:translateY(-2px); border-color:var(--brand); background:color-mix(in srgb,var(--brand) 10%,var(--surface)); }
.lesson-type-picker a>span { font-size:26px; color:var(--brand-strong); }
.lesson-type-picker small { color:var(--ink-soft); }
.lesson-calendar { display:grid; grid-template-columns:repeat(auto-fill,minmax(235px,1fr)); gap:10px; }
.lesson-calendar>a { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; padding:12px; border:1px solid var(--line); border-radius:16px; color:var(--ink); text-decoration:none; background:var(--surface-soft); }
.lesson-calendar time { width:48px; height:52px; display:grid; place-items:center; align-content:center; border-radius:13px; background:var(--brand); color:#fff; }
.lesson-calendar time b { font-size:20px; line-height:1; }.lesson-calendar time span { font-size:10px; }
.lesson-calendar div { display:flex; flex-direction:column; gap:4px; }.lesson-calendar small{color:var(--ink-soft)}.lesson-calendar>a>span{font-size:12px;color:var(--brand-strong)}
@media(max-width:600px){.lesson-type-picker{grid-template-columns:1fr}.lesson-type-picker a{min-height:76px}.lesson-calendar{grid-template-columns:1fr}}
.semester-progress{padding:17px 22px 8px}.semester-progress h3{margin:3px 0 0;font-size:15px}.subject-progress{grid-column:2/-1;display:grid;gap:8px;padding-top:4px}.subject-progress>div>span{display:flex;justify-content:space-between;gap:12px;margin-bottom:5px;font-size:10px}.subject-progress em{color:var(--ink-soft);font-style:normal;font-weight:750}.subject-progress i{display:block;height:5px;border-radius:99px;background:linear-gradient(90deg,var(--brand) var(--done),color-mix(in srgb,var(--ink-soft) 22%,transparent) var(--done))}
.lk-native-list{display:grid;gap:8px;overflow:hidden}.lk-native-row,.lk-message-row{display:flex;gap:10px;align-items:flex-start;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);overflow-x:auto}.lk-native-row span,.lk-message-row span{min-width:90px;max-width:340px}.lk-native-row.is-heading,.lk-message-row.is-heading{font-weight:900;color:var(--brand-strong);background:var(--brand-soft)}.certificate-warning{border-color:color-mix(in srgb,var(--brand) 55%,var(--line));background:color-mix(in srgb,var(--brand) 9%,var(--surface))}.certificate-warning b{color:var(--brand-strong)}.certificate-warning p{margin-bottom:0}.certificate-orders{display:grid;gap:10px}.certificate-orders article{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft)}.certificate-orders article>div{display:flex;flex-wrap:wrap;gap:8px}.certificate-orders article span{padding:5px 8px;border-radius:8px;background:var(--surface)}.certificate-ready{color:#168052}.certificate-pickup{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);color:var(--ink-soft)}
.curriculum-hero{display:flex;justify-content:space-between;align-items:end}.curriculum-hero>span{padding:9px 13px;border-radius:13px;color:var(--brand-strong);background:var(--brand-soft);font-weight:800}.semester-jump{position:sticky;top:68px;z-index:8;display:flex;gap:7px;overflow-x:auto;margin:0 0 18px;padding:9px;border:1px solid var(--line);border-radius:17px;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(14px);scrollbar-width:none}.semester-jump a{min-width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:var(--ink);background:var(--surface-soft);text-decoration:none;font-weight:850}.semester-jump a:active{color:#fff;background:var(--brand)}.curriculum-semesters{display:grid;gap:18px}.semester-card{scroll-margin-top:132px;padding:0;overflow:hidden}.semester-card>header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,var(--brand-soft),transparent 70%)}.semester-card h2{margin:3px 0 0}.semester-hours{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:0 7px;text-align:right}.semester-hours b{font-size:27px;color:var(--brand-strong)}.semester-hours span,.semester-hours small{color:var(--ink-soft);font-size:11px}.semester-hours small{grid-column:1/-1}.curriculum-subjects{display:grid}.curriculum-subjects article{display:grid;grid-template-columns:42px minmax(0,1fr) 82px;gap:13px;align-items:center;padding:17px 22px;border-bottom:1px solid var(--line)}.curriculum-subjects article:last-child{border-bottom:0}.subject-index{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:var(--brand-strong);background:var(--brand-soft);font-size:11px;font-weight:900}.curriculum-copy{min-width:0}.curriculum-copy>small{color:var(--ink-soft);font-size:10px;letter-spacing:.04em}.curriculum-copy h3{margin:4px 0 9px;font-size:15px;line-height:1.35}.control-chips{display:flex;flex-wrap:wrap;gap:5px}.control-chips span{padding:5px 8px;border-radius:9px;font-size:9px;font-weight:850}.control-exam{color:#fff;background:#db7121}.control-credit{color:#2b7650;background:rgba(59,166,102,.15)}.control-course{color:#7f5b13;background:rgba(226,170,49,.18)}[data-theme="dark"] .control-credit{color:#a5e2bd}[data-theme="dark"] .control-course{color:#ffd06d}.curriculum-hours{display:grid;grid-template-columns:1fr;justify-items:end}.curriculum-hours b,.curriculum-hours strong{font-size:17px}.curriculum-hours strong{margin-top:5px;color:var(--ink-soft)}.curriculum-hours span{color:var(--ink-soft);font-size:9px}@media(max-width:600px){.curriculum-hero>span{display:none}.semester-jump{top:8px}.semester-card>header{padding:18px 16px}.curriculum-subjects article{grid-template-columns:34px minmax(0,1fr);padding:15px 13px;gap:10px}.subject-index{width:32px;height:32px}.curriculum-hours{grid-column:2;display:flex;justify-content:flex-start;gap:5px;align-items:baseline}.curriculum-hours strong{margin:0 0 0 9px}.curriculum-hours span{font-size:10px}}
.shell:has(.campus-beta){max-width:1500px;width:100%}
.shell:has(.campus-beta) .role-tabs{display:none}
.shell:has(.campus-beta) .campus-location-bottom{display:none}
.campus-beta.campus-native-card{padding:12px;overflow:visible}
.campus-beta.campus-native{position:relative;gap:9px}
.campus-beta .campus-native-head{align-items:center}
.campus-beta .campus-native-head h2{font-size:22px;margin:0}
.campus-beta .campus-native-head .muted{font-size:11px}
.campus-beta-switch select{max-width:155px;min-height:38px;border:1px solid var(--line);border-radius:11px;color:var(--ink);background:var(--surface);font:inherit;font-size:11px;padding:0 8px}
.campus-beta .campus-map-state{width:max-content}
.campus-beta .campus-map-viewport{height:min(66dvh,850px);min-height:360px;aspect-ratio:auto;touch-action:none;overscroll-behavior:none;background:#18202b}
.campus-beta .campus-map-canvas{background:#18202b}
.campus-beta .campus-place-filters{padding:4px 0;gap:6px}
.campus-beta .campus-place-filters button{min-height:48px;border-radius:14px}
.campus-beta .campus-place-list{position:fixed;z-index:700;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));width:min(680px,calc(100vw - 24px));height:82px;max-height:70dvh;transform:translateX(-50%);overflow:hidden;border:1px solid var(--line);border-radius:21px;background:var(--surface);box-shadow:0 20px 50px #0008;transition:height .34s cubic-bezier(.2,.75,.2,1)}
.campus-beta .campus-place-list[hidden]{display:none}
.campus-beta .campus-place-list.is-expanded{height:min(62dvh,600px)}
.campus-beta .campus-place-list>header{height:59px;cursor:pointer;touch-action:pan-y}
.campus-beta .campus-place-list>header:before{content:"";position:absolute;top:7px;left:50%;width:38px;height:4px;border-radius:4px;background:var(--line);transform:translateX(-50%)}
.campus-beta .campus-place-list>div{max-height:calc(62dvh - 85px);overflow-y:auto;overscroll-behavior:contain}
.campus-beta .campus-place-list:not(.is-expanded)>div{max-height:0;overflow:hidden}
.campus-beta .campus-map-help{font-size:11px;padding:8px 10px}
@media(max-width:700px){.shell:has(.campus-beta){padding-left:9px;padding-right:9px}.campus-beta .campus-map-viewport{height:calc(100dvh - 390px);min-height:340px}.campus-beta .campus-route-picker{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 76px;gap:5px}.campus-beta .campus-route-picker input{padding:9px 7px;font-size:13px}.campus-beta .campus-route-picker label{font-size:10px}.campus-beta .campus-route-picker .button{font-size:11px;padding:8px 4px}.campus-beta .campus-swap{width:32px}.campus-beta .campus-zoom button{min-height:35px;padding:0 7px}.campus-beta .campus-place-filters button{font-size:10px;padding:7px 9px}}
.campus-beta.campus-native-card{height:calc(100dvh - 175px);min-height:550px}
.campus-beta.campus-native{height:100%;display:flex;flex-direction:column}
.campus-beta .campus-map-viewport{height:auto;min-height:200px;flex:1 1 auto}
.campus-beta .campus-place-filters,.campus-beta .campus-map-controls,.campus-beta .campus-route-picker{flex:none}
.campus-beta .campus-amenity-legend,.campus-beta .campus-map-help{display:none}
@media(max-width:700px){.campus-beta.campus-native-card{height:calc(100dvh - 195px);min-height:500px}.campus-beta .campus-map-viewport{height:auto;min-height:200px}.campus-beta .campus-place-list{bottom:calc(170px + env(safe-area-inset-bottom))}}
.campus-beta .campus-map-controls{flex-direction:row;align-items:center}
.campus-beta .campus-route-picker label:nth-of-type(2){grid-column:auto}
.campus-beta .campus-route-picker [data-route-build]{grid-column:auto;width:auto}

.menu-profile-actions{display:flex;flex-direction:column;gap:8px;margin-left:auto;min-width:220px;flex-shrink:0}.menu-profile-actions .profile-statistics-button{width:100%;box-sizing:border-box;margin:0}@media(max-width:700px){.menu-profile-actions{grid-column:1/-1;width:100%;min-width:0;margin:4px 0 0}}
.social-life-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}.social-life-shortcuts a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 5px;border-radius:20px;border:1px solid var(--line,#ffffff18);background:var(--glass,#ffffff08);color:var(--ink);text-decoration:none;backdrop-filter:blur(20px);font-size:10px;text-align:center}.social-life-shortcuts svg{width:22px;height:22px;color:var(--brand,#ef7617)}
