/* Grammar practice (/practice/) v2 */
.practice-page { --lv: #1fa99a; --lv-bg: #e6f6f4; --lv-ink: #137a6f; background: var(--paper); }
.practice-page.lv-b1, .lv-b1 { --lv: #2a6fdb; --lv-bg: #eaf2fb; --lv-ink: #1f4f96; }
.practice-page.lv-b2, .lv-b2 { --lv: #c93f73; --lv-bg: #fdeef3; --lv-ink: #a8305d; }
.practice-page.lv-c1, .lv-c1 { --lv: #6a4fc8; --lv-bg: #f1ecfb; --lv-ink: #5a3fb0; }
.lv-a2 { --lv: #1fa99a; --lv-bg: #e6f6f4; --lv-ink: #137a6f; }
.lvl { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--lv-bg); color: var(--lv-ink); }
.btn .i { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- hero ---------- */
.px-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 0%, var(--lv-bg), transparent 60%), linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.px-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; padding: 34px 0 44px; }
.px-hero .crumbs { margin-bottom: 18px; }
.px-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.02; margin: 14px 0 14px; letter-spacing: -.02em; }
.px-hero h1 em { color: var(--rose); }
.px-hero .lede { font-size: 19px; max-width: 54ch; margin: 0; }
.px-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.px-meta li { display: inline-flex; align-items: center; gap: 8px; }
.px-meta .i { width: 18px; height: 18px; color: var(--lv); }
.px-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.px-best { display: grid; gap: 6px; margin-top: 20px; max-width: 420px; font-size: 13.5px; font-weight: 600; color: var(--lv-ink); }
.px-best .bar, .px-progress .bar, .ex-bar, .tc-bar { display: block; height: 6px; border-radius: 99px; background: rgba(20, 34, 74, .08); overflow: hidden; }
.px-best .bar i, .px-progress .bar i, .ex-bar i, .tc-bar i { display: block; height: 100%; width: 0; background: var(--lv); border-radius: 99px; transition: width .35s ease; }
.px-photo { position: relative; margin: 0; justify-self: end; width: min(100%, 440px); }
.px-photo > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px rgba(20, 34, 74, .18); display: block; }
.px-photo::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border-radius: 32px; background: var(--lv-bg); z-index: -1; }
.px-photo figcaption { position: absolute; left: -26px; bottom: 26px; display: flex; gap: 10px; align-items: center; background: #fff; padding: 10px 16px 10px 10px; border-radius: 16px; box-shadow: 0 12px 30px rgba(20, 34, 74, .16); }
.px-photo figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.px-photo figcaption b { display: block; font-size: 14px; color: var(--navy); }
.px-photo figcaption small { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .px-hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 22px; }
  .px-photo { justify-self: center; width: min(78%, 340px); }
  .px-photo figcaption { left: 50%; transform: translateX(-50%); bottom: -18px; white-space: nowrap; }
}

/* ---------- sticky tabs + progress ---------- */
.px-tabs-wrap { position: sticky; top: 76px; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .px-tabs-wrap { top: 66px; } }
.px-tabs { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; }
.tabset { display: flex; gap: 6px; }
.tabset a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.tabset a .i { width: 18px; height: 18px; }
.tabset a:hover { color: var(--navy); background: var(--paper); }
.tabset a.on { background: var(--navy); color: #fff; }
.tabset .cnt { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--lv-bg); color: var(--lv-ink); }
.tabset a.on .cnt { background: rgba(255, 255, 255, .18); color: #fff; }
.px-progress { display: grid; gap: 5px; width: 220px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
body:not(.on-exercises) .px-progress { visibility: hidden; }
@media (max-width: 640px) { .px-progress { width: 110px; font-size: 11px; } .tabset a { padding: 9px 12px; font-size: 14px; } }

/* ---------- layout ---------- */
.px-body { padding: 34px 0 20px; }
.px-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 34px; align-items: start; }
@media (max-width: 1060px) { .px-layout { grid-template-columns: minmax(0, 1fr); } .px-side { display: none; } }
.px-main { min-width: 0; }
.px-sticky { position: sticky; top: 156px; display: grid; gap: 16px; }
.px-toc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 12px; }
.px-toc ul { list-style: none; margin: 10px 0 0; padding: 0; }
.px-toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.px-toc a:hover { color: var(--navy); background: var(--paper); }
.px-toc a.on { color: var(--navy); font-weight: 600; background: var(--lv-bg); border-left-color: var(--lv); }
.px-coach { background: var(--navy); color: #fff; border-radius: 18px; padding: 20px; }
.px-coach img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .5); }
.px-coach b { display: block; font-family: var(--display); font-weight: 500; font-size: 21px; margin: 10px 0 6px; }
.px-coach p { font-size: 14px; color: rgba(255, 255, 255, .78); margin: 0 0 14px; line-height: 1.5; }

/* ---------- explanation ---------- */
.pane#pane-explanation > * + * { margin-top: 18px; }
.inshort { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lv); border-radius: 18px; padding: 22px 26px; }
.inshort p { font-size: 19px; line-height: 1.6; margin: 8px 0 0; color: var(--ink); }
.px-h { font-size: 28px; margin: 34px 0 14px !important; }
.formulas { display: grid; gap: 14px; }
.formula { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 1px 0 rgba(20, 34, 74, .03); }
.formula figcaption { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lv-ink); margin-bottom: 14px; }
.f-row { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: flex-end; }
.fp { display: grid; gap: 6px; }
.fp b { font-family: var(--display); font-weight: 500; font-size: 26px; color: var(--navy); padding-bottom: 6px; border-bottom: 3px solid var(--c, #7a8499); line-height: 1.1; }
.fp small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c, #7a8499); }
.r-sub { --c: #14224a; } .r-verb { --c: #c93f73; } .r-aux { --c: #a8305d; } .r-per { --c: #1fa99a; } .r-obj { --c: #e07a1f; } .r-time { --c: #6a4fc8; } .r-adj { --c: #2a7de1; } .r-cond { --c: #3d5a80; } .r-res { --c: #2f7d5b; } .r-ger { --c: #b0567f; } .r-cla { --c: #25607a; } .r-lnk { --c: #8a6d1f; } .r-oth { --c: #7a8499; }
.f-ex { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 16px; color: var(--ink); font-style: italic; }
.say { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: inline-grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, border-color .15s, transform .15s; }
.say .i { width: 17px; height: 17px; }
.say:hover { border-color: var(--navy); transform: scale(1.06); }
.say.on { background: var(--navy); color: #fff; border-color: var(--navy); animation: pulse-ring 1.2s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(20, 34, 74, .35); } 100% { box-shadow: 0 0 0 10px rgba(20, 34, 74, 0); } }
.gx { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px 28px; scroll-margin-top: 150px; }
@media (max-width: 640px) { .gx, .inshort, .formula { padding: 20px 18px; border-radius: 18px; } }
.gx h2 { display: flex; align-items: baseline; gap: 12px; font-size: 27px; margin: 0 0 14px; }
.gx h2 .num { font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--lv-ink); background: var(--lv-bg); padding: 4px 9px; border-radius: 8px; transform: translateY(-4px); }
.gx p { font-size: 16.5px; line-height: 1.7; margin: 0 0 12px; color: var(--ink); }
.gx b { color: var(--navy); }
.exs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.exs li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--paper); border-radius: 14px; font-size: 16.5px; }
.tbl-scroll { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; }
.gt { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.gt th { text-align: left; background: var(--navy); color: #fff; font-weight: 600; padding: 12px 16px; font-size: 13px; letter-spacing: .03em; }
.gt td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.gt tr:nth-child(even) td { background: var(--paper); }
.mistakes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.mk { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; align-content: start; }
.mk p { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.45; }
.mk .i { width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; padding: 2px; }
.mk .wrong { color: var(--muted); }
.mk .wrong span { text-decoration: line-through; text-decoration-color: rgba(201, 63, 115, .55); }
.mk .wrong .i { color: #fff; background: #c93f73; }
.mk .right { font-weight: 600; color: var(--navy); align-items: center; }
.mk .right span { flex: 1; }
.mk .right .i { color: #fff; background: #1fa99a; margin-top: 0; }
.mk .right .say { width: 30px; height: 30px; }
.mk .why { font-size: 14px; color: var(--muted); padding-left: 28px; }
.tipcard { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; background: var(--navy); color: #fff; border-radius: 24px; padding: 22px; scroll-margin-top: 150px; }
.tipcard img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; }
.tipcard .eyebrow { color: #f3b6cb; } .tipcard .eyebrow::before { background: #f3b6cb; }
.tipcard p { font-family: var(--display); font-size: 21px; line-height: 1.45; margin: 8px 0 0; }
.tipcard b { color: #fff; }
@media (max-width: 560px) { .tipcard { grid-template-columns: 1fr; } .tipcard img { width: 72px; height: 72px; border-radius: 50%; } }
.ready { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: #fff; border: 2px solid var(--lv); border-radius: 22px; padding: 22px 26px; }
.ready b { display: block; font-family: var(--display); font-weight: 500; font-size: 24px; color: var(--navy); }
.ready span { color: var(--muted); font-size: 15px; }

/* ---------- exercises ---------- */
.howto { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.howto li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; }
.howto .i { grid-row: 1 / span 2; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--lv-bg); color: var(--lv-ink); }
.howto b { color: var(--navy); font-size: 15px; }
.howto span { font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } }
.exbox { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 0 0 22px; margin-bottom: 22px; scroll-margin-top: 150px; overflow: hidden; box-shadow: 0 10px 30px rgba(20, 34, 74, .05); }
.ex-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--lv-bg), #fff); }
.ex-ic .i { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--lv); color: #fff; }
.ex-head .ex-n { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lv-ink); }
.ex-head h2 { font-size: 26px; margin: 2px 0 4px; }
.ex-head p { margin: 0; color: var(--ink); font-size: 15px; }
.ex-prog { display: grid; gap: 6px; min-width: 150px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: right; }
@media (max-width: 640px) { .ex-head { grid-template-columns: 40px minmax(0, 1fr); padding: 18px 16px 14px; } .ex-ic .i { width: 40px; height: 40px; padding: 9px; } .ex-prog { grid-column: 1 / -1; text-align: left; } .ex-head h2 { font-size: 22px; } }
.ex-items { list-style: none; margin: 0; padding: 8px 26px 0; }
@media (max-width: 640px) { .ex-items { padding: 4px 14px 0; } }
.it { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.it:last-child { border-bottom: 0; }
.it-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--navy); font-weight: 700; font-size: 13.5px; margin-top: 2px; }
.it-n .i { width: 16px; height: 16px; }
.it.ok .it-n { background: #1fa99a; color: #fff; }
.it.no .it-n { background: #c93f73; color: #fff; }
.it.pulse { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { background: transparent; } 30% { background: #fff4d6; } }
.it .q { margin: 0 0 12px; font-size: 18px; line-height: 2.1; color: var(--ink); }
.slot { display: inline-block; min-width: 70px; padding: 0 10px; margin: 0 4px; border-radius: 8px; background: var(--paper); border: 1.5px dashed var(--line-2, #cfd6e2); color: var(--muted); font-weight: 600; line-height: 1.6; text-align: center; }
.slot.filled { background: var(--navy); color: #fff; border: 1.5px solid var(--navy); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.opt .key { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--paper); color: var(--navy); border: 1px solid var(--line); }
.opt:hover { border-color: var(--navy); box-shadow: 0 6px 16px rgba(20, 34, 74, .08); }
.opt:active { transform: scale(.99); }
.opt.on { border-color: var(--navy); background: #f3f6fc; box-shadow: 0 0 0 3px rgba(20, 34, 74, .1); }
.opt.on .key { background: var(--navy); color: #fff; border-color: var(--navy); }
.it.checked .opt { cursor: default; box-shadow: none; }
.it.checked .opt.is-right { border-color: #1fa99a; background: #eefaf8; }
.it.checked .opt.is-right .key { background: #1fa99a; border-color: #1fa99a; color: #fff; }
.it.no .opt.on:not(.is-right) { border-color: #c93f73; background: #fff4f8; }
.it.no .opt.on:not(.is-right) .key { background: #c93f73; border-color: #c93f73; color: #fff; }
.gap { font: inherit; font-size: 17px; font-weight: 600; color: var(--navy); padding: 6px 12px; margin: 0 4px; border: 1.5px solid var(--line-2, #cfd6e2); border-radius: 10px; background: #fff; box-shadow: inset 0 1px 2px rgba(20, 34, 74, .06); max-width: 100%; transition: border-color .15s, box-shadow .15s; }
.gap::placeholder { color: #a8b1c2; font-weight: 500; font-style: italic; }
.gap:hover { border-color: var(--navy); }
.gap:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(20, 34, 74, .12); }
.gap.filled { background: #f3f6fc; }
.it.ok .gap { border-color: #1fa99a; background: #eefaf8; color: #137a6f; }
.it.no .gap { border-color: #c93f73; background: #fff4f8; color: #a8305d; }
.built { min-height: 58px; border: 2px dashed var(--line-2, #cfd6e2); border-radius: 14px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; background: var(--paper); transition: border-color .15s; }
.built .ph { font-size: 14px; color: var(--muted); padding: 0 8px; font-style: italic; }
.bank-row { display: flex; gap: 10px; align-items: flex-start; }
.bank { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 9px 14px; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; box-shadow: 0 2px 0 rgba(20, 34, 74, .08); transition: transform .1s, border-color .15s; }
.chip:hover { border-color: var(--navy); transform: translateY(-1px); }
.built .chip { background: var(--navy); color: #fff; border-color: var(--navy); }
.undo { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 10px 4px; }
.undo .i { width: 16px; height: 16px; }
.undo:hover { color: var(--navy); }
.it.ok .built { border: 2px solid #1fa99a; background: #eefaf8; }
.it.no .built { border: 2px solid #c93f73; background: #fff4f8; }
.it.checked .undo { display: none; }
.fb { margin-top: 12px; font-size: 14.5px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--paper); display: grid; gap: 3px; }
.fb .g { color: #137a6f; } .fb .r { color: #a8305d; }
.fb span { color: var(--muted); }
.it.ok .fb { background: #eefaf8; } .it.no .fb { background: #fff4f8; }
.ex-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin: 18px 26px 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .ex-actions { margin: 16px 14px 0; } .ex-actions .btn-lg { width: 100%; } }
.ex-score { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink); flex-wrap: wrap; }
.ex-score .warn { color: #a8305d; font-weight: 600; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--lv) calc(var(--p) * 1%), rgba(20, 34, 74, .08) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-size: 15px; color: var(--navy); }
.ring.big { width: 112px; height: 112px; }
.ring.big::before { inset: 9px; }
.ring.big b { font-family: var(--display); font-size: 28px; font-weight: 500; }
.ex-total { display: flex; gap: 26px; align-items: center; background: #fff; border: 2px solid var(--lv); border-radius: 24px; padding: 26px 28px; }
.ex-total h3 { font-family: var(--display); font-size: 28px; color: var(--navy); margin: 0 0 6px; font-weight: 500; }
.ex-total p { color: var(--muted); margin: 0 0 14px; }
@media (max-width: 640px) { .ex-total { flex-direction: column; text-align: center; } }

/* ---------- more topics + prev/next ---------- */
.px-more { margin-top: 40px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-row h2 { display: flex; align-items: center; gap: 12px; font-size: 30px; margin: 0; }
.pr-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.pr-nav a { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; color: var(--navy); }
.pr-nav a:hover { border-color: var(--navy); }
.pr-nav a.nx { text-align: right; }
.pr-nav small { color: var(--muted); font-size: 12px; }
.pr-nav b { font-family: var(--display); font-weight: 500; font-size: 19px; }

/* ---------- topic cards (index + more) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.topic-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.topic-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--lv); }
.topic-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20, 34, 74, .1); }
.tc-top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.tc-n { font-size: 12px; font-weight: 700; color: var(--lv-ink); background: var(--lv-bg); padding: 3px 9px; border-radius: 8px; }
.topic-card b { font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--navy); line-height: 1.22; }
.topic-card > span:not(.tc-top):not(.tc-bar) { font-size: 14px; color: var(--muted); line-height: 1.5; }
.topic-card small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.topic-card small .i { width: 15px; height: 15px; color: var(--lv); }
.tc-bar { margin-top: 6px; height: 4px; }
.prog { font-size: 12px; font-weight: 700; }
.prog.some { color: var(--lv-ink); } .prog.done { color: #137a6f; }

/* ---------- index ---------- */
.px-hero.idx { background: radial-gradient(900px 480px at 90% 10%, #fdeef3, transparent 60%), radial-gradient(700px 420px at 10% 100%, #eaf2fb, transparent 60%), #fff; }
.px-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; padding: 0; }
.px-stats li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; display: grid; }
.px-stats b { font-family: var(--display); font-weight: 500; font-size: 28px; color: var(--navy); line-height: 1; }
.px-stats span { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.px-collage { position: relative; height: 440px; }
.px-collage img { position: absolute; object-fit: cover; box-shadow: 0 24px 50px rgba(20, 34, 74, .18); border: 6px solid #fff; }
.px-collage .c1 { width: 62%; aspect-ratio: 1; left: 18%; top: 0; border-radius: 28px; z-index: 2; }
.px-collage .c2 { width: 40%; aspect-ratio: 1; right: 0; bottom: 20px; border-radius: 24px; transform: rotate(4deg); z-index: 3; }
.px-collage .c3 { width: 40%; aspect-ratio: 1; left: 0; bottom: 0; border-radius: 24px; transform: rotate(-5deg); z-index: 1; }
.px-collage .c-note { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); z-index: 4; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 16px; white-space: nowrap; box-shadow: 0 14px 30px rgba(20, 34, 74, .25); }
.px-collage .c-note b { display: block; font-size: 14px; }
.px-collage .c-note small { font-size: 12px; opacity: .8; }
@media (max-width: 900px) { .px-collage { height: 320px; max-width: 420px; margin: 10px auto 20px; width: 100%; } }
.pr-search { position: relative; max-width: 560px; margin: 24px 0 0; }
.pr-search .i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.pr-search input { width: 100%; padding: 16px 18px 16px 48px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 16px; background: #fff; box-shadow: 0 8px 24px rgba(20, 34, 74, .06); }
.pr-search input:focus { outline: none; border-color: var(--navy); }
.lvl-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
@media (max-width: 900px) { .lvl-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lvl-cards { grid-template-columns: 1fr; } }
.lvl-card { display: grid; gap: 6px; text-align: left; padding: 20px; border-radius: 20px; border: 1.5px solid var(--line); background: linear-gradient(160deg, var(--lv-bg), #fff 70%); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.lvl-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 34, 74, .08); }
.lvl-card.on { border-color: var(--lv); box-shadow: 0 0 0 3px var(--lv-bg); }
.lvl-card .lvl { justify-self: start; }
.lvl-card b { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--navy); }
.lvl-card small { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.lvl-card em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--lv-ink); margin-top: 4px; }
.lvl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.lvl-filter button { border: 0; background: none; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.lvl-filter button small { font-weight: 500; margin-left: 4px; }
.lvl-filter button.on { background: var(--navy); color: #fff; }
@media (max-width: 640px) { .lvl-filter button small { display: none; } }
.lvl-block { margin-bottom: 46px; scroll-margin-top: 100px; }
.lvl-block .sec-row h2 .lvl { font-size: 14px; }
.lvl-cards { margin-top: 26px; }

/* =================== v3: problem finder, set navigation, new exercise types =================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.px-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-tag { font-size: 12.5px; font-weight: 600; color: var(--navy); text-decoration: none; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.cat-tag:hover { border-color: var(--navy); }
.pseg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; }
.pseg button { border: 0; background: none; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pseg button small { font-size: 11.5px; font-weight: 700; opacity: .7; margin-left: 3px; }
.pseg button:hover { color: var(--navy); }
.pseg button.on { background: var(--navy); color: #fff; }
.sel { position: relative; display: inline-flex; min-width: 0; }
.sel select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314224a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 38px 10px 16px; cursor: pointer; max-width: 100%; text-overflow: ellipsis; }
.sel select:hover, .sel select:focus { border-color: var(--navy); outline: none; }

/* ---------- topic: set list ---------- */
.set-nav { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 18px; margin-bottom: 20px; scroll-margin-top: 150px; }
.set-nav.compact { display: none; }
.sn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.sn-head h2 { font-size: 26px; margin: 0 0 4px; }
.sn-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sn-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.set-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.set-card a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: #fff; height: 100%; transition: border-color .15s, box-shadow .15s, transform .15s; }
.set-card a:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20, 34, 74, .07); }
.set-card.cur a { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 34, 74, .1); }
.sc-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--stg-bg); color: var(--stg); }
.st-warm-up { --stg: #137a6f; --stg-bg: #e6f6f4; } .st-practice { --stg: #1f4f96; --stg-bg: #eaf2fb; } .st-challenge { --stg: #a8305d; --stg-bg: #fdeef3; }
.sc-body { display: grid; gap: 3px; min-width: 0; }
.sc-body b { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.sc-body small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.sc-body small .i { width: 14px; height: 14px; color: var(--stg); flex: none; }
.sc-state { font-size: 12px; font-weight: 700; color: var(--lv-ink); white-space: nowrap; }
.sc-state.full { width: 24px; height: 24px; border-radius: 50%; background: #1fa99a; color: #fff; display: grid; place-items: center; }
.sc-state.full .i { width: 14px; height: 14px; }
.sn-empty { margin: 10px 0 0; color: var(--muted); }
#sn-stage .sg-warm-up.on { background: #137a6f; } #sn-stage .sg-practice.on { background: #1f4f96; } #sn-stage .sg-challenge.on { background: #a8305d; }
.set-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 14px; scroll-margin-top: 150px; }
.set-bar > button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.set-bar > button:hover:not(:disabled) { border-color: var(--navy); }
.set-bar > button:disabled { opacity: .35; cursor: default; }
.set-bar .i { width: 16px; height: 16px; }
.sb-prev .i { transform: rotate(180deg); }
.sb-where { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; text-align: center; }
.sb-where b { color: var(--navy); font-size: 15px; }
.sb-where small { color: var(--muted); font-size: 13px; }
.sb-all { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--lv-bg); color: var(--navy); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sb-all .i { width: 14px; height: 14px; }
.sb-all:hover { background: var(--navy); color: #fff; }
@media (max-width: 640px) { .set-bar { gap: 8px; } .set-bar > button span { display: none; } .set-bar > button { padding: 10px 12px; } .sb-where small { display: none; } .sn-filters, .sn-filters .sel, .sn-filters .sel select { width: 100%; } }
.ex-head .ex-n { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stg { font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--stg-bg); color: var(--stg); letter-spacing: .06em; }
.ex-head .ex-help { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- new item types ---------- */
.it .q.q-sent { font-family: var(--display); font-size: 21px; line-height: 1.45; color: var(--navy); }
.judge { display: flex; flex-wrap: wrap; gap: 10px; }
.jb { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 18px; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s; }
.jb .i { width: 18px; height: 18px; }
.jb[data-v="1"] .i { color: #1fa99a; } .jb[data-v="0"] .i { color: #c93f73; }
.jb:hover { border-color: var(--navy); }
.jb.on { border-color: var(--navy); background: #f3f6fc; box-shadow: 0 0 0 3px rgba(20, 34, 74, .1); }
.it.checked .jb { cursor: default; box-shadow: none; }
.it.checked .jb.is-right { border-color: #1fa99a; background: #eefaf8; }
.it.no .jb.on:not(.is-right) { border-color: #c93f73; background: #fff4f8; }
.it .q.toks { line-height: 2.3; }
.tok { border: 0; background: none; font: inherit; font-size: 19px; color: var(--ink); padding: 2px 5px; margin: 0 -1px; border-radius: 8px; cursor: pointer; border-bottom: 2px dotted transparent; transition: background .12s; }
.tok:hover { background: var(--lv-bg); border-bottom-color: var(--lv); }
.tok.on { background: var(--navy); color: #fff; }
.it.checked .tok { cursor: default; }
.it.checked .tok:hover:not(.on) { background: none; border-bottom-color: transparent; }
.it.checked .tok.is-wrong { background: #fdeef3; color: #a8305d; text-decoration: line-through; text-decoration-color: rgba(168, 48, 93, .6); }
.it.ok .tok.on.is-wrong { background: #1fa99a; color: #fff; text-decoration: none; }
.it.no .tok.on:not(.is-wrong) { background: #c93f73; color: #fff; }
.tok-hint { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.it.checked .tok-hint { display: none; }
.strike { text-decoration: line-through; text-decoration-color: rgba(168, 48, 93, .6); }
.orig { margin: 0 0 8px; padding: 10px 14px; border-left: 3px solid var(--line-2); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 17px; color: var(--ink); }
.hint { display: inline-block; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--lv-ink); background: var(--lv-bg); padding: 4px 10px; border-radius: 999px; }
.it .q.rw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.5; }
.lead { font-weight: 600; color: var(--navy); }
.gap.wide { flex: 1 1 260px; min-width: 0; width: auto; margin: 0; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: center; }
.mrow .left { font-size: 17px; color: var(--navy); font-weight: 500; }
.msel, .msel select { width: 100%; }
.msel select { border-radius: 12px; font-weight: 500; color: var(--ink); }
.msel select.filled { border-color: var(--navy); background-color: #f3f6fc; font-weight: 600; color: var(--navy); }
.it.ok .msel select { border-color: #1fa99a; background-color: #eefaf8; } .it.no .msel select { border-color: #c93f73; background-color: #fff4f8; }
@media (max-width: 640px) { .mrow { grid-template-columns: 1fr; gap: 8px; } }
.passage { margin: 18px 26px 4px; padding: 20px 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); font-size: 17.5px; line-height: 2.3; color: var(--ink); }
.passage p { margin: 0 0 8px; } .passage p:last-child { margin: 0; }
@media (max-width: 640px) { .passage { margin: 14px 14px 4px; padding: 16px; font-size: 16.5px; } }
.tgap { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; border-radius: 10px; }
.tgap sup { font-size: 11px; font-weight: 700; color: var(--lv-ink); }
.tsel { appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--muted); padding: 3px 26px 3px 10px; border: 1.5px dashed var(--line-2); border-radius: 9px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314224a' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 8px center; cursor: pointer; line-height: 1.5; }
.tsel.filled { border-style: solid; border-color: var(--navy); color: #fff; background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.8'/%3E%3C/svg%3E"); }
.tgap.ok .tsel { background-color: #1fa99a; border-color: #1fa99a; color: #fff; }
.tgap.no .tsel { background-color: #c93f73; border-color: #c93f73; color: #fff; }
.tgap.pulse { animation: flash 1.6s ease; }
.tsel:disabled { cursor: default; opacity: 1; }
.exbox.t-text:not(.done) .ex-items { display: none; }
.exbox.t-text .it { padding: 12px 0; }
.srow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sq { font-size: 17.5px; font-weight: 600; color: var(--navy); }
.sgroups { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sg { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 16px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; min-width: 64px; }
.sg:hover { border-color: var(--navy); }
.sg.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.it.checked .sg { cursor: default; }
.it.checked .sg.is-right { background: #1fa99a; border-color: #1fa99a; color: #fff; }
.it.no .sg.on:not(.is-right) { background: #c93f73; border-color: #c93f73; color: #fff; }
.exbox.t-sort .it, .exbox.t-match .it { padding: 13px 0; }
.dict { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.play { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 18px 10px 14px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.play .i { width: 18px; height: 18px; }
.play.on { animation: pulse-ring 1.2s ease-out infinite; }
.slow { border: 1px solid var(--line-2); background: #fff; color: var(--navy); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.fb .ans { color: var(--ink); }
.ex-score .btn { display: inline-flex; align-items: center; gap: 8px; }
.ex-score .btn .i { width: 16px; height: 16px; margin: 0; }

/* ---------- index: problem finder + filters ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-bottom: 26px; }
.prob { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: start; text-align: left; padding: 16px 16px 14px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.prob:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 34, 74, .08); }
.prob.on { border-color: var(--navy); background: #f3f6fc; box-shadow: 0 0 0 3px rgba(20, 34, 74, .1); }
.pb-ic { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #fdeef3; color: var(--rose); }
.prob:nth-child(3n+2) .pb-ic { background: #eaf2fb; color: #1f4f96; } .prob:nth-child(3n) .pb-ic { background: #e6f6f4; color: #137a6f; }
.prob.on .pb-ic { background: var(--navy); color: #fff; }
.pb-ic .i { width: 22px; height: 22px; }
.pb-t { display: grid; gap: 2px; min-width: 0; }
.pb-t b { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.pb-t small { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.prob em { grid-column: 2; font-style: normal; font-size: 12px; font-weight: 700; color: var(--rose); margin-top: 4px; }
.px-filters { position: sticky; top: 76px; z-index: 15; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; margin: 0 -12px; background: rgba(251, 250, 247, .95); backdrop-filter: blur(10px); border-radius: 0 0 18px 18px; scroll-margin-top: 90px; }
@media (max-width: 960px) { .px-filters { top: 66px; } }
.pf-search { position: relative; flex: 1 1 280px; min-width: 0; }
.pf-search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.pf-search input { width: 100%; padding: 11px 16px 11px 44px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-size: 15px; background: #fff; }
.pf-search input:focus { outline: none; border-color: var(--navy); }
.pf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 12px 0 22px; font-size: 14.5px; color: var(--muted); }
.pf-bar b { color: var(--navy); }
.pf-copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer; }
.pf-copy .i { width: 15px; height: 15px; }
@media (max-width: 640px) { .px-filters { position: static; margin: 0; padding: 0; background: none; } .px-filters .sel, .px-filters .sel select, .px-filters .pseg { width: 100%; } .px-filters .pseg button { flex: 1; } .pf-copy { margin-left: 0; } }
.tc-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-cats em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--navy); background: var(--sky-2, #f6f8fb); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.empty { color: var(--muted); font-size: 15.5px; }
.topic-card .lvl { padding: 3px 10px; font-size: 11px; }

/* phones: problem areas as a compact two-column grid */
@media (max-width: 640px) { .prob-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .prob { grid-template-columns: 1fr; padding: 12px; gap: 6px; } .pb-ic { grid-row: auto; width: 36px; height: 36px; border-radius: 10px; } .pb-ic .i { width: 18px; height: 18px; } .pb-t b { font-size: 14.5px; } .pb-t small { display: none; } .prob em { grid-column: 1; margin-top: 0; font-size: 11.5px; } }

/* =================== level test + personal plan =================== */
.my-plan { margin-bottom: 28px; }
.mp-cta { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: linear-gradient(120deg, #14224a, #26386e); color: #fff; }
.mp-ic { width: 52px; height: 52px; border-radius: 15px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.mp-ic .i { width: 26px; height: 26px; color: #f3b6cb; }
.mp-cta b { display: block; font-family: var(--display); font-weight: 500; font-size: 22px; }
.mp-cta span { color: rgba(255, 255, 255, .8); font-size: 14.5px; }
.mp-cta .btn-dark { background: #fff; color: var(--navy); }
@media (max-width: 640px) { .mp-cta { grid-template-columns: 44px minmax(0, 1fr); } .mp-ic { width: 44px; height: 44px; } .mp-cta .btn { grid-column: 1 / -1; width: 100%; } }
.my-plan.has-plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 20px; box-shadow: 0 10px 30px rgba(20, 34, 74, .05); }
.mp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mp-head > div { flex: 1; min-width: 180px; display: grid; }
.mp-head b { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--navy); }
.mp-head span:not(.lvl) { font-size: 13.5px; color: var(--muted); }
.mp-head .link .i { width: 15px; height: 15px; }
.mp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.mp-list a { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; overflow: hidden; height: 100%; }
.mp-list a:hover { border-color: var(--navy); }
.mp-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--lv-bg); color: var(--lv-ink); }
.mp-n .i { width: 15px; height: 15px; }
.mp-t { display: grid; min-width: 0; }
.mp-t b { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.mp-t small { font-size: 12px; color: var(--muted); }
.mp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(20, 34, 74, .06); }
.mp-bar i { display: block; height: 100%; background: var(--lv); }

.lt-intro { background: radial-gradient(900px 480px at 90% 10%, #fdeef3, transparent 60%), radial-gradient(700px 420px at 10% 100%, #eaf2fb, transparent 60%), #fff; border-bottom: 1px solid var(--line); }
.lt-intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; padding: 34px 0 48px; }
.lt-intro h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; margin: 14px 0; letter-spacing: -.02em; }
.lt-intro h1 em { color: var(--rose); }
.lt-intro .lede { font-size: 19px; max-width: 56ch; margin: 0; }
.lt-how { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 560px; }
.lt-how li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.lt-how .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--rose); }
.lt-how b { display: block; color: var(--navy); font-size: 15.5px; }
.lt-how small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.lt-last { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; width: fit-content; max-width: 100%; }
@media (max-width: 900px) { .lt-intro-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 22px; } .lt-intro .px-photo { display: none; } }

.lt-quiz { padding: 34px 0 60px; min-height: 70vh; }
.lt-quizzing .lt-page > .section.tight { display: none; }
.lt-quiz-wrap { max-width: 760px; }
.lt-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px 30px 24px; box-shadow: 0 20px 50px rgba(20, 34, 74, .08); scroll-margin-top: 100px; }
.lt-top { display: flex; align-items: center; gap: 12px; }
.lt-count { font-size: 14px; color: var(--muted); } .lt-count b { color: var(--navy); }
.lt-quit { margin-left: auto; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lt-bar { height: 6px; border-radius: 99px; background: rgba(20, 34, 74, .08); overflow: hidden; margin: 14px 0 26px; }
.lt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1fa99a, #2a6fdb, #c93f73, #6a4fc8); background-size: 760px 100%; border-radius: 99px; transition: width .35s ease; }
.lt-q { font-family: var(--display); font-size: clamp(22px, 3.2vw, 30px); line-height: 1.5; color: var(--navy); margin: 0 0 22px; }
.lt-q .slot { font-family: var(--body); font-size: .7em; vertical-align: .12em; }
.lt-opts { display: grid; gap: 10px; }
.lt-opts .opt { padding: 15px 16px; font-size: 17px; }
.lt-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.lt-actions .btn .i { width: 16px; height: 16px; margin: 0 0 0 6px; }
.lt-actions .btn:disabled { opacity: .4; cursor: default; }
.lt-keys { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
@media (pointer: coarse) { .lt-keys { display: none; } }
@media (max-width: 640px) {
  .lt-quiz { padding: 16px 0 90px; }
  .lt-card { padding: 20px 16px 18px; border-radius: 20px; }
  .lt-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20, 34, 74, .08); }
  .lt-actions .btn { flex: 1; justify-content: center; }
}

.lt-result { padding: 34px 0 20px; }
.lt-res-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px 32px; box-shadow: 0 20px 50px rgba(20, 34, 74, .06); }
.lt-res-head .ring.big { width: 150px; height: 150px; }
.lt-res-head .ring.big::before { inset: 12px; }
.lt-res-head .ring.big b { font-size: 44px; }
.lt-res-head h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 8px 0 10px; }
.lt-res-head h1 em { color: var(--rose); }
.lt-res-head .lede { font-size: 17.5px; margin: 0; color: var(--ink); }
.lt-score { margin: 10px 0 0; color: var(--muted); font-size: 15px; } .lt-score b { color: var(--navy); }
@media (max-width: 700px) { .lt-res-head { grid-template-columns: 1fr; justify-items: start; padding: 22px 18px; gap: 16px; } .lt-res-head .ring.big { width: 110px; height: 110px; } .lt-res-head .ring.big b { font-size: 32px; } }
.lt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .lt-grid { grid-template-columns: 1fr; } }
.lt-box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.lt-box h2 { font-size: 24px; margin: 0 0 14px; }
.lt-box h3 { font-size: 13px; font-family: var(--body); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.lt-box h3:first-of-type { margin-top: 0; }
.lt-levels { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.lt-levels li { display: grid; grid-template-columns: 48px minmax(0, 1fr) 104px; gap: 12px; align-items: center; }
.lr-bar { height: 10px; border-radius: 99px; background: rgba(20, 34, 74, .07); overflow: hidden; }
.lr-bar i { display: block; height: 100%; background: var(--lv); border-radius: 99px; }
.lr-n { font-size: 13.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.lt-levels li.pass .lr-n { color: #137a6f; }
.lr-n .i { width: 16px; height: 16px; }
.lt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid; }
.lt-chip small { font-size: 12px; opacity: .75; }
.lt-chip.good { color: #137a6f; background: #eefaf8; border-color: #bfe8e2; }
.lt-chip.work { color: #a8305d; background: #fff4f8; border-color: #f3c6d6; }
.lt-chip:hover { border-color: currentColor; }
.lt-plan { margin-top: 34px; scroll-margin-top: 100px; }
.lt-plan-how { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; max-width: 75ch; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: pl; }
.plan-list > li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lv); border-radius: 18px; padding: 18px 20px; }
.pl-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lv-bg); color: var(--lv-ink); font-weight: 700; }
.pl-n .i { width: 18px; height: 18px; }
.pl-body { display: grid; gap: 4px; min-width: 0; }
.pl-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-tags .lvl { padding: 3px 10px; font-size: 11px; }
.pl-kind { font-size: 12px; font-weight: 700; }
.pl-kind.fix { color: #a8305d; } .pl-kind.next { color: #1f4f96; }
.pl-body b { font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--navy); line-height: 1.25; }
.pl-body p { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.pl-body small { font-size: 12.5px; color: var(--muted); }
.pl-go { display: grid; gap: 8px; justify-items: center; }
@media (max-width: 700px) { .plan-list > li { grid-template-columns: 36px minmax(0, 1fr); padding: 16px 14px; } .pl-n { width: 34px; height: 34px; } .pl-go { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; } .pl-go .btn { width: 100%; } }
.lt-coach { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 26px; padding: 22px 24px; border-radius: 22px; background: var(--navy); color: #fff; }
.lt-coach img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .5); }
.lt-coach b { font-family: var(--display); font-weight: 500; font-size: 22px; }
.lt-coach p { margin: 4px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .8); }
@media (max-width: 760px) { .lt-coach { grid-template-columns: 56px minmax(0, 1fr); } .lt-coach img { width: 56px; height: 56px; } .lt-coach .btn { grid-column: 1 / -1; width: 100%; } }
.lt-review { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; }
.lt-review summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; }
.lt-review ol { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 2px; }
.lt-review li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.lt-review li p { margin: 0 0 3px; font-size: 15.5px; color: var(--ink); }
.lt-review li small { font-size: 13px; color: var(--muted); }
.rv-i .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; }
.lt-review li.ok .rv-i .i { background: #1fa99a; } .lt-review li.no .rv-i .i { background: #c93f73; }
.lt-review .lvl { padding: 3px 9px; font-size: 11px; }
