/* Student-friendly illustrated-book visual refresh (v1.1) */
:root {
  --ink: #253a58;
  --ink-soft: #536c82;
  --muted: #74869a;
  --paper: #fffefb;
  --paper-warm: #fff7e9;
  --line: #e9dfd0;
  --teal: #2895a2;
  --teal-dark: #19727f;
  --coral: #f27676;
  --gold: #f2bb55;
  --blue: #5ba9d4;
  --shadow: 0 25px 70px rgba(55, 69, 100, .17);
  --radius: 25px;
}

html { background: #fff5e7; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 211, 130, .36), transparent 24rem),
    radial-gradient(circle at 94% 18%, rgba(133, 208, 218, .28), transparent 26rem),
    linear-gradient(145deg, #fff9ef 0%, #f2f8ff 55%, #fff1ed 100%);
  overflow-x: hidden;
}
.ambient { opacity: .5; filter: blur(4px); }
.ambient-one { background: #ffcc76; }
.ambient-two { background: #f19aa5; }
.app-shell { width: min(1540px, 100%); padding: 0 34px 26px; }
.topbar {
  height: 78px;
  border-bottom: 1px solid rgba(74, 111, 137, .13);
}
.brand { color: #253a58; gap: 12px; }
.brand-mark {
  border: 2px solid #f3c46b;
  background: linear-gradient(145deg, #fff, #fff1ce);
  box-shadow: 0 5px 15px rgba(202, 154, 68, .15);
}
.brand-mark span { background: linear-gradient(#f27a79, #f2bc62); }
.brand-copy strong { font-size: 17px; color: #263c5b; }
.brand-copy small { color: #73859a; font-size: 11px; }
.top-meta { gap: 11px; }
.chapter-chip {
  border: 1px solid #e8d9bd;
  background: rgba(255,255,255,.74);
  color: #62758c;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(74,91,116,.04);
}
.chapter-chip i { background: #ef9b66; box-shadow: 0 0 0 4px rgba(239,155,102,.14); }
.icon-button {
  color: #48627b;
  border-color: #dce5ec;
  background: #fff;
  box-shadow: 0 5px 15px rgba(64,88,117,.07);
}
.icon-button:hover { background: #f1f8ff; }
.top-tools { display:flex; align-items:center; gap:9px; }
.tool-pill {
  min-height: 39px; padding: 0 13px; border:1px solid #dce5ec; border-radius: 999px;
  background: rgba(255,255,255,.9); color:#526982; display:inline-flex; align-items:center; gap:7px;
  cursor:pointer; font-size:12px; font-weight:800; box-shadow:0 5px 15px rgba(64,88,117,.06);
}
.tool-pill:hover { background:#fff4d9; border-color:#f1d49b; }
.tool-emoji { font-size:17px; }
.workspace { grid-template-columns: 205px minmax(0,1fr); gap:24px; padding-top:24px; }
.side-panel { color:#526780; padding-top:13px; }
.side-panel .eyebrow { color:#8a7b67; font-size:12px; }
.progress-line { height:8px; background:#e8eefa; }
.progress-line span { background:linear-gradient(90deg,#f2a66e,#f2c75e,#69b8bf); }
.progress-caption { color:#71839a; font-size:11px; }
.progress-caption strong { color:#dd8c57; font-size:13px; }
.chapter-nav { gap:7px; margin-top:21px; }
.chapter-nav button {
  padding:11px 10px; border-radius:14px; color:#647991; font-size:12px; font-weight:700;
}
.chapter-nav button:hover { background:rgba(255,255,255,.78); color:#2d5977; }
.chapter-nav button.active {
  background:#fff; color:#274b70; box-shadow:0 6px 18px rgba(63,94,130,.09), inset -3px 0 #f1b85c;
}
.chapter-nav .nav-num { width:25px; height:25px; color:#66809a; border-color:#dbe5ee; background:#f8fbff; font-size:11px; }
.chapter-nav button.active .nav-num { color:#925b2c; border-color:#f3d8a8; background:#fff2d9; }
.side-note { border-top-color:#dce5ec; margin-top:23px; }
.note-icon { color:#c4774f; background:#fff0dc; width:31px; height:31px; font-size:15px; }
.side-note strong { font-size:12px; color:#395a73; }
.side-note p { font-size:11px; color:#7f91a4; }
.side-footer { color:#8597a8; font-size:10px; }
.status-dot { background:#69b68e; }
.reader-heading { color:#304c69; margin-bottom:15px; }
.reader-heading .eyebrow { color:#bc8b54; font-size:12px; }
.reader-heading h1 { color:#274562; font-size:clamp(22px,2.4vw,32px); letter-spacing:-.6px; }
.soft-button {
  height:39px; padding:0 14px; border-radius:999px; border-color:#dce5ed; color:#4c6a83;
  background:rgba(255,255,255,.9); font-size:12px; font-weight:800; box-shadow:0 4px 13px rgba(67,92,125,.06);
}
.soft-button:hover,.soft-button.active { background:#fff3d7; color:#98642f; border-color:#f2d398; }
.sound-glyph,.fullscreen-glyph { color:#e28d5a; }

/* Open-book spread */
.book-stage { padding-bottom:19px; perspective:1900px; }
.book-spread {
  min-height:690px;
  grid-template-columns:minmax(245px,.78fr) minmax(0,1.55fr);
  align-items:stretch;
  gap:0;
  position:relative;
  filter:drop-shadow(0 24px 34px rgba(55,76,104,.13));
}
.book-spread::before {
  content:""; position:absolute; top:10px; bottom:10px; left:calc(245px * .78 / 2); width:18px;
  background:linear-gradient(90deg,rgba(68,76,85,.10),rgba(255,255,255,.45),rgba(68,76,85,.08));
  z-index:4; pointer-events:none; opacity:.38; border-radius:50%; filter:blur(5px);
}
.companion-page {
  direction:rtl; min-height:690px; padding:25px 26px 22px;
  background:linear-gradient(160deg,#fff2ce 0%,#fff9e9 45%,#fff0e9 100%);
  border:1px solid #ecdab7; border-left:0; border-radius:18px 0 0 18px;
  color:#3e5872; display:flex; flex-direction:column; position:relative;
  box-shadow:inset -8px 0 18px rgba(191,151,84,.055), inset 0 0 0 5px rgba(255,255,255,.32);
}
.companion-page::before {
  content:""; position:absolute; inset:11px; border:1px dashed rgba(206,163,94,.28); border-radius:13px; pointer-events:none;
}
.companion-page::after { content:none; }
.companion-topline { position:relative; z-index:1; display:flex; justify-content:space-between; align-items:center; color:#a67a45; font-weight:900; font-size:13px; }
.companion-seal { width:29px;height:29px;border-radius:10px;display:grid;place-items:center;background:#fff;border:1px solid #f1dba9;color:#e3a44c;font-size:17px; }
.companion-content { position:relative; z-index:1; margin:auto 0; }
.companion-hero-emoji {
  width:92px;height:92px;border-radius:30px;display:grid;place-items:center;margin:12px auto 18px;
  background:linear-gradient(145deg,#fff,#ffe8e4);box-shadow:0 12px 24px rgba(203,122,111,.12);
  font-size:48px; animation:stickerBob 3.2s ease-in-out infinite;
}
.companion-badge { display:inline-flex; padding:7px 12px; border-radius:999px; color:#9b713e; background:#fff; border:1px solid #f0dfbd; font-size:11px; font-weight:900; }
.companion-content h2 { color:#385777; font-size:25px; line-height:1.5; margin:14px 0 8px; font-weight:1000; }
.companion-content p { color:#657b90; font-size:15px; line-height:2.1; margin:0; font-weight:600; }
.companion-tip { margin-top:22px; display:grid; gap:7px; padding:13px 14px; border-radius:15px; color:#587283; background:rgba(255,255,255,.75); border:1px solid rgba(226,201,157,.55); font-size:12px; line-height:1.9; }
.companion-tip strong { color:#cb8351; font-size:12px; }
.companion-clock { position:relative; z-index:1; display:grid; gap:3px; padding:12px 14px; border-radius:15px; background:rgba(255,255,255,.78); border:1px solid #f1dfbd; color:#8b7b62; }
.companion-clock span { font-size:11px; font-weight:800; }
.companion-clock strong { color:#416884; font:800 22px/1.4 Tahoma,sans-serif; letter-spacing:1px; direction:ltr; text-align:right; }
.companion-clock small { color:#9b8b74; font-size:10px; }
.companion-stickers { position:relative; z-index:1; display:flex; gap:8px; margin:14px 0 0; }
.companion-stickers span { width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.82);border:1px solid #f0dfc1;font-size:16px;animation:stickerBob 3.8s ease-in-out infinite; }
.companion-stickers span:nth-child(2) { animation-delay:.4s; }.companion-stickers span:nth-child(3) { animation-delay:.8s; }.companion-stickers span:nth-child(4) { animation-delay:1.2s; }
.companion-bottom { position:relative; z-index:1; display:flex; justify-content:space-between; gap:8px; margin-top:17px; padding-top:13px; border-top:1px dashed #e5cfaa; color:#a58b68; font-size:10px; font-weight:800; }
.right-page-wrap { min-width:0; position:relative; isolation:isolate; transform-style:preserve-3d; }
.paper {
  min-height:690px; padding:43px 48px 42px; border-radius:0 18px 18px 0;
  background:
    linear-gradient(90deg,rgba(226,219,202,.19),transparent 17px),
    linear-gradient(180deg,#fffefb 0%,#fffdf8 100%);
  border:1px solid #e8dfd1; border-right:1px solid #eadfce;
  box-shadow:inset 8px 0 18px rgba(140,126,99,.045), inset 0 0 0 5px rgba(255,255,255,.65);
  color:#304d6d; overflow:visible; position:relative;
}
.paper:before { right:20px; background:linear-gradient(#f5d79b,#f7b3a8,#a9cfe4); opacity:.9; width:4px; border-radius:20px; }
.paper:after { content:""; position:absolute; inset:13px; border:1px solid rgba(229,216,194,.35); border-radius:7px; pointer-events:none; }
.page-content { position:relative; z-index:1; }
.paper-topline { margin-bottom:27px; align-items:center; }
.page-kicker { color:#a77b48; font-size:13px; font-weight:900; display:inline-flex; align-items:center; gap:7px; }
.kicker-sparkle { color:#f1b751; font-size:17px; }
.page-stamp { color:#8092a1; font-size:11px; font-weight:800; background:#f7f4ec; border-radius:30px; padding:6px 10px; }
.page-title { color:#2c4d70; font-size:clamp(29px,3.1vw,41px); line-height:1.55; letter-spacing:-.6px; font-weight:1000; margin:8px 0 11px; }
.page-lead { color:#57738b; font-size:19px; line-height:2.05; font-weight:700; margin:0 0 20px; }
.body-copy { color:#405c78; font-size:17px; line-height:2.25; margin:0 0 17px; font-weight:500; }
.audio-row { margin:16px 0 22px; gap:11px; }
.audio-button { min-height:46px; padding:0 18px; border-radius:999px; background:linear-gradient(110deg,#ffedce,#ffe1d8); color:#875d39; border:1px solid #f2d4a3; font-size:14px; font-weight:900; box-shadow:0 5px 14px rgba(185,130,67,.08); }
.audio-button .play-icon { width:26px;height:26px;font-size:11px;background:#fff;color:#df8d5e; }
.audio-note { color:#8795a1; font-size:11px; }
.lesson-grid { gap:27px; align-items:start; }
.image-figure { border-radius:20px; padding:12px; background:#f5f8fb; border-color:#e1eaf0; box-shadow:0 7px 18px rgba(65,94,122,.06); }
.image-figure img { max-height:320px; }
.image-figure figcaption { color:#778c9d; font-size:12px; line-height:1.8; padding-top:9px; }
.callout-grid { gap:11px; }
.callout { border:1px solid #efdfc4; border-radius:15px; padding:14px 16px; background:#fff8e8; }
.callout:nth-child(2n) { background:#eef7fb; border-color:#d9eaf1; }
.callout strong { color:#b2763d; font-size:15px; }
.callout p { color:#62788b; font-size:14px; line-height:1.9; }
.fact-card { padding:16px 18px; background:#fff4e1; border:1px solid #f3dfba; border-radius:16px; }
.fact-card strong { color:#a36b39; font-size:15px; }.fact-card p { color:#667c8f; font-size:14px; line-height:2; }
.cover-page { min-height:560px; gap:20px; }
.cover-label { background:#fff0d8; border:1px solid #f5dcae; color:#a76c3e; font-size:13px; padding:9px 15px; }
.cover-title { color:#2d5277; font-size:clamp(42px,5vw,61px); line-height:1.4; }
.cover-subtitle { color:#637b91; font-size:19px; line-height:2.1; }
.cover-tagline { color:#cd8253; font-size:16px; font-weight:900; }
.cover-start { padding:14px 22px; border-radius:999px; background:linear-gradient(105deg,#f38d79,#f4b85f); box-shadow:0 10px 20px rgba(219,135,93,.19); font-size:15px; font-weight:900; }
.cover-bottomline { color:#8695a1; font-size:12px; }
.cover-art { max-width:410px; }

/* Interactive controls: readable and touch friendly */
.model-card { border:1px solid #dce7ef; border-radius:19px; background:#f6fbff; padding:15px; box-shadow:0 9px 23px rgba(64,103,138,.07); }
.model-toolbar strong { color:#365b7c; font-size:16px; }.model-toolbar span { color:#7f94a5; font-size:12px; }
.model-actions { gap:7px; }
.tiny-control { min-height:37px; padding:0 12px; border:1px solid #dae6ee; background:#fff; border-radius:999px; color:#57748c; font-size:12px; font-weight:800; }
.tiny-control.active,.tiny-control:hover { background:#fff0d8; border-color:#f0d39d; color:#986a39; }
.model-viewport { min-height:380px; height:390px; border-radius:17px; background:radial-gradient(circle at 50% 45%,#ffffff 0,#edf5fa 70%,#e7f0f6 100%); }
.model-message { font-size:12px; color:#728ca0; }
.model-footer { margin-top:13px; }
.part-selector { gap:7px; }
.part-chip { min-height:36px; padding:0 12px; font-size:12px; border:1px solid #dce6eb; background:#fff; color:#6a8294; border-radius:999px; }
.part-chip.active { background:#e9f5f8; border-color:#a9d6dd; color:#267889; }
.part-info strong { color:#315f7d; font-size:15px; }.part-info p { color:#6e8596; font-size:13px; line-height:1.8; }
.model-disclaimer { color:#8999a6; font-size:11px; line-height:1.9; }
.flow-layout { gap:18px; }
.flow-step { padding:13px 14px; border-radius:15px; background:#fff; border-color:#e4e9e7; }
.flow-step.active { background:#fff6e4; border-color:#f0d5a4; box-shadow:inset -3px 0 #efa959; }
.flow-step .step-num { width:31px;height:31px;border-radius:10px;font-size:13px; }
.flow-step strong { color:#3f6682; font-size:14px; }.flow-step p { color:#748a9b; font-size:12px; line-height:1.8; }
.flow-selected { background:#eef7fb; color:#607e91; font-size:13px; border:1px solid #dcecf1; }.flow-selected strong { color:#398399; font-size:14px; }
.quiz-list { gap:16px; }
.question-card { border-radius:17px; padding:18px; background:#fff; border-color:#e4eaf0; }
.question-title span { width:31px;height:31px;border-radius:10px;font-size:13px; background:#fff0d8;color:#b7793d; }
.question-title strong { font-size:16px; line-height:1.9; color:#3e5d7a; }
.options { gap:9px; }
.option { min-height:44px; border-radius:12px; padding:10px 13px; font-size:14px; color:#5e768a; background:#f9fbfc; }
.feedback { font-size:13px; padding:11px 13px; }
.quiz-score { padding:15px 18px; border-radius:15px; background:#fff2d9; color:#7b6c54; font-size:13px; }.quiz-score strong { color:#bd7c40; font-size:18px; }
.lab-grid { gap:13px; }
.lab-card { border-radius:16px; padding:16px; background:#f5fbff; border-color:#dcebf0; }
.lab-card .lab-icon { width:39px;height:39px;border-radius:13px;background:#e4f4f5;color:#358d98;font-size:20px; }
.lab-card strong { color:#3f6885; font-size:14px; }.lab-card p { color:#748a9a; font-size:12px; line-height:1.9; }
.lab-launch { min-height:48px; border-radius:999px; background:linear-gradient(100deg,#398eaa,#57b3ad); font-size:14px; box-shadow:0 9px 20px rgba(64,149,159,.16); }
.video-placeholder { border-color:#b8d9df; background:linear-gradient(135deg,#e9f7f7,#fff3dc); min-height:190px; border-radius:17px; }
.video-placeholder .play-circle { width:56px;height:56px; font-size:22px; color:#42929a; }.video-placeholder strong { color:#49798c; font-size:14px; }.video-placeholder p { color:#8195a0; font-size:11px; }
.summary-list { gap:11px; }
.summary-item { border-radius:14px; padding:14px 16px; background:#f2f8f2; color:#587969; font-size:14px; line-height:1.9; }
.summary-item:before { width:27px;height:27px; border-radius:9px; }
.closing-card { font-size:15px; padding:18px; border-radius:16px; }
.restart-button { min-height:43px; padding:0 18px; border-radius:999px; font-size:13px; }

/* Actual 3D page-turn sheet: front is the old page, back is the incoming page. */
.right-page-wrap { perspective:1900px; }
.page-turn-layer { position:absolute; inset:0; z-index:7; pointer-events:none; display:none; perspective:1900px; }
.page-turn-layer.active { display:block; }
.turn-sheet { position:absolute; inset:0; transform-style:preserve-3d; box-shadow:0 14px 25px rgba(52,64,79,.13); }
.turn-sheet-next { transform-origin:left center; animation:bookCurlNext .92s cubic-bezier(.48,.02,.19,1) forwards; }
.turn-sheet-prev { transform-origin:right center; animation:bookCurlPrev .92s cubic-bezier(.48,.02,.19,1) forwards; }
.turn-face { position:absolute; inset:0; overflow:hidden; backface-visibility:hidden; -webkit-backface-visibility:hidden; border-radius:0 18px 18px 0; background:#fffefa; border:1px solid #e8dfd1; }
.turn-front { box-shadow:inset 13px 0 22px rgba(111,96,68,.055); }
.turn-back { transform:rotateY(180deg); }
.turn-face .paper { height:100%; min-height:100%; overflow:hidden; box-shadow:none; }
.turn-shadow { position:absolute; inset:0; opacity:.0; background:linear-gradient(90deg,rgba(45,52,68,.27),transparent 27%,transparent 70%,rgba(45,52,68,.12)); transform:translateZ(2px); pointer-events:none; }
.turn-sheet-next .turn-shadow { animation:curlShade .92s ease-in-out forwards; }
.turn-sheet-prev .turn-shadow { animation:curlShade .92s ease-in-out forwards; }
@keyframes bookCurlNext {
  0% { transform:rotateY(0deg) scaleX(1); }
  22% { transform:rotateY(-24deg) scaleX(.995); }
  48% { transform:rotateY(-88deg) scaleX(.985); }
  76% { transform:rotateY(-151deg) scaleX(.995); }
  100% { transform:rotateY(-180deg) scaleX(1); }
}
@keyframes bookCurlPrev {
  0% { transform:rotateY(0deg) scaleX(1); }
  22% { transform:rotateY(24deg) scaleX(.995); }
  48% { transform:rotateY(88deg) scaleX(.985); }
  76% { transform:rotateY(151deg) scaleX(.995); }
  100% { transform:rotateY(180deg) scaleX(1); }
}
@keyframes curlShade { 0%,100%{opacity:0} 40%,58%{opacity:.62} }
@keyframes stickerBob { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-6px) rotate(2deg)} }

.reader-controls {
  position:sticky; bottom:9px; z-index:10; display:flex; align-items:center; justify-content:space-between;
  padding:10px 13px; margin:0 auto; max-width:560px; border:1px solid rgba(216,227,235,.92); border-radius:999px;
  background:rgba(255,255,255,.92); box-shadow:0 9px 25px rgba(65,86,111,.14); backdrop-filter:blur(12px);
}
.nav-button { min-height:45px; border-radius:999px; padding:0 17px; font-size:13px; font-weight:900; }
.nav-button:not(.primary) { background:#f1f6fa; color:#617c91; }
.nav-button.primary { background:linear-gradient(100deg,#ef9a70,#f0bb5d); box-shadow:0 6px 14px rgba(220,151,82,.16); }
.page-indicator strong { color:#315f7e; font-size:18px; }
.page-indicator span { color:#9aa8b2; }
.gesture-hint { color:#7f91a1; font-size:12px; margin-top:12px; }
.gesture-hint span { font-size:17px; }
.app-footer { color:#8294a4; font-size:10px; }

/* Dark theme is optional; paper remains warm enough for comfortable reading. */
body[data-theme="dark"] {
  background:radial-gradient(circle at 15% 5%,#2b4e61 0,transparent 32rem),linear-gradient(145deg,#172d41,#18283a 65%,#302b41);
}
body[data-theme="dark"] .topbar { border-bottom-color:rgba(226,236,244,.12); }
body[data-theme="dark"] .brand, body[data-theme="dark"] .brand-copy strong, body[data-theme="dark"] .reader-heading, body[data-theme="dark"] .reader-heading h1 { color:#f3f2e9; }
body[data-theme="dark"] .brand-copy small, body[data-theme="dark"] .reader-heading .eyebrow { color:#b8cbd9; }
body[data-theme="dark"] .chapter-chip, body[data-theme="dark"] .tool-pill, body[data-theme="dark"] .icon-button, body[data-theme="dark"] .soft-button { background:#243d53; color:#e4edf3; border-color:#3b5a72; }
body[data-theme="dark"] .side-panel { color:#d5e1e9; }
body[data-theme="dark"] .side-panel .eyebrow, body[data-theme="dark"] .progress-caption, body[data-theme="dark"] .chapter-nav button { color:#b7c8d5; }
body[data-theme="dark"] .chapter-nav button.active { background:#27465e; color:#fff; }
body[data-theme="dark"] .side-note { border-top-color:#3e596d; }
body[data-theme="dark"] .side-note strong { color:#e4edf3; }
body[data-theme="dark"] .side-note p, body[data-theme="dark"] .side-footer { color:#a9becd; }
body[data-theme="dark"] .reader-controls { background:rgba(29,49,68,.94); border-color:#446078; }
body[data-theme="dark"] .page-indicator strong { color:#e9f3f8; }
body[data-theme="dark"] .gesture-hint, body[data-theme="dark"] .app-footer { color:#b2c3cf; }

@media (max-width:1100px) {
  .app-shell { padding:0 23px 22px; }
  .workspace { grid-template-columns:180px minmax(0,1fr); gap:17px; }
  .book-spread { grid-template-columns:minmax(205px,.72fr) minmax(0,1.5fr); min-height:650px; }
  .companion-page,.paper { min-height:650px; }
  .companion-page { padding:22px 20px 20px; }
  .paper { padding:36px 34px; }
  .companion-content h2 { font-size:22px; }
  .companion-content p { font-size:14px; }
}
@media (max-width:760px) {
  .app-shell { padding:0 12px 18px; }
  .topbar { height:66px; }
  .brand-copy strong { font-size:14px; }
  .brand-copy small { font-size:9px; }
  .workspace { display:block; padding-top:14px; }
  .side-panel { display:none; }
  .reader-heading { margin:0 3px 11px; align-items:center; }
  .reader-heading h1 { color:#315574; font-size:20px; }
  body[data-theme="dark"] .reader-heading h1 { color:#f3f2e9; }
  .reader-actions { gap:5px; }
  .soft-button { height:35px; padding:0 10px; }
  .book-stage { padding-bottom:10px; }
  .book-spread { display:flex; flex-direction:column; min-height:0; gap:9px; }
  .book-spread::before { display:none; }
  .companion-page {
    order:0; display:flex; min-height:0; flex-direction:row; align-items:center; gap:10px;
    padding:10px 12px; border:1px solid #ecdab7; border-radius:15px; box-shadow:0 5px 15px rgba(92,105,124,.06);
  }
  .companion-page::before { inset:4px; border-radius:11px; }
  .companion-topline,.companion-clock,.companion-stickers,.companion-bottom { display:none; }
  .companion-content { display:grid; grid-template-columns:42px 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; margin:0; min-width:0; }
  .companion-hero-emoji { grid-row:1/3; width:40px;height:40px;border-radius:13px;margin:0;font-size:23px;animation:none; }
  .companion-badge { justify-self:start; font-size:9px; padding:3px 8px; }
  .companion-content h2 { font-size:13px; line-height:1.5; margin:3px 0 0; }
  .companion-content p,.companion-tip { display:none; }
  .right-page-wrap { order:1; }
  .paper { min-height:620px; padding:28px 21px 31px; border-radius:16px; }
  .paper:after { inset:8px; }
  .page-title { font-size:29px; line-height:1.55; }
  .page-lead { font-size:17px; line-height:2; }
  .body-copy { font-size:16px; line-height:2.15; }
  .paper-topline { margin-bottom:20px; }
  .page-kicker { font-size:11px; }
  .page-stamp { font-size:10px; }
  .cover-page { min-height:540px; }
  .cover-title { font-size:43px; }
  .cover-subtitle { font-size:16px; }
  .cover-tagline { font-size:14px; }
  .image-figure img { max-height:250px; }
  .model-viewport { height:330px; min-height:280px; }
  .model-toolbar { gap:8px; }
  .model-toolbar strong { font-size:14px; }
  .model-actions { gap:6px; }
  .tiny-control { min-height:35px; font-size:11px; padding:0 10px; }
  .part-chip { font-size:11px; min-height:34px; }
  .part-info strong { font-size:14px; }
  .part-info p { font-size:12px; }
  .flow-layout { grid-template-columns:1fr; }
  .flow-figure { grid-row:1; }
  .flow-steps { grid-row:2; }
  .flow-step strong { font-size:13px; }
  .flow-step p { font-size:11px; }
  .question-title strong { font-size:14px; }
  .option { font-size:13px; }
  .lab-card strong { font-size:13px; }
  .lab-card p { font-size:11px; }
  .summary-item { font-size:13px; }
  .reader-controls { width:calc(100% - 16px); bottom:max(7px,env(safe-area-inset-bottom)); padding:7px 8px; }
  .nav-button { min-height:42px; min-width:104px; padding:0 12px; font-size:12px; }
  .page-indicator strong { font-size:17px; }
  .gesture-hint { font-size:10px; margin-top:8px; }
  .app-footer { text-align:center; }
}
@media (max-width:390px) {
  .app-shell { padding-left:9px; padding-right:9px; }
  .tool-pill { padding:0 9px; min-height:35px; }
  .tool-label { display:none; }
  .reader-heading h1 { font-size:18px; }
  .paper { padding:24px 16px 28px; min-height:600px; }
  .page-title { font-size:25px; }
  .page-lead { font-size:15px; }
  .body-copy { font-size:15px; }
  .nav-button { min-width:91px; font-size:11px; }
  .model-viewport { height:290px; }
}
@media (prefers-reduced-motion:reduce) {
  .turn-sheet-next,.turn-sheet-prev,.companion-hero-emoji,.companion-stickers span { animation-duration:.01ms!important; }
}
/* Navigation controls stay in the document flow so they never cover lesson text. */
.reader-controls { position:relative; bottom:auto; }
@media (max-width:760px) {
  .reader-controls { position:relative; bottom:auto; margin-top:11px; }
}
@media (max-width:760px) {
  .companion-clock { display:grid; gap:0; margin-right:auto; padding:5px 8px; min-width:76px; border-radius:10px; }
  .companion-clock span,.companion-clock small { display:none; }
  .companion-clock strong { font-size:11px; line-height:1.3; text-align:center; }
}


/* v1.2 — fixed book viewport, author-only composition tools */
html, body { min-height:100%; }
body { overflow-x:hidden; }
.app-shell { width:min(1600px,100%); margin-inline:auto; padding:0 clamp(12px,2.8vw,38px) 34px; }
.topbar { height:64px; }
.top-tools { gap:8px; }
.author-toggle { border-color:#edc77a; color:#8c6130; background:linear-gradient(110deg,#fff2d5,#ffe7d9); }
.workspace { display:flex; flex-direction:column; gap:0; padding-top:7px; }
.reader-area { order:0; width:100%; min-width:0; }
.reader-heading { direction:rtl; text-align:right; justify-content:space-between; margin:0 4px 10px; min-height:58px; }
.reader-heading-copy { margin-inline-start:auto; }
.reader-heading .eyebrow { display:block; font-size:12px; font-weight:900; color:#d18a50; margin-bottom:2px; }
.reader-heading h1 { font-size:clamp(23px,2.1vw,31px); line-height:1.3; margin:0; }
.reader-actions { margin-inline-start:auto; }
.book-stage { padding:0; perspective:2200px; }
.book-spread { height:clamp(430px, calc(100svh - 260px), 650px); min-height:0; max-height:650px; grid-template-columns:minmax(225px,.72fr) minmax(0,1.65fr); align-items:stretch; }
.companion-page { height:100%; min-height:0; overflow:auto; }
.right-page-wrap { height:100%; min-height:0; }
.paper { height:100%; min-height:0; max-height:100%; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-color:#edac59 #fff1dc; scrollbar-width:thin; user-select:none; -webkit-user-select:none; }
.paper::-webkit-scrollbar { width:10px; }
.paper::-webkit-scrollbar-track { background:#fff2df; border-radius:12px; }
.paper::-webkit-scrollbar-thumb { background:linear-gradient(#f5c86b,#f28b75); border:2px solid #fff2df; border-radius:12px; }
.page-content { min-height:100%; }
.reader-controls { position:relative; width:max-content; max-width:100%; gap:12px; justify-content:center; margin:10px auto 0; padding:7px 11px; }
.nav-button { min-width:128px; min-height:43px; }
.nav-button:not(.primary) { background:linear-gradient(110deg,#dff1ff,#eaf5ff); color:#286c9b; border:1px solid #b9dff2; }
.nav-button.primary { background:linear-gradient(110deg,#ff9b78,#ffc65e); color:#633e26; }
.page-indicator { display:flex; align-items:center; gap:8px; min-width:64px; justify-content:center; }
.gesture-hint { text-align:center; margin-top:7px; font-size:11px; }
.scroll-cue { display:flex; align-items:center; justify-content:center; gap:9px; margin:9px auto 0; min-height:38px; padding:5px 18px; border:1px solid #f1c36e; border-radius:999px; color:#8b5c29; background:linear-gradient(100deg,#fff1c9,#ffe1d6); box-shadow:0 6px 16px rgba(206,144,69,.12); font-weight:900; cursor:pointer; animation:scrollCuePulse 2.2s ease-in-out infinite; }
.scroll-cue span { font-size:10px; font-weight:700; color:#ad7b50; }
.scroll-cue[hidden] { display:none; }
@keyframes scrollCuePulse { 0%,100%{transform:translateY(0)} 50%{transform:translateY(3px)} }
/* Move chapter progress/navigation beneath the book, not beside it. */
.side-panel { order:1; display:grid; grid-template-columns:minmax(180px, .55fr) minmax(0,1.8fr); grid-template-rows:auto 1fr; gap:10px 22px; padding:22px 4px 0; width:100%; }
.side-panel-top { grid-column:1; grid-row:1 / span 2; }
.chapter-nav { grid-column:2; grid-row:1 / span 2; display:flex; flex-wrap:wrap; gap:7px; align-content:start; margin:0; }
.chapter-nav button { flex:0 1 auto; background:rgba(255,255,255,.72); border:1px solid #e5e9ef; border-radius:13px; }
.side-note,.side-footer { display:none; }
.progress-caption { margin-top:6px; }
/* Long pages scroll inside the page leaf; the book itself remains steady. */
.page-scroll-cue { display:none; }
.paper .full-page-shell { position:absolute; inset:0; padding:0; z-index:1; display:grid; place-items:center; background:#fffdf8; overflow:hidden; }
.paper.page-full-image { padding:0; }
.paper.page-full-image:after,.paper.page-full-image:before { display:none; }
.full-page-image { width:100%; height:100%; object-fit:contain; object-position:center; display:block; background:#fffdf8; }
.full-page-caption { position:absolute; inset:auto 20px 15px; padding:8px 12px; border-radius:12px; color:#516579; background:rgba(255,255,255,.88); text-align:center; font-size:12px; }
/* Author editor: never displayed to students unless explicitly activated by the creator. */
.author-panel { margin:22px 0 14px; padding:18px; border:1px solid #e5d5b7; border-radius:22px; background:linear-gradient(145deg,#fffdf7,#f5faff); box-shadow:0 14px 34px rgba(67,89,112,.09); }
.author-panel[hidden] { display:none!important; }
.author-panel-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.author-panel-kicker { color:#bc8144; font-size:11px; font-weight:900; }
.author-panel-head h2 { margin:4px 0; color:#315674; font-size:21px; }
.author-panel-head p { margin:0; color:#7b8fa1; font-size:12px; line-height:1.9; }
.author-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 11px; }
.author-action,.author-upload { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:39px; padding:0 13px; border:1px solid #d9e5eb; border-radius:12px; color:#3e6681; background:#fff; font:800 12px/1.2 Tahoma,Arial,sans-serif; cursor:pointer; }
.author-action:hover,.author-upload:hover { transform:translateY(-1px); box-shadow:0 5px 13px rgba(56,103,132,.1); }
.author-action.secondary { background:#f2f8fd; }
.author-action.save { background:linear-gradient(100deg,#dff3e9,#e7f5ff); border-color:#b8ddcf; color:#28745e; }
.author-upload { background:linear-gradient(100deg,#fff0d4,#ffe9e2); border-color:#efd09b; color:#8f6032; position:relative; overflow:hidden; }
.author-upload input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; }
.import-upload { background:#edf4ff; border-color:#d0e0f6; color:#52719a; }
.author-help { padding:11px 14px; border-radius:13px; background:#fff6e4; color:#7b694d; font-size:12px; line-height:1.9; }
.author-help strong { color:#b87936; }
.asset-library-head { display:flex; justify-content:space-between; align-items:center; margin:15px 0 9px; }
.asset-library-head h3 { margin:0; color:#385f7b; font-size:15px; }
.asset-library-head span { color:#8293a3; font-size:11px; }
.asset-library { display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:9px; }
.asset-empty { grid-column:1/-1; padding:19px; border:1px dashed #d7e0e7; border-radius:13px; color:#8a9aa7; text-align:center; font-size:12px; }
.asset-card { min-width:0; padding:10px; border:1px solid #e2e9ed; border-radius:14px; background:#fff; cursor:grab; display:grid; gap:7px; }
.asset-card.selected { border-color:#efa95d; background:#fff8e9; box-shadow:0 0 0 2px rgba(239,169,93,.14); }
.asset-card strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#496980; font-size:11px; }
.asset-kind { display:flex; align-items:center; gap:7px; color:#8b9aa6; font-size:11px; }
.asset-card button { min-height:30px; border:0; border-radius:9px; background:#eaf5fb; color:#39718e; font-size:11px; font-weight:900; cursor:pointer; }
.asset-card .asset-delete { background:#fff0ed; color:#bc6c62; }
.author-footnote { margin-top:12px; color:#8b9ba8; font-size:10px; line-height:1.8; }
/* Draggable author blocks are overlaid on the page; students see only their content. */
.author-overlay { position:absolute; inset:0; z-index:8; overflow:hidden; pointer-events:none; }
.author-block { position:absolute; left:50%; top:50%; width:30%; min-width:80px; min-height:40px; transform:translate(-50%,-50%); pointer-events:none; border:1px solid transparent; border-radius:12px; background:transparent; color:#2e4d69; box-sizing:border-box; }
.author-mode .author-overlay { pointer-events:auto; }
.author-mode .author-block { pointer-events:auto; border:1px dashed rgba(226,143,65,.75); background:rgba(255,255,255,.88); box-shadow:0 7px 18px rgba(58,79,101,.12); resize:both; overflow:auto; }
.author-block-handle { display:none; align-items:center; justify-content:space-between; gap:8px; padding:3px 7px; background:#fff0d9; color:#8d6536; font-size:10px; font-weight:900; cursor:grab; touch-action:none; user-select:none; }
.author-mode .author-block-handle { display:flex; }
.author-block-handle button { width:21px; height:21px; border:0; border-radius:7px; background:#ffe1dd; color:#a84e48; cursor:pointer; font-weight:900; }
.author-block-content { padding:8px 10px; min-height:25px; outline:none; font-size:16px; font-weight:800; line-height:1.8; }
.author-block-content[contenteditable="true"] { outline:1px dashed #e3a45a; background:#fffef8; }
.author-block img,.author-block video { display:block; max-width:100%; max-height:230px; margin:auto; object-fit:contain; }
.author-block audio { width:100%; min-width:150px; }
.author-block model-viewer { width:100%; height:230px; background:linear-gradient(145deg,#f7fbff,#fff3e4); }
.author-sticker { text-align:center; font-size:clamp(30px,5vw,65px); line-height:1.3; }
.author-animation { text-align:center; font-size:clamp(32px,5vw,64px); animation:authorPop 2.3s ease-in-out infinite; }
@keyframes authorPop { 0%,100%{transform:scale(.92) rotate(-4deg)} 50%{transform:scale(1.08) rotate(4deg)} }
.block-resizer { display:none; position:absolute; width:15px;height:15px; left:0;bottom:0; background:#f0aa56; border:2px solid #fff; border-radius:50%; cursor:nwse-resize; }
.author-mode .block-resizer { display:block; }
body.author-mode .paper { user-select:text; -webkit-user-select:text; }
body.author-mode .page-content { opacity:.84; }
body.author-mode .right-page-wrap { outline:2px solid rgba(237,169,85,.28); outline-offset:3px; }
/* Slower, softer sheet motion and a visible page edge. */
.turn-sheet-next { animation-duration:1.18s; }
.turn-sheet-prev { animation-duration:1.18s; }
.turn-face { background:linear-gradient(90deg,#f4eee2,#fffefa 16px); }
.turn-front:after { content:""; position:absolute; inset:0 auto 0 0; width:24px; background:linear-gradient(90deg,rgba(63,69,78,.2),transparent); opacity:.45; }
@keyframes bookCurlNext {
  0% { transform:rotateY(0deg) scaleX(1); }
  18% { transform:rotateY(-28deg) scaleX(.995); }
  38% { transform:rotateY(-63deg) scaleX(.985); }
  58% { transform:rotateY(-112deg) scaleX(.97); }
  78% { transform:rotateY(-157deg) scaleX(.99); }
  100% { transform:rotateY(-180deg) scaleX(1); }
}
@keyframes bookCurlPrev {
  0% { transform:rotateY(0deg) scaleX(1); }
  18% { transform:rotateY(28deg) scaleX(.995); }
  38% { transform:rotateY(63deg) scaleX(.985); }
  58% { transform:rotateY(112deg) scaleX(.97); }
  78% { transform:rotateY(157deg) scaleX(.99); }
  100% { transform:rotateY(180deg) scaleX(1); }
}
@media (max-width:1000px) {
  .app-shell { padding-inline:16px; }
  .book-spread { height:clamp(420px,calc(100svh - 245px),610px); grid-template-columns:minmax(185px,.62fr) minmax(0,1.5fr); }
  .companion-page { padding:20px 17px; }
  .companion-content h2 { font-size:21px; }
  .companion-content p { font-size:13px; }
  .paper { padding:27px 28px; }
}
@media (max-width:760px) {
  .app-shell { padding:0 10px 24px; }
  .topbar { height:57px; }
  .topbar .brand-copy small { display:none; }
  .topbar .chapter-chip { display:none; }
  .author-toggle { min-height:34px; padding:0 9px; }
  .author-toggle .tool-label { display:none; }
  .workspace { padding-top:4px; }
  .reader-heading { min-height:54px; margin:0 5px 8px; }
  .reader-heading h1 { font-size:21px; }
  .reader-heading .eyebrow { font-size:10px; }
  .reader-actions .soft-button { min-height:32px; height:32px; }
  .book-spread { display:block; height:clamp(410px,68svh,600px); min-height:410px; max-height:600px; }
  .companion-page { display:none!important; }
  .right-page-wrap { height:100%; }
  .paper { height:100%; min-height:0; padding:24px 19px 28px; border-radius:17px; }
  .paper:after { inset:8px; }
  .reader-controls { width:max-content; margin:9px auto 0; padding:6px 8px; gap:8px; }
  .nav-button { min-width:105px; min-height:40px; padding-inline:10px; }
  .side-panel { grid-template-columns:1fr; padding-top:16px; }
  .side-panel-top { grid-column:1;grid-row:1; }
  .chapter-nav { grid-column:1;grid-row:2; }
  .chapter-nav button { font-size:10px; padding:8px 9px; }
  .author-panel { padding:12px; margin-top:16px; }
  .author-panel-head h2 { font-size:17px; }
  .author-toolbar { gap:6px; }
  .author-action,.author-upload { min-height:36px; padding:0 9px; font-size:10px; }
  .asset-library { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .scroll-cue { font-size:11px; padding-inline:12px; }
}
@media (max-width:390px) {
  .reader-heading h1 { font-size:18px; }
  .nav-button { min-width:92px; font-size:11px; }
  .page-indicator { min-width:48px; gap:5px; }
  .book-spread { height:clamp(400px,66svh,550px); min-height:400px; }
}
@media (prefers-reduced-motion:reduce) {
  .turn-sheet-next,.turn-sheet-prev,.author-animation,.scroll-cue { animation-duration:.01ms!important; }
}

.author-json-editor { margin-top:14px; border:1px solid #dfe8ed; border-radius:14px; background:#fff; overflow:hidden; }
.author-json-editor summary { padding:12px 14px; color:#4d7087; font-size:12px; font-weight:900; cursor:pointer; background:#f4f9fc; }
.author-json-editor p { margin:10px 14px; color:#8394a2; font-size:11px; line-height:1.8; }
.author-json-editor textarea { display:block; width:calc(100% - 28px); margin:8px 14px; min-height:180px; padding:12px; resize:vertical; border:1px solid #dce6eb; border-radius:10px; background:#fbfdff; color:#3c5267; direction:ltr; text-align:left; font:12px/1.6 Consolas,Monaco,monospace; }
.author-json-actions { display:flex; flex-wrap:wrap; gap:8px; padding:0 14px 13px; }

/* Final v1.2 refinements from author review */
.reader-heading { justify-content:flex-start; }
.reader-heading-copy { margin-inline-start:0; margin-right:0; text-align:right; }
.reader-actions { margin-inline-start:auto; }
.book-spread { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.book-spread::before { left:50%; transform:translateX(-50%); }
.turn-sheet-next,.turn-sheet-prev { animation-duration:1.28s; }
.author-toggle { display:none; }
body.author-access .author-toggle { display:inline-flex; }
@media (max-width:1000px) {
  .book-spread { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width:760px) {
  .book-spread { display:block; }
  .book-spread::before { display:none; }
}


/* v1.4.2: animate a single outgoing page leaf; avoid flattened 3D media layers. */
.turn-sheet { transform-style:preserve-3d; -webkit-transform-style:preserve-3d; backface-visibility:visible; -webkit-backface-visibility:visible; will-change:transform; }
.turn-face { isolation:auto; transform-style:flat; -webkit-transform-style:flat; }
.turn-face .turn-face-paper { transform:none; backface-visibility:hidden; -webkit-backface-visibility:hidden; }
.turn-face .author-overlay { transform:none; }
.turn-face .author-block { transform:translate(-50%,-50%); backface-visibility:visible; -webkit-backface-visibility:visible; }
.turn-face .author-block img,
.turn-face .author-block video,
.turn-face .author-block audio,
.turn-face .author-block model-viewer,
.turn-face .full-page-image { transform:none; backface-visibility:visible; -webkit-backface-visibility:visible; will-change:auto; }
.turn-face .author-block video,
.turn-face .author-block model-viewer { pointer-events:auto; }

/* Full-page photos must fit inside the paper without cropping or accidental zoom. */
.paper .full-page-shell { position:absolute; inset:0; width:100%; height:100%; padding:0; display:block; overflow:hidden; }
.paper .full-page-image { position:absolute; inset:0; display:block; width:100%; height:100%; max-width:none; max-height:none; margin:0; object-fit:contain; object-position:center center; }
.paper .full-page-caption { z-index:2; }

/* Resizing an image block resizes the actual image, not only its frame. */
.author-mode .author-block[data-block-type="image"] { overflow:hidden; background:transparent; padding:0; }
.author-mode .author-block[data-block-type="image"] > img { position:absolute; inset:27px 0 0; display:block; width:100%; height:calc(100% - 27px); max-width:none; max-height:none; margin:0; object-fit:fill; }
body:not(.author-mode) .author-block[data-block-type="image"] { overflow:visible; }
body:not(.author-mode) .author-block[data-block-type="image"] > img { display:block; width:100%; height:100%; max-width:none; max-height:none; margin:0; object-fit:fill; }
.author-mode .author-block[data-block-type="image"] .block-resizer { z-index:4; }
.author-action.danger { border-color:#f0d2ce; background:#fff4f2; color:#a95c56; }


/* v1.4.2 media and animation blocks */
.author-block[data-block-type="image"],
.author-block[data-block-type="animation"]:has(.author-animation-media) {
  overflow:hidden;
  box-sizing:border-box;
}
.author-block[data-block-type="image"] > img,
.author-block[data-block-type="animation"] > .author-animation-media {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  object-fit:fill;
}
.author-mode .author-block[data-block-type="image"] > img,
.author-mode .author-block[data-block-type="animation"] > .author-animation-media {
  inset:27px 0 0;
  height:calc(100% - 27px);
}
.author-block[data-block-type="animation"]:has(.author-animation-media) { background:transparent; }
.author-block .model-block-shell { position:relative; width:100%; min-height:180px; height:100%; background:#f7fbff; border-radius:10px; overflow:hidden; }
.author-block model-viewer.author-model-viewer { display:block; position:relative; z-index:2; width:100%; min-width:100%; height:230px; min-height:180px; max-height:none; pointer-events:auto; touch-action:pan-y; background:linear-gradient(145deg,#f7fbff,#fff3e4); --poster-color:transparent; }
.model-block-status { position:absolute; z-index:3; inset:auto 8px 8px; padding:6px 9px; border-radius:8px; color:#496980; background:rgba(255,255,255,.9); text-align:center; font-size:10px; pointer-events:none; }
.model-block-status[hidden] { display:none!important; }
.model-block-status.is-error { color:#9b4545; background:rgba(255,245,243,.96); }
.author-mode .author-block[data-block-type="model"] { overflow:hidden; }
.author-mode .author-block[data-block-type="model"] .model-block-shell { height:100%; }
.author-animation-media { border-radius:8px; }
.full-page-audio { position:absolute; z-index:3; top:12px; right:12px; }
.full-page-audio .audio-row { margin:0; }

/* v1.4.3: keep image pixels inside a stable, explicitly-sized author block. */
.author-block[data-block-type="image"] {
  position:absolute;
  overflow:hidden;
  min-height:0;
  box-sizing:border-box;
  background:transparent;
}
.author-block[data-block-type="image"] > img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  object-fit:fill;
}
.author-block[data-block-type="image"] > .author-block-handle {
  position:absolute;
  z-index:6;
  top:0;
  left:0;
  right:0;
  min-height:25px;
  box-sizing:border-box;
  background:rgba(255,240,217,.94);
}
.author-block[data-block-type="image"] > .block-resizer { z-index:7; }

/* v1.4.4: turn media previews as part of the same paper layer. */
.turn-face .flip-media-snapshot {
  display:block;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}
.turn-face .flip-media-placeholder {
  border-radius:10px;
  overflow:hidden;
  pointer-events:none;
}
.author-mode .author-block { resize:none !important; }
.author-mode .author-block[data-block-type="image"] { overflow:hidden; min-height:0; background:transparent; }
.author-mode .author-block[data-block-type="image"] > img {
  position:absolute;
  inset:27px 0 0;
  display:block;
  width:100%;
  height:calc(100% - 27px);
  max-width:none;
  max-height:none;
  margin:0;
  object-fit:fill;
}
.author-mode .author-block[data-block-type="image"] > .author-block-handle { z-index:6; }
.author-mode .author-block[data-block-type="image"] > .block-resizer {
  z-index:7;
  right:0;
  left:auto;
  bottom:0;
  width:19px;
  height:19px;
  cursor:nwse-resize;
  touch-action:none;
}
