.office-mode{background:#f5f3f8}.office-mode>header.portal-header{margin:0 0 0 246px;max-width:none;min-height:76px;padding:12px 32px;border-bottom:1px solid #e5deed}.office-mode>header .brand,.office-mode>header nav,.office-mode #site-menu-toggle{display:none!important}.office-mode .portal-tools{margin-left:auto}.office-mode>footer{display:none}.office-mode>main{max-width:none;margin:0 0 0 246px;padding:0 36px 60px;min-height:calc(100vh - 76px)}.office-mode #account-root{max-width:1440px;margin:32px auto}.office-sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:linear-gradient(160deg,#352944,#443356 65%,#554069);color:#e7deef;z-index:45;display:flex;flex-direction:column;overflow-y:auto;padding:25px 18px}.office-logo{display:block;background:#fff;border-radius:14px;padding:9px 21px;margin:0 8px 20px}.office-logo img{display:block;width:100%;height:75px;object-fit:contain}.office-caption{font-size:11px;letter-spacing:.16em;padding:4px 14px 22px;border-bottom:1px solid #ffffff16}.office-caption small{display:block;font-size:12px;letter-spacing:0;color:#c7b6d7;margin-top:8px}.office-sidebar nav{display:block;margin:24px 0}.office-sidebar details{margin:5px 0}.office-sidebar summary{list-style:none;display:flex;align-items:center;gap:12px;cursor:pointer;padding:14px 12px;border-radius:11px;font-size:14px;font-weight:600}.office-sidebar summary::-webkit-details-marker{display:none}.office-sidebar summary svg{width:21px;height:21px;color:#c4a9dd;flex:none}.office-sidebar summary span{flex:1}.office-sidebar summary b{font-size:15px;font-weight:400;color:#bca6cf}.office-sidebar details[open]>summary{background:#ffffff12;color:white}.office-sidebar details[open]>summary b{transform:rotate(45deg)}.office-sidebar details>div{border-left:1px solid #ffffff22;margin:8px 0 15px 22px;padding-left:12px}.office-sidebar nav a{display:block;white-space:normal;padding:10px 12px;font-size:13px;color:#cbbbd7;border:0;border-radius:8px}.office-sidebar nav a[aria-current]{background:#a985cb32;color:white;box-shadow:inset 3px 0 #bd98dc}.office-sidebar a:hover,.office-sidebar summary:hover{background-color:#ffffff13;color:white}.office-sidebar-foot{margin-top:auto;border-top:1px solid #ffffff18;padding:20px 12px 0}.office-sidebar-foot a{display:block;font-size:12px;color:#d0bfdc;margin:12px 0}.office-context{margin:0 -36px;background:white;border-bottom:1px solid #e6dfef}.office-breadcrumb{display:flex;align-items:center;padding:16px 36px;gap:12px;font-size:12px;color:#5d506b}.office-breadcrumb i{font-style:normal;color:#bbaec5;margin:0 9px}.office-breadcrumb strong{font-weight:500;color:#624878}.office-identity{margin-left:auto;text-align:right;color:#594365}.office-identity small{display:block;font-size:11px;margin-top:3px}.office-context>nav{display:flex;gap:25px;padding:0 36px;overflow-x:auto;white-space:nowrap}.office-context>nav a{font-size:13px;padding:14px 0;color:#5d506b;flex:none;border-radius:0;background:none}.office-context>nav a[aria-current]{border-bottom:3px solid #9570b5;color:#714c91;background:none}.office-context #office-menu{display:none}.office-page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.office-page-title h1{font-size:32px;font-weight:500;color:#513e63;margin:10px 0}.office-page-title p{font-size:14px;margin:0}.office-page-title .button{font-size:13px;border-radius:9px}.office-welcome{background:linear-gradient(90deg,#ebe3f4 0%,#ebe3f4ef 30%,#ebe3f422 72%),url('assets/hero-young.png') right 42%/cover;border:1px solid #e9deef;border-radius:18px;min-height:200px;padding:30px 36px;margin-bottom:24px}.office-welcome>div>span{font-size:10px;letter-spacing:.18em;color:#5d506b}.office-welcome h2{font-size:24px;font-weight:500;color:#65477e;margin:12px 0}.office-welcome p{font-size:14px;line-height:1.8;margin:0;color:#5d506b}.office-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:14px}.office-metrics a{background:#fff;border:1px solid #e5ddeb;padding:22px;border-radius:14px;transition:box-shadow .2s,transform .2s}.office-metrics a:first-child{background:#eee7f7;border-color:#d9c9e9}.office-metrics a:hover{box-shadow:0 8px 26px #44335510;transform:translateY(-2px)}.office-metrics a>span{font-size:13px;color:#5d506b}.office-metrics strong{display:block;font-size:31px;color:#57416a;margin-top:12px;font-weight:600}.office-metrics strong small{font-size:12px;margin-left:7px;font-weight:400}.office-metrics p{font-size:12px;margin:7px 0 0}.office-cohorts,.office-bottom>section,.office-member-start{background:white;border:1px solid #e6dfed;border-radius:16px;padding:26px;margin-top:24px}.office-section-head{display:flex;align-items:center;justify-content:space-between}.office-section-head h2,.office-bottom h2,.office-member-start h2{font-size:20px;font-weight:600;color:#5a436c;margin:0 0 18px}.office-section-head a{font-size:12px;color:#8c68a8}.office-cohort-list a{display:flex;gap:15px;align-items:center;padding:16px 0;border-top:1px solid #f0eaf5;font-size:13px}.office-cohort-list a>span:nth-child(2){flex:1}.office-cohort-list strong,.office-cohort-list small{display:block}.office-cohort-list small{font-size:12px;margin-top:7px}.office-cohort-list b{font-size:11px;font-weight:500;padding:5px 9px;border-radius:20px;background:#eee8f6;color:#82609f}.office-cohort-icon{padding:10px;background:#f4eff8;color:#9c7bb5;border-radius:10px}.office-cohort-icon svg{width:20px;height:20px;display:block}.office-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.office-bottom .eyebrow{font-size:10px}.office-bottom h2{margin-top:12px}.office-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.office-shortcuts a{display:flex;gap:12px;align-items:center;border:1px solid #eee7f3;border-radius:12px;padding:16px}.office-shortcuts a:hover{background:#faf6fd}.office-shortcuts svg{width:23px;height:23px;color:#a180ba;flex:none}.office-shortcuts strong{display:block;font-size:14px;color:#6a4e7d}.office-shortcuts small{display:block;font-size:11px;margin-top:6px}.office-service-note{border-top:1px solid #eee7f3;padding-top:16px;margin-top:16px}.office-service-note strong{font-size:14px;color:#685176}.office-service-note p{font-size:13px;line-height:1.8;margin:8px 0}.office-empty{padding:30px 15px;text-align:center}.office-empty h3{font-size:18px;font-weight:500}.office-empty p{font-size:14px}.office-programs{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.office-programs img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:12px}.office-programs span{display:block;margin-top:12px;color:#6d517f;font-size:14px}.office-backdrop,.office-mobile-nav{display:none}.office-mode #journey-root,.office-mode #submission-root{max-width:1440px;margin:30px auto}.office-mode .account-welcome{margin-top:0}.office-mode .admin-intro{margin-top:0}.office-mode .admin-intro h1{font-size:32px;font-weight:500}
@media(max-width:1100px){.office-sidebar{width:220px}.office-mode>header.portal-header,.office-mode>main{margin-left:220px}.office-mode>main{padding-inline:24px}.office-context{margin-inline:-24px}.office-bottom{grid-template-columns:1fr}.office-shortcuts{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.office-mode>header.portal-header{margin:0;min-height:65px;padding:10px 20px}.office-mode>header .brand{display:block!important}.office-mode>header .brand-logo{height:45px;width:90px}.office-mode>main{margin:0;padding:0 18px 100px}.office-sidebar{width:260px;transform:translateX(-100%);transition:transform .24s;z-index:70}.office-drawer-open .office-sidebar{transform:translateX(0)}.office-drawer-open .office-backdrop{display:block;position:fixed;inset:0;border:0;background:#281b3c66;border-radius:0;z-index:65}.office-context{margin:0 -18px}.office-breadcrumb{padding:12px 18px;font-size:11px}.office-breadcrumb>span:not(.office-identity){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.office-identity{display:none}.office-context #office-menu{display:grid;place-items:center;width:34px;height:34px;padding:7px;flex:none;background:#f2ecf8;color:#78568f}.office-context #office-menu svg{width:20px;height:20px}.office-context>nav{gap:23px;padding:0 18px}.office-context>nav a{font-size:12px;padding:11px 0}.office-mode #account-root{margin:24px auto}.office-page-title h1{font-size:27px}.office-page-title .eyebrow{font-size:9px}.office-page-title p{font-size:12px}.office-page-title .button{font-size:12px;padding:12px 14px;white-space:nowrap}.office-welcome{padding:25px;min-height:175px;background-position:65% center}.office-welcome h2{font-size:22px}.office-welcome p{font-size:12px}.office-metrics{grid-template-columns:1fr 1fr;gap:12px}.office-metrics a{padding:17px}.office-metrics strong{font-size:28px}.office-cohorts,.office-bottom>section,.office-member-start{padding:20px;margin-top:20px}.office-bottom{gap:0}.office-shortcuts{gap:10px}.office-shortcuts a{padding:14px 11px}.office-shortcuts strong{font-size:13px}.office-shortcuts small{font-size:11px}.office-programs{grid-template-columns:1fr 1fr}.office-cohort-list a{gap:10px}.office-mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(4,1fr);bottom:0;left:0;right:0;background:#ffffffed;backdrop-filter:blur(16px);border-top:1px solid #e9dfee;z-index:50;padding:8px 10px max(8px,env(safe-area-inset-bottom));gap:0}.office-mobile-nav a{display:grid;justify-items:center;gap:4px;font-size:10px;padding:6px;border:0;color:#5d506b}.office-mobile-nav a[aria-current]{color:#785199;border:0;background:#f5eefb;border-radius:12px}.office-mobile-nav svg{width:21px;height:21px}.office-mode .account-card{padding:22px}.office-mode .country-list{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.office-sidebar,.office-metrics a{transition:none}}

.office-single{grid-template-columns:1fr;max-width:900px}.office-mode .account-dashboard .account-card[hidden]{display:none!important}

@media(max-width:900px){.office-welcome{background-image:linear-gradient(90deg,#ebe3f4fa 0%,#ebe3f4ed 38%,#ebe3f480 100%),url('assets/hero-young.png')}.office-drawer-open{overflow:hidden}}

/* Shared readable secondary text; preserve title hierarchy and photo overlays. */
:root{--muted:#5d5268}
body input::placeholder,body textarea::placeholder{color:#665b70;opacity:1}
.account-note,.account-menu span,.account-card dt,.office-breadcrumb,.office-service-note p,.office-metrics a>span,.office-shortcuts small{font-weight:500}
#language-menu button .language-name{font-weight:600}

/* Sidebar brand: white mark above, compact full-colour signature below. */
.office-sidebar .office-logo{display:flex;align-items:center;justify-content:center;background:transparent;border-radius:0;padding:0;margin:0 auto 20px;width:164px;flex-shrink:0}
.office-sidebar .office-logo img{width:164px;height:87px;object-fit:contain;filter:grayscale(1) invert(1) brightness(2);mix-blend-mode:screen}
.office-sidebar .office-logo:hover{background:transparent}
.office-sidebar-foot{border-top:0;padding:20px 0 0}
.office-sidebar-foot .office-footer-logo{display:flex;align-items:center;justify-content:center;width:156px;height:78px;margin:0 auto 18px;padding:4px 8px;border-radius:12px;background:#fff;flex-shrink:0}
.office-footer-logo img{display:block;width:140px;height:auto;max-height:70px;object-fit:contain}
.office-sidebar-foot .office-footer-logo:hover{background:#fff}
.office-footer-links{border-top:1px solid #ffffff18;padding:14px 12px 0}

/* Consistent functional icons and quiet disclosure chevrons. */
.office-sidebar summary>svg:first-child{width:22px;height:22px;color:#d3bce7}
.office-sidebar summary .office-chevron{width:16px;height:16px;flex:none;color:#bfa8d1;transition:transform .2s ease,color .2s ease}
.office-sidebar details[open]>summary .office-chevron{transform:rotate(90deg);color:#eee3f7}
.office-sidebar summary:hover>svg:first-child{color:#fff}
@media(prefers-reduced-motion:reduce){.office-sidebar summary .office-chevron{transition:none}}

/* Accordion state follows the requested state, including while closing. */
.office-sidebar details[data-expanded="false"]>summary{background:transparent;color:#e7deef}
.office-sidebar details[data-expanded="false"]>summary .office-chevron{transform:rotate(0deg);color:#bfa8d1}
.office-sidebar details[data-expanded="true"]>summary .office-chevron{transform:rotate(90deg);color:#eee3f7}
.office-sidebar summary .office-chevron{transition:transform .42s cubic-bezier(.22,1,.36,1),color .3s ease}
.office-sidebar summary{transition:background-color .3s ease,color .3s ease}
@media(prefers-reduced-motion:reduce){.office-sidebar summary,.office-sidebar summary .office-chevron{transition:none}}

/* Centre the visible artwork, excluding the source image's uneven white margins. */
.office-sidebar-foot .office-footer-logo{width:156px;height:73px;padding:8px;margin:0 auto 18px;border-radius:12px}
.office-logo-crop{display:block;position:relative;width:140px;height:57px;overflow:hidden;flex:none}
.office-footer-logo .office-logo-crop img{position:absolute;left:-12.46px;top:-22.42px;width:162.92px;height:86.44px;max-width:none;max-height:none}
.office-brand-line{margin:0;text-align:center;color:#d7c9e3;font-size:12px;line-height:1.8;letter-spacing:.02em}
.office-brand-line strong{font-weight:500;color:#f3ebf9}

.office-mode>header.portal-header{gap:18px;min-height:72px;padding:12px 28px;flex-wrap:nowrap}
.office-header-left{padding:0;flex:1;min-width:0;gap:14px}
.office-header-left>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.office-header-left #office-menu{display:grid;place-items:center;padding:8px;width:38px;height:38px;border:1px solid #e2d8ec;border-radius:8px;background:white;color:#705287;flex:none}
.office-header-left #office-menu svg{width:20px;height:20px}
.office-mode .office-context{border-bottom:1px solid #e6dfef}
#account-navigation .office-logout{display:flex;gap:7px;align-items:center;background:transparent;color:#604875;padding:8px;font-size:12px;white-space:nowrap}
#account-navigation .office-user{display:flex;align-items:center;gap:10px;border-left:1px solid #e9e0f0;padding-left:18px;color:#554263}
.office-user strong{display:block;font-size:13px;font-weight:600}.office-user small{display:block;font-size:11px;margin-top:4px;color:#675575}
.office-user-avatar{display:grid;place-items:center;width:38px;height:38px;background:#f1eaf8;border-radius:50%;overflow:hidden;flex:none}.office-user-avatar img{width:100%;height:100%;object-fit:cover}.office-user-avatar svg{width:22px;height:22px;color:#8662a3}
.office-collapsed .office-sidebar{transform:translateX(-100%)}.office-mode.office-collapsed>header.portal-header,.office-mode.office-collapsed>main{margin-left:0}
.office-mode>header,.office-mode>main,.office-sidebar{transition:margin-left .3s ease,transform .3s ease}
.profile-photo-card{display:flex;align-items:center;gap:24px;padding:24px;margin:0 0 24px;background:#f7f3fb;border:1px solid #e7ddee;border-radius:16px}
.profile-photo-preview{width:104px;height:104px;border-radius:50%;background:#e9dff3;display:grid;place-items:center;overflow:hidden;flex:none;color:#79569b;font-size:34px}.profile-photo-preview img{width:100%;height:100%;object-fit:cover}.profile-photo-actions{display:flex;gap:9px;flex-wrap:wrap}.profile-photo-card p{font-size:13px;margin:8px 0 14px}.profile-photo-card button{font-size:13px;padding:11px 16px}.profile-photo-card input{max-width:300px;font-size:13px;margin-bottom:12px}.profile-photo-card [role=status]{flex-basis:100%}
.account-activity-list{padding:0;list-style:none}.account-activity-list li{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #eee7f3;font-size:14px}.account-activity-list time{font-size:12px;color:#665573}
@media(max-width:900px){.office-mode>header.portal-header{padding:12px 16px;gap:10px}.office-mode>header .brand{display:none!important}.office-header-left>span{display:none}.office-header-left{flex:1}.office-mode .portal-tools{margin-left:0}.office-mode #account-navigation{gap:6px}.office-mode .office-user>span:last-child{display:none}#account-navigation .office-user{padding-left:8px}#account-navigation .office-logout span{display:none}.office-mode .portal-tools .tool-install span{display:none}.profile-photo-card{align-items:flex-start;gap:16px;padding:18px}.profile-photo-preview{width:76px;height:76px}.profile-photo-card input{max-width:100%}}
@media(prefers-reduced-motion:reduce){.office-mode>header,.office-mode>main,.office-sidebar{transition:none}}

/* Keep the same formatting context during measurement, motion and resting state.
   This contains submenu margins so the final auto height cannot jump. */
.office-sidebar{scrollbar-gutter:stable;overflow-anchor:none}
.office-sidebar>nav,.office-sidebar>.office-caption,.office-sidebar>.office-sidebar-foot{flex-shrink:0}
.office-sidebar details{display:flow-root;overflow:hidden}
.office-sidebar summary .office-chevron{transition:transform .6s cubic-bezier(.4,0,.2,1),color .35s ease}
.office-mode>header,.office-mode>main,.office-sidebar{transition:margin-left .5s cubic-bezier(.4,0,.2,1),transform .5s cubic-bezier(.4,0,.2,1)}
@media(prefers-reduced-motion:reduce){.office-sidebar summary .office-chevron,.office-mode>header,.office-mode>main,.office-sidebar{transition:none}}

/* Member profile: personal identity, readable information and useful account links. */
.profile-page-heading{margin:6px 0 26px;padding-bottom:24px;border-bottom:1px solid #e3dbea}
.profile-page-heading h1{font-size:30px;margin:9px 0;color:#4f3d61}.profile-page-heading p{font-size:14px;color:#62536f;margin:0}
.profile-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:24px;align-items:start;max-width:1180px}
.profile-layout section{margin:0}
.profile-layout .account-card{border:1px solid #e3dbea;border-radius:20px;box-shadow:0 5px 24px #49305e05}
.profile-layout .profile-identity{padding:0;overflow:hidden;position:sticky;top:24px}
.profile-identity-cover{height:108px;background:radial-gradient(ellipse at 90% 5%,#c4b0dd 0,transparent 64%),linear-gradient(120deg,#74608f,#a38abb);padding:24px;text-align:center;color:#fff}
.profile-identity-cover span{font-size:10px;letter-spacing:2px;font-weight:600}
.profile-layout .profile-photo-card{display:flex;flex-direction:column;align-items:center;text-align:center;border:0;background:#fff;margin:0;padding:0 24px 26px;gap:16px}
.profile-layout .profile-photo-preview{width:132px;height:132px;margin-top:-44px;border:6px solid #fff;box-shadow:0 5px 18px #4a31551a;font-size:42px;background:#f0e9f6;position:relative}
.profile-layout .profile-photo-card>div:last-child{width:100%;min-width:0}
.profile-layout .profile-photo-card h2{font-size:24px;margin:0 0 5px;color:#493855}
.profile-member-id{display:block;color:#665575;font-size:13px;margin-bottom:14px;letter-spacing:.4px}
.profile-layout .profile-photo-card p{font-size:12px;line-height:1.7;margin:18px 0;color:#65596f}
.profile-layout .profile-photo-card label{position:relative;display:block;border:1px solid #bca8d0;border-radius:10px;padding:12px;color:#694b85;cursor:pointer;font-size:14px;font-weight:600;background:#f9f6fc;overflow:hidden}
.profile-layout .profile-photo-card label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;max-width:none}
.profile-layout .profile-photo-card label:focus-within{outline:2px solid #80629f;outline-offset:3px}
.profile-layout .profile-photo-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:10px;gap:8px}
.profile-layout .profile-photo-actions button{font-size:12px;padding:11px 4px;border-radius:10px}
.profile-details{display:grid;gap:20px;min-width:0}.profile-card-title{display:flex;align-items:center;gap:10px}
.profile-card-title h2{font-size:17px;margin:0;color:#51405f;font-weight:600}.profile-title-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f1ebf7;color:#79599b}.profile-title-icon svg{width:19px;height:19px}
.profile-private{margin-left:auto;font-size:11px;color:#6b5b77;background:#f7f4f9;padding:6px 9px;border-radius:6px}
.profile-information dl{display:block;margin:18px 0 0}.profile-information dl>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;padding:15px 0;border-bottom:1px solid #eee8f3;align-items:center}.profile-information dl>div:last-child{border:0;padding-bottom:0}
.profile-information dt{color:#61516e;font-size:13px;font-weight:500}.profile-information dd{color:#3f324d;font-size:14px;text-align:right;line-height:1.5}
.profile-affiliation{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.profile-affiliation>div{padding:18px;background:#f8f5fb;border-radius:12px}.profile-affiliation span{display:block;color:#6a5878;font-size:12px;margin-bottom:8px}.profile-affiliation strong{font-size:16px;color:#544062;font-weight:600}
.profile-text-link{font-size:13px;font-weight:600;color:#745392;border-bottom:1px solid #c9b8dc;padding-bottom:3px}
.profile-bottom-links{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:4px 0}.profile-bottom-links>a{display:flex;align-items:center;gap:12px;flex:1;text-decoration:none;color:#554063}.profile-bottom-links svg{width:22px;height:22px;flex:none}.profile-bottom-links strong{display:block;font-size:13px}.profile-bottom-links small{display:block;font-size:12px;color:#6b5b77;margin-top:5px}.profile-bottom-links button{font-size:12px}.profile-bottom-links [role=status]{flex-basis:100%;margin:0}
.office-welcome{background:radial-gradient(ellipse at 100% 0,#d8c7ed 0,transparent 60%),linear-gradient(110deg,#f0e9f7,#faf7fc);position:relative;overflow:hidden}
.office-welcome:after{content:'WITH';position:absolute;right:32px;bottom:-22px;font-size:130px;letter-spacing:-8px;font-weight:700;color:#8568a016;pointer-events:none}.office-welcome>div{position:relative;z-index:1}
.account-welcome{background:#f2ecf7}
.auth-page .account-intro{background-image:linear-gradient(0deg,#f3edf9 0%,#f3edf9e8 30%,#f3edf900 70%),url('assets/login-welcome-v1.png');background-size:cover;background-position:center 30%}
.library-banner{background-image:linear-gradient(90deg,#f6f2f9 5%,#f6f2f9dc 38%,transparent 78%),url('assets/library-desk-v1.png');background-position:center,right 58%;background-size:cover}
.profilecover{background-image:radial-gradient(ellipse at 80% 0,#cdb7e4,transparent 65%),linear-gradient(120deg,#ece2f5,#fcf9fd)}
@media(max-width:1100px){.profile-layout{grid-template-columns:270px minmax(0,1fr);gap:18px}.profile-layout .account-card{padding:24px}.profile-layout .profile-identity{padding:0}}
@media(max-width:760px){.profile-layout{grid-template-columns:1fr}.profile-layout .profile-identity{position:static}.profile-layout .profile-photo-card{padding:0 24px 20px}.profile-layout .profile-photo-card>div:last-child{max-width:360px}.profile-layout .profile-photo-preview{width:118px;height:118px}.profile-page-heading{margin-bottom:20px}.profile-page-heading h1{font-size:26px}.profile-information dl>div{grid-template-columns:100px minmax(0,1fr);gap:12px}.profile-private{font-size:10px}.profile-layout .account-card{padding:22px 18px}.profile-layout .profile-identity{padding:0}.profile-affiliation>div{padding:15px}.office-welcome:after{font-size:90px;right:10px}.auth-page .account-intro{background-position:center 32%;background-image:linear-gradient(90deg,#f3edf9f5,#f3edf9cc 45%,#f3edf920),url('assets/login-welcome-v1.png')}.library-banner{background-image:linear-gradient(90deg,#f6f2f9ee,#f6f2f9ba),url('assets/library-desk-v1.png')}}

/* Anchor the portrait to its top edge so the model's head stays in frame. */
.auth-page .account-intro{background-position:center top}
@media(max-width:760px){.auth-page .account-intro{background-size:cover,auto 100%;background-position:center,right top;background-color:#f3edf9}}
/* Large portrait with a single camera trigger; editing lives in the dialog. */
.profile-layout .profile-photo-card{padding:32px 24px 26px;gap:20px}
.profile-layout .profile-photo-preview{width:228px;height:228px;margin:0;border:0;box-shadow:none;font-size:64px;background:#f0eaf6}
.profile-portrait{position:relative;max-width:100%}
.profile-camera{position:absolute;right:4px;bottom:9px;width:36px;height:36px;border:3px solid white;border-radius:50%;background:#79569c;color:white;padding:7px;display:grid;place-items:center;cursor:pointer}
.profile-camera svg{width:19px;height:19px}.profile-camera:hover{background:#654281;transform:scale(1.06)}
.profile-layout .profile-photo-card h2{font-size:21px}.profile-layout .profile-member-id{margin-bottom:0}
.avatar-editor{width:min(430px,calc(100vw - 28px));max-height:92dvh;overflow:auto;padding:22px;border:1px solid #e3dbea;border-radius:18px;color:#4e3b5e;box-shadow:0 22px 80px #24173233;background:#fff}
.avatar-editor::backdrop{background:#2d203a77}
.avatar-editor header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.avatar-editor h2{font-size:19px;margin:0}.avatar-editor header button{background:white;border:1px solid #e0d6e9;color:#604575;width:34px;height:34px;padding:0;border-radius:8px;font-size:22px}
.avatar-file{position:relative;display:block;overflow:hidden;text-align:center;border:1px solid #d6c5e5;border-radius:8px;padding:11px;font-size:13px;cursor:pointer}.avatar-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.avatar-file:focus-within{outline:2px solid #8a67a6}
.avatar-hint{font-size:12px;color:#655473;line-height:1.6;margin:14px 0 12px}
.avatar-crop{position:relative;width:min(300px,100%);aspect-ratio:1;margin:auto;overflow:hidden;border-radius:9px;background:#eee8f5}.avatar-crop canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.avatar-crop span{position:absolute;inset:0;border:1px solid white;border-radius:50%;box-shadow:0 0 0 60px #38274855;pointer-events:none}
.avatar-zoom{display:flex;align-items:center;gap:10px;margin-top:14px}.avatar-zoom input{flex:1;min-width:0;width:auto;padding:0;accent-color:#79569c}.avatar-zoom button{width:34px;height:34px;padding:0;background:#f5f0f9;color:#79569c;border:1px solid #ded1e8;border-radius:8px}.avatar-zoom output{font-size:12px;min-width:36px}
.avatar-position{text-align:center;margin-top:10px}.avatar-position button{font-size:12px;padding:8px 12px;background:#f6f2fa;color:#715287}.avatar-editor [role=status]{font-size:12px;color:#665371;min-height:18px;margin:12px 0}.avatar-editor footer{display:flex;justify-content:flex-end;gap:10px;margin:18px 0 0;padding:0;border:0}.avatar-editor footer button{font-size:13px;padding:11px 16px}
@media(max-width:760px){.profile-layout .profile-photo-card{padding:26px 20px;gap:18px}.profile-layout .profile-photo-preview{width:220px;height:220px;margin:0}.avatar-editor{padding:18px}.avatar-crop{width:min(270px,100%)}}

.avatar-editor>header{min-height:0;height:auto;padding:0;margin:0 0 18px;max-width:none;border:0;box-shadow:none}
.avatar-editor>footer{display:flex!important}

/* Shared readable typography: apply to new account surfaces as well. */
:root{--with-text:#45364f;--with-muted:#5d4d69;--with-label-weight:500}
.account-root,.avatar-editor,.profile-edit-dialog{color:var(--with-text)}
.profile-information dt,.profile-affiliation span,.profile-page-heading p,.profile-bottom-links small,.profile-private,.profile-member-id,.avatar-hint,.avatar-editor [role=status]{color:var(--with-muted);font-weight:var(--with-label-weight)}
.profile-information dd{color:var(--with-text);font-weight:500;font-size:15px}
.profile-layout .profile-member-id{font-size:16px;font-weight:600;color:var(--with-text);letter-spacing:.3px}
.profile-information dt{font-size:14px}.profile-affiliation span{font-size:13px}
.profile-layout .profile-photo-card .profile-camera{box-sizing:border-box;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;display:grid;place-items:center;right:9px;bottom:9px;border:3px solid #fff;line-height:1}
.profile-layout .profile-camera svg{display:block;width:19px;height:19px;margin:0;flex:none}
.profile-edit-button{margin-left:auto;padding:9px 14px;font-size:13px;font-weight:600;border-radius:8px}.profile-card-title .profile-private{display:none}
.profile-edit-dialog{width:min(620px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:26px;border:1px solid #ded3e6;border-radius:18px;background:#fff;box-shadow:0 20px 70px #24173233}
.profile-edit-dialog::backdrop{background:#2d203a77}
.profile-edit-dialog header{display:flex;justify-content:space-between;align-items:center;padding:0;margin:0 0 14px;min-height:0;height:auto;border:0;max-width:none}.profile-edit-dialog h2{font-size:21px;margin:0}.profile-edit-dialog header button{width:34px;height:34px;padding:0;font-size:22px;color:#5d456f;background:#f5eff9;border-radius:8px}
.profile-edit-identity{font-size:14px;font-weight:600;color:var(--with-muted);margin:0 0 22px}.profile-edit-dialog .account-fields label{font-weight:500;color:var(--with-text)}.profile-edit-dialog input,.profile-edit-dialog select{font-weight:500;color:var(--with-text)}.required-mark{color:#c12d4a}
.profile-edit-dialog footer{display:flex!important;justify-content:flex-end;gap:10px;padding:0;margin:20px 0 0;border:0;max-width:none}.profile-edit-dialog footer button{font-size:14px}.profile-edit-dialog [role=status]{font-size:14px;color:#a52c43}
@media(max-width:600px){.profile-edit-dialog{padding:20px}.profile-edit-dialog .account-fields{grid-template-columns:1fr;gap:14px}}

/* Activity rows share the account typography and keep time in the first column. */
.account-activity-card h1{font-size:30px;line-height:1.3;margin:0 0 16px;color:var(--with-text)}
.account-activity-card p{color:var(--with-muted);font-weight:500}
.account-activity-table{width:100%;border-collapse:collapse;margin-top:28px;text-align:left;color:var(--with-text);font-size:15px;table-layout:fixed}
.account-activity-table th,.account-activity-table td{padding:18px 20px;border-bottom:1px solid #e5deed;text-align:left;font-weight:500;overflow-wrap:anywhere}
.account-activity-table th{background:#f5f1f9;font-weight:600}
.account-activity-table th:first-child{width:240px}
.account-activity-table time{font-size:14px;font-weight:500;color:var(--with-text);font-variant-numeric:tabular-nums}
@media(max-width:600px){.account-activity-table th:first-child{width:46%}.account-activity-table th,.account-activity-table td{padding:15px 10px}.account-activity-table time{font-size:13px}.account-activity-card h1{font-size:26px}}

.member-selection-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0;color:var(--with-text);font-weight:600}
.member-table-scroll{overflow-x:auto}
.member-access-table{width:100%;min-width:780px;border-collapse:collapse;text-align:left;color:var(--with-text);font-size:14px}
.member-access-table th,.member-access-table td{height:44px;padding:6px 12px;border-bottom:1px solid #e5deed;vertical-align:middle;font-weight:500;line-height:20px;white-space:nowrap}
.member-access-table th{background:#f5f1f9;font-weight:600;white-space:nowrap}
.member-access-table th:first-child{width:40px}.member-access-table input[type=checkbox]{width:18px;height:18px;margin:0;padding:0;vertical-align:middle;accent-color:#7653ad}
.member-access-table button{box-sizing:border-box;height:30px;min-height:30px;margin:0;padding:4px 12px;border-radius:7px;font-size:13px;line-height:20px;white-space:nowrap}.member-access-table tbody tr:hover{background:#faf8fc}
.permission-targets{max-height:100px;overflow:auto;font-weight:600;overflow-wrap:anywhere}
.profile-edit-dialog fieldset{border:1px solid #e5deed;border-radius:12px;margin:20px 0;padding:16px}

/* Separate date and time columns in all timestamped lists. */
.account-activity-table th:first-child{width:150px}
.account-activity-table th:nth-child(2){width:120px}
.record-date-table{width:100%;border-collapse:collapse;margin:20px 0;color:var(--with-text);font-size:14px;text-align:left}
.record-date-table th,.record-date-table td{padding:14px 12px;border-bottom:1px solid #e5deed;font-weight:500;font-variant-numeric:tabular-nums}
.record-date-table th{background:#f5f1f9;font-weight:600}
@media(max-width:600px){.account-activity-table th:first-child{width:100px}.account-activity-table th:nth-child(2){width:80px}.account-activity-table th,.account-activity-table td{padding:14px 6px}.record-date-table th,.record-date-table td{padding:12px 6px;font-size:13px}}

/* Member permission dialog — scoped to keep the established profile UI intact. */
.permission-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 32px));padding:28px;border-radius:24px;border-color:#e5ddeb;color:#382c44}
.permission-dialog::backdrop{background:#251b3b66;backdrop-filter:blur(3px)}
.permission-dialog .permission-heading{display:flex;gap:14px;align-items:center}
.permission-heading-icon,.permission-option-icon{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:13px;background:#eee7f7;color:#7652aa}
.permission-heading-icon svg,.permission-option-icon svg{width:22px;height:22px}
.permission-dialog header{margin-bottom:24px;position:static;background:transparent}
.permission-dialog header p{margin:5px 0 0;font-size:14px;color:#64566f;font-weight:500;line-height:1.5}
.permission-member{padding:20px;background:#f7f5fa;border:1px solid #ebe5f1;border-radius:16px}
.permission-member-top{display:flex;align-items:center;gap:12px}
.permission-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e9dff4;color:#64418f;font-size:20px;font-weight:700}
.permission-member-top strong{display:block;font-size:18px;color:#382c44}.permission-member-top div>span{display:block;margin-top:3px;font-size:14px;color:#594866;font-weight:600}
.permission-member dl{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;margin:18px 0 0;padding-top:16px;border-top:1px solid #e4dceb}
.permission-member dl div{min-width:0}.permission-member dt{font-size:12px;color:#65566f;font-weight:600;margin-bottom:4px}.permission-member dd{margin:0;font-size:14px;color:#382c44;font-weight:500;overflow-wrap:anywhere}
.permission-dialog .permission-options{border:0;padding:0;margin:24px 0 18px;min-width:0}
.permission-options legend{font-size:15px;font-weight:700;padding:0;margin-bottom:12px}
.permission-dialog .permission-option{display:flex;align-items:center;gap:14px;padding:16px;margin:0 0 10px;border:1px solid #ded5e8;border-radius:14px;cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s}
.permission-option:has(input:checked){background:#f6f1fc;border-color:#a58ac4;box-shadow:inset 0 0 0 1px #a58ac433}
.permission-option:hover{border-color:#8c6bb1}.permission-option:focus-within{outline:2px solid #7652aa;outline-offset:3px}
.permission-option-copy{flex:1;min-width:0}.permission-option-copy strong,.permission-account-state strong{display:block;font-size:15px;color:#382c44;font-weight:650}
.permission-option-copy small,.permission-account-state small{display:block;font-size:13px;line-height:1.55;color:#60516c;margin-top:5px;font-weight:500}
.permission-dialog .permission-option input{appearance:auto;flex-shrink:0;width:20px;height:20px;margin:0;accent-color:#7652aa}
.permission-account-state{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-top:1px solid #e8e1ef;cursor:pointer}
.permission-dialog .permission-account-state input{appearance:none;flex-shrink:0;position:relative;width:44px;height:26px;border:0;border-radius:20px;padding:0;margin:0;background:#aea5b8;cursor:pointer;transition:background .2s}
.permission-account-state input:before{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 4px #0002;transition:transform .2s}
.permission-account-state input:checked{background:#7652aa}.permission-account-state input:checked:before{transform:translateX(18px)}
.permission-dialog footer{padding-top:20px;margin-top:8px;border-top:1px solid #e8e1ef}.permission-dialog footer button{min-height:44px;padding:11px 24px;border-radius:10px;font-weight:600}.permission-dialog footer button[type=submit]{min-width:150px}
.permission-dialog [role=status]:empty{display:none}.permission-mode{display:block;margin-top:20px;font-weight:600}.permission-bulk-note{font-size:13px;color:#60516c}
@media(max-width:600px){.permission-dialog{padding:20px;border-radius:20px}.permission-member{padding:16px}.permission-member dl{grid-template-columns:1fr}.permission-dialog .permission-option{padding:13px;gap:10px}.permission-option-icon{width:36px;height:36px}.permission-dialog footer button{flex:1;padding:11px 14px}.permission-dialog h2{font-size:19px}}

/* Shared list alignment: headers and values use the same column anchor. */
.member-access-table th,.member-access-table td,
.account-activity-table th,.account-activity-table td,
.record-date-table th,.record-date-table td,
.desk-table th,.desk-table td{text-align:left;vertical-align:middle}
.member-access-table th:first-child,.member-access-table td:first-child,
.member-access-table th:last-child,.member-access-table td:last-child{text-align:center}
.member-access-table th:last-child{width:116px}
.member-access-table td:last-child button{display:inline-flex;align-items:center;justify-content:center;float:none;margin:0}
.record-date-table th,.record-date-table td{padding-left:12px;padding-right:12px}
@media(min-width:701px){.desk-table th:last-child,.desk-table td:last-child{text-align:center}.desk-table th,.desk-table td{padding-left:14px;padding-right:14px}}
@media(max-width:700px){.desk-table td:nth-child(2){text-align:right}}

#library-root{max-width:1440px;margin:30px auto}.library-upload-form{max-width:680px}.library-upload-form>label{display:block;margin:0 0 20px;font-weight:600;color:var(--with-text)}.library-upload-form input,.library-upload-form select{margin-top:8px}.library-upload-form p{color:var(--with-muted)}.library-list-tools{display:flex;gap:16px;flex-wrap:wrap}.library-list-tools label{flex:1;font-weight:600}.library-list-tools input,.library-list-tools select{margin-top:8px}.library-table small{display:block;font-size:12px;color:var(--with-muted)}.library-table th:first-child,.library-table td:first-child{text-align:left;width:auto}.library-table .button{padding:5px 12px;font-size:13px;border-radius:7px}.library-table td:nth-child(4){white-space:normal;min-width:220px}

.permission-select-basic{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f5f1fa;border-radius:12px;padding:14px 16px;margin-bottom:14px;font-size:14px;font-weight:650;color:#382c44;cursor:pointer}
.permission-select-basic small{display:block;margin-top:4px;font-size:12px;font-weight:500;color:#60516c}
.permission-dialog .permission-select-basic input{width:20px;height:20px;margin:0;accent-color:#7652aa}
.permission-dialog .permission-option-separate{margin-top:22px;border-style:dashed}

.profile-security{display:flex;align-items:center;justify-content:space-between;gap:18px}.profile-security p{font-size:14px;color:var(--with-muted);margin:8px 0 0}.profile-security button{white-space:nowrap}.password-fields{display:grid;gap:18px}.password-fields label{font-size:14px;font-weight:600}.password-fields input{margin-top:8px}@media(max-width:600px){.profile-security{align-items:flex-start;flex-direction:column}}

.password-recovery{max-width:520px;margin:40px auto}.password-recovery h1{font-size:28px}.password-recovery form>button{width:100%}.password-recovery .password-fields{margin:24px 0}
