:root{--ink:#193633;--muted:#76817a;--bg:#f6f7f3;--line:#e1e6de;--brand:#25534b;--accent:#dbeaaa;--white:#fff;--danger:#a64037;--shadow:0 12px 36px #1c392910;font-family:"Segoe UI","Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #93b6a5;outline-offset:2px}button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:10px 15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;transition:background .15s}button:hover{background:#eff3eb}button.primary{background:var(--brand);border-color:var(--brand);color:white}button.primary:hover{background:#183e36}button.soft{background:#edf3e3;border-color:#dbe5ca}button.danger{color:var(--danger)}button.tiny{padding:7px 10px;font-size:12px}button.icon{width:36px;height:36px;padding:7px;background:transparent}svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.shell{display:grid;grid-template-columns:226px minmax(0,1fr);min-height:100vh}.sidebar{background:#183b37;color:#b8cbc2;position:fixed;inset:0 auto 0 0;width:226px;padding:31px 19px;display:flex;flex-direction:column;z-index:10}.brand{padding:0 13px 38px}.wordmark{font-size:37px;font-weight:850;letter-spacing:-3px;color:#f4f7e9;line-height:1}.wordmark i{color:#c9df99;font-style:normal}.brand small{font-size:10px;letter-spacing:2px;display:block;margin-top:10px;color:#b7c9b9}.nav-label{font-size:10px;letter-spacing:2px;color:#829f92;margin:0 13px 14px}.nav{display:flex;flex-direction:column;gap:6px}.nav a{display:flex;align-items:center;gap:13px;text-decoration:none;padding:13px 14px;border-radius:9px;font-size:13px}.nav a:hover{background:#ffffff0b;color:white}.nav a.active{background:#dcebb0;color:#244139;font-weight:700}.nav a .count{margin-left:auto;border-radius:5px;font-size:11px;padding:1px 6px;background:#0000000d}.sidebar-bottom{margin-top:auto;padding-top:32px}.sidebar-note{margin:20px 11px 0;font-size:11px;line-height:1.9;color:#91ada1}.profile{margin:25px 9px 0;padding-top:20px;border-top:1px solid #ffffff16;display:flex;gap:10px;align-items:center}.avatar{border-radius:50%;background:#d8e5bd;color:#345546;display:grid;place-items:center;width:33px;height:33px;font-size:12px;font-weight:700;flex-shrink:0}.profile strong{font-size:12px;color:#e1eadd;display:block}.profile small{font-size:10px;color:#91ada1}.workspace{grid-column:2;min-width:0}.topbar{height:77px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#ffffff99}.breadcrumb{color:var(--muted);font-size:12px;display:flex;align-items:center;gap:13px}.breadcrumb span:last-child{color:var(--ink)}.topbar-right{display:flex;align-items:center;gap:20px}.local-mark{font-size:11px;display:flex;gap:7px;align-items:center;color:#577062}.dot{width:6px;height:6px;border-radius:50%;background:#6c996c;display:inline-block}.today{font-size:12px;color:var(--muted)}main{padding:35px 42px 45px;max-width:1680px;margin:auto}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:#829180;text-transform:uppercase;margin:0 0 9px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:27px}.page-title h1{font-size:27px;font-weight:650;letter-spacing:.4px;margin:0 0 8px}.page-title p{color:var(--muted);margin:0;font-size:12px;line-height:1.8}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hero{background:#e8eddf;border:1px solid #dfe5d5;border-radius:14px;display:flex;align-items:center;justify-content:space-between;padding:25px 28px;margin-bottom:24px;overflow:hidden;position:relative}.hero h2{font-size:21px;margin:0 0 10px;font-weight:600}.hero p{font-size:12px;color:#657763;line-height:1.8;margin:0;max-width:550px}.hero-art{display:flex;gap:11px;align-items:center;margin:0 27px 0 20px;transform:rotate(-8deg)}.hero-art div{height:80px;width:57px;border:1px solid #758d6855;border-radius:6px;background:#f4f6e9;box-shadow:5px 5px 0 #bfcfa775}.hero-art div:nth-child(2){height:106px;width:78px;transform:rotate(17deg);background:#d4e1b7}.hero-art div:nth-child(3){height:67px;width:49px;transform:rotate(27deg)}.metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:28px}.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:20px 21px}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#748176;font-size:12px}.metric-top svg{color:#789073;background:#f2f5eb;padding:7px;width:33px;height:33px;border-radius:9px}.metric .number{font-size:29px;font-weight:600;letter-spacing:-.8px;margin:12px 0 7px}.metric .number small{font-size:12px;font-weight:400;color:#7c8a7a;margin-left:7px;letter-spacing:0}.metric-foot{font-size:10px;color:#8a9488}.section-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 15px;gap:10px}.section-title h2{font-size:15px;font-weight:650;margin:0}.text-link{background:none;border:0;color:#6e8067;padding:4px;font-size:11px}.grid-main{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:23px}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-pad{padding:21px}.panel-heading{padding:19px 21px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.panel-heading h2{font-size:14px;margin:0}.project-card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;transition:box-shadow .15s}.project-card:hover{box-shadow:var(--shadow)}.project-card h3{font-size:17px;margin:15px 0 7px}.project-card .client{font-size:12px;color:var(--muted);margin-bottom:19px}.project-card .dates{font-size:11px;color:#7e8a7a;display:flex;gap:6px;align-items:center}.project-card .dates svg{width:14px;height:14px}.project-card .card-foot{border-top:1px solid var(--line);margin-top:20px;padding-top:15px;display:flex;align-items:center;justify-content:space-between}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card-top{display:flex;justify-content:space-between;align-items:center}.id{font-size:10px;font-family:Consolas,monospace;letter-spacing:.4px;color:#8b9687}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:10px;font-weight:600;white-space:nowrap;background:#f0f2ee;color:#798075}.badge.green{background:#eaf2df;color:#5e7947}.badge.amber{background:#fbf1db;color:#a08336}.badge.red{background:#f9eae6;color:#a46251}.badge.blue{background:#eaf0f4;color:#547583}.progress{height:4px;background:#eef1e9;border-radius:3px;margin:12px 0 8px;overflow:hidden}.progress i{height:100%;background:#94b382;display:block}.progress-label{font-size:10px;color:#929b8c;display:flex;justify-content:space-between}.todo{display:flex;align-items:flex-start;gap:12px;padding:15px 0;border-bottom:1px solid #eef1e9}.todo:last-child{border-bottom:0}.todo-icon{width:32px;height:32px;background:#f3f4eb;display:grid;place-items:center;border-radius:8px;color:#869372;flex-shrink:0}.todo strong{font-size:12px;font-weight:600}.todo p{font-size:11px;color:var(--muted);margin:5px 0 0;line-height:1.6}.todo button{padding:0;margin-top:8px;font-size:10px}.activity{display:flex;gap:11px;padding:13px 0;border-bottom:1px solid #eef1e9}.activity:last-child{border:0}.activity .dot{margin-top:5px;background:#bbcba6}.activity strong{font-size:11px;font-weight:500;display:block}.activity small{font-size:10px;color:#98a08f;margin-top:5px;display:block}.subtle{font-size:12px;color:var(--muted);line-height:1.8}.toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.toolbar-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search{position:relative}.search svg{position:absolute;left:13px;top:12px;width:16px;height:16px;color:#8e9b86}.search input{padding-left:39px;min-width:250px;background:white}.field,input,select,textarea{border:1px solid #dce2d7;background:white;border-radius:7px;padding:10px 12px;color:var(--ink);min-width:0}input[type=checkbox]{accent-color:var(--brand);width:16px;height:16px;cursor:pointer;flex-shrink:0;padding:0}textarea{resize:vertical;min-height:82px}input:disabled,select:disabled{background:#f4f5f1;color:#88917f}.tabs{display:flex;gap:4px;padding:4px;border-radius:8px;background:#eaeede}.tabs button{border:0;background:none;padding:7px 13px;font-size:12px;color:#7b876e}.tabs button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #203a2010}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{background:#fafbf7;font-size:10px;color:#89947d;font-weight:500;padding:13px 18px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:17px 18px;border-bottom:1px solid #edf0e8;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcf8}td .name{font-weight:600;font-size:12px;display:block;margin-bottom:5px}td small{font-size:10px;color:#8e9884}.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.row-actions{display:flex;gap:5px;justify-content:flex-end}.table-foot{padding:13px 18px;background:#fdfdfb;color:#8e9884;font-size:10px;border-top:1px solid var(--line)}.person-cell{display:flex;align-items:center;gap:12px}.person-cell .avatar{width:31px;height:31px;font-size:11px;background:#eaf0e0;color:#6d845d}.empty{text-align:center;padding:55px 20px;color:var(--muted)}.empty svg{width:36px;height:36px;color:#a0b18d;margin-bottom:8px}.empty h3{font-size:15px;color:var(--ink);font-weight:500}.empty p{font-size:12px;line-height:1.9;margin-bottom:20px}.notice{background:#f2f5ea;border:1px solid #e3e8d6;border-radius:8px;padding:12px 15px;font-size:12px;line-height:1.9;color:#748365;margin:0 0 20px}.notice.warning{background:#fbf6e9;border-color:#ece3c9;color:#95804c}.summary-strip{display:flex;gap:28px;padding:18px 22px;align-items:center}.summary-strip strong{font-size:18px;display:block;margin-top:6px}.summary-strip span{font-size:11px;color:var(--muted)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.stat-line{display:flex;justify-content:space-between;gap:20px;font-size:12px;padding:13px 0;border-bottom:1px solid var(--line)}.stat-line:last-child{border-bottom:0}.settings-grid{display:grid;grid-template-columns:minmax(300px,1.3fr) 1fr;gap:22px}.settings-grid h3{font-size:14px;margin:0 0 17px}.settings-grid p{font-size:12px;line-height:1.9;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#65745f}.form-grid label.full{grid-column:1/-1}.required{color:#a2784b}.form-section{font-size:12px;font-weight:700;letter-spacing:1px;margin:25px 0 16px;padding-bottom:12px;border-bottom:1px solid var(--line)}.form-section:first-child{margin-top:0}.form-error{color:#aa4a3d;background:#fbeee9;border-radius:7px;padding:10px 13px;font-size:12px;line-height:1.8;margin-top:14px}.form-error:empty{display:none}dialog{border:1px solid #dbe2d3;border-radius:15px;padding:0;width:min(720px,calc(100% - 30px));max-height:90vh;color:var(--ink);box-shadow:0 22px 90px #122b2840}dialog.wide{width:min(1180px,calc(100% - 30px))}dialog::backdrop{background:#122b2855;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:white;padding:23px 27px;border-bottom:1px solid var(--line);z-index:2}.dialog-head h2{font-size:18px;margin:0}.dialog-head p{font-size:11px;margin:6px 0 0;color:var(--muted)}.dialog-body{padding:25px 27px}.dialog-foot{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 27px;border-top:1px solid var(--line);background:#fbfcf8;position:sticky;bottom:0;z-index:2}.dialog-foot small{font-size:10px;color:var(--muted)}.dialog-foot .actions{margin-left:auto}.batch-table{min-width:900px}.batch-table th,.batch-table td{padding:9px 7px}.batch-table input,.batch-table select{width:100%;padding:9px 7px;font-size:12px}.batch-table td:nth-child(2){min-width:120px}.batch-table td:nth-child(3),.batch-table td:nth-child(4){min-width:140px}.batch-table td:nth-child(5){min-width:130px}.batch-table td:nth-child(6){min-width:100px}.batch-table td:last-child{min-width:95px}.batch-table .row-actions button{padding:7px}.batch-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:15px}.batch-total{font-size:12px;color:var(--muted)}.batch-total strong{font-size:20px;color:var(--ink);margin-left:8px}.attachments{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.attachment{border:1px dashed #cbd6c1;border-radius:9px;padding:14px;text-align:center;font-size:11px;color:#7d8d70}.attachment input{max-width:100%;padding:7px;font-size:10px;border:0}.attachment img{width:100%;height:86px;object-fit:contain;display:block;margin:10px 0;background:#f7f8f4}.check-label{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.8}.payroll-review input[type=number]{width:105px}.payroll-review{min-width:700px}.payroll-review th,.payroll-review td{padding:12px}.pdf-frame{width:100%;height:65vh;border:1px solid var(--line);border-radius:8px}.invitation-link{width:100%;margin:13px 0}.signature{background:#fafbf6;width:100%;height:170px;border:1px dashed #b6c6ac;border-radius:8px;touch-action:none;display:block}.signature-actions{display:flex;align-items:center;justify-content:space-between;margin-top:9px}.worker{max-width:820px;margin:0 auto;padding:38px 25px 70px}.worker .wordmark{color:var(--brand);font-size:34px}.worker-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.worker h1{font-size:26px;font-weight:600}.worker .panel-pad{padding:30px}.worker-intro{margin-bottom:30px}.worker .form-grid{gap:19px}.worker-footer{font-size:11px;color:#87927c;text-align:center;margin-top:24px}.worker-success{text-align:center;padding:45px 20px}.worker-success svg{width:55px;height:55px;color:#83a16e}#toast{position:fixed;bottom:27px;left:calc(50% + 80px);transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;border-radius:10px;padding:13px 21px;background:#24463d;color:#fff;font-size:12px;box-shadow:0 8px 30px #183e3733;transition:.2s;z-index:100;max-width:90vw}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}#toast.error{background:#9b4a3e}.loading{padding:70px;text-align:center;color:var(--muted)}.mobile-menu{display:none}.footer-note{margin-top:28px;font-size:10px;color:#a2aa98;display:flex;justify-content:space-between}.people-summary{display:flex;gap:10px;align-items:center}.mini-tag{color:#7a8b6e;background:#ecf0e4;padding:7px 10px;border-radius:7px;font-size:10px}.document-link{color:var(--brand);font-weight:600;text-decoration:none;font-size:12px}.document-link:hover{text-decoration:underline}.inline-error{color:var(--danger)}.detail-note{white-space:pre-wrap;overflow-wrap:anywhere}.project-focus{background:#e9eedf;padding:18px 22px;border-radius:11px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;gap:12px}.project-focus h2{font-size:16px;margin:0 0 6px}.project-focus p{font-size:11px;color:var(--muted);margin:0}.help-list{padding-left:18px;font-size:12px;color:var(--muted);line-height:2}.file-label{font-size:10px;color:var(--muted)}
@media(min-width:1600px){main{padding-top:43px}.hero{padding:31px}.metrics{gap:21px}.metric{padding:25px}.grid-main{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1250px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-main{grid-template-columns:minmax(0,1fr) 250px}main{padding:29px}.topbar{padding:0 29px}.metric{padding:17px}.metric .number{font-size:25px}}
@media(max-width:1000px){.shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{width:185px;padding:25px 12px}.brand{padding-left:13px}.topbar{padding:0 23px}.today{display:none}main{padding:25px 23px}.grid-main{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}.metrics{gap:10px}.metric .number{font-size:23px}.metric{padding:15px}.settings-grid{grid-template-columns:1fr}.hero-art{margin-right:5px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}}
@media(max-width:700px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:.2s;width:226px}.sidebar.open{transform:translateX(0);box-shadow:10px 0 80px #12372e55}.workspace{width:100%}.topbar{height:62px;padding:0 18px;gap:10px}.mobile-menu{display:inline-flex}.breadcrumb{font-size:11px;gap:7px}.topbar-right{gap:10px}.topbar-right .avatar{display:none}.local-mark{font-size:10px}.topbar-left{display:flex;gap:8px;align-items:center}main{padding:25px 17px}.page-title{align-items:flex-start;flex-direction:column;margin-bottom:20px}.page-title h1{font-size:25px}.page-title .actions{width:100%}.hero{padding:22px}.hero-art{display:none}.hero h2{font-size:19px}.hero p{font-size:11px}.metrics{grid-template-columns:1fr 1fr;gap:11px}.metric .number{font-size:25px}.metric-top{font-size:11px}.metric-top svg{width:29px;height:29px}.metric-foot{font-size:9px}.cards{grid-template-columns:1fr}.dashboard-side{grid-template-columns:1fr}.toolbar{align-items:stretch}.toolbar-group{width:100%}.search{flex:1}.search input{min-width:0;width:100%}.toolbar-group>select{width:100%}.toolbar .actions{width:100%}.tabs{overflow:auto;max-width:100%}.form-grid{grid-template-columns:1fr}.form-grid label.full{grid-column:auto}.attachments{grid-template-columns:1fr}.attachment img{height:110px}.dialog-body{padding:20px 18px}.dialog-head{padding:19px 18px}.dialog-foot{padding:15px 18px;flex-wrap:wrap}.dialog-foot small{width:100%}.dialog-foot .actions{width:100%}.dialog-foot .actions button{flex:1}.worker{padding:25px 15px}.worker .panel-pad{padding:22px 18px}.worker h1{font-size:24px}.worker-header{margin-bottom:25px}.footer-note{flex-direction:column;gap:10px}#toast{left:50%;bottom:20px}.summary-strip{gap:20px;flex-wrap:wrap;padding:18px}.summary-strip strong{font-size:17px}.project-focus{align-items:flex-start;flex-direction:column}.notice{font-size:11px}.batch-bottom{flex-wrap:wrap;gap:15px}}

.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.overview-cards{grid-template-columns:1fr}.project-card .dates{flex-wrap:wrap}.project-card .card-foot{gap:8px;flex-wrap:wrap}}
