/* Home uses one calendar/plan column and one curriculum column; tools are progressive. */
.sh-home{--sh-ink:oklch(.36 .05 255);--sh-muted:oklch(.49 .04 255);--sh-line:oklch(.92 .018 255);--sh-blue:oklch(.50 .18 260);--sh-done:oklch(.42 .10 155);--sh-partial:oklch(.48 .10 70);--sh-pending:oklch(.48 .06 30)}
body[data-surface=pc] .sh-home .completion-home-layout{grid-template-columns:300px minmax(0,1fr);gap:24px;max-width:1600px;margin:auto;padding-right:28px}
.sh-home .completion-home-main{min-width:0}.sh-home .completion-home-main .fs-chapter-list{margin:0}.sh-home .completion-tree-point{min-height:64px;font:inherit;font-size:15px;border:0;box-shadow:none!important}.sh-home .completion-tree-point.is-current{outline:1px solid #aacbf0;outline-offset:-1px}.sh-home .completion-tree-go{font-size:13px;min-width:70px;text-align:right}.sh-home .completion-tree-name{font-size:15px}.sh-home .completion-status{font-size:13px!important}.sh-home .completion-tree-point:hover{background:oklch(.97 .015 250)}.sh-home .completion-tree-point:focus-visible,.sh-home button:focus-visible{outline:3px solid #5b91cf;outline-offset:2px}.sh-home .completion-tree-point:active{background:#e5effc}
.sh-home .study-schedule-panel{overflow:hidden}.sh-calendar{padding:20px 16px 14px;color:var(--sh-ink);background:#fff}.sh-calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.sh-calendar-heading h2{font-size:17px;margin:0 0 4px}.sh-calendar-heading b{font-size:14px;font-weight:500;color:var(--sh-muted)}.sh-calendar-controls{display:flex;align-items:center}.sh-calendar-controls button{min-width:36px;min-height:44px;padding:0 3px;font-size:14px;color:var(--sh-muted);border:0;background:transparent;border-radius:8px}.sh-calendar-controls button:hover{background:#eff5fc}.sh-week,.sh-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.sh-week{margin-bottom:6px;color:var(--sh-muted);font-size:12px;text-align:center}.sh-week span{padding:6px 0}.sh-days .sh-day{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-width:0;min-height:44px;padding:3px 0;border:0;border-radius:9px;font-size:14px;font-variant-numeric:tabular-nums;background:transparent;color:var(--sh-muted);cursor:pointer}.sh-day i{font-style:normal;font-weight:700;font-size:11px;line-height:12px;height:12px}.sh-days .sh-complete{background:#e4f4ed;color:var(--sh-done)}.sh-days .sh-partial{background:#fff1d7;color:var(--sh-partial)}.sh-days .sh-unstarted{background:#fbece7;color:var(--sh-pending)}.sh-days .sh-planned{background:#eff3fb;color:#506a93}.sh-days .is-adjacent{opacity:.58}.sh-days .sh-day[aria-pressed=true]{outline:2px solid #4484d1;outline-offset:-2px;font-weight:700}.sh-days .sh-day[aria-current=date]>span{text-decoration:underline;text-underline-offset:3px}.sh-days .sh-day:hover{box-shadow:inset 0 0 0 1px #93b6e2}.sh-legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px;font-size:11px}.sh-legend .sh-complete{color:var(--sh-done)}.sh-legend .sh-partial{color:var(--sh-partial)}.sh-legend .sh-unstarted{color:var(--sh-pending)}
.sh-plan{padding:18px 16px;border-top:1px solid var(--sh-line);background:#fff}.sh-plan-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.sh-plan-heading h2{font-size:16px;margin:0;color:var(--sh-ink)}.sh-plan-heading small{font-size:12px;color:var(--sh-muted)}.sh-plan-rows>.sh-plan-row{display:flex;align-items:center;gap:9px;width:100%;min-height:78px;padding:14px 0;text-align:left;border:0;border-bottom:1px solid var(--sh-line);border-radius:0;background:transparent;color:var(--sh-ink);cursor:pointer}.sh-plan-row:last-child{border-bottom:0}.sh-plan-row:hover{background:#f3f7fd}.sh-task-mark{align-self:flex-start;height:23.1px;font-size:16px;line-height:24px;flex:none}.sh-complete .sh-task-mark,.sh-caughtup .sh-task-mark{color:var(--sh-done)}.sh-partial .sh-task-mark{color:var(--sh-partial)}.sh-unstarted .sh-task-mark{color:var(--sh-pending)}.sh-plan-copy{flex:1;min-width:0}.sh-plan-copy b{font-size:14px;line-height:1.65;font-weight:500;display:block}.sh-plan-copy small{display:block;font-size:11px;color:var(--sh-muted);line-height:1.7;margin-top:4px}.sh-plan-go{flex:none;font-size:12px;color:#2866ac}.sh-empty{padding:16px 0;font-size:14px;line-height:1.7;color:var(--sh-muted)}
body[data-surface=pc] .sh-home .sh-tools-panel{position:fixed;z-index:115;top:108px;right:28px;bottom:30px;width:300px;padding:16px;overflow-y:auto;background:#fff;border:1px solid #e0e8f2;border-radius:22px;box-shadow:0 12px 48px #24466c26;animation:sh-enter 180ms ease-out}
.sh-tools-panel:not(.is-open){display:none!important}.sh-tools-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px}.sh-tools-head h2{font-size:18px;margin:0}.sh-tools-head button{width:44px;height:44px;border:0;border-radius:12px;background:#f0f5fb;color:#476480;font-size:25px}.sh-tools-toggle{position:fixed;right:20px;top:50%;z-index:116;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:64px;min-height:72px;padding:13px 8px;background:#fff;color:#305d91;border:1px solid #d9e5f3;border-radius:18px;box-shadow:0 6px 22px #2c50751c;cursor:pointer}.sh-tools-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}.sh-tools-toggle span{font-size:11px}.sh-tools-toggle[aria-expanded=true]{background:#edf4ff;top:auto;bottom:24px}.sh-tools-toggle:hover{background:#edf4ff}
@keyframes sh-enter{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.sh-tools-panel{animation:none!important}}
@media(max-width:1100px){body[data-surface=pc] .sh-home .completion-home-layout{grid-template-columns:280px minmax(0,1fr);gap:18px;padding-right:28px}.sh-home .completion-tree-points{padding-left:6px}.sh-home .completion-tree-go{min-width:55px}.sh-home .completion-tree-point{flex-wrap:wrap}.sh-home .completion-tree-name{min-width:50%}}
body[data-surface=mini] .sh-home{padding:0!important;margin:0!important;max-width:none!important}body[data-surface=mini] .sh-home .completion-home-layout{display:flex;flex-direction:column;gap:16px}body[data-surface=mini] .sh-home .completion-study-sidebar,body[data-surface=mini] .sh-home .completion-home-main{width:100%;min-width:0}body[data-surface=mini] .sh-home .completion-study-sidebar{gap:12px}body[data-surface=mini] .sh-home .st-card{border-radius:18px;padding:14px 16px}body[data-surface=mini] .sh-home .st-exam-copy b{font-size:22px}body[data-surface=mini] .sh-home .study-schedule-panel{background:#fff;border-radius:18px;border:1px solid #e2eaf3}body[data-surface=mini] .sh-home .sh-calendar{padding:16px 12px 12px}body[data-surface=mini] .sh-home .sh-days{gap:2px}body[data-surface=mini] .sh-home .sh-plan{padding:16px}body[data-surface=mini] .sh-home .ad-today{padding:18px!important;border-radius:18px}body[data-surface=mini] .sh-home .df-today-copy h2{font-size:19px}body[data-surface=mini] .sh-home .df-today-copy p{font-size:13px;line-height:1.7}body[data-surface=mini] .sh-home .fs-chapter-list{padding:0!important;border-radius:18px!important}body[data-surface=mini] .sh-home .completion-chapter .ps-module-row{padding:16px 12px!important;min-height:72px}body[data-surface=mini] .sh-home .completion-subject-picker{display:flex;flex-wrap:wrap;gap:6px}body[data-surface=mini] .sh-home .completion-subject-picker button{padding:10px 12px;min-height:44px;font-size:14px}body[data-surface=mini] .sh-home .fs-list-title{padding:14px 12px!important}body[data-surface=mini] .sh-home .completion-tree-points{padding:0 8px 12px}body[data-surface=mini] .sh-home .completion-tree-point{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:6px;padding:12px 8px;min-height:78px}body[data-surface=mini] .sh-home .completion-tree-number{grid-row:1/3}body[data-surface=mini] .sh-home .completion-tree-name{grid-column:2/4;font-size:14px}body[data-surface=mini] .sh-home .completion-status{grid-column:2;font-size:12px!important}body[data-surface=mini] .sh-home .completion-tree-go{grid-column:3;font-size:12px}body[data-surface=mini] .sh-home .completion-home-rail,body[data-surface=mini] .sh-tools-toggle{display:none!important}body[data-surface=mini] .sh-home .ad-page-heading{display:none}
.sh-calendar-expand{display:block;min-height:44px;width:100%;margin-top:6px;padding:6px;border:0;border-radius:9px;background:transparent;color:#346cb1;font-size:12px}.sh-calendar-expand:hover{background:#f1f6fc}
body[data-surface=mini] .sh-home .st-card{padding:12px 16px!important;min-height:0}body[data-surface=mini] .sh-home .st-exam{min-height:0;padding:0;gap:12px}body[data-surface=mini] .sh-home .st-exam-copy{gap:3px}body[data-surface=mini] .sh-home .st-exam-copy>span{font-size:11px}body[data-surface=mini] .sh-home .st-exam-copy b{font-size:20px}body[data-surface=mini] .sh-home .st-exam-copy small{font-size:11px}body[data-surface=mini] .sh-home .sh-calendar-heading{margin-bottom:8px}body[data-surface=mini] .sh-home .sh-calendar-heading h2{margin-bottom:2px}body[data-surface=mini] .sh-home .sh-week span{padding:2px 0}body[data-surface=mini] .sh-home .sh-legend{margin-top:9px}body[data-surface=mini] .sh-home .sh-plan-row{min-height:70px;padding:10px 0}

@media(min-width:741px) and (max-width:1100px){body[data-surface=pc] .sh-home .sh-calendar{padding-inline:12px}body[data-surface=pc] .sh-home .sh-days{gap:2px}}
@media(max-width:740px){body[data-surface=pc] .sh-home .completion-home-layout{grid-template-columns:minmax(0,1fr);padding-right:0}}
/* Current demo: full-width learning area; the calendar is a quiet supporting column. */
body[data-surface=pc].sh-at-home #main{width:100%!important;max-width:none!important;margin:0!important;padding:24px 24px 48px!important;box-sizing:border-box}
body[data-surface=pc].sh-at-home #main .fs-workspace.ps-overview.sh-home{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;display:block}
body[data-surface=pc].sh-at-home .sh-home>.completion-home-layout{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;grid-template-columns:264px minmax(0,1fr)!important;gap:24px;align-items:start}
body[data-surface=pc].sh-at-home .web-header>.web-header-inner{max-width:none!important;padding-inline:24px!important}
body[data-surface=pc] .sh-home .completion-study-sidebar{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px}
body[data-surface=pc] .sh-home .completion-home-main{grid-column:2;grid-row:1;gap:20px}
body[data-surface=pc] .sh-home .completion-study-sidebar .st-card{padding:14px;background:#f5f8fc;border:1px solid #e5ebf2;box-shadow:none;border-radius:14px}
body[data-surface=pc] .sh-home .st-exam-copy b{font-size:19px;color:#48627b}.sh-home .completion-study-sidebar .st-exam-icon{background:transparent}
body[data-surface=pc] .sh-home .study-schedule-panel{display:block;background:#f9fbfd;border-color:#e5ebf2;box-shadow:none;border-radius:14px}
body[data-surface=pc] .sh-home .sh-calendar{padding:14px 10px 12px;background:transparent}.sh-home .sh-calendar-heading h2{font-size:15px}.sh-home .sh-calendar-heading b{font-size:12px}
body[data-surface=pc] .sh-home .sh-calendar-heading{margin-bottom:10px;gap:0}.sh-home .sh-calendar-controls button{min-width:30px;font-size:12px}
body[data-surface=pc] .sh-home .sh-days{gap:2px}.sh-home .sh-days .sh-day{font-size:12px}.sh-home .sh-legend{gap:8px;font-size:10px;align-items:center}.sh-home .sh-legend>span{display:flex;align-items:center;gap:3px}
body[data-surface=pc] .sh-home .sh-plan{padding:14px 12px;background:transparent}.sh-home .sh-plan-heading h2{font-size:14px}.sh-home .sh-plan-copy b{font-size:12px}.sh-home .sh-plan-go{font-size:11px}.sh-home .sh-plan-rows>.sh-plan-row{min-height:68px}
body[data-surface=pc] .sh-home .completion-home-main>.ad-today{padding:28px 32px!important;min-height:144px;background:#f0f6ff!important;border:1px solid #d6e5fa!important;border-radius:20px!important;box-shadow:none!important}
.sh-learning-eyebrow{display:block;font-size:13px;color:#3c6da8;margin-bottom:8px;font-weight:600}.sh-home .df-today-copy h2{font-size:26px!important;color:#203e64!important;line-height:1.4!important;font-weight:700}.sh-home .df-today-copy p{font-size:14px!important;color:#607991!important}.sh-hero-separator{margin-inline:10px}.sh-home .sh-resume{min-height:48px!important;font-size:16px!important;padding:12px 26px!important;border-radius:12px!important}
body[data-surface=pc] .sh-home .fs-chapter-list{background:#fff;border:1px solid #dfe8f3!important;box-shadow:none!important;border-radius:20px!important}
body[data-surface=pc] .sh-home .fs-list-title{padding:22px 28px!important;min-height:80px}.sh-home .completion-chapter>summary{min-height:76px}.sh-home .fs-chapter-name b{font-size:18px!important}.sh-home .completion-tree-points{padding:0 20px 16px!important}.sh-home .completion-tree-point{min-height:68px;padding:16px!important;font-size:16px}.sh-home .completion-tree-name{font-size:16px;line-height:1.6}.sh-home .completion-tree-number{min-width:40px;font-size:13px}.sh-home .completion-tree-go{font-size:14px;min-width:84px}.sh-home .completion-tree-point.is-current{outline:none;background:transparent}
.sh-home .completion-tree-point.is-current-learning{background:#edf5ff!important;outline:1px solid #bed7f4!important;outline-offset:-1px}.sh-home .is-current-learning .completion-tree-name{font-weight:600;color:#245eac}
.sh-state-icon{display:inline-block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none}.sh-state-check{display:inline-block;font-size:16px;font-weight:600;line-height:18px}.sh-status{gap:6px;min-width:88px;font-size:13px!important}.sh-status-complete,.sh-status-caughtup{color:#36775b!important}.sh-status-partial{color:#8c6828!important}.sh-status-missed{color:#98745a!important}.sh-status-unstarted{color:#7d8ba0!important}.sh-status-active{color:#286acc!important;font-weight:600}
.sh-task-mark .sh-state-icon{width:17px;height:17px}.sh-day i .sh-state-icon{width:10px;height:10px;stroke-width:2}.sh-day i .sh-state-check{font-size:12px;line-height:12px}.sh-legend .sh-state-icon{width:12px;height:12px}.sh-legend .sh-state-check{font-size:12px;line-height:12px}.sh-home .sh-task-mark{display:inline-flex;align-items:center;justify-content:center;height:19.8px}body[data-surface=mini] .sh-home .sh-task-mark{height:23.1px}.sh-active .sh-task-mark{color:#286acc}.sh-missed .sh-task-mark{color:#98745a}
body[data-surface=pc] .sh-tools-toggle,body[data-surface=pc] .sh-tools-toggle[aria-expanded=true]{right:12px;top:50%;bottom:auto;transform:translateY(-50%);min-width:50px;min-height:54px;padding:9px 7px;border-radius:14px}.sh-tools-toggle span{font-size:10px}.sh-tools-toggle svg{width:18px;height:18px}
@media(min-width:1600px){body[data-surface=pc].sh-at-home .sh-home>.completion-home-layout{grid-template-columns:280px minmax(0,1fr)!important;gap:28px}}
@media(max-width:920px){body[data-surface=pc].sh-at-home #main{padding:18px 16px 40px!important}body[data-surface=pc].sh-at-home .sh-home>.completion-home-layout{grid-template-columns:232px minmax(0,1fr)!important;gap:16px}body[data-surface=pc] .sh-home .completion-home-main>.ad-today{padding:22px!important}.sh-home .df-today-copy h2{font-size:22px!important}.sh-home .completion-tree-point{flex-wrap:wrap}.sh-home .completion-tree-name{min-width:55%}}
@media(max-width:700px){body[data-surface=pc].sh-at-home .sh-home>.completion-home-layout{display:flex;flex-direction:column}.sh-home .completion-home-main,.sh-home .completion-study-sidebar{width:100%}.sh-home .completion-home-main{order:0}.sh-home .completion-study-sidebar{order:1}}
body[data-surface=mini] .sh-home .df-today-copy h2{font-size:21px!important}body[data-surface=mini] .sh-home .completion-tree-points{padding:0 8px 12px!important}body[data-surface=mini] .sh-home .completion-tree-point{padding:12px 8px!important}body[data-surface=mini] .sh-home .sh-calendar-heading h2{font-size:17px}body[data-surface=mini] .sh-home .sh-plan-copy b{font-size:14px}body[data-surface=mini] .sh-home .completion-status{min-width:0}
body[data-surface=mini] .sh-home .completion-home-layout{gap:12px}body[data-surface=mini] .sh-mobile-hero{order:0;width:100%;background:#f0f6ff!important;border:1px solid #d6e5fa!important;border-radius:18px!important;padding:20px!important}body[data-surface=mini] .sh-mobile-schedule{order:1;width:100%;border:0}body[data-surface=mini] .sh-mobile-schedule>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 14px;border:1px solid #e2eaf3;border-radius:12px;background:#f8fbfe;list-style:none;color:#46637f;font-size:14px;cursor:pointer}body[data-surface=mini] .sh-mobile-schedule>summary::-webkit-details-marker{display:none}body[data-surface=mini] .sh-mobile-schedule>summary small{font-size:12px;white-space:nowrap;color:#71869b}body[data-surface=mini] .sh-mobile-schedule>summary i{font-style:normal;margin-left:6px;display:inline-block;transition:transform 180ms ease-out}body[data-surface=mini] .sh-mobile-schedule[open]>summary i{transform:rotate(180deg)}body[data-surface=mini] .sh-mobile-schedule>.completion-study-sidebar{margin-top:12px}body[data-surface=mini] .sh-home .completion-home-main{order:2}body[data-surface=mini] .sh-mobile-hero .df-today-copy{flex-basis:100%}body[data-surface=mini] .sh-mobile-hero .ad-today-actions{margin-left:auto}
body[data-surface=mini] .sh-home .completion-subject-picker{display:flex;gap:4px;padding:4px;background:#eef3fa;border:0;border-radius:12px;max-width:100%}body[data-surface=mini] .sh-home .completion-subject-picker button{flex:1;min-height:44px;min-width:0;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#5a728e;font:inherit;font-size:14px;font-weight:500;box-shadow:none}body[data-surface=mini] .sh-home .completion-subject-picker button[aria-pressed=true]{background:#fff;color:#2866b2}body[data-surface=mini] .sh-home .completion-subject-picker button:hover{background:#e4eefc}

/* Mini home: one clear next lesson, with calendar details a tap away. */
body[data-surface=mini] .sh-home .sh-compact-hero{display:block!important;min-height:0!important;padding:6px 14px 12px!important;gap:0!important;background:#edf5ff!important;border-color:#d8e7fa!important;box-shadow:none!important}
body[data-surface=mini] .sh-mobile-hero-head{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:12px}
body[data-surface=mini] .sh-mobile-hero-head>span{font-size:12px;font-weight:600;color:#416d9e}
body[data-surface=mini] .sh-calendar-entry{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;margin:0 -6px 0 0;padding:0 6px;border:0;border-radius:8px;background:transparent;color:#557799;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
body[data-surface=mini] .sh-calendar-entry svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-surface=mini] .sh-calendar-entry:hover{background:#dfedff}
body[data-surface=mini] .sh-mobile-hero-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center}
body[data-surface=mini] .sh-mobile-next{display:contents}
body[data-surface=mini] .sh-mobile-next h2{grid-column:1/-1;margin:0!important;color:#223e60;font-size:18px!important;font-weight:650;line-height:1.45;letter-spacing:0}
body[data-surface=mini] .sh-mobile-next p{grid-column:1/-1;margin:0!important;color:#66809b;font-size:12px;line-height:1.5}
body[data-surface=mini] .sh-mobile-next small{font-size:12px;color:#607c99;white-space:nowrap}
body[data-surface=mini] .sh-compact-hero .sh-resume{min-height:44px!important;height:44px!important;min-width:104px;padding:8px 16px!important;margin-top:0;border-radius:11px!important;font-size:14px!important;line-height:20px;white-space:nowrap;box-shadow:0 3px 8px #2a64d516}
body[data-surface=mini] .sh-home .fs-list-title{display:block;min-height:0!important;padding:10px!important}
body[data-surface=mini] .sh-home .fs-list-title .completion-subject-heading{display:block;flex:none;width:100%!important;max-width:none!important;margin:0!important;min-width:0}
body[data-surface=mini] .sh-home .completion-subject-picker{box-sizing:border-box;display:flex;width:100%;max-width:100%;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:4px;border:1px solid #e3ebf5;border-radius:12px;background:#f1f5fa;scrollbar-width:none}
body[data-surface=mini] .sh-home .completion-subject-picker::-webkit-scrollbar{display:none}
body[data-surface=mini] .sh-home .completion-subject-picker button{flex:1 0 auto;width:auto;min-width:0;min-height:44px;padding:10px 12px;white-space:nowrap;word-break:keep-all;font-size:14px;line-height:20px;border-radius:9px;color:#627a93;cursor:pointer}
body[data-surface=mini] .sh-home .completion-subject-picker button[aria-pressed=true]{background:#fff;color:#2465c0;font-weight:600;box-shadow:0 2px 5px #28466b10}
body[data-surface=mini] .sh-home .completion-chapter>.ps-module-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto 14px;gap:8px;align-items:center;min-height:64px!important;padding:12px!important}
body[data-surface=mini] .sh-home .completion-chapter .fs-number{width:24px;min-width:0;margin:0;font-size:12px}
body[data-surface=mini] .sh-home .fs-chapter-name{min-width:0}
body[data-surface=mini] .sh-home .fs-chapter-name b{font-size:16px!important;line-height:1.4}
body[data-surface=mini] .sh-home .ps-module-progress{min-width:0;width:88px;display:flex;flex-direction:column;gap:6px}
body[data-surface=mini] .sh-home .ps-module-progress>b{font-size:11px!important;line-height:1.4;white-space:nowrap;text-align:right}
body[data-surface=mini] .sh-home .ps-module-progress .ps-progress{margin:0!important}
body[data-surface=mini] .sh-home .completion-chevron{display:grid;place-items:center;align-self:center;width:14px;height:24px;line-height:1}
body[data-surface=mini] .sh-home .completion-tree-point{grid-template-columns:24px minmax(0,1fr) auto;gap:6px 8px;min-height:80px!important;border-radius:12px;padding:12px 10px!important;margin:3px 0}
body[data-surface=mini] .sh-home .completion-tree-number{min-width:0;font-size:11px}
body[data-surface=mini] .sh-home .completion-tree-name{min-width:0;line-height:1.5;font-size:15px}
body[data-surface=mini] .sh-home .completion-tree-go{display:inline-flex;justify-content:flex-end;align-items:center;gap:4px;min-width:0;white-space:nowrap;font-size:12px}
body[data-surface=mini] .sh-home .completion-tree-point.is-current-learning{outline:0!important;background:#edf5ff!important}
body[data-surface=mini] .sh-home .is-current-learning .completion-tree-go{color:#2465c0;font-weight:600}
body[data-surface=mini] .sh-calendar-page{overflow:hidden;border:1px solid #e2eaf3;border-radius:18px;background:#fff}
body[data-surface=mini] .sh-calendar-page :is(.sh-calendar,.sh-plan){padding:16px}
body[data-surface=mini] :is(.sh-calendar-entry,.sh-calendar-page button):focus-visible{outline:2px solid #377ed2;outline-offset:2px}

body[data-surface=mini] .sh-home .completion-tree-go{min-height:28px;padding:3px 8px;border:1px solid #dfebf9;border-radius:8px;background:#f4f8fe;color:#527ba9;line-height:20px}
body[data-surface=mini] .sh-home .is-current-learning .completion-tree-go{background:#2e69d4;border-color:#2e69d4;color:#fff}

.sh-days .sh-active{background:#e8f1ff;color:#286acc}.sh-legend .sh-active{color:#286acc}

/* Two native sticky levels: course first, then the open chapter underneath it. */
body[data-surface=mini] .sh-home{--sh-subject-height:74px}
body[data-surface=mini] .sh-home :is(.completion-home-layout,.completion-home-main,.fs-chapter-list,.completion-chapter){overflow:visible!important}
body[data-surface=mini] .sh-home .fs-chapter-list>.fs-list-title{position:sticky;top:0;z-index:30;border-radius:18px 18px 0 0;background:#fff;border-bottom:1px solid #e5edf5;box-shadow:0 3px 8px #294c7410}
body[data-surface=mini] .sh-home .completion-chapter[open]>.ps-module-row{position:sticky;top:var(--sh-subject-height);z-index:20;background:#fff;border-bottom:1px solid #e6edf5;box-shadow:0 3px 7px #294c7409}
body[data-surface=mini] .sh-home .completion-chapter>summary{scroll-margin-top:calc(var(--sh-subject-height) + 8px)}
body[data-surface=mini] .sh-home [data-completion-point]{scroll-margin-top:calc(var(--sh-subject-height) + 80px);scroll-margin-bottom:96px}
body[data-surface=mini].sh-at-home .mini-bottom{z-index:60;background:#fff}
html:has(body[data-surface=mini].sh-at-home){scroll-padding-bottom:92px}

/* Keep the current learning point directly below the course/chapter directory. */
body[data-surface=mini] .sh-home .completion-tree-point.is-current-learning{position:sticky;top:calc(var(--sh-subject-height) + var(--sh-current-chapter-height,64px));z-index:15;margin:0 0 8px;background:#edf5ff!important;box-shadow:0 5px 9px #284e7512!important}
body[data-surface=mini] .sh-home [data-completion-point]{scroll-margin-top:calc(var(--sh-subject-height) + var(--sh-current-chapter-height,64px) + var(--sh-current-point-height,80px) + 12px)}
/* Compact calendar: title/actions and month navigation are separate stable rows. */
.sh-calendar .sh-calendar-heading{display:block!important;min-width:0;margin-bottom:8px!important}
.sh-calendar-titlebar,.sh-calendar-monthbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.sh-calendar-titlebar h2{flex:1;min-width:0;margin:0!important;white-space:nowrap;font-size:16px!important;line-height:1.4}
.sh-calendar-titlebar .sh-plan-edit{flex:none;min-height:44px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#3971b6;font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap;cursor:pointer}
.sh-calendar-titlebar .sh-plan-edit:hover{background:#edf3fb}.sh-calendar-titlebar .sh-plan-edit:focus-visible{outline:2px solid #3971b6;outline-offset:1px}
.sh-calendar-monthbar>b{font-size:13px!important;line-height:1.4;white-space:nowrap;flex:none;color:#6a7f95}
.sh-calendar .sh-calendar-controls{display:flex;flex:none;gap:0}
.sh-calendar .sh-calendar-controls button{width:44px;min-width:44px!important;min-height:44px;font-size:13px!important;padding:0!important;white-space:nowrap}
.sh-calendar .sh-calendar-expand{display:flex;align-items:center;justify-content:center;gap:6px;margin:3px 0 0;min-height:44px;border-radius:8px;font-size:12px;color:#5f7ea2}
.sh-calendar-expand svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .18s}
.sh-calendar-expand[aria-expanded=true] svg{transform:rotate(180deg)}
.sh-calendar .sh-legend{margin-top:3px;justify-content:center;gap:14px;font-size:11px;white-space:nowrap}
.sh-state-dot{display:inline-block;width:8px;height:8px;box-sizing:border-box;border:1.5px solid currentColor;border-radius:50%;flex:none;vertical-align:middle}
.sh-calendar{--sh-reminder-bg:#fde9e7;--sh-reminder-ink:#a93632}
.sh-calendar .sh-days :is(.sh-unstarted,.sh-partial,.sh-missed){background:var(--sh-reminder-bg);color:var(--sh-reminder-ink)}
.sh-calendar .sh-day i{display:flex;align-items:center;justify-content:center;height:12px}.sh-calendar .sh-day .sh-state-dot{width:5px;height:5px;border:0;background:currentColor}
.sh-calendar .sh-legend>span{display:inline-flex;align-items:center;gap:4px}.sh-calendar .sh-legend .sh-unstarted{color:var(--sh-reminder-ink)}
body[data-surface=pc].sh-at-home .sh-home>.completion-home-layout{grid-template-columns:clamp(280px,21vw,300px) minmax(0,1fr)!important}
body[data-surface=pc] .sh-home .sh-calendar{padding-inline:12px}
body[data-surface=pc] .sh-home .completion-tree-point{display:grid;grid-template-columns:34px minmax(0,1fr) 84px 96px 108px;align-items:center;gap:12px;flex-wrap:nowrap}
body[data-surface=pc] .sh-home .completion-tree-name{min-width:0;font-size:15px;line-height:1.55}
.sh-home .completion-tree-point .sh-status{min-width:0!important;font-size:12px!important;white-space:nowrap;color:#7b8da2!important}
.sh-home .completion-tree-point .sh-status-complete{color:#4b806b!important}.sh-home .completion-tree-point .sh-status-active{color:#356fc1!important}
.sh-home .completion-tree-point .completion-tree-go{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:88px;min-height:36px;margin:0;padding:7px 10px;border:1px solid #e0e9f5;border-radius:8px;background:#f3f7fc;color:#4779b6;box-shadow:none;font-family:inherit;font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap}
.sh-home .completion-tree-point .completion-tree-go:hover{background:#eaf2ff;border-color:#bcd2ef;color:#2c62a3}
.sh-home .completion-tree-point.is-current-learning .completion-tree-go{background:#2d67ce;border-color:#2d67ce;color:#fff}
.sh-home .completion-tree-point .completion-tree-go:focus-visible{outline:2px solid #3971b6;outline-offset:2px}
body[data-surface=mini] .sh-home .completion-tree-point .completion-tree-go{min-width:0;min-height:32px;padding:5px 10px;font-size:12px}
body[data-surface=mini] .sh-calendar-titlebar{min-height:36px}.sh-calendar-page .sh-calendar-titlebar h2{font-size:16px!important}
@media(max-width:700px){body[data-surface=pc].sh-at-home .sh-home>.completion-home-layout{display:flex}}
@media(prefers-reduced-motion:reduce){.sh-calendar-expand svg{transition:none}}
/* Desktop directory: visible scroll affordance, stable chapter controls and current-point anchor. */
body[data-surface=pc] .sh-home .completion-chapter-tree{overflow:hidden}
body[data-surface=pc] .sh-home .sh-chapter-scroll{position:relative;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#b7c7db #f5f8fc;scrollbar-gutter:stable;min-height:140px;padding-bottom:16px;outline-offset:-3px}
body[data-surface=pc] .sh-home .sh-chapter-scroll::-webkit-scrollbar{width:7px}
body[data-surface=pc] .sh-home .sh-chapter-scroll::-webkit-scrollbar-track{background:#f5f8fc}
body[data-surface=pc] .sh-home .sh-chapter-scroll::-webkit-scrollbar-thumb{background:#b7c7db;border:2px solid #f5f8fc;border-radius:8px}
body[data-surface=pc] .sh-home .sh-chapter-scroll:focus-visible{outline:2px solid #76a4df}
body[data-surface=pc] .sh-home .sh-chapter-scroll .completion-chapter>.ps-module-row{min-height:64px;padding:10px 18px!important;gap:10px;background:#fff;border-bottom:1px solid #edf2f7;box-shadow:none}
body[data-surface=pc] .sh-home .sh-chapter-scroll .completion-chapter>.ps-module-row:hover{background:#f7faff}
body[data-surface=pc] .sh-home .sh-chapter-scroll .sh-current-chapter>.ps-module-row{background:#f6f9ff}
body[data-surface=pc] .sh-home .fs-chapter-name{display:flex;align-items:center;gap:9px;min-width:0}
body[data-surface=pc] .sh-home .fs-chapter-name b{font-size:16px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-surface=pc] .sh-home .sh-current-chapter-label{flex:none;padding:4px 7px;border-radius:5px;background:#e6efff;color:#3c6eb4;font-size:11px;font-weight:500;line-height:1.3;white-space:nowrap}
body[data-surface=pc] .sh-home .ps-module-progress{width:150px;min-width:0;flex:none}
/* Quiet disclosure, with room between the chapter controls and the tools rail. */
body[data-surface=pc] .sh-home .completion-chevron.sh-chapter-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;margin-inline-end:0;box-sizing:border-box;border:0;border-radius:10px;background:transparent;color:#667f9b;transform:none!important;transition:color .18s ease}
body[data-surface=pc] .sh-home .sh-chapter-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s cubic-bezier(.2,.7,.3,1)}
body[data-surface=pc] .sh-home .completion-chapter[open]>.ps-module-row .sh-chapter-toggle{color:#346cb7}
body[data-surface=pc] .sh-home .completion-chapter[open]>.ps-module-row .sh-chapter-toggle svg{transform:rotate(90deg)}
body[data-surface=pc] .sh-home .ps-module-row:hover .sh-chapter-toggle{color:#245da7}
body[data-surface=pc] .sh-home .sh-chapter-scroll .completion-chapter>.ps-module-row:active{background:#eef4fc}
body[data-surface=pc] .sh-home .sh-chapter-scroll .completion-chapter>.ps-module-row:focus-visible{outline:2px solid #3971b6;outline-offset:-3px}
body[data-surface=pc] .sh-home .sh-chapter-scroll [data-completion-point]{cursor:pointer}
body[data-surface=pc] .sh-home .sh-chapter-scroll [data-completion-point]>button.completion-tree-go{min-height:44px}
body[data-surface=pc] .sh-home .sh-chapter-scroll [data-completion-point]>.sh-status{flex:none}
@media(max-width:1100px){
 body[data-surface=pc] .sh-home .sh-chapter-scroll [data-completion-point]{gap:8px;padding-inline:12px!important}
 body[data-surface=pc] .sh-home .sh-chapter-scroll [data-completion-point]>.completion-tree-number{min-width:26px}
 body[data-surface=pc] .sh-home .sh-chapter-scroll [data-completion-point]>button.completion-tree-go{min-width:74px}
}
body[data-surface=pc] .sh-home .sh-chapter-scroll .is-current-learning{outline:0!important;background:#eef5ff!important;border-radius:9px}
@media(prefers-reduced-motion:reduce){body[data-surface=pc] .sh-home .sh-chapter-toggle,body[data-surface=pc] .sh-home .sh-chapter-toggle svg{transition:none}}

/* Leave the centered trigger accessible while the tool panel is expanded. */
body[data-surface=pc] .sh-home .sh-tools-panel{display:block;right:78px;max-width:calc(100vw - 102px)}
body[data-surface=pc] .sh-tools-panel .lt-tool-group+.lt-tool-group{border-left:0;border-top:1px solid #eaf0f7}
body[data-surface=pc] .sh-tools-toggle:focus-visible{outline:2px solid #397fcb;outline-offset:3px}

/* A single exam-points entry sits between today's work and the curriculum. */
.sh-home .sh-exam-points{display:flex;align-items:center;gap:14px;width:100%;min-height:80px;padding:14px 20px;border:1px solid oklch(91% .025 40);border-radius:16px;background:oklch(98% .012 45);color:var(--sh-ink);text-align:left;font:inherit;cursor:pointer;box-sizing:border-box}
.sh-exam-points>img{width:48px;height:48px;object-fit:contain;flex:none}
.sh-exam-points>span{display:grid;gap:4px;flex:1;min-width:0}.sh-exam-points strong{font-size:17px;line-height:1.4;font-weight:600}.sh-exam-points small{font-size:12px;line-height:1.5;color:var(--sh-muted)}
.sh-exam-points>svg{width:20px;height:20px;flex:none;color:var(--sh-muted)}
.sh-home .sh-exam-points:hover{background:oklch(96% .022 45)}.sh-home .sh-exam-points:active{background:oklch(94% .025 45)}
body[data-surface=mini] .sh-home .sh-exam-points{min-height:72px;gap:12px;padding:10px 14px;border-radius:14px}body[data-surface=mini] .sh-exam-points>img{width:44px;height:44px}body[data-surface=mini] .sh-exam-points strong{font-size:16px}

/* Readable month navigation on the standalone PC calendar. */
body[data-surface=pc] .sh-calendar-page .sh-calendar-monthbar>b{font-size:18px!important;font-weight:600;line-height:1.5}
body[data-surface=pc] .sh-calendar-page .sh-calendar-controls button{font-size:16px!important}
body[data-surface=pc] .sh-calendar-page .sh-calendar-controls button[data-action^="completion-calendar-month:"]{font-size:22px!important}

/* Keep the grouped single-column tools panel fitted to its contents. */
body[data-surface=pc] .sh-home .sh-tools-panel{bottom:auto;height:auto;max-height:calc(100dvh - 138px)}

/* Daily tasks scroll inside the left panel. */
body[data-surface=pc] .sh-home .sh-plan-rows{max-height:288px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#b7c7db transparent;scrollbar-gutter:stable}
body[data-surface=pc] .sh-home .sh-plan-rows:focus-visible{outline:2px solid #76a4df;outline-offset:2px;border-radius:6px}
/* The directory has five row slots; the left calendar and plan share its bottom edge. */
body[data-surface=pc] .sh-home .sh-chapter-scroll{box-sizing:border-box;padding-block:0}
body[data-surface=pc] .sh-home .sh-chapter-scroll .completion-chapter{margin:0;border:0}
@media(min-width:701px){
 body[data-surface=pc] .sh-home .completion-study-sidebar{box-sizing:border-box;min-height:0}
 body[data-surface=pc] .sh-home .completion-study-sidebar>*{flex:none}
 body[data-surface=pc] .sh-home .completion-study-sidebar>.study-schedule-panel{display:flex;flex-direction:column;flex:1;min-height:0}
 body[data-surface=pc] .sh-home .study-schedule-panel>.sh-calendar{flex:none}
 body[data-surface=pc] .sh-home .study-schedule-panel>.sh-plan{display:flex;flex-direction:column;flex:1;min-height:0;box-sizing:border-box}
 body[data-surface=pc] .sh-home .sh-plan-heading{flex:none}
 body[data-surface=pc] .sh-home .sh-plan-rows{flex:1;min-height:0;max-height:none}
}
/* The exam date is header context; the sidebar begins with the calendar. */
body[data-surface=pc].sh-at-home .web-header .brand{margin-left:0;flex:none}
body[data-surface=pc].sh-at-home .web-header>.web-header-inner{justify-content:flex-start;gap:24px}
body[data-surface=pc] .sh-header-exam{flex:0 1 auto;min-width:0;color:oklch(45% .035 250)}
body[data-surface=pc] .sh-header-exam .st-exam{display:block;margin:0;padding:0;background:transparent;border:0}
body[data-surface=pc] .sh-header-exam .st-exam-copy{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0;white-space:nowrap;font-size:12px;line-height:1.5}
body[data-surface=pc] .sh-header-exam .st-exam-copy>span{font-size:12px;color:oklch(53% .03 250)}
body[data-surface=pc] .sh-header-exam .st-exam-copy>b{font-size:14px;line-height:1.5;font-weight:600;font-variant-numeric:tabular-nums;color:oklch(40% .055 250)}
body[data-surface=pc] .sh-header-exam .st-exam-copy>small{display:inline-flex;align-items:center;gap:6px;margin:0;padding-left:10px;border-left:1px solid oklch(86% .02 250);font-size:12px;line-height:1.5;color:oklch(46% .045 250)}
@media(max-width:1100px){body[data-surface=pc].sh-at-home .web-header>.web-header-inner{gap:16px}body[data-surface=pc] .sh-header-exam .st-exam-copy{gap:6px}body[data-surface=pc] .sh-header-exam .st-exam-copy>span{display:none}}
@media(max-width:760px){body[data-surface=pc].sh-at-home .web-header>.web-header-inner{flex-wrap:wrap;height:auto;min-height:72px;padding-block:8px!important;gap:4px 12px}body[data-surface=pc].sh-at-home .sh-header-exam{order:3;flex-basis:100%}body[data-surface=pc].sh-at-home .sh-header-exam .st-exam-copy{justify-content:center}}

/* Mini home: one vertical rhythm around the exam-points banner. */
body[data-surface=mini] .sh-home .completion-home-layout{--sh-section-gap:12px;gap:var(--sh-section-gap)}
body[data-surface=mini] .sh-home .completion-home-main{gap:var(--sh-section-gap,12px)}
body[data-surface=mini] .sh-home .completion-home-main>.sh-exam-points{margin-block:0}

/* Course progress overview and chapter-local progress */
body[data-surface] .sh-home .completion-chapter-tree>.fs-list-title{display:flex;align-items:center;justify-content:flex-start;gap:20px;flex-wrap:wrap}
body[data-surface] .sh-home .sh-course-progress{display:flex;align-items:center;gap:12px;flex:0 1 260px;min-width:220px;margin-left:clamp(16px,3vw,48px);padding-left:24px;border-left:1px solid #e3eaf4;line-height:1.4}
body[data-surface] .sh-home .sh-course-ring{position:relative;display:grid;place-items:center;width:48px;height:48px;flex:none}
body[data-surface] .sh-home .sh-course-ring svg{position:absolute;inset:0;display:block;width:100%;height:100%;fill:none;stroke-width:4}
body[data-surface] .sh-home .sh-ring-track{stroke:#e6edfb}
body[data-surface] .sh-home .sh-ring-fill{stroke:#3d70dc;stroke-linecap:round;transform:rotate(-90deg);transform-origin:20px 20px}
body[data-surface] .sh-home .sh-course-copy{display:grid;gap:3px;flex:1;color:#607998;font-size:12px;white-space:nowrap}
body[data-surface] .sh-home .sh-course-copy>b{font-size:13px;font-weight:500;color:#465f80}
body[data-surface] .sh-home .sh-course-ring .sh-course-percent{display:flex;align-items:baseline;justify-content:center;gap:1px;font-size:12px;line-height:1;font-weight:650;letter-spacing:0;color:#3164c4;font-variant-numeric:tabular-nums;z-index:1}
body[data-surface] .sh-home .sh-course-ring .sh-course-percent small{font-size:8px;font-weight:500;letter-spacing:0}
body[data-surface] .sh-home .completion-chapter>.ps-module-row .fs-chapter-name{display:flex;align-items:center;flex:1;min-width:0;gap:12px}
body[data-surface] .sh-home .completion-chapter>.ps-module-row .ps-module-progress{display:inline-flex;align-items:center;justify-content:center;flex:0 0 116px;width:116px;min-width:116px;box-sizing:border-box;margin:0;padding:3px 8px;border-radius:5px;background:#eef2f7;font-variant-numeric:tabular-nums}
body[data-surface] .sh-home .completion-chapter>.ps-module-row .ps-module-progress>b{margin:0;font-size:12px!important;line-height:1.4;font-weight:400;white-space:nowrap;color:#718298;text-align:center}
body[data-surface] .sh-home .completion-chapter>.ps-module-row .ps-module-progress .ps-progress,body[data-surface] .sh-home .completion-chapter>.ps-module-row .ps-module-progress .ps-module-meter{display:none!important}
body[data-surface=mini] .sh-home .completion-chapter-tree>.fs-list-title{display:flex;gap:10px}
body[data-surface=mini] .sh-home .sh-course-progress{flex-basis:100%;min-width:0;gap:10px;margin:0 4px 2px;padding:0;border:0}
body[data-surface=mini] .sh-home .sh-course-ring{width:44px;height:44px}
body[data-surface=mini] .sh-home .sh-course-copy{gap:1px;font-size:11px}
body[data-surface=mini] .sh-home .sh-course-copy>b{font-size:12px}
body[data-surface=mini] .sh-home .sh-course-ring .sh-course-percent{font-size:11px}
body[data-surface=mini] .sh-home .completion-chapter>.ps-module-row{grid-template-columns:24px minmax(0,1fr) 14px}
body[data-surface=mini] .sh-home .completion-chapter>.ps-module-row .fs-chapter-name{flex-wrap:wrap;gap:4px 10px}
body[data-surface=mini] .sh-home .completion-chapter>.ps-module-row .fs-chapter-name>b{flex:none;max-width:100%}
body[data-surface=mini] .sh-home .completion-chapter>.ps-module-row .ps-module-progress{flex-direction:row;flex-basis:104px;width:104px;min-width:104px;padding:2px 6px}
body[data-surface=mini] .sh-home .completion-chapter>.ps-module-row .ps-module-progress>b{font-size:11px!important}
@media(max-width:900px){body[data-surface=pc] .sh-home .completion-chapter>.ps-module-row .fs-chapter-name{flex-wrap:wrap;gap:6px 10px}}
/* End course progress overview */

/* PC_CALENDAR_SURFACE_START */
/* A warm calendar surface distinguishes the supporting plan from the cool page canvas. */
body[data-surface=pc] .sh-home .study-schedule-panel{--sh-calendar-warm:#fff5e4;--sh-calendar-paper:#fffdf8;--sh-calendar-rule:#eadfcd;background:var(--sh-calendar-warm);border:1px solid var(--sh-calendar-rule);box-shadow:0 4px 14px #76542108}
body[data-surface=pc] .sh-home .study-schedule-panel .sh-calendar{background:var(--sh-calendar-warm)}
body[data-surface=pc] .sh-home .study-schedule-panel .sh-calendar-titlebar h2{color:#59472e}
body[data-surface=pc] .sh-home .study-schedule-panel .sh-calendar-monthbar>b,body[data-surface=pc] .sh-home .study-schedule-panel .sh-week{color:#75634c}
body[data-surface=pc] .sh-home .study-schedule-panel .sh-plan{background:var(--sh-calendar-paper);border-top-color:var(--sh-calendar-rule)}
body[data-surface=pc] .sh-home .study-schedule-panel .sh-plan-row{border-bottom-color:#eee5d7}
body[data-surface=pc] .sh-home .study-schedule-panel :is(.sh-calendar-controls button,.sh-calendar-expand,.sh-plan-edit):hover{background:#f5e7cf}
body[data-surface=pc] .sh-home .study-schedule-panel .sh-plan-row:hover{background:#faf2e4}
/* PC_CALENDAR_SURFACE_END */

/* Top-level learning tools dropdown */
body[data-surface=pc] .sh-header-tools{position:relative;flex:none;margin-left:auto}
body[data-surface=pc] .sh-header-tools-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:#435f80;font:inherit;font-size:14px;line-height:1.4;white-space:nowrap;cursor:pointer;transition:background-color 160ms ease,color 160ms ease}
body[data-surface=pc] .sh-header-tools-toggle>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-surface=pc] .sh-header-tools-toggle>.sh-tools-caret{width:15px;height:15px;transition:transform 160ms ease}
body[data-surface=pc] .sh-header-tools-toggle[aria-expanded=true]{background:#edf4ff;color:#2e64bb}
body[data-surface=pc] .sh-header-tools-toggle[aria-expanded=true]>.sh-tools-caret{transform:rotate(180deg)}
body[data-surface=pc] .sh-header-tools-toggle:hover{background:#f0f5fc}
body[data-surface=pc] .sh-header-tools-toggle:focus-visible{outline:2px solid #4a80ce;outline-offset:3px}
body[data-surface=pc] .sh-header-tools-panel{position:absolute;z-index:120;top:calc(100% + 12px);right:0;display:grid;grid-template-columns:1fr 1.2fr;gap:12px;width:480px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;margin:0;padding:16px;border:1px solid #e2eaf4;border-radius:16px;background:#fff;box-shadow:0 14px 40px #213c5a1f}
body[data-surface=pc] .sh-header-tools-panel[hidden]{display:none!important}
body[data-surface=pc] .sh-header-tools-panel .lt-tool-group{padding:0;min-width:0}
body[data-surface=pc] .sh-header-tools-panel .lt-tool-group+.lt-tool-group{border-top:0;border-left:1px solid #edf1f7;padding-left:12px}
body[data-surface=pc] .sh-header-tools-panel .lt-group-heading{padding:4px 8px 10px}
body[data-surface=pc] .sh-header-tools-panel .lt-group-heading h2{font-size:12px;color:#8594a8;font-weight:500}
body[data-surface=pc] .sh-header-tools-panel button.lt-tool-row,body[data-surface=pc] .sh-header-tools-panel .fa-entries>.fa-entry{min-height:46px;padding:10px 8px;gap:10px;font-size:14px;color:#49627e}
body[data-surface=pc] .sh-header-tools-panel .fa-entry b{font-size:14px!important}
@media(max-width:700px){body[data-surface=pc] .sh-header-tools-panel{position:fixed;top:72px;right:16px;left:16px;width:auto}body[data-surface=pc] .sh-header-tools-toggle{padding:8px;font-size:13px;gap:5px}}
@media(prefers-reduced-motion:reduce){body[data-surface=pc] .sh-header-tools-toggle,body[data-surface=pc] .sh-tools-caret{transition:none}}
body[data-surface=pc] .web-header-inner:has(.sh-header-tools)>#web-account,body[data-surface=pc] .web-header-inner:has(.sh-header-tools)>.record-scenario-switch{margin-left:0}
/* End top-level learning tools dropdown */

/* Preparation-wide progress precedes course navigation and is independent of it. */
body[data-surface] .sh-home .completion-chapter-tree>.sh-course-progress{flex:none;min-width:0;margin:0;padding:18px 28px 16px;border:0;border-bottom:1px solid #e5edf5;background:#fff;border-radius:18px 18px 0 0}
body[data-surface] .sh-home .completion-chapter-tree>.sh-course-progress+.fs-list-title{border-radius:0;box-shadow:none}
body[data-surface=mini] .sh-home .completion-chapter-tree>.sh-course-progress{padding:14px 16px 12px;margin:0;gap:10px}

/* Expanded calendar keeps five visible weeks; every date remains reachable. */
.sh-calendar .sh-days.is-expanded{grid-auto-rows:44px;gap:2px;max-height:232px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7d5e5 transparent;padding:2px;margin:-2px;box-sizing:border-box}
.sh-calendar .sh-days.is-expanded .sh-day{height:44px;min-height:44px;box-sizing:border-box}

/* PC uses a single, compact line for preparation-wide progress. */
body[data-surface=pc] .sh-home .completion-chapter-tree>.fs-list-title{padding:14px 28px;gap:16px}
body[data-surface=pc] .sh-home .completion-chapter-tree>.fs-list-title>.sh-course-progress{flex:0 1 auto;min-width:0;margin-left:auto;padding:0;border:0;gap:16px}
body[data-surface=pc] .sh-home .sh-course-progress .sh-course-copy{display:flex;align-items:center;flex:none;gap:24px;font-size:14px;line-height:1.5}
body[data-surface=pc] .sh-home .sh-course-progress .sh-course-copy>b{font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums}
body[data-surface=pc] .sh-home .sh-course-progress .sh-course-ring{width:40px;height:40px}

/* Global subject context occupies the former header tools position. */
body[data-surface=pc] .sh-global-subject{display:flex;align-items:center;gap:9px;flex:none;margin-left:auto;color:#506883;font-size:12px;white-space:nowrap}
body[data-surface=pc] .sh-global-subject select{max-width:190px;min-height:44px;padding:8px 30px 8px 12px;border:1px solid #dce6f4;border-radius:10px;background-color:#f7faff;color:#285faa;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
body[data-surface=pc] .sh-global-subject select:focus-visible{outline:2px solid #4a80ce;outline-offset:3px}
body[data-surface=pc] .web-header-inner:has(.sh-global-subject)>#web-account,body[data-surface=pc] .web-header-inner:has(.sh-global-subject)>.record-scenario-switch{margin-left:0}
/* Home tools stay visible beside the main study area without covering content. */
body[data-surface=pc].sh-at-home .sh-home>.completion-home-layout{grid-template-columns:248px minmax(0,1fr) 204px!important;gap:20px}
body[data-surface=pc] .sh-sidebar-tools{grid-column:3;grid-row:1;position:sticky;top:96px;min-width:0;max-height:calc(100dvh - 116px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;box-sizing:border-box;border:1px solid #e0e8f2;border-radius:16px;background:#fff}
body[data-surface=pc] .sh-sidebar-heading{margin:0;padding:18px 17px 14px;border-bottom:1px solid #edf1f7;font-size:15px;font-weight:600;color:#365674}
body[data-surface=pc] .sh-sidebar-tools .lt-tool-group{padding:12px 9px}
body[data-surface=pc] .sh-sidebar-tools .lt-tool-group+.lt-tool-group{border-left:0;border-top:1px solid #eaf0f7}
body[data-surface=pc] .sh-sidebar-tools .lt-group-heading{padding:0 7px 6px}
body[data-surface=pc] .sh-sidebar-tools .lt-group-heading h2{font-size:12px;font-weight:500;color:#657b94}
body[data-surface=pc] .sh-sidebar-tools button.lt-tool-row,body[data-surface=pc] .sh-sidebar-tools .fa-entries>.fa-entry{min-height:44px;padding:6px 7px;font-size:13px;gap:8px}
body[data-surface=pc] .sh-sidebar-tools .fa-entry b{font-size:13px!important}
body[data-surface=pc] .sh-sidebar-tools .lt-tool-icon,body[data-surface=pc] .sh-sidebar-tools .fa-entry .fa-entry-icon{width:28px;height:28px;min-width:28px;min-height:28px}
body[data-surface=pc] .sh-sidebar-tools .lt-tool-icon img{width:24px;height:24px;object-fit:contain}
body[data-surface=pc] .sh-home .completion-subject-heading{font-size:15px;font-weight:600;color:#365674}
body[data-surface=pc] .lt-course-tabs{display:none}
@media(min-width:701px) and (max-width:1100px){body[data-surface=pc].sh-at-home .sh-home>.completion-home-layout{grid-template-columns:220px minmax(0,1fr) 170px!important;gap:14px}body[data-surface=pc] .sh-sidebar-tools .lt-tool-group{padding-inline:6px}body[data-surface=pc] .sh-global-subject>span:first-child{display:none}}
@media(max-width:700px){body[data-surface=pc] .sh-sidebar-tools{position:static;max-height:none;width:100%;order:2}body[data-surface=pc] .sh-sidebar-tools .lt-tool-group{padding:14px}body[data-surface=pc] .sh-global-subject{gap:4px}body[data-surface=pc] .sh-global-subject>span:first-child{display:none}body[data-surface=pc] .sh-global-subject select{max-width:158px;font-size:13px}}
body[data-surface=pc] .ap-default-plan{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px;border:1px solid #dce6f2;border-radius:12px;background:#fff;color:#58708b;font-size:13px;line-height:1.7}

/* Fold the complete calendar and plan column, keeping a compact summary above the workspace. */
body[data-surface=pc] .sh-home .sh-plan-summary[hidden],body[data-surface=pc] .sh-home #sh-calendar-region[hidden]{display:none!important}
body[data-surface=pc].sh-at-home .sh-home.sh-calendar-collapsed>.completion-home-layout{grid-template-columns:minmax(0,1fr) 204px!important}
body[data-surface=pc] .sh-calendar-collapsed .completion-home-main{grid-column:1}
body[data-surface=pc] .sh-calendar-collapsed .sh-sidebar-tools{grid-column:2}
body[data-surface=pc] .sh-home .sh-calendar-region-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;min-height:44px;padding:6px;border:0;border-radius:8px;background:transparent;color:#75634c;cursor:pointer}
.sh-calendar-region-toggle svg{display:block;width:20px;height:20px}
body[data-surface=pc] .sh-home .sh-calendar-region-toggle:hover{background:#f5e7cf}
body[data-surface=pc] .sh-home .sh-plan-summary{display:flex;align-items:center;gap:12px;min-width:0;min-height:56px;box-sizing:border-box;margin:0 0 18px;padding:6px 16px;border:1px solid #eadfcd;border-radius:12px;background:#fff8ec;color:#66543b;font-size:13px;line-height:1.5}
.sh-plan-summary-icon{width:20px;height:20px;flex:none;color:#9a7c48}
.sh-plan-summary strong{flex:none;font-weight:600}
.sh-plan-summary-date,.sh-plan-summary-count{flex:none;white-space:nowrap;font-variant-numeric:tabular-nums}
.sh-plan-summary-date{color:#806f57}
.sh-plan-summary-count{padding-left:12px;border-left:1px solid #e7dcca}
.sh-plan-summary-task{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#806f57}
body[data-surface=pc] .sh-home .sh-calendar-region-open{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;margin-left:auto;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#3971b6;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.sh-calendar-region-open svg{width:16px;height:16px}
body[data-surface=pc] .sh-home .sh-calendar-region-open:hover{background:#f5e7cf}
.sh-calendar-region-toggle:focus-visible,.sh-calendar-region-open:focus-visible{outline:2px solid #3971b6;outline-offset:1px}
@media(min-width:701px) and (max-width:1100px){body[data-surface=pc].sh-at-home .sh-home.sh-calendar-collapsed>.completion-home-layout{grid-template-columns:minmax(0,1fr) 170px!important}}
@media(max-width:800px){body[data-surface=pc] .sh-home .sh-plan-summary{gap:8px;padding-inline:12px;font-size:12px}.sh-plan-summary-task{display:none}.sh-plan-summary-count{padding-left:8px}}
@media(max-width:420px){.sh-plan-summary-date{display:none}}
body[data-surface=pc] .ap-default-plan b{font-size:13px;color:#3b5878}.ap-default-plan span{flex:1;min-width:180px}.ap-default-plan button{min-height:44px;padding:6px 10px;border:0;border-radius:8px;background:#eef4ff;color:#2860ac;font:inherit;font-size:13px}
body[data-surface=pc] .sh-global-subject>.refined-select{display:inline-flex!important;min-width:145px}

body[data-surface=pc] .sh-home .completion-chapter-assessment{grid-template-columns:34px minmax(0,1fr) 84px 108px}
body[data-surface=pc] .completion-tree-point .completion-tree-practice{cursor:pointer}
body[data-surface=pc] .sh-home .completion-tree-point .completion-tree-practice{background:#fff;color:#4779b6}

.gh-ai-label.sh-ai-greeting{gap:8px;font-size:13px;font-weight:500;line-height:1.5;white-space:normal}.gh-ai-label.sh-ai-greeting>.sh-task-robot{width:24px;height:24px;flex:none}

/* Keep calendar folding beside plan editing in the title row. */
body[data-surface=pc] .sh-home #sh-calendar-region{position:relative;overflow:visible}
body[data-surface=pc] .sh-home .sh-calendar-titlebar .sh-plan-edit{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;width:auto;height:36px;min-height:36px;margin-left:auto;padding:6px 8px;border:0;border-radius:7px;background:transparent;color:#826b4e;font-size:12px;font-weight:500;line-height:1.4}
body[data-surface=pc] .sh-home .sh-calendar-titlebar .sh-plan-edit svg{display:block;width:15px;height:15px;flex:none}
body[data-surface=pc] .sh-home .sh-calendar-titlebar .sh-plan-edit:hover{background:#f3e6d0;color:#5e4930}
body[data-surface=pc] .sh-home .sh-calendar-titlebar .sh-calendar-region-toggle{position:static;display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:36px;min-height:36px;margin:0;padding:5px;border:0;border-radius:7px;background:transparent;color:#826b4e;box-shadow:none;transform:none}
body[data-surface=pc] .sh-home .sh-calendar-titlebar .sh-calendar-region-toggle svg{width:18px;height:18px}
body[data-surface=pc] .sh-home .sh-calendar-titlebar .sh-calendar-region-toggle:hover{background:#f3e6d0;color:#5e4930}

/* Desktop shows a complete month with matching weekday and date columns. */
body[data-surface=pc] .sh-calendar .sh-week,body[data-surface=pc] .sh-calendar .sh-days{grid-template-columns:repeat(7,minmax(0,1fr));column-gap:2px;width:100%;padding:0;box-sizing:border-box}
body[data-surface=pc] .sh-calendar .sh-days.is-expanded{height:auto;max-height:none;overflow:visible;margin:0;grid-auto-rows:44px;row-gap:2px;scrollbar-gutter:auto}
body[data-surface=pc] .sh-calendar .sh-week{margin:0 0 6px}
body[data-surface=pc] .sh-calendar .sh-days .sh-adjacent-date{min-width:0;background:transparent;color:#b0a693;box-shadow:none;pointer-events:none}

/* Tighten the desktop calendar header without changing its date grid. */
body[data-surface=pc] .sh-home .sh-calendar{padding-top:16px}
body[data-surface=pc] .sh-home .sh-calendar-heading{margin-bottom:4px!important}
body[data-surface=pc] .sh-home .sh-calendar-controls button{height:36px;min-height:36px}
body[data-surface=pc] .sh-home .sh-week>span{padding-block:4px}
body[data-surface=pc] .sh-home .sh-week{margin-bottom:4px}

/* Frame unplanned dates quietly on the desktop calendar's warm surface. */
body[data-surface=pc] .sh-calendar .sh-days .sh-day:is(.sh-empty,.sh-future){background:#f8f4eb;color:#9a8b74;box-shadow:inset 0 0 0 1px #eadfce}
