/* 琴记 / 手账视觉语言。无外部字体或资源。 */
:root{
 color-scheme:light;
 --bg:#f2f0ed;--card:#faf9f7;--ink:#252422;--muted:#625f5a;--line:#dedad5;
 --green:#353330;--pale:#e9e6e1;--red:#9d3343;--on-accent:#fff;
 --sepia:var(--muted);--soft:#f3f1ee;--wash:#e9e6e3;
 --shadow:0 8px 23px #24211b0b,0 1px 2px #24211b08;
 --title:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
 --hero-bg:#292724;--hero-ink:#fefdfb;
 --surface-tint:rgba(253,252,250,.86);--surface-edge:rgba(255,255,255,.90);
 --surface-light:#ffffffad;--surface-radius:20px;--surface-pad:clamp(15px,4.5vw,23px);
 --heat-low:#e4e1dc;--heat-mid:#c4c0b9;--heat-max:#53504b;--heat-on:#fff;
 --chart-ink:#56534e;
}
@media(prefers-color-scheme:dark){:root{
 color-scheme:dark;
 --bg:#1d1d1e;--card:#282829;--ink:#f1efeb;--muted:#bebbb5;--line:#424142;
 --green:#ebe8e1;--pale:#393837;--red:#ffb0b7;--on-accent:#232220;
 --soft:#303031;--wash:#262627;
 --shadow:0 8px 23px #0003,0 1px 2px #0002;
 --hero-bg:#353434;
 --surface-tint:rgba(41,41,42,.91);--surface-edge:#ffffff23;--surface-light:#ffffff15;
 --heat-low:#3d3c3b;--heat-mid:#62605d;--heat-max:#e4e0d8;--heat-on:#242322;
 --chart-ink:#c6c2ba;
}}
body{
 background:radial-gradient(ellipse at 95% -12%,var(--wash),transparent 58%) var(--bg);
 background-repeat:no-repeat;background-size:100% 580px;
 font-feature-settings:'tnum' on;line-height:1.5;
}
main{max-width:780px;padding-top:calc(15px + env(safe-area-inset-top,0px))}
.card{border-radius:22px;padding:clamp(15px,4.5vw,23px);box-shadow:var(--shadow)}
h2{font-size:19px;font-weight:740;line-height:1.25}
h3{line-height:1.3}
button{min-height:42px;touch-action:manipulation;transition:background-color .14s,color .14s,border-color .14s,transform .14s}
button.ghost{padding:9px 10px}button:not(:disabled):active{transform:scale(.98)}
button.primary,.period button.active{background:var(--green);color:var(--on-accent)}
input,select,textarea{background:var(--soft);border-radius:12px}
input:focus,textarea:focus,select:focus{border-color:var(--green)}
.notice{background:var(--pale);color:var(--muted);border:1px solid var(--line)}
.masthead{display:block;margin:0 0 16px}
.brandline{display:flex;align-items:center;gap:10px;min-height:45px}
.brandmark{width:36px;height:36px;flex:none;color:var(--green)}.brandmark svg{display:block;width:100%;height:100%}
.brandname{display:block;font-weight:760;font-size:15px;line-height:1.18;letter-spacing:.06em}
.brand-en{display:block;font-size:9px;font-weight:750;letter-spacing:.16em;color:var(--muted);white-space:nowrap}
.status-tag{margin-left:auto;display:inline-flex;gap:6px;align-items:center;color:var(--muted);background:var(--card);border:1px solid var(--line);padding:5px 9px}
.status-tag::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--green)}
.folio{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0;margin-top:clamp(19px,4vw,33px)}
.folio-copy{min-width:0}.folio-label{font-size:11px;color:var(--sepia);font-weight:760;letter-spacing:.16em;margin-bottom:4px}
.folio h1{font-family:var(--title);font-size:clamp(32px,8.6vw,55px);letter-spacing:-.07em;line-height:1.16;font-weight:800}
.folio-sub{font-size:13px;line-height:1.5;color:var(--muted);margin-top:7px}
.folio-number{color:var(--green);opacity:.22;font-family:Georgia,serif;font-style:italic;font-size:clamp(40px,11vw,70px);line-height:1;padding:0 4px}
.chapter-head{gap:8px;align-items:center}.chapter-label{display:block;color:var(--sepia);font-size:9px;font-weight:790;letter-spacing:.17em;margin-bottom:4px}.chapter-head h2{margin:0}
.soft-chip{display:inline-block;border-radius:99px;border:1px solid var(--line);background:var(--soft);color:var(--muted);padding:4px 9px;font-size:11px;flex:none}
.text-link{font-size:13px;color:var(--green);flex:none;white-space:nowrap}
.home-overview{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}
.home-overview .card{margin:0;min-width:0;position:relative;padding:clamp(10px,3.5vw,18px)}
.home-overview h2{font-size:15px;margin-bottom:8px}.home-overview p strong{font-size:clamp(18px,5.4vw,30px);line-height:1.15}.home-overview p{line-height:1.4}
.home-overview p small{display:block;font-size:11px;margin-top:4px}
.home-progress,.home-total{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px}
.home-progress{background:linear-gradient(142deg,var(--pale),var(--card) 82%)}
.home-progress .goal-ring{width:clamp(36px,10vw,63px)}.home-progress .goal-ring:before{inset:4px}.home-progress .goal-ring strong{font-size:clamp(10px,2.8vw,13px)}
.icon-link{border:1px solid var(--line);background:var(--soft);font-size:18px;width:38px;min-height:42px;padding:0;display:grid;place-items:center;align-self:end}
@media(max-width:355px){.home-total .icon-link{width:29px}.home-overview .chapter-label{letter-spacing:.08em}.home-overview .card{border-radius:15px}}
.day-chip{background:var(--soft);border-radius:12px;min-height:57px}.day-chip span{color:var(--muted)}.day-chip[data-done=true]{background:var(--pale)}.day-chip.today{outline:1px solid var(--green);outline-offset:-2px}
.record-entry{margin-top:4px}.record-open{min-height:60px;border-radius:12px;padding:12px 4px;align-items:center}.record-open:active,.piece-open:active{background:var(--pale)}
.entry-title,.piece-copy strong{font-size:15px;font-weight:740}.entry-end{background:var(--soft);border:1px solid var(--line);border-radius:99px;padding:3px 7px}
.entry-end>span,.piece-arrow{color:var(--green);font-size:18px}
.nav{background:color-mix(in srgb,var(--card) 93%,transparent);backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px);box-shadow:0 -8px 25px #2d1a3711}
.nav button{min-height:49px;border-radius:15px;gap:5px}.nav button.active{background:var(--pale);color:var(--green)}.nav svg{width:20px;height:20px}
.month-controls button,.heat-step{border-radius:50%;background:var(--soft);min-width:44px;font-size:20px;padding:2px}
.month-card .calendar{margin-top:12px}
.calendar button{border-radius:11px;gap:0}
.calendar button.has{background:var(--pale);color:var(--green)}
.calendar button.selected{border:2px solid var(--green);background:var(--pale)}
.day-summary{margin:8px 0 4px;color:var(--muted);font-size:13px}.day-summary b{color:var(--ink)}
.journal-modes,.period{padding:4px;border-radius:14px;background:var(--soft);border:1px solid var(--line)}
.journal-modes button,.period button{border:1px solid transparent;background:transparent;color:var(--muted);min-height:41px}
.journal-modes button[aria-pressed=true]{border-color:var(--line);color:var(--green);background:var(--card);box-shadow:0 1px 4px #24122e15}
.stats-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stats-overview .metric:first-child{grid-column:1/-1;background:linear-gradient(118deg,var(--pale),var(--card));box-shadow:var(--shadow);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:10px}
.stats-overview .metric:first-child strong{grid-column:2;grid-row:1 / span 2;font-size:clamp(25px,7vw,39px);margin:0;font-family:var(--title);text-align:right}
.stats-overview .metric:first-child small{grid-column:1;color:var(--muted)}
.stats-overview .metric{padding:clamp(9px,3vw,17px);display:flex;flex-direction:column}
.stats-overview .metric strong{font-size:clamp(16px,4.8vw,26px)}.stats-overview .metric small{font-size:11px}
.viz-card .viz-caption{margin-top:6px}.viz-summary{background:var(--pale)}
.viz-cell{border-radius:10px}.viz-cell[data-level="3"]{color:var(--on-accent)}.viz-cell[aria-pressed=true][data-level="3"]{outline-color:var(--on-accent)}
.piece-filters{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0 6px}
.piece-filters button{padding:6px 9px;font-size:12px;background:var(--soft);color:var(--muted);border:1px solid var(--line);min-height:43px}
.piece-filters button[aria-pressed=true]{background:var(--pale);border-color:var(--green);color:var(--green)}
.piece-filters span{font-size:10px;margin-left:1px}
.piece-entry{border-bottom:1px solid var(--line)}.piece-entry:last-child{border-bottom:0}
.piece-open{display:grid;text-align:left;align-items:center;grid-template-columns:31px minmax(0,1fr) auto auto;gap:7px;width:100%;min-height:63px;padding:9px 1px;background:transparent;color:var(--ink);font-weight:400}
.piece-note-icon{display:grid;place-items:center;background:var(--pale);color:var(--green);height:32px;border-radius:10px;font-size:18px}
.piece-copy{min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}.piece-copy small{line-height:1.25}
.piece-chip{padding:3px 5px;border-radius:999px;font-size:11px;white-space:nowrap;background:var(--soft);border:1px solid var(--line);color:var(--muted)}
.piece-chip[data-status=learning]{background:var(--pale);color:var(--green)}.piece-chip[data-status=done]{color:var(--sepia)}
.piece-note{font-size:12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--muted);line-height:1.4}
.shelf-note{border-top:1px solid var(--line);padding-top:9px;margin-top:6px;font-size:12px}
.settings-card .chapter-head{margin-bottom:4px}.settings-card .actions{margin-top:8px}.settings-card label{margin-top:15px}
.editorial-login .folio{margin-top:24px}.editorial-login .card{border-top:3px solid var(--green)}
dialog{box-shadow:0 20px 70px #100d1e50;border-radius:23px}
dialog>form>div:first-child,dialog>.row:first-child{padding-bottom:9px;border-bottom:1px solid var(--line);margin-bottom:10px}
dialog::backdrop{background:#1e13285f;backdrop-filter:blur(3px)}
dialog:open{animation:reveal .17s ease-out}dialog[open]{animation:reveal .17s ease-out}
.toast{background:var(--hero-bg);color:var(--hero-ink);box-shadow:var(--shadow)}.detail-duration{background:linear-gradient(120deg,var(--pale),var(--soft))}
@keyframes reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.play-mark{width:15px;height:15px;vertical-align:-2px;margin-right:3px}.text-link svg{width:13px;height:13px;vertical-align:-2px}.icon-link svg{width:17px;height:17px}
.entry-title,.piece-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* Shared material for the library, timeline and timer. */
:root{--glass-panel:var(--surface-tint);--glass-edge:var(--surface-edge);--glass-shine:var(--surface-light);--glass-accent:var(--chart-ink);--glass-cyan:var(--pale)}
.book-shortcut{padding:0}.open-library{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:67px;text-align:left;padding:10px clamp(12px,5vw,21px);border-radius:inherit;background:transparent;color:var(--ink)}.open-library strong,.open-library small{display:block}.open-library small{margin-top:1px;font-size:12px}
.library-glyph{width:38px;height:38px;display:grid;place-items:center;color:var(--glass-accent);background:var(--glass-cyan);border-radius:12px;font-size:20px;line-height:1}
.shelf-switch{display:grid;grid-template-columns:1fr 1fr;padding:5px;gap:5px;background:var(--glass-panel);border:1px solid var(--glass-edge);border-radius:17px;margin-bottom:12px}.shelf-switch button{background:transparent;border:1px solid transparent;color:var(--muted);min-height:43px}.shelf-switch button[aria-pressed=true]{color:var(--green);background:var(--pale)}
.book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.book-tile{padding:10px;min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--soft)}.book-open{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;background:transparent;width:100%;min-height:54px;color:var(--ink);text-align:left;padding:2px 0}.book-open:hover,.open-library:hover{background:var(--pale)}
.book-tile-copy{display:grid;gap:2px;min-width:0}.book-tile-copy strong{font-size:15px;font-weight:780;overflow-wrap:anywhere}.book-tile-copy small{font-size:10px;line-height:1.3}.book-arrow{color:var(--green);font-size:16px}.book-tile-stats{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px;margin:9px 0 5px;font-size:13px;font-weight:720}.book-tile-stats small{font-weight:500;font-size:10px}
.book-cover{width:clamp(31px,9vw,49px);height:clamp(43px,12vw,65px);display:grid;justify-items:center;align-content:center;gap:2px;padding:3px;background:var(--pale);color:var(--ink);border:1px solid var(--line);border-radius:4px 8px 8px 4px;box-shadow:inset 2px 0 0 var(--line);flex:none}.book-cover small{font-size:6px;line-height:1.2;color:inherit;white-space:nowrap}.book-cover svg{width:76%;height:auto;stroke:currentColor;fill:none;stroke-width:1.6}
@media(max-width:355px){.book-open{grid-template-columns:auto minmax(0,1fr);gap:5px}.book-open .book-arrow{display:none}.book-tile{padding:8px}}
.master-meter{display:block;overflow:hidden;height:6px;border-radius:9px;background:var(--line);width:100%}.master-meter i{display:block;height:100%;border-radius:inherit;background:var(--chart-ink);transition:width .2s}
.book-back{font-size:13px;margin:-7px 0 6px -7px}.book-identity h2{font-size:clamp(27px,8vw,44px);font-family:var(--title);overflow-wrap:anywhere}.book-identity .book-cover{width:50px;height:70px}.book-identity .book-cover small{font-size:8px}.book-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:11px 0;margin-bottom:6px}
.book-metrics div{display:grid;gap:3px;min-width:0;border:1px solid var(--line);border-radius:12px;padding:7px;background:var(--soft)}.book-metrics small{font-size:10px}.book-metrics strong{font-size:clamp(14px,4.1vw,24px);overflow-wrap:anywhere;line-height:1.35}
.book-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:12px 0;background:repeating-linear-gradient(to bottom,var(--line) 0 1px,transparent 1px 24px)}.book-bars button{display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;height:91px;padding:2px 0 4px;border-radius:8px;background:transparent;border:1px solid transparent;min-width:0}.book-bars button[aria-pressed=true]{background:var(--pale)}.book-bars small{font-size:10px}.book-bars button>span{display:flex;align-items:flex-end;justify-content:center;width:100%;height:100%;padding-bottom:3px}.book-bars i{display:block;width:65%;max-width:32px;min-height:2px;background:var(--chart-ink);border-radius:5px 5px 1px 1px}
.book-recent{border-top:1px solid var(--line);padding-top:7px}
.book-progress-legend{display:flex;gap:5px 12px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:7px 0}.book-progress-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:4px}.book-progress-legend span:nth-child(2) i{background:var(--glass-accent)}
.book-plan{scroll-margin-top:12px}.book-lessons{margin-top:9px}.lesson-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--line)}.lesson-row strong,.lesson-row small{display:block;overflow-wrap:anywhere}.lesson-row small{font-size:11px}.lesson-row button{font-size:12px;border:1px solid var(--line);min-height:43px;padding:6px 9px;background:var(--soft);white-space:nowrap}.lesson-row button[aria-pressed=true]{border-color:var(--green);background:var(--pale)}
.lesson-nav{margin-top:10px}.lesson-nav button{min-height:43px;padding:7px 10px}.plan-form .row{gap:6px}.plan-form button{white-space:nowrap;padding:7px 10px}
.session-book-fields{min-width:0;margin:12px 0 0;border:1px solid var(--line);border-radius:14px;padding:8px 9px 10px;background:var(--soft)}.session-book-fields legend{color:var(--green);font-weight:720;font-size:12px;padding:0 5px}.session-book-fields label:first-child{margin-top:2px}.session-book-fields select{background:var(--card)}.record-book{display:inline-block;width:max-content;max-width:100%;border-radius:6px;padding:1px 5px;font-size:10px;color:var(--green);background:var(--pale);overflow-wrap:anywhere;line-height:1.45}

/* The stopwatch uses the same glass as every other card. */
.session-hero{
 --timer-ink:var(--ink);--timer-muted:var(--muted);--timer-line:var(--line);--timer-press:var(--green);--timer-on:var(--on-accent);--timer-pill:var(--soft);--timer-solid:var(--card);
 color:var(--ink);text-align:left;
}
.hero-top h2{font-family:inherit;font-size:14px;font-weight:720;letter-spacing:.02em}
.session-badge{display:inline-flex;align-items:center;gap:5px;flex:none;padding:3px 8px;border:1px solid var(--timer-line);border-radius:20px;font-size:11px;font-weight:620;background:var(--timer-pill);color:var(--timer-muted)}
.session-badge i{height:5px;width:5px;border-radius:50%;background:currentColor}
.session-hero[data-state=running] .session-badge{color:var(--timer-ink);border-color:var(--timer-muted)}
.session-hero[data-state=running] .session-badge i{box-shadow:0 0 0 2px var(--timer-line)}
.timer-display{padding:clamp(15px,4vw,25px) 0 13px}
.session-hero .digits{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.057em;font-size:clamp(45px,13vw,77px);line-height:1.05;font-weight:430;margin:0;text-shadow:none;color:var(--timer-ink)}
.hero-hint{margin:7px 0 0;color:var(--timer-muted);font-size:12px}
.timer-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding-top:11px;border-top:1px solid var(--timer-line)}
.timer-footer .timer-actions{display:flex;flex-wrap:nowrap;gap:5px;margin:0}
.timer-footer .timer-actions button{min-height:44px;border-radius:11px;padding:8px 10px;font-size:14px;white-space:normal}
.timer-actions .timer-main{background:var(--timer-press);color:var(--timer-on);font-weight:710}
.timer-actions .timer-alt{background:var(--timer-pill);color:var(--timer-ink);border:1px solid var(--timer-line);flex:0 1 auto}
.timer-footer .manual-link{border-radius:11px;min-height:44px;padding-inline:7px;margin:0;color:var(--timer-muted);font-size:12px;white-space:nowrap}
.session-hero button:focus-visible{outline-color:var(--timer-ink)}
@media(prefers-reduced-transparency:reduce){.session-hero{background:var(--timer-solid);backdrop-filter:none;-webkit-backdrop-filter:none}}
.book-edition{font-size:12px;margin:0 0 5px;color:var(--ink);font-weight:650}
.book-edition small{display:block;font-size:10px;color:var(--muted);font-weight:500;letter-spacing:.06em}

/* One page grid, glass recipe, typography and control family. */
body{background:var(--bg)}
main{padding-top:calc(18px + env(safe-area-inset-top,0px));max-width:780px}
.masthead{margin-bottom:16px}
.folio,.editorial-login .folio{display:block;margin-top:19px}
.folio h1{font-family:var(--title);font-size:clamp(27px,7.4vw,43px);font-weight:740;letter-spacing:-.035em;line-height:1.2}
.folio-sub{font-size:13px;margin-top:6px}
.card,.metric,.home-overview .card,.stats-overview .metric,.stats-overview .metric:first-child,.editorial-login .card,.viz-goal,.session-hero,dialog{
 background:var(--surface-tint);border:1px solid var(--surface-edge);border-radius:var(--surface-radius);
 box-shadow:inset 0 1px 0 var(--surface-light),var(--shadow);
 backdrop-filter:saturate(.3) blur(15px);-webkit-backdrop-filter:saturate(.3) blur(15px);
}
.card,.home-overview .card,.stats-overview .metric:first-child,.session-hero,dialog{padding:var(--surface-pad)}
.home-overview .card{padding:clamp(10px,3.5vw,18px)}
.stats-overview .metric,.metric{border-radius:16px}
.stats-overview .metric:first-child strong{font-family:inherit;letter-spacing:-.045em}
.chapter-head h2,.settings-card .chapter-head h2,.book-identity h2{font-family:inherit;font-weight:730;letter-spacing:-.025em}
.book-identity h2{font-size:clamp(22px,6vw,33px)}
.period,.journal-modes,.shelf-switch,.piece-filters{gap:4px;padding:4px;border-radius:14px;background:var(--soft);border:1px solid var(--line)}
.period button,.journal-modes button,.shelf-switch button,.piece-filters button{min-height:42px;border:1px solid transparent;border-radius:10px;color:var(--muted);background:transparent;font-weight:660}
.period button[aria-pressed=true],.journal-modes button[aria-pressed=true],.shelf-switch button[aria-pressed=true],.piece-filters button[aria-pressed=true]{color:var(--ink);background:var(--card);border-color:var(--line);box-shadow:0 1px 2px #0001}
.nav{background:var(--surface-tint);border-top-color:var(--line);box-shadow:0 -6px 20px #0001}.nav button.active{color:var(--ink)}
button.primary,.timer-actions .timer-main{background:var(--green);color:var(--on-accent)}
.timer-footer .manual-link{color:var(--ink)}
.day-chip,.calendar button,.viz-cell,.book-tile,.lesson-row button{border-radius:10px}
.viz-cell[data-level="0"],.heat-legend [data-level="0"]{background:var(--card)}
.viz-cell[data-level="1"],.heat-legend [data-level="1"]{background:var(--heat-low)}
.viz-cell[data-level="2"],.heat-legend [data-level="2"]{background:var(--heat-mid);border-color:var(--heat-mid);color:var(--ink)}
.viz-cell[data-level="3"],.heat-legend [data-level="3"]{background:var(--heat-max);border-color:var(--heat-max);color:var(--heat-on)}
.viz-cell[aria-pressed=true][data-level="3"]{outline-color:var(--heat-on)}
.bar-slot i,.book-bars i,.mix-meter i,.master-meter i{background:var(--chart-ink)}
.mix-row:active,.book-open:active,.open-library:active{background:var(--pale)}
.detail-duration,.viz-summary{background:var(--pale)}
dialog::backdrop{background:#170f0959;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
@media(prefers-reduced-transparency:reduce){.card,.metric,.home-overview .card,.stats-overview .metric:first-child,.editorial-login .card,.viz-goal,.session-hero,dialog,.nav{background:var(--card);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
.card.book-shortcut{padding:0}

#bookRecordHeading{scroll-margin-top:calc(14px + env(safe-area-inset-top,0px))}
.book-record-count{font-size:12px;margin:3px 0 6px}
.book-record-controls{flex-wrap:wrap;gap:5px}
.book-record-controls:empty{display:none}
.book-record-controls button{min-height:44px;padding:7px 10px;font-size:13px}
.book-record-pages{display:flex;gap:8px;align-items:center;font-size:12px}
.timer-current,.resume-practice{margin-top:12px;padding-top:8px;border-top:1px solid var(--line)}
.timer-current{gap:8px}.timer-current p{min-width:0}.timer-current small,.timer-current strong,.resume-practice button small,.resume-practice button strong{display:block}.timer-current strong,.resume-practice button strong{font-size:13px;overflow-wrap:anywhere}
.timer-current button,.book-lesson-search button{flex:none;min-height:44px;font-size:13px;white-space:nowrap}
.resume-practice button{width:100%;padding:8px 9px;display:flex;align-items:center;justify-content:space-between;text-align:left;border:1px solid var(--line);gap:8px;background:var(--soft)}
.resume-note{font-size:12px;color:var(--muted);margin:6px 9px 0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.book-lesson-search input{min-width:0}
.segment-summary{list-style:none;margin:7px 0;padding:0}.segment-summary li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.segment-summary strong,.segment-summary small{display:block;overflow-wrap:anywhere}.segment-summary small{font-size:11px}
.loading-panel{text-align:center;margin:12vh auto;padding:18px}
#reloadRecord{font-size:13px;min-height:44px;color:var(--ink);background:var(--pale)}
button[aria-busy=true]{cursor:progress}
