/* Studentix — окно «План работы» (docs/PLAN-WINDOW.md §3, docs/DESIGN.md «Дизайн-язык проекта», «Стеклянный стиль», «Редактор: стиль и контролы»).
   Классы с префиксом .stx-plan__, разметку строит js/plan.js. Режимы — атрибут data-mode: desktop / tablet / phone.
   S31-r (2026-10-01): светлая тема по умолчанию, тёмная — только через <html data-theme="dark"> в tokens.css.
   Цвета, радиусы, тени и стекло — только из css/tokens.css (--stx-*). Переменные --p-* — алиасы с запасными
   значениями из палитры tokens.css, чтобы окно не разваливалось без tokens.css.
   Стекло — только у плавающих частей: правая панель, нижняя полоса. Список плана — плоское белое.
   Селекты (.stx-select*), тумблеры (.stx-switch*), кнопки — вид из tokens.css; здесь только размеры и расположение. */

html.stx-plan-open,
html.stx-plan-open body { overflow: hidden; }

.stx-plan {
  --p-bg: var(--stx-bg, #F4F7FE);
  --p-surface: var(--stx-surface, #FFFFFF);
  --p-surface-2: var(--stx-surface-2, #F8FAFF);
  --p-raise: var(--stx-surface-raise, rgba(255, 255, 255, .8));
  --p-label: var(--stx-text, #1B2430);
  --p-label-2: var(--stx-text-2, #566274);
  --p-label-3: var(--stx-text-3, #8A94A6);
  --p-sep: var(--stx-separator, rgba(27, 36, 48, .08));
  --p-line: var(--stx-line, rgba(27, 36, 48, .14));
  --p-fill: var(--stx-fill, rgba(27, 36, 48, .05));
  --p-fill-2: var(--stx-fill-2, rgba(27, 36, 48, .09));
  --p-veil: var(--stx-veil, rgba(255, 255, 255, .82));
  --p-accent: var(--stx-accent, #2F6BFF);
  --p-accent-hover: var(--stx-accent-hover, #1F52D9);
  --p-accent-active: var(--stx-accent-active, #1F52D9);
  --p-accent-text: var(--stx-accent-text, #1F52D9);
  --p-accent-soft: var(--stx-accent-soft, rgba(47, 107, 255, .10));
  --p-accent-soft-2: var(--stx-accent-soft-2, rgba(47, 107, 255, .16));
  --p-accent-line: var(--stx-accent-line, rgba(47, 107, 255, .28));
  --p-accent-ring: var(--stx-accent-ring, rgba(47, 107, 255, .30));
  --p-accent-shadow: var(--stx-accent-shadow, 0 6px 16px rgba(47, 107, 255, .26));
  --p-on-accent: var(--stx-on-accent, #FFFFFF);
  --p-success: var(--stx-success, rgb(31 157 85));
  --p-success-text: var(--stx-success-text, rgb(26 127 69));
  --p-danger: var(--stx-danger, rgb(224 64 90));
  --p-danger-text: var(--stx-danger-text, rgb(196 36 62));
  --p-danger-soft: var(--stx-danger-soft, rgba(224, 64, 90, .12));
  --p-warning-soft: var(--stx-warning-soft, rgba(245, 158, 11, .14));
  --p-warning-text: var(--stx-warning-text, rgb(122 74 0));
  --p-tooltip-bg: var(--stx-tooltip-bg, #1B2430);
  --p-tooltip-fg: var(--stx-tooltip-fg, #FFFFFF);
  --p-scrim: var(--stx-scrim, rgba(27, 36, 48, .32));
  --p-row-hover: var(--stx-fill, rgba(27, 36, 48, .05));
  --p-glass-bg: var(--stx-glass-bg, rgba(255, 255, 255, .72));
  --p-glass-bg-strong: var(--stx-glass-bg-strong, rgba(255, 255, 255, .88));
  --p-glass-blur: var(--stx-glass-blur, blur(20px) saturate(140%));
  --p-glass-border: var(--stx-glass-border, 1px solid rgba(255, 255, 255, .55));
  --p-glass-shadow: var(--stx-glass-shadow, 0 8px 30px rgba(20, 40, 80, .10));
  --p-glass-highlight: var(--stx-glass-highlight, inset 0 1px 0 rgba(255, 255, 255, .7));
  --p-shadow-sm: var(--stx-shadow-sm, 0 1px 2px rgba(20, 40, 80, .04), 0 4px 12px rgba(20, 40, 80, .06));
  --p-shadow-md: var(--stx-shadow-md, 0 8px 24px rgba(20, 40, 80, .10));
  --p-shadow-lg: var(--stx-shadow-lg, 0 24px 64px rgba(20, 40, 80, .18));
  --p-r-field: var(--stx-r-field, 10px);
  --p-r-card: var(--stx-r-card, 14px);
  --p-r-panel: var(--stx-r-panel, 18px);
  --p-r-sheet: var(--stx-r-sheet, 20px);
  --p-r-pill: var(--stx-r-pill, 999px);
  --p-dur: var(--stx-dur, 180ms);
  --p-dur-fast: var(--stx-dur-fast, 150ms);
  --p-dur-slow: var(--stx-dur-slow, 220ms);
  --p-backdrop: var(--stx-backdrop, linear-gradient(180deg, #F8FAFF, #F4F7FE));
  --p-backdrop-veil: var(--stx-backdrop-veil, rgba(244, 247, 254, .9));
  --p-spring: var(--stx-spring, cubic-bezier(.34, 1.36, .64, 1));
  --p-ease: var(--stx-ease, cubic-bezier(.32, .72, 0, 1));
  --p-tap: var(--stx-tap, 44px);
  position: fixed;
  inset: 0;
  z-index: 10050;
  font-family: var(--stx-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.005em;
  color: var(--p-label);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
.stx-plan[hidden] { display: none; }
.stx-plan *, .stx-plan *::before, .stx-plan *::after { box-sizing: border-box; }
.stx-plan button, .stx-plan input, .stx-plan select, .stx-plan textarea { font-family: inherit; letter-spacing: inherit; }
.stx-plan button { -webkit-tap-highlight-color: transparent; }
.stx-plan :focus { outline: none; }
.stx-plan :focus-visible { outline: 3px solid var(--p-accent-ring); outline-offset: 2px; }
.stx-plan h2, .stx-plan h3, .stx-plan p, .stx-plan dl, .stx-plan dd { margin: 0; }

/* иконки: спрайт images/icons.svg (Phosphor Light — тонкие контуры заливкой currentColor);
   единственная inline-иконка «calc» рисуется штрихом 1.5 */
.stx-plan__i { width: 20px; height: 20px; flex: none; fill: currentColor; display: block; pointer-events: none; }
.stx-plan__i--stroke { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stx-plan__i--stroke path { stroke-width: 1.5; }
.stx-plan__spin { animation: stx-plan-spin 1s linear infinite; }
/* п. 80: свой класс у стрелки «Переместить выше»; общий .is-up ставит form.js на селект, открытый вверх, и переворачивал список */
.stx-plan .stx-plan__icon-flip { transform: rotate(180deg); }
.stx-plan__vh, .stx-plan__sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- каркас
   Подложка — мягкие голубые блобы поверх размытой страницы; окно — светлый фон с блобами (под ним читается blur
   правой панели); рабочая зона (список) — плоская белая карточка; правая панель — стекло. */
.stx-plan__backdrop {
  position: absolute; inset: 0;
  background: var(--p-backdrop-veil);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .25s linear;
}
.stx-plan__dialog {
  position: absolute;
  top: 24px; bottom: 24px; left: 0; right: 0;
  margin: 0 auto;
  width: min(1180px, calc(100% - 48px));
  display: flex; flex-direction: column;
  background: var(--p-backdrop);
  border: var(--p-glass-border);
  border-radius: var(--p-r-sheet);
  box-shadow: var(--p-shadow-lg), var(--p-glass-highlight);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity .3s var(--p-ease), transform .3s var(--p-ease);
}
.stx-plan.is-in .stx-plan__backdrop { opacity: 1; }
.stx-plan.is-in .stx-plan__dialog { opacity: 1; transform: none; }

/* шапка: заголовок 22/600, статус — подпись вторичным, крестик 44×44 */
.stx-plan__head {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px;
  padding: 10px 16px 10px 32px;
  border-bottom: 1px solid var(--p-sep);
}
.stx-plan__heading { order: 1; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--p-label); }
.stx-plan__status {
  order: 2;
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 24px;
  font-size: 13px; line-height: 1.38; color: var(--p-label-2);
}
.stx-plan__status .stx-plan__i { width: 16px; height: 16px; }
.stx-plan__status.is-saved { color: var(--p-success-text); }
.stx-plan__status.is-error { color: var(--p-danger-text); }
.stx-plan__close { order: 3; margin-left: auto; }

.stx-plan__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.stx-plan__grid { max-width: 800px; margin: 0 auto; padding: 24px 40px 48px; }
.stx-plan__grid.is-two {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 720px) 320px;
  justify-content: center;
  align-items: start;
  gap: 24px;
}
/* рабочая зона: плоский белый лист, строгий (без стекла) */
.stx-plan__main {
  min-width: 0;
  padding: 24px 28px 32px;
  background: var(--p-surface);
  border: 1px solid var(--p-sep);
  border-radius: var(--p-r-panel);
  box-shadow: var(--p-shadow-sm);
}

/* правая панель: одна стеклянная карточка, секции «Параметры / Объём / Бесплатно» через тонкие разделители */
.stx-plan__side { position: sticky; top: 24px; align-self: start; }
.stx-plan__side-in {
  display: flex; flex-direction: column; gap: 0;
  max-height: calc(100vh - 48px - 64px - 48px);
  background: var(--p-glass-bg-strong);
  -webkit-backdrop-filter: var(--p-glass-blur);
  backdrop-filter: var(--p-glass-blur);
  border: var(--p-glass-border);
  border-radius: var(--p-r-panel);
  box-shadow: var(--p-glass-shadow), var(--p-glass-highlight);
}
/* секции прокручиваются, кнопки запуска всегда видны */
.stx-plan__side-scroll {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 0;
  overflow: auto; overscroll-behavior: contain;
}
.stx-plan__side-scroll > .stx-plan__card {
  flex: none;
  padding: 18px 20px 20px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.stx-plan__side-scroll > .stx-plan__card + .stx-plan__card { border-top: 1px solid var(--p-sep); }
.stx-plan__side-in > .stx-plan__actions-main { flex: none; padding: 16px 20px 20px; border-top: 1px solid var(--p-sep); }

/* нижняя полоса (планшет, телефон) — стекло */
.stx-plan__bar {
  flex: none;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--p-sep);
  background: var(--p-glass-bg-strong);
  -webkit-backdrop-filter: var(--p-glass-blur);
  backdrop-filter: var(--p-glass-blur);
}
.stx-plan__bar[hidden] { display: none; }

/* ---------- кнопки-иконки: как .stx-iconbtn из tokens.css (иконка 20, зона 36 → 44 на касании) */
.stx-plan__icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none;
  padding: 0; border: 0; border-radius: var(--p-r-field);
  background: transparent; color: var(--p-label-2);
  cursor: pointer;
  transition: background-color var(--p-dur) var(--p-ease), color var(--p-dur) var(--p-ease);
}
.stx-plan__icon-btn:hover { background: var(--p-fill); color: var(--p-label); }
.stx-plan__icon-btn:active { background: var(--p-fill-2); }
.stx-plan__icon-btn.is-danger:hover { background: var(--p-danger-soft); color: var(--p-danger-text); }
.stx-plan__close { width: var(--p-tap); height: var(--p-tap); }

/* кнопки: те же значения, что .stx-btn / .stx-btn--primary / .stx-btn--secondary в tokens.css */
.stx-plan__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--p-tap); padding: 0 18px;
  border: 1px solid var(--p-line); border-radius: var(--p-r-card);
  background: var(--p-surface); color: var(--p-label);
  font-size: 15px; line-height: 1.15; font-weight: 500; letter-spacing: -.005em;
  text-align: center; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--p-dur) var(--p-ease), border-color var(--p-dur) var(--p-ease),
              box-shadow var(--p-dur) var(--p-ease), transform var(--p-dur-fast) var(--p-ease), opacity var(--p-dur), color var(--p-dur);
}
.stx-plan__btn:hover { background: var(--p-surface-2); border-color: var(--p-accent-line); color: var(--p-accent-text); }
.stx-plan__btn:active { transform: scale(.98); background: var(--p-fill); }
.stx-plan__btn.is-primary { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-on-accent); box-shadow: var(--p-accent-shadow); }
.stx-plan__btn.is-primary:hover { background: var(--p-accent-hover); border-color: var(--p-accent-hover); color: var(--p-on-accent); transform: translateY(-1px); }
.stx-plan__btn.is-primary:active { background: var(--p-accent-active); border-color: var(--p-accent-active); transform: scale(.98); box-shadow: none; }
.stx-plan__btn.is-quiet { background: transparent; border-color: transparent; color: var(--p-accent-text); }
.stx-plan__btn.is-quiet:hover { background: var(--p-accent-soft); border-color: transparent; }
.stx-plan__btn.is-small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--p-r-field); }
.stx-plan__btn.is-wide { width: 100%; }
.stx-plan__btn.is-danger { background: var(--p-danger-soft); border-color: transparent; color: var(--p-danger-text); }
.stx-plan__btn.is-danger:hover { background: var(--p-danger); border-color: var(--p-danger); color: var(--p-on-accent); }
.stx-plan__btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.stx-plan__btn:disabled:hover { background: var(--p-surface); border-color: var(--p-line); color: var(--p-label); }
.stx-plan__btn.is-primary:disabled { opacity: .45; }
.stx-plan__btn.is-primary:disabled:hover { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-on-accent); }
.stx-plan__btn .stx-plan__i { width: 18px; height: 18px; }

/* тихая текстовая кнопка (как .stx-btn--quiet) */
.stx-plan__link {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 32px; padding: 4px 8px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--p-accent-text);
  font-size: inherit; font-weight: 500;
  cursor: pointer;
  transition: background-color var(--p-dur) var(--p-ease);
}
.stx-plan__link:hover { background: var(--p-accent-soft); }
.stx-plan__link .stx-plan__i { width: 16px; height: 16px; }

.stx-plan__add {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 12px;
  border: 0; border-radius: var(--p-r-field);
  background: transparent; color: var(--p-accent-text);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background-color var(--p-dur) var(--p-ease), border-color var(--p-dur) var(--p-ease);
}
.stx-plan__add:hover { background: var(--p-accent-soft); }
.stx-plan__add .stx-plan__i { width: 18px; height: 18px; }
.stx-plan__add.is-chapter {
  width: 100%; justify-content: center;
  min-height: 48px; margin-top: 4px;
  border: 1.5px dashed var(--p-accent-line); border-radius: var(--p-r-card);
}
.stx-plan__add.is-chapter:hover { border-color: var(--p-accent); }

/* подсказки при наведении (только мышь) */
@media (hover: hover) and (pointer: fine) {
  .stx-plan [data-tip] { position: relative; }
  .stx-plan [data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    padding: 5px 9px; border-radius: 8px;
    background: var(--p-tooltip-bg); color: var(--p-tooltip-fg);
    box-shadow: var(--p-shadow-md);
    font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap;
    pointer-events: none; z-index: 5;
  }
}

/* ---------- тема, сводка, подсказки */
.stx-plan__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--p-label-3); margin-bottom: 6px; }
.stx-plan__theme-text { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--p-label); }
.stx-plan__theme-row { display: flex; align-items: flex-start; gap: 4px; }
.stx-plan__theme-input {
  flex: 1; min-width: 0;
  margin-left: -8px; padding: 4px 8px;
  border: 0; border-radius: var(--p-r-field);
  background: transparent; color: var(--p-label);
  font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em;
  resize: none; overflow: hidden;
  field-sizing: content;
  transition: background-color var(--p-dur) var(--p-ease), box-shadow var(--p-dur) var(--p-ease);
}
.stx-plan__theme-input:hover { background: var(--p-fill); }
.stx-plan__theme-input:focus { background: var(--p-surface); box-shadow: 0 0 0 4px var(--p-accent-soft), inset 0 0 0 1px var(--p-accent); }
.stx-plan__theme-edit { margin-top: 2px; }
.stx-plan__theme-edit .stx-plan__i { width: 18px; height: 18px; }

.stx-plan__summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px 12px;
  border: 1px solid var(--p-sep); border-radius: var(--p-r-card); background: var(--p-surface-2);
}
.stx-plan__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
/* сводные бирки — как .stx-tag (нейтральная) */
.stx-plan__chip-s {
  display: inline-flex; align-items: center; min-height: 24px;
  padding: 0 10px; border-radius: var(--p-r-pill);
  background: var(--p-fill); color: var(--p-label-2);
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap;
}
.stx-plan__summary-btn { margin-left: auto; }

.stx-plan__hint {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 16px; padding: 12px 14px;
  border-radius: var(--p-r-card); background: var(--p-accent-soft);
  color: var(--p-label);
}
.stx-plan__hint .stx-plan__i { color: var(--p-accent); margin-top: 1px; }

.stx-plan__warn {
  margin-top: 12px; padding: 12px;
  border-radius: var(--p-r-card); background: var(--p-warning-soft); color: var(--p-warning-text);
}
.stx-plan__warn p { margin-bottom: 8px; }
.stx-plan__warn-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- вкладки: как .stx-segment из tokens.css */
.stx-plan__tabs {
  display: inline-flex; gap: 2px;
  margin: 20px 0 4px; padding: 3px;
  border-radius: var(--p-r-card); background: var(--p-fill);
}
.stx-plan__tab {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px;
  border: 0; border-radius: calc(var(--p-r-card) - 3px);
  background: transparent; color: var(--p-label-2);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--p-dur) var(--p-ease), color var(--p-dur) var(--p-ease), box-shadow var(--p-dur) var(--p-ease);
}
.stx-plan__tab:hover { color: var(--p-label); }
.stx-plan__tab.is-on { background: var(--p-surface); color: var(--p-label); box-shadow: var(--p-shadow-sm); }
.stx-plan__tab-count { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--p-accent-soft); color: var(--p-accent-text); font-size: 12px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.stx-plan__tab-lock { width: 14px; height: 14px; color: var(--p-label-3); }

/* ---------- части и главы (плоское белое, тонкие рамки) */
.stx-plan__part { margin-top: 24px; }
.stx-plan__part-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.stx-plan__part-title { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--p-label-3); }
/* бирка объёма — как .stx-tag */
.stx-plan__pill {
  flex: none;
  display: inline-flex; align-items: center; min-height: 24px;
  padding: 0 10px; border-radius: var(--p-r-pill);
  background: var(--p-fill); color: var(--p-label-2);
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stx-plan__pill.is-blue { background: var(--p-accent-soft); color: var(--p-accent-text); }

.stx-plan__chapter {
  margin-bottom: 12px; padding: 14px 12px 8px;
  border: 1px solid var(--p-sep); border-radius: var(--p-r-card); background: var(--p-surface);
  transition: box-shadow var(--p-dur) var(--p-ease), border-color var(--p-dur) var(--p-ease);
}
.stx-plan__chapter.is-alert { border-color: var(--p-danger); box-shadow: 0 0 0 3px var(--p-danger-soft); }
.stx-plan__ch-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.stx-plan__ch-head > .stx-plan__pill { margin-top: 6px; }
.stx-plan__ch-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 6px; flex: none;
  border-radius: var(--p-r-field); background: var(--p-accent-soft); color: var(--p-accent-text);
  font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.stx-plan__ch-num:empty { display: none; }
.stx-plan__ch-title {
  flex: 1; min-width: 0;
  padding: 3px 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--p-label);
  font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em;
  resize: none; overflow: hidden; field-sizing: content;
  transition: background-color var(--p-dur) var(--p-ease), box-shadow var(--p-dur) var(--p-ease);
}
.stx-plan__ch-title:hover { background: var(--p-fill); }
.stx-plan__ch-title:focus { background: var(--p-surface); box-shadow: 0 0 0 4px var(--p-accent-soft), inset 0 0 0 1px var(--p-accent); }
.stx-plan__ch-title::placeholder { color: var(--p-label-3); }
.stx-plan__ch-del { opacity: 0; transition: opacity var(--p-dur-fast); }
.stx-plan__ch-head:hover .stx-plan__ch-del, .stx-plan__ch-del:focus-visible { opacity: 1; }
.stx-plan__ch-toggle {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0;
  border: 0; background: transparent; color: var(--p-label);
  text-align: left; font-size: 17px; font-weight: 600; line-height: 1.3;
  cursor: pointer;
}
.stx-plan__ch-title-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.stx-plan__caret { width: 18px; height: 18px; color: var(--p-label-3); transition: transform var(--p-dur-slow) var(--p-ease); }
.stx-plan__ch-toggle[aria-expanded="true"] .stx-plan__caret { transform: rotate(180deg); }
.stx-plan__empty { padding: 8px 12px; color: var(--p-label-2); }
.stx-plan__empty.is-alert { color: var(--p-danger-text); font-weight: 500; }

.stx-plan__list { list-style: none; margin: 0; padding: 0; }
.stx-plan__list.is-empty { min-height: 8px; }
.stx-plan__list.is-drop-end { box-shadow: inset 0 -2px 0 var(--p-accent); }

/* ---------- пункт: строка с мягким hover, выбранный (в фокусе) — голубой */
.stx-plan__item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 8px;
  padding: 10px 8px 10px 24px;
  border-radius: var(--p-r-field);
  transition: background-color var(--p-dur-fast) var(--p-ease);
}
.stx-plan__item.no-num { grid-template-columns: minmax(0, 1fr); }
.stx-plan__item + .stx-plan__item { margin-top: 2px; }
.stx-plan__item:hover { background: var(--p-row-hover); }
.stx-plan__item:focus-within { background: var(--p-accent-soft); }
.stx-plan__item.is-dragging { opacity: .4; }
.stx-plan__item.is-drop-before { box-shadow: 0 -2px 0 var(--p-accent); }

.stx-plan__handle {
  position: absolute; left: 2px; top: 12px;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 28px;
  color: var(--p-label-3);
  cursor: grab;
  opacity: 0; transition: opacity var(--p-dur-fast);
}
.stx-plan__handle .stx-plan__i { width: 18px; height: 18px; }
.stx-plan__item:hover .stx-plan__handle { opacity: 1; }

.stx-plan__num {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; margin-top: 2px;
  border-radius: 8px; background: var(--p-accent-soft); color: var(--p-accent-text);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.stx-plan__item.is-locked .stx-plan__num { background: var(--p-fill); color: var(--p-label-2); }
.stx-plan__item-body { min-width: 0; }

.stx-plan__title, .stx-plan__about {
  display: block; width: 100%;
  padding: 3px 6px; margin: 0;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--p-label);
  resize: none; overflow: hidden;
  field-sizing: content;
  transition: background-color var(--p-dur-fast) var(--p-ease), box-shadow var(--p-dur-fast) var(--p-ease);
}
.stx-plan__title { font-size: 16px; line-height: 1.35; font-weight: 500; }
.stx-plan__about { margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--p-label-2); max-height: calc(2.8em + 6px); }
.stx-plan__about.is-clamped:not(:focus) {
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0) 55%, transparent);
  mask-image: linear-gradient(to bottom, rgb(0 0 0) 55%, transparent);
  cursor: text;
}
.stx-plan__about:focus { max-height: none; }
.stx-plan__title:hover, .stx-plan__about:hover { background: var(--p-fill); }
.stx-plan__title:focus, .stx-plan__about:focus { background: var(--p-surface); box-shadow: 0 0 0 4px var(--p-accent-soft), inset 0 0 0 1px var(--p-accent); }
.stx-plan__title::placeholder, .stx-plan__about::placeholder { color: var(--p-label-3); }

.stx-plan__open {
  display: block; width: 100%;
  padding: 2px 0; border: 0; background: transparent;
  color: var(--p-label); text-align: left;
  font-size: 16px; line-height: 1.35; font-weight: 500;
  cursor: pointer;
}
.stx-plan__title-text { overflow-wrap: anywhere; }
.stx-plan__about-text {
  margin-top: 2px;
  font-size: 15px; line-height: 1.4; color: var(--p-label-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.stx-plan__pts-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; margin-top: 2px; padding: 4px 8px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--p-accent-text);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background-color var(--p-dur-fast) var(--p-ease);
}
.stx-plan__pts-btn:hover { background: var(--p-accent-soft); }
@media (hover: hover) and (pointer: fine) {
  .stx-plan__pts-btn.is-empty { opacity: 0; transition: opacity var(--p-dur-fast); }
  .stx-plan__item:hover .stx-plan__pts-btn.is-empty,
  .stx-plan__item:focus-within .stx-plan__pts-btn.is-empty { opacity: 1; }
}
.stx-plan__pts-caret { width: 10px; text-align: center; }
.stx-plan__pts { list-style: none; margin: 4px 0 0; padding: 0 0 0 6px; }
.stx-plan__pt { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
/* поле ключевого пункта — как .stx-input */
.stx-plan__pt-input {
  flex: 1; min-width: 0; min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--p-line); border-radius: var(--p-r-field);
  background: var(--p-surface); color: var(--p-label); font-size: 15px;
  transition: border-color var(--p-dur) var(--p-ease), box-shadow var(--p-dur) var(--p-ease);
}
.stx-plan__pt-input:hover { border-color: var(--p-accent-line); }
.stx-plan__pt-input:focus { border-color: var(--p-accent); box-shadow: 0 0 0 4px var(--p-accent-soft); }
.stx-plan__pt-input::placeholder { color: var(--p-label-3); }
.stx-plan__pt-text { position: relative; padding-left: 14px; color: var(--p-label-2); font-size: 15px; }
.stx-plan__pt-text::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--p-accent); opacity: .7; }

.stx-plan__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

/* Q3 п. 2: одинаковый синий бейдж содержимого на всех устройствах, в том числе статичный. */
.stx-plan__chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%; min-height: 28px;
  padding: 0 10px 0 8px;
  border: 1px solid transparent; border-radius: var(--p-r-pill);
  background: var(--p-accent-soft); color: var(--p-accent-text);
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .01em;
  cursor: pointer;
  transition: background-color var(--p-dur-fast) var(--p-ease), border-color var(--p-dur-fast) var(--p-ease);
}
.stx-plan__chip:hover { background: var(--p-accent-soft-2); }
.stx-plan__chip[aria-expanded="true"] { background: var(--p-accent-soft-2); border-color: var(--p-accent-line); }
.stx-plan__chip.is-static { cursor: inherit; }
.stx-plan__chip.is-static:hover { background: var(--p-accent-soft); }
.stx-plan__chip-i { display: inline-flex; align-items: center; gap: 2px; flex: none; color: currentColor; }
.stx-plan__chip-i .stx-plan__i { width: 14px; height: 14px; }
.stx-plan__chip-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.stx-plan__chip-caret { width: 12px; height: 12px; opacity: .7; }

/* степпер объёма: белая пилюля с тонкой рамкой */
.stx-plan__vol {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px; border: 1px solid var(--p-line); border-radius: var(--p-r-pill);
  background: var(--p-surface);
}
.stx-plan__vol-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: var(--p-r-pill);
  background: transparent; color: var(--p-label-2);
  cursor: pointer;
  transition: background-color var(--p-dur-fast) var(--p-ease), color var(--p-dur-fast) var(--p-ease);
}
.stx-plan__vol-btn:hover { background: var(--p-fill); color: var(--p-label); }
.stx-plan__vol-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.stx-plan__vol-btn .stx-plan__i { width: 16px; height: 16px; }
.stx-plan__vol-val { min-width: 64px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--p-label); }
.stx-plan__vol.is-static { padding: 0; border: 0; background: transparent; color: var(--p-label-2); }
.stx-plan__vol.is-static .stx-plan__vol-val { min-width: 0; font-weight: 500; color: var(--p-label-2); }
.stx-plan__vol.is-big { align-self: flex-start; }
.stx-plan__vol.is-big .stx-plan__vol-btn { width: var(--p-tap); height: var(--p-tap); }
.stx-plan__vol.is-big .stx-plan__vol-val { min-width: 88px; font-size: 16px; }

/* «после оплаты» — нейтральная бирка */
.stx-plan__lock {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 24px; padding: 0 10px; border-radius: var(--p-r-pill);
  background: var(--p-fill); color: var(--p-label-2);
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap;
}
.stx-plan__lock .stx-plan__i { width: 14px; height: 14px; }

.stx-plan__actions { margin-left: auto; display: inline-flex; gap: 2px; opacity: 0; transition: opacity var(--p-dur-fast); }
.stx-plan__item:hover .stx-plan__actions, .stx-plan__item:focus-within .stx-plan__actions { opacity: 1; }

.stx-plan__busy {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--p-r-field);
  background: var(--p-veil);
  color: var(--p-label-2); font-size: 15px; font-weight: 500;
}

/* выбор типа содержимого: белая выпадашка, радиус 18, мягкая тень (как меню) */
.stx-plan__pop {
  margin-top: 8px; padding: 12px;
  border: 1px solid var(--p-sep); border-radius: var(--p-r-panel); background: var(--p-surface);
  box-shadow: var(--p-shadow-md);
  max-width: 440px;
}
.stx-plan__pop-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.stx-plan__opts { margin: 0; padding: 0; border: 0; min-width: 0; }
.stx-plan__legend { padding: 0 4px; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--p-label-3); }
.stx-plan__opt {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--p-tap); padding: 6px 10px;
  border-radius: var(--p-r-field);
  cursor: pointer;
  transition: background-color var(--p-dur-fast) var(--p-ease);
}
.stx-plan__opt:hover { background: var(--p-fill); }
.stx-plan__opt.is-on { background: var(--p-accent-soft); }
.stx-plan__opt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--p-accent); }
.stx-plan__opt-i { display: inline-flex; gap: 2px; color: var(--p-accent-text); }
.stx-plan__opt-i .stx-plan__i { width: 18px; height: 18px; }
.stx-plan__opt-t { display: flex; flex-direction: column; min-width: 0; }
.stx-plan__opt-t span { font-size: 15px; font-weight: 500; color: var(--p-label); }
.stx-plan__opt-t small { font-size: 13px; color: var(--p-label-2); }
.stx-plan__soft {
  margin-top: 10px; padding: 8px 12px;
  border-radius: var(--p-r-field);
  background: var(--p-warning-soft); color: var(--p-warning-text);
  font-size: 13px;
}

/* поля: подпись как .stx-label, поле как .stx-input */
.stx-plan__field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.stx-plan__field > span { font-size: 13px; font-weight: 500; color: var(--p-label-2); }
.stx-plan__field input, .stx-plan__field select, .stx-plan__field textarea {
  width: 100%; min-height: var(--p-tap);
  padding: 10px 14px;
  border: 1px solid var(--p-line); border-radius: var(--p-r-field);
  background: var(--p-surface); color: var(--p-label);
  font-size: 15px; line-height: 1.35;
  transition: border-color var(--p-dur) var(--p-ease), box-shadow var(--p-dur) var(--p-ease);
}
.stx-plan__field textarea { resize: vertical; }
.stx-plan__field input:hover, .stx-plan__field select:hover, .stx-plan__field textarea:hover { border-color: var(--p-accent-line); }
.stx-plan__field input:focus, .stx-plan__field select:focus, .stx-plan__field textarea:focus {
  border-color: var(--p-accent); box-shadow: 0 0 0 4px var(--p-accent-soft);
}
.stx-plan__field input::placeholder, .stx-plan__field textarea::placeholder { color: var(--p-label-3); }
.stx-plan__field.is-static { flex-direction: row; justify-content: space-between; align-items: center; min-height: 32px; }
.stx-plan__field.is-static strong { font-weight: 500; color: var(--p-label); }
.stx-plan__field .stx-plan__pts { padding-left: 0; }

/* Кастомный селект панели: разметка и поведение — js/form.js, ВЕСЬ ВИД (рамки, фокус, список, галочка) — .stx-select* из tokens.css.
   Здесь только размеры и шрифт под окно. */
.stx-plan__field > .stx-plan__field-label { font-size: 13px; font-weight: 500; color: var(--p-label-2); cursor: default; }
.stx-plan .stx-plan__select .stx-select__native,
.stx-plan .stx-plan__select .stx-select__btn { min-height: var(--p-tap); padding-right: 40px; padding-left: 14px; font-size: 15px; font-weight: 500; letter-spacing: inherit; }
.stx-plan .stx-plan__select .stx-select__value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stx-plan .stx-plan__select .stx-select__list { max-height: min(280px, 45vh); }
.stx-plan .stx-plan__select .stx-select__option { min-height: 40px; font-size: 15px; }
.stx-plan[data-mode="phone"] .stx-plan__select .stx-select__native,
.stx-plan[data-mode="phone"] .stx-plan__select .stx-select__btn { font-size: 16px; }
.stx-plan__field .stx-plan__pt-input { min-height: var(--p-tap); }

/* тумблеры (если есть в разметке) — .stx-switch из tokens.css; здесь только строка */
.stx-plan .stx-switch-line { min-height: var(--p-tap); }

/* заключение и источники */
.stx-plan__concl { padding-left: 24px; }
.stx-plan__src-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 48px; padding: 12px 16px;
  border: 1px solid var(--p-sep); border-radius: var(--p-r-card);
  background: var(--p-surface-2); color: var(--p-label-2);
  font-size: 15px; text-align: left;
  cursor: pointer;
  transition: color var(--p-dur-fast) var(--p-ease), border-color var(--p-dur-fast) var(--p-ease);
}
.stx-plan__src-link:hover { color: var(--p-label); border-color: var(--p-accent-line); }
.stx-plan__src-link .stx-plan__i:last-child { margin-left: auto; width: 16px; height: 16px; }

.stx-plan__sources { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.stx-plan__card {
  padding: 16px;
  border-radius: var(--p-r-card);
  background: var(--p-surface);
  border: 1px solid var(--p-sep);
  box-shadow: var(--p-shadow-sm);
}
.stx-plan__card.is-center { text-align: center; padding: 32px 20px; }
.stx-plan__card.is-center .stx-plan__i { margin: 0 auto 8px; width: 28px; height: 28px; color: var(--p-label-3); }
.stx-plan__card.is-center .stx-plan__btn { margin-top: 16px; }
.stx-plan__card.is-lock { display: flex; align-items: center; gap: 10px; background: var(--p-surface-2); color: var(--p-label); box-shadow: none; }
.stx-plan__card.is-lock .stx-plan__i { color: var(--p-label-2); }
/* заголовок секции: 12 px, капитель, третий цвет (как .stx-menu__label) */
.stx-plan__card-title { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--p-label-3); }
.stx-plan__card.is-center .stx-plan__card-title { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--p-label); }
.stx-plan__dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; align-items: baseline; margin-bottom: 16px; }
.stx-plan__dl dt { color: var(--p-label-2); }
.stx-plan__dl dd { font-weight: 500; color: var(--p-label); }
.stx-plan__muted { color: var(--p-label-2); }
.stx-plan__muted.is-small { font-size: 13px; line-height: 1.38; margin-top: 8px; }
.stx-plan__muted .stx-plan__i { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
.stx-plan__example {
  margin-top: 6px; padding: 10px 12px;
  border-left: 2px solid var(--p-accent); border-radius: 4px;
  background: var(--p-surface-2);
  font-family: var(--stx-font-doc, "Times New Roman", Times, serif); font-size: 16px; line-height: 1.45; color: var(--p-label);
}
.stx-plan__src-user { min-height: 120px; }

/* боковая панель: секции «Параметры / Объём / Бесплатно» внутри одной стеклянной карточки */
.stx-plan__params .stx-plan__field:first-of-type { margin-top: 4px; }
.stx-plan__params .stx-plan__field { margin-top: 10px; }
.stx-plan__side-scroll .stx-plan__card-title { margin-bottom: 10px; }
.stx-plan__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stx-plan__stats > div { padding: 8px 12px; border-radius: var(--p-r-field); background: var(--p-surface); border: 1px solid var(--p-sep); }
.stx-plan__stats dt { font-size: 13px; line-height: 1.38; color: var(--p-label-2); }
.stx-plan__stats dd { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--p-label); }
.stx-plan__free { font-weight: 500; margin-bottom: 8px; color: var(--p-label); }
.stx-plan__bar-track { height: 4px; border-radius: 2px; background: var(--p-fill-2); overflow: hidden; }
.stx-plan__bar-fill { height: 100%; border-radius: 2px; background: var(--p-accent); transition: width var(--p-dur-slow) var(--p-ease); }
.stx-plan__actions-main { display: flex; flex-direction: column; gap: 8px; }
.stx-plan__err { color: var(--p-danger-text); font-size: 14px; font-weight: 500; }
.stx-plan__regen { justify-content: center; min-height: var(--p-tap); }

/* ---------- состояния: скелетон, ошибка */
.stx-plan__skel-cap { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; color: var(--p-label-2); font-size: 15px; font-weight: 500; }
.stx-plan__skel-cap .stx-plan__i { width: 18px; height: 18px; color: var(--p-accent); }
.stx-plan__sk {
  height: 14px; margin: 8px 0;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--p-fill) 0%, var(--p-fill-2) 50%, var(--p-fill) 100%);
  background-size: 200% 100%;
  animation: stx-plan-shimmer 1.4s ease-in-out infinite;
}
.stx-plan__sk.is-cap { height: 12px; }
.stx-plan__sk.is-head { height: 22px; margin-bottom: 12px; }
.stx-plan__sk.is-thin { height: 10px; }
.stx-plan__sk.is-chip { height: 24px; border-radius: var(--p-r-pill); }
.stx-plan__skel-part { margin: 16px 0 20px; }
.stx-plan__chapter.is-skel { padding: 16px; }
.stx-plan__skel-item { padding: 8px 0; border-top: 1px solid var(--p-sep); }

.stx-plan__state { max-width: 520px; margin: 32px auto; padding: 32px 24px; text-align: center; }
.stx-plan__state-i { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--p-accent); opacity: .9; }
.stx-plan__state-title { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; color: var(--p-label); }
.stx-plan__state-text { color: var(--p-label-2); font-size: 15px; line-height: 1.5; }
.stx-plan__state-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }

/* ---------- тост (как .stx-toast) */
.stx-plan__toast {
  position: absolute; left: 50%; bottom: 24px; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 16px; min-height: 48px;
  border-radius: var(--p-r-card);
  background: var(--p-tooltip-bg); color: var(--p-tooltip-fg);
  box-shadow: var(--p-shadow-lg);
  font-size: 14px;
  opacity: 0; transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .2s, transform .3s var(--p-spring);
}
.stx-plan__toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.stx-plan__toast:empty { display: none; }
.stx-plan__toast-btn {
  min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .12); color: inherit;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background-color var(--p-dur-fast) var(--p-ease);
}
.stx-plan__toast-btn:hover { background: rgba(255, 255, 255, .22); }
.stx-plan[data-mode="tablet"] .stx-plan__toast, .stx-plan[data-mode="phone"] .stx-plan__toast { bottom: 132px; }

/* ---------- слой: шторки и подтверждение (шторка снизу — как .stx-sheet, стекло) */
.stx-plan__layer { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.stx-plan__layer > * { pointer-events: auto; }
.stx-plan__sheet-wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.stx-plan__sheet-back { position: absolute; inset: 0; background: var(--p-scrim); animation: stx-plan-fade .2s linear both; }
.stx-plan__sheet {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 560px; max-height: 90%;
  border: var(--p-glass-border); border-bottom: 0;
  border-radius: var(--p-r-sheet) var(--p-r-sheet) 0 0;
  background: var(--p-glass-bg-strong);
  -webkit-backdrop-filter: var(--p-glass-blur);
  backdrop-filter: var(--p-glass-blur);
  box-shadow: var(--p-shadow-lg), var(--p-glass-highlight);
  animation: stx-plan-up .35s var(--p-ease) both;
}
.stx-plan__sheet::before { content: ""; display: block; width: 36px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--p-fill-2); }
.stx-plan__sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 4px 20px; }
.stx-plan__sheet-title { font-size: 17px; font-weight: 600; color: var(--p-label); }
.stx-plan__sheet-head .stx-plan__icon-btn { width: var(--p-tap); height: var(--p-tap); }
.stx-plan__sheet-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 20px 16px; }
.stx-plan__sheet-body > .stx-plan__card { margin-top: 12px; }
.stx-plan__sheet-body > .stx-plan__btn { margin-top: 12px; }
.stx-plan__sheet-body .stx-plan__opts { margin-top: 12px; }
.stx-plan__sheet-body > .stx-plan__muted { margin-top: 12px; }
.stx-plan__sheet-foot { flex: none; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--p-sep); }
.stx-plan__sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.stx-plan__sheet-row .stx-plan__btn { padding: 0 10px; }

.stx-plan__confirm-wrap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: var(--p-scrim);
  animation: stx-plan-fade .15s linear both;
}
.stx-plan__confirm {
  width: 100%; max-width: 400px; padding: 20px;
  border: var(--p-glass-border); border-radius: var(--p-r-panel);
  background: var(--p-glass-bg-strong);
  -webkit-backdrop-filter: var(--p-glass-blur);
  backdrop-filter: var(--p-glass-blur);
  box-shadow: var(--p-shadow-lg), var(--p-glass-highlight);
}
.stx-plan__confirm-t { font-size: 17px; font-weight: 500; line-height: 1.4; margin-bottom: 16px; color: var(--p-label); }
.stx-plan__confirm-btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- появление пунктов (пружина 300 мс, шаг 40 мс) */
.stx-plan .is-enter { animation: stx-plan-in .3s var(--p-spring) both; animation-delay: calc(var(--i, 0) * 40ms); }

@keyframes stx-plan-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stx-plan-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stx-plan-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes stx-plan-spin { to { transform: rotate(360deg); } }
@keyframes stx-plan-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- сенсорные экраны: цели 44 px, действия видны всегда */
@media (hover: none), (pointer: coarse) {
  .stx-plan__handle { display: none; }
  .stx-plan__item { padding-left: 8px; }
  .stx-plan__concl { padding-left: 8px; }
  .stx-plan__actions, .stx-plan__ch-del { opacity: 1; }
  .stx-plan__icon-btn { width: var(--p-tap); height: var(--p-tap); }
  .stx-plan__vol-btn { width: 40px; height: 40px; }
  .stx-plan__chip { min-height: var(--p-tap); }
  .stx-plan__pts-btn, .stx-plan__link, .stx-plan__add { min-height: var(--p-tap); }
  .stx-plan__btn.is-small { min-height: var(--p-tap); }
  .stx-plan__tab { min-height: var(--p-tap); }
}

/* ---------- планшет 768–1023 */
.stx-plan[data-mode="tablet"] .stx-plan__dialog { top: 16px; bottom: 16px; width: calc(100% - 32px); }
.stx-plan[data-mode="tablet"] .stx-plan__grid { padding: 20px 24px 32px; }
.stx-plan[data-mode="tablet"] .stx-plan__main { padding: 20px 24px 28px; }
.stx-plan[data-mode="tablet"] .stx-plan__head { padding-left: 24px; }
.stx-plan[data-mode="tablet"] .stx-plan__actions-main { flex-direction: row-reverse; align-items: center; flex-wrap: wrap; }
.stx-plan[data-mode="tablet"] .stx-plan__actions-main .is-primary { flex: 1 1 auto; width: auto; }
.stx-plan[data-mode="tablet"] .stx-plan__actions-main .stx-plan__err { flex-basis: 100%; }

/* ---------- телефон < 768: полноэкранный лист, панель параметров — шторка снизу; blur подложки выключен */
.stx-plan[data-mode="phone"] .stx-plan__dialog {
  top: 0; bottom: 0; width: 100%;
  border: 0; border-radius: 0;
  background: var(--p-surface);
  box-shadow: none;
  padding-top: env(safe-area-inset-top, 0px);
  transform: translateY(40px);
}
.stx-plan[data-mode="phone"].is-in .stx-plan__dialog { transform: none; }
.stx-plan[data-mode="phone"] .stx-plan__backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* на телефоне лист — сам экран, без карточки */
.stx-plan[data-mode="phone"] .stx-plan__main { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.stx-plan[data-mode="phone"] .stx-plan__head { min-height: 56px; padding: 6px 12px 6px 4px; gap: 4px; }
.stx-plan[data-mode="phone"] .stx-plan__close { order: 0; margin-left: 0; }
.stx-plan[data-mode="phone"] .stx-plan__heading { flex: 1; min-width: 0; font-size: 17px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stx-plan[data-mode="phone"] .stx-plan__status { font-size: 13px; }
.stx-plan[data-mode="phone"] .stx-plan__grid { padding: 16px 16px 24px; }
.stx-plan[data-mode="phone"] .stx-plan__eyebrow { font-size: 12px; }
.stx-plan[data-mode="phone"] .stx-plan__theme-input,
.stx-plan[data-mode="phone"] .stx-plan__theme-text { font-size: 19px; }
.stx-plan[data-mode="phone"] .stx-plan__chip-s,
.stx-plan[data-mode="phone"] .stx-plan__pill,
.stx-plan[data-mode="phone"] .stx-plan__chip,
.stx-plan[data-mode="phone"] .stx-plan__lock,
.stx-plan[data-mode="phone"] .stx-plan__tab-count { font-size: 13px; }
.stx-plan[data-mode="phone"] .stx-plan__pts-btn,
.stx-plan[data-mode="phone"] .stx-plan__vol-val,
.stx-plan[data-mode="phone"] .stx-plan__field > span,
.stx-plan[data-mode="phone"] .stx-plan__field > .stx-plan__field-label,
.stx-plan[data-mode="phone"] .stx-plan__opt-t small,
.stx-plan[data-mode="phone"] .stx-plan__stats dt,
.stx-plan[data-mode="phone"] .stx-plan__soft,
.stx-plan[data-mode="phone"] .stx-plan__muted.is-small,
.stx-plan[data-mode="phone"] .stx-plan__btn.is-small,
.stx-plan[data-mode="phone"] .stx-plan__num,
.stx-plan[data-mode="phone"] .stx-plan__err { font-size: 15px; }
.stx-plan[data-mode="phone"] .stx-plan__field input,
.stx-plan[data-mode="phone"] .stx-plan__field select,
.stx-plan[data-mode="phone"] .stx-plan__field textarea,
.stx-plan[data-mode="phone"] .stx-plan__pt-input { font-size: 16px; }
.stx-plan[data-mode="phone"] .stx-plan__tabs { display: flex; }
.stx-plan[data-mode="phone"] .stx-plan__tab { flex: 1; justify-content: center; min-height: var(--p-tap); }
.stx-plan[data-mode="phone"] .stx-plan__chapter { padding: 6px 8px 6px 12px; }
.stx-plan[data-mode="phone"] .stx-plan__ch-head { align-items: center; margin-bottom: 0; }
.stx-plan[data-mode="phone"] .stx-plan__ch-head > .stx-plan__icon-btn { width: var(--p-tap); height: var(--p-tap); }
.stx-plan[data-mode="phone"] .stx-plan__ch-toggle .stx-plan__pill { margin-top: 0; }
.stx-plan[data-mode="phone"] .stx-plan__chapter.is-open .stx-plan__list { margin-top: 4px; }
.stx-plan[data-mode="phone"] .stx-plan__item { padding: 10px 8px; cursor: pointer; }
.stx-plan[data-mode="phone"] .stx-plan__item.no-num { grid-template-columns: minmax(0, 1fr); }
.stx-plan[data-mode="phone"] .stx-plan__item:active { background: var(--p-fill); }
.stx-plan[data-mode="phone"] .stx-plan__chip-t { max-width: none; white-space: normal; }
.stx-plan[data-mode="phone"] .stx-plan__chip { min-height: 32px; border-radius: 16px; }
.stx-plan[data-mode="phone"] .stx-plan__summary-btn { margin-left: 0; }
.stx-plan[data-mode="phone"] .stx-plan__bar { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.stx-plan[data-mode="phone"] .stx-plan__actions-main { gap: 2px; }
.stx-plan[data-mode="phone"] .stx-plan__stats dd { font-size: 17px; }
.stx-plan[data-mode="phone"] .stx-plan__sheet { max-width: none; max-height: calc(100% - 24px); }
.stx-plan[data-mode="phone"] .stx-plan__sheet-row .stx-plan__btn { font-size: 15px; }
.stx-plan[data-mode="phone"] .stx-plan__dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.stx-plan[data-mode="phone"] .stx-plan__dl dd { margin-bottom: 8px; }
.stx-plan[data-mode="phone"] .stx-plan__state { margin: 8px auto; padding: 24px 8px; }

/* ---------- настройки системы (тёмная тема — только через tokens.css по <html data-theme="dark">) */
@media (prefers-reduced-motion: reduce) {
  .stx-plan *, .stx-plan *::before, .stx-plan *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .stx-plan .stx-plan__spin { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .stx-plan__bar, .stx-plan__side-in, .stx-plan__sheet, .stx-plan__confirm { background: var(--p-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .stx-plan__backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* нет backdrop-filter — панель, шторка и нижняя полоса непрозрачные, подложка плотнее */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stx-plan__bar, .stx-plan__side-in, .stx-plan__sheet, .stx-plan__confirm { background: var(--p-surface); }
  .stx-plan__backdrop { background: var(--p-backdrop); }
}

/* ===== S31: доводка окна плана по приёмке design-qa (qa1) ===== */
/* пункт: чипы ближе к своему «о чём», между пунктами — воздух */
.stx-plan__item { padding-top: 12px; padding-bottom: 12px; }
.stx-plan__item + .stx-plan__item { margin-top: 8px; }
.stx-plan__meta { margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  /* пустая кнопка «Ключевые пункты» невидима до наведения — не занимает строку между «о чём» и чипами */
  .stx-plan__pts-btn.is-empty { position: absolute; right: 8px; top: 8px; margin: 0; background: var(--p-surface); }
}
/* телефон: название главы на всю ширину, бейдж объёма и шеврон — строкой ниже */
.stx-plan[data-mode="phone"] .stx-plan__ch-toggle { flex-wrap: wrap; row-gap: 2px; padding: 8px 0; }
.stx-plan[data-mode="phone"] .stx-plan__ch-title-text { flex: 1 1 calc(100% - 44px); }
.stx-plan[data-mode="phone"] .stx-plan__ch-toggle > .stx-plan__pill { margin-left: 42px; }/* qa2: строка чипов не переносится — длинная подпись типа сокращается многоточием, «после оплаты» и действия остаются в строке */
.stx-plan:not([data-mode="phone"]) .stx-plan__meta { flex-wrap: nowrap; }
.stx-plan:not([data-mode="phone"]) .stx-plan__meta > * { flex: none; }
.stx-plan:not([data-mode="phone"]) .stx-plan__meta > .stx-plan__chip { flex: 0 1 auto; min-width: 0; max-width: 300px; }

/* ==================== N3a (2026-10-05): окно на всю ширину, карточки справа, плавающая панель пункта ==================== */
.stx-plan__dialog { top: 16px; bottom: 16px; width: calc(100% - 32px); max-width: 1680px; }
.stx-plan__grid.is-two { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 20px 28px 40px; justify-content: stretch; }
@media (min-width: 1600px) { .stx-plan__grid.is-two { grid-template-columns: minmax(0, 1fr) 380px; } }
.stx-plan__side-in { max-height: calc(100vh - 32px - 64px - 40px); background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 12px; }
.stx-plan__side-scroll { gap: 12px; }
.stx-plan__side-scroll > .stx-plan__card.stx-plan__pcard,
.stx-plan__pcard {
  padding: 18px 20px; border-radius: 22px; background: var(--p-surface);
  border: 1px solid var(--p-sep); box-shadow: var(--p-shadow-sm);
}
.stx-plan__side-scroll > .stx-plan__card + .stx-plan__card { border-top: 1px solid var(--p-sep); }
.stx-plan__side-in > .stx-plan__actions-main {
  padding: 16px 20px; border-radius: 22px; border: var(--p-glass-border);
  background: var(--p-glass-bg-strong); -webkit-backdrop-filter: var(--p-glass-blur); backdrop-filter: var(--p-glass-blur);
  box-shadow: var(--p-glass-shadow), var(--p-glass-highlight);
}
.stx-plan__pcard-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--p-label); }
.stx-plan__pcard-title .stx-plan__i { width: 20px; height: 20px; color: var(--p-label-2); }
.stx-plan__pcard-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stx-plan__pcard-i { width: 22px; height: 22px; color: var(--p-label-2); }
.stx-plan__pcard-sub { flex: 1; min-width: 0; font-size: 14px; color: var(--p-label-2); }
.stx-plan__pcard-edit { min-height: 32px; padding: 4px 6px; font-size: 14px; }
.stx-plan__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stx-plan__tag { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 9px; border-radius: 8px; background: var(--p-fill); font-size: 13px; line-height: 1.3; color: var(--p-label); }
.stx-plan__tag-k { color: var(--p-label-3); }
.stx-plan__tag.is-type .stx-plan__i { width: 16px; height: 16px; color: var(--p-accent); }
.stx-plan__pcard .stx-plan__params { margin-top: 12px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--p-sep); border-radius: 0; box-shadow: none; background: transparent; }
.stx-plan__pcard .stx-plan__params > .stx-plan__card-title { display: none; }
.stx-plan__irows { display: flex; flex-direction: column; gap: 10px; }
.stx-plan__irow { display: grid; grid-template-columns: 20px auto 1fr; align-items: center; column-gap: 10px; }
.stx-plan__irow .stx-plan__i { width: 20px; height: 20px; color: var(--p-label-3); }
.stx-plan__irow dt { font-size: 14px; color: var(--p-label-2); }
.stx-plan__irow dd { font-size: 14px; font-weight: 600; color: var(--p-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stx-plan__muted.is-small { font-size: 13px; line-height: 1.4; }

/* тумблер «Без источников» */
.stx-plan__nosrc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.stx-plan__nosrc-t { flex: 1; font-size: 15px; font-weight: 600; }
.stx-plan__switch {
  position: relative; flex: none; width: 51px; height: 31px; padding: 0;
  border: 0; border-radius: 999px; background: var(--p-fill-2); cursor: pointer;
  transition: background-color var(--p-dur) var(--p-ease);
}
.stx-plan__switch.is-on { background: var(--p-success); }
.stx-plan__switch-k {
  position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16);
  transition: transform var(--p-dur) var(--p-spring);
}
.stx-plan__switch.is-on .stx-plan__switch-k { transform: translateX(20px); }
.stx-plan__main > .stx-plan__nosrc { margin: 12px 0 4px; box-shadow: none; background: var(--p-surface-2); }

/* название пункта: текст, по клику — поле с «Сохранить / Отменить» (image3) */
.stx-plan__title-view {
  display: block; width: 100%; padding: 3px 6px; margin: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--p-label);
  font-size: 16px; line-height: 1.35; font-weight: 500; text-align: left; cursor: text; overflow-wrap: anywhere;
}
.stx-plan__title-view:hover { background: var(--p-fill); }
.stx-plan__title-view.is-empty { color: var(--p-label-3); }
.stx-plan__tedit { position: relative; }
.stx-plan__title.is-editing { background: var(--p-surface); box-shadow: 0 0 0 4px var(--p-accent-soft), inset 0 0 0 1px var(--p-accent); }
.stx-plan__tedit-bar {
  display: inline-flex; gap: 2px; margin: 8px 0 4px; padding: 4px;
  border-radius: 999px; background: rgba(40, 46, 58, .86);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 24px rgba(20, 30, 50, .22);
}
.stx-plan__tedit-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.stx-plan__tedit-btn .stx-plan__i { width: 18px; height: 18px; }
.stx-plan__tedit-btn:hover { background: rgba(255, 255, 255, .14); }

/* плавающая панель «+ ↑ ↓ 🗑» */
.stx-plan__float {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  display: inline-flex; gap: 2px; padding: 4px;
  border-radius: 999px; background: rgba(40, 46, 58, .86);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 24px rgba(20, 30, 50, .22);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity var(--p-dur-fast) var(--p-ease), transform var(--p-dur-fast) var(--p-ease);
}
.stx-plan__item:hover > .stx-plan__float, .stx-plan__item:focus-within > .stx-plan__float { opacity: 1; transform: none; pointer-events: auto; }
.stx-plan__float-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px;
  border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer;
}
.stx-plan__float-btn .stx-plan__i { width: 18px; height: 18px; }
.stx-plan__float-btn:hover { background: rgba(255, 255, 255, .16); }
.stx-plan__float-btn.is-danger:hover { background: rgba(224, 64, 90, .55); }
.stx-plan__float-btn:active { opacity: .6; }
.stx-plan__float-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.stx-plan__rw { margin-left: auto; opacity: 0; transition: opacity var(--p-dur-fast); }
.stx-plan__item:hover .stx-plan__rw, .stx-plan__item:focus-within .stx-plan__rw { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .stx-plan__float, .stx-plan__item:focus-within > .stx-plan__float { opacity: 1; transform: none; pointer-events: auto; position: static; margin-top: 8px; grid-column: 1 / -1; justify-self: start; }
  .stx-plan__rw { opacity: 1; }
}

/* бейдж объёма главы — заливка, как image3 */
.stx-plan__ch-head > .stx-plan__pill.is-blue,
.stx-plan__ch-toggle .stx-plan__pill.is-blue { background: var(--p-success); color: #fff; min-height: 28px; padding: 0 12px; font-size: 13px; }

/* телефон и планшет */
.stx-plan[data-mode="tablet"] .stx-plan__dialog { top: 12px; bottom: 12px; width: calc(100% - 24px); }
.stx-plan[data-mode="phone"] .stx-plan__dialog { width: 100%; }
.stx-plan[data-mode="phone"] .stx-plan__main > .stx-plan__nosrc { padding: 14px 16px; border-radius: 16px; }
@media (hover: hover) and (pointer: fine) { .stx-plan[data-mode="desktop"] .stx-plan__item:not(.stx-plan__concl) > .stx-plan__item-body, .stx-plan[data-mode="tablet"] .stx-plan__item:not(.stx-plan__concl) > .stx-plan__item-body { padding-right: 168px; } }

/* N3b (owner point 45): token balance card and the price on the regenerate button */
.stx-plan__tok .stx-plan__pcard-title { display: flex; align-items: center; gap: 8px; }
.stx-plan__tok-n { margin-left: auto; min-width: 28px; padding: 2px 10px; border-radius: 999px; background: var(--p-accent-soft); color: var(--p-accent-text); font-weight: 600; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.stx-plan__tok .stx-plan__link { margin-top: 6px; }
.stx-plan__cost { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--p-accent-soft); color: var(--p-accent-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
/* ==================== P-план (2026-10-06): п. 25, 27, 28 ==================== */
/* п. 28: окно плана во всю ширину и высоту — без закруглений, тени, рамки и разделителя шапки */
.stx-plan__dialog,
.stx-plan[data-mode="tablet"] .stx-plan__dialog,
.stx-plan[data-mode="phone"] .stx-plan__dialog {
  top: 0; bottom: 0; left: 0; right: 0; width: 100%; max-width: none;
  border: 0; border-radius: 0; box-shadow: none;
  background: var(--p-surface-2); /* окно на весь экран — страница под ним не просвечивает */
}
.stx-plan__head { border-bottom: 0; }
.stx-plan__side-in { max-height: calc(100vh - 64px - 40px); }
/* п. 27: панель «+ ↑ ↓ 🗑» при наведении — выше, над строкой пункта */
@media (hover: hover) and (pointer: fine) {
  .stx-plan__float { top: -16px; }
}
/* P2 (владелец 2026-10-06): на ПК панель не перекрывает «Добавить ключевые пункты» — над строкой, левее правых чипов */
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .stx-plan__float { position: absolute; top: -20px; right: 250px; }
}
/* 1024–1279: колонка плана узкая — над строкой панель легла бы на название; ставим её внизу справа, у строки «Текст / страницы» там пусто */
@media (min-width: 1024px) and (max-width: 1279.98px) and (hover: hover) and (pointer: fine) {
  .stx-plan__float { position: absolute; top: auto; bottom: 10px; right: 8px; }
}
/* п. 27: окно «Точно удалить?» */
.stx-plan__confirm { animation: stx-plan-pop .22s var(--p-ease) both; }
.stx-plan__confirm-t { margin-bottom: 8px; font-weight: 600; }
.stx-plan__confirm-d { margin: 0 0 18px; font-size: 14px; line-height: 1.45; color: var(--p-label-2); overflow-wrap: anywhere; }
.stx-plan__btn.is-danger-fill { background: var(--p-danger); border-color: var(--p-danger); color: var(--p-on-accent); }
.stx-plan__btn.is-danger-fill:hover { filter: brightness(.94); }
@keyframes stx-plan-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
/* п. 25: «Ваш баланс токенов» — последней карточкой */
.stx-plan__side-in > .stx-plan__tok { flex: none; }
.stx-plan__main > .stx-plan__tok { margin-top: 20px; }
/* ==================== Q (2026-10-07): п. 30, 34 ==================== */
/* п. 30: тени карточек правой панели не обрезаются краем прокрутки — запас под тень внутри, отрицательные поля снаружи */
.stx-plan__side-scroll { padding: 6px 16px 20px; margin: -6px -16px -8px; scroll-padding: 6px 0 20px; }
.stx-plan__side-in { overflow: visible; }
/* п. 34: «Введение» — чёрным и жирным, как названия глав */
.stx-plan__part.is-intro .stx-plan__part-title {
  font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em;
  text-transform: none; color: var(--p-label);
}
.stx-plan[data-mode="phone"] .stx-plan__part.is-intro .stx-plan__part-title { font-size: 17px; }

/* Q3 п. 3: реальный порядок мобильных блоков задаёт renderMain в plan.js. */
.stx-plan[data-mode="phone"] .stx-plan__main { display: flex; flex-direction: column; align-items: stretch; }
.stx-plan[data-mode="phone"] .stx-plan__main > .stx-plan__state { width: 100%; max-width: none; }
.stx-plan[data-mode="phone"] .stx-plan__main > .stx-plan__panel { margin-top: 12px; }
