:root{font-family:Inter,"Yu Gothic UI","Meiryo",sans-serif;color:#263833;background:#f4f6f8;font-synthesis:none;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #dce3e0;border-radius:10px;background:white;color:inherit;padding:12px 18px;min-height:44px}button:hover{background:#edf3f0}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e2b653;outline-offset:3px}button.primary{background:#215c50;color:white;border-color:#215c50}button.danger{color:#b13e3e}.shell{max-width:1160px;margin:auto;padding:35px 40px 115px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:40px}.brand{font-size:18px;font-weight:750;display:flex;gap:12px;align-items:center}.brand img{width:36px;height:36px}.local{font-size:13px;color:#6c7c76}h1{font-size:27px;margin:0}h2{font-size:18px;margin:0 0 20px}h3{font-size:16px;margin:0}.top,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.top{margin-bottom:26px}.month{display:flex;gap:15px;align-items:center;font-weight:650}.month button{padding:5px 14px}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.card{background:#fff;border:1px solid #e1e7e4;border-radius:18px;padding:28px;margin-bottom:24px}.hero{background:#215c50;color:white;border:0;position:relative;overflow:hidden}.hero .muted{color:#c8ded7}.eyebrow{font-size:14px;letter-spacing:.05em}.big{font-size:clamp(36px,5vw,58px);font-weight:730;letter-spacing:-.035em;margin:17px 0}.big small{font-size:20px;font-weight:500;margin-left:8px}.hero .split{border-top:1px solid #588175;padding-top:23px;margin-top:24px}.split{display:flex;gap:32px}.split>div{flex:1}.number{font-size:26px;font-weight:700;margin-top:10px}.muted{color:#75817c;font-size:14px;line-height:1.7}.progress{height:9px;border-radius:10px;background:#e7eee9;overflow:hidden;margin:23px 0 14px}.progress i{display:block;height:100%;background:#d6ac50;border-radius:10px}.statusgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.statusgrid div{background:#f4f7f6;border-radius:12px;padding:18px;text-align:center}.statusgrid strong{display:block;font-size:28px;margin-top:8px}.wide{width:100%}.empty{text-align:center;padding:32px 16px;color:#71807a;line-height:1.8}.list{display:grid;gap:10px}.item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 0;border-bottom:1px solid #edf0ee}.item:last-child{border:0}.item button.link{border:0;padding:0;text-align:left;background:none;flex:1;min-width:0}.item b,.item strong{overflow-wrap:anywhere}.badge{display:inline-block;font-size:12px;padding:5px 9px;border-radius:7px;background:#edf4f0;color:#326955;margin:5px 5px 0 0}.badge.gray{background:#f1f2f3;color:#778079}.income{color:#24715c}.expense{color:#ac6050}.actions{display:flex;gap:10px;flex-wrap:wrap}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.tabs .active{background:#263e37;color:#fff}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stats .card{padding:22px}.nav{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);display:flex;background:#fff;border:1px solid #dce4df;border-radius:18px;box-shadow:0 5px 30px #16352b12;padding:7px;z-index:5;gap:6px}.nav button{border:0;min-width:110px;display:grid;place-items:center;gap:5px;padding:9px 20px;color:#78817d;font-size:13px}.nav button.active{background:#eaf3ee;color:#215c50;font-weight:700}.nav svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7}.chart{display:flex;align-items:stretch;height:190px;gap:16px;padding-top:15px}.barcol{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;min-width:0}.bar{background:#468675;width:100%;max-width:60px;border-radius:7px 7px 0 0;min-height:2px}.bar.negative{background:#bf7968}.chart small{font-size:12px;white-space:nowrap}.sourcebar{height:7px;background:#e9eeeb;border-radius:5px;margin-top:10px}.sourcebar i{display:block;height:100%;background:#428773;border-radius:5px}dialog{border:0;border-radius:20px;padding:30px;width:min(520px,calc(100% - 28px));max-height:90dvh;color:#263833;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#152e2866}dialog h2{padding-right:35px}.close{position:absolute;right:16px;top:15px;border:0;padding:5px 13px}label{display:block;font-size:14px;margin:17px 0 7px}input:not([type=checkbox]),select{width:100%;border:1px solid #ced9d2;padding:12px;border-radius:9px;background:#fff;color:inherit;min-height:45px}input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:10px}form .actions{margin-top:26px}details{margin-top:18px}summary{cursor:pointer;font-size:14px;color:#63746c}.time{font-variant-numeric:tabular-nums}#toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);background:#243e35;color:white;padding:13px 23px;border-radius:12px;z-index:20;display:none;max-width:90%}.running{padding:14px 20px;background:#fff4d8;border-radius:12px;margin-bottom:20px}.dangerzone{border-color:#ecd7d2}.footer-note{margin-top:24px;font-size:13px;color:#77847e;line-height:1.8}.mini{padding:7px 12px;font-size:14px}.checkrow{display:flex;align-items:center;justify-content:space-between;gap:10px}.error{color:#ae3838;font-size:14px}.wrap{overflow-wrap:anywhere} @media(max-width:700px){.shell{padding:22px 18px 105px}header{margin-bottom:29px}.local{font-size:11px}.brand{font-size:15px;gap:8px}.brand img{width:30px;height:30px}.top{align-items:flex-start;gap:18px;flex-wrap:wrap}h1{font-size:24px}.month{gap:10px}.grid{grid-template-columns:1fr;gap:0}.card{padding:23px;border-radius:16px;margin-bottom:18px}.big{font-size:48px}.nav{bottom:0;width:100%;border-radius:17px 17px 0 0;border-bottom:0;justify-content:space-around;gap:0;padding:7px 4px calc(7px + env(safe-area-inset-bottom))}.nav button{min-width:0;flex:1;padding:8px 1px;font-size:12px}.stats{gap:7px}.stats .card{padding:15px 10px}.stats .number{font-size:19px}.stats .muted{font-size:12px}.statusgrid{gap:8px}.statusgrid div{padding:15px 6px}.chart{gap:9px}.chart small{font-size:10px}.split{gap:16px}.number{font-size:24px}.item{gap:9px}.actions>button{flex-grow:1}dialog{padding:25px 20px}.top>.actions{width:100%}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}.card{animation:appear .2s ease-out}@keyframes appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}
/* PARU WORX commander additions; existing navigation and finance layout retained. */
.command-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.command-intro h1{font-size:30px}.command-intro .eyebrow{color:#215c50;font-weight:700}.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.command-grid>.card{min-width:0}.command-task{padding:18px 0;border-bottom:1px solid #e1e7e4;overflow-wrap:anywhere}.command-task:last-child{border-bottom:0}.command-task p{font-size:14px;line-height:1.6;margin:8px 0;color:#63746c}.command-task .row{align-items:flex-start;flex-wrap:wrap}.command-task strong{flex:1;min-width:150px}.next-command{border-top:4px solid #d6ac50}.employee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.employee-grid article{padding:16px;background:#f4f7f6;border-radius:12px;overflow-wrap:anywhere}.employee-grid p{font-size:14px;line-height:1.6}.command-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #ced9d2;border-radius:10px;min-height:44px;padding:10px 14px;color:#215c50;text-decoration:none;font-size:16px;background:#fff;overflow-wrap:anywhere}textarea{width:100%;font:inherit;line-height:1.6;padding:12px;border:1px solid #ced9d2;border-radius:9px;resize:vertical}textarea:focus-visible,a:focus-visible{outline:3px solid #e2b653;outline-offset:3px}label{line-height:1.6}.shell h2{overflow-wrap:anywhere}.command-intro>div{min-width:0}@media(max-width:700px){.command-intro{display:block}.command-intro h1{font-size:26px}.command-grid,.employee-grid{grid-template-columns:1fr;gap:0}.employee-grid{gap:12px}.command-intro .actions{margin-top:18px}.command-task .actions>*{flex:1 1 150px}.card>.row{flex-wrap:wrap}.brand{font-size:16px}.local{max-width:75px;text-align:right}.statusgrid{min-width:0}.shell{padding-left:14px;padding-right:14px}.card{padding:20px}.command-grid>label{margin-bottom:8px}}

@media(max-width:700px){.pending-card .item{flex-wrap:wrap}.pending-card .item button[data-receive]{width:100%}.pending-card .item .link{min-width:130px}}

/* Compact home dashboard: scoped to home so other screens retain their layout. */
.home-shell header{margin-bottom:22px}.home-shell .command-intro{margin-bottom:16px}.home-shell .command-intro h1{font-size:26px}.home-shell .command-intro .eyebrow{margin:0 0 6px}.home-shell .home-section{padding:18px 20px;margin-bottom:16px}.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.home-section-heading h2{margin:0;font-size:17px}.home-section-heading h2>span{font-size:13px;font-weight:500;color:#64776e;margin-left:6px}.home-section-heading>button{padding:6px 12px;font-size:14px}.home-task{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #edf0ee}.home-task-info{flex:1;min-width:0;display:grid;gap:5px}.home-task-info strong{font-size:15px;overflow-wrap:anywhere}.home-task-info>span{font-size:13px;line-height:1.5;color:#63746c;overflow-wrap:anywhere}.home-task>button{font-size:13px;padding:8px 12px;flex-shrink:0}.home-status{font-size:12px;border-radius:7px;padding:5px 8px;display:inline-block;width:fit-content;font-weight:600;line-height:1.5}.state-0{background:#fff2ce;color:#74540b}.state-1{background:#e4efff;color:#235899}.state-2{background:#f2e8ff;color:#734095}.state-3{background:#e6f3eb;color:#28694b}.home-employees{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.home-employee{text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px 12px;min-width:0;border-radius:12px;background:#f7f9f8}.home-employee>strong{font-size:15px;overflow-wrap:anywhere}.home-role{color:#63746c;font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-current{font-size:13px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;min-height:39px}.home-employee-total,.home-no-work{font-size:12px;color:#63746c}.home-status-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:100%;font-size:11px}.home-status-counts span{padding:3px 5px;border-radius:5px;white-space:nowrap}.home-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.home-summary button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px;padding:14px;min-width:0}.home-summary button>span{font-size:13px;line-height:1.5}.home-summary strong{font-size:24px}.home-summary small{font-size:11px;margin-left:3px;font-weight:400}.home-summary button:disabled{cursor:default;color:#75817c;background:#f2f5f3;border-color:#e4e9e6}.home-empty{font-size:14px;color:#63746c;margin:8px 0}.home-work-tools{display:flex;gap:10px;flex-wrap:wrap}.home-work-tools button{font-size:13px;padding:8px 12px}.home-scroll-hint{display:none}.employee-work-group{margin-top:22px}.home-shell .footer-note{margin-top:16px}
@media(max-width:1000px) and (min-width:701px){.home-task{flex-wrap:wrap}.home-status{font-size:11px}.home-summary button{padding:10px}}
@media(max-width:700px){.home-shell header{margin-bottom:18px}.home-shell .command-intro h1{font-size:24px}.home-shell .command-intro .actions{margin-top:12px}.home-shell .home-section{padding:14px;margin-bottom:12px}.home-task{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.home-task-info{grid-column:1/-1}.home-task>button{font-size:12px;padding:8px}.home-task .home-status{max-width:140px}.home-employees{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:72%;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px}.home-employee{scroll-snap-align:start}.home-scroll-hint{display:inline;font-size:11px;color:#63746c;white-space:nowrap}.home-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.home-summary button{padding:10px 12px}.home-summary strong{font-size:22px}.home-work-tools{gap:8px}}

.home-shell{padding-top:24px}.home-shell header{margin-bottom:16px}.home-task{padding-top:6px;padding-bottom:6px}.home-employee{gap:6px}.home-current{-webkit-line-clamp:1;min-height:20px}.home-status-counts{grid-template-columns:repeat(4,minmax(0,1fr));font-size:10px;gap:3px}.home-status-counts span{padding:3px 2px;text-align:center}.home-summary button{padding-top:10px;padding-bottom:10px}
@media(max-width:700px){.home-shell{padding-top:18px}.next-command .home-task:nth-of-type(n+3){display:none}.home-status-counts{font-size:11px}.home-role{font-size:13px}.home-scroll-hint{font-size:11px}.home-current{-webkit-line-clamp:2;min-height:20px}}
.business-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.business-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;min-width:0;padding:10px}.business-card>strong{font-size:13px;line-height:1.5;min-height:39px;overflow-wrap:anywhere}.business-card .home-current{font-size:12px}.business-card small{font-size:11px;color:#63746c}.business-flow{font-size:11px;color:#63746c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.business-pipeline{padding-left:24px}.business-pipeline li{padding:14px 0;border-bottom:1px solid #e1e7e4}.business-pipeline p{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.business-checks{border:1px solid #dce3e0;border-radius:10px;margin:16px 0;padding:12px;max-height:230px;overflow:auto}.business-checks legend{font-size:14px}.business-checks label{margin:6px 0}.home-businesses .home-section-heading button{font-size:12px}.home-shell .business-card .home-status{font-size:11px}.home-businesses{margin-bottom:12px!important}@media(max-width:700px){.business-cards{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:72%;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px}.business-card{scroll-snap-align:start}.business-card>strong{font-size:14px;min-height:21px}.command-intro .actions>button{font-size:13px;padding:10px}.business-pipeline{padding-left:20px}.business-card .home-current{font-size:13px}}
/* Keep business and employee panels compact; detail lives in dialogs. */
.home-shell .business-card{padding:8px;gap:4px}.home-shell .business-card .home-status{padding:3px 5px}.home-shell .home-employee{padding:10px;gap:4px}.home-shell .home-employee .home-status{padding:3px 5px}.home-shell .home-section{padding:14px 16px;margin-bottom:12px}.home-other{margin:0 0 12px;padding:10px 14px;border:1px solid #e1e7e4;border-radius:12px;background:white}.home-other>summary{min-height:28px;display:flex;align-items:center;font-size:13px}.home-other>summary::before{content:'＋';margin-right:8px}.home-other[open]>summary::before{content:'−'}@media(max-width:700px){.home-shell .home-section{padding:12px}.home-other>summary{min-height:32px}}
