/* ══════════════════════════════════════════════════════════════════
   Компоненты интерфейса. Все размеры, отступы и радиусы перенесены
   из макета «Tutor Mini App Premium». Цвета — только через переменные
   из tokens.css.
   ══════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }
*::-webkit-scrollbar { width: 0; height: 0; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bgImage);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  transition: background 0.5s ease;
}

/* ── Анимации из макета ───────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes slideInR { from { opacity:0; transform:translateX(26px); } to { opacity:1; transform:none; } }
@keyframes slideInL { from { opacity:0; transform:translateX(-26px); } to { opacity:1; transform:none; } }
@keyframes menuIn   { from { opacity:0; transform:scale(0.88) translate(14px,-14px); } to { opacity:1; transform:none; } }
@keyframes scrimIn  { from { opacity:0; } to { opacity:1; } }
@keyframes sheetIn  { from { transform:translateY(102%); } to { transform:none; } }
@keyframes toastIn  { from { opacity:0; transform:translateY(16px) scale(0.96); } to { opacity:1; transform:none; } }
@keyframes pulseDot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.45; transform:scale(0.82); } }
@keyframes shimmer  { from { background-position:-260px 0; } to { background-position:420px 0; } }
@keyframes spin     { to { transform:rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Каркас экрана ────────────────────────────────────────────── */
.app {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  background-image: var(--bgImage);
  transition: background 0.5s ease;
}

/* Размытые пятна подсветки на фоне */
.glow-a,
.glow-b {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.glow-a {
  top: -90px; left: -60px; width: 280px; height: 280px;
  background: var(--glowA);
  filter: blur(70px);
}
.glow-b {
  bottom: 60px; right: -70px; width: 260px; height: 260px;
  background: var(--glowB);
  filter: blur(75px);
}

/* ── Шапка ────────────────────────────────────────────────────── */
.header {
  flex: none;
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 6;
  background: transparent;
  border-bottom: 0.5px solid transparent;
  transition: all 0.36s var(--ease);
}
.header.is-scrolled {
  padding: 6px 16px 8px;
  background: var(--glass);
  border-bottom: 0.5px solid var(--sep);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.header-avatar-wrap { position: relative; flex: none; cursor: pointer; }

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--avatar);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: var(--onAccent);
  transition: all 0.34s var(--ease);
}
.header.is-scrolled .avatar { width: 38px; height: 38px; font-size: 14px; }

.avatar-online {
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--bg);
  animation: pulseDot 2.6s ease-in-out infinite;
}

.header-col {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}

.header-sub {
  font-size: 12px; color: var(--muted); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.header-title {
  font-size: 23px; font-weight: 700; color: var(--text);
  letter-spacing: -0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: font-size 0.34s var(--ease);
}
.header.is-scrolled .header-title { font-size: 19px; }

.role-badge {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
  background: var(--warn); color: var(--cardSolid);
}

.dots {
  position: relative;
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--accentSoft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; letter-spacing: 1px;
  cursor: pointer; border: none;
  transition: all 0.32s var(--ease);
}
.dots.is-open { background: var(--accentGrad); color: var(--onAccent); }

.dots-badge {
  position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn);
  transition: opacity 0.3s ease;
}
.dots.is-open .dots-badge { opacity: 0; }

/* ── Прокручиваемая область ───────────────────────────────────── */
.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
  -webkit-overflow-scrolling: touch;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.42s var(--ease) both;
}
.screen.dir-fwd  { animation-name: slideInR; }
.screen.dir-back { animation-name: slideInL; }

.stack     { display: flex; flex-direction: column; gap: 16px; }
.stack-14  { display: flex; flex-direction: column; gap: 14px; }
.stack-12  { display: flex; flex-direction: column; gap: 12px; }
.stack-10  { display: flex; flex-direction: column; gap: 10px; }
.stack-8   { display: flex; flex-direction: column; gap: 8px; }
.row       { display: flex; align-items: center; gap: 12px; }
.row-8     { display: flex; gap: 8px; }
.row-7     { display: flex; gap: 7px; }
.row-6     { display: flex; gap: 6px; }
.spread    { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spread-b  { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.grow      { flex: 1; min-width: 0; }
.pad4      { padding: 0 4px; }
.pad6      { padding: 0 6px; }

/* ── Карточки ─────────────────────────────────────────────────── */
.card {
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 0.5px solid var(--cardBorder);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.card-tight  { padding: 16px 14px; gap: 12px; border-radius: 26px; }
.card-center { padding: 22px 16px; align-items: center; border-radius: 26px; }
.card-list   { padding: 0; gap: 0; border-radius: 22px; }
.card-stat   { flex: 1; padding: 14px 12px; gap: 3px; border-radius: 20px; }
.card-bank   { padding: 15px; gap: 10px; border-radius: 22px; cursor: pointer; }
.card-locked { flex-direction: row; align-items: center; gap: 12px; opacity: 0.7; box-shadow: none; }
.card-state  { padding: 38px 20px 26px; align-items: center; gap: 12px; border-radius: 26px; }
.card-tap    { cursor: pointer; }

/* ── Подписи разделов ─────────────────────────────────────────── */
.cap {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted);
}
.cap-pad { padding: 0 4px; }

/* ── Кнопки ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 14px 20px; border-radius: 99px; min-height: 48px;
  cursor: pointer; user-select: none; border: none;
  text-align: center; white-space: nowrap;
  transition: transform 0.24s var(--ease), filter 0.22s ease,
              background 0.3s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary   { background: var(--accentGrad); color: var(--onAccent); box-shadow: var(--btnShadow); }
.btn-secondary { background: var(--chip); color: var(--text); font-weight: 500; }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 13px; padding: 9px 14px; min-height: 40px;
}
.btn-on-accent {
  background: #fff; color: var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  font-size: 14px; padding: 12px 18px; min-height: 44px;
}
.btn-on-accent-wide { flex: 1; font-size: 15px; padding: 14px 20px; min-height: 48px; }
.btn-on-accent-ghost { background: rgba(255,255,255,0.22); color: var(--onAccent); font-weight: 500; }
.btn-disabled {
  background: var(--chip); color: var(--busyText);
  cursor: not-allowed; box-shadow: none; font-weight: 500;
}
.btn-sm   { font-size: 14px; padding: 11px 18px; min-height: 42px; }
.btn-wide { width: 100%; }

/* ── Сегменты ─────────────────────────────────────────────────── */
.seg-wrap {
  display: flex; gap: 4px; padding: 4px;
  border-radius: 14px; background: var(--chip);
}

.seg {
  flex: 1; text-align: center;
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  padding: 10px 12px; border-radius: 10px;
  cursor: pointer; min-height: 40px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted);
  transition: all 0.3s var(--ease);
}
.seg.is-active { background: var(--accentGrad); color: var(--onAccent); box-shadow: var(--btnShadow); }
.seg-compact { font-size: 12px; padding: 9px 6px; }

/* ── Чипы ─────────────────────────────────────────────────────── */
.mini-chip {
  flex: 1; text-align: center;
  font-family: inherit;
  font-size: 11.5px; font-weight: 500;
  padding: 7px 6px; border-radius: 99px; min-height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--chip); color: var(--text);
  cursor: pointer; border: none;
  transition: all 0.24s var(--ease);
}
.mini-chip-accent {
  font-weight: 600;
  background: var(--accentGrad); color: var(--onAccent);
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accentSoft);
  padding: 5px 10px; border-radius: 99px;
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.pill-now {
  font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px;
  background: var(--accentGrad); color: var(--onAccent); flex: none;
}
.pill-next {
  font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px;
  background: var(--chip); color: var(--muted); flex: none;
}

.back-btn {
  align-self: flex-start;
  font-family: inherit;
  font-size: 14px; font-weight: 500; color: var(--accent);
  padding: 8px 14px 8px 10px; border-radius: 99px;
  background: var(--accentSoft);
  cursor: pointer; min-height: 38px; border: none;
  display: inline-flex; align-items: center;
  transition: all 0.24s var(--ease);
}

.board-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-family: inherit;
  font-size: 11.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 99px; min-height: 32px;
  background: var(--accentSoft); color: var(--accent);
  cursor: pointer; flex: none; border: none;
  transition: all 0.24s var(--ease);
}

.icon-btn-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--chip); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; border: none; flex: none;
  transition: background 0.25s ease;
}

/* ── Списки внутри карточки ───────────────────────────────────── */
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 15px; min-height: 52px;
  cursor: pointer;
}
.list-row + .list-row { border-top: 0.5px solid var(--sep); }
.list-row-tall { padding: 14px 15px; }
.sep-line { height: 0.5px; background: var(--sep); margin-left: 15px; }
.sep-full { height: 0.5px; background: var(--sep); }

/* ── Прогресс ─────────────────────────────────────────────────── */
.track    { height: 8px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.track-sm { height: 6px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.track > i, .track-sm > i {
  display: block; height: 100%; border-radius: 99px;
  background: var(--accentGrad);
  transition: width 0.6s var(--ease);
}
.track > i.alt, .track-sm > i.alt { background: var(--accent2); }

/* ── Переключатель ────────────────────────────────────────────── */
.toggle {
  width: 50px; height: 30px; border-radius: 99px; flex: none;
  display: flex; align-items: center; padding: 2px;
  background: var(--chip); justify-content: flex-start;
  cursor: pointer; border: none;
  transition: background 0.34s var(--ease);
}
.toggle.is-on { background: var(--accentGrad); justify-content: flex-end; }
.toggle > i {
  display: block; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: all 0.34s var(--ease);
}

/* ── Календарь ────────────────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.dow      { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.dow-end  { color: var(--weekend); }

.cal-cell {
  height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border-radius: 14px; cursor: pointer; border: none;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cal-cell.is-out      { opacity: 0.4; cursor: default; }
.cal-cell.is-today    { background: var(--accentSoft); }
.cal-cell.is-selected { background: var(--accentGrad); box-shadow: var(--btnShadow); }

.cal-num { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.cal-cell.is-out .cal-num      { color: var(--busyText); }
.cal-cell.is-today .cal-num    { font-weight: 700; color: var(--accent); }
.cal-cell.is-selected .cal-num { font-weight: 700; color: var(--onAccent); }

.cal-dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; transition: background 0.3s var(--ease); }
.cal-cell.has-lesson .cal-dot          { background: var(--accent); }
.cal-cell.is-selected.has-lesson .cal-dot { background: var(--onAccent); }

/* ── Занятия в программе ──────────────────────────────────────── */
.lesson-row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px; border-radius: 20px;
  background: var(--card);
  border: 0.5px solid var(--cardBorder);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.lesson-date {
  width: 44px; flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 0; border-radius: 14px;
  background: var(--chip);
}
.lesson-day   { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.lesson-month { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

.badge {
  font-size: 10.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 99px;
  background: var(--chip); color: var(--muted);
  flex: none; white-space: nowrap;
}
.badge-accent  { background: var(--accentGrad); color: var(--onAccent); }
.badge-soft    { background: var(--accentSoft); color: var(--accent); }
.badge-warn    { background: var(--warnSoft); color: var(--warn); }
.badge-busy    { background: var(--busyBg); color: var(--busyText); }

/* ── Админ-блок ───────────────────────────────────────────────── */
.admin-card {
  display: flex; flex-direction: column; gap: 11px;
  padding: 14px; border-radius: 20px;
  background: var(--warnSoft);
  border: 1px dashed var(--warn);
}
.admin-cap {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--warn);
}
.admin-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 99px;
  background: var(--warn); color: var(--cardSolid); flex: none;
}
.admin-btn {
  flex: 1; text-align: center;
  font-family: inherit;
  font-size: 12.5px; font-weight: 600;
  padding: 10px 8px; border-radius: 99px; min-height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cardSolid); color: var(--warn);
  cursor: pointer;
  border: 0.5px solid var(--warn);
  transition: all 0.24s var(--ease);
}
.admin-stat {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 11px; border-radius: 14px;
  background: var(--cardSolid);
}

/* ── Нижняя навигация ─────────────────────────────────────────── */
.tabbar {
  flex: none;
  position: relative;
  z-index: 5;
  padding: 8px 2px 0;
  background: var(--glass);
  border-top: 0.5px solid var(--sep);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition: background 0.5s ease;
}
.tabbar-grid { display: grid; grid-template-columns: repeat(6,1fr); }

.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px 0 6px; min-height: 48px;
  cursor: pointer; border: none; background: none;
  font-family: inherit;
  transition: transform 0.24s var(--ease);
}
.tab-item:active { transform: scale(0.9); }

.tab-icon {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 28px; border-radius: 12px;
  background: transparent;
  transition: background 0.32s var(--ease);
}
.tab-item.is-active .tab-icon { background: var(--accentSoft); }

.tab-label {
  font-size: 9.5px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.tab-item.is-active .tab-label { font-weight: 600; color: var(--accent); }

.tab-badge {
  position: absolute; top: 0; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.home-indicator {
  height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.home-indicator > i {
  display: block; width: 140px; height: 5px;
  border-radius: 99px; background: var(--indicator);
}

/* ── Меню «три точки» ─────────────────────────────────────────── */
.scrim {
  position: absolute; inset: 0; z-index: 8;
  background: var(--scrim);
  backdrop-filter: blur(3px);
  animation: scrimIn 0.28s ease both;
  border: none;
}
.scrim-sheet { z-index: 10; backdrop-filter: blur(4px); animation-duration: 0.3s; }

.menu {
  position: absolute; top: 104px; right: 16px;
  width: 256px; border-radius: 20px; overflow: hidden;
  background: var(--menuBg);
  border: 0.5px solid var(--menuBorder);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 24px 56px rgba(0,0,0,0.28);
  z-index: 9;
  transform-origin: top right;
  animation: menuIn 0.42s var(--ease) both;
  display: flex; flex-direction: column;
}
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; height: 48px;
  cursor: pointer; border: none; background: transparent;
  font-family: inherit;
  text-align: left;
}
.menu-item + .menu-item { border-top: 0.5px solid var(--sep); }
.menu-item.is-active { background: var(--accentSoft); }
.menu-label { font-size: 16px; font-weight: 400; color: var(--text); letter-spacing: -0.01em; }
.menu-item.is-active .menu-label { font-weight: 600; color: var(--accent); }
.menu-hint { font-size: 13px; color: var(--muted); }
.menu-item.is-active .menu-hint { color: var(--accent); }

/* ── Нижняя шторка ────────────────────────────────────────────── */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
  border-top-left-radius: 30px; border-top-right-radius: 30px;
  padding: 12px 18px 26px;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--menuBg);
  border-top: 0.5px solid var(--menuBorder);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow: 0 -20px 50px rgba(0,0,0,0.28);
  animation: sheetIn 0.44s var(--ease) both;
  max-height: 88%;
  overflow-y: auto;
}
.sheet-grip {
  width: 38px; height: 5px; border-radius: 99px;
  background: var(--muted); opacity: 0.4; align-self: center;
}
.sheet-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.025em; }

/* ── Плашка-уведомление ───────────────────────────────────────── */
.toast {
  position: absolute; left: 20px; right: 20px; bottom: 104px; z-index: 12;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 18px;
  background: var(--toastBg);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: toastIn 0.36s var(--ease) both;
}
.toast-icon {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--onAccent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.toast-text { font-size: 14px; font-weight: 500; color: var(--toastText); }

/* ── Состояния экрана ─────────────────────────────────────────── */
.state-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--warnSoft); color: var(--warn);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.state-icon-soft { background: var(--accentSoft); color: var(--accent); }
.state-title { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.state-text  { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.5; max-width: 250px; }

.error-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 20px;
  background: var(--warnSoft);
  border: 0.5px solid var(--warn);
}
.error-icon {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--warn); color: var(--cardSolid);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}

.skel {
  border-radius: 20px;
  background: var(--skel);
  background-size: 420px 100%;
  animation: shimmer 1.4s linear infinite;
}
.skel-lg  { height: 168px; }
.skel-md  { height: 108px; }
.skel-sm  { height: 74px; }
.skel-cal { height: 320px; }

/* ── Оплата ───────────────────────────────────────────────────── */
.pay-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; border-radius: 26px;
  background: var(--accentGrad);
  box-shadow: var(--btnShadow);
  transition: all 0.4s var(--ease);
}
.pay-cap {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--onAccentSoft);
}
.pay-sum {
  font-size: 38px; font-weight: 700; color: var(--onAccent);
  letter-spacing: -0.04em; line-height: 1.05;
}
.pay-sub { font-size: 13px; color: var(--onAccentSoft); }
.pay-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.25); overflow: hidden; }
.pay-track > i { display: block; height: 100%; border-radius: 99px; background: #fff; }

/* ── Тексты ───────────────────────────────────────────────────── */
.t-17-600 { font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.t-16-600 { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.015em; line-height: 1.25; }
.t-15-600 { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -0.015em; }
.t-15-500 { font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.t-15     { font-size: 15px; color: var(--text); }
.t-14-600 { font-size: 14px; font-weight: 600; color: var(--text); }
.t-14-500 { font-size: 14px; font-weight: 500; color: var(--text); }
.t-13-600 { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.t-19-700 { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.025em; }
.t-20-700 { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.025em; line-height: 1.2; }
.t-22-700 { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.025em; }

.m-13 { font-size: 13px; color: var(--muted); }
.m-12 { font-size: 12px; color: var(--muted); }
.m-11 { font-size: 11px; color: var(--muted); }
.m-115{ font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.a-13 { font-size: 13px; font-weight: 500; color: var(--accent); cursor: pointer; }
.a-19-700 { font-size: 19px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }

.chevron { font-size: 17px; color: var(--muted); flex: none; }

/* ── Файлы и поля ─────────────────────────────────────────────── */
.file-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 16px;
  background: var(--chip);
}
.file-icon {
  width: 34px; height: 34px; flex: none; border-radius: 11px;
  background: var(--accentSoft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.remove-btn {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--chip); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; border: none;
}
.input, .textarea {
  width: 100%;
  font-family: inherit; font-size: 13px; color: var(--text);
  background: var(--cardSolid);
  border: 0.5px solid var(--sep);
  border-radius: 14px; padding: 11px 13px;
}
.textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }

.icon-circle {
  width: 34px; height: 34px; flex: none; border-radius: 12px;
  background: var(--accentSoft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Доска ────────────────────────────────────────────────────── */
.board-sheet {
  position: absolute; inset: 0; z-index: 13;
  display: flex; flex-direction: column;
  background: var(--bg);
  background-image: var(--bgImage);
  animation: sheetIn 0.44s var(--ease) both;
}
.board-bar {
  flex: none; display: flex; gap: 6px;
  padding: 0 14px 8px; overflow-x: auto;
}
.board-tool {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 99px; min-height: 34px;
  background: var(--chip); color: var(--muted);
  border: none; cursor: pointer; flex: none;
  transition: all 0.24s var(--ease);
}
.board-tool.is-active { background: var(--accentGrad); color: var(--onAccent); }
.board-row {
  flex: none; display: flex; align-items: center; gap: 7px;
  padding: 0 14px 10px;
}
.swatch {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--cardSolid);
  box-shadow: 0 0 0 1px var(--sep);
  cursor: pointer; padding: 0; flex: none;
}
.swatch.is-active { box-shadow: 0 0 0 2px var(--accent); }
.board-canvas {
  flex: 1; position: relative; margin: 0 14px;
  border-radius: 22px; overflow: hidden;
  background: var(--cardSolid);
  border: 0.5px solid var(--cardBorder);
  touch-action: none;
}
.board-item {
  position: absolute;
  padding: 8px 11px; border-radius: 12px;
  background: var(--accentSoft); color: var(--text);
  font-size: 12px; max-width: 60%;
  box-shadow: var(--shadow); cursor: move;
}
