@import"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@400;500&display=swap";:root{color-scheme:light dark;--bg: #f4f6f9;--surface: #ffffff;--surface-muted: #eef1f5;--line: #d6dde6;--ink: #101723;--muted: #5b6676;--accent: #1358ff;--accent-ink: #ffffff;--accent-soft: rgba(19, 88, 255, .1);--highlight: rgba(19, 88, 255, .16);--danger: #b9473a;--shadow: 0 -10px 30px rgba(16, 23, 35, .08);--radius: 18px;--player-height: 11.5rem}@media (prefers-color-scheme: dark){:root{--bg: #0f141b;--surface: #171e27;--surface-muted: #1f2833;--line: #2b3541;--ink: #e4e8ee;--muted: #97a3b3;--accent: #6f9bff;--accent-ink: #0b1220;--accent-soft: rgba(111, 155, 255, .14);--highlight: rgba(111, 155, 255, .22);--danger: #ff8a7a;--shadow: 0 -10px 30px rgba(0, 0, 0, .35)}}*{box-sizing:border-box}[hidden]{display:none!important}html{background:var(--bg);-webkit-text-size-adjust:100%}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-family:IBM Plex Sans,Avenir Next,sans-serif}body.has-player{padding-bottom:calc(var(--player-height) + env(safe-area-inset-bottom))}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.top-bar{display:flex;align-items:center;justify-content:space-between;max-width:46rem;margin:0 auto;padding:calc(.75rem + env(safe-area-inset-top)) 1rem .5rem}.crumbs{margin:0;color:var(--muted);font-family:IBM Plex Mono,monospace;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase}.crumbs a{color:var(--accent);text-decoration:none}.shell{max-width:46rem;margin:0 auto;padding:0 1rem}.primary-button{min-height:48px;padding:.8rem 1.4rem;border:0;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:600}.ghost-button{min-height:40px;padding:.45rem .9rem;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:.9rem;font-weight:500}.welcome{padding:3rem 0 2rem}.welcome h1{margin:0;font-size:clamp(2rem,7vw,2.75rem);line-height:1.05;letter-spacing:-.035em}.lede{max-width:32rem;margin:.9rem 0 1.5rem;color:var(--muted);font-size:1.05rem;line-height:1.55}.status{min-height:1.4em;margin:.9rem 0 0;color:var(--danger)}.recent{margin-top:2rem}.recent h2{margin:0 0 .6rem;color:var(--muted);font-family:IBM Plex Mono,monospace;font-size:.78rem;font-weight:400;letter-spacing:.08em;text-transform:uppercase}.doc-list{display:grid;gap:.5rem;margin:0;padding:0;list-style:none}.doc-list li{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.doc-open{display:grid;flex:1;gap:.15rem;min-width:0;padding:.75rem .9rem;border:0;background:none;text-align:left}.doc-name{overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.doc-meta{color:var(--muted);font-size:.88rem}.doc-remove{padding:0 .9rem;border:0;border-left:1px solid var(--line);background:none;color:var(--muted);font-size:.85rem}.reader{padding-bottom:1rem}.doc-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;padding:.25rem 0 .75rem}.doc-title{flex:1 1 12rem;min-width:0;margin:0;overflow:hidden;font-size:1.15rem;font-weight:600;letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap}.page-form{display:flex;align-items:center;gap:.4rem;color:var(--muted);font-size:.9rem}.page-form input{width:4.5rem;min-height:40px;padding:.35rem .5rem;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:1rem;text-align:center}.section-button{display:grid;gap:.15rem;width:100%;padding:.7rem .95rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-align:left}.section-button:disabled{opacity:1;cursor:default}.section-kicker{color:var(--muted);font-size:.8rem}.section-title{overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.page-text{margin-top:1rem;font-family:"IBM Plex Serif",Georgia,serif;font-size:1.12rem;line-height:1.7}.para{margin:0 0 1rem;padding:.35rem .6rem;border-radius:10px;cursor:pointer;scroll-margin:6rem 0 calc(var(--player-height) + 2rem)}h3.para{margin-top:1.4rem;font-family:IBM Plex Sans,sans-serif;font-size:1.2rem;line-height:1.35;letter-spacing:-.015em}.para.is-active{background:var(--accent-soft)}.para span{border-radius:4px;transition:background-color .15s ease}.para span.is-speaking{background:var(--highlight);box-shadow:0 0 0 2px var(--highlight)}.page-empty{padding:1rem;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-family:IBM Plex Sans,sans-serif;font-size:.95rem}.page-nav{display:flex;justify-content:space-between;gap:.5rem;margin-top:1.25rem}.player{position:fixed;inset:auto 0 0;z-index:10;padding:.65rem 1rem calc(.8rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}.player>*{max-width:30rem;margin-inline:auto}.player-status{margin-bottom:.4rem;overflow:hidden;color:var(--muted);font-size:.85rem;text-align:center;text-overflow:ellipsis;white-space:nowrap}.controls{display:grid;grid-template-columns:repeat(2,1fr) auto repeat(2,1fr);align-items:center;gap:.25rem}.control{display:grid;justify-items:center;gap:.1rem;min-height:52px;padding:.3rem 0;border:0;border-radius:12px;background:none;color:var(--ink)}.control svg,.play svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.control span{color:var(--muted);font-size:.7rem}.control:active{background:var(--surface-muted)}.play{display:grid;place-items:center;width:64px;height:64px;margin:0 .4rem;border:0;border-radius:50%;background:var(--accent);color:var(--accent-ink)}.play svg{width:30px;height:30px;fill:currentColor;stroke:none}.play .icon-pause,.play.is-playing .icon-play{display:none}.play.is-playing .icon-pause{display:block}.player-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.5rem}.speed{display:flex;align-items:center;gap:.45rem;color:var(--muted);font-size:.9rem}.speed select,.field select{min-height:40px;padding:.35rem .6rem;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.sheet{width:min(34rem,calc(100vw - 1.5rem));max-height:min(80vh,44rem);padding:1rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink)}.sheet::backdrop{background:#080c1273}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.sheet-head h2{margin:0;font-size:1.2rem;letter-spacing:-.02em}.sheet-note{margin:.75rem 0;color:var(--muted);font-size:.88rem}#library-dialog .primary-button{width:100%;margin-bottom:.75rem}.sections-list{display:grid;gap:.15rem;margin:0;padding:0;list-style:none}.sections-list button{display:flex;justify-content:space-between;gap:1rem;width:100%;min-height:44px;padding:.55rem .9rem;border:0;border-radius:10px;background:none;text-align:left}.sections-list button:hover{background:var(--surface-muted)}.sections-list button.is-current{background:var(--accent-soft);font-weight:600}.section-page{flex-shrink:0;color:var(--muted);font-family:IBM Plex Mono,monospace;font-size:.85rem}.field{display:grid;gap:.35rem;margin-bottom:1rem;font-weight:600}.field select{width:100%;font-weight:400}.toggle{display:flex;align-items:flex-start;gap:.7rem;padding:.75rem 0;border-top:1px solid var(--line)}.toggle input{width:20px;height:20px;margin-top:.15rem;accent-color:var(--accent)}.toggle span{display:grid;gap:.2rem}.toggle small{color:var(--muted);font-size:.85rem;line-height:1.45}.sheet-copy{margin:0 0 1rem;line-height:1.55}.plans{display:grid;gap:.6rem}.plan{display:grid;gap:.2rem;width:100%;padding:.9rem 1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-align:left}.plan strong{font-size:1.1rem}.plan span{color:var(--muted);font-size:.92rem}.plan:first-child{border-color:var(--accent);background:var(--accent-soft)}.ghost-button.wide{width:100%;margin-top:.25rem}.restore{margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--line)}.restore summary{color:var(--muted);font-size:.92rem;cursor:pointer}.restore-form{display:flex;gap:.5rem;margin-top:.75rem}.restore-form input{flex:1;min-width:0;min-height:40px;padding:.4rem .7rem;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:1rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
