:root{color-scheme:dark;--page: #0e0e16;--main: #15151f;--sidebar: #1a1926;--border: #2b293b;--text: #eeedf5;--text-soft: #c6c2d6;--muted: #aaa4be;--subtle: #918aA4;--accent: #b2a1f4;--accent-word: #c1b0ff;--accent-ink: #211a36;--selected: #302940;--hover: #252232}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--page);color:var(--text);font-family:Yu Gothic UI,Yu Gothic,Meiryo,system-ui,sans-serif;font-size:14px;line-height:1.6}button,input,select{font:inherit}button{cursor:pointer}button{-webkit-tap-highlight-color:transparent}button:disabled,input:disabled{opacity:.4;cursor:not-allowed}button,select{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button{border:0}button,input,select{touch-action:manipulation}svg{flex-shrink:0}button{transition:background-color .15s,color .15s}::selection{background:#655390;color:#fff}.app-page{max-width:1536px;padding:0 40px;margin:0 auto}.page-caption{height:88px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px;letter-spacing:.07em}.page-caption>:last-child{font-size:10px;letter-spacing:.2em;color:var(--subtle)}.app-shell{display:grid;grid-template-columns:274px minmax(0,1fr);min-height:782px;border:1px solid var(--border);border-radius:18px;background:var(--main);overflow:hidden;box-shadow:0 18px 70px #00000025}.sidebar{background:var(--sidebar);border-right:1px solid var(--border);padding:30px 20px 22px;display:flex;flex-direction:column;min-width:0}.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:650;letter-spacing:-.04em;padding:0 7px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:32px;height:32px;background:var(--accent);color:var(--accent-ink);border-radius:9px}.brand-light{font-weight:400}.import-button,.primary-button{min-height:46px;border-radius:9px;background:var(--accent);color:var(--accent-ink);display:flex;align-items:center;justify-content:center;gap:12px;font-weight:650}.import-button{width:100%;margin-top:30px}.import-button:hover:not(:disabled),.play-button:hover:not(:disabled),.primary-button:hover{background:#c0b2ff}.import-formats{color:var(--muted);margin:10px 3px 28px;font-size:10px;display:flex;justify-content:space-between;gap:3px}.import-formats span{color:var(--subtle)}.section-label{display:flex;justify-content:space-between;padding:0 8px;color:var(--muted);font-size:11px;letter-spacing:.13em;margin-bottom:13px}.section-label>:last-child{font-size:10px;font-variant-numeric:tabular-nums;color:var(--subtle)}.book-list{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow-y:auto}.book-item{text-align:left;display:flex;align-items:center;width:100%;min-height:90px;border-radius:9px;gap:13px;padding:14px 11px;background:transparent}.book-item:hover{background:var(--hover)}.book-item.selected{background:var(--selected)}.book-cover{position:relative;flex-shrink:0;display:grid;place-items:center;width:39px;height:57px;border-radius:2px 4px 4px 2px;color:#e6e1fd;background:#485372;font-family:Yu Mincho,serif;font-size:16px;box-shadow:2px 2px 5px #0002;border:1px solid #ffffff12}.sample-cover{background:#695994}.book-cover>span{position:absolute;left:4px;top:0;bottom:0;border-left:1px solid #c4b8e632}.book-description{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.book-name{font-size:13px;font-weight:550;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.book-detail{color:var(--muted);font-size:11px}.selected-dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}.chapter-label{margin-top:31px}.chapters{max-height:315px;overflow-y:auto;display:flex;flex-direction:column;gap:5px}.chapter-item{display:flex;align-items:center;gap:14px;width:100%;min-height:46px;background:transparent;color:var(--muted);text-align:left;padding:11px 12px;border-radius:7px;font-size:12px}.chapter-item>:nth-child(2){min-width:0;overflow-wrap:anywhere}.chapter-item:hover{background:var(--hover);color:var(--text)}.chapter-item.selected{color:var(--accent);background:#a99aef0d}.chapter-number{font-size:10px;font-variant-numeric:tabular-nums;opacity:.7}.chapter-marker{margin-left:auto;width:3px;height:13px;background:var(--accent);border-radius:2px;flex-shrink:0}.local-note{margin:auto 7px 0;padding-top:38px;display:flex;gap:9px;align-items:flex-start;color:var(--muted)}.local-note p{font-size:10px;line-height:1.9;margin:0}.local-note p span{color:var(--subtle)}.local-note-icon{color:var(--subtle);padding-top:2px}.main-panel{min-width:0;display:flex;flex-direction:column}.reader-header{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:100px;padding:20px 36px;border-bottom:1px solid var(--border)}.eyebrow{font-size:10px;letter-spacing:.06em;color:var(--muted)}.current-book{min-width:0}.title-line{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:4px}h1{font-size:16px;line-height:1.5;font-weight:550;margin:0;overflow-wrap:anywhere}.format-badge{background:#a99aef12;color:var(--accent);font-size:10px;padding:3px 10px;border-radius:20px;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:23px}.chapter-count{font-size:11px;color:var(--text-soft);white-space:nowrap}.chapter-count span{color:var(--subtle);margin-left:4px}.icon-button{display:grid;place-items:center;height:44px;min-width:44px;border-radius:8px;color:var(--muted);background:transparent}.icon-button:hover{color:var(--text);background:var(--hover)}.mobile-menu{display:none}.reading-space{flex:1;display:flex;flex-direction:column;align-items:center;padding:27px 36px 28px;min-width:0}.reading-chapter{display:flex;gap:11px;align-items:center;color:var(--muted);font-size:12px;margin:29px 0 0;max-width:100%;overflow-wrap:anywhere;text-align:center}.reading-chapter>span{font-size:9px;color:var(--subtle);letter-spacing:.09em}.focus-stage{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;padding:27px 0 20px;gap:22px}.focus-tick{width:1px;min-height:20px;background:#a99aef70}.word-line{display:flex;align-items:center;justify-content:center;width:100%;gap:34px;min-height:99px}.current-word{color:var(--accent-word);text-align:center;line-height:1.22;font-family:Yu Mincho,Hiragino Mincho ProN,"Noto Serif CJK JP",serif;font-weight:500;letter-spacing:.04em;margin:0;max-width:calc(100% - 126px);overflow-wrap:anywhere}.word-wing{flex-shrink:0;width:30px;height:1px;background:#a99aef20}.playback-state{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);min-height:20px}.playback-state>span{height:4px;width:4px;border-radius:50%;background:var(--subtle)}.playback-state.is-playing>span{background:var(--accent)}.playback-state.is-playing{color:var(--accent)}.context-space{width:100%;text-align:center;min-height:89px;padding-top:19px}.context-text{color:var(--text-soft);font-size:13px;margin:0 auto;min-height:24px;max-width:620px;overflow-wrap:anywhere}.context-text mark{color:var(--accent-word);background:none}.context-hint{color:var(--subtle);font-size:10px;margin:8px 0 0}.transport{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:7px}.play-button{background:var(--accent);color:var(--accent-ink);min-width:168px;min-height:56px;border-radius:30px;display:flex;align-items:center;justify-content:center;gap:11px;font-size:14px;font-weight:650}.skip-button{background:transparent;color:var(--muted);min-width:94px;min-height:46px;display:flex;gap:8px;align-items:center;justify-content:center;font-size:11px;border-radius:24px}.skip-button:hover:not(:disabled){background:var(--hover);color:var(--text)}.speed-control{display:flex;gap:22px;align-items:center;width:min(100%,466px);margin-top:31px}.speed-control label{color:var(--muted);font-size:11px;white-space:nowrap}input[type=range]{appearance:none;-webkit-appearance:none;height:44px;border:0;background:transparent;cursor:pointer;min-width:0;margin:0;flex:1}input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,var(--accent) var(--range-progress),#333141 var(--range-progress))}input[type=range]::-moz-range-track{height:3px;border-radius:3px;background:linear-gradient(to right,var(--accent) var(--range-progress),#333141 var(--range-progress))}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:var(--accent);margin-top:-4.5px;box-shadow:0 0 0 4px #a99aef0c}input[type=range]::-moz-range-thumb{border:0;width:12px;height:12px;border-radius:50%;background:var(--accent)}.speed-control output{white-space:nowrap;min-width:74px;display:flex;gap:7px;align-items:baseline;font-variant-numeric:tabular-nums}.speed-control output strong{font-size:19px;font-weight:500;letter-spacing:-.02em}.speed-control output span{font-size:10px;color:var(--muted)}.reading-footer{margin:0 36px;padding:6px 0 25px}.progress-range{display:block;width:100%}.progress-range::-webkit-slider-runnable-track{height:2px!important}.progress-range::-webkit-slider-thumb{width:8px!important;height:8px!important;margin-top:-3px!important}.progress-range::-moz-range-track{height:2px!important}.progress-meta{display:flex;justify-content:space-between;align-items:center;margin-top:6px;gap:15px;font-size:10px;color:var(--muted)}.progress-meta>span:first-child{display:flex;align-items:baseline;gap:10px}.progress-meta strong{font-size:15px;color:var(--text-soft);font-weight:400;font-variant-numeric:tabular-nums}.progress-meta small{font-size:10px;margin-left:3px}.saved-status{display:inline-flex;gap:3px;align-items:center;color:var(--subtle);font-size:9px}.keyboard-hint{display:inline-flex;align-items:center;gap:4px;font-size:9px;color:var(--subtle)}kbd{font-family:inherit;font-size:9px;border:1px solid #3d394f;border-radius:3px;padding:1px 5px;color:var(--muted)}.key-divider{margin:0 6px;height:10px;width:1px;background:var(--border)}.page-footer{display:flex;justify-content:space-between;color:var(--subtle);font-size:10px;padding:23px 3px 30px;letter-spacing:.04em}.notice{margin:16px 28px 0;border:1px solid #71608e55;background:#242032;color:#d6ccee;padding:7px 9px 7px 15px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:10px}.notice.error{color:#f0c5c5;background:#30202a;border-color:#774457}.error-message{color:#f0c5c5;padding:12px 30px}dialog{color:var(--text);background:var(--sidebar);border:1px solid var(--border);box-shadow:0 24px 100px #0008}dialog::backdrop{background:#05050cc9;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dialog-close{position:absolute;top:14px;right:14px}.help-dialog{width:min(580px,calc(100% - 32px));border-radius:16px;padding:37px}.help-dialog h2{font-size:25px;font-weight:500;line-height:1.7;margin:15px 0 20px;color:var(--accent-word);font-family:Yu Mincho,serif}.help-dialog p{color:var(--muted);font-size:12px;line-height:1.95}.help-dialog dl{margin:24px 0}.help-dialog dt{font-size:12px;margin:18px 0 5px}.help-dialog dd{margin:0;color:var(--muted);font-size:12px;line-height:1.9}.help-dialog .help-note{font-size:10px;color:var(--subtle)}.help-dialog .primary-button{margin-top:23px;width:100%}.library-dialog{width:min(340px,92vw);max-height:95dvh;margin:auto auto auto 12px;padding:40px 20px 22px;border-radius:14px}.library-dialog .brand{margin-top:20px}.library-dialog .local-note{margin-top:18px}.library-dialog .chapters{max-height:250px}.drop-overlay{position:fixed;inset:14px;z-index:20;background:#171525ee;border:2px dashed var(--accent);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--accent-word);pointer-events:none;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.drop-overlay strong{font-size:24px;font-weight:500}.drop-overlay span{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(min-width:1600px){.page-caption{height:110px}.app-shell{min-height:820px}.focus-stage{min-height:255px}}@media(max-width:1100px){.app-page{padding:0 24px}.app-shell{grid-template-columns:240px minmax(0,1fr)}.sidebar{padding-left:14px;padding-right:14px}.reader-header,.reading-space{padding-left:25px;padding-right:25px}.reading-footer{margin:0 25px}.transport,.header-actions{gap:10px}.saved-status{display:none}}@media(max-width:760px){.app-page{padding:0 14px}.page-caption{height:60px;font-size:11px;padding:0 4px}.page-caption>:last-child{display:none}.app-shell{display:block;min-height:0;border-radius:13px}.sidebar{display:none}.main-panel{min-height:min(770px,calc(100svh - 110px))}.mobile-menu{display:grid;flex-shrink:0;margin-left:-6px}.reader-header{min-height:87px;padding:14px 15px;gap:9px}.current-book{flex:1}.title-line{gap:7px}h1{font-size:14px}.eyebrow{font-size:9px}.format-badge{font-size:9px;padding:2px 7px}.chapter-count{display:none}.header-actions{gap:0}.reading-space{padding:21px 18px 27px}.reading-chapter{margin-top:23px;font-size:11px}.focus-stage{min-height:240px;gap:20px;padding:25px 0 17px}.current-word{max-width:calc(100% - 40px);font-size:clamp(26px,15vw,70px)!important}.word-wing{width:12px}.word-line{gap:8px;min-height:83px}.context-space{min-height:93px;padding-top:17px}.context-text{font-size:12px}.context-hint{font-size:9px}.transport{width:100%;gap:6px}.play-button{flex:1;min-width:130px;max-width:180px;min-height:54px;font-size:13px}.skip-button{flex-direction:column;gap:4px;min-width:62px;font-size:9px;padding:6px}.skip-button svg{width:18px;height:18px}.speed-control{margin-top:25px;gap:12px}.speed-control label{font-size:10px}.speed-control output{min-width:62px;gap:4px}.speed-control output strong{font-size:17px}.reading-footer{padding-bottom:21px;margin:0 21px}.keyboard-hint{display:none}.saved-status{display:inline-flex}.progress-meta{font-size:10px}.page-footer{font-size:9px;padding:17px 3px 22px}.page-footer>:last-child{display:none}.notice{margin:12px 14px 0;font-size:11px}.help-dialog{padding:28px 24px}.help-dialog h2{font-size:23px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}.sync-button{margin:-10px 0 24px;padding:10px 12px;width:100%;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--accent);text-align:left}.sync-button span{display:block;font-size:10px;color:var(--muted);margin-top:3px}.sync-status-bar{padding:8px 18px;background:var(--selected);color:var(--muted);font-size:11px;text-align:right}.sync-dialog{width:min(480px,calc(100vw - 28px));max-height:90svh;overflow-y:auto}.sync-dialog .primary-button,.sync-dialog .secondary-button{width:100%}.secondary-button{padding:11px 14px;border:1px solid var(--border);border-radius:8px;background:var(--selected);color:var(--text);margin:10px 0}.sync-join{margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}.sync-dialog input{display:block;width:100%;margin:8px 0;padding:10px;border:1px solid var(--border);border-radius:6px;background:var(--main);color:var(--text);font-size:16px}.sync-qr{display:block;margin:18px auto;max-width:100%;border-radius:8px}.sync-dialog .sync-note{font-size:11px;color:var(--muted)}.sync-dialog-status{color:var(--accent);font-size:12px}.sync-conflict{border-top:1px solid var(--border);margin-top:16px;padding-top:12px;overflow-wrap:anywhere}.study-library-button{display:flex;justify-content:space-between;padding:12px;margin:-12px 0 24px;border-radius:8px;background:var(--selected);color:var(--accent);text-align:left}.study-library-button span{font-size:12px}.study-tools{width:min(100%,520px);margin-top:20px;border-top:1px solid var(--border);padding-top:16px}.study-mode{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:12px;color:var(--text-soft);cursor:pointer}.study-mode input{accent-color:var(--accent);width:18px;height:18px}.study-mode span{font-size:10px;color:var(--muted)}.study-actions{display:flex;gap:10px;align-items:stretch}.study-actions>button{flex:1;min-width:0;margin:10px 0;min-height:44px;padding:10px 12px}.study-tools .secondary-button{font-size:12px}.study-dialog{width:min(640px,calc(100vw - 28px));max-height:90svh;overflow-y:auto}.study-dialog label{display:block;font-size:13px;color:var(--text);margin:16px 0 10px}.study-dialog textarea{width:100%;resize:vertical;min-height:112px;font:inherit;font-size:16px;padding:12px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--main)}.study-dialog textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.study-dialog textarea:disabled{opacity:1;color:var(--text-soft)}.study-dialog .study-source{overflow-wrap:anywhere}.study-excerpt{max-height:38svh;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:2;padding:18px;margin:18px 0;background:var(--main);border:1px solid var(--border);border-radius:8px}.study-dialog .study-note{font-size:11px}.study-dialog .study-actions .primary-button{margin-top:10px}.study-previous{font-size:12px;color:var(--text-soft)}.study-previous summary{cursor:pointer;padding:10px 0}.study-previous p{white-space:pre-wrap;overflow-wrap:anywhere}.ai-summary{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:12px 0;margin:18px 0}.ai-summary h3{color:var(--accent);font-size:14px;margin:4px 0 12px}.ai-summary ol{padding-left:24px;font-size:14px;line-height:1.9;overflow-wrap:anywhere}.ai-summary li+li{margin-top:10px}.ai-summary .secondary-button{margin:4px 0}.study-review-list{display:flex;flex-direction:column;gap:8px}.study-review-list button{display:flex;flex-direction:column;text-align:left;gap:6px;margin:0;overflow-wrap:anywhere}.study-review-list span{font-size:11px;color:var(--muted)}@media(max-width:480px){.study-dialog{padding:34px 20px 22px}.study-dialog .study-actions{flex-direction:column;gap:0}.study-excerpt{padding:12px}}
