:root { color-scheme: light; --ink:#1d2b3d; --muted:#657287; --line:#dbe2eb; --soft:#f3f6f9; --paper:#fffdf8; --accent:#315c84; --accent-soft:#e8f0f7; --gold:#a56e18; --warning:#80591a; --warning-bg:#fff5df; }
.reader{display:grid;grid-template-columns:360px minmax(0,1fr)}.reader-content{min-width:0}.category-sidebar{background:#f8fafc;border-right:1px solid #dbe2eb;padding:20px;max-height:85vh;overflow:auto;position:sticky;top:0}.category-sidebar h2{font-size:17px;margin:0 0 16px}.category-sidebar details{margin:12px 0}.category-sidebar summary{cursor:pointer;font-weight:600;font-size:14px;padding:7px 0}.category-sidebar button{display:block;width:100%;text-align:left;margin:4px 0;padding:8px 10px;font-size:13px;border-color:transparent;background:transparent}.category-sidebar button[aria-pressed="true"]{background:#e0ebf5;color:#244f79;border-color:#c0d2e4}.reader .entry-grid{grid-template-columns:minmax(0,1fr)}.reader .search-row{grid-template-columns:minmax(0,1fr) auto}.reader #random-button{grid-column:2}.reader .result-head{flex-wrap:wrap}.reader .entry-card h2{font-size:48px}@media(max-width:780px){.reader{grid-template-columns:190px minmax(0,1fr)}.category-sidebar{padding:12px}}@media(max-width:580px){.reader{display:block}.category-sidebar{position:static;max-height:240px;border-right:0;border-bottom:1px solid #dbe2eb}}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
.category-sidebar #book-sections button{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;white-space:nowrap}.section-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-sidebar #book-sections .section-progress{flex:none;margin-left:0;white-space:nowrap}
.category-sidebar .section-progress{display:inline-block;margin-left:8px;font-size:11px;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums;color:#8a96a4;font-weight:400}.category-sidebar button[aria-pressed="true"] .section-progress{color:#6586a4}
.site-header .header-inner{padding:12px 24px;align-items:center}.brand-lockup{display:flex;align-items:center;gap:13px}.brand-avatar{width:48px;height:48px;object-fit:cover;border-radius:50%;border:2px solid #ffffff40}.site-header h1{font:600 23px/1.35 system-ui,sans-serif;margin:2px 0}.site-header .eyebrow{font-size:10px;letter-spacing:.1em}.site-header p{display:none}.site-header .pdf-link{font-size:12px;padding:6px 11px}@media(max-width:540px){.site-header .header-inner{padding:10px 16px}.brand-avatar{width:40px;height:40px}.site-header h1{font-size:19px}}
.directory-bar{display:flex;align-items:center;padding:10px 24px;border-bottom:1px solid var(--line);background:white}.directory-bar button{padding:6px 12px;font-size:13px}dialog#word-directory{position:fixed;inset:0 0 0 auto;margin:0;width:340px;max-width:90vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #dbe2eb;box-shadow:-10px 0 40px #1a304020;background:#fff;overflow:hidden;transform:translateX(100%);transition:transform .18s ease-out}dialog#word-directory.is-open{transform:translateX(0)}dialog#word-directory::backdrop{background:#1c2d3b40}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 20px 16px;border-bottom:1px solid #e6eaf0}.drawer-head h2{font-size:18px;margin:0}.drawer-head .directory-hint{margin:5px 0 0;font-size:11px}.drawer-head button{padding:5px 9px;font-size:12px}dialog#word-directory #word-directory-list{display:flex;flex-direction:column;flex-wrap:nowrap;gap:2px;height:calc(100dvh - 100px);max-height:none;overflow-y:auto;padding:12px}.word-jump{flex-shrink:0}dialog#word-directory .word-jump{width:100%;text-align:left;border:0;border-radius:7px;padding:11px 14px;background:transparent;color:#304b63;font-size:15px}dialog#word-directory .word-jump.visited{color:#897396;background:#faf8fc}dialog#word-directory .word-jump.current{background:#e5eef6;color:#234f78;box-shadow:inset 3px 0 #315c84;font-weight:600}@media(prefers-reduced-motion:reduce){dialog#word-directory{transition:none}}
#word-directory{padding:12px 24px;border-bottom:1px solid var(--line);background:#fff}#word-directory summary{cursor:pointer;color:#315c84;font-size:14px}#reading-count{margin-left:16px;color:#7e718e;font-size:12px}.directory-hint{font-size:12px;color:#7a8190}#word-directory-list{display:flex;flex-wrap:wrap;gap:7px;max-height:280px;overflow:auto;padding:8px 0}.word-jump{padding:6px 12px;font-size:14px}.word-jump.visited{color:#84718f;background:#f5f1f7;border-color:#e1d8e6}.word-jump.current{color:#fff;background:#315c84;border-color:#315c84;box-shadow:0 0 0 2px #b7ccde}
body main{max-width:none;width:100%;padding:16px 20px 40px}.site-header .header-inner{max-width:none;padding:24px 24px}.reader{min-height:calc(100vh - 170px)}
.word-reader-frame{width:100%;height:1000px;border:0;display:block;background:#f6f5f1}.reader #results{padding:0;background:#f6f5f1}
body { margin:0; background:#eef2f6; color:var(--ink); font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input,select { font:inherit; }
button,select { cursor:pointer; }
button { border:1px solid #bcc8d6; border-radius:9px; padding:9px 15px; background:#fff; color:#294766; }
button:hover:not(:disabled) { border-color:#7895b2; background:#f7fafc; }
button:disabled { opacity:.5; cursor:default; }
button.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible { outline:3px solid #9dbbd7; outline-offset:2px; }
a { color:var(--accent); }
.site-header { background:#1e344b; color:white; }
.header-inner { max-width:1180px; margin:auto; padding:34px 28px 30px; display:flex; align-items:end; justify-content:space-between; gap:24px; }
.eyebrow { color:#bcd0e3; font-size:13px; letter-spacing:.09em; text-decoration:none; text-transform:uppercase; }
h1 { margin:5px 0 2px; font:600 38px/1.15 Georgia,"Times New Roman",serif; }
h1 span { color:#c6d9e9; font:500 19px/1 system-ui,sans-serif; }
.site-header p { margin:0; color:#c4d0dc; }
.pdf-link { border:1px solid #68829b; border-radius:9px; padding:10px 16px; color:white; text-decoration:none; white-space:nowrap; }
main { max-width:1180px; margin:auto; padding:24px 28px 56px; }
.summary { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
.summary div { display:flex; align-items:baseline; gap:9px; padding:13px 16px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.summary strong { font-size:21px; color:var(--accent); font-variant-numeric:tabular-nums; }
.summary span { color:var(--muted); font-size:13px; }
.reader { background:white; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.toolbar { padding:20px; background:#f8fafc; border-bottom:1px solid var(--line); }
.search-row { display:grid; grid-template-columns:minmax(240px,1fr) auto auto; gap:10px; }
input[type="search"] { width:100%; min-width:0; padding:12px 14px; border:1px solid #aebdcd; border-radius:10px; background:white; color:var(--ink); }
.filter-row { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-top:14px; }
.filter-row label { display:grid; gap:4px; color:var(--muted); font-size:12px; }
select { min-width:150px; padding:8px 34px 8px 10px; border:1px solid #bcc8d6; border-radius:8px; background:white; color:var(--ink); }
.letters { display:flex; flex-wrap:wrap; gap:5px; margin-top:16px; }
.letter-button { min-width:31px; padding:4px 8px; border-radius:7px; font-size:13px; }
.letter-button.active { background:var(--accent); border-color:var(--accent); color:white; }
.result-head { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:13px 20px; border-bottom:1px solid var(--line); }
#status { margin:0; color:var(--muted); }
.view-actions,.pagination { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.view-actions button,.pagination button { padding:6px 12px; }
#page-label,#page-label-bottom { min-width:82px; color:var(--muted); text-align:center; font-size:13px; }
.entry-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:20px; background:var(--soft); }
.entry-card { min-width:0; padding:20px 21px; background:var(--paper); border:1px solid #dedbd2; border-radius:12px; box-shadow:0 1px 1px rgba(23,38,54,.04); }
.entry-title-row { display:flex; justify-content:space-between; align-items:start; gap:14px; }
.entry-card h2 { margin:0; font:600 30px/1.2 Georgia,"Times New Roman",serif; overflow-wrap:anywhere; }
.book-badge { flex:none; padding:2px 9px; border-radius:99px; background:var(--accent-soft); color:var(--accent); font-size:12px; }
.entry-meta { margin:4px 0 12px; color:var(--muted); font-size:13px; }
.topic { display:inline-block; margin-bottom:8px; color:var(--gold); font-size:12px; }
.sense { padding-top:13px; border-top:1px solid #e2ded6; }
.sense + .sense { margin-top:13px; }
.sense-head { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
.level { padding:1px 8px; border-radius:5px; background:#e9eff6; color:#304f70; font-weight:600; }
.definition { margin:8px 0; font-size:17px; }
.example { margin:8px 0; padding:9px 12px; border-left:3px solid #9dafc1; background:#f4f5f6; color:#354050; }
.pronunciation { margin:8px 0; color:var(--muted); font-size:13px; }
.source-link { display:inline-block; margin-top:6px; font-size:13px; }
.warning { margin:8px 0; padding:8px 10px; border-radius:7px; background:var(--warning-bg); color:var(--warning); font-size:13px; }
.empty { grid-column:1/-1; padding:50px 20px; text-align:center; color:var(--muted); }
.pagination { justify-content:center; padding:15px; border-top:1px solid var(--line); }
.notice { margin-top:18px; padding:16px 18px; border:1px solid #d7dee7; border-radius:12px; background:rgba(255,255,255,.7); }
.notice p { margin:4px 0 0; color:var(--muted); font-size:13px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:780px) {
  .header-inner { align-items:start; padding:25px 18px; }
  h1 { font-size:30px; }
  main { padding:16px 12px 40px; }
  .summary { grid-template-columns:repeat(2,1fr); }
  .search-row { grid-template-columns:1fr 1fr; }
  .search-row input { grid-column:1/-1; }
  .entry-grid { grid-template-columns:1fr; padding:12px; }
  .result-head { align-items:start; }
  .view-actions { display:none; }
  select { min-width:135px; max-width:46vw; }
}
@media (max-width:460px) {
  .site-header p { font-size:13px; }
  .pdf-link { padding:7px 10px; font-size:12px; }
  .summary { gap:7px; }
  .summary div { padding:10px; }
  .filter-row { display:grid; grid-template-columns:1fr 1fr; }
  .filter-row label,.filter-row select,#clear-button { width:100%; min-width:0; max-width:none; }
  .entry-card { padding:18px 16px; }
}


html[data-theme="studio"]{
  --ink:#1c1917;--muted:#6f6a64;--line:#e4dfd6;--soft:#f3f1ec;--paper:#fffcf8;
  --accent:#1c1917;--accent-soft:#eceae4;--gold:#7a6244;--warning:#7a5b2e;--warning-bg:#f6f1e6;
}
html[data-theme="studio"] body{background:#eceae4;color:#1c1917}
html[data-theme="studio"] .site-header{background:#1c1917}
html[data-theme="studio"] .site-header .eyebrow,html[data-theme="studio"] .site-header p,html[data-theme="studio"] h1 span{color:#c9c2b8}
html[data-theme="studio"] .pdf-link{border-color:#4a463f}
html[data-theme="studio"] button{border-color:#d4cfc6;background:#fff;color:#1c1917}
html[data-theme="studio"] button:hover:not(:disabled){border-color:#1c1917;background:#f6f4f0}
html[data-theme="studio"] button.primary,html[data-theme="studio"] .letter-button.active{background:#1c1917;border-color:#1c1917;color:#fff}
html[data-theme="studio"] button:focus-visible,html[data-theme="studio"] input:focus-visible,html[data-theme="studio"] select:focus-visible,html[data-theme="studio"] a:focus-visible{outline-color:#1c1917}
html[data-theme="studio"] a{color:#1c1917}
html[data-theme="studio"] .category-sidebar{background:#f7f6f3;border-color:#e4dfd6}
html[data-theme="studio"] .category-sidebar button{background:transparent;border-color:transparent;color:#1c1917}
html[data-theme="studio"] .category-sidebar button[aria-pressed="true"]{background:#1c1917;color:#fff;border-color:#1c1917}
html[data-theme="studio"] .category-sidebar button[aria-pressed="true"] .section-progress{color:#d9d3c9}
html[data-theme="studio"] .reader{background:#fff;border-color:#e4dfd6}
html[data-theme="studio"] .toolbar,html[data-theme="studio"] .directory-bar{background:#f7f6f3;border-color:#e4dfd6}
html[data-theme="studio"] .reader #results,html[data-theme="studio"] .word-reader-frame{background:#eceae4}
html[data-theme="studio"] input[type="search"],html[data-theme="studio"] select{border-color:#d4cfc6;color:#1c1917}
html[data-theme="studio"] dialog#word-directory{border-color:#e4dfd6;background:#fff}
html[data-theme="studio"] dialog#word-directory .word-jump{background:transparent;color:#1c1917;border:0}
html[data-theme="studio"] dialog#word-directory .word-jump.visited{color:#8a8178;background:#f6f4f0}
html[data-theme="studio"] dialog#word-directory .word-jump.current{background:#1c1917;color:#fff;box-shadow:inset 3px 0 #c4b8a6}
html[data-theme="studio"] .word-jump.current{background:#1c1917;color:#fff;border-color:#1c1917;box-shadow:none}
html[data-theme="studio"] .word-jump.visited{color:#8a8178;background:#f6f4f0;border-color:#e4dfd6}
html[data-theme="studio"] #word-directory summary{color:#1c1917}
html[data-theme="studio"] .summary div,html[data-theme="studio"] .notice{border-color:#e4dfd6;background:#fffcf8}

.reader{background:transparent;border:0;border-radius:0;gap:12px}
.category-sidebar{background:#fff;border:1px solid var(--line);border-radius:16px}
.reader-top{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.reader-top .result-head{border:0;border-radius:0;background:transparent}
.reading-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
html[data-theme="studio"] .reader{background:transparent;border:0}
html[data-theme="studio"] .category-sidebar,html[data-theme="studio"] .reader-top,html[data-theme="studio"] .reading-card{border-color:#e4dfd6}
html[data-theme="studio"] .reader-top,html[data-theme="studio"] .reading-card{background:#fff}

.category-sidebar #book-sections button{font-size:15px;font-weight:600}
.category-sidebar .section-name{font-weight:600}
.category-sidebar .section-progress{font-size:13px;font-weight:600;color:#4e5b68}
.category-sidebar button[aria-pressed="true"] .section-progress{color:#244f79}
html[data-theme="studio"] .category-sidebar .section-progress{color:#5c564e}
html[data-theme="studio"] .category-sidebar button[aria-pressed="true"] .section-progress{color:#d9d3c9}

.category-sidebar #book-sections > button{margin-bottom:8px}
.category-sidebar #book-sections > details{margin:0;padding:10px 0 2px;border-top:1px solid var(--line)}
.category-sidebar #book-sections details.topic-group{margin:0;padding:0;border:0}
.category-sidebar #book-sections details.topic-group > summary{padding:8px 10px;border-radius:8px}
.category-sidebar #book-sections details.topic-group > summary[aria-pressed="true"]{background:#e0ebf5;color:#244f79}
html[data-theme="studio"] .category-sidebar #book-sections details.topic-group > summary[aria-pressed="true"]{background:#1c1917;color:#fff}
.category-sidebar #book-sections .topic-list{padding:0 0 6px 18px}
.category-sidebar #book-sections .topic-list button{margin:1px 0;padding:5px 8px;font-size:14px;font-weight:500}
.category-sidebar summary{display:flex;align-items:center;gap:8px;list-style:none}
.category-sidebar summary::-webkit-details-marker{display:none}
.category-sidebar summary::marker{content:""}
.category-sidebar summary::before{content:"";flex:none;width:0;height:0;border-style:solid;border-width:5px 0 5px 7px;border-color:transparent transparent transparent currentColor}
.category-sidebar details[open] > summary::before{border-width:7px 5px 0 5px;border-color:currentColor transparent transparent transparent}
.category-sidebar #book-sections details[open] > .letter-words{display:flex;flex-direction:column;gap:1px;max-height:46vh;overflow:auto;overscroll-behavior:contain;padding:2px 6px 8px 18px;scrollbar-width:thin}
.category-sidebar #book-sections details[open] > .letter-words::-webkit-scrollbar{width:8px}
.category-sidebar #book-sections details[open] > .letter-words::-webkit-scrollbar-thumb{background:#c5ced6;border-radius:8px}
html[data-theme="studio"] .category-sidebar #book-sections details[open] > .letter-words::-webkit-scrollbar-thumb{background:#c9c3ba}
.category-sidebar #book-sections details:not([open]) > .letter-words{display:none}
.category-sidebar #book-sections .letter-words button{margin:0;padding:5px 8px;font-size:14px;font-weight:500}
.category-sidebar #book-sections .letter-words .section-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-sidebar #book-sections .letter-words .word-jump{background:transparent;border-color:transparent;color:#244f79}
.category-sidebar #book-sections .letter-words .word-jump.current{background:#e0ebf5;color:#244f79;border-color:transparent;box-shadow:none}
html[data-theme="studio"] .category-sidebar #book-sections .letter-words .word-jump{color:#1c1917;background:transparent;border-color:transparent}
html[data-theme="studio"] .category-sidebar #book-sections .letter-words .word-jump.current{background:#1c1917;color:#fff;border-color:#1c1917;box-shadow:none}

body[data-reader-view="practice"] .reader,
body[data-reader-view="list"] .reader{grid-template-columns:248px minmax(0,1fr)}
@media(max-width:780px){
  body[data-reader-view="practice"] .reader,
  body[data-reader-view="list"] .reader{grid-template-columns:190px minmax(0,1fr)}
}
body[data-reader-view="practice"] #previous-page,
body[data-reader-view="practice"] #next-page,
body[data-reader-view="practice"] #open-directory{display:none}
body[data-reader-view="practice"] .reading-card{background:#eef3f0;border-color:transparent}
html[data-theme="studio"] body[data-reader-view="practice"] .reading-card{background:#e7e2d8}
body[data-reader-view="practice"] .reader #results{background:transparent}
body[data-reader-view="practice"] .view-actions{display:none}
body[data-reader-view="practice"] #results{touch-action:pan-y}
.gallery{will-change:transform}

.gallery-stage{position:relative;width:100%;height:100%;min-height:280px;overflow:hidden;touch-action:pan-y}
.gallery-track{position:relative;width:100%;height:100%;overflow:hidden}
.gallery-pane{position:absolute;inset:0;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;will-change:transform;backface-visibility:hidden;contain:layout paint;visibility:hidden;opacity:0}
.gallery-pane[data-group]{visibility:visible;opacity:1}
.gallery-pane.is-animating{transition:transform .32s cubic-bezier(.22,.8,.22,1)}
body[data-reader-view="practice"] .reader #results,
body[data-reader-view="practice"] #results{overflow:hidden;display:flex;flex-direction:column}
body[data-reader-view="practice"] .gallery-stage{flex:1;min-height:0}

.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:14px;padding:14px 14px 32px}
@media(max-width:900px){body[data-picture-book] main{padding-left:0;padding-right:0}body[data-picture-book] #results>article{padding:0}body[data-picture-book] .gallery-pane{scrollbar-width:none}body[data-picture-book] .gallery-pane::-webkit-scrollbar{display:none}.gallery{gap:6px;padding:6px 0 12px}}
@media(max-width:760px){.gallery{grid-template-columns:1fr 1fr;gap:4px;padding:4px 0 8px}.gallery-pane .gallery-card:nth-child(-n+12){content-visibility:visible;contain-intrinsic-size:auto}.gallery-slide img{backface-visibility:hidden}.gallery-favorite,html[data-theme="studio"] .gallery-favorite{top:7px;right:7px;width:32px;height:32px}.gallery-favorite>svg{width:17px;height:17px}}
.gallery-empty{grid-column:1/-1;margin:48px 8px;color:#6d675f;font-size:15px}
.picture-search-progress{margin:18px 0 8px;padding:0 14px;text-align:center;color:#657287;font-size:13px;line-height:1.45}
.picture-search-more{display:block;margin:0 auto 8px;padding:9px 18px;border:1px solid #b9cddd;border-radius:999px;background:#edf4fa;color:#31536f;font-size:13px;font-weight:700}
.picture-search-more:hover{background:#dfeefa;border-color:#94b3ca}
.picture-search-sentinel{width:100%;height:1px}
.entry-card>.gallery:empty,.picture-search-plain-list:empty{display:none}
.gallery-card,html[data-theme="studio"] .gallery-card{display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0;padding:0;border:1px solid #d8dedb;border-radius:18px;background:#fff;color:#1c1917;text-align:left;overflow:hidden;box-shadow:0 2px 5px rgba(24,45,37,.04),0 12px 28px rgba(24,45,37,.08);content-visibility:auto;contain-intrinsic-size:220px 280px;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;cursor:pointer}
.gallery-card:hover,html[data-theme="studio"] .gallery-card:hover,.gallery-card:focus-visible{transform:translateY(-3px);background:#fff;border-color:#bdc9c4;box-shadow:0 5px 12px rgba(24,45,37,.06),0 18px 38px rgba(24,45,37,.12)}
.gallery-card.is-action-phrase-card,html[data-theme="studio"] .gallery-card.is-action-phrase-card{background:#315f89;border-color:#214c72;box-shadow:0 2px 7px rgba(25,65,102,.18),0 15px 32px rgba(25,65,102,.24)}
.gallery-card.is-action-phrase-card:hover,html[data-theme="studio"] .gallery-card.is-action-phrase-card:hover,.gallery-card.is-action-phrase-card:focus-visible{background:#294f74;border-color:#173d5d;box-shadow:0 5px 13px rgba(25,65,102,.22),0 20px 42px rgba(25,65,102,.30)}
.gallery-card.is-action-phrase-card .gallery-meta,html[data-theme="studio"] .gallery-card.is-action-phrase-card .gallery-meta{background:#315f89}
.gallery-card.is-action-phrase-card .gallery-word,html[data-theme="studio"] .gallery-card.is-action-phrase-card .gallery-word{color:#fff}
.gallery-card.is-action-phrase-card .gallery-action-verb,html[data-theme="studio"] .gallery-card.is-action-phrase-card .gallery-action-verb{color:#ffd45f;font-weight:850}
.gallery-card.is-action-phrase-card .gallery-card-translation,html[data-theme="studio"] .gallery-card.is-action-phrase-card .gallery-card-translation{color:rgba(255,255,255,.82)}
.gallery-card.is-action-phrase-card .gallery-sounds,html[data-theme="studio"] .gallery-card.is-action-phrase-card .gallery-sounds{border-top-color:rgba(255,255,255,.30)}
.gallery-card.is-action-phrase-card button.gallery-speak.uk,.gallery-card.is-action-phrase-card button.gallery-speak.us,html[data-theme="studio"] .gallery-card.is-action-phrase-card button.gallery-speak.uk,html[data-theme="studio"] .gallery-card.is-action-phrase-card button.gallery-speak.us{color:#fff}
.gallery-card.is-action-phrase-card button.gallery-speak.uk i{background:#79a8dc}
.gallery-card.is-action-phrase-card button.gallery-speak.us i{background:#df6666}
.gallery-card.is-located,html[data-theme="studio"] .gallery-card.is-located{box-shadow:0 0 0 3px #1c1917,0 18px 40px rgba(28,25,23,.16)}
html:not([data-theme="studio"]) .gallery-card.is-located{box-shadow:0 0 0 3px #1d4f91,0 18px 40px rgba(29,79,145,.2)}
.gallery-photo{position:relative;display:block;width:calc(100% - 8px);margin:0 4px;aspect-ratio:1;overflow:hidden;background:#e6e1d8;border-radius:13px}
.gallery-photo::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 1px rgba(28,49,41,.10);border-radius:inherit;pointer-events:none;z-index:2}
.gallery-favorite,html[data-theme="studio"] .gallery-favorite{position:absolute;z-index:4;top:9px;right:9px;display:grid;width:36px;height:36px;margin:0;padding:0;place-items:center;color:#244c3f;background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.92);border-radius:50%;box-shadow:0 4px 13px rgba(18,38,31,.18);backdrop-filter:blur(5px) saturate(108%);-webkit-backdrop-filter:blur(5px) saturate(108%)}
.gallery-favorite>svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor}
.gallery-favorite:hover,.gallery-favorite:focus-visible,html[data-theme="studio"] .gallery-favorite:hover,html[data-theme="studio"] .gallery-favorite:focus-visible{color:#173e32;background:rgba(255,255,255,.94);border-color:#fff;transform:none}
.gallery-favorite[aria-pressed="true"],
.gallery-favorite[aria-pressed="true"]:hover,
.gallery-favorite[aria-pressed="true"]:active,
.gallery-favorite[aria-pressed="true"]:focus-visible,
html[data-theme="studio"] .gallery-favorite[aria-pressed="true"],
html[data-theme="studio"] .gallery-favorite[aria-pressed="true"]:hover,
html[data-theme="studio"] .gallery-favorite[aria-pressed="true"]:active,
html[data-theme="studio"] .gallery-favorite[aria-pressed="true"]:focus-visible{color:#fff;background:rgba(32,88,70,.94);border-color:rgba(255,255,255,.9)}
.gallery-favorite[aria-pressed="true"]>svg{fill:currentColor}
@media(max-width:760px){.gallery-favorite,html[data-theme="studio"] .gallery-favorite{top:7px;right:7px;width:32px;height:32px}.gallery-favorite>svg{width:17px;height:17px}}
.gallery-reel{display:flex;height:100%;transition:transform .6s cubic-bezier(.22,.61,.36,1)}
.gallery-photo.is-reel .gallery-reel{position:absolute;inset:0;height:auto}
.gallery-slide{flex:0 0 100%;height:100%;background:#e6e1d8 center/cover no-repeat}
.gallery-photo:not(.is-reel)>.gallery-slide{position:absolute;inset:0}
.gallery-slide img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.02);transition:transform .55s ease}
.gallery-card:hover .gallery-slide img{transform:scale(1.04)}
.gallery-dots{position:absolute;left:0;right:0;bottom:10px;z-index:3;display:flex;justify-content:center;gap:6px}
button.gallery-dot,html[data-theme="studio"] button.gallery-dot{width:7px;height:7px;margin:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(28,25,23,.28)}
button.gallery-dot.is-on,html[data-theme="studio"] button.gallery-dot.is-on{background:#fff;box-shadow:0 0 0 1px rgba(28,25,23,.18)}
button.gallery-dot:hover,html[data-theme="studio"] button.gallery-dot:hover{background:#fff;border:0}
.gallery-meta{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:10px;min-width:0;padding:14px 16px 14px}
.gallery-word{display:block;flex:1 1 auto;width:auto;min-width:0;padding:0;font:600 20px/1.2 system-ui,sans-serif;letter-spacing:-.04em;color:#1c1917;white-space:nowrap;overflow:hidden;overflow-wrap:normal;word-break:normal}
.gallery-word.is-two-line{display:-webkit-box;white-space:normal;line-height:1.18;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.gallery-sounds{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:12px;flex:none;width:100%;margin-top:auto;padding-top:11px;border-top:1px solid #dfe4e1}
button.gallery-speak,html[data-theme="studio"] button.gallery-speak{display:inline-flex;align-items:center;gap:4px;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;line-height:1}
button.gallery-speak.uk,html[data-theme="studio"] button.gallery-speak.uk{color:#1d4f91}
button.gallery-speak.us,html[data-theme="studio"] button.gallery-speak.us{color:#e02323}
button.gallery-speak b{font:800 13px/1 system-ui,sans-serif;letter-spacing:.01em}
button.gallery-speak i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:#fff;font-style:normal}
button.gallery-speak.uk i{background:#1d4f91}
button.gallery-speak.us i{background:#e02323}
button.gallery-speak svg{width:13px;height:13px;display:block}
button.gallery-speak:hover,html[data-theme="studio"] button.gallery-speak:hover{background:transparent;border:0;transform:none}
button.gallery-speak:hover i{filter:brightness(1.08)}
html:not([data-theme="studio"]) .gallery-word{color:#1d3b34}
@media(prefers-reduced-motion:reduce){.gallery-card,.gallery-slide img,.gallery-reel{transition:none}}
dialog#word-preview{width:min(980px,calc(100vw - 56px));height:min(88vh,900px);margin:auto;padding:0;border:0;border-radius:22px;overflow:hidden;background:#f6f5f1;box-shadow:0 28px 80px rgba(18,14,10,.38)}
dialog#word-preview::backdrop{background:rgba(18,14,10,.52)}
dialog#word-preview .preview-stage{position:relative;width:100%;height:100%;overflow:hidden;background:#f6f5f1;touch-action:none}
dialog#word-preview .preview-track{position:relative;width:100%;height:100%;overflow:hidden;background:#f6f5f1}
dialog#word-preview .word-reader-frame{position:absolute;inset:0;width:100%;height:100%!important;min-height:100%;border:0;display:block;background:#f6f5f1;pointer-events:auto;touch-action:pan-y;transform:translate3d(0,0,0);backface-visibility:hidden;will-change:transform}
dialog#word-preview .word-reader-frame{transition:none}
dialog#word-preview .word-reader-frame.is-animating{transition:transform .32s cubic-bezier(.22,.8,.22,1)}
dialog#word-preview .preview-gesture{display:none;position:absolute;inset:0;z-index:3;touch-action:none;background:transparent}
dialog#word-preview #close-word-preview,html[data-theme="studio"] dialog#word-preview #close-word-preview{position:sticky;top:16px;float:right;width:auto;height:34px;margin:16px 16px -52px 0;padding:0 14px;border:0;border-radius:999px;background:rgba(255,255,255,.94);color:#1c1917;box-shadow:0 8px 22px rgba(28,25,23,.16);z-index:4;font:600 13px/1 system-ui}
dialog#word-preview #close-word-preview:hover,html[data-theme="studio"] dialog#word-preview #close-word-preview:hover{background:#fff;border:0;color:#1c1917}
dialog#word-preview.is-picture-preview{display:flex;flex-direction:column;justify-content:center;width:min(560px,calc(100vw - 40px));height:min(92vh,880px);border-radius:30px;background:#050706}
dialog#word-preview.is-picture-preview .preview-stage{flex:none;min-height:0;height:min(calc(100% - 104px),770px)}
dialog#word-preview.is-picture-preview .preview-stage,dialog#word-preview.is-picture-preview .preview-track,dialog#word-preview.is-picture-preview .word-reader-frame{background:#050706}
dialog#word-preview.is-picture-preview .word-reader-frame{touch-action:none;overscroll-behavior:none}
dialog#word-preview .picture-preview-thumbs[hidden]{display:none}
dialog#word-preview.is-picture-preview .picture-preview-thumbs{display:flex;flex:none;align-items:center;gap:11px;width:100%;height:104px;padding:14px max(18px,calc(50% - 36px));overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;background:#050706;border-bottom:0}
dialog#word-preview.is-picture-preview .picture-preview-thumbs::-webkit-scrollbar{display:none}
button.picture-preview-thumb,html[data-theme="studio"] button.picture-preview-thumb{display:block;flex:0 0 72px;width:72px;height:72px;margin:0;padding:3px;overflow:hidden;border:2px solid transparent;border-radius:15px;background:#202420;color:#dfe7e2;box-shadow:none;scroll-snap-align:center;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}
button.picture-preview-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px}
button.picture-preview-thumb>span{display:grid;width:100%;height:100%;place-items:center;font:700 14px/1 system-ui}
button.picture-preview-thumb.is-active,html[data-theme="studio"] button.picture-preview-thumb.is-active{border-color:#74d69b;background:#17231c;box-shadow:0 0 0 2px rgba(116,214,155,.18),0 0 18px rgba(116,214,155,.18);transform:scale(1.04)}
dialog#word-preview.is-picture-preview #close-word-preview,html[data-theme="studio"] dialog#word-preview.is-picture-preview #close-word-preview{position:absolute;top:68px;right:24px;float:none;width:40px;height:40px;margin:0;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(7,10,8,.58);box-shadow:0 5px 20px rgba(0,0,0,.3);font-size:0;backdrop-filter:blur(10px) saturate(120%);-webkit-backdrop-filter:blur(10px) saturate(120%)}
dialog#word-preview.is-picture-preview #close-word-preview::before,dialog#word-preview.is-picture-preview #close-word-preview::after{content:"";position:absolute;left:50%;top:50%;width:20px;height:3px;border-radius:999px;background:#fff;transform-origin:center}
dialog#word-preview.is-picture-preview #close-word-preview::before{transform:translate(-50%,-50%) rotate(45deg)}
dialog#word-preview.is-picture-preview #close-word-preview::after{transform:translate(-50%,-50%) rotate(-45deg)}
.preview-auto-controls{display:flex;position:absolute;top:68px;left:24px;z-index:5;gap:8px}
.preview-auto-controls[hidden]{display:none!important}
.preview-auto-controls button,html[data-theme="studio"] .preview-auto-controls button{display:grid;width:40px;height:40px;margin:0;padding:0;place-items:center;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(7,10,8,.58);color:#fff;box-shadow:0 5px 20px rgba(0,0,0,.3);backdrop-filter:blur(10px) saturate(120%);-webkit-backdrop-filter:blur(10px) saturate(120%)}
.preview-auto-controls button:hover,html[data-theme="studio"] .preview-auto-controls button:hover{border-color:rgba(255,255,255,.5);background:rgba(24,45,36,.82);color:#fff}
.preview-auto-controls button[aria-pressed="true"],html[data-theme="studio"] .preview-auto-controls button[aria-pressed="true"]{border-color:#83d9a4;background:rgba(29,91,62,.88);box-shadow:0 0 0 2px rgba(131,217,164,.18),0 5px 20px rgba(0,0,0,.3)}
.preview-auto-controls svg{display:block;width:22px;height:22px}
.preview-auto-controls .preview-pause-icon,.preview-auto-controls .preview-sound-off{display:none}
#preview-auto-toggle[aria-pressed="true"] .preview-play-icon,#preview-sound-toggle[aria-pressed="true"] .preview-sound-on{display:none}
#preview-auto-toggle[aria-pressed="true"] .preview-pause-icon,#preview-sound-toggle[aria-pressed="true"] .preview-sound-off{display:block}
@media(max-width:760px){
dialog#word-preview{width:100vw;width:100dvw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0;overflow:hidden;box-shadow:none}
dialog#word-preview .preview-stage,dialog#word-preview .preview-track,dialog#word-preview .word-reader-frame{width:100%;height:100%;min-height:100%}
dialog#word-preview .word-reader-frame{pointer-events:auto;touch-action:pan-y}
dialog#word-preview .preview-gesture{display:block;pointer-events:none}
dialog#word-preview #close-word-preview,html[data-theme="studio"] dialog#word-preview #close-word-preview{position:fixed;top:calc(12px + env(safe-area-inset-top));right:14px;float:none;margin:0;z-index:5}
dialog#word-preview.is-picture-preview{width:100vw;width:100dvw;height:100vh;height:100dvh;border-radius:0}
dialog#word-preview.is-picture-preview .picture-preview-thumbs{height:calc(104px + env(safe-area-inset-top));padding-top:calc(14px + env(safe-area-inset-top))}
dialog#word-preview.is-picture-preview .preview-stage{height:min(calc(100% - 104px - env(safe-area-inset-top)),calc(100vw + 245px));min-height:0}
dialog#word-preview.is-picture-preview #close-word-preview,html[data-theme="studio"] dialog#word-preview.is-picture-preview #close-word-preview{position:absolute;top:68px;right:24px}
}


body[data-picture-book] :is(.view-actions,.reader-stage){display:none!important}
body[data-picture-book] #results > article{padding:1rem}
body[data-picture-book] #results>article.entry-card{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
body[data-picture-book] #results details{margin:.65rem 0}
@media(max-width:900px){
  body[data-picture-book] #results>article.entry-card{padding:0}
  body[data-picture-book] #results{scrollbar-width:none}
  body[data-picture-book] #results::-webkit-scrollbar{display:none}
}

.picture-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:18px 20px 30px}
.picture-category-card{display:block;min-width:0;padding:0;overflow:hidden;text-align:left;color:#1e2f43;background:#fff;border:1px solid #cfdae4;border-radius:18px;box-shadow:0 4px 12px rgba(30,58,83,.09);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.picture-category-card:hover{transform:translateY(-3px);border-color:#9db5c8;box-shadow:0 14px 30px rgba(30,58,83,.16)}
.picture-category-card:focus-visible{outline:4px solid rgba(50,111,157,.24);outline-offset:3px}
.picture-category-card>img{display:block;width:100%;aspect-ratio:1.58/1;object-fit:cover;background:#e4ebf1;transform:scale(1.01);transform-origin:center}
.picture-category-card-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:98px;padding:16px 20px 17px}
.picture-category-card-name{display:grid;gap:3px;min-width:0}
.picture-category-card-name strong{font-size:25px;line-height:1.05;letter-spacing:-.02em}
.picture-category-card-name>span{font-size:17px;color:#526171;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.picture-category-card-count{display:flex;align-items:center;gap:8px;flex:none;white-space:nowrap;font-size:16px;font-weight:600;color:#293b4f}
.picture-category-card-arrow{font:300 34px/1 Arial,sans-serif;transform:translateY(-1px)}
.picture-category-back{display:inline-flex;align-items:center;gap:7px;margin:14px 20px 0;padding:9px 14px;border:1px solid #cad7e1;border-radius:999px;background:#fff;color:#28455f;font:700 14px/1.2 system-ui,sans-serif;box-shadow:0 3px 10px rgba(30,58,83,.08);cursor:pointer}
.picture-category-back:hover{background:#edf4f9;border-color:#9fb7c9}
.picture-category-back:focus-visible{outline:3px solid rgba(50,111,157,.24);outline-offset:2px}
.picture-category-back-arrow{font:400 24px/1 Arial,sans-serif;margin-top:-2px}
.picture-nav-back{display:none!important}
@media(min-width:761px){
  body[data-picture-book] .reader #results>.picture-category-back{display:none}
}
.picture-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:14px 20px 30px}
.picture-topic-card{position:relative;display:block;min-width:0;aspect-ratio:1/1;padding:0;overflow:hidden;text-align:left;color:#fff;background:#dfe7ed;border:1px solid #c8d5df;border-radius:18px;box-shadow:0 4px 14px rgba(30,58,83,.11);cursor:pointer;isolation:isolate;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.picture-topic-card:hover{transform:translateY(-2px);border-color:#9db5c8;box-shadow:0 10px 22px rgba(30,58,83,.14)}
.picture-topic-card:focus-visible{outline:3px solid rgba(50,111,157,.24);outline-offset:2px}
.picture-topic-card-media{position:absolute;inset:0;display:block;overflow:hidden;background:#e4ebf1}
.picture-topic-card-media>img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.01);transform-origin:center}
.picture-topic-card-media::after{content:"";position:absolute;z-index:1;inset:42% 0 0;pointer-events:none;background:linear-gradient(180deg,rgba(5,12,18,0) 0%,rgba(5,12,18,.18) 34%,rgba(5,12,18,.68) 100%)}
.picture-topic-card-coming{position:absolute;inset:0;z-index:3;display:grid;place-content:center;gap:4px;padding:12px;text-align:center;color:#fff;background:linear-gradient(180deg,rgba(9,27,48,.26),rgba(9,27,48,.72));text-shadow:0 2px 8px rgba(0,0,0,.42)}
.picture-topic-card-coming strong{font-size:21px;line-height:1.05;letter-spacing:.08em}
.picture-topic-card-coming span{font-size:12px;font-weight:700;letter-spacing:.16em}
.picture-topic-card.is-coming-soon{cursor:default}
.picture-topic-card.is-coming-soon:hover{transform:none;border-color:#cfdae4;box-shadow:0 3px 10px rgba(30,58,83,.08)}
.picture-topic-card.is-coming-soon .picture-topic-card-arrow{visibility:hidden}
.picture-topic-card-meta{position:absolute;z-index:2;inset:auto 10px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0;color:#18324a;background:transparent;border:0;box-shadow:none;text-shadow:0 1px 2px rgba(255,255,255,.55)}
.picture-topic-card-name{display:grid;flex:0 1 auto;gap:0;width:max-content;max-width:calc(100% - 56px);min-width:0;min-height:48px;padding:10px 18px;overflow-x:auto;overscroll-behavior-inline:contain;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.picture-topic-card-name::-webkit-scrollbar{display:none}
.picture-topic-card-name strong{display:block;width:max-content;min-width:100%;font-size:18px;line-height:1.15;color:#fff;font-weight:800;letter-spacing:.01em;white-space:nowrap;text-shadow:0 2px 6px rgba(0,0,0,.78)}
.picture-topic-card-name>span{width:max-content;min-width:100%;font-size:14px;line-height:1.2;color:#edc45d;font-weight:750;font-style:italic;letter-spacing:.015em;white-space:nowrap;text-shadow:0 2px 6px rgba(0,0,0,.72)}
.picture-topic-card-arrow{display:grid;flex:none;width:32px;height:32px;place-items:center;color:#fff;background:rgba(255,255,255,.28);border:1px solid rgba(255,255,255,.72);border-radius:50%;box-shadow:0 3px 10px rgba(13,31,47,.14);backdrop-filter:blur(3px) saturate(105%);-webkit-backdrop-filter:blur(3px) saturate(105%)}
.picture-topic-card-arrow>svg{display:block;width:16px;height:16px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}

@media(max-width:760px){
  body[data-picture-book]:not([data-reader-view="practice"]) .reader #results{display:block!important;overflow-y:auto;padding:0;background:transparent}
  .picture-category-back{position:sticky;top:8px;z-index:5;margin:10px 12px 0;padding:9px 13px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px)}
  .picture-category-grid{grid-template-columns:1fr;gap:14px;padding:12px 12px 24px}
  .picture-category-card>img{aspect-ratio:1.7/1}
  .picture-category-card-meta{min-height:82px;padding:13px 15px}
  .picture-category-card-name strong{font-size:21px}
  .picture-category-card-name>span,.picture-category-card-count{font-size:14px}
  .picture-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 12px 24px}
  .picture-topic-card{border-radius:15px}
  .picture-topic-card-coming strong{font-size:17px}
  .picture-topic-card-coming span{font-size:10px}
  .picture-topic-card-meta{inset:auto 7px 7px;gap:7px;padding:0}
  .picture-topic-card-name{max-width:calc(100% - 43px);min-height:40px;padding:7px 11px;border-radius:16px}
  .picture-topic-card-name strong{font-size:13.5px}
  .picture-topic-card-name>span{font-size:11.5px}
  .picture-topic-card-arrow{width:29px;height:29px}
}


body[data-picture-book] .mode-nav [data-view=practice]{display:none!important}


.gallery-card-title{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:3px;min-height:52px}
.gallery-card-translation{display:block;width:100%;max-width:none;color:#68727b;font-size:12px;line-height:1.35;text-align:left;overflow-wrap:anywhere;text-wrap:pretty}
.gallery-meta>.gallery-sounds{align-self:stretch;margin-left:0}
.gallery-card>button.picture-card-category,html[data-theme="studio"] .gallery-card>button.picture-card-category{display:block;width:100%;padding:9px 14px 7px;border:0;border-radius:0;background:#fff;color:#526a60;font-size:12px;font-weight:650;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-card>button.picture-card-category:hover,.gallery-card>button.picture-card-category:focus-visible,html[data-theme="studio"] .gallery-card>button.picture-card-category:hover,html[data-theme="studio"] .gallery-card>button.picture-card-category:focus-visible{border:0;background:#f7f9f8;color:#294b3e;text-decoration:underline}
.gallery-card.is-action-phrase-card>button.picture-card-category,html[data-theme="studio"] .gallery-card.is-action-phrase-card>button.picture-card-category{background:#214c72;color:#fff}
.gallery-card.is-action-phrase-card>button.picture-card-category:hover,.gallery-card.is-action-phrase-card>button.picture-card-category:focus-visible,html[data-theme="studio"] .gallery-card.is-action-phrase-card>button.picture-card-category:hover,html[data-theme="studio"] .gallery-card.is-action-phrase-card>button.picture-card-category:focus-visible{background:#173d5d;color:#fff}

@media (hover:hover) {
  body[data-picture-book] #book-sections :is(summary,button):hover {background-color:#edf3f8;border-radius:8px}
}
body[data-picture-book] #book-sections :is(summary,button)[aria-pressed="true"] {background-color:#dce9f5;border-radius:8px}

body[data-picture-book] #book-sections details > summary {
  position: relative;
  list-style: none;
  padding-inline-start: 30px;
}
body[data-picture-book] #book-sections details > summary::-webkit-details-marker { display: none }
body[data-picture-book] #book-sections details > summary::before {
  content: "";
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-50%) rotate(-45deg);
}
body[data-picture-book] #book-sections details[open] > summary::before {
  transform: translateY(-65%) rotate(45deg);
}

body[data-picture-book] #book-sections details.topic-group > summary {
  padding-inline-start: 30px;
}

body[data-picture-book] #book-sections > details > .topic-group { margin-inline-start: 20px; }

.picture-category-label{display:flex;align-items:center;gap:8px;min-width:0}
.picture-category-icon{width:17px;height:17px;flex:none}

@media (hover:hover) {
  body[data-picture-book] #book-sections > details > summary:hover .picture-category-icon { fill: currentColor; fill-opacity: .24; }
}

.picture-card-category{color:#526375;font-size:.78em;line-height:1.35}

button.picture-card-category{align-self:flex-start;background:none;border:0;padding:0;text-align:left;cursor:pointer}
button.picture-card-category:hover,button.picture-card-category:focus-visible{text-decoration:underline}

.phone-book-setting{display:none}

@media(max-width:760px){
  img,.gallery-photo,.gallery-slide,.gallery-favorite,.gallery-speak,.picture-favorite-open,.picture-favorite-speak,.preview-auto-controls button{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
  .phone-book-setting{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:4px 0 10px;border-bottom:1px solid #e6ebf1}
  .phone-book-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .phone-book-options .book-option{justify-content:center;margin:0;padding:9px 7px;border-radius:9px;background:#f3f6f9;text-align:center;font-size:12px}
  .phone-book-options .book-option[aria-selected="true"]{background:#dce9f5;color:#235784}

  #phone-play-picker[open]{position:fixed;inset:auto 0 0;z-index:120;display:flex;width:100%;max-width:none;height:min(78dvh,680px);max-height:none;margin:0;padding:8px 16px 0;flex-direction:column;overflow:hidden;border:0;border-radius:28px 28px 0 0;background:#fff;color:#1c3044;box-shadow:0 -16px 45px rgba(20,42,60,.22)}
  #phone-play-picker::backdrop{background:rgba(17,31,43,.46);backdrop-filter:blur(2px)}
  .phone-play-handle{width:42px;height:5px;margin:0 auto 12px;flex:none;border-radius:999px;background:#dce5eb}
  .phone-play-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px;flex:none}
  .phone-play-head h2{margin:0 0 3px;color:#1c3044;font:750 21px/1.25 system-ui,sans-serif}
  .phone-play-head p{margin:0;color:#71808d;font:500 13px/1.35 system-ui,sans-serif}
  #close-phone-play-picker{display:grid;width:40px;height:40px;flex:none;margin:0;padding:0;place-items:center;border:0;border-radius:50%;background:#f1f4f6;color:#324b60;font:400 28px/1 system-ui,sans-serif}
  .phone-play-groups{flex:1;min-height:0;display:block;overflow-y:auto;overscroll-behavior:contain;padding:0 0 12px;scrollbar-width:none}
  .phone-play-groups::-webkit-scrollbar{display:none}
  .phone-play-group{margin:0 0 8px;border-radius:17px;background:#f4f7f9;overflow:hidden}
  .phone-play-group>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:60px;padding:9px 44px 9px 15px;list-style:none;position:relative;color:#1c3044}
  .phone-play-group>summary::-webkit-details-marker{display:none}
  .phone-play-group>summary::after{content:"";position:absolute;right:18px;top:50%;width:7px;height:7px;border:solid #71808d;border-width:0 2px 2px 0;transform:translateY(-70%) rotate(45deg);transition:transform .16s ease}
  .phone-play-group[open]>summary::after{transform:translateY(-35%) rotate(225deg)}
  .phone-play-group-copy{min-width:0;display:grid;gap:2px}
  .phone-play-group-copy strong{overflow:hidden;color:#1c3044;font:700 16px/1.2 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
  .phone-play-group-copy small{overflow:hidden;color:#71808d;font:500 12px/1.2 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
  .phone-play-group-count{color:#71808d;font:650 13px/1 system-ui,sans-serif}
  .phone-play-group:not([open])>.phone-play-topic-list{display:none}
  .phone-play-group[open]>.phone-play-topic-list{display:grid;gap:4px;padding:0 9px 9px 36px}
  .phone-play-topic{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:52px;width:100%;padding:7px 11px;border:0;border-radius:13px;background:transparent;color:#1c3044;text-align:left;box-shadow:none}
  .phone-play-topic>span{min-width:0;display:grid;gap:2px}
  .phone-play-topic strong{overflow:hidden;font:700 14px/1.2 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
  .phone-play-topic small{overflow:hidden;color:#71808d;font:500 11px/1.2 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
  .phone-play-topic em{color:#71808d;font:600 12px/1 system-ui,sans-serif;font-style:normal;white-space:nowrap}
  .phone-play-topic.is-selected,
  .phone-play-topic.is-selected:hover:not(:disabled),
  .phone-play-topic.is-selected:active,
  .phone-play-topic.is-selected:focus-visible,
  html[data-theme="studio"] .phone-play-topic.is-selected,
  html[data-theme="studio"] .phone-play-topic.is-selected:hover:not(:disabled),
  html[data-theme="studio"] .phone-play-topic.is-selected:active,
  html[data-theme="studio"] .phone-play-topic.is-selected:focus-visible{padding-left:39px;border-color:#245c91;background:#245c91;color:#fff}
  .phone-play-topic.is-selected::before{content:"✓";position:absolute;left:11px;top:50%;display:grid;width:20px;height:20px;place-items:center;border-radius:50%;background:rgba(255,255,255,.2);font:700 13px/1 system-ui,sans-serif;transform:translateY(-50%)}
  .phone-play-topic.is-selected strong{color:#fff}
  .phone-play-topic.is-selected small,.phone-play-topic.is-selected em{color:rgba(255,255,255,.78)}
  .phone-play-action{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:12px;margin:0 -16px;padding:12px 16px max(14px,env(safe-area-inset-bottom));flex:none;border-top:1px solid #dce5eb;background:#fff}
  .phone-play-settings,html[data-theme="studio"] .phone-play-settings{grid-column:1/-1;display:grid;grid-template-columns:22px auto minmax(0,1fr) 12px;align-items:center;gap:8px;min-height:38px;width:100%;margin:0;padding:0 2px 8px;border:0;border-bottom:1px solid #edf1f4;border-radius:0;background:transparent;color:#2b465d;text-align:left;box-shadow:none}
  .phone-play-settings:hover,html[data-theme="studio"] .phone-play-settings:hover{border-color:#edf1f4;background:transparent;color:#245c91;transform:none}
  .phone-play-settings svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .phone-play-settings>span{font:700 13px/1.2 system-ui,sans-serif}
  .phone-play-settings em{overflow:hidden;color:#71808d;font:500 12px/1.2 system-ui,sans-serif;font-style:normal;text-align:right;text-overflow:ellipsis;white-space:nowrap}
  .phone-play-settings b{color:#81909c;font:400 22px/1 system-ui,sans-serif}
  .phone-play-action p{min-width:0;display:grid;gap:2px;margin:0}
  .phone-play-action p>span{color:#71808d;font:500 11px/1.2 system-ui,sans-serif}
  .phone-play-action strong{overflow:hidden;color:#1c3044;font:700 14px/1.3 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
  #start-phone-play{display:inline-flex;min-height:50px;align-items:center;justify-content:center;gap:8px;padding:0 15px;border:0;border-radius:16px;background:#245c91;color:#fff;font:700 16px/1 system-ui,sans-serif;box-shadow:0 8px 22px rgba(36,92,145,.25)}
  #start-phone-play:disabled{background:#c8d1d8;color:#f6f8f9;box-shadow:none}
  #start-phone-play svg{width:19px;height:19px}
}

#playback-settings[open]{position:fixed;z-index:150;display:flex;width:min(480px,calc(100vw - 32px));max-height:min(82dvh,650px);margin:auto;padding:10px 20px 22px;flex-direction:column;overflow:hidden;border:0;border-radius:24px;background:#fff;color:#1c3044;box-shadow:0 24px 70px rgba(16,35,50,.3)}
#playback-settings::backdrop{background:rgba(17,31,43,.52);backdrop-filter:blur(3px)}
.playback-settings-handle{display:none;width:42px;height:5px;margin:0 auto 13px;flex:none;border-radius:999px;background:#dce5eb}
.playback-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.playback-settings-head h2{margin:0 0 3px;color:#1c3044;font:750 21px/1.25 system-ui,sans-serif}
.playback-settings-head p{margin:0;color:#71808d;font:500 12px/1.35 system-ui,sans-serif}
#close-playback-settings,html[data-theme="studio"] #close-playback-settings{display:grid;width:38px;height:38px;flex:none;margin:0;padding:0;place-items:center;border:0;border-radius:50%;background:#f1f4f6;color:#324b60;font:400 27px/1 system-ui,sans-serif}
.playback-settings-body{display:grid;gap:18px;overflow-y:auto}
.playback-settings-body fieldset{min-width:0;margin:0;padding:0;border:0}
.playback-settings-body legend{margin:0 0 8px;color:#526575;font:700 13px/1.3 system-ui,sans-serif}
.playback-segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;border-radius:14px;background:#f0f4f7}
.playback-segments-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.playback-segments label{min-width:0;cursor:pointer}
.playback-segments input{position:absolute;opacity:0;pointer-events:none}
.playback-segments span{display:flex;min-height:42px;align-items:center;justify-content:center;gap:4px;padding:7px 5px;border-radius:10px;color:#607181;font:650 13px/1.2 system-ui,sans-serif;text-align:center;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.playback-segments small{font:600 10px/1 system-ui,sans-serif}
.playback-segments input:checked+span{background:#245c91;color:#fff;box-shadow:0 3px 10px rgba(36,92,145,.22)}
.playback-segments input:focus-visible+span{outline:2px solid #6b9ac3;outline-offset:1px}
.playback-loop{display:flex;min-height:58px;align-items:center;justify-content:space-between;gap:16px;padding:5px 2px;cursor:pointer}
.playback-loop>span{display:grid;gap:3px}
.playback-loop strong{color:#1c3044;font:700 14px/1.25 system-ui,sans-serif}
.playback-loop small{color:#71808d;font:500 11px/1.3 system-ui,sans-serif}
.playback-loop input{position:absolute;opacity:0;pointer-events:none}
.playback-loop i{position:relative;width:48px;height:28px;flex:none;border-radius:999px;background:#cbd4db;box-shadow:inset 0 0 0 1px rgba(37,64,85,.08);transition:background .18s ease}
.playback-loop i::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(24,43,58,.24);transition:transform .18s ease}
.playback-loop input:checked+i{background:#245c91}
.playback-loop input:checked+i::after{transform:translateX(20px)}
.playback-loop input:focus-visible+i{outline:2px solid #6b9ac3;outline-offset:2px}
.preview-auto-controls .preview-settings-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){
  #playback-settings[open]{inset:auto 0 0;width:100%;max-width:none;max-height:82dvh;margin:0;padding:8px 16px max(22px,env(safe-area-inset-bottom));border-radius:28px 28px 0 0}
  .playback-settings-handle{display:block}
}
