/* Scoped launcher refresh: accounting pages, dialogs and navigation keep their styles. */
.portal-page,.company-settings-page{--portal-ink:#172b24;--portal-muted:#626f69;max-width:1240px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
/* Only the home header changes: other pages keep the company switcher at right. */
body:has(.portal-page.active) .workspace-header{flex-direction:column-reverse;align-items:flex-start;gap:6px;margin-bottom:28px}
body:has(.portal-page.active) .workspace-header .eyebrow{display:none}
body:has(.portal-page.active) .workspace-header h1{margin:0}
body:has(.portal-page.active) .workspace-header .org-pill{max-width:100%;padding:0;min-height:24px;border:0;border-radius:4px;background:transparent;box-shadow:none;font-size:13px;font-weight:400;color:#626f69;white-space:normal;overflow-wrap:anywhere;text-align:left}
body:has(.portal-page.active) .workspace-header .org-pill:not(:disabled){min-height:44px}
body:has(.portal-page.active) .workspace-header .org-pill:not(:disabled)::after{content:'⌄';margin-left:8px}
.portal-page .module-cards{grid-template-columns:repeat(auto-fill,minmax(min(350px,100%),1fr));gap:20px;align-items:stretch}
.portal-page .module-cards:has(>.portal-module:only-child){grid-template-columns:minmax(0,710px)}
.portal-page .portal-module{min-width:0;align-items:stretch;padding:30px;border:1px solid #dce5df;border-radius:20px;box-shadow:0 2px 4px #172b2404;transition:box-shadow .18s,border-color .18s;background:#fff;overflow:hidden}
.portal-module:hover{border-color:#b8cfc1;box-shadow:0 10px 28px #193e2b0b}
.portal-module-head{display:flex;align-items:center;gap:15px;min-width:0}
.portal-module-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf4f0;color:#24734f;flex-shrink:0}
.portal-module-icon svg{width:23px;height:23px}
.portal-module--finance .portal-module-icon{background:#edf3ff;color:#3d65b5}
.portal-module--purchases .portal-module-icon{background:#fbf3e7;color:#987027}
.portal-module--hr .portal-module-icon{background:#f2edfa;color:#7654a2}
.portal-module--selfie .portal-module-icon{background:#fff0f3;color:#aa5476}
.portal-availability{align-self:flex-start;margin-top:15px;padding:5px 9px;border-radius:999px;background:#f3f5f4;color:#646f68;font-size:11px;font-weight:600;line-height:1.4}
.portal-page .portal-module h2{min-width:0;margin:0;font-size:22px;line-height:1.35;letter-spacing:-.025em;font-weight:650;color:var(--portal-ink);overflow-wrap:anywhere}
.portal-page .portal-module p.portal-description{flex:1;margin:18px 0 30px;font-size:14px;line-height:1.65;color:var(--portal-muted)}
.portal-sync{position:relative;padding:11px 12px 11px 27px;margin:2px 0 18px;border-radius:10px;background:#f6f8f7;color:#53625a}
.portal-sync:before{content:"";position:absolute;top:17px;left:12px;width:6px;height:6px;border-radius:50%;background:#8b9690}
.portal-sync[data-tone=positive]{background:#f0f7f2;color:#2c6646}
.portal-sync[data-tone=positive]:before{background:#3b8b5b}
.portal-sync[data-tone=warning]{background:#fff7e8;color:#86631d}
.portal-sync[data-tone=warning]:before{background:#bb8525}
.portal-sync[data-tone=info]{background:#f0f4fc;color:#47649a}
.portal-sync[data-tone=info]:before{background:#577eb7}
.portal-page .portal-sync p,.company-settings-page .portal-sync p{flex:none;margin:0;font-size:12px;line-height:1.5;font-weight:600;color:inherit}
.portal-page .portal-sync{min-width:0;max-width:100%;padding:0 0 0 14px;margin:0;background:transparent;color:var(--portal-muted)}
.portal-page .portal-sync::before{top:6px;left:0}
.portal-page .portal-sync[data-tone=positive]{color:#2c6646}
.portal-page .portal-sync[data-tone=warning]{color:#86631d}
.portal-page .portal-sync[data-tone=info]{color:#47649a}
.portal-page .portal-sync p{font-weight:400}
.company-settings-page .portal-sync .portal-sync-times{margin-top:5px;font-size:12px;font-weight:400;white-space:pre-line;line-height:1.7}
.portal-sync-times:empty{display:none}
.portal-module-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin-top:auto}
.portal-page .portal-open{display:inline-flex;min-width:0;align-items:center;justify-content:space-between;gap:24px;min-height:46px;margin-left:auto;padding:12px 16px;border:1px solid #176b4a;border-radius:11px;background:#176b4a;color:#fff;font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;cursor:pointer;box-shadow:none}
.portal-open:hover{background:#135d3f;border-color:#135d3f}
.portal-open span{font-size:18px;line-height:1;font-weight:400}
.portal-pending{font-size:12px;color:var(--portal-muted);line-height:1.5;padding:5px 0}
.settings-intro{margin:2px 0 26px}
.settings-intro h2{margin:0 0 8px;font-size:20px;font-weight:650;letter-spacing:-.025em;color:var(--portal-ink)}
.settings-intro p{margin:0;font-size:14px;line-height:1.6;color:var(--portal-muted)}
.company-settings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(350px,100%),1fr));gap:20px;align-items:stretch}
.company-settings-card{display:flex;flex-direction:column;min-width:0;padding:26px;border:1px solid #dce5df;border-radius:20px;background:#fff;gap:12px}
.settings-category{font-size:11px;font-weight:650;color:#738077;letter-spacing:.04em;text-transform:uppercase}
.company-settings-card h3{margin:0;font-size:20px;line-height:1.35;font-weight:650;letter-spacing:-.025em;color:var(--portal-ink)}
.company-settings-card>p{margin:0 0 8px;font-size:14px;line-height:1.65;color:var(--portal-muted)}
.company-settings-card .portal-sync{margin:0 0 8px}
.company-settings-card button{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin-top:auto;padding:11px 14px;border:1px solid #dbe5de;border-radius:11px;background:#f8faf9;color:#305b46;font-size:13px;font-weight:600;box-shadow:none;cursor:pointer;text-align:left}
.company-settings-card button:hover{background:#eef5f0;border-color:#b9d0c1}
.portal-page a:focus-visible,.portal-page button:focus-visible,.company-settings-page button:focus-visible{outline:3px solid #5b9b7c;outline-offset:4px}
.portal-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:270px;padding:32px 24px;border:1px dashed #ccdcd2;border-radius:18px;background:#ffffff9c;text-align:center}
.portal-empty-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#edf3ef;color:#678776}
.portal-empty-icon svg{width:25px;height:25px}
.portal-empty h2{margin:18px 0 8px;font-size:19px;letter-spacing:-.025em}
.portal-empty p{max-width:400px;margin:0;font-size:14px;line-height:1.6;color:var(--portal-muted)}
@media(max-width:650px){
 .portal-page .module-cards{grid-template-columns:minmax(0,1fr);gap:16px}
 .portal-page .portal-module{padding:22px;border-radius:17px}
 .portal-module-head{align-items:flex-start;gap:12px}
 .portal-page .portal-module h2{font-size:20px}
 .portal-module-actions{flex-direction:column;align-items:stretch;gap:20px}
 .portal-page .portal-open{width:100%;margin-left:0}
 .settings-intro{margin-bottom:20px}.settings-intro h2{font-size:18px}.settings-intro p{font-size:13px}
 .company-settings-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .company-settings-card{padding:22px;border-radius:17px}
}
@media(prefers-reduced-motion:reduce){.portal-page .portal-module{transition:none}}
