:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#20252c;background:#edf1f6;font-synthesis:none;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #85b5ff;outline-offset:3px}[hidden]{display:none!important}.pw-app{width:100%;max-width:480px;min-height:100dvh;margin:0 auto;padding-bottom:calc(82px + env(safe-area-inset-bottom));background:linear-gradient(#dceaff 0,#e9f0f9 220px,#edf1f6 380px);overflow-wrap:anywhere}.pw-page-header{height:58px;display:grid;grid-template-columns:46px 1fr 46px;align-items:center;padding:0 10px;position:relative}.pw-page-header h1{font-size:19px;line-height:1.5;font-weight:600;margin:0;text-align:center}.pw-page-header>a,.pw-page-header>button{width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:#222c37;border-radius:10px}.pw-page-header svg{width:24px;height:24px}.pw-content{padding:0 10px}.pw-search{padding:3px 0 15px;margin:0}.pw-search label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:9px;background:#ffffffc7;color:#9ca5af}.pw-search input{width:85px;min-width:0;padding:11px 0;background:transparent;color:#252c36;border:0;outline:none;font-size:16px;transition:width .15s}.pw-search input:focus,.pw-search input:not(:placeholder-shown){width:calc(100% - 65px)}.pw-search input::placeholder{color:#9ca5af}.pw-card{margin:0 0 12px;background:#fff;border-radius:14px;padding:14px 8px 12px;box-shadow:0 1px 0 #e8ebef}.pw-card h2{font-size:14px;font-weight:400;color:#8c9298;margin:0 8px 13px;line-height:1.6}.pw-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:0;row-gap:8px}.pw-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:94px;padding:9px 2px 12px;text-align:center;font-size:14px;line-height:1.5;color:#161d25}.pw-tile>span:last-child{max-width:100%;word-break:normal;overflow-wrap:anywhere}.pw-tile-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;color:#fff;position:relative;flex:none}.pw-tone-blue{background:#1678fa}.pw-tone-yellow{background:#ffbf12}.pw-tone-green{background:#09b91b}.pw-tone-pink{background:#ff557b}.pw-tile-icon svg{width:27px;height:27px;stroke-width:2.1}.pw-tile-icon sup{position:absolute;top:-6px;right:-8px;padding:1px 5px;min-width:17px;border-radius:10px;background:#ff5676;color:#fff;font-size:11px;line-height:16px}.pw-customer .pw-app,.pw-guest .pw-app{background:#f6f7f9}.pw-customer .pw-page-header,.pw-guest .pw-page-header{background:#fff}.pw-customer .pw-content,.pw-guest .pw-content{padding:0 16px}.pw-customer-head{display:flex;align-items:center;gap:15px;background:#166df7;color:#fff;margin:0 -16px;padding:26px 18px 56px;min-height:170px}.pw-avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;flex:none;background:#fff;color:#186ff6}.pw-customer-head h2{font-size:21px;line-height:1.4;margin:0 0 9px;font-weight:650}.pw-customer-head>div{min-width:0}.pw-role-badge{display:inline-block;padding:2px 9px;border-radius:20px;font-size:12px;line-height:1.5;background:#ff5a7a;color:#fff}.pw-customer-head small{font-size:13px;line-height:1.6;margin-left:8px}.pw-customer .pw-page-header>button,.pw-guest .pw-page-header>button{color:#1d70ee}.pw-order-card{position:relative;margin-top:-28px;padding:15px 6px 10px;border-radius:9px;min-height:132px}.pw-order-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;margin:0 0 8px}.pw-order-card h2{font-size:18px;font-weight:650;color:#1b222a;margin:0}.pw-order-card header>a{display:flex;align-items:center;gap:4px;font-size:14px;color:#92969a;white-space:nowrap;min-height:36px}.pw-tile-flat{gap:7px;min-height:77px;padding:8px 1px}.pw-tile-flat .pw-tile-icon{background:transparent;color:#1678fa;width:36px;height:34px}.pw-tile-flat .pw-tile-icon svg{width:29px;height:29px}.pw-tile-flat .pw-tile-icon sup{right:-9px;top:-7px}.pw-status-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.pw-compact-identity{display:flex;align-items:center;gap:12px;padding:14px 8px 23px}.pw-compact-identity .pw-avatar{width:47px;height:47px;background:#fff9;color:#2878db}.pw-compact-identity h2{font-size:18px;margin:0 0 3px}.pw-compact-identity small{font-size:13px;color:#7489a1}.pw-empty{text-align:center;font-size:14px;line-height:1.8;color:#8e99a5;padding:20px 12px}.pw-loading{padding:80px 20px;text-align:center;color:#8c99a7;font-size:15px}.pw-loading:before{content:"";display:block;width:28px;height:28px;border:2px solid #d7e6f8;border-top-color:#1778fa;border-radius:50%;margin:0 auto 15px;animation:pw-spin 1s linear infinite}@keyframes pw-spin{to{transform:rotate(360deg)}}.pw-guest-head{padding-bottom:42px;min-height:150px}.pw-guest-identity{display:flex;align-items:center;gap:14px;width:100%;min-height:64px}.pw-guest-identity>span:nth-child(2){flex:1}.pw-guest-identity b{display:block;font-size:21px;font-weight:650}.pw-guest-identity small{display:block;margin:7px 0 0;font-size:13px;opacity:.85}.pw-guest-actions{margin-top:-21px;position:relative;padding:17px;display:grid;gap:12px;grid-template-columns:1fr 1fr;font-size:14px;text-align:center}.pw-guest-actions>a{min-height:44px;display:flex;justify-content:center;align-items:center;color:#4775a3;border-radius:8px;background:#f4f8fd}.pw-guest-actions .pw-primary{grid-column:1/-1;background:#1678fa;color:#fff;font-size:16px}.pw-error{padding:28px 18px;text-align:center;background:#fff;border-radius:13px;margin-top:15px}.pw-error h2{font-size:18px;margin:0 0 12px}.pw-error p{font-size:14px;line-height:1.7;color:#8b96a3}.pw-error>a,.pw-error>button{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px;margin-top:12px;width:100%;border:0;background:#1678fa;color:#fff;border-radius:8px;font-size:16px}.pw-error>a+ a{color:#6284a4;background:#f2f7fc}.pw-bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:480px;width:100%;min-height:66px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;padding:7px 4px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e9edf3;background:#fcfdffed;backdrop-filter:blur(10px);z-index:20}.pw-bottom>a,.pw-bottom>.pw-nav-disabled{min-height:46px;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#9a9fa7;font-size:12px}.pw-bottom>a[aria-current=page]{color:#1678fa}.pw-bottom svg{width:23px;height:23px;stroke-width:1.9}.pw-settings-layer{position:fixed;inset:0;background:#1d314644;display:flex;align-items:flex-end;justify-content:center;z-index:60}.pw-settings{background:#fff;width:100%;max-width:480px;border-radius:18px 18px 0 0;padding:18px 18px calc(22px + env(safe-area-inset-bottom));max-height:85dvh;overflow:auto}.pw-settings header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.pw-settings h2{font-size:18px;margin:0}.pw-settings header button{display:grid;place-items:center;background:#f5f7fa;border:0;width:44px;height:44px;border-radius:50%;color:#6e7c8d}.pw-settings-name{padding:4px 0 16px;margin:0 0 9px;border-bottom:1px solid #edf1f6;font-size:16px}.pw-settings-name small{display:block;font-size:13px;color:#909ba9;margin-top:5px}.pw-settings>a,.pw-settings>button,.pw-profile-options>a{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 2px;border:0;background:#fff;border-bottom:1px solid #f1f3f7;min-height:48px;font-size:15px;color:#344352;width:100%;text-align:left}.pw-settings>button:last-child{color:#df5865}.pw-settings h3{font-size:13px;color:#9ba6b1;font-weight:400;margin:16px 0 3px}.pw-profile-options>a[aria-current=true]{color:#1678fa}.pw-setting-open{overflow:hidden}@media(max-width:350px){.pw-tile{font-size:13px;gap:9px;min-height:91px}.pw-tile-icon{width:43px;height:43px}.pw-content{padding:0 8px}.pw-customer .pw-content,.pw-guest .pw-content{padding:0 12px}.pw-customer-head{margin-left:-12px;margin-right:-12px}.pw-customer-head h2{font-size:20px}.pw-order-card h2{font-size:17px}.pw-order-card header>a{font-size:13px}.pw-card{padding-left:6px;padding-right:6px}}@media(prefers-reduced-motion:reduce){.pw-loading:before{animation:none}.pw-search input{transition:none}}

.pw-bottom>.pw-nav-disabled{opacity:.42;cursor:default}.pw-bottom>a>span,.pw-bottom>.pw-nav-disabled>span{white-space:nowrap}

.pw-join-card{padding:16px 14px;margin-top:14px}.pw-join-card h2,.pw-progress-card h2{margin:0 0 12px;color:#38495e;font-size:15px;font-weight:600}.pw-join-links>a{display:flex;align-items:center;gap:12px;min-height:74px;padding:10px 0;border-bottom:1px solid #edf1f6}.pw-join-links>a:last-child{border-bottom:0}.pw-join-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:11px;background:#edf5ff;color:#1678fa}.pw-join-links>a>span:nth-child(2){flex:1;min-width:0}.pw-join-links b{display:block;font-size:16px;font-weight:500}.pw-join-links small{display:block;color:#8a96a5;font-size:13px;margin-top:5px}.pw-join-card p{margin:12px 0 0;color:#8a96a5;font-size:12px;line-height:1.7}.pw-erp-entry{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:18px 4px;padding:12px 2px;color:#77879a;min-height:48px;font-size:13px}.pw-erp-entry>span,.pw-erp-entry small{display:flex;align-items:center;gap:6px}.pw-erp-entry small{font-size:12px}.pw-progress-card{padding:17px 16px}.pw-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.pw-progress-heading h2{margin:0}.pw-progress-status{font-size:12px;padding:4px 8px;border-radius:20px;color:#2975c7;background:#edf5ff;white-space:nowrap}.pw-status-rejected{color:#c66c34;background:#fff3e8}.pw-status-approved{color:#2a9863;background:#e9f8f0}.pw-progress-kind{display:block;margin-top:15px;font-size:16px;font-weight:500}.pw-progress-note{font-size:14px;color:#8793a2;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.pw-progress-action{display:flex;align-items:center;justify-content:space-between;min-height:46px;width:100%;padding:11px 0;color:#1678fa;background:transparent;border:0;border-top:1px solid #edf1f6;font-size:14px}.pw-guest .pw-join-card{margin-top:-20px;position:relative}.pw-guest .pw-erp-entry{margin-top:6px}@media(max-width:350px){.pw-erp-entry{align-items:flex-start;flex-direction:column;gap:8px}.pw-join-links b{font-size:15px}}

/* Role personal centers: real identity, scoped records and own application details. */
.pw-personal-head{display:flex;align-items:center;gap:14px;padding:17px 8px 22px;min-height:118px}.pw-personal-head>div{min-width:0;flex:1}.pw-personal-head .pw-avatar{background:#fff;color:#2178e9;box-shadow:0 2px 8px #6b98d012}.pw-avatar{font-size:25px;font-weight:600}.pw-personal-head h2{margin:0 0 7px;font-size:21px;font-weight:600;line-height:1.5}.pw-personal-head .pw-role-badge{background:#d3e5ff;color:#2266b7}.pw-personal-head small{display:block;margin-top:7px;color:#73869e;font-size:13px;line-height:1.5}#workspace-identity-scope{margin:5px 0 0;font-size:14px;line-height:1.6;color:#687d96}#workspace-identity-scope:empty{display:none}.pw-customer-head #workspace-identity-scope{color:#ffffffe0}.pw-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 6px;margin-bottom:12px}.pw-metrics>div,.pw-metrics>a{min-width:0;min-height:68px;padding:8px 4px;text-align:center;text-decoration:none;display:flex;flex-direction:column;justify-content:center}.pw-metrics>a{cursor:pointer;transition:background-color .15s ease}.pw-metrics>a:active{background:#f4f8ff}.pw-metrics>a:focus-visible{outline:2px solid #2178e9;outline-offset:-2px;border-radius:8px}.pw-metrics b{display:block;color:#206ec8;font-size:23px;font-weight:600;line-height:1.5}.pw-metrics span{display:block;margin-top:4px;color:#7d8794;font-size:14px;line-height:1.6}.pw-details-card{padding:0 15px}.pw-profile-details{margin:0;font-size:14px;line-height:1.6}.pw-profile-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;list-style:none;color:#354457;cursor:pointer}.pw-profile-details summary::-webkit-details-marker{display:none}.pw-profile-details summary svg{flex:none;color:#9aa8b8;transition:transform .15s}.pw-profile-details[open] summary svg{transform:rotate(90deg)}.pw-profile-details dl{margin:0;padding:0 0 10px}.pw-profile-details dl>div{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid #eff2f6}.pw-profile-details dt{color:#8b96a3;flex:0 0 auto;max-width:40%}.pw-profile-details dd{margin:0;color:#37465a;text-align:right;min-width:0;overflow-wrap:anywhere}.pw-progress-card .pw-profile-details{margin-top:9px}.pw-progress-card .pw-profile-details summary{color:#7b8b9d;font-size:14px}.pw-personal-head+.pw-details-card{margin-top:0}@media(max-width:350px){.pw-personal-head{gap:11px;padding:14px 5px 18px}.pw-personal-head .pw-avatar{width:56px;height:56px}.pw-personal-head h2{font-size:19px}.pw-metrics span{font-size:14px}.pw-progress-heading{align-items:flex-start}.pw-details-card{padding-left:13px;padding-right:13px}}@media(prefers-reduced-motion:reduce){.pw-profile-details summary svg{transition:none}}

.pw-leave-card{padding:16px}.pw-leave-card header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.pw-leave-card h2{margin:0;color:#47566a;font-weight:500;font-size:15px}.pw-leave-status{display:inline-block;padding:3px 9px;border-radius:14px;background:#edf4ff;color:#2874cf;font-size:13px;line-height:1.6}.pw-leave-approved{background:#e9f7ef;color:#278751}.pw-leave-rejected{background:#fff1e6;color:#b7652d}.pw-leave-card>b{font-size:15px;font-weight:500;color:#3d4a5d}.pw-leave-card p{font-size:14px;color:#6d7d90;line-height:1.8;margin:8px 0}.pw-leave-card small{display:block;color:#8a96a5;font-size:13px;line-height:1.7}.pw-leave-card p small{font-size:12px;margin-top:3px}

.pw-portal-footer{text-align:center;margin:24px 0 12px;font-size:12px;color:#8a9aaa}.pw-portal-footer a{display:inline-block;min-height:44px;padding:10px 8px;color:#758da4;text-decoration:none}.pw-portal-footer small{display:block;font-size:11px;color:#99a7b5}

.pw-customer-record-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

.pw-end-switch{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 16px;background:#fff;border-bottom:1px solid #edf0f5;min-height:48px;font-size:14px;color:#697784}.pw-end-switch a{display:flex;align-items:center;min-height:44px;color:#1475c9;text-decoration:none;font-weight:600}

/* Keep ERP guest styling unchanged during the client UI rollback. */
html[data-realm="erp"] .pw-guest .pw-customer-head{background:transparent;color:#202b34;margin:0;min-height:102px;padding:18px 3px 12px}html[data-realm="erp"] .pw-guest .pw-avatar{background:#e8f2ff;color:#2178d2;width:60px;height:60px}html[data-realm="erp"] .pw-guest .pw-customer-head small{color:#7a8692}html[data-realm="erp"] .pw-guest .pw-guest-identity b{font-size:21px}html[data-realm="erp"] .pw-guest .pw-guest-identity>svg{color:#8b98a4}

.pw-company-review{border:1px solid #d8e6fb}.pw-company-review .pw-progress-heading button{font:inherit;font-size:14px;background:#edf4ff;color:#246ceb;border:1px solid #dce8fa;border-radius:8px;padding:8px 14px;min-height:42px}.pw-company-total{display:flex;align-items:center;gap:12px;padding:16px;margin:14px 0;background:#edf4ff;color:#385e91;border-radius:11px;text-decoration:none}.pw-company-total>b{font-size:30px;color:#246ceb}.pw-company-total>svg{margin-left:auto}.pw-company-categories{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pw-company-categories a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;border:1px solid #e2ebf8;border-radius:9px;padding:10px;color:#607c9e;font-size:14px;text-decoration:none}.pw-company-categories b{font-size:18px;color:#246ceb}

html[data-realm="erp"] .pw-metric-details{padding:0 14px;margin:0 0 12px}html[data-realm="erp"] .pw-metric-details>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;list-style:none;color:#52677c;font-size:14px;cursor:pointer}html[data-realm="erp"] .pw-metric-details>summary::-webkit-details-marker{display:none}html[data-realm="erp"] .pw-metric-details>summary:after{content:"›";font-size:20px;color:#9aa8b8;transition:transform .15s}html[data-realm="erp"] .pw-metric-details[open]>summary:after{transform:rotate(90deg)}html[data-realm="erp"] .pw-metric-details>.pw-metrics{margin:0 -7px 5px;padding:6px;border-top:1px solid #eff2f6}

.pw-operation-inbox h3{font-size:14px;color:#6884a5;margin:16px 0 8px}.pw-operation-todo{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf2fa;text-decoration:none;color:#365d91;min-width:0}.pw-operation-todo>span{min-width:0}.pw-operation-todo b{display:block;font-size:14px;line-height:1.6}.pw-operation-todo small{display:block;font-size:12px;color:#7a91ad;overflow-wrap:anywhere;line-height:1.7}.pw-operation-inbox details>summary{font-size:14px;color:#246ceb;min-height:44px;display:flex;align-items:center;cursor:pointer}
html[data-realm="erp"] .pw-leave-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#2874cf;text-decoration:none}html[data-realm="erp"] .pw-leave-entry span{display:grid;gap:5px}html[data-realm="erp"] .pw-leave-entry b{font-size:15px;font-weight:600}html[data-realm="erp"] .pw-leave-entry small{color:#8a96a5;font-size:12px}
