/* DentoReader UI. PDF text positioning follows Mozilla PDF.js' TextLayer contract. */
.dcr-app,.dcr-dialog{--dcr-accent:#eb7028;--dcr-ink:#263143;--dcr-muted:#78818e;--dcr-line:#e7e8eb;--dcr-paper:#fff;--dcr-bg:#f4f5f7;--dcr-soft:#fff3e9;font-family:Vazirmatn,Tahoma,"Segoe UI",sans-serif;color:var(--dcr-ink);font-size:14px;line-height:1.85;text-align:right}
.dcr-app *,.dcr-dialog *{box-sizing:border-box}.dcr-app{width:100%;max-width:1240px!important;margin:0 auto}.dcr-content-host{max-width:1280px!important;width:calc(100% - 32px)!important}
.dcr-app h1,.dcr-app h2,.dcr-app h3,.dcr-dialog h2{font-family:inherit;color:inherit;font-weight:700;line-height:1.65;margin:0}
.dcr-app h1{font-size:34px;letter-spacing:-1px}.dcr-app h2{font-size:18px}.dcr-app h3{font-size:15px;margin:22px 0 12px}.dcr-app p,.dcr-dialog p{margin:10px 0;font-size:14px}
.dcr-app a,.dcr-dialog a{color:var(--dcr-ink);text-decoration:none}.dcr-app button,.dcr-dialog button{font:inherit;letter-spacing:0;cursor:pointer;border:1px solid var(--dcr-line);background:var(--dcr-paper);color:var(--dcr-ink);border-radius:12px;min-height:44px;padding:8px 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;box-shadow:none;text-transform:none}
.dcr-app button:hover,.dcr-dialog button:hover{border-color:var(--dcr-accent);background:var(--dcr-soft)}.dcr-app button:disabled{cursor:default;opacity:.35}.dcr-app button.active{color:var(--dcr-accent);background:var(--dcr-soft);border-color:#f5d1b9}
.dcr-app :focus-visible,.dcr-dialog :focus-visible{outline:3px solid #ec8a49;outline-offset:3px}.dcr-app svg,.dcr-dialog svg{width:20px;height:20px;flex-shrink:0;stroke-width:1.7}
.dcr-app input,.dcr-app select,.dcr-dialog input,.dcr-dialog select,.dcr-dialog textarea{font:inherit;background:var(--dcr-paper);color:var(--dcr-ink);border:1px solid var(--dcr-line);border-radius:10px;padding:10px 12px;min-height:44px;max-width:100%;box-shadow:none}
.dcr-app input[type=checkbox],.dcr-dialog input[type=checkbox]{min-height:0;width:18px;height:18px;accent-color:var(--dcr-accent)}.dcr-app input[type=number]{direction:ltr}
.dcr-app .dcr-primary,.dcr-dialog .dcr-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--dcr-accent);color:#fff;border:1px solid var(--dcr-accent);border-radius:12px;padding:10px 18px;min-height:44px;font-size:13px;font-weight:700}
.dcr-app .dcr-primary:hover,.dcr-dialog .dcr-primary:hover{background:#d35b16;color:#fff}.dcr-secondary{display:inline-flex;min-height:44px;align-items:center;border:1px solid var(--dcr-line);border-radius:12px;padding:10px 14px}
.dcr-app .dcr-icon-button,.dcr-dialog .dcr-icon-button{width:44px;min-width:44px;height:44px;padding:10px}.dcr-icon-button span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dcr-library-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid var(--dcr-line)}.dcr-brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:700}.dcr-brand>svg{width:32px;height:32px;color:var(--dcr-accent)}.dcr-brand small{display:block;font-size:10px;font-weight:400;color:var(--dcr-muted)}
.dcr-library-head nav{display:flex;gap:8px}.dcr-library-head nav a{padding:10px 14px;border-radius:10px;font-size:13px;min-height:44px}.dcr-library-head nav a.active{background:var(--dcr-soft);color:#b84c12;font-weight:700}
.dcr-intro{padding:40px 0 30px}.dcr-eyebrow{display:block;color:#bf581b;font-size:12px;font-weight:700;margin-bottom:8px}.dcr-intro p{color:var(--dcr-muted);margin-top:12px}
.dcr-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.dcr-filters>select{flex:1;min-width:125px;font-size:12px}.dcr-search{display:flex;align-items:center;gap:9px;border:1px solid var(--dcr-line);background:var(--dcr-paper);border-radius:12px;padding:0 12px;flex:2;min-width:240px}.dcr-search svg{color:var(--dcr-muted)}.dcr-search input{border:0!important;width:100%;background:transparent;padding:12px 2px;min-width:0;outline-offset:0}
.dcr-chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.dcr-chips button,.dcr-chips a{font-size:12px;min-height:44px;border-radius:24px}.dcr-chips a{display:inline-flex;align-items:center;gap:5px;padding:6px 12px}
.dcr-result-count{font-size:12px!important;color:var(--dcr-muted);padding:10px 0}.dcr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding-bottom:40px}
.dcr-book-card{min-width:0;border:1px solid var(--dcr-line);border-radius:18px;overflow:hidden;background:var(--dcr-paper);transition:box-shadow .15s}.dcr-book-card:hover{box-shadow:0 10px 28px #2631430c}
.dcr-book-card .dcr-cover{position:relative;border:0;border-radius:0;background:#f0f1f2;width:100%;height:238px;padding:18px;display:flex;justify-content:center}.dcr-cover img{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 7px 16px #0002;border-radius:3px}.dcr-cover>svg{width:60px;height:60px;color:#89939c}.dcr-cover-badge{position:absolute;bottom:12px;right:12px;background:#ffffffed;color:#515a65;border:1px solid #fff8;border-radius:7px;font-size:10px;padding:2px 8px;max-width:85%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dcr-book-body{padding:16px}.dcr-book-body>small{font-size:10px;color:var(--dcr-muted)}.dcr-book-body h2{font-size:15px;line-height:1.8;min-height:52px;margin:6px 0 2px}.dcr-book-body h2 button{font-size:inherit;font-weight:700;border:0;padding:0;min-height:0;background:none;display:block;text-align:right}.dcr-book-body h2 button:hover{background:none}.dcr-book-body>p{font-size:11px;color:var(--dcr-muted);margin:3px 0 14px;min-height:21px}
.dcr-book-meta{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:9px;min-height:28px}.dcr-book-meta strong{font-size:11px}.dcr-card-actions{display:flex;gap:8px;margin-top:14px}.dcr-card-actions .dcr-primary{flex:1;padding-inline:6px;font-size:11px}.dcr-progress-track{height:4px;background:var(--dcr-line);border-radius:4px;margin:9px 0 4px;overflow:hidden}.dcr-progress-track span{display:block;background:var(--dcr-accent);height:100%}
.dcr-continue-card{display:flex;align-items:center;gap:16px;background:#fff7ef;border:1px solid #f3ddc8;border-radius:16px;padding:20px;margin-bottom:25px}.dcr-continue-card>svg{color:var(--dcr-accent);width:28px;height:28px}.dcr-continue-card>div{flex:1}.dcr-continue-card strong,.dcr-continue-card span,.dcr-continue-card small{display:block}.dcr-continue-card small,.dcr-continue-card span{font-size:11px;color:var(--dcr-muted)}
.dcr-empty{text-align:center;padding:55px 20px;width:100%;grid-column:1/-1}.dcr-empty>svg{width:38px;height:38px;color:var(--dcr-accent);margin-bottom:14px}.dcr-empty h2{font-size:20px}.dcr-empty p{color:var(--dcr-muted);margin-bottom:18px}.dcr-loading{text-align:center;padding:80px 20px;color:var(--dcr-muted)}
.dcr-dialog{border:1px solid var(--dcr-line);border-radius:20px;padding:28px;max-width:700px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;box-shadow:0 24px 100px #0003;background:#fff}.dcr-dialog::backdrop{background:#18233280;backdrop-filter:blur(2px)}.dcr-dialog-close{position:sticky;top:0;float:left;width:44px;height:44px;padding:10px!important;z-index:2}.dcr-dialog h2{font-size:22px;padding-left:40px}.dcr-book-detail{display:grid;grid-template-columns:140px 1fr;gap:24px;clear:both;padding-top:10px}.dcr-book-detail>img{width:140px;height:auto;max-height:220px;object-fit:contain}.dcr-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.dcr-notebook-tools{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px}.dcr-sync{font-size:10px;color:var(--dcr-muted)}.dcr-note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start;padding-bottom:30px}.dcr-note-card{background:var(--dcr-paper);border:1px solid var(--dcr-line);border-top:4px solid #e5bb3b;border-radius:15px;padding:18px;min-width:0}.dcr-note-card[data-color=green]{border-top-color:#54ac80}.dcr-note-card[data-color=blue]{border-top-color:#679eda}.dcr-note-card[data-color=pink]{border-top-color:#d480a0}.dcr-note-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.dcr-note-top>span{font-size:11px;font-weight:700;color:var(--dcr-muted)}.dcr-note-card blockquote,.dcr-dialog blockquote,.dcr-small-note blockquote{margin:14px 0;padding:12px 14px;border-right:3px solid #efd074;background:#fffaf0;font-size:12px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}.dcr-note-content{white-space:pre-wrap;overflow-wrap:anywhere}.dcr-note-card footer{border-top:1px solid var(--dcr-line);padding-top:13px;margin-top:18px}.dcr-note-card footer span{display:block;font-size:10px;color:var(--dcr-muted)}.dcr-note-card footer a{display:flex;align-items:center;gap:5px;font-size:11px;color:#ba511c;margin-top:7px}.dcr-clip-preview{background:#f5f6f7;margin-top:15px;text-align:center;min-height:90px;font-size:11px;overflow:hidden}.dcr-clip-preview canvas{max-width:100%;height:auto;display:block;margin:auto}
.dcr-editor>label{display:block;margin:18px 0;font-size:12px}.dcr-editor input,.dcr-editor textarea,.dcr-editor select{display:block;width:100%;margin-top:6px}.dcr-editor textarea{min-height:150px;resize:vertical;line-height:1.9}.dcr-editor-fields{display:flex;gap:12px}.dcr-editor-fields label{flex:1;font-size:12px}.dcr-editor-footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px}.dcr-editor-footer .dcr-sync{flex:1}.dcr-dialog .dcr-danger{color:#af3030;background:#fff0f0;border-color:#efc9c9}.dcr-conflict{background:#fff6e3;padding:0 12px;border-radius:10px}.dcr-conflict:empty{display:none}.dcr-conflict button{font-size:11px;margin:4px}.dcr-load-more{text-align:center;padding:20px}
body.dcr-reader-open{overflow:hidden}.dcr-reader{position:fixed;inset:0;z-index:100000;max-width:none!important;width:100%;height:100dvh;background:var(--dcr-bg);display:flex;flex-direction:column;margin:0;line-height:1.7}
.dcr-reader[data-theme=sepia]{--dcr-bg:#eee5d3;--dcr-paper:#fbf6eb;--dcr-ink:#493c2e;--dcr-line:#e3d6c5;--dcr-muted:#8b7c68;--dcr-soft:#f9e7d5}
.dcr-reader[data-theme=dark]{--dcr-bg:#171c25;--dcr-paper:#242b37;--dcr-ink:#e5e9ef;--dcr-line:#374151;--dcr-muted:#a6adba;--dcr-soft:#39312a}
.dcr-reader-head{flex-shrink:0;display:flex;align-items:center;gap:14px;padding:12px 20px;background:var(--dcr-paper);border-bottom:1px solid var(--dcr-line);min-height:72px}.dcr-reader-title{flex:1;min-width:0}.dcr-reader-title h1{font-size:16px;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dcr-reader-title>span{font-size:10px;color:var(--dcr-muted)}
.dcr-sample-banner{flex-shrink:0;background:var(--dcr-soft);padding:6px 20px;color:var(--dcr-ink);font-size:11px;text-align:center}.dcr-sample-banner a{color:var(--dcr-accent);margin-inline-start:10px}
.dcr-reader-main{flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.dcr-stage{flex:1;min-width:0;overflow:auto;direction:ltr;position:relative;overscroll-behavior:contain;outline:0!important}.dcr-stage-inner{position:relative;min-width:100%;width:max-content;display:flex;flex-direction:column;align-items:center;gap:24px;padding:24px 20px}.dcr-frame{position:relative;text-align:center;flex-shrink:0;max-width:none}.dcr-pdf-page{position:relative;background:white;box-shadow:0 4px 22px #1523311a;direction:ltr;overflow:hidden;border-radius:2px;--min-font-size:1}.dcr-pdf-page>canvas{display:block;max-width:none!important}.dcr-page-caption{display:block;margin-top:10px;color:var(--dcr-muted);font-size:10px;direction:rtl}.dcr-page-loading{background:var(--dcr-paper);padding:80px 60px;color:var(--dcr-muted);font-size:12px;position:relative;z-index:4}.dcr-pdf-page:has(.dcr-page-loading)>canvas{display:none}.dcr-reader-error{padding:50px 26px;direction:rtl;background:var(--dcr-paper);min-height:350px}.dcr-reader-error>svg{width:36px;height:36px;color:var(--dcr-accent);margin-bottom:12px}.dcr-reader-error h2{font-size:20px}.dcr-reader-error a{display:inline-flex;margin:10px;align-items:center;min-height:44px}
.dcr-reader-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 20px calc(10px + env(safe-area-inset-bottom));background:var(--dcr-paper);border-top:1px solid var(--dcr-line);flex-shrink:0}.dcr-page-controls{display:flex;align-items:center;gap:8px;white-space:nowrap}.dcr-page-controls label{font-size:11px;color:var(--dcr-muted)}.dcr-page-controls input{width:66px;padding:6px;text-align:center;font-size:12px;appearance:textfield}.dcr-page-controls input::-webkit-inner-spin-button{display:none}.dcr-study-controls{display:flex;gap:8px}.dcr-study-controls button{font-size:11px;padding:9px 12px}
.dcr-sheet{width:350px;max-width:45%;background:var(--dcr-paper);border-right:1px solid var(--dcr-line);display:flex;flex-direction:column;flex-shrink:0;direction:rtl}.dcr-sheet[hidden]{display:none!important}.dcr-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--dcr-line);flex-shrink:0}.dcr-sheet-head h2{font-size:16px}.dcr-sheet-body{padding:18px;overflow:auto;flex:1;min-height:0}.dcr-sheet-body label{font-size:12px;display:block}.dcr-sheet-body select{width:100%;display:block;margin-top:8px}.dcr-sheet-body .dcr-help{font-size:10px;color:var(--dcr-muted)}.dcr-sheet-body p{font-size:12px}.dcr-chapters button{display:block;width:100%;margin-bottom:8px;text-align:right;justify-content:flex-start;font-size:12px}.dcr-jump-label input{width:90px;margin:10px}.dcr-thumbnails{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.dcr-thumbnails>button{display:flex;flex-direction:column;padding:8px;gap:6px;font-size:10px;min-width:0}.dcr-thumb{display:flex;align-items:center;justify-content:center;min-height:110px;max-height:180px;width:100%;overflow:hidden;background:var(--dcr-bg)}.dcr-thumb canvas{display:block;max-width:100%;height:auto}.dcr-thumbnails>[data-action=more-thumbs]{grid-column:1/-1}
.dcr-small-note{border:1px solid var(--dcr-line);border-radius:12px;margin:15px 0;padding:12px}.dcr-small-note>button:first-child{border:0;background:var(--dcr-soft);display:block;text-align:right;font-size:11px;width:100%}.dcr-small-note p,.dcr-small-note blockquote{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.dcr-small-note>button:last-child{font-size:10px}
.dcr-zoom-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dcr-zoom-tools strong{font-size:12px;min-width:40px;text-align:center}.dcr-setting-row{margin:22px 0}.dcr-tool-list{display:grid;gap:8px}.dcr-tool-list button{justify-content:flex-start;font-size:12px}.dcr-read-check{display:flex!important;align-items:center;gap:8px;margin:25px 0}.dcr-search-form{display:flex;flex-direction:column;gap:10px}.dcr-search-form .dcr-search{min-width:0}.dcr-search-results{margin-top:20px}.dcr-search-results button{width:100%;text-align:right;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:10px;font-size:11px}
.dcr-selection-tools{flex-shrink:0;background:var(--dcr-paper);border-top:1px solid var(--dcr-line);padding:10px 16px;display:flex;align-items:center;justify-content:center;gap:15px;font-size:11px}.dcr-selection-tools[hidden]{display:none!important}.dcr-selection-tools>div{display:flex;gap:6px;flex-wrap:wrap}.dcr-selection-tools button{font-size:10px;padding:7px 10px}.dcr-color-button[data-color-name=yellow]{background:#fff5c8!important;color:#795d04!important;border-color:#f1d979!important}.dcr-color-button[data-color-name=green]{background:#e0f4e8!important;color:#245c3e!important;border-color:#aad5bd!important}.dcr-color-button[data-color-name=blue]{background:#e2effc!important;color:#2b5685!important;border-color:#b4cceb!important}.dcr-color-button[data-color-name=pink]{background:#fce9f0!important;color:#913f61!important;border-color:#e8bbce!important}
.dcr-annotation-layer{position:absolute;inset:0;pointer-events:none;z-index:2}.dcr-mark{position:absolute;background:#f8d83466;pointer-events:none;mix-blend-mode:multiply;min-height:2px}.dcr-mark[data-color=green]{background:#51c88a55}.dcr-mark[data-color=blue]{background:#5da7f455}.dcr-mark[data-color=pink]{background:#ed84b355}.dcr-mark>button{pointer-events:auto;position:absolute;right:-8px;top:-18px;width:32px;min-height:32px;height:32px;border-radius:8px;padding:5px;background:#fffdf4;color:#6e5a23;opacity:0;transition:opacity .1s}.dcr-pdf-page:hover .dcr-mark>button,.dcr-mark>button:focus{opacity:1}.dcr-mark>button svg{width:16px;height:16px}.dcr-region-preview{position:absolute;background:#ef9b2d22;border:2px solid #e88722;z-index:4;pointer-events:none}.dcr-reader[data-mode=region] .dcr-pdf-page{touch-action:none;cursor:crosshair}.dcr-reader[data-mode=region] .textLayer{pointer-events:none}
/* Mozilla Foundation, Apache-2.0: equivalent flat rules for the PDF.js text layer. */
.dcr-pdf-page .textLayer{color-scheme:only light;position:absolute;text-align:initial;inset:0;overflow:clip;opacity:1;line-height:1;letter-spacing:normal;word-spacing:normal;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;caret-color:CanvasText;z-index:1;--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor)*var(--min-font-size));--min-font-size-inv:calc(1/var(--min-font-size))}
.dcr-pdf-page .textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0;-webkit-user-select:text;user-select:text}
.dcr-pdf-page .textLayer>:not(.markedContent),.dcr-pdf-page .textLayer .markedContent span:not(.markedContent){z-index:1;--font-height:0;font-size:calc(var(--text-scale-factor)*var(--font-height));--scale-x:1;--rotate:0deg;transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}
.dcr-pdf-page .textLayer .markedContent{display:contents}.dcr-pdf-page .textLayer span[role=img]{user-select:none;cursor:default}.dcr-pdf-page .textLayer ::selection{background:#4687d966;color:transparent}.dcr-pdf-page .textLayer br::selection{background:transparent}
.dcr-toast{position:fixed;z-index:100010;left:50%;bottom:140px;transform:translate(-50%,12px);max-width:calc(100% - 32px);width:max-content;border-radius:12px;padding:12px 20px;color:white;background:#263143;font:12px/1.8 Tahoma,sans-serif;text-align:center;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}.dcr-toast.on{opacity:1;transform:translate(-50%,0)}.dcr-toast.error{background:#943737}
@media(max-width:1050px){.dcr-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dcr-note-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dcr-library-head{gap:14px}.dcr-sheet{width:315px}}
@media(max-width:760px){.dcr-library-head{flex-direction:column;align-items:flex-start;gap:14px;padding:16px 0}.dcr-library-head nav{width:100%;justify-content:space-between;gap:4px}.dcr-library-head nav a{font-size:11px;padding:10px}.dcr-app h1{font-size:27px}.dcr-intro{padding:28px 0 22px}.dcr-intro p{font-size:12px}.dcr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dcr-book-card .dcr-cover{height:205px;padding:16px 12px}.dcr-book-body{padding:12px}.dcr-book-meta{flex-direction:column;align-items:flex-start;font-size:9px}.dcr-book-body h2{font-size:12px;min-height:46px}.dcr-continue-card{padding:16px;flex-wrap:wrap}.dcr-continue-card .dcr-primary{width:100%;margin-top:5px}.dcr-filters{gap:8px}.dcr-filters>select{min-width:calc(50% - 8px);width:calc(50% - 8px);font-size:11px}.dcr-search{min-width:100%}.dcr-sheet{position:absolute;bottom:0;right:0;width:100%;max-width:100%;max-height:85%;height:auto;min-height:220px;border-top:1px solid var(--dcr-line);border-radius:20px 20px 0 0;box-shadow:0 -10px 40px #0002;z-index:6}.dcr-sheet-head{padding:10px 16px}.dcr-reader-head{min-height:60px;padding:8px 12px;gap:8px}.dcr-reader-title h1{font-size:13px}.dcr-reader-foot{flex-direction:column;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.dcr-study-controls{width:100%;gap:5px;justify-content:space-between}.dcr-study-controls button{flex:1;font-size:10px;padding:6px;min-width:0;border:0;flex-direction:column;gap:3px;min-height:48px}.dcr-study-controls svg{width:18px;height:18px}.dcr-page-controls button{width:44px;height:44px}.dcr-page-controls input{min-height:36px}.dcr-page-controls{gap:14px}.dcr-desktop{display:none}.dcr-selection-tools{padding:8px;display:block}.dcr-selection-tools>span{display:none}.dcr-selection-tools>div{justify-content:center;gap:4px}.dcr-selection-tools button{font-size:9px;padding:5px 7px;min-height:40px}.dcr-color-button svg{display:none}.dcr-dialog{padding:20px;max-height:85dvh}.dcr-book-detail{grid-template-columns:85px 1fr;gap:15px}.dcr-book-detail>img{width:85px}.dcr-dialog h2{font-size:19px}.dcr-thumbnails{grid-template-columns:repeat(3,1fr)}.dcr-mark>button{opacity:.8;min-height:44px;width:44px;top:-20px;background:#fff9}.dcr-notebook-tools{align-items:flex-start;gap:12px}.dcr-notebook-tools>button{font-size:10px}.dcr-sample-banner{font-size:10px;padding:5px 12px}}
@media(max-width:480px){.dcr-note-grid{grid-template-columns:1fr}.dcr-grid{gap:10px}.dcr-book-card{border-radius:12px}.dcr-book-card .dcr-cover{height:180px}.dcr-book-body{padding:10px}.dcr-card-actions{gap:4px}.dcr-card-actions .dcr-primary{font-size:10px;padding:8px 3px}.dcr-card-actions .dcr-icon-button{min-width:36px;width:36px}.dcr-book-body>p{font-size:10px}.dcr-cover-badge{font-size:9px}.dcr-editor-fields{gap:8px}.dcr-library-head nav a{font-size:10px}.dcr-book-detail{display:block}.dcr-book-detail>img{float:left;margin:0 12px 12px 0}.dcr-detail-actions{clear:both}.dcr-thumbnails{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.dcr-app *,.dcr-toast{transition:none!important;scroll-behavior:auto!important}}
@media print{body.dcr-reader-open>*{display:none!important}.dcr-reader{display:none!important}.dcr-dialog,.dcr-toast{display:none!important}}

.dcr-generated-cover{width:155px;max-width:100%;height:100%;padding:20px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#223544;color:#fff;border-right:5px solid #e87834;border-radius:3px;box-shadow:0 8px 16px #15233125;text-align:center}.dcr-generated-cover strong{font-size:16px;line-height:1.8}.dcr-generated-cover small{font-size:10px;opacity:.7}.dcr-generated-cover svg{color:#f29c64;width:30px;height:30px}.dcr-book-card:nth-child(even) .dcr-generated-cover{background:#315b53;border-right-color:#d9b967}.dcr-book-detail:has(>div:only-child){grid-template-columns:1fr}@media(max-width:480px){.dcr-generated-cover{padding:10px 8px;gap:8px}.dcr-generated-cover strong{font-size:12px}}
