.ep-page{--ep-ink:oklch(35% .045 250);--ep-muted:oklch(49% .035 250);--ep-line:oklch(92% .015 250);--ep-blue:oklch(49% .16 260);max-width:1120px;margin:0 auto;color:var(--ep-ink)}
.ep-subjects{display:flex;gap:4px;padding:4px;background:oklch(95% .017 250);border-radius:12px;overflow-x:auto;scrollbar-width:none;margin-bottom:16px}
.ep-subjects button{flex:1;min-width:max-content;min-height:44px;padding:10px 16px;border:0;border-radius:9px;background:transparent;color:var(--ep-muted);font:inherit;font-size:15px;font-weight:500;white-space:nowrap;cursor:pointer}
.ep-subjects button[aria-pressed=true]{background:oklch(99% .004 250);color:var(--ep-blue)}
.ep-search label{display:block;font-size:12px;color:var(--ep-muted);margin-bottom:7px}.ep-search>div{display:flex;gap:8px}
.ep-search input{flex:1;min-width:0;min-height:44px;box-sizing:border-box;padding:10px 12px;background:oklch(99% .004 250);border:1px solid var(--ep-line);border-radius:10px;color:var(--ep-ink);font:inherit;font-size:15px}
.ep-search button{min-height:44px;padding:8px 16px;border:0;border-radius:10px;background:oklch(94% .025 255);color:var(--ep-blue);font:inherit;font-size:14px;cursor:pointer}
.ep-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0}.ep-abilities{display:flex;gap:4px;min-width:0}.ep-abilities button,.ep-favorites{min-width:44px;min-height:44px;padding:8px 14px;border:0;border-radius:9px;background:transparent;color:var(--ep-muted);font:inherit;font-size:14px;white-space:nowrap;cursor:pointer}
.ep-abilities button[aria-pressed=true]{background:oklch(92% .04 255);color:var(--ep-blue);font-weight:600}.ep-favorites{padding-inline:10px}.ep-favorites[aria-pressed=true]{color:var(--ep-blue)}
.ep-results{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;font-size:12px;color:var(--ep-muted)}.ep-results>div{display:flex;align-items:center;gap:4px}.ep-results button{min-height:44px;border:0;background:transparent;color:var(--ep-blue);padding:8px;font:inherit;font-size:12px;cursor:pointer}
.ep-tree{border:1px solid var(--ep-line);border-radius:16px;background:oklch(99% .004 250);overflow:hidden}
.ep-chapter{border-bottom:1px solid var(--ep-line)}.ep-chapter:last-child{border-bottom:0}
.ep-chapter>summary{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 20px;box-sizing:border-box;list-style:none;cursor:pointer;user-select:none}.ep-chapter>summary::-webkit-details-marker{display:none}
.ep-chapter-number{flex:none;color:var(--ep-muted);font-size:13px;font-variant-numeric:tabular-nums}.ep-chapter>summary strong{flex:1;min-width:0;font-size:17px;line-height:1.5;font-weight:600}.ep-chapter-count{font-size:12px;color:var(--ep-muted);white-space:nowrap}.ep-chapter>summary svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--ep-muted);stroke-width:1.6;transition:transform 180ms ease-out}.ep-chapter[open]>summary svg{transform:rotate(180deg)}.ep-chapter[open]>summary{background:oklch(96% .018 250)}
.ep-points{padding:0 16px 6px 26px}.ep-point{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;box-sizing:border-box;margin:0;padding:14px 8px;border:0;border-bottom:1px solid var(--ep-line);border-radius:0;background:transparent;color:var(--ep-ink);font:inherit;text-align:left;cursor:pointer}.ep-point:last-child{border-bottom:0}.ep-point-number{flex:none;min-width:28px;font-size:12px;color:var(--ep-muted);font-variant-numeric:tabular-nums}.ep-point-title{flex:1;min-width:0;font-size:16px;line-height:1.6}.ep-requirement{flex:none;padding:3px 7px;border-radius:6px;font-size:11px;line-height:1.5;white-space:nowrap}.ep-master{background:oklch(95% .033 45);color:oklch(43% .10 40)}.ep-familiar{background:oklch(95% .025 160);color:oklch(42% .065 160)}.ep-understand{background:oklch(95% .023 260);color:oklch(44% .07 260)}.ep-point-arrow{color:var(--ep-muted);font-size:20px;flex:none}.ep-star{margin-left:5px;color:oklch(54% .10 70);font-size:12px}
.ep-point.is-selected{background:oklch(96% .025 255)}.ep-page button:hover,.ep-chapter>summary:hover{background:oklch(96% .018 250)}.ep-page button:active,.ep-chapter>summary:active{background:oklch(93% .027 250)}.ep-page :is(button,input,summary):focus-visible{outline:2px solid var(--ep-blue);outline-offset:-2px}
.ep-empty{padding:32px 16px;text-align:center;color:var(--ep-muted)}.ep-empty h2{font-size:17px;font-weight:500}
body[data-surface=mini] .ep-subjects{margin-bottom:12px}body[data-surface=mini] .ep-subjects button{font-size:14px;padding-inline:12px}body[data-surface=mini] .ep-filter-bar{gap:4px}body[data-surface=mini] .ep-abilities{gap:2px}body[data-surface=mini] .ep-abilities button{padding-inline:12px}body[data-surface=mini] .ep-chapter>summary{min-height:60px;padding:10px 14px;gap:10px}body[data-surface=mini] .ep-chapter>summary strong{font-size:16px}body[data-surface=mini] .ep-points{padding:0 10px 4px 14px}body[data-surface=mini] .ep-point{gap:8px;padding:12px 4px}body[data-surface=mini] .ep-point-number{min-width:25px}body[data-surface=mini] .ep-point-title{font-size:15px}body[data-surface=mini] .ep-point-arrow{display:none}
@media(max-width:350px){.ep-abilities button{padding-inline:9px!important}.ep-favorites{padding-inline:6px;font-size:13px}.ep-point-title{font-size:14px!important}.ep-requirement{padding-inline:5px}}
@media(prefers-reduced-motion:reduce){.ep-chapter>summary svg{transition:none}}

/* Desktop filters share one compact row; mini pages retain their stacked controls. */
body[data-surface="pc"] .ep-toolbar{display:flex;align-items:center;gap:12px;min-width:0;padding:2px 0;overflow-x:auto;scrollbar-width:thin}
body[data-surface="pc"] .ep-toolbar .ep-subjects{flex:none;align-items:center;margin:0;overflow:visible}
body[data-surface="pc"] .ep-toolbar .ep-subjects button{flex:none;font-size:14px;padding:10px 12px}
body[data-surface="pc"] .ep-toolbar .ep-search{display:flex;align-items:center;gap:8px;flex:1;min-width:220px;margin:0}
body[data-surface="pc"] .ep-toolbar .ep-search label{flex:none;margin:0;font-size:12px;white-space:nowrap}
body[data-surface="pc"] .ep-toolbar .ep-search>div{flex:1;min-width:0}
body[data-surface="pc"] .ep-toolbar .ep-search input{font-size:14px}
body[data-surface="pc"] .ep-toolbar .ep-search button{flex:none;padding:8px 12px}
body[data-surface="pc"] .ep-toolbar .ep-filter-bar{flex:none;gap:8px;margin:0;align-items:center}
body[data-surface="pc"] .ep-toolbar .ep-abilities button{padding:8px 10px}
body[data-surface="pc"] .ep-toolbar .ep-favorites{padding-inline:8px}

/* Related subjects stay adjacent instead of inheriting a full-width space-between nav. */
body[data-surface=mini] .ep-toolbar .ep-subjects{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;justify-content:start;align-items:stretch;gap:4px;width:fit-content;max-width:100%;padding:4px;margin:0 0 12px;box-sizing:border-box;border-radius:12px;background:#e8eff8;box-shadow:inset 0 0 0 1px #dce6f2;overflow-x:auto;scrollbar-width:none}
body[data-surface=mini] .ep-toolbar .ep-subjects>button{display:flex;align-items:center;justify-content:center;flex:none;min-width:max-content;min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:9px;background:transparent;color:#536b84;font-size:14px;font-weight:500;line-height:1.4;text-align:center;white-space:nowrap;transition:background-color 160ms ease,color 160ms ease,box-shadow 160ms ease}
body[data-surface=mini] .ep-toolbar .ep-subjects>button[aria-pressed=true]{background:#fcfdff;color:#245fc1;font-weight:600;box-shadow:0 1px 3px #263f5914}
body[data-surface=mini] .ep-toolbar .ep-subjects>button:hover{background:#f0f5fc}
body[data-surface=mini] .ep-toolbar .ep-subjects>button[aria-pressed=true]:hover{background:#fcfdff}
body[data-surface=mini] .ep-toolbar .ep-subjects>button:active{background:#dce8f8}
body[data-surface=mini] .ep-toolbar .ep-subjects>button:focus-visible{outline:2px solid #245fc1;outline-offset:-3px}
body[data-surface=mini] .ep-toolbar .ep-subjects:has(>button:nth-child(3)){width:100%;grid-auto-columns:minmax(max-content,1fr)}
@media(prefers-reduced-motion:reduce){body[data-surface=mini] .ep-toolbar .ep-subjects>button{transition:none}}

/* PC_EXAM_POINTS_SURFACES_START */
/* Chapter expansion, pointer hover and remembered point selection are separate states. */
body[data-surface="pc"] .ep-page{--ep-surface:#fff;--ep-chapter-surface:#f7f9fc;--ep-row-hover:#f5f7fa;--ep-row-selected:#edf4ff;--ep-row-selected-hover:#e5efff;--ep-row-selected-ink:#225dcc}
body[data-surface="pc"] .ep-tree,body[data-surface="pc"] .ep-points{background:var(--ep-surface)}
body[data-surface="pc"] .ep-chapter>summary{background:var(--ep-surface)}
body[data-surface="pc"] .ep-chapter[open]>summary{background:var(--ep-chapter-surface);border-bottom:1px solid var(--ep-line)}
body[data-surface="pc"] .ep-chapter>summary:hover{background:#f0f3f8}
body[data-surface="pc"] .ep-chapter>summary:active{background:#e9eef5}
body[data-surface="pc"] .ep-point{background:var(--ep-surface)}
body[data-surface="pc"] .ep-point:hover{background:var(--ep-row-hover)}
body[data-surface="pc"] .ep-point:active{background:#edf1f6}
body[data-surface="pc"] .ep-point.is-selected{background:var(--ep-row-selected)}
body[data-surface="pc"] .ep-point.is-selected:hover,body[data-surface="pc"] .ep-point.is-selected:active{background:var(--ep-row-selected-hover)}
body[data-surface="pc"] .ep-point.is-selected .ep-point-title{color:var(--ep-row-selected-ink);font-weight:600}
body[data-surface="pc"] .ep-point.is-selected :is(.ep-point-number,.ep-point-arrow){color:var(--ep-row-selected-ink)}
/* PC_EXAM_POINTS_SURFACES_END */

/* Align desktop page navigation with the centered knowledge list. */
body[data-surface=pc][data-view=redbook] #main .closure-heading{width:100%;max-width:1120px;box-sizing:border-box;margin-inline:auto}
