:root {
  --bg: #eceef3;
  --bg-tint: radial-gradient(120% 80% at 100% 0%, #eef1ff 0%, transparent 45%),
             radial-gradient(120% 80% at 0% 100%, #eafff6 0%, transparent 45%);
  --card: #ffffff;
  --ink: #0e1220;
  --ink-2: #2b3346;
  --muted: #6a7387;
  --line: #e6e8ef;
  --line-2: #eef0f5;
  --field: #f4f5f9;

  --accent: #5457f6;
  --accent-press: #4144e0;
  --accent-soft: #ecedff;
  --violet: #8b5cf6;
  --emerald: #12b981;
  --emerald-soft: #e5faf2;
  --rose: #f2405a;
  --rose-soft: #fdeaee;
  --amber: #f59e0b;
  --amber-soft: #fdf1dc;
  --flame: #fb7a3c;

  --grad: linear-gradient(100deg, var(--accent), var(--violet));
  --ease: cubic-bezier(.2,.7,.2,1);
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.04);
  --shadow: 0 10px 28px rgba(20,28,54,.08);
  --shadow-lg: 0 24px 60px rgba(20,28,54,.14);
  --ring: 0 0 0 4px rgba(84,87,246,.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; }
body {
  min-height: 100dvh;
  background: var(--bg);
  background-image: var(--bg-tint);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.shell { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 22px 90px; }

/* ══ шапка ══ */
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 8px; }
.brand { display: flex; align-items: center; gap: 13px; }
.logo {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--grad); color: #fff;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.35);
}
.logo svg { width: 24px; height: 24px; }
.logo { font-size: 24px; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 1px; font-weight: 600; }
.hud { display: flex; align-items: center; gap: 9px; }
.chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-sm); color: var(--ink-2);
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip.level { color: var(--accent); background: var(--accent-soft); border-color: transparent; letter-spacing: -.1px; }
.chip.streak { color: var(--flame); }

/* ══ XP-полоса ══ */
.xp-strip { display: flex; align-items: center; gap: 14px; margin: 18px 0 26px; }
.xp-bar { flex: 1; position: relative; height: 10px; border-radius: 999px; background: #dfe2ec; overflow: hidden; box-shadow: inset 0 1px 2px rgba(16,24,40,.06); }
.xp-fill {
  position: relative; height: 100%; width: 0; border-radius: 999px;
  background: var(--grad);
  transition: width .6s var(--ease); overflow: hidden;
}
.xp-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.5) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 2.8s var(--ease) infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.xp-num { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp-num b { color: var(--ink); }

/* ══ навигация ══ */
nav {
  display: flex; gap: 4px; padding: 5px;
  background: #e2e5ee; border: 1px solid var(--line);
  border-radius: 16px; margin-bottom: 32px;
}
nav button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: none; border-radius: 12px; cursor: pointer;
  color: var(--muted); font-family: var(--font-body); font-size: 14px; font-weight: 700;
  padding: 11px 8px; min-height: 44px;
  transition: all .2s var(--ease);
}
nav button svg { width: 17px; height: 17px; flex: none; }
nav button:hover { color: var(--ink); }
nav button.active {
  color: var(--ink); background: var(--card);
  box-shadow: var(--shadow-sm);
}
nav button.active svg { color: var(--accent); }
nav button:active { transform: scale(.97); }
.badge { background: var(--rose); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; line-height: 1.5; }

/* ══ типографика ══ */
h1 { font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -.7px; margin-bottom: 8px; line-height: 1.15; }
.grad-text { color: var(--accent); }
.sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; max-width: 56ch; font-weight: 500; }
.hidden { display: none !important; }

/* ══ карточки ══ */
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow);
}

/* ══ формы ══ */
input[type="text"], textarea {
  width: 100%; background: var(--field); border: 1.5px solid transparent;
  border-radius: 13px; color: var(--ink); padding: 13px 15px;
  font-size: 15.5px; font-family: var(--font-body); font-weight: 500; min-height: 46px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
input::placeholder, textarea::placeholder { color: #9aa2b4; }
input:focus, textarea:focus {
  outline: none; background: var(--card); border-color: var(--accent);
  box-shadow: var(--ring);
}
textarea { resize: vertical; }
label { display: block; margin-top: 15px; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
label input, label textarea { margin-top: 7px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 13px; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  padding: 13px 22px; min-height: 46px; color: var(--ink); background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: all .18s var(--ease);
}
.btn:hover { border-color: #d4d8e3; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn svg { width: 17px; height: 17px; }
.btn.primary {
  background: var(--accent); border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px rgba(84,87,246,.32), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn.primary:hover { background: var(--accent-press); box-shadow: 0 12px 26px rgba(84,87,246,.4); }
.btn.big { font-size: 16px; padding: 15px 32px; border-radius: 15px; font-weight: 800; letter-spacing: -.2px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: var(--field); border: 1px solid transparent; border-radius: 12px;
  color: var(--muted); cursor: pointer; transition: all .18s var(--ease);
}
.icon-btn:hover { color: var(--accent); background: var(--accent-soft); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; }

/* ══ добавление ══ */
.add-row { display: flex; gap: 10px; }
.add-row input { flex: 1; font-size: 17px; border-radius: 15px; }
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-top: 16px; font-weight: 500; }
.spinner { width: 16px; height: 16px; border: 2px solid #dfe2ec; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview-head { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.word-big { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.8px; color: var(--ink); }
.tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 7px; padding: 4px 9px;
}
.row-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.row-end-actions { display: flex; gap: 10px; margin-left: auto; }
.note { color: #9aa2b4; font-size: 13px; font-weight: 600; }

/* ══ тренировка ══ */
.session-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.session-progress { flex: 1; height: 10px; border-radius: 999px; background: #dfe2ec; overflow: hidden; box-shadow: inset 0 1px 2px rgba(16,24,40,.06); }
.session-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), #34d399); transition: width .45s var(--ease); }
.session-count { font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }

/* у каждой механики — свой акцент (сдержанно, на eyebrow-метке) */
.exercise { --hue: var(--accent); --hue-soft: var(--accent-soft); }
.exercise.hue-choice  { --hue: var(--accent);  --hue-soft: var(--accent-soft); }
.exercise.hue-letters { --hue: var(--amber);   --hue-soft: var(--amber-soft); }
.exercise.hue-reverse { --hue: var(--violet);  --hue-soft: #f0eafe; }
.exercise.hue-listen  { --hue: var(--rose);    --hue-soft: var(--rose-soft); }
.ex-type {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--hue); background: var(--hue-soft);
  border-radius: 999px; padding: 7px 13px; margin-bottom: 22px;
}
.ex-type svg { width: 14px; height: 14px; }
.ex-word {
  font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -1.2px;
  margin: 2px 0 6px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink);
}
.ex-word .icon-btn { color: var(--hue); }
.ex-word .icon-btn:hover { background: var(--hue-soft); }
.ex-sub { color: var(--muted); margin-bottom: 18px; font-size: 15px; font-weight: 500; }
.ex-masked {
  font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: 8px;
  margin: 14px 0 20px; color: var(--amber);
}
.choices { display: grid; gap: 10px; margin-top: 18px; }
.choices button {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink);
  border-radius: 14px; padding: 15px 16px; font-size: 15.5px; font-family: var(--font-body); font-weight: 600;
  cursor: pointer; text-align: left; min-height: 54px; transition: all .16s var(--ease);
  box-shadow: var(--shadow-sm);
}
.choices button .note {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 7px; background: var(--field); color: var(--muted);
  font-size: 12px; font-weight: 800; margin: 0;
}
.choices button:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.choices button:hover:not(:disabled) .note { background: var(--accent-soft); color: var(--accent); }
.choices button:active { transform: scale(.99); }
.choices button.correct { border-color: var(--emerald); background: var(--emerald-soft); }
.choices button.correct .note { background: var(--emerald); color: #fff; }
.choices button.wrong { border-color: var(--rose); background: var(--rose-soft); }
.choices button.wrong .note { background: var(--rose); color: #fff; }
.answer-row { display: flex; gap: 10px; margin-top: 16px; }
.answer-row input { flex: 1; font-size: 17px; }
.assist-row { display: flex; gap: 8px; margin-top: 12px; }
.ex-delete {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; color: #b6bccb;
}
.ex-delete:hover { color: var(--rose); background: var(--rose-soft); }
.btn.ghost {
  background: transparent; border-color: var(--line); color: var(--muted);
  font-weight: 700; font-size: 14px; padding: 9px 15px; min-height: 40px; box-shadow: none;
}
.btn.ghost:hover { background: var(--field); color: var(--ink); border-color: #d4d8e3; box-shadow: none; transform: none; }
.hint-line { color: var(--amber); font-weight: 700; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.feedback { display: flex; gap: 11px; margin-top: 18px; padding: 15px 16px; border-radius: 14px; font-size: 15px; align-items: flex-start; font-weight: 500; }
.feedback svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.feedback b { font-weight: 800; }
.feedback.ok { background: var(--emerald-soft); color: #0b7a56; }
.feedback.ok svg { color: var(--emerald); }
.feedback.ok b { color: #0b6a4b; }
.feedback.bad { background: var(--rose-soft); color: #b21f38; }
.feedback.bad svg { color: var(--rose); }
.feedback.bad b { color: #9c1b31; }
.grade-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.grade-row .btn { flex: 1; min-width: 120px; }
.reveal-box { margin-top: 18px; padding: 18px; background: var(--field); border-radius: 14px; }
.reveal-box b { font-size: 18px; font-weight: 800; }
.example { color: var(--muted); font-size: 14px; font-style: italic; margin-top: 7px; }
.center { text-align: center; }
.done-emoji { font-size: 56px; margin-bottom: 10px; }
.levelup { color: var(--accent); font-weight: 800; margin-top: 14px; font-size: 16px; }

/* ══ список слов ══ */
.search-row { margin-bottom: 16px; }
.word-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm); transition: all .18s var(--ease);
}
.word-item:hover { border-color: #d7dbe6; transform: translateY(-1px); box-shadow: var(--shadow); }
.w-main { flex: 1; min-width: 0; }
.w-text { font-weight: 800; font-size: 16px; letter-spacing: -.3px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.w-ipa { color: var(--muted); font-size: 13px; font-weight: 500; }
.w-tr { color: var(--muted); font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-due {
  display: flex; align-items: center; gap: 5px; flex: none;
  font-size: 10.5px; color: var(--amber); font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  background: var(--amber-soft); border-radius: 999px; padding: 5px 10px;
}
.w-due svg { width: 12px; height: 12px; }
.w-dots { display: flex; gap: 4px; flex: none; }
.w-dots i { width: 7px; height: 7px; border-radius: 50%; background: #dbdfe9; }
.w-dots i.on { background: var(--emerald); }

/* ══ прогресс ══ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .n {
  font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.stat .n.gold { color: var(--flame); }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 600; }

.ladder { margin-top: 30px; }
.ladder h2 { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 18px; }
.ladder-track { position: relative; padding-left: 34px; }
.ladder-track::before {
  content: ''; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2.5px; border-radius: 2px;
  background: linear-gradient(180deg, var(--emerald), var(--accent) var(--progress, 40%), #dbdfe9 var(--progress, 40%));
}
.ladder-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; margin-bottom: 6px; border-radius: 13px;
  color: var(--muted); font-size: 15px; font-weight: 600;
}
.ladder-item .node {
  position: absolute; left: -29px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2.5px solid #d3d8e4;
}
.ladder-item.reached { color: var(--ink-2); }
.ladder-item.reached .node { background: var(--emerald); border-color: var(--emerald); }
.ladder-item.current {
  background: var(--card); border: 1px solid var(--line);
  color: var(--accent); font-weight: 800; box-shadow: var(--shadow);
}
.ladder-item.current .node { background: var(--accent); border-color: var(--accent); box-shadow: var(--ring); }
.ladder-item.final { font-weight: 800; }
.ladder-item.final:not(.current) span:first-of-type { color: var(--ink); }
.ladder-xp { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }

.mission {
  margin-top: 30px; padding: 22px 24px; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-soft), #eafff6);
  border: 1px solid var(--line-2);
  font-size: 15px; line-height: 1.65; color: var(--ink-2); font-weight: 500;
}
.mission b { font-weight: 800; color: var(--ink); }
/* ══ сферы / радар ══ */
.radar-wrap { display: grid; place-items: center; padding: 14px; margin-top: 4px; }
.radar { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.radar-legend { display: flex; gap: 20px; justify-content: center; margin: 14px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.radar-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.lg-learn { background: rgba(84,87,246,.5); border: 1.5px solid var(--accent); }
.lg-cover { background: rgba(84,87,246,.12); border: 1.5px solid rgba(84,87,246,.4); }
.sphere-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.sphere-row {
  display: grid; grid-template-columns: 26px 1fr 90px auto; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.sph-emoji { font-size: 18px; }
.sph-label { font-weight: 700; font-size: 14.5px; letter-spacing: -.2px; }
.sph-bar { height: 8px; border-radius: 999px; background: #dfe2ec; overflow: hidden; }
.sph-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .5s var(--ease); }
.sph-meta { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
  .sphere-row { grid-template-columns: 24px 1fr auto; }
  .sphere-row .sph-bar { display: none; }
}

.reset-row { margin-top: 20px; text-align: right; }
.link-btn { background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--rose); }

/* ══ тост ══ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  border-radius: 14px; padding: 13px 24px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 50; white-space: nowrap;
}
.empty { text-align: center; padding: 44px 20px; color: var(--muted); font-weight: 500; }
.empty svg { width: 40px; height: 40px; opacity: .35; margin-bottom: 12px; }

@media (max-width: 640px) {
  .brand-sub { display: none; }
  nav button span.nav-label { display: none; }
  .ex-word { font-size: 31px; }
  h1 { font-size: 23px; }
}

/* ══ MargulanGym: механики ══ */
.exercise.hue-flashcard { --hue: var(--accent); --hue-soft: var(--accent-soft); }
.exercise.hue-metaphor  { --hue: var(--amber);  --hue-soft: var(--amber-soft); }
.exercise.hue-quote     { --hue: var(--violet); --hue-soft: #f0eafe; }
.exercise.hue-case      { --hue: var(--emerald); --hue-soft: var(--emerald-soft); }
.ex-quote-body {
  font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.45;
  letter-spacing: -.3px; color: var(--ink-2); margin: 4px 0 6px;
}

/* ══ список концепций ══ */
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; }
.c-emoji { font-size: 20px; flex: none; }
.concept-item { cursor: pointer; align-items: flex-start; }
.concept-item .w-dots, .concept-item .w-due, .concept-item .icon-btn { margin-top: 6px; }
.concept-item.open { border-color: var(--accent); box-shadow: var(--shadow); }
.c-detail { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.c-metaphor { color: var(--amber); font-weight: 600; }
.c-quote { color: var(--muted); font-style: italic; }
.c-apply { color: #0b7a56; font-weight: 600; }

/* ══ сенсей ══ */
.sensei { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
#sensei-face { width: 86px; height: 86px; cursor: pointer; filter: drop-shadow(0 8px 16px rgba(20,28,54,.18)); transition: transform .18s var(--ease); }
#sensei-face:hover { transform: scale(1.06) rotate(-2deg); }
#sensei-face:active { transform: scale(.96); }
#sensei-face svg { width: 100%; height: 100%; }
.sensei-bubble {
  max-width: 240px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px; padding: 11px 15px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-lg);
  animation: bubble-in .25s var(--ease);
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
@media (max-width: 640px) {
  .sensei { right: 12px; bottom: 12px; }
  #sensei-face { width: 64px; height: 64px; }
  .sensei-bubble { max-width: 180px; font-size: 12.5px; }
}
#sensei-face img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.logo img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }

/* ══ профили ══ */
.chip.user { cursor: pointer; font-family: var(--font-body); border: 1px solid var(--line); }
.chip.user:hover { color: var(--accent); border-color: var(--accent); }
.profile-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(14, 18, 32, .45); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.profile-card { width: 100%; max-width: 440px; }
.profile-list { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; }
.profile-btn {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  background: var(--field); border: 1.5px solid transparent; border-radius: 14px;
  padding: 14px 16px; font-family: var(--font-body); font-size: 16px; cursor: pointer;
  text-align: left; transition: all .16s var(--ease);
}
.profile-btn b { font-weight: 800; }
.profile-btn:hover { border-color: var(--accent); background: var(--card); box-shadow: var(--shadow-sm); }
