/* Korean Nerd · TOPIK Ⅱ — redesign 2026-11 («чёрный · лаванда · лайм»), drawn from the approved AICRON designs
   (Рабочие файлы/дизайн-секций 01–32). Loaded after styles.css on every page, so it wins on equal selectors.
   Black #141414 · lavender var(--lv-8e7cc3) · lilac var(--lv-ede8fa) · lime #D4F36B. Coral red (#E5484D) only for attention / mistakes.
   Every clickable rounded tile lifts and grows a little on hover and dips on press (author's rule). */

/* Accent palette: every lavender of the redesign is a variable, so the «голубая» accent (male students, profile.gender = 'm',
   html[data-accent="blue"]) is the same palette turned to blue — same lightness, hue −40°. Lime and coral stay. */
:root { --lv-b9a9f0: #B9A9F0; --lv-c9b8f5: #C9B8F5; --lv-cdbff5: #CDBFF5; --lv-c0aef2: #C0AEF2; --lv-d9cef7: #D9CEF7; --lv-e6ddfb: #E6DDFB; --lv-8e7cc3: #8E7CC3; --lv-6e58b5: #6E58B5; --lv-5a4599: #5A4599; --lv-ede8fa: #EDE8FA; --lv-dcd3f7: #DCD3F7; --lv-e2daf9: #E2DAF9; --lv-a795e6: #A795E6; --lv-d8cbf6: #D8CBF6; --lv-e9e1fc: #E9E1FC; --lv-f6f2ff: #F6F2FF; --lv-f1ecfd: #F1ECFD; --lv-3b2c78: #3B2C78; --lv-4e3b98: #4E3B98; --lv-1a1430: #1A1430; --lv-b8a6f2: #B8A6F2; --lv-f4f0fd: #F4F0FD; --lv-cfc8e6: #CFC8E6; --lv-4e4766: #4E4766; --lv-5e4aa8: #5E4AA8; --lv-e6dffb: #E6DFFB; --lv-ede3fb: #EDE3FB; --lv-2a2540: #2A2540; --lv-3a3060: #3A3060; --lv-cfc1f7: #CFC1F7; --lv-c2b8e6: #C2B8E6; --lv-e2d9ff: #E2D9FF; --lv-352d5c: #352D5C; }
:root[data-accent="blue"] { --lv-b9a9f0: #9DCAFC; --lv-c9b8f5: #B0D0FD; --lv-cdbff5: #B7D6FD; --lv-c0aef2: #A3CAFD; --lv-d9cef7: #C7DFFE; --lv-e6ddfb: #DAE8FE; --lv-8e7cc3: #6C9AD3; --lv-6e58b5: #4382CA; --lv-5a4599: #3269AC; --lv-ede8fa: #E4EFFE; --lv-dcd3f7: #CCE3FE; --lv-e2daf9: #D5E7FE; --lv-a795e6: #83BBF8; --lv-d8cbf6: #C4DBFD; --lv-e9e1fc: #DFEBFE; --lv-f6f2ff: #F2F7FF; --lv-f1ecfd: #EBF3FE; --lv-3b2c78: #1B5289; --lv-4e3b98: #2669AD; --lv-1a1430: #0E2136; --lv-b8a6f2: #9CC8FC; --lv-f4f0fd: #EEF5FF; --lv-cfc8e6: #C1D6ED; --lv-4e4766: #40556D; --lv-5e4aa8: #3577BD; --lv-e6dffb: #DCEBFE; --lv-ede3fb: #E0E8FE; --lv-2a2540: #1F3346; --lv-3a3060: #25476B; --lv-cfc1f7: #BBD8FD; --lv-c2b8e6: #AECEF0; --lv-e2d9ff: #DAEBFE; --lv-352d5c: #224767; }
:root {
  --ink: #141414; --lav: var(--lv-8e7cc3); --lav-deep: var(--lv-6e58b5); --lilac: var(--lv-ede8fa); --lime: #D4F36B; --lime-ink: #1E2400;
  --coral: #E5484D; --coral-soft: #FDE4E6;
  --bg: #F6F4FB; --surface: #FFFFFF; --surface-2: #F0ECF9; --text: #141414; --muted: #6B6680; --border: #E7E2F3;
  --primary: var(--lv-6e58b5); --primary-hover: var(--lv-5a4599); --on-primary: #FFFFFF; --primary-soft: var(--lv-ede8fa);
  --accent: #3F7A12; --accent-soft: #EAF7C9; --danger: #D43A40; --danger-soft: #FDE4E6; --warn: #8A5A00; --warn-soft: #FFF3CF;
  --key: #8A5A00; --key-soft: #FFF6DA; --key-line: #EBC75A;
  --ring: var(--lv-8e7cc3);
  --shadow: 0 1px 2px rgba(40, 28, 80, .04), 0 8px 24px -14px rgba(60, 40, 120, .18);
  --shadow-hover: 0 18px 36px -18px rgba(90, 60, 170, .45), 0 2px 6px rgba(40, 28, 80, .06);
  --inv-bg: #141414; --inv-fg: #FFFFFF; --inv-muted: #B4AEC8; --inv-line: rgba(255, 255, 255, .14);
  --side: #141414; --side-fg: #FFFFFF; --side-muted: #9E98B3;
  --frame: #141414;
  --radius: 24px; --radius-sm: 16px; --radius-xs: 12px;
  --rail: 92px; --sidebar: 272px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #0B0B0E; --lilac: var(--lv-2a2540); --lime-ink: #1E2400;
  --coral: #FF6B70; --coral-soft: rgba(255, 107, 112, .16);
  --bg: #121117; --surface: #1C1B23; --surface-2: #26242F; --text: #F3F1F9; --muted: #A9A3BD; --border: #2F2C3B;
  --primary: var(--lv-b9a9f0); --primary-hover: #CDC1F6; --on-primary: #141414; --primary-soft: var(--lv-2a2540);
  --accent: #C6EA5A; --accent-soft: rgba(212, 243, 107, .14); --danger: #FF8A8E; --danger-soft: rgba(255, 107, 112, .16); --warn: #F2C35B; --warn-soft: rgba(242, 195, 91, .14);
  --key: #F2C35B; --key-soft: rgba(242, 195, 91, .12);
  --ring: var(--lv-b9a9f0); --shadow: none; --shadow-hover: 0 16px 34px -18px rgba(0, 0, 0, .8);
  --inv-bg: var(--lv-2a2540); --inv-fg: #FFFFFF; --inv-muted: var(--lv-c2b8e6); --inv-line: rgba(255, 255, 255, .14);
  --side: #0B0B0E; --frame: #0B0B0E;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0B0B0E; --lilac: var(--lv-2a2540);
    --coral: #FF6B70; --coral-soft: rgba(255, 107, 112, .16);
    --bg: #121117; --surface: #1C1B23; --surface-2: #26242F; --text: #F3F1F9; --muted: #A9A3BD; --border: #2F2C3B;
    --primary: var(--lv-b9a9f0); --primary-hover: #CDC1F6; --on-primary: #141414; --primary-soft: var(--lv-2a2540);
    --accent: #C6EA5A; --accent-soft: rgba(212, 243, 107, .14); --danger: #FF8A8E; --danger-soft: rgba(255, 107, 112, .16); --warn: #F2C35B; --warn-soft: rgba(242, 195, 91, .14);
    --key: #F2C35B; --key-soft: rgba(242, 195, 91, .12);
    --ring: var(--lv-b9a9f0); --shadow: none; --shadow-hover: 0 16px 34px -18px rgba(0, 0, 0, .8);
    --inv-bg: var(--lv-2a2540); --inv-fg: #FFFFFF; --inv-muted: var(--lv-c2b8e6); --inv-line: rgba(255, 255, 255, .14);
    --side: #0B0B0E; --frame: #0B0B0E;
    color-scheme: dark;
  }
}

/* ---------- Type ---------- */
body { font-family: var(--font); background: var(--bg); }
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -.025em; }
h1 { font-weight: 800; }

/* ---------- Frame: black rail on the left, the page on a big rounded sheet (computers) ---------- */
@media (min-width: 1024px) {
  body { background: var(--frame); }
  .content { margin-left: var(--rail); background: var(--bg); border-radius: 30px 0 0 30px; min-height: 100vh; transition: margin-left .3s var(--ease); }
  .sb-wide .content { margin-left: var(--sidebar); }
  .sidebar { width: var(--rail); background: var(--side); border: 0; transform: none !important; overflow: hidden; transition: width .3s var(--ease); }
  .sb-wide .sidebar { width: var(--sidebar); }
  .sidebar .brand { display: none; }
  .sb-wide .sidebar .brand { display: flex; }
  .sidebar .nav-label { opacity: 0; height: 10px; padding: 0; overflow: hidden; transition: opacity .2s; }
  .sb-wide .sidebar .nav-label { opacity: 1; height: auto; padding: 16px 14px 6px; }
  .sidebar .nav { padding: 6px 0 10px 14px; overflow-x: hidden; }
  .sidebar .nav a { position: relative; padding: 6px 12px 6px 9px; border-radius: 22px 0 0 22px; min-height: 58px; color: var(--side-fg); margin: 3px 0; gap: 14px; white-space: nowrap; }
  .sidebar .nav a > span:nth-child(2), .sidebar .nav-meta { opacity: 0; transition: opacity .2s; }
  .sb-wide .sidebar .nav a > span:nth-child(2) { opacity: 1; }
  .sidebar .nav a:hover { background: rgba(255, 255, 255, .08); }
  /* the open page: a white notch joined to the sheet */
  .sidebar .nav a[aria-current="page"] { background: var(--bg); color: var(--text); }
  .sidebar .nav a[aria-current="page"]::before, .sidebar .nav a[aria-current="page"]::after {
    content: ""; position: absolute; right: 0; width: 24px; height: 24px; background: transparent; pointer-events: none;
  }
  .sidebar .nav a[aria-current="page"]::before { top: -24px; border-bottom-right-radius: 22px; box-shadow: 8px 8px 0 8px var(--bg); }
  .sidebar .nav a[aria-current="page"]::after { bottom: -24px; border-top-right-radius: 22px; box-shadow: 8px -8px 0 8px var(--bg); }
  .sidebar-foot { opacity: 0; pointer-events: none; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--side-muted); white-space: nowrap; transition: opacity .2s; }
  .sb-wide .sidebar-foot { opacity: 1; pointer-events: auto; }
  .sidebar-foot a { color: #fff; }
  .rail-btn { display: grid; margin: 18px auto 10px 22px; flex: none; }
  .top-menu-btn { display: none !important; }
  .topbar { border-radius: 30px 0 0 0; }
  .tabbar { display: none !important; }
}
@media (max-width: 1023px) {
  .rail-btn { display: none !important; }
  .sidebar { background: var(--side); color: var(--side-fg); border: 0; border-radius: 0 30px 30px 0; width: min(320px, 86vw); }
  .sidebar .nav a { color: var(--side-fg); border-radius: 999px; min-height: 52px; }
  .sidebar .nav a:hover { background: rgba(255, 255, 255, .08); }
  .sidebar .nav a[aria-current="page"] { background: var(--lime); color: var(--lime-ink); }
  .sidebar .nav a[aria-current="page"] .nav-en { color: color-mix(in srgb, var(--lime-ink) 70%, transparent); }
  .sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .1); color: var(--side-muted); }
  .sidebar-foot a { color: #fff; }
  .scrim { background: rgba(20, 16, 40, .5); backdrop-filter: blur(2px); }
}
.sidebar .nav-label { color: var(--lav); letter-spacing: .06em; }
.sidebar .nav .nav-en { color: var(--side-muted); }
.sidebar .nav a[aria-current="page"] .nav-en { color: var(--muted); }
.sidebar .brand { color: var(--side-fg); }
.sidebar .brand-sub { color: var(--side-muted); }
.sidebar .brand-mark { background: #fff; border: 0; }
/* menu icons: a white circle with a dark line icon */
.sidebar .nav .nav-ic, .sidebar .nav .nav-ic:not(.t-base) { width: 44px; height: 44px; border-radius: 50%; background: #fff !important; color: var(--ink) !important; display: grid; place-items: center; flex: none; transition: transform .25s var(--spring); }
.sidebar .nav .nav-ic svg { width: 20px; height: 20px; color: var(--ink) !important; }
.sidebar .nav a:hover .nav-ic { transform: scale(1.1) rotate(-6deg); }
.sidebar .nav a[aria-current="page"] .nav-ic, .sidebar .nav a[aria-current="page"] .nav-ic.t-base { background: var(--ink) !important; }
.sidebar .nav a[aria-current="page"] .nav-ic svg { color: #fff !important; }
@media (max-width: 1023px) { .sidebar .nav a[aria-current="page"] .nav-ic, .sidebar .nav a[aria-current="page"] .nav-ic.t-base { background: #fff !important; } .sidebar .nav a[aria-current="page"] .nav-ic svg { color: var(--ink) !important; } }
.sidebar .acct { color: #fff; }
.sidebar .acct small { color: var(--side-muted); }

/* petals button: four soft petals that fold into «×» */
.menu-btn { width: 48px; height: 48px; border-radius: 16px; }
.kn-petals { position: relative; width: 26px; height: 26px; display: block; transition: transform .35s var(--spring); }
.kn-petals i { position: absolute; width: 11px; height: 11px; border-radius: 50% 50% 50% 6px; transition: transform .35s var(--spring), border-radius .3s, width .3s, height .3s; }
.kn-petals i:nth-child(1) { left: 0; top: 0; background: var(--lv-c9b8f5); transform: rotate(90deg); }
.kn-petals i:nth-child(2) { right: 0; top: 0; background: var(--lime); transform: rotate(180deg); }
.kn-petals i:nth-child(3) { left: 0; bottom: 0; background: #F4B6CF; }
.kn-petals i:nth-child(4) { right: 0; bottom: 0; background: var(--lav); transform: rotate(-90deg); }
.menu-btn:hover .kn-petals { transform: rotate(45deg) scale(1.06); }
.rail-btn { background: transparent; }
.rail-btn:hover { background: rgba(255, 255, 255, .08); }
.menu-btn[aria-expanded="true"] .kn-petals { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .kn-petals i { width: 26px; height: 5px; border-radius: 3px; left: 0; top: 10.5px; }
.menu-btn[aria-expanded="true"] .kn-petals i:nth-child(1), .menu-btn[aria-expanded="true"] .kn-petals i:nth-child(2) { transform: none; }
.menu-btn[aria-expanded="true"] .kn-petals i:nth-child(3), .menu-btn[aria-expanded="true"] .kn-petals i:nth-child(4) { transform: rotate(90deg); bottom: auto; }
@media (max-width: 1023px) { .top-menu-btn[aria-expanded="true"] .kn-petals i { background: var(--text); } }

/* ---------- Top bar ---------- */
.topbar { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 0; height: 68px; padding: 0 20px; }
.topbar .title { font-weight: 700; font-size: 16px; }
.topbar .icon-btn { border-radius: 14px; }
.top-av img { border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--lilac); }
@media (max-width: 1023px) { .topbar .title { text-align: center; } }

/* ---------- Phone tab bar ---------- */
.tabbar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--ink); border-radius: 28px; padding: 8px 6px; box-shadow: 0 14px 30px -12px rgba(20, 10, 50, .55); }
:root[data-theme="dark"] .tabbar { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.tabbar a { display: grid; justify-items: center; gap: 2px; color: #CFCBDC; text-decoration: none; font: 600 11px/1.2 var(--font); padding: 4px 0; border-radius: 18px; min-height: calc(52px / .9); align-content: center; }
.tabbar .tb-ic { width: 40px; height: 34px; border-radius: 999px; display: grid; place-items: center; transition: transform .25s var(--spring), background .2s; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current] { color: var(--lime); }
.tabbar a[aria-current] .tb-ic { background: var(--lime); color: var(--lime-ink); width: 52px; }
.tabbar a:active .tb-ic { transform: scale(.9); }
@media (max-width: 1023px) {
  .has-tabbar body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .has-tabbar .xr-open .tabbar, body.xr-open .tabbar, body.gate-open .tabbar { display: none; }
}

/* ---------- Page band (section header) ---------- */
.page-band { background: transparent !important; border: 0 !important; padding: 4px 0 0 !important; box-shadow: none !important; }
.page-band-t { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem) !important; font-weight: 800 !important; letter-spacing: -.03em; color: var(--text) !important; }
.page-band-t [lang="ko"] { color: var(--lav); font-weight: 600; }
.page-band-s { color: var(--muted) !important; }
.page-band-ic { background: var(--ink) !important; color: #fff !important; border-radius: 50% !important; }
:root[data-theme="dark"] .page-band-ic { background: var(--surface-2) !important; }

/* ---------- Cards ---------- */
.card { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow); }
:root[data-theme="dark"] .card { border-color: var(--border); }
.inv, .card.inv { background: var(--inv-bg); color: var(--inv-fg); border-color: transparent; }
.callout { border-radius: var(--radius-sm); }
.callout.bad, .callout.danger { background: var(--coral-soft); }
.callout.bad svg { color: var(--coral); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; transition: transform .2s var(--spring), background .15s, box-shadow .2s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2A2833; color: #fff; box-shadow: 0 10px 20px -12px rgba(20, 10, 50, .6); }
:root[data-theme="dark"] .btn-primary { background: var(--lime); color: var(--lime-ink); }
:root[data-theme="dark"] .btn-primary:hover { background: #E0F78E; color: var(--lime-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--lime); color: var(--lime-ink); } }
.btn-lime, .btn.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #DDF784; color: var(--lime-ink); }
.btn-soft { background: var(--lilac); color: var(--text); }
.btn-soft:hover { border-color: var(--lav); color: var(--text); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-success { background: var(--lime); color: var(--lime-ink); }
.btn.btn-nav, .btn-nav { border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); }
.btn-nav:hover, .btn.btn-nav:hover { border-color: var(--lav); color: var(--text); background: var(--surface); }
.round-btn { border-radius: 50%; }

/* ---------- Chips, tabs, segments ---------- */
.chip { border-radius: 999px; background: var(--surface-2); color: var(--text); font-weight: 600; }
.chip.ok { background: var(--lime); color: var(--lime-ink); }
.chip.pri { background: var(--lilac); color: var(--text); }
.chip.bad, .chip.danger { background: var(--coral-soft); color: var(--coral); }
.tabs { background: transparent; padding: 0; gap: 8px; border-radius: 0; }
.tab { border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 600; transition: transform .2s var(--spring), background .15s, color .15s; }
.tab:hover { color: var(--text); border-color: var(--lav); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
:root[data-theme="dark"] .tab[aria-selected="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab[aria-selected="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); } }
.seg button { border-radius: var(--radius-sm); }
.seg button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.input, input.input, select.input, textarea.input { border-radius: 16px; }
input[type="search"].input { border-radius: 999px; background-color: var(--surface-2); border-color: transparent; }

/* ---------- Progress ---------- */
.bar { background: var(--surface-2); height: 8px; }
.bar > i { background: var(--lime); }
.bar.pri > i { background: var(--lav); }
.inv .bar, .card.inv .bar { background: rgba(255, 255, 255, .12); }
.inv .bar > i, .inv .bar.pri > i { background: var(--lime); }

/* ---------- Living tiles: hover lift + zoom, press dip ---------- */
a.card, button.card, a.tile, .tile-x, .stat-tile, .opt, .g-item, a.chip, .h9-stat, .h9-cal, .h9-tile {
  transition: transform .28s var(--spring), box-shadow .25s var(--ease), border-color .2s, background .2s;
}
@media (hover: hover) {
  a.card:hover, button.card:not([disabled]):hover, a.tile:hover, .tile-x:hover, .stat-tile:hover, .h9-stat:hover, .h9-cal:hover, .h9-tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--lav) 45%, var(--border)); }
}
a.card:active, button.card:active, .tile-x:active, .stat-tile:active, .h9-stat:active, .h9-tile:active { transform: scale(.98); transition-duration: .08s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Tables ---------- */
.table-wrap { border-radius: var(--radius-sm); }
th { background: var(--surface-2); }

/* =========================================================
   HOME (design 02 / phone 27)
   ========================================================= */
.main.home { max-width: 1640px; }
.h9-hello { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.h9-hello .hello-av img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--lilac); }
.h9-hello .h9-hi { margin: 0; color: var(--text); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.h9-hello .h9-hi [lang="ko"] { font-weight: 800; }
.h9-hello p { margin: 4px 0 0; color: var(--muted); font-weight: 500; }
.h9-hello p a { color: var(--primary); }

/* proverb of the day: the first thing under the greeting — ink, a red seal and a daily motif */
.h9-proverb { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center;
  padding: 26px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); isolation: isolate; }
.h9-proverb::before { /* hanji fibres + a soft lavender wash on the right */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 140% at 100% 50%, color-mix(in srgb, var(--lilac) 85%, transparent) 0 32%, transparent 62%),
    radial-gradient(60% 80% at 0% 0%, color-mix(in srgb, var(--lilac) 40%, transparent), transparent 70%);
}
.h9-pv-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 700; font-size: 15px; color: var(--text); }
.h9-pv-label [lang="ko"] { color: var(--lav); font-weight: 600; font-size: 14px; }
.h9-pv-ko { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); line-height: 1.25; letter-spacing: .04em; color: var(--text); word-break: keep-all; }
.h9-pv-ko::before { content: "“"; display: block; font: 800 46px/0.6 var(--font-serif); color: var(--lav); margin-bottom: 8px; }
.h9-pv-lit { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.h9-pv-mean { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--lilac); color: var(--text); font-size: 15px; }
.h9-pv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.h9-pv-btn { border: 0; border-radius: 999px; padding: 7px 14px; background: var(--surface-2); color: var(--text); font: 600 13.5px/1.2 var(--font); cursor: pointer; min-height: 36px; transition: transform .2s var(--spring), background .15s; }
.h9-pv-btn:hover { background: var(--lilac); transform: translateY(-1px); }
.h9-pv-art { position: relative; width: clamp(130px, 14vw, 190px); aspect-ratio: 1; display: grid; place-items: center; }
.h9-pv-art svg.h9-motif { width: 100%; height: 100%; }
.h9-seal { position: absolute; right: -2px; bottom: 4px; width: 62px; height: 62px; border-radius: 12px; background: #C8323A; color: #FFF4EC; display: grid; place-items: center; text-align: center;
  font: 700 12px/1.1 var(--font-ko); transform: rotate(-8deg); box-shadow: inset 0 0 0 3px #C8323A, inset 0 0 0 5px rgba(255, 244, 236, .7); letter-spacing: .02em; }
.h9-seal b { display: block; font-size: 19px; line-height: 1; font-family: var(--font); }
@media (max-width: 640px) {
  .h9-proverb { grid-template-columns: minmax(0, 1fr) 96px; padding: 20px 18px; gap: 6px 10px; align-items: start; }
  .h9-pv-art { width: 96px; }
  .h9-seal { width: 48px; height: 48px; font-size: 10px; right: -4px; bottom: -6px; }
  .h9-seal b { font-size: 15px; }
  .h9-pv-ko { font-size: 1.55rem; }
}

/* grid: plan + stats + radar + calendar, then the sections */
.h9-grid { display: grid; gap: 18px; margin-top: 18px; grid-template-columns: minmax(0, 1fr); }
.h9-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
@media (min-width: 1100px) {
  .h9-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(280px, .8fr); grid-template-areas: "plan stats side"; }
  .h9-plan { grid-area: plan; } .h9-mid { grid-area: stats; } .h9-side { grid-area: side; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .h9-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "side side" "plan mid"; }
  .h9-plan { grid-area: plan; } .h9-mid { grid-area: mid; } .h9-side { grid-area: side; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 699px) {
  .h9-side { order: -1; } /* phone: calendar first, as in design 27 */
}

/* black «План на сегодня» */
.h9-today { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px 24px 22px; display: grid; gap: 14px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .h9-today { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.h9-today h2 { margin: 0; color: #fff; font-size: 1.35rem; display: flex; align-items: center; gap: 8px; }
.h9-today h2 a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.h9-today h2 svg { width: 20px; height: 20px; }
.h9-today .h9-day { color: var(--lv-cfc8e6); font-weight: 600; margin: -8px 0 0; }
.h9-today .h9-chart { width: 100%; height: 130px; }
.h9-chart .ax { fill: #8E88A3; font: 600 11px var(--font); }
.h9-chart .ln { fill: none; stroke: var(--lv-b8a6f2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.h9-chart .ar { fill: url(#h9g); }
.h9-chart .dt { fill: #141414; stroke: var(--lv-b8a6f2); stroke-width: 2.5; }
.h9-chart .dt.now { fill: var(--lv-b8a6f2); stroke: rgba(184, 166, 242, .35); stroke-width: 8; }
.h9-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h9-tasks a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; transition: background .15s, transform .25s var(--spring); min-height: 48px; }
.h9-tasks a:hover { background: rgba(255, 255, 255, .12); transform: translateX(3px); }
.h9-tasks .ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #6F6987; flex: none; display: grid; place-items: center; }
.h9-tasks .is-done .ck { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.h9-tasks .ck svg { width: 14px; height: 14px; stroke-width: 3; }
.h9-tasks .is-done .tt { color: #9C96B2; text-decoration: line-through; text-decoration-color: #6F6987; }
.h9-tasks .tt { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; }
.h9-tasks .tt small { display: block; color: #A8A2BD; font-weight: 500; font-size: 13px; }
.h9-tasks .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.h9-today-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.h9-pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--spring), box-shadow .2s; min-height: 48px; font-size: 15.5px; }
.h9-pill:hover { transform: translateY(-2px) scale(1.02); color: var(--lime-ink); box-shadow: 0 12px 24px -12px rgba(212, 243, 107, .8); }
.h9-pill:active { transform: scale(.96); }
.h9-pill svg { width: 18px; height: 18px; }
.h9-today-foot .h9-more { color: var(--lv-cfc8e6); font-weight: 600; text-decoration: none; padding: 10px 6px; }
.h9-today-foot .h9-more:hover { color: #fff; text-decoration: underline; }
.h9-back { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(212, 243, 107, .12); color: #E8F8B4; font-size: 14.5px; }

/* three white stat cards */
.h9-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.h9-stat { display: grid; gap: 4px; padding: 18px 18px 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); text-decoration: none; min-width: 0; }
.h9-stat small { font-size: 13.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h9-stat b { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.h9-stat b em { font-style: normal; font-size: .55em; color: var(--accent); font-weight: 700; margin-left: 6px; letter-spacing: 0; }
.h9-spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 4px; }
.h9-spark i { flex: 1; border-radius: 4px; background: var(--lilac); min-height: 4px; }
.h9-spark i.on { background: var(--lav); }
@media (max-width: 520px) { .h9-stats { gap: 8px; } .h9-stat { padding: 14px 12px 12px; border-radius: 18px; } .h9-stat small { font-size: 12px; } .h9-spark { height: 24px; gap: 2px; } }

/* «Мои навыки» lavender card */
.h9-skills { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--lilac) 80%, var(--surface)); color: var(--text); text-decoration: none; border: 1px solid transparent; }
.h9-skills .h9-skills-h { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.h9-skills .h9-skills-h svg { width: 20px; height: 20px; }
.h9-skills .rd-mini { width: min(240px, 100%); margin: 0 auto; }
.h9-skills .rd-mini-lab { font-size: 11px; fill: var(--text); }
.h9-skills small { color: var(--muted); }

/* calendar widget (opens the calendar) */
.h9-cal { display: grid; gap: 14px; padding: 20px 20px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.h9-cal-top { display: flex; align-items: flex-start; gap: 12px; }
.h9-cal-date b { display: block; font-size: 3rem; font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.h9-cal-date span { color: var(--muted); font-weight: 600; }
.h9-cal .h9-dday { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--lime-ink); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.h9-cal .h9-dday svg { width: 16px; height: 16px; }
.h9-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 2px; }
.h9-week span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.h9-week b { display: grid; place-items: center; width: 36px; height: 36px; margin: 4px auto 0; border-radius: 50%; font-weight: 700; font-size: 15px; position: relative; }
.h9-week b.on { background: var(--lime); color: var(--lime-ink); }
.h9-week b.st::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--lav); }
.h9-week b.on.st::after { background: var(--lime-ink); }
.h9-exam-row { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 14px; color: var(--muted); }
.h9-exam-row b { color: var(--text); font-variant-numeric: tabular-nums; }

/* sections: black tiles with a white icon circle and a small section dot */
.h9-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; }
.h9-sec-h h2 { margin: 0; font-size: 1.5rem; }
.h9-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 1300px) { .h9-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 699px) { .h9-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } }
.h9-tile { position: relative; display: grid; gap: 4px; align-content: start; padding: 20px; border-radius: 26px; background: var(--ink); color: #fff; text-decoration: none; min-height: 190px; }
:root[data-theme="dark"] .h9-tile { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.h9-tile:hover { color: #fff; box-shadow: 0 20px 34px -18px rgba(60, 30, 140, .7); }
.h9-tile .ic { position: relative; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; margin-bottom: 12px; transition: transform .3s var(--spring); }
.h9-tile:hover .ic { transform: rotate(-8deg) scale(1.08); }
.h9-tile .ic svg { width: 26px; height: 26px; }
.h9-tile .ic::after { content: ""; position: absolute; right: -8px; top: 22px; width: 15px; height: 15px; border-radius: 50%; background: var(--dot, var(--lav)); box-shadow: 0 0 0 4px var(--ink); }
:root[data-theme="dark"] .h9-tile .ic::after { box-shadow: 0 0 0 4px #000; }
.h9-tile b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.h9-tile .ko { color: var(--lv-cfc8e6); font-weight: 500; }
.h9-tile .s { color: #A8A2BD; font-size: 13.5px; line-height: 1.4; margin-top: 6px; }
.h9-tile .s strong { color: #fff; font-weight: 600; }
.h9-tile .go { position: absolute; right: 16px; top: 18px; width: 18px; height: 18px; color: #6F6987; transition: transform .25s var(--spring), color .2s; }
.h9-tile:hover .go { color: var(--lime); transform: translateX(3px); }
@media (max-width: 699px) {
  .h9-tile { min-height: 0; padding: 14px; border-radius: 22px; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .h9-tile .ic { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .h9-tile .ic svg { width: 20px; height: 20px; }
  .h9-tile .ic::after { width: 11px; height: 11px; right: -5px; top: 16px; box-shadow: 0 0 0 3px var(--ink); }
  .h9-tile b { font-size: 1rem; }
  .h9-tile .s, .h9-tile .go { display: none; }
}
.t-vocab { --dot: #F2CF55; } .t-grammar { --dot: #F4A6C4; } .t-listen { --dot: #8DB6F2; } .t-read { --dot: #B5D86A; } .t-write { --dot: #B9A2F0; } .t-exam { --dot: #F6A981; }

/* exam soon (last 14 days) keeps its card; reminders as soft pills */
.main.home .exam-soon { margin-top: 18px; }
.main.home .placement-later, .main.home .access-reminder { border-radius: 18px; }
:root[data-theme="dark"] .sidebar .nav a[aria-current="page"] .nav-ic { background: var(--lime) !important; }
:root[data-theme="dark"] .sidebar .nav a[aria-current="page"] .nav-ic svg { color: var(--lime-ink) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sidebar .nav a[aria-current="page"] .nav-ic { background: var(--lime) !important; } :root:not([data-theme="light"]) .sidebar .nav a[aria-current="page"] .nav-ic svg { color: var(--lime-ink) !important; } }

/* proverb, stronger (2026-11-17): a lavender sheet, a big serif line and the day's motif in a white «moon» with the seal */
.h9-proverb { background: linear-gradient(115deg, var(--lv-f6f2ff) 0%, var(--lv-e9e1fc) 55%, var(--lv-d8cbf6) 100%); border: 0; padding: 30px 34px; }
.h9-proverb::before { background: radial-gradient(70% 120% at 0% 0%, rgba(255, 255, 255, .7), transparent 60%); }
.h9-proverb::after { content: "俗談"; position: absolute; right: 26%; bottom: -34px; font: 700 150px/1 var(--font-serif); color: rgba(110, 88, 181, .07); pointer-events: none; z-index: -1; letter-spacing: -.05em; }
.h9-pv-label { color: var(--lav-deep); }
.h9-pv-label [lang="ko"] { color: var(--lav-deep); opacity: .75; }
.h9-pv-ko { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.3rem); font-weight: 700; color: var(--lv-1a1430); }
.h9-pv-ko::before { color: var(--lav-deep); }
.h9-pv-lit { color: var(--lv-4e4766); font-size: 16.5px; font-style: italic; }
.h9-pv-mean { background: rgba(255, 255, 255, .75); }
.h9-pv-btn { background: #fff; box-shadow: 0 4px 10px -6px rgba(80, 50, 160, .4); }
.h9-pv-btn:hover { background: #fff; }
.h9-pv-art { width: clamp(150px, 15vw, 210px); border-radius: 50%; background: #fff; box-shadow: 0 18px 40px -22px rgba(90, 60, 170, .6), inset 0 0 0 10px rgba(237, 232, 250, .7); color: var(--lv-1a1430); }
.h9-pv-art > span:first-child { display: block; width: 74%; }
.h9-seal { width: 66px; height: 66px; right: -10px; bottom: -6px; }
:root[data-theme="dark"] .h9-proverb { background: linear-gradient(115deg, #231F36 0%, #2C2547 60%, #3A2F63 100%); }
:root[data-theme="dark"] .h9-pv-ko { color: #FFFFFF; }
:root[data-theme="dark"] .h9-pv-lit { color: #CFC6EC; }
:root[data-theme="dark"] .h9-pv-label, :root[data-theme="dark"] .h9-pv-label [lang="ko"], :root[data-theme="dark"] .h9-pv-ko::before { color: var(--lv-c9b8f5); }
:root[data-theme="dark"] .h9-pv-btn, :root[data-theme="dark"] .h9-pv-mean { background: rgba(255, 255, 255, .1); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .h9-proverb { background: linear-gradient(115deg, #231F36 0%, #2C2547 60%, #3A2F63 100%); }
  :root:not([data-theme="light"]) .h9-pv-ko { color: #FFFFFF; }
  :root:not([data-theme="light"]) .h9-pv-lit { color: #CFC6EC; }
  :root:not([data-theme="light"]) .h9-pv-label, :root:not([data-theme="light"]) .h9-pv-label [lang="ko"], :root:not([data-theme="light"]) .h9-pv-ko::before { color: var(--lv-c9b8f5); }
  :root:not([data-theme="light"]) .h9-pv-btn, :root:not([data-theme="light"]) .h9-pv-mean { background: rgba(255, 255, 255, .1); color: #fff; }
}
@media (max-width: 640px) {
  .h9-proverb { padding: 22px 18px; grid-template-columns: minmax(0, 1fr) 92px; }
  .h9-pv-art { width: 92px; box-shadow: 0 12px 26px -16px rgba(90, 60, 170, .6), inset 0 0 0 6px rgba(237, 232, 250, .7); }
  .h9-seal { width: 46px; height: 46px; right: -8px; bottom: -10px; }
  .h9-pv-ko { font-size: 1.75rem; }
  .h9-proverb::after { font-size: 96px; right: 4%; bottom: -24px; }
}

/* ---------- Switch rows: main switch = black pill, sub switch = lime pill (designs 04, 28) ---------- */
.tab { border: 1.5px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; }
.tab:hover { border-color: var(--lav); background: var(--surface); transform: translateY(-1px); }
.main.has-band .tab[aria-selected="true"], .main.has-band .tabs.tabs-sub .tab[aria-selected="true"], .tab[aria-selected="true"], .tabs.tabs-sub .tab[aria-selected="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; font-weight: 700;
}
.main.has-band .tabs.tabs-sub .tab[aria-selected="true"], .tabs.tabs-sub .tab[aria-selected="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.tabs.tabs-sub .tab[aria-selected="true"]::before { content: none; }
.tab[aria-selected="true"] .tab-ru, .tab[aria-selected="true"] small { color: inherit; opacity: .8; }
:root[data-theme="dark"] .main.has-band .tab[aria-selected="true"], :root[data-theme="dark"] .tab[aria-selected="true"] { background: #fff; color: #141414; border-color: #fff; }
:root[data-theme="dark"] .tabs.tabs-sub .tab[aria-selected="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .main.has-band .tab[aria-selected="true"], :root:not([data-theme="light"]) .tab[aria-selected="true"] { background: #fff; color: #141414; border-color: #fff; }
  :root:not([data-theme="light"]) .tabs.tabs-sub .tab[aria-selected="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
}
.tabs.pf-tabs .tab, .tabs.pf-tabs .tab[aria-selected="true"] { background: transparent; border-width: 0 0 3px; border-radius: 0; color: var(--muted); transform: none; }
.tabs.pf-tabs .tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--lav); }
.tabs-label { color: var(--muted); }

/* the sheet reaches the bottom of the window (html zoom shrinks vh) */
@media (min-width: 1024px) { .content { min-height: calc(100vh / var(--zoom)); } }

/* =========================================================
   VOCABULARY (designs 04 / 28)
   ========================================================= */
.card.stat { border-radius: 22px; background: color-mix(in srgb, var(--lilac) 75%, var(--surface)); border-color: transparent; box-shadow: none; }
.card.stat b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.grid > .card.stat:first-child { background: var(--ink); color: #fff; }
.grid > .card.stat:first-child span { color: var(--lv-cfc8e6); }
:root[data-theme="dark"] .grid > .card.stat:first-child { background: var(--dk-tile); }
.session-pos { color: var(--muted); }
.session-pos b { color: var(--text); }
.flash-wrap { perspective: 1400px; }
.flash { border-radius: 30px; }
.face { border-radius: 30px; border: 0 !important; background: var(--surface); box-shadow: 0 30px 60px -34px rgba(70, 40, 150, .45), 0 2px 8px rgba(40, 28, 80, .05); }
.face.back { background: linear-gradient(160deg, #F7F4FF, #ECE6FB); }
:root[data-theme="dark"] .face.back { background: linear-gradient(160deg, #26222F, #2E2846); }
.face .word, .flash .face > [lang="ko"]:first-child { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); font-weight: 700; letter-spacing: -.01em; }
.face .meaning { color: var(--lav-deep); border-top: 0; font-size: 1.5rem; font-weight: 700; }
:root[data-theme="dark"] .face .meaning { color: var(--lv-c9b8f5); }
.face .lvl.chip { background: var(--lilac); color: var(--lav-deep); left: auto; right: 18px; top: 18px; }
.rate { gap: 12px; }
.rate button { min-height: 64px; border: 0; border-radius: 20px; font-size: 16px; transition: transform .25s var(--spring), box-shadow .2s, filter .15s; }
.rate button:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 24px -16px rgba(60, 40, 120, .55); filter: saturate(1.1); }
.rate button:active { transform: scale(.95); }
.rate .again { background: #FBD9E1; color: #6B1F33; }
.rate .hard { background: #FCDCC4; color: #6A3712; }
.rate .good { background: var(--lv-dcd3f7); color: var(--lv-3b2c78); }
.rate .easy { background: var(--lime); color: var(--lime-ink); }
.rate button small { color: inherit; opacity: .72; }
:root[data-theme="dark"] .rate .again { background: #4A2531; color: #FFD3DD; }
:root[data-theme="dark"] .rate .hard { background: #4A3324; color: #FFDCC2; }
:root[data-theme="dark"] .rate .good { background: var(--lv-352d5c); color: var(--lv-e2d9ff); }
@media (max-width: 640px) { .rate { grid-template-columns: 1fr 1fr; gap: 10px; } .rate button { min-height: 62px; } }
.dict-row { border-radius: 20px; }

/* =========================================================
   FOCUS MODE — stats behind a lavender edge tab (designs 21 / 30)
   ========================================================= */
.fp-tab { position: fixed; z-index: 44; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 9px; border: 0; border-radius: 18px 0 0 18px; background: var(--lv-cdbff5); color: var(--lv-1a1430); cursor: pointer; font: 700 14px/1 var(--font);
  box-shadow: -8px 10px 24px -14px rgba(80, 50, 160, .6); transition: padding .25s var(--spring), background .2s; }
.fp-tab:hover { padding-right: 14px; background: var(--lv-c0aef2); }
.fp-label { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .02em; }
.fp-chev svg { width: 18px; height: 18px; transform: rotate(180deg); }
.fp-count { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-size: 13px; }
.fp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px var(--lv-cdbff5); }
.fp-panel { position: fixed; z-index: 46; right: 0; top: 0; bottom: 0; width: min(400px, 92vw); background: var(--surface); box-shadow: -30px 0 60px -30px rgba(40, 20, 100, .45);
  border-radius: 30px 0 0 30px; padding: 22px 22px 28px; overflow-y: auto; transform: translateX(105%); transition: transform .38s var(--ease); }
.fp.is-open .fp-panel { transform: none; }
.fp.is-open .fp-tab { opacity: 0; pointer-events: none; }
.fp-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(20, 16, 40, .25); opacity: 0; pointer-events: none; transition: opacity .25s; }
.fp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fp-head b { font-size: 1.25rem; }
.fp-close { background: var(--surface-2); border-radius: 50%; }
.fp-grab { display: none; }
.fp-sum { display: grid; gap: 2px; }
.fp-today { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--lime); color: var(--lime-ink); font-weight: 600; }
.fp-weak { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--coral-soft); color: var(--text); font-size: 14.5px; line-height: 1.45; }
.fp-weak-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--coral); display: grid; place-items: center; font-weight: 800; }
:root[data-theme="dark"] .fp-weak-n { background: rgba(255, 255, 255, .1); }
.fp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fp-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
.fp-rows .bar, .fp-rows small { grid-column: 1 / -1; }
.fp-row-t { font-size: 14.5px; }
.fp-row-v { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  /* the panel sits on the right of the sheet; the task keeps the middle */
  .fp-panel { top: 12px; bottom: 12px; }
}
@media (max-width: 1023px) {
  .fp-tab { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); flex-direction: row; padding: 12px 18px; border-radius: 999px; }
  .fp-tab:hover { padding-right: 18px; }
  .fp-label { writing-mode: horizontal-tb; transform: none; }
  .fp-chev svg { transform: rotate(-90deg); }
  .fp-panel { top: auto; left: 0; width: auto; max-height: 78vh; border-radius: 28px 28px 0 0; transform: translateY(105%); padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .fp.is-open .fp-scrim { opacity: 1; pointer-events: auto; }
  .fp-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: -8px auto 12px; }
  .fp-close svg { transform: rotate(90deg); }
  body:not(.has-fp-space) .main { padding-bottom: 80px; }
}
.drill-stats { margin: 0; }
.seg button { border-radius: 18px; border: 1.5px solid var(--border); background: var(--surface); transition: transform .25s var(--spring), border-color .15s, background .15s; }
.seg button:hover { border-color: var(--lav); transform: translateY(-2px); }
.main.has-band .seg button[aria-current="true"], .seg button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.main.has-band .seg button[aria-current="true"] small, .seg button[aria-current="true"] small { color: var(--lv-cfc8e6); }
:root[data-theme="dark"] .main.has-band .seg button[aria-current="true"], :root[data-theme="dark"] .seg button[aria-current="true"] { background: #fff; color: #141414; border-color: #fff; }
:root[data-theme="dark"] .seg button[aria-current="true"] small { color: var(--lv-4e4766); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .main.has-band .seg button[aria-current="true"], :root:not([data-theme="light"]) .seg button[aria-current="true"] { background: #fff; color: #141414; border-color: #fff; }
  :root:not([data-theme="light"]) .seg button[aria-current="true"] small { color: var(--lv-4e4766); }
}
.seg button.done:not([aria-current="true"]) { border-color: color-mix(in srgb, var(--lime) 70%, var(--border)); background: color-mix(in srgb, var(--lime) 18%, var(--surface)); }
.seg button.done:not([aria-current="true"]) small { color: var(--accent); }
/* wide screens: the open stats panel takes room on the right instead of covering the task */
@media (min-width: 1280px) { .fp-open .main { padding-right: 440px; transition: padding-right .38s var(--ease); } .fp-open .fp-scrim { display: none; } }
.fp-ring-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 22px; background: var(--ink); color: #fff; margin-bottom: 12px; }
.fp-ring-card .small { color: var(--lv-cfc8e6); }
.fp-ring { --p: 0; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--ink) 78%, transparent 79% 100%), conic-gradient(var(--lime) calc(var(--p) * 1%), #3A3648 0); }
.fp-ring b { font-size: 1.6rem; line-height: 1; }
.fp-ring small { color: var(--lv-cfc8e6); font-size: 11px; }
:root[data-theme="dark"] .fp-ring-card { background: var(--dk-tile); }
:root[data-theme="dark"] .fp-ring { background: radial-gradient(closest-side, #000 78%, transparent 79% 100%), conic-gradient(var(--lime) calc(var(--p) * 1%), #3A3648 0); }
.fp-body .card.stat { box-shadow: none; }

/* =========================================================
   GRAMMAR units (designs 11 / 29)
   ========================================================= */
.g-sum { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 999px; background: var(--lilac); }
.g-sum .bar { flex: 1; height: 12px; background: rgba(255, 255, 255, .8); }
.g-sum .bar > i { background: var(--lav-deep); }
.g-sum b { white-space: nowrap; }
.g-folders { gap: 14px; }
.card.g-folder { border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; }
.card.g-folder .g-folder-tab { display: none; }
.card.g-folder .g-folder-n { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.card.g-folder .g-folder-t [lang="ko"] { color: var(--lav); font-weight: 600; }
.card.g-folder.is-new { background: color-mix(in srgb, var(--lilac) 60%, var(--surface)); border-color: transparent; box-shadow: none; }
.card.g-folder .g-state { color: var(--muted); }
.g-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.g-ok svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); stroke-width: 3; }
.card.g-folder.is-current { background: var(--ink); color: #fff; border-color: transparent; }
.card.g-folder.is-current .g-folder-n, .card.g-folder.is-current .g-folder-t { color: #fff; }
.card.g-folder.is-current .g-folder-t [lang="ko"] { color: var(--lime); }
.card.g-folder.is-current .g-folder-s { color: var(--lv-cfc8e6); }
.g-cur { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.g-cur .bar { flex: 1; background: rgba(255, 255, 255, .14); }
.g-cur .bar > i { background: var(--lime); }
.g-cur-go { padding: 8px 16px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 14px; }
:root[data-theme="dark"] .card.g-folder.is-current { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
:root[data-theme="dark"] .g-sum .bar { background: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .g-sum .bar > i { background: var(--lv-b9a9f0); }
button.card.g-folder::after { display: none !important; }
@media (max-width: 640px) { .g-folders { grid-template-columns: 1fr !important; } }
.card.g-folder { margin-top: 0; border-top-left-radius: 24px; min-height: 140px; }
.card.g-folder:hover { background: var(--surface); color: var(--text); border-color: color-mix(in srgb, var(--lav) 45%, var(--border)); }
.card.g-folder.is-new:hover { background: color-mix(in srgb, var(--lilac) 60%, var(--surface)); }
.card.g-folder.is-current:hover { background: var(--ink); color: #fff; }
.card.g-folder:hover .muted, .card.g-folder:hover .g-folder-n { color: var(--text); }
.card.g-folder:hover .g-folder-t [lang="ko"] { color: var(--lav); }
.card.g-folder.is-current:hover .g-folder-n { color: #fff; }
.card.g-folder.is-current:hover .g-folder-t [lang="ko"] { color: var(--lime); }

/* proverb with the day's ink landscape (AICRON) on the right, melting into the lavender */
.h9-proverb { grid-template-columns: minmax(0, 1fr); min-height: 230px; align-content: center; }
.h9-proverb > div:first-child { position: relative; z-index: 1; max-width: min(62%, 760px); }
.h9-proverb::after { content: none; }
.h9-pv-img { position: absolute; z-index: 0; right: 0; top: 0; height: 100%; width: min(58%, 620px); object-fit: cover; object-position: left center;
  mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); pointer-events: none; }
.h9-proverb .h9-seal { position: absolute; z-index: 1; right: 22px; bottom: 18px; }
:root[data-theme="dark"] .h9-pv-img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) brightness(.9); opacity: .85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h9-pv-img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) brightness(.9); opacity: .85; } }
@media (max-width: 640px) {
  .h9-proverb { min-height: 250px; align-content: start; }
  .h9-proverb > div:first-child { max-width: 100%; }
  .h9-pv-img { width: 78%; opacity: .55; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 55%), linear-gradient(transparent, #000); mask-image: linear-gradient(to right, transparent 0, #000 55%); }
  .h9-proverb .h9-seal { right: 14px; bottom: 14px; }
}

/* =========================================================
   PRACTICE 듣기 / 읽기 — types overview (design 13)
   ========================================================= */
.px-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.px-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 24px; background: var(--surface-2); }
.px-switch a { display: grid; justify-items: center; padding: 8px 22px; border-radius: 19px; color: var(--muted); text-decoration: none; line-height: 1.2; transition: background .15s, color .15s, transform .2s var(--spring); min-height: 48px; align-content: center; }
.px-switch a b { font-size: 17px; color: var(--text); }
.px-switch a small { font-size: 12px; }
.px-switch a:hover { transform: translateY(-1px); color: var(--text); }
.px-switch a[aria-current] { background: var(--ink); color: var(--lv-cfc8e6); }
.px-switch a[aria-current] b { color: #fff; }
:root[data-theme="dark"] .px-switch a[aria-current] { background: #fff; color: var(--lv-4e4766); }
:root[data-theme="dark"] .px-switch a[aria-current] b { color: #141414; }
.btn.px-mock { min-height: 54px; padding: 12px 24px; font-size: 16px; }
.btn.px-mock svg { width: 16px; height: 16px; }
.px-overview { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .px-overview { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); } }
.px-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); align-content: start; }
.card.px-type { display: grid; gap: 4px; align-content: start; text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: 22px; border-radius: 26px; min-height: 210px;
  background: color-mix(in srgb, var(--lilac) 55%, var(--surface)); border: 1px solid transparent; box-shadow: none; }
.card.px-type:hover { background: color-mix(in srgb, var(--lilac) 55%, var(--surface)); }
.px-range { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.px-ko { font-size: 1.15rem; }
.px-ru { color: var(--muted); font-size: 14.5px; }
.px-prog { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; }
.px-prog .bar { flex: 1; height: 10px; background: rgba(255, 255, 255, .8); }
.px-prog .bar > i { background: var(--lime); }
.px-prog small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.px-state { margin-top: 10px; }
.px-new { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.px-new::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); }
.card.px-type.is-done { background: var(--surface); border-color: var(--border); }
.card.px-type.is-current, .card.px-type.is-current:hover { background: var(--ink); color: #fff; }
.card.px-type.is-current .px-ru, .card.px-type.is-current .px-prog small { color: var(--lv-cfc8e6); }
.card.px-type.is-current .px-prog .bar { background: rgba(255, 255, 255, .14); }
.px-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px 18px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.px-go svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .card.px-type.is-current { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
:root[data-theme="dark"] .px-prog .bar { background: rgba(255, 255, 255, .1); }
.px-side { display: grid; gap: 16px; align-content: start; }
.px-mine { padding: 22px; border-radius: 26px; background: color-mix(in srgb, var(--lilac) 85%, var(--surface)); }
.px-mine h2 { margin: 0; font-size: 1.6rem; }
.px-mine > p { margin: 2px 0 12px; }
.px-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 6px; }
.px-bars span { flex: 1; display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; min-width: 0; }
.px-bars i { align-self: end; border-radius: 8px 8px 4px 4px; background: var(--lv-b9a9f0); min-height: 4px; }
.px-bars span.is-weak i { background: var(--lime); }
.px-bars small { font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.px-weak { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(110, 88, 181, .18); }
.px-real { display: grid; gap: 10px; padding: 22px; border-radius: 26px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .28s var(--spring), box-shadow .2s; }
.px-real:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.px-real b { font-size: 1.15rem; line-height: 1.3; margin-top: -10px; }
.px-real span { display: inline-flex; align-items: center; gap: 8px; color: var(--lv-cfc8e6); }
.px-real svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .px-real { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.px-seg .seg { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
@media (max-width: 640px) {
  .px-top { margin-bottom: 14px; }
  .px-switch { width: 100%; } .px-switch a { flex: 1; padding: 8px 6px; }
  .px-top .px-mock { width: 100%; }
  .px-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card.px-type { padding: 16px; min-height: 0; border-radius: 22px; }
  .px-range { font-size: 1.8rem; }
  .px-ru { font-size: 13px; }
}

/* 듣기 practice: the dialogue as chat bubbles (design 14) */
.dialog { display: flex; flex-direction: column; gap: 12px; }
.dialog .line { display: flex; flex-direction: column; gap: 4px; max-width: min(86%, 640px); align-self: flex-start; }
.dialog .line.is-f { align-self: flex-end; align-items: flex-end; }
.dialog .line > div { padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--lilac); }
.dialog .line.is-f > div { border-radius: 20px 20px 6px 20px; background: var(--surface); border: 1.5px solid var(--border); }
.dialog .line.is-f .ko, .dialog .line.is-f .ru { text-align: right; }
.dialog .who { background: transparent !important; padding: 0 6px; font-size: 12.5px; color: var(--muted) !important; }
.dialog .line .ko { font-size: 17.5px; }
:root[data-theme="dark"] .dialog .line > div { background: var(--lv-2a2540); }
:root[data-theme="dark"] .dialog .line.is-f > div { background: var(--surface-2); }
/* answer options: big rounded cards; the chosen one black */
.opt { border-radius: 18px; transition: transform .25s var(--spring), border-color .15s, background .15s; }
.opt:hover { transform: translateY(-2px); border-color: var(--lav); }

/* =========================================================
   WRITING 쓰기 (design 15)
   ========================================================= */
.main[data-page="writing"] { max-width: 1500px; }
.main[data-page="writing"] > .tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.main[data-page="writing"] > .tabs .tab { min-height: 76px; border-radius: 22px; padding: 12px 16px; background: color-mix(in srgb, var(--lilac) 60%, var(--surface)); border-color: transparent; }
.main[data-page="writing"] > .tabs .tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }
.wt { display: grid; justify-items: center; gap: 2px; position: relative; }
.wt b { font-size: 16.5px; font-weight: 700; }
.wt small { font-size: 13px; opacity: .7; font-weight: 500; }
.wt-badge { position: absolute; top: -8px; right: -10px; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); }
@media (max-width: 900px) {
  .main[data-page="writing"] > .tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .main[data-page="writing"] > .tabs .tab { flex: 0 0 auto; min-height: 64px; }
}
.wp-prep { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .wp-prep { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); } .wp-side { position: sticky; top: 84px; } }
.wp-main { min-width: 0; }
.wp-side { display: grid; gap: 16px; }
.wp-past { display: grid; gap: 14px; padding: 22px; border-radius: 26px; background: var(--ink); color: #fff; }
:root[data-theme="dark"] .wp-past { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.wp-past-h { display: flex; gap: 12px; align-items: flex-start; }
.wp-past-h svg { width: 28px; height: 28px; flex: none; }
.wp-past-h b { display: block; font-size: 1.15rem; }
.wp-past-h small { color: var(--lv-cfc8e6); font-size: 13px; }
.wp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-chips button { border: 0; border-radius: 999px; padding: 9px 14px; background: #2B2834; color: #fff; font: 600 14px/1 var(--font); cursor: pointer; min-height: 40px; transition: transform .2s var(--spring), background .15s; }
.wp-chips button:hover { background: #3A3646; transform: translateY(-2px); }
.wp-chips button.is-done { background: rgba(212, 243, 107, .2); color: var(--lime); }
.btn.wp-rnd { justify-self: end; }
.wp-mine { padding: 22px; border-radius: 26px; background: color-mix(in srgb, var(--lilac) 85%, var(--surface)); }
.wp-mine h3 { margin: 0; font-size: 1.4rem; }
.wp-mine > p { margin: 2px 0 12px; }
.wp-mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wp-mine li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 46px; align-items: center; gap: 10px; }
.wp-mine .bar { height: 10px; background: rgba(255, 255, 255, .8); }
.wp-mine .bar > i { background: var(--lav-deep); }
.wp-mine .wp-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.wp-mine li.is-locked { color: var(--lav-deep); }
.wp-mine li.is-locked svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .wp-mine .bar { background: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .wp-mine .bar > i { background: var(--lv-b9a9f0); }
.wp-tip { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 16px 20px; border-radius: 20px; background: color-mix(in srgb, var(--lilac) 60%, var(--surface)); color: var(--lav-deep); font-weight: 600; }
.wp-tip svg { width: 22px; height: 22px; color: #E3C14A; flex: none; }
:root[data-theme="dark"] .wp-tip { color: var(--lv-cfc1f7); }
/* the steps of a lesson as a path of round marks */
.wl-path { list-style: none; margin: 16px 0 6px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.wl-path li { flex: 1 0 96px; position: relative; display: grid; }
.wl-path li + li::before { content: ""; position: absolute; top: 25px; right: calc(50% + 30px); width: calc(100% - 54px); border-top: 3px dotted var(--border); }
.wl-path button { display: grid; justify-items: center; gap: 8px; border: 0; background: transparent; color: var(--text); font: 600 13.5px/1.3 var(--font); cursor: pointer; text-align: center; padding: 0 2px 6px; }
.wl-path-n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 18px; font-weight: 800; transition: transform .25s var(--spring), box-shadow .2s; }
.wl-path-n svg { width: 22px; height: 22px; stroke-width: 3; }
.wl-path button:hover .wl-path-n { transform: scale(1.08); }
.wl-path li.is-seen .wl-path-n { background: var(--lime); color: var(--lime-ink); }
.wl-path li.is-next .wl-path-n { background: var(--surface); box-shadow: 0 0 0 3px var(--lav), 0 0 0 9px color-mix(in srgb, var(--lilac) 80%, transparent); color: var(--lav-deep); }
.wl-path-t { max-width: 130px; }
.wl-step summary .wl-n { border-radius: 50%; }
.card.wl-head { border-radius: 26px; }

/* 53 / 54 check (design 16): wavy coral underline, numbered «Что поправить» in pale pink circles */
.wb-err { background: transparent; border-bottom: 0; text-decoration: underline wavy var(--coral); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.wb-err sup { color: var(--coral); }
.wb-errs { list-style: none; padding-left: 0; counter-reset: fx; gap: 10px; }
.wb-errs li { counter-increment: fx; position: relative; padding: 12px 14px 12px 52px; border-radius: 16px; background: var(--surface-2); }
.wb-errs li::before { content: counter(fx); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); font-weight: 800; font-size: 14px; }
.wb-errs b { color: var(--coral); }
.wb .seg button, .wb-seg button { border-radius: 999px; min-height: 44px; }

/* =========================================================
   DRILL (design 19 / 21)
   ========================================================= */
.drill-head.card { display: grid; grid-template-columns: auto minmax(220px, 360px); justify-content: space-between; align-items: end; gap: 10px 18px; border: 0; background: transparent; box-shadow: none; padding: 0; }
.drill-head .drill-session { grid-column: 1 / -1; margin: 0; }
.drill-head .seg.drill-parts { grid-template-columns: repeat(2, minmax(150px, 1fr)); padding: 5px; border-radius: 24px; background: var(--surface-2); gap: 4px; }
.drill-head .seg.drill-parts button { border: 0; min-height: 52px; border-radius: 19px; background: transparent; }
.drill-head .seg.drill-parts button[aria-current="true"] { background: var(--ink); }
.drill-head select.input { border-radius: 999px; min-height: 52px; background-color: var(--surface); }
@media (max-width: 700px) { .drill-head.card { grid-template-columns: 1fr; } }
.drill-dots { display: flex; justify-content: center; gap: 10px; margin: -4px 0 4px; }
.drill-dots span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); animation: kn-pop .35s var(--spring); }
.drill-dots span.bad { background: #F9B5B8; color: #7A1D22; }
.drill-dots svg { width: 15px; height: 15px; stroke-width: 3.2; }
@keyframes kn-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.card.drill-card { border-radius: 30px; padding: 26px 28px; box-shadow: 0 30px 60px -40px rgba(70, 40, 150, .45), 0 1px 3px rgba(40, 28, 80, .05); }
.drill-card .chip { background: var(--lilac); color: var(--lav-deep); }
.drill-card .passage { border-radius: 18px; }
@media (min-width: 900px) {
  .drill-card .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .drill-card .opt { min-height: 64px; }
}
.drill-card .opt { border-radius: 18px; background: color-mix(in srgb, var(--lilac) 45%, var(--surface)); border-color: transparent; font-size: 17px; }
.drill-actions .btn { min-height: 54px; padding: 12px 26px; }
.drill-actions .btn-primary { background: var(--lime); color: var(--lime-ink); }
.drill-actions .btn-ghost { background: var(--lilac); border-color: transparent; }

/* =========================================================
   PAST EXAMS (design 20)
   ========================================================= */
.pe-wrap { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .pe-wrap { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } }
.pe-main { min-width: 0; }
.pe-hero { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding: 24px 26px; border-radius: 28px; background: var(--ink); color: #fff; }
@media (min-width: 900px) { .pe-hero { grid-template-columns: minmax(0, 1fr) auto; } .pe-hero-r { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 24px; } }
:root[data-theme="dark"] .pe-hero { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.pe-hero-h { display: flex; gap: 14px; align-items: center; }
.pe-hero-h b { display: block; font-size: 1.35rem; }
.pe-hero-h small { color: var(--lv-cfc8e6); }
.pe-ic { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #2B2834; color: #fff; }
.pe-ic svg { width: 24px; height: 24px; }
.pe-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pe-steps li { display: grid; gap: 4px; position: relative; }
.pe-steps li + li::before { content: "→"; position: absolute; left: -17px; bottom: 12px; color: #8E88A3; }
.pe-steps li > small { color: var(--lv-cfc8e6); font-size: 12px; height: 14px; }
.pe-step { display: flex; align-items: center; gap: 10px; }
.pe-step i { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.pe-step i svg { width: 18px; height: 18px; }
.pe-step b { display: block; }
.pe-step small { color: #A8A2BD; }
.pe-hero-r { display: grid; align-content: center; gap: 6px; }
.pe-hero-r > small { color: var(--lv-cfc8e6); }
.pe-best { font-size: 2.6rem; font-weight: 800; color: var(--lime); letter-spacing: -.03em; line-height: 1; }
.pe-best span { font-size: 1.3rem; color: #fff; font-weight: 700; }
.btn.pe-start { margin-top: 10px; min-height: 52px; }
.pe-h { margin: 26px 0 14px; font-size: 1.5rem; }
.pe-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card.pe-card { display: grid; gap: 14px; padding: 20px; border-radius: 26px; color: var(--text); text-decoration: none; }
.pe-card-h { display: flex; align-items: center; gap: 12px; }
.pe-card-h .pe-ic { background: var(--lilac); color: var(--lav-deep); }
.pe-card-h b { font-size: 1.45rem; letter-spacing: -.02em; }
.pe-card-h small { display: block; color: var(--muted); }
.pe-new { font-style: normal; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 12px; font-weight: 700; vertical-align: 4px; }
.pe-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pe-bars li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 62px; align-items: center; gap: 8px; font-size: 13.5px; }
.pe-bars small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.pe-open { display: grid; place-items: center; min-height: 46px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.pe-open.is-new { background: var(--lilac); color: var(--lav-deep); }
:root[data-theme="dark"] .pe-open { background: #fff; color: #141414; }
:root[data-theme="dark"] .pe-open.is-new { background: var(--surface-2); color: var(--text); }
.pe-side { display: grid; gap: 16px; align-content: start; }
.pe-prog { padding: 22px; border-radius: 26px; background: color-mix(in srgb, var(--lilac) 85%, var(--surface)); display: grid; gap: 10px; }
.pe-prog h2 { margin: 0; font-size: 1.3rem; }
.pe-prog > p { margin: 0; }
.pe-chart { width: 100%; height: auto; }
.pe-chart .gl { stroke: rgba(110, 88, 181, .35); stroke-dasharray: 4 4; }
.pe-chart .gt { font: 600 10px var(--font); fill: var(--muted); }
.pe-chart .ln { fill: none; stroke: var(--lav-deep); stroke-width: 3; stroke-linejoin: round; }
.pe-chart .dt { fill: var(--surface); stroke: var(--lav-deep); stroke-width: 2.5; }
.pe-chart .dt.now { fill: var(--lime); stroke: var(--lime-ink); }
.pe-max { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); }
.pe-max svg { width: 22px; height: 22px; color: var(--lav-deep); flex: none; }
.pe-max small { display: block; color: var(--muted); font-size: 13px; }
.pe-max b { font-size: 1.15rem; }
.pe-goal { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 26px; background: color-mix(in srgb, var(--lime) 40%, var(--surface)); color: var(--text); text-decoration: none; transition: transform .28s var(--spring), box-shadow .2s; }
.pe-goal:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pe-goal > svg:first-child { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); flex: none; }
.pe-goal > svg:last-child { width: 20px; height: 20px; margin-left: auto; flex: none; }
.pe-goal b { display: block; font-size: 1.15rem; }
.pe-goal small { color: var(--muted); }

/* =========================================================
   CALENDAR (design 03 / phone 28) — profile.html#calendar
   ========================================================= */
.cv { --cv-bg: #C9BCF2; background: var(--cv-bg); border-radius: 32px; padding: 22px; display: grid; gap: 18px; }
:root[data-theme="dark"] .cv { --cv-bg: var(--lv-2a2540); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cv { --cv-bg: var(--lv-2a2540); } }
.cv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cv-title b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.cv-title small { color: var(--lv-4e4766); }
:root[data-theme="dark"] .cv-title small { color: var(--muted); }
.cv-switch { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .45); gap: 2px; margin-left: auto; }
.cv-switch button { border: 0; background: transparent; border-radius: 999px; padding: 10px 20px; font: 600 15px/1 var(--font); color: var(--text); cursor: pointer; min-height: 44px; }
.cv-switch button[aria-selected="true"] { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .cv-switch { background: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .cv-switch button[aria-selected="true"] { background: #fff; color: #141414; }
.cv-nums { display: flex; gap: 22px; }
.cv-nums span { display: grid; text-align: center; }
.cv-nums b { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.cv-nums small { color: var(--lv-4e4766); font-size: 13px; }
:root[data-theme="dark"] .cv-nums small { color: var(--muted); }
.cv-add { min-height: 50px; padding: 10px 22px; }
.cv-add span:first-child { font-size: 22px; line-height: 1; }
.cv-body { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .cv-body { grid-template-columns: 340px minmax(0, 1fr); } }
.cv-side { display: grid; gap: 16px; }
.cv-card { background: rgba(255, 255, 255, .72); border-radius: 26px; padding: 20px; }
:root[data-theme="dark"] .cv-card { background: rgba(0, 0, 0, .25); }
.cv-mm-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cv-mm-h b { font-size: 1.25rem; }
.cv-mm-wd, .cv-mm-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cv-mm-wd span { font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cv-mm-d { position: relative; border: 0; background: transparent; width: 40px; height: 40px; margin: 2px auto; border-radius: 50%; font: 600 15px/1 var(--font); color: var(--text); cursor: pointer; transition: transform .2s var(--spring), background .15s; }
.cv-mm-d:hover { background: rgba(255, 255, 255, .8); transform: scale(1.08); }
.cv-mm-d.is-out { color: var(--muted); opacity: .55; }
.cv-mm-d.has-dot::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lav-deep); }
.cv-mm-d.is-today { background: var(--lime); color: var(--lime-ink); }
.cv-mm-d.is-sel { box-shadow: 0 0 0 2px var(--ink); }
.cv-mm-d.is-exam { background: var(--coral-soft); color: var(--coral); }
:root[data-theme="dark"] .cv-mm-d.is-sel { box-shadow: 0 0 0 2px #fff; }
.cv-exam { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 12px 16px; border: 0; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 700 15px/1.2 var(--font); cursor: pointer; transition: transform .25s var(--spring); }
.cv-exam:hover { transform: translateY(-2px); }
.cv-exam svg { width: 18px; height: 18px; flex: none; }
.cv-exam svg:last-child { margin-left: auto; }
.cv-check-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.cv-check-h b { font-size: 1.25rem; }
.cv-check-h small { color: var(--muted); }
.cv-check ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.cv-check li { display: flex; align-items: center; gap: 12px; }
.cv-check li.is-done span { text-decoration: line-through; color: var(--muted); }
.cv-ck { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); display: grid; place-items: center; color: #fff; cursor: pointer; padding: 0; }
.cv-ck svg { width: 15px; height: 15px; stroke-width: 3; }
button.cv-ck[aria-pressed="true"], li.is-done > a > .cv-ck { background: var(--lav-deep); border-color: var(--lav-deep); }
.cv-tip { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 12px 14px; border-radius: 16px; background: rgba(237, 232, 250, .8); color: var(--lav-deep); font-size: 14px; font-weight: 600; }
.cv-tip svg { width: 18px; height: 18px; color: #E3C14A; flex: none; }
:root[data-theme="dark"] .cv-tip { background: rgba(255, 255, 255, .06); color: var(--lv-cfc1f7); }
.cv-main { background: rgba(255, 255, 255, .85); border-radius: 30px; padding: 22px; min-width: 0; }
:root[data-theme="dark"] .cv-main { background: var(--surface); }
.cv-week-h { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cv-week-h h3 { margin: 0; font-size: 1.6rem; }
.cv-nav { border-radius: 50%; background: var(--surface-2); }
.cv-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
.cv-cols:has(.is-open) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cv-col { display: grid; gap: 8px; align-content: start; justify-items: stretch; min-height: 320px; padding: 14px 8px; border: 0; border-radius: 22px; background: color-mix(in srgb, var(--lilac) 35%, transparent); color: var(--text); cursor: pointer; text-align: center; font: inherit; transition: background .15s, transform .25s var(--spring); }
.cv-col:hover { background: color-mix(in srgb, var(--lilac) 70%, transparent); transform: translateY(-2px); }
.cv-col.is-past { opacity: .75; }
.cv-col-wd { font-weight: 700; color: var(--muted); font-size: 14px; }
.cv-col-n { font-size: 1.3rem; font-weight: 800; justify-self: center; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.cv-col.is-today .cv-col-n, .cv-col-n.is-today { background: var(--lime); color: var(--lime-ink); }
.cv-chip { display: flex; align-items: center; gap: 6px; padding: 8px 8px; border-radius: 14px; font-size: 12.5px; font-weight: 600; text-align: left; line-height: 1.25; background: var(--surface); color: var(--text); }
.cv-chip svg { width: 15px; height: 15px; flex: none; }
.cv-chip.t-vocab { background: #EAF7C9; } .cv-chip.t-grammar { background: var(--lv-e6dffb); } .cv-chip.t-listen { background: #E2E8FB; } .cv-chip.t-read { background: #EEF5D9; } .cv-chip.t-write { background: var(--lv-ede3fb); } .cv-chip.t-exam { background: var(--coral-soft); color: #8A1F25; }
.cv-chip.is-done { opacity: .55; text-decoration: line-through; }
.cv-note { background: #FFF3CF; }
:root[data-theme="dark"] .cv-chip { background: rgba(255, 255, 255, .07); color: var(--text); }
:root[data-theme="dark"] .cv-chip.t-exam { color: #FFB3B6; }
.cv-col.is-open { grid-column: span 3; cursor: default; background: transparent; padding: 0; min-height: 0; }
.cv-day { display: grid; gap: 12px; padding: 20px 22px; border-radius: 26px; background: var(--surface); box-shadow: 0 30px 50px -30px rgba(70, 40, 150, .5); text-align: left; animation: kn-grow .35s var(--spring); }
.cv-dayonly .cv-day { max-width: 640px; }
@keyframes kn-grow { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.cv-day > .cv-col-wd, .cv-day > .cv-col-n { justify-self: center; }
.cv-day h3 { margin: 0; font-size: 1.4rem; text-align: center; }
.cv-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cv-tasks a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 16px; color: var(--text); text-decoration: none; transition: background .15s; min-height: 52px; }
.cv-tasks a:hover { background: var(--surface-2); }
.cv-tasks .is-done .cv-tt { text-decoration: line-through; color: var(--muted); }
.cv-tic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--lilac); }
.cv-tic svg { width: 18px; height: 18px; }
.cv-tic.t-vocab { background: #EAF7C9; } .cv-tic.t-grammar { background: var(--lv-e6dffb); } .cv-tic.t-exam { background: var(--coral-soft); }
.cv-tt { flex: 1; font-weight: 600; }
.cv-go svg { width: 18px; height: 18px; color: var(--muted); }
.cv-sum { margin: 4px 0 0; padding: 12px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); text-align: center; font-weight: 700; }
.btn.cv-start { min-height: 56px; font-size: 16px; }
.cv-exam-line { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--coral-soft); }
.cv-hint { display: flex; align-items: center; gap: 8px; margin: 0; justify-content: center; }
.cv-hint svg { width: 16px; height: 16px; flex: none; }
.cv-quote { margin: 16px 0 0; padding: 18px 22px; border-radius: 22px; background: color-mix(in srgb, var(--lilac) 70%, transparent); font-size: 1.1rem; }
.cv-quote span { font: 800 40px/0 var(--font-serif); color: var(--lav); vertical-align: -14px; margin-right: 8px; }
.cv-month h3 { margin: 0 0 10px; font-size: 1.5rem; }
.cv-mb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cv-mb-d { display: grid; align-content: start; gap: 4px; min-height: 96px; padding: 8px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--lilac) 35%, transparent); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: transform .2s var(--spring), background .15s; }
.cv-mb-d:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--lilac) 75%, transparent); }
.cv-mb-d.is-out { opacity: .45; }
.cv-mb-d.is-studied { background: color-mix(in srgb, var(--lime) 30%, transparent); }
.cv-mb-d.is-today .cv-mb-n { background: var(--lime); color: var(--lime-ink); }
.cv-mb-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.cv-mb-d small { color: var(--muted); font-size: 11px; }
@media (max-width: 899px) {
  .cv { padding: 14px; border-radius: 26px; }
  .cv-switch { margin-left: 0; width: 100%; } .cv-switch button { flex: 1; }
  .cv-nums { width: 100%; justify-content: space-around; }
  .cv-add { width: 100%; }
  .cv-cols { grid-template-columns: 1fr; }
  .cv-col { min-height: 0; grid-template-columns: 44px 1fr; text-align: left; align-items: center; padding: 10px 12px; }
  .cv-col > .cv-col-wd { grid-row: 1; grid-column: 1; }
  .cv-col > .cv-col-n { grid-column: 1; justify-self: start; }
  .cv-col > .cv-chip { grid-column: 2; }
  .cv-col.is-open { grid-column: auto; }
  .cv-mb-d { min-height: 56px; padding: 4px; } .cv-mb-d .cv-chip { display: none; }
}
@media (min-width: 900px) {
  .cv-cols { display: flex; }
  .cv-col { flex: 1 1 0; min-width: 0; }
  .cv-col.is-open { flex: 3.2 1 0; }
}

/* =========================================================
   PROFILE (design 23)
   ========================================================= */
.tabs.pf-tabs { display: flex; gap: 10px; border: 0; margin-bottom: 18px; }
.tabs.pf-tabs .tab, .tabs.pf-tabs .tab[aria-selected="true"] { border: 0; border-radius: 999px; min-height: 52px; padding: 10px 24px; background: color-mix(in srgb, var(--lilac) 70%, var(--surface)); color: var(--text); flex: 0 1 auto; }
.tabs.pf-tabs .tab[aria-selected="true"] { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .tabs.pf-tabs .tab[aria-selected="true"] { background: #fff; color: #141414; }
@media (max-width: 700px) { .tabs.pf-tabs { gap: 6px; } .tabs.pf-tabs .tab, .tabs.pf-tabs .tab[aria-selected="true"] { flex: 1 1 0; padding: 8px 4px; border-radius: 18px; } }
.pf-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1200px) { .pf-grid { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.1fr) minmax(300px, 1fr); } }
@media (min-width: 800px) and (max-width: 1199px) { .pf-grid { grid-template-columns: 1fr 1fr; } .pf-mid { grid-column: 1 / -1; order: 3; } }
.pf-me { display: grid; gap: 18px; padding: 24px; border-radius: 28px; background: var(--ink); color: #fff; }
:root[data-theme="dark"] .pf-me { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.pf-me-top { display: grid; justify-items: center; gap: 12px; text-align: center; }
.pf-me .pf-av { width: 150px; height: 150px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(201, 184, 245, .5); }
.pf-me .pf-who { width: 100%; display: grid; gap: 6px; }
.pf-me .field { color: var(--lv-cfc8e6); text-align: left; }
.pf-me .input { background: #2B2834; color: #fff; border-color: transparent; }
.pf-me .pf-name { font-size: 1.4rem; font-weight: 800; text-align: center; }
.pf-me .pf-email, .pf-me .pf-access, .pf-me .pf-access .muted, .pf-me .pf-pl { color: var(--lv-cfc8e6); margin: 0; }
.pf-me a { color: var(--lime); }
.pf-goal { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: rgba(185, 169, 240, .18); }
.pf-goal .pf-seg button { background: #2B2834; color: #fff; border-color: transparent; }
.pf-goal .pf-seg button[aria-checked="true"] { background: var(--lime); color: var(--lime-ink); }
.pf-av-pick { display: grid; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }
.pf-me .pf-avatars { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pf-me .pf-pick { background: transparent; border: 0; color: var(--lv-cfc8e6); padding: 4px; border-radius: 18px; }
.pf-me .pf-pick img { border-radius: 50%; background: #fff; transition: transform .25s var(--spring), box-shadow .2s; }
.pf-me .pf-pick:hover img { transform: scale(1.08) rotate(-4deg); }
.pf-me .pf-pick[aria-checked="true"] img { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--lv-b9a9f0); }
.pf-me .pf-pick small { display: none; }
.pf-mid .card { border-radius: 28px; }
.pf-right { display: grid; gap: 18px; }
.pf-plan { display: grid; gap: 14px; padding: 22px; border-radius: 28px; background: color-mix(in srgb, var(--lilac) 85%, var(--surface)); }
.pf-plan h2 { margin: 0; font-size: 1.25rem; }
.pf-days { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.pf-days a { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .7); color: var(--text); text-decoration: none; font-weight: 700; font-size: 13.5px; transition: transform .2s var(--spring); }
.pf-days a:hover { transform: scale(1.12); }
.pf-days a.is-done { background: var(--lime); color: var(--lime-ink); }
.pf-days a.is-next { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
:root[data-theme="dark"] .pf-days a { background: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .pf-days a.is-next { box-shadow: inset 0 0 0 2px #fff; }
.btn.pf-open { min-height: 52px; }
.pf-card { border-radius: 26px; }
.pf-mid .rd-body { grid-template-columns: minmax(0, 1fr) !important; }
.pf-mid .rd-wrap { margin-top: 0; }
/* «Мои навыки» everywhere: weak side in coral (design 23) */
.rd-sum b:last-of-type { color: var(--coral); }
/* minhwa avatars are square pictures with a painted circle: always shown round */
img[src*="/avatars/"] { border-radius: 50%; object-fit: cover; }

/* =========================================================
   ABOUT TOPIK (design 17)
   ========================================================= */
.about-toc .chip.pri { background: var(--lilac); color: var(--text); }
.ab-dash { display: grid; gap: 18px; margin: 18px 0 30px; }
.ab-row1, .ab-row3 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .ab-row1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .ab-row3 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.ab-hero { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: 28px; background: var(--ink); color: #fff; }
:root[data-theme="dark"] .ab-hero { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.ab-hero-ic { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #2B2834; }
.ab-hero-ic svg { width: 26px; height: 26px; color: var(--lv-c9b8f5); }
.ab-hero small { color: var(--lv-cfc8e6); }
.ab-hero-t { display: block; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); letter-spacing: -.02em; margin: 2px 0 10px; }
.ab-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.ab-pill svg { width: 18px; height: 18px; }
.ab-hero-reg { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--lv-cfc8e6); font-size: 14px; }
.ab-hero-reg svg { width: 16px; height: 16px; flex: none; }
.ab-line, .ab-struct, .ab-levels, .ab-bring { padding: 22px; border-radius: 28px; background: color-mix(in srgb, var(--lilac) 70%, var(--surface)); }
.ab-line-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ab-line-h b, .ab-h { font-size: 1.25rem; display: block; }
.ab-line-h a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.ab-line-h a svg { width: 16px; height: 16px; }
.ab-line ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; position: relative; }
.ab-line ol::before { content: ""; position: absolute; left: 30px; right: 30px; top: 9px; border-top: 2px solid var(--lv-b9a9f0); }
.ab-line li { display: grid; justify-items: center; gap: 2px; position: relative; padding-bottom: 10px; }
.ab-line li i { width: 20px; height: 20px; border-radius: 50%; background: var(--lv-b9a9f0); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lilac) 70%, var(--surface)); margin-bottom: 8px; }
.ab-line li b { font-size: 1.25rem; }
.ab-line li small { color: var(--muted); }
.ab-line li.is-mine { background: var(--lime); border-radius: 18px; color: var(--lime-ink); }
.ab-line li.is-mine i { background: var(--lime-ink); }
.ab-line li.is-mine small { color: var(--lime-ink); }
.ab-parts { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .ab-parts { grid-template-columns: 1fr 1fr auto 1fr; } }
.ab-part { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: var(--surface); }
.ab-part-ic { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--lav-deep); }
.ab-part-ic svg { width: 24px; height: 24px; }
.ab-part b { display: block; font-size: 1.3rem; }
.ab-part small, .ab-break small { color: var(--muted); }
.ab-break { display: grid; justify-items: center; padding: 12px 18px; border-radius: 18px; background: var(--lv-d9cef7); color: var(--lav-deep); }
:root[data-theme="dark"] .ab-break { background: var(--lv-3a3060); color: var(--lv-e2d9ff); }
.ab-scale { position: relative; height: 84px; margin-top: 10px; }
.ab-mark { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; }
.ab-mark b { padding: 3px 12px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.ab-mark.is-goal b { background: var(--lime); color: var(--lime-ink); }
.ab-mark small { color: var(--muted); font-weight: 600; }
.ab-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-top: 4px; }
.ab-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; display: flex; border-radius: 999px; overflow: hidden; }
.ab-bar i { height: 100%; }
.ab-bar .z0 { width: 40%; background: var(--lv-e2daf9); } .ab-bar .z3 { width: 10%; background: var(--lv-c9b8f5); } .ab-bar .z4 { width: 13.33%; background: var(--lime); } .ab-bar .z5 { width: 13.33%; background: var(--lv-a795e6); } .ab-bar .z6 { width: 23.34%; background: var(--lv-8e7cc3); }
.ab-ends { display: flex; justify-content: space-between; color: var(--muted); margin-top: 6px; }
.ab-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; text-align: center; }
.ab-items span { display: grid; justify-items: center; gap: 6px; }
.ab-items i { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); color: var(--lav-deep); }
.ab-items svg { width: 24px; height: 24px; }
.ab-items small { font-size: 13px; }
.ab-warn { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--coral-soft); color: var(--coral); font-weight: 600; }
.ab-warn > span:first-child { width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.ab-line ol { grid-template-columns: repeat(auto-fill, minmax(76px, 110px)); }
.ab-line ol::before { right: auto; width: calc(100% - 60px); }

/* =========================================================
   LIBRARY (design 18) — drawn covers in the site colours
   ========================================================= */
.lb-wrap { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1200px) { .lb-wrap { grid-template-columns: minmax(0, 1fr) 360px; } .lb-side { position: sticky; top: 84px; } }
.lb-top { max-width: 560px; margin-bottom: 14px; }
.lb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.lb-pills button { border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; background: color-mix(in srgb, var(--lilac) 70%, var(--surface)); color: var(--text); font: 600 14.5px/1 var(--font); cursor: pointer; transition: transform .2s var(--spring); }
.lb-pills button:hover { transform: translateY(-2px); }
.lb-pills button[aria-selected="true"] { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .lb-pills button[aria-selected="true"] { background: #fff; color: #141414; }
.lb-shelf h2 { margin: 26px 0 12px; font-size: 1.4rem; }
.lb-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lb-book { display: flex; gap: 16px; padding: 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .28s var(--spring), box-shadow .25s; }
.lb-book:hover { color: var(--text); transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-hover); }
.lb-cover { position: relative; flex: none; width: 104px; aspect-ratio: 3 / 4; border-radius: 12px 16px 16px 12px; overflow: hidden; padding: 10px; display: block;
  box-shadow: inset 4px 0 0 rgba(0, 0, 0, .12), 0 10px 18px -12px rgba(40, 20, 100, .6); transition: transform .3s var(--spring); }
.lb-book:hover .lb-cover { transform: rotate(-3deg); }
.lb-cover b { position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.2; font-weight: 800; word-break: keep-all; }
.lb-cover i { position: absolute; left: -10%; right: -10%; bottom: -6%; height: 44%; background: currentColor; opacity: .22; clip-path: polygon(0 100%, 0 70%, 25% 35%, 42% 58%, 62% 20%, 82% 52%, 100% 38%, 100% 100%); }
.c-lav { background: linear-gradient(160deg, var(--lv-e6ddfb), var(--lv-c9b8f5)); color: var(--lv-3b2c78); }
.c-ink { background: #141414; color: #E7E0FF; }
.c-lime { background: linear-gradient(160deg, #EEFAB8, #D4F36B); color: #2E3A00; }
.c-lilac { background: linear-gradient(160deg, var(--lv-f4f0fd), var(--lv-dcd3f7)); color: var(--lv-4e3b98); }
.c-deep { background: linear-gradient(160deg, var(--lv-8e7cc3), var(--lv-5e4aa8)); color: #FFFFFF; }
.c-mint { background: linear-gradient(160deg, #E4F1EC, #BFDCCF); color: #1F4A3A; }
.lb-info { display: grid; align-content: start; gap: 4px; min-width: 0; }
.lb-info > b { font-size: 15.5px; line-height: 1.3; margin-top: -10px; }
.lb-info small { color: var(--muted); font-size: 13px; }
.lb-type { justify-self: start; margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.lb-open { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 8px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--spring); }
.lb-open svg { width: 14px; height: 14px; }
.lb-book:hover .lb-open, .lb-book:focus-visible .lb-open { opacity: 1; transform: none; }
@media (hover: none) { .lb-open { opacity: 1; transform: none; } }
.lb-side { display: grid; gap: 16px; }
.lb-start { display: grid; gap: 12px; padding: 22px; border-radius: 28px; background: var(--ink); color: #fff; }
:root[data-theme="dark"] .lb-start { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.lb-start-t { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.lb-start-t svg { width: 22px; height: 22px; }
.lb-start p { margin: 0; color: var(--lv-cfc8e6); }
.lb-start-b { display: flex; gap: 14px; align-items: center; }
.lb-start-b > b { font-size: 1.1rem; line-height: 1.35; }
.lb-recent { padding: 22px; border-radius: 28px; background: color-mix(in srgb, var(--lilac) 80%, var(--surface)); display: grid; gap: 12px; }
.lb-recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lb-recent a { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; padding: 6px; border-radius: 16px; transition: background .15s; }
.lb-recent a:hover { background: rgba(255, 255, 255, .6); }
.lb-recent .lb-cover { width: 56px; padding: 5px; }
.lb-recent .lb-cover b { font-size: 8px; }
.lb-recent b { font-size: 14.5px; }
.lb-recent small { display: block; color: var(--muted); }

/* =========================================================
   VOCAB «Дорожка дня» (design 06 / phone 29)
   ========================================================= */
.vp-bar { margin: 14px 0 4px; padding: 16px 20px; border-radius: 24px; background: color-mix(in srgb, var(--lilac) 60%, var(--surface)); display: grid; gap: 14px; }
.vp-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: flex-start; overflow-x: auto; scrollbar-width: none; }
.vp-steps li { flex: 1 0 84px; display: grid; justify-items: center; gap: 6px; text-align: center; position: relative; font-weight: 600; font-size: 14px; }
.vp-steps li + li::before { content: ""; position: absolute; top: 22px; right: calc(50% + 26px); width: calc(100% - 46px); height: 3px; border-radius: 2px; background: var(--border); }
.vp-steps li.is-done + li::before, .vp-steps li.is-done + li.is-done::before { background: var(--lime); }
.vp-n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-weight: 800; font-size: 17px; box-shadow: 0 0 0 1px var(--border); }
.vp-n svg { width: 20px; height: 20px; stroke-width: 3; }
.vp-steps li.is-done .vp-n { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.vp-steps li.is-cur .vp-n { background: var(--lv-cdbff5); color: var(--lv-1a1430); box-shadow: 0 0 0 3px var(--lav), 0 0 0 8px color-mix(in srgb, var(--lilac) 80%, transparent); }
.vp-l small { color: var(--muted); font-weight: 500; }
.vp-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.vp-acts .btn { min-height: 52px; }
.card.vp-done { text-align: center; justify-items: center; margin-top: 16px; padding: 30px 24px; border-radius: 30px; max-width: 640px; margin-inline: auto;
  background: radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--lilac) 90%, transparent) 0 22%, transparent 48%), var(--surface); }
.vp-mascot { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(212, 243, 107, .5); animation: kn-hop 1.2s var(--spring) both; }
@keyframes kn-hop { 0% { transform: translateY(14px) scale(.8); opacity: 0; } 60% { transform: translateY(-6px) scale(1.04); opacity: 1; } 100% { transform: none; } }
.card.vp-done h2 { font-size: 1.7rem; }
.card.vp-done .vp-steps { width: 100%; margin: 6px 0; }
.btn.vp-go { min-height: 56px; padding: 12px 28px; font-size: 16px; width: min(100%, 460px); }
@media (max-width: 640px) {
  .vp-steps { gap: 2px; }
  .vp-steps li { flex: 1 0 58px; font-size: 12.5px; }
  .vp-steps li + li::before { right: calc(50% + 22px); width: calc(100% - 40px); top: 19px; }
  .vp-n { width: 38px; height: 38px; font-size: 15px; }
  .vp-l small { display: block; }
}
@media (max-width: 1023px) {
  /* the stats pill sits in the corner above the tab bar, not over the buttons */
  .fp-tab { right: 12px; transform: none; padding: 10px 14px; font-size: 13px; }
  .fp-open .fp-tab, .fp.is-open .fp-tab { opacity: 0; }
  .has-tabbar body { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   EXAM MODE (design 22): black header, big lavender timer, calm white paper, soft lavender choice
   ========================================================= */
.xr { background: #FBFAFE; }
:root[data-theme="dark"] .xr { background: var(--bg); }
.xr-head { background: var(--ink); color: #fff; border-bottom: 0; box-shadow: none; padding: 12px 20px 14px; }
:root[data-theme="dark"] .xr-head { background: var(--dk-tile); border-bottom: 1px solid var(--border); }
.xr-top, .xr-timer { max-width: 1180px; }
.xr-title b { color: #fff; }
.xr-title span { color: var(--lv-cfc8e6); }
.xr-head .btn-ghost, .xr-exit { background: var(--lv-d9cef7); color: var(--lv-1a1430); border-color: transparent; }
.xr-head .btn-ghost:hover, .xr-exit:hover { background: var(--lv-e6ddfb); color: var(--lv-1a1430); }
.xr-submit, .xr-head .btn-primary { background: var(--lime) !important; color: var(--lime-ink) !important; }
.xr-time { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.3rem); font-weight: 800; color: var(--lv-c9b8f5); min-width: 92px; letter-spacing: -.02em; }
.xr-bar { height: 12px; background: #2B2834; }
.xr-bar > i { background: linear-gradient(90deg, var(--lv-b9a9f0), var(--lv-c9b8f5)); }
.xr-low .xr-bar > i { background: var(--coral); }
.xr-low .xr-time { color: var(--coral); }
.xr-total { color: var(--lv-cfc8e6); }
.xr-head .icon-btn { color: #fff; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); }
.xr-head .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.xr-body > .xr-group, .xr-group { max-width: 860px; margin-left: auto; margin-right: auto; }
.xr-block { background: var(--surface); border-radius: 24px; padding: 6px 22px 10px; box-shadow: 0 1px 2px rgba(40, 28, 80, .04); }
.xr-num { color: var(--lav-deep); font-size: 1.15rem; }
.xr-opt { border-radius: 14px; background: var(--surface); transition: border-color .15s, background .15s; }
.xr-opt:hover { border-color: var(--lv-c9b8f5); }
.xr-opt[aria-pressed="true"] { border-color: var(--lv-c9b8f5); background: var(--lv-f1ecfd); box-shadow: none; }
.xr-opt[aria-pressed="true"] .xr-circ { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .xr-opt[aria-pressed="true"] { background: var(--lv-2a2540); border-color: var(--lv-6e58b5); }
:root[data-theme="dark"] .xr-opt[aria-pressed="true"] .xr-circ { background: #fff; color: #141414; }
.xr-grid { border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(40, 20, 100, .5); }

/* PRACTICE hub: black tiles like the sections on Home */
.card.practice-card { background: var(--ink); color: #fff; border: 0; border-radius: 28px; padding: 24px; gap: 14px; min-height: 230px; }
.card.practice-card:hover { color: #fff; }
:root[data-theme="dark"] .card.practice-card { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.practice-card .tile-icon { width: 58px; height: 58px; border-radius: 50%; background: #fff !important; color: var(--ink) !important; position: relative; }
.practice-card .tile-icon::after { content: ""; position: absolute; right: -8px; top: 22px; width: 15px; height: 15px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 4px var(--ink); }
.practice-card .tile-icon svg { width: 26px; height: 26px; }
.practice-card h2 { color: #fff; font-size: 1.5rem; }
.practice-card .chip { background: #2B2834; color: #fff; }
.practice-card .chip.ok { background: var(--lime); color: var(--lime-ink); }
.practice-card .practice-note { color: var(--lv-cfc8e6); background: transparent !important; padding: 0; }
.practice-card .bar { background: rgba(255, 255, 255, .14); }
.practice-card .bar > i { background: var(--lime); }
.practice-card .btn-nav { background: var(--lime); color: var(--lime-ink); border: 0; align-self: flex-start; }

/* =========================================================
   VOCAB «Сегодня» — rounds (design 34 + the word table of 33)
   ========================================================= */
.vr-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 14px; }
@media (min-width: 1100px) { .vr-layout { grid-template-columns: minmax(0, 1fr) 340px; } .vr-side { position: sticky; top: 84px; } }
.vr-col { display: grid; gap: 18px; min-width: 0; }
.vr-today { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 22px; align-items: center; padding: 20px 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.vr-today-h b { display: block; font-size: 1.15rem; }
.vr-today-h small { color: var(--muted); }
.vr-bar { position: relative; height: 18px; border-radius: 999px; background: var(--surface-2); margin-right: 96px; }
.vr-fill { position: absolute; left: 0; top: 0; bottom: 0; min-width: 18px; border-radius: 999px; background: var(--lime); transition: width .8s var(--spring); }
.vr-fill em { position: absolute; right: -6px; top: -32px; font-style: normal; font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); }
.vr-flag { position: absolute; right: -96px; top: -4px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--lav-deep); }
.vr-flag svg { width: 20px; height: 20px; }
.vr-rounds { grid-column: 2; list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: 14.5px; }
.vr-rounds li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.vr-rounds i { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.vr-rounds i svg { width: 12px; height: 12px; stroke-width: 3.5; }
.vr-rounds li.is-done { color: var(--text); } .vr-rounds li.is-done i { background: var(--lime); color: var(--lime-ink); }
.vr-rounds li.is-cur { color: var(--text); } .vr-rounds li.is-cur i { background: var(--lav-deep); }
.vr-goal { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.vr-goal span { margin-right: 4px; }
.vr-goal button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); font: 700 14px/1 var(--font); color: var(--text); cursor: pointer; transition: transform .2s var(--spring); }
.vr-goal button:hover:not([disabled]) { transform: scale(1.1); }
.vr-goal button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.vr-goal button[disabled] { opacity: .4; cursor: not-allowed; }
:root[data-theme="dark"] .vr-goal button[aria-checked="true"] { background: #fff; color: #141414; }
.card.vr-main { padding: 26px 28px; border-radius: 28px; display: grid; gap: 14px; }
.vr-main h2 { margin: 0; font-size: 1.8rem; }
.vr-sub { margin: -8px 0 0; }
.vr-steps { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.vr-steps li { display: grid; justify-items: center; gap: 4px; text-align: center; position: relative; }
.vr-steps li + li::before { content: ""; position: absolute; top: 31px; right: calc(50% + 34px); width: calc(100% - 68px); height: 3px; background: var(--border); border-radius: 2px; }
.vr-steps li.is-done + li::before { background: var(--lime); }
.vr-n { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; background: var(--surface-2); margin-bottom: 6px; }
.vr-n svg { width: 26px; height: 26px; stroke-width: 3; }
.vr-steps li.is-done .vr-n { background: var(--lime); color: var(--lime-ink); }
.vr-steps li.is-cur .vr-n { background: var(--ink); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--lilac) 80%, transparent); }
:root[data-theme="dark"] .vr-steps li.is-cur .vr-n { background: #fff; color: #141414; }
.vr-steps b { font-size: 15px; }
.vr-steps small { color: var(--muted); }
.vr-stage { display: grid; justify-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: color-mix(in srgb, var(--lilac) 35%, var(--surface)); }
.btn.vr-start { min-height: 58px; padding: 12px 34px; font-size: 16.5px; width: min(100%, 520px); }
.vr-cards { width: min(100%, 620px); display: grid; gap: 12px; }
.vr-pair { width: min(100%, 760px); display: grid; gap: 14px; justify-items: center; text-align: center; }
.vr-ask { margin: 0; color: var(--lav-deep); font-weight: 600; }
.vr-count { margin: 0; }
.vr-q { display: flex; align-items: center; gap: 20px; }
.vr-q b { font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.2rem); font-weight: 700; }
.vr-q span { font-size: 1.8rem; color: var(--lav-deep); }
.vr-q i { width: 90px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--lilac); color: var(--lav); font-style: normal; font-size: 1.8rem; font-weight: 800; }
.vr-opts { width: 100%; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.vr-opt { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 16px; border-radius: 18px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 600 17px/1.3 var(--font); cursor: pointer; text-align: left; transition: transform .2s var(--spring), border-color .15s, background .15s; }
.vr-opt:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--lav); }
.vr-k { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--lav-deep); font-size: 14px; font-weight: 800; }
.vr-opt.is-right { background: color-mix(in srgb, var(--lime) 45%, var(--surface)); border-color: var(--lime); }
.vr-opt.is-wrong { background: var(--coral-soft); border-color: var(--coral); }
.vr-opt[disabled] { cursor: default; }
.vr-note { margin: 0; padding: 10px 16px; border-radius: 14px; background: var(--surface); font-weight: 600; }
.vr-fail { margin: 0; padding: 14px 18px; border-radius: 16px; background: var(--coral-soft); color: var(--text); }
.vr-finish { justify-items: center; text-align: center; }
.vr-words { padding: 20px 22px; border-radius: 26px; background: color-mix(in srgb, var(--lilac) 60%, var(--surface)); }
.vr-words-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vr-words-h b { display: inline-flex; align-items: center; gap: 8px; color: var(--lav-deep); }
.vr-words-h svg { width: 20px; height: 20px; }
.vr-words-h small { color: var(--muted); }
.vr-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vr-grid li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 14px; background: var(--surface); font-size: 16px; font-weight: 600; flex-wrap: wrap; }
.vr-grid li small { flex-basis: 100%; color: var(--muted); font-size: 12px; font-weight: 500; padding-left: 30px; margin-top: -4px; }
.vr-grid li.is-ok { background: color-mix(in srgb, var(--lime) 35%, var(--surface)); }
.vr-grid li i { width: 22px; height: 22px; border-radius: 50%; background: #3F8A2A; color: #fff; display: grid; place-items: center; flex: none; }
.vr-grid li i svg { width: 13px; height: 13px; stroke-width: 3.5; }
.vr-ring-card { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 22px; border-radius: 28px; background: var(--ink); color: #fff; }
:root[data-theme="dark"] .vr-ring-card { background: var(--dk-tile); box-shadow: 0 0 0 1px var(--border); }
.vr-ring-h { justify-self: stretch; display: flex; align-items: center; gap: 8px; text-align: left; }
.vr-ring-h svg { width: 20px; height: 20px; color: var(--lime); }
.fp-ring.vr-ring { width: 170px; height: 170px; margin: 6px 0; }
.vr-ring b { font-size: 2.4rem; }
.vr-cheer { font-size: 1.5rem; }
.vr-ring-card p { margin: 0; color: var(--lv-cfc8e6); }
.vr-ring-nums { justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.vr-ring-nums span { display: grid; }
.vr-ring-nums b { font-size: 1.4rem; }
.vr-ring-nums small { color: #A8A2BD; }
@media (max-width: 700px) {
  .vr-today { grid-template-columns: 1fr; padding: 16px; }
  .vr-rounds { grid-column: 1; gap: 14px; }
  .vr-bar { margin-right: 80px; margin-top: 26px; }
  .vr-flag { right: -80px; }
  .card.vr-main { padding: 18px 14px; }
  .vr-n { width: 46px; height: 46px; font-size: 1.15rem; }
  .vr-steps li + li::before { top: 22px; right: calc(50% + 26px); width: calc(100% - 52px); }
  .vr-steps b { font-size: 12.5px; } .vr-steps small { font-size: 11px; }
  .vr-stage { padding: 12px; }
  .vr-opts { grid-template-columns: 1fr 1fr; }
  .vr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vr-grid li { font-size: 14px; padding: 8px; }
  .vr-grid li small { display: none; }
}
.toast { border-radius: 999px; background: var(--ink); color: #fff; padding: 12px 22px; }
:root[data-theme="dark"] .toast { background: #fff; color: #141414; }
@media (max-width: 1023px) { .has-tabbar .toast { bottom: calc(108px + env(safe-area-inset-bottom)); } }

/* gender → accent colour (profile / setup) */
.pf-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-gender button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 14px; min-height: 56px; border-radius: 16px; }
.pf-gender b { display: block; font-size: 15px; }
.pf-gender small { display: block; font-size: 12px; opacity: .75; font-weight: 500; }
.pf-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.pf-dot.g-f { background: linear-gradient(135deg, #C9B8F5, #8E7CC3); }
.pf-dot.g-m { background: linear-gradient(135deg, #9DCAFC, #4382CA); }
.pf-goal .pf-gender button { background: #2B2834; color: #fff; border-color: transparent; }
.pf-goal .pf-gender button[aria-checked="true"] { background: var(--lime); color: var(--lime-ink); }

/* =========================================================
   DARK THEME «графит» (design 36, author 2026-11-18): neutral graphite, cards clearly lighter than the page,
   the big black blocks of the light theme become lighter graphite (they no longer melt into the background);
   lavender (or blue) and lime stay as accents. Same for the lavender and the blue accent.
   ========================================================= */
:root { --dk-tile: #303038; }
:root[data-theme="dark"] {
  --bg: #1A1A1F; --surface: #26262D; --surface-2: #303038; --border: #383843; --text: #F2F0F7; --muted: #A5A3B0;
  --frame: #111114; --side: #111114; --ink: #111114; --inv-bg: #303038;
  --lilac: #2E2D38; --primary-soft: #2E2D38;
  --lv-2a2540: #2E2D38; --lv-3a3060: #393845; --lv-2a2450: #303038; --lv-352d5c: #3A3946;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 10px 24px -16px rgba(0, 0, 0, .7);
  --dk-tile: #303038;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1A1F; --surface: #26262D; --surface-2: #303038; --border: #383843; --text: #F2F0F7; --muted: #A5A3B0;
    --frame: #111114; --side: #111114; --ink: #111114; --inv-bg: #303038;
    --lilac: #2E2D38; --primary-soft: #2E2D38;
    --lv-2a2540: #2E2D38; --lv-3a3060: #393845; --lv-2a2450: #303038; --lv-352d5c: #3A3946;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 10px 24px -16px rgba(0, 0, 0, .7);
    --dk-tile: #303038;
  }
}
/* the important blocks one more step lighter, with a hairline, as in the design */
:root[data-theme="dark"] .h9-today, :root[data-theme="dark"] .h9-tile, :root[data-theme="dark"] .card.practice-card, :root[data-theme="dark"] .pe-hero,
:root[data-theme="dark"] .wp-past, :root[data-theme="dark"] .px-real, :root[data-theme="dark"] .card.px-type.is-current, :root[data-theme="dark"] .pf-me,
:root[data-theme="dark"] .ab-hero, :root[data-theme="dark"] .lb-start, :root[data-theme="dark"] .vr-ring-card, :root[data-theme="dark"] .fp-ring-card,
:root[data-theme="dark"] .card.g-folder.is-current, :root[data-theme="dark"] .grid > .card.stat:first-child {
  background: #303038; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
:root[data-theme="dark"] .h9-tile .ic::after, :root[data-theme="dark"] .practice-card .tile-icon::after { box-shadow: 0 0 0 4px #303038; }
:root[data-theme="dark"] .fp-ring, :root[data-theme="dark"] .fp-ring.vr-ring { background: radial-gradient(closest-side, #303038 78%, transparent 79% 100%), conic-gradient(var(--lime) calc(var(--p) * 1%), #44434F 0); }
:root[data-theme="dark"] .h9-proverb { background: linear-gradient(115deg, #26262D 0%, #2B2A34 60%, #33313F 100%); }
:root[data-theme="dark"] .h9-pv-img { opacity: .75; }
:root[data-theme="dark"] .tabbar { background: #26262D; box-shadow: 0 0 0 1px var(--border), 0 14px 30px -12px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .xr-head { background: #111114; }
:root[data-theme="dark"] .cv { --cv-bg: #26262D; }
:root[data-theme="dark"] .content { background: var(--bg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .h9-today, :root:not([data-theme="light"]) .h9-tile, :root:not([data-theme="light"]) .card.practice-card, :root:not([data-theme="light"]) .pe-hero,
  :root:not([data-theme="light"]) .wp-past, :root:not([data-theme="light"]) .px-real, :root:not([data-theme="light"]) .card.px-type.is-current, :root:not([data-theme="light"]) .pf-me,
  :root:not([data-theme="light"]) .ab-hero, :root:not([data-theme="light"]) .lb-start, :root:not([data-theme="light"]) .vr-ring-card, :root:not([data-theme="light"]) .fp-ring-card,
  :root:not([data-theme="light"]) .card.g-folder.is-current, :root:not([data-theme="light"]) .grid > .card.stat:first-child { background: #303038; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
  :root:not([data-theme="light"]) .h9-proverb { background: linear-gradient(115deg, #26262D 0%, #2B2A34 60%, #33313F 100%); }
  :root:not([data-theme="light"]) .tabbar { background: #26262D; box-shadow: 0 0 0 1px var(--border); }
  :root:not([data-theme="light"]) .cv { --cv-bg: #26262D; }
}
:root[data-theme="dark"] .h9-proverb::before { background: radial-gradient(70% 120% at 0% 0%, rgba(185, 169, 240, .08), transparent 60%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h9-proverb::before { background: radial-gradient(70% 120% at 0% 0%, rgba(185, 169, 240, .08), transparent 60%); } }
:root[data-theme="dark"] .cv-tic { color: #141414; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cv-tic { color: #141414; } }
.vr-hint { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--lilac) 70%, var(--surface)); font-size: 14px; }
.vr-hint > span { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 260px; }
.vr-hint svg { width: 18px; height: 18px; color: #E3C14A; flex: none; }
.vr-hint .btn { min-height: 38px; }

/* =========================================================
   PHONE, SIMPLER (designs 37–40, author 2026-11-19): one thing first, the rest a step away
   ========================================================= */
.h9-now, .h9-pv-strip, .h9-dpill { display: none; }
@media (max-width: 700px) {
  /* Home: greeting line with the D-day pill → one big «Сегодня» card → proverb strip → today's tasks → small numbers → sections */
  .h9-hello { margin-bottom: 14px; gap: 12px; }
  .h9-hello .hello-av img { width: 44px; height: 44px; }
  .h9-hello .h9-hi { font-size: 1.45rem; }
  .h9-hello p:not(.h9-hi):not(.h9-dpill) { display: none; }
  .h9-dpill { display: inline-flex; gap: 6px; align-items: center; margin: 4px 0 0 !important; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--lime) 55%, transparent); color: var(--text) !important; font-size: 13.5px; }
  .h9-now { display: grid; justify-items: center; gap: 14px; padding: 20px 20px 22px; border-radius: 30px; background: var(--ink); color: #fff; text-align: center; }
  :root[data-theme="dark"] .h9-now { background: var(--dk-tile); }
  .h9-now-h { justify-self: stretch; display: flex; justify-content: space-between; align-items: flex-start; text-align: left; }
  .h9-now-h b { display: block; font-size: 1.5rem; } .h9-now-h small { color: #CFC8E6; font-size: 14px; }
  .h9-now-cal { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #2B2834; color: #fff; }
  .h9-now-cal svg { width: 20px; height: 20px; }
  .fp-ring.h9-now-ring { width: 150px; height: 150px; }
  .h9-now-ring b { font-size: 1.6rem; }
  .h9-now-next { margin: 0; display: grid; gap: 2px; }
  .h9-now-next small { color: #CFC8E6; } .h9-now-next b { font-size: 1.4rem; line-height: 1.25; }
  .h9-now-go { justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
  .h9-now-go svg { width: 22px; height: 22px; }
  .h9-pv-strip { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: 22px; background: color-mix(in srgb, var(--lilac) 85%, var(--surface)); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
  .h9-pv-strip img { width: 72px; height: 48px; object-fit: cover; object-position: left center; border-radius: 14px; mix-blend-mode: multiply; flex: none; }
  :root[data-theme="dark"] .h9-pv-strip img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg); }
  .h9-pv-strip > span:nth-child(2) { flex: 1; min-width: 0; }
  .h9-pv-strip small { display: block; color: var(--muted); font-size: 13px; }
  .h9-pv-strip b { display: block; font-family: var(--font-serif); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .h9-pv-strip .chev svg { width: 20px; height: 20px; color: var(--muted); }
  .main.home > .h9-proverb, .h9-cal, .h9-skills, .h9-today .h9-chart, .h9-today > div:has(> .h9-chart), .h9-today-foot .h9-pill, .h9-today .h9-day { display: none !important; }
  .h9-side { display: none; }
  .h9-grid { margin-top: 18px; gap: 14px; }
  /* today's tasks as big white rows */
  .h9-today { background: transparent !important; color: var(--text); padding: 0; box-shadow: none !important; }
  .h9-today h2 { color: var(--text); font-size: 1.2rem; }
  .h9-tasks { gap: 10px; }
  .h9-tasks a { background: var(--surface); color: var(--text); border: 1px solid var(--border); min-height: 64px; border-radius: 20px; padding: 12px 16px; }
  .h9-tasks a:hover { background: var(--surface); }
  .h9-tasks .tt small { color: var(--muted); }
  .h9-tasks .ck { border-color: var(--border); }
  .h9-tasks .is-done { background: color-mix(in srgb, var(--lime) 30%, var(--surface)); }
  .h9-tasks .is-done .tt { color: var(--text); text-decoration: none; }
  .h9-today-foot .h9-more { color: var(--primary); padding-left: 4px; }
  .h9-stats .h9-spark { display: none; }
  .h9-stat { padding: 12px; }
}
/* the proverb sheet (opened from the strip) */
.h9-sheet { position: fixed; inset: 0; z-index: 80; }
.h9-sheet-scrim { position: absolute; inset: 0; background: rgba(20, 16, 40, .45); opacity: 0; transition: opacity .25s; }
.h9-sheet-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: var(--surface); transform: translateY(100%); transition: transform .3s var(--ease); }
.h9-sheet.show .h9-sheet-scrim { opacity: 1; } .h9-sheet.show .h9-sheet-box { transform: none; }
.h9-sheet .fp-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 10px; }
.h9-sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.h9-sheet-h b { font-size: 1.2rem; }
.h9-proverb.h9-proverb-sheet { display: grid !important; min-height: 330px; align-content: start; padding: 22px 18px 140px; }
.h9-proverb-sheet > div:first-child { max-width: 100% !important; }
.h9-proverb-sheet .h9-pv-img { top: auto; bottom: 0; height: 60%; width: 100%; opacity: 1; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); object-position: right bottom; }
.btn.h9-sheet-ok { width: 100%; min-height: 56px; margin-top: 14px; }

/* bottom tab bar hides while scrolling down (phone) */
@media (max-width: 1023px) {
  .tabbar { transition: transform .3s var(--ease), opacity .3s; }
  .tb-hide .tabbar { transform: translateY(calc(100% + 24px)); opacity: 0; }
  .tb-hide .fp-tab { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
/* one swipeable row of tabs and less text on phones */
@media (max-width: 700px) {
  .tabs, .main[data-page="writing"] > .tabs, .tabs.pf-tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-bottom: 2px; scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab, .tabs.pf-tabs .tab, .tabs.pf-tabs .tab[aria-selected="true"] { flex: 0 0 auto !important; min-height: 46px; padding: 8px 16px; scroll-snap-align: start; white-space: nowrap; }
  .tabs .tab .tab-ru { display: inline !important; }
  .tabs-label, .page-band-s, .vr-sub, .lead, .wl-head > p.small { display: none !important; }
  .page-band { margin-bottom: 10px; }
  .page-band-t { font-size: 1.7rem !important; }
  .page-band-ic { display: none !important; }
}

/* Лексика: the start button is lime (author 2026-11-19); the words of the round always reachable */
.btn.vr-start { background: var(--lime); color: var(--lime-ink); box-shadow: 0 14px 28px -16px rgba(150, 190, 30, .9); }
.btn.vr-start:hover { background: #DDF784; color: var(--lime-ink); }
.vr-cheer-card .vr-ring-light { background: radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%), conic-gradient(var(--lime) calc(var(--p) * 1%), var(--surface-2) 0); }
.vr-cheer-card .vr-ring-light b { color: var(--text); }
details.vr-words > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 0; }
details.vr-words > summary::-webkit-details-marker { display: none; }
details.vr-words[open] > summary { margin-bottom: 12px; }
details.vr-words > summary b { display: inline-flex; align-items: center; gap: 8px; color: var(--lav-deep); }
details.vr-words > summary b svg { width: 20px; height: 20px; }
.vr-peek { flex: 1; min-width: 0; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.vr-words[open] .vr-peek { visibility: hidden; }
details.vr-words > summary small { color: var(--muted); }
details.vr-words > summary::after { content: "›"; font-size: 22px; color: var(--muted); transition: transform .2s; }
details.vr-words[open] > summary::after { transform: rotate(90deg); }
.vr-full-h { display: none; }
@media (max-width: 700px) {
  .vr-side { display: none; }
  .vr-today { gap: 8px; }
  .vr-hint > span { display: none; }
  .vr-goal { overflow-x: auto; flex-wrap: nowrap; }
  .vr-goal span { white-space: nowrap; }
  .vr-steps { margin: 4px 0; }
  .vr-steps small { display: none; }
  /* the open step takes the whole screen: ✕, its name, the task — nothing else */
  .vr-full { position: fixed; inset: 0; z-index: 70; overflow-y: auto; background: var(--bg); padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); display: grid; align-content: start; justify-items: center; gap: 14px; }
  .vr-full-h { display: flex; justify-self: stretch; align-items: center; justify-content: space-between; gap: 10px; }
  .vr-full-h b { font-size: 16px; }
  .vr-full-h span { width: 44px; }
  .vr-focus .tabbar, .vr-focus .fp-tab, .vr-focus .topbar { display: none !important; }
  .vr-full .vr-opts { grid-template-columns: 1fr; }
  .vr-full .vr-opt { min-height: 64px; justify-content: center; font-size: 19px; }
  .vr-full .vr-k { display: none; }
  .vr-full .vr-q b { font-size: 3.2rem; }
  .vr-full .btn-primary { width: 100%; min-height: 58px; position: sticky; bottom: 0; }
  .vr-grid li small { display: none; }
}
@media (max-width: 700px) {
  /* Тренировка: types as a list of rows (design 39) */
  .px-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .card.px-type { grid-template-columns: 74px minmax(0, 1fr) auto; grid-template-areas: "n ko go" "n ru go" "n pr pr"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 14px 16px; min-height: 0; }
  .px-range { grid-area: n; font-size: 1.6rem; margin: 0; }
  .px-ko { grid-area: ko; font-size: 1rem; } .px-ru { grid-area: ru; font-size: 13px; }
  .px-prog { grid-area: pr; padding-top: 6px; }
  .px-state { display: none; }
  .px-go { grid-area: go; margin: 0; padding: 8px 14px; font-size: 14px; }
  .px-go svg { display: none; }
  .px-side { display: none; }
  /* inside a type: no section header, no row of all types — only the way back, the tabs and the task */
  .main[data-page="listening"] .page-band, .main[data-page="reading"] .page-band, .main[data-page="drill"] .page-band, .main[data-page="writing"] .page-band { display: none; }
  .main[data-page="listening"] > .back-link, .main[data-page="reading"] > .back-link { display: none; }
  .px-seg { padding: 0; background: transparent; border: 0; box-shadow: none; }
  .px-seg .seg, .px-seg .px-mock { display: none; }
  .px-seg .px-back { min-height: 44px; }
  .px-top .btn.px-mock { min-height: 50px; }
  /* the check / next buttons stay at the bottom under the thumb */
  .drill-actions { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; padding: 10px; margin: 0 -10px; border-radius: 22px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); }
  .drill-actions .btn { flex: 1; min-height: 56px; }
  .drill-head .drill-session { display: none; }
  .card.drill-card { padding: 18px 14px; }
}
@media (max-width: 1023px) {
  .card.px-actions { bottom: calc(104px + env(safe-area-inset-bottom)) !important; border-radius: 24px; transition: bottom .3s var(--ease); }
  .tb-hide .card.px-actions { bottom: calc(12px + env(safe-area-inset-bottom)) !important; }
  .card.px-actions .btn-primary { flex: 1; min-height: 54px; background: var(--lime); color: var(--lime-ink); }
}
@media (max-width: 1023px) {
  .drill-actions { bottom: calc(104px + env(safe-area-inset-bottom)) !important; transition: bottom .3s var(--ease); }
  .tb-hide .drill-actions { bottom: calc(12px + env(safe-area-inset-bottom)) !important; }
}

/* profile rows (design 40) */
details.pf-row > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; color: #CFC8E6; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
details.pf-row > summary::-webkit-details-marker { display: none; }
details.pf-row > summary svg { width: 18px; height: 18px; }
details.pf-row > summary::after { content: "›"; margin-left: auto; font-size: 20px; transition: transform .2s; }
details.pf-row[open] > summary::after { transform: rotate(90deg); }
@media (max-width: 700px) {
  .pf-me { padding: 18px; gap: 10px; border-radius: 26px; }
  .pf-me-top { grid-template-columns: 76px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
  .pf-me .pf-av { width: 76px; height: 76px; }
  .pf-me .pf-name { text-align: left; font-size: 1.2rem; }
  .pf-me .pf-who .field { font-size: 0; gap: 0; }
  .pf-me .pf-access { font-size: 13px; }
  details.pf-row { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; }
  details.pf-row > summary { color: #fff; font-size: 16px; min-height: 40px; margin: 0; }
  details.pf-row[open] > summary { margin-bottom: 10px; }
  .pf-mid, .pf-plan { display: none !important; }
  .pf-card { border-radius: 22px; }
}
/* calendar on phones: the week as one strip, the chosen day as a list; the month from «Месяц» (design 40) */
.cv-strip { display: none; }
@media (max-width: 700px) {
  .cv-side, .cv-title, .cv-quote, .cv-hint { display: none !important; }
  .cv { padding: 12px; gap: 12px; }
  .cv-head { gap: 10px; }
  .cv-nums b { font-size: 1.3rem; }
  .cv-main { padding: 14px; border-radius: 24px; }
  .cv-week-h h3 { font-size: 1.2rem; }
  .cv-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; text-align: center; }
  .cv-strip button { display: grid; gap: 2px; justify-items: center; padding: 6px 0; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; border-radius: 14px; }
  .cv-strip small { font-size: 12px; color: var(--muted); font-weight: 600; }
  .cv-strip b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
  .cv-strip button.is-today b { background: var(--lime); color: var(--lime-ink); }
  .cv-strip button.is-sel b { box-shadow: 0 0 0 2px var(--ink); }
  :root[data-theme="dark"] .cv-strip button.is-sel b { box-shadow: 0 0 0 2px #fff; }
  .cv-strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--lav); }
  .cv-strip i.none { background: transparent; }
  .cv-cols > .cv-col:not(.is-open) { display: none; }
  .cv-col.is-open { grid-column: auto; }
  .cv-day { box-shadow: none; padding: 4px 0 0; background: transparent; }
  .cv-day > .cv-col-wd, .cv-day > .cv-col-n { display: none; }
  .cv-day h3 { text-align: left; font-size: 1.25rem; }
  .cv-tasks a { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px; }
}
.vr-goal-sel { display: none; }
@media (max-width: 700px) {
  .vr-rounds, .vr-goal, .vr-hint { display: none !important; }
  .vr-goal-sel { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
  .vr-goal-sel select { width: auto; min-height: 44px; border-radius: 999px; padding: 6px 14px; font-weight: 700; color: var(--text); }
  .vr-today-h small { display: none; }
  .vr-today { padding: 14px 16px; }
}
@media (max-width: 700px) {
  .vr-full { justify-items: stretch; }
  .vr-full > .vr-cards, .vr-full > .vr-pair { width: 100%; justify-self: stretch; }
  .vr-full .flash-wrap, .vr-full .flash { width: 100%; }
  .vr-full .flash { min-height: 52vh; }
  .vr-full .rate { position: sticky; bottom: 0; }
}
@media (max-width: 700px) {
  .tabs, .tabs.tabs-top, .tabs.tabs-sub, .tabs.pf-tabs, .main.has-band .tabs { overflow-x: auto !important; max-width: 100%; min-width: 0; }
  .pf-gender { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pf-gender button { min-width: 0; padding: 8px 10px; }
  .pf-gender small { display: none; }
}
@media (max-width: 899px) { .cv-col.is-open { display: block; padding: 0; background: transparent; } }
details.pf-row > summary { display: flex !important; }
details.pf-row > summary > span { flex: 1; }
@media (max-width: 700px) { .tabs .tab-ru { margin-left: 4px; } .tabs.pf-tabs .tab-ru { display: inline !important; } }
@media (max-width: 899px) { .cv-cols, .cv-cols:has(.is-open) { grid-template-columns: minmax(0, 1fr); } }
details.pf-row { display: block; } details.pf-row > summary { width: 100%; }
/* Tabs: Russian name first, the Korean one small after it (2026-11-24, for beginners) */
.tab .tab-main { font-weight: inherit; }
.tab .tab-ru.tab-ko { font-size: .78em; font-weight: 500; opacity: .6; margin-left: 5px; }
.tab[aria-selected="true"] .tab-ru.tab-ko { opacity: .75; }
@media (max-width: 700px) { .tabs .tab .tab-ru.tab-ko { margin-left: 4px; } }
/* «Сегодня» on Home: the day's tasks under «Продолжить» (2026-11-24) */
.h9-now-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.h9-now-list a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.h9-now-list a:hover { background: rgba(47, 107, 255, .06); }
.h9-now-list i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 1.5px currentColor; }
.h9-now-list i svg { width: 15px; height: 15px; }
.h9-now-list .is-done a { color: var(--muted); font-weight: 500; }
.h9-now-list .is-done i { color: #fff; background: #22a06b; box-shadow: none; }
.h9-now-list .is-cur i { color: var(--primary); }
.h9-now-list .is-cur a { color: var(--primary); }
/* «Сегодня» in Лексика: the level chips over the round (2026-11-24) */
.vr-lv { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.vr-lv .lv-chips { margin: 0; }
/* «Доступ»: the currency bar over the tariffs — noticeable, one list for all currencies (2026-11-24) */
.pay-cur-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--primary); cursor: pointer; }
.pay-cur-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft, rgba(47, 107, 255, .1)); }
.pay-cur-ic svg { width: 20px; height: 20px; }
.pay-cur-l { font-weight: 700; font-size: 16px; color: var(--text); }
.pay-cur-bar .pay-cur-sel { flex: 1; min-width: 0; min-height: 46px; font-size: 16px; font-weight: 700; border-radius: 999px !important; margin: 0; }

/* 2026-11-26: «5 выучено · 10 изучаю» under the «Лексика» tile on Home */
.ap-tile .ap-tile-sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; line-height: 1.3; margin-top: -10px; }

/* 2026-11-26: 51 / 52 lessons — exercises with a check, the cards of the lesson words, the video above the practice */
.wl-q-list { margin: 0; padding-left: 22px; display: grid; gap: 14px; }
.wl-q { display: grid; gap: 6px; }
.wl-q-t { margin: 0; line-height: 1.6; }
.wl-q-t u { text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wl-q-gap { color: var(--primary); font-weight: 700; white-space: nowrap; }
.wl-q .input { max-width: 360px; }
.wl-q-res { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 14px; }
.wl-q-res svg { width: 16px; height: 16px; flex: none; }
.wl-q.is-ok .input { border-color: #22a06b; }
.wl-q.is-ok .wl-q-res { color: #22a06b; }
.wl-q.is-bad .input { border-color: var(--danger, #e5484d); }
.wl-q.is-bad .wl-q-res { color: var(--danger, #e5484d); }
.wl-q-sum { margin: 0; font-weight: 700; }
.wl-deck-pick { flex-wrap: wrap; }
.wl-video { max-width: 760px; }
.wl-deck-pick button { flex: 0 1 auto; padding: 0 14px; }
.wl-q-list { list-style: decimal; } .wl-q-list > li { display: list-item; } .wl-q-list > li > * + * { margin-top: 6px; } .wl-q::marker { color: var(--muted); font-weight: 600; }

/* 2026-11-29: reset of 쓰기 points — «Решённые задания» in the drill, buttons over the past tasks */
.drill-solved { margin-top: 16px; }
.drill-solved[hidden], .wb-resets[hidden] { display: none; }
.drill-solved summary { cursor: pointer; }
.drill-solved-l { list-style: none; margin: 12px 0; padding: 0; }
.drill-solved-l li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.drill-solved-t { flex: 1 1 auto; min-width: 0; }
.drill-solved-b { display: flex; gap: 6px; flex: none; }
.drill-solved .chip { flex: none; }
@media (max-width: 700px) { .drill-solved-l li { flex-wrap: wrap; } .drill-solved-t { flex: 1 1 60%; } .drill-solved-b { flex: 1 1 100%; } .drill-solved-b .btn { flex: 1; min-height: 44px; } }
.wb-resets { gap: 8px; }
.wp-reset-all { margin-top: 12px; }

/* 2026-11-30: phones — every tab is visible (they wrap, nothing hides past the edge); the stat cards keep off the text above; 320 px «Доступ» */
@media (max-width: 700px) {
  .tabs, .tabs.tabs-top, .tabs.tabs-sub, .tabs.pf-tabs, .main[data-page="writing"] > .tabs, .main.has-band .tabs { flex-wrap: wrap !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .tabs .tab, .tabs.pf-tabs .tab, .tabs.pf-tabs .tab[aria-selected="true"] { flex: 1 0 auto !important; padding: 8px 10px; max-width: 100%; }
  .main[data-page="writing"] > .tabs .tab { padding: 8px 12px; }
  .tabs .wt-badge { right: -6px; }
}
.progress-more > .small + .stats4 { margin-top: 28px !important; }
@media (max-width: 360px) { .access-plans, .plan-grid, .plans { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 360px) { .access-plans .plan-term, .pay-plan .plan-term { flex-wrap: wrap; } .access-plans > *, .pay-plans > *, .pay-plan { min-width: 0; overflow-wrap: anywhere; } }
@media (max-width: 700px) { .main[data-page="writing"] > .tabs .wt-badge { position: static; justify-self: center; order: 3; font-size: 10px; padding: 0 7px; } }
