:root{
  /* v2 design system — quiet neutrals, one accent, semantic colours for status only */
  --accent:#2C5CC5; --accent-h:#254EA8; --accent-soft:#EEF3FC;
  --canvas:#F8F9FB; --surface:#FFFFFF;
  --text:#101828; --text-2:#344054; --muted:#667085;
  --line:#EAECF0; --line-2:#D0D5DD;
  --green-bg:#ECFDF3; --green-tx:#067647; --green-dot:#17B26A; --green-ln:#ABEFC6;
  --amber-bg:#FFFAEB; --amber-tx:#B54708; --amber-dot:#F79009; --amber-ln:#FEDF89;
  --red-bg:#FEF3F2; --red-tx:#B42318; --red-dot:#F04438; --red-ln:#FECDCA;
  --blue-bg:#EFF8FF; --blue-tx:#175CD3; --blue-dot:#2E90FA; --blue-ln:#B2DDFF;
  --gray-bg:#F2F4F7; --gray-tx:#475467; --gray-dot:#98A2B3;
  --navy:#101828; --bg:var(--canvas); --card:var(--surface); --border:var(--line);
  --pad:20px;
  --shadow-panel:0 8px 24px rgba(16,24,40,0.08), 0 2px 6px rgba(16,24,40,0.04);
}
*{box-sizing:border-box; margin:0;}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",system-ui,sans-serif; background:var(--canvas); color:var(--text); font-size:14px; line-height:1.55; letter-spacing:-0.006em; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;}
::selection{background:rgba(44,92,197,0.16);}

button{font:inherit; font-size:13px; font-weight:500; cursor:pointer; background:#fff; border:1px solid var(--line-2); border-radius:8px; padding:7px 14px; color:var(--text-2); letter-spacing:-0.006em;}
button:hover{background:#F9FAFB;}
button.primary{background:var(--accent); border-color:var(--accent); color:#fff;}
button.primary:hover{background:var(--accent-h);}
button.danger{color:var(--red-tx); border-color:var(--red-ln);}
button.danger:hover{background:var(--red-bg);}
button.small{padding:4px 10px; font-size:12.5px; border-radius:7px;}
input,select,textarea{font:inherit; font-size:14px; padding:8px 12px; border:1px solid var(--line-2); border-radius:8px; background:#fff; color:var(--text); width:100%;}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(44,92,197,0.15);}
input::placeholder{color:#98A2B3;}

.badge{display:inline-flex; align-items:center; gap:6px; padding:2px 9px; border-radius:6px; font-size:12px; font-weight:500; white-space:nowrap;}
.badge::before{content:''; width:6px; height:6px; border-radius:50%; background:currentColor; flex:none;}
.b-draft{background:var(--gray-bg); color:var(--gray-tx);} .b-draft::before{background:var(--gray-dot);}
.b-submitted{background:var(--amber-bg); color:var(--amber-tx);} .b-submitted::before{background:var(--amber-dot);}
.b-approved,.b-paid{background:var(--green-bg); color:var(--green-tx);} .b-approved::before,.b-paid::before{background:var(--green-dot);}
.b-rejected{background:var(--red-bg); color:var(--red-tx);} .b-rejected::before{background:var(--red-dot);}
.b-admin{background:var(--blue-bg); color:var(--blue-tx);} .b-admin::before{background:var(--blue-dot);}

.card{background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:var(--pad); margin-bottom:14px;}
.card h3{font-size:15px; font-weight:600; letter-spacing:-0.011em; margin-bottom:12px;}
.card.flush{padding:0; overflow:hidden;}
.grid{display:grid; gap:12px;}
.stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin-bottom:18px;}
.stat{background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:16px 18px;}
.stat .lab{font-size:12.5px; color:var(--muted);}
.stat .val{font-size:24px; font-weight:600; letter-spacing:-0.02em; margin-top:2px;}
.st-head{display:flex; align-items:center; gap:8px; margin-bottom:10px; font-size:12.5px; color:var(--muted);}
.stico{width:22px; height:22px; border-radius:6px; display:flex; align-items:center; justify-content:center; flex:none; background:var(--gray-bg);}
.st-meta{margin-top:2px; font-size:12.5px; font-weight:500;}
.meta-row{display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13.5px; color:var(--muted);}
.meta-row b{color:var(--text); font-weight:600;}
.meta-dot{width:3px; height:3px; border-radius:50%; background:#CBD2DC;}
.dash-title{font-size:24px; font-weight:650; letter-spacing:-0.018em; margin-bottom:4px;}

.act-head{display:flex; align-items:center; justify-content:space-between; padding:14px 18px 12px; border-bottom:1px solid var(--line);}
.act-row{display:flex; align-items:center; gap:12px; padding:11px 18px; border-top:1px solid var(--line);}
.act-row:first-of-type{border-top:none;}
.act-tile{width:28px; height:28px; border-radius:7px; flex:none; display:flex; align-items:center; justify-content:center; background:var(--gray-bg);}
.act-main{flex:1; min-width:0;}
.act-title{font-size:13.5px; font-weight:500; letter-spacing:-0.006em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.act-sub{font-size:12.5px; color:var(--muted); margin-top:0;}

.tbl-wrap{overflow-x:auto;}
table{width:100%; border-collapse:collapse; font-size:13.5px;}
th{text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.045em; color:var(--muted); font-weight:600; padding:9px 10px; border-bottom:1px solid var(--line); background:#FCFCFD;}
td{padding:10px; border-bottom:1px solid var(--line); vertical-align:middle;}
tr:last-child td{border-bottom:none;}
tbody tr:hover td, table tr:hover td{background:#FAFBFC;}
.muted{color:var(--muted); font-size:12.5px;}
.row{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.spread{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;}
.linklike{color:var(--accent); cursor:pointer; text-decoration:none;}
.linklike:hover{text-decoration:underline;}

/* stepper — the one way multi-part forms are numbered */
.step-h{display:flex; align-items:center; gap:10px; margin:0 0 12px;}
.step-n{width:24px; height:24px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:600; background:var(--accent-soft); color:var(--accent); border:1px solid rgba(44,92,197,0.25);}
.step-t{font-size:14px; font-weight:600; letter-spacing:-0.011em;}
.step-sub{font-size:12.5px; color:var(--muted); margin:-8px 0 12px 34px;}
.step-block{border-top:1px solid var(--line); margin-top:18px; padding-top:16px;}
.step-block:first-of-type{border-top:none; margin-top:0; padding-top:0;}

/* ===== login landing page (company-site language) ===== */
#login{display:flex; flex-direction:column; min-height:100vh; font-family:'Roboto',system-ui,sans-serif; color:#333333; background:#fff; letter-spacing:0;}
#login ::selection{background:rgba(92,184,116,0.25);}
.lp-header{background:#fff; height:92px; display:flex; align-items:center; justify-content:space-between; padding:0 56px; flex:none;}
.lp-logo{height:54px; width:auto; display:block;}
.lp-nav{display:flex; align-items:center; gap:44px;}
.lp-nav a{font-size:16px; font-weight:400; color:#333333; text-decoration:none;}
.lp-nav a:hover{color:#5CB874;}
.lp-nav a.active{color:#5CB874;}
.lp-hero{position:relative; flex:1; min-height:640px; display:flex; align-items:center; overflow:hidden; background:#1a2530;}
.lp-bg{position:absolute; inset:0; background-size:cover; background-position:center; z-index:0;}
.lp-scrim{position:absolute; inset:0; z-index:1; pointer-events:none; background:rgba(15,22,30,0.45);}
.lp-content{position:relative; z-index:2; width:100%; max-width:1280px; margin:0 auto; padding:72px 56px 120px; display:flex; align-items:center; justify-content:space-between; gap:56px; flex-wrap:wrap;}
.lp-head{flex:1; min-width:340px; max-width:620px;}
.lp-head h1{font-family:'PT Serif',Georgia,serif; font-weight:400; font-size:54px; line-height:1.18; color:#fff; margin:0 0 28px;}
.lp-head p{font-size:19px; line-height:1.6; color:rgba(255,255,255,0.92); max-width:500px; margin:0 0 36px;}
.lp-ctas{display:flex; align-items:center; gap:18px; flex-wrap:wrap;}
.lp-cta{display:inline-block; font-size:15px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; color:#fff; text-decoration:none; padding:18px 38px; border-radius:0;}
.lp-cta.green{background:#5CB874;} .lp-cta.green:hover{background:#4FA866;}
.lp-cta.black{background:#111111;} .lp-cta.black:hover{background:#2a2a2a;}
.lp-col{width:400px; flex:none;}
.lp-card{background:#fff; padding:38px 36px 34px; box-shadow:0 24px 60px rgba(0,0,0,0.35); border-radius:0;}
.lp-card h2{font-family:'PT Serif',Georgia,serif; font-weight:400; font-size:28px; color:#333333; margin:0 0 4px; letter-spacing:0;}
.lp-sub{font-size:14.5px; color:#6B7178; margin:0 0 26px;}
.lp-form{display:flex; flex-direction:column; gap:16px;}
.lp-field{display:flex; flex-direction:column; gap:7px;}
.lp-label{display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:500; color:#333333;}
.lp-field input{font-family:inherit; font-size:15px; color:#333333; padding:13px 14px; border:1px solid #D5D8DC; border-radius:0; background:#fff; width:100%;}
.lp-field input::placeholder{color:#9AA0A6;}
.lp-field input:focus{outline:none; border-color:#5CB874; box-shadow:0 0 0 3px rgba(92,184,116,0.18);}
.lp-forgot{font-size:12.5px; font-weight:400; color:#5CB874; text-decoration:none;}
.lp-forgot:hover{text-decoration:underline;}
.lp-err{display:none; background:#FCEDEB; color:#B3261E; padding:10px 12px; font-size:13px; border-radius:0;}
.lp-check{display:flex; align-items:center; gap:9px; margin:2px 0 6px; cursor:pointer; user-select:none; font-size:13.5px; color:#333333;}
.lp-box{width:18px; height:18px; flex:none; border:1px solid #C4C9CE; background:#fff; display:flex; align-items:center; justify-content:center; transition:all .15s; border-radius:0;}
.lp-box svg{display:none;}
.lp-check.on .lp-box{background:#5CB874; border-color:#5CB874;}
.lp-check.on .lp-box svg{display:block;}
.lp-submit{font-family:inherit; font-size:15px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; color:#fff; background:#5CB874; border:none; padding:16px; cursor:pointer; border-radius:0; width:100%;}
.lp-submit:hover{background:#4FA866;}
.lp-submit:active{background:#46975B;}
.lp-need{margin:22px 0 0; font-size:13px; color:#6B7178; text-align:center;}
.lp-need a{color:#5CB874; text-decoration:none; font-weight:500;}
.lp-need a:hover{text-decoration:underline;}
.lp-demo{margin-top:14px; background:rgba(12,19,26,0.55); padding:12px 14px; font-size:12.5px; color:rgba(255,255,255,0.85);}
.lp-demo-lab{display:block; margin-bottom:8px;}
.lp-chips{display:flex; flex-wrap:wrap; gap:8px;}
.lp-chip{display:inline-flex; align-items:center; gap:7px; padding:5px 12px 5px 6px; background:#fff; border:none; cursor:pointer; font-family:inherit; font-size:13px; color:#333333; border-radius:0;}
.lp-chip:hover{background:#EFF6F1;}
.lp-chip-av{width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; color:#fff; flex:none;}
.lp-divider{position:absolute; bottom:-1px; left:0; width:100%; height:70px; z-index:3; display:block;}
.lp-footer{background:#fff; padding:8px 56px 34px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:#6B7178;}
.lp-footer a{color:#5CB874; text-decoration:none;}
.lp-footer a:hover{text-decoration:underline;}

/* ===== app shell (v2 — quiet, bordered, no translucency) ===== */
#app{display:none; min-height:100vh; background:var(--canvas);}
.topbar{position:sticky; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between; height:52px; padding:0 20px; background:#fff; border-bottom:1px solid var(--line);}
.tb-left{display:flex; align-items:center; gap:12px;}
.tb-logo{height:24px; width:auto; display:block;}
.tb-div{width:1px; height:18px; background:var(--line-2);}
.tb-title{font-size:14px; font-weight:600; letter-spacing:-0.011em; color:var(--text);}
.tb-right{display:flex; align-items:center; gap:12px;}
.tb-pill{display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--text-2); text-decoration:none; padding:6px 12px; border-radius:8px; background:#fff; border:1px solid var(--line-2); cursor:pointer; font-family:inherit;}
.tb-pill:hover{background:#F9FAFB;}
.tb-accent{color:var(--accent); border-color:rgba(44,92,197,0.35);}
.tb-accent:hover{background:var(--accent-soft);}
.tb-user{display:flex; align-items:center; gap:9px;}
.tb-avatar{width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:600; color:#fff; background:var(--av,#475467);}
.tb-names{display:flex; flex-direction:column; line-height:1.15;}
.tb-name{font-size:13px; font-weight:600;}
.tb-role{font-size:11px; color:var(--muted);}
.demo-menu{position:fixed; top:58px; right:20px; z-index:60; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-panel); padding:8px; width:270px;}
.demo-menu .dm-lab{font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:var(--muted); padding:4px 9px 8px;}
.demo-menu button{display:flex; width:100%; align-items:center; gap:10px; background:transparent; border:none; border-radius:8px; padding:7px 9px; font-size:13px; text-align:left;}
.demo-menu button:hover{background:var(--gray-bg);}
.dm-av{width:24px; height:24px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:600; color:#fff;}
.dm-names{display:flex; flex-direction:column; line-height:1.2;}
.dm-role{font-size:11px; color:var(--muted); font-weight:400;}
.shell{display:flex; align-items:flex-start; max-width:1240px; margin:0 auto;}
.sidenav{position:sticky; top:52px; width:220px; flex:none; padding:18px 12px; display:flex; flex-direction:column; gap:1px;}
.sec-label{padding:0 10px 8px; font-size:11px; font-weight:600; letter-spacing:0.05em; color:var(--muted); text-transform:uppercase;}
.sidenav a{display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:8px; text-decoration:none; color:var(--text-2); font-size:13.5px; font-weight:500;}
.sidenav a:hover{background:var(--gray-bg);}
.sidenav a.active{background:var(--accent-soft); color:var(--accent);}
.sidenav a.active span:last-child{color:var(--accent); font-weight:600;}
.tile{width:18px; height:18px; flex:none; display:flex; align-items:center; justify-content:center; color:inherit;}
.main{flex:1; min-width:0; padding:26px 28px 60px;}
.main h2{font-size:20px; font-weight:650; letter-spacing:-0.014em; margin-bottom:3px;}
.sub{color:var(--muted); font-size:13.5px; margin-bottom:16px;}

/* timesheet month grid */
.week{display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin:10px 0 14px;}
.day{border:1px solid var(--line); border-radius:8px; padding:8px 4px; text-align:center; cursor:pointer; user-select:none; background:#fff;}
.day .dn{font-size:11px; color:var(--muted);}
.day .dt{font-weight:600; font-size:13.5px; margin:2px 0;}
.day.work{background:var(--green-bg); border-color:var(--green-ln);}
.day.work .st{color:var(--green-tx); font-weight:600;}
.day.travel{background:var(--blue-bg); border-color:var(--blue-ln);}
.day.travel .st{color:var(--blue-tx); font-weight:600;}
.day.off .st{color:#98A2B3;}
.day.locked{cursor:default; opacity:.7;}
.st{font-size:11.5px;}
.note{background:var(--amber-bg); border:1px solid var(--amber-ln); color:var(--amber-tx); border-radius:8px; padding:8px 12px; font-size:13px; margin-bottom:12px;}

/* org chart */
.org{position:relative; padding-left:24px;}
.org:before{content:''; position:absolute; left:9px; top:0; bottom:14px; width:2px; background:var(--line);}
.orgblock{position:relative; background:var(--surface); border:1px solid var(--line); border-radius:10px; margin-bottom:10px; overflow:hidden;}
.orgblock:before{content:''; position:absolute; left:-15px; top:24px; width:15px; height:2px; background:var(--line);}
.orghead{padding:8px 14px; font-weight:600; font-size:13px; display:flex; justify-content:space-between; align-items:center; gap:8px; border-bottom:1px solid var(--line); background:#FCFCFD;}
.orghead.mgmt{background:var(--text); color:#fff; border-bottom-color:var(--text);}
.orghead.ops{background:#FCFCFD; color:var(--text-2);}
.orgbody{padding:9px 14px 11px;}
.chip{display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:6px; font-size:12.5px; font-weight:500; border:1px solid var(--line-2); background:#fff; margin:3px 6px 3px 0;}
.chip .dot{width:7px; height:7px; border-radius:50%;}
.chip.signed{background:var(--green-bg); border-color:var(--green-ln); color:var(--green-tx);}
.chip.pipe{background:var(--amber-bg); border-color:var(--amber-ln); color:var(--amber-tx);}
.chip.backup{background:var(--gray-bg); color:var(--gray-tx); border-style:dashed;}
.chip.gap{background:var(--red-bg); border-color:var(--red-ln); color:var(--red-tx);}
.avatar{width:52px; height:52px; border-radius:50%; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:17px; color:#fff;}

/* side panel (profiles etc.) */
.panel-scrim{position:fixed; inset:0; background:rgba(16,24,40,0.35); z-index:70;}
.side-panel{position:fixed; top:0; right:0; bottom:0; width:440px; max-width:94vw; background:#fff; border-left:1px solid var(--line); box-shadow:var(--shadow-panel); z-index:71; overflow-y:auto; padding:20px 22px;}

@media (max-width:1100px){
  .lp-content{justify-content:center;}
}
@media (max-width:760px){
  .lp-header{padding:0 20px; height:72px;}
  .lp-logo{height:40px;}
  .lp-nav{gap:20px;}
  .lp-nav a:not(.active){display:none;}
  .lp-content{padding:44px 20px 110px;}
  .lp-head h1{font-size:40px;}
  .lp-head p{font-size:17px;}
  .lp-col{width:100%;}
  .lp-footer{padding:8px 20px 28px;}
  .topbar{padding:0 12px;}
  .tb-names,.tb-div{display:none;}
  .stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px;}
  .stat .val{font-size:20px;}
  .shell{flex-direction:column;}
  .sidenav{position:static; width:100%; flex-direction:row; overflow-x:auto; padding:8px 10px; gap:2px; border-bottom:1px solid var(--line); background:#fff; -webkit-overflow-scrolling:touch;}
  .sidenav a{flex:none; white-space:nowrap;}
  .sec-label{display:none;}
  .main{padding:16px 14px 40px;}
  .dash-title{font-size:20px;}
  .week{gap:4px;}
  .day{padding:6px 2px; border-radius:7px;}
  th.hide-sm, td.hide-sm{display:none;}
  .side-panel{width:100vw; max-width:100vw;}
}
