/* Desktop learner shell: one container for navigation and every content page. */
body[data-surface=pc]{--web-container:1440px;--web-gutter:32px;--web-header-height:80px;--web-gap:24px}
body[data-surface=pc]>.web-header{height:var(--web-header-height);min-height:var(--web-header-height);padding:0;display:block;position:sticky;top:0;z-index:30;border-bottom:1px solid #e0e8f1;background:#fff;box-shadow:0 2px 12px #243b5d04}
body[data-surface=pc] .web-header-inner{width:100%;max-width:var(--web-container);height:100%;margin:0 auto;padding:0 var(--web-gutter);display:flex;align-items:center;gap:38px}
body[data-surface=pc] .web-header .brand{width:auto;flex:none;gap:0;min-height:44px}
body[data-surface=pc] .web-header .brand b{font-size:24px;line-height:1.3;letter-spacing:-.5px}
body[data-surface=pc] .web-header nav{align-self:stretch;gap:26px;flex:none;flex-wrap:nowrap}
body[data-surface=pc] .web-header nav a{height:100%;min-height:44px;position:relative;font-size:15px;font-weight:500;box-shadow:none;padding:0 1px;color:#61758b;transition:color 180ms ease}
body[data-surface=pc] .web-header nav a:hover{color:var(--blue)}
body[data-surface=pc] .web-header nav a[aria-current=page]{color:var(--blue);font-weight:600}
body[data-surface=pc] .web-header nav a[aria-current=page]:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px 3px 0 0;background:var(--blue)}
body[data-surface=pc] .web-account{margin-left:auto;flex:none}
body[data-surface=pc] .web-account-menu{position:relative}
body[data-surface=pc] .web-account-menu>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:48px;padding:5px 8px;border-radius:14px;cursor:pointer;color:#3b526b;font-size:14px;transition:background 180ms ease}
body[data-surface=pc] .web-account-menu>summary::-webkit-details-marker{display:none}
body[data-surface=pc] .web-account-menu>summary:hover,body[data-surface=pc] .web-account-menu[open]>summary{background:#f1f6fc}
body[data-surface=pc] .web-account-menu>summary.is-current{color:var(--blue);background:#f1f6fc}
body[data-surface=pc] .web-account-menu>summary>img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#e6f1ff}
body[data-surface=pc] .web-account-menu>summary>span{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-surface=pc] .web-account-menu>summary>svg{width:18px;height:18px;flex:none}
body[data-surface=pc] .web-account-popover{position:absolute;top:calc(100% + 14px);right:0;width:280px;padding:8px;background:#fff;border:1px solid #e1e9f2;border-radius:18px;box-shadow:0 12px 40px #2549701c;z-index:31}
body[data-surface=pc] .web-account-identity{display:flex;align-items:center;gap:12px;padding:16px 12px 18px;border-bottom:1px solid #edf1f6}
body[data-surface=pc] .web-account-identity>img{width:44px;height:44px;border-radius:50%;object-fit:cover}
body[data-surface=pc] .web-account-identity>div{min-width:0}
body[data-surface=pc] .web-account-identity b{font-size:15px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-surface=pc] .web-account-identity small{display:block;font-size:11px;color:#7c8b9d;margin-top:3px}
body[data-surface=pc] .web-account-links{display:grid;padding:6px 0}
body[data-surface=pc] .web-account-popover .btn{background:transparent;color:#486079;text-align:left;justify-content:flex-start;min-height:44px;border-radius:10px;padding:10px 14px;font-size:14px}
body[data-surface=pc] .web-account-popover .btn:hover{background:#f0f5fc;color:var(--blue)}
body[data-surface=pc] .web-account-bottom{border-top:1px solid #edf1f6;padding-top:6px;display:grid}
body[data-surface=pc] #main{width:100%;max-width:var(--web-container);margin:0 auto;padding:28px var(--web-gutter) 64px;min-height:calc(100dvh - var(--web-header-height))}
body[data-surface=pc] #main>.route-enter{min-width:0;width:100%}
body[data-surface=pc] .page-title,body[data-surface=pc] .compact-heading,body[data-surface=pc] .closure-heading{margin:0 0 24px;min-height:44px;align-items:center}
body[data-surface=pc] .compact-heading h1,body[data-surface=pc] .closure-heading h1,body[data-surface=pc] .page-title h1{margin:0;font-size:28px;line-height:1.4}
body[data-surface=pc] .h53-first-screen{grid-template-columns:minmax(0,1.7fr) minmax(350px,1fr);gap:var(--web-gap)}
body[data-surface=pc] .h53-home{gap:28px}
body[data-surface=pc] .h53-plan,body[data-surface=pc] .h53-quick{box-shadow:none;border:1px solid #e0e9ee}
body[data-surface=pc] .h53-plan-layout{padding-top:16px;padding-bottom:24px}
body[data-surface=pc] .web-profile-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:var(--web-gap);align-items:start}
body[data-surface=pc] .web-profile-identity{position:sticky;top:104px;min-width:0}
body[data-surface=pc] .web-profile-identity .account-card{flex-direction:column;align-items:flex-start;gap:16px;background:#fff;border:1px solid #e1e9f2;border-radius:22px;padding:28px;margin:0 0 16px}
body[data-surface=pc] .web-profile-identity .account-avatar-button{width:76px;height:76px;border-radius:50%;box-shadow:none;border:0}
body[data-surface=pc] .web-profile-identity .account-avatar-button img{border-radius:50%}
body[data-surface=pc] .web-profile-identity .account-identity h2{font-size:21px;margin:0 0 8px}
body[data-surface=pc] .web-profile-identity .account-settings-button{width:100%;justify-content:center;background:#f3f7fc;border:0;font-size:14px}
body[data-surface=pc] .web-profile-identity .access-profile-course{margin:0;display:grid;gap:8px}
body[data-surface=pc] .web-profile-identity .access-profile-course .btn{width:100%;justify-content:flex-start;background:#ffffffb3}
body[data-surface=pc] .web-profile-content{min-width:0}
body[data-surface=pc] .web-profile-content .profile-settings{margin:0;padding:28px 32px;border:1px solid #e1e9f2;border-radius:22px;background:white}
body[data-surface=pc] .web-profile-content .setting-row{min-height:84px;padding:20px 0}
body[data-surface=pc] .web-profile-content .profile-scope-fields{padding:18px 0 24px;gap:16px}
body[data-surface=pc] .web-profile-content .appearance-setting{margin-top:12px}
body[data-surface=pc] .skip{z-index:40}
@media(max-width:1180px){body[data-surface=pc]{--web-gutter:24px}body[data-surface=pc] .web-header-inner{gap:26px}body[data-surface=pc] .web-header nav{gap:18px}body[data-surface=pc] .web-header nav a{font-size:14px}body[data-surface=pc] .web-header .brand b{font-size:22px}body[data-surface=pc] .h53-first-screen{grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr)}body[data-surface=pc] .web-profile-layout{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1000px){body[data-surface=pc] .web-header-inner{gap:20px}body[data-surface=pc] .web-header nav{gap:14px}body[data-surface=pc] .web-account-menu>summary>span{max-width:72px}body[data-surface=pc] .h53-first-screen{grid-template-columns:1fr}body[data-surface=pc] .web-profile-layout{grid-template-columns:230px minmax(0,1fr)}body[data-surface=pc] .web-profile-content .profile-settings{padding:24px}}
@media(max-width:800px){body[data-surface=pc]{--web-gutter:20px;--web-header-height:120px}body[data-surface=pc] .web-header-inner{height:120px;display:grid;grid-template-columns:1fr auto;grid-template-rows:64px 56px;gap:0 12px}body[data-surface=pc] .web-header .brand{grid-column:1;grid-row:1}body[data-surface=pc] .web-account{grid-column:2;grid-row:1}body[data-surface=pc] .web-header nav{grid-column:1/-1;grid-row:2;overflow-x:auto;width:100%;gap:22px;scrollbar-width:none}body[data-surface=pc] .web-header nav a{flex:none;font-size:14px}body[data-surface=pc] .web-header nav::-webkit-scrollbar{display:none}body[data-surface=pc] .web-account-popover{top:calc(100% + 6px);max-width:calc(100vw - 40px)}body[data-surface=pc] .web-profile-layout{grid-template-columns:1fr}body[data-surface=pc] .web-profile-identity{position:static}body[data-surface=pc] #main{padding-top:22px}body[data-surface=pc] .web-profile-identity .account-card{flex-direction:row;flex-wrap:wrap;padding:22px}body[data-surface=pc] .web-profile-identity .account-settings-button{width:100%}}
@media(prefers-reduced-motion:reduce){body[data-surface=pc] .web-header a,body[data-surface=pc] .web-account-menu>summary{transition:none}}
body[data-surface=pc] .web-profile-content .account-tools{margin:24px 0 0;padding:28px 32px;border:1px solid #e1e9f2;border-radius:22px;background:white}
body[data-surface=pc] .web-profile-content .profile-settings h2,body[data-surface=pc] .web-profile-content .account-tools h2{font-size:20px;margin:0 0 16px}
body[data-surface=pc] .web-profile-content .setting-row{min-height:72px;padding:16px 0}
@media(max-width:800px){body[data-surface=pc] .web-profile-content .account-tools{padding:24px}}
html:has(>body[data-surface=pc]){scrollbar-gutter:stable}
/* V5.12 — spacious desktop navigation, balanced across the full content container. */
body[data-surface=pc]{--web-header-height:96px}
body[data-surface=pc] .web-header-inner{gap:clamp(24px,2.5vw,44px)}
body[data-surface=pc] .web-header .brand b{font-size:26px;letter-spacing:-.7px;color:#203b54}
body[data-surface=pc] .web-header nav{display:flex;flex:1;min-width:0;align-self:center;align-items:center;justify-content:space-between;gap:clamp(8px,1.1vw,18px);height:56px}
body[data-surface=pc] .web-header nav a{display:flex;align-items:center;justify-content:center;gap:8px;flex:1 0 auto;height:56px;min-height:44px;padding:0 14px;border:1px solid transparent;border-radius:16px;font-size:16px;line-height:1.3;font-weight:600;white-space:nowrap;color:#63798e;transition:background-color 180ms ease,color 180ms ease,transform 180ms ease,border-color 180ms ease}
body[data-surface=pc] .web-header .web-nav-icon{width:20px;height:20px;flex:none;color:#8a9eaf;transition:color 180ms ease}
body[data-surface=pc] .web-header nav a:after{display:none}
body[data-surface=pc] .web-header nav a:hover{color:#2266b3;background:#f1f6fc;transform:translateY(-1px)}
body[data-surface=pc] .web-header nav a:hover .web-nav-icon{color:#4b85bc}
body[data-surface=pc] .web-header nav a[aria-current=page]{color:#1d62c8;background:#eaf2ff;border-color:#dce8fc;box-shadow:inset 0 1px 0 #fff;font-weight:650}
body[data-surface=pc] .web-header nav a[aria-current=page] .web-nav-icon{color:#2877d5}
body[data-surface=pc] .web-header nav a[aria-current=page]:after{display:none}
body[data-surface=pc] .web-header nav a:active{transform:translateY(0);background:#e3edfb}
body[data-surface=pc] .web-header nav a:focus-visible{outline:3px solid #6fa7f1;outline-offset:3px}
body[data-surface=pc] .web-account{margin-left:0;padding-left:clamp(10px,1.6vw,24px);border-left:1px solid #e7edf4}
body[data-surface=pc] .web-account-menu>summary{min-height:52px;padding:6px 10px;gap:10px;font-size:14px;border-radius:15px}
body[data-surface=pc] .web-account-menu>summary>img{width:38px;height:38px}
@media(min-width:1440px){body[data-surface=pc] .web-header nav a{padding-left:18px;padding-right:18px;font-size:16px;gap:10px}body[data-surface=pc] .web-header-inner{gap:38px}}
@media(min-width:801px) and (max-width:1250px){body[data-surface=pc] .web-header-inner{gap:20px}body[data-surface=pc] .web-header .brand b{font-size:23px}body[data-surface=pc] .web-header nav{gap:6px}body[data-surface=pc] .web-header nav a{padding:0 10px;font-size:15px;gap:6px}body[data-surface=pc] .web-account{padding-left:14px}body[data-surface=pc] .web-account-menu>summary>span{max-width:76px}}
@media(min-width:801px) and (max-width:1080px){body[data-surface=pc] .web-header nav .web-nav-icon{display:none}body[data-surface=pc] .web-header nav a{padding:0 12px}body[data-surface=pc] .web-header nav{gap:4px}body[data-surface=pc] .web-account-menu>summary{padding:5px 6px;gap:7px}body[data-surface=pc] .web-header-inner{gap:18px}}
@media(max-width:800px){body[data-surface=pc]{--web-header-height:128px}body[data-surface=pc] .web-header-inner{height:128px;grid-template-rows:64px 64px;gap:0 12px}body[data-surface=pc] .web-header .brand b{font-size:23px}body[data-surface=pc] .web-header nav{height:56px;align-self:start;gap:8px;justify-content:flex-start;padding:2px 3px 4px;overflow-x:auto}body[data-surface=pc] .web-header nav a{height:48px;flex:none;padding:0 16px;font-size:14px;gap:7px;border-radius:13px}body[data-surface=pc] .web-header .web-nav-icon{width:18px;height:18px}body[data-surface=pc] .web-account{padding-left:0;border-left:0}body[data-surface=pc] .web-account-menu>summary{min-height:44px}}
@media(prefers-reduced-motion:reduce){body[data-surface=pc] .web-header nav a,body[data-surface=pc] .web-header .web-nav-icon{transition:none;transform:none}}
@media(min-width:801px) and (max-width:940px){body[data-surface=pc] .web-account-menu>summary>span{display:none}body[data-surface=pc] .web-account{padding-left:10px}}
/* V5.14 — module colors enliven the desktop navigation without competing with content. */
body[data-surface=pc] .web-header nav a{--nav-rest:#edf4ff;--nav-hover:#e0edff;--nav-active:#d7e7ff;--nav-ink:#285fa5;--nav-line:#bed5f5;--nav-icon:#5987bd;background:var(--nav-rest);color:var(--nav-ink);border-color:transparent}
body[data-surface=pc] .web-header nav a[href="#map"]{--nav-rest:#eaf6f0;--nav-hover:#dbefe4;--nav-active:#cce8da;--nav-ink:#286e57;--nav-line:#aed3bf;--nav-icon:#5b9880}
body[data-surface=pc] .web-header nav a[href="#redbook"]{--nav-rest:#fff0e8;--nav-hover:#ffe3d6;--nav-active:#ffd7c5;--nav-ink:#9a4d35;--nav-line:#edb49c;--nav-icon:#bd7c5e}
body[data-surface=pc] .web-header nav a[href="#catalog"]{--nav-rest:#f2edfc;--nav-hover:#e7def7;--nav-active:#dfd2f3;--nav-ink:#69508e;--nav-line:#c7b4e3;--nav-icon:#9477b8}
body[data-surface=pc] .web-header nav a[href="#practice-setup"],body[data-surface=pc] .web-header nav a[href="#practice"]{--nav-rest:#fff4dd;--nav-hover:#ffebc3;--nav-active:#ffe3ae;--nav-ink:#8d641f;--nav-line:#e7c27e;--nav-icon:#b69553}
body[data-surface=pc] .web-header nav a[href="#review"]{--nav-rest:#e9f6f8;--nav-hover:#d8edf1;--nav-active:#c9e6eb;--nav-ink:#276b79;--nav-line:#9ac9d1;--nav-icon:#5b95a1}
body[data-surface=pc] .web-header nav a .web-nav-icon{color:var(--nav-icon)}
body[data-surface=pc] .web-header nav a:hover{background:var(--nav-hover);color:var(--nav-ink);border-color:var(--nav-line)}
body[data-surface=pc] .web-header nav a:hover .web-nav-icon{color:var(--nav-ink)}
body[data-surface=pc] .web-header nav a[aria-current=page]{background:var(--nav-active);border-color:var(--nav-line);color:var(--nav-ink);box-shadow:inset 0 1px 0 #ffffffa6,0 3px 8px #304f7010}
body[data-surface=pc] .web-header nav a[aria-current=page] .web-nav-icon{color:var(--nav-ink)}
body[data-surface=pc] .web-header nav a:active{background:var(--nav-active);transform:translateY(0)}

/* One compact header row: preparation context left, account right. */
body[data-surface=pc]>.web-header{--web-header-height:72px}
body[data-surface=pc] .web-header>.web-header-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
body[data-surface=pc] .web-header .web-account{margin-left:auto;padding-left:0;border-left:0}
body[data-surface=pc] .web-header .brand .web-prep-scope{font-size:20px;line-height:1.5;font-weight:600;letter-spacing:0;color:#365675;white-space:nowrap}
@media(max-width:540px){body[data-surface=pc] .web-header .brand .web-prep-scope{font-size:16px}body[data-surface=pc] .web-header>.web-header-inner{gap:12px}}

body[data-surface=pc] .web-header .brand{margin-left:max(0px,calc((100% - 1080px)/2))}

body[data-surface=pc] .web-header .web-account{margin-right:0}

/* Keep the notes heading and content in one shared container. */
#main .rn-page{width:100%;max-width:960px;margin:0 auto;box-sizing:border-box}
#main .rn-page .closure-heading,#main .rn-page .notes-workspace{width:100%;max-width:none;margin-left:0;margin-right:0;box-sizing:border-box}
#main .rn-page .closure-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
#main .rn-page .closure-heading>div{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:650px){#main .rn-page .closure-heading{flex-wrap:wrap}}

#main .reports-wrong-page{width:100%;max-width:1200px;margin:0 auto;box-sizing:border-box}
#main .reports-wrong-page .closure-heading,#main .reports-wrong-page .r54-workspace{width:100%;max-width:none;margin-left:0;margin-right:0;box-sizing:border-box}
#main .reports-wrong-page .closure-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}

/* Keep the header message and account entries flat in every interaction state. */
body[data-surface=pc] .web-header :is(.ri-pc-header-message,.web-account-menu>summary),
body[data-surface=pc] .web-header :is(.ri-pc-header-message,.web-account-menu>summary):is(:hover,:active,:focus-visible),
body[data-surface=pc] .web-header .web-account-menu[open]>summary{background:transparent;border-color:transparent;box-shadow:none;filter:none}
