:root{--ink:#222c39;--muted:#7e8793;--line:#e2e7ed;--surface:#f1f4f7;--blue:#496b99;--accent:#496b99}body{background:#f6f7f9;color:var(--ink)}.rail,.appnav,.sidebar{background:#f1f3f6!important;border-right:1px solid #e4e8ee!important}.nav.active,.navitem.active,.nav button.active{background:#e2e8f1!important;color:#304c73!important}.topbar,.top,.toolbar{background:transparent;border-color:#e7ebf0}a,button,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a,select{transition:background-color .17s,color .17s,box-shadow .17s,transform .18s cubic-bezier(.2,.7,.2,1)}button:active,a:active{transform:translateY(1px) scale(.985)}button:disabled{transform:none;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #95afcf!important;outline-offset:3px}.nav:hover,.navitem:hover,.app-shell-item:hover{background:#e8edf4!important}.search{background:#edf1f6!important;border-color:#e0e6ee!important}.search input{color:#283d59!important}.search input::placeholder{color:#8995a4!important}.nav,.account,.navitem{color:#667386}.nav.active,.type.active{color:#304f78!important}.type.active{background:#e7edf6!important}.primary,.official{background:#365982!important;color:white!important;border-radius:10px!important}.secondary,.text-button{color:#4e6d97}.coregrid{grid-template-columns:1.14fr 1fr 1fr;gap:22px;padding-bottom:0;align-items:stretch}.core:nth-child(n){margin-top:0;background:#fff;border:1px solid #e6ebf1;border-radius:22px;box-shadow:none;display:flex}.core:nth-child(n):hover{box-shadow:0 8px 32px #263b5510;transform:translateY(-3px)}.cardhead{background:#2e4564!important;color:#fff;min-height:185px;padding:27px;isolation:isolate}.core:nth-child(2) .cardhead{background:#e5eaf1!important;color:#344e6d}.core:nth-child(3) .cardhead{background:#eeece8!important;color:#5c5c62}.cardhead h3{margin-top:37px;font-size:27px;font-weight:540}.cardhead::before,.cardhead::after{border-color:#afbdce40!important}.core:nth-child(2) .cardhead::before,.core:nth-child(2) .cardhead::after{border-color:#90a5be55!important}.core:nth-child(3) .cardhead::before,.core:nth-child(3) .cardhead::after{border-color:#b0b1b855!important}.cardbody{padding:19px 25px 0}.shortcuts a,.core:nth-child(n) .shortcuts a{color:#69809e;border-color:#d5deeb}.shortcuts a:hover{color:#2b507f}.preview .name{font-weight:450;color:#364254}.preview small{color:#8c96a3}.cardfoot{color:#929caa;border-color:#edf0f4}.cardfoot a{color:#536f95}.minor:nth-child(n){background:#eceff4;border-radius:15px;border:1px solid #e7ebf1}.minor:nth-child(2n){background:#f0f0ef}.minor h3{color:#475b75}.minor>svg,.minor:nth-child(n)>svg{color:#7890af}.minor:hover{background:#e4ebf5;transform:translateY(-2px)}.advisor{border-color:#dde4ed}.advisor h2,.advisor a{color:#4b678c}.hero{margin-bottom:32px}.sectionhead{margin-bottom:17px}.more-section{margin-top:31px}.preview a,.row,.opportunity,.resourcecard{animation:app-arrive .28s cubic-bezier(.2,.7,.3,1) both}.core{animation:app-arrive .42s cubic-bezier(.2,.7,.3,1) both}.core:nth-child(2){animation-delay:.045s}.core:nth-child(3){animation-delay:.09s}.orggrid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:15px!important}.orgcard{position:relative;border:1px solid #e4e9ef!important;min-height:120px;padding:23px!important;border-radius:15px!important;background:#fff;color:#344358;font-size:13px!important}.orgcard:hover{border-color:#b5c7df!important;box-shadow:0 5px 22px #2e45640b;transform:translateY(-2px)}.orgcard img{height:43px;width:43px;object-fit:contain}.orgcard small{color:#8d9aab!important;line-height:1.7}.orgcard .org-count{color:#57749b;font-size:11px;display:block;margin-top:8px}.orgcard:after{content:'↗';position:absolute;right:16px;top:14px;color:#9caabd;font-size:13px}.row:hover,.opportunity:hover{background:#edf2f9!important}.drawer{box-shadow:-14px 0 60px #20344d12;border-left:1px solid #e3e9f1}.drawer:not([hidden]){animation:app-drawer .24s cubic-bezier(.2,.75,.25,1)}.app-shell-item{display:flex;align-items:center;gap:11px;min-height:41px;padding:0 14px;border-radius:9px;color:#68788d;font-size:13px;text-align:left}.app-shell-item.active{background:#e2e8f1;color:#304c73;font-weight:550}.app-shell-item svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.4}.app-shell-group{margin-top:14px;border-top:1px solid #e0e6ee;padding-top:12px}.app-mobile-nav{display:none}.feature-strip{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:16px;margin-bottom:38px}.feature-tile{display:block;padding:24px;border:1px solid #dfe6ef;border-radius:17px;background:white;position:relative}.feature-tile:first-child{background:#e9eef7;border-color:#dbe4f0}.feature-tile:hover{transform:translateY(-3px);box-shadow:0 8px 30px #29496e0b}.feature-tile h2{font-size:18px;line-height:1.5;margin-bottom:7px;color:#314d73}.feature-tile p{font-size:12px;color:#8994a5;margin:0;line-height:1.7}.feature-tile>span{position:absolute;right:21px;top:24px;color:#738cae}.motion-off *{animation:none!important;transition:none!important}@keyframes app-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes app-drawer{from{opacity:.4;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}@media(max-width:1000px){.feature-strip{grid-template-columns:1fr}.feature-tile{padding:20px}.coregrid{grid-template-columns:1fr}.core:nth-child(n){display:grid;grid-template-columns:.85fr 1.15fr}.cardhead{height:100%;min-height:170px}.cardhead h3{font-size:23px}.orggrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:780px){.app-mobile-nav{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#59708e;flex-shrink:0}.app-nav-open .rail,.app-nav-open .appnav{display:flex!important;z-index:80;box-shadow:12px 0 60px #192b4330;width:218px}.app-nav-shade{position:fixed;inset:0;background:#20344d33;z-index:70}.app-nav-shade[hidden]{display:none!important}.feature-strip{gap:11px;margin-bottom:28px}.feature-tile p{font-size:11px}.core:nth-child(n){grid-template-columns:.9fr 1.1fr}.cardhead{padding:24px 19px}.cardhead h3{margin-top:40px;font-size:23px}.orggrid{grid-template-columns:1fr!important}.orgcard{min-height:108px}.orgcard small{white-space:normal}.rail .account{margin-top:auto}.feature-tile h2{font-size:17px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.rail>nav,.appnav>nav,.sidebar>.nav{min-height:0;overflow-y:auto;max-height:calc(100dvh - 230px);scrollbar-width:thin}.rail .brand{margin-bottom:26px}.appnav .logo{margin-bottom:28px}.app-shell-item[data-shell-nav="save"]{margin-top:12px;border-top:1px solid #e1e7ef;padding-top:9px;min-height:50px}

.org-name{white-space:pre-line;overflow-wrap:anywhere;font-weight:500}.orgcard .org-count{white-space:nowrap}

.portfolio-shortcut{display:grid;place-items:center;width:39px;flex-shrink:0;border:1px solid #dfe6ef;border-radius:10px;color:#607fa8}.portfolio-shortcut:hover{background:#e8eef7}.more-official-facts summary{cursor:pointer;padding:17px 0;font-size:11px;color:#5878a2}.more-official-facts[open] summary{border-bottom:1px solid #e5eaf0}

html.reduce-motion *,html.reduce-motion *:before,html.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.haptic-preference{display:flex!important;align-items:center;justify-content:space-between}.haptic-preference input{width:17px;height:17px;accent-color:#486b9c}body.mode-spacious .row{padding-top:25px;padding-bottom:25px}

@media(max-width:780px){.app-nav-open .sidebar{display:flex!important;position:fixed;inset:0 auto 0 0;width:218px;z-index:80;box-shadow:12px 0 60px #192b4330}}

/* One navigation geometry across the catalogue, institutions and conversation. */
:root{--app-rail-width:218px;--app-nav-height:44px}
.rail,.appnav,.sidebar{width:var(--app-rail-width)!important;min-width:var(--app-rail-width);box-sizing:border-box;padding:30px 14px 18px!important;flex-shrink:0}
.rail+.workspace,.appnav+.workspace{margin-left:var(--app-rail-width)!important;min-width:0}
.app:has(>.sidebar){grid-template-columns:var(--app-rail-width) minmax(0,1fr)}
.rail .brand,.sidebar .brand,.appnav .brand,.appnav .logo{height:45px;min-height:45px;margin:0 12px 28px!important;padding:0!important;display:flex;align-items:center;flex:none}
.rail .brand img,.sidebar .brand img,.appnav .logo img{width:132px!important;height:45px!important;max-width:100%;object-fit:contain;object-position:left center}
.rail>nav,.sidebar>.nav,.appnav>nav{display:grid!important;grid-template-columns:minmax(0,1fr);grid-auto-rows:var(--app-nav-height);gap:6px!important;width:100%;min-height:194px;max-height:none!important;overflow:visible!important;align-content:start;margin:0!important;padding:0!important}
.rail>nav>a,.sidebar>.nav>a,.appnav>nav>a,.app-common-nav>.app-shell-item{height:var(--app-nav-height)!important;min-height:var(--app-nav-height)!important;width:100%;display:flex!important;align-items:center;gap:11px;padding:0 12px!important;margin:0!important;border:0!important;border-radius:9px;font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;text-align:left;white-space:nowrap;box-sizing:border-box;color:#617182;text-decoration:none;transform:none!important;transition:background-color .12s,color .12s}
.app-common-nav>.app-shell-item.active{font-weight:550;color:#304d6a;background:#e3eaf0}
.app-common-nav>.app-shell-item svg{width:19px;height:19px;min-width:19px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.rail>nav a[href*="portfolio.html"],.rail>nav a[href*="growth.html"],.rail>nav a[href*="radar.html"],.appnav>nav a[href*="portfolio.html"],.appnav>nav a[href*="growth.html"],.appnav>nav a[href*="radar.html"],.sidebar>.nav a[href*="portfolio.html"],.sidebar>.nav a[href*="growth.html"],.sidebar>.nav a[href*="radar.html"]{display:none!important}
.rail>.account,.appnav>.account,.sidebar-bottom{margin-top:auto!important;width:100%;flex:none}
.sidebar-bottom{border-top:1px solid #dfe5eb;padding-top:10px}.rail>.account,.appnav>.account,.sidebar .profile{min-height:57px!important;width:100%;padding:12px 10px!important;gap:10px;box-sizing:border-box;font-size:12px;transform:none!important}
.sidebar .profile p{margin:0;font-size:12px;line-height:1.6}.sidebar .profile small,.rail .account small,.appnav .account small{font-size:10px}.sidebar .profile .avatar,.rail .account .avatar,.appnav .account .avatar{width:30px;height:30px;min-width:30px;border-radius:50%;flex-shrink:0}
.app-advisor-page .workspace>.toolbar{height:64px;min-height:64px;padding-block:0;border-bottom:0;background:transparent}.app-advisor-page .workspace>.toolbar .page-title,.app-advisor-page .workspace>.toolbar>.search,.app-advisor-page .workspace>.toolbar>.tools{display:none!important}
@media(max-width:780px){.rail,.appnav,.sidebar{display:none!important}.rail+.workspace,.appnav+.workspace{margin-left:0!important}.app:has(>.sidebar){grid-template-columns:minmax(0,1fr)}.app-nav-open .rail,.app-nav-open .appnav,.app-nav-open .sidebar{display:flex!important;position:fixed;inset:0 auto 0 0;z-index:80;max-width:calc(100vw - 54px);height:100dvh;overflow-y:auto}.app-advisor-page .workspace>.toolbar{height:58px;min-height:58px;padding-inline:18px}}
@media(prefers-reduced-motion:reduce){.app-common-nav>.app-shell-item{transition:none}}

.app-common-nav .app-shell-count{margin-left:auto;font-size:10px;font-variant-numeric:tabular-nums;color:#8a97a3}

 .app-common-rail{view-transition-name:profile-rail}.app-common-nav a:active{transform:none!important}::view-transition-old(root),::view-transition-new(root){animation-duration:.14s}::view-transition-old(profile-rail),::view-transition-new(profile-rail){animation:none}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

.brand-ink{filter:brightness(0) saturate(0);background:transparent!important}.orglogo,.institution-logo{background:transparent!important;mix-blend-mode:multiply}

/* Navigation parents are structural, never a highlighted navigation item. */
.rail,.appnav,.sidebar{background:#fff!important}
.app-common-nav,.app-common-nav:hover,.rail>nav,.rail>nav:hover,.appnav>nav,.appnav>nav:hover,.sidebar>.nav,.sidebar>.nav:hover{background:transparent!important;border:0!important;box-shadow:none!important}
.app-common-nav>.app-shell-item:not(.active){background:transparent!important}
.app-common-nav>.app-shell-item:not(.active):hover{background:#f5f6f8!important;color:#3f5368}
.app-common-nav>.app-shell-item.active{background:#edf1f5!important;color:#344f6a!important}
/* The advisor history rail starts at the viewport top, beside the main rail. */
@media(min-width:781px){
 body.app-advisor-page .workspace{position:relative;min-width:0;height:100dvh!important;overflow:hidden!important}
 body.app-advisor-page .workspace>.toolbar{position:absolute!important;top:0!important;left:216px!important;right:0!important;width:auto!important;z-index:5!important;pointer-events:none}
 body.app-advisor-page .workspace>.toolbar .profile-locale{pointer-events:auto}
}
@media(min-width:781px) and (max-width:1080px){body.app-advisor-page .workspace>.toolbar{left:186px!important}}
@media(min-width:781px) and (max-width:1080px){#advisor-view .chat-send{margin-left:auto}}

/* The same outlined wordmark contracts without scaling its letterforms. */
.sidebar.app-common-rail{position:relative}
.app-common-rail{z-index:20}
.app-common-rail .app-brand-motion{display:block!important;width:132px;margin-inline:6px!important;overflow:visible;color:#1d1d1f!important;gap:0!important;transition:opacity .15s ease}
.app-common-rail .app-brand-svg{display:block!important;width:132px!important;height:45px!important;max-width:none!important;overflow:visible;flex:none;stroke:none!important}
.app-brand-tail{clip-path:inset(0 0 0 0);opacity:1;transition:clip-path .42s cubic-bezier(.22,1,.36,1),opacity .28s ease}
.app-brand-plus{transform:translateX(0);transition:transform .42s cubic-bezier(.22,1,.36,1)}
.app-rail-toggle{position:static;display:flex;align-items:center;gap:11px;width:100%;height:44px;min-height:44px;padding:0 12px;border:0;border-radius:9px;background:transparent;box-shadow:none;color:#788696;cursor:pointer;font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;white-space:nowrap;overflow:hidden;transform:none!important;transition:background .15s,color .15s}
.app-rail-toggle:hover{background:#edf1f5;color:#344f6a}
.app-rail-toggle svg{width:19px;height:19px;min-width:19px;flex:none;transition:transform .42s cubic-bezier(.22,1,.36,1)}
.app-common-nav>.app-shell-item{overflow:hidden}
.app-shell-label{min-width:0;max-width:160px;white-space:nowrap;overflow:hidden;transform:translateX(0);transition:max-width .36s cubic-bezier(.22,1,.36,1),transform .36s cubic-bezier(.22,1,.36,1),opacity .18s ease}
.app-shell-label .app-name-p{font-size:1.13em;line-height:0;margin-inline-start:.12em;letter-spacing:0;vertical-align:-.025em}
@media(min-width:781px){
 html[data-nav-collapsed="true"]{--app-rail-width:80px}
 .app-common-rail{transition:width .42s cubic-bezier(.22,1,.36,1),min-width .42s cubic-bezier(.22,1,.36,1),padding .42s cubic-bezier(.22,1,.36,1)}
 .rail+.workspace,.appnav+.workspace{transition:margin-left .42s cubic-bezier(.22,1,.36,1)}
 .app:has(>.sidebar){transition:grid-template-columns .42s cubic-bezier(.22,1,.36,1)}
 html[data-nav-collapsed="true"] .app-common-rail .app-brand-motion{width:52px}
 html[data-nav-collapsed="true"] .app-brand-tail{clip-path:inset(0 100% 0 0);opacity:0}
 html[data-nav-collapsed="true"] .app-brand-plus{transform:translateX(-184px)}
 html[data-nav-collapsed="true"] .app-rail-toggle svg{transform:rotate(180deg)}
 html[data-nav-collapsed="true"] .app-shell-label{max-width:0;opacity:0;pointer-events:none;transform:translateX(-8px)}
 html[data-nav-collapsed="true"] .app-shell-count{width:0;opacity:0;pointer-events:none;margin:0;overflow:hidden}
 html[data-nav-collapsed="true"] .app-common-rail .account,html[data-nav-collapsed="true"] .app-common-rail .profile{gap:0}
 html[data-nav-collapsed="true"] .app-common-rail .account>span:not(.avatar),html[data-nav-collapsed="true"] .app-common-rail .account>svg,html[data-nav-collapsed="true"] .app-common-rail .profile>p{display:none!important}
 html[data-nav-collapsed="true"] .app-common-rail .prototype-label,html[data-nav-collapsed="true"] .app-common-rail .navbottom>a{display:none!important}
}
@media(max-width:780px){.app-rail-toggle{display:none}}
@media(prefers-reduced-motion:reduce){.app-common-rail,.rail+.workspace,.appnav+.workspace,.app:has(>.sidebar),.app-brand-tail,.app-brand-plus,.app-rail-toggle,.app-rail-toggle svg,.app-shell-label{transition:none!important}}

.app-rail-toggle-label{min-width:0;max-width:160px;overflow:hidden;transition:max-width .36s cubic-bezier(.22,1,.36,1),transform .36s cubic-bezier(.22,1,.36,1),opacity .18s}
.app-common-rail .app-brand-svg{transform:scale(1);transform-origin:16px 22.5px;transition:transform .42s cubic-bezier(.22,1,.36,1)}
@media(min-width:781px){html[data-nav-collapsed="true"] .app-common-rail .app-brand-svg{transform:translateX(-3.3px) scale(.78)}html[data-nav-collapsed="true"] .app-rail-toggle-label{max-width:0;opacity:0;transform:translateX(-8px)}}
@media(max-width:780px){.app-rail-toggle{display:none!important}}
@media(prefers-reduced-motion:reduce){.app-rail-toggle-label,.app-common-rail .app-brand-svg{transition:none!important}}
/* Keep the icon axis fixed, centered inside the compact navigation tile. */
@media(min-width:781px){.app-common-nav>.app-shell-item{padding-inline-start:16px!important}.app-rail-toggle{padding-inline-start:16px!important}}
/* Static and hydrated rails share one box, including the collapse control. */
.rail>nav.app-common-nav,.appnav>nav.app-common-nav,.sidebar>nav.app-common-nav{height:244px!important;min-height:244px!important;flex:none;letter-spacing:0}
.app-common-nav>.app-shell-item{flex-shrink:0;letter-spacing:0!important}
html:not([data-nav-interactive]) .app-common-rail,html:not([data-nav-interactive]) .app-brand-svg,html:not([data-nav-interactive]) .app-brand-tail,html:not([data-nav-interactive]) .app-brand-plus{transition:none!important}
@media(min-width:781px){.app-common-rail>.app-common-nav>.app-shell-item,.app-common-rail>.app-common-nav>.app-rail-toggle{padding-inline-start:16px!important}}
/* The full SVG retains its intrinsic width while its tail is clipped. Never let
   those invisible bounds create a horizontal rail scrollbar or shift content. */
.app-common-rail{overflow-x:hidden!important}

@media(max-width:780px){.app-mobile-nav,.sidebar-close{min-width:44px!important;min-height:44px!important}}
@media(max-width:780px){.taxonomy{scrollbar-width:none}.taxonomy::-webkit-scrollbar{display:none}.pagination button{min-height:44px;font-size:12px;padding:8px 12px}}
@media(max-width:540px){.orggrid.institution-grid .orgcard.institution-card{min-height:110px;padding:16px!important;gap:12px}.orgcard.institution-card .institution-card__identity{align-items:center}.orgcard.institution-card .institution-card__footer{margin-top:0}.orgcard.institution-card .org-count{font-size:12px}}

/* The brand already returns home; omit the redundant legacy back link. */
.app-common-rail .navbottom>a{display:none!important}

/* Institution links share the real opportunity browser and native link behavior. */
a.institution-card{text-decoration:none;color:inherit}

/* Native document snapshots swallowed rapid follow-up clicks in the embedded
   browser. Keep route changes immediate and animate only explicit rail toggles. */
@view-transition{navigation:none}
::view-transition-group(profile-rail){animation:none!important}
::view-transition-old(profile-rail){animation:none!important;opacity:0}
::view-transition-new(profile-rail){animation:none!important;opacity:1}
.app-common-rail{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;line-height:1.5}
.app-common-nav>.app-shell-item,.app-common-nav>.app-shell-item.active{font-weight:500!important}
.app-common-nav>.app-shell-item svg{flex:0 0 19px;display:block}
.app-common-nav>.app-shell-item,.app-rail-toggle{box-shadow:none;outline-offset:-3px}
/* Account controls previously inherited three different page line heights. */
.app-common-rail .account,.app-common-rail .profile{height:60px!important;min-height:60px!important;max-height:60px;line-height:18px!important;border:0!important;padding:12px 10px!important;margin:0!important;display:flex;align-items:center;gap:10px}
.app-common-rail .profile p{line-height:18px!important}
.app-common-rail .account small,.app-common-rail .profile small{line-height:15px!important;margin-top:2px!important}
.app-common-rail>.account,.app-common-rail .sidebar-bottom,.app-common-rail .navbottom{margin-top:auto!important;border-top:1px solid #dfe5eb!important;padding-top:0!important}
@media(min-width:781px){
 .app-common-rail{position:fixed!important;inset:0 auto 0 0!important;height:100dvh!important;overflow-y:auto}
 .app:has(>.sidebar.app-common-rail)>.workspace{grid-column:2;min-width:0}
 html:not([data-nav-interactive]) .app:has(>.sidebar),html:not([data-nav-interactive]) .rail+.workspace,html:not([data-nav-interactive]) .appnav+.workspace,html:not([data-nav-interactive]) .app-shell-label,html:not([data-nav-interactive]) .app-rail-toggle-label,html:not([data-nav-interactive]) .app-rail-toggle svg{transition:none!important}
}

.app-common-rail .navbottom,.app-common-rail .sidebar-bottom{flex:none;width:100%;height:61px;min-height:61px;margin-bottom:0!important;padding:0!important}
.app-common-rail .account .avatar,.app-common-rail .profile .avatar{width:30px!important;height:30px!important;min-width:30px!important;display:grid;place-items:center;flex:none}

/* Transition snapshots must never intercept a second navigation click. */
::view-transition{pointer-events:none}

@media(min-width:781px){
 .app-common-rail .navbottom,.app-common-rail .sidebar-bottom{position:static!important}
 .app-common-rail .account,.app-common-rail .profile{position:absolute!important;left:14px!important;right:14px!important;bottom:18px!important;width:calc(100% - 28px)!important}
}

/* The account identity never reflows while the rail changes width. */
.app-common-rail .account,.app-common-rail .profile{overflow:hidden;white-space:nowrap}
.app-common-rail .account>.avatar,.app-common-rail .profile>.avatar{position:absolute;left:9.5px;top:50%;transform:translateY(-50%);margin:0!important}
.app-common-rail .account>span:not(.avatar),.app-common-rail .profile>p{position:absolute;left:50px;right:30px;top:12px;height:35px;min-width:0;margin:0!important;display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:1;transform:translateX(0);transition:opacity .18s ease,transform .36s cubic-bezier(.22,1,.36,1)}
.app-common-rail .account small,.app-common-rail .profile small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-common-rail .account>svg{position:absolute;right:10px;top:20px;width:14px;height:20px;display:block!important;opacity:1;transition:opacity .18s ease}
@media(min-width:781px){
 html[data-nav-collapsed="true"] .app-common-rail .account>span:not(.avatar),html[data-nav-collapsed="true"] .app-common-rail .profile>p{display:block!important;opacity:0;pointer-events:none;transform:translateX(-8px)}
 html[data-nav-collapsed="true"] .app-common-rail .account>svg{display:block!important;opacity:0;pointer-events:none}
}
@media(prefers-reduced-motion:reduce){.app-common-rail .account>span:not(.avatar),.app-common-rail .profile>p,.app-common-rail .account>svg{transition:none}}

@media(max-width:780px){.app-common-rail .account,.app-common-rail .profile{position:relative!important}}

.app-nav-close{display:none}
@media(max-width:780px){.app-common-rail .app-nav-close{position:absolute;display:grid;place-items:center;top:30px;right:8px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#627487;z-index:5;box-shadow:none;transform:none}.app-nav-close svg{width:18px;height:18px}.app-common-rail .app-nav-close:hover{background:#edf1f5}.app-common-rail .app-nav-close:active{background:#e3eaf1}}

/* profileplus:typography:start */
:root{--font-ui:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;--text-display:48px;--text-title:26px;--text-heading:20px;--text-body:14px;--text-label:12px;--text-caption:11px;--weight-regular:400;--weight-medium:500;--weight-semibold:600;--leading-title:1.3;--leading-body:1.6;--leading-copy:1.8}
body,button,input,select,textarea{font-family:var(--font-ui)}
body{font-size:var(--text-body);line-height:var(--leading-body)}
.toolbar h1,.topbar h1,header.top h1,.page-title h1{font-size:var(--text-title);font-weight:var(--weight-semibold);line-height:var(--leading-title);letter-spacing:-.02em}
.app-common-nav>.app-shell-item{font-size:var(--text-body)!important}
#advisor-view .advisor-message-body{font-size:var(--text-body);line-height:var(--leading-copy)}
/* profileplus:typography:end */

/* One stable account identity across the public catalogue and advisor shells. */
#profile-navigation .app-account-avatar{box-sizing:border-box!important;display:grid!important;place-items:center!important;width:32px!important;height:32px!important;min-width:32px!important;flex:0 0 32px!important;border:0!important;border-radius:50%!important;background:#edf1f3!important;color:#637787!important;padding:0!important;line-height:1!important}
#profile-navigation .app-account-avatar>svg{display:block;width:18px!important;height:18px!important;margin:0!important;flex:none;stroke:currentColor;fill:none}
/* The search container owns its rounded focus ring; avoid a second square
   browser outline around the text inside it. Keyboard focus remains visible. */
form.search input:focus,form.search input:focus-visible{outline:none!important;box-shadow:none!important}
form.search:focus-within{outline:2px solid var(--accent,#496b99)!important;outline-offset:2px}

/* === ANTIGRAVITY UNIFIED INSIDE-APP THEME v20261121r === */
:root{--ink:#111317;--muted:#5f6368;--line:#e8eaed;--accent:#111317;--blue:#1a73e8}
body{background:#fff!important;color:#111317}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #4285f4!important;outline-offset:2px}

/* Unified crisp pure-white sidebar rail across all pages */
#profile-navigation.app-common-rail{background:#fff!important;border-right:1px solid #eceef2!important}
#profile-navigation>.brand{color:#111317!important}
#profile-navigation>.app-common-nav>.app-shell-item,
#profile-navigation>.app-common-nav>.app-rail-toggle{
  color:#5f6368!important;border-radius:10px!important;
  transition:background .16s ease,color .16s ease!important
}
#profile-navigation>.app-common-nav>.app-shell-item:hover,
#profile-navigation>.app-common-nav>.app-rail-toggle:hover{
  background:#f5f7fa!important;color:#111317!important
}
html[data-nav-current="home"] #profile-navigation [data-shell-nav="home"],
html[data-nav-current="chat"] #profile-navigation [data-shell-nav="chat"],
html[data-nav-current="building"] #profile-navigation [data-shell-nav="building"],
html[data-nav-current="save"] #profile-navigation [data-shell-nav="save"],
#profile-navigation .app-shell-item.active{
  background:#f1f3f5!important;color:#111317!important;font-weight:600!important
}
#profile-navigation .app-shell-count{color:#70757a!important;font-weight:550}

/* Bottom-left Brand Homepage link aligned cleanly on the 39.5px rail axis above Account/Login */
#profile-navigation .app-brand-home{
  box-sizing:border-box;display:flex;align-items:center;gap:11px;
  height:40px;padding:0 12px 0 16px;border-radius:10px;text-decoration:none;
  color:#5f6368;font:500 13px/18px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
  white-space:nowrap;overflow:hidden;
  transition:background .16s ease,color .16s ease;
}
#profile-navigation .app-brand-home>svg{width:19px;height:19px;min-width:19px;flex:0 0 19px;display:block}
#profile-navigation .app-brand-home:hover{background:#f5f7fa;color:#111317}
@media(min-width:781px){
  #profile-navigation .app-brand-home{position:absolute;left:14px;right:14px;bottom:82px;width:calc(100% - 28px);z-index:2}
  html[data-nav-collapsed="true"] #profile-navigation>.app-common-nav>.app-shell-item,
  html[data-nav-collapsed="true"] #profile-navigation>.app-common-nav>.app-rail-toggle{
    justify-content:center!important;gap:0!important;padding:0!important;padding-inline-start:0!important;
  }
  html[data-nav-collapsed="true"] #profile-navigation .app-shell-label,
  html[data-nav-collapsed="true"] #profile-navigation .app-rail-toggle-label,
  html[data-nav-collapsed="true"] #profile-navigation .app-shell-count{
    display:none!important;
  }
  html[data-nav-collapsed="true"] #profile-navigation .app-brand-home{
    justify-content:center!important;gap:0!important;padding:0!important;
  }
  html[data-nav-collapsed="true"] #profile-navigation .app-brand-home .app-brand-home-label{
    display:none!important;
  }
  html[data-nav-collapsed="true"] #profile-navigation .account>.avatar,
  html[data-nav-collapsed="true"] #profile-navigation .profile>.avatar{
    left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
  }
}
@media(max-width:780px){
  #profile-navigation .app-brand-home{position:relative;left:auto;right:auto;bottom:auto;width:100%;margin-top:auto;margin-bottom:6px;padding:0 16px}
  #profile-navigation .account,#profile-navigation .profile{margin-top:0!important}
}

/* Bottom-left account trigger — unified hover & active state on /Profile+/me.html */
#profile-navigation .account,
#profile-navigation .profile{
  border-top:0!important;border-radius:12px!important;
  color:#111317!important;
  transition:background .16s ease,color .16s ease!important
}
#profile-navigation .account:hover,
#profile-navigation .profile:hover{background:#f5f7fa!important}
html[data-nav-current="account"] #profile-navigation .account,
#profile-navigation .account.is-active{
  background:#f1f3f5!important;color:#111317!important;font-weight:600!important
}
#profile-navigation .account small,
#profile-navigation .profile small{color:#70757a!important;font-weight:400!important}
#profile-navigation .app-account-avatar{
  background:#f1f3f5!important;color:#111317!important;
  border:1px solid rgba(17,19,23,.07)!important
}
html[data-nav-current="account"] #profile-navigation .app-account-avatar{
  background:#eef4ff!important;color:#1d4ed8!important;border-color:rgba(53,110,230,.22)!important
}

/* Global primary/secondary buttons, institution directory cards, drawer */
.primary,.official{
  background:linear-gradient(135deg,#528bff 0%,#356ee6 100%)!important;color:#fff!important;border-radius:999px!important;
  border:0!important;box-shadow:0 4px 14px rgba(53,110,230,.24);
  transition:background .16s,transform .15s,box-shadow .16s
}
.primary:hover,.official:hover{background:linear-gradient(135deg,#437ff8 0%,#2860db 100%)!important;box-shadow:0 6px 18px rgba(53,110,230,.32)}
.secondary,.text-button{color:#3c4043}
.secondary:hover,.text-button:hover{color:#111317}
.type.active,.nav.active{background:#eef4ff!important;color:#1d4ed8!important}
.orgcard{
  border:1px solid #e8eaed!important;border-radius:18px!important;background:#fff!important;
  color:#111317!important;box-shadow:0 1px 2px rgba(17,19,23,.02);
  transition:border-color .22s,box-shadow .24s cubic-bezier(.22,1,.36,1),transform .22s cubic-bezier(.22,1,.36,1)!important
}
.orgcard:hover{
  border-color:#cfd6e0!important;
  box-shadow:0 12px 28px rgba(17,19,23,.075)!important;
  transform:translateY(-3px)!important
}
.orgcard small{color:#70757a!important}
.orgcard .org-count{color:#111317!important;font-weight:560}
.orgcard:after{color:#9aa0a6!important}
.orgcard:hover:after{color:#111317!important}
.row:hover,.opportunity:hover{background:#f7f8fa!important}
.drawer{box-shadow:-18px 0 60px rgba(17,19,23,.11)!important;border-left:1px solid #e8eaed!important}

/* Crisp top-right locale toggle */
.profile-locale button,.profile-locale .locale-trigger{
  border-color:#e5e8ec!important;background:#fff!important;color:#3c4043!important;
  border-radius:999px!important
}
.profile-locale button:hover,.profile-locale .locale-trigger:hover{
  border-color:#cfd5dc!important;color:#111317!important;background:#fafbfd!important
}

/* === UNIFIED GROWTH ACTION PLAN (DRAWER STRIP + MY PLANS BOARD) v20261122 === */
.pp-plan-slot{padding:12px 22px 0;background:#fff;border-top:1px solid #f1f3f7}
.pp-plan-slot[hidden]{display:none!important}
.pp-plan-bar{
  padding:14px 16px;border-radius:16px;
  background:#f8fafd;border:1px solid #e9eef6;
  display:flex;flex-direction:column;gap:11px
}
.pp-plan-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pp-plan-title-wrap{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.pp-plan-label{font-size:12.5px;font-weight:640;color:#111317;letter-spacing:-.01em}
.pp-plan-countdown{
  display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;
  background:#eef4ff;color:#1d4ed8;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums
}
.pp-plan-countdown.is-urgent{background:#fff4e5;color:#b45309}
.pp-plan-countdown.is-overdue{background:#fef2f2;color:#b91c1c}
.pp-plan-sync{
  font-size:11px;color:#16a34a;opacity:0;transition:opacity .2s ease
}
.pp-plan-sync.is-visible{opacity:1}
.pp-plan-top-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.pp-plan-link{font-size:11.5px;font-weight:540;color:#356ee6;text-decoration:none}
.pp-plan-link:hover{text-decoration:underline}
.pp-plan-remove-btn{border:0;background:transparent;padding:2px 4px;font-size:11.5px;color:#8c929c;cursor:pointer}
.pp-plan-remove-btn:hover{color:#b91c1c}

/* Connected 4-stage Apple/Linear Segmented Control */
.pp-plan-seg{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;
  padding:3px;border-radius:11px;background:#edf0f6
}
.pp-plan-seg-btn{
  appearance:none;border:0;background:transparent;cursor:pointer;
  height:28px;padding:0 6px;border-radius:8px;
  font:inherit;font-size:12px;font-weight:520;color:#5f6368;white-space:nowrap;
  transition:background .16s,color .16s,box-shadow .16s
}
.pp-plan-seg-btn:hover{color:#111317}
.pp-plan-seg-btn.is-active{
  background:#ffffff;color:#111317;font-weight:620;
  box-shadow:0 1px 3px rgba(17,19,23,.09),0 0 0 .5px rgba(17,19,23,.04)
}

/* Compact Meta Row (Target Date + Ask Pupu) */
.pp-plan-meta-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pp-plan-due{
  display:inline-flex;align-items:center;gap:7px;font-size:11.5px;color:#6b7280
}
.pp-plan-due input[type="date"]{
  height:28px;padding:0 8px;border-radius:8px;border:1px solid #e2e6ef;
  background:#fff;color:#111317;font:inherit;font-size:11.5px;outline:none
}
.pp-plan-due input[type="date"]:focus{border-color:#356ee6;box-shadow:0 0 0 3px rgba(53,110,230,.12)}
.pp-plan-ask,.pp-bc-ask{
  display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:999px;
  background:#eef4ff;color:#1d4ed8;font-size:11.5px;font-weight:560;text-decoration:none;white-space:nowrap;
  transition:background .15s,color .15s
}
.pp-plan-ask:hover,.pp-bc-ask:hover{background:#356ee6;color:#fff}

/* Interactive Prep Checklist */
.pp-plan-checklist{display:flex;flex-direction:column;gap:6px}
.pp-step{
  display:flex;align-items:center;gap:8px;font-size:12.5px;color:#374151;cursor:pointer;line-height:1.4
}
.pp-step input[type="checkbox"]{
  width:14px;height:14px;margin:0;accent-color:#356ee6;cursor:pointer;flex:none
}
.pp-step span{flex:1;min-width:0}
.pp-step.is-done span{color:#9ca3af;text-decoration:line-through}
.pp-step-del{
  border:0;background:transparent;color:#9ca3af;font-size:14px;line-height:1;padding:0 4px;
  cursor:pointer;opacity:0;transition:opacity .15s,color .15s
}
.pp-step:hover .pp-step-del{opacity:1}
.pp-step-del:hover{color:#b91c1c}
.pp-step-add{
  width:100%;height:28px;padding:0 8px;border-radius:8px;border:1px dashed #dce2ec;
  background:transparent;color:#111317;font:inherit;font-size:12px;outline:none
}
.pp-step-add:focus{border-style:solid;border-color:#356ee6;background:#fff}

/* Auto-Saving Memo Line */
.pp-plan-memo{
  width:100%;height:32px;padding:0 10px;border-radius:9px;border:1px solid #e5e9f2;
  background:#fff;color:#111317;font:inherit;font-size:12px;outline:none
}
.pp-plan-memo:focus{border-color:#356ee6;box-shadow:0 0 0 3px rgba(53,110,230,.10)}

/* Merged Save/Plan Button Highlight */
#home-detail-save.is-planned{
  background:#eef4ff!important;border-color:rgba(53,110,230,.28)!important;color:#1d4ed8!important;font-weight:600!important
}

/* Unified "我的计划" Board inside /Profile+/home.html?nav=saved */
html[data-pp-plan-board-active="1"] #searchform,
html[data-pp-plan-board-active="1"] .category-nav-wrap,
html[data-pp-plan-board-active="1"] .browse-toolbar,
html[data-pp-plan-board-active="1"] .home-heading,
html[data-pp-plan-board-active="1"] #catalogue-status,
html[data-pp-plan-board-active="1"] #home-browser > section:not(#pp-plan-board),
html[data-pp-plan-board-active="1"] #home-dock,
html[data-pp-plan-board-active="1"] .result-heading,
html[data-pp-plan-board-active="1"] .pp-saved-stage{display:none!important}
.pp-plan-board{
  width:100%;max-width:none;margin:0 0 56px;padding:0;
  display:flex;flex-direction:column;gap:20px
}

/* Executive KPI Bento Strip */
.pp-mc-kpi{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px
}
@media(max-width:1100px){.pp-mc-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pp-mc-kpi{grid-template-columns:1fr}}
.pp-kpi-card{
  display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-height:112px;
  padding:16px 18px;border-radius:18px;background:#fff;border:1px solid #e9edf4;
  box-shadow:0 2px 10px rgba(17,19,23,.022);text-decoration:none;
  transition:border-color .18s,box-shadow .2s,transform .18s cubic-bezier(.22,1,.36,1)
}
.pp-kpi-card.is-urgent{border-color:rgba(217,119,6,.28);background:linear-gradient(180deg,#fffdf9 0%,#fff 100%)}
.pp-kpi-card.is-ai{
  background:radial-gradient(120% 100% at 100% 0%,rgba(82,139,255,.14),rgba(139,92,246,.07) 52%,#f8faff 100%);
  border-color:rgba(53,110,230,.22);cursor:pointer
}
.pp-kpi-card.is-ai:hover{
  border-color:rgba(53,110,230,.45);transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(53,110,230,.12)
}
.pp-kpi-label{font-size:11.5px;font-weight:580;color:#6b7280;letter-spacing:.01em}
.pp-kpi-val{display:flex;align-items:baseline;gap:6px}
.pp-kpi-val strong{font-size:26px;font-weight:700;color:#111317;letter-spacing:-.03em;line-height:1.1;font-variant-numeric:tabular-nums}
.pp-kpi-val em{font-style:normal;font-size:12.5px;font-weight:520;color:#6b7280}
.pp-kpi-sub{font-size:11.5px;color:#80868b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pp-kpi-bar{height:5px;border-radius:999px;background:#edf0f6;overflow:hidden}
.pp-kpi-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#356ee6,#6366f1);transition:width .25s ease}
.pp-kpi-ai-cta{font-size:14.5px;font-weight:660;color:#1d4ed8;letter-spacing:-.015em;line-height:1.3}

/* Toolbar: Filters + Calendar Export + Board/List Toggle */
.pp-mc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pp-mc-left,.pp-mc-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pp-mc-board-hint{font-size:12.5px;color:#6b7280;font-variant-numeric:tabular-nums}
.pp-mc-ics{
  appearance:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;
  height:34px;padding:0 13px;border-radius:999px;border:1px solid #e2e6ef;
  background:#fff;color:#374151;font:inherit;font-size:12.5px;font-weight:540;
  transition:border-color .16s,color .16s,background .16s
}
.pp-mc-ics svg{width:14px;height:14px;color:#5f6368}
.pp-mc-ics:hover{border-color:#cfd7e6;background:#f8fafd;color:#111317}
.pp-view-switch{
  display:inline-flex;align-items:center;padding:3px;border-radius:11px;background:#edf0f6;gap:2px
}
.pp-vs-btn{
  appearance:none;border:0;background:transparent;cursor:pointer;
  height:28px;padding:0 13px;border-radius:8px;font:inherit;font-size:12.5px;font-weight:540;color:#5f6368;
  transition:background .15s,color .15s,box-shadow .15s
}
.pp-vs-btn.is-active{background:#fff;color:#111317;font-weight:620;box-shadow:0 1px 3px rgba(17,19,23,.09)}

/* 4-Column Kanban Board */
.pp-kanban{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start
}
@media(max-width:1240px){.pp-kanban{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.pp-kanban{grid-template-columns:1fr}}
.pp-kanban-col{
  display:flex;flex-direction:column;gap:10px;min-height:220px;
  padding:12px;border-radius:18px;background:#f7f9fc;border:1px solid #edf0f6
}
.pp-kcol-head{
  display:flex;align-items:center;gap:7px;padding:2px 4px 4px
}
.pp-kcol-dot{width:8px;height:8px;border-radius:50%;flex:none}
.pp-kanban-col.is-planned .pp-kcol-dot{background:#356ee6}
.pp-kanban-col.is-applied .pp-kcol-dot{background:#8b5cf6}
.pp-kanban-col.is-participating .pp-kcol-dot{background:#f59e0b}
.pp-kanban-col.is-completed .pp-kcol-dot{background:#16a34a}
.pp-kcol-head strong{font-size:13px;font-weight:640;color:#111317}
.pp-kcol-head span{
  margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  background:#fff;border:1px solid #e6eaf2;color:#6b7280;font-size:11px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums
}
.pp-kcol-body{display:flex;flex-direction:column;gap:10px}
.pp-kcol-empty{
  padding:28px 12px;text-align:center;font-size:12px;color:#9aa0a6;
  border:1px dashed #e1e6f0;border-radius:12px
}

.pp-board-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pp-bf-pill{
  appearance:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;
  height:34px;padding:0 14px;border-radius:999px;border:1px solid #e5e8ef;
  background:#fff;color:#4b5563;font:inherit;font-size:13px;font-weight:520;
  transition:background .15s,border-color .15s,color .15s
}
.pp-bf-pill span{font-size:11.5px;color:#9ca3af;font-variant-numeric:tabular-nums}
.pp-bf-pill:hover{border-color:#cfd7e6;color:#111317}
.pp-bf-pill.is-active{background:#111317;border-color:#111317;color:#fff}
.pp-bf-pill.is-active span{color:rgba(255,255,255,.72)}

.pp-board-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:16px}
.pp-board-card{
  display:flex;flex-direction:column;gap:11px;padding:16px 18px;border-radius:16px;
  background:#fff;border:1px solid #e8ecf3;
  box-shadow:0 2px 8px rgba(17,19,23,.024);
  transition:border-color .18s,box-shadow .2s,transform .18s cubic-bezier(.22,1,.36,1)
}
.pp-board-card.is-kanban{padding:14px;border-radius:14px;gap:10px}
.pp-board-card:hover{border-color:#d2dcf0;box-shadow:0 10px 24px rgba(30,64,175,.06);transform:translateY(-1px)}
.pp-bc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.pp-bc-identity{display:flex;align-items:flex-start;gap:10px;min-width:0;flex:1}
.pp-bc-logo{width:28px;height:28px;border-radius:7px;object-fit:contain;flex:none;background:#fafbfd;border:1px solid #f0f2f6;padding:2px}
.pp-bc-head-left{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.pp-bc-title{
  font-size:14px;font-weight:640;color:#111317;text-decoration:none;letter-spacing:-.012em;line-height:1.38;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.pp-bc-title:hover{color:#356ee6}
.pp-bc-org{font-size:11.5px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pp-bc-del{
  appearance:none;border:0;background:transparent;color:#9aa0a6;cursor:pointer;
  width:24px;height:24px;border-radius:6px;font-size:16px;line-height:1;flex:none;
  display:grid;place-items:center;opacity:.45;transition:opacity .15s,color .15s,background .15s
}
.pp-board-card:hover .pp-bc-del{opacity:1}
.pp-bc-del:hover{color:#b91c1c;background:#fef2f2}
.pp-plan-seg.is-compact{max-width:420px}
.pp-bc-metabar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pp-bc-prog{display:flex;align-items:center;gap:6px;margin-left:auto;min-width:84px}
.pp-bc-prog-bar{flex:1;height:4px;border-radius:999px;background:#edf0f6;overflow:hidden;min-width:44px}
.pp-bc-prog-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#356ee6,#6366f1);transition:width .25s ease}
.pp-bc-prog span{font-size:11px;color:#6b7280;font-variant-numeric:tabular-nums}
.pp-bc-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:6px 14px}
.pp-bc-checks.is-compact{display:flex;flex-direction:column;gap:5px}
.pp-bc-memo{margin:0;font-size:12px;color:#5f6368;background:#fafbfd;padding:7px 10px;border-radius:9px}
.pp-bc-actions{
  display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;
  border-top:1px solid #f1f3f7;flex-wrap:wrap
}
.pp-bc-advance{
  appearance:none;border:1px solid #e2e6ef;background:#fff;color:#111317;cursor:pointer;
  height:28px;padding:0 10px;border-radius:999px;font:inherit;font-size:11.5px;font-weight:560;
  transition:border-color .15s,background .15s,color .15s
}
.pp-bc-advance:hover{border-color:#356ee6;background:#eef4ff;color:#1d4ed8}

/* === DESIGN_SYSTEM UNIFICATION: INSTITUTIONS, AI ADVISOR & EMPTY STATES v20261121u === */

/* A. Institution Directory & Catalogue (/Profile+/catalogue.html) — Unified with Home & DESIGN_SYSTEM.md */
body:has(> .workspace > header.top > .crumb){
  background:#fff!important;color:#111317
}
body:has(> .workspace > header.top > .crumb) .workspace{
  background:
    radial-gradient(960px 420px at 78% -4%,rgba(66,133,244,.048),rgba(139,92,246,.024) 48%,transparent 74%),
    #fff!important;
  min-height:100dvh
}
@media(min-width:781px){
  body:has(> .workspace > header.top > .crumb) header.top{
    height:0!important;min-height:0!important;padding:0!important;border-bottom:0!important;
    background:transparent!important;position:relative;z-index:20;overflow:visible
  }
  body:has(> .workspace > header.top > .crumb) header.top .crumb{display:none!important}
  body:has(> .workspace > header.top > .crumb) header.top .profile-locale{
    position:absolute!important;right:44px!important;top:14px!important;margin-left:0!important
  }
}
main.page{max-width:1540px!important;padding:52px 44px 72px!important}
main.page .heading{align-items:flex-end!important;gap:28px!important;margin-bottom:28px!important}
main.page .heading h1{
  font-size:32px!important;font-weight:700!important;letter-spacing:-.04em!important;
  line-height:1.12!important;color:#111317!important;margin:0 0 6px!important
}
main.page .heading .lede{font-size:14px!important;color:#6b7280!important;line-height:1.5!important}
main.page .heading form.search{
  height:52px!important;width:min(440px,46%)!important;
  border:1px solid rgba(17,19,23,.095)!important;border-radius:999px!important;
  padding:0 16px 0 20px!important;background:#fff!important;
  box-shadow:0 10px 30px rgba(17,19,23,.055),0 1px 2px rgba(17,19,23,.025)!important;
  transition:border-color .2s,box-shadow .24s cubic-bezier(.22,1,.36,1)!important
}
main.page .heading form.search:hover{
  border-color:rgba(17,19,23,.16)!important;
  box-shadow:0 14px 36px rgba(17,19,23,.08),0 2px 4px rgba(17,19,23,.035)!important
}
main.page .heading form.search:focus-within{
  outline:none!important;border-color:#111317!important;
  box-shadow:0 0 0 4px rgba(66,133,244,.12),0 16px 40px rgba(17,19,23,.09)!important
}
main.page .heading form.search svg{width:18px!important;height:18px!important;color:#5f6368!important}
main.page .heading form.search input{font-size:14.5px!important;color:#111317!important;letter-spacing:-.01em}
main.page .heading form.search input::placeholder{color:#8b9199!important}
main.page .heading form.search .kbd{
  display:inline-flex;align-items:center;justify-content:center;height:24px;padding:0 8px;
  font-size:11px;font-weight:560;color:#70757a;background:#f7f8fa;border:1px solid #eceef2;
  border-radius:8px
}

/* Desktop Native Locked-Pane Shell for Institution Directory (only #results card grid scrolls!) */
@media(min-width:781px){
  html[data-nav-current="building"],
  html[data-nav-current="building"] body{height:100dvh!important;overflow:hidden!important}
  html[data-nav-current="building"] .workspace{height:100dvh!important;min-height:0!important;overflow:hidden!important}
  html[data-nav-current="building"] main.page{
    height:100dvh!important;display:flex!important;flex-direction:column!important;
    overflow:hidden!important;padding:44px 44px 0!important
  }
  html[data-nav-current="building"] main.page>.heading{flex:none!important;margin-bottom:22px!important}
  html[data-nav-current="building"] main.page>.browser{
    flex:1!important;min-height:0!important;height:100%!important;overflow:hidden!important;align-items:stretch!important
  }
  html[data-nav-current="building"] main.page .taxonomy{
    position:static!important;height:100%!important;max-height:none!important;
    overflow-y:auto!important;padding-bottom:28px!important;scrollbar-width:none
  }
  html[data-nav-current="building"] main.page .taxonomy::-webkit-scrollbar{display:none}
  html[data-nav-current="building"] main.page>.browser>section{
    display:flex!important;flex-direction:column!important;min-height:0!important;height:100%!important;overflow:hidden!important
  }
  html[data-nav-current="building"] .filters,
  html[data-nav-current="building"] .additional,
  html[data-nav-current="building"] .selected,
  html[data-nav-current="building"] .resultmeta{flex:none!important}
  html[data-nav-current="building"] #results{
    flex:1!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;
    padding:4px 6px 32px 2px!important;scrollbar-width:thin
  }
  html[data-nav-current="building"] .pagination,
  html[data-nav-current="building"] .footer{display:none!important}
}
/* Generous 1-line Taxonomy Sidebar in catalogue.html */
main.page .browser{grid-template-columns:210px minmax(0,1fr)!important;gap:36px!important;align-items:start!important}
@media(max-width:1150px){main.page .browser{grid-template-columns:190px minmax(0,1fr)!important;gap:24px!important}}
@media(max-width:760px){main.page{padding:24px 18px 80px!important}main.page .browser{display:block!important}}
.org-scroll-sentinel{
  grid-column:1 / -1;padding:22px 0 12px;text-align:center;
  font-size:12.5px;color:#8b949f;letter-spacing:.01em
}
.taxonomy{padding-top:4px!important;padding-right:0!important}
.taxonomy .eyebrow{
  font-size:11px!important;font-weight:600!important;letter-spacing:.04em!important;
  color:#9ca3af!important;margin:0 0 10px 12px!important
}
.taxonomy button,.type{
  padding:9px 12px!important;border-radius:11px!important;
  font-size:13px!important;font-weight:500!important;color:#4b5563!important;line-height:1.35!important;
  transition:background .16s,color .16s,transform .14s!important
}
.taxonomy button span,.type span{
  font-size:11.5px!important;font-weight:520!important;color:#9ca3af!important;
  font-variant-numeric:tabular-nums
}
.taxonomy button:hover,.type:hover{background:#f5f7fa!important;color:#111317!important}
.taxonomy button.active,.taxonomy button[aria-pressed="true"],.type.active{
  background:#eef4ff!important;color:#1d4ed8!important;font-weight:600!important
}
.taxonomy button.active span,.type.active span{color:#356ee6!important}
.filters{padding-bottom:14px!important;border-bottom:1px solid #f1f3f5!important}
.filters button,.filters select,#institution-type-trigger{border-radius:999px!important}
#institution-type-trigger{
  height:38px!important;min-height:38px!important;padding:0 14px!important;
  border:1px solid #e5e8ec!important;background:#fff!important;color:#374151!important;
  font-size:13px!important;font-weight:520!important
}
#institution-type-trigger:hover,#institution-type-trigger[aria-expanded=true]{
  border-color:rgba(53,110,230,.28)!important;background:#fafcff!important;color:#111317!important
}
.selected button{
  border-radius:999px!important;background:#eef4ff!important;color:#1d4ed8!important;
  border:1px solid rgba(53,110,230,.22)!important;font-size:12px!important
}
.resultmeta{
  height:44px!important;padding:0!important;border-bottom:0!important;
  font-size:12.5px!important;color:#80868b!important;font-variant-numeric:tabular-nums
}
.resultmeta strong{font-size:14px!important;font-weight:640!important;color:#111317!important}

/* Sculpted Institution Cards in catalogue.html — Unified 1:1 with Home's .inst-card! */
.orggrid,.orggrid.institution-grid{
  grid-template-columns:repeat(auto-fill,minmax(268px,1fr))!important;
  gap:16px!important;padding-top:6px!important;margin-top:0!important
}
.orgcard,.orgcard.institution-card{
  position:relative;display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:14px!important;
  min-height:132px!important;padding:18px 20px 16px!important;
  border:1px solid rgba(17,19,23,.08)!important;border-radius:20px!important;
  background:linear-gradient(160deg,#ffffff 58%,#f8fafe 100%)!important;
  color:#111317!important;
  box-shadow:0 2px 8px rgba(17,19,23,.024),inset 0 1px 0 #fff!important;
  transition:border-color .2s,box-shadow .26s cubic-bezier(.22,1,.36,1),transform .24s cubic-bezier(.22,1,.36,1),background .2s!important
}
.orgcard:hover,.orgcard.institution-card:hover{
  border-color:rgba(53,110,230,.26)!important;background:#fff!important;
  box-shadow:0 16px 36px rgba(17,19,23,.08),0 2px 6px rgba(17,19,23,.03)!important;
  transform:translateY(-3.5px)!important
}
.orgcard:active,.orgcard.institution-card:active{transform:scale(.986)!important}
.orgcard.institution-card:after{display:none!important}
.institution-card__identity{display:flex!important;align-items:center!important;gap:14px!important;flex:0 0 auto!important}
.institution-card .orglogo,.orgcard img{
  flex:0 0 40px!important;width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important;
  object-fit:contain!important;object-position:center center!important;
  padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;
  transition:transform .24s cubic-bezier(.22,1,.36,1)
}
.orgcard.institution-card:hover .orglogo{transform:scale(1.06)}
.institution-card__title{
  font-size:15px!important;font-weight:640!important;line-height:1.35!important;
  letter-spacing:-.016em!important;color:#111317!important;-webkit-line-clamp:2!important
}
.institution-card__original{
  margin-top:2px!important;font-size:12px!important;font-weight:450!important;
  line-height:1.35!important;color:#70757a!important;-webkit-line-clamp:1!important
}
.institution-card__footer{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  margin-top:auto!important;padding-top:10px!important;border-top:1px solid rgba(17,19,23,.045)!important
}
/* Quiet tabular-nums count (NO screaming blue pills on every card!) */
.orgcard .org-count,.orgcard.institution-card .org-count{
  display:inline-flex!important;align-items:center!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  color:#6b7280!important;font-size:12.5px!important;font-weight:520!important;
  font-variant-numeric:tabular-nums
}
.orgcard.institution-card:hover .org-count{color:#1d4ed8!important}
/* Signature circular hover-lit ↗ badge matching Home .inst-card-go */
.institution-card__arrow{
  width:28px!important;height:28px!important;border-radius:50%!important;flex:none!important;
  background:#f4f6f9!important;color:#6b7280!important;
  display:grid!important;place-items:center!important;font-size:13px!important;line-height:1!important;
  transition:background .18s,color .18s,transform .22s cubic-bezier(.22,1,.36,1)!important
}
.orgcard.institution-card:hover .institution-card__arrow{
  background:#eef4ff!important;color:#1d4ed8!important;transform:translate(1.5px,-1.5px)!important
}

/* Pagination pills in catalogue.html */
.pagination{margin-top:28px!important;font-size:12.5px!important;color:#6b7280!important}
.pager button{
  height:36px!important;padding:0 16px!important;border-radius:999px!important;
  border:1px solid rgba(17,19,23,.10)!important;background:#fff!important;color:#374151!important;
  font-size:12.5px!important;font-weight:540!important;
  transition:background .16s,border-color .16s,color .16s,transform .14s!important
}
.pager button:hover:not(:disabled){background:#eef4ff!important;border-color:rgba(53,110,230,.24)!important;color:#1d4ed8!important}
.pager button:active:not(:disabled){transform:scale(.96)!important}

/* Clean opportunity rows in catalogue.html */
.row{
  border-radius:16px!important;border:1px solid transparent!important;
  transition:background .16s,border-color .16s,box-shadow .18s!important
}
.row:hover{
  background:#fafbfd!important;border-color:rgba(17,19,23,.06)!important;
  box-shadow:0 4px 16px rgba(17,19,23,.035)!important
}

/* Unified Sculptural Empty State (Home Saved, Home Filter Empty, Catalogue Empty) */
.status,.pp-empty-card{
  max-width:520px;margin:44px auto 56px;padding:48px 36px 44px;text-align:center;
  border-radius:28px;border:1px solid rgba(17,19,23,.075);
  background:
    radial-gradient(420px 240px at 50% 0%,rgba(66,133,244,.08),rgba(139,92,246,.035) 50%,transparent 75%),
    #fff;
  box-shadow:0 14px 40px rgba(17,19,23,.045),0 1px 3px rgba(17,19,23,.02);
  animation:ppEmptyRise .38s cubic-bezier(.22,1,.36,1) both
}
@keyframes ppEmptyRise{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
.pp-empty-emblem{
  width:64px;height:64px;margin:0 auto 20px;border-radius:20px;
  background:linear-gradient(145deg,#eef4ff 0%,#e4eeff 100%);
  border:1px solid rgba(53,110,230,.16);color:#2563eb;
  display:grid;place-items:center;
  box-shadow:0 10px 24px rgba(53,110,230,.12);
  animation:ppAdvisorFloat 4.2s ease-in-out infinite
}
.pp-empty-emblem svg{width:28px;height:28px;stroke-width:1.65}
.pp-empty-title{
  margin:0 0 8px;font-size:19px;font-weight:670;letter-spacing:-.025em;color:#111317
}
.pp-empty-desc{
  margin:0 auto 26px;max-width:360px;font-size:13.5px;line-height:1.65;color:#6b7280
}
.pp-empty-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.pp-empty-primary,.status button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:40px;padding:0 20px;border-radius:999px;border:0!important;
  background:linear-gradient(135deg,#528bff 0%,#356ee6 100%)!important;color:#fff!important;
  font-size:13.5px;font-weight:580;text-decoration:none!important;cursor:pointer;
  box-shadow:0 6px 18px rgba(53,110,230,.24);
  transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s,background .18s
}
.pp-empty-primary:hover,.status button:hover{
  transform:translateY(-1.5px);box-shadow:0 10px 24px rgba(53,110,230,.32);
  background:linear-gradient(135deg,#437ff8 0%,#2860db 100%)!important
}
.pp-empty-primary:active,.status button:active{transform:scale(.96)}
.pp-empty-secondary{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:40px;padding:0 18px;border-radius:999px;
  border:1px solid rgba(17,19,23,.10);background:#fff;color:#374151;
  font-size:13.5px;font-weight:540;text-decoration:none!important;cursor:pointer;
  transition:background .16s,border-color .16s,color .16s,transform .15s
}
.pp-empty-secondary:hover{background:#eef4ff;border-color:rgba(53,110,230,.24);color:#1d4ed8}
.pp-empty-secondary:active{transform:scale(.96)}

/* B. AI Advisor · 普普 (/探索在线应用.html?view=advisor) — Full-Bleed Ultrawide + Kinetic Stage */
body.app-advisor-page .workspace{
  background:#fff!important
}
@media(min-width:781px){
  body.app-advisor-page .workspace>.toolbar{
    left:252px!important;height:56px!important;min-height:56px!important;
    background:transparent!important;border-bottom:0!important
  }
}
/* CRITICAL: #advisor-view owns the full 2-column viewport (history rail flush left + full-bleed chat right) */
#advisor-view{
  max-width:none!important;width:100%!important;margin:0!important;padding:0!important;
  height:100dvh!important;
  grid-template-columns:252px minmax(0,1fr)!important;
  background:
    radial-gradient(960px 480px at 62% 18%,rgba(66,133,244,.055),rgba(139,92,246,.024) 48%,transparent 74%),
    #fff!important
}
@media(max-width:1080px) and (min-width:781px){
  #advisor-view{grid-template-columns:212px minmax(0,1fr)!important}
  body.app-advisor-page .workspace>.toolbar{left:212px!important}
}
@media(max-width:780px){
  #advisor-view{grid-template-columns:minmax(0,1fr)!important;height:calc(100dvh - 58px)!important}
}
#advisor-view .advisor-history-panel{
  background:#fafbfd!important;border-right:1px solid #eceef2!important;
  box-shadow:none!important;padding:20px 14px 16px!important
}
#advisor-view #advisor-history-new{
  min-height:42px!important;padding:0 14px!important;border-radius:13px!important;
  background:#eef4ff!important;color:#1d4ed8!important;
  border:1px solid rgba(53,110,230,.20)!important;font-size:13px!important;font-weight:600!important;
  box-shadow:0 2px 8px rgba(53,110,230,.08);
  transition:background .18s,color .18s,border-color .18s,transform .15s,box-shadow .18s!important
}
#advisor-view #advisor-history-new:hover{
  background:linear-gradient(135deg,#528bff 0%,#356ee6 100%)!important;color:#fff!important;
  border-color:transparent!important;box-shadow:0 6px 18px rgba(53,110,230,.26)!important
}
#advisor-view #advisor-history-new:active{transform:scale(.97)!important}
#advisor-view .advisor-history-scope{color:#8b949f!important;font-size:11px!important}
#advisor-view .advisor-history-group{
  font-size:11px!important;font-weight:600!important;color:#9ca3af!important;
  margin:16px 8px 6px!important
}
#advisor-view .advisor-history-row{
  border-radius:10px!important;padding:2px 5px!important;margin:2px 0!important;
  transition:background .15s ease!important
}
#advisor-view .advisor-history-row:hover{background:#eff2f6!important}
#advisor-view .advisor-history-row.active,#advisor-view .advisor-history-row.is-active{
  background:#eef4ff!important
}
#advisor-view .advisor-history-row.active .advisor-history-title,
#advisor-view .advisor-history-row.is-active .advisor-history-title{
  color:#1d4ed8!important;font-weight:600!important
}
#advisor-view .advisor-history-title{
  font-size:13px!important;color:#374151!important;font-weight:480!important
}

/* Centered Airy Chat Stage inside Full-Bleed Right Pane */
#advisor-view .advisor-chat-canvas{
  width:100%!important;max-width:860px!important;margin:0 auto!important;
  padding:0 clamp(24px,4vw,56px) 24px!important;
  background:transparent!important
}
#advisor-view.is-empty .advisor-chat-canvas{
  row-gap:26px!important;padding-top:24px!important;padding-bottom:clamp(56px,14dvh,150px)!important
}
#advisor-view.is-empty .welcome-intro{
  flex-direction:column!important;align-items:center!important;text-align:center!important;
  gap:14px!important;max-width:680px!important
}
#advisor-view .welcome-mark{
  display:inline-grid!important;place-items:center!important;
  width:96px!important;height:96px!important;margin:0 auto!important;padding:0!important;
  border-radius:50%!important;
  background:radial-gradient(circle at 50% 52%,rgba(66,133,244,.14) 0%,rgba(139,92,246,.06) 52%,transparent 76%)!important
}
#advisor-view .welcome-mark img{
  width:84px!important;height:84px!important;object-fit:contain!important;
  filter:drop-shadow(0 12px 22px rgba(17,19,23,.12))!important;
  animation:ppAdvisorFloat 4.4s ease-in-out infinite!important
}
@keyframes ppAdvisorFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
#advisor-view .advisor-welcome h2,#advisor-view.is-empty .advisor-welcome h2{
  font-size:32px!important;font-weight:700!important;letter-spacing:-.04em!important;
  line-height:1.18!important;color:#111317!important;margin:0!important;text-align:center!important
}
#advisor-view .advisor-welcome p{font-size:14px!important;color:#6b7280!important;margin-top:6px!important}

/* Frosted Starter Suggestion Cards */
#advisor-view .chat-suggestions{gap:10px!important;margin-top:18px!important;max-width:740px}
#advisor-view .chat-suggestions button{
  padding:10px 16px!important;border:1px solid rgba(17,19,23,.085)!important;
  border-radius:14px!important;background:#fff!important;color:#374151!important;
  font-size:13px!important;font-weight:520!important;line-height:1.4!important;
  box-shadow:0 2px 8px rgba(17,19,23,.03)!important;
  transition:border-color .18s,background .18s,color .18s,transform .18s cubic-bezier(.22,1,.36,1),box-shadow .2s!important
}
#advisor-view .chat-suggestions button:hover{
  border-color:rgba(53,110,230,.28)!important;background:#eef4ff!important;color:#1d4ed8!important;
  transform:translateY(-2px)!important;box-shadow:0 8px 20px rgba(53,110,230,.12)!important
}
#advisor-view .chat-suggestions button:active{transform:scale(.97)!important}

/* Sculptural Floating Prompt Composer */
#advisor-view .chat-composer-wrap{background:transparent!important;padding-top:10px!important}
#advisor-view.is-empty .chat-composer-wrap{max-width:740px!important;margin:0 auto!important}
#advisor-view .advisor-followup,#advisor-view.is-empty .advisor-followup{
  background:#fff!important;border:1px solid rgba(17,19,23,.105)!important;
  border-radius:24px!important;padding:16px 18px 13px!important;
  box-shadow:0 14px 38px rgba(17,19,23,.065),0 1px 3px rgba(17,19,23,.03)!important;
  transition:border-color .2s,box-shadow .24s cubic-bezier(.22,1,.36,1)!important
}
#advisor-view .advisor-followup:hover{border-color:rgba(17,19,23,.16)!important}
#advisor-view .advisor-followup:focus-within,#advisor-view.is-empty .advisor-followup:focus-within{
  border-color:#356ee6!important;
  box-shadow:0 0 0 4px rgba(53,110,230,.12),0 18px 44px rgba(17,19,23,.085)!important
}
#advisor-view .advisor-followup textarea{font-size:15px!important;color:#111317!important;line-height:1.65!important}
#advisor-view .advisor-followup textarea::placeholder{color:#9ca3af!important}
#advisor-view .file-button{
  width:36px!important;height:36px!important;padding:0!important;border-radius:50%!important;
  display:inline-grid!important;place-items:center!important;gap:0!important;
  border:1px solid rgba(17,19,23,.08)!important;background:#f7f8fa!important;color:#4b5563!important;
  transition:background .16s,border-color .16s,color .16s,transform .16s!important
}
#advisor-view .file-button>span:not([data-icon]){display:none!important}
#advisor-view .file-button:hover{
  background:#eef4ff!important;border-color:rgba(53,110,230,.24)!important;color:#1d4ed8!important;
  transform:scale(1.05)
}
#advisor-view .file-button:active{transform:scale(.94)}
#advisor-view .chat-send{
  width:38px!important;height:38px!important;border-radius:50%!important;
  background:linear-gradient(135deg,#528bff 0%,#356ee6 100%)!important;color:#fff!important;
  box-shadow:0 6px 16px rgba(53,110,230,.28)!important;
  transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s!important
}
#advisor-view .chat-send:hover:not(:disabled){transform:scale(1.06)!important;box-shadow:0 8px 20px rgba(53,110,230,.36)!important}
#advisor-view .chat-send:active:not(:disabled){transform:scale(.93)!important}
#advisor-view .chat-send:disabled{background:#e5e7eb!important;color:#9ca3af!important;box-shadow:none!important}

/* Conversation Bubbles, Quick Replies & Responsive Tables */
#advisor-view .advisor-turn.user .advisor-answer{
  background:#eef4ff!important;color:#111317!important;
  border:1px solid rgba(53,110,230,.14)!important;
  border-radius:20px 20px 6px 20px!important;padding:13px 18px!important
}
#advisor-view .advisor-answer table{
  display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;
  border:1px solid #eceef2;border-radius:12px
}
#advisor-view .advisor-quick-reply{
  border-radius:999px!important;border:1px solid rgba(53,110,230,.20)!important;
  background:#fff!important;color:#1d4ed8!important;font-weight:520!important;
  transition:background .16s,border-color .16s,transform .15s!important
}
#advisor-view .advisor-quick-reply:hover:not(:disabled){
  background:#eef4ff!important;border-color:rgba(53,110,230,.34)!important;transform:translateY(-1px)
}

/* Detail Drawer Footer Buttons (.hd-actions) — DESIGN_SYSTEM.md */
.hd-actions{border-top:1px solid #f1f3f5!important;background:#fff!important}
.hd-actions .hd-save,#home-detail-save{
  border:1px solid rgba(17,19,23,.12)!important;border-radius:999px!important;
  background:#fff!important;color:#374151!important;font-weight:560!important;
  transition:background .16s,border-color .16s,color .16s,transform .14s!important
}
.hd-actions .hd-save:hover,#home-detail-save:hover{
  background:#f5f7fa!important;border-color:rgba(17,19,23,.2)!important;color:#111317!important
}
.hd-actions .hd-save[aria-pressed="true"],#home-detail-save[aria-pressed="true"]{
  background:#eef4ff!important;border-color:rgba(53,110,230,.28)!important;color:#1d4ed8!important
}
.hd-actions .hd-primary,.hd-actions a.hd-primary{
  background:linear-gradient(135deg,#528bff 0%,#356ee6 100%)!important;
  color:#fff!important;border:0!important;border-radius:999px!important;
  font-weight:580!important;
  box-shadow:0 6px 18px rgba(53,110,230,.24)!important;
  transition:transform .16s,box-shadow .18s,background .16s!important
}
.hd-actions .hd-primary:hover,.hd-actions a.hd-primary:hover{
  background:linear-gradient(135deg,#437ff8 0%,#2860db 100%)!important;
  box-shadow:0 8px 22px rgba(53,110,230,.32)!important
}

/* === AI ADVISOR KINETIC WELCOME STAGE & LIVE THINKING v20261121ai (DESIGN_SYSTEM.md) === */
@property --pp-glow-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
@keyframes ppGlowSpin{to{--pp-glow-angle:360deg}}
@keyframes ppStageRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes ppAuraSpin{to{transform:rotate(360deg)}}
@keyframes ppOrbDrift1{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(42px,-26px,0) scale(1.08)}}
@keyframes ppOrbDrift2{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-38px,28px,0) scale(1.12)}}
@keyframes ppOrbDrift3{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(26px,32px,0) scale(.94)}}
@keyframes ppTextSweep{0%{background-position:200% 0}100%{background-position:-200% 0}}
@keyframes ppThinkWave{0%{background-position:200% 0}100%{background-position:-200% 0}}
@keyframes ppThinkMorph{
  0%,100%{border-radius:46% 54% 52% 48%/48% 46% 54% 52%;transform:rotate(0deg) scale(1)}
  50%{border-radius:54% 46% 46% 54%/54% 52% 48% 46%;transform:rotate(180deg) scale(1.08)}
}

/* Architectural Drafting Canvas & Editorial Welcome Stage (v20261121flagship) */
#advisor-view{
  position:relative!important;isolation:isolate;
  background:
    radial-gradient(72% 46% at 58% 0%,rgba(82,139,255,.085),rgba(139,92,246,.035) 50%,transparent 78%),
    #ffffff!important
}
.pp-advisor-ambient{
  position:absolute;inset:0 0 0 252px;overflow:hidden;pointer-events:none;z-index:0
}
@media(max-width:1080px) and (min-width:781px){.pp-advisor-ambient{left:212px}}
@media(max-width:780px){.pp-advisor-ambient{left:0}}
.pp-advisor-canvas{display:block;width:100%;height:100%}
#advisor-view:not(.is-empty) .pp-advisor-ambient{display:none}
#advisor-view .advisor-history-panel,#advisor-view .advisor-chat-canvas{position:relative;z-index:1}

/* Crisp Lightweight History Rail */
#advisor-view .advisor-history-panel{
  background:#fafbfd!important;
  border-right:1px solid #eef0f4!important
}
#advisor-view .advisor-history-scope{margin:12px 6px 6px!important}

/* Full-Width Chat Canvas so Scrollbar Sits at Viewport Edge (Zero Middle Gap) */
#advisor-view .advisor-chat-canvas{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  box-sizing:border-box!important
}
#advisor-view:not(.is-empty) .chat-toolbar{
  height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important
}
#advisor-view:not(.is-empty) .chat-messages{
  width:100%!important;padding:68px clamp(20px,4vw,48px) 32px!important;box-sizing:border-box!important;
  background:#ffffff!important;overflow-anchor:none!important;
  transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch;
}
.pp-gen-plan-bar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;}
.pp-share-plan-btn{
  display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;
  border-radius:999px;border:1px solid #dbe2ec;background:#ffffff;color:#334155;
  font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;
  transition:border-color .16s,background .16s,color .16s,transform .14s;
}
.pp-share-plan-btn:hover{border-color:#93c5fd;background:#f8fbff;color:#1d4ed8;transform:translateY(-1px);}
.pp-think-bullets{
  list-style:none;margin:8px 0 4px;padding:0 0 0 14px;
  border-left:2px solid #e2e8f0;display:flex;flex-direction:column;gap:5px;
  font-size:12.5px;line-height:1.55;color:#64748b;
}
.pp-think-bullets li{position:relative;padding-left:14px;}
.pp-think-bullets li::before{
  content:'✓';position:absolute;left:0;top:0;color:#94a3b8;font-size:11px;font-weight:700;
}

/* In-Page Slide-Over Pupu Prep Drawer on My Plans */
.pp-prep-drawer{
  position:fixed;inset:0;z-index:9990;pointer-events:none;opacity:0;
  transition:opacity .2s ease;
}
.pp-prep-drawer.open{pointer-events:auto;opacity:1;}
.pp-prep-backdrop{
  position:absolute;inset:0;background:rgba(15,23,42,.32);
}
.pp-prep-panel{
  position:absolute;top:0;right:0;bottom:0;width:min(480px,94vw);
  background:#ffffff;border-left:1px solid #e2e8f0;
  box-shadow:-18px 0 48px rgba(15,23,42,.14);
  display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .24s cubic-bezier(.16,1,.3,1);
}
.pp-prep-drawer.open .pp-prep-panel{transform:translateX(0);}
.pp-prep-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 20px;border-bottom:1px solid #eef2f6;background:#fafbfd;
}
.pp-prep-head-info{display:flex;align-items:center;gap:10px;min-width:0;}
.pp-prep-avatar{width:34px;height:34px;border-radius:10px;object-fit:contain;background:#eef4ff;padding:2px;flex:none;}
.pp-prep-head h4{margin:0;font-size:14.5px;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pp-prep-head small{display:block;font-size:11.5px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pp-prep-close{width:32px;height:32px;border-radius:9px;border:0;background:transparent;font-size:22px;color:#64748b;cursor:pointer;flex:none;}
.pp-prep-close:hover{background:#eef2f6;color:#0f172a;}
.pp-prep-body{
  flex:1;min-height:0;overflow-y:auto;padding:18px 20px;
  display:flex;flex-direction:column;gap:14px;font-size:13.5px;line-height:1.75;color:#1e293b;
}
.pp-prep-msg{border-radius:13px;padding:13px 16px;word-break:break-word;}
.pp-prep-msg.user{background:#eef4ff;color:#1e3a8a;align-self:flex-end;max-width:88%;font-size:13px;white-space:pre-wrap;}
.pp-prep-msg.ai{background:#f8fafc;border:1px solid #eef2f6;color:#1e293b;}
.pp-prep-h{margin:12px 0 6px;font-size:14px;font-weight:700;color:#0f172a;line-height:1.4;}
.pp-prep-h:first-child{margin-top:0;}
.pp-prep-p{margin:0 0 8px;font-size:13.5px;line-height:1.7;color:#334155;}
.pp-prep-p:last-child{margin-bottom:0;}
.pp-prep-ul{margin:4px 0 10px;padding-left:18px;display:flex;flex-direction:column;gap:5px;font-size:13.5px;line-height:1.65;color:#334155;}
.pp-prep-msg.ai strong{color:#0f172a;font-weight:650;}
.pp-prep-msg.ai code{background:#e2e8f0;padding:1px 5px;border-radius:4px;font-size:12px;}
.pp-prep-add-btn{
  align-self:flex-start;margin-top:6px;padding:7px 13px;border-radius:999px;
  border:1px solid rgba(59,91,253,.28);background:#eef4ff;color:#1d4ed8;
  font-size:12.5px;font-weight:600;cursor:pointer;
}
.pp-prep-add-btn:hover{background:#dbeafe;}
.pp-prep-foot{
  padding:12px 16px;border-top:1px solid #eef2f6;background:#ffffff;
  display:flex;gap:8px;align-items:center;
}
.pp-prep-foot input{
  flex:1;height:38px;padding:0 13px;border:1px solid #dbe2ec;border-radius:10px;
  font-size:13px;outline:none;
}
.pp-prep-foot input:focus{border-color:#3b5bfd;}
.pp-prep-foot button{
  height:38px;padding:0 15px;border:0;border-radius:10px;
  background:#3b5bfd;color:#fff;font-size:13px;font-weight:600;cursor:pointer;
}
.pp-prep-foot button:disabled{opacity:.5;cursor:not-allowed;}
.pp-drag-handle{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:28px;margin-left:-6px;border-radius:6px;
  color:#cbd5e1;cursor:grab;flex:none;transition:color .14s,background .14s;
}
.pp-plan-row:hover .pp-drag-handle{color:#94a3b8;}
.pp-drag-handle:hover{color:#475569;background:#f1f5f9;}
.pp-plan-row.is-dragging{opacity:.55;box-shadow:0 12px 32px rgba(15,23,42,.12)!important;cursor:grabbing;}
.pp-plan-row.is-drag-over{border-color:#3b5bfd!important;box-shadow:0 0 0 2px rgba(59,91,253,.14)!important;}
.pp-plan-row.is-collapsed .pp-row-workspace,
.pp-plan-row.is-collapsed .pp-row-footer{display:none!important;}
.pp-plan-row.is-collapsed .pp-row-head{padding-bottom:0!important;border-bottom:0!important;margin-bottom:0!important;cursor:pointer;}
.pp-row-expand{
  display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px;
  border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc;color:#475569;
  font-size:12px;font-weight:600;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;flex:none;
}
.pp-row-expand:hover{border-color:#cbd5e1;background:#f1f5f9;color:#0f172a;}
.pp-row-expand svg{transition:transform .2s ease;}
.pp-plan-row:not(.is-collapsed) .pp-row-expand svg{transform:rotate(180deg);}
.pp-row-prog{font-variant-numeric:tabular-nums;}

/* Interactive Drag-to-Schedule Month Calendar View */
.pp-cal-wrap{
  background:#ffffff;border:1px solid #e5eaf2;border-radius:16px;
  overflow:hidden;box-shadow:0 2px 10px rgba(15,23,42,.03);
}
.pp-cal-unsched{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  padding:12px 16px;background:#fafbfd;border-bottom:1px solid #eef2f6;
}
.pp-cal-unsched-lbl{font-size:12px;font-weight:600;color:#64748b;}
.pp-cal-nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;border-bottom:1px solid #eef2f6;background:#ffffff;
}
.pp-cal-nav strong{font-size:16px;font-weight:700;color:#0f172a;letter-spacing:-.02em;}
.pp-cal-nav-btns{display:flex;gap:6px;}
.pp-cal-nav-btns button{
  height:30px;padding:0 11px;border-radius:8px;border:1px solid #e2e8f0;
  background:#ffffff;color:#475569;font-size:12.5px;font-weight:600;cursor:pointer;
}
.pp-cal-nav-btns button:hover{border-color:#cbd5e1;background:#f8fafc;color:#0f172a;}
.pp-cal-grid{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
  background:#eef2f6;gap:1px;
}
.pp-cal-wday{
  background:#fafbfd;padding:9px 10px;text-align:center;
  font-size:12px;font-weight:650;color:#64748b;
}
.pp-cal-cell{
  background:#ffffff;min-height:84px;padding:7px 8px;
  display:flex;flex-direction:column;gap:4px;transition:background .15s;
}
.pp-cal-cell.is-other{background:#fafbfd;opacity:.62;}
.pp-cal-cell.is-drop{background:#eef4ff!important;box-shadow:inset 0 0 0 2px #3b5bfd;}
.pp-cal-daynum{
  font-size:12px;font-weight:650;color:#475569;align-self:flex-start;
  padding:2px 6px;border-radius:999px;font-variant-numeric:tabular-nums;
}
.pp-cal-cell.is-today .pp-cal-daynum{background:#3b5bfd;color:#ffffff;}
.pp-cal-pill{
  display:block;width:100%;text-align:left;padding:4px 8px;border-radius:7px;border:0;
  font-size:11.5px;font-weight:600;line-height:1.35;cursor:grab;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  background:#eef4ff;color:#1d4ed8;transition:transform .12s,box-shadow .12s;
}
.pp-cal-pill:hover{transform:translateY(-1px);box-shadow:0 3px 10px rgba(59,91,253,.16);}
.pp-cal-pill.is-applied{background:#fef3c7;color:#b45309;}
.pp-cal-pill.is-participating{background:#ede9fe;color:#6d28d9;}
.pp-cal-pill.is-completed{background:#d1fae5;color:#047857;text-decoration:line-through;opacity:.8;}
.pp-cal-unsched .pp-cal-pill{width:auto;max-width:220px;}

/* Rich 7-Day Weekly Study Planner Grid */
.pp-week-left{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;}
.pp-week-stat{font-size:12.5px;color:#64748b;font-weight:500;}
.pp-sync-pill{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:550;color:#64748b;opacity:0;transition:opacity .25s ease,color .2s ease;pointer-events:none;white-space:nowrap;}
.pp-sync-pill.is-show{opacity:1;}
.pp-sync-pill.is-saved{color:#059669;}
.pp-sync-pill.is-error{color:#b45309;}
.pp-sched-reset{margin-right:auto;border:0;background:transparent;padding:6px 4px;font-size:12.5px;font-weight:550;color:#64748b;cursor:pointer;transition:color .15s;}
.pp-sched-reset:hover{color:#0f172a;}
.pp-cal-pop .pp-bpop-act{align-items:flex-start;padding:8px 10px;}
.pp-cal-pop .pp-bpop-act strong{display:block;font-size:12.5px;font-weight:600;color:#0f172a;line-height:1.3;}
.pp-bpop-sub{display:block;font-size:11px;font-weight:450;color:#64748b;margin-top:2px;line-height:1.3;}
.pp-week-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.pp-pace-pills{
  display:inline-flex;align-items:center;gap:4px;
  background:#f1f5f9;padding:3px 4px 3px 10px;border-radius:9px;font-size:12px;color:#64748b;
}
.pp-pace-pills button{
  border:0;background:transparent;padding:4px 9px;border-radius:6px;
  font-size:12px;font-weight:650;color:#475569;cursor:pointer;
}
.pp-pace-pills button.is-active{background:#ffffff;color:#3b5bfd;box-shadow:0 1px 2px rgba(15,23,42,.08);}
.pp-week-grid{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
  background:#eef2f6;gap:1px;
}
@media (max-width: 900px){.pp-week-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Unlock full breathable desktop width on My Plans so all 7 days + 1-line toolbar fit effortlessly */
html.pp-nav-saved main,
body.pp-saved-mode main,
html.pp-nav-saved .page,
html.pp-nav-saved #home-browser,
html.pp-nav-saved #pp-plan-board{
  max-width:1360px!important;width:100%!important;
}
.pp-stage-filters{display:inline-flex;align-items:center;gap:6px;margin-left:8px;flex-wrap:wrap;}
.pp-week-col.is-rest{background:#fafbfd;}
.pp-week-col.is-rest .pp-wcol-hrs{background:#f1f5f9;color:#94a3b8;}
.pp-pace-pills{padding:3px!important;}

/* Refined Overflow Menu (⋯) on List Rows (replaces exposed ×) */
.pp-row-more{position:relative;flex:none;}
.pp-row-more-btn{
  width:30px;height:30px;border-radius:8px;border:1px solid transparent;
  background:transparent;color:#94a3b8;cursor:pointer;display:grid;place-items:center;
  transition:background .14s,color .14s,border-color .14s;
}
.pp-row-more-btn:hover,.pp-row-more.open .pp-row-more-btn{
  background:#f1f5f9;color:#0f172a;border-color:#e2e8f0;
}
.pp-row-menu{
  display:none;position:absolute;right:0;top:36px;z-index:60;min-width:152px;
  background:#ffffff;border:1px solid #e2e8f0;border-radius:12px;padding:5px;
  box-shadow:0 12px 32px -4px rgba(15,23,42,.14),0 2px 6px rgba(15,23,42,.05);
}
.pp-row-more.open .pp-row-menu{display:flex;flex-direction:column;gap:2px;}
.pp-row-menu-item{
  display:flex;align-items:center;width:100%;padding:7px 10px;border-radius:8px;
  border:0;background:transparent;text-align:left;text-decoration:none;
  font-size:12.5px;font-weight:550;color:#334155;cursor:pointer;white-space:nowrap;
  transition:background .12s,color .12s;
}
.pp-row-menu-item:hover{background:#f1f5f9;color:#0f172a;}
.pp-row-menu-item.is-danger{color:#dc2626;}
.pp-row-menu-item.is-danger:hover{background:#fef2f2;color:#b91c1c;}
.pp-row-menu-div{height:1px;background:#eef2f6;margin:4px 6px;}

/* Lightweight Schedule Personalization Modal (✦ 调整日程) */
.pp-sched-modal{
  position:fixed;inset:0;z-index:9995;display:flex;align-items:center;justify-content:center;
  padding:20px;animation:ppFadeIn .16s ease;
}
@keyframes ppFadeIn{from{opacity:0}to{opacity:1}}
.pp-sched-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.38);}
.pp-sched-dialog{
  position:relative;z-index:1;width:100%;max-width:468px;
  background:#ffffff;border:1px solid #e2e8f0;border-radius:18px;
  box-shadow:0 24px 60px -12px rgba(15,23,42,.24);overflow:hidden;
}
.pp-sched-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:18px 20px 14px;border-bottom:1px solid #f1f5f9;
}
.pp-sched-head h4{margin:0;font-size:16px;font-weight:700;color:#0f172a;letter-spacing:-.02em;}
.pp-sched-head p{margin:3px 0 0;font-size:12.5px;color:#64748b;}
.pp-sched-close{
  width:30px;height:30px;border-radius:8px;border:0;background:transparent;
  color:#64748b;font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center;
}
.pp-sched-close:hover{background:#f1f5f9;color:#0f172a;}
.pp-sched-body{padding:18px 20px;display:flex;flex-direction:column;gap:18px;}
.pp-sched-field label{
  display:block;font-size:12.5px;font-weight:650;color:#1e293b;margin-bottom:8px;
}
.pp-sched-field label span{font-weight:450;color:#94a3b8;margin-left:4px;}
.pp-sched-pace{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.pp-sched-pace button{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:11px 8px;border-radius:12px;border:1.5px solid #e2e8f0;background:#ffffff;
  cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.pp-sched-pace button strong{font-size:14px;font-weight:700;color:#0f172a;}
.pp-sched-pace button span{font-size:11.5px;color:#64748b;}
.pp-sched-pace button:hover{border-color:#cbd5e1;background:#fafbfd;}
.pp-sched-pace button.is-active{
  border-color:#3b5bfd;background:#eef4ff;box-shadow:0 0 0 3px rgba(59,91,253,.1);
}
.pp-sched-pace button.is-active strong{color:#1d4ed8;}
.pp-sched-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;width:100%;box-sizing:border-box;}
.pp-sched-days button{
  width:100%;min-width:0;height:34px;padding:0;border-radius:9px;border:1px solid #e2e8f0;background:#ffffff;
  font-size:12px;font-weight:600;color:#334155;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.pp-sched-days button:hover{border-color:#cbd5e1;background:#f8fafc;}
.pp-sched-days button.is-rest{
  background:#fef2f2;border-color:#fca5a5;color:#dc2626;
}
.pp-sched-input{
  width:100%;height:40px;padding:0 13px;border-radius:10px;border:1px solid #cbd5e1;
  background:#ffffff;font-size:13px;color:#0f172a;outline:none;box-sizing:border-box;
  transition:border-color .15s,box-shadow .15s;
}
.pp-sched-input:focus{border-color:#3b5bfd;box-shadow:0 0 0 3px rgba(59,91,253,.12);}
.pp-sched-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.pp-sched-chips button{
  padding:4px 10px;border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc;
  font-size:11.5px;font-weight:550;color:#475569;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.pp-sched-chips button:hover{border-color:#93c5fd;background:#eef4ff;color:#1d4ed8;}
.pp-sched-foot{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;
  padding:14px 20px;border-top:1px solid #f1f5f9;background:#fafbfd;
}
.pp-sched-cancel{
  height:36px;padding:0 15px;border-radius:9px;border:1px solid #e2e8f0;
  background:#ffffff;color:#475569;font-size:13px;font-weight:600;cursor:pointer;
}
.pp-sched-cancel:hover{background:#f8fafc;color:#0f172a;}
.pp-sched-apply{
  height:36px;padding:0 18px;border-radius:9px;border:0;
  background:linear-gradient(135deg,#4f7cff,#356ee6);color:#ffffff;
  font-size:13px;font-weight:650;cursor:pointer;
  box-shadow:0 4px 12px rgba(53,110,230,.24);transition:transform .14s,box-shadow .14s;
}
.pp-sched-apply:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(53,110,230,.32);}

/* Subtle Floating Toast */
.pp-plan-toast{
  position:fixed;left:50%;bottom:28px;z-index:9999;transform:translateX(-50%) translateY(12px);
  padding:9px 18px;border-radius:999px;background:#0f172a;color:#ffffff;
  font-size:13px;font-weight:600;box-shadow:0 12px 28px rgba(15,23,42,.22);
  opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;
}
.pp-plan-toast.is-show{opacity:1;transform:translateX(-50%) translateY(0);}
@media (min-width: 960px){
  .pp-mc-toolbar{flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;}
  .pp-mc-left,.pp-mc-right{flex-wrap:nowrap!important;white-space:nowrap!important;gap:6px!important;}
  .pp-bf-pill{padding:5px 11px!important;font-size:12.5px!important;}
}
.pp-week-col{
  background:#ffffff;min-height:360px;padding:12px 10px 16px;
  display:flex;flex-direction:column;gap:10px;transition:background .15s;
}
.pp-week-col.is-today{background:#fafcff;}
.pp-week-col.is-drop{background:#eef4ff!important;box-shadow:inset 0 0 0 2px #3b5bfd;}
.pp-week-col-head{
  display:flex;align-items:center;justify-content:space-between;gap:6px;
  padding-bottom:10px;border-bottom:1px solid #f1f5f9;
}
.pp-wcol-date{display:flex;align-items:center;gap:5px;white-space:nowrap;}
.pp-wcol-date strong{font-size:12.5px;font-weight:600;color:#64748b;white-space:nowrap;}
.pp-wcol-date span{
  display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 4px;border-radius:999px;
  font-size:12.5px;font-weight:700;color:#0f172a;font-variant-numeric:tabular-nums;white-space:nowrap;
}
.pp-week-col.is-today .pp-wcol-date strong{color:#3b5bfd;}
.pp-week-col.is-today .pp-wcol-date span{background:#3b5bfd;color:#ffffff;}
.pp-wcol-hrs{
  font-style:normal;font-size:11.5px;font-weight:550;color:#94a3b8;
  font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;
}
.pp-week-blocks{display:flex;flex-direction:column;gap:8px;flex:1;}
.pp-week-empty{font-size:11.5px;color:#cbd5e1;text-align:center;padding:36px 4px;}
.pp-study-block{
  background:#eff5ff;border:0;border-left:3px solid #3b5bfd;
  border-radius:8px;padding:9px 10px;cursor:grab;
  display:flex;flex-direction:column;gap:6px;
  transition:transform .14s,filter .14s,opacity .15s;
}
.pp-study-block:hover{transform:translateY(-1px);filter:brightness(.98);}
.pp-study-block.is-c1{background:#ecfdf5;border-left-color:#10b981;}
.pp-study-block.is-c2{background:#f5f3ff;border-left-color:#8b5cf6;}
.pp-study-block.is-c3{background:#fffbeb;border-left-color:#f59e0b;}
.pp-study-block.is-c4{background:#fdf2f8;border-left-color:#ec4899;}
.pp-study-block.is-done{opacity:.48;background:#f8fafc!important;}
.pp-study-block.is-done .pp-sb-proj{text-decoration:line-through;color:#64748b;}
.pp-sb-proj{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:12.5px;font-weight:650;color:#0f172a;text-decoration:none;line-height:1.38;
  word-break:break-word;
}
.pp-sb-proj:hover{color:#1d4ed8;}
.pp-sb-meta{display:flex;align-items:center;gap:6px;min-width:0;cursor:pointer;}
.pp-sb-chk{
  width:16px;height:16px;border-radius:999px;border:1.5px solid rgba(15,23,42,.24);
  background:rgba(255,255,255,.78);color:#ffffff;
  display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;flex:none;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.pp-sb-chk svg{display:block;width:10px;height:10px;}
.pp-sb-chk:hover{border-color:#3b5bfd;background:#ffffff;}
.pp-sb-chk.is-checked{border-color:#10b981;background:#10b981;color:#ffffff;}
.pp-sb-chk.is-delayed{border-color:#f59e0b;background:#f59e0b;color:#ffffff;}
.pp-study-block.is-delayed{background:#fffbeb!important;border-left-color:#f59e0b!important;}
.pp-sb-info{
  font-size:11px;font-weight:550;color:#64748b;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pp-sb-info.is-delayed{color:#b45309;font-weight:600;}

/* Hide sidebar badge count on 计划 */
.app-shell-count,#saved-count{display:none!important;}

/* Calm Month View Daily Load Dots */
.pp-m-load{
  margin-top:auto;display:flex;align-items:center;justify-content:space-between;
  padding-top:4px;
}
.pp-m-dots{display:inline-flex;align-items:center;gap:4px;}
.pp-m-dots i{width:6px;height:6px;border-radius:999px;background:#3b5bfd;display:block;}
.pp-m-dots i.is-c1{background:#10b981;}
.pp-m-dots i.is-c2{background:#8b5cf6;}
.pp-m-dots i.is-c3{background:#f59e0b;}
.pp-m-dots i.is-c4{background:#ec4899;}
.pp-m-load em{font-style:normal;font-size:10.5px;font-weight:600;color:#94a3b8;font-variant-numeric:tabular-nums;}

/* Period selector inside Adjust Schedule modal */
.pp-sched-periods{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;}
.pp-sched-periods button{
  height:34px;border-radius:9px;border:1px solid #e2e8f0;background:#ffffff;
  font-size:12px;font-weight:600;color:#334155;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.pp-sched-periods button:hover{border-color:#cbd5e1;background:#f8fafc;}
.pp-sched-periods button.is-active{border-color:#3b5bfd;background:#eef4ff;color:#1d4ed8;}

/* Compact Floating Status & Quick-Edit Popover on Weekly Study Blocks */
.pp-blk-pop{
  position:fixed;z-index:9998;width:232px;
  background:#ffffff;border:1px solid #e2e8f0;border-radius:14px;padding:8px;
  box-shadow:0 16px 40px -8px rgba(15,23,42,.2),0 2px 6px rgba(15,23,42,.06);
  animation:ppFadeIn .12s ease;
}
.pp-bpop-sec{display:flex;flex-direction:column;gap:2px;}
.pp-bpop-act{
  display:flex;align-items:center;gap:8px;width:100%;padding:7px 9px;border-radius:8px;
  border:0;background:transparent;font-size:12.5px;font-weight:600;color:#1e293b;
  cursor:pointer;text-align:left;transition:background .12s;
}
.pp-bpop-act:hover{background:#f1f5f9;}
.pp-bpop-act.is-cur{background:#ecfdf5;color:#047857;}
.pp-bdot{width:8px;height:8px;border-radius:999px;border:1.5px solid #94a3b8;flex:none;}
.pp-bdot.is-done{border-color:#10b981;background:#10b981;}
.pp-bdot.is-delay{border-color:#f59e0b;background:#f59e0b;}
.pp-bpop-div{height:1px;background:#eef2f6;margin:7px 2px;}
.pp-bpop-edit{display:flex;flex-direction:column;gap:8px;padding:2px 2px 0;}
.pp-bpop-lbl{font-size:11px;font-weight:650;color:#64748b;}
.pp-bpop-input{
  width:100%;height:32px;padding:0 9px;border-radius:8px;border:1px solid #cbd5e1;
  font-size:12.5px;color:#0f172a;outline:none;box-sizing:border-box;
}
.pp-bpop-input:focus{border-color:#3b5bfd;}
.pp-bpop-row{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.pp-bpop-pills{display:inline-flex;gap:4px;}
.pp-bpop-pills button{
  height:26px;padding:0 8px;border-radius:7px;border:1px solid #e2e8f0;background:#ffffff;
  font-size:11.5px;font-weight:600;color:#475569;cursor:pointer;
}
.pp-bpop-pills button.is-active{border-color:#3b5bfd;background:#eef4ff;color:#1d4ed8;}
.pp-bpop-foot{display:flex;align-items:center;justify-content:space-between;padding-top:4px;}
.pp-bpop-del{
  border:0;background:transparent;color:#dc2626;font-size:12px;font-weight:600;
  padding:4px 6px;border-radius:6px;cursor:pointer;
}
.pp-bpop-del:hover{background:#fef2f2;}
.pp-bpop-save{
  height:28px;padding:0 13px;border-radius:7px;border:0;background:#356ee6;color:#ffffff;
  font-size:12px;font-weight:650;cursor:pointer;
}
.pp-bpop-save:hover{background:#2558cc;}
/* Desktop 1-line Toolbar & 1-line Plan Row Alignment (down to 820px!) */
@media (min-width: 820px){
  .pp-mc-toolbar{flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;}
  .pp-mc-left,.pp-mc-right{flex-wrap:nowrap!important;white-space:nowrap!important;}
  .pp-plan-row .pp-row-head{flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;}
  .pp-plan-row .pp-row-identity{min-width:0!important;flex:1 1 auto!important;}
  .pp-plan-row .pp-row-titles{min-width:0!important;overflow:hidden!important;}
  .pp-plan-row .pp-row-title{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .pp-plan-row .pp-row-controls{flex:none!important;flex-wrap:nowrap!important;white-space:nowrap!important;margin-left:auto!important;}
}
/* Compact Clickable Stage Pill + Popover */
.pp-stage-pop-wrap{position:relative;flex:none;}
.pp-stage-pill{
  display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;
  border-radius:999px;border:1px solid #e2e8f0;background:#ffffff;
  font-size:12px;font-weight:600;color:#334155;cursor:pointer;
  transition:border-color .14s,background .14s;
}
.pp-stage-pill:hover{border-color:#cbd5e1;background:#f8fafc;}
.pp-stage-pill.is-planned{background:#eef4ff;border-color:rgba(59,91,253,.2);color:#1d4ed8;}
.pp-stage-pill.is-applied{background:#fffbeb;border-color:rgba(245,158,11,.28);color:#b45309;}
.pp-stage-pill.is-participating{background:#f5f3ff;border-color:rgba(139,92,246,.24);color:#6d28d9;}
.pp-stage-pill.is-completed{background:#ecfdf5;border-color:rgba(16,185,129,.26);color:#047857;}
.pp-stage-menu{
  display:none;position:absolute;right:0;top:36px;z-index:60;min-width:124px;
  background:#ffffff;border:1px solid #e2e8f0;border-radius:11px;padding:5px;
  box-shadow:0 12px 28px -4px rgba(15,23,42,.14);
}
.pp-stage-pop-wrap.open .pp-stage-menu{display:flex;flex-direction:column;gap:2px;}
.pp-stage-opt{
  display:flex;align-items:center;gap:7px;width:100%;padding:7px 10px;border-radius:7px;
  border:0;background:transparent;font-size:12.5px;font-weight:550;color:#334155;
  cursor:pointer;text-align:left;
}
.pp-stage-opt:hover{background:#f1f5f9;color:#0f172a;}
.pp-stage-opt.is-active{background:#eef4ff;color:#1d4ed8;font-weight:650;}

/* Month Overflow & Rest Day Labels */
.pp-m-more{font-size:10.5px;font-weight:600;color:#94a3b8;padding:1px 4px;}
.pp-m-rest{font-size:10.5px;font-weight:500;color:#cbd5e1;padding:2px 4px;}

/* Clean "Waiting for Result" Strip (Applied internships/applications) */
.pp-wait-strip{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;
  margin-top:12px;padding:11px 16px;border-radius:12px;
  background:#fffbeb;border:1px solid #fde68a;
}
.pp-wait-lbl{font-size:12.5px;font-weight:650;color:#b45309;white-space:nowrap;}
.pp-wait-pills{display:flex;flex-wrap:wrap;gap:8px;flex:1;min-width:0;}
.pp-wait-pill{
  display:inline-flex;align-items:center;gap:8px;padding:4px 6px 4px 11px;
  border-radius:999px;background:#ffffff;border:1px solid #fcd34d;font-size:12px;
}
.pp-wait-pill a{color:#0f172a;font-weight:600;text-decoration:none;}
.pp-wait-pill a:hover{color:#1d4ed8;text-decoration:underline;}
.pp-wait-pill button{
  border:0;background:#fef3c7;color:#b45309;border-radius:999px;
  padding:2px 9px;font-size:11.5px;font-weight:650;cursor:pointer;
}
.pp-wait-pill button:hover{background:#fde68a;color:#92400e;}
.pp-wait-stage{
  font-size:11px;font-weight:650;padding:1px 7px;border-radius:999px;
  background:#fef3c7;color:#b45309;white-space:nowrap;
}
.pp-wait-pill.is-offer{border-color:#6ee7b7;background:#ecfdf5;}
.pp-wait-pill.is-offer .pp-wait-stage{background:#d1fae5;color:#047857;}
.pp-wait-pill.is-fail{border-color:#e2e8f0;background:#f8fafc;opacity:.75;}
.pp-wait-pill.is-fail .pp-wait-stage{background:#f1f5f9;color:#64748b;}

/* Interview Milestone Pill inside Week Calendar */
.pp-iv-block{
  background:#fffbeb;border:1px solid #fde68a;border-left:3px solid #f59e0b;
  border-radius:8px;padding:7px 9px;cursor:pointer;display:flex;flex-direction:column;gap:2px;
  transition:transform .12s,box-shadow .12s;
}
.pp-iv-block:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(245,158,11,.16);}
.pp-iv-tag{font-size:11px;font-weight:700;color:#b45309;}
.pp-iv-name{
  font-size:12px;font-weight:600;color:#0f172a;line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
}

/* Flexible Application & Interview Round Tracker Popover */
.pp-round-pop{
  position:fixed;z-index:9998;width:304px;
  background:#ffffff;border:1px solid #e2e8f0;border-radius:15px;overflow:hidden;
  box-shadow:0 18px 44px -8px rgba(15,23,42,.22),0 2px 6px rgba(15,23,42,.06);
  animation:ppFadeIn .12s ease;
}
.pp-rpop-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:11px 14px;border-bottom:1px solid #f1f5f9;background:#fafbfd;
}
.pp-rpop-head strong{font-size:13px;font-weight:700;color:#0f172a;}
.pp-rpop-close{
  width:24px;height:24px;border-radius:6px;border:0;background:transparent;
  color:#64748b;font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center;
}
.pp-rpop-close:hover{background:#eef2f6;color:#0f172a;}
.pp-rpop-list{
  padding:10px 12px;display:flex;flex-direction:column;gap:6px;
  max-height:176px;overflow-y:auto;
}
.pp-rpop-empty{font-size:12px;color:#64748b;text-align:center;padding:8px 4px;}
.pp-rpop-row{
  display:flex;align-items:center;gap:7px;padding:5px 7px;border-radius:8px;
  background:#f8fafc;border:1px solid #eef2f6;
}
.pp-rpop-row.is-offer{background:#ecfdf5;border-color:#a7f3d0;}
.pp-rpop-row.is-fail{opacity:.65;}
.pp-rpop-dot{
  width:10px;height:10px;border-radius:999px;border:2px solid #f59e0b;background:#ffffff;
  padding:0;cursor:pointer;flex:none;
}
.pp-rpop-dot.is-pass,.pp-rpop-dot.is-offer{border-color:#10b981;background:#10b981;}
.pp-rpop-dot.is-fail{border-color:#94a3b8;background:#94a3b8;}
.pp-rpop-title{font-size:12.5px;font-weight:650;color:#0f172a;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pp-rpop-date{
  height:24px;padding:0 4px;border:1px solid #e2e8f0;border-radius:6px;
  font-size:11px;color:#475569;background:#ffffff;font-family:inherit;width:106px;flex:none;
}
.pp-rpop-del{
  border:0;background:transparent;color:#94a3b8;font-size:15px;line-height:1;
  width:20px;height:20px;border-radius:5px;cursor:pointer;flex:none;
}
.pp-rpop-del:hover{background:#fee2e2;color:#dc2626;}
.pp-rpop-quick{padding:10px 12px;border-top:1px solid #f1f5f9;display:flex;flex-direction:column;gap:8px;}
.pp-rpop-qlbl{font-size:11px;font-weight:650;color:#64748b;}
.pp-rpop-chips{display:flex;flex-wrap:wrap;gap:5px;}
.pp-rpop-chips button{
  padding:4px 9px;border-radius:999px;border:1px solid #e2e8f0;background:#ffffff;
  font-size:11.5px;font-weight:600;color:#334155;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.pp-rpop-chips button:hover{border-color:#93c5fd;background:#eef4ff;color:#1d4ed8;}
.pp-rpop-chips button.is-offer{border-color:#a7f3d0;background:#ecfdf5;color:#047857;}
.pp-rpop-chips button.is-fail{color:#64748b;}
.pp-rpop-custom{
  width:100%;height:32px;padding:0 10px;border-radius:8px;border:1px solid #cbd5e1;
  font-size:12px;color:#0f172a;outline:none;box-sizing:border-box;
}
.pp-rpop-custom:focus{border-color:#3b5bfd;}
.pp-rpop-foot{
  padding:9px 12px;border-top:1px solid #f1f5f9;background:#fafbfd;
  display:flex;justify-content:flex-end;
}
.pp-rpop-start{
  border:0;background:transparent;color:#1d4ed8;font-size:12px;font-weight:650;
  padding:4px 8px;border-radius:6px;cursor:pointer;
}
.pp-rpop-start:hover{background:#eef4ff;}

/* Ultra-Clean 1-Line Plan Status Strip inside Opportunity Detail Drawer */
.pp-drawer-strip{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 14px;margin:0 0 12px;border-radius:12px;
  background:#f8fafc;border:1px solid #e5eaf2;
}
.pp-ds-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.pp-stage-menu.is-up{top:auto;bottom:36px;left:0;right:auto;}
.pp-ds-date{
  position:relative;display:inline-flex;align-items:center;height:30px;padding:0 10px;
  border-radius:999px;border:1px solid #e2e8f0;background:#ffffff;
  font-size:12px;font-weight:600;color:#475569;cursor:pointer;
}
.pp-ds-date:hover{border-color:#cbd5e1;color:#0f172a;}
.pp-ds-date.is-urgent{background:#fffbeb;border-color:#fde68a;color:#b45309;}
.pp-ds-date.is-overdue{background:#fef2f2;border-color:#fecaca;color:#dc2626;}
.pp-ds-date input[type="date"]{
  position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;
}
.pp-ds-link{
  font-size:12.5px;font-weight:600;color:#356ee6;text-decoration:none;white-space:nowrap;
}
.pp-ds-link:hover{text-decoration:underline;}

/* 7-Day × 3-Period Time-Band Matrix (上午 / 下午 / 晚上) + Drag-to-Resize Handle */
.pp-week-matrix{
  display:grid;grid-template-columns:46px repeat(7,minmax(0,1fr));
  background:#eef2f6;gap:1px;
}
.pp-wm-corner{background:#fafbfd;}
.pp-wm-dayhead{
  background:#ffffff;padding:10px 8px 9px;
  display:flex;align-items:center;justify-content:space-between;gap:3px;min-width:0;
}
.pp-wm-dayhead .pp-wcol-hrs{font-size:11px;}
.pp-wm-dayhead.is-today{background:#fafcff;}
.pp-wm-dayhead.is-today .pp-wcol-date strong{color:#3b5bfd;}
.pp-wm-dayhead.is-today .pp-wcol-date span{background:#3b5bfd;color:#ffffff;}
.pp-wm-dayhead.is-rest{background:#fafbfd;}
.pp-wm-axis{
  background:#fafbfd;display:flex;align-items:flex-start;justify-content:center;
  padding-top:14px;font-size:11.5px;font-weight:650;color:#94a3b8;
  writing-mode:horizontal-tb;user-select:none;
}
.pp-wm-cell{
  background:#ffffff;min-height:112px;padding:8px 8px 10px;
  display:flex;flex-direction:column;gap:7px;transition:background .14s;
}
.pp-wm-cell.is-eve{min-height:76px;}
.pp-wm-cell.is-today{background:#fafcff;}
.pp-wm-cell.is-rest{background:#fafbfd;}
.pp-wm-cell.is-drop{background:#eef4ff!important;box-shadow:inset 0 0 0 2px #3b5bfd;}
.pp-study-block{position:relative;justify-content:space-between;padding-bottom:12px!important;}
.pp-study-block.is-resizing{
  box-shadow:0 0 0 2px #3b5bfd,0 8px 20px rgba(59,91,253,.18)!important;
  user-select:none;z-index:5;
}
.pp-sb-resize{
  position:absolute;left:8px;right:8px;bottom:0;height:10px;
  cursor:ns-resize;display:flex;align-items:center;justify-content:center;
}
.pp-sb-resize::after{
  content:'';width:24px;height:3px;border-radius:999px;background:rgba(15,23,42,.18);
  opacity:0;transition:opacity .14s,background .14s;
}
.pp-study-block:hover .pp-sb-resize::after,
.pp-study-block.is-resizing .pp-sb-resize::after{opacity:1;}
.pp-sb-resize:hover::after{background:#3b5bfd;}
.pp-blk-pop.is-minimal{width:176px;padding:6px;}
.pp-bpop-detail{text-decoration:none;color:#356ee6!important;}
.pp-bpop-detail:hover{background:#eef4ff!important;}
.pp-drag-trash{
  position:fixed;left:50%;bottom:24px;z-index:9997;
  transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 22px;border-radius:999px;
  background:#ffffff;border:1.5px dashed #fca5a5;color:#dc2626;
  font-size:13px;font-weight:650;
  box-shadow:0 16px 36px rgba(220,38,38,.16);
  transition:opacity .16s,transform .18s cubic-bezier(.16,1,.3,1),background .14s,border-color .14s,color .14s;
}
.pp-drag-trash.is-show{opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0);}
.pp-drag-trash.is-over{background:#dc2626;border-style:solid;border-color:#dc2626;color:#ffffff;transform:translateX(-50%) scale(1.05);}

/* Month View Interview Milestone Tag (matching Week amber/gold) & Empty Calendar Hint */
.pp-m-iv{
  font-size:11px;font-weight:650;padding:2px 6px;border-radius:5px;
  background:#fffbeb;color:#b45309;border-left:2.5px solid #f59e0b;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pp-cal-empty-hint{
  padding:16px 20px;text-align:center;font-size:12.5px;color:#94a3b8;
  border-top:1px solid #eef2f6;background:#fafbfd;
}

/* Crisp White Linear-Grade "申请与面试" Card (replaces yellow banner) */
.pp-app-card{
  margin-top:16px;background:#ffffff;border:1px solid #e5eaf2;border-radius:16px;
  box-shadow:0 2px 10px rgba(15,23,42,.03);overflow:hidden;
}
.pp-app-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 18px;border-bottom:1px solid #eef2f6;background:#ffffff;
}
.pp-app-head-l{display:flex;align-items:baseline;gap:8px;}
.pp-app-head strong{font-size:14.5px;font-weight:700;color:#0f172a;letter-spacing:-.01em;}
.pp-app-head span{font-size:12px;font-weight:600;color:#94a3b8;}
.pp-app-head em{font-style:normal;font-size:12px;color:#94a3b8;}
.pp-app-list{display:flex;flex-direction:column;}
.pp-app-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 18px;border-top:1px solid #f1f5f9;transition:background .12s;
}
.pp-app-row:first-child{border-top:0;}
.pp-app-row:hover{background:#fafbfd;}
.pp-app-id{display:flex;align-items:center;gap:11px;min-width:0;flex:1 1 240px;}
.pp-app-logo{
  width:34px;height:34px;border-radius:9px;border:1px solid #eef2f6;background:#ffffff;
  display:grid;place-items:center;flex:none;overflow:hidden;
}
.pp-app-logo img{width:24px;height:24px;object-fit:contain;}
.pp-app-logo.is-fallback{background:#f1f5f9;color:#475569;font-size:13px;font-weight:700;}
.pp-app-titles{min-width:0;display:flex;flex-direction:column;gap:2px;}
.pp-app-name{
  font-size:13.5px;font-weight:650;color:#0f172a;text-decoration:none;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pp-app-name:hover{color:#1d4ed8;}
.pp-app-org{font-size:11.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pp-app-steps{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end;}
.pp-app-sep{font-style:normal;font-size:12px;color:#cbd5e1;}
.pp-app-chip{
  display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;
  font-size:11.5px;font-weight:600;white-space:nowrap;
  background:#f1f5f9;color:#475569;
}
.pp-app-chip.is-todo{background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;}
.pp-app-chip.is-applied,.pp-app-chip.is-pending{background:#eef4ff;color:#1d4ed8;}
.pp-app-chip.is-pass{background:#ecfdf5;color:#047857;}
.pp-app-chip.is-offer{background:#dcfce7;color:#15803d;font-weight:700;}
.pp-app-chip.is-fail{background:#f1f5f9;color:#94a3b8;text-decoration:line-through;}
.pp-app-btn{
  height:30px;padding:0 12px;border-radius:8px;border:1px solid #e2e8f0;
  background:#ffffff;color:#334155;font-size:12px;font-weight:600;cursor:pointer;
  white-space:nowrap;flex:none;transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.pp-app-btn:hover{border-color:#93c5fd;background:#eef4ff;color:#1d4ed8;}
#project-grid{padding-bottom:84px!important;}

/* Mobile/Tablet Horizontal Smooth Scroll + Sticky Left Time-Band Axis + Inline Rename */
.pp-cal-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;}
.pp-week-matrix{min-width:740px;}
.pp-cal-grid{min-width:660px;}
.pp-wm-corner,.pp-wm-axis{position:sticky;left:0;z-index:3;box-shadow:1px 0 0 #eef2f6;}
.pp-inline-rename{
  width:100%;max-width:340px;height:30px;padding:0 9px;border-radius:7px;
  border:1.5px solid #3b5bfd;background:#ffffff;font-size:14px;font-weight:650;color:#0f172a;
  outline:none;box-shadow:0 0 0 3px rgba(59,91,253,.12);
}
/* All-widths overflow safety for unbroken long titles, interview tags, and mobile pills */
.pp-plan-row{max-width:100%;box-sizing:border-box;}
.pp-plan-row .pp-row-identity{min-width:0!important;max-width:100%!important;overflow:hidden!important;}
.pp-plan-row .pp-row-titles{min-width:0!important;flex:1 1 auto!important;overflow:hidden!important;}
.pp-plan-row .pp-row-title{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.pp-date-pill,.pp-date-pill span,.pp-date-pill em{white-space:nowrap!important;}
.pp-iv-tag{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (max-width: 819px){
  .pp-plan-row .pp-row-head{flex-wrap:wrap!important;gap:10px!important;}
  .pp-plan-row .pp-row-controls{width:100%!important;justify-content:space-between!important;margin-left:0!important;flex-wrap:wrap!important;gap:6px!important;}
  .pp-mc-toolbar{flex-wrap:wrap!important;gap:8px!important;}
  .pp-sched-periods button,.pp-sched-days button{font-size:11px!important;padding:0 2px!important;white-space:nowrap!important;}
}

/* Full-site Visual Polish Sweep (mp33) */
/* 1. Cohesive active filter pill & clean expanded inputs in List view */
.pp-bf-pill.is-active{
  background:#eef4ff!important;color:#1d4ed8!important;
  border-color:rgba(53,110,230,.28)!important;font-weight:650!important;
}
.pp-bf-pill.is-active span{background:rgba(53,110,230,.12)!important;color:#1d4ed8!important;}
.pp-row-note{resize:none!important;border-radius:10px!important;}
.pp-step-add{
  width:100%!important;box-sizing:border-box!important;height:34px!important;
  padding:0 11px!important;border:1px solid #e2e8f0!important;border-radius:9px!important;
  background:#fafbfd!important;margin-top:6px!important;
}
.pp-step-add:focus{border-color:#3b5bfd!important;background:#ffffff!important;}

/* 2. Detail Drawer: prevent sticky footer from slicing text + subtle elevation */
#home-resource-detail{padding-bottom:32px!important;}
.hd-actions{box-shadow:0 -8px 20px -12px rgba(15,23,42,.12)!important;}

/* 3. Home Institution strip graceful left & right edge fade mask */
.institution-gallery-viewport{
  position:relative;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 3.5%,#000 94%,transparent 100%);
  mask-image:linear-gradient(to right,transparent 0%,#000 3.5%,#000 94%,transparent 100%);
}

/* 4. Account Center (/Profile+/me.html): glassmorphic hero pills over gradient (zero flat white patches!) */
.me-hero .me-sync-pill,.me-hero .me-btn-danger,.me-hero .me-stat-card{
  background:rgba(255,255,255,.78)!important;
  
  border-color:rgba(255,255,255,.88)!important;
  box-shadow:0 2px 10px -4px rgba(15,23,42,.06);
}
.me-hero .me-stat-card:hover{background:rgba(255,255,255,.95)!important;}
@media (max-width: 760px){
  .pp-app-row{flex-wrap:wrap;gap:10px;}
  .pp-app-steps{justify-content:flex-start;}
}
.pp-gear-wrap{position:relative;}
.pp-gear-btn{
  width:30px;height:30px;border-radius:8px;border:1px solid #e2e8f0;
  background:#ffffff;color:#64748b;font-size:14px;cursor:pointer;display:grid;place-items:center;
}
.pp-gear-btn:hover{border-color:#cbd5e1;color:#0f172a;background:#f8fafc;}
.pp-gear-pop{
  display:none;position:absolute;right:0;top:36px;z-index:40;width:168px;
  background:#ffffff;border:1px solid #e2e8f0;border-radius:12px;padding:10px;
  box-shadow:0 12px 32px rgba(15,23,42,.12);
}
.pp-gear-wrap.open .pp-gear-pop{display:block;}
.pp-gear-title{font-size:11.5px;font-weight:650;color:#64748b;margin-bottom:7px;}
.pp-gear-opts{display:flex;flex-direction:column;gap:4px;}
.pp-gear-opts button{
  text-align:left;padding:6px 9px;border-radius:7px;border:0;background:transparent;
  font-size:12.5px;font-weight:600;color:#334155;cursor:pointer;
}
.pp-gear-opts button:hover{background:#f1f5f9;}
.pp-gear-opts button.is-active{background:#eef4ff;color:#1d4ed8;}
.pp-m-due{
  font-size:11px;font-weight:700;padding:2px 6px;border-radius:5px;
  background:#fef3c7;color:#b45309;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pp-m-block{
  font-size:11px;font-weight:600;padding:2px 6px;border-radius:5px;
  background:#eef4ff;color:#1d4ed8;border-left:2.5px solid #3b5bfd;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pp-m-block.is-c1{background:#ecfdf5;color:#047857;border-left-color:#10b981;}
.pp-m-block.is-c2{background:#f5f3ff;color:#6d28d9;border-left-color:#8b5cf6;}
.pp-m-block.is-c3{background:#fffbeb;color:#b45309;border-left-color:#f59e0b;}
.pp-m-block.is-c4{background:#fdf2f8;color:#be185d;border-left-color:#ec4899;}
#advisor-view:not(.is-empty) .advisor-turn{
  width:100%!important;max-width:780px!important;margin:0 auto!important;
  transform:translateZ(0);backface-visibility:hidden;contain:layout style;
}
/* ChatGPT-style Clickable Attachment Capsules beneath User Message */
.pp-msg-attachments{
  display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;
  margin-top:8px;max-width:85%;
}
.pp-file-capsule{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 13px 8px 9px;border-radius:14px;
  background:#ffffff;border:1px solid #e2e8f0;
  box-shadow:0 1px 3px rgba(15,23,42,.04);
  cursor:pointer;text-align:left;max-width:290px;
  transition:border-color .16s,box-shadow .18s,transform .15s,background .16s;
}
.pp-file-capsule:hover{
  border-color:#93c5fd;background:#f8fbff;
  box-shadow:0 6px 18px -6px rgba(53,110,230,.18);
  transform:translateY(-1px);
}
.pp-file-cap-icon{
  width:32px;height:32px;border-radius:9px;flex:none;
  display:grid;place-items:center;
  background:#fee2e2;color:#dc2626;
}
.pp-file-cap-icon[data-ext="DOC"],.pp-file-cap-icon[data-ext="DOCX"]{background:#dbeafe;color:#2563eb;}
.pp-file-cap-icon[data-ext="TXT"],.pp-file-cap-icon[data-ext="MD"]{background:#f1f5f9;color:#475569;}
.pp-file-cap-icon svg{width:17px;height:17px;}
.pp-file-cap-info{display:flex;flex-direction:column;min-width:0;gap:1px;}
.pp-file-cap-name{
  font-size:13px;font-weight:600;color:#111827;line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pp-file-cap-sub{font-size:11px;color:#64748b;line-height:1.25;}

/* Attachment Preview Modal */
.pp-file-modal{
  position:fixed;inset:0;z-index:9999;
  display:flex;align-items:center;justify-content:center;padding:24px;
  opacity:0;pointer-events:none;transition:opacity .18s ease;
}
.pp-file-modal.open{opacity:1;pointer-events:auto;}
.pp-file-modal-backdrop{
  position:absolute;inset:0;background:rgba(15,23,42,.42);
}
.pp-file-modal-card{
  position:relative;z-index:1;width:100%;max-width:680px;max-height:80dvh;
  background:#ffffff;border:1px solid #e2e8f0;border-radius:18px;
  box-shadow:0 24px 64px -16px rgba(15,23,42,.28);
  display:flex;flex-direction:column;overflow:hidden;
  transform:translateY(8px) scale(.98);transition:transform .2s cubic-bezier(.16,1,.3,1);
}
.pp-file-modal.open .pp-file-modal-card{transform:translateY(0) scale(1);}
.pp-file-modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 20px;border-bottom:1px solid #eef2f6;background:#fafbfd;
}
.pp-file-modal-title{display:flex;align-items:center;gap:12px;min-width:0;}
.pp-file-modal-title h4{
  margin:0;font-size:15px;font-weight:650;color:#0f172a;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pp-file-modal-title small{display:block;font-size:11.5px;color:#64748b;margin-top:2px;}
.pp-file-ext{
  font-size:11px;font-weight:700;padding:5px 8px;border-radius:8px;
  background:#fee2e2;color:#dc2626;flex:none;
}
.pp-file-modal-close{
  width:32px;height:32px;border-radius:9px;border:0;background:transparent;
  font-size:22px;line-height:1;color:#64748b;cursor:pointer;
}
.pp-file-modal-close:hover{background:#eef2f6;color:#0f172a;}
.pp-file-modal-body{
  padding:18px 22px 24px;overflow-y:auto;font-size:13.5px;line-height:1.75;
  color:#334155;white-space:pre-wrap;word-break:break-word;
}
#advisor-view:not(.is-empty) .chat-composer-wrap{
  width:100%!important;max-width:828px!important;margin:0 auto!important;
  padding:8px clamp(20px,4vw,24px) 16px!important;background:transparent!important;box-sizing:border-box!important
}

/* Editorial Left-Aligned Flagship Welcome Composition */
#advisor-view.is-empty .advisor-chat-canvas{
  display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:stretch!important;
  row-gap:0!important;gap:0!important;height:100%!important;min-height:0!important;
  padding:28px clamp(24px,4vw,44px) clamp(44px,9dvh,96px)!important;overflow-y:auto!important
}
#advisor-view.is-empty .chat-toolbar{flex:none!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important}
#advisor-view.is-empty .chat-messages,#advisor-view.is-empty .advisor-welcome{display:contents!important}
#advisor-view.is-empty .welcome-intro{
  flex:none!important;height:auto!important;min-height:0!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  gap:22px!important;width:100%!important;max-width:760px!important;margin:0 auto 24px!important;text-align:left!important;
  animation:ppStageRise .55s cubic-bezier(.16,1,.3,1) both!important
}

/* Borderless Pupu with Subtle Ground Shadow */
#advisor-view.is-empty .welcome-mark{
  position:relative!important;flex:none!important;
  width:78px!important;height:96px!important;margin:0!important;padding:0!important;
  border-radius:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
  display:grid!important;place-items:center!important;transform:none!important;animation:none!important
}
#advisor-view.is-empty .welcome-mark::before{display:none!important}
#advisor-view.is-empty .welcome-mark::after{
  content:"";position:absolute;bottom:2px;left:50%;width:44px;height:9px;
  border-radius:50%;transform:translateX(-50%);
  background:radial-gradient(ellipse at center,rgba(30,64,175,.16) 0%,rgba(30,64,175,0) 72%);
  animation:ppShadowBreath 4.4s ease-in-out infinite
}
@keyframes ppShadowBreath{0%,100%{transform:translateX(-50%) scale(1);opacity:.85}50%{transform:translateX(-50%) scale(.76);opacity:.45}}
#advisor-view.is-empty .welcome-mark img{
  width:auto!important;height:88px!important;max-width:none!important;object-fit:contain!important;
  filter:drop-shadow(0 10px 14px rgba(17,19,23,.10))!important;
  animation:ppAdvisorFloat 4.4s ease-in-out infinite!important
}

/* Editorial Right-Column Copy beside Pupu */
.pp-hero-text{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1}
.pp-hero-kicker{
  display:inline-flex;align-items:center;gap:7px;margin-bottom:8px;
  font-size:12px;font-weight:560;letter-spacing:.015em;color:#5f6368
}
.pp-hero-kicker i{
  width:6px;height:6px;border-radius:50%;background:#18a957;
  box-shadow:0 0 0 3px rgba(24,169,87,.16)
}
#advisor-view.is-empty .advisor-welcome h2,
#advisor-view.is-empty .welcome-copy{
  flex:0 0 auto!important;width:auto!important;height:auto!important;min-height:0!important;
  justify-content:flex-start!important;margin:0!important;
  font-size:34px!important;font-weight:700!important;letter-spacing:-.042em!important;
  line-height:1.16!important;text-align:left!important;
  background:linear-gradient(110deg,#111317 0%,#111317 42%,#356ee6 52%,#111317 62%,#111317 100%);
  background-size:260% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent!important;
  animation:ppTextSweep 8s ease-in-out 1.2s infinite
}
.pp-advisor-sub{
  margin:7px 0 0!important;max-width:560px;font-size:14px;line-height:1.6;color:#5f6368;text-align:left
}
#advisor-view:not(.is-empty) .pp-hero-kicker,
#advisor-view:not(.is-empty) .pp-advisor-sub,
#advisor-view:not(.is-empty) .pp-advisor-pillars{display:none!important}

/* Single-Layer Architectural Composer (Both Empty & Active Conversation) */
#advisor-view.is-empty .chat-composer-wrap{
  flex:none!important;width:100%!important;max-width:760px!important;margin:0 auto!important;padding:0!important;
  animation:ppStageRise .6s .08s cubic-bezier(.16,1,.3,1) both!important
}
#advisor-view .advisor-followup{
  border-radius:22px!important;padding:14px 18px 12px!important;
  border:1px solid #e2e6ef!important;
  background:#ffffff!important;
  box-shadow:0 12px 34px rgba(17,19,23,.052),0 2px 6px rgba(17,19,23,.025)!important;
  transition:border-color .22s ease,box-shadow .28s cubic-bezier(.22,1,.36,1)!important
}
#advisor-view.is-empty .advisor-followup{
  padding:18px 20px 14px!important;
  box-shadow:0 18px 46px rgba(17,19,23,.062),0 2px 6px rgba(17,19,23,.028)!important
}
#advisor-view .advisor-followup:hover{
  border-color:#cfd7e6!important;
  box-shadow:0 16px 40px rgba(17,19,23,.068),0 2px 8px rgba(17,19,23,.03)!important
}
#advisor-view .advisor-followup:focus-within{
  border:1.5px solid transparent!important;
  background:
    linear-gradient(#ffffff,#ffffff) padding-box,
    conic-gradient(from var(--pp-glow-angle),#528bff,#8b5cf6,#38bdf8,#528bff) border-box!important;
  animation:ppGlowSpin 3.6s linear infinite;
  box-shadow:0 18px 46px rgba(53,110,230,.11),0 4px 12px rgba(53,110,230,.045)!important
}
#advisor-view.is-empty .advisor-followup textarea{min-height:84px!important;font-size:15.5px!important}

/* Minimal Linear/Apple-Grade 3-Card Action Row below Composer */
.pp-advisor-pillars{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
  margin-top:16px;
  animation:ppStageRise .65s .14s cubic-bezier(.16,1,.3,1) both
}
.pp-action-card{
  appearance:none;font:inherit;text-align:left;cursor:pointer;
  display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;
  padding:13px 15px;border-radius:14px;
  background:rgba(250,251,253,.88);border:1px solid #ebedf2;
  box-shadow:0 1px 2px rgba(17,19,23,.02);
  transition:background .18s ease,border-color .18s ease,box-shadow .22s ease,transform .18s cubic-bezier(.22,1,.36,1)
}
.pp-action-card:hover{
  background:#ffffff;border-color:#d2dcf0;
  box-shadow:0 10px 26px rgba(30,64,175,.065),0 1px 3px rgba(17,19,23,.03);
  transform:translateY(-2px)
}
.pp-action-card:active{transform:translateY(0) scale(.99)}
.pp-ac-top{
  display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0
}
.pp-ac-top strong{
  font-size:13px;font-weight:620;letter-spacing:-.012em;color:#111317;
  line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.pp-ac-arrow{
  flex:none;font-size:12px;line-height:1;color:#9aa0a6;
  transition:transform .18s cubic-bezier(.22,1,.36,1),color .18s ease
}
.pp-action-card:hover .pp-ac-arrow{color:#356ee6;transform:translate(2px,-2px)}
.pp-ac-desc{
  font-size:11.5px;color:#70757a;line-height:1.45;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
#advisor-view.is-empty .advisor-privacy{margin:16px 0 0!important;font-size:11px!important;color:#9ca3af!important;text-align:center}

@media(max-width:780px){
  #advisor-view.is-empty .welcome-intro{flex-direction:column!important;align-items:flex-start!important;gap:12px!important}
  .pp-advisor-pillars{grid-template-columns:1fr;gap:12px}
}

#advisor-view .chat-send:not(:disabled){animation:ppSendReady .32s cubic-bezier(.34,1.56,.64,1)}
@keyframes ppSendReady{from{transform:scale(.7)}to{transform:scale(1)}}

/* Borderless Editorial Reasoning Stream (.advisor-turn.waiting) */
#advisor-view .advisor-turn.waiting .advisor-answer{
  display:block!important;padding:2px 0!important;background:transparent!important
}
#advisor-view .advisor-turn.waiting .advisor-answer::after{display:none!important}
.pp-think-card{
  max-width:520px;padding:0;border:0;border-radius:0;background:transparent;
  animation:ppStageRise .28s cubic-bezier(.16,1,.3,1) both
}
.pp-think-head{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:10px
}
.pp-think-pulse{
  flex:none;width:5px;height:5px;border-radius:50%;
  background:#356ee6;opacity:.85;
  animation:ppPulseFade 1.6s ease-in-out infinite
}
@keyframes ppPulseFade{0%,100%{opacity:.9;transform:scale(1)}50%{opacity:.3;transform:scale(.82)}}
.pp-think-title{
  font-size:13px;font-weight:560;letter-spacing:-.01em;
  background:linear-gradient(90deg,#374151 0%,#374151 36%,#356ee6 50%,#374151 64%,#374151 100%);
  background-size:240% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  animation:ppThinkWave 2.8s linear infinite
}
.pp-think-timer{
  font-size:11.5px;font-weight:450;color:#9ca3af;font-variant-numeric:tabular-nums
}
.pp-think-trace{
  list-style:none;margin:0 0 0 2px;padding:2px 0 2px 16px;
  border-left:1.5px solid #e7eaf0;
  display:flex;flex-direction:column;gap:7px
}
.pp-trace-step{
  display:flex;align-items:center;gap:8px;font-size:12.5px;line-height:1.5;
  color:#9ca3af;animation:ppStageRise .26s cubic-bezier(.16,1,.3,1) both
}
.pp-trace-dot{
  flex:none;width:13px;height:13px;display:inline-flex;align-items:center;justify-content:center;color:#9ca3af
}
.pp-trace-dot svg{width:11px;height:11px;display:none}
.pp-trace-step.is-active{color:#1f2937;font-weight:500}
.pp-trace-step.is-active .pp-trace-dot::before{
  content:"";width:5px;height:5px;border-radius:50%;background:#356ee6;
  animation:ppPulseFade 1.4s ease-in-out infinite
}
.pp-trace-step.is-done{color:#8c929c}
.pp-trace-step.is-done .pp-trace-dot{color:#6b7280}
.pp-trace-step.is-done .pp-trace-dot svg{display:block;opacity:.85}
.pp-trace-label{min-width:0}

/* Live SSE Streaming Text, Markdown Typography & Inline Cards */
#advisor-view .advisor-turn.waiting.is-streaming .advisor-answer,
#advisor-view .advisor-answer.pp-md-answer{
  color:#1d1d1f!important;font-size:14.5px!important;line-height:1.85!important;white-space:normal!important
}
.pp-md-h{
  margin:18px 0 8px!important;font-size:15.5px!important;font-weight:660!important;
  color:#111317!important;letter-spacing:-.015em!important;line-height:1.4!important
}
.pp-md-answer > .pp-md-h:first-child{margin-top:0!important}
.pp-md-p{margin:0 0 10px!important;color:#24292f!important;line-height:1.85!important}
.pp-md-p strong,.pp-md-list strong{font-weight:640;color:#111317}
.pp-md-p code,.pp-md-list code{
  font-size:12.5px;padding:1px 6px;border-radius:6px;background:#f3f5f9;color:#1d4ed8
}
.pp-md-list{margin:6px 0 12px!important;padding-left:20px!important;display:flex;flex-direction:column;gap:6px}
.pp-md-list li{color:#24292f!important;line-height:1.8!important}
.pp-md-hr{border:0;border-top:1px solid #eceef3;margin:16px 0}
.pp-inline-card-wrap{margin:10px 0 14px!important}
.pp-inline-card-wrap .advisor-recommendation.pp-flat-rec{
  display:flex!important;flex-direction:column!important;
  padding:11px 14px!important;border-radius:13px!important;
  border:1px solid #eaedf3!important;background:#ffffff!important;
  box-shadow:0 1px 3px rgba(17,19,23,.02)!important;
  transition:border-color .18s ease,box-shadow .2s ease!important
}
.pp-inline-card-wrap .advisor-recommendation.pp-flat-rec:hover{
  border-color:#d4def0!important;box-shadow:0 6px 18px rgba(30,64,175,.055)!important
}
.pp-inline-card-wrap .pp-flat-rec .advisor-rec-heading,
.pp-inline-card-wrap .pp-flat-rec .advisor-rec-top,
#advisor-view .advisor-recommendations-grid .pp-flat-rec .advisor-rec-top{
  display:flex!important;align-items:center!important;gap:11px!important;margin:0!important;min-height:36px!important
}
.pp-inline-card-wrap .pp-flat-rec .advisor-rec-summary,
#advisor-view .advisor-recommendations-grid .pp-flat-rec .advisor-rec-summary{flex:1;min-width:0}
.pp-inline-card-wrap .pp-flat-rec:not(.is-expanded) .advisor-rec-reason,
#advisor-view .advisor-recommendations-grid .pp-flat-rec:not(.is-expanded) .advisor-rec-reason{display:none!important}
.pp-inline-card-wrap .pp-flat-rec .advisor-rec-heading img,
.pp-inline-card-wrap .pp-flat-rec .advisor-rec-heading .orglogo{
  width:32px!important;height:32px!important;min-width:32px!important;border-radius:8px!important;flex:none!important
}
.pp-inline-card-wrap .pp-flat-rec h4{
  font-size:13.5px!important;font-weight:620!important;line-height:1.35!important;color:#111317!important;margin:0!important
}
.pp-inline-card-wrap .pp-flat-rec:not(.is-expanded) > p,
.pp-inline-card-wrap .pp-flat-rec:not(.is-expanded) .advisor-rec-reason,
.pp-inline-card-wrap .pp-flat-rec:not(.is-expanded) .advisor-rec-meta,
.pp-inline-card-wrap .pp-flat-rec:not(.is-expanded) dl,
.pp-inline-card-wrap .pp-flat-rec:not(.is-expanded) .advisor-rec-actions{display:none!important}
.pp-inline-card-wrap .pp-flat-rec.is-expanded > p,
.pp-inline-card-wrap .pp-flat-rec.is-expanded .advisor-rec-reason{
  margin:10px 0!important;padding-top:10px!important;border-top:1px solid #f0f2f6!important;
  color:#5f6368!important;font-size:12.5px!important;line-height:1.68!important
}
.pp-inline-card-pending{height:0;overflow:hidden}
.pp-stream-cursor{
  display:inline-block;width:2px;height:1.05em;margin-left:2px;vertical-align:-.14em;
  border-radius:2px;background:#356ee6;
  animation:ppCursorBlink .9s steps(2,end) infinite
}
@keyframes ppCursorBlink{0%,100%{opacity:1}50%{opacity:0}}

/* Compact Flat Expandable Recommendation Cards inside AI Advisor */
#advisor-view .advisor-recommendations-grid{
  display:flex!important;flex-direction:column!important;gap:8px!important;margin-top:14px!important
}
#advisor-view .advisor-recommendations-grid .advisor-recommendation.pp-flat-rec{
  display:flex!important;flex-direction:column!important;
  padding:11px 14px!important;border-radius:13px!important;
  border:1px solid #eaedf3!important;background:#ffffff!important;
  box-shadow:0 1px 3px rgba(17,19,23,.02)!important;
  transition:border-color .18s ease,box-shadow .2s ease,background .18s ease!important
}
#advisor-view .advisor-recommendations-grid .advisor-recommendation.pp-flat-rec:hover{
  border-color:#d4def0!important;box-shadow:0 6px 18px rgba(30,64,175,.055)!important
}
#advisor-view .advisor-recommendations-grid .pp-flat-rec .advisor-rec-heading{
  display:flex!important;align-items:center!important;gap:11px!important;
  margin:0!important;min-height:36px!important
}
#advisor-view .advisor-recommendations-grid .pp-flat-rec .advisor-rec-heading img,
#advisor-view .advisor-recommendations-grid .pp-flat-rec .advisor-rec-heading .orglogo{
  width:32px!important;height:32px!important;min-width:32px!important;border-radius:8px!important;flex:none!important
}
#advisor-view .advisor-recommendations-grid .pp-flat-rec .advisor-rec-heading h4,
#advisor-view .advisor-recommendations-grid .pp-flat-rec h4{
  font-size:13.5px!important;font-weight:620!important;line-height:1.35!important;color:#111317!important;
  margin:0!important;-webkit-line-clamp:1!important
}
.pp-rec-pills{
  display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0
}
.pp-rec-pills span{
  display:inline-flex;align-items:center;height:23px;padding:0 9px;border-radius:999px;
  background:#f4f6fa;color:#5f6368;font-size:11px;font-weight:520;white-space:nowrap;
  max-width:150px;overflow:hidden;text-overflow:ellipsis
}
.pp-rec-pills span.is-paid{background:#fff6eb;color:#b45309;border:1px solid rgba(217,119,6,.16)}
.pp-rec-pills span.is-free{background:#ecfdf3;color:#067647;border:1px solid rgba(22,163,74,.16)}
.pp-rec-chev{
  flex:none;display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;border-radius:50%;color:#9aa0a6;
  transition:transform .16s ease,color .16s ease,background .16s ease
}
.pp-rec-chev svg{width:13px;height:13px}
.pp-flat-rec:hover .pp-rec-chev{color:#356ee6;background:#eef4ff;transform:translateX(2px)}

/* Hide verbose body when collapsed; reveal cleanly when expanded */
#advisor-view .advisor-recommendations-grid .pp-flat-rec:not(.is-expanded) > p,
#advisor-view .advisor-recommendations-grid .pp-flat-rec:not(.is-expanded) .advisor-rec-reason,
#advisor-view .advisor-recommendations-grid .pp-flat-rec:not(.is-expanded) .advisor-rec-meta,
#advisor-view .advisor-recommendations-grid .pp-flat-rec:not(.is-expanded) dl,
#advisor-view .advisor-recommendations-grid .pp-flat-rec:not(.is-expanded) .advisor-rec-actions{
  display:none!important
}
#advisor-view .advisor-recommendations-grid .pp-flat-rec.is-expanded > p,
#advisor-view .advisor-recommendations-grid .pp-flat-rec.is-expanded .advisor-rec-reason{
  margin:10px 0 10px!important;padding-top:10px!important;border-top:1px solid #f0f2f6!important;
  -webkit-line-clamp:unset!important;color:#5f6368!important;font-size:12.5px!important;line-height:1.68!important
}
#advisor-view .advisor-recommendations-grid .pp-flat-rec.is-expanded dl{
  padding-top:8px!important;border-top:1px solid #f0f2f6!important;font-size:12px!important
}
#advisor-view .advisor-recommendations-grid .pp-flat-rec.is-expanded .advisor-rec-actions{
  padding-top:10px!important;margin-top:4px!important
}

/* Crisp Clickable Choice Pills (.advisor-quick-replies) */
#advisor-view .advisor-quick-replies{
  display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:14px!important
}
#advisor-view .advisor-quick-reply{
  font:inherit!important;font-size:12.5px!important;font-weight:520!important;line-height:1.45!important;
  padding:8px 14px!important;border-radius:999px!important;text-align:left!important;
  background:#ffffff!important;border:1px solid #dfe5f0!important;color:#1f2937!important;
  box-shadow:0 1px 2px rgba(17,19,23,.025)!important;
  transition:background .16s,border-color .16s,color .16s,transform .14s,box-shadow .18s!important
}
#advisor-view .advisor-quick-reply:hover:not(:disabled){
  background:#eef4ff!important;border-color:rgba(53,110,230,.34)!important;color:#1d4ed8!important;
  transform:translateY(-1px)!important;box-shadow:0 6px 14px rgba(53,110,230,.10)!important
}
#advisor-view .advisor-quick-reply:active:not(:disabled){transform:scale(.98)!important}
@media(max-width:680px){.pp-rec-pills{display:none}}

@media(max-width:780px){
  #advisor-view.is-empty .advisor-welcome h2,#advisor-view.is-empty .welcome-copy{font-size:27px!important}
  #advisor-view.is-empty .welcome-mark{width:68px!important;height:82px!important}
  #advisor-view.is-empty .welcome-mark img{height:76px!important}
}
@media(max-height:760px){
  #advisor-view.is-empty .welcome-mark{width:70px!important;height:86px!important}
  #advisor-view.is-empty .welcome-mark img{height:78px!important}
  #advisor-view.is-empty .welcome-intro{margin-bottom:20px!important}
}
@media(prefers-reduced-motion:reduce){
  .pp-amb-orb,.pp-advisor-badge i,#advisor-view .welcome-mark::before,#advisor-view .welcome-mark img,
  #advisor-view.is-empty .advisor-welcome h2,#advisor-view.is-empty .welcome-copy,.pp-advisor-sub,
  #advisor-view .advisor-followup,.pp-think-orb,.pp-think-text,.pp-think-bar{animation:none!important}
  #advisor-view.is-empty .advisor-welcome h2,#advisor-view.is-empty .welcome-copy,.pp-think-text{color:#111317!important;-webkit-background-clip:border-box;background:none!important}
}

/* === MODERNIZED SKELETON SCREENS (MATCHING REDESIGNED LAYOUTS) v20261122sk === */
.profile-skeleton{
  --skeleton-base:#eef2f8!important;
  --skeleton-light:#f8faff!important
}
.profile-skeleton__line{border-radius:999px!important}
.profile-skeleton__logo{border-radius:10px!important}
.profile-skeleton--cards{
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;
  gap:16px!important;padding-top:8px!important
}
.profile-skeleton__card{
  min-height:126px!important;padding:18px 20px!important;
  border-radius:18px!important;border:1px solid #eceef3!important;background:#fff!important;
  box-shadow:0 1px 3px rgba(17,19,23,.02)!important
}
.profile-skeleton--tiles{
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;
  gap:18px!important
}
.profile-skeleton__tile{
  border-radius:20px!important;border:1px solid #eceef3!important;
  background:#fff!important;padding:20px!important;
  box-shadow:0 1px 3px rgba(17,19,23,.02)!important
}
.profile-skeleton__tile .profile-skeleton__logo{width:36px!important;height:36px!important;flex-basis:36px!important;border-radius:10px!important}
.profile-skeleton__tile .card-bottom .profile-skeleton__line{border-radius:999px!important}

/* Graceful Error / Offline Empty State Card */
.pp-error-empty{
  grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:56px 24px;margin:8px 0 24px;border-radius:20px;
  background:radial-gradient(60% 80% at 50% 0%,rgba(82,139,255,.06),transparent 72%),#fafbfd;
  border:1px solid #eaedf3
}
.pp-error-ico{
  width:46px;height:46px;border-radius:14px;margin-bottom:14px;
  background:#eef4ff;color:#356ee6;display:grid;place-items:center
}
.pp-error-ico svg{width:20px;height:20px}
.pp-error-empty h3{margin:0;font-size:17px;font-weight:640;color:#111317;letter-spacing:-.015em}
.pp-error-empty p{margin:7px 0 0;max-width:420px;font-size:13.5px;line-height:1.65;color:#6b7280}
.pp-error-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:20px;flex-wrap:wrap}
.pp-error-retry{
  appearance:none;border:0;cursor:pointer;height:38px;padding:0 18px;border-radius:999px;
  background:linear-gradient(135deg,#3b78f5 0%,#2860db 100%);color:#fff;
  font:inherit;font-size:13px;font-weight:580;
  box-shadow:0 6px 16px rgba(53,110,230,.24);transition:transform .15s,box-shadow .18s
}
.pp-error-retry:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(53,110,230,.32)}
.pp-error-advisor{
  display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:999px;
  border:1px solid #e2e6ef;background:#fff;color:#374151;font-size:13px;font-weight:540;text-decoration:none;
  transition:border-color .16s,color .16s
}
.pp-error-advisor:hover{border-color:#cfd7e6;color:#111317}

/* === INSTITUTION DIRECTORY MOTION v20261121k === */
.orggrid.institution-grid .orgcard.institution-card{animation:ppStageRise .5s cubic-bezier(.16,1,.3,1) both}
.orggrid.institution-grid .orgcard.institution-card:nth-child(3n+2){animation-delay:.04s}
.orggrid.institution-grid .orgcard.institution-card:nth-child(3n+3){animation-delay:.08s}
.orggrid.institution-grid .orgcard.institution-card:nth-child(n+4){animation-delay:.1s}
.orggrid.institution-grid .orgcard.institution-card:nth-child(n+7){animation-delay:.14s}
.orggrid.institution-grid .orgcard.institution-card:nth-child(n+10){animation-delay:.18s}
@media(prefers-reduced-motion:reduce){.orggrid.institution-grid .orgcard.institution-card{animation:none!important}}

/* === Zero-Flash Guard for 我的计划 (?nav=saved) & Flagship Editorial Plan Workspace === */
html.pp-nav-saved #searchform,
html.pp-nav-saved .category-nav-wrap,
html.pp-nav-saved .browse-toolbar,
html.pp-nav-saved #institution-discovery,
html.pp-nav-saved .discovery-plan,
html.pp-nav-saved .discovery-hero-meta,
html.pp-nav-saved [data-hero-title] {
  display: none !important;
}
html.pp-nav-saved .saved-hero-head {
  display: block !important;
}
html.pp-nav-saved .discovery-welcome {
  padding-bottom: 12px !important;
}

/* Single Clean Toolbar */
#pp-plan-board {
  width: 100%;
  margin: 0 0 48px;
}
.pp-mc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eceef2;
}
.pp-mc-ai-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f0f5ff;
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 550;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.pp-mc-ai-btn:hover {
  background: #e4eeff;
  border-color: rgba(59, 130, 246, 0.4);
}

/* Flagship Editorial List Rows */
.pp-plan-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pp-plan-row {
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  padding: 18px 20px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pp-plan-row:hover {
  border-color: #d4d9e4;
  box-shadow: 0 6px 20px -12px rgba(15, 23, 42, 0.12);
}
.pp-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pp-row-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 320px;
}
.pp-row-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eceef2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.pp-row-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.pp-row-logo.is-fallback {
  background: linear-gradient(135deg, #eef2ff 0%, #f1f5f9 100%);
  color: #334155;
  font-weight: 650;
  font-size: 15px;
}
.pp-row-titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pp-row-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.pp-row-title:hover {
  color: #2563eb;
}
.pp-row-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #64748b;
}
.pp-row-fee {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
}
.pp-row-fee.is-free {
  background: #ecfdf5;
  color: #059669;
}
.pp-row-fee.is-paid {
  background: #fff7ed;
  color: #c2410c;
}

/* Right Controls: Sleek Date Pill + Stage Pill */
.pp-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pp-date-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pp-date-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.pp-date-pill.is-set {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.pp-date-pill.is-urgent {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.pp-date-pill.is-overdue {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.pp-date-pill span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.pp-date-pill svg {
  width: 13px;
  height: 13px;
}
.pp-date-pill em {
  font-style: normal;
  font-weight: 500;
}
.pp-date-pill input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.pp-row-stages {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.pp-stage-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}
.pp-stage-btn:hover {
  color: #1e293b;
}
.pp-stage-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.pp-stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  flex: none;
  display: none;
}
.pp-stage-btn.is-active .pp-stage-dot { display: inline-block; }
.pp-stage-btn.is-planned.is-active .pp-stage-dot { background: #3b82f6; }
.pp-stage-btn.is-applied.is-active .pp-stage-dot { background: #8b5cf6; }
.pp-stage-btn.is-participating.is-active .pp-stage-dot { background: #f59e0b; }
.pp-stage-btn.is-completed.is-active .pp-stage-dot { background: #10b981; }

/* 2-Column Practical Workspace (Checklist + Notes) */
.pp-row-workspace {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
@media (max-width: 760px) {
  .pp-row-workspace { grid-template-columns: 1fr; }
}
.pp-row-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}
.pp-row-col-head em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}
.pp-row-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp-row-checks .pp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  padding: 2px 4px;
  border-radius: 6px;
}
.pp-row-checks .pp-step:hover {
  background: #f8fafc;
}
.pp-row-checks .pp-step.is-done span {
  text-decoration: line-through;
  color: #94a3b8;
}
.pp-row-checks .pp-step-del {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  padding: 0 4px;
  transition: opacity 0.12s, color 0.12s;
}
.pp-row-checks .pp-step:hover .pp-step-del {
  opacity: 1;
}
.pp-row-checks .pp-step-del:hover {
  color: #ef4444;
}
.pp-row-checks .pp-step-add {
  margin-top: 2px;
  border: 0;
  border-bottom: 1px dashed #e2e8f0;
  background: transparent;
  padding: 5px 4px;
  font-size: 12.5px;
  color: #1e293b;
  outline: none;
  width: 100%;
}
.pp-row-checks .pp-step-add:focus {
  border-bottom-color: #3b82f6;
}
.pp-row-note {
  width: 100%;
  box-sizing: border-box;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #eef0f4;
  background: #f8fafc;
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.pp-row-note:focus {
  background: #ffffff;
  border-color: #93c5fd;
}

/* Footer Utility Row */
.pp-row-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f5f6f9;
}
.pp-row-act {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}
.pp-row-act:hover {
  color: #0f172a;
}
.pp-row-act.is-primary {
  margin-left: auto;
  color: #2563eb;
  font-weight: 550;
}
.pp-row-act.is-primary:hover {
  color: #1d4ed8;
}

/* Open Full-Canvas Editorial Empty State for 我的计划 (Zero box-in-box!) */
.pp-plan-empty.is-showcase {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 460px);
  align-items: center;
  gap: 56px;
  text-align: left;
  padding: 28px 0 44px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 880px) {
  .pp-plan-empty.is-showcase {
    grid-template-columns: 1fr;
    padding: 20px 0 32px;
    gap: 28px;
  }
}
.pp-plan-empty-glow {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 480px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.14) 0%, rgba(139, 92, 246, 0.09) 48%, transparent 74%);
  filter: blur(34px);
  pointer-events: none;
}
.pp-empty-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid #eceef2;
}
@media (max-width: 780px) {
  .pp-empty-steps { grid-template-columns: 1fr; gap: 18px; }
}
.pp-empty-step span {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2563eb;
  margin-bottom: 6px;
}
.pp-empty-step strong {
  display: block;
  font-size: 14.5px;
  font-weight: 620;
  color: #0f172a;
  margin-bottom: 5px;
}
.pp-empty-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
}
.pp-empty-copy { position: relative; z-index: 1; }
.pp-empty-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.pp-empty-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.pp-plan-empty.is-showcase h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 680;
  letter-spacing: -0.025em;
  color: #0f172a;
}
.pp-plan-empty.is-showcase p {
  position: relative;
  margin: 0 0 26px;
  max-width: 440px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #64748b;
}
.pp-plan-empty.is-showcase .pp-plan-empty-actions {
  justify-content: flex-start;
}
.pp-plan-empty-actions {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pp-empty-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.15s;
}
.pp-empty-btn:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.18);
}
.pp-empty-btn.is-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
}
.pp-empty-btn.is-primary:hover {
  box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.6);
}

/* Right Alternating 3-Card Deck Showcase */
.pp-empty-stage.is-deck {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 0 4px;
}
.pp-deck {
  position: relative;
  width: 100%;
  height: 186px;
  perspective: 900px;
}
.pp-deck-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  padding: 18px 20px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 24px 48px -20px rgba(37, 99, 235, 0.28), 0 2px 10px rgba(15, 23, 42, 0.04);
  will-change: transform, opacity;
  animation: ppDeckCycle 5.4s cubic-bezier(0.34, 1.28, 0.64, 1) infinite;
}
.pp-deck-card.is-d1 { animation-delay: 0s; }
.pp-deck-card.is-d2 { animation-delay: -1.8s; }
.pp-deck-card.is-d3 { animation-delay: -3.6s; }
@keyframes ppDeckCycle {
  0%, 26% {
    transform: translateY(0) scale(1) rotateX(0deg);
    opacity: 1;
    z-index: 3;
  }
  33%, 36% {
    transform: translateY(-34px) scale(0.94) rotateX(6deg);
    opacity: 0;
    z-index: 4;
  }
  37%, 60% {
    transform: translateY(34px) scale(0.86) rotateX(-5deg);
    opacity: 0.25;
    z-index: 1;
  }
  67%, 93% {
    transform: translateY(17px) scale(0.93) rotateX(-2deg);
    opacity: 0.65;
    z-index: 2;
  }
  100% {
    transform: translateY(0) scale(1) rotateX(0deg);
    opacity: 1;
    z-index: 3;
  }
}
.pp-deck-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  background: #f8fafc;
  padding: 2px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  flex: none;
}
.pp-deck-logo.is-pupu {
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
}
.pp-k-bar i.is-live {
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 50%, #38bdf8 100%);
  background-size: 200% 100%;
  animation: ppBarFlow 2s linear infinite;
}
.pp-k-bar i.is-done {
  background: linear-gradient(90deg, #10b981, #34d399);
}
@keyframes ppBarFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.pp-deck-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pp-deck-org {
  font-size: 12px;
  font-weight: 550;
  color: #64748b;
}
.pp-deck-card > strong {
  display: block;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-deck-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pp-deck-foot span {
  font-size: 11.5px;
  font-weight: 550;
  color: #64748b;
  white-space: nowrap;
}
.pp-deck-top .pp-k-tag { margin-left: auto; }
.pp-k-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.pp-k-dot.is-done { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16); }
.pp-k-dot.is-active { background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.pp-k-dot.is-ai { background: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16); }
.pp-k-bar {
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}
.pp-k-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #6366f1);
}
.pp-k-tag {
  flex: none;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pp-k-tag.is-done { background: #ecfdf5; color: #059669; }
.pp-k-tag.is-active { background: #eff6ff; color: #2563eb; }
.pp-k-tag.is-ai { background: #f5f3ff; color: #7c3aed; }

.pp-deck-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pp-deck-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  animation: ppDeckDot 5.4s infinite;
}
.pp-deck-dots i:nth-child(1) { animation-delay: 0s; }
.pp-deck-dots i:nth-child(2) { animation-delay: 1.8s; }
.pp-deck-dots i:nth-child(3) { animation-delay: 3.6s; }
@keyframes ppDeckDot {
  0%, 28% { width: 18px; background: #2563eb; }
  34%, 100% { width: 6px; background: #cbd5e1; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-deck-card,.pp-deck-dots i { animation: none !important; }
  .pp-deck-card.is-d2 { transform: translateY(14px) scale(0.94); opacity: 0.6; }
  .pp-deck-card.is-d3 { transform: translateY(28px) scale(0.88); opacity: 0.3; }
}

/* AI Advisor Left History Sidebar Empty State — Borderless Quiet Minimalism */
.pp-hist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 16px 40px;
  background: transparent;
  border: 0;
}
.pp-hist-ghost {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  opacity: 0.55;
}
.pp-hist-ghost span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 100%);
}
.pp-hist-ghost span:nth-child(1) { width: 54px; }
.pp-hist-ghost span:nth-child(2) { width: 38px; opacity: 0.72; }
.pp-hist-ghost span:nth-child(3) { width: 26px; opacity: 0.45; }
.pp-hist-empty-title {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 550;
  color: #64748b;
}
.pp-hist-empty-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #94a3b8;
}

/* 1-Click Generate Plan from Pupu AI Roadmap */
.pp-gen-plan-bar {
  display: flex;
  align-items: center;
  margin: 14px 0 8px;
}
.pp-gen-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(135deg, #f0f6ff 0%, #f5f3ff 100%);
  color: #2563eb;
  font-size: 13px;
  font-weight: 580;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.15s, background 0.15s;
}
.pp-gen-plan-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.35);
}
.pp-gen-plan-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.pp-gen-plan-btn.is-done {
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}
.pp-gen-spark {
  font-size: 13px;
  color: #4f46e5;
}

/* Real DeepSeek Reasoning Live Stream & Collapsible Thought Toggle */
.pp-think-live {
  margin: 8px 0 0 11px;
  padding: 2px 0 2px 14px;
  border-left: 1.5px solid #e2e8f0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #64748b;
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.pp-thought-collapse {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #64748b;
}
.pp-thought-collapse summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 550;
  color: #475569;
  user-select: none;
  transition: background 0.14s, border-color 0.14s;
}
.pp-thought-collapse summary::-webkit-details-marker { display: none; }
.pp-thought-collapse summary::after {
  content: '⌄';
  font-size: 13px;
  line-height: 1;
  color: #94a3b8;
  transition: transform 0.16s ease;
}
.pp-thought-collapse[open] summary::after {
  transform: rotate(180deg);
}
.pp-thought-collapse summary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.pp-thought-body {
  margin: 10px 0 0 8px;
  padding: 4px 0 4px 14px;
  border-left: 1.5px solid #e2e8f0;
  font-size: 12.5px;
  line-height: 1.68;
  color: #64748b;
  white-space: pre-wrap;
}

/* === Global Work Visas Native Light Filter Bar inside Discover Tab (html.pp-visa-tab) === */
@media (min-width: 1080px) {
  .home-catalogue .category-navigation { gap: 3px !important; }
  .home-catalogue .category-navigation button { padding: 6px 8.5px !important; gap: 4px !important; font-size: 12.5px !important; white-space: nowrap !important; }
  .home-catalogue .category-navigation button svg { width: 14px !important; height: 14px !important; }
}
@media (min-width: 1420px) {
  .home-catalogue .category-navigation { gap: 4px !important; }
  .home-catalogue .category-navigation button { padding: 7px 10px !important; gap: 5px !important; font-size: 12.8px !important; }
}
html.pp-visa-tab #institution-discovery,
html.pp-visa-tab .home-heading,
html.pp-visa-tab .browse-toolbar,
html.pp-visa-tab #context-tabs,
html.pp-visa-tab #advanced-filters,
html.pp-visa-tab #active-filter-chips {
  display: none !important;
}
html.pp-visa-tab .result-heading {
  margin: 14px 0 12px !important;
  padding: 6px 0 10px !important;
  min-height: 0 !important;
}

.pp-visa-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 4px;
  padding: 12px 0 14px;
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
}
.pp-visa-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pp-visa-row-label {
  flex: none;
  font-size: 12px;
  font-weight: 560;
  color: #8b949f;
  min-width: 30px;
}
.pp-visa-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}
.pp-visa-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e6eaf0;
  background: #ffffff;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.pp-visa-pill:hover {
  background: #f5f7fa;
  border-color: #d5dce6;
  color: #111317;
}
.pp-visa-pill.is-active {
  background: #eef4ff;
  border-color: rgba(53, 110, 230, 0.28);
  color: #1d4ed8;
  font-weight: 600;
}
.pp-visa-cnt {
  font-style: normal;
  font-size: 11px;
  font-weight: 560;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.pp-visa-pill.is-active .pp-visa-cnt {
  color: #356ee6;
}
.pp-visa-china-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 12px;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 540;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.pp-visa-china-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.pp-visa-china-toggle .pp-visa-check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #94a3b8;
  transition: background 0.14s ease, color 0.14s ease;
}
.pp-visa-china-toggle[aria-pressed="true"] {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.34);
  color: #047857;
  font-weight: 600;
}
.pp-visa-china-toggle[aria-pressed="true"] .pp-visa-check {
  background: #10b981;
  color: #ffffff;
}

/* Executive Visa Cards */
.opportunity-card.is-visa-card .provider-logo {
  border-radius: 10px !important;
}
.opportunity-card.is-visa-card .card-type span:first-child {
  font-weight: 600;
  color: #334155;
}
.pp-visa-elig-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}
.pp-visa-elig-tag.is-open {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.24);
}
.pp-visa-elig-tag.is-global {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.24);
}
.pp-visa-elig-tag.is-quota {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.26);
}
.pp-visa-elig-tag.is-restricted {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

@media (max-width: 780px) {
  .pp-visa-china-toggle {
    margin-left: 0;
  }
}

/* === Scroll-Up White-Screen Prevention (macOS/Chromium GPU Compositing Hardening) === */
html, body.home-catalogue {
  background: #ffffff !important;
  overscroll-behavior-y: none;
}
.home-catalogue .provider-logo {
  mix-blend-mode: normal !important;
}
.institution-gallery-viewport {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.institution-gallery-viewport::before,
.institution-gallery-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 2;
}
.institution-gallery-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
.institution-gallery-viewport::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
.institution-gallery-track {
  will-change: auto !important;
}
.home-catalogue .home-dock {
  background: rgba(255, 255, 255, 0.96) !important;
  
  
  transform: translate3d(-50%, 0, 0) !important;
  backface-visibility: hidden;
}

/* === Round 3 Mobile (390px) & Plan UI Polish === */
html, body {
  overflow-x: clip;
}
.pp-plan-toast {
  z-index: 10025 !important;
}
.pp-app-head-l span {
  white-space: nowrap !important;
  flex-shrink: 0;
}
.pp-row-fee {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}
@media (max-width: 540px) {
  .home-catalogue .card-save {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
  }
  .home-catalogue .home-dock .home-pagination button::after {
    display: none !important;
  }
  .home-catalogue .home-dock .home-pagination button {
    font-size: inherit !important;
  }
  .home-catalogue .card-identity-name {
    max-width: 68px;
  }
}

/* === Advisor GFM Editorial Tables (.pp-md-table) === */
.pp-md-table-wrap {
  width: 100%;
  margin: 14px 0 18px;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  background: #ffffff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.pp-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1e293b;
}
.pp-md-table thead th {
  padding: 10px 14px;
  background: #f6f8fb;
  border-bottom: 1px solid #e5e9f0;
  font-size: 12px;
  font-weight: 640;
  color: #475569;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pp-md-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #334155;
}
.pp-md-table tbody tr:last-child td {
  border-bottom: 0;
}
.pp-md-table tbody tr:hover td {
  background: #fafcff;
}
.pp-md-table tbody td:first-child {
  font-weight: 600;
  color: #0f172a;
  min-width: 84px;
}
.pp-md-table tbody td strong {
  color: #0f172a;
  font-weight: 620;
}
.pp-md-table tbody td code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  font-size: 12px;
  color: #1e293b;
}
.pp-md-quote {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-left: 3px solid #cbd5e1;
  border-radius: 0 10px 10px 0;
  background: #f8fafc;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.65;
}
.pp-md-quote p {
  margin: 0;
}
.pp-md-quote p + p {
  margin-top: 6px;
}

/* Share Poster Icon Button right beside 👍 / 👎 in .advisor-feedback */
#advisor-view .pp-share-icon-btn {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b98a5;
  cursor: pointer;
  transition: background-color 0.16s, color 0.16s, transform 0.16s;
}
#advisor-view .pp-share-icon-btn svg {
  display: block;
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#advisor-view .pp-share-icon-btn:hover {
  background: #edf1f5;
  color: #506a82;
}
#advisor-view .pp-share-icon-btn:active {
  transform: scale(0.94);
}
@media (max-width: 780px) {
  #advisor-view .pp-share-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* Home Personalization Status Bar (also allows skipped users to fill anytime!) */
.pp-home-pref-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  margin: 0 0 12px;
  border-radius: 13px;
  background: linear-gradient(90deg, #f4f8ff 0%, #f8fafd 100%);
  border: 1px solid #dce6f5;
  font-size: 12.5px;
  color: #1e3a8a;
}
.pp-home-pref-bar.is-off {
  background: #f8fafc;
  border-color: #e5eaf1;
  color: #475569;
}
.pp-home-pref-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.pp-home-pref-spark {
  color: #2563eb;
  display: inline-flex;
}
.pp-home-pref-bar.is-off .pp-home-pref-spark {
  color: #64748b;
}
.pp-home-pref-spark svg {
  width: 13px;
  height: 13px;
}
.pp-home-pref-text {
  font-weight: 560;
}
.pp-home-pref-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pp-home-pref-sep {
  color: #cbd5e1;
}
.pp-home-pref-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: color 0.15s;
}
.pp-home-pref-btn svg {
  width: 13px;
  height: 13px;
}
.pp-home-pref-btn:hover {
  color: #0f172a;
}
.pp-home-pref-btn.is-strong {
  color: #2563eb;
  font-weight: 600;
}
.pp-home-pref-btn.is-strong:hover {
  color: #1d4ed8;
}

/* Account Center (me.html) Preference Card */
.pp-me-pref-card {
  margin-bottom: 18px;
}
.pp-me-pref-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.pp-me-pref-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  color: #0f172a;
}
.pp-me-pref-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #64748b;
}
.pp-me-pref-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #d7e2f2;
  background: #f5f9ff;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.pp-me-pref-edit svg {
  width: 14px;
  height: 14px;
}
.pp-me-pref-edit:hover {
  background: #e8f1ff;
  border-color: #2563eb;
}
.pp-me-pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pp-me-pref-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: #f4f7fc;
  border: 1px solid #e2e9f4;
  font-size: 12px;
  font-weight: 540;
  color: #334155;
}
.pp-me-pref-empty {
  font-size: 12.5px;
  color: #94a3b8;
}
.pp-me-pref-inferred {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #64748b;
}
.pp-me-pref-inferred strong {
  color: #1e3a8a;
  font-weight: 600;
}
.pp-me-pref-clear {
  border: 0;
  background: transparent;
  padding: 2px 6px;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}
.pp-me-pref-clear:hover {
  color: #dc2626;
}

/* === Clean Context & Sub-Tabs (Zero Ugly OS Horizontal Scrollbars) === */
.home-catalogue .context-tabs {
  flex-wrap: wrap !important;
  overflow: visible !important;
  row-gap: 6px;
  column-gap: 6px;
  min-height: 36px;
  padding: 12px 0 2px;
  scrollbar-width: none !important;
}
.home-catalogue .context-tabs > * {
  flex-shrink: 0;
}
.home-catalogue .context-tabs::-webkit-scrollbar,
.tool-subtabs::-webkit-scrollbar,
.platform-subtabs::-webkit-scrollbar,
.context-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.tool-subtabs,
.platform-subtabs,
.context-tabs {
  scrollbar-width: none !important;
}
@media (max-width: 640px) {
  .home-catalogue .context-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  }
}

/* === mp61 Deep Picky-User Audit Visual & UX Polish === */
/* 1. Advisor floating language switcher clearance — never collides with scrolling chat text */
.app-advisor-page .workspace > .toolbar .profile-locale {
  z-index: 40;
}
.app-advisor-page .workspace > .toolbar .profile-locale button,
.app-advisor-page .workspace > .toolbar .profile-locale .locale-trigger {
  background: rgba(255, 255, 255, 0.94) !important;
  
  
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
@media (min-width: 781px) {
  #advisor-view .chat-messages {
    padding-top: 52px !important;
  }
  #advisor-view .advisor-chat-canvas::before {
    content: "";
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    height: 28px;
    margin-bottom: -28px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 15;
  }
}

/* 2. Advisor starter prompt cards — crisp contrast, zero awkward ellipsis truncation */
.pp-advisor-pillars {
  max-width: 740px;
  gap: 12px !important;
}
.pp-action-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 14px 16px !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035) !important;
}
.pp-ac-top strong {
  color: #0f172a !important;
  font-size: 13.5px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}
.pp-ac-desc {
  color: #475569 !important;
  font-size: 12.5px !important;
  line-height: 1.48 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* 3. Home Visa card line-clamp cleanliness & bottom pagination clearance */
.home-catalogue .card-facts dd {
  line-height: 1.52 !important;
  padding-bottom: 1px;
}
.home-catalogue .grid,
#project-grid {
  padding-bottom: 72px;
}

/* 4. Account Center (me.html) alignment & empty plan filter state */
.me-plan-filter-empty {
  list-style: none;
  padding: 28px 16px;
  text-align: center;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  color: #64748b;
  font-size: 13px;
}
@media (min-width: 641px) {
  .pp-me-pref-head {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .pp-me-pref-edit {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .me-hero-top,
  .me-hero-row {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  #logout.me-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

/* 5. Catalogue monogram fallback & non-squished filter selects */
.orglogo.orglogo-mono {
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(145deg, #f8fafc 0%, #edf2f7 100%) !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  user-select: none;
}
.filters {
  flex-wrap: wrap !important;
  row-gap: 8px !important;
}
.filters select,
.filters .pp-select-btn {
  min-width: 106px;
  flex-shrink: 0;
}

/* === mp64 Features 1–4: Email Reminders, Compare Dock/Modal, CV Match & Dismiss === */
/* Card Top-Right Action Trio (Save / Compare / Dismiss) */
.home-catalogue [data-home-card] {
  position: relative;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-catalogue [data-home-card].is-dismissing {
  opacity: 0 !important;
  transform: scale(0.95) !important;
  pointer-events: none;
}
.home-catalogue .card-identity {
  padding-right: 40px;
}
.pp-card-cmp-btn,
.pp-card-dismiss-btn {
  position: absolute;
  top: 12px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #8b97a8;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease, transform 0.14s ease;
}
.pp-card-cmp-btn {
  right: 46px;
}
.pp-card-dismiss-btn {
  right: 78px;
  opacity: 0;
}
.home-catalogue [data-home-card]:hover .pp-card-dismiss-btn,
.home-catalogue [data-home-card]:focus-within .pp-card-dismiss-btn,
.pp-card-dismiss-btn:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .pp-card-dismiss-btn {
    opacity: 0.68;
  }
}
.pp-card-cmp-btn svg,
.pp-card-dismiss-btn svg {
  width: 14px;
  height: 14px;
}
.pp-card-cmp-btn:hover {
  background: #edf4ff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}
.pp-card-cmp-btn.is-active {
  background: #e6f0ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.32);
}
.pp-card-dismiss-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.2);
}

/* Floating Bottom Compare Dock */
.pp-cmp-dock {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(860px, calc(100vw - 28px));
  padding: 9px 12px 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  
  
  border: 1px solid #dce5f2;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.05);
}
.pp-cmp-items {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}
.pp-cmp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 190px;
  padding: 5px 8px 5px 11px;
  border-radius: 999px;
  background: #f1f5fb;
  border: 1px solid #e2e9f4;
  font-size: 12px;
  font-weight: 560;
  color: #1e293b;
}
.pp-cmp-chip-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-cmp-chip-x {
  flex: none;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.pp-cmp-chip-x:hover {
  color: #0f172a;
}
.pp-cmp-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pp-cmp-clear {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
}
.pp-cmp-clear:hover {
  color: #0f172a;
}
.pp-cmp-go {
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease;
}
.pp-cmp-go:hover {
  background: #1e293b;
}
.pp-cmp-go[data-need-two="1"] {
  background: #64748b;
}

/* Shared Clean Apple-Grade Modal Shell (Compare, CV Match, Email Alerts) */
.pp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.36);
  
  
}
.pp-modal-card {
  width: 100%;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5ebf3;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.pp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eef2f7;
}
.pp-modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.pp-modal-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #64748b;
}
.pp-modal-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.pp-modal-x:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Compare Modal */
.pp-cmp-dialog {
  max-width: 880px;
}
.pp-cmp-table-wrap {
  overflow: auto;
  padding: 6px 24px 12px;
}
.pp-cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pp-cmp-table th,
.pp-cmp-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eef2f7;
}
.pp-cmp-table thead th {
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.pp-cmp-table tbody th {
  width: 108px;
  color: #64748b;
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}
.pp-cmp-table tbody td {
  color: #1e293b;
  line-height: 1.55;
}
.pp-cmp-th-title {
  font-size: 14.5px;
  font-weight: 680;
  color: #0f172a;
  line-height: 1.4;
}
.pp-cmp-cell-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pp-cmp-mini-btn {
  border: 1px solid #dce5f2;
  background: #f8fafd;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.pp-cmp-mini-btn:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}
.pp-cmp-mini-btn.is-saved {
  background: #eef4ff;
  border-color: rgba(37, 99, 235, 0.3);
  color: #1d4ed8;
}
.pp-cmp-mini-link {
  font-size: 12px;
  font-weight: 560;
  color: #2563eb;
  text-decoration: none;
}
.pp-cmp-mini-link:hover {
  text-decoration: underline;
}
.pp-cmp-foot,
.pp-rem-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid #eef2f7;
  background: #ffffff;
}
.pp-rem-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #dbe2ec;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.pp-rem-btn svg {
  width: 14px;
  height: 14px;
}
.pp-rem-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
}
.pp-rem-btn.is-primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
.pp-rem-btn.is-primary:hover {
  background: #1e293b;
}
.pp-rem-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Email Reminder Modal */
.pp-rem-card {
  max-width: 460px;
}
.pp-rem-body {
  padding: 18px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pp-rem-body .pp-rem-foot {
  margin: 4px -24px 0;
}
.pp-rem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafd;
  border: 1px solid #e6edf7;
}
.pp-rem-lbl {
  display: block;
  font-size: 13px;
  font-weight: 620;
  color: #1e293b;
}
.pp-rem-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.pp-rem-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.pp-rem-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.18s ease;
}
.pp-rem-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease;
}
.pp-rem-switch input:checked + .pp-rem-slider {
  background: #2563eb;
}
.pp-rem-switch input:checked + .pp-rem-slider::before {
  transform: translateX(18px);
}
.pp-rem-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-rem-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pp-rem-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #dce5f2;
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 560;
  cursor: pointer;
}
.pp-rem-chip.is-on {
  background: #eef4ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 620;
}
.pp-rem-input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid #d7e0ec;
  font-size: 13.5px;
  color: #0f172a;
}
.pp-rem-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pp-rem-email-ro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid #e6edf7;
  background: #f8fafd;
}
.pp-rem-email-val {
  font-size: 13.5px;
  font-weight: 560;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-rem-email-tag {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
}
.pp-rem-status {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  min-height: 18px;
}
.pp-rem-status.is-ok {
  color: #059669;
  font-weight: 560;
}
.pp-rem-status.is-err {
  color: #dc2626;
}
.pp-rem-hint {
  margin: 6px 0;
  font-size: 13px;
  color: #475569;
}

/* CV Match Modal & Triggers */
.pp-cv-trigger {
  color: #1d4ed8 !important;
  font-weight: 600 !important;
}
.pp-cv-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e2f2;
  background: #f5f9ff;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pp-cv-toolbar-btn svg {
  width: 14px;
  height: 14px;
}
.pp-cv-toolbar-btn:hover {
  background: #e8f1ff;
  border-color: #2563eb;
}
.pp-cv-dialog {
  max-width: 580px;
}
.pp-cv-body {
  padding: 18px 24px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pp-cv-body .pp-rem-foot {
  margin: 4px -24px 0;
}
.pp-cv-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
  align-self: flex-start;
}
.pp-cv-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.pp-cv-tab.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.pp-cv-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 20px;
  border-radius: 16px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafd;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.pp-cv-drop:hover {
  border-color: #2563eb;
  background: #f2f7ff;
}
.pp-cv-drop-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
  display: grid;
  place-items: center;
}
.pp-cv-drop-ico svg {
  width: 20px;
  height: 20px;
}
.pp-cv-drop strong {
  font-size: 14px;
  color: #0f172a;
}
.pp-cv-drop small {
  font-size: 12px;
  color: #64748b;
}
.pp-cv-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7e0ec;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}
.pp-cv-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pp-cv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pp-cv-box {
  padding: 11px 13px;
  border-radius: 14px;
  background: #f8fafd;
  border: 1px solid #e6edf7;
}
.pp-cv-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 640;
  color: #64748b;
  margin-bottom: 7px;
}
.pp-cv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pp-cv-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d7e2f2;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 560;
  cursor: pointer;
}
.pp-cv-pill.is-on {
  background: #eef4ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
}
.pp-cv-skill {
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: #334155;
}
.pp-cv-match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pp-cv-match-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #e9eef6;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pp-cv-match-list a:hover {
  border-color: #cbd5e1;
  background: #f8fafd;
}
.pp-cv-m-kind {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
}
.pp-cv-m-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-cv-m-org {
  flex: none;
  max-width: 110px;
  font-size: 11.5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Shared Action Toast (Dismiss + Undo) */
.pp-feat-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  z-index: 460;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 540;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.24);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pp-feat-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.pp-feat-toast-act {
  border: 0;
  background: transparent;
  color: #60a5fa;
  font-size: 13px;
  font-weight: 650;
  padding: 0 2px;
  cursor: pointer;
}
.pp-feat-toast-act:hover {
  color: #93c5fd;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .pp-cmp-dock {
    bottom: 72px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .pp-cmp-items {
    flex-wrap: wrap;
  }
  .pp-cmp-acts {
    justify-content: space-between;
  }
  .pp-cv-grid {
    grid-template-columns: 1fr;
  }
}

/* === Round 1 Dogfooding Polish (mp76) === */
.home-detail-dialog .hd-body {
  padding-bottom: 56px !important;
}
.home-catalogue .card-type {
  flex-wrap: wrap;
}
.home-catalogue .card-type > span:first-child {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 38;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(17, 19, 23, 0.09);
  background: rgba(255, 255, 255, 0.92);
  
  
  color: #1e293b;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.11), 0 1px 3px rgba(15, 23, 42, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.pp-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.pp-back-top:hover {
  background: #ffffff;
  color: #1d4ed8;
  border-color: rgba(53, 110, 230, 0.3);
  transform: translateY(-2px);
}
.pp-back-top:active {
  transform: scale(0.94);
}
@media (max-width: 780px) {
  .pp-back-top {
    right: 16px;
    bottom: 84px;
    width: 38px;
    height: 38px;
  }
}

/* === Round 2 Dogfooding Polish (mp77) === */
.pp-sb-proj {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.38;
}
.pp-wm-cell.is-rest {
  background: repeating-linear-gradient(
    -45deg,
    #fafbfd,
    #fafbfd 6px,
    #f3f6fa 6px,
    #f3f6fa 12px
  ) !important;
}
.pp-due-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  margin-bottom: 5px;
  border-radius: 9px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-left: 3px solid #2563eb;
  cursor: pointer;
  transition: background-color 0.14s, transform 0.14s;
}
.pp-due-block:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}
.pp-due-tag {
  font-size: 10.5px;
  font-weight: 650;
  color: #1d4ed8;
  line-height: 1.2;
}
.pp-due-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pp-bpop-edit {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pp-bpop-mini-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  padding-left: 2px;
}
.pp-bpop-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pp-bpop-pill {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 7px;
  padding: 3px 7px;
  font-size: 11.5px;
  font-weight: 560;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.pp-bpop-pill:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}
.pp-bpop-pill.is-cur {
  background: #eef4ff;
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
  font-weight: 640;
}
.pp-bpop-act.is-danger {
  color: #dc2626;
}
.pp-bpop-act.is-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.pp-add-blk-pop {
  width: 228px;
  padding: 12px !important;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pp-add-blk-head {
  font-size: 12px;
  font-weight: 640;
  color: #0f172a;
}
.pp-add-blk-select {
  width: 100%;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d5dde8;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  padding: 0 8px;
}
.pp-add-blk-foot {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 2px;
}
.pp-add-blk-cancel {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.pp-add-blk-ok {
  border: 0;
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pp-add-blk-ok:hover {
  background: #1d4ed8;
}
.pp-plan-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pp-plan-toast.is-show {
  pointer-events: auto !important;
}
.pp-toast-undo {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #93c5fd;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 640;
  cursor: pointer;
  transition: background-color 0.14s, color 0.14s;
}
.pp-toast-undo:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}
.pp-step-edit-btn {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  padding: 0 3px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.14s, color 0.14s;
}
.pp-step:hover .pp-step-edit-btn,
.pp-step-edit-btn:focus-visible {
  opacity: 1;
}
.pp-step-edit-btn:hover {
  color: #1d4ed8;
}
.pp-step-edit {
  flex: 1;
  min-width: 0;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}
/* Clean orgline single-line alignment on catalogue org detail */
.orgline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 4px;
}
.orgline > span[data-l10n-field="provider"] {
  white-space: nowrap;
}

/* === Round 3 Dogfooding Polish (mp78): Mobile Advisor, Mobile Me/Catalogue, Calendar & Locale Clearance === */
.pp-back-top {
  z-index: 60 !important;
}
.pp-cal-today,
.pp-cal-nav-btns button {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
body.app-advisor-page .profile-locale {
  background: rgba(255, 255, 255, 0.92);
  
  
  border-radius: 999px;
}
#advisor-view:not(.is-empty) .chat-messages {
  padding-top: 64px !important;
  padding-bottom: 56px !important;
}
@media (max-width: 780px) {
  #advisor-view .chat-toolbar {
    height: 46px !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    padding: 4px 16px !important;
    position: relative !important;
    z-index: 15 !important;
    flex: none !important;
  }
  #advisor-view #advisor-history-open {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 12.5px !important;
    font-weight: 560 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    position: relative !important;
    z-index: 16 !important;
  }
  #advisor-view.is-empty .advisor-chat-canvas {
    justify-content: flex-start !important;
    padding-top: 6px !important;
  }
  #advisor-view.is-empty .welcome-intro {
    margin-top: 14px !important;
  }
  #advisor-view .advisor-history-panel {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(300px, calc(100vw - 44px)) !important;
    z-index: 95 !important;
    box-shadow: 16px 0 48px rgba(15, 23, 42, 0.18) !important;
  }
  #advisor-view.history-open::before {
    position: fixed !important;
    inset: 0 !important;
    z-index: 90 !important;
  }
  #advisor-view:not(.is-empty) .chat-messages {
    padding-top: 12px !important;
    padding-bottom: 64px !important;
  }
  /* Mobile Account Center email wrapping (zero clipping past card right edge) */
  .me-profile-card,
  .me-profile-meta,
  #who {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  /* Mobile Institutions search input minimum usable width */
  body.catalogue-page .topbar .search,
  .topbar #searchform {
    flex: 1 1 170px !important;
    min-width: 160px !important;
  }
  .topbar #search {
    min-width: 120px !important;
    width: 100% !important;
  }
}

/* === Comprehensive Mobile-First Adaptation Overhaul (mp79) === */
/* 1. Kill legacy CSS ::after double chevron on custom select-controls pills */
.home-filter-set label::after {
  display: none !important;
  content: none !important;
}
/* 2. Back-to-top truly hidden when inactive (zero phantom HUD occlusion at scrollY=0) */
.pp-back-top {
  visibility: hidden;
  width: 42px;
  height: 42px;
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}
.pp-back-top.is-visible {
  visibility: visible;
}
/* 3. Mobile Topbar Brand Wordmark (hidden on desktop, crisp on <=780px) */
.app-mobile-brand {
  display: none;
}
/* 4. Schedule modal balanced subtitle (no 1-char orphan) */
.pp-sched-head p {
  text-wrap: balance;
}
/* 5. Always show checklist step edit/delete buttons on touch devices & <=780px */
@media (hover: none), (max-width: 780px) {
  .pp-step-edit-btn,
  .pp-step-del {
    opacity: 0.78 !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 14px !important;
    flex: none !important;
  }
}

@media (max-width: 780px) {
  /* Unified Native Mobile Topbar (≡  Profile+       🌐) */
  .app-mobile-brand {
    display: inline-flex !important;
    align-items: center !important;
    height: 28px !important;
    margin-left: 6px !important;
    margin-right: auto !important;
    color: #0f172a !important;
    text-decoration: none !important;
    flex: none !important;
  }
  .app-mobile-brand svg {
    height: 20px !important;
    width: auto !important;
    display: block !important;
  }
  .home-catalogue .topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    
    
    border-bottom: 1px solid #eef2f6 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
  }
  .home-catalogue .topbar .profile-locale,
  .me-shell .topbar .profile-locale,
  header.top .profile-locale {
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin-left: auto !important;
  }

  /* Home Hero & Pupu Card Compact Rhythm */
  .home-catalogue .discovery-welcome-inner {
    padding: 18px 16px 10px !important;
    gap: 14px !important;
  }
  .home-catalogue main#home-browser {
    padding: 6px 16px 96px !important;
  }
  .discovery-hero-title {
    font-size: 25px !important;
  }
  .home-catalogue .discovery-welcome .home-search {
    height: 50px !important;
    padding: 0 6px 0 16px !important;
  }
  .home-catalogue .discovery-welcome .home-search > button {
    width: 38px !important;
    height: 38px !important;
  }
  .discovery-plan {
    padding: 16px 18px 15px !important;
    gap: 10px !important;
    border-radius: 20px !important;
  }
  .discovery-plan-avatar {
    width: 60px !important;
    height: 60px !important;
  }
  .discovery-plan-avatar img {
    width: 56px !important;
    height: 56px !important;
  }
  .discovery-plan-title {
    font-size: 17px !important;
  }
  .discovery-plan-description {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }

  /* Home Direction Tabs: Sleek Swipeable Strip with Soft Right-Edge Fade */
  .home-catalogue .category-navigation {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    padding: 2px 24px 4px 0 !important;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent 100%);
  }
  .home-catalogue .category-navigation::-webkit-scrollbar {
    display: none !important;
  }
  .home-catalogue .category-navigation button {
    flex: 0 0 auto !important;
    min-height: 38px !important;
  }

  /* Home Opportunity Card Tap Targets & Word Wrapping */
  .home-catalogue .card-save {
    width: 38px !important;
    height: 38px !important;
    right: 12px !important;
    top: 12px !important;
  }
  .home-catalogue .card-identity-name {
    padding-right: 44px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .home-catalogue .card-identity-name span {
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .home-catalogue .active-filter-chip {
    height: 34px !important;
  }
  .pp-back-top {
    right: 16px !important;
    bottom: 92px !important;
  }

  /* Work Visas Filter Bar: Compact 2-Row Swipeable Strips instead of 7 Stacked Rows */
  .pp-visa-bar {
    gap: 8px !important;
    padding: 10px 0 !important;
  }
  .pp-visa-row {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
  }
  .pp-visa-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    padding: 2px 18px 2px 0 !important;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
  }
  .pp-visa-pills::-webkit-scrollbar {
    display: none !important;
  }
  .pp-visa-pill,
  .pp-visa-china-toggle {
    height: 36px !important;
    flex: 0 0 auto !important;
    padding: 0 12px !important;
  }

  /* My Plans Mobile Polish: Heading Alignment, Readable Week Columns, Clean Checklist */
  html.pp-nav-saved .discovery-welcome-inner {
    padding: 16px 16px 6px !important;
  }
  html.pp-nav-saved .saved-hero-head {
    padding: 0 !important;
    margin: 0 !important;
  }
  .pp-week-matrix {
    min-width: 820px !important;
  }
  .pp-drag-handle {
    display: none !important;
  }
  .pp-rem-email-ro {
    flex-wrap: wrap !important;
    row-gap: 4px !important;
    height: auto !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
  }
  .pp-rem-email-addr {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
  }

  /* AI Advisor Mobile Flex Column Layout: Zero Topbar Clipping of 历史对话 */
  body.app-advisor-page .workspace {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  body.app-advisor-page .workspace > .toolbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    flex: 0 0 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    box-sizing: border-box !important;
    z-index: 30 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eef2f6 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
  }
  body.app-advisor-page #advisor-view {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }
  body.app-advisor-page #advisor-view .chat-toolbar {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 8px 16px 4px !important;
    margin: 0 !important;
    background: transparent !important;
  }
  body.app-advisor-page #advisor-view.is-empty .advisor-chat-canvas {
    padding: 0 16px 24px !important;
  }
  body.app-advisor-page #advisor-view.is-empty .welcome-intro {
    margin-top: 8px !important;
  }

  /* Institutions Directory & Org Detail (catalogue.html): Full-Width Search & Tap Targets */
  .heading {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .heading .search,
  #searchform.search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 2px !important;
    height: 46px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }
  .heading .search input,
  #searchform.search input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: 15px !important;
  }
  .heading .search .kbd,
  #searchform.search .kbd {
    display: none !important;
  }
  aside[aria-label="机构类型"] {
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
  }
  .row .save {
    min-width: 38px !important;
    min-height: 38px !important;
    width: 38px !important;
    height: 38px !important;
    display: inline-grid !important;
    place-items: center !important;
  }
  #drawer #close {
    min-width: 40px !important;
    min-height: 40px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 22px !important;
  }
  #drawer #detailactions {
    gap: 8px !important;
  }
  #drawer #detailactions .secondary,
  #drawer #detailactions .primary {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #drawer .detailfacts .fact {
    grid-template-columns: 98px minmax(0, 1fr) !important;
  }
  #drawer .detailfacts .fact > span:first-child {
    min-width: 96px !important;
    word-break: keep-all !important;
  }

  /* Account Center (me.html): Prevent Card 3 Heading Squish on 375px */
  .me-card-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .me-card-title-wrap {
    min-width: 0 !important;
  }

  /* === Final Mobile Perfection Pass (mp80) === */
  /* 1. Single unified Profile+ logo on catalogue.html mobile topbar */
  header .mobilebrand {
    display: none !important;
  }
  /* 2. Catalogue mobile .row grid gives .save exact 38px column (zero 14px overhang) */
  .row {
    grid-template-columns: 36px minmax(0, 1fr) 38px !important;
    gap: 10px !important;
  }
  /* 3. Home detail drawer close button >= 40x40px */
  #home-detail-close,
  .hd-close {
    min-width: 40px !important;
    min-height: 40px !important;
    width: 40px !important;
    height: 40px !important;
  }
  /* 4. Advisor mobile history drawer sits cleanly OVER 56px topbar + solid active chat-toolbar */
  body.app-advisor-page .workspace > .toolbar {
    z-index: 20 !important;
  }
  body.app-advisor-page #advisor-view.history-open {
    z-index: 95 !important;
    position: relative !important;
  }
  body.app-advisor-page #advisor-view:not(.is-empty) .chat-toolbar {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  /* 5. Email reminder modal full email wrap on 375px (no @example.c... truncation) */
  .pp-rem-email-val {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    min-width: 0 !important;
    flex: 1 1 180px !important;
  }
}

/* 6. Editorial full-width vertical Opportunity Cards on phones (<=540px) — kills cramped 74px side column */
@media (max-width: 540px) {
  .home-catalogue .opportunity-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .home-catalogue .card-identity {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
    min-height: 46px !important;
    padding: 14px 56px 6px 16px !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
  }
  .home-catalogue .card-identity-name {
    max-width: none !important;
    width: auto !important;
    flex: 1 1 auto !important;
    padding-right: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }
  .home-catalogue .card-identity-name span {
    -webkit-line-clamp: 2 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .home-catalogue .card-save {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    width: 38px !important;
    height: 38px !important;
  }
  .home-catalogue .card-content {
    padding: 6px 16px 12px !important;
  }
  .home-catalogue .card-bottom {
    padding: 10px 16px 14px !important;
    border-top: 1px solid #f3f5f8 !important;
  }
}

/* === Native-App-Grade Mobile UI Polish Pass (mp81) === */
/* Pre-hydration loading skeleton for My Plans (kills empty-state marketing flash) */
.pp-plan-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 0 32px;
}
.pp-sk-bar,
.pp-sk-card {
  border-radius: 16px;
  background: linear-gradient(90deg, #f3f6fa 0%, #eaf0f7 50%, #f3f6fa 100%);
  background-size: 200% 100%;
  animation: ppSkPulse 1.35s ease-in-out infinite;
}
.pp-sk-bar.is-sm {
  height: 36px;
  width: min(260px, 68%);
  border-radius: 999px;
}
.pp-sk-card {
  height: 220px;
  border: 1px solid #eef2f7;
}
.pp-sk-card.is-short {
  height: 112px;
}
@keyframes ppSkPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Native iOS 7-Day Horizontal Strip + Full-Width Day Agenda (Mobile Week View) */
.pp-mob-daystrip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid #eef2f6;
  background: #fafbfd;
}
.pp-mob-daybtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pp-mob-daybtn .pp-mob-dw {
  font-size: 11px;
  font-weight: 560;
  color: #64748b;
  line-height: 1;
}
.pp-mob-daybtn .pp-mob-dn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 680;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.pp-mob-daybtn.is-today .pp-mob-dn {
  background: #e8f0fe;
  color: #1d4ed8;
}
.pp-mob-daybtn.is-selected {
  background: #ffffff;
  border-color: #dbe4f2;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.pp-mob-daybtn.is-selected .pp-mob-dw {
  color: #2563eb;
}
.pp-mob-daybtn.is-selected .pp-mob-dn {
  background: #2563eb;
  color: #ffffff;
}
.pp-mob-dd {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}
.pp-mob-dd.is-on {
  background: #3b82f6;
}
.pp-mob-dd.is-warn {
  background: #f59e0b;
}
.pp-mob-dd.is-done {
  background: #10b981;
}
.pp-mob-agenda {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}
.pp-mob-ag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pp-mob-ag-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.pp-mob-ag-title strong {
  font-size: 14.5px;
  font-weight: 680;
  color: #0f172a;
}
.pp-mob-ag-title span {
  font-size: 12px;
  font-weight: 560;
  color: #64748b;
}
.pp-mob-ag-add {
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #d7e3f7;
  background: #f4f8ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}
.pp-mob-ag-milestones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-mob-fullcard {
  width: 100% !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}
.pp-mob-ag-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-mob-ag-plbl {
  font-size: 11.5px;
  font-weight: 620;
  color: #64748b;
  letter-spacing: 0.02em;
  padding-left: 2px;
}
.pp-mob-study-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 11px !important;
  min-height: 58px !important;
  padding: 12px 13px !important;
  border-radius: 13px !important;
  width: 100% !important;
}
.pp-mob-study-card .pp-sb-chk {
  width: 22px !important;
  height: 22px !important;
  flex: none !important;
}
.pp-mob-sb-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pp-mob-study-card .pp-sb-proj {
  font-size: 14px !important;
  font-weight: 640 !important;
  line-height: 1.38 !important;
  color: #0f172a !important;
  white-space: normal !important;
  overflow: visible !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
}
.pp-mob-sb-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pp-mob-study-card .pp-sb-info {
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.pp-mob-sb-more {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  flex: none;
}
.pp-mob-ag-empty {
  padding: 24px 14px;
  text-align: center;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.55;
}

/* Account Center clean email subline */
.me-identity-copy {
  min-width: 0;
  flex: 1;
}
.me-email-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #64748b;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

@media (max-width: 780px) {
  /* 1. Unify mobile topbar locale pill (🌐 简中 ⌄) across EVERY page including home.html */
  .home-catalogue .topbar .profile-locale-trigger,
  .topbar .profile-locale-trigger,
  header.top .profile-locale-trigger,
  .workspace > .toolbar .profile-locale-trigger {
    width: auto !important;
    min-width: 0 !important;
    height: 36px !important;
    padding: 0 11px !important;
    gap: 5px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
  }
  .home-catalogue .topbar .profile-locale-current,
  .home-catalogue .topbar .profile-locale-chevron {
    display: inline-flex !important;
    align-items: center !important;
  }
  .home-catalogue .topbar .profile-locale-globe {
    width: 15px !important;
    height: 15px !important;
  }
  .me-shell .topbar,
  header.top {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px !important;
    border-bottom: 1px solid #eef2f6 !important;
  }

  /* 2. Crisp Native Mobile Nav Drawer & Rich Scrim */
  .app-nav-shade {
    background: rgba(15, 23, 42, 0.42) !important;
    
    
  }
  #profile-navigation.app-common-rail {
    width: min(276px, 78vw) !important;
    min-width: min(276px, 78vw) !important;
    box-shadow: 16px 0 48px rgba(15, 23, 42, 0.18) !important;
  }

  /* 3. Home: Touch-scrollable 收录机构 starting cleanly at Card #1 (no blank washed-out left card!) */
  .institution-gallery-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 16px 8px 0 !important;
  }
  .institution-gallery-viewport::-webkit-scrollbar {
    display: none !important;
  }
  .institution-gallery-viewport::before {
    display: none !important;
    content: none !important;
  }
  .institution-gallery-viewport::after {
    width: 22px !important;
  }
  .institution-gallery-track {
    animation: none !important;
    transform: none !important;
    width: max-content !important;
    gap: 10px !important;
    padding-right: 16px !important;
  }
  .institution-gallery-track [aria-hidden="true"] {
    display: none !important;
  }
  .institution-gallery-card,
  .institution-pill {
    min-width: 166px !important;
    padding: 14px 15px !important;
  }

  /* 4. Home: Consistent solid blue 开始对话 CTA + sleeker Pupu card */
  .discovery-plan {
    padding: 14px 16px !important;
    gap: 9px !important;
  }
  .discovery-plan-cta {
    background: linear-gradient(135deg, #528bff 0%, #356ee6 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px rgba(53, 110, 230, 0.22) !important;
  }

  /* 5. Home: Kill double blue border/ring on active direction tab (工作签证 etc.) */
  .category-glider,
  .category-nav-glider {
    display: none !important;
  }
  .home-catalogue .category-navigation button {
    outline: none !important;
    box-shadow: none !important;
  }
  .home-catalogue .category-navigation button:focus {
    outline: none !important;
    box-shadow: none !important;
  }
  .home-catalogue .category-navigation button[aria-pressed="true"] {
    background: #eef4ff !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(37, 99, 235, 0.26) !important;
    box-shadow: none !important;
  }

  /* 6. Home: Clean bottom fade clearance under floating #home-dock (prevents harsh text collision) */
  .home-catalogue:not(.pp-nav-saved-body)::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 28%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 32;
  }
  html.pp-nav-saved .home-catalogue::after {
    display: none !important;
  }
  .home-catalogue .home-dock {
    bottom: 12px !important;
    z-index: 38 !important;
    padding: 5px 7px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
  }

  /* 7. Work Visas Bar: Clean full-width 大洲 scroll + dedicated 大陆可申 toggle (zero mid-chip clipping) */
  .pp-visa-bar .pp-visa-row:first-child {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
  }
  .pp-visa-bar .pp-visa-row:first-child .pp-visa-pills {
    width: 100% !important;
    min-width: 0 !important;
  }
  #pp-visa-china-btn.pp-visa-china-toggle {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    height: 34px !important;
    font-size: 12.5px !important;
  }

  /* 8. AI Advisor: Full-screen dark blurred scrim over topbar + crisp wrapping composer placeholder */
  body.app-advisor-page:has(#advisor-view.history-open) .workspace > .toolbar {
    z-index: 1 !important;
  }
  body.app-advisor-page #advisor-view.history-open {
    overflow: visible !important;
    z-index: 1200 !important;
  }
  #advisor-view.history-open::before {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.48) !important;
    
    
    z-index: 1200 !important;
  }
  #advisor-view .advisor-history-panel {
    z-index: 1210 !important;
    background: #ffffff !important;
    box-shadow: 20px 0 56px rgba(15, 23, 42, 0.24) !important;
  }
  body.app-advisor-page #advisor-view .chat-toolbar {
    min-height: 42px !important;
    padding: 8px 16px 0 !important;
  }
  #advisor-view textarea,
  #advisor-input {
    font-size: 15px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }

  /* 9. Catalogue (Institutions & Org Detail): Kill ugly green underline on rounded blue pills + tighter org cards */
  .taxonomy {
    border-bottom: 1px solid #eef2f6 !important;
    padding: 4px 20px 12px !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%) !important;
    mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%) !important;
  }
  .taxonomy::-webkit-scrollbar {
    display: none !important;
  }
  .taxonomy .type,
  .taxonomy .type.active {
    border-bottom: 0 !important;
    border-bottom-color: transparent !important;
    border-radius: 999px !important;
    padding: 7px 14px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
  .taxonomy .type.active {
    background: #eef4ff !important;
    color: #1d4ed8 !important;
    font-weight: 620 !important;
  }
  .orggrid.institution-grid .orgcard.institution-card,
  .orgcard {
    min-height: 0 !important;
    padding: 15px 16px !important;
    gap: 10px !important;
  }
  .orgcard.institution-card .institution-card__footer {
    padding-top: 10px !important;
    margin-top: 2px !important;
  }
  .filters {
    padding-bottom: 10px !important;
    min-height: 0 !important;
  }

  /* 10. My Plans: Crisp 2-row calendar header, clean single-line 申请与进度追踪, single-row List filters */
  .pp-mc-toolbar {
    gap: 10px !important;
    padding-bottom: 12px !important;
  }
  .pp-mc-left {
    width: 100% !important;
    gap: 10px !important;
  }
  .pp-stage-filters {
    width: 100% !important;
    margin-left: 0 !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 16px 2px 0 !important;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
  }
  .pp-stage-filters::-webkit-scrollbar {
    display: none !important;
  }
  .pp-bf-pill {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
  .pp-mc-right {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  .pp-mc-right::-webkit-scrollbar {
    display: none !important;
  }
  .pp-mc-ai-btn,
  .pp-mc-ics {
    padding: 0 11px !important;
    height: 34px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }
  .pp-cal-nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding: 13px 14px !important;
  }
  .pp-week-left {
    display: contents !important;
  }
  .pp-cal-nav strong {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }
  .pp-week-stat {
    grid-column: 1 !important;
    grid-row: 2 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .pp-sync-pill {
    display: none !important;
  }
  .pp-week-right {
    display: contents !important;
  }
  .pp-pace-pills {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    padding: 3px !important;
  }
  .pp-cal-nav-btns {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    gap: 4px !important;
  }
  .pp-cal-nav-btns button {
    height: 28px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }
  .pp-app-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 14px 16px 12px !important;
  }
  .pp-app-head-l {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    white-space: nowrap !important;
  }
  .pp-app-head-l strong {
    white-space: nowrap !important;
  }
  .pp-blk-pop,
  .pp-cal-pop,
  .pp-round-pop {
    max-width: calc(100vw - 24px) !important;
  }

  /* 11. Account Center (me.html): Compact native header + 3-col horizontal KPI row + 4-col status pills */
  .me-main {
    padding: 18px 14px 56px !important;
  }
  .me-page-head {
    margin-bottom: 12px !important;
  }
  .me-page-head h1 {
    font-size: 22px !important;
  }
  .me-hero {
    padding: 16px 15px !important;
    border-radius: 18px !important;
  }
  .me-hero-top {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .me-identity {
    gap: 11px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .me-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    font-size: 18px !important;
  }
  .me-hello {
    font-size: 16.5px !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .me-email-sub {
    font-size: 11.5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .me-sync-pill {
    margin-top: 5px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
  }
  #logout.me-btn {
    min-height: 32px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
    flex: none !important;
  }
  .me-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }
  .me-stat-card {
    padding: 10px 10px 11px !important;
    border-radius: 13px !important;
    gap: 2px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .me-stat-label {
    justify-content: center !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  .me-stat-arrow,
  .me-stat-hint {
    display: none !important;
  }
  .me-stat-num {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }
  .me-card {
    padding: 16px 15px !important;
    border-radius: 18px !important;
  }
  .me-plan-filters {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }
  .me-plan-filters::-webkit-scrollbar {
    display: none !important;
  }
  .me-plan-filter {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
  .me-plan-item {
    padding: 14px 13px !important;
    gap: 10px !important;
  }
  .me-plan-status-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  .me-status-pill {
    padding: 0 4px !important;
    font-size: 11.5px !important;
    min-height: 32px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  .me-plan-note-form {
    flex-wrap: nowrap !important;
    gap: 7px !important;
  }
  .me-plan-note-form input {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    font-size: 13px !important;
    padding: 0 10px !important;
  }
  .me-plan-note-form .me-btn {
    flex: none !important;
    padding: 0 11px !important;
  }
}

/* === Final Mobile Perfection Pass (mp82): Zero Card Clipping, Crisp Month Grid, Date Picker Z-Index, Catalogue Drawer & Filters === */
@media (max-width: 780px) {
  /* 1. me.html: Fix CSS Grid minmax(0,1fr) blowout so EVERY card, pill, and button fits 100% inside 390px & 375px */
  .me-stack {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .me-card,
  .me-hero {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .me-card-desc,
  .me-setting-copy,
  .me-cal-info,
  .me-empty-copy,
  .me-plan-head,
  .me-plan-item,
  .me-plan-list {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .me-setting-row,
  .me-sec-row,
  .me-cal-row {
    min-width: 0 !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .me-sec-form {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .me-sec-form .me-field {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }
  .me-sec-form .me-btn {
    width: 100% !important;
  }
  .me-plan-note-form {
    width: 100% !important;
    min-width: 0 !important;
  }
  .me-plan-note-form input {
    min-width: 0 !important;
    width: 0 !important;
    flex: 1 1 0 !important;
  }
  .me-plan-filters {
    max-width: 100% !important;
  }

  /* 2. My Plans Month View: All 7 columns fit edge-to-edge on 390px & 375px with zero right-side clipping */
  .pp-cal-scroll {
    overflow-x: hidden !important;
  }
  .pp-cal-grid {
    min-width: 0 !important;
    width: 100% !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
  .pp-cal-wday {
    padding: 7px 2px !important;
    font-size: 11px !important;
    text-align: center !important;
  }
  .pp-cal-cell {
    min-height: 58px !important;
    padding: 5px 3px 4px !important;
    min-width: 0 !important;
  }
  .pp-cal-daynum {
    font-size: 11.5px !important;
    text-align: center !important;
  }
  .pp-m-load {
    justify-content: center !important;
    gap: 2px !important;
  }
  .pp-m-load em {
    font-size: 10px !important;
  }
  .pp-m-iv,
  .pp-m-due {
    font-size: 9.5px !important;
    padding: 1px 3px !important;
  }

  /* 3. My Plans List View: Keep 设日期 picker cleanly ABOVE expanded 行动清单 */
  .pp-plan-row,
  .pp-plan-row.is-open {
    overflow: visible !important;
  }
  .pp-row-head {
    position: relative !important;
    z-index: 4 !important;
  }
  .pp-row-detail {
    position: relative !important;
    z-index: 1 !important;
  }
  .pp-date-pill {
    position: relative !important;
    z-index: 5 !important;
  }

  /* 4. Catalogue Detail Drawer logo & 更多筛选 2-column grid (zero truncated labels) */
  .detailorg .orglogo {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex: none !important;
    display: block !important;
    object-fit: contain !important;
    padding: 4px !important;
    background: #ffffff !important;
  }
  #additional:not([hidden]) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 0 12px !important;
  }
  #additional select,
  #additional .pp-select-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 12.5px !important;
  }

  /* 5. Home Filter Bar (mp83): Exact 2x2 equal-width & equal-height capsules, unified font/color/icon */
  .home-catalogue .browse-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  .home-catalogue .home-filter-set {
    display: contents !important;
  }
  .home-catalogue .home-filter-set label {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .home-catalogue .home-filter-set .pp-select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    height: 42px !important;
  }
  .home-catalogue .home-filter-set .pp-select-trigger,
  .home-catalogue #more-filters {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    padding: 0 12px 0 14px !important;
    border-radius: 999px !important;
    font: 500 12.5px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    color: #3c4043 !important;
    justify-content: space-between !important;
  }
  .home-catalogue .home-filter-set #clear-filters {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    padding-left: 2px !important;
  }
}

/* Global design-system unification for Home #more-filters (matches .pp-select-trigger tokens 100%) */
.home-catalogue #more-filters {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 38px !important;
  padding: 7px 12px 7px 14px !important;
  border: 1px solid #e5e8ec !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #3c4043 !important;
  font: 500 12.5px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}
.home-catalogue #more-filters:hover {
  border-color: #cfd5dc !important;
  background: #fafbfd !important;
  color: #111317 !important;
}
.home-catalogue #more-filters .pp-more-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-catalogue #more-filters svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  opacity: 0.65 !important;
  stroke-width: 1.7 !important;
}
.home-catalogue #more-filters[aria-expanded="true"] {
  border-color: rgba(53, 110, 230, 0.28) !important;
  background: #eef4ff !important;
  color: #1d4ed8 !important;
}
.home-catalogue #more-filters[aria-expanded="true"] svg {
  opacity: 1 !important;
}
.home-catalogue .home-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.home-catalogue .home-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.home-catalogue .home-footer-links a {
  color: #6b7280;
  font-size: 11.5px;
  line-height: 1.5;
  text-decoration: none;
  transition: color .15s ease;
}
.home-catalogue .home-footer-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
@media (max-width: 780px) {
  .home-catalogue .home-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 56px;
    padding-bottom: 24px;
  }
  .home-catalogue .home-footer-links {
    gap: 8px 14px;
  }
}

/* Skip off-screen card layout/paint during scroll */
.home-card, .project-card, .opportunity-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

/* Student Perk cross-link callout inside opportunity detail drawer */
.hd-perk-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 14px 0 6px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(53, 110, 230, 0.20);
  background: linear-gradient(135deg, #f4f8ff 0%, #f8fafc 100%);
  color: #1e293b;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.hd-perk-banner:hover {
  border-color: rgba(53, 110, 230, 0.42);
  background: #f0f6ff;
  box-shadow: 0 4px 14px rgba(53, 110, 230, 0.08);
}
.hd-perk-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(53, 110, 230, 0.12);
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 600;
}
.hd-perk-banner strong {
  font-weight: 600;
  color: #0f172a;
}
.hd-perk-go {
  margin-left: auto;
  color: #2563eb;
  font-size: 12px;
  font-weight: 560;
}

/* === Unified Centered Detail Modals (matching Student Perks modal) === */
.home-detail-dialog[open]{
  display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important;
}
.home-detail-dialog::backdrop{
  background:rgba(17,19,23,.42)!important;
}
.home-detail-dialog .hd-panel{
  width:min(680px,100%)!important;height:auto!important;max-height:min(90dvh,840px)!important;
  border-radius:24px!important;border:1px solid rgba(17,19,23,.08)!important;
  box-shadow:0 24px 56px rgba(17,19,23,.16)!important;background:#ffffff!important;overflow:hidden!important;
}
.home-detail-dialog .hd-header{
  height:auto!important;min-height:60px!important;padding:16px 26px!important;
  background:#ffffff!important;border-bottom:1px solid #f1f3f5!important;
}
.home-detail-dialog .hd-close{
  width:34px!important;height:34px!important;border-radius:50%!important;
  background:#f5f7fa!important;color:#4b5563!important;font-size:20px!important;
  display:grid!important;place-items:center!important;
}
.home-detail-dialog .hd-close:hover{background:#eaedf2!important;color:#111317!important;}
.home-detail-dialog .hd-body{
  padding:24px 28px 28px!important;background:#ffffff!important;
}
.home-detail-dialog .hd-actions{
  padding:16px 28px max(16px,env(safe-area-inset-bottom))!important;
  background:#ffffff!important;border-top:1px solid #f1f3f5!important;box-shadow:none!important;
}

/* Convert all legacy #drawer / .drawer slide-over drawers (e.g. catalogue.html) to centered modals */
.drawerbackdrop[hidden],.drawer[hidden]{display:none!important;}
.drawerbackdrop:not([hidden]){
  position:fixed!important;inset:0!important;z-index:120!important;
  background:rgba(17,19,23,.42)!important;
}
.drawer:not([hidden]){
  position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important;z-index:121!important;
  width:min(680px,calc(100vw - 32px))!important;height:auto!important;max-height:min(90dvh,840px)!important;
  border-radius:24px!important;border:1px solid rgba(17,19,23,.08)!important;
  box-shadow:0 24px 56px rgba(17,19,23,.16)!important;background:#ffffff!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
  animation:app-drawer .22s cubic-bezier(.16,1,.3,1)!important;
}
@keyframes app-drawer{
  from{opacity:0;transform:translate(-50%,-48%) scale(.975)}
  to{opacity:1;transform:translate(-50%,-50%) scale(1)}
}
.drawer .drawerhead{
  position:relative!important;flex:0 0 auto!important;padding:16px 26px!important;
  border-bottom:1px solid #f1f3f5!important;background:#ffffff!important;
}
.drawer .close{
  width:34px!important;height:34px!important;border-radius:50%!important;border:0!important;
  background:#f5f7fa!important;color:#4b5563!important;font-size:20px!important;line-height:1!important;
  display:grid!important;place-items:center!important;padding:0!important;
}
.drawer .close:hover{background:#eaedf2!important;color:#111317!important;}
.drawer .drawerbody{
  flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;
  padding:24px 28px 28px!important;background:#ffffff!important;
}
.drawer .detailactions,#drawer #detailactions{
  position:relative!important;inset:auto!important;bottom:auto!important;right:auto!important;
  width:100%!important;flex:0 0 auto!important;
  padding:16px 28px max(16px,env(safe-area-inset-bottom))!important;
  border-top:1px solid #f1f3f5!important;background:#ffffff!important;
}
.pp-prep-drawer{
  display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important;
}
.pp-prep-backdrop{
  background:rgba(17,19,23,.42)!important;
}
.pp-prep-panel{
  position:relative!important;inset:auto!important;width:min(640px,100%)!important;
  max-height:min(88dvh,800px)!important;border-radius:24px!important;
  border:1px solid rgba(17,19,23,.08)!important;box-shadow:0 24px 56px rgba(17,19,23,.16)!important;
  transform:scale(.975)!important;overflow:hidden!important;
}
.pp-prep-drawer.open .pp-prep-panel{transform:scale(1)!important;}

@media(max-width:640px){
  .home-detail-dialog[open]{padding:12px!important;}
  .home-detail-dialog .hd-panel,.drawer:not([hidden]){
    width:calc(100vw - 24px)!important;max-height:92dvh!important;border-radius:20px!important;
  }
  .home-detail-dialog .hd-header,.drawer .drawerhead{padding:14px 20px!important;}
  .home-detail-dialog .hd-body,.drawer .drawerbody{padding:20px 20px 24px!important;}
  .home-detail-dialog .hd-actions,.drawer .detailactions,#drawer #detailactions{
    padding:14px 20px max(14px,env(safe-area-inset-bottom))!important;
  }
}

/* === Advisor Hero & Alignment Polish (v20261202) === */
#advisor-view.is-empty .pp-advisor-pillars{
  width:100%!important;max-width:760px!important;margin:16px auto 0!important;gap:12px!important;
}
#advisor-view.is-empty .pp-hero-kicker{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  color:#334155!important;background:rgba(241,245,249,.92)!important;
  border:1px solid #e2e8f0!important;padding:4px 12px!important;border-radius:999px!important;
  font-size:12px!important;font-weight:580!important;
}
#advisor-view.is-empty .pp-ac-desc{
  color:#475569!important;font-size:12px!important;line-height:1.45!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
}


/* === Advisor Welcome Seam Fix (v20261202v5) === */
#advisor-view.is-empty .advisor-chat-canvas::before {
  display: none !important;
  content: none !important;
}
#advisor-view.is-empty .chat-composer-wrap {
  background: transparent !important;
}


/* === Whole-Site Locale Switcher Alignment & Zero-Overlap Advisor Canvas (v20261203v2) === */
@media (min-width: 781px) {
  body.app-advisor-page .workspace > .toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 44px 0 24px !important;
    background: transparent !important;
    border-bottom: 0 !important;
    z-index: 30 !important;
  }
  body.app-advisor-page .workspace > .toolbar .profile-locale {
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin-left: auto !important;
  }
  #advisor-view:not(.is-empty) .advisor-chat-canvas {
    padding-top: 56px !important;
    box-sizing: border-box !important;
  }
  #advisor-view:not(.is-empty) .chat-messages {
    padding-top: 12px !important;
  }
  #advisor-view:not(.is-empty) .advisor-chat-canvas::before {
    display: none !important;
    content: none !important;
  }
}
