/* Ханз — хятад хэл сурах апп */
@font-face { font-family: 'HanzCJK'; src: url('../fonts/NotoSansSC-hanz.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../fonts/Rubik.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #FFFFFF; --side: #FAFAFC; --surf: #F3F3F8; --card: #FFFFFF; --text: #16161D; --muted: #62627A;
  --line: #E6E6EE; --pri: #D41C3A; --pri-text: #D41C3A; --pri-dark: #B3142E; --active-bg: #FDE8EC; --on-pri: #FFFFFF;
  --good: #0B8A6D; --good-bg: #E1F4EE; --bad: #C8102E; --bad-bg: #FDE8EC; --ring: #E4E4EC; --shadow: 0 6px 24px rgba(22,22,29,.08);
  --gl: #C01834;
  --violet: #6D4AFF; --teal: #0E9F7E; --orange: #FF7A1A; --blue: #1E7BFF; --pink: #E4388F;
  --radius: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E0E13; --side: #131319; --surf: #1B1B24; --card: #22222C; --text: #F4F4F8; --muted: #A6A6B8;
  --line: #2C2C38; --pri: #E0203F; --pri-text: #FF6B81; --pri-dark: #C01834; --active-bg: #3A1620;
  --good: #34C79F; --good-bg: #123A30; --bad: #FF6B81; --bad-bg: #3A1620; --ring: #2E2E3A; --shadow: 0 6px 24px rgba(0,0,0,.35);
  --gl: #FF8A9B;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Nunito', system-ui, sans-serif; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--pri-text); }
h1, h2, h3 { font-family: 'Rubik', 'Nunito', sans-serif; margin: 0; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
.hz { font-family: 'HanzCJK', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.py { font-family: 'HanzCJK', 'Nunito', sans-serif; }
.gl { color: var(--gl); font-weight: 700; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- layout ---------- */
.app { min-height: 100%; display: flex; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding: calc(16px + var(--safe-t)) 18px calc(104px + var(--safe-b)); }
.page { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; animation: fade .18s ease; }
.page.narrow { max-width: 620px; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; height: calc(72px + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--bg); border-top: 1px solid var(--line); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; padding: 6px 0; min-height: 48px; justify-content: center; background: none; border: 0; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--pri-text); font-weight: 800; }
.tab-fab { flex: 1; display: flex; justify-content: center; }
.fab { width: 58px; height: 58px; margin-top: -28px; border-radius: 50%; border: 4px solid var(--bg); background: var(--pri); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.fab svg { width: 24px; height: 24px; }
.hide-nav .tabbar { display: none; }
.hide-nav .main { padding-bottom: calc(24px + var(--safe-b)); }

@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; gap: 26px; width: 248px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; padding: 28px 18px; background: var(--side); border-right: 1px solid var(--line); }
  .tabbar { display: none; }
  .main { padding: 28px 36px 40px; }
  .hide-nav .side { display: none; }
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; color: var(--text); }
.logo { width: 44px; height: 44px; border-radius: 14px; background: var(--pri); color: #fff; display: grid; place-items: center; font-family: 'HanzCJK', sans-serif; font-weight: 900; font-size: 24px; flex-shrink: 0; }
.brand b { font-family: 'Rubik', sans-serif; font-size: 20px; font-weight: 800; display: block; }
.brand small { font-size: 12px; font-weight: 700; color: var(--muted); }
.snav { display: flex; flex-direction: column; gap: 4px; }
.snav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px; color: var(--text); font-weight: 700; text-decoration: none; }
.snav a svg { width: 22px; height: 22px; }
.snav a.on { background: var(--active-bg); color: var(--pri-text); font-weight: 800; }
.snav a:hover:not(.on) { background: var(--surf); }
.snav .badge { margin-left: auto; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

/* ---------- generic ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.card { background: var(--surf); border-radius: var(--radius); padding: 16px; }
.card.line { background: var(--card); border: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 16px; border: 0; font-weight: 800; font-size: 16px; text-decoration: none; background: var(--surf); color: var(--text); }
.btn.pri { background: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--pri-dark); }
.btn.good { background: var(--good); color: #fff; }
.btn.dark { background: var(--text); color: var(--bg); }
.btn.ghost { background: transparent; border: 2px solid var(--line); }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surf); display: grid; place-items: center; color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.plain { border: 0; background: transparent; }
.audio { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--pri); color: #fff; display: grid; place-items: center; }
.audio.soft { background: transparent; color: var(--pri-text); border: 2px solid currentColor; }
.audio svg { width: 20px; height: 20px; }
.badge { padding: 2px 8px; border-radius: 10px; background: var(--pri); color: #fff; font-size: 12px; font-weight: 800; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 800; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 10px; background: var(--surf); font-size: 12px; font-weight: 800; color: var(--muted); }
.lv { display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 800; background: var(--active-bg); color: var(--pri-text); }
.lv.l2 { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
:root[data-theme="dark"] .lv.l2 { color: #A996FF; }
.bar { height: 8px; border-radius: 4px; background: var(--ring); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--pri); }
.bar.good > i { background: var(--good); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-h a { font-size: 14px; font-weight: 800; text-decoration: none; }
.back { display: flex; align-items: center; gap: 6px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .hz { font-size: 64px; color: var(--text); opacity: .2; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .search input, .select { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 16px; font-size: 16px; font-weight: 600; outline: none; }
.field input:focus { border-color: var(--pri-text); }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 25px; background: var(--surf); border: 1px solid var(--line); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; height: 100%; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.err { color: var(--bad); font-weight: 700; font-size: 14px; min-height: 20px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 50; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow); animation: fade .2s ease; }
.avatar { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 19px; flex-shrink: 0; text-decoration: none; }
.avatar.sm { width: 36px; height: 36px; font-size: 15px; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }

/* ---------- home ---------- */
.hello h1 { font-size: 22px; }
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 20px; background: var(--pri); color: #fff; min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hero .wm { position: absolute; right: -10px; bottom: -44px; font-size: 180px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.15); pointer-events: none; }
.hero .k { font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hero h2 { font-size: 24px; font-weight: 800; }
.hero .sub { font-weight: 700; font-size: 14px; }
.hero .bar { background: rgba(255,255,255,.3); flex: 1; }
.hero .bar > i { background: #fff; }
.hero .go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 22px; background: #fff; color: #B3142E; font-weight: 800; text-decoration: none; border: 0; }
.hero-grid { display: grid; gap: 16px; }
.goal { display: flex; align-items: center; gap: 16px; }
.goal svg { width: 96px; height: 96px; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surf); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.stat svg { width: 22px; height: 22px; }
.stat b { font-family: 'Rubik', sans-serif; font-size: 21px; font-weight: 800; }
.stat span { font-size: 12px; font-weight: 700; color: var(--muted); }
.circles { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.circles::-webkit-scrollbar { display: none; }
.circ { width: 70px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; }
.circ .dot { width: 60px; height: 60px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 27px; font-weight: 900; position: relative; }
.circ .dot.done::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center/12px no-repeat; border: 2px solid var(--bg); }
.review-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); }
.stack { display: flex; flex-shrink: 0; }
.stack span { width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 2px solid var(--bg); display: grid; place-items: center; font-size: 17px; font-weight: 700; margin-left: -10px; }
.stack span:first-child { margin-left: 0; }
.bundles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bundle { position: relative; overflow: hidden; min-height: 118px; border-radius: 20px; padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.bundle .wm { position: absolute; right: -6px; bottom: -24px; font-size: 100px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.18); }
.bundle .pill { position: relative; align-self: flex-start; padding: 3px 9px; border-radius: 10px; background: #fff; font-size: 12px; font-weight: 800; }
.bundle b { position: relative; font-family: 'Rubik', sans-serif; font-size: 20px; font-weight: 800; line-height: 1.1; }
.bundle .bar { position: relative; background: rgba(255,255,255,.3); }
.bundle .bar > i { background: #fff; }
.vs { display: flex; align-items: center; gap: 12px; }
.vs .who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.week { display: flex; justify-content: space-between; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.week i { width: 32px; height: 32px; border-radius: 50%; background: var(--ring); display: grid; place-items: center; }
.week i.on { background: var(--orange); }
.week i.today { background: transparent; border: 3px solid var(--orange); }
.week i.today.on { background: var(--orange); border: 0; }
.week i svg { width: 15px; height: 15px; }
  .home-bottom { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 2fr 1fr; }
  .hero { min-height: 210px; padding: 28px; }
  .hero h2 { font-size: 30px; }
  .hero .wm { font-size: 250px; bottom: -64px; right: 20px; }
  .bundles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundle { min-height: 150px; padding: 18px; }
  .circles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); overflow: visible; }
  .circ { width: auto; }
  .home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
}

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.cat:hover { border-color: var(--muted); }
.cat .ic { width: 46px; height: 46px; border-radius: 14px; color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.cat b { font-size: 15px; font-weight: 800; line-height: 1.2; min-height: 36px; }
.cat small { font-size: 12px; font-weight: 800; color: var(--muted); }

/* ---------- word list ---------- */
.wlist { display: flex; flex-direction: column; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.witem { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.witem:last-child { border-bottom: 0; }
.witem:hover { background: var(--surf); }
.witem .hz { min-width: 64px; flex-shrink: 0; font-size: 24px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.witem .t1 { font-size: 14px; font-weight: 700; }
.witem .t2 { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.witem .st { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--ring); }
.witem .st.s1 { background: var(--orange); }
.witem .st.s2 { background: var(--good); }
.sticky-cta { position: sticky; bottom: calc(84px + var(--safe-b)); z-index: 5; display: flex; gap: 10px; }
@media (min-width: 900px) { .sticky-cta { bottom: 16px; } }

/* ---------- word card ---------- */
.wcard { border-radius: 26px; background: var(--card); border: 1px solid var(--line); padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.wcard .big { font-size: 88px; font-weight: 700; line-height: 1.15; }
.wcard .pyl { font-size: 24px; font-weight: 700; }
.wcard .gll { font-size: 18px; }
.wcard .mn { font-family: 'Rubik', sans-serif; font-size: 24px; font-weight: 800; color: var(--pri-text); }
.ex { border-radius: 20px; background: var(--surf); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.ex .zh { font-size: 21px; font-weight: 700; }
.ex .p1 { font-size: 14px; font-weight: 700; color: var(--muted); }
.ex .p2 { font-size: 14px; }
.ex .m { font-weight: 700; font-size: 15px; margin-top: 2px; }
.note { border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--blue) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--bg)); font-size: 14px; font-weight: 600; }
.k-lbl { font-size: 11px; font-weight: 800; letter-spacing: .07em; color: var(--muted); }

/* ---------- lesson / quiz ---------- */
.qtop { display: flex; align-items: center; gap: 12px; }
.qtop .bar { flex: 1; height: 12px; border-radius: 6px; }
.qtop .bar > i { background: var(--good); transition: width .3s ease; }
.prompt { font-family: 'Rubik', sans-serif; font-size: 22px; font-weight: 700; }
.qcard { border-radius: 24px; background: var(--card); border: 1px solid var(--line); padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.qcard .big { font-size: 64px; font-weight: 700; line-height: 1.15; }
.qcard .mnq { font-family: 'Rubik', sans-serif; font-size: 26px; font-weight: 800; }
.opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt { min-height: 60px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); padding: 10px 14px; font-size: 17px; font-weight: 700; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.opt.hzopt { font-size: 28px; font-family: 'HanzCJK', sans-serif; }
.opt:hover:not(:disabled) { border-color: var(--muted); }
.opt.right { border-color: var(--good); background: var(--good-bg); color: var(--good); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.opt:disabled { cursor: default; }
.feedback { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 18px 20px calc(20px + var(--safe-b)); border-top: 2px solid; display: flex; flex-direction: column; gap: 12px; animation: up .2s ease; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.feedback.ok { background: var(--good-bg); border-color: var(--good); }
.feedback.no { background: var(--bad-bg); border-color: var(--bad); }
.feedback .fb-in { max-width: 620px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.feedback h3 { font-size: 19px; }
.feedback.ok h3 { color: var(--good); }
.feedback.no h3 { color: var(--bad); }
.done-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0; }
.done-hero .hz { font-size: 90px; color: var(--pri-text); line-height: 1.1; }
.xp-big { font-family: 'Rubik', sans-serif; font-size: 40px; font-weight: 800; color: var(--orange); }

/* ---------- review ---------- */
.flash { border-radius: 26px; background: var(--card); border: 1px solid var(--line); min-height: 320px; display: flex; flex-direction: column; overflow: hidden; }
.flash .front { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.flash .front .big { font-size: 84px; font-weight: 700; line-height: 1.15; }
.flash .back { border-top: 1px dashed var(--line); background: var(--surf); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.grades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grade { min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 800; font-size: 15px; }
.grade small { font-size: 12px; color: var(--muted); font-weight: 700; }
.grade.g1 { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-bg); color: var(--bad); }
.grade.g3 { border-color: var(--good); background: var(--good-bg); color: var(--good); }

/* ---------- rank ---------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-top: 8px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; max-width: 170px; }
.pod .blk { width: 100%; border-radius: 18px 18px 8px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding: 12px 6px; gap: 2px; }
.pod .blk b { font-family: 'Rubik', sans-serif; font-size: 26px; font-weight: 800; }
.pod .blk span { font-size: 12px; font-weight: 800; }
.pod .nm { font-weight: 800; }
.crown { width: 30px; height: 30px; color: #FFB800; }
.rtable { display: flex; flex-direction: column; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.rrow { display: grid; grid-template-columns: 28px 1fr repeat(3, 64px); align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.rrow:last-child { border-bottom: 0; }
.rrow.me { background: var(--active-bg); }
.rrow.head { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .05em; padding-top: 10px; padding-bottom: 10px; }
.rrow .n { text-align: right; font-family: 'Rubik', sans-serif; font-weight: 800; }
@media (max-width: 420px) { .rrow { grid-template-columns: 22px 1fr repeat(3, 52px); gap: 6px; padding: 12px 10px; } }

/* ---------- welcome ---------- */
.welcome { max-width: 440px; margin: 0 auto; padding-top: 20px; display: flex; flex-direction: column; gap: 22px; }
.welcome .logo { width: 72px; height: 72px; font-size: 40px; border-radius: 22px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surf); }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg button { min-height: 42px; border-radius: 10px; border: 0; background: transparent; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.seg button svg { width: 16px; height: 16px; }
.plist { display: flex; flex-direction: column; gap: 8px; }
.pbtn { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-align: left; font-weight: 800; }
.pbtn:hover { border-color: var(--muted); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; }
.colors button.on { border-color: var(--text); }
.settings { display: flex; flex-direction: column; gap: 10px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surf); }
.set-row > div:first-child { flex: 1; min-width: 0; }
.set-row b { display: block; font-weight: 800; }
.set-row small { color: var(--muted); font-weight: 600; }
