:root{--course-shell-ink:#17142b;--course-shell-muted:#5f5a72;--course-shell-line:#d9d7e5;--course-shell-primary:#4f46e5;--course-shell-primary-dark:#3730a3}
html,body{max-width:100%}
body.course-shell-ready{padding-bottom:96px!important}
.vlabel{display:none!important}
.course-shell-dock{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));z-index:9998;transform:translateX(-50%);width:min(920px,calc(100% - 28px));display:grid;grid-template-columns:auto minmax(150px,1fr) auto auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(217,215,229,.92);border-radius:18px;background:rgba(255,255,255,.96);color:var(--course-shell-ink);box-shadow:0 16px 50px rgba(23,20,43,.2);backdrop-filter:blur(16px);font-family:-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
.course-shell-link,.course-shell-action{min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:9px 14px;font-size:15px;font-weight:750;line-height:1.35;text-decoration:none;white-space:nowrap;cursor:pointer}
.course-shell-link{color:var(--course-shell-primary-dark);background:#f1f0ff;border:1px solid #dedcff}
.course-shell-action{color:#fff;background:linear-gradient(135deg,#4f46e5,#6d28d9);border:1px solid transparent;font-family:inherit}
.course-shell-action[aria-pressed="true"]{color:#075f46;background:#e7f7f1;border-color:#bce8d8}
.course-shell-next{color:#fff;background:#17142b;border-color:#17142b}
.course-shell-status{min-width:0;padding:0 4px;font-size:14px;color:var(--course-shell-muted);line-height:1.35}
.course-shell-status b{display:block;color:var(--course-shell-ink);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.course-shell-link:focus-visible,.course-shell-action:focus-visible,.term[data-tip]:focus-visible,[role="button"]:focus-visible{outline:3px solid rgba(79,70,229,.38)!important;outline-offset:3px!important}
.term[data-tip]{cursor:pointer!important;text-decoration:underline dotted #6d28d9;text-underline-offset:3px}
.term[data-tip]::after{content:" ⓘ";font-size:.78em;font-weight:800;color:#6d28d9}
#tip[role="tooltip"],.course-term-tip{max-width:300px;font-size:14px!important;line-height:1.65!important}
.course-simulation-note{margin:14px 16px 4px;padding:12px 14px;border:1px solid #f0c36a;border-radius:12px;background:#fff8df;color:#5f4300;font-size:14px;line-height:1.65}
.course-simulation-note b{color:#704d00}
body[data-chapter="5"] :where(.prog-txt,.hero-fresh,.hero-scroll,.shead .k,.crumb,.lv,.datestamp,.map .mk,.mst .mdot,.mst p,.bag .bs,.qcard .qn,.tn .yr,.tface span,.t-count,.rside p,.factcard .fk,.pwrap .dead,.pcard .prl,.pcard .tap2,.ws .wex,.ws p,.scalebox .sk,.srow .sl,.srow .sv,.scalebox .snote,.costcard .ck,.pz .pk,.pz .pbd2 p,.rt .rwho,.rtl .tag,.sp .spy,.sp .spt p,.ch5-mode-status,.outro .fine){font-size:13px!important}
.reveal{opacity:1!important;transform:none!important}
@media(max-width:760px){
  body.course-shell-ready{padding-bottom:156px!important}
  .course-shell-dock{left:0;right:0;bottom:0;transform:none;width:100%;grid-template-columns:1fr 1fr;border-radius:18px 18px 0 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:8px}
  .course-shell-status{grid-column:1/-1;grid-row:1;text-align:center}
  .course-shell-status b{font-size:15px}
  .course-shell-link,.course-shell-action{font-size:14px;white-space:normal;text-align:center;padding:9px 10px}
  .course-shell-complete{display:none}
  #tip[role="tooltip"],.course-term-tip{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:148px!important;max-width:none!important}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
