.books-page{max-width:1340px}.books-page>.page-header{min-height:100px;padding:20px 0}.books-page .page-header h1{overflow-wrap:anywhere}.books-page .page-header p{font-size:14px}.book-back{color:var(--muted);margin-bottom:6px;font-size:12px;display:inline-block}.book-back:hover{color:var(--indigo)}.book-panel{border:1px solid var(--line);background:var(--surface-soft);border-radius:12px;min-width:0;margin:20px 0;padding:20px}.book-panel h2{margin-bottom:8px;font-size:22px}.book-panel p{margin-bottom:12px}.book-panel p:last-child{margin-bottom:0}.book-eyebrow{color:var(--red);letter-spacing:.1em;text-transform:uppercase;margin-bottom:7px;font-size:10px;font-weight:750;display:block}.book-upload-area{margin:12px 0;position:relative}.book-upload>summary{border:1px solid var(--line-strong);width:44px;height:44px;color:var(--red);background:var(--surface-soft);cursor:pointer;border-radius:9px;place-items:center;padding:0;font-size:28px;font-weight:400;line-height:1;list-style:none;display:grid}.book-upload>summary::-webkit-details-marker{display:none}.book-upload>summary:hover{border-color:var(--red);background:var(--hover-bg)}.book-upload>summary:focus-visible{outline:2px solid var(--indigo);outline-offset:3px}.book-upload-status{color:var(--muted);pointer-events:none;font-size:12px;position:absolute;top:12px;left:56px}.book-upload-content{gap:16px;max-width:840px;padding:10px 0 16px;display:grid}.book-upload form{gap:13px;display:grid}.books-page label{color:var(--muted);gap:5px;font-size:12px;font-weight:650;display:grid}.books-page input,.books-page textarea,.books-page select{border:1px solid var(--line-strong);max-width:100%;min-height:40px;color:var(--ink);background:var(--control-bg);border-radius:8px;padding:8px 10px;font-size:14px}.books-page input:focus-visible,.books-page textarea:focus-visible,.books-page select:focus-visible{outline:2px solid var(--indigo);outline-offset:2px}.book-upload-metadata{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:12px;display:grid}.book-file-field input{width:100%;padding:9px}.book-file-field small{font-weight:400}.book-inline-actions{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.book-inline-actions .button{min-height:40px}.book-privacy-note{border-top:1px solid var(--line);color:var(--muted);grid-column:1/-1;margin:0;padding-top:12px;font-size:11px}.books-page progress{width:100%;height:7px;accent-color:var(--indigo);border:none;border-radius:10px;display:block;overflow:hidden}.books-page progress::-webkit-progress-bar{background:var(--chip-bg);border-radius:10px}.books-page progress::-webkit-progress-value{background:var(--indigo);border-radius:10px}.book-section-heading{justify-content:space-between;align-items:center;gap:16px;margin:20px 0 10px;display:flex}.book-section-heading h2{margin:0;font-size:20px}.book-live-status{color:var(--muted);white-space:nowrap;font-size:11px}.book-live-status:before{background:var(--indigo);content:"";border-radius:50%;width:6px;height:6px;margin-right:6px;display:inline-block}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.book-library-card{border:1px solid var(--line);background:var(--surface-soft);border-radius:12px;grid-template-columns:70px minmax(0,1fr) 15px;align-items:center;gap:15px;min-width:0;padding:17px;display:grid}.book-library-card:hover{border-color:var(--indigo);background:var(--panel-hover)}.book-cover{border:1px solid var(--line-strong);border-left:4px solid var(--indigo);min-height:100px;color:var(--indigo);background:linear-gradient(140deg, var(--indigo-soft), var(--surface));border-radius:3px 8px 8px 3px;align-content:space-between;gap:12px;padding:10px;display:grid}.book-cover span{font-size:29px;line-height:1}.book-cover small{max-height:28px;color:var(--muted);font-size:8px;overflow:hidden}.book-library-card h3{overflow-wrap:anywhere;margin:7px 0 3px;font-size:18px;line-height:1.3}.book-library-card p{color:var(--muted);margin:0 0 7px;font-size:12px}.book-library-card>div>small{color:var(--muted);font-size:11px}.book-library-card progress{margin-top:9px}.book-card-arrow{color:var(--muted)}.book-badge{border:1px solid var(--line);max-width:100%;color:var(--muted);background:var(--chip-bg);border-radius:20px;align-items:center;gap:4px;padding:3px 8px;font-size:10px;font-weight:650;line-height:1.4;display:inline-flex}.book-badge.ready{color:var(--success);background:var(--success-soft)}.book-badge.review{color:var(--warning);background:var(--warning-soft)}.book-badge.error{color:var(--danger);background:var(--danger-soft)}.book-empty{text-align:center;padding:32px 20px}.book-empty p{max-width:600px;color:var(--muted);margin-inline:auto}.book-index-progress progress{margin:17px 0 7px}.book-index-progress small,.book-index-progress p.muted{color:var(--muted);font-size:12px}.book-index-progress p.muted{margin-top:12px}.book-chapter-list{gap:10px;display:grid}.book-chapter-list>article{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;min-width:0;overflow:hidden}.book-chapter-link{grid-template-columns:34px minmax(0,1fr) auto 14px;align-items:center;gap:12px;padding:16px;display:grid}.book-chapter-link:hover{background:var(--hover-bg)}.book-chapter-link h3{overflow-wrap:anywhere;margin:0 0 3px;font-size:16px}.book-chapter-link p{color:var(--muted);margin:0;font-size:11px}.book-chapter-number{border:1px solid var(--line);height:34px;color:var(--indigo);background:var(--indigo-soft);border-radius:8px;place-items:center;font-size:13px;font-weight:750;display:grid}.book-chapter-list .book-chapter-editor{padding:0 16px 12px 62px}.book-chapter-editor summary{color:var(--indigo);cursor:pointer;font-size:12px}.book-chapter-editor form{gap:12px;margin-top:14px;display:grid}.book-chapter-editor p{margin:0;font-size:12px}.book-range-row{align-items:end;gap:8px;display:flex}.book-range-row>label{width:105px;min-width:0}.book-range-row>span{color:var(--muted);padding-bottom:10px}.book-range-row .button{min-height:40px;padding-inline:10px;font-size:11px}.book-action{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.book-action .error{width:100%;margin:4px 0 0;font-size:12px}.book-save-status{color:var(--success);font-size:11px}.book-confirmation{flex-basis:100%}.book-add-lesson{margin-top:18px}.book-lesson-status{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 18px;margin-top:10px;padding:8px 0;display:flex}.book-lesson-status strong{font-size:13px}.book-lesson-status p{color:var(--muted);margin:4px 0 0;font-size:12px}.book-lesson-status>p{flex-basis:100%}.book-notice{border-left:2px solid var(--warning);color:var(--muted);background:var(--warning-soft);padding:10px 12px;font-size:12px}.book-notice a{color:var(--indigo);text-decoration:underline}.book-notice ul{margin-bottom:0;padding-left:19px}.book-workspace-tabs{margin-top:16px}.book-workspace-tabs button{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex-shrink:0;padding:15px 12px;font-size:13px;font-weight:650}.book-workspace-tabs button.active{border-bottom-color:var(--red);color:var(--red)}.book-workspace-tabs button small{margin-left:5px;font-size:10px}.book-workspace-tabs button:focus-visible{outline:2px solid var(--indigo);outline-offset:-3px}.book-read-layout{gap:18px;margin-top:18px;display:grid}.book-read-layout:has(.book-reading-notes){grid-template-columns:minmax(0,1.5fr) minmax(250px,.8fr)}.book-reader{border:1px solid var(--line);background:var(--surface);border-radius:10px;align-self:start;min-width:0;overflow:hidden}.book-reader-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:10px;display:flex}.book-page-controls{align-items:center;gap:6px;display:flex}.book-page-controls .button{min-width:36px;min-height:38px;padding:3px 10px;font-size:24px}.book-page-controls label{align-items:center;gap:7px;font-size:11px;display:flex}.book-page-controls select{width:65px;min-height:38px;padding:5px;font-size:12px}.book-view-switch{border:1px solid var(--line);background:var(--control-bg);border-radius:8px;gap:2px;padding:3px;display:inline-flex}.book-view-switch button{min-height:32px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:5px;padding:4px 9px;font-size:11px}.book-view-switch button[aria-pressed=true]{color:var(--indigo);background:var(--indigo-soft)}.book-page-image{text-align:center;min-height:200px}.book-page-image>p{padding:24px 16px}.book-page-image img{width:100%;height:auto;display:block}.book-page-image.is-zoomed{overscroll-behavior:contain;text-align:left;max-height:75dvh;overflow:auto}.book-page-image.is-zoomed:focus-visible{outline:2px solid var(--indigo);outline-offset:-3px}.book-zoom-control{align-items:center;gap:6px!important;font-size:11px!important;display:flex!important}.book-zoom-control select{width:98px;min-height:38px;padding:5px 7px;font-size:12px}.book-zoom-hint{color:var(--muted);background:var(--indigo-soft);margin:0;padding:9px 12px;font-size:11px}.book-workspace-panel[hidden]{display:none}.book-workspace-tabs{scroll-margin-top:65px}.book-source-page-link{color:var(--indigo);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;padding:3px;text-decoration:underline}.book-source-page-link:focus-visible{outline:2px solid var(--indigo)}.book-exercise-help{color:var(--muted);margin:15px 0 0;font-size:12px}.book-section-navigation{justify-content:space-between;gap:12px;margin:8px 0;display:flex}.book-section-navigation>a{align-content:center;gap:3px;min-width:0;max-width:48%;min-height:44px;padding:5px 0;display:grid}.book-section-navigation>a:focus-visible{outline:2px solid var(--indigo);outline-offset:3px;border-radius:4px}.book-section-navigation>a:last-child{text-align:right}.book-section-navigation small{color:var(--muted);font-size:10px}.book-section-navigation span{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.book-page-text{padding:20px}.book-page-text small{color:var(--muted);margin-bottom:20px;font-size:11px;display:block}.book-page-text p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.9}.book-page-caption{border-top:1px solid var(--line);color:var(--muted);margin:0;padding:10px 12px;font-size:11px}.book-reading-notes{align-self:start;margin:0}.book-reading-notes section+section{border-top:1px solid var(--line);margin-top:15px;padding-top:15px}.book-reading-notes h3{margin:5px 0 8px;font-size:16px}.book-reading-notes section p{white-space:pre-wrap;line-height:1.9}.book-reading-notes section small{color:var(--muted);font-size:10px}.book-exercises{gap:16px;margin-top:18px;display:grid}.book-exercise{border:1px solid var(--line);background:var(--surface-soft);border-radius:12px;min-width:0;padding:20px}.book-exercise>header{color:var(--muted);justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;font-size:11px;display:flex}.book-exercise h3{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:10px;font-size:19px;line-height:1.7}.book-exercise-instructions{white-space:pre-wrap;color:var(--muted);font-size:13px}.book-exercise form{gap:13px;display:grid}.book-exercise textarea{resize:vertical;width:100%;font-size:16px;line-height:1.7}.book-answer-options{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;margin:0;padding:0;display:grid}.book-answer-options label{border:1px solid var(--line-strong);min-width:0;color:var(--ink);cursor:pointer;border-radius:8px;align-items:center;gap:9px;padding:12px;font-size:14px;font-weight:400;display:flex}.book-answer-options label:has(input:checked){border-color:var(--indigo);background:var(--indigo-soft)}.book-answer-options input{width:16px;height:16px;min-height:16px;accent-color:var(--indigo);flex:0 0 16px;padding:0}.book-answer-options span{overflow-wrap:anywhere}.book-result{font-size:12px}.book-result.correct{color:var(--success)}.book-result.incorrect{color:var(--warning)}.book-result.review{color:var(--muted)}.book-answer-feedback{border-top:1px solid var(--line);margin-top:18px;padding-top:13px}.book-answer-feedback summary{color:var(--indigo);cursor:pointer;font-size:12px}.book-answer-feedback p{white-space:pre-wrap;margin:12px 0 0}.book-answer-feedback small{color:var(--muted)}.book-writing-feedback{border-top:1px solid var(--line);gap:8px;margin-top:14px;padding-top:14px;display:grid}.book-writing-feedback strong{color:var(--indigo);font-size:13px}.book-writing-feedback p{white-space:pre-wrap;margin:0;font-size:13px}.book-writing-feedback .button{justify-self:start}.book-writing-feedback small{color:var(--muted);font-size:11px}.book-material-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.book-material-list>article{border:1px solid var(--line);background:var(--surface-soft);overflow-wrap:anywhere;border-radius:10px;min-width:0;padding:15px}.book-material-list header{justify-content:space-between;align-items:center;gap:8px;display:flex}.book-material-list header small{color:var(--muted);font-size:10px}.book-material-list h3{margin:13px 0 4px;font-size:24px}.book-material-list p{margin:8px 0;font-size:12px}.book-material-list strong{font-size:13px}.book-material-list dl{gap:5px;margin-bottom:0;display:grid}.book-material-list dl div{grid-template-columns:28px minmax(0,1fr);font-size:12px;display:grid}.book-material-list dt{color:var(--muted);text-transform:uppercase;font-size:10px}.book-material-list dd{margin:0}.book-material-list details{margin-top:10px;font-size:12px}.book-material-list summary{color:var(--indigo);cursor:pointer}.book-exercise-preview details{border-top:1px solid var(--line);padding:12px 0}.book-exercise-preview summary{cursor:pointer;white-space:pre-wrap;overflow-wrap:anywhere}.book-exercise-preview details p{margin:10px 0 0;font-size:12px}.book-approval{justify-content:flex-end;padding:18px 0;display:flex}@media (max-width:1050px){.book-read-layout:has(.book-reading-notes){grid-template-columns:minmax(0,1fr)}.book-material-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.books-page>.page-header{gap:12px;min-height:80px;padding-block:14px}.books-page .page-header h1{font-size:26px}.books-page .page-header p{font-size:12px}.book-back{margin-bottom:8px;font-size:11px}.book-panel{margin-block:15px;padding:15px}.book-panel h2,.book-section-heading h2{font-size:19px}.book-upload-metadata{grid-template-columns:minmax(0,1fr)}.books-page input,.books-page textarea,.books-page select{font-size:16px}.book-grid{grid-template-columns:minmax(0,1fr)}.book-library-card{grid-template-columns:58px minmax(0,1fr) 12px;gap:12px;padding:13px}.book-cover{min-height:88px}.book-library-card h3{font-size:17px}.book-section-heading{align-items:flex-start;gap:8px}.book-section-heading>.muted{white-space:nowrap;font-size:11px}.book-live-status{white-space:normal;font-size:10px}.book-chapter-link{grid-template-columns:28px minmax(0,1fr) 12px;gap:10px;padding:13px}.book-chapter-link .book-badge{grid-column:2;width:fit-content}.book-chapter-link>span:last-child{grid-area:1/3}.book-chapter-link h3{font-size:15px}.book-chapter-number{height:28px}.book-chapter-list .book-chapter-editor{padding-left:51px}.book-chapter-editor .book-inline-actions{align-items:stretch}.book-range-row>label{width:80px}.book-range-row .button{padding-inline:7px;font-size:10px}.book-lesson-status{margin-top:8px;padding:6px 0}.book-workspace-tabs{gap:4px}.book-workspace-tabs button{padding:13px 8px;font-size:12px}.book-workspace-tabs button small{margin-left:2px}.book-reader-toolbar{gap:7px;padding:8px}.book-page-controls label{gap:4px}.book-page-controls select{width:59px;font-size:14px}.book-view-switch button{padding-inline:7px;font-size:10px}.book-page-text,.book-exercise{padding:15px}.book-exercise h3{font-size:18px}.book-answer-options{grid-template-columns:minmax(0,1fr)}.book-exercise>header{align-items:flex-start}.book-exercise>header .book-badge{text-align:right}.book-material-list{grid-template-columns:minmax(0,1fr)}}body:has(.book-full-reader){overscroll-behavior:none;overflow:hidden}.app-shell:has(.book-full-reader){height:100dvh;min-height:0;padding:0;display:block}:is(.app-shell:has(.book-full-reader)>.sidebar,.app-shell:has(.book-full-reader)>.mobile-header,.app-shell:has(.book-full-reader)>.nav){display:none}.app-shell:has(.book-full-reader)>main{width:100%;height:100%;min-height:0;margin:0;padding:0;overflow:hidden}.book-full-reader{width:100%;min-width:0;height:100dvh;min-height:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);color:var(--ink);background:var(--surface);flex-direction:column;display:flex;overflow:hidden}.book-full-reader:fullscreen{width:100%;height:100%}.book-full-reader-header{border-bottom:1px solid var(--line);background:var(--surface);flex:none;align-items:center;gap:12px;min-width:0;padding:8px 12px;display:flex}.book-full-reader-header h1{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;margin:0;font-size:15px;line-height:1.4;overflow:hidden}.book-full-reader .button{border-radius:8px;min-height:40px;padding:7px 10px;font-size:12px}.book-full-reader .button:focus-visible,.book-full-reader .book-bookmark-jump:focus-visible{outline:2px solid var(--indigo);outline-offset:-3px}.book-full-reader-actions{flex:none;align-items:center;gap:6px;display:flex}.book-full-reader .book-reader-back{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.book-reader-back>span:first-child{font-size:25px;line-height:16px}.book-full-reader-actions .button{white-space:nowrap;justify-content:center;align-items:center;gap:6px;display:inline-flex}.book-full-reader-actions svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}.book-current-bookmark[aria-pressed=true]{color:var(--indigo);border-color:var(--indigo);background:var(--indigo-soft)}.book-current-bookmark[aria-pressed=true] svg{fill:currentColor}.book-bookmarks-count{color:var(--muted);font-variant-numeric:tabular-nums;font-size:10px}.book-full-reader-errors{border-bottom:1px solid var(--line);background:var(--surface-soft);flex:none;max-height:25dvh;padding:5px 12px;overflow:auto}.book-full-reader-errors p{justify-content:space-between;align-items:center;gap:10px;margin:3px 0;font-size:12px;display:flex}.book-full-reader-errors p>span{overflow-wrap:anywhere;min-width:0}.book-full-reader-errors .button{flex:none}.book-full-reader-workspace{flex:1;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0;display:grid;position:relative;overflow:hidden}.book-full-reader-workspace.has-bookmarks{grid-template-columns:minmax(0,1fr) 270px}.book-full-reader .book-reader{border:0;border-radius:0;flex-direction:column;align-self:stretch;min-height:0;display:flex}.book-full-reader .book-reader-toolbar{flex:none;justify-content:center;gap:12px;padding:6px 12px}.book-full-reader .book-page-controls .button{min-width:40px;padding:2px 10px;font-size:25px}.book-full-reader input,.book-full-reader select{border:1px solid var(--line-strong);max-width:100%;min-height:38px;color:var(--ink);background:var(--control-bg);border-radius:7px;padding:5px 7px;font-size:14px}.book-full-reader .book-page-controls input{text-align:center;font-variant-numeric:tabular-nums;width:64px}.book-full-reader .book-page-controls label{color:var(--muted);align-items:center;gap:6px;font-size:11px;display:flex}.book-full-reader .book-page-jump{align-items:center;gap:6px;margin:0;display:flex}.book-full-reader .book-page-jump>span{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px}.book-full-reader .book-page-jump .button{min-width:34px;padding:5px 7px;font-size:12px}.book-full-reader .book-view-switch button{min-height:32px}.book-full-reader .book-page-image{overscroll-behavior:contain;background:var(--surface-soft);flex:1;min-height:0;max-height:none;position:relative;overflow:auto}.book-full-reader .book-page-image:not(.is-zoomed){justify-content:center;align-items:center;display:flex}.book-full-reader .book-page-image:not(.is-zoomed) img{object-fit:contain;width:100%;min-width:0;height:100%;min-height:0;display:block}.book-full-reader .book-page-image:not(.is-zoomed)>p{z-index:1;pointer-events:none;margin:0;position:absolute;top:0;left:0;right:0}.book-full-reader .book-page-image.is-zoomed img{height:auto}.book-full-reader .book-page-text{overscroll-behavior:contain;flex:1;min-height:0;padding:20px max(16px,50% - 425px);overflow:auto}.book-full-reader .book-page-text p{margin:0}.book-full-reader .book-zoom-hint{border-top:1px solid var(--line);color:var(--muted);text-align:center;flex:none;margin:0;padding:5px 12px;font-size:10px}.book-reader-bookmarks{border-left:1px solid var(--line);background:var(--surface);flex-direction:column;min-width:0;min-height:0;display:flex}.book-reader-bookmarks>header{border-bottom:1px solid var(--line);flex:none;justify-content:space-between;align-items:center;gap:12px;padding:7px 12px;display:flex}.book-reader-bookmarks h2{margin:0;font-size:14px}.book-reader-bookmarks h2 small{color:var(--muted);margin-left:5px;font-size:11px;font-weight:400}.book-reader-bookmarks>header .button{min-width:40px;padding:2px 8px;font-size:24px}.book-reader-bookmarks>p{margin:0;padding:18px 14px;font-size:12px}.book-reader-bookmarks ul{overscroll-behavior:contain;min-height:0;margin:0;padding:5px;list-style:none;overflow:auto}.book-reader-bookmarks li{border-radius:8px;align-items:center;gap:5px;display:flex}.book-reader-bookmarks li.is-current{background:var(--indigo-soft)}.book-bookmark-jump{text-align:left;min-width:0;min-height:48px;color:var(--ink);cursor:pointer;background:0 0;border:0;border-radius:7px;flex:1;gap:3px;padding:10px;display:grid}.book-bookmark-jump strong{font-size:13px}.book-bookmark-jump span{overflow-wrap:anywhere;color:var(--muted);font-size:11px}.book-full-reader .book-bookmark-remove{flex:none;min-width:40px;margin-right:4px;padding:2px 8px;font-size:20px}@media (max-width:760px){.book-full-reader-header{flex-wrap:wrap;gap:5px 8px;padding:5px 8px}.book-full-reader-header h1{font-size:13px}.book-full-reader .book-reader-back{padding-inline:8px}.book-full-reader .book-reader-back>span:last-child{display:none}.book-full-reader-actions{gap:4px}.book-full-reader-actions .button{padding-inline:7px;font-size:11px}.book-full-reader .book-current-bookmark span{display:none}.book-full-reader .book-current-bookmark,.book-full-reader .book-native-fullscreen{min-width:40px}.book-full-reader .book-reader-toolbar{gap:5px 8px;padding:5px 6px}.book-full-reader .book-page-controls{gap:3px}.book-full-reader .book-page-controls input{width:52px;font-size:16px}.book-full-reader select{font-size:16px}.book-full-reader .book-zoom-control{gap:4px}.book-full-reader .book-zoom-control select{width:89px}.book-full-reader-workspace.has-bookmarks{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}.book-reader-bookmarks{border-top:1px solid var(--line);border-left:0;max-height:min(240px,40dvh)}.book-reader-bookmarks>header{padding:4px 10px}}@media (max-height:500px) and (orientation:landscape){.book-full-reader-header,.book-full-reader .book-reader-toolbar{padding-block:3px}.book-full-reader-workspace.has-bookmarks{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) 240px}.book-reader-bookmarks{border-top:0;border-left:1px solid var(--line);max-height:none}.book-full-reader .book-zoom-hint{display:none}}
.capture-page{max-width:1080px}.capture-page>.page-header{min-height:135px;padding-inline:0}.capture-page .page-header h1{font-size:clamp(27px,3.5vw,38px)}.capture-page .page-header p{font-size:14px}.capture-back{color:var(--muted);margin-bottom:10px;font-size:12px;display:inline-block}.capture-page .button{min-height:42px}.capture-photo-panel,.capture-translation,.capture-progress,.capture-failed{border:1px solid var(--line);background:var(--surface-soft);border-radius:13px;margin-top:20px;padding:22px}.capture-photo-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.capture-photo-actions small{color:var(--muted);font-size:11px}.capture-photo-empty{text-align:center;max-width:460px;margin:48px auto}.capture-photo-empty>span{border:1px solid var(--line-strong);width:72px;height:72px;color:var(--red);background:var(--red-soft);border-radius:16px;place-items:center;margin:0 auto 18px;font-size:36px;display:grid}.capture-photo-empty h2{font-size:22px}.capture-photo-empty p{color:var(--muted);font-size:14px;line-height:1.7}.capture-photo-preview{border:1px solid var(--line);background:var(--surface);border-radius:9px;width:min(100%,580px);max-height:65vh;margin:20px auto;position:relative;overflow:hidden}.capture-photo-preview img{object-fit:fill;width:100%;height:100%;display:block}.capture-crop-outline{border:2px solid var(--red);pointer-events:none;position:absolute;box-shadow:0 0 0 2000px #0000007a}.capture-crop-controls{border:1px solid var(--line);border-radius:9px;margin-bottom:18px;padding:12px 14px}.capture-crop-controls summary,.capture-translation summary,.capture-retained-photo summary{cursor:pointer;color:var(--indigo);font-size:13px}.capture-crop-controls summary small{color:var(--muted);margin-left:5px}.capture-crop-controls p{color:var(--muted);margin-block:12px;font-size:12px}.capture-crop-controls>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin-bottom:16px;display:grid}.capture-crop-controls label{color:var(--muted);grid-template-columns:1fr auto;gap:5px;font-size:12px;display:grid}.capture-crop-controls input{min-height:30px;accent-color:var(--red);grid-column:1/-1;padding:0}.capture-keep{align-items:flex-start;gap:10px;font-size:13px;display:flex}.capture-keep input,.capture-uncertain-check input,.capture-word-select input{width:19px;height:19px;min-height:19px;accent-color:var(--red);flex-shrink:0;padding:0}.capture-keep small{color:var(--muted);margin-top:3px;font-size:11px;display:block}.capture-privacy{color:var(--muted);margin:15px 0;font-size:12px;line-height:1.6}.capture-current-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-top:18px;display:flex}.capture-badge{border:1px solid var(--line);width:fit-content;color:var(--muted);background:var(--chip-bg);border-radius:20px;align-items:center;padding:3px 8px;font-size:10px;font-weight:650;line-height:1.4;display:inline-flex}.capture-badge.ready{color:var(--success);background:var(--success-soft)}.capture-badge.uncertain,.capture-badge.failed{color:var(--warning);background:var(--warning-soft)}.capture-badge.processing,.capture-badge.pending{color:var(--indigo);background:var(--indigo-soft)}.capture-progress{align-items:flex-start;gap:15px;display:flex}.capture-progress-dot{background:var(--indigo);border-radius:50%;flex-shrink:0;width:10px;height:10px;margin-top:10px}.capture-progress h2,.capture-failed h2,.capture-translation h2{margin-bottom:10px;font-size:22px}.capture-progress p,.capture-failed p{color:var(--muted);font-size:13px}.capture-progress small{color:var(--muted);margin-bottom:12px;font-size:11px;display:block}.capture-warning{color:var(--warning)!important}.capture-eyebrow{color:var(--red);letter-spacing:.1em;text-transform:uppercase;margin-bottom:6px;font-size:10px;font-weight:750;display:block}.capture-english{white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0;font-size:19px;line-height:1.7}.capture-japanese{border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;margin-top:20px;padding-top:16px;font-size:19px;line-height:1.9}.capture-translation details p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.capture-translation>small{color:var(--muted);margin-top:20px;font-size:11px;display:block}.capture-warnings{border-left:2px solid var(--warning);color:var(--warning);background:var(--warning-soft);margin:15px 0 0;padding:10px 10px 10px 28px;font-size:12px}.capture-words{margin-top:30px}.capture-section-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.capture-section-heading h2{margin:0;font-size:22px}.capture-section-heading>span{color:var(--muted);white-space:nowrap;font-size:12px}.capture-words>p.muted{margin:10px 0 15px;font-size:12px}.capture-word-list{gap:9px;display:grid}.capture-word{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;align-items:flex-start;gap:12px;min-width:0;padding:14px;display:flex}.capture-word.is-selected{border-color:var(--indigo)}.capture-word-select{cursor:pointer;place-items:center;min-width:25px;min-height:38px;display:grid}.capture-word>details{flex:1;min-width:0}.capture-word>details>summary{cursor:pointer;justify-content:space-between;align-items:center;gap:10px;min-height:38px;list-style:none;display:flex}.capture-word summary::-webkit-details-marker{display:none}.capture-word summary strong{overflow-wrap:anywhere;font-size:21px;display:block}.capture-word summary small{color:var(--muted);margin-top:3px;font-size:12px;display:block}.capture-word-flags{max-width:130px;color:var(--muted);flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;align-items:center;gap:6px;display:flex}.capture-word-gloss{border-top:1px solid var(--line);gap:10px;margin:16px 0;padding-top:13px;display:grid}.capture-word-gloss div{grid-template-columns:65px minmax(0,1fr);gap:10px;display:grid}.capture-word-gloss dt{color:var(--muted);font-size:11px}.capture-word-gloss dd{overflow-wrap:anywhere;margin:0;font-size:14px}.capture-existing{color:var(--muted);font-size:11px}.capture-word-editor{margin-top:10px}.capture-word-editor summary{color:var(--indigo);cursor:pointer;font-size:12px}.capture-word-editor>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:13px;display:grid}.capture-word-editor label{min-width:0;color:var(--muted);gap:5px;font-size:11px;display:grid}.capture-word-editor input,.capture-word-editor select,.capture-word-editor textarea{width:100%;min-width:0;font-size:15px}.capture-word-editor label:nth-last-child(-n+3){grid-column:1/-1}.capture-uncertain-check{color:var(--warning);align-items:flex-start;gap:9px;margin-top:16px;font-size:12px;display:flex}.capture-save-bar{border:1px solid var(--line);background:var(--surface-soft);border-radius:11px;margin-top:16px;padding:16px}.capture-save-bar>p{color:var(--muted);margin:0 0 12px;font-size:12px}.capture-save-bar>div{flex-wrap:wrap;gap:10px;display:flex}.capture-save-bar>p:last-child{margin-top:13px;margin-bottom:0}.capture-saved{color:var(--success)!important}.capture-saved-link{margin-top:12px}.capture-photo-removed,.capture-empty-result{color:var(--muted);font-size:12px}.capture-photo-removed{margin-top:18px}.capture-retained-photo{border:1px solid var(--line);background:var(--surface-soft);border-radius:11px;margin-top:20px;padding:15px}.capture-retained-photo img{border:1px solid var(--line);border-radius:6px;max-width:100%;max-height:65vh;margin:15px auto;display:block}.capture-retained-photo small{color:var(--muted);margin-top:10px;font-size:11px;display:block}.capture-history{border-top:1px solid var(--line);margin-top:28px;padding-top:17px}.capture-history>summary{cursor:pointer;font-size:14px;font-weight:650}.capture-history>summary span{color:var(--muted);margin-left:8px;font-size:11px}.capture-history>div{gap:8px;margin-top:15px;display:grid}.capture-history button{border:1px solid var(--line);width:100%;min-width:0;color:var(--ink);background:var(--surface-soft);text-align:left;cursor:pointer;border-radius:9px;align-items:center;gap:12px;padding:12px;display:flex}.capture-history button[aria-current=true]{border-color:var(--indigo)}.capture-history button strong{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px;overflow:hidden}.capture-history button small{color:var(--muted);white-space:nowrap;font-size:10px}@media (max-width:760px){.capture-page>.page-header{min-height:105px;padding-block:16px}.capture-page .page-header p{font-size:12px}.capture-photo-panel,.capture-translation,.capture-progress,.capture-failed{margin-top:15px;padding:15px}.capture-photo-actions>small{flex-basis:100%}.capture-photo-empty{margin:30px auto}.capture-photo-empty h2{font-size:20px}.capture-photo-empty p{font-size:13px}.capture-photo-preview{max-height:none}.capture-translation h2,.capture-section-heading h2,.capture-progress h2,.capture-failed h2{font-size:20px}.capture-english,.capture-japanese{font-size:17px}.capture-crop-controls>div{grid-template-columns:minmax(0,1fr)}.capture-word{gap:7px;padding:12px 10px}.capture-word-flags{max-width:88px}.capture-word summary strong{font-size:20px}.capture-word-editor>div{grid-template-columns:minmax(0,1fr)}.capture-word-editor input,.capture-word-editor textarea,.capture-word-editor select{font-size:16px}.capture-save-bar{padding:13px}.capture-save-bar .button{flex:1;padding-inline:11px}.capture-history button{gap:7px;padding:10px}}
