/* Echo's workstation palette. Client delivery pages keep their own design. */
:root{--purple:#6638d1;--purple-dark:#1e1341;--brand:#6638d1;--brand-dark:#1e1341;--ink:#1e1341;--muted:#777386;--line:#e9e5f1}
body:has(.shell){background:#f7f6fa;color:#1e1341;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.shell{--accent:#6638d1;--dark:#1e1341;min-height:100vh}
.shell.with-sidebar{display:grid;grid-template-columns:232px minmax(0,1fr)}
.shell .sidebar{background:#1e1341;color:#fff;padding:28px 18px;position:sticky;top:0;height:100dvh;overflow-y:auto;border:0;width:auto}
.shell .brand{padding:6px 15px 28px;border-bottom:1px solid #ffffff1a;margin-bottom:22px}
.shell .brand img{max-width:154px;max-height:66px;object-fit:contain}
.shell .nav{display:flex;flex-direction:column;gap:7px}
.shell .nav button,.shell .nav a{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:0;border-radius:10px;background:transparent;color:#ded7ee;text-align:left;font-size:13px;font-weight:500;cursor:pointer;text-decoration:none}
.shell .nav button:hover,.shell .nav a:hover{background:#ffffff10;color:white}
.shell .nav button.active,.shell .nav a.active{background:#6638d1;color:white;box-shadow:0 5px 16px #0002}
.shell .nav svg{width:19px;height:19px}.shell .main{min-width:0;margin:0;width:100%}
.shell .topbar{min-height:96px;background:#fff;border-bottom:1px solid #ece8f3;padding:22px 34px;gap:20px;box-shadow:none}
.shell .topbar h2{font-size:17px;font-weight:650;letter-spacing:-.35px;margin:5px 0 0}.shell .eyebrow{font-size:10px;color:#8a7f9e;letter-spacing:1.7px;font-weight:650}
.shell .topright{gap:11px;flex-wrap:wrap}.shell .topright>b{font-size:12px;max-width:130px}
.shell .content{padding:32px 34px;max-width:1600px;margin:auto}
.shell .welcome{align-items:center;margin-bottom:27px;background:none;border:0;padding:0;box-shadow:none}
.shell h1{font-size:clamp(25px,2.5vw,34px);letter-spacing:-1.05px;font-weight:650;line-height:1.2;color:#1e1341}
.shell h3{font-size:17px;letter-spacing:-.35px;font-weight:650;color:#1e1341}
.shell p{line-height:1.55}.shell .welcome p{color:#81798e;font-size:13px;margin-top:9px}
.shell .card{background:white;border:1px solid #eae6f1;border-radius:16px;box-shadow:0 3px 15px #1e134104;padding:23px}
.shell .stats{gap:17px;margin-bottom:25px}.shell .stat{min-width:0;position:relative;text-align:left}
.shell .stat .label{font-size:12px;color:#777087;font-weight:550}.shell .stat .value{font-size:29px;letter-spacing:-1px;font-weight:650;color:#1e1341;margin:13px 0 8px}.shell .stat .delta{font-size:11px;color:#827b90}
.shell .stat .icon,.shell .stat-icon{background:#f0eafa;color:#6638d1;border-radius:11px}.shell .stat svg{color:#6638d1}
.shell button.primary,.gallery-dialog button.primary{background:#6638d1;color:white;border:1px solid #6638d1;box-shadow:0 3px 8px #6638d11a}
.shell button,.gallery-dialog button{border-radius:9px;font-size:12px;line-height:1.3;padding:10px 14px;cursor:pointer}
.shell button.secondary{background:white;color:#4b3b67;border:1px solid #e4deec;box-shadow:none}.shell button:hover{filter:brightness(.98)}
.shell button:disabled{opacity:.5;cursor:not-allowed}.shell button:focus-visible,.shell a:focus-visible,.gallery-dialog button:focus-visible{outline:3px solid #ad91ed;outline-offset:3px}
.shell input,.shell select,.shell textarea,.gallery-dialog input,.gallery-dialog select{background:#fcfbfd;color:#302445;border:1px solid #e4deec;border-radius:9px;min-height:42px;padding:10px 12px;font-size:13px;max-width:100%}
.shell input:focus,.shell select:focus,.gallery-dialog input:focus{outline:2px solid #d0bdf5;border-color:#6638d1}
.shell label{color:#756c84;font-size:12px;font-weight:550}.shell th{background:#faf9fc;color:#80758f;font-size:10px;letter-spacing:.6px;text-transform:uppercase;border-bottom:1px solid #ede8f4;padding:14px}
.shell td{padding:15px 14px;border-bottom:1px solid #f0ecf5;font-size:13px}.shell td button{margin:3px}
.shell .badge{border-radius:7px;padding:5px 9px;font-size:10px;font-weight:600}.shell .badge.pending{background:#fff0ef;color:#a9383a}.shell .badge.delivered{background:#e9f7ef;color:#267746}
.shell .operation-tabs{gap:7px;flex-wrap:wrap;margin-bottom:22px}.shell .operation-tabs button.active{background:#6638d1;color:white}.shell .finance-sections{padding:6px;background:#ece7f5;border-radius:12px;width:fit-content}.shell .finance-sections button{background:white;color:#493561;border:0}
.shell .daily-job{padding:14px 0;gap:12px;border-bottom:1px solid #f0ecf5}.shell .text-action{color:#6638d1}.shell details>summary{cursor:pointer;color:#4b356b;padding:10px 0;font-weight:600}
.shell .avatar{width:40px;height:40px;background:#eee7fa;color:#6638d1;overflow:hidden;border-radius:50%;padding:0;border:0;display:grid;place-items:center}.shell .avatar img{width:100%;height:100%;object-fit:cover}
.workstation-menu{display:none}.profile-crop{display:block;max-width:100%;border-radius:16px;touch-action:none;cursor:grab;margin:16px auto}.gallery-dialog form{display:grid;gap:17px}.gallery-dialog form label{display:grid;gap:7px}.gallery-dialog [role=alert]{color:#a9383a;font-size:13px}.salary-history small{display:block;margin-top:6px}.finance-filters{align-items:end;gap:15px}.finance-filters label{display:grid;gap:8px}.expense-shortcut{margin:18px 0;display:flex;align-items:center;gap:15px;justify-content:space-between}.expense-shortcut h3{margin:0}.expense-shortcut p{margin:7px 0 0;color:#81798e;font-size:12px}
@media(max-width:1150px){.shell.with-sidebar{grid-template-columns:195px minmax(0,1fr)}.shell .content{padding:24px}.shell .topbar{padding:20px 24px;flex-wrap:wrap}.shell .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.shell .sidebar{padding:25px 12px}}
@media(max-width:760px){.shell.with-sidebar{display:block}.shell .sidebar{display:none;position:fixed;z-index:1000;left:0;top:0;bottom:0;width:235px;box-shadow:10px 0 50px #1e134144}.shell.menu-open .sidebar{display:block}.workstation-menu{display:inline-block;position:relative;z-index:1001;border:1px solid #e4deec;background:white;color:#1e1341}.shell .topbar{padding:15px;gap:12px}.shell .topright{gap:7px}.shell .topright>b{display:none}.shell .content{padding:22px 15px}.shell .stats{gap:11px}.shell .stat{padding:17px}.shell .stat .value{font-size:24px}.shell .card{padding:17px}.shell .welcome{gap:15px;flex-wrap:wrap}.shell h1{font-size:26px}.expense-shortcut{align-items:start;flex-wrap:wrap}.shell .finance-filters{flex-wrap:wrap}.shell .table-wrap{overflow:auto}.shell .topright .secondary{font-size:11px;padding:8px}.shell .topbar .eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){.shell *{scroll-behavior:auto!important;transition:none!important}}
#salary-content .stats,#expense-content .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}
#salary-content .stat,#expense-content .stat{display:block}
#salary-content .stat .value,#expense-content .stat .value{white-space:nowrap}
#salary-content button,#expense-content button,.gallery-dialog button:not(.primary){border:1px solid #e4deec;background:#fff;color:#493561}
.shell .top-role-link{color:#6638d1}
@media(max-width:760px){#salary-content .stats,#expense-content .stats{grid-template-columns:1fr}.shell .nav{gap:3px}.shell .sidebar .nav button{margin:0}}
#health-content .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:20px 0}#health-content .stat{display:block}#health-content .stat .value{font-size:25px}#health-content .health-status{margin-top:20px}#health-content>section,#health-content>details{margin-bottom:20px}#health-content .finance-filters{display:flex;flex-wrap:wrap}#health-content [role=alert]{color:#a9383a}
@media(max-width:1100px){#health-content .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){#health-content .stats{grid-template-columns:1fr}}
#targets-content{margin-top:20px}#targets-content>section{margin-bottom:20px}#targets-content .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}#targets-content .stat{display:block}#targets-content .value{font-size:25px}#targets-content progress{width:100%;height:13px;accent-color:#6638d1}#targets-content [role=alert]{color:#a9383a}@media(max-width:1000px){#targets-content .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){#targets-content .stats{grid-template-columns:1fr}}
