/* HiScore — личный кабинет */
body { min-height: 100vh; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot__dot { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--red-soft); border-top-color: var(--red); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- вход / регистрация ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth__side {
  position: relative; overflow: hidden;
  background: var(--red); color: #fff;
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth__side .logo { color: #fff; }
.auth__side .logo__mark { background: #fff; color: var(--red); }
.auth__side .logo__word small { color: rgba(255, 255, 255, .7); }
.auth__side h2 { margin: 0; font-size: clamp(44px, 5.4vw, 84px); }
.auth__side p { max-width: 26em; margin: 18px 0 0; color: rgba(255, 255, 255, .85); font-size: 17px; }
.auth__quote { position: relative; z-index: 1; padding: 22px 24px; border-radius: var(--r); background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); max-width: 420px; }
.auth__quote b { display: block; font-size: 20px; font-weight: 650; line-height: 1.3; }
.auth__quote span { display: block; margin-top: 8px; font-size: 14px; opacity: .8; }
.auth__wave { position: absolute; right: -80px; bottom: -80px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); }
.auth__main { display: grid; place-items: center; padding: clamp(24px, 5vw, 60px) clamp(18px, 5vw, 60px); }
.auth__card { width: 100%; max-width: 440px; animation: up .5s var(--ease); }
.auth__card h1 { margin: 0 0 8px; font-size: 44px; }
.auth__card > p { margin: 0 0 28px; color: var(--muted); }
.auth__form { display: grid; gap: 16px; }
.auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth__alt { margin-top: 22px; font-size: 14.5px; color: var(--muted); text-align: center; }
.auth__alt a { color: var(--red-d); font-weight: 650; }
.auth__demo { margin-top: 28px; padding: 18px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.auth__demo b { display: block; margin-bottom: 4px; font-size: 15px; }
.auth__demo p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.auth__demo .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-err { min-height: 1.2em; margin: 0; font-size: 14px; color: var(--red-d); }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 52px; }
.pw-eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 700; }

/* ---------- каркас кабинета ---------- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 26px;
  padding: 24px 16px 18px;
  background: #fff; border-right: 1px solid var(--line);
}
.side .logo { padding: 0 8px; }
.nav { display: grid; gap: 3px; }
.nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  text-decoration: none; font-weight: 550; font-size: 15px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg); }
.nav a.is-on { background: var(--red-soft); color: var(--red-d); }
.nav .i { width: 20px; height: 20px; }
.nav__badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side__user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg); }
.ava {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px;
}
.ava--lg { width: 64px; height: 64px; font-size: 22px; }
.side__user div { min-width: 0; }
.side__user b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__user span { font-size: 12.5px; color: var(--muted); }
.side__out { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.side__out:hover { background: #fff; color: var(--red); }

.main { min-width: 0; padding: 0 clamp(16px, 3.4vw, 44px) 80px; }
.demo-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 calc(-1 * clamp(16px, 3.4vw, 44px)); padding: 10px clamp(16px, 3.4vw, 44px);
  background: var(--ink); color: #fff; font-size: 14px;
}
.demo-bar b { color: var(--butter); }
.demo-bar .btn { margin-left: auto; min-height: 34px; padding: 0 14px; font-size: 13px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 34px 0 26px; }
.top h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); }
.top p { margin: 8px 0 0; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.view { animation: up .45s var(--ease); }

/* ---------- блоки ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--side { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }
.card { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); }
.card h2 { margin: 0 0 16px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card h2 a { font-size: 13.5px; font-weight: 600; color: var(--red-d); text-decoration: none; }
.card--flat { box-shadow: none; background: var(--bg-2); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); padding: 18px 20px 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; }
.tile span { font-size: 13.5px; color: var(--muted); font-weight: 550; }
.tile b { font: 800 44px/1 var(--f); font-stretch: 70%; letter-spacing: -.01em; }
.tile b small { font-size: 22px; color: var(--muted); }
.tile--red { background: var(--red); color: #fff; box-shadow: none; transform: rotate(-1.4deg); }
.tile--red span { color: rgba(255, 255, 255, .8); }
.tile--sky { background: var(--sky); box-shadow: none; }
.tile--butter { background: var(--butter); box-shadow: none; }
.tile--mint { background: var(--mint); box-shadow: none; }

.list { display: grid; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--bg); text-decoration: none;
  transition: background .2s, transform .25s var(--ease);
}
a.item:hover { background: var(--bg-2); transform: translateX(3px); }
.item__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--red); }
.item__body { min-width: 0; flex: 1; }
.item__body b { display: block; font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.item__body span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.item__end { flex: none; display: flex; align-items: center; gap: 10px; }
.empty { padding: 26px 18px; border-radius: 14px; background: var(--bg); text-align: center; color: var(--muted); font-size: 14.5px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.badge--todo { background: var(--sky); color: #23408F; }
.badge--late { background: var(--red-soft); color: var(--red-d); }
.badge--review { background: var(--butter); color: #6B5300; }
.badge--done { background: var(--mint); color: #0E6B3E; }
.score { font: 800 22px/1 var(--f); font-stretch: 70%; }
.score small { font-size: 14px; color: var(--muted); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs button.is-on { background: var(--ink); color: #fff; }

/* приветствие и прогресс */
.hello { position: relative; overflow: hidden; border-radius: var(--r-l); padding: 26px 28px; background: var(--ink); color: #fff; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hello h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); }
.hello p { margin: 8px 0 0; color: rgba(255, 255, 255, .7); max-width: 32em; }
.hello__goal { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .bg { stroke: rgba(255, 255, 255, .14); }
.ring .fg { stroke: var(--red); transition: stroke-dashoffset 1.2s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px/1 var(--f); font-stretch: 70%; }
.card .ring .bg { stroke: var(--bg-2); }
.hello__goal span { font-size: 13.5px; color: rgba(255, 255, 255, .7); line-height: 1.35; }
.hello__goal span b { display: block; color: #fff; font-size: 16px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.chart__bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart__bar i { display: block; width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: var(--sky); transform-origin: bottom; animation: grow .9s var(--ease) both; }
.chart__bar:last-child i { background: var(--red); }
.chart__bar span { font-size: 12.5px; font-weight: 700; }
@keyframes grow { from { transform: scaleY(0); } }

.lesson { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.lesson__date { flex: none; width: 54px; text-align: center; padding: 8px 0; border-radius: 12px; background: #fff; }
.lesson__date b { display: block; font: 800 22px/1 var(--f); font-stretch: 70%; }
.lesson__date span { font-size: 11.5px; font-weight: 650; text-transform: uppercase; color: var(--red-d); }
.lesson__body { flex: 1; min-width: 0; }
.lesson__body b { display: block; font-weight: 650; font-size: 15px; }
.lesson__body span { font-size: 13px; color: var(--muted); }

.comment { padding: 16px 18px; border-radius: 16px 16px 16px 4px; background: var(--butter); font-size: 15px; line-height: 1.5; }
.comment__who { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.comment__who .ava { width: 28px; height: 28px; font-size: 11px; background: var(--red); }

/* ---------- выполнение задания ---------- */
.hw-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hw-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.hw-descr { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; background: var(--sky); color: #1E356F; font-size: 15px; }
.task { position: relative; background: #fff; border-radius: var(--r); padding: 22px 22px 22px 70px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; }
.task__n { position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); font-weight: 800; font-size: 14px; }
.task.is-answered .task__n { background: var(--ink); color: #fff; }
.task.is-right .task__n { background: var(--green); color: #fff; }
.task.is-wrong .task__n { background: var(--red); color: #fff; }
.task__passage { margin: 0 0 14px; padding: 14px 16px; border-left: 4px solid var(--red); border-radius: 6px 12px 12px 6px; background: var(--bg); font-size: 15px; line-height: 1.6; }
.task__prompt { margin: 0 0 14px; font-size: 17.5px; font-weight: 550; line-height: 1.45; white-space: pre-line; }
.task__prompt--writing { font-size: 15.5px; font-weight: 450; color: var(--ink-2); background: var(--bg); padding: 16px 18px; border-radius: 14px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; text-align: left; font-size: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--ink); }
.opt__k { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 12.5px; font-weight: 800; }
.opt.is-on { border-color: var(--ink); background: var(--bg); }
.opt.is-on .opt__k { background: var(--ink); color: #fff; }
.opt.is-right { border-color: var(--green); background: #E8F7EF; }
.opt.is-right .opt__k { background: var(--green); color: #fff; }
.opt.is-wrong { border-color: var(--red); background: #FFF0F2; }
.opt.is-wrong .opt__k { background: var(--red); color: #fff; }
.opt:disabled { cursor: default; }
.gap-in { display: inline-block; width: min(240px, 100%); min-height: 40px; margin: 0 4px; padding: 6px 12px; border: 0; border-bottom: 2.5px solid var(--red); border-radius: 8px 8px 0 0; background: var(--bg); font-size: 16.5px; font-weight: 600; vertical-align: baseline; }
.gap-in:focus { outline: none; background: var(--red-soft); }
.gap-in[readonly] { border-bottom-color: var(--line-2); }
.wc { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.wc b.ok { color: var(--green); }
.wc b.bad { color: var(--red-d); }
.explain { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: var(--bg); }
.explain b { font-weight: 700; }
.explain--right { background: #E8F7EF; }
.explain--wrong { background: #FFF0F2; }
.essay { white-space: pre-wrap; padding: 16px 18px; border-radius: 14px; background: var(--bg); font-size: 15.5px; line-height: 1.65; }
.crit { display: grid; gap: 10px; margin-top: 14px; }
.crit__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.crit__row span { font-size: 14.5px; font-weight: 550; }
.pts { display: inline-flex; gap: 4px; }
.pts button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 800; cursor: pointer; transition: background .2s; }
.pts button.is-on { background: var(--ink); color: #fff; box-shadow: none; }

.submit-bar {
  position: sticky; bottom: 14px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 20px; padding: 12px 12px 12px 22px;
  border-radius: 999px; background: var(--ink); color: #fff;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
}
.submit-bar__prog { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.submit-bar__prog i { display: block; width: 120px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.submit-bar__prog i b { display: block; height: 100%; background: var(--red); border-radius: inherit; transition: width .3s; }

.result { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-l); background: #fff; box-shadow: 0 0 0 1px var(--line); margin-bottom: 18px; }
.result h2 { margin: 0; font-size: 30px; }
.result p { margin: 6px 0 0; color: var(--muted); max-width: 34em; }
.result .ring .fg { stroke: var(--green); }

/* ---------- таблица учеников ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 650; color: var(--muted); padding: 0 14px 4px; text-transform: uppercase; letter-spacing: .04em; }
.table td { padding: 12px 14px; background: #fff; font-size: 14.5px; }
.table td:first-child { border-radius: 14px 0 0 14px; }
.table td:last-child { border-radius: 0 14px 14px 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--bg-2); }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; font-weight: 650; }
.who span { font-size: 12.5px; color: var(--muted); }
.bar { width: 90px; height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; }

/* ---------- библиотека и конструктор ---------- */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.lib-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.lib-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.lib-card__top { display: flex; justify-content: space-between; gap: 8px; }
.lib-card h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.lib-card p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.lib-card__meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.lib-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.lib-card__btns { display: flex; gap: 8px; }
.topic { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: var(--sky); color: #23408F; }
.topic--Writing { background: var(--butter); color: #6B5300; }
.topic--Reading { background: var(--mint); color: #0E6B3E; }
.topic--Vocabulary { background: #EEE8FF; color: #4B3BB3; }
.topic--Диагностика { background: var(--red-soft); color: var(--red-d); }

.builder-task { position: relative; padding: 18px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; display: grid; gap: 12px; }
.builder-task__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.builder-task__head b { font-size: 14px; }
.builder-opt { display: flex; align-items: center; gap: 8px; }
.builder-opt input[type="radio"] { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.builder-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 24px; }
.icon-btn { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: var(--bg); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--red-soft); color: var(--red-d); }

/* ---------- окно ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(23, 21, 28, .45); backdrop-filter: blur(4px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 26px; border-radius: var(--r-l); background: #fff; animation: up .3s var(--ease); }
.modal__box h3 { margin: 0 0 8px; font-size: 22px; font-weight: 750; }
.modal__box > p { margin: 0 0 18px; color: var(--muted); }
.modal__btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.pick { display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.pick label { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); cursor: pointer; }
.pick input { width: 18px; height: 18px; accent-color: var(--red); }
.code { display: block; padding: 14px; border-radius: 12px; background: var(--bg); font: 700 22px/1.2 ui-monospace, monospace; text-align: center; letter-spacing: .04em; user-select: all; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 13px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 550; box-shadow: var(--shadow); transition: opacity .3s, translate .3s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast.is-err { background: var(--red-d); }

.tabbar { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { min-height: auto; padding-bottom: 34px; }
  .auth__side h2 { font-size: 46px; }
  .auth__quote { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding-bottom: 110px; }
  .mob-head { display: flex !important; }
  .tabbar {
    position: fixed; z-index: 40; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
    display: flex; justify-content: space-around;
    padding: 6px; border-radius: 20px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px var(--line), 0 16px 36px -18px rgba(0, 0, 0, .35);
  }
  .tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; font-size: 10.5px; font-weight: 650; color: var(--muted); text-decoration: none; }
  .tabbar a.is-on { color: var(--red-d); background: var(--red-soft); }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar .nav__badge { position: absolute; top: 2px; right: 18%; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .task { padding: 62px 16px 18px; }
  .task__n { left: 16px; top: 16px; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; background: #fff; border-radius: 14px; margin-bottom: 8px; padding: 6px 0; }
  .table td { background: none; padding: 6px 14px; }
  .table td.hide-m { display: none; }
  .submit-bar { border-radius: 22px; }
}
.mob-head { display: none; align-items: center; justify-content: space-between; padding: 14px 0 0; }
@media (max-width: 520px) {
  .auth__row, .auth__demo .row { grid-template-columns: 1fr; }
  .tiles { gap: 10px; }
  .tile { min-height: 110px; padding: 14px 16px; }
  .tile b { font-size: 36px; }
  .hello { padding: 22px 20px; }
  .item { padding: 12px; gap: 12px; }
  .item__ic { width: 38px; height: 38px; }
  .item__end .badge { display: none; }
  .submit-bar__prog i { width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
