/* Редизайн 2026-11, фаза 2 — экраны группы «content». Только var(--…), токены — в tokens.css (блок screens:content). */

/* ── Общее для группы ─────────────────────────────────── */
.ct-duo { fill: var(--accent-a15); stroke: var(--accent-light); }
.ct-duo [fill="none"] { fill: none; }
.ct-ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-m); background: var(--accent-a15); color: var(--accent-light); }
.ct-ico--muted { background: var(--bg-alt); color: var(--text-secondary); }
.ct-ico--amber { width: 40px; height: 40px; background: var(--warning-a15); color: var(--warning); }
.ct-ico--amber-dim { width: 40px; height: 40px; background: var(--warning-a10); color: var(--warning); }
.ct-ico svg { fill: none; stroke: currentColor; }
.ct-muted { margin: 0; font-size: var(--fs-caption); line-height: 1.45; color: var(--text-secondary); }
.ct-lead { margin: var(--sp-tile) var(--sp-1) 0; font-size: var(--fs-body-rd); line-height: 1.5; color: var(--text-secondary); text-align: center; }
.ct-link-plain { color: inherit; text-decoration: none; }
.ct-skel { height: 320px; margin-top: var(--sp-3); border-radius: var(--r-l); }
.ct-stack { display: flex; flex-direction: column; gap: var(--sp-tile); }
.ct-pill-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-height: var(--tap-min); padding: 0 var(--sp-px14);
  border: 1px solid var(--accent); border-radius: var(--r-full); background: transparent;
  color: var(--accent-light); font: 600 var(--fs-caption) var(--font-text); text-decoration: none; cursor: pointer;
}
.ct-field { display: flex; flex-direction: column; gap: var(--sp-px6); }
.ct-field__l { font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-input {
  width: 100%; min-height: var(--control-h); padding: 0 var(--sp-px14);
  border: 1px solid var(--border); border-radius: var(--r-m); background: var(--bg-alt);
  color: var(--text); font: 400 var(--fs-body-rd) var(--font-text);
}
.ct-input.kp-mono { font-family: var(--font-num); }
textarea.ct-input { min-height: 110px; padding: var(--sp-3) var(--sp-px14); line-height: 1.45; resize: none; }
select.ct-input { appearance: none; -webkit-appearance: none; }
.ct-input:focus { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 4px var(--accent-a15); }
.ct-error { margin: 0; font-size: var(--fs-caption); color: var(--warning); }
.ct-error[hidden] { display: none; }
.kp-sheet__body { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ── Цели (Goals.dc.html) ─────────────────────────────── */
.ct-goals { display: flex; flex-direction: column; }
.ct-goal { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-3); padding: var(--sp-5); background: var(--ct-goal-bg); }
.ct-goal + .ct-goal { margin-top: var(--sp-tile); }
.ct-goal__head { display: flex; align-items: center; gap: var(--sp-3); }
.ct-goal__name { display: flex; flex-direction: column; gap: var(--sp-px2); min-width: 0; }
.ct-goal__title { font-size: var(--fs-header-title); font-weight: 600; }
.ct-goal__sum { font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-goal__body { display: flex; align-items: flex-end; gap: var(--sp-px18); }
.ct-goal__nums { display: flex; flex-direction: column; gap: var(--sp-px6); padding-bottom: var(--sp-px6); min-width: 0; }
.ct-goal__saved { font-size: var(--ct-fs-sum); font-weight: 800; line-height: 1; white-space: nowrap; }
.ct-goal__rub { font-size: var(--fs-amount); color: var(--text-secondary); }
.ct-goal__pct { font-size: var(--fs-label); color: var(--text-secondary); }
.ct-goal__left { margin-top: var(--sp-px6); font-size: var(--fs-label); line-height: 1.4; }
.ct-goal__left b { color: var(--accent-light); font-family: var(--font-num); }
.ct-goal__foot { display: flex; flex-direction: column; gap: var(--sp-px6); }
.ct-goal__rate { font-size: var(--fs-small); color: var(--text-secondary); }
.ct-goal--empty { align-items: flex-start; gap: var(--sp-3); }
.ct-goal--empty .kp-card__title { margin: 0; }
.ct-piggy { flex-shrink: 0; overflow: visible; }
.ct-piggy__glass { fill: var(--accent-light-a05); stroke: var(--accent-light-a35); stroke-width: 1.5; }
.ct-piggy__water { fill: var(--accent); animation: kp-level-up var(--dur-grow) var(--ease) both; --from: var(--rise); --to: 0px; }
.ct-piggy__marks { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.ct-piggy__lbl { font-family: var(--font-num); font-size: var(--fs-heatmap-axis); fill: var(--text-secondary); }
.ct-scale { display: block; width: 100%; height: auto; overflow: visible; }
.ct-scale__track { stroke: var(--border); stroke-width: 4; stroke-linecap: round; fill: none; }
.ct-scale__fill { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; fill: none; }
.ct-scale__drop { fill: var(--accent-light); }
.ct-scale__chest { fill: none; stroke: var(--text-secondary); stroke-width: 1.5; }
.ct-goals__over { margin: var(--ct-sp-22) 0 var(--sp-tile); }
.ct-eq3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-tile); }
.ct-eq { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-px14) var(--sp-tile); text-align: center; }
.ct-eq__n { font-size: var(--fs-title-sm); font-weight: 700; }
.ct-eq__t { font-size: var(--fs-small); line-height: 1.3; color: var(--text-secondary); }
.ct-locked-goal {
  display: flex; align-items: center; gap: var(--sp-px14);
  margin-top: var(--sp-px14); padding: var(--sp-px18);
  border: 1px dashed var(--border); border-radius: var(--r-l);
}
.ct-locked-goal__txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ct-locked-goal__t { font-size: var(--fs-body-rd); font-weight: 600; }
.ct-locked-goal__s { font-size: var(--fs-caption); line-height: 1.4; color: var(--text-secondary); }
.ct-add-goal {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  width: 100%; min-height: var(--control-h); margin-top: var(--sp-px14);
  border: 1px solid var(--border); border-radius: var(--r-full); background: transparent;
  color: var(--accent-light); font: 600 var(--fs-body-rd) var(--font-text); cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .ct-piggy__water { animation: none; }
}

/* ── Капсулы (Capsules.dc.html) ───────────────────────── */
.kp-shell.ct-capsules { background: var(--ct-capsules-bg); }
.ct-shelf { position: relative; height: 230px; margin-top: var(--ct-sp-26); }
.ct-shelf--compact { height: 150px; }
.ct-shelf__row { position: absolute; left: 0; right: 0; top: 0; height: 118px; display: flex; justify-content: space-around; align-items: flex-end; }
.ct-shelf__item { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.ct-shelf__item svg { overflow: visible; }
.ct-shelf__item--sealed svg { filter: var(--ct-amber-shadow); }
.ct-shelf__item--open { opacity: .9; }
.ct-shelf__item.is-shaking, .ct-cap.is-shaking { animation: kp-shake var(--dur) var(--ease) 2; }
.ct-shelf__add {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 88px; padding: 0;
  border: 1.5px dashed var(--border); border-radius: var(--ct-r-slot); background: none;
  color: var(--accent-light); cursor: pointer;
}
.ct-shelf__board { position: absolute; left: calc(-1 * var(--sp-2)); right: calc(-1 * var(--sp-2)); top: 118px; height: 10px; border-radius: var(--ct-r-board); background: var(--ct-shelf); box-shadow: var(--ct-shelf-shadow); }
.ct-amber-stop1 { stop-color: var(--warning); stop-opacity: .95; }
.ct-amber-stop2 { stop-color: var(--warning); stop-opacity: .5; }
.ct-amber-edge { stroke: var(--warning); }
.ct-amber-ink { fill: none; stroke: var(--on-accent); stroke-opacity: .55; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ct-amber-glare { fill: none; stroke: var(--text); stroke-opacity: .55; stroke-width: 3; stroke-linecap: round; }
.ct-amber-seal { fill: var(--primary); stroke: var(--accent-light); stroke-width: 1.5; }
.ct-amber-seal-x { stroke: var(--accent-light); stroke-width: 1.5; stroke-linecap: round; }
.ct-amber-open { fill: var(--warning-a18); stroke: var(--warning); stroke-opacity: .7; }
.ct-amber-crack { fill: none; stroke: var(--warning); stroke-opacity: .7; stroke-width: 1.5; }
.ct-amber-lines { fill: none; stroke: var(--warning); stroke-opacity: .8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ct-tip {
  position: absolute; left: var(--sp-1); top: 144px; max-width: 258px;
  padding: var(--sp-tile) var(--sp-px14); border-radius: var(--r-m);
  background: var(--text); color: var(--bg); font-size: var(--fs-caption); line-height: 1.4;
  box-shadow: var(--ct-tip-shadow);
}
.ct-tip[hidden] { display: none; }
.ct-tip.is-in { animation: kp-in-up var(--dur) var(--ease); }
.ct-tip__arrow { position: absolute; left: calc(var(--arrow-x, 54px) - var(--sp-1) - 6px); top: -6px; width: 12px; height: 12px; background: var(--text); transform: rotate(45deg); }
.ct-caps:empty { display: none; }
.ct-cap { display: flex; align-items: center; gap: var(--sp-px14); width: 100%; padding: var(--sp-4); text-align: left; font: inherit; cursor: pointer; }
.ct-cap__txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ct-cap__t { font-size: var(--fs-body-rd); font-weight: 600; color: var(--text); }
.ct-cap__s { font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-cap__when { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-px2); flex-shrink: 0; }
.ct-cap__when-l { font-size: var(--fs-micro); color: var(--text-secondary); }
.ct-cap__when-d { font-size: var(--fs-caption); color: var(--warning); }
.ct-cap__go { flex-shrink: 0; font-size: var(--fs-caption); font-weight: 600; color: var(--accent-light); }
.ct-new {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-top: var(--sp-5); padding: var(--sp-px18);
  border: 1px solid var(--accent-light-a20); border-radius: var(--r-l); background: var(--ct-new-bg);
}
.ct-new__mic {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 64px; height: 64px; padding: 0; border: 0; border-radius: var(--r-full);
  background: var(--accent); color: var(--on-accent); box-shadow: var(--ct-mic-ring); cursor: pointer;
}
.ct-new__txt { display: flex; flex-direction: column; gap: var(--sp-1); }
.ct-new__t { font-size: var(--fs-card-title); font-weight: 600; }
.ct-new__s { font-size: var(--fs-caption); line-height: 1.45; color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) {
  .ct-tip.is-in, .ct-shelf__item.is-shaking, .ct-cap.is-shaking { animation: none; }
}

/* ── Новая капсула: выбор + запись (OnbCapsule.dc.html) ── */
.ct-capnew { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-3); }
.ct-capnew__types { display: flex; flex-direction: column; gap: var(--sp-tile); }
.ct-capnew__type { display: flex; flex-direction: column; gap: var(--sp-1); width: 100%; text-align: left; font: inherit; cursor: pointer; }
.ct-capnew__type[aria-checked="true"] { border-color: var(--warning-a60); background: var(--warning-a10); }
.ct-capnew__type-t { font-size: var(--fs-card-title); font-weight: 600; color: var(--text); }
.ct-capnew__type[aria-checked="true"] .ct-capnew__type-t { color: var(--warning); }
.ct-capnew__type-s { font-size: var(--fs-caption); line-height: 1.45; color: var(--text-secondary); }
.ct-field[hidden] { display: none; }

.ct-rec-shell { position: relative; max-width: var(--content-max); min-height: 100dvh; margin: 0 auto; background: var(--ct-rec-bg); color: var(--text); font-family: var(--font-text); }
.ct-rec { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: calc(env(safe-area-inset-bottom) + var(--sp-8)); box-sizing: border-box; }
.ct-rec * { box-sizing: border-box; }
.ct-rec__top { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: calc(env(safe-area-inset-top) + var(--sp-tile)) var(--sp-5) 0 var(--sp-2); }
.ct-rec__later { min-height: var(--tap-min); padding: 0 0 0 var(--sp-2); border: 0; background: none; color: var(--text-secondary); font: 400 var(--fs-label) var(--font-text); cursor: pointer; }
.ct-rec__head { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6) var(--sp-6) 0; }
.ct-rec__title { margin: 0; font-size: var(--fs-screen-title); font-weight: 700; line-height: 1.2; }
.ct-rec__title--done { display: none; }
[data-rec-state="done"] .ct-rec__title--q { display: none; }
[data-rec-state="done"] .ct-rec__title--done { display: block; }
.ct-rec__sub { margin: 0; font-size: var(--fs-label); line-height: 1.5; color: var(--text-secondary); }
.ct-rec__hint { display: flex; align-items: center; gap: var(--sp-tile); margin: var(--ct-sp-22) var(--sp-5) 0; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-m); background: var(--surface); font-size: var(--fs-label); }
.ct-rec__hint svg { flex-shrink: 0; color: var(--warning); }
.ct-rec__stage { position: relative; width: 260px; height: 260px; margin: var(--sp-5) auto 0; }
.ct-rec__ring { position: absolute; inset: 0; width: 260px; height: 260px; color: var(--warning); }
.ct-rec__btn {
  position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-full); background: var(--ct-rec-btn); box-shadow: var(--ct-rec-shadow);
  color: var(--on-accent); cursor: pointer; transition: transform var(--dur-press) var(--ease);
}
.ct-rec__btn:active { transform: scale(.97); }
.ct-rec__btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.ct-rec__stop { display: none; width: 34px; height: 34px; border-radius: var(--r-s); background: var(--on-accent); }
[data-rec-state="recording"] .ct-rec__stop { display: block; }
[data-rec-state="recording"] .ct-rec__mic { display: none; }
.ct-rec__time { margin-top: var(--sp-px6); text-align: center; }
.ct-rec__timer { font-size: var(--ct-fs-timer); font-weight: 700; }
.ct-rec__max { font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-rec__note { margin-top: var(--sp-1); text-align: center; font-size: var(--fs-caption); color: var(--text-secondary); }
[data-rec-state="done"] .ct-rec__stage, [data-rec-state="done"] .ct-rec__time, [data-rec-state="done"] .ct-rec__note { display: none; }
.ct-rec__textmode { margin: var(--sp-5) var(--sp-5) 0; }
.ct-rec__textmode .ct-input { min-height: 200px; }
.ct-rec__play-card { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-6) var(--sp-5) 0; padding: var(--sp-px14); border: 1px solid var(--border); border-radius: var(--r-l); background: var(--surface); }
.ct-rec__play { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--r-full); background: var(--warning); color: var(--on-accent); cursor: pointer; }
.ct-rec__bars { flex: 1; display: flex; align-items: center; gap: 3px; height: 40px; min-width: 0; }
.ct-rec__bars .auth-capsule-playback-bar { flex: 1; height: var(--bar-h); border-radius: var(--radius-xs); background: var(--border); }
.ct-rec__bars .auth-capsule-playback-bar.is-played { background: var(--warning); }
.ct-rec__ptime { flex-shrink: 0; font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-rec__redo { align-self: center; min-height: var(--tap-min); margin-top: var(--sp-2); padding: 0 var(--sp-4); border: 0; background: none; color: var(--accent-light); font: 600 var(--fs-label) var(--font-text); cursor: pointer; }
.ct-rec__bottom { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: auto; padding: var(--sp-6) var(--sp-5) 0; }
.ct-rec__seg { display: flex; padding: var(--sp-1); border: 1px solid var(--border); border-radius: var(--r-full); background: var(--bg-alt); }
.ct-rec__seg-opt { flex: 1; min-height: var(--tap-min); border: 0; border-radius: var(--r-full); background: transparent; color: var(--text-secondary); font: 500 var(--fs-label) var(--font-text); cursor: pointer; }
.ct-rec__seg-opt[aria-pressed="true"] { background: var(--warning-a18); color: var(--warning); font-weight: 600; }
.ct-rec__seg-opt:focus-visible, .ct-rec__later:focus-visible, .ct-rec__redo:focus-visible, .ct-rec__play:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.ct-rec .hidden { display: none; }

/* ── Открытие капсулы ─────────────────────────────────── */
.ct-open-msg { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin-top: var(--sp-8); text-align: center; }
.ct-open-msg__t { margin: 0; font-size: var(--fs-card-title); font-weight: 600; }
.ct-amber-solid { fill: var(--warning); fill-opacity: .85; stroke: var(--warning); }
.ct-open { position: relative; }
.ct-open__scene { display: none; justify-content: center; padding: var(--sp-8) 0; cursor: pointer; }
.ct-open.is-cracking .ct-open__scene { display: flex; }
.ct-open.is-cracking .ct-open__body { opacity: 0; }
.ct-open__half { transform-box: fill-box; transform-origin: bottom center; }
.ct-open.is-cracking .ct-open__half--l { animation: kp-split-l 900ms var(--ease) 300ms both; }
.ct-open.is-cracking .ct-open__half--r { animation: kp-split-r 900ms var(--ease) 300ms both; }
.ct-open.is-cracking .ct-open__crack { stroke-dasharray: 120; animation: kp-draw 300ms var(--ease) both; --len: 120; }
.ct-open.is-open .ct-open__scene { display: none; }
.ct-open.is-open .ct-open__body { opacity: 1; animation: kp-in-up var(--dur) var(--ease); }
.ct-open__body { display: flex; flex-direction: column; gap: var(--sp-3); }
.ct-open__body .kp-overline { margin-bottom: 0; }
.ct-open__over { margin-top: var(--sp-5); }
.ct-open-text { white-space: pre-wrap; font-size: var(--fs-body); line-height: 1.6; }
.ct-player { display: flex; align-items: center; gap: var(--sp-3); }
.ct-player__play { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 64px; height: 64px; padding: 0; border: 0; border-radius: var(--r-full); background: var(--warning); color: var(--on-accent); cursor: pointer; }
.ct-player__mid { flex: 1; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ct-player__track { position: relative; display: block; height: 6px; border-radius: var(--r-full); background: var(--border); overflow: hidden; }
.ct-player__fill { position: absolute; inset: 0; background: var(--warning); transform: scaleX(0); transform-origin: left; transition: transform 250ms linear; }
.ct-player__row { display: flex; justify-content: space-between; font-size: var(--fs-small); color: var(--text-secondary); }
.ct-player__back { flex-shrink: 0; min-width: 48px; min-height: var(--tap-min); padding: 0 var(--sp-2); border: 1px solid var(--border); border-radius: var(--r-full); background: transparent; color: var(--text); font: 600 var(--fs-caption) var(--font-text); cursor: pointer; }
.ct-then-now { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-tile); margin-bottom: var(--sp-3); }
.ct-tn { display: flex; flex-direction: column; gap: var(--sp-1); }
.ct-tn__l { font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-tn__n { margin-top: var(--sp-2); font-size: var(--ct-fs-then); font-weight: 800; line-height: 1; }
.ct-tn__s { font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-tn__d { margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--text-secondary); }
.ct-tn--now { background: var(--ct-diploma-bg); border-color: var(--accent-light-a30); }
.ct-tn--now .ct-tn__l, .ct-tn--now .ct-tn__d { color: var(--accent-light); }

/* ── Курс: тропа (Course.dc.html) ─────────────────────── */
.ct-course__head { display: flex; flex-direction: column; gap: var(--sp-tile); padding-top: var(--sp-5); }
.ct-course__title { margin: 0; font-size: var(--fs-screen-title); font-weight: 600; }
.ct-course__meta { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-course__meta b { color: var(--text); }
.ct-course__bar { display: block; height: 8px; border-radius: var(--r-full); background: var(--surface); overflow: hidden; }
.ct-course__fill { display: block; height: 100%; border-radius: var(--r-full); background: var(--ct-trail-bar); transform: scaleX(var(--p)); transform-origin: left; animation: ct-bar var(--dur-grow) var(--ease) both; }
@keyframes ct-bar { from { transform: scaleX(0); } to { transform: scaleX(var(--p)); } }
.ct-course__msg { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.ct-today {
  display: flex; align-items: center; gap: var(--sp-px14); margin-top: var(--sp-4); padding: var(--sp-px14) var(--sp-4);
  border: 1px solid var(--accent-light-a30); border-radius: var(--r-l); background: var(--ct-today-bg);
  color: var(--text); text-decoration: none;
}
.ct-today svg { flex-shrink: 0; color: var(--accent-light); }
.ct-today__n { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--r-m); background: var(--accent); color: var(--on-accent); font-size: var(--fs-h3); font-weight: 800; }
.ct-today__txt { display: flex; flex-direction: column; gap: var(--sp-px2); flex: 1; min-width: 0; }
.ct-today__s { font-size: var(--fs-small); color: var(--accent-light); }
.ct-today__t { font-size: var(--fs-body-rd); font-weight: 600; }
.ct-trail { position: relative; margin: var(--sp-tile) calc(-1 * var(--gutter)) 0; }
.ct-trail__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-trail__all { fill: none; stroke: var(--border); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.ct-trail__done { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; --len: 100; animation: kp-draw var(--dur-grow) var(--ease) both; }
.ct-stop { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; cursor: pointer; }
.ct-stop[aria-disabled="true"] { cursor: default; }
.ct-stop__dot {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 26px; height: 26px; border-radius: var(--ct-r-dropdot);
  font-size: var(--fs-tiny); font-weight: 700;
}
.ct-stop.is-camp .ct-stop__dot { width: 34px; height: 34px; font-size: var(--fs-small); }
.ct-stop.is-done .ct-stop__dot { background: var(--accent); color: var(--on-accent); }
.ct-stop.is-current .ct-stop__dot { background: var(--accent-light); color: var(--on-accent); animation: kp-pulse-glow 2.4s var(--ease) infinite; }
.ct-stop.is-future .ct-stop__dot { background: var(--bg-alt); border: 1.5px solid var(--border); color: var(--text-secondary); }
.ct-stop:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; border-radius: var(--r-full); }
.ct-camp { position: absolute; padding: var(--sp-1) var(--sp-tile); border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--text-secondary); font-size: var(--fs-micro); white-space: nowrap; pointer-events: none; }
.ct-camp.is-passed { border-color: transparent; background: var(--accent-a15); color: var(--accent-light); }

/* ── Курс: день (CourseDay.dc.html) ───────────────────── */
.kp-shell.ct-day { padding-top: 0; }
.ct-day__hero { position: relative; height: 250px; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; background: var(--ct-sky); }
.ct-day__sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-day__sky-bg { fill: none; }
.ct-day__sun { fill: var(--warning); fill-opacity: .85; animation: kp-hover 8s ease-in-out infinite; }
.ct-day__hill1 { fill: var(--primary); }
.ct-day__hill2 { fill: var(--primary-dark); }
.ct-day__path { fill: none; stroke: var(--accent-light); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.ct-day__drop { fill: var(--accent-light); }
.ct-day__bar { position: absolute; left: var(--sp-3); right: var(--sp-3); top: calc(env(safe-area-inset-top) + var(--sp-3)); display: flex; justify-content: space-between; align-items: center; }
.ct-day__back { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-full); background: var(--ct-veil); color: var(--text); cursor: pointer; }
.ct-day__pill { padding: var(--sp-px6) var(--sp-3); border-radius: var(--r-full); background: var(--ct-veil); color: var(--text); font-size: var(--fs-small); }
.ct-day__text { display: flex; flex-direction: column; gap: var(--sp-px14); padding: var(--ct-sp-22) var(--sp-1) 0; }
.ct-day__title { margin: 0; font-size: var(--fs-screen-title); font-weight: 700; line-height: 1.2; }
.ct-strip { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: var(--sp-px2); }
.ct-strip__s { display: block; height: 6px; border-radius: var(--radius-bar); background: var(--border); }
.ct-strip__s.is-done { background: var(--accent); }
.ct-strip__s.is-current { background: var(--accent-light); }
.ct-strip__s.is-camp { outline: 1px solid var(--warning-a60); }
.ct-day__p { margin: 0; font-size: var(--fs-body); line-height: 1.65; color: var(--text); }
.ct-day__p--sec { color: var(--text-secondary); }
.ct-day__pr { color: var(--text); font-weight: 600; }
.ct-q { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--ct-sp-22); padding: var(--sp-px18); border: 1px solid var(--accent-light-a25); border-radius: var(--r-l); background: var(--ct-question-bg); }
.ct-q__over { font-size: var(--fs-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-light); }
.ct-q__label { display: flex; flex-direction: column; gap: var(--sp-tile); }
.ct-q__text { font-size: var(--ct-fs-q); font-weight: 600; line-height: 1.35; }
.ct-q__private { display: flex; align-items: center; gap: var(--sp-px6); font-size: var(--fs-small); color: var(--text-secondary); }
.ct-day__cta { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.ct-minidrop { flex-shrink: 0; overflow: visible; }
.ct-minidrop__glass { fill: var(--bg-alt); stroke: var(--accent-light); stroke-width: 1.5; }
.ct-minidrop__fill { fill: var(--accent); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform var(--dur-grow) var(--ease); }
.ct-minidrop.is-full .ct-minidrop__fill { transform: scaleY(1); }
.ct-minidrop__n { font-size: var(--fs-small); font-weight: 800; fill: var(--text); }
.ct-minidrop.is-full .ct-minidrop__n { fill: var(--on-accent); }
.ct-day__cta .kp-btn { flex: 1; }
@media (prefers-reduced-motion: reduce) {
  .ct-course__fill, .ct-trail__done, .ct-stop.is-current .ct-stop__dot, .ct-day__sun { animation: none; }
  .ct-minidrop__fill { transition: none; }
}

/* ── Курс: выпускной (Graduation.dc.html) ─────────────── */
.kp-shell.ct-grad { display: flex; flex-direction: column; background: var(--ct-grad-bg); }
.ct-grad__top { display: flex; justify-content: flex-end; padding-top: var(--sp-4); }
.ct-grad__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-full); background: var(--surface-sos); color: var(--text); cursor: pointer; }
.ct-grad__stage { position: relative; height: 260px; margin: 0 calc(-1 * var(--gutter)); cursor: pointer; }
.ct-grad__mini { position: absolute; width: 12px; height: 15px; margin: -7px 0 0 -6px; border-radius: var(--ct-r-dropdot); background: var(--accent); animation: kp-merge 1.8s var(--ease) 400ms both; }
.ct-grad__big { position: absolute; left: 50%; top: 55px; margin-left: -60px; overflow: visible; filter: var(--ct-big-glow); transform-origin: 50% 60%; animation: ct-big 2.6s var(--ease) both; }
@keyframes ct-big { 0%, 60% { transform: scale(0); opacity: 0; } 85% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.ct-grad__stage.is-final .ct-grad__mini { animation: none; opacity: 0; }
.ct-grad__stage.is-final .ct-grad__big { animation: none; transform: none; opacity: 1; }
.ct-gb1 { stop-color: var(--accent-light); }
.ct-gb2 { stop-color: var(--accent-dark); }
.ct-grad__glare { fill: none; stroke: var(--text); stroke-opacity: .45; stroke-width: 5; stroke-linecap: round; }
.ct-grad__num { fill: var(--on-primary); font-size: var(--fs-h1); font-weight: 800; }
.ct-grad__head { display: flex; flex-direction: column; gap: var(--sp-2); padding: 0 var(--sp-1); text-align: center; }
.ct-grad__title { margin: 0; font-size: var(--fs-screen-title); font-weight: 700; line-height: 1.2; }
.ct-grad__sub { margin: 0; font-size: var(--fs-body-rd); line-height: 1.5; color: var(--text-secondary); }
.ct-diploma { display: flex; flex-direction: column; gap: var(--sp-px14); margin-top: var(--ct-sp-22); padding: var(--sp-5); border: 1px solid var(--accent-light-a30); border-radius: var(--r-l); background: var(--ct-diploma-bg); }
.ct-diploma__row { display: flex; justify-content: space-between; align-items: center; }
.ct-diploma__over { font-size: var(--fs-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); }
.ct-diploma__date { font-size: var(--fs-small); color: var(--text-secondary); }
.ct-diploma__t { font-size: var(--fs-title-sm); font-weight: 700; line-height: 1.25; }
.ct-diploma__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); text-align: center; }
.ct-diploma__stats > span { display: flex; flex-direction: column; gap: var(--sp-px2); }
.ct-diploma__stats .kp-mono { font-size: var(--fs-title-sm); font-weight: 800; }
.ct-diploma__stats span span:last-child { font-size: var(--fs-micro); color: var(--text-secondary); }
.ct-grad__btns { display: flex; gap: var(--sp-tile); margin: var(--sp-px14) 0 var(--sp-8); }
.ct-grad__btns .kp-btn { flex: 1; padding: 0 var(--sp-3); }
.ct-grad__book { background: var(--surface); }
.ct-next { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; padding: var(--sp-px14) var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-m); background: var(--bg-alt); color: var(--text); text-decoration: none; }
.ct-next svg { flex-shrink: 0; color: var(--text-secondary); }
.ct-next__txt { display: flex; flex-direction: column; gap: var(--sp-px2); flex: 1; }
.ct-next__t { font-size: var(--fs-label); font-weight: 600; }
.ct-next__s { font-size: var(--fs-small); color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) {
  .ct-grad__mini { animation: none; opacity: 0; }
  .ct-grad__big { animation: none; }
}

/* ── Курс: витрина, книга, предложение, шеринг ────────── */
.ct-store__hero { display: block; width: 100%; height: 150px; margin-top: var(--sp-2); }
.ct-store__dot { fill: var(--bg-alt); stroke: var(--border); stroke-width: 1.5; }
.ct-store__dot--on { fill: var(--accent); }
.ct-store__title { margin-top: var(--sp-3); }
.ct-store__sub { margin-top: var(--sp-2); font-size: var(--fs-body-rd); }
.ct-store__weeks { margin-top: var(--sp-5); }
.ct-week { display: flex; gap: var(--sp-px14); align-items: flex-start; }
.ct-week__n { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-m); background: var(--accent-a15); color: var(--accent-light); font-weight: 800; }
.ct-week__txt { display: flex; flex-direction: column; gap: var(--sp-px2); }
.ct-week__d { font-size: var(--fs-small); color: var(--accent-light); }
.ct-week__t { font-size: var(--fs-body-rd); font-weight: 600; }
.ct-week__s { font-size: var(--fs-caption); line-height: 1.45; color: var(--text-secondary); }
.ct-perks { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; font-size: var(--fs-body-rd); }
.ct-perks li { display: flex; align-items: center; gap: var(--sp-tile); }
.ct-perks svg { flex-shrink: 0; color: var(--accent-light); }
.ct-price { display: flex; flex-direction: column; gap: var(--sp-1); margin: var(--sp-5) 0 var(--sp-3); }
.ct-price__v { font-size: var(--fs-title-sm); font-weight: 800; }
.ct-price__s { font-size: var(--fs-caption); line-height: 1.45; color: var(--text-secondary); }
.ct-store__fine { margin-top: var(--sp-3); text-align: center; }
.ct-book-cover { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-3); padding: var(--sp-5); border: 1px solid var(--accent-light-a30); border-radius: var(--r-l); background: var(--ct-diploma-bg); }
.ct-book-cover__drop { fill: var(--accent-light); }
.ct-book-cover__txt { display: flex; flex-direction: column; gap: var(--sp-1); }
.ct-book-cover__t { font-size: var(--fs-title-sm); font-weight: 700; }
.ct-book-cover__s { font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-book { margin: var(--sp-4) 0; }
.ct-book__e { display: flex; flex-direction: column; gap: var(--sp-2); }
.ct-book__q { font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-book__a { margin: 0; font-size: var(--fs-body-rd); line-height: 1.55; white-space: pre-wrap; }
.ct-book__a.is-empty { color: var(--text-secondary); }
.ct-book__note { margin-top: var(--sp-3); text-align: center; }
.ct-link-btn { display: block; min-height: var(--tap-min); margin: var(--sp-2) auto 0; padding: 0 var(--sp-4); border: 0; background: none; color: var(--accent-light); font: 600 var(--fs-label) var(--font-text); cursor: pointer; }
.ct-link-btn[hidden] { display: none; }
.ct-offer { margin-top: var(--sp-3); }
.ct-offer .ct-diploma__t { margin: 0; }
.ct-offer .ct-price { margin: 0; }
.ct-offer__consent { margin: var(--sp-4) 0; }
.ct-offer__note { margin-top: var(--sp-2); text-align: center; }
.ct-share { margin: var(--sp-3) 0 var(--sp-5); }
.ct-share canvas { display: block; width: 100%; height: auto; border-radius: var(--r-l); border: 1px solid var(--border); }

/* ── Каталог, эквиваленты ─────────────────────────────── */
.ct-free { display: flex; align-items: center; gap: var(--sp-px14); margin-top: var(--sp-3); }
.ct-free__txt { display: flex; flex-direction: column; gap: var(--sp-px2); }
.ct-free__t { font-size: var(--fs-body-rd); font-weight: 600; }
.ct-cat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-tile); margin-top: var(--sp-px14); }
.ct-cat__card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-px6); width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.ct-cat__card svg { margin-bottom: var(--sp-1); }
.ct-cat__t { font-size: var(--fs-body-rd); font-weight: 600; }
.ct-cat__s { flex: 1; font-size: var(--fs-small); line-height: 1.4; color: var(--text-secondary); }
.ct-cat__p { margin-top: var(--sp-1); font-size: var(--fs-caption); font-weight: 700; color: var(--accent-light); }
.ct-cat__foot, .ct-cat__off { margin-top: var(--sp-4); text-align: center; }
.ct-sheet-text { font-size: var(--fs-body-rd); }
.ct-eqsum { gap: var(--sp-2); }
.ct-eq__p { font-size: var(--fs-micro); color: var(--text-secondary); }
.ct-eqsum + .ct-cat { margin-bottom: var(--sp-5); }

/* ── Важные даты ──────────────────────────────────────── */
.ct-lead--left { text-align: left; margin-left: 0; margin-right: 0; }
.ct-empty-line { margin-top: var(--sp-5); text-align: center; }
.ct-prep { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); padding: var(--sp-px18); border: 1px solid var(--warning-a50); border-radius: var(--r-l); background: var(--warning-a10); }
.ct-prep .ct-q__over { color: var(--warning); }
.ct-prep__t { margin: 0; font-size: var(--fs-header-title); font-weight: 600; }
.ct-prep__links { display: flex; flex-direction: column; margin-top: var(--sp-1); }
.ct-prep__a { display: flex; align-items: center; justify-content: space-between; min-height: var(--control-h); border-top: 1px solid var(--border); color: var(--text); font-size: var(--fs-body-rd); text-decoration: none; }
.ct-prep__a svg { color: var(--text-secondary); }
.ct-tl { position: relative; display: flex; flex-direction: column; gap: var(--sp-1); margin: var(--sp-5) 0 0; padding: 0; list-style: none; }
.ct-tl::before { content: ""; position: absolute; left: 61px; top: var(--sp-4); bottom: var(--sp-4); border-left: 2px dashed var(--border); }
.ct-tl__i { position: relative; display: grid; grid-template-columns: 44px 20px 1fr 44px; align-items: center; gap: var(--sp-2); min-height: 64px; }
.ct-tl__date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ct-tl__day { font-size: var(--fs-title-sm); font-weight: 700; }
.ct-tl__mon { font-size: var(--fs-small); color: var(--text-secondary); }
.ct-tl__dot { justify-self: center; width: 12px; height: 15px; border-radius: var(--ct-r-dropdot); background: var(--bg-alt); border: 1.5px solid var(--accent-light); }
.ct-tl__i.is-soon .ct-tl__dot { background: var(--warning); border-color: var(--warning); }
.ct-tl__txt { display: flex; flex-direction: column; gap: var(--sp-px2); min-width: 0; }
.ct-tl__t { font-size: var(--fs-body-rd); font-weight: 600; overflow-wrap: anywhere; }
.ct-tl__s { font-size: var(--fs-caption); color: var(--text-secondary); }
.ct-tl__i.is-soon .ct-tl__s { color: var(--warning); }
.ct-x { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-full); background: none; color: var(--text-secondary); cursor: pointer; }
.ct-x:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.ct-form { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
.ct-form .kp-card__title { margin: 0; }

/* ── Что налить вместо / Мои напитки ─────────────────── */
.ct-drink { padding: 0; overflow: hidden; }
.ct-drink__sum { display: flex; align-items: center; gap: var(--sp-3); min-height: 64px; padding: var(--sp-tile) var(--sp-4); cursor: pointer; list-style: none; }
.ct-drink__sum::-webkit-details-marker { display: none; }
.ct-drink__sum:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -2px; border-radius: var(--r-l); }
.ct-drink__name { flex: 1; font-size: var(--fs-body-rd); font-weight: 600; }
.ct-drink__chev { flex-shrink: 0; color: var(--text-secondary); transition: transform var(--dur) var(--ease); }
.ct-drink[open] .ct-drink__chev { transform: rotate(180deg); }
.ct-drink__what, .ct-drink__how { margin: 0; padding: 0 var(--sp-4) var(--sp-3) calc(var(--sp-4) + 44px + var(--sp-3)); font-size: var(--fs-caption); line-height: 1.5; }
.ct-drink__what { color: var(--accent-light); }
.ct-drink__how { padding-bottom: var(--sp-4); color: var(--text-secondary); }
.ct-notdrunk { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); background: var(--ct-goal-bg); }
.ct-mydrink { display: flex; align-items: center; gap: var(--sp-px14); padding: var(--sp-3) var(--sp-2) var(--sp-3) var(--sp-4); }

/* ── От близких ───────────────────────────────────────── */
.ct-notify { margin-top: var(--sp-3); padding: 0; }
.ct-notify .kp-row { padding: var(--sp-2) var(--sp-4); }
.ct-notify__hint { min-height: var(--sp-4); margin: var(--sp-2) 0; }
.ct-msg { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--sp-3); row-gap: var(--sp-2); }
.ct-msg__ava { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-full); background: var(--accent-a15); color: var(--accent-light); font-weight: 700; }
.ct-msg__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.ct-msg__name { font-size: var(--fs-body-rd); font-weight: 600; }
.ct-msg__time { font-size: var(--fs-small); color: var(--text-secondary); }
.ct-msg__body, .ct-msg__react { grid-column: 2; margin: 0; font-size: var(--fs-body-rd); line-height: 1.5; white-space: pre-wrap; }
.ct-msg__react { color: var(--accent-light); font-weight: 600; }
.ct-msg__chips { grid-column: 2; }
.ct-msg__chips .kp-chip { min-height: var(--tap-min); padding: 0 var(--sp-3); }

/* ── ИИ-помощник ──────────────────────────────────────── */
.ct-ai { display: flex; flex-direction: column; }
.ct-ai__clear { min-height: var(--tap-min); padding: 0 var(--sp-1); border: 0; background: none; color: var(--accent-light); font: 500 var(--fs-caption) var(--font-text); cursor: pointer; }
.ct-ai__note { margin-top: var(--sp-1); text-align: center; }
.ct-ai__saved { margin: 0 0 var(--sp-2); text-align: center; font-size: var(--fs-small); }
.ct-ai__saved a { color: inherit; text-decoration: underline; }
.ct-ai__log { flex: 1; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) 0; }
.ct-ai__b { max-width: 85%; padding: var(--sp-tile) var(--sp-px14); border-radius: var(--r-l); font-size: var(--fs-body-rd); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: kp-in-up var(--dur) var(--ease); }
.ct-ai__b--assistant { align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: var(--r-s); background: var(--surface); }
.ct-ai__b--user { align-self: flex-end; border-bottom-right-radius: var(--r-s); background: var(--accent-a20); }
.ct-ai__b--system { color: var(--text-secondary); }
.ct-ai__typing { display: flex; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); }
.ct-ai__typing span { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--text-secondary); animation: kp-typing 1.2s var(--ease) infinite; }
.ct-ai__typing span:nth-child(2) { animation-delay: 150ms; }
.ct-ai__typing span:nth-child(3) { animation-delay: 300ms; }
.ct-ai__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ct-ai__limit { text-align: center; }
.ct-ai__limit:empty, .ct-ai__upsell[hidden] { display: none; }
.ct-ai__upsell { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.ct-ai__form {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--sp-2));
  display: flex; align-items: flex-end; gap: var(--sp-2); padding: var(--sp-2);
  border: 1px solid var(--border); border-radius: var(--r-l); background: var(--glass-nav);
  -webkit-backdrop-filter: blur(var(--nav-blur)); backdrop-filter: blur(var(--nav-blur));
}
.ct-ai__input { min-height: var(--tap-min); max-height: 140px; padding: var(--sp-tile) var(--sp-3); border: 0; background: transparent; resize: none; }
.ct-ai__input:focus { box-shadow: none; }
.ct-ai__send { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); cursor: pointer; }
.ct-ai__send:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .ct-ai__b, .ct-ai__typing span { animation: none; }
  .ct-drink__chev { transition: none; }
}
