/* Portal layout. The shared shell owns the header, logo and action styles. */
body.pc-portal{--body:var(--pc-font);min-height:100svh}
body.pc-portal:has(> .pcbar){display:block;padding-top:56px}
body.pc-portal.pc-bar>.pcbar{position:fixed;inset:0 0 auto;z-index:1200}
body.pc-portal .dash{margin:24px auto;width:min(1120px,calc(100% - 48px));padding:28px}
.portal-heading{margin:0 0 8px;font-size:24px;letter-spacing:-.02em}
.portal-account{font-size:12.5px;color:var(--text3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.portal-menu{position:relative;flex:none}
.portal-menu>summary{list-style:none}
.portal-menu>summary::-webkit-details-marker{display:none}
.portal-menu-list{position:absolute;right:0;top:calc(100% + 8px);width:210px;max-height:calc(100dvh - 80px);overflow-y:auto;padding:6px;background:var(--panel);border:1px solid var(--border2);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.14)}
.portal-menu-list a{display:flex;align-items:center;min-height:44px;padding:10px 12px;border-radius:6px;font-size:13px;color:var(--text2);text-decoration:none}
.portal-menu-list a:hover,.portal-menu-list a[aria-current]{background:var(--panel3);color:var(--text)}
.sb-search{margin:0 0 0 auto;flex:1 1 230px;max-width:360px}
.sb-search input{height:44px;font-size:16px;padding:10px 12px}
.sb-search label{margin:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.auth-field input,.card input:not([type=checkbox]){font-size:16px}
body.pc-portal .sb-hint{flex-basis:100%}
/* Explicit grid sizing prevents the folder's four previews spilling into a column. */
body.pc-portal .sb-tray{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));place-items:center;gap:6px}
body.pc-portal .sb-tray img{width:100%;height:100%;max-width:36px;max-height:36px;object-fit:contain}
body.pc-portal .sb-seg button{min-height:44px}
body.pc-portal .sb-scrim{z-index:1300;overscroll-behavior:contain}
body.pc-portal .sb-sheet{overscroll-behavior:contain}
body.pc-portal .sb-close{width:44px;height:44px;flex:none;padding:0}
body.pc-portal .sb-folder:focus-visible{outline:2px solid var(--pc-focus);outline-offset:6px;border-radius:12px}
body.pc-portal .sb-app:focus-visible{border-radius:8px}
body.pc-portal .sb-sheet-h h2{min-width:0;overflow-wrap:anywhere}
body.pc-portal .sb-sheet-sec{flex-wrap:wrap}
body.pc-portal .sb-secname{white-space:normal}
body.pc-portal .sb-seg button.on{color:#fff}
body.pc-portal.folder-open{overflow:hidden}
@media(max-width:1100px){
  .login-split{min-height:100svh}
  .panel-dark{overflow:visible}
  .pd-main{padding:20px 24px 24px}
  .pd-main .brand{position:static;align-self:flex-start;gap:12px}
  .pd-main .brand-mark{width:36px;height:36px}
  .pd-main .wordmark{font-size:25px}
  .hero2{margin-top:22px;max-width:100%}
  .hero2 h1{font-size:32px;line-height:1.12}
  .h-rule{margin:16px 0 14px}
  .pitch2{font-size:16px;max-width:50ch}
  .feats{display:none}
  .chart-art{display:none}
  .panel-light{padding:24px 20px 20px;justify-content:flex-start}
  .auth-card2{padding:26px 24px;animation:none}
  .right-foot{position:static;margin-top:20px;padding:0;justify-content:center;text-align:center}
  .portal-account{display:none}
}
@media(max-width:760px){
  .auth-field input,.card input:not([type=checkbox]){font-size:16px}
  .pw-toggle{width:44px;height:44px;right:3px}
  .row2{flex-wrap:wrap;gap:4px 12px}
  .remember,.row2>a,.under-card a,.right-foot a{min-height:44px;display:inline-flex;align-items:center}
  .auth-card2 h2{font-size:24px}
  .auth-card2 .or,.auth-card2 .sso{display:none}
  .under-card{margin-top:12px}
  body.pc-portal .dash{width:calc(100% - 24px);padding:20px 16px;margin:16px auto}
  .sb-search{max-width:none;flex-basis:100%;order:-1}
  body.pc-portal .sb-hint{font-size:13px}
  body.pc-portal .sb-folders{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px;padding:24px 0}
  body.pc-portal .sb-folder{width:100%;min-width:0}
  body.pc-portal .sb-fname{font-size:13px;overflow-wrap:anywhere}
  body.pc-portal .sb-tray{width:80px;height:80px;padding:9px;border-radius:20px}
  body.pc-portal .sb-apps,body.pc-portal .sb-apps.sb-big{grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:24px 12px}
  body.pc-portal .sb-scrim{padding:12px;align-items:flex-end;backdrop-filter:none}
  body.pc-portal .sb-sheet,body.pc-portal .sb-sheet.sb-wide{width:100%;max-height:calc(100dvh - 24px);padding:0 16px max(24px,env(safe-area-inset-bottom));border-radius:18px}
  body.pc-portal .sb-sheet-h{margin:0 -16px 16px;padding:12px 16px;gap:8px}
  body.pc-portal .sb-sheet-h h2{font-size:17px}
}
@media(max-width:380px){
  body.pc-portal .sb-tray{width:68px;height:68px;padding:8px;gap:4px;border-radius:17px}
  .pd-main{padding:16px 20px 20px}
  .hero2 h1{font-size:28px}
  .panel-light{padding:16px 12px}
  .auth-card2{padding:22px 18px}
}

.auth-card2 input::placeholder,body.light .sb-search input::placeholder{color:#66758B}
.right-foot,.right-foot a{color:#5D6E85}

/* The sign-in form is a light surface in both portal themes. */
.panel-light{color-scheme:light}
