/* ===== Design tokens ===== */
:root {
  --mint: #45c9be;
  --mint-dark: #2aa89d;
  --mint-light: #d9f4f1;
  --navy: #163a5f;
  --navy-800: #0f2740;
  --ink: #16232f;
  --muted: #566676;   /* 5,5:1 на кремовом — читается, но остаётся вторичным */
  --cream: #fdf6e9;
  --cream-100: #fffdf8;
  --line: rgba(22,58,95,0.1);
  --sky: #bfe6ef;
  --yellow: #f6e7a8;
  --lavender: #cab8ea;
  --lavender-light: #f0e9fb;
  --lavender-dark: #9b7fd1;
  --sage: #bfe4c8;
  --white: #ffffff;
  --success: #2fae79;
  --danger: #e2635b;
  --silver-200: #c9cfd8;
  --pro-gold: #e8b64a;

  /* Акцентная палитра: solid — для иконок и текста, soft — фон-подложка.
     Используется, чтобы разделы и предметы отличались по цвету. */
  --c-coral: #e0574e;   --c-coral-soft: #fdeae8;
  --c-amber: #c8871a;   --c-amber-soft: #fdf2df;
  --c-violet: #8060cb;  --c-violet-soft: #f0ebfc;
  --c-azure: #2e86c8;   --c-azure-soft: #e5f1fb;
  --c-teal: #1f9a90;    --c-teal-soft: #d9f4f1;
  --c-lime: #45925c;    --c-lime-soft: #e4f4e9;
  --c-pink: #c94a83;    --c-pink-soft: #fce9f2;

  /* theming layer: independent from --navy-800 so panels can stay dark-navy
     in both themes while text/surfaces still flip */
  --surface: #ffffff;
  --heading: #0f2740;
  --overlay: rgba(255, 255, 255, 0.35);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(22, 58, 95, 0.08);
  --shadow: 0 12px 32px rgba(22, 58, 95, 0.12);
  --shadow-lg: 0 24px 60px rgba(22, 58, 95, 0.18);

  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --sidebar-w: 264px;
}

html[data-theme="dark"] {
  --navy: #c9d9e8;
  --cream: #0d1721;
  --cream-100: #16232f;
  --line: rgba(255,255,255,0.1);
  --ink: #e7edf3;
  --muted: #a8b7c8;   /* 7,5:1 на карточке */
  --surface: #182634;
  --heading: #f3f7fa;
  --overlay: rgba(9, 15, 22, 0.55);
  --mint-light: #123330;
  --yellow: #3a331f;
  --lavender: #292142;
  --lavender-light: #2a2140;
  --sage: #15301f;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);

  --c-coral: #f58b84;   --c-coral-soft: #3b2320;
  --c-amber: #eab458;   --c-amber-soft: #382e1b;
  --c-violet: #b79bef;  --c-violet-soft: #2a2340;
  --c-azure: #6fb6e8;   --c-azure-soft: #172c3d;
  --c-teal: #45c9be;    --c-teal-soft: #123330;
  --c-lime: #78c48f;    --c-lime-soft: #16301f;
  --c-pink: #ea8ab7;    --c-pink-soft: #38202d;
}

/* Цветные подложки под иконки и бейджи */
.tint-coral  { background: var(--c-coral-soft);  color: var(--c-coral); }
.tint-amber  { background: var(--c-amber-soft);  color: var(--c-amber); }
.tint-violet { background: var(--c-violet-soft); color: var(--c-violet); }
.tint-azure  { background: var(--c-azure-soft);  color: var(--c-azure); }
.tint-teal   { background: var(--c-teal-soft);   color: var(--c-teal); }
.tint-lime   { background: var(--c-lime-soft);   color: var(--c-lime); }
.tint-pink   { background: var(--c-pink-soft);   color: var(--c-pink); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}
h1, h2, h3, h4, .heading {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  margin: 0;
  /* длинные слова («Пользовательское») иначе распирают страницу на телефоне */
  overflow-wrap: break-word;
  hyphens: auto;
}
p { margin: 0; line-height: 1.6; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--mint); color: white; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  color: white;
  box-shadow: 0 10px 24px rgba(69, 201, 190, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(69, 201, 190, 0.5); }
.btn-dark {
  background: var(--navy-800);
  color: white;
  box-shadow: 0 10px 24px rgba(15, 39, 64, 0.3);
}
.btn-dark:hover { transform: translateY(-3px); }
.btn-ghost {
  background: var(--surface);
  color: var(--heading);
  border: 2px solid rgba(22, 58, 95, 0.12);
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-dark); }
.btn-gold {
  background: linear-gradient(135deg, var(--pro-gold), #f2cd7a);
  color: var(--navy-800);
  box-shadow: 0 10px 24px rgba(232, 182, 74, 0.4);
}
.btn-gold:hover { transform: translateY(-3px); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-icon {
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  background: var(--surface); border: 2px solid rgba(22,58,95,0.1);
  color: var(--ink);
}
.btn-icon:hover { border-color: var(--mint); }

/* Переключатель темы: заметный в обеих темах — раньше в тёмной он сливался с фоном */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(22,58,95,0.12); background: var(--surface); color: var(--heading);
  display: flex; align-items: center; justify-content: center; transition: all 0.25s;
}
.theme-toggle .ic { color: var(--c-amber); }
.theme-toggle:hover { border-color: var(--mint); transform: rotate(15deg); }
html[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22);
}
html[data-theme="dark"] .theme-toggle .ic { color: #ffd76a; }
html[data-theme="dark"] .theme-toggle:hover { background: rgba(255,215,106,0.16); border-color: #ffd76a; }
/* То же для круглых кнопок рядом — иначе они тоже тонут в тёмной теме */
html[data-theme="dark"] .btn-icon {
  background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); color: var(--ink);
}
html[data-theme="dark"] .btn-icon:hover { border-color: var(--mint); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

/* ===== Badges & chips ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
}
.badge-mint { background: var(--mint-light); color: var(--mint-dark); }
.badge-pro { background: linear-gradient(135deg, var(--pro-gold), #f2cd7a); color: var(--navy-800); }
.badge-lavender { background: var(--lavender-light); color: var(--lavender-dark); }
.badge-muted { background: var(--cream-100); color: var(--muted); border: 1px solid rgba(107,124,140,0.2); }
.badge-success { background: rgba(47,174,121,0.15); color: var(--success); }
.badge-danger { background: rgba(226,99,91,0.15); color: var(--danger); }
.badge-warn { background: rgba(232,182,74,0.22); color: #9a6c12; }
html[data-theme="dark"] .badge-warn { color: var(--pro-gold); }

.chip {
  padding: 8px 16px; border-radius: 100px; border: 2px solid rgba(22,58,95,0.1);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--navy);
  transition: all 0.2s;
}
.chip.active, .chip:hover { border-color: var(--mint); background: var(--mint-light); color: var(--mint-dark); }
.chip .chip-x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  margin-left: 6px; margin-right: -4px; border-radius: 50%; background: var(--mint); color: #fff; vertical-align: -3px; }
.chip .chip-x:hover { background: var(--danger); }

/* ===== Card ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, background 0.25s;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* ===== App shell (sidebar layout) ===== */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--navy-800);
  color: white;
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 40;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.sidebar-logo .logo-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: var(--navy-800); font-size: 15px;
  flex-shrink: 0;
}
.sidebar-logo span { font-family: var(--font-head); font-size: 16px; font-weight: 500; }
a.sidebar-logo { transition: opacity 0.2s; }
a.sidebar-logo:hover { opacity: 0.8; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  font-weight: 600; font-size: 14px; color: rgba(255,255,255,0.65);
  transition: all 0.2s;
}
.sidebar-nav a .icon { font-size: 18px; width: 20px; text-align: center; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: white; }
.sidebar-nav a.active { background: var(--mint); color: var(--navy-800); }
.sidebar-foot {
  background: rgba(255,255,255,0.06); border-radius: 16px; padding: 16px;
  font-size: 12.5px; color: rgba(255,255,255,0.7);
}
.sidebar-foot strong { color: white; display: block; margin-bottom: 6px; font-family: var(--font-head); font-weight: 500;}
.sidebar-foot .foot-links { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.sidebar-foot .foot-links a { color: var(--mint); font-weight: 700; }

.app-main { flex: 1; min-width: 0; padding: 36px 44px 80px; }

/* Сворачиваемое меню: кнопка у логотипа, свёрнутое — только значки */
.sidebar { transition: width 0.25s ease, padding 0.25s ease; }
.sidebar-top { display: flex; align-items: center; }
/* круглая кнопка на правой кромке меню — не спорит с логотипом за место */
.sidebar-toggle {
  position: absolute; top: 40px; right: -14px; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; z-index: 2;
  border: 1px solid rgba(255,255,255,0.18); background: var(--navy-800); color: rgba(255,255,255,0.8);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.sidebar-toggle:hover { background: var(--mint); color: var(--navy-800); }
.sidebar-toggle svg { transform: rotate(180deg); transition: transform 0.25s; }
.sb-mini .sidebar { width: 84px; padding: 28px 12px; }
.sb-mini .sidebar-top { justify-content: center; }
.sb-mini .sidebar-logo { padding: 0; }
.sb-mini .sidebar-logo span, .sb-mini .sidebar-nav .lbl, .sb-mini .sidebar-foot { display: none; }
.sb-mini .sidebar-toggle svg { transform: none; }
.sb-mini .sidebar-nav a { justify-content: center; padding: 12px 0; }
.sb-mini .sidebar-nav a .neon-dot { position: absolute; margin: 0; transform: translate(12px, -12px); }
.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; gap: 20px; flex-wrap: wrap;
}
.app-topbar h1 { font-size: 28px; }
.app-topbar .sub { font-size: 14px; margin-top: 4px; }

/* Высота пилюли строго 44px — как у круглых кнопок рядом, иначе строка «съезжает» */
.user-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 44px;
  background: var(--surface); border-radius: 100px; padding: 0 16px 0 5px;
  box-shadow: var(--shadow-sm); border: 2px solid transparent; transition: border-color 0.2s;
}
.user-pill:hover { border-color: var(--mint); }
.user-pill .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--lavender-dark), var(--sky));
  display: flex; align-items: center; justify-content: center; color: white;
}
.user-pill .avatar:has(.kf-slot) { width: 42px; height: 42px; margin-left: -4px; background: none; }
.user-pill .points {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; color: var(--heading); font-size: 14px; line-height: 1;
}
.user-pill .points .ic { color: var(--mint-dark); }

/* Счётчик на иконке — с обводкой под фон, чтобы не «резался» о край кнопки */
.icon-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 100px; background: var(--danger); color: white;
  font-size: 10.5px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream); box-shadow: 0 2px 6px rgba(226,99,91,0.4);
}

.mobile-tabbar {
  display: none;
}

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea,
input.field, textarea.field {
  border: 2px solid rgba(22,58,95,0.1); border-radius: 14px; padding: 13px 16px;
  font-family: inherit; font-size: 14px; background-color: var(--surface); color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus,
input.field:focus, textarea.field:focus { outline: none; border-color: var(--mint); }
input.field, textarea.field { display: block; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-msg { font-size: 13px; line-height: 1.5; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.form-msg.ok { color: var(--mint-dark); background: var(--mint-light); }

/* Селект в фирменном виде: системный выпадающий список выбивался из дизайна */
select, .select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7c8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.6 9.4 6.4 6.4 6.4-6.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
  padding-right: 40px !important; cursor: pointer;
}
html[data-theme="dark"] select, html[data-theme="dark"] .select {
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2393a4b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.6 9.4 6.4 6.4 6.4-6.4'/%3E%3C/svg%3E");
}
.select-pill {
  height: 44px; border-radius: 100px; border: 2px solid rgba(22,58,95,0.1);
  background-color: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 0 18px;
}
.select-pill:focus { outline: none; border-color: var(--mint); }

/* ===== Utility ===== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;}
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }

/* progress bar */
.progress { height: 10px; border-radius: 100px; background: rgba(22,58,95,0.08); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--mint), var(--mint-dark)); transition: width 1s cubic-bezier(.2,.8,.2,1); }

/* ===== Search ===== */
.search-wrap { position: relative; flex: 1; max-width: 460px; min-width: 220px; }
.search-input {
  width: 100%; padding: 13px 44px 13px 44px; border-radius: 100px;
  border: 2px solid rgba(22,58,95,0.1); background: var(--surface);
  font-size: 14px; font-family: inherit; color: var(--ink);
}
.search-input:focus { outline: none; border-color: var(--mint); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: 0.5; pointer-events: none; }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; opacity: 0.5; font-size: 15px; padding: 8px; border-radius: 50%;
  display: none; color: var(--ink);
}
.search-clear:hover { opacity: 1; background: var(--cream-100); }
.search-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--surface);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; z-index: 80;
  max-height: 380px; overflow-y: auto; display: none;
}
.search-dropdown.open { display: block; }
.search-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); padding: 10px 10px 4px; font-weight: 800; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; }
.search-result:hover { background: var(--cream-100); }
.search-result .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--mint-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.search-result .txt { flex: 1; min-width: 0; }
.search-result .txt strong { display: block; font-size: 13.5px; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result .txt span { font-size: 12px; color: var(--muted); }
.search-empty { padding: 26px 16px; text-align: center; font-size: 13px; color: var(--muted); }

/* ===== Comments ===== */
.comments-section { margin-top: 8px; }
.comment-form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.comment-form .c-avatar { margin-top: 2px; }
.comment-form textarea { flex: 1; min-height: 60px; resize: vertical; }
.comment { display: flex; gap: 12px; padding: 16px 0; }
.comment + .comment { border-top: 1px solid rgba(22,58,95,0.08); }
.comment .c-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender-dark), var(--sky));
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 13px; flex-shrink: 0;
}
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.comment .c-head strong { color: var(--heading); }
.comment .c-head span.c-time { color: var(--muted); font-size: 12px; }
.comment .c-text { margin-top: 4px; font-size: 14px; color: var(--ink); line-height: 1.55; }

/* ===== Modal (payment) ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8, 14, 22, 0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 300; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--surface); border-radius: 28px; padding: 34px; max-width: 440px; width: 100%;
  box-shadow: var(--shadow-lg); transform: translateY(16px) scale(0.97); transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-backdrop.open .modal-card { transform: translateY(0) scale(1); }
.modal-card .modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--cream-100); font-size: 16px; color: var(--muted);
}
.pay-options { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.pay-option {
  border: 2px solid rgba(22,58,95,0.1); border-radius: 16px; padding: 16px 18px; cursor: pointer;
  transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.pay-option.active, .pay-option:hover { border-color: var(--mint); background: var(--mint-light); }
.pay-option .pay-title { font-weight: 700; font-size: 14px; color: var(--heading); }
.pay-option .pay-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pay-option .pay-price { font-family: var(--font-head); font-size: 15px; color: var(--heading); white-space: nowrap; }
.pay-success { text-align: center; padding: 10px 0; }
.pay-success .pay-check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--mint-light); color: var(--mint-dark);
  font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}

/* Печать конспекта заблокирована — на бумагу уходит только предупреждение */
@media print {
  body * { visibility: hidden !important; }
  body::after {
    content: "Печать материалов Конспектума запрещена правилами площадки.";
    visibility: visible; position: fixed; inset: 0; display: flex;
    align-items: center; justify-content: center; font-size: 18px; font-family: sans-serif;
  }
}

/* ===== Иконки ===== */
.ic { flex-shrink: 0; vertical-align: middle; }
.ic-box {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--mint-light); color: var(--mint-dark);
}
.ic-box-sm { width: 38px; height: 38px; border-radius: 11px; }
.ic-box-md { width: 48px; height: 48px; }
.ic-box-lg { width: 56px; height: 56px; border-radius: 16px; }
.btn .ic { margin-top: -1px; }

/* ===== Вкладки ===== */
/* Вкладки переносятся, а не прячутся в горизонтальный скролл:
   иначе последние («Акции», «Настройки») не видно и о них не догадаться */
.tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  background: var(--cream-100); border-radius: 22px; padding: 5px;
}
.tabs button {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: none; background: transparent; padding: 10px 18px; border-radius: 100px;
  font-weight: 700; font-size: 13.5px; color: var(--muted); transition: all 0.2s;
}
.tabs button:hover { color: var(--heading); }
.tabs button.active { background: var(--surface); color: var(--heading); box-shadow: var(--shadow-sm); }
.tabs button .count {
  background: var(--mint-light); color: var(--mint-dark); border-radius: 100px;
  padding: 1px 8px; font-size: 11.5px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Звёздный рейтинг ===== */
.stars { display: inline-flex; gap: 2px; color: var(--pro-gold); }
.stars .ic { color: var(--pro-gold); }

/* Ввод оценки: подсветка при наведении + подпись, сколько звёзд выбрано —
   без этого непонятно, что именно ты поставил */
.rating-input { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stars-input { display: inline-flex; gap: 4px; }
.stars-input button {
  background: none; border: none; padding: 2px; line-height: 0;
  color: rgba(22,58,95,0.22); transition: color 0.12s, transform 0.12s;
}
/* :not() обязателен — иначе тёмная тема по специфичности перебивает .on
   и выбранные звёзды остаются серыми */
html[data-theme="dark"] .stars-input button:not(.on):not(.preview) { color: rgba(255,255,255,0.22); }
.stars-input button:hover { transform: scale(1.18); }
.stars-input button.on { color: var(--pro-gold); }
.stars-input button.preview { color: rgba(232,182,74,0.6); }
html[data-theme="dark"] .stars-input button.on { color: #ffd76a; }
html[data-theme="dark"] .stars-input button.preview { color: rgba(255,215,106,0.6); }
.rating-label {
  font-size: 13.5px; font-weight: 800; color: var(--muted); min-width: 118px;
}
.rating-label strong { color: var(--pro-gold); }

/* ===== Реакции под комментарием ===== */
.reactions { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.react-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid rgba(22,58,95,0.12); background: transparent; color: var(--muted);
  border-radius: 100px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; transition: all 0.2s;
}
.react-btn:hover { border-color: var(--mint); color: var(--mint-dark); }
.react-btn.on-up { background: var(--mint-light); border-color: transparent; color: var(--mint-dark); }
.react-btn.on-down { background: rgba(226,99,91,0.14); border-color: transparent; color: var(--danger); }
.react-btn.report:hover { border-color: var(--danger); color: var(--danger); }
.teacher-like {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 100px;
  background: linear-gradient(135deg, rgba(232,182,74,0.18), rgba(232,182,74,0.08));
  border: 1.5px solid rgba(232,182,74,0.45); color: #b07f18;
  padding: 5px 13px; font-size: 12.5px; font-weight: 700;
}
html[data-theme="dark"] .teacher-like { color: var(--pro-gold); }
.badge-teacher { background: rgba(232,182,74,0.2); color: #a9761a; }
html[data-theme="dark"] .badge-teacher { color: var(--pro-gold); }

/* ===== Ползунок оплаты ===== */
.pay-slider-box { background: var(--cream-100); border-radius: 20px; padding: 22px; margin: 20px 0; }
.pay-split { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.pay-split .side { text-align: center; flex: 1; }
.pay-split .side .val { font-family: var(--font-head); font-size: 24px; color: var(--heading); }
.pay-split .side .lbl { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.pay-split .side.points .val { color: var(--mint-dark); }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 100px;
  background: rgba(22,58,95,0.12); outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--mint); cursor: grab; box-shadow: var(--shadow-sm);
}
.range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--mint); cursor: grab;
}
.range-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* ===== Защищённый просмотр конспекта ===== */
.reader {
  position: relative; border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow); user-select: none; -webkit-user-select: none;
}
.reader-page {
  position: relative; padding: 48px 54px; min-height: 460px; border-bottom: 1px solid rgba(22,58,95,0.07);
}
.reader-page p { color: var(--ink); font-size: 14.5px; line-height: 1.85; margin-bottom: 14px; }
.reader-page h4 { font-size: 16px; margin-bottom: 14px; }
.reader-page .page-num { position: absolute; bottom: 16px; right: 24px; font-size: 11.5px; color: var(--muted); }
.reader-watermark {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 40px; align-content: center; justify-content: center;
  opacity: 0.12; transform: rotate(-24deg) scale(1.4);
}
.reader-watermark span { font-size: 13px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.reader-guard { position: absolute; inset: 0; }
.reader-locked-teaser {
  position: relative; padding: 60px 40px; text-align: center;
  background: linear-gradient(180deg, transparent, var(--cream-100));
}
.reader-locked-teaser::before {
  content: ""; position: absolute; left: 0; right: 0; top: -120px; height: 120px;
  background: linear-gradient(180deg, transparent, var(--cream-100));
}
.reader-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; background: var(--navy-800); color: white; flex-wrap: wrap;
}
.reader-toolbar .r-left { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 700; }
.reader-toolbar .r-timer { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,0.7); }

/* Экран, который показывается при попытке снять скриншот/уходе со вкладки */
.screen-guard {
  position: fixed; inset: 0; z-index: 500; background: var(--navy-800); color: white;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 30px;
}
.screen-guard.on { display: flex; }
.screen-guard h3 { color: white; font-size: 20px; }
.screen-guard p { color: rgba(255,255,255,0.6); max-width: 380px; }
body.guard-blur .app-shell { filter: blur(22px); }


/* ===== Уведомления ===== */
.notif { display: flex; gap: 14px; padding: 18px 20px; }
.notif + .notif { border-top: 1px solid rgba(22,58,95,0.07); }
.notif.unread { background: var(--cream-100); cursor: pointer; }
.notif.unread:hover { filter: brightness(0.97); }
.notif .n-icon { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif .n-body { flex: 1; min-width: 0; }
.notif .n-body h4 { font-size: 14px; margin-bottom: 4px; }
.notif .n-body p { font-size: 13px; }
.notif .n-time { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ===== Логотип ===== */
.logo-svg { display: block; border-radius: 13px; flex-shrink: 0; }
.logo-mark { display: flex; align-items: center; justify-content: center; }

/* ===== Значок Pro ===== */
.pro-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 100px;
  background: linear-gradient(135deg, #f3d489, var(--pro-gold) 55%, #c88f1d);
  color: #4a3208; font-size: 11.5px; font-weight: 900; letter-spacing: 0.6px;
  box-shadow: 0 3px 10px rgba(232,182,74,0.45);
}
.pro-badge .ic { color: #4a3208; }

/* ===== Неоновая подсветка новостей ===== */
.neon-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #37f5c5; display: inline-block;
  box-shadow: 0 0 6px #37f5c5, 0 0 12px rgba(55,245,197,0.7);
  animation: neonPulse 1.6s ease-in-out infinite;
}
@keyframes neonPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #37f5c5, 0 0 14px rgba(55,245,197,0.75); }
  50% { opacity: 0.55; box-shadow: 0 0 3px #37f5c5, 0 0 6px rgba(55,245,197,0.35); }
}
.sidebar-nav a.has-news {
  color: #b9fff0;
  box-shadow: inset 0 0 0 1.5px rgba(55,245,197,0.55), 0 0 14px rgba(55,245,197,0.22);
  animation: neonNav 2.4s ease-in-out infinite;
}
@keyframes neonNav {
  0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(55,245,197,0.55), 0 0 14px rgba(55,245,197,0.22); }
  50% { box-shadow: inset 0 0 0 1.5px rgba(55,245,197,0.9), 0 0 22px rgba(55,245,197,0.45); }
}
.sidebar-nav a.has-news.active { animation: none; color: var(--navy-800); }

/* ===== Рамки и оформление аватара (цифровые товары) ===== */
.av-wrap { position: relative; display: inline-flex; padding: 4px; border-radius: 50%; }
.av-wrap.sq { border-radius: 34px; }
.av-wrap.border-mint { background: linear-gradient(135deg, var(--mint), var(--sky)); }
.av-wrap.border-gold { background: linear-gradient(135deg, #f3d489, var(--pro-gold), #c88f1d); }
.av-wrap.border-pulse { background: var(--mint); animation: avPulse 1.8s ease-in-out infinite; }
@keyframes avPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(69,201,190,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(69,201,190,0); }
}
.av-wrap.border-rotate { background: conic-gradient(from 0deg, var(--mint), var(--lavender-dark), var(--pro-gold), var(--mint)); animation: avSpin 3.5s linear infinite; }
.av-wrap.border-rainbow { background: conic-gradient(from 0deg, #f58b84, #f2cd7a, #78c48f, #6fb6e8, #b79bef, #f58b84); animation: avSpin 5s linear infinite; }
@keyframes avSpin { to { transform: rotate(360deg); } }
.av-wrap.border-rotate > *, .av-wrap.border-rainbow > * { animation: avSpinBack 3.5s linear infinite; }
.av-wrap.border-rainbow > * { animation-duration: 5s; }
@keyframes avSpinBack { to { transform: rotate(-360deg); } }
.av-wrap > * { position: relative; z-index: 1; }

.deco-waves { background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.07) 0 10px, transparent 10px 24px); }
.deco-grid { background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 26px 26px; }
.deco-stars {
  background-image: radial-gradient(1.6px 1.6px at 18% 30%, rgba(255,255,255,0.75), transparent),
                    radial-gradient(1.4px 1.4px at 62% 20%, rgba(255,255,255,0.6), transparent),
                    radial-gradient(1.8px 1.8px at 82% 62%, rgba(255,255,255,0.7), transparent),
                    radial-gradient(1.3px 1.3px at 38% 74%, rgba(255,255,255,0.55), transparent);
}

/* ===== Меню уведомлений ===== */
.notif-menu {
  position: absolute; top: calc(100% + 12px); right: 0; width: min(380px, calc(100vw - 32px));
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg);
  z-index: 120; overflow: hidden; display: none;
}
.notif-menu.open { display: block; }
.notif-menu-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid rgba(22,58,95,0.08);
}
.notif-menu-head h4 { font-size: 14.5px; }
.notif-menu-head button { border: none; background: none; color: var(--mint-dark); font-weight: 700; font-size: 12.5px; }
.notif-menu-list { max-height: 380px; overflow-y: auto; }
.notif-menu-foot { padding: 12px 18px; border-top: 1px solid rgba(22,58,95,0.08); text-align: center; }
.notif-menu-foot a { font-size: 13px; font-weight: 700; color: var(--mint-dark); }

/* ===== Cookie-баннер ===== */
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 400;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 20px 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  max-width: 860px; margin: 0 auto; transform: translateY(140%); transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { font-size: 13px; flex: 1; min-width: 220px; }
.cookie-bar .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 620px) { .cookie-bar { left: 12px; right: 12px; bottom: 82px; padding: 16px; } }

/* ===== Слайдер длительности (таймаут) ===== */
.range-days { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.range-days .rd-value {
  min-width: 92px; text-align: center; font-family: var(--font-head); font-size: 20px; color: var(--heading);
  background: var(--cream-100); border-radius: 14px; padding: 8px 12px;
}
.range-days input { flex: 1; min-width: 180px; }
.guide-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 12.5px; color: var(--muted); }
.guide-row.match { color: var(--heading); font-weight: 700; }
.guide-row .g-days {
  min-width: 46px; text-align: center; border-radius: 8px; padding: 2px 6px;
  background: var(--cream-100); font-weight: 800; font-size: 11.5px; color: var(--muted);
}
.guide-row.match .g-days { background: var(--mint); color: white; }

/* ===== Чек-лист модератора ===== */
.mod-checklist { background: var(--cream-100); border-radius: 18px; padding: 18px 20px; margin: 18px 0; }
.mod-check {
  display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 13.5px;
  color: var(--ink); cursor: pointer;
}
.mod-check input { accent-color: var(--mint); width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; }

/* ===== Авторизация ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
  background: radial-gradient(ellipse at 20% 0%, var(--sky) 0%, transparent 55%),
              radial-gradient(ellipse at 90% 100%, var(--yellow) 0%, transparent 50%);
}
html[data-theme="dark"] .auth-page {
  background: radial-gradient(ellipse at 20% 0%, rgba(191,230,239,0.1) 0%, transparent 55%),
              radial-gradient(ellipse at 90% 100%, rgba(246,231,168,0.07) 0%, transparent 50%);
}
.auth-card {
  background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg);
  padding: 44px 46px; width: 100%; max-width: 460px;
}
.auth-card .auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 26px; font-family: var(--font-head); font-size: 17px; color: var(--heading); }
.auth-card .auth-logo .logo-mark { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--sky)); }
.auth-card h1 { font-size: 25px; text-align: center; }
.auth-card .auth-sub { text-align: center; font-size: 14px; margin-top: 10px; margin-bottom: 28px; }
.social-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.social-btn {
  height: 52px; border-radius: 16px; border: 2px solid rgba(22,58,95,0.1); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--heading); transition: all 0.2s;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.social-btn.tg:hover { border-color: #2aabee; color: #2aabee; }
.social-btn.vk:hover { border-color: #0077ff; color: #0077ff; }
.social-btn.ya:hover { border-color: #fc3f1d; color: #fc3f1d; }
.social-btn.mail:hover { border-color: #005ff9; color: #005ff9; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(22,58,95,0.12); }
.auth-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.auth-steps span { flex: 1; height: 4px; border-radius: 100px; background: rgba(22,58,95,0.12); }
.auth-steps span.done { background: var(--mint); }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 22px; line-height: 1.5; }
.consent input { accent-color: var(--mint); width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.consent a { color: var(--mint-dark); font-weight: 700; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 22px; }
.auth-foot a { color: var(--mint-dark); font-weight: 700; }

/* ===== Верификация студента ===== */
.verify-option {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px;
  border: 2px solid rgba(22,58,95,0.1); cursor: pointer; transition: all 0.2s; margin-bottom: 12px;
}
.verify-option:hover, .verify-option.active { border-color: var(--mint); background: var(--mint-light); }
.verify-option h4 { font-size: 14.5px; margin-bottom: 5px; }
.verify-option p { font-size: 12.5px; }

@media (max-width: 980px) {
  .sidebar { display: none; }
  .app-main { padding: 20px 18px 100px; }
  .mobile-tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 68px;
    background: var(--navy-800); z-index: 50; justify-content: space-around; align-items: center;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
  }
  .mobile-tabbar a { color: rgba(255,255,255,0.72); font-size: 10px; display:flex; flex-direction:column; align-items:center; gap:4px; font-weight:700;}
  .mobile-tabbar a.active { color: var(--mint); }
  .mobile-tabbar a .icon { font-size: 20px; }
}

/* имя человека — ссылка на его профиль */
.user-link { color: inherit; text-decoration: none; }
.user-link:hover { color: var(--mint-dark); text-decoration: underline; text-underline-offset: 3px; }

/* поле пароля с кнопкой «показать» */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px !important; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
  border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.pw-eye:hover { color: var(--heading); background: rgba(127,127,127,0.12); }
.pw-eye:focus-visible { outline: 2px solid var(--mint); }

/* ===== Телефон: меню и уведомления ===== */
.mobile-only { display: none; }
.mnav-sheet { display: none; }
@media (max-width: 980px) {
  .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
  /* кнопки топбара переносятся под заголовок — окно уведомлений крепим к экрану, а не к кнопке */
  .notif-menu { position: fixed; top: 84px; left: 12px; right: 12px; width: auto; max-height: calc(100dvh - 180px);
    display: none; flex-direction: column; }
  .notif-menu.open { display: flex; }
  .notif-menu-list { max-height: none; flex: 1; min-height: 0; }
  .mnav-sheet.open { display: block; position: fixed; inset: 0; z-index: 200; }
  .mnav-backdrop { position: absolute; inset: 0; background: rgba(9, 15, 22, 0.5); }
  .mnav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--surface);
    box-shadow: var(--shadow-lg); padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px; animation: mnav-in .18s ease-out; }
  .mnav-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 14px;
    border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .mnav-head strong { display: block; color: var(--heading); font-size: 15px; }
  .mnav-head span { font-size: 12.5px; color: var(--muted); }
  .mnav-panel a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px;
    color: var(--heading); font-weight: 600; font-size: 14.5px; text-decoration: none; }
  .mnav-panel a:hover, .mnav-panel a.active { background: var(--mint-light); color: var(--mint-dark); }
  .mnav-panel a.mnav-staff { background: var(--mint-light); color: var(--mint-dark); font-weight: 800; margin-bottom: 6px; }
  .mnav-panel a.mnav-logout { margin-top: auto; color: var(--danger); }
}
@keyframes mnav-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Кнопка «Войти с Яндекс ID» — по правилам Яндекса: чёрная, логотип «Я» */
.btn-yandex { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 48px; border-radius: 12px; background: #000; color: #fff !important; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .15s, transform .15s; margin-bottom: 18px; }
.btn-yandex:hover { background: #262626; transform: translateY(-1px); }
.btn-yandex:focus-visible { outline: 3px solid #fc3f1d; outline-offset: 2px; }

/* ——— Знак и надпись «КОНСПЕКТУМ» в стиле логотипа: заглавные с разрядкой ——— */
.logo-svg { border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.22); }
.logo-svg.logo-bare { border-radius: 0; box-shadow: none; }
.nav-public .logo, .sidebar-logo span, .auth-card .auth-logo, .foot-brand .logo {
  text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500; }
.nav-public .logo { font-size: 16px; }
.auth-card .auth-logo .logo-mark { background: none; }
@media (max-width: 620px) { .nav-public .logo { font-size: 13px; letter-spacing: 0.12em; } }

/* Простое поле ввода вне .field (поиск направления, свой курс при загрузке) */
.field-input { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px; min-width: 0; }
.field-input:focus { outline: none; border-color: var(--mint); }

/* Плашка «Отменить» */
.undo-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 400; opacity: 0;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); overflow: hidden;
  background: #16232f; color: #fff; border-radius: 14px; padding: 12px 12px 12px 18px; box-shadow: var(--shadow-lg);
  font-size: 14px; transition: opacity .25s, transform .25s;
}
.undo-toast.open { opacity: 1; transform: translate(-50%, 0); }
.undo-toast .ut-text { flex: 1; min-width: 0; }
.undo-toast .ut-btn {
  border: 0; background: var(--mint); color: #0f2236; font-weight: 700; border-radius: 10px; padding: 8px 14px;
  white-space: nowrap; cursor: pointer; font-size: 13.5px;
}
.undo-toast .ut-left { font-variant-numeric: tabular-nums; opacity: .75; margin-left: 4px; }
.undo-toast .ut-close { border: 0; background: none; color: rgba(255,255,255,.6); font-size: 20px; cursor: pointer; padding: 0 4px; }
.undo-toast .ut-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--mint); transform-origin: left; transition: transform 1s linear; }
@media (max-width: 520px) { .undo-toast { bottom: 16px; width: calc(100vw - 32px); } }
