/* META AI v7 – lesson map look (after the Hebrew "Story Passport" sample) */
:root {
  --ink: #1B2A4A;
  --ink-2: #4A5A7A;
  --sky: #CFEAF4;
  --sky-2: #A9DAEC;
  --paper: #FFFFFF;
  --sand: #F4ECE0;
  --coral: #FF6B57;
  --coral-d: #E04E3A;
  --saffron: #FFC23D;
  --teal: #1FA2B4;
  --teal-d: #137F8E;
  --leaf: #35A96E;
  --leaf-soft: #DFF4E8;
  --red: #E5484D;
  --red-soft: #FDE6E7;
  --plum: #7A5BA8;
  --line: #D9E6EE;
  --mark: #FFE07A;
  --shadow: 0 1px 0 rgba(27,42,74,.06), 0 14px 28px -16px rgba(27,42,74,.45);
  --shadow-s: 0 1px 0 rgba(27,42,74,.06), 0 6px 14px -8px rgba(27,42,74,.35);
  --r: 22px;
  --f-ui: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Lexend", "Rubik", Arial, sans-serif;
  --f-ar: "Baloo Bhaijaan 2", "Noto Naskh Arabic", "Geeza Pro", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--sky); color: var(--ink); font-family: var(--f-ui); font-size: 18px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
.ar { font-family: var(--f-ar); direction: rtl; unicode-bidi: isolate; }
.ic { width: 1em; height: 1em; flex: 0 0 auto; }
.kicker { font-size: 14px; font-weight: 700; color: var(--coral-d); letter-spacing: .02em; }
.sub { color: var(--ink-2); font-size: 17px; margin: 6px 0 0; line-height: 1.5; }
.hint { color: var(--ink-2); font-size: 16px; margin: 0 0 12px; line-height: 1.5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.main { max-width: 1240px; margin: 0 auto; padding: 14px 16px 60px; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 999px; padding: 12px 22px; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; background: #E6F3F8; color: var(--ink); box-shadow: var(--shadow-s); }
.btn.coral, .btn.primary { background: var(--coral); color: #fff; box-shadow: inset 0 -4px 0 rgba(0,0,0,.14), var(--shadow-s); }
.btn.coral:hover { background: var(--coral-d); }
.btn.ghost { background: var(--paper); border: 2px solid var(--line); box-shadow: none; }
.btn.big { font-size: 20px; padding: 14px 28px; min-height: 60px; }
.btn.sm { font-size: 15px; min-height: 40px; padding: 8px 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn .ic { width: 20px; height: 20px; }
.icon-btn { border: 0; background: #E6F3F8; color: var(--teal-d); width: 46px; height: 46px; border-radius: 50%; font-size: 20px; display: inline-grid; place-items: center; flex: 0 0 auto; }

/* ---------- top bar + station steps ---------- */
.top { position: sticky; top: 0; z-index: 20; padding: 10px 16px 6px; background: rgba(207,234,244,.9); backdrop-filter: blur(8px); }
.bar { max-width: 1208px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-s); }
.map-btn { border: 0; background: #DDEFF6; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; gap: 6px; }
.map-btn .ic { width: 18px; height: 18px; }
.top-title { font-weight: 800; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.steps { max-width: 1208px; margin: 8px auto 0; background: var(--paper); border-radius: 999px; box-shadow: var(--shadow-s); padding: 7px 14px; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 700; font-size: 16px; }
.step .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: 15px; font-weight: 800; }
.step .dot .ic { width: 16px; height: 16px; }
.step.done .dot { background: #1F6B4A; border-color: #1F6B4A; color: #fff; }
.step.on { background: #fff; box-shadow: var(--shadow-s); }
.step.on .dot { background: var(--coral); border-color: var(--coral); color: #fff; }
.step.locked { color: #9AA7BD; }
.step.locked .dot { background: #F2F6F9; color: #9AA7BD; }
.dots { flex: 1 0 16px; min-width: 16px; border-top: 3px dotted #BFD4E0; margin: 0 4px; }
.dots.lit { border-color: var(--teal); }

/* ---------- home: lesson map ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.map-card { position: relative; overflow: hidden; background: var(--sand); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 28px 40px; }
.map-card::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 160px; background: #EADCC6; border-radius: 50% 50% 0 0; z-index: 0; }
.map-card > * { position: relative; z-index: 1; }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.map-head h1 { font-size: 40px; font-weight: 800; margin-top: 4px; }
.go-btn .ic { width: 18px; height: 18px; }
.stations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 16px; margin-top: 34px; }
.station { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px; text-align: center; }
.station .disc { position: relative; width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; border: 4px solid #2B6E52; box-shadow: var(--shadow-s); color: var(--teal); }
.station .disc > .ic { width: 46px; height: 46px; stroke-width: 1.8; }
.st-words .disc { color: var(--coral); } .st-practice .disc { color: var(--plum); } .st-rec .disc { color: var(--coral-d); } .st-quiz .disc { color: var(--ink); } .st-finish .disc { color: #B07A00; }
.station.next .disc { border-color: var(--coral); box-shadow: 0 0 0 8px rgba(255,107,87,.15), var(--shadow-s); }
.station.locked .disc { border-color: #C9D6DF; color: #A5B3C4; background: #F7F3EC; }
.station:not(.done):not(.next):not(.locked) .disc { border-color: var(--teal); }
.st-finish .disc { background: var(--saffron); border-color: #fff; }
.station.locked.st-finish .disc { background: #F7F3EC; border-color: #C9D6DF; }
.badge { position: absolute; left: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: #1F6B4A; color: #fff; display: grid; place-items: center; border: 3px solid #fff; }
.badge .ic { width: 16px; height: 16px; stroke-width: 3; }
.badge.lock { background: #A5B3C4; }
.station b { font-size: 19px; font-weight: 800; }
.station small { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.station.done small { color: #1F6B4A; }
.station.next small { color: var(--coral-d); }
.station:hover .disc { transform: translateY(-2px); transition: transform .15s; }

.side { display: grid; gap: 16px; }
.side-card { background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.side-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sky-2); }
.side-body { padding: 16px 18px 20px; }
.side-body h3 { font-size: 21px; font-weight: 800; margin: 4px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wordchip { border: 0; background: #D7EEF6; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 16px; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; }
.wordchip .ar { display: none; font-size: 17px; color: var(--teal-d); font-weight: 600; }
.wordchip.open { background: #FFF1C9; }
.wordchip.open .ar { display: block; }
.note-card { background: #FFF6DA; border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow-s); font-size: 17px; line-height: 1.55; }

/* ---------- reader ---------- */
.reader { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "text pic" "text ctl"; grid-template-rows: auto 1fr; gap: 16px; align-items: start; }
.text-card { grid-area: text; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); padding: 8px 8px 8px 0; align-self: stretch; display: flex; }
.text-scroll { position: relative; overflow-y: auto; max-height: calc(100vh - 190px); min-height: 340px; padding: 20px 22px 20px 30px; flex: 1; scrollbar-width: thin; scrollbar-color: #8794A8 transparent; }
.reading { font-family: var(--f-read); font-size: clamp(24px, 2.1vw, 30px); line-height: 2.05; font-weight: 500; word-spacing: .06em; margin: 0; }
.w { border-radius: 8px; padding: 1px 2px; cursor: pointer; transition: background .12s; }
.w:hover { background: #E3F2F7; }
.w.key { text-decoration: none; } /* key words: no underline (Shadi), still tappable */
.w.now { background: var(--mark); box-shadow: 0 0 0 2px var(--mark); }
.w.ok { background: var(--leaf-soft); color: #145C33; }
.w.miss { background: var(--red-soft); color: #9B2D28; }
.w.sel { outline: 3px solid var(--teal); }

.pic-card { grid-area: pic; position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--sky-2); aspect-ratio: 16 / 10; }
.pic-card img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.pic-emoji { display: grid; place-items: center; height: 100%; font-size: 90px; }
.big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.big-play .ic { width: 40px; height: 40px; margin-left: 5px; }
.pill { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; background: rgba(27,42,74,.82); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.pill .ic { width: 18px; height: 18px; }
.pill-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.pill-dot .ic { width: 12px; height: 12px; margin-left: 2px; }

.ctl-card { grid-area: ctl; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: 14px 18px 16px; }
.pg { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.pg b { white-space: nowrap; }
.pg-bar { flex: 1; height: 6px; background: #E3EEF3; border-radius: 99px; overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.ctl-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.round { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; }
.round .ic { width: 24px; height: 24px; }
.round.locked { opacity: .4; }
.round.ready { border-color: var(--teal); color: var(--teal-d); }
.play { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), var(--shadow-s); }
.play .ic { width: 34px; height: 34px; }
.round.mic { border-color: #FFC9C0; color: var(--coral-d); }
.round.mic.recording { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 1.1s infinite; }
.round.mic.pulse { animation: ring 1.4s 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(229,72,77,.18); } }
@keyframes ring { 50% { box-shadow: 0 0 0 12px rgba(255,107,87,.25); } }
.speed { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.seg { display: flex; background: #DDEFF6; border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 15px; }
.seg button.on { background: #fff; box-shadow: var(--shadow-s); }
.speed.mini { display: none; }
.ctl-msg { min-height: 0; color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.ctl-msg:empty { display: none; }
.rec-box { margin-top: 12px; border-radius: 18px; padding: 14px 16px; }
.rec-box.good { background: var(--leaf-soft); }
.rec-box.try { background: #FFF0E8; }
.rec-box p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }
.rec-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rec-score { font-size: 34px; font-weight: 800; line-height: 1.1; }
.meter { height: 10px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--leaf); border-radius: 99px; }
.notice { background: #FFF0E8; border-radius: 14px; padding: 12px 14px; font-size: 16px; line-height: 1.5; margin: 12px 0 0; }

/* ---------- word popup ---------- */
.pop-back { position: fixed; inset: 0; z-index: 40; background: rgba(20,24,30,.25); }
.pop { position: fixed; z-index: 41; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); background: var(--paper); border-radius: 26px; padding: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.pop-word { font-size: 32px; font-weight: 800; }
.pop-ar { font-size: 32px; color: var(--teal-d); margin: 6px 0 2px; font-weight: 700; }
.pop-phrase { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pop-phrase .en { font-weight: 700; font-size: 19px; }
.pop-phrase .ar { font-size: 24px; color: var(--coral-d); }
.pin { font-size: 22px; letter-spacing: 8px; width: 150px; text-align: center; border: 2px solid var(--line); border-radius: 12px; padding: 8px; }

/* ---------- panels (words, record at home) ---------- */
.panel, .qcard, .result-card { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { font-size: 30px; font-weight: 800; margin-top: 4px; }
.count { background: #E6F3F8; border-radius: 999px; padding: 8px 16px; font-size: 18px; white-space: nowrap; }
.count b { font-size: 22px; }
.panel-foot { display: flex; justify-content: flex-end; margin-top: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.flip { perspective: 1000px; cursor: pointer; min-height: 290px; }
.flip-in { position: relative; width: 100%; height: 100%; min-height: 290px; transition: transform .5s; transform-style: preserve-3d; }
.flip.open .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 16px rgba(27,42,74,.12); background: #fff; }
.face.front img, .face.front .noimg { width: 100%; height: 190px; flex: 0 0 auto; object-fit: cover; background: var(--sand); display: grid; place-items: center; font-size: 60px; }
.flip-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; }
.flip .en { font-size: 22px; font-weight: 800; }
.face.back { transform: rotateY(180deg); background: var(--ink); color: #fff; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 16px; }
.face.back .big { font-family: var(--f-ar); font-size: 36px; font-weight: 700; color: #fff; }
.face.back .small { color: var(--saffron); font-size: 20px; font-weight: 800; }
.face.back .mean, .face.back .ex { color: #D6DCEB; font-size: 15px; line-height: 1.5; }
.face.back .icon-btn { background: rgba(255,255,255,.15); color: #fff; }
.seen-tick { position: absolute; top: 10px; left: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: #1F6B4A; color: #fff; border: 3px solid #fff; display: none; place-items: center; font-weight: 900; font-size: 15px; }
.flip.seen .seen-tick { display: grid; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rec-part { display: flex; align-items: center; gap: 14px; border: 2px solid var(--line); background: #fff; border-radius: 20px; padding: 10px; text-align: left; }
.rec-part img, .rec-part .pic-emoji { width: 84px; height: 64px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; font-size: 34px; }
.rp-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rp-body b { font-size: 19px; }
.rp-body small { color: var(--ink-2); font-size: 14px; }
.rp-mic { width: 46px; height: 46px; border-radius: 50%; background: #FFE4DE; color: var(--coral-d); display: grid; place-items: center; }
.rp-mic .ic { width: 22px; height: 22px; }
.rec-part.done { border-color: #A9DBC0; }

/* ---------- one question per page ---------- */
.qcard { max-width: 860px; margin: 0 auto; padding: 26px 28px 28px; }
.q-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.q-count { font-size: 17px; color: var(--ink-2); }
.q-count b { color: var(--ink); }
.q-bar { height: 8px; background: #E3EEF3; border-radius: 99px; overflow: hidden; margin: 10px 0 18px; }
.q-bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .3s; }
.q-ex { display: flex; gap: 12px; align-items: center; background: #F2F8FB; border-radius: 18px; padding: 10px 14px; }
.q-ex > div { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.q-ex b { color: var(--ink); font-size: 17px; }
.say { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #DDEFF6; color: var(--teal-d); display: grid; place-items: center; flex: 0 0 auto; }
.say .ic { width: 22px; height: 22px; }
.q-text { font-family: var(--f-read); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.7; margin: 26px 0 22px; }
.gap { display: inline-block; min-width: 140px; text-align: center; border-bottom: 3px solid var(--teal); background: #E6F3F8; border-radius: 10px 10px 0 0; padding: 0 12px; margin: 0 4px; color: var(--teal-d); font-weight: 600; }
.gap.empty { color: #8FA0B5; }
.gap.right { background: var(--leaf-soft); border-color: var(--leaf); color: #1F6B4A; }
.gap.wrong { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.q-opts.bank { display: flex; flex-wrap: wrap; gap: 10px; }
.q-opts.mc { display: grid; gap: 10px; }
.opt { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-size: 19px; font-weight: 600; display: inline-flex; align-items: center; gap: 12px; text-align: left; transition: border-color .12s, background .12s; }
.q-opts.mc .opt { border-radius: 18px; padding: 14px 16px; font-size: 19px; line-height: 1.4; }
.opt-l { width: 32px; height: 32px; border-radius: 50%; background: #E6F3F8; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: 0 0 auto; }
.opt:hover:not(:disabled) { border-color: var(--teal); }
.opt.sel { border-color: var(--teal); background: #E6F3F8; }
.opt.right { border-color: var(--leaf); background: var(--leaf-soft); color: #1F6B4A; }
.opt.right .opt-l { background: var(--leaf); color: #fff; }
.opt.no { text-decoration: line-through; opacity: .45; border-style: dashed; }
.opt:disabled { cursor: default; }
.q-feedback { min-height: 30px; margin-top: 18px; font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.q-feedback .ic { width: 26px; height: 26px; stroke-width: 3; }
.q-feedback.good { color: #1F6B4A; }
.q-feedback.bad { color: var(--red); }
.q-feedback:not(.good):not(.bad) { color: var(--ink-2); font-weight: 600; font-size: 17px; }
.q-foot { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ---------- practice parts (like the pages of the book) ---------- */
.parts { display: grid; gap: 12px; }
.part-card { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 22px; padding: 14px 16px; color: var(--ink); }
.part-card .pc-num { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px; background: #E6F3F8; color: var(--teal-d); display: grid; place-items: center; font-size: 24px; font-weight: 800; font-family: var(--f-read); }
.part-card .pc-num .ic { width: 26px; height: 26px; stroke-width: 3; }
.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pc-book { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--coral-d); }
.pc-body b { font-size: 20px; }
.pc-ins { font-family: var(--f-read); font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.pc-st { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-top: 2px; }
.pc-st .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.pc-bar { display: block; height: 6px; max-width: 260px; background: #E3EEF3; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.pc-bar i { display: block; height: 100%; background: var(--teal); }
.pc-go { flex: 0 0 auto; pointer-events: none; }
.part-card.next { border-color: var(--coral); box-shadow: 0 0 0 4px #FFE4DE; }
.part-card.next .pc-num { background: var(--coral); color: #fff; }
.part-card.done { border-color: #A9DBC0; background: #F6FCF8; }
.part-card.done .pc-num { background: var(--leaf); color: #fff; }
.part-card.done .pc-st { color: #1F6B4A; }
.part-card.locked { opacity: .55; background: #F7FAFC; }
.part-card.locked .pc-num { background: #EEF2F5; color: #8FA0B5; }
.q-book { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--coral-d); }
.pd-h { display: flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 800; margin-top: 6px; color: #1F6B4A; }
.pd-h .ic { width: 34px; height: 34px; stroke-width: 3; }
/* match A + B */
.match-row { display: flex; align-items: flex-end; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; font-family: var(--f-read); }
.m-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.m-col small { font-family: var(--f-ui); font-size: 13px; font-weight: 800; color: var(--ink-2); }
.m-a { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; background: #FFF6DA; border: 2px solid #F2DE9C; border-radius: 16px; padding: 8px 20px; }
.m-plus { font-size: 30px; font-weight: 700; color: var(--ink-2); padding-bottom: 10px; }
.gap.m-b { font-size: clamp(24px, 2.6vw, 32px); min-width: 170px; padding: 8px 16px; border-radius: 16px; border: 2px dashed var(--teal); margin: 0; }
.gap.m-b.right { border-style: solid; }

/* ---------- results & finish ---------- */
.result-card { max-width: 900px; margin: 0 auto; }
.res-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.mark { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.mark b { font-size: 72px; font-weight: 800; line-height: 1; }
.mark span { font-size: 26px; font-weight: 700; color: var(--ink-2); }
.note { background: #FFF6DA; border-radius: 14px; padding: 10px 14px; font-size: 16px; line-height: 1.5; max-width: 460px; }
.res-actions { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }
.res-list { list-style: none; counter-reset: q; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.res-list li { counter-increment: q; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: #F5F9FB; font-size: 17px; line-height: 1.45; }
.res-list li::before { content: counter(q); font-weight: 800; color: var(--ink-2); min-width: 22px; }
.res-list li.res-part { counter-increment: none; background: transparent; padding: 14px 4px 2px; font-size: 15px; color: var(--ink-2); }
.res-list li.res-part::before { content: none; }
.res-list li.res-part b { color: var(--coral-d); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.res-q { flex: 1; }
.res-q .ans { color: var(--teal-d); }
.res-s { white-space: nowrap; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; }
.res-s .ic { width: 16px; height: 16px; stroke-width: 3; }
.first .res-s { background: var(--leaf-soft); color: #1F6B4A; }
.later .res-s { background: #FFF0E0; color: #A3520F; }
.finish h2 { font-size: 26px; margin-top: 4px; }
.sum-h { font-size: 18px; margin: 22px 0 8px; color: var(--ink-2); }
.sum-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.sum-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; background: #F5F9FB; border-radius: 16px; font-size: 18px; }
.sum-list li b { font-size: 22px; }
.sum-list li small { grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; }
.sum-list.small li { font-size: 16px; } .sum-list.small b { font-size: 18px; }

.footer { text-align: center; color: var(--ink-2); font-size: 13px; margin-top: 30px; }
.footer button { background: none; border: 0; color: var(--ink-2); text-decoration: underline; font-size: 13px; }

/* ---------- tablets & phones ---------- */
@media (max-width: 980px) {
  .home { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .reader { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic" "text" "ctl"; grid-template-rows: auto; }
  .pic-card { aspect-ratio: 16 / 8; border-radius: 22px; }
  .text-scroll { max-height: none; min-height: 0; overflow: visible; padding: 14px 18px; }
  .text-card { padding: 0; }
  .ctl-card { position: sticky; bottom: 8px; z-index: 15; padding: 10px 12px 12px; box-shadow: 0 -4px 24px rgba(27,42,74,.18); }
  .ctl-row { gap: 8px; margin-top: 8px; flex-wrap: nowrap; }
  .round { width: 48px; height: 48px; }
  .play { width: 62px; height: 62px; }
  .ctl-row .speed { display: none; }
  .speed.mini { display: flex; margin-left: 0; }
  .pg { gap: 10px; font-size: 15px; }
  .ctl-row { justify-content: space-between; }
  .seg button { padding: 7px 10px; font-size: 14px; }
  .big-play { width: 76px; height: 76px; }
  .big-play .ic { width: 32px; height: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .main { padding: 10px 12px 40px; }
  .top { padding: 8px 12px 4px; }
  .step .lbl { display: none; }
  .step.on .lbl { display: inline; }
  .map-card { padding: 20px 16px 36px; border-radius: 24px; }
  .map-head h1 { font-size: 30px; }
  .go-btn { width: 100%; }
  .stations { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; margin-top: 24px; }
  .station .disc { width: 84px; height: 84px; }
  .station .disc > .ic { width: 38px; height: 38px; }
  .station b { font-size: 17px; }
  .side { grid-template-columns: 1fr; }
  .panel, .qcard, .result-card { padding: 18px 16px; border-radius: 22px; }
  .panel-head { flex-direction: column; }
  .panel-head h2 { font-size: 25px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .flip, .flip-in { min-height: 240px; }
  .face.front img, .face.front .noimg { height: 140px; }
  .flip .en { font-size: 18px; }
  .q-text { margin: 18px 0 16px; }
  .opt { font-size: 17px; padding: 9px 14px; }
  .q-opts.mc .opt { font-size: 17px; }
  .q-foot .btn { width: 100%; }
  .part-card { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .part-card .pc-num { width: 42px; height: 42px; font-size: 20px; border-radius: 13px; }
  .pc-body { flex-basis: calc(100% - 60px); }
  .pc-body b { font-size: 18px; }
  .pc-go { width: 100%; min-height: 46px; }
  .match-row { gap: 8px; margin: 22px 0 18px; }
  .gap.m-b { min-width: 130px; }
  .mark b { font-size: 60px; }
  .res-actions { width: 100%; }
  .res-list li { flex-wrap: wrap; font-size: 16px; }
  .pill { font-size: 14px; bottom: 10px; }
}

/* ---------- v8: student login, My lessons, saved status ---------- */
.login-card { max-width: 460px; margin: 8vh auto 0; background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: 34px 28px 26px; text-align: center; }
.login-card h1 { font-size: 34px; margin-top: 4px; }
.login-logo { display: block; width: min(300px, 86%); height: auto; margin: 0 auto 16px; border-radius: 18px; box-shadow: var(--shadow-s); }
.login-form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.code-in { font: 700 30px/1 var(--f-read); letter-spacing: .14em; text-align: center; text-transform: uppercase; padding: 16px 12px; border: 2px solid var(--line); border-radius: 18px; color: var(--ink); background: #F7FBFD; width: 100%; }
.code-in:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,162,180,.18); }
.login-msg { min-height: 24px; margin: 12px 0 0; color: var(--coral-d); font-weight: 600; font-size: 16px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 4px; font-size: 15px; color: var(--ink-2); }
.who > span:first-child:not(.save-st), .who-name { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .btn { text-decoration: none; white-space: nowrap; }
.save-st { font-size: 13px; font-weight: 600; white-space: nowrap; }
.save-st[data-st="saved"] { color: var(--leaf); }
.save-st[data-st="saving"] { color: var(--ink-2); }
.save-st[data-st="offline"] { color: var(--coral-d); }
/* ---------- My lessons (student home) ---------- */
.ml-brand { display: flex; align-items: center; gap: 10px; padding-left: 4px !important; }
.ml-logo { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; }
.ml-logo .mlogo { width: 100%; height: 100%; display: block; border-radius: 11px; }
.ml-logo .ic { width: 20px; height: 20px; }
.who .btn.sm .ic { width: 16px; height: 16px; }
.ml-hero { position: relative; overflow: hidden; background: var(--sand); border-radius: 28px; box-shadow: var(--shadow); padding: 30px 32px 44px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ml-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 140px; background: #EADCC6; border-radius: 50% 50% 0 0; z-index: 0; }
.ml-hero::before { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,194,61,.35); z-index: 0; }
.ml-hero > * { position: relative; z-index: 1; }
.ml-hello h1 { font-size: 38px; font-weight: 800; margin-top: 4px; }
.ml-hello .sub { margin-bottom: 18px; }
.ml-next { text-decoration: none; max-width: 100%; }
.ml-next span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-stats { display: grid; grid-template-columns: repeat(3, minmax(104px, 1fr)); gap: 12px; }
.ml-stat { background: var(--paper); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; align-items: center; text-align: center; border-top: 5px solid var(--teal); }
.ml-stat b { font-size: 34px; font-weight: 800; line-height: 1.1; }
.ml-stat span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ml-stat.s-done { border-top-color: var(--leaf); } .ml-stat.s-done b { color: #1F6B4A; }
.ml-stat.s-going { border-top-color: var(--coral); } .ml-stat.s-going b { color: var(--coral-d); }
.ml-stat.s-avg { border-top-color: var(--teal); } .ml-stat.s-avg b { color: var(--teal-d); }
.ml-h { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; margin: 32px 4px 14px; }
.ml-h small { font-size: 14px; font-weight: 700; background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 2px 10px; box-shadow: var(--shadow-s); }
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ml-card { display: flex; flex-direction: column; background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-s); color: var(--ink); text-decoration: none; border: 3px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ml-card:hover, .ml-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky-2); outline: none; }
.ml-card.going { border-color: rgba(255,107,87,.45); }
.ml-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--sky-2); }
.ml-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-pic-ic { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.ml-pic-ic .ic { width: 56px; height: 56px; }
.tone-teal { background: linear-gradient(135deg, #1FA2B4, #6BC9D6); } .tone-coral { background: linear-gradient(135deg, #FF6B57, #FFA08F); }
.tone-plum { background: linear-gradient(135deg, #7A5BA8, #A98BD3); } .tone-leaf { background: linear-gradient(135deg, #35A96E, #7DD0A2); }
.tone-saffron { background: linear-gradient(135deg, #E9A400, #FFC23D); }
.ml-tag { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 5px 12px; background: var(--paper); box-shadow: var(--shadow-s); }
.ml-tag .ic { width: 15px; height: 15px; }
.ml-tag.done { background: var(--leaf); color: #fff; } .ml-tag.going { background: var(--coral); color: #fff; } .ml-tag.new { color: var(--teal-d); }
.ml-num { position: absolute; left: 18px; bottom: -22px; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); display: grid; place-items: center; font-weight: 800; font-size: 19px; color: var(--ink); box-shadow: var(--shadow-s); }
.ml-card.done .ml-num { border-color: var(--leaf); } .ml-card.going .ml-num { border-color: var(--coral); }
.ml-body { display: flex; flex-direction: column; gap: 6px; padding: 30px 20px 18px; flex: 1; }
.ml-title { font-weight: 800; font-size: 23px; line-height: 1.2; }
.ml-intro { font-family: var(--f-read); font-size: 16px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ml-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.ml-due { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--teal-d); background: #E3F4F8; border-radius: 999px; padding: 4px 11px; }
.ml-due .ic { width: 15px; height: 15px; }
.ml-due.late { color: var(--coral-d); background: #FFE9E4; }
.ml-note { font-size: 15px; color: var(--ink-2); font-style: italic; }
.ml-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 2px dashed var(--line); }
.ml-foot-txt { display: flex; flex-direction: column; line-height: 1.25; }
.ml-foot-txt b { font-size: 16px; } .ml-foot-txt span { font-size: 14px; color: var(--ink-2); }
.ml-prog { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ml-bar { height: 10px; border-radius: 999px; background: #EDF2F6; overflow: hidden; }
.ml-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--saffron)); }
.ml-go { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: #fff; font-weight: 700; font-size: 17px; border-radius: 999px; padding: 10px 18px; min-height: 46px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); white-space: nowrap; }
.ml-go .ic { width: 16px; height: 16px; }
.ml-go.ghost { background: #E6F3F8; color: var(--ink); box-shadow: none; }
.ml-ring { position: relative; width: 60px; height: 60px; flex: 0 0 auto; display: grid; place-items: center; }
.ml-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ml-ring circle { fill: none; stroke-width: 7; }
.ml-ring .bg { stroke: #E5F0EA; } .ml-ring .fg { stroke: var(--leaf); stroke-linecap: round; }
.ml-ring b { position: relative; font-size: 19px; font-weight: 800; color: #1F6B4A; }
@media (max-width: 640px) {
  .ml-hero { padding: 22px 18px 40px; border-radius: 24px; }
  .ml-hello { width: 100%; }
  .ml-hello h1 { font-size: 30px; }
  .ml-next { width: 100%; }
  .ml-stats { width: 100%; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ml-stat { padding: 10px 6px; border-radius: 16px; }
  .ml-stat b { font-size: 26px; } .ml-stat span { font-size: 12.5px; }
  .ml-grid { grid-template-columns: 1fr; gap: 16px; }
  .ml-h { font-size: 21px; margin-top: 26px; }
  .ml-brand .ml-logo { width: 34px; height: 34px; }
  .who .btn.sm span { display: none; }
  .ml-page .who > span:first-child { display: none; }
  .ml-pic { aspect-ratio: 2 / 1; }
}
@media (max-width: 640px) {
  .who .save-st { font-size: 0; }
  .who .save-st::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; vertical-align: middle; }
  .who .save-st[data-st="idle"]::before { display: none; }
  .who-name { display: none; }
  .who a.btn { display: none; }
  .who .btn.sm { padding: 6px 12px; min-height: 36px; font-size: 14px; }
}
.footer a { color: var(--ink-2); font-size: 13px; }

/* META AI logo: opening animation (pop in, light sweep, soft glow) */
.logo-anim { position: relative; display: block; overflow: hidden; line-height: 0; animation: logo-in .9s cubic-bezier(.2,1.4,.4,1) both, logo-glow 2.4s ease-in-out 1s 2; }
.logo-anim img { display: block; width: 100%; height: auto; }
.logo-anim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: logo-shine 1.2s ease-in-out .8s both; pointer-events: none; }
@keyframes logo-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes logo-shine { to { transform: translateX(120%); } }
@keyframes logo-glow { 50% { box-shadow: 0 0 0 4px rgba(56,170,255,.25), 0 0 34px rgba(56,170,255,.55); } }
@media (prefers-reduced-motion: reduce) { .logo-anim, .logo-anim::after { animation: none; } }
/* META AI logo video (plays once on the login screens) */
.logo-video { display: block; overflow: hidden; line-height: 0; background: #0b1a2e; aspect-ratio: 3 / 2; }
.logo-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== META AI login: video intro, then code + Start (dark blue theme) ===== */
body.meta-dark { background: radial-gradient(1200px 700px at 50% 30%, #12305a 0%, #0a1830 55%, #050c1a 100%) fixed; color: #eaf3ff; }
.meta-login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 40px; gap: 26px; }
.meta-login .intro-video { position: relative; width: min(880px, 94vw); aspect-ratio: 3 / 2; border-radius: 26px; overflow: hidden; background: #0b1a2e;
  box-shadow: 0 0 0 1px rgba(120,190,255,.18), 0 30px 80px -20px rgba(30,120,255,.55); transition: width .9s cubic-bezier(.6,0,.2,1), border-radius .9s, box-shadow .9s; }
.meta-login .intro-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-skip, .intro-sound { position: absolute; bottom: 14px; border: 1px solid rgba(160,210,255,.35); background: rgba(5,15,35,.55); color: #dcecff; font: 600 15px var(--f-ui);
  padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; transition: opacity .3s; }
.intro-skip { right: 14px; } .intro-sound { left: 14px; }
.intro-skip:hover, .intro-sound:hover { background: rgba(20,60,120,.7); }
.meta-card { width: min(420px, 100%); text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(120,190,255,.22);
  border-radius: 26px; padding: 26px 24px 22px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none; opacity: 0; transform: translateY(24px); }
.meta-card h1 { color: #fff; font-size: 32px; font-weight: 800; margin: 0 0 4px; }
.meta-card .sub { color: #a9c3e6; margin: 0 0 18px; font-size: 17px; }
.meta-card .code-in { width: 100%; background: rgba(4,14,32,.65); color: #fff; border: 2px solid rgba(90,170,255,.45); border-radius: 16px; padding: 14px; text-align: center;
  font: 700 26px var(--f-ui); letter-spacing: .08em; text-transform: none; outline: none; transition: border-color .2s, box-shadow .2s; }
.meta-card .code-in::placeholder { color: rgba(170,200,240,.35); }
.meta-card .code-in:focus { border-color: #3fb6ff; box-shadow: 0 0 0 4px rgba(63,182,255,.22), 0 0 24px rgba(63,182,255,.35); }
.meta-start { margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 16px 20px;
  font: 800 21px var(--f-ui); color: #fff; letter-spacing: .02em; cursor: pointer; background: linear-gradient(100deg, #2a5bff 0%, #1e90ff 50%, #22d3ff 100%); background-size: 200% 100%;
  box-shadow: 0 10px 30px -8px rgba(34,160,255,.75), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s, box-shadow .2s, background-position .5s; }
.meta-start svg { width: 22px; height: 22px; transition: transform .2s; }
.meta-start:hover { background-position: 100% 0; box-shadow: 0 14px 36px -8px rgba(34,200,255,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.meta-start:hover svg { transform: translateX(4px); }
.meta-start:active { transform: scale(.98); }
.meta-start:disabled { opacity: .6; cursor: default; }
.meta-card .login-msg { color: #ffb4bd; min-height: 1.4em; margin: 12px 0 0; font-size: 16px; }
.meta-login.ready .intro-video { width: min(420px, 100%); border-radius: 20px; box-shadow: 0 0 0 1px rgba(120,190,255,.18), 0 18px 50px -18px rgba(30,120,255,.6); }
.meta-login.ready .meta-card { display: block; animation: meta-card-in .7s cubic-bezier(.2,.9,.3,1) .45s forwards; }
@keyframes meta-card-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .meta-login .intro-video { transition: none; } .meta-login.ready .meta-card { animation: none; opacity: 1; transform: none; } }
@media (max-width: 520px) { .meta-login { justify-content: flex-start; padding-top: 18vh; } .meta-login.ready { padding-top: 24px; } .meta-card h1 { font-size: 28px; } }
.meta-login .intro { width: 100%; display: flex; justify-content: center; }

/* ---------- v10: listen back, then send to the teacher ---------- */
.pg-rec { display: inline-flex; align-items: center; gap: 5px; background: var(--red-soft); color: var(--red); border-radius: 999px; padding: 3px 10px 3px 8px; margin-right: 8px; font-size: 14px; }
.pg-rec .ic { width: 14px; height: 14px; }
.rec-box.review { background: #F5F9FB; border: 2px solid var(--line); }
.rec-box.review.good { background: var(--leaf-soft); border-color: #BFE6CF; }
.rec-box.review.try { background: #FFF4EC; border-color: #FFD9C4; }
.rec-score.sm { font-size: 22px; }
.rev-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.rev-actions .btn { flex: 1 1 180px; }
.rev-note { display: block; margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.rec-box.sent { background: var(--leaf-soft); border: 2px solid #BFE6CF; }
.sent-ok { display: flex; align-items: center; gap: 12px; }
.sent-ok b { display: block; font-size: 20px; }
.sent-ok small { color: var(--ink-2); font-size: 15px; }
.sent-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.sent-ic .ic { width: 24px; height: 24px; stroke-width: 3; }
.ml-go.rep { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- v10: my report ---------- */
.report { max-width: 960px; margin: 0 auto; display: grid; gap: 16px; }
.rp-head { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.rp-title h2 { font-size: 30px; margin-top: 2px; }
.rp-stats { display: flex; gap: 10px; }
.rp-stat { min-width: 112px; border-radius: 18px; padding: 12px 14px; background: #F5F9FB; text-align: center; }
.rp-stat b { display: block; font-size: 34px; font-weight: 800; line-height: 1.05; }
.rp-stat span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.rp-stat.rpm { background: var(--ink); color: #fff; } .rp-stat.rpm span { color: #C9D4EA; }
.rp-stat.ok b { color: var(--leaf); } .rp-stat.bad b { color: var(--red); }
.rp-filter { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 5px; gap: 4px; box-shadow: var(--shadow-s); justify-self: start; }
.rp-filter button { border: 0; background: transparent; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 16px; color: var(--ink-2); }
.rp-filter button.on { background: var(--ink); color: #fff; }
.rp-filter small { background: var(--red-soft); color: var(--red); border-radius: 99px; padding: 1px 8px; margin-left: 4px; font-size: 13px; }
.rp-filter button.on small { background: rgba(255,255,255,.18); color: #fff; }
.rp-parts { display: grid; gap: 14px; }
.rp-part { background: var(--paper); border-radius: 24px; box-shadow: var(--shadow-s); padding: 18px 20px; }
.rp-part header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.rp-book { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-d); }
.rp-part h3 { font-size: 20px; margin-top: 3px; }
.rp-score { white-space: nowrap; color: var(--ink-2); font-weight: 700; }
.rp-score b { font-size: 26px; color: var(--ink); }
.rp-bar { height: 6px; background: var(--red-soft); border-radius: 99px; overflow: hidden; margin: 12px 0 4px; }
.rp-bar i { display: block; height: 100%; background: var(--leaf); }
.rp-part.empty { opacity: .6; }
.rp-qs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.rp-qs li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding: 11px 12px; border-radius: 14px; font-size: 17px; line-height: 1.5; }
.rp-qs li.ok { background: #F5F9FB; }
.rp-qs li.bad { background: #FFF5F5; box-shadow: inset 3px 0 0 var(--red); }
.rp-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.rp-ic .ic { width: 16px; height: 16px; stroke-width: 3; }
li.ok .rp-ic { background: var(--leaf-soft); color: var(--leaf); }
li.bad .rp-ic { background: var(--red-soft); color: var(--red); }
.rp-text .good { color: #1E7D4E; }
.rp-gap { display: inline-block; width: 90px; border-bottom: 2px dashed #9FB3C8; margin: 0 4px; vertical-align: baseline; }
.rp-text .arrow { color: var(--ink-2); margin: 0 4px; }
.rp-ans { display: flex; gap: 10px; align-items: baseline; margin-top: 4px; font-size: 16px; }
.rp-ans .lab { min-width: 104px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.rp-ans .good { color: #1E7D4E; font-weight: 700; }
.rp-ans .wrongv { color: var(--red); text-decoration-thickness: 2px; }
.rp-tag { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; padding-top: 4px; }
li.bad .rp-tag { color: var(--red); }
.rp-allok { display: none; margin: 10px 0 0; color: #1E7D4E; font-weight: 700; align-items: center; gap: 8px; }
.only-bad .rp-qs li.ok { display: none; }
.only-bad .rp-part.all-ok .rp-allok { display: flex; }
.only-bad .rp-part.empty { display: none; }
.rp-foot { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 820px) {
  .rp-head { padding: 18px 16px; border-radius: 22px; }
  .rp-title h2 { font-size: 24px; }
  .rp-stats { width: 100%; } .rp-stat { flex: 1; min-width: 0; padding: 10px 8px; }
  .rp-stat b { font-size: 28px; }
  .rp-filter { justify-self: stretch; } .rp-filter button { flex: 1; padding: 9px 10px; font-size: 15px; }
  .rp-part { padding: 16px 14px; border-radius: 20px; }
  .rp-qs li { grid-template-columns: 26px 1fr; gap: 10px; font-size: 16px; }
  .rp-tag { grid-column: 2; padding-top: 0; }
  .rp-ans { flex-direction: column; gap: 0; }
}
.finish .panel-foot { gap: 10px; flex-wrap: wrap; }

/* ----- Reminder before Finish when parts are not recorded ----- */
.pop.remind { top: 50%; bottom: auto; transform: translate(-50%, -50%); text-align: center; padding: 24px 22px 20px; }
.pop.remind .hint { margin: 8px 0 14px; }
.rm-ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: #FDEBDD; color: #C2581F; }
.rm-ic svg { width: 28px; height: 28px; }
.rm-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.rm-parts span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.rm-parts span svg { width: 15px; height: 15px; }
.rm-parts .ok { background: #E3F5EC; color: #1E7F56; }
.rm-parts .miss { background: #FDEBDD; color: #C2581F; }
.rm-btns { display: flex; flex-direction: column; gap: 10px; }
.rm-btns .btn { width: 100%; justify-content: center; }
.sum-list li.not-rec { background: #FFF4EC; }
.sum-list li.not-rec b { color: #C2581F; font-size: 16px; }
.rec-note { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 16px; border-radius: 16px; background: #FFF4EC; color: #8A4416; font-size: 16px; }
.rec-note svg { width: 20px; height: 20px; flex: 0 0 auto; }
.sum-list li.not-rec small a { color: #C2581F; font-weight: 600; font-size: 15px; }
.rec-note a { color: #C2581F; font-weight: 600; }
