/* ===== Личный кабинет «Метод Ульяновой» — дизайн-система ===== */
:root {
  --bg: #091a33; --surface: #0e2342; --surface-2: #132b50; --sunken: #0a1c38;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #e8edf5; --muted: #98a9c2; --faint: #6f819c;
  --accent: #d9b08f; --accent-ink: #1a1208; --accent-soft: rgba(217,176,143,.14);
  --ok: #6fcf9f; --ok-soft: rgba(111,207,159,.14); --warn: #e3b25f; --warn-soft: rgba(227,178,95,.14);
  --bad: #ef8a83; --bad-soft: rgba(239,138,131,.14);
  --r: 8px; --r-lg: 12px; --h: 34px; --gap: 16px;
  --f: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --top-h: 52px; --nav-w: 232px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body.lk { margin: 0; background: var(--bg); color: var(--text); font: 500 1rem/1.5 var(--f); min-height: 100vh; }
.lk a { color: var(--accent); text-decoration: none; }
.lk a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lk img { max-width: 100%; }
.lk h1, .lk h2, .lk h3 { font-family: var(--f); font-weight: 600; color: var(--text); margin: 0; letter-spacing: -.01em; }
.lk h1 { font-size: 1.5rem; margin-bottom: var(--gap); }
.lk h2 { font-size: 1.05rem; margin-bottom: 12px; }
.lk h3 { font-size: .95rem; margin: 12px 0 6px; }
.lk p { margin: 0 0 10px; }
.lk-muted { color: var(--muted); }
.lk-small { font-size: .85rem; }
.lk-empty { color: var(--faint); padding: 14px 4px; text-align: left; }
.lk-sub { color: var(--muted); font-size: .95rem; font-weight: 500; margin-bottom: 12px; }
.lk code, .lk-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sunken); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px; font-size: .92em; }
.lk-code { display: inline-block; padding: 8px 14px; font-size: 1.2rem; letter-spacing: .06em; cursor: copy; }
.lk-code--s { font-size: .9rem; padding: 1px 7px; letter-spacing: .03em; cursor: text; }

/* ---------- верхняя панель ---------- */
.lk-top { height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; position: relative; z-index: 40; }
.lk-brand { display: flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none !important; }
.lk-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.lk-brand b { font-weight: 600; font-size: .95rem; }
.lk-brand small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.lk-top__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lk-top__right form { margin: 0; }
.lk-bell, .lk-iconbtn, .lk-burger { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r); background: none; border: 0; color: var(--muted) !important; cursor: pointer; text-decoration: none !important; }
.lk-bell:hover, .lk-iconbtn:hover, .lk-burger:hover { background: rgba(255,255,255,.07); color: var(--text) !important; }
.lk-bell b { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: .65rem; font-weight: 600; line-height: 16px; text-align: center; }
.lk-me { display: flex; flex-direction: column; line-height: 1.2; text-align: right; padding: 0 8px; color: var(--text) !important; text-decoration: none !important; }
.lk-me span { font-size: .9rem; font-weight: 600; }
.lk-me small { font-size: .72rem; color: var(--muted); }
.lk-burger { display: none; margin-left: -8px; }
.lk-ic { flex: none; }

.lk-impbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 6px 20px; background: var(--accent); color: var(--accent-ink); font-size: .88rem; font-weight: 600; flex: none; }
.lk-impbar form { margin: 0; }
.lk-impbar .uly-btn { background: var(--accent-ink); color: var(--text); height: 28px; padding: 0 12px; }

/* ---------- каркас ---------- */
.lk-shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.lk-shell.lk-guest { grid-template-columns: minmax(0, 1fr); }
.lk-nav { border-right: 1px solid var(--line); background: var(--surface); padding: 12px 10px 20px; overflow-y: auto; }
.lk-nav nav { display: flex; flex-direction: column; gap: 2px; }
.lk-navgroup { margin: 14px 10px 4px; font-size: .72rem; font-weight: 600; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
.lk-navgroup:first-child { margin-top: 4px; }
.lk-nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r); color: var(--muted); font-size: .93rem; font-weight: 500; text-decoration: none !important; }
.lk-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.lk-nav a.is-current { background: var(--accent-soft); color: var(--accent); }
.lk-nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 600; line-height: 20px; text-align: center; }
.lk-main { min-width: 0; padding: 24px 32px 48px; }
.lk-page { max-width: 1180px; margin: 0 auto; }
.lk-guest .lk-main { padding: 48px 20px; }
.lk-guest .lk-page { max-width: 420px; }

@media (min-width: 981px) {
  body.lk-app { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  html:has(body.lk-app) { overflow: hidden; }
  body.lk-app .lk-shell { flex: 1; min-height: 0; }
  body.lk-app .lk-main { overflow-y: auto; }
  body.lk-fixed .lk-main { overflow: hidden; padding: 20px 24px; }
  body.lk-fixed .lk-page { max-width: none; height: 100%; }
}
@media (max-width: 980px) {
  .lk-burger { display: inline-flex; }
  .lk-shell { grid-template-columns: minmax(0, 1fr); }
  .lk-nav { display: none; border-right: 0; border-bottom: 1px solid var(--line); }
  body.lk-nav-open .lk-nav { display: block; }
  .lk-main { padding: 16px 16px 40px; }
  .lk-top { padding: 0 12px; }
  .lk-me small { display: none; }
}

/* ---------- карточки и сетки ---------- */
.lk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: var(--gap); min-width: 0; }
.lk-card--narrow { max-width: 420px; margin-inline: auto; }
.lk-card > summary { cursor: pointer; list-style: none; }
.lk-card > summary::-webkit-details-marker { display: none; }
.lk-card > summary h2 { margin: 0; }
.lk-card[open] > summary { margin-bottom: 12px; }
.lk-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: var(--gap); align-items: start; }
.lk-grid > .lk-card { margin: 0; }
.lk-grid--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .lk-grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lk-grid { grid-template-columns: minmax(0, 1fr); } .lk-grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.lk-stat { font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--text); }
.lk-stat small { display: block; margin-top: 4px; font-size: .82rem; font-weight: 500; color: var(--muted); }
.lk-grid--stats .lk-card { padding: 14px 16px; }
.lk-grid--stats .lk-card > a { display: inline-block; margin-top: 8px; font-size: .85rem; }

.lk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.lk-row--between { justify-content: space-between; }
.lk-row .lk-row, .lk-list .lk-row, .lk-table .lk-row, .lk-search, .lk-card > .lk-row:last-child { margin-bottom: 0; }
.lk-inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.lk-scroll { overflow-x: auto; }

/* ---------- списки: строки с разделителями, без вложенных рамок ---------- */
.lk-list { list-style: none; margin: 0; padding: 0; }
.lk-list > li { padding: 10px 2px; border-bottom: 1px solid var(--line); }
.lk-list > li:last-child { border-bottom: 0; }
.lk-list > li.lk-empty { padding: 12px 2px; }
.lk-list a.lk-block { display: block; color: var(--text); text-decoration: none; }
.lk-list a.lk-block:hover b { color: var(--accent); }
.lk-list li .lk-inline { margin-top: 0; }
.lk-list li > .lk-row { margin: 0; }

.lk-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lk-table th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.lk-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lk-table tr:last-child td { border-bottom: 0; }
.lk-table tbody tr:hover td { background: rgba(255,255,255,.03); }
.lk-table th:first-child, .lk-table td:first-child { padding-left: 4px; }

.lk-kv { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 8px 16px; margin: 0 0 12px; font-size: .98rem; }
.lk-kv dt { color: var(--muted); font-size: .85rem; font-weight: 500; padding-top: 2px; }
.lk-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .lk-kv { grid-template-columns: minmax(0, 1fr); gap: 0; } .lk-kv dt { padding-top: 8px; } }

.lk-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--gap); padding: 3px; background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; width: fit-content; max-width: 100%; }
.lk-tabs a { padding: 5px 12px; border-radius: 7px; color: var(--muted); font-size: .88rem; font-weight: 500; text-decoration: none !important; }
.lk-tabs a:hover { color: var(--text); }
.lk-tabs a.is-current { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }

.lk-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--muted); font-size: .76rem; font-weight: 600; white-space: nowrap; }
.lk-pill--ok { background: var(--ok-soft); color: var(--ok); }
.lk-pill--warn { background: var(--warn-soft); color: var(--warn); }
.lk-pill--bad { background: var(--bad-soft); color: var(--bad); }

.lk-flash { padding: 10px 14px; margin-bottom: var(--gap); border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface-2); font-size: .93rem; overflow-wrap: anywhere; }
.lk-flash--ok { border-color: rgba(111,207,159,.35); background: var(--ok-soft); }
.lk-flash--err { border-color: rgba(239,138,131,.4); background: var(--bad-soft); }

/* ---------- формы и кнопки ---------- */
.lk-form { display: grid; gap: 12px; }
.lk-form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.lk-form label, .lk-lab { display: grid; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.lk input[type=text], .lk input[type=password], .lk input[type=email], .lk input[type=tel], .lk input[type=number],
.lk input[type=date], .lk input[type=time], .lk input[type=search], .lk input[type=datetime-local], .lk select, .lk textarea {
  width: 100%; height: 36px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sunken);
  color: var(--text); font: 500 .95rem var(--f); transition: border-color .15s, box-shadow .15s; }
.lk textarea { height: auto; min-height: 84px; padding: 9px 12px; line-height: 1.45; resize: vertical; }
.lk select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a9c2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.lk select option { background: var(--surface-2); color: var(--text); }
.lk ::placeholder { color: var(--faint); opacity: 1; }
.lk input:hover, .lk select:hover, .lk textarea:hover { border-color: rgba(255,255,255,.24); }
.lk input:focus, .lk select:focus, .lk textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lk input:disabled, .lk select:disabled, .lk textarea:disabled { opacity: .5; cursor: not-allowed; }
.lk input:user-invalid, .lk textarea:user-invalid { border-color: var(--bad); }
.lk input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.lk .lk-sel { width: auto; height: 32px; font-size: .88rem; }
.lk textarea.lk-resume { min-height: 12rem; max-height: 60vh; field-sizing: content; }

.uly-btn, .lk-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h); padding: 0 14px; border-radius: var(--r);
  border: 1px solid transparent; background: var(--accent); color: var(--accent-ink) !important; font: 600 .88rem var(--f); text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; max-width: 100%; }
.uly-btn:hover { background: #e3c0a2; }
.uly-btn.lk-btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text) !important; }
.uly-btn.lk-btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.26); }
.uly-btn.lk-btn-danger { background: transparent; border-color: rgba(239,138,131,.4); color: var(--bad) !important; }
.uly-btn.lk-btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.uly-btn.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent) !important; }
.uly-btn:focus-visible, .lk a:focus-visible, .lk-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.uly-btn:disabled { opacity: .5; cursor: not-allowed; }
.lk-btn-wide { width: 100%; }
.lk-x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; font: inherit; }
.lk-x:hover { color: var(--bad); }
.lk-checks { display: grid; gap: 8px; }
.lk .lk-check { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500; color: var(--text); }

.lk-filepick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; cursor: pointer; position: relative; }
.lk-filepick > span { display: inline-flex; align-items: center; height: var(--h); padding: 0 14px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: .88rem; color: var(--text); }
.lk-filepick:hover > span { border-color: var(--accent); }
.lk-filepick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lk-filepick small:empty { display: none; }
.lk-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lk-file { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--text) !important; font-size: .82rem; text-decoration: none !important; overflow-wrap: anywhere; }
.lk-file:hover { background: rgba(255,255,255,.12); }
.lk-file--vk { opacity: .7; }

/* ---------- уроки, расписание, журнал ---------- */
.lk-day { margin-bottom: var(--gap); }
.lk-day h3 { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: .85rem; font-weight: 600; }
.lk-lesson { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.lk-lesson:last-child { border-bottom: 0; }
.lk-time { min-width: 7.5rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.lk-st { font-size: .8rem; color: var(--muted); }

/* ---------- сообщения ---------- */
.lk-chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--gap); }
.lk-peers { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; padding-right: 2px; }
.lk-peers a { flex: none; display: block; padding: 8px 12px; border-radius: var(--r); color: var(--text); font-size: .92rem; font-weight: 600; text-decoration: none !important; min-width: 0; overflow: hidden; }
.lk-peers a:hover { background: rgba(255,255,255,.05); }
.lk-peers a.is-current { background: var(--accent-soft); }
.lk-peers a small { display: block; margin-top: 1px; font-size: .78rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-msgs { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 4px 2px; max-height: 60vh; }
.lk-msg { max-width: 78%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: .96rem; line-height: 1.45; overflow-wrap: anywhere; }
.lk-msg.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--accent-soft); border-color: rgba(217,176,143,.3); }
.lk-msg small { display: block; margin-top: 3px; font-size: .72rem; color: var(--faint); }
.lk-chathead h2 { margin: 0; }
.lk-chathead h2 small { font-weight: 500; }
@media (max-width: 980px) { .lk-chat { grid-template-columns: minmax(0, 1fr); } .lk-peers { max-height: 14rem; } .lk-msg { max-width: 92%; } }
@media (min-width: 981px) {
  body.lk-fixed .lk-chat { height: 100%; }
  body.lk-fixed .lk-chat > .lk-card { display: flex; flex-direction: column; min-height: 0; margin: 0; }
  body.lk-fixed .lk-msgs { flex: 1; max-height: none; min-height: 0; }
  body.lk-fixed .lk-chat form { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 10px; }
  body.lk-fixed .lk-chat form textarea { grid-column: 1 / -1; min-height: 56px; max-height: 9rem; }
  body.lk-fixed .lk-chathead { flex: none; margin-bottom: 8px; }
}

/* ---------- пользователи / привязки ---------- */
.lk-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--gap); }
.lk-search input[type=search] { flex: 1 1 260px; max-width: 420px; }
#lk-tlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--gap); overflow: hidden; }
.lk-tcard { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; margin: 0; }
.lk-tcard:last-child { border-bottom: 0; }
.lk-tcard > summary { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; list-style: none; }
.lk-tcard > summary::-webkit-details-marker { display: none; }
.lk-tcard > summary:hover { background: rgba(255,255,255,.03); }
.lk-tcard > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 3px 4px; flex: none; transition: transform .15s; }
.lk-tcard[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.lk-tcard > summary h2 { margin: 0; font-size: .98rem; flex: 1; min-width: 0; }
.lk-tcard > summary h2::before { content: none; }
.lk-tcard > summary > span { color: var(--muted); font-size: .85rem; order: 2; text-align: right; }
.lk-tbody { padding: 4px 16px 16px; border-top: 1px dashed var(--line); background: var(--sunken); }
.lk-pick-form { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.lk-pick-form input[type=text] { flex: 1; min-width: 0; }
.lk-stud { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lk-stud details { flex: 1; min-width: 0; }
.lk-stud summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; list-style: none; padding: 2px 0; }
.lk-stud summary::-webkit-details-marker { display: none; }
.lk-stud summary > span { flex: 1; min-width: 0; }
.lk-stud summary::before { content: ''; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); margin-right: 4px; flex: none; transition: transform .15s; }
.lk-stud details[open] summary::before { transform: rotate(45deg); }
.lk-parents { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 6px 18px; }
.lk-parents > .lk-row { margin: 0; }
.lk-danger { margin-top: var(--gap); padding-top: 14px; border-top: 1px solid var(--line); }
.lk-danger h3 { color: var(--bad); margin: 0 0 4px; }
.lk-danger p { margin-bottom: 10px; }
.lk-req summary { cursor: pointer; padding: 6px 0; }
.lk-cmd { margin: 12px 0; }
.lk-custom[hidden] { display: none; }

/* ---------- вход ---------- */
.lk-login { padding: 0; }

/* ---------- окно подтверждения ---------- */
.lk-modal { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--text); padding: 0; width: min(440px, calc(100vw - 32px)); font-family: var(--f); }
.lk-modal::backdrop { background: rgba(4,10,22,.7); }
.lk-modal__in { padding: 20px 22px; }
.lk-modal h3 { margin: 0 0 8px; font-size: 1.05rem; }
.lk-modal p { color: var(--muted); white-space: pre-line; margin: 0 0 6px; }
.lk-modal strong { color: var(--text); display: block; margin: 6px 0 0; overflow-wrap: anywhere; }
.lk-modal__act { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; }

/* ---------- мобильные таблицы и мелочи ---------- */
@media (max-width: 640px) {
  html { font-size: 14.5px; }
  .lk-table { font-size: .85rem; }
  .lk-table th, .lk-table td { padding: 8px 8px; }
  .lk-tabs { width: 100%; }
  .lk-pick-form { flex-wrap: wrap; }
  .lk-card { padding: 14px; }
  .lk-time { min-width: 0; width: 100%; }
}
.lk, .lk * { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
.lk *::-webkit-scrollbar { width: 8px; height: 8px; }
.lk *::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }
.lk *::-webkit-scrollbar-track { background: transparent; }

.lk-pagehead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: var(--gap); }
.lk-pagehead h1 { margin: 0; }
.lk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .lk-grid--2 { grid-template-columns: minmax(0, 1fr); } }
.lk-between, .lk-list a.lk-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lk-between > span:first-child { min-width: 0; overflow-wrap: anywhere; }
#lk-new:not([open]) { display: none; }
.lk-tcard > summary h2 { flex: 0 0 14rem; }
.lk-tcard > summary > span { flex: 1; text-align: left; order: 0; min-width: 0; }
.lk-tcard > summary::after { order: 3; }
@media (max-width: 640px) { .lk-tcard > summary { flex-wrap: wrap; } .lk-tcard > summary h2 { flex: 1 1 60%; } .lk-tcard > summary > span { flex: 1 1 100%; order: 4; } }
.lk-peers a .lk-dot { float: right; margin-left: 8px; }
/* деструктивные кнопки внутри списков и таблиц — спокойнее, чтобы не рябило */
.lk-list .uly-btn.lk-btn-danger, .lk-lesson .uly-btn.lk-btn-danger, .lk-table .uly-btn.lk-btn-danger, .lk-ev .uly-btn.lk-btn-danger { border-color: var(--line-2); height: 28px; padding: 0 10px; font-size: .8rem; }
.lk-list .uly-btn, .lk-lesson .uly-btn, .lk-table .uly-btn { height: 28px; padding: 0 10px; font-size: .8rem; }
#lk-tlist .lk-tcard { padding: 0; }
.lk-brand b, .lk-me span { white-space: nowrap; }
@media (max-width: 640px) { .lk-brand small { display: none; } .lk-brand b { font-size: .88rem; } .lk-me { display: none; } .lk-top { gap: 6px; } #lk-tlist .lk-tcard > summary { padding: 10px 12px; } }

/* ---------- пользователи: панель, поиск, фильтры ---------- */
.lk-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: var(--gap); }
.lk-toolbar .lk-tabs { margin-bottom: 0; }
.lk-toolbar__act { margin: 0; }
.lk-tabs--roles { margin-bottom: 12px; }
.lk-tabs--mini { margin: 0 0 0 auto; }
.lk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--gap); }
.lk-searchbox { position: relative; flex: 1 1 280px; max-width: 440px; }
.lk-searchbox .lk-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.lk .lk-searchbox input { padding-left: 36px; }
.lk-card--flush { padding: 4px 12px; }
.lk-tar { text-align: right; white-space: nowrap; }
.lk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lk-pill--chip { height: 26px; padding: 0 4px 0 10px; gap: 6px; font-weight: 500; color: var(--text); }
.lk-pill--chip form { display: inline-flex; }
.lk-pill--chip .lk-x { font-size: 1.1rem; line-height: 1; padding: 0 6px; }
#lk-new:not([open]), #lk-spec:not([open]) { display: none; }
.lk-narrow { max-width: 320px; }
.lk-rf[hidden] { display: none; }
.lk-form label[hidden] { display: none; }
.lk .lk-card .lk-rf.lk-row { margin: 0; }

/* ---------- карточка человека ---------- */
.lk-back { margin: 0 0 8px; font-size: .88rem; }
.lk-back a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.lk-back a:hover { color: var(--text); text-decoration: none; }
.lk-userhead { align-items: center; }
.lk-headact { margin: 0; }
.lk-edit[hidden], .lk-view[hidden] { display: none; }
.lk-parents__h { font-size: .78rem; font-weight: 600; color: var(--faint); }
.lk-parent { display: flex; align-items: center; gap: 8px; }
.lk-sched { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.lk-sched th, .lk-sched td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 8px; vertical-align: top; font-size: .88rem; }
.lk-sched thead th { background: var(--surface-2); text-align: center; font-weight: 600; font-size: .85rem; border-top: 1px solid var(--line); }
.lk-sched thead th small, .lk-sched__n small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.lk-sched th:first-child, .lk-sched td:first-child { border-left: 1px solid var(--line); }
.lk-sched thead th:first-child { border-top-left-radius: 8px; } .lk-sched thead th:last-child { border-top-right-radius: 8px; }
.lk-sched tbody tr:last-child th:first-child { border-bottom-left-radius: 8px; } .lk-sched tbody tr:last-child td:last-child { border-bottom-right-radius: 8px; }
.lk-sched .lk-sched__n { width: 76px; text-align: center; background: var(--surface-2); font-weight: 600; }
.lk-sched__l { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; margin-bottom: 4px; border-radius: 6px; background: var(--accent-soft); border: 1px solid rgba(217,176,143,.22); }
.lk-sched__l:last-child { margin-bottom: 0; }
.lk-sched__l b { font-weight: 600; font-size: .85rem; overflow-wrap: anywhere; }
.lk-sched__l small { color: var(--muted); font-size: .75rem; }
.lk-modal--wide { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.lk-modal--wide .lk-modal__in h2 { margin-bottom: 4px; }

.lk-darow { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.lk-darow:last-child { border-bottom: 0; padding-bottom: 0; }
.lk-darow p { margin: 0; color: var(--muted); font-size: .88rem; }
.lk-darow .uly-btn { width: 100%; }
@media (max-width: 640px) { .lk-darow { grid-template-columns: minmax(0, 1fr); } }
.uly-btn:disabled { background: rgba(255,255,255,.08); color: var(--faint) !important; border-color: transparent; opacity: 1; }
.lk-parent-row { padding: 2px 0; }
.lk-sched__l a { color: var(--text); }
.lk-sched__l a:hover b { color: var(--accent); }

/* --- сообщения: скрепка, отправка в строке, цвета, закреп, меню --- */
.lk-compose { display: flex; align-items: flex-end; gap: 8px; }
.lk-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 9rem; resize: none; margin: 0; }
.lk-compose .uly-btn { flex: none; }
.lk-clip { flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--muted); cursor: pointer; }
.lk-clip:hover { color: var(--accent); border-color: var(--accent); }
.lk-clip b { font-size: .8rem; font-weight: 600; color: var(--accent); }
.lk-clip b:empty { display: none; }
.lk-clip input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.lk-fixed .lk-chat form { display: block; }
body.lk-fixed .lk-chat form .lk-compose textarea { grid-column: auto; min-height: 44px; }
.lk-msg:not(.me) { background: #20355f; border-color: #35538c; border-left: 3px solid #6f9bff; }
.lk-chathead h2 a { color: inherit; }
.lk-chathead h2 a:hover { color: var(--accent); }
.lk-peers a.is-pinned { background: rgba(217,176,143,.09); box-shadow: inset 3px 0 0 var(--accent); }
.lk-peers a.is-pinned.is-current { background: var(--accent-soft); }
.lk-pinic { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--accent); }
.lk-ctx { position: fixed; z-index: 90; min-width: 210px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.lk-ctx button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .9rem; border-radius: 6px; cursor: pointer; }
.lk-ctx button:hover { background: rgba(255,255,255,.08); }
/* --- настройки: списки, команда --- */
.lk-edrow { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lk-edrow:last-child { border-bottom: 0; }
.lk-edform { display: flex; gap: 8px; margin: 0; }
.lk-edform input { flex: 1; min-width: 0; }
@media (max-width: 720px) { .lk-edrow { grid-template-columns: minmax(0, 1fr); } }
.lk-weeknav { display: flex; align-items: center; gap: 8px; }
.lk-weeknav .uly-btn { padding: 0 10px; }

.lk-grid--stretch { align-items: stretch; }
.lk-grid--stretch > .lk-card { display: flex; flex-direction: column; }
.lk-grid--stretch > .lk-card > form:first-of-type { flex: 1; display: flex; flex-direction: column; }
.lk-grid--stretch textarea { flex: 1; min-height: 120px; }
.lk-rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.uly-btn:disabled { cursor: not-allowed; }

.lk-copy { cursor: copy; border-bottom: 1px dashed var(--line-2); }
.lk-copy:hover { color: var(--accent); border-color: var(--accent); }
.lk-copy.is-done { color: var(--ok, #7ad3a0); border-color: transparent; }
.lk-tagmgr { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.lk-tagmgr[hidden] { display: none; }
.lk-rates--new { margin-top: 10px; }

/* --- уведомления-тосты сверху --- */
.lk-toasts { position: fixed; z-index: 120; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.lk-toast { position: relative; overflow: hidden; pointer-events: auto; padding: 12px 40px 15px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 12px 34px rgba(0,0,0,.5); font-size: .93rem; overflow-wrap: anywhere; animation: lk-toast-in .32s cubic-bezier(.2,.8,.2,1); }
.lk-toast.is-out { animation: lk-toast-out .28s ease forwards; }
.lk-toast--ok { border-color: rgba(111,207,159,.45); }
.lk-toast--err { border-color: rgba(239,138,131,.55); }
.lk-toast__x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.lk-toast__x:hover { background: rgba(255,255,255,.08); color: var(--text); }
.lk-toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--ok, #6fcf9f); transform-origin: left; animation: lk-toast-bar 7s linear forwards; }
.lk-toast--err .lk-toast__bar { background: var(--bad, #ef8a83); }
.lk-toast:hover .lk-toast__bar { animation-play-state: paused; }
@keyframes lk-toast-in { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes lk-toast-out { to { opacity: 0; transform: translateY(-18px); } }
@keyframes lk-toast-bar { to { transform: scaleX(0); } }
.lk-page > .lk-flash { display: none; }

/* --- панель уведомлений справа --- */
.lk-drawer { position: fixed; z-index: 110; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: -14px 0 40px rgba(0,0,0,.45); animation: lk-drawer-in .22s ease; }
.lk-drawer[hidden], .lk-drawer__bg[hidden] { display: none; }
.lk-drawer__bg { position: fixed; z-index: 105; inset: 0; background: rgba(5,10,24,.45); }
.lk-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lk-drawer__head h2 { margin: 0; font-size: 1.05rem; }
.lk-drawer__list { flex: 1; overflow-y: auto; padding: 10px 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.lk-nt { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; overflow-wrap: anywhere; transition: background .2s, border-color .2s; }
.lk-nt.is-new { border-color: var(--accent); background: var(--accent-soft); }
.lk-nt small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }
@keyframes lk-drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.lk-bell b[hidden] { display: none; }

/* --- сворачиваемые карточки --- */
.lk-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.lk-fold > summary::-webkit-details-marker { display: none; }
.lk-fold > summary h2 { margin: 0; }
.lk-fold > summary::after { content: '▾'; color: var(--muted); transition: transform .18s; margin-left: auto; }
.lk-fold[open] > summary::after { transform: rotate(180deg); }
.lk-fold > summary .lk-muted { order: 2; }
.lk-fold[open] > summary { margin-bottom: 12px; }
.lk-nowrap { flex-wrap: nowrap; }

/* --- сообщения: ровная строка ввода и шапка --- */
.lk-compose { align-items: center; }
.lk-compose textarea { height: 44px; min-height: 44px; padding-top: 10px; padding-bottom: 10px; line-height: 22px; box-sizing: border-box; }
.lk-compose .uly-btn { height: 44px; }
.lk-clipwrap { position: relative; flex: none; display: inline-flex; align-items: center; }
.lk-clip { transition: background .15s, border-color .15s, color .15s; }
.lk-clip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); padding-right: 28px; }
.lk-clipx { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .95rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.lk-clipx[hidden] { display: none; }
.lk-chathead { align-items: center; margin-bottom: 8px; }
.lk-chathead h2 { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lk-chathead .uly-btn { height: 36px; }

/* --- фильтры, отчёты, планинг, реквизиты --- */
.lk-filt { margin-bottom: 12px; align-items: center; }
.lk-reps { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--gap); }
.lk-rep { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.lk-rep > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.lk-rep > summary::-webkit-details-marker { display: none; }
.lk-rep > summary::before { content: '▸'; color: var(--muted); margin-right: 8px; transition: transform .15s; display: inline-block; }
.lk-rep[open] > summary::before { transform: rotate(90deg); }
.lk-rep > summary:hover { background: rgba(255,255,255,.03); }
.lk-rep__name { font-weight: 600; flex: 1; min-width: 0; }
.lk-rep__sum { display: flex; align-items: center; gap: 10px; flex: none; }
.lk-rep__sum b { color: var(--accent); }
.lk-rep__body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.lk-rep__info { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.lk-rep__info li { padding-left: 12px; border-left: 2px solid var(--line-2); }
.lk-rep__tbl td, .lk-rep__tbl th { padding: 6px 10px; white-space: nowrap; }
.lk-rep__tbl td:nth-child(3) { white-space: normal; }
.lk-rep__tbl th:nth-child(n+4), .lk-rep__tbl td:nth-child(n+4) { text-align: right; }
.lk-rep__pay { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.lk-rep__foot p { margin: 0 0 6px; }
.lk-rep__foot p:first-child { font-weight: 600; font-size: 1.02rem; }
.lk-rep__total { font-size: 1.05rem; }
.lk-rep__total b { color: var(--accent); }
.lk-ag { margin-top: 12px; }
.lk-ag__day { margin: 0 0 6px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); font-size: .85rem; color: var(--accent); }
.lk-ag__row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: .9rem; align-items: baseline; }
.lk-ag__row:last-child { border-bottom: 0; }
.lk-ag__t { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.lk-ag__arrow { color: var(--muted); margin: 0 8px; }
.lk-seg { display: flex; gap: 10px; flex-wrap: wrap; }
.lk-seg label { flex: 1; min-width: 150px; margin: 0; cursor: pointer; }
.lk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.lk-seg span { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 600; }
.lk-seg small { font-weight: 400; color: var(--muted); font-size: .76rem; }
.lk-seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.lk-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* кнопка «Вернуться в свой кабинет» */
.lk-impbar .uly-btn, .lk-impbar .uly-btn:hover { height: 30px; padding: 0 14px; border: 1px solid var(--accent-ink); font-weight: 600; transition: background .15s, color .15s; }
.lk-impbar .uly-btn { background: transparent; color: var(--accent-ink) !important; }
.lk-impbar .uly-btn:hover { background: var(--accent-ink); color: var(--text) !important; }

/* --- сегодняшний день в расписании --- */
.lk-sched th.is-today { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.lk-sched th.is-today em { display: block; font-style: normal; font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.lk-sched td.is-today { background: rgba(217,176,143,.07); box-shadow: inset 1px 0 0 rgba(217,176,143,.28), inset -1px 0 0 rgba(217,176,143,.28); }

/* --- галочки доставки --- */
.lk-tick { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--muted); }
.lk-tick.is-read { color: #6fb7ff; }
.lk-msg.me small { display: flex; align-items: center; justify-content: flex-end; }

/* --- вложения: превью и скачивание --- */
.lk-files { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 8px; }
.lk-photo { display: flex; flex-direction: column; gap: 6px; max-width: 220px; }
.lk-thumb { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-2); line-height: 0; cursor: zoom-in; }
.lk-thumb img { width: 100%; max-height: 180px; object-fit: cover; display: block; transition: transform .2s; }
.lk-thumb:hover img { transform: scale(1.03); }
.lk-photo.is-gone .lk-thumb, .lk-photo.is-gone .lk-file { display: none; }
.lk-photo.is-gone::after { content: 'Фото больше недоступно'; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.lk-lightbox { width: min(92vw, 1000px); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--text); overflow: hidden; }
.lk-lightbox::backdrop { background: rgba(5,10,24,.78); }
.lk-lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.lk-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }

/* --- домашние задания --- */
.lk-hwc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lk-hwc__head h2 { margin: 0 0 4px; }
.lk-hwc__who { margin: 0; font-size: .95rem; line-height: 1.5; }
.lk-hwc__who b { color: var(--text); }
.lk-pill--due { flex: none; background: var(--accent-soft); color: var(--accent); border-color: rgba(217,176,143,.4); }

/* --- переключатель ролей в меню --- */
.lk-roleswitch { margin: 4px 10px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lk-roleswitch label { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; color: var(--muted); }
.lk-roleswitch select { width: 100%; }

/* --- телефон: ничего не распирает страницу --- */
.lk-shell, .lk-main, .lk-page, .lk-card, .lk-grid > * { min-width: 0; max-width: 100%; }
.lk-scroll { max-width: 100%; -webkit-overflow-scrolling: touch; }

/* --- сообщения на телефоне: диалог занимает экран, список — лентой сверху --- */
@media (max-width: 980px) {
  .lk-chat.has-cur .lk-peers { display: flex; flex-wrap: nowrap; gap: 6px; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 6px; -webkit-overflow-scrolling: touch; }
  .lk-chat.has-cur .lk-peers a { flex: none; min-width: 120px; max-width: 170px; padding: 6px 10px; }
  .lk-chat.has-cur .lk-peers a small { display: none; }
  .lk-chat.has-cur .lk-msgs { max-height: none; height: calc(100svh - 330px); min-height: 260px; }
  .lk-chathead { flex-wrap: nowrap; gap: 8px; }
  .lk-chathead h2 { font-size: 1rem; flex: 1; min-width: 0; }
  .lk-chathead .uly-btn { height: 32px; padding: 0 10px; font-size: .78rem; flex: none; }
  .lk-compose .lk-clip { min-width: 40px; height: 40px; }
  .lk-compose textarea, .lk-compose .uly-btn { height: 40px; min-height: 40px; }
  .lk-pagehead { flex-wrap: wrap; }
  .lk-pagehead h1 { font-size: 1.35rem; }
  .lk-headact { flex-wrap: wrap; }
  .lk-toasts { top: 8px; }
  .lk-drawer { width: 100vw; }
}

/* --- телефон: таблица расписания и отчёты --- */
.lk-sched td, .lk-sched th:not(.lk-sched__n) { min-width: 118px; }
.lk-sched .lk-sched__n { position: sticky; left: 0; z-index: 1; min-width: 64px; width: 64px; }
.lk-sched__l b { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
@media (max-width: 640px) {
  .lk-rep > summary { flex-wrap: wrap; row-gap: 6px; padding: 12px; }
  .lk-rep__name { flex: 1 1 100%; }
  .lk-rep__sum { flex: 1 1 100%; justify-content: space-between; }
  .lk-rep > summary::before { position: absolute; margin: 0; right: 14px; }
  .lk-rep { position: relative; }
}
@media (max-width: 760px) { .lk-sched { min-width: 960px; } .lk-sched .lk-sched__n { width: 64px; } }

/* --- вход: «Забыли пароль» --- */
.lk-forgot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.lk-forgot p { margin: 0; }
.uly-btn.lk-btn-blue { background: #2f6fe0; border-color: #2f6fe0; color: #fff !important; }
.uly-btn.lk-btn-blue:hover { background: #4a86f0; border-color: #4a86f0; }
