:root{font-family:"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:#fff;background:#574259;font-synthesis:none;font-size:16px;--muted:#ede5ef;--focus:#fff}
*{box-sizing:border-box}body{margin:0;min-width:280px;min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 12% 92%,rgba(126,83,115,.65),transparent 56%),radial-gradient(ellipse at 95% 8%,rgba(150,118,139,.3),transparent 55%),linear-gradient(128deg,#5d4962 0%,#574259 53%,#45384f 100%)}a{color:inherit;text-decoration:none}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible{outline:3px solid var(--focus);outline-offset:7px;border-radius:12px}.topbar{height:78px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid rgba(255,255,255,.12);background:rgba(40,25,46,.1)}.brand{display:inline-flex;align-items:center;gap:13px}.brand-logo{width:46px;height:46px;border-radius:10px;background:#fff;display:grid;place-items:center;overflow:hidden}.brand-logo img{display:block;object-fit:contain;width:42px;height:42px}.brand-name{font-size:18px;font-weight:650;letter-spacing:1.2px}.brand-name>span{margin-left:11px;padding-left:14px;border-left:1px solid rgba(255,255,255,.3);font-size:16px;font-weight:400;letter-spacing:.5px;color:var(--muted)}.topbar-label{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:14px}.topbar-label svg{width:18px;height:18px;opacity:.9}.workspace{flex:1;padding:76px 24px 90px;text-align:center}.welcome{margin-bottom:64px}.eyebrow{margin:0 0 14px;font-size:13px;letter-spacing:2.4px;line-height:1.5;color:#ddd0e0}.welcome h1{font-size:30px;font-weight:450;letter-spacing:2px;line-height:1.4;margin:0 0 14px}.intro{margin:0;font-size:16px;line-height:1.6;color:var(--muted)}.apps{display:grid;grid-template-columns:repeat(3,minmax(0,164px));justify-content:center;gap:58px}.app{display:flex;flex-direction:column;align-items:center;position:relative;padding:16px 4px 19px;border-radius:18px;transition:background .18s ease,transform .18s ease}.app:hover{background:rgba(255,255,255,.07);transform:translateY(-4px)}.app-icon{width:94px;height:94px;display:grid;place-items:center;border-radius:23px;margin-bottom:21px;box-shadow:0 8px 18px rgba(24,12,35,.18),inset 0 1px 0 rgba(255,255,255,.28);position:relative;isolation:isolate}.app-icon::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(145deg,rgba(255,255,255,.17),transparent 58%);z-index:-1}.app-icon svg{width:66px;height:66px;filter:drop-shadow(0 2px 1px rgba(20,20,50,.08))}.quotation-icon{background:linear-gradient(145deg,#59a8ed,#3975c9)}.payroll-icon{background:linear-gradient(145deg,#6cc4a4,#398f7e)}.tv-icon{background:linear-gradient(145deg,#c18bc5,#975c9c)}.app-name{display:block;font-size:18px;font-weight:550;line-height:1.5;letter-spacing:.2px}.app-description{display:block;margin-top:6px;font-size:14px;line-height:1.6;color:#e1d5e4}.app-issue{margin-top:9px;padding:3px 8px;border:1px solid rgba(255,226,179,.4);border-radius:5px;color:#ffe2b3;font-size:13px}.connection-message{font-size:14px;margin:30px 0 0;color:#ffe2b3}.footer{height:68px;display:flex;justify-content:center;align-items:center;gap:12px;color:#d2c4d6;font-size:13px;letter-spacing:.35px}.footer-divider{width:1px;height:12px;background:rgba(255,255,255,.22)}[hidden]{display:none!important}@media(min-height:850px){.workspace{padding-top:110px}.welcome{margin-bottom:74px}}@media(max-width:640px){.topbar{height:70px;padding:0 20px}.brand{gap:10px}.brand-name{font-size:16px}.brand-name>span{font-size:14px;margin-left:8px;padding-left:10px}.brand-logo{width:40px;height:40px}.brand-logo img{width:36px;height:36px}.topbar-label{display:none}.workspace{padding:54px 16px 48px}.welcome{margin-bottom:34px}.welcome h1{font-size:25px;letter-spacing:1px}.eyebrow{font-size:12px;letter-spacing:2px}.intro{font-size:15px}.apps{grid-template-columns:repeat(3,minmax(0,130px));gap:7px}.app{padding:16px 2px}.app-icon{width:76px;height:76px;border-radius:19px;margin-bottom:17px}.app-icon svg{width:55px;height:55px}.app-name{font-size:16px;white-space:nowrap}.app-description{font-size:12px;letter-spacing:-.15px}.footer{height:56px}}@media(max-width:370px){.apps{grid-template-columns:repeat(2,minmax(0,132px));gap:20px 12px}.app:last-child{grid-column:1/-1;justify-self:center;width:132px}.app-description{font-size:13px}.welcome h1{font-size:23px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}.app:hover{transform:none}}

.finance-icon{background:linear-gradient(145deg,#56b6b1,#257c85)}
body.home-auth .topbar {flex-wrap:nowrap;gap:10px}
.home-auth .topbar > .brand {flex:none}
.home-auth .topbar > .account-menu {margin-inline-start:auto;white-space:nowrap}
.home-auth .account-menu > #account-name {min-width:0;overflow:hidden;text-overflow:ellipsis}
.home-auth .account-menu > :is(a,button) {flex:none}
.account-compact {display:none}
.layout-switch{display:inline-flex;flex:none;padding:2px;gap:2px;border:1px solid rgba(255,255,255,.2);border-radius:19px;background:rgba(40,25,46,.22)}
.layout-switch button{min-height:32px;padding:0 9px;border:0;border-radius:16px;background:transparent;color:var(--muted);font:inherit;white-space:nowrap}
.layout-switch button:hover{background:rgba(255,255,255,.12)}
.layout-switch button[aria-pressed="true"]{background:#f7f0f8;color:#48344e}
.layout-switch button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.expense-icon{background:linear-gradient(145deg,#e4ac6c,#af6c48)}
.staff-ledger-icon{background:linear-gradient(145deg,#55bda7,#25786f)}
.staff-ledger-icon .expense-slip{background:linear-gradient(#277d72,#277d72) 28% 32%/58% 3px no-repeat,linear-gradient(#277d72,#277d72) 28% 50%/58% 3px no-repeat,linear-gradient(#277d72,#277d72) 24% 67%/40% 3px no-repeat,#fff}
.expense-slip{width:46%;height:55%;border-radius:8px 8px 5px 5px;background:linear-gradient(#ad6240,#ad6240) 28% 32%/58% 3px no-repeat,linear-gradient(#ad6240,#ad6240) 28% 50%/58% 3px no-repeat,linear-gradient(#ad6240,#ad6240) 24% 67%/40% 3px no-repeat,#fff;filter:drop-shadow(0 2px 1px rgba(20,20,50,.08))}
@media(min-width:641px){.apps{max-width:1060px;margin-inline:auto;grid-template-columns:repeat(auto-fit,minmax(128px,164px));gap:clamp(12px,4vw,52px)}}
@media(max-width:640px){.apps{grid-template-columns:repeat(2,minmax(0,140px))}.app:last-child{grid-column:auto;justify-self:stretch;width:auto}}

/* The workbench uses the same app tiles at every viewport size. */
@media screen {
  :where(html[data-workbench-device="phone"]) body.home-auth .topbar {
    position:sticky; inset-block-start:0; z-index:2; height:auto; min-height:60px; flex-wrap:nowrap;
    padding:max(7px,env(safe-area-inset-top)) max(13px,env(safe-area-inset-right)) 7px max(13px,env(safe-area-inset-left));
    gap:7px; background:#514055;
  }
  :where(html[data-workbench-device="phone"]) body.home-auth .brand { min-height:44px; flex:none; gap:7px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .brand-logo { width:35px; height:35px; flex:none; }
  :where(html[data-workbench-device="phone"]) body.home-auth .brand-logo img { width:32px; height:32px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .brand-name { font-size:13px; letter-spacing:.04em; }
  :where(html[data-workbench-device="phone"]) body.home-auth .brand-name>span { display:none; }
  :where(html[data-workbench-device="phone"]) body.home-auth .account-menu { gap:2px; margin-inline-start:auto; }
  :where(html[data-workbench-device="phone"]) body.home-auth .account-menu>#account-name { width:auto; max-width:clamp(34px,17vw,90px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:0 3px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .account-menu > :is(a,button) { display:inline-flex; min-height:44px; align-items:center; padding:0 5px; }
  :where(html[data-workbench-device="phone"]) .layout-switch button { min-height:40px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .workspace { padding:31px max(13px,env(safe-area-inset-right)) 32px max(13px,env(safe-area-inset-left)); }
  :where(html[data-workbench-device="phone"]) body.home-auth .welcome { margin-bottom:19px; padding:0 4px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .eyebrow { margin-bottom:7px; font-size:11px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .welcome h1 { margin-bottom:7px; font-size:24px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .intro { font-size:14px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .apps { grid-template-columns:repeat(3,minmax(0,126px)); gap:6px 7px; margin-inline:auto; }
  :where(html[data-workbench-device="phone"]) body.home-auth .app { min-width:0; min-height:117px; padding:10px 3px; border-radius:14px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .app:focus-visible { outline-offset:0; }
  :where(html[data-workbench-device="phone"]) body.home-auth .app-icon { margin-bottom:8px; width:63px; height:63px; border-radius:16px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .app-icon svg { width:45px; height:45px; }
  :where(html[data-workbench-device="phone"]) body.home-auth .app-name { font-size:14px; white-space:normal; line-height:1.3; overflow-wrap:anywhere; }
  :where(html[data-workbench-device="phone"]) body.home-auth .app-description { margin-top:4px; font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
  :where(html[data-workbench-device="phone"]) body.home-auth .footer { min-height:52px; padding-bottom:env(safe-area-inset-bottom); }
}
@media screen and (max-width:360px) {
  :where(html[data-workbench-device="phone"]) body.home-auth .apps { grid-template-columns:repeat(2,minmax(0,128px)); }
}
@media screen and (max-width:760px) {
  .home-auth .topbar > .brand { gap:7px; }
  .home-auth .topbar > .account-menu { gap:6px; }
}
@media screen and (max-width:480px) {
  body.home-auth .topbar { gap:7px; padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right)); }
  body.home-auth .topbar .brand-name { font-size:13px; letter-spacing:.04em; }
  .home-auth .topbar > .account-menu { gap:3px; }
  .home-auth .topbar .account-menu > :is(a,button) { padding-inline:3px; }
  .home-auth .account-label { display:none; }
  .home-auth .account-compact { display:inline; }
  .layout-switch button { padding-inline:5px; }
}
@media screen and (max-width:360px) {
  .home-auth .topbar .brand-name { display:none; }
}
@media screen and (pointer:coarse) {
  :where(html[data-workbench-device="phone"]) body.home-auth .app:hover { transform:none; }
  :where(html[data-workbench-device="phone"]) body.home-auth .app:active { background:rgba(255,255,255,.13); }
}
