/* Тёмный «космический» стиль: стеклянные панели, свечение, синий акцент. */
:root {
  --space: #05070b;
  --glass: rgba(255, 255, 255, .055);
  --glass-strong: rgba(255, 255, 255, .09);
  --glass-line: rgba(255, 255, 255, .09);
  --ink: #f2f5f9;
  --muted: #8e98a8;
  --blue: #4aa3ff;
  --blue-2: #2f7cf6;
  --blue-glow: rgba(74, 163, 255, .55);
  --violet: #9b5cff;
  --gold: #f4b860;
  --green: #3ddc97;
  --red: #ff6b6b;
  --radius: 18px;
  --tabbar: 74px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--space);
  color: var(--ink);
  font: 16px/1.4 Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.he { direction: rtl; unicode-bidi: isolate; font-family: Rubik, "Arial Hebrew", "Noto Sans Hebrew", sans-serif; }

/* --- космический фон --- */
.cosmos { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.orb.o1 { width: 300px; height: 300px; background: #8a4b1c; top: 18%; left: 8%; }
.orb.o2 { width: 240px; height: 240px; background: #2b3d8f; top: 46%; right: -70px; }
.orb.o3 { width: 200px; height: 200px; background: #5b2a86; bottom: 6%; left: -60px; }
.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .045); border-radius: 50%; left: 50%; transform: translateX(-50%); }
.orbit.r1 { width: 460px; height: 460px; top: 120px; }
.orbit.r2 { width: 640px; height: 640px; top: 40px; }
.planet { position: absolute; border-radius: 50%; }
.planet.p1 { width: 22px; height: 22px; left: -6px; top: 330px; background: radial-gradient(circle at 35% 35%, #ffd27a, #c27a1c); box-shadow: 0 0 20px #f4b860; }
.planet.p2 { width: 14px; height: 14px; right: 40px; top: 210px; background: radial-gradient(circle at 35% 35%, #9fb6ff, #3a4fb0); box-shadow: 0 0 14px #6d8cff; }
.planet.p3 { width: 18px; height: 18px; left: 34px; bottom: 22%; background: radial-gradient(circle at 35% 35%, #b680ff, #4b1d8f); box-shadow: 0 0 18px #9b5cff; }

main {
  position: relative; z-index: 1; max-width: 520px; margin: 0 auto;
  padding: 12px 16px calc(var(--tabbar) + 24px);
}
main.no-tabs { padding-bottom: 28px; }
.loading, .center { text-align: center; color: var(--muted); padding: 60px 0; }

/* --- общие элементы --- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
h1 { font-size: 24px; margin: 8px 0 14px; font-weight: 700; }
h2 { font-size: 13px; margin: 22px 2px 10px; color: var(--muted); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 14px; }
.back-link { color: var(--blue); padding: 4px 0 10px; font-size: 15px; }
.chev { color: var(--blue); font-size: 22px; line-height: 1; }

.btn {
  display: block; width: 100%; padding: 16px; border-radius: 16px; font-weight: 600; font-size: 17px; color: #fff;
  margin-top: 12px; text-align: center;
  background: linear-gradient(180deg, #5bb0ff, #2f7cf6);
  box-shadow: 0 10px 30px rgba(47, 124, 246, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn small { display: block; font-weight: 400; font-size: 13px; opacity: .85; margin-top: 2px; }
.btn.secondary {
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: none; font-weight: 500;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.btn:disabled { opacity: .5; }

/* --- профиль --- */
.profile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; }
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, #ff7a59, #8b5cf6 55%, #3aa0ff); box-shadow: 0 0 18px rgba(139, 92, 246, .45);
}
.profile .who { flex: 1; min-width: 0; }
.profile b { display: block; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile small { color: var(--blue); font-size: 13px; font-weight: 600; }

/* --- кольцо дневной цели --- */
.dial { position: relative; width: 272px; height: 272px; margin: 18px auto 6px; }
.dial svg { position: absolute; inset: 0; overflow: visible; }
.dial .glow-arc { filter: drop-shadow(0 0 6px var(--blue-glow)) drop-shadow(0 0 14px var(--blue-glow)); transition: stroke-dashoffset 1.3s cubic-bezier(.2, .8, .2, 1); }
.dial.done .glow-arc { filter: drop-shadow(0 0 6px rgba(61, 220, 151, .6)) drop-shadow(0 0 14px rgba(61, 220, 151, .5)); }
.dial .knob { filter: drop-shadow(0 0 8px var(--blue)); transition: cx 1.3s cubic-bezier(.2, .8, .2, 1), cy 1.3s cubic-bezier(.2, .8, .2, 1); }
.dial .core {
  position: absolute; inset: 36px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, #0d1218, #05070a 70%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .05);
}
.dial .label { color: var(--muted); font-size: 13px; }
.dial .big { font-size: 46px; font-weight: 700; line-height: 1.05; }
.dial .big span { color: var(--muted); font-size: 24px; font-weight: 500; }
.dial .sub { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.3; }
.dial .sub b { color: var(--ink); font-weight: 600; }

.pill { width: max-content; max-width: 100%; margin: 4px auto 16px; padding: 6px 14px; font-size: 13px; border-radius: 14px; text-align: center; }
.pill b { color: var(--gold); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 4px; margin-top: 14px; }
.quick button { position: relative; display: grid; justify-items: center; gap: 5px; font-size: 11px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.quick svg { width: 24px; height: 24px; color: #d6dbe3; }
.quick .dot {
  position: absolute; top: -6px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--blue); color: #fff; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 10px var(--blue-glow);
}
.footer-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* --- нижние вкладки --- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; height: var(--tabbar);
  display: flex; justify-content: space-around; align-items: flex-start; padding: 10px 6px 0;
  border-top: 1px solid var(--glass-line); background: rgba(5, 7, 11, .75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: #c9ced6; min-width: 56px; }
.tabs svg { width: 24px; height: 24px; }
.tabs .on { color: var(--blue); }
.tabs .on svg { filter: drop-shadow(0 0 6px var(--blue-glow)); }
.tabs.hidden { display: none; }

/* --- сессия карточек --- */
.session-top { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 4px; }
.total { text-align: center; margin: 6px 0 14px; }
.total small { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.total b { display: block; font-size: 34px; font-weight: 700; margin-top: 2px; }
.total b .accent { color: var(--blue); text-shadow: 0 0 18px var(--blue-glow); }
.segs { display: flex; gap: 4px; margin-bottom: 16px; }
.segs i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.segs i.done, .segs i.ok { background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.segs i.no { background: var(--red); box-shadow: 0 0 8px rgba(255, 107, 107, .5); }
.segs i.now { background: rgba(74, 163, 255, .4); }

.deck { position: relative; height: min(380px, 52vh); min-height: 300px; perspective: 1200px; margin-bottom: 18px; }
.flash { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.flash.dragging { transition: none; cursor: grabbing; }
.flash.enter { animation: cardIn .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.flash-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.flash.flipped .flash-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; border-radius: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 20px 40px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
}
.face::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(74, 163, 255, .8), transparent 40%, transparent 60%, rgba(155, 92, 255, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.face.back { transform: rotateY(180deg); overflow-y: auto; justify-content: flex-start; }
.face.back > :first-child { margin-top: auto; }
.face.back > :last-child { margin-bottom: auto; }
.chip {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .07); color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
}
.big-word { font-size: 64px; font-weight: 700; line-height: 1.4; text-shadow: 0 0 24px rgba(74, 163, 255, .35); word-break: break-word; }
.back .big-word { font-size: 48px; }
.tr { color: var(--muted); font-size: 19px; }
.hint {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px;
  background: rgba(74, 163, 255, .12); color: var(--blue); font-size: 14px; font-weight: 500;
}
.hint svg { width: 16px; height: 16px; }
.tap-note { position: absolute; bottom: 14px; left: 0; right: 0; color: var(--muted); font-size: 12px; }
.gender { margin-top: 10px; padding: 3px 10px; border-radius: 9px; font-size: 12px; background: rgba(155, 92, 255, .18); color: #c4a3ff; }
.meaning { margin-top: 14px; font-size: 22px; font-weight: 600; white-space: pre-line; line-height: 1.35; }
.entry { margin-top: 12px; color: var(--muted); font-size: 14px; }
.entry .he { font-size: 16px; }
.stamp {
  position: absolute; top: 54px; padding: 6px 12px; border: 2px solid; border-radius: 10px; font-weight: 700; letter-spacing: .06em;
  opacity: 0; pointer-events: none; background: rgba(5, 7, 11, .6); z-index: 2;
}
.stamp.yes { left: 18px; color: var(--green); transform: rotate(-12deg); }
.stamp.no { right: 18px; color: var(--red); transform: rotate(12deg); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair button {
  padding: 14px 10px; border-radius: 16px; display: grid; justify-items: center; gap: 4px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; transition: transform .15s;
}
.pair button:active { transform: scale(.97); }
.pair svg { width: 22px; height: 22px; }
.pair .no { background: var(--glass-strong); border: 1px solid var(--glass-line); color: #ffd0d0; }
.pair .yes { color: #fff; background: linear-gradient(180deg, #5bb0ff, #2f7cf6); box-shadow: 0 10px 26px rgba(47, 124, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.swipe-hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

.xp-pop {
  position: fixed; left: 50%; top: 42%; transform: translateX(-50%); z-index: 20; color: var(--gold); font-weight: 800; font-size: 28px;
  text-shadow: 0 0 16px rgba(244, 184, 96, .7); opacity: 0; pointer-events: none;
}
.xp-pop.go { animation: pop 1s ease-out forwards; }
@keyframes pop {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); }
  25% { opacity: 1; transform: translate(-50%, -10px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -70px); }
}

/* --- квиз --- */
.question { text-align: center; margin: 18px 0 18px; }
.question .muted { margin-bottom: 8px; }
.question .prompt { font-size: 28px; font-weight: 700; }
.question .prompt.he { font-size: 56px; line-height: 1.4; text-shadow: 0 0 24px rgba(74, 163, 255, .35); }
.option {
  display: block; width: 100%; text-align: center; padding: 15px 12px; margin-bottom: 10px; border-radius: 16px; font-size: 17px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform .15s, border-color .2s, box-shadow .2s, background .2s;
}
.option:active { transform: scale(.98); }
.option.he { font-size: 26px; }
.option.right { border-color: var(--green); background: rgba(61, 220, 151, .14); box-shadow: 0 0 18px rgba(61, 220, 151, .35); }
.option.wrong { border-color: var(--red); background: rgba(255, 107, 107, .14); box-shadow: 0 0 18px rgba(255, 107, 107, .3); }
.feedback { text-align: center; margin-top: 6px; }
.feedback .verdict { font-weight: 600; font-size: 17px; }
.feedback .he { font-size: 20px; }

/* --- списки: темы, слабые слова --- */
.list-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 10px; }
.list-item .emoji { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, .07); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; }
.list-item .muted { font-size: 12px; }
.list-item.current { border-color: rgba(74, 163, 255, .7); box-shadow: 0 0 20px rgba(74, 163, 255, .25); }
.list-item .check { color: var(--blue); font-weight: 700; }
.bar { position: relative; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 7px; }
.bar i { position: absolute; left: 0; top: 0; height: 100%; border-radius: 3px; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.bar i.seen { background: rgba(74, 163, 255, .3); box-shadow: none; }
.bar.done i:not(.seen) { background: var(--green); }
.weak .he { font-size: 22px; }
.weak .wrong { color: var(--red); font-size: 12px; white-space: nowrap; }

/* --- итоги --- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { padding: 14px; }
.stat b { display: block; font-size: 26px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.hl b { color: var(--blue); text-shadow: 0 0 14px var(--blue-glow); }
.forecast { padding: 14px; margin-top: 12px; font-size: 14px; }
.forecast b { color: var(--blue); }

/* --- профиль и настройки --- */
.segmented { display: flex; gap: 8px; }
.segmented button {
  flex: 1; padding: 13px 0; border-radius: 14px; font-weight: 600; font-size: 17px;
  background: var(--glass); border: 1px solid var(--glass-line);
}
.segmented button.on { background: linear-gradient(180deg, #5bb0ff, #2f7cf6); border-color: transparent; box-shadow: 0 6px 20px rgba(47, 124, 246, .4); }
select, input[type=time] {
  width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--glass-line); font: inherit;
  background: var(--glass); color: var(--ink); appearance: none; -webkit-appearance: none;
}
select option { background: #11161d; }
input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }
input:disabled { opacity: .4; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; margin-bottom: 10px; }
.toggle { position: relative; width: 50px; height: 30px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 15px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + span { background: var(--blue-2); box-shadow: 0 0 12px var(--blue-glow); }
.toggle input:checked + span::after { transform: translateX(20px); }
.privacy { color: var(--muted); font-size: 12px; text-align: center; margin-top: 18px; }
.danger-link { display: block; margin: 10px auto 0; padding: 8px 12px; color: var(--red); font-size: 14px; }

/* --- праздничные и информационные экраны --- */
.celebrate { text-align: center; padding: 34px 0 10px; }
.celebrate .big { font-size: 68px; filter: drop-shadow(0 0 24px rgba(74, 163, 255, .45)); }
.celebrate h1 { margin: 10px 0 8px; }
.celebrate p { color: var(--muted); margin: 0 0 8px; }
.celebrate .score { font-size: 52px; font-weight: 700; color: var(--blue); text-shadow: 0 0 22px var(--blue-glow); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px); transform: translate(-50%, 40px); opacity: 0; z-index: 25;
  background: rgba(20, 26, 34, .92); border: 1px solid var(--glass-line); color: #fff; padding: 10px 18px; border-radius: 16px;
  font-size: 15px; pointer-events: none; transition: all .25s ease; max-width: calc(100% - 32px); text-align: center;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- модули, режимы, слова --- */
.badge {
  min-width: 26px; padding: 3px 9px; border-radius: 13px; text-align: center; font-size: 13px; font-weight: 600;
  background: var(--blue); color: #fff; box-shadow: 0 0 10px var(--blue-glow);
}
.module-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 6px; text-align: center; margin-bottom: 14px; }
.module-stats b { display: block; font-size: 22px; }
.module-stats span { font-size: 11px; color: var(--muted); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.mode { display: grid; justify-items: start; gap: 2px; padding: 14px; text-align: left; }
.mode svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 6px; filter: drop-shadow(0 0 6px var(--blue-glow)); }
.mode b { font-size: 16px; }
.mode span { font-size: 12px; color: var(--muted); }
.word-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; }
.word-row img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.word-row .term { font-size: 20px; font-weight: 600; flex: 1; min-width: 0; text-align: right; }
.word-row .def { flex: 1; min-width: 0; font-size: 14px; }
.word-row .def small { display: block; color: var(--muted); font-size: 12px; }
.word-row.editable { cursor: pointer; }
.word-row.bad { color: #ffd0d0; font-size: 14px; }
.card-actions { display: flex; gap: 8px; margin-top: 16px; }
.card-actions .hint { margin-top: 0; }
.card-img { width: 100%; max-width: 220px; max-height: 120px; object-fit: cover; border-radius: 14px; margin-bottom: 6px; }
.write-img { width: 100%; max-width: 260px; max-height: 150px; object-fit: cover; border-radius: 16px; margin: 4px auto 10px; display: block; }
.answer-word { font-size: 40px; font-weight: 700; line-height: 1.4; text-shadow: 0 0 20px rgba(74, 163, 255, .35); }

/* --- поля ввода --- */
input[type=text], input:not([type]), textarea, .search {
  width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--glass-line); font: inherit; font-size: 16px;
  background: var(--glass); color: var(--ink); outline: none;
}
input:not([type]):focus, textarea:focus { border-color: rgba(74, 163, 255, .7); box-shadow: 0 0 0 3px rgba(74, 163, 255, .18); }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; unicode-bidi: plaintext; }
.he-input { font-size: 26px; text-align: center; font-family: Rubik, "Arial Hebrew", sans-serif; }
.he-input.right { border-color: var(--green); box-shadow: 0 0 16px rgba(61, 220, 151, .35); }
.he-input.wrong { border-color: var(--red); box-shadow: 0 0 16px rgba(255, 107, 107, .3); }
.search { margin: 12px 0; }

/* --- админка --- */
.add-row { display: flex; gap: 8px; padding: 8px; margin-bottom: 14px; align-items: center; }
.add-row input { background: transparent; border: 0; padding: 10px; }
.btn.small { width: auto; margin-top: 0; padding: 10px 16px; font-size: 15px; white-space: nowrap; flex: none; }
.row2 { display: flex; gap: 8px; margin: 10px 0; }
.row2 .btn.small { flex: 1; min-width: 0; padding: 10px 8px; white-space: normal; }
.avatar.small { width: 38px; height: 38px; font-size: 17px; border-radius: 12px; }
.status { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.status.ok { color: var(--green); }
.invite { padding: 14px; margin-bottom: 4px; }
.invite-link { font-size: 14px; color: var(--blue); word-break: break-all; margin: 6px 0 4px; }
.invite p { margin: 8px 0 0; font-size: 12px; }
.link-btn { display: block; margin-top: 8px; color: var(--blue); font-size: 14px; padding: 0; }
.checklist { padding: 6px 12px; max-height: 340px; overflow-y: auto; }
.checklist label { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--glass-line); }
.checklist label:last-child { border-bottom: 0; }
.checklist input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.checklist small { color: var(--muted); }

.teacher { padding: 14px; margin-top: 12px; }
.teacher b { display: block; font-size: 16px; margin-bottom: 4px; }
.teacher span { display: block; color: var(--muted); font-size: 13px; }

/* --- рейтинг --- */
.board { padding: 4px 12px; }
.board-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--glass-line); }
.board-row:last-child { border-bottom: 0; }
.board-row .place { width: 28px; text-align: center; font-weight: 700; color: var(--muted); flex: none; }
.board-row .who { flex: 1; min-width: 0; font-weight: 500; }
.board-row .who small { color: var(--blue); font-size: 12px; font-weight: 500; }
.board-row .fire { font-weight: 600; white-space: nowrap; }
.board-row .days { color: var(--muted); font-size: 12px; width: 40px; text-align: right; flex: none; }
.board-row.me { margin: 0 -12px; padding: 10px 12px; background: rgba(74, 163, 255, .12); border-radius: 12px; }

/* --- посещаемость --- */
.calendar { padding: 12px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head b { font-size: 11px; color: var(--muted); font-weight: 500; text-align: center; }
.cal-grid { margin-top: 6px; }
.cal-grid i { aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; }
.cal-grid i small { font-size: 11px; color: var(--muted); font-style: normal; }
.cal-grid i.on { background: var(--blue-2); box-shadow: 0 0 10px var(--blue-glow); }
.cal-grid i.on small { color: #fff; }
.word-row .wrong { color: var(--red); font-size: 12px; white-space: nowrap; flex: none; }
.board-row.idle { opacity: .45; }

/* Удаление неактуальных модулей галочками */
.module-pick { display: flex; align-items: center; gap: 10px; }
.pick { display: none; width: 22px; height: 22px; flex: none; accent-color: var(--red); }
.module-pick .pick { margin: 0 0 10px; }
.picking .pick { display: block; }
.module-pick .list-item { flex: 1; min-width: 0; }
#select-mode { margin: 0 auto 12px; }
.delete-bar { display: none; position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar) + 10px); z-index: 20;
  padding: 10px 12px; align-items: center; gap: 8px; background: rgba(16, 20, 38, .94); }
.delete-bar.shown { display: flex; }
.delete-bar span { flex: 1; font-size: 14px; }
.btn.danger { background: var(--red); box-shadow: 0 0 18px rgba(255, 107, 107, .35); }
.btn:disabled { opacity: .45; }
#list.picking, #cards.picking { padding-bottom: 70px; }
#select-words { margin: 0 auto 10px; }
