/* Живое демо платформы: «сайт внутри сайта». Все классы с префиксом tp-.
   Экраны повторяют TutorPlatform (светлый интерфейс, Onest, синий #2f5bff), рамка окна остается в языке страницы.
   Слои «это можно нажимать»: вкладки как настоящие кнопки с иконками, подсказка со стрелкой, призрачный курсор,
   пульс на следующей вкладке и на главной кнопке экрана. До 700 px вместо окна превью и демо на весь экран. */

.tp { --tp-w: min(1320px, 100vw - 72px); --tp-h: clamp(600px, 80vh, 780px); position: relative; padding-top: 62px; }
.platform .head { margin-bottom: clamp(18px, 2vw, 30px); }
.tp-stage.winwrap { width: var(--tp-w); margin-inline: calc((100% - var(--tp-w)) / 2); }
.tp-win .win-bar { min-height: 42px; }
.tp-win .win-bar .tp-demo { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-t); color: var(--ink-3); }
.tp-win .win-bar .tp-demo b { font-weight: 600; color: #2b4fd8; background: #e6ecff; padding: 5px 9px; border-radius: 8px; }
.tp-reset { cursor: pointer; border: 0; background: none; padding: 6px 4px; font: 500 13px/1 var(--f-t); color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.tp-view { position: relative; height: var(--tp-h); background: #f7f7f4; }
.tp-view noscript img { width: 100%; height: auto; }
html:not(.js) .tp-view { height: auto; }
html:not(.js) .tp { padding-top: 0; }

/* ---------- Вкладки: настоящие кнопки ---------- */
.tp .tp-tabs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: max-content; max-width: var(--tp-w); margin: 0 0 22px 50%; translate: -50% 0; padding: 6px; border-radius: 22px; background: rgba(4, 22, 110, .26); border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 50px -30px rgba(3, 18, 96, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tp .tp-tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 13px; border-radius: 16px; font: 650 16px/1 var(--f-d); letter-spacing: -.005em; color: #fff; cursor: pointer; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); border: 1px solid rgba(255, 255, 255, .32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(3, 18, 96, .18), 0 3px 0 -1px rgba(3, 18, 96, .28); transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.tp .tp-tabs button .tp-ic { width: 19px; height: 19px; stroke-width: 1.9; opacity: .9; }
@media (hover: hover) {
  .tp .tp-tabs button:not([aria-selected="true"]):hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .16)); border-color: rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 22px -12px rgba(3, 18, 96, .8); }
}
.tp .tp-tabs button:active { transform: translateY(1px) scale(.97); box-shadow: inset 0 2px 4px rgba(3, 18, 96, .25); }
.tp .tp-tabs button[aria-selected="true"] { color: var(--sky-1); background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28), 0 14px 26px -12px rgba(3, 18, 96, .9), inset 0 -2px 0 rgba(22, 80, 220, .14); }
.tp .tp-tabs button[aria-selected="true"] .tp-ic { color: var(--sky-1); opacity: 1; }
.tp .tp-tabs button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
/* Маячок на следующей вкладке, пока человек ничего не нажал */
.tp-beacon::after { content: ""; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px #fff; }
@media (prefers-reduced-motion: no-preference) {
  .tp-beacon::before { content: ""; position: absolute; inset: -5px; border-radius: 20px; border: 2px solid var(--amber); animation: tp-beacon 1.8s cubic-bezier(.22, 1, .36, 1) infinite; pointer-events: none; }
  @keyframes tp-beacon { 0% { opacity: .9; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.12); } }
}
.tp.is-tried .tp-beacon::before, .tp.is-tried .tp-beacon::after { display: none; }

/* ---------- Подсказка над вкладками и призрачный курсор ---------- */
.tp-hint { position: absolute; z-index: 3; top: 0; left: 50%; translate: -50% 0; display: flex; align-items: flex-start; gap: 4px; color: #fff; pointer-events: none; white-space: nowrap; transition: opacity .45s, translate .45s var(--ease); }
.tp-hint__t { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); font: italic 500 21px/1.1 "EB Garamond", Georgia, serif; letter-spacing: .005em; color: #fff; box-shadow: 0 12px 30px -18px rgba(3, 18, 96, .9); }
.tp-hint__t .tp-cur { width: 18px; height: 21px; flex: none; }
.tp-hint__arrow { width: 54px; height: 44px; margin-top: 16px; color: var(--amber); flex: none; }
html.js .tp.is-tried > .tp-hint { opacity: 0; translate: -50% -6px; transition: opacity .45s, translate .45s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .tp:not(.is-tried) .tp-hint__arrow { animation: tp-nudge 1.6s ease-in-out infinite; }
  @keyframes tp-nudge { 50% { transform: translate(3px, 4px); } }
}
html.js .tp > .tp-ghost { position: absolute; z-index: 30; left: 0; top: 0; width: 30px; height: 34px; pointer-events: none; opacity: 0; transition: transform 1s cubic-bezier(.55, 0, .2, 1), opacity .35s; filter: drop-shadow(0 8px 10px rgba(3, 18, 96, .45)); }
.tp-ghost .tp-cur { position: absolute; left: -4px; top: -3px; width: 30px; height: 34px; transition: transform .14s; transform-origin: 4px 3px; }
.tp-ghost i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 210, 94, .55); opacity: 0; }
html.js .tp > .tp-ghost.is-on { opacity: 1; }
html.js .tp > .tp-ghost.is-gone { opacity: 0; }
.tp-ghost.is-press .tp-cur { transform: scale(.82); }
.tp-ghost.is-press i { animation: tp-click .5s ease-out; }
@keyframes tp-click { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }

/* Польза раздела над окном и «попробуй» под ним */
.tp-ben { position: relative; z-index: 2; max-width: 980px; margin: 0 auto clamp(26px, 2.6vw, 38px); text-align: center; font: 500 clamp(17px, 1.45vw, 20px)/1.35 var(--f-d); color: rgba(255, 255, 255, .9); text-wrap: balance; }
.tp-ben b { font-weight: 750; color: #fff; }
.tp .win-cap { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 70ch; margin-inline: auto; font-size: 16px; color: rgba(255, 255, 255, .9); text-wrap: balance; }
.tp .win-cap .tp-cur { width: 16px; height: 19px; flex: none; }

/* ---------- Приложение ---------- */
.tp-app {
  --t: #121722; --mu: #5f6675; --fa: #8b909b; --bd: #e4e4df; --bd2: #d3d5d7; --bg: #f6f6f3; --sf: #fff;
  --bl: #2f5bff; --bl2: #2449db; --bls: #eef1ff; --gr: #1f8a62; --grs: #e7f6ef; --am: #a96c18; --ams: #fff4dc;
  --rd: #d6455a; --rds: #fff0f1; --pu: #715cc7; --pus: #f1eeff;
  position: absolute; inset: 0; overflow: hidden; color: var(--t); background: var(--bg);
  font: 400 15px/1.45 "Onest", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: normal; text-align: left;
}
.tp-app :focus-visible { outline: 2px solid var(--bl); outline-offset: 2px; border-radius: 10px; }
.tp-app ::selection { background: #cfd9ff; color: var(--t); }
.tp-app h3, .tp-app h4, .tp-app h5 { margin: 0; font: inherit; letter-spacing: 0; }
.tp-app button { cursor: pointer; text-align: inherit; color: inherit; font: inherit; }
.tp-app ul, .tp-app ol { margin: 0; padding: 0; list-style: none; }
.tp-app p { margin: 0; }
.tp-app [hidden] { display: none !important; }
.tp-app input, .tp-app textarea, .tp-app select { font: inherit; color: inherit; }
.tp-app b { font-weight: 650; }
.tp-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tp-screen { position: absolute; inset: 0; overflow: hidden auto; padding: 26px 30px 40px; display: none; scrollbar-width: thin; scrollbar-color: #cfd1d6 transparent; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.tp-screen.is-on { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .tp-screen.is-on { animation: tp-in .3s cubic-bezier(.22, 1, .36, 1); }
  @keyframes tp-in { from { opacity: 0; transform: translateY(6px); } }
}

.tp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.tp-h1 { font-size: 28px !important; font-weight: 700 !important; line-height: 1.12 !important; letter-spacing: -.028em !important; }
.tp-h1--xl { font-size: clamp(30px, 2.7vw, 36px) !important; }
.tp-h2 { font-size: 21px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: -.02em !important; }
.tp-h3 { font-size: 17.5px !important; font-weight: 680 !important; line-height: 1.25 !important; letter-spacing: -.014em !important; }
.tp-sub { margin-top: 6px !important; color: var(--mu); font-size: 15px; }
.tp-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bl); margin-bottom: 5px !important; }
.tp-mu { color: var(--mu); }
.tp-sm { font-size: 13.5px; }
.tp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-sp { margin-left: auto; }
.tp-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: #efefea; font-size: 13px; font-weight: 700; color: #474e5c; }

.tp-card { background: var(--sf); border: 1px solid var(--bd); border-radius: 18px; box-shadow: 0 1px 2px rgba(18, 23, 34, .04), 0 16px 36px -24px rgba(42, 46, 56, .28); }
.tp-card__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.tp-app .tp-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 0; color: var(--bl); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tp-app .tp-link .tp-ic { width: 16px; height: 16px; }
.tp-app .tp-link:hover { color: var(--bl2); text-decoration: underline; text-underline-offset: 3px; }

.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--bd2); background: #fff; font-size: 14.5px !important; font-weight: 600 !important; white-space: nowrap; box-shadow: 0 1px 0 rgba(18, 23, 34, .05), inset 0 -1px 0 rgba(18, 23, 34, .04); transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.tp-btn:hover { background: #f6f6f3; border-color: #b9bcc2; }
.tp-btn:active { transform: scale(.97); }
.tp-btn--pri { background: var(--bl); border-color: var(--bl); color: #fff !important; box-shadow: 0 10px 20px -10px rgba(47, 91, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tp-btn--pri:hover { background: var(--bl2); border-color: var(--bl2); box-shadow: 0 14px 24px -10px rgba(47, 91, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tp-btn--ok { background: var(--gr); border-color: var(--gr); color: #fff !important; box-shadow: 0 10px 20px -10px rgba(31, 138, 98, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.tp-btn--ok:hover { background: #18734f; border-color: #18734f; }
.tp-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13.5px !important; border-radius: 10px; }
.tp-btn--lg { min-height: 50px; padding: 0 22px; font-size: 16px !important; border-radius: 14px; }
.tp-btn--ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--mu) !important; }
.tp-btn--ghost:hover { background: rgba(54, 59, 66, .06); border-color: transparent; }
.tp-btn .tp-ic { width: 18px; height: 18px; }
.tp-btn[aria-pressed="true"] { background: var(--bls); border-color: #b9c6ff; color: var(--bl2) !important; }
.tp-btn.is-busy { opacity: .75; pointer-events: none; }

/* Главная кнопка экрана мягко пульсирует, пока человек ничего не нажал на этом экране */
.tp-try { position: relative; }
.tp-try::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid rgba(47, 91, 255, .55); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .tp-try::after { animation: tp-ring 1.9s cubic-bezier(.22, 1, .36, 1) infinite; }
  @keyframes tp-ring { 0% { opacity: .95; transform: scale(.98); } 70%, 100% { opacity: 0; transform: scale(1.06); } }
}
.tp-screen.is-touched .tp-try::after { display: none; }

.tp-st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 650; white-space: nowrap; background: #f0f0ec; color: #535a68; }
.tp-st .tp-ic { width: 15px; height: 15px; stroke-width: 2.1; }
.tp-st--gr { background: var(--grs); color: var(--gr); }
.tp-st--am { background: var(--ams); color: var(--am); }
.tp-st--bl { background: var(--bls); color: var(--bl2); }
.tp-st--rd { background: var(--rds); color: #c0384c; }
.tp-st--pu { background: var(--pus); color: #5d48b8; }

.tp-ava { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; background: #e8eeff; color: #2b4fd8; }
.tp-ava--lg { width: 60px; height: 60px; border-radius: 18px; font-size: 19px; }
.tp-ava--sm { width: 32px; height: 32px; border-radius: 10px; font-size: 11.5px; }
.tp-c-green { background: #e4f4ec; color: #1f7556; }
.tp-c-purple { background: #efeaff; color: #5d48b8; }
.tp-c-amber { background: #fff0d6; color: #93600f; }
.tp-c-red { background: #ffe9e6; color: #b5443c; }
.tp-c-teal { background: #dff3f5; color: #1c6f7b; }

.tp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bd2); background: #fff; font-size: 14px !important; font-weight: 600 !important; color: #3a4150 !important; white-space: nowrap; box-shadow: 0 1px 0 rgba(18, 23, 34, .05); transition: border-color .15s, background .15s; }
.tp-chip:hover { border-color: #9fb0f5; background: #fafbff; }
.tp-chip i { font-style: normal; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: #efefeb; color: #535a68; }
.tp-chip[aria-pressed="true"] { background: #121722; border-color: #121722; color: #fff !important; }
.tp-chip[aria-pressed="true"] i { background: rgba(255, 255, 255, .18); color: #fff; }
.tp-dot { width: 8px; height: 8px; border-radius: 50%; background: #b8bcc6; }
.tp-dot--sent { background: #e0a23a; }
.tp-dot--signed { background: var(--gr); }

.tp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.tp-facts > div { padding: 11px 13px; border-radius: 12px; background: #f6f6f3; }
.tp-facts dt { font-size: 12px; color: var(--fa); margin-bottom: 2px; }
.tp-facts dd { margin: 0; font-size: 14.5px; font-weight: 620; }
.tp-field { width: 100%; padding: 11px 13px; border: 1px solid var(--bd); border-radius: 12px; background: #fff; font-size: 16px; line-height: 1.45; resize: vertical; }
.tp-field:focus { outline: 0; border-color: #9db0ff; box-shadow: 0 0 0 3px rgba(47, 91, 255, .12); }

/* Подсказка и окна поверх экрана */
.tp-toast { position: absolute; left: 50%; top: 14px; z-index: 30; max-width: min(580px, calc(100% - 28px)); padding: 12px 18px; border-radius: 14px; background: #121722; color: #fff; font-size: 14.5px; font-weight: 550; text-align: center; box-shadow: 0 18px 40px -14px rgba(18, 23, 34, .6); transform: translate(-50%, -16px); opacity: 0; pointer-events: none; transition: opacity .22s, transform .3s cubic-bezier(.22, 1, .36, 1); }
.tp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.tp-modal { position: absolute; inset: 0; z-index: 20; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 18px; background: rgba(18, 23, 34, .42); }
.tp-modal[hidden] { display: none; }
.tp-sheet { position: relative; width: min(580px, 100%); max-height: 100%; overflow: hidden auto; padding: 26px 26px 22px; border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -30px rgba(18, 23, 34, .55); }
@media (prefers-reduced-motion: no-preference) {
  .tp-modal:not([hidden]) { animation: tp-fade .2s; }
  .tp-modal:not([hidden]) .tp-sheet { animation: tp-pop .3s cubic-bezier(.22, 1, .36, 1); }
  @keyframes tp-fade { from { opacity: 0; } }
  @keyframes tp-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
}
.tp-x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #f1f1ee; color: var(--mu); }
.tp-x:hover { background: #e7e7e3; }
.tp-who { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.tp-who > div { display: grid; min-width: 0; }
.tp-who span { color: var(--mu); font-size: 13.5px; }
.tp-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tp-plan { margin-top: 14px !important; padding: 13px 15px; border-radius: 13px; background: var(--bls); color: #26357d; font-size: 14.5px; }
.tp-note-demo { margin-top: 14px !important; font-size: 13px; color: var(--fa); }
.tp-form { display: grid; gap: 14px; margin-top: 16px; }
.tp-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--mu); }
.tp-form select { height: 46px; padding: 0 12px; border: 1px solid var(--bd); border-radius: 12px; background: #fff; font-size: 16px; color: var(--t); }
.tp-form__sum { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 15px; border-radius: 13px; background: var(--bls); font-weight: 600; }
.tp-form__sum b { font-size: 22px; font-weight: 700; }

/* ---------- Кто что делает: ты и платформа ---------- */
.tp-roles { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; margin: 0 0 16px; }
.tp-roles p { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--bd); font-size: 14px; line-height: 1.4; color: #3a4150; }
.tp-roles p > span:last-child { display: block; min-width: 0; }
.tp-roles b { margin-right: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mu); }
.tp-roles__ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; background: #f0f0ec; color: #474e5c; }
.tp-roles__ic .tp-ic { width: 17px; height: 17px; }
.tp-roles--auto { background: linear-gradient(180deg, #f3f5ff, #fbfbff) !important; border-color: #cfd8ff !important; }
.tp-roles--auto b { color: var(--bl2); }
.tp-roles--auto .tp-roles__ic { background: #e3e9ff; color: var(--bl); }
.tp-hwd .tp-roles { margin: 14px 0 0; }

/* ---------- Главная ---------- */
.tp-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.tp-next { display: flex; align-items: center; gap: 14px; min-width: 320px; padding: 13px 16px 13px 13px; border-radius: 18px; border: 1px solid #c9d3ff; background: #fff; box-shadow: 0 14px 30px -20px rgba(47, 91, 255, .55); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tp-next:hover { transform: translateY(-2px); border-color: #9fb0f5; box-shadow: 0 18px 34px -18px rgba(47, 91, 255, .65); }
.tp-next__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bl); color: #fff; }
.tp-next > span:nth-child(2) { display: grid; flex: 1; }
.tp-next .tp-eyebrow { margin-bottom: 2px !important; }
.tp-next b { font-size: 16.5px; }
.tp-next small { font-size: 13.5px; color: var(--mu); }
.tp-next > .tp-ic:last-child { color: var(--bl); }
.tp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tp-tile { display: grid; align-content: start; gap: 2px; padding: 16px 18px 15px; text-align: left; }
.tp-tile small { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--mu); }
.tp-tile small .tp-ic { width: 17px; height: 17px; }
.tp-tile b { font-size: 29px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tp-tile span { display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--mu); }
.tp-tile span .tp-ic { width: 16px; height: 16px; margin-left: auto; color: var(--fa); transition: transform .2s; }
button.tp-tile { transition: transform .2s, box-shadow .2s, border-color .2s; }
button.tp-tile:hover { transform: translateY(-2px); border-color: #c3cdf5; box-shadow: 0 20px 36px -22px rgba(47, 91, 255, .5); }
button.tp-tile:hover span .tp-ic { transform: translateX(3px); color: var(--bl); }
.tp-tile--gr small .tp-ic, .tp-tile--gr b { color: var(--gr); }
.tp-tile--am small .tp-ic { color: var(--am); }
.tp-tile--rd small .tp-ic { color: #c0384c; }
.tp-tile--bl small .tp-ic { color: var(--bl); }
@media (prefers-reduced-motion: no-preference) {
  .tp-tile.is-bump b { animation: tp-bump .7s cubic-bezier(.3, 1.5, .5, 1); display: inline-block; }
  @keyframes tp-bump { 30% { transform: scale(1.1); } }
}
.tp-grid--home { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.tp-lessons li + li, .tp-queue li + li { border-top: 1px solid #eeeeea; }
.tp-lesson { display: grid; grid-template-columns: 108px 4px minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; width: 100%; padding: 13px 20px; border: 0; background: none; transition: background .15s; }
.tp-lesson:hover, .tp-qi:hover { background: #f6f7fb; }
.tp-lesson:hover > .tp-ic, .tp-qi:hover > .tp-ic:last-child { color: var(--bl); transform: translateX(2px); }
.tp-lessons li:last-child .tp-lesson, .tp-queue li:last-child .tp-qi { border-radius: 0 0 18px 18px; }
.tp-lesson__when { display: grid; font-size: 13.5px; color: var(--mu); }
.tp-lesson__when b { font-size: 14.5px; color: var(--t); }
.tp-lesson__when i { font-style: normal; }
.tp-lesson__bar { align-self: stretch; border-radius: 4px; background: var(--bl); }
.tp-lesson__bar.tp-b-amber { background: #d99a2b; }
.tp-lesson__bar.tp-b-red { background: #d7695c; }
.tp-lesson__bar.tp-b-green { background: #3f9d74; }
.tp-lesson__what { display: grid; min-width: 0; }
.tp-lesson__what b { font-size: 15.5px; }
.tp-lesson__what span { font-size: 13.5px; color: var(--mu); }
.tp-lesson > .tp-ic, .tp-qi > .tp-ic:last-child { color: var(--fa); width: 18px; height: 18px; transition: transform .2s, color .2s; }
.tp-qi { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; border: 0; background: none; transition: background .15s; }
.tp-qi__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bls); color: var(--bl); }
.tp-qi__ic.tp-q-rd { background: var(--rds); color: var(--rd); }
.tp-qi__ic.tp-q-am { background: var(--ams); color: var(--am); }
.tp-qi > span:nth-child(2) { display: grid; min-width: 0; }
.tp-qi b { font-size: 15px; }
.tp-qi small { font-size: 13.5px; color: var(--mu); }
.tp-qi__n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: #f0f0ec; font-weight: 700; font-size: 14px; }
.tp-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 20px 26px; color: var(--mu); text-align: center; }
.tp-empty .tp-ic { width: 28px; height: 28px; color: var(--gr); }
.tp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #eeeeea; }
.tp-kpis > div { padding: 13px 20px; }
.tp-kpis > div + div { border-left: 1px solid #eeeeea; }
.tp-kpis small { display: block; font-size: 13px; color: var(--mu); }
.tp-kpis b { font-size: 26px; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tp-kpis em { display: block; font-style: normal; font-size: 12.5px; color: var(--fa); }
.tp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tp-table th { padding: 11px 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fa); text-align: right; }
.tp-table td { padding: 11px 20px; border-top: 1px solid #eeeeea; text-align: right; font-variant-numeric: tabular-nums; }
.tp-table th:first-child, .tp-table td:first-child { text-align: left; font-weight: 600; }
.tp-table tbody tr:hover td { background: #fafaf7; }
.tp-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 8px; font-weight: 700; }
.tp-num--gr { background: var(--grs); color: var(--gr); }

/* ---------- Колонки ---------- */
.tp-cols { display: grid; gap: 18px; align-items: start; }
.tp-cols--students { grid-template-columns: 260px minmax(0, 1fr) 272px; }
.tp-cols--hw { grid-template-columns: 316px minmax(0, 1fr); }
.tp-cols--boards { grid-template-columns: 250px minmax(0, 1fr); }
.tp-pane { padding: 14px; }
.tp-pane__top { margin: 2px 2px 12px; }
.tp-pane__cap { display: flex; align-items: center; justify-content: space-between; margin: 14px 4px 8px !important; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fa); }
.tp-rail { display: grid; gap: 6px; }
.tp-ri { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 13px; border: 1px solid transparent; background: none; transition: background .15s, border-color .15s; }
.tp-ri:hover { background: #f4f5f9; border-color: #e3e6f0; }
.tp-ri[aria-current="true"] { background: var(--bls); border-color: #c3ceff; box-shadow: 0 8px 18px -14px rgba(47, 91, 255, .8); }
.tp-ri > span:last-child { display: grid; min-width: 0; }
.tp-ri b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-ri small { font-size: 13px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-none { padding: 14px 8px; color: var(--mu); font-size: 14px; }
.tp-search { display: flex; align-items: center; gap: 9px; padding: 0 13px; height: 44px; border: 1px solid var(--bd); border-radius: 12px; background: #fff; color: var(--fa); }
.tp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--t); }
.tp-search:focus-within { border-color: #9db0ff; box-shadow: 0 0 0 3px rgba(47, 91, 255, .12); }
.tp-chips--sm { gap: 5px; }
.tp-chips--sm .tp-chip { min-height: 32px; padding: 0 8px 0 10px; gap: 5px; font-size: 12.5px !important; }
.tp-chips--sm .tp-chip i { padding: 1px 6px; font-size: 11.5px; }

/* ---------- Ученики ---------- */
.tp-stu__top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 20px 16px; }
.tp-stu__name { display: grid; gap: 5px; flex: 1; min-width: 200px; }
.tp-stu__name .tp-row { gap: 8px; }
.tp-facts2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 20px 18px; }
.tp-facts2 > * { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 13px; background: #f6f6f3; border: 1px solid transparent; text-align: left; }
.tp-facts2 small { font-size: 12px; color: var(--mu); }
.tp-facts2 b { display: flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-facts2 b .tp-ic { width: 15px; height: 15px; margin-left: auto; flex: none; color: var(--fa); }
.tp-fact { transition: border-color .15s, transform .2s; }
.tp-fact:hover { border-color: #c3cdf5; transform: translateY(-1px); }
.tp-fact--gr { background: var(--grs); }
.tp-fact--gr b { color: var(--gr); }
.tp-fact--rd { background: var(--rds); }
.tp-fact--rd b { color: #c0384c; }
.tp-fact--am { background: var(--ams); }
.tp-fact--am b { color: #8a5810; }
.tp-fact--pu { background: var(--pus); }
.tp-fact--pu b { color: #5d48b8; }
.tp-fact--bl { background: var(--bls); }
.tp-fact--bl b { color: var(--bl2); }
.tp-tabs2 { display: flex; gap: 4px; padding: 0 12px; border-block: 1px solid #eeeeea; overflow-x: auto; scrollbar-width: none; }
.tp-tabs2::-webkit-scrollbar { display: none; }
.tp-tabs2 button { position: relative; min-height: 48px; padding: 0 12px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--mu); white-space: nowrap; }
.tp-tabs2 button:hover { color: var(--t); }
.tp-tabs2 button i { font-style: normal; margin-left: 6px; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #efefeb; color: #535a68; }
.tp-tabs2 button[aria-selected="true"] { color: var(--bl2); }
.tp-tabs2 button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--bl); }
.tp-stu__body { padding: 18px 20px 22px; min-height: 230px; }
.tp-list { display: grid; gap: 10px; }
.tp-li { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--bd); border-radius: 14px; background: #fff; }
.tp-li > .tp-ic:first-child { color: var(--am); }
.tp-li > span:not(.tp-st) { display: grid; flex: 1; min-width: 0; }
.tp-li b { font-size: 15px; font-weight: 600; }
.tp-li small { font-size: 13px; color: var(--fa); }
button.tp-li { width: 100%; transition: border-color .15s; }
button.tp-li:hover { border-color: #b9c6ff; }
.tp-newnote { display: grid; gap: 10px; margin-bottom: 14px; }
.tp-side { display: grid; gap: 14px; align-content: start; }
.tp-step { padding: 16px; }
.tp-step__next { display: grid; gap: 4px; margin: 10px 0 12px; padding: 13px; border-radius: 13px; background: #f6f6f3; }
.tp-step__next small { color: var(--mu); font-size: 13px; }
.tp-step__go { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 4px; border: 0; border-top: 1px solid #eeeeea; background: none; font-size: 14.5px; font-weight: 600; }
.tp-step__go:hover { color: var(--bl2); }
.tp-step__go .tp-ic:first-child { color: var(--bl); }
.tp-step__go .tp-ic:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--fa); }
.tp-contacts { display: grid; gap: 9px; margin: 10px 0 0; }
.tp-contacts div { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.tp-contacts dt { display: flex; align-items: center; gap: 8px; color: var(--mu); }
.tp-contacts dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; }
.tp-contacts .tp-ic { width: 17px; height: 17px; }

/* ---------- Оплаты ---------- */
.tp-paybox { margin-bottom: 18px; }
.tp-paybox > .tp-card__h { flex-wrap: wrap; }
.tp-cols--pay { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; border-top: 1px solid #eeeeea; }
.tp-rail--pay { padding: 10px; gap: 4px; border-right: 1px solid #eeeeea; align-self: stretch; }
.tp-pay { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 14px; border: 1px solid transparent; background: none; transition: background .15s, border-color .15s; }
.tp-pay:hover { background: #f6f7fb; }
.tp-pay[aria-current="true"] { background: var(--bls); border-color: #c3ceff; }
.tp-pay > span:nth-child(2) { display: grid; min-width: 0; }
.tp-pay b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-pay small { font-size: 13px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-pay > span:last-child { display: grid; justify-items: end; gap: 4px; }
.tp-pay__sum { font-weight: 700; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.tp-payd { padding: 18px 20px 20px; min-width: 0; }
.tp-payd__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin: 16px 0 4px; }
.tp-payd dl { display: grid; gap: 10px; margin: 0; }
.tp-payd dl div { flex-direction: column; gap: 0 !important; }
.tp-payd dl div { display: flex; gap: 12px; font-size: 14.5px; }
.tp-payd dt { font-size: 12.5px; color: var(--mu); }
.tp-payd dd { margin: 0; font-weight: 620; }
.tp-receipt { display: grid; gap: 6px; padding: 14px 16px 16px; border-radius: 14px; background: #f6f6f3; border: 1px dashed #cfd1d6; font-size: 13.5px; }
.tp-receipt small { display: flex; align-items: center; gap: 6px; }
.tp-receipt small .tp-ic { width: 15px; height: 15px; }
.tp-receipt b { font-size: 22px; letter-spacing: -.02em; }
.tp-receipt span { display: flex; justify-content: space-between; gap: 10px; color: var(--mu); }
.tp-receipt span em { font-style: normal; color: var(--t); font-weight: 600; }
.tp-payd .tp-waitbox { justify-items: start; text-align: left; }
.tp-due { margin-bottom: 18px; border-color: #ecdcb8; background: #fbf4e4; }
.tp-due .tp-card__h { align-items: flex-start; padding-bottom: 8px; }
.tp-due .tp-eyebrow { color: var(--am); }
.tp-due__sub { margin-top: 2px !important; color: #7a6a45; }
.tp-due__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 0 22px; padding: 0 20px 12px; }
.tp-due__i { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #eadfc4; }
.tp-due__i > span:not(.tp-ava) { display: grid; flex: 1; min-width: 0; }
.tp-due__i small { font-size: 13px; color: #7a6a45; }
.tp-due--ok { background: var(--grs); border-color: #cfe9dc; }
.tp-due--ok .tp-card__h { align-items: center; padding-bottom: 18px; }
.tp-inv { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 20px; border-top: 1px solid #eeeeea; }
.tp-inv > span:nth-child(2) { display: grid; flex: 1; min-width: 150px; }
.tp-inv small { font-size: 13px; color: var(--mu); }
.tp-inv__sum { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-inv:last-child { padding-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .tp-payd.is-flash, .tp-inv.is-flash { animation: tp-flash 1.4s ease-out; }
  @keyframes tp-flash { 0%, 30% { box-shadow: inset 0 0 0 3px rgba(31, 138, 98, .45); background: var(--grs); } }
}

/* ---------- Домашки ---------- */
.tp-hw { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; width: 100%; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--bd); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tp-hw:hover { border-color: #b9c6ff; box-shadow: 0 10px 20px -16px rgba(47, 91, 255, .7); }
.tp-hw[aria-current="true"] { background: var(--bls); border-color: #b9c6ff; box-shadow: 0 8px 18px -14px rgba(47, 91, 255, .8); }
.tp-hw > span:not(.tp-st) { display: grid; min-width: 0; }
.tp-hw b { font-size: 14.5px; line-height: 1.3; }
.tp-hw small { font-size: 13px; color: var(--mu); }
.tp-hw .tp-st { grid-column: 2; justify-self: start; margin-top: 3px; }
.tp-pane .tp-chips { margin-top: 2px; }
.tp-hwd { padding: 20px 22px 22px; }
.tp-hwd__top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.tp-hwd__top > div:first-child { flex: 1; min-width: 200px; }
.tp-hwd .tp-h1 { font-size: 25px !important; }
.tp-hwd__who { margin-top: 12px; }
.tp-task { margin: 14px 0 18px; padding: 13px 16px; border-radius: 14px; background: #f6f6f3; font-size: 15px; }
.tp-task small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fa); }
.tp-hwgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tp-hwgrid__r { display: grid; gap: 14px; min-width: 0; }
.tp-cap3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px !important; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fa); }
.tp-cap3 .tp-ic { width: 16px; height: 16px; }
.tp-cap3 small { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.tp-paper { position: relative; padding: 16px 18px 18px; border-radius: 6px 16px 16px 6px; background: #fffef8 linear-gradient(#e9eef8 1px, transparent 1px) 0 15px / 100% 32px; border: 1px solid #e6e2d2; border-left: 3px solid #f1b9b9; box-shadow: 0 16px 30px -22px rgba(42, 46, 56, .4); font-size: 16.5px; line-height: 32px; color: #1d2a6b; }
.tp-paper__n { font-weight: 700; color: #121722; }
.tp-ln { position: relative; display: block; padding-right: 30px; }
.tp-ln--bad { background: linear-gradient(transparent 62%, rgba(214, 69, 90, .26) 62%, rgba(214, 69, 90, .26) 88%, transparent 88%); }
.tp-mk { position: absolute; right: 0; top: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; }
.tp-mk--ok { background: var(--gr); }
.tp-mk--no { background: var(--rd); }
.tp-mk .tp-ic { width: 14px; height: 14px; stroke-width: 3; }
.tp-fix { display: block; margin: 2px 0 6px; padding: 7px 11px; border-radius: 10px; background: var(--rds); color: #a3323c; font: 500 14px/1.4 "Onest", sans-serif; }
.tp-paper--essay { font-size: 16px; line-height: 32px; }
.tp-comma { display: inline-block; min-width: 14px; margin: 0 1px; text-align: center; font-weight: 800; color: #fff; background: var(--rd); border-radius: 5px; line-height: 22px; }
.tp-wavy { text-decoration: underline wavy var(--rd); text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .tp-mk, .tp-comma, .tp-fix { animation: tp-pop2 .4s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--d, 0) * 110ms); }
  @keyframes tp-pop2 { from { opacity: 0; transform: scale(.4); } }
  .tp-air > * { animation: tp-in .4s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--d, 0) * 120ms); }
}
.tp-ai { display: grid; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid #cfd8ff; background: linear-gradient(180deg, #f3f5ff, #fbfbff); }
.tp-ai__h { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.tp-ai__h .tp-ic { color: var(--bl); }
.tp-ai > p { font-size: 14.5px; color: #3a4150; }
.tp-ai > .tp-btn:not(.tp-btn--sm) { width: 100%; }
.tp-ai--done { border-color: #bfe3d1; background: linear-gradient(180deg, #effaf4, #fbfefc); }
.tp-ai--done .tp-ai__h .tp-ic { color: var(--gr); }
.tp-ai--rework { border-color: #f0d9a8; background: linear-gradient(180deg, #fff8ea, #fffdf8); }
.tp-ai--rework .tp-ai__h .tp-ic { color: var(--am); }
.tp-ai .tp-btn--sm { justify-self: start; }
.tp-airun { display: grid; gap: 8px; font-size: 14.5px; color: #3a4150; }
.tp-airun span { display: flex; align-items: center; gap: 9px; }
.tp-airun span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--bl); }
@media (prefers-reduced-motion: no-preference) {
  .tp-airun span { animation: tp-in .3s backwards; animation-delay: calc(var(--d) * 420ms); }
  .tp-airun span::before { animation: tp-pulse 1s infinite; }
  @keyframes tp-pulse { 50% { opacity: .3; } }
}
.tp-air { display: grid; gap: 8px; }
.tp-air__i { display: flex; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--bd); font-size: 14px; line-height: 1.4; }
.tp-air__i .tp-ic { margin-top: 1px; }
.tp-air__i--ok .tp-ic { color: var(--gr); }
.tp-air__i--no { border-color: #f1c4c7; background: #fff8f8; }
.tp-air__i--no .tp-ic { color: var(--rd); }
.tp-air__mark { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-radius: 12px; background: var(--bls); font-weight: 600; font-size: 14.5px; }
.tp-air__mark b { font-size: 21px; font-weight: 750; color: var(--bl2); white-space: nowrap; }
.tp-air__fb { padding: 11px 13px; border-radius: 4px 14px 14px 14px; background: #fff; border: 1px solid var(--bd); font-size: 14px; line-height: 1.5; color: #2c3340; }
.tp-air__fb small { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 650; color: var(--fa); }
.tp-rev .tp-field { min-height: 112px; font-size: 15px; }
.tp-rev__btns { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 10px; }
.tp-waitbox { display: grid; justify-items: center; gap: 6px; padding: 24px 18px; border-radius: 16px; background: #f6f6f3; text-align: center; color: var(--mu); }
.tp-waitbox > .tp-ic { width: 30px; height: 30px; }
.tp-waitbox b { color: var(--t); }
.tp-waitbox .tp-btn { margin-top: 8px; }

/* ---------- Договоры ---------- */
.tp-chips__hint { align-self: center; }
.tp-app .tp-lane { margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 680; }
.tp-lane::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #b8bcc6); }
.tp-lane i { font-style: normal; color: var(--fa); font-weight: 600; }
.tp-cts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 14px; }
.tp-ct { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; width: 100%; padding: 14px; border-radius: 18px; border: 1px solid var(--bd); background: #fff; box-shadow: 0 14px 34px -24px rgba(42, 46, 56, .3); transition: border-color .15s, transform .2s, box-shadow .2s; }
.tp-ct:hover { border-color: #b9c6ff; transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(47, 91, 255, .45); }
.tp-ct.tp-try::after { border-radius: 22px; }
.tp-ct--decl { border-color: #f1c4c7; }
.tp-doc { position: relative; align-self: start; aspect-ratio: 3 / 4; padding: 12px 9px; border-radius: 4px; background: #fff; border: 1px solid #dcdcd6; box-shadow: 3px 4px 0 -1px #f0f0ec, 3px 4px 0 0 #dcdcd6; transform: rotate(-1.5deg); }
.tp-doc::before { content: ""; display: block; height: 100%; background: repeating-linear-gradient(#c9ccd4 0 2px, transparent 2px 8px); mask: linear-gradient(90deg, #000 78%, transparent 78%); -webkit-mask: linear-gradient(90deg, #000 78%, transparent 78%); opacity: .8; }
.tp-doc__stamp { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gr); color: #fff; border: 3px solid #fff; }
.tp-doc__draft { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #9aa0ad; transform: rotate(-28deg); background: rgba(255, 255, 255, .7); }
.tp-ct__body { display: grid; gap: 10px; min-width: 0; align-content: start; }
.tp-ct__who { display: flex; align-items: center; gap: 11px; }
.tp-ct__who > span:last-child { display: grid; min-width: 0; }
.tp-ct__who b { font-size: 16.5px; font-weight: 680; }
.tp-ct__who small { font-size: 13px; color: var(--mu); }
.tp-ct__decl { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--rds); color: #a3323c; font-size: 13px; line-height: 1.4; }
.tp-ct__decl .tp-ic { width: 16px; height: 16px; margin-top: 1px; }
.tp-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tp-sig { display: grid; min-width: 0; }
.tp-sig__line { overflow: hidden; display: flex; align-items: flex-end; min-height: 34px; border-bottom: 1.5px solid #c9ccd4; font-size: 12.5px; color: var(--fa); padding-bottom: 3px; }
.tp-sig--no .tp-sig__line { border-bottom-style: dashed; }
.tp-sig--wait .tp-sig__line { border-color: #e2b45a; color: var(--am); background: linear-gradient(transparent, #fff7e6); }
.tp-ink { color: #1d2a6b; font: italic 400 23px/1 "Snell Roundhand", "Segoe Script", "Brush Script MT", "Apple Chancery", cursive; white-space: nowrap; }
.tp-sig small { margin-top: 4px; font-size: 12.5px; color: var(--mu); }
.tp-sig small b { display: block; color: var(--t); font-size: 13px; }
.tp-ct__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--fa); }
@media (prefers-reduced-motion: no-preference) {
  .tp-ink--draw { animation: tp-sign 1.1s cubic-bezier(.45, 0, .2, 1) .15s backwards; }
  @keyframes tp-sign { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }
}
.tp-sheet--wide { width: min(820px, 100%); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.tp-cdoc { flex: 1; overflow: hidden auto; padding: 30px clamp(18px, 5vw, 46px) 26px; background: #efefeb; }
.tp-cdoc__paper { max-width: 640px; margin: 0 auto; padding: clamp(22px, 4vw, 40px); background: #fff; border-radius: 4px; box-shadow: 0 20px 40px -26px rgba(18, 23, 34, .45); font-size: 15px; line-height: 1.55; }
.tp-cdoc__badge { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; font-size: 12.5px; color: var(--fa); }
.tp-cdoc__badge span:first-child { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--grs); color: var(--gr); font-weight: 650; }
.tp-cdoc__badge .tp-ic { width: 15px; height: 15px; }
.tp-cdoc__paper h4 { font-size: 19px !important; font-weight: 700 !important; text-align: center; line-height: 1.3 !important; }
.tp-cdoc__paper h5 { margin-top: 16px; font-weight: 700; font-size: 15px; }
.tp-cdoc__meta { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 14px; font-size: 13.5px; color: var(--mu); }
.tp-fill { padding: 1px 6px; border-radius: 6px; background: #eef1ff; color: #1f3bb3; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tp-cdoc .tp-sigs { margin-top: 26px; gap: 26px; }
.tp-cdoc .tp-sig__line { min-height: 46px; }
.tp-cdoc .tp-ink { font-size: 30px; }
.tp-cbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--bd); background: #fff; }
.tp-cbar p { flex: 1; min-width: 180px; font-size: 13.5px; color: var(--mu); }
.tp-decl { margin: 0 0 16px !important; padding: 13px 15px; border-radius: 12px; background: var(--rds); color: #a3323c; font-size: 14.5px; }

/* ---------- Статистика ---------- */
.tp-rnpprog { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 13px 18px; margin-bottom: 14px; }
.tp-rnpprog__bar { flex: 1; min-width: 160px; height: 8px; border-radius: 5px; background: #ebebe6; overflow: hidden; }
.tp-rnpprog__bar i { display: block; height: 100%; border-radius: 5px; background: var(--gr); transition: width .4s; }
.tp-days { padding: 14px 16px; margin-bottom: 14px; }
.tp-legend2 { display: inline-flex; gap: 12px; font-size: 12.5px; color: var(--mu); }
.tp-legend2 span { display: inline-flex; align-items: center; gap: 5px; }
.tp-legend2 i { width: 8px; height: 8px; border-radius: 50%; }
.tp-legend2 .ok { background: var(--gr); }
.tp-legend2 .miss { background: var(--rd); }
.tp-legend2 .now { background: var(--bl); }
.tp-days__strip { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; padding: 3px 3px 8px; scrollbar-width: thin; }
.tp-day { flex: 1 0 38px; display: grid; justify-items: center; gap: 1px; padding: 6px 0 7px; border-radius: 11px; border: 1.5px solid transparent; background: #f1f1ee; font-size: 15px; font-weight: 650; }
.tp-day small { font-size: 10.5px; font-weight: 600; color: var(--fa); text-transform: lowercase; }
.tp-day::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.tp-day--ok { background: #e4f4ec; color: #17604a; }
.tp-day--ok::after { background: var(--gr); }
.tp-day--miss { background: #ffe9ea; color: #a3323c; }
.tp-day--miss::after { background: var(--rd); }
.tp-day--now::after { background: var(--bl); }
.tp-day:disabled { opacity: .45; cursor: default; }
.tp-day[aria-pressed="true"] { border-color: #121722; background: #fff; color: var(--t); box-shadow: 0 6px 14px -8px rgba(18, 23, 34, .5); }
.tp-dayc { padding: 18px 20px 20px; }
.tp-sums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 16px; }
.tp-sums > div { padding: 11px 14px; border-radius: 13px; background: #f6f6f3; }
.tp-sums small { display: block; font-size: 13px; color: var(--mu); }
.tp-sums b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tp-srcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tp-src { padding: 14px; border-radius: 15px; background: #f3f3f0; border: 1px solid #e6e6e1; min-width: 0; }
.tp-src h5 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px !important; font-weight: 680 !important; font-size: 15.5px !important; }
.tp-src h5::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.tp-stp { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 14px; }
.tp-stp > span:first-child { min-width: 0; }
.tp-stp__c { display: inline-grid; grid-template-columns: 36px 46px 36px; flex: none; align-items: center; border: 1px solid var(--bd2); border-radius: 11px; background: #fff; }
.tp-stp__c button { position: relative; display: grid; place-items: center; height: 36px; border: 0; background: none; color: var(--mu); border-radius: 10px; }
.tp-stp__c button:hover { background: #f1f1ee; color: var(--t); }
.tp-stp__c output { text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.tp-stp__c .tp-ic { width: 16px; height: 16px; }
.tp-stp__c button.tp-try { color: var(--bl); }
.tp-month { margin-top: 14px; padding: 18px 20px 20px; }
.tp-funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.tp-funnel > div { position: relative; padding: 12px 14px; border-radius: 13px; background: var(--bls); }
.tp-funnel > div + div::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 2px; background: #c3ceff; }
.tp-funnel small { display: block; font-size: 13px; color: #4a5591; }
.tp-funnel b { font-size: 24px; font-weight: 700; color: #1d2a6b; font-variant-numeric: tabular-nums; }
.tp-funnel em { display: block; font-style: normal; font-size: 12.5px; color: #4a5591; }
.tp-month__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.tp-dchart { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 132px; }
.tp-dbar { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; height: 100%; padding: 0; border: 0; background: none; min-width: 0; }
.tp-dbar__col { display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 100%; border-radius: 5px; background: #f3f3ef; overflow: hidden; }
.tp-dbar__col i { display: block; width: 100%; }
.tp-dbar small { font-size: 10px; color: var(--fa); text-align: center; }
button.tp-dbar:hover .tp-dbar__col { box-shadow: 0 0 0 2px #c3ceff; }
.tp-dbar.is-sel .tp-dbar__col { box-shadow: 0 0 0 2px #121722; }
.tp-dbar.is-sel small { color: var(--t); font-weight: 700; }
.tp-dbar.is-miss .tp-dbar__col { background: #ffe9ea; }
.tp-dbar.is-future .tp-dbar__col { background: #f7f7f4; }
@media (prefers-reduced-motion: no-preference) {
  .tp-dbar__col i { animation: tp-rise .5s cubic-bezier(.22, 1, .36, 1) backwards; transform-origin: bottom; }
  @keyframes tp-rise { from { transform: scaleY(0); } }
}
.tp-table--src th, .tp-table--src td { padding: 9px 10px; }
.tp-table--src th:first-child, .tp-table--src td:first-child { padding-left: 2px; }
.tp-table--src .tp-dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }

/* ---------- Тренажер ---------- */
.tp-trprog { display: grid; gap: 7px; min-width: 220px; font-size: 14px; color: var(--mu); }
.tp-prog { display: block; height: 8px; border-radius: 5px; background: #e6e6e1; overflow: hidden; }
.tp-prog i { display: block; height: 100%; border-radius: 5px; background: var(--gr); transition: width .4s; }
.tp-exams { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tp-exam { display: grid; min-width: 150px; padding: 11px 15px; border-radius: 14px; border: 1.5px solid var(--bd); background: #fff; transition: border-color .15s; }
.tp-exam:hover { border-color: #b9c6ff; }
.tp-exam b { font-size: 16px; }
.tp-exam small { font-size: 13px; color: var(--mu); }
.tp-exam[aria-pressed="true"] { border-color: var(--bl); background: var(--bls); }
.tp-exam[aria-pressed="true"] b { color: var(--bl2); }
.tp-part { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.tp-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tp-topic { display: grid; grid-template-columns: 46px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 68px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--bd); background: #fff; box-shadow: 0 1px 0 rgba(18, 23, 34, .04); transition: border-color .15s, transform .2s, box-shadow .2s; }
.tp-topic:hover { border-color: #b9c6ff; transform: translateY(-1px); box-shadow: 0 12px 22px -16px rgba(47, 91, 255, .7); }
.tp-topic:hover > .tp-ic { color: var(--bl); }
.tp-topic__n { display: grid; place-items: center; height: 46px; border-radius: 12px; background: var(--bls); color: var(--bl2); font-weight: 700; font-size: 14px; }
.tp-topic--p2 .tp-topic__n { background: var(--pus); color: #5d48b8; }
.tp-topic.is-done .tp-topic__n { background: var(--grs); color: var(--gr); }
.tp-topic > span:nth-child(2) { display: grid; }
.tp-topic b { font-size: 14.5px; line-height: 1.25; }
.tp-topic small { font-size: 13px; color: var(--mu); }
.tp-topic > .tp-ic { width: 16px; height: 16px; color: var(--fa); }
.tp-quiz { max-width: 760px; margin: 0 auto; padding: 24px; }
.tp-quiz__q { margin: 14px 0 18px !important; font-size: 19px; line-height: 1.45; font-weight: 520; }
.tp-quiz__a { display: flex; gap: 10px; flex-wrap: wrap; }
.tp-quiz__a .tp-field { flex: 1; min-width: 150px; height: 46px; resize: none; }
.tp-quiz__res { margin-top: 14px; padding: 12px 15px; border-radius: 13px; font-weight: 600; display: flex; gap: 9px; align-items: center; }
.tp-quiz__res--ok { background: var(--grs); color: #17604a; }
.tp-quiz__res--no { background: var(--rds); color: #a3323c; }
.tp-quiz__sol { margin-top: 12px; padding: 14px 16px; border-radius: 13px; background: #f6f6f3; font-size: 15px; }
.tp-quiz__sol small { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fa); }

/* ---------- ИИ-ассистент ---------- */
.tp-screen[data-s="assistant"].is-on { display: flex; flex-direction: column; }
.tp-head--as { margin-bottom: 14px; }
.tp-as { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; }
.tp-as__side { padding: 12px; align-self: start; }
.tp-as__side .tp-btn { width: 100%; justify-content: flex-start; }
.tp-hist { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font-size: 14px; }
.tp-hist .tp-ic { width: 16px; height: 16px; color: var(--fa); }
.tp-hist span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-hist:hover { background: #f1f1ee; }
.tp-hist[aria-current="true"] { background: var(--bls); color: var(--bl2); font-weight: 600; }
.tp-hist[aria-current="true"] .tp-ic { color: var(--bl); }
.tp-as__main { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.tp-as__scroll { flex: 1; min-height: 0; overflow: hidden auto; padding: 16px clamp(14px, 3vw, 34px); scrollbar-width: thin; }
.tp-hello { max-width: 760px; margin: 0 auto; text-align: center; padding-top: 2px; }
.tp-hello > .tp-ic { width: 30px; height: 30px; margin: 0 auto 6px; color: var(--bl); }
.tp-hello > p { margin: 6px auto 16px !important; max-width: 56ch; color: var(--mu); }
.tp-acts4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.tp-act { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start; padding: 15px 16px; border-radius: 18px; border: 1px solid #cfd8ff; background: linear-gradient(160deg, #f3f5ff, #fff 60%, #fdf3fa); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tp-act:hover { transform: translateY(-2px); border-color: #9fb0f5; box-shadow: 0 14px 26px -18px rgba(47, 91, 255, .7); }
.tp-act .tp-ic { grid-row: 1 / span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #e3e9ff; color: var(--bl); }
.tp-act b { font-size: 16px; }
.tp-act small { font-size: 13.5px; color: var(--mu); line-height: 1.35; }
.tp-hello > .tp-more { max-width: none; margin: 16px 0 8px !important; text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fa); }
.tp-hello .tp-chips { justify-content: flex-start; }
.tp-hello .tp-chips { gap: 6px; }
.tp-hello .tp-chips .tp-chip { min-height: 32px; padding: 0 11px; font-size: 13px !important; color: #535a68 !important; }
.tp-chat { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.tp-msg-u { justify-self: end; max-width: 86%; padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--bl); color: #fff; }
.tp-msg-u small { display: block; font-size: 13px; opacity: .85; }
.tp-msg-a { display: grid; gap: 9px; padding: 18px 20px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--bd); min-height: 60px; font-size: 15.5px; line-height: 1.55; }
.tp-md-h { font-weight: 700; font-size: 17px; margin-top: 4px; }
.tp-md-li { position: relative; padding-left: 18px; }
.tp-md-li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--bl); }
.tp-md-q { padding: 10px 14px; border-radius: 12px; background: var(--bls); color: #26357d; }
.tp-think { display: inline-flex; align-items: center; gap: 8px; color: var(--mu); }
.tp-think i { width: 7px; height: 7px; border-radius: 50%; background: var(--bl); }
@media (prefers-reduced-motion: no-preference) {
  .tp-think i { animation: tp-pulse 1s infinite; }
  .tp-think i:nth-child(2) { animation-delay: .15s; }
  .tp-think i:nth-child(3) { animation-delay: .3s; }
  .tp-caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--bl); animation: tp-pulse .8s infinite; }
}
.tp-composer { display: flex; align-items: center; gap: 10px; margin: 0 clamp(14px, 3vw, 34px) 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--bd2); border-radius: 18px; background: #fff; box-shadow: 0 12px 26px -20px rgba(42, 46, 56, .5); }
.tp-composer input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; font-size: 16px; }
.tp-composer button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bl); color: #fff !important; }
.tp-as__note { margin: 0 0 12px !important; text-align: center; font-size: 12.5px; color: var(--fa); }

/* ---------- Доски ---------- */
.tp-bd { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.tp-bd__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid #eeeeea; }
.tp-bd__title { display: grid; margin-right: auto; }
.tp-bd__title small { font-size: 13px; color: var(--mu); }
.tp-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; background: var(--grs); color: var(--gr); font-size: 13px; font-weight: 650; }
.tp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--gr); }
@media (prefers-reduced-motion: no-preference) { .tp-live i { animation: tp-pulse 1.4s infinite; } }
.tp-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #eeeeea; background: #fbfbf9; }
.tp-tool { display: inline-flex; align-items: center; gap: 7px; min-width: 42px; min-height: 42px; padding: 0 11px; justify-content: center; border-radius: 11px; border: 1px solid transparent; background: none; font-size: 13.5px !important; font-weight: 600 !important; color: #3a4150 !important; }
.tp-tool:hover { background: #efefeb; }
.tp-tool[aria-pressed="true"] { background: var(--bls); border-color: #b9c6ff; color: var(--bl2) !important; }
.tp-tools__sep { width: 1px; height: 26px; background: var(--bd); margin: 0 4px; }
.tp-swatch { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--bd2); background: var(--sw); }
.tp-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--bl); }
.tp-bd__stage { position: relative; aspect-ratio: 16 / 9; background-color: #fff; background-image: linear-gradient(#eef0f4 1px, transparent 1px), linear-gradient(90deg, #eef0f4 1px, transparent 1px); background-size: 28px 28px; overflow: hidden; }
.tp-bd__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; user-select: none; }
.tp-bd__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.tp-bd__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(18, 23, 34, .86); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; transition: opacity .3s; box-shadow: 0 12px 24px -12px rgba(18, 23, 34, .6); }
.tp-bd__hint .tp-cur { position: static; width: 15px; height: 18px; }
.tp-bd__hint.is-off { opacity: 0; }
.tp-thumb { display: grid; gap: 8px; width: 100%; padding: 8px; border-radius: 14px; border: 1px solid var(--bd); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tp-thumb:hover { border-color: #b9c6ff; box-shadow: 0 10px 20px -16px rgba(47, 91, 255, .7); }
.tp-thumb[aria-current="true"] { border-color: var(--bl); box-shadow: 0 0 0 3px rgba(47, 91, 255, .14); }
.tp-thumb svg, .tp-thumb__blank { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 9px; background: #fafaf8; border: 1px solid #eeeeea; }
.tp-thumb__blank { display: grid; place-items: center; color: var(--fa); font-size: 13px; }
.tp-thumb span { display: grid; padding: 0 3px 3px; min-width: 0; }
.tp-thumb b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-thumb small { font-size: 12.5px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Средние ширины ---------- */
@media (max-width: 1300px) {
  .tp .tp-tabs button { min-height: 46px; padding: 0 14px 0 12px; font-size: 15.5px; gap: 7px; }
  .tp .tp-tabs button .tp-ic { width: 17px; height: 17px; }
}
@media (min-width: 861px) and (max-width: 1200px) {
  .tp .tp-tabs button { padding: 0 14px; }
  .tp .tp-tabs button .tp-ic { display: none; }
}
@media (max-width: 1240px) {
  .tp-cols--students { grid-template-columns: 250px minmax(0, 1fr); }
  .tp-cols--students > .tp-side { grid-column: 2; grid-template-columns: 1fr 1fr; }
  .tp-facts2 { grid-template-columns: 1fr 1fr; }
  .tp-topics { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .tp-tile b { font-size: 25px; }
}
@media (max-width: 1100px) {
  .tp-hwgrid { grid-template-columns: 1fr; }
  .tp-srcs { grid-template-columns: 1fr; }
  .tp-month__grid { grid-template-columns: 1fr; }
  .tp-cols--pay { grid-template-columns: 1fr; }
  .tp-rail--pay { border-right: 0; border-bottom: 1px solid #eeeeea; }
  .tp .tp-tabs button { font-size: 15px; padding: 0 12px 0 10px; }
}

/* ---------- Узкие ширины: окно на странице (700–860) и окно на весь экран (до 700) ---------- */
@media (max-width: 860px) {
  .tp { --tp-w: calc(100vw - 20px); --tp-h: clamp(440px, calc(100svh - 290px), 640px); padding-top: 0; }
  .tp-hint { display: none; }
  .tp .tp-tabs { flex-wrap: nowrap; justify-content: flex-start; width: auto; max-width: none; translate: none; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 14px; padding: 4px var(--pad) 10px; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tp .tp-tabs::-webkit-scrollbar { display: none; }
  .tp .tp-tabs button { flex: none; scroll-snap-align: center; min-height: 46px; }
  .tp-ben { font-size: 16px; margin-bottom: 18px; }
  .tp .win-cap { font-size: 14.5px; }
  .tp-win .win-bar .tp-demo b { display: none; }
  .tp-screen { padding: 18px 14px 30px; }
  .tp-h1 { font-size: 24px !important; }
  .tp-h1--xl { font-size: 27px !important; }
  .tp-head { margin-bottom: 14px; }
  .tp-head > .tp-row { width: 100%; }
  .tp-head > .tp-row .tp-btn { flex: 1; }
  .tp-roles { grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
  .tp-roles p { padding: 9px 12px; font-size: 13.5px; }
  .tp-roles p:first-child { display: none; }
  .tp-grid--home, .tp-cols--students, .tp-cols--hw, .tp-cols--boards, .tp-as { grid-template-columns: minmax(0, 1fr); }
  .tp-cols--students > .tp-side { grid-column: auto; grid-template-columns: 1fr; }
  .tp-cols { gap: 14px; }
  .tp-rail { display: flex; overflow-x: auto; gap: 8px; padding: 2px 2px 8px; margin-inline: -2px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tp-rail::-webkit-scrollbar { display: none; }
  .tp-rail > * { flex: 0 0 auto; width: auto; max-width: 250px; scroll-snap-align: start; }
  .tp-rail .tp-ri { border-color: var(--bd); background: #fff; }
  .tp-rail .tp-ri[aria-current="true"] { background: var(--bls); border-color: #b9c6ff; }
  .tp-rail .tp-thumb { width: 150px; }
  .tp-rail .tp-hw { width: 230px; }
  .tp-rail.tp-rail--pay { display: grid; overflow: visible; padding: 8px; margin: 0; }
  .tp-rail--pay > * { max-width: none; width: 100%; }
  .tp-pay { padding: 10px; gap: 10px; }
  .tp-pane { padding: 12px; }
  .tp-pane__top { margin-bottom: 8px; }
  .tp-pane .tp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tp-pane .tp-chips::-webkit-scrollbar { display: none; }
  .tp-next { min-width: 0; width: 100%; }
  .tp-lesson { grid-template-columns: 62px 4px minmax(0, 1fr) 18px; gap: 11px; padding: 12px 14px; }
  .tp-lesson .tp-st { grid-column: 3; grid-row: 2; justify-self: start; }
  .tp-lesson > .tp-ic { grid-column: 4; grid-row: 1 / span 2; }
  .tp-lesson__when, .tp-lesson__bar { grid-row: 1 / span 2; }
  .tp-lesson__when i { display: none; }
  .tp-card__h { padding: 16px 14px 10px; }
  .tp-qi { padding: 12px 14px; }
  .tp-kpis > div { padding: 11px 12px; }
  .tp-kpis b { font-size: 22px; }
  .tp-kpis em { font-size: 11.5px; }
  .tp-table th, .tp-table td { padding: 10px 8px; }
  .tp-table th:first-child, .tp-table td:first-child { padding-left: 14px; }
  .tp-table th { font-size: 10.5px; letter-spacing: .02em; }
  .tp-tiles { grid-template-columns: 1fr; gap: 8px; }
  .tp-tile { grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding: 12px 14px; border-radius: 15px; }
  .tp-tile b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 21px; }
  .tp-tile span .tp-ic { display: none; }
  .tp-paybox > .tp-card__h .tp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .tp-paybox > .tp-card__h .tp-chips::-webkit-scrollbar { display: none; }
  .tp-payd { padding: 14px; }
  .tp-payd__grid { grid-template-columns: 1fr; }
  .tp-payd dt { width: 92px; }
  .tp-acts .tp-btn { flex: 1 1 auto; }
  .tp-inv { padding: 12px 14px; gap: 8px 12px; }
  .tp-inv .tp-btn { width: 100%; }
  .tp-due__grid { padding: 0 14px 10px; }
  .tp-due__i { flex-wrap: wrap; }
  .tp-due__i > span:not(.tp-ava) { flex-basis: calc(100% - 44px); }
  .tp-due__i .tp-btn { flex: 1; }
  .tp-stu__top { padding: 16px 14px 12px; }
  .tp-stu__top > .tp-row { width: 100%; }
  .tp-facts2 { grid-template-columns: 1fr 1fr; padding: 0 14px 14px; }
  .tp-stu__body { padding: 16px 14px 18px; min-height: 0; }
  .tp-tabs2 { padding: 0 6px; }
  .tp-hwd { padding: 16px 14px; }
  .tp-hwd .tp-h1 { font-size: 22px !important; }
  .tp-paper { font-size: 15.5px; padding: 14px 12px 16px 14px; }
  .tp-chips__hint { display: none; }
  .tp-head + .tp-roles + .tp-chips, .tp-roles + .tp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tp-ct { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .tp-ct__who b { font-size: 15.5px; }
  .tp-ink, .tp-cdoc .tp-ink { font-size: 20px; }
  .tp-cdoc .tp-sigs { gap: 14px; }
  .tp-cdoc { padding: 14px 10px; }
  .tp-cdoc__badge span:last-child { display: none; }
  .tp-cbar { padding: 10px 12px; gap: 8px; }
  .tp-cbar .tp-st { display: none; }
  .tp-cbar p { flex-basis: 100%; font-size: 13px; }
  .tp-cbar .tp-btn { width: 100%; }
  .tp-rnpprog { gap: 8px 12px; padding: 12px 14px; }
  .tp-legend2 { display: none; }
  .tp-days .tp-row .tp-sp { margin-left: 0; }
  .tp-dayc, .tp-month { padding: 14px; }
  .tp-sums, .tp-funnel { grid-template-columns: 1fr 1fr; }
  .tp-funnel > div + div::before { display: none; }
  .tp-day { flex: 0 0 42px; }
  .tp-dchart { gap: 2px; height: 110px; }
  .tp-dbar small { font-size: 8.5px; }
  .tp-dbar:nth-child(even) small { visibility: hidden; }
  .tp-bd__stage { aspect-ratio: 4 / 3; }
  .tp-cols--boards > aside { order: 2; }
  .tp-bd__top { padding: 11px 14px; }
  .tp-tool span { display: none; }
  .tp-tools { gap: 4px; padding: 8px; }
  .tp-tools__sep { display: none; }
  .tp-tool { min-width: 40px; min-height: 40px; padding: 0 6px; }
  .tp-swatch[data-a="color:#e8930c"] { display: none; }
  .tp-swatch { width: 30px; height: 30px; }
  .tp-bd__hint { font-size: 13px; }
  .tp-topics { grid-template-columns: 1fr; }
  .tp-exam { min-width: 0; flex: 1 1 30%; padding: 9px 11px; }
  .tp-trprog { min-width: 0; width: 100%; }
  .tp-quiz { padding: 18px 14px; }
  .tp-quiz__q { font-size: 17.5px; }
  .tp-head--as .tp-sub { display: none; }
  .tp-as__side { display: none; }
  .tp-acts4 { grid-template-columns: 1fr; }
  .tp-as__scroll { padding: 14px 4px; }
  .tp-composer { margin: 0 0 6px; }
  .tp-as__note { margin-bottom: 4px !important; }
  .tp-screen[data-s="assistant"] { padding-bottom: 12px; }
  .tp-modal { padding: 10px; }
  .tp-sheet { padding: 22px 18px 18px; }
  .tp-sheet--wide { padding: 0; }
  .tp-rev__btns { grid-template-columns: 1fr; }
  .tp-toast { top: 10px; font-size: 14px; width: max-content; }
}
@media (max-width: 380px) {
  .tp { --tp-w: calc(100vw - 12px); }
  .tp-screen { padding-inline: 10px; }
  .tp-h1--xl { font-size: 24px !important; }
  .tp-table th { font-size: 10px; text-transform: none; letter-spacing: 0; }
  .tp-table th, .tp-table td { padding: 9px 4px; }
  .tp-table th:last-child, .tp-table td:last-child { padding-right: 10px; }
  .tp-table th:first-child, .tp-table td:first-child { padding-left: 10px; }
  .tp-sigs { gap: 8px; }
  .tp-ink { font-size: 17px; }
  .tp-stp__c { grid-template-columns: 34px 40px 34px; }
  .tp-lesson { grid-template-columns: 50px 4px minmax(0, 1fr) 16px; gap: 9px; padding-inline: 10px; }
  .tp-facts2 b { font-size: 13.5px; }
  .tp-win .win-bar .tp-demo { font-size: 12px; }
}

/* ---------- Телефон: превью вместо окна ---------- */
.tp-peek, .tp-fullbar { display: none; }
.tp.is-peek { padding-top: 0; }
.tp.is-peek > .tp-tabs, .tp.is-peek > .tp-ben, .tp.is-peek > .tp-stage, .tp.is-peek > .win-cap, .tp.is-peek > .tp-hint { display: none; }
.tp.is-peek > .tp-peek { display: block; }
.tp-peek__frame { position: relative; }
.tp-peek__shot { position: relative; display: block; height: 292px; overflow: hidden; border-radius: 20px; background: #f6f6f3; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 6px rgba(255, 255, 255, .1), 0 40px 80px -36px rgba(3, 18, 96, .9); cursor: pointer; }
.tp-peek__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f1f5fc; color: var(--ink-3); font-size: 12.5px; }
.tp-peek__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d4ea; }
.tp-peek__bar span { margin-left: 8px; }
.tp-peek__app { position: relative; height: calc(100% - 34px); pointer-events: none; }
.tp-peek__app .tp-screen { padding-top: 16px; overflow: hidden; }
.tp-peek__fade { position: absolute; inset: auto 0 0; height: 58%; background: linear-gradient(180deg, rgba(14, 58, 196, 0), rgba(14, 58, 196, .5) 40%, rgba(12, 52, 180, .94) 72%, #0c34b4); }
.tp-open { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 36px); max-width: 340px; min-height: 58px; padding: 0 20px; border: 0; border-radius: 16px; cursor: pointer; font: 750 17px/1.1 var(--f-d); color: var(--ink); background: linear-gradient(180deg, var(--amber-hi), var(--amber)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(150, 86, 0, .22), 0 0 0 5px rgba(255, 255, 255, .28), 0 18px 34px -12px rgba(3, 18, 96, .85); }
.tp-open .tp-ic { width: 20px; height: 20px; stroke-width: 2.2; }
.tp-open:active { transform: translateX(-50%) scale(.97); }
@media (prefers-reduced-motion: no-preference) {
  .tp-open::after { content: ""; position: absolute; inset: -5px; border-radius: 20px; border: 2px solid rgba(255, 214, 110, .9); animation: tp-ring 2s cubic-bezier(.22, 1, .36, 1) infinite; pointer-events: none; }
}
.tp-peek__note { margin: 12px auto 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .86); text-wrap: balance; }
/* Разделы: белые выпуклые плитки со стрелкой, по три в ряд. Нажимаются: под пальцем плитка «утапливается»,
   а пока блок на экране, по плиткам раз в несколько секунд проходит волна нажатий. */
.tp-peek__lbl { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font: 700 15px/1.25 var(--f-d); color: #fff; }
.tp-peek__lbl .tp-ic { width: 22px; height: 22px; color: var(--amber); stroke-width: 2; }
.tp-peek__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tp-peek__chip { position: relative; display: grid; grid-template-columns: 1fr auto; align-content: space-between; gap: 7px 4px; min-height: 68px; padding: 9px 9px 10px 10px; border: 0; border-radius: 14px; cursor: pointer; text-align: left; color: var(--ink); background: linear-gradient(180deg, #fff, #eef3ff); box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(3, 18, 96, .42), 0 12px 18px -10px rgba(3, 18, 96, .7); -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .12s, box-shadow .12s, background .12s; }
.tp-peek__ci { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #e3e9ff; color: var(--sky-1); }
.tp-peek__ci .tp-ic { width: 17px; height: 17px; stroke-width: 2; }
.tp-peek__go { width: 16px; height: 16px; margin-top: 6px; color: var(--sky-1); stroke-width: 2.4; }
.tp-peek__ct { grid-column: 1 / -1; font: 700 13.5px/1.15 var(--f-d); letter-spacing: -.01em; }
.tp-peek__chip:active { transform: translateY(3px); background: #dfe8ff; box-shadow: inset 0 1px 0 #fff, 0 0 0 rgba(3, 18, 96, .42), 0 4px 8px -6px rgba(3, 18, 96, .7); }
.tp-peek__chip:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .tp-peek__chip { animation: tp-tap 5.4s calc(var(--n, 0) * .11s + 1.2s) infinite; }
  .tp-peek__chip:active { animation: none; }
  @keyframes tp-tap { 0%, 9%, 100% { transform: none; box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(3, 18, 96, .42), 0 12px 18px -10px rgba(3, 18, 96, .7); } 4.5% { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, 0 0 0 rgba(3, 18, 96, .42), 0 4px 8px -6px rgba(3, 18, 96, .7); } }
}
@media (max-width: 374px) {
  .tp-peek__note { font-size: 13px; }
  .tp-peek__lbl { font-size: 14px; gap: 6px; }
  .tp-peek__chips { gap: 7px; }
  .tp-peek__chip { padding: 8px 7px 9px 8px; }
  .tp-peek__ct { font-size: 12.5px; }
}

/* ---------- Телефон: демо на весь экран ---------- */
html.tp-lock, html.tp-lock body { overflow: hidden; overscroll-behavior: none; }
html.tp-lock body { position: fixed; left: 0; right: 0; width: 100%; }
.tp.is-full { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; width: 100%; height: 100%; height: 100dvh; padding: env(safe-area-inset-top) 0 0; background: linear-gradient(180deg, #0c3bc4, #1650dc 40%, #2566e7); color: #fff; }
.tp.is-full > * { opacity: 1 !important; transform: none !important; }
.tp.is-full > .tp-peek, .tp.is-full > .tp-hint, .tp.is-full > .win-cap { display: none; }
.tp.is-full > .tp-fullbar { display: flex; align-items: center; gap: 12px; flex: none; padding: 10px 10px 6px 16px; }
.tp-fullbar__t { display: grid; flex: 1; min-width: 0; }
.tp-fullbar__t b { font: 750 17px/1.2 var(--f-d); }
.tp-fullbar__t small { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.tp-close { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 14px 0 11px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 14px; cursor: pointer; background: rgba(255, 255, 255, .16); color: #fff; font: 650 15px/1 var(--f-d); }
.tp-close .tp-ic { width: 20px; height: 20px; stroke-width: 2.2; }
.tp.is-full > .tp-tabs { flex: none; margin: 0 !important; padding: 6px 12px 10px !important; }
.tp.is-full > .tp-ben { flex: none; margin: 0 16px 10px; font-size: 14px; line-height: 1.35; text-align: left; }
.tp.is-full > .tp-stage { flex: 1; min-height: 0; width: 100%; margin: 0; display: flex; }
.tp.is-full .tp-stage > .gl { display: none; }
.tp.is-full .tp-win { flex: 1; display: flex; flex-direction: column; min-height: 0; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px -12px rgba(3, 18, 96, .6); }
.tp.is-full .tp-win .win-bar { display: none; }
.tp.is-full .tp-view { flex: 1; height: auto; min-height: 0; }
.tp.is-full .tp-screen { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }

/* 15.11, правка Артема: на компьютере экран доски не прокручивается, доска занимает все окно */
@media (min-width: 901px) {
  .tp-screen[data-s="boards"] { overflow: hidden; padding-bottom: 26px; }
  .tp-screen[data-s="boards"].is-on { display: flex; flex-direction: column; }
  .tp-screen[data-s="boards"] .tp-cols--boards { flex: 1; min-height: 0; align-items: stretch; }
  .tp-screen[data-s="boards"] .tp-cols--boards > aside { min-height: 0; overflow: hidden auto; scrollbar-width: thin; }
  .tp-screen[data-s="boards"] .tp-bd { min-height: 0; }
  .tp-screen[data-s="boards"] .tp-bd__stage { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
}

