/* Д-2193: верх вкладки «Моё». Закрытые модули moyo-bystrye.js, moyo-zakryto.js, moyo-student.js, moyo-ref.js.
   Цвета только токены tokens.css. Слой «Карта» - moyo-karta.css, окраска по уровню - moyo-cvet.css. */

.mo-ic { flex: none; display: inline-flex; width: 24px; height: 24px; }
.mo-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ряд быстрых кнопок: плитки поровну, подписи в одну-две строки, зона нажатия не меньше 48 px */
.mo-tiles { display: flex; gap: 8px; margin: 0 0 10px; }
.mo-tile {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 76px; padding: 10px 4px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); color: var(--text);
  font: inherit; text-align: center;
}
.mo-tile .mo-lbl { max-width: 100%; font-size: 13px; line-height: 1.15; font-weight: 600; overflow-wrap: anywhere; }
/* «Карта» - первая и самая срочная: рамка и значок акцентом, надпись текстом (белое на оранжевом даёт 3,64:1 < 4,5) */
.mo-tile.mo-main { border: 2px solid var(--accent); }
.mo-tile.mo-main .mo-ic { color: var(--accent); }
.mo-tile:focus-visible, .mo-ref:focus-visible, .mo-stud button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ряд из одной «Карты» - на полную ширину, ниже */
.mo-tiles.mo-one .mo-tile { flex-direction: row; gap: 12px; min-height: 56px; }
.mo-tiles.mo-one .mo-lbl { flex: none; font-size: 15px; }

/* строка статуса: до 56 px, длинное обрезается */
.mo-st { display: flex; align-items: center; gap: 12px; height: 56px; margin: 0 0 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.mo-st-left { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mo-st-name { font-size: 16px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-st-num { font-size: 13px; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-st-bonus { flex: none; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* строка «Сканировать QR счёта» (пока нет сканера у кассы) */
.akk-scanrow { margin-bottom: 10px; }

/* студент одной строкой, не выше 64 px */
.mo-stud { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; max-height: 64px; margin: 0 0 10px; padding: 6px 10px 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); color: var(--text); font: inherit; text-align: left; box-sizing: border-box; }
.mo-stud b { flex: 1 1 0; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-stud .mo-ic { color: var(--baner-ramka-student); }
.mo-apply { flex: none; min-width: 88px; min-height: 44px; padding: 0 14px; border: 2px solid var(--baner-ramka-student); border-radius: var(--radius-lg); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; }
.mo-pill { flex: none; padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mo-chev { flex: none; color: var(--muted); font-size: 20px; font-weight: 600; }
.mo-stud.ok { border-color: var(--baner-ramka-student); }

/* баннер «Пригласи друга»: в 2 раза выше прежнего (64 -> 128 px), фон-фото, свечение и бегущий огонёк модуля signal-nado-vybrat */
.mo-ref {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 128px; margin: 0 0 12px; padding: 14px 16px;
  border: 1.5px solid var(--accent); border-radius: var(--radius-lg); color: var(--text); font: inherit; text-align: left; box-sizing: border-box; overflow: visible;
  background-color: var(--panel);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 55%, color-mix(in srgb, var(--bg) 30%, transparent) 100%),
    url(/banner/slayd-referal.webp); /* Д-2325: кадр круга 3 (`istochniki.md`); позиция по замеру 357x128, `krug3/tablica.md` */
  background-size: cover; background-position: center 60%;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 4px color-mix(in srgb, var(--accent) 70%, transparent);
}
.mo-ref-ic { flex: none; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--accent); color: var(--on-ok); }
.mo-ref-ic .mo-ic { width: 32px; height: 32px; }
.mo-ref-ic .mo-ic svg { width: 32px; height: 32px; }
.mo-ref-tx { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mo-ref-tx b { font-size: 20px; font-weight: 800; line-height: 1.15; }
.mo-ref-tx span { font-size: 14px; line-height: 1.3; color: var(--text); }
/* огонёк по контуру: тот же слой, что у обязательных модификаторов, но цвета акцента, углы под баннер */
.mo-ref .d2058-ramka { border-radius: var(--radius-lg); inset: -1.5px; }
.mo-ref .d2058-ramka > i {
  background: conic-gradient(from 0deg, transparent 0deg, transparent 120deg,
    color-mix(in srgb, var(--accent) 45%, transparent) 220deg, var(--accent) 330deg, var(--accent) 352deg, transparent 360deg);
}
@media (prefers-reduced-motion: reduce) {
  .mo-ref .d2058-ramka > i { animation: none; background: var(--accent); }
}

/* закрытая вкладка: карточка перечня и окно-пояснение */
.mo-gate { margin: 0 0 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.mo-gate h3, .mo-sh h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 800; }
.mo-gate p, .mo-sh p { margin: 8px 0 12px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.mo-pl { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mo-pi { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.3; }
.mo-pi .mo-ic { width: 20px; height: 20px; color: var(--ok-text); }
.mo-pi .mo-ic svg { width: 20px; height: 20px; }
/* главное - бонусы, друг, студент: значок в плашке акцентного цвета, текст жирнее */
.mo-pi.hot { font-weight: 800; }
.mo-pi.hot .mo-ic { width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; background: var(--accent); color: var(--on-ok); }
.mo-pi.hot .mo-ic svg { width: 20px; height: 20px; }
.mo-pi-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; min-height: 44px; }
.mo-pi-btn .mo-chev { margin-left: auto; }
.mo-pi:has(> .mo-pi-btn) { display: block; }
.mo-gate-btn, .mo-sh-go { width: 100%; min-height: 48px; margin: 0; }
.mo-sh-back { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: var(--gde-skrim); }
.mo-sh { box-sizing: border-box; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 18px 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--panel); color: var(--text); }
.mo-sh-later { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; }

