@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url(/fonts/unbounded/unbounded-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(/fonts/manrope/manrope-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(/fonts/manrope/manrope-latin-700-normal.woff2) format('woff2'); }
:root { --bg: #0F1024; --card: #181A38; --line: #2A2D55; --ink: #ECEBF5; --muted: #A9ABCF; --acc: #C9F73A; --acc-ink: #14162E; --vio: #9D86FF; --bad: #FF8FA3; --good: #7FE0B5; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Manrope', system-ui, sans-serif; font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--vio); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
h1 { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 22px; }
h2 { font-size: 17px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 3; }
.logo { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 17px; white-space: nowrap; }
.logo span { color: var(--acc); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.tabs a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; }
.tabs a.on { background: var(--line); color: var(--ink); }
main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi b { font-family: 'Unbounded', sans-serif; font-size: 26px; display: block; }
.kpi span { color: var(--muted); font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
input, select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 90px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 8px; border: 0; background: var(--acc); color: var(--acc-ink); font-weight: 800; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.danger { background: transparent; border: 1px solid var(--bad); color: var(--bad); }
.btn.sm { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--line); }
.pill.on { background: var(--good); color: #0F1024; }
.pill.off { background: var(--bad); color: #0F1024; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--vio); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.chart div { flex: 1; max-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 11px; color: var(--muted); }
.chart i { display: block; width: 100%; background: var(--vio); border-radius: 4px 4px 0 0; min-height: 2px; }
.err { color: var(--bad); font-weight: 700; min-height: 1em; margin: 0; }
.ok { color: var(--good); font-weight: 700; }
.login { max-width: 420px; margin: 10vh auto; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.qr { background: #FFFFFF; padding: 10px; border-radius: 10px; align-self: center; }
code { background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .9em; line-height: 1.1; }
.frac > span:first-child { border-bottom: 1.5px solid currentColor; }
.preview { background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 12px; }
.fig { max-width: 360px; width: 100%; height: auto; }
.fig .f-line { stroke: var(--ink); stroke-width: 2; fill: none; } .fig .f-linefill { fill: var(--ink); } .fig .f-grid { stroke: var(--line); }
.fig .f-acc { fill: var(--acc); } .fig .f-shape { fill: #1F2245; stroke: var(--ink); stroke-width: 2.5; } .fig .f-txt, .fig .f-acctxt { fill: var(--ink); } .fig .f-accline { stroke: var(--acc); stroke-width: 3; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 800; z-index: 9; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
@media (max-width: 600px) { .top { padding: 10px 12px; } main { padding: 16px 12px 40px; } }
.fig .f-bg { fill: transparent; stroke: none; } .fig.sci { max-width: 420px; } .fig.mini { width: 44px; height: auto; display: inline-block; vertical-align: middle; } .fig.mini .f-bg { fill: transparent; }
.fig .f-halo { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
/* ---------- Cartes (aperçu Histoire-Géo, même rendu que l'appli) ---------- */
:root { --m-sea: #141632; --m-sea2: #171A3C; --m-land: #262A57; --m-line: #4A4F8A; --m-txt: #ECEBF5; --m-grat: rgba(255,255,255,.06); --accent: var(--acc); --radius: 14px; }
body.y3 { --m-sea: #141632; --m-sea2: #171A3C; --m-land: #262A57; --m-line: #4A4F8A; --m-txt: #ECEBF5; --m-grat: rgba(255,255,255,.06); }
.kmap { display: block; }
.kmap-svg { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) - 4px); }
.kmap .m-sea { fill: var(--m-sea); }
.kmap .m-sea2 { fill: var(--m-sea2); }
.kmap .m-grat { fill: none; stroke: var(--m-grat); stroke-width: .6; }
.kmap .m-land { fill: var(--m-land); stroke: var(--m-line); stroke-width: .5; stroke-linejoin: round; transition: fill .15s; }
.kmap .m-dim { opacity: .55; }
.kmap .m-inset { fill: var(--m-sea2); stroke: var(--m-line); stroke-width: 1; }
.kmap .m-ins-t, .kmap .m-lab { font: 800 calc(8px / var(--kz, 1)) 'Manrope', sans-serif; fill: var(--m-txt); text-anchor: middle; paint-order: stroke; stroke: var(--m-land); stroke-width: calc(2.5px / var(--kz, 1)); }
.kmap .m-route { fill: none; stroke-width: 2.5; stroke-dasharray: 6 4; stroke-linecap: round; }
.kmap .m-dot { fill: #E5484D; stroke: #FFFFFF; stroke-width: 1.5; }
.kmap .m-dot-c { fill: #FFFFFF; pointer-events: none; }
.kmap .m-pt-t { font: 800 calc(9px / var(--kz, 1)) 'Manrope', sans-serif; fill: var(--m-txt); paint-order: stroke; stroke: var(--m-sea); stroke-width: calc(3px / var(--kz, 1)); }
.kmap .m-pt-t.sea { font-style: italic; font-weight: 700; fill: #2F6BB5; stroke: none; }
.kmap .m-pt-t.sea { fill: #8FB8FF; }
.kmap .m-tap { cursor: pointer; outline: none; }
.kmap path.m-tap:hover, .kmap path.m-tap:focus { fill: color-mix(in srgb, var(--accent) 35%, var(--m-land)); }
.kmap path.m-sel { fill: var(--accent) !important; }
.kmap g.m-tap .m-dot { fill: #FFB020; }
.kmap g.m-tap:hover .m-dot, .kmap g.m-tap:focus .m-dot { fill: var(--accent); }
.kmap g.m-sel .m-dot { fill: var(--accent); stroke: var(--ink); stroke-width: 2.5; }
.kmap path.m-good { fill: #2EC4A6 !important; } .kmap g.m-good .m-dot { fill: #2EC4A6; }
.kmap path.m-bad { fill: #FF5A5F !important; } .kmap g.m-bad .m-dot { fill: #FF5A5F; }
.kmap .m-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; font-weight: 700; }
.kmap .m-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--m-line); }
.kmap .m-land, .kmap .m-grat, .kmap .m-route { vector-effect: non-scaling-stroke; } .kmap .m-land { stroke-width: .7; }
.kmap { max-width: 420px; } .kmap-view { position: relative; } .kmap-zoom { position: absolute; left: 6px; bottom: 6px; display: flex; flex-direction: column; gap: 4px; } .kmap-zoom button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--m-line); background: var(--m-land); color: var(--m-txt); font-weight: 800; padding: 0; }
.kschema { max-width: 420px; } .kschema .sch-svg { display: block; width: 100%; height: auto; } .kschema .sch-hi > * { stroke: #E8A400 !important; stroke-width: 4 !important; }
/* ---------- Animations des schémas de SVT (classes sv-*) ---------- */
.kschema .sv-beat, .kschema .sv-breathe, .kschema .sv-spin, .kschema .sv-ripple, .kschema .sv-glow2 { transform-box: fill-box; transform-origin: center; }
.kschema .sv-sway { transform-box: view-box; }
.kschema .sv-beat { animation: svbeat 1s ease-in-out infinite; }
.kschema .sv-breathe { animation: svbreathe 3.4s ease-in-out infinite; }
.kschema .sv-flow { animation: svflow 1.1s linear infinite; }
.kschema .sv-flow-r { animation: svflowr 1.1s linear infinite; }
.kschema .sv-rise { animation: svrise 2.8s ease-out infinite; }
.kschema .sv-rise2 { animation: svrise2 4s ease-in-out infinite; }
.kschema .sv-drop { animation: svdrop 1.2s linear infinite; }
.kschema .sv-float { animation: svfloat 3.2s ease-in-out infinite; }
.kschema .sv-sway { animation: svsway 4.5s ease-in-out infinite; }
.kschema .sv-spin { animation: svspin 14s linear infinite; }
.kschema .sv-ripple { animation: svripple 2.4s ease-out infinite; }
.kschema .sv-shake { animation: svshake .6s ease-in-out infinite; }
.kschema .sv-travel { animation: svtravel 2s linear infinite; }
.kschema .sv-down { animation: svdown 2.4s ease-in infinite; }
.kschema .sv-glow { animation: svglow 2s ease-in-out infinite; }
.kschema .sv-glow2 { animation: svglow2 2.6s ease-in-out infinite; }
.kschema .sv-drift { animation: svdrift 6s ease-in-out infinite; }
@keyframes svbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.13); } 28% { transform: scale(1); } 42% { transform: scale(1.07); } 56% { transform: scale(1); } }
@keyframes svbreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes svflow { to { stroke-dashoffset: -24; } }
@keyframes svflowr { to { stroke-dashoffset: 24; } }
@keyframes svrise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
@keyframes svrise2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes svdrop { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@keyframes svfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes svsway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes svspin { to { transform: rotate(360deg); } }
@keyframes svripple { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes svshake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.6px); } 75% { transform: translateX(1.6px); } }
@keyframes svtravel { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(190px); opacity: 0; } }
@keyframes svdown { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(56px); opacity: 0; } }
@keyframes svglow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes svglow2 { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.04); filter: brightness(1.12); } }
@keyframes svdrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .kschema * { animation: none !important; } }
@media print { .kschema * { animation: none !important; } }
.kschema .m-good * { fill: #2EC4A6 !important; } .kschema .m-bad * { fill: #FF5A5F !important; }
.kschema .sch-bg { stroke: rgba(0,0,0,.06); stroke-width: 1.5; }

/* ---------- Anglais : images, écoute, BD, lecture ---------- */
.en-ic { display: inline-block; vertical-align: middle; }
.en-pic { position: relative; display: grid; place-items: center; margin: 4px auto 0; width: 190px; height: 170px; border-radius: 26px; background: radial-gradient(circle at 30% 25%, #FFFFFF 0 18%, transparent 19%), var(--pc, #FFF4D6); box-shadow: inset 0 -6px 0 rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.12); overflow: hidden; }
.en-pic::before { content: ''; position: absolute; inset: auto -20px -40px auto; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.45); }
.en-pic .en-ic { position: relative; animation: enpop .5s cubic-bezier(.3,1.6,.5,1) both; filter: drop-shadow(0 4px 0 rgba(0,0,0,.08)); }
.en-pic .cap { position: absolute; bottom: 8px; font-weight: 800; font-size: 13px; color: #2B2D42; }
@keyframes enpop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.en-listen { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 18px 0 8px; }
.tts { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 800; color: #FFFFFF; background: linear-gradient(160deg, #E8364F, #B5112B); border-radius: 999px; padding: 14px 22px; box-shadow: 0 6px 0 #7E0A1D, 0 10px 22px rgba(200,16,46,.35); transition: transform .1s; }
.tts:active { transform: translateY(3px); box-shadow: 0 3px 0 #7E0A1D; }
.tts.slow { background: linear-gradient(160deg, #3B6FE0, #1F3F8F); box-shadow: 0 6px 0 #142B66, 0 10px 22px rgba(31,63,143,.3); padding: 10px 16px; font-size: 14px; }
.tts.on { animation: ttspulse .8s ease-in-out infinite; }
.tts svg { flex: none; }
@keyframes ttspulse { 50% { transform: scale(1.06); } }
.en-listen .tts:not(.slow)::after { content: ''; position: absolute; }
.en-comic { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 20px; background: repeating-linear-gradient(45deg, #FFF7E0 0 12px, #FFF2D0 12px 24px); border: 3px solid #2B2D42; box-shadow: 4px 4px 0 #2B2D42; }
.en-comic .row { display: flex; align-items: flex-end; gap: 10px; }
.en-comic .row.r { flex-direction: row-reverse; }
.en-comic .av { flex: none; width: 58px; text-align: center; }
.en-comic .av-img { width: 54px; height: 54px; border-radius: 50%; background: #FFFFFF; border: 2.5px solid #2B2D42; object-fit: cover; display: block; margin: 0 auto; }
.en-comic .nm { display: block; font-size: 11px; font-weight: 800; color: #2B2D42; margin-top: 2px; }
.en-comic .bub { position: relative; background: #FFFFFF; color: #2B2D42; border: 2.5px solid #2B2D42; border-radius: 18px; padding: 10px 14px; font-weight: 700; font-size: 16px; line-height: 1.3; max-width: 76%; }
.en-comic .row.l .bub::after, .en-comic .row.r .bub::after { content: ''; position: absolute; bottom: 10px; width: 14px; height: 14px; background: #FFFFFF; border: 2.5px solid #2B2D42; border-top: 0; border-right: 0; }
.en-comic .row.l .bub::after { left: -9px; transform: rotate(45deg); }
.en-comic .row.r .bub::after { right: -9px; transform: rotate(-135deg); }
.en-comic .bub.q { background: #FFD84D; font-size: 26px; font-weight: 900; text-align: center; min-width: 70px; animation: ttspulse 1.4s ease-in-out infinite; }
.en-comic .row.l .bub.q::after, .en-comic .row.r .bub.q::after { background: #FFD84D; }
.en-read { display: flex; gap: 12px; align-items: flex-start; background: #FFFDF6; color: #2B2D42; border-radius: 18px; padding: 14px; border: 1px solid #F0E3C0; box-shadow: 0 6px 18px rgba(0,0,0,.08); text-align: left; }
.en-read p { margin: 6px 0 0; line-height: 1.5; font-size: 15px; }
.en-read .en-ic { flex: none; }
.en-board { background: linear-gradient(180deg, #EAF2FF, #FFFFFF); border-radius: 18px; padding: 12px; color: #2B2D42; }
.en-board .t { font-weight: 900; font-size: 16px; margin-bottom: 8px; text-align: center; }
.en-board .g { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.en-board .it { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: #FFFFFF; border-radius: 14px; padding: 8px 4px; box-shadow: 0 3px 0 rgba(43,45,66,.12); cursor: pointer; font: inherit; color: inherit; }
.en-board .it b { font-size: 13px; } .en-board .it span { font-size: 11px; color: #5B5E78; }
.en-board .it.on { outline: 3px solid #C8102E; }
body.y6 .en-comic, body.y6 .en-pic { border-width: 3px; }
body.y3 .en-pic, body.y4 .en-pic { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.35); }
@media (prefers-reduced-motion: reduce) { .en-pic .en-ic, .tts.on, .en-comic .bub.q { animation: none; } }
.en-board { width: 100%; box-sizing: border-box; } .fiche-fig .en-board .g { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 420px) { .fiche-fig .en-board .g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== Français : cahier, mots à toucher, conjugaison, livre ===== */
.fr-cahier { position: relative; background: #FFFDF6; color: #1A1A2E; border-radius: 14px; padding: 18px 16px 18px 34px; border: 2px solid #E9E2CF; background-image: repeating-linear-gradient(transparent 0 33px, #CFE0F5 33px 34px); background-position: 0 14px; }
.fr-cahier::before { content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: #F2A3A3; }
.fr-cahier .ktap-box { margin: 0; font: 600 20px/34px 'Manrope', sans-serif; letter-spacing: .1px; word-spacing: 2px; }
.fr-cahier .fr-w { border-radius: 8px; padding: 1px 3px; }
.fr-cahier .fr-w.hi { font-weight: 900; background: #FFE14D; box-shadow: 0 0 0 2px #FFE14D; color: #111; }
.fr-cahier .m-tap { cursor: pointer; transition: background .15s, transform .1s; outline: none; box-shadow: inset 0 -2px 0 rgba(47, 107, 255, .25); }
.fr-cahier .m-tap:hover, .fr-cahier .m-tap:focus-visible { background: #E3ECFF; }
.fr-cahier .m-tap:active { transform: scale(.96); }
.fr-cahier .m-tap.m-sel { background: #2F6BFF; color: #fff; box-shadow: none; }
.fr-cahier .m-tap.m-good { background: #2EC4A6; color: #fff; box-shadow: none; }
.fr-cahier .m-tap.m-bad { background: #E5484D; color: #fff; box-shadow: none; text-decoration: line-through; }
.fr-cahier.show .ktap-box { line-height: 52px; }
.fr-cahier.show .fr-w.lab { position: relative; display: inline-block; line-height: 26px; padding: 0 4px; margin: 0 1px 14px; border-bottom: 3px solid var(--tc); }
.fr-cahier.show .fr-w.lab i { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 3px; font: 800 10px/1 'Manrope', sans-serif; font-style: normal; color: #fff; background: var(--tc); padding: 3px 5px; border-radius: 5px; white-space: nowrap; }
.fr-conj-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fr-conj { background: #FFFDF6; color: #1A1A2E; border: 2px solid #E9E2CF; border-radius: 12px; overflow: hidden; }
.fr-conj-h { background: #D6336C; color: #fff; font: 800 13px/1.2 'Manrope', sans-serif; padding: 7px 10px; }
.fr-conj table { width: 100%; border-collapse: collapse; font: 600 14px/1.3 'Manrope', sans-serif; }
.fr-conj td { padding: 5px 10px; border-top: 1px solid #EFE8D6; }
.fr-conj td.p { color: #8A7F66; width: 1%; white-space: nowrap; padding-right: 4px; }
.fr-conj td.v { font-weight: 800; }
.fr-conj tr.hi td { background: #FFF3B0; }
.fr-book { position: relative; background: #FFFBF0; color: #2A2418; border-radius: 6px 14px 14px 6px; padding: 16px 18px 14px 22px; border: 1px solid #E8DCC0; box-shadow: inset 8px 0 10px -6px rgba(120, 90, 40, .35), 0 3px 0 #E8DCC0; font: 500 16px/1.6 Georgia, 'Times New Roman', serif; }
.fr-book-h { font: 800 13px/1.3 'Manrope', sans-serif; text-transform: uppercase; letter-spacing: 1px; color: #D6336C; margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
.fr-book-h span { text-transform: none; letter-spacing: 0; font-weight: 600; font-style: italic; color: #8A7F66; }
.fr-book p { margin: 0 0 8px; }
.fr-book p:last-child { margin-bottom: 0; }
.fr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.fr-cards-h { grid-column: 1 / -1; font: 800 13px/1 'Manrope', sans-serif; text-transform: uppercase; letter-spacing: 1px; color: #D6336C; }
.fr-card { background: #FFFDF6; color: #1A1A2E; border-radius: 12px; padding: 10px 12px; border: 2px solid #EFE8D6; border-left: 6px solid var(--tc); display: flex; flex-direction: column; gap: 3px; }
.fr-card b { font: 800 14px/1.2 'Manrope', sans-serif; }
.fr-card span { font: 500 13px/1.35 'Manrope', sans-serif; color: #4A4E6A; }
.fr-listen .tts:first-child { background: #D6336C; color: #fff; }
textarea.fr-in { resize: vertical; min-height: 54px; font: 600 18px/1.4 'Manrope', sans-serif; }
@media (max-width: 420px) { .fr-cahier .ktap-box { font-size: 18px; } }
