/* Original Demo reading typography and semantic tables. */
.u-reading-area{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--u-line);border-radius:14px}.u-breadcrumb{font-size:11px;color:#91a1b1;padding:20px 26px 0;line-height:1.7}.u-study-tabs{display:flex;align-items:center;gap:14px;padding:8px 24px 0;border-bottom:1px solid var(--u-line);overflow:auto;white-space:nowrap;flex:none}.u-study-tabs button{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;padding:12px 3px 13px;min-height:46px;font-size:13px;color:#7f91a3;font-weight:500}.u-study-tabs button[aria-current=page]{border-bottom-color:var(--u-blue);color:var(--u-blue);font-weight:650}.u-reading{flex:1;min-height:0;overflow:auto;padding:28px;scrollbar-width:thin;scrollbar-color:#cedbe7 transparent}.u-knowledge-card{font-size:15px;line-height:1.9}.u-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#8497aa;margin-bottom:14px}.u-requirement{background:#fff3e3;color:#a47b3d;padding:3px 8px;border-radius:5px}.u-knowledge-card h2{font-size:25px;line-height:1.5;margin:12px 0 24px;letter-spacing:-.4px}
.u-table-scroll{overflow-x:auto;border:1px solid #dce7ef;border-radius:10px;margin:20px 0}.u-knowledge-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.9;min-width:360px}.u-knowledge-table th{text-align:left;background:#edf4fc;padding:13px 15px;color:#436b95;font-weight:600}.u-knowledge-table td{padding:17px 15px;border-top:1px solid #e4ecf2;border-right:1px solid #e4ecf2;vertical-align:top;min-width:90px}.u-knowledge-table td:last-child{border-right:0}.u-knowledge-table td:first-child{font-weight:600;color:#496d8e;background:#f8fbfe;min-width:94px}.u-knowledge-paragraph{padding:0 0 18px;margin:16px 0;color:#475f77;line-height:2}.u-selectable mark{background:#fff0ab;color:inherit;border-bottom:2px solid #eec452;cursor:text}.u-key-note{font-size:12px;line-height:1.9;background:#fff8eb;border-left:3px solid #e8c47b;padding:14px 18px;margin:22px 0;color:#967846}

body.dr-at-reader #main{width:100%;max-width:none;margin:0;padding:24px;box-sizing:border-box}
.dr-reader{--u-line:#e1e8f0;--u-blue:#2865dc;min-width:0}
.dr-reader .u-reading-area{max-width:900px!important;width:100%;margin:0 auto!important;border:1px solid #dfe7ed;border-radius:18px;background:#fff;overflow:visible}
.dr-reader #u-reading{overflow:visible;padding:0;min-height:320px}.dr-reader .u-knowledge-card{padding:40px 48px!important}
.dr-reader .u-knowledge-card h2{font-size:27px;line-height:1.5;margin:12px 0 28px}.dr-reader #u-selectable{font-size:16px;line-height:1.95}.dr-reader .u-knowledge-table{font-size:16px;line-height:1.9}.dr-reader .u-knowledge-table td,.dr-reader .u-knowledge-table th{padding:17px 18px}.dr-reader .u-key-note{font-size:14px;line-height:1.9;border:0;border-radius:10px;padding:16px 20px}.dr-reader .u-card-meta{font-size:12px;margin-bottom:20px}.dr-reader .u-reading-footer{display:none}
.dr-reading-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 28px;border-bottom:1px solid #e8edf2;font-size:13px;color:#728696}
.dr-reader .path-study-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid #e3ebf1;padding:18px 24px;font-size:13px;color:#7890a2}.dr-reader .path-study-footer button{min-height:44px}.dr-pager{display:flex;align-items:center;gap:6px;background:none;border:0;color:#4a6d8d;font:inherit;cursor:pointer}.dr-pager svg{width:18px;height:18px}.dr-pager:disabled{opacity:.4;cursor:default}.dr-reader .path-study-footer .primary{font-size:15px}
.dr-resources{position:relative;flex:none}.dr-resources summary{display:flex;align-items:center;gap:6px;min-height:44px;list-style:none;cursor:pointer;color:#4b6c89}.dr-resources summary::-webkit-details-marker{display:none}.dr-resources summary svg{width:16px;height:16px;transform:rotate(90deg)}.dr-resources>div{position:absolute;right:0;top:100%;width:280px;max-width:calc(100vw - 48px);padding:8px;border:1px solid #dce6ef;border-radius:12px;background:#fff;box-shadow:0 10px 35px #203e5b15;z-index:20}.dr-resources button{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:10px;border:0;border-radius:8px;background:none;color:#365774;text-align:left;font:inherit;cursor:pointer}.dr-resources button:hover{background:#eef4fc}.dr-resources button svg{width:20px;height:20px;flex:none}.dr-resources button small{display:block;color:#8999a9;font-size:11px;margin-top:3px}
.dr-reader .u-notes{display:none;position:fixed;right:0;top:0;bottom:0;z-index:70;background:#fff;border:1px solid #dce5ec;box-shadow:0 8px 40px #243f5b15;overflow:hidden}.dr-reader .u-panel-close{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;background:none;color:#54728c;cursor:pointer}.dr-reader .u-panel-close svg{width:22px;height:22px}.dr-reader .u-panel-open{position:fixed!important;right:0!important;left:auto!important;top:0!important;bottom:0!important}.reader-backdrop{z-index:60}.dr-at-reader #reader-toolbar{z-index:90}.dr-at-reader .reader-desktop-rail{right:24px;top:32%;z-index:35}
.dr-reader .cl-original-tables{margin:24px 0;font-size:13px;color:#6e8294}.dr-reader .cl-original-tables summary{cursor:pointer;min-height:44px;padding:10px 0}.dr-reader .cl-original-tables small{color:#8b99a6}.dr-reader .cl-source-table td{font-size:14px;min-width:0}.dr-reader .cl-version-alert{font-size:12px;color:#927146}
.dr-at-reader .dl-content{padding-right:72px}.dr-at-reader .reader-mark{cursor:pointer}.dr-at-reader .reader-mark:focus-visible{outline:2px solid #397fcb;outline-offset:3px}
body.dr-at-reader .dl-content .pl-workspace{max-width:none}
@media(max-width:1000px){.dr-at-reader .dl-content{padding-right:62px}.dr-reader .u-knowledge-card{padding:28px!important}.dr-reader .u-knowledge-table{font-size:15px}.dr-reader .u-knowledge-table td,.dr-reader .u-knowledge-table th{padding:14px 12px}.dr-at-reader .reader-desktop-rail{right:12px}}
@media(max-width:760px){.dr-at-reader .dl-content{padding-right:0}.dr-reader .u-reading-area{max-width:none!important}.dr-reader .u-knowledge-card{padding:24px!important}.dr-reading-meta{padding:8px 18px}.dr-reader .path-study-footer{padding:14px 16px;gap:10px}.dr-reader .path-study-footer .primary{font-size:14px}.dr-reader .dr-pager{font-size:12px}.dr-reader .u-notes.u-panel-open{width:100%!important;max-height:80dvh!important;top:auto!important;bottom:0!important}.dr-reader .path-study-footer>span{display:none}}
body[data-surface=mini].dr-at-reader #main{padding:16px 20px 110px!important}body[data-surface=mini].dr-at-reader .dl-workspace-bar{margin-bottom:12px}body[data-surface=mini].dr-at-reader .dr-reading-meta{padding:4px 0}body[data-surface=mini].dr-at-reader .u-reading-area{margin:0!important;min-height:0!important}body[data-surface=mini].dr-at-reader .dl-content{padding-right:0}

.dr-reader .u-knowledge-table:not(.cl-source-table) th:first-child,.dr-reader .u-knowledge-table:not(.cl-source-table) td:first-child{min-width:120px}.dr-note-new{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:6px 8px;border:0;border-radius:8px;background:#eff5fc;color:#3977b8;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.dr-note-new svg{width:17px;height:17px}

.dr-reader #u-notes.u-panel-open{z-index:80!important}.dr-at-reader #reader-toolbar{z-index:90!important}

.dr-reader .dr-reading-meta{justify-content:flex-end}

/* Original mobile reader: flowing text, tap-revealed tools and bottom directory. */
.dr-reader .u-tree{display:none}
body[data-surface=mini].dr-at-reader #main{padding:16px 20px 90px!important}
body[data-surface=mini].dr-at-reader .u-reading-area{border:0;border-radius:0;background:transparent;min-height:calc(100dvh - 90px)!important}
body[data-surface=mini] .dr-reader #u-tree.u-panel-open{position:fixed!important;inset:auto 0 0!important;z-index:80!important;width:100%!important;max-height:80dvh!important;height:80dvh!important;border-radius:24px 24px 0 0!important;padding-bottom:env(safe-area-inset-bottom)!important}
.dr-reader .u-tree-top{display:flex;align-items:center;color:var(--reader-muted)}
.dr-reader .u-tree-top>b{flex:1}.dr-reader .u-search{display:block}.dr-reader .u-search input{width:100%;box-sizing:border-box;padding:10px 14px}
.dr-reader .u-tree-list summary{display:flex;align-items:center;cursor:pointer;list-style:none}.dr-reader .u-tree-list summary::-webkit-details-marker{display:none}.dr-reader .u-tree-list summary>b{flex:1}.dr-reader .u-tree-list summary>small{color:var(--reader-muted)}
.dr-reader .u-tree-section button[data-action^="u-open:"]{width:100%;display:flex;align-items:center;text-align:left;border:0;background:transparent;color:var(--reader-ink);font:inherit;cursor:pointer}.dr-reader .u-tree-section button[data-action^="u-open:"]>span{flex:1}.dr-reader .u-tree-section button[data-action^="u-open:"]>small{color:var(--reader-muted)}
.dr-reader .u-tree-section i{display:grid;place-items:center;flex:none;width:17px;height:17px;border:1px solid #b9c8d4;border-radius:50%;font-size:12px;font-style:normal}.dr-reader .u-tree-section i.is-done{border-color:#428469;color:#428469;background:#e7f4ed}.dr-reader .u-tree-section i.is-read{border-color:#5c8fc9;background:linear-gradient(90deg,#5c8fc9 50%,transparent 50%)}
.dr-reader .u-tree button:focus-visible,.dr-reader .u-tree summary:focus-visible{outline:2px solid #397fcb;outline-offset:-2px}

body.dr-at-reader [data-action="lc-feedback"]{display:none!important}

body[data-surface=mini].dr-at-reader .dr-reader :is(#u-tree,#u-notes).u-panel-open{animation:reader-sheet-in .22s ease-out!important;border-radius:24px 24px 0 0!important}
@media(prefers-reduced-motion:reduce){body[data-surface=mini].dr-at-reader .dr-reader .u-panel-open{animation:none!important}}

/* Mobile reading has one paging control set and one bottom-sheet layer. */
body[data-surface=mini].reader-immersive .dl-workspace-bar{display:none!important}
body[data-surface=mini].reader-immersive .dr-reader .dr-mini-study-footer{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;inset:auto!important;margin:16px 0 0!important;padding:16px 0 8px!important;min-height:64px!important;height:auto!important;box-sizing:border-box;background:transparent!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;transition:none!important;break-inside:avoid;page-break-inside:avoid}
body[data-surface=mini].reader-immersive .dr-mini-study-footer>.primary{width:100%;max-width:440px;min-height:44px!important;border-radius:12px!important;white-space:nowrap}
body[data-surface=mini].reader-immersive .reader-mobile-dock{height:calc(78px + env(safe-area-inset-bottom,0px));padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
body[data-surface=mini].reader-panel-open{overflow:hidden!important;overscroll-behavior:none}
body[data-surface=mini].reader-panel-open .reader-backdrop{touch-action:none;background:#172a414d}
body[data-surface=mini].dr-at-reader .dr-reader :is(#u-tree,#u-notes).u-panel-open{height:82dvh!important;max-height:calc(100dvh - 64px)!important;box-sizing:border-box;border:0!important;border-radius:24px 24px 0 0!important;box-shadow:0 -8px 40px #243f5b12!important;animation:reader-sheet-in .22s cubic-bezier(.22,1,.36,1)!important;padding-bottom:env(safe-area-inset-bottom,0px)!important}
body[data-surface=mini] .dr-reader .reader-panel-grip{display:block;flex:none;height:24px;margin:0!important;padding:10px 0;box-sizing:border-box;touch-action:none;cursor:grab}
body[data-surface=mini] .dr-reader .reader-panel-grip:before{content:'';display:block;width:34px;height:4px;border-radius:4px;margin:0 auto;background:#ccd5dc}
body[data-surface=mini] .dr-reader .u-tree-top{padding:0 20px 14px!important;justify-content:space-between;gap:12px;touch-action:none}
body[data-surface=mini] .dr-reader .u-tree-top>div{flex:1;min-width:0}.dr-reader .u-tree-top>div>b{display:block;font-size:20px;color:var(--reader-ink)}.dr-reader .u-tree-top>div>small{display:block;margin-top:5px;font-size:12px;color:var(--reader-muted);line-height:1.5}
body[data-surface=mini] .dr-reader .u-search{padding:0 20px 16px!important}
body[data-surface=mini] .dr-reader .u-search input{border:0!important;min-height:44px!important;background:#f1f4f7!important}
body[data-surface=mini] .dr-reader .u-tree-list{padding:0 12px 24px!important;scrollbar-width:none;overscroll-behavior:contain}
body[data-surface=mini] .dr-reader .u-tree-list summary{padding:12px 8px!important;min-height:54px!important}
body[data-surface=mini] .dr-reader .u-tree-section button[data-action^="u-open:"]{min-height:56px!important;padding:12px 10px!important;line-height:1.6}
body[data-surface=mini] .dr-reader .u-tree-section button[data-action^="u-open:"] small{color:#8594a1!important;background:none!important}
body[data-surface=mini] .dr-reader .reader-panel-head{padding:0 20px 16px!important;gap:8px;touch-action:none}
body[data-surface=mini] .dr-reader .reader-panel-head>div{min-width:0;flex:1}.reader-panel-head .reader-total{font-size:12px;white-space:nowrap}
body[data-surface=mini] .dr-reader .reader-panel-head h2{font-size:20px!important;line-height:1.4!important}
body[data-surface=mini] .dr-reader .reader-panel-head.is-composing :is(.dr-note-new,.reader-total){display:none}
body[data-surface=mini] .dr-reader .reader-note-scroll{padding:16px 20px 28px;overscroll-behavior:contain}
body[data-surface=mini] .dr-reader .reader-compose-heading h3{display:none}
body[data-surface=mini] .dr-reader .reader-compose-heading{justify-content:flex-end}
@media(prefers-reduced-motion:reduce){body[data-surface=mini].dr-at-reader .dr-reader .u-panel-open{animation:none!important}}
body[data-surface=mini] .dr-reader .reader-panel-grip{width:100%;background:transparent;border-radius:0}
body[data-surface=mini].reader-immersive .reader-mobile-dock button:disabled{opacity:.35;cursor:default}
/* Reserve chrome space in both reading states so revealing tools never clips the title or shifts text. */
body[data-surface=mini].dr-at-reader #main{padding:64px 20px 160px!important}
body[data-surface=mini].reader-immersive .dr-reading-meta.path-reading-toolbar{top:10px!important;right:14px!important;left:auto!important;width:auto!important;min-height:44px;padding:0!important;background:transparent!important;z-index:43}
body[data-surface=mini].reader-immersive:has(.dr-resources) .reader-mobile-top strong{padding-right:90px}

/* Mini reader: resource icons share the header row and open their pages directly. */
body[data-surface=mini].reader-immersive .reader-mobile-top{gap:4px;padding:8px 12px}
body[data-surface=mini].reader-immersive .reader-mobile-top>strong{min-width:0;padding-right:0!important;margin:0 4px;font-size:15px}
body[data-surface=mini].reader-immersive .reader-resource-actions{display:flex;align-items:center;gap:0;flex:none}
body[data-surface=mini].reader-immersive .reader-resource-actions .dr-resource-icon{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:10px;border:0;border-radius:10px;background:transparent;color:#526c80;cursor:pointer}
body[data-surface=mini].reader-immersive .reader-resource-actions svg{width:22px;height:22px}
body[data-surface=mini].reader-immersive .dr-resource-icon:hover{background:#eff4f8}
body[data-surface=mini].reader-immersive .dr-resource-icon:active{background:#e4edf5}
body[data-surface=mini].reader-immersive .dr-resource-icon:focus-visible{outline:2px solid #397fcb;outline-offset:-2px}
body[data-surface=mini].reader-immersive .reader-mobile-top{flex-wrap:nowrap!important;height:68px!important;min-height:68px!important;max-height:68px!important}
body[data-surface=mini].reader-immersive .reader-resource-actions{width:auto!important;min-width:0;max-width:none;margin:0;padding:0;border:0;background:none;position:static;justify-content:flex-end;flex-wrap:nowrap}

/* Current-point resources share the same quiet tool rail as notes. */
body[data-surface=pc] .reader-desktop-rail .reader-resource-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin:0}
body[data-surface=pc] .reader-desktop-rail{top:calc(50% + 48px);transform:translateY(-50%);gap:12px;max-height:calc(100dvh - 190px);overflow-y:auto;scrollbar-width:none}
body[data-surface=pc] .reader-desktop-rail::-webkit-scrollbar{display:none}
body[data-surface=pc] .reader-desktop-rail .dr-resource-icon{width:58px;height:58px;min-height:58px;flex:none;border:1px solid #dce6ef;border-radius:50%;background:#fff;color:#58738d;box-shadow:0 4px 16px #203e5b06;transition:background .18s,color .18s,transform .18s}
body[data-surface=pc] .reader-desktop-rail .dr-resource-icon:hover{background:#edf5ff;color:#2865dc;transform:translateY(-1px)}
body[data-surface=pc] .reader-desktop-rail .dr-resource-icon:active{transform:translateY(0)}
body[data-surface=pc] .reader-desktop-rail .dr-resource-icon span{font-size:11px;line-height:1.4}
@media(prefers-reduced-motion:reduce){body[data-surface=pc] .reader-desktop-rail .dr-resource-icon{transition:none}}

body[data-surface="mini"] .pl-practice-workspace{padding-block-start:0}
body[data-surface="mini"] .pl-practice-workspace>.completion-practice-progress{margin-block-start:0}

/* Paired practice uses the knowledge reader's selection toolbar, with one notes entry. */
body[data-surface="mini"] .pl-practice-workspace .completion-question-stage{min-height:0!important;padding:20px!important;margin-top:6px!important}
body[data-surface="mini"] .pl-practice-workspace .ad-question{margin:0;padding:0;min-height:0}
body[data-surface="mini"] .pl-practice-workspace #pl-answer-form{margin:18px 0 0!important;padding:0!important}
body[data-surface="mini"] .pl-practice-workspace #pl-answer-form fieldset{margin:0!important;padding:0!important;border:0;min-height:0!important;display:grid;gap:10px}
body[data-surface="mini"] .pl-practice-workspace #pl-answer-form legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-surface="mini"] .pl-practice-workspace #pl-answer-form label{min-height:52px;margin:0!important;padding:12px 16px;box-sizing:border-box}
.pl-practice-workspace #practice-selectable [data-u-block]{user-select:text;-webkit-user-select:text}
.pl-practice-workspace .reader-mark{cursor:pointer}
.pl-practice-workspace .u-notes{display:none;position:fixed;right:0;top:0;bottom:0;z-index:70;width:min(460px,90vw);background:oklch(99% .005 252);border:1px solid var(--line,#e1e8f0);overflow:hidden}
.pl-practice-workspace .u-notes.u-panel-open{display:flex!important;flex-direction:column}
body:has(.pl-practice-workspace) #reader-toolbar{z-index:90}
@media(max-width:760px){.pl-practice-workspace .u-notes.u-panel-open{width:100%;max-height:80dvh;top:auto;bottom:0;border-radius:24px 24px 0 0}}

/* Review is a quiet resource link; question navigation owns the primary action row. */
body:is([data-surface="mini"],[data-surface="pc"]) .pl-practice-workspace .completion-practice-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center;gap:8px!important;width:100%;max-width:520px;margin:12px auto 0!important;padding:0!important;border:0!important}
.completion-practice-actions .completion-review-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;max-width:100%;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:oklch(49% .045 252);font:inherit;font-size:14px;font-weight:500;line-height:1.3;cursor:pointer}
.completion-practice-actions .completion-review-link>svg{width:18px;height:18px;flex:none}
.completion-practice-actions .completion-review-link>svg:last-child{width:14px;height:14px;color:oklch(67% .035 252)}
body:is([data-surface="mini"],[data-surface="pc"]) .pl-practice-workspace .completion-batch-navigation{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin:0;padding:0}
body:is([data-surface="mini"],[data-surface="pc"]) .pl-practice-workspace .completion-batch-navigation>.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;flex:0 0 auto;min-width:0;min-height:48px!important;margin:0!important;padding:12px 16px!important;border:1px solid transparent;border-radius:14px;font-size:15px;font-weight:600;line-height:1.3;letter-spacing:.01em;white-space:nowrap}
body:is([data-surface="mini"],[data-surface="pc"]) .pl-practice-workspace .completion-batch-navigation>.completion-previous{background:oklch(99% .004 252)!important;border-color:oklch(89% .018 252);color:oklch(44% .06 252);box-shadow:none}
body:is([data-surface="mini"],[data-surface="pc"]) .pl-practice-workspace .completion-batch-navigation>.completion-continue{background:var(--blue,#2865dc)!important;color:oklch(99% .005 252);box-shadow:0 3px 8px oklch(53% .16 259 / .1)}
.completion-practice-actions .completion-batch-navigation svg{width:18px;height:18px;flex:none}
.completion-review-link:focus-visible{outline:2px solid var(--control-focus,#2865dc);outline-offset:3px}
@media(hover:hover){.completion-practice-actions .completion-review-link:hover{background:oklch(96% .012 252)}body:is([data-surface="mini"],[data-surface="pc"]) .pl-practice-workspace .completion-batch-navigation>.completion-previous:hover{background:oklch(96% .012 252)!important}}

/* Whole-point favorite is separate from text annotations and question favorites. */
.reader-point-tools{display:flex;align-items:center;flex:none;gap:0}
.reader-point-tools .dr-point-favorite{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--reader-ink,#526c80);cursor:pointer}
.reader-point-tools .dr-point-favorite.is-saved{color:oklch(62% .13 75)!important}
.reader-point-tools .dr-point-favorite.is-saved svg{fill:oklch(83% .12 82)}
body[data-surface="mini"] .reader-point-tools>.dr-point-favorite{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:10px}
body[data-surface="mini"] .reader-point-tools>.dr-point-favorite>svg{width:22px;height:22px}
body[data-surface="mini"] .reader-mobile-top>strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-surface="pc"] .reader-desktop-rail .reader-point-tools{flex-direction:column;gap:12px}
body[data-surface="pc"] .reader-point-tools .dr-point-favorite{flex-direction:column;gap:5px}
body[data-surface="pc"] .reader-point-tools .dr-point-favorite>span{font-size:11px;line-height:1.2}
.reader-point-tools .dr-point-favorite:focus-visible{outline:2px solid var(--control-focus,#2865dc);outline-offset:-2px}
@media(hover:hover){.reader-point-tools .dr-point-favorite:hover{background:oklch(95% .015 252)}}
.reader-point-tools .dr-point-favorite:active{background:oklch(92% .024 252)}

/* Compact mobile title reserves three equal resource targets on every demo point. */
body[data-surface=mini].reader-immersive .reader-mobile-top>strong{flex:1;max-width:8.8em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-surface=mini].reader-immersive .reader-point-tools{display:flex;align-items:center;gap:0;flex:none;margin-left:auto}
body[data-surface=mini].reader-immersive .reader-point-tools :is(.dr-resource-icon,.dr-point-favorite){display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:10px;border:0;background:transparent;border-radius:10px}
body[data-surface=mini].reader-immersive .reader-point-tools .reader-resource-actions{gap:0}
body[data-surface=mini].reader-immersive .reader-point-tools svg{width:24px;height:24px;flex:none}

/* Completion belongs to the article, so it follows the final paragraph on every reading mode. */
.dr-reader .dr-inline-practice{display:flex;justify-content:center;break-inside:avoid;margin-top:24px;padding-top:20px;border-top:1px solid var(--u-line,#e1e8f0)}
.dr-reader .dr-inline-practice>.btn{min-height:44px;font-size:15px}

/* Point review and question favorites share one quiet utility row above the stem. */
.pl-practice-workspace .completion-question-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:-4px -4px 12px;min-height:44px}
.pl-practice-workspace .completion-question-tools :is(.completion-review-link,.fav-toggle){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;margin:0;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:oklch(49% .045 252);font:inherit;font-size:14px;font-weight:500;line-height:1.3;cursor:pointer}
.pl-practice-workspace .completion-question-tools :is(.completion-review-link,.fav-toggle)>svg{width:18px;height:18px;flex:none}
.pl-practice-workspace .completion-question-tools .fav-toggle[aria-pressed=true]{color:oklch(48% .11 68)}
.pl-practice-workspace .completion-question-tools :is(.completion-review-link,.fav-toggle):focus-visible{outline:2px solid var(--control-focus,#2865dc);outline-offset:2px}
@media(hover:hover){.pl-practice-workspace .completion-question-tools :is(.completion-review-link,.fav-toggle):hover{background:oklch(96% .012 252)}}
.pl-practice-workspace .completion-question-tools :is(.completion-review-link,.fav-toggle):active{background:oklch(93% .018 252)}

/* Primary study formats sit above the article; mobile uses three short resource actions. */
.dr-reader .reader-study-modes{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 20px;margin:0;border:0;border-bottom:1px solid #dfe7ed;border-radius:18px 18px 0 0;background:#f6f9fd;min-height:68px;box-sizing:border-box}
.dr-reader .reader-study-modes .reader-resource-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.dr-reader .reader-study-modes button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:104px;min-height:44px;padding:10px 18px;border:1px solid #dce5ef;border-radius:10px;background:#fff;color:#45617f;font:inherit;font-size:14px;font-weight:500;line-height:1.4;white-space:nowrap;cursor:pointer;box-shadow:0 1px 2px #29446004;transition:background-color .16s,color .16s,border-color .16s}
.dr-reader .reader-study-modes button:hover{background:#f1f6ff;border-color:#b7cff0;color:#245ca9}
.dr-reader .reader-study-modes .reader-mode-current{background:#eaf2ff;border-color:#bfd4f4;color:#2c65b7;font-weight:600;box-shadow:none}
.dr-reader .reader-study-modes .reader-mode-map{margin-left:auto;color:#2c65b7;background:#fff;border-color:#d3e0f2}
.dr-reader .reader-study-modes svg{width:18px;height:18px;flex:none}
.dr-reader .reader-study-modes button:focus-visible{outline:2px solid #397fcb;outline-offset:2px}
.dr-reader .reader-study-modes button:disabled{color:#8a98a8;cursor:default;background:#f8fafc;border-color:#e4eaf1;box-shadow:none}
body.reader-warm .dr-reader .reader-study-modes{background:#f6efe0;border-color:#dfd0b9}
body[data-surface=mini].reader-warm .dr-reader .reader-study-modes{background:transparent}
@media(prefers-reduced-motion:reduce){.dr-reader .reader-study-modes button{transition:none}}

/* Mini-program study formats remain in the bottom dock, with one clear row of six tools. */
body[data-surface=mini].dr-at-reader .reader-mobile-dock{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
body[data-surface=mini].dr-at-reader .reader-mobile-dock .reader-resource-actions{display:contents}
body[data-surface=mini].dr-at-reader .reader-mobile-dock button{width:100%;min-width:0;min-height:48px;padding:4px 0;font-size:11px;line-height:1.4}
body[data-surface=mini].dr-at-reader .reader-mobile-dock .reader-mode-map{color:#2c65b7}
body[data-surface=mini].dr-at-reader .reader-mobile-dock button:focus-visible{outline:2px solid #397fcb;outline-offset:-2px;border-radius:8px}

/* Learned confirmation and practice are independent actions. */
.dr-learning-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.dr-learning-actions>.btn{min-height:44px;padding:10px 22px;border-radius:12px}
.dr-learned-status{color:#428675;font-size:13px;white-space:nowrap}
body[data-surface="mini"].reader-immersive .dr-reader .dr-mini-study-footer>.dr-learning-actions{display:flex;width:100%;justify-content:center;gap:10px}
body[data-surface="mini"] .dr-learning-actions>.btn{flex:1;padding:10px 16px;min-width:0}
body[data-surface="mini"] .dr-learned-status{width:100%;text-align:center}

/* Keep submit and skip together without stretching the primary action. */
body[data-surface="pc"] .pl-practice-workspace .completion-batch-navigation>.completion-continue{min-width:132px}
body[data-surface="mini"] .pl-practice-workspace .completion-batch-navigation{display:grid;grid-template-columns:auto auto;justify-content:center;column-gap:8px;row-gap:8px}
body[data-surface="mini"] .pl-practice-workspace .completion-batch-navigation>.completion-continue{grid-column:1;min-width:100px;padding-inline:12px!important;font-size:14px}
body[data-surface="mini"] .pl-practice-workspace .completion-batch-navigation>.point-practice-skip{grid-column:2;padding-inline:8px!important;font-size:12px;letter-spacing:0}
body[data-surface="mini"] .pl-practice-workspace .completion-batch-navigation>.completion-previous{grid-column:1/-1;justify-self:start;font-size:13px;padding-inline:12px!important}
