:root{font:15px/1.5 'Segoe UI',Arial,sans-serif;color:#233745;background:#f3f6f8;--navy:#172d3b;--teal:#11756d;--line:#dce5e9;--muted:#647987}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a.button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:#fff;color:#233745;padding:9px 15px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:hover,a.button:hover{background:#eaf4f2;border-color:#85b9b4}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:var(--teal)!important;color:#fff!important;border-color:var(--teal)!important}.quiet{background:transparent;border-color:transparent}.danger{color:#ab433b}input,select,textarea{border:1px solid #ccd8de;border-radius:6px;background:white;padding:9px 11px;min-width:0;width:100%;color:#233745}input:focus,select:focus,textarea:focus{outline:2px solid #8dc3bd;outline-offset:1px}textarea{resize:vertical;min-height:100px}input[type=checkbox]{width:auto;accent-color:var(--teal)}small,.muted{color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-size:31px;letter-spacing:-.7px}h2{font-size:23px;letter-spacing:-.3px}h3{font-size:16px}label{font-size:13px;font-weight:600;display:block}label input,label select,label textarea{margin-top:6px;font-size:14px;font-weight:400}.shell{display:grid;grid-template-columns:214px 1fr;min-height:100vh}aside{background:var(--navy);color:#e6f1f3;padding:28px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:19px;line-height:1.2;font-weight:700;letter-spacing:.5px}.mark{width:39px;height:44px;background:#18897e;border-radius:9px;display:grid;place-items:center;color:white;font-size:24px}.aside-label{font-size:10px;letter-spacing:1.6px;color:#8da9b7;margin:44px 10px 15px}nav{display:grid;gap:7px}nav button{justify-content:flex-start;background:transparent;color:#c9dce2;border:none;font-size:14px;padding:13px}nav button.active{background:#196b67;color:#fff}nav button:hover{background:#244656}.aside-bottom{margin-top:auto;color:#9bb7c3;font-size:12px;padding:20px 10px 0}.dot{display:inline-block;width:7px;height:7px;background:#87c9b4;border-radius:50%;margin-right:7px}main{padding:30px 36px;min-width:0}.top{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--teal);margin-bottom:7px}.top p{font-size:13px;color:var(--muted);margin-top:5px}.file-state{font-size:12px;text-align:right;max-width:320px;word-break:break-word}.file-state strong{display:block;color:var(--teal);font-weight:600}.card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:24px}.welcome{max-width:940px;margin:20px auto}.welcome-hero{background:var(--navy);color:white;border-radius:16px;padding:42px;position:relative}.welcome-hero h2{font-size:37px;line-height:1.22;max-width:640px;letter-spacing:-1px;margin-bottom:16px}.welcome-hero p{max-width:640px;color:#bed4dc}.welcome-hero .eyebrow{color:#8bc6bc}.row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.welcome .row{margin-top:26px}.welcome-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.step{font-size:11px;letter-spacing:1px;color:var(--teal);font-weight:700;margin-bottom:12px}.welcome-grid p{font-size:13px;margin-top:7px;color:var(--muted)}.notice{border-left:3px solid #2f9a8d;background:#e9f4f1;border-radius:5px;padding:14px 18px;font-size:13px;line-height:1.6}.warning{border-left-color:#c08137;background:#fff5e6}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.stat{padding:19px 22px;display:flex;align-items:center;gap:17px}.stat strong{font-size:32px;letter-spacing:-1px;color:var(--teal)}.stat span{font-size:11px;letter-spacing:.8px;font-weight:700;color:var(--muted)}.stat.late strong{color:#af6435}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;flex-wrap:wrap}.toolbar h2{font-size:19px}.filters{display:grid;grid-template-columns:minmax(170px,2fr) minmax(140px,1.5fr) minmax(120px,1fr) minmax(160px,1.4fr);gap:10px;margin-bottom:12px}.filters.dates{display:flex;align-items:center;flex-wrap:wrap;font-size:12px;gap:10px}.filters.dates input{width:145px}.filters.dates select{width:160px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;background:#edf2f5;color:#617886;font-size:11px;letter-spacing:.2px;font-weight:600;padding:13px 15px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:14px 15px;border-bottom:1px solid #e8eef1;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f3f9f8}.job-title{font-weight:600;color:#203b4b;min-width:210px}.cell-sub{font-size:11px;color:var(--muted);margin-top:2px}.nowrap{white-space:nowrap}.badge{padding:4px 8px;border-radius:5px;background:#e7f2ef;color:#27695c;font-size:11px;white-space:nowrap}.badge.wait{background:#fff3de;color:#967039}.badge.done{background:#eef0f4;color:#6d7887}.empty{text-align:center;padding:65px 20px!important;color:#6a808b}.empty strong{display:block;font-size:17px;color:#344e5d;margin-bottom:8px}.count{font-size:12px;color:var(--muted);margin-top:14px}.settings{display:grid;gap:18px;max-width:1000px}.settings h2{font-size:20px;margin-bottom:10px}.settings p{margin:8px 0 15px;font-size:14px;color:var(--muted)}.settings .row input{max-width:350px}.help{max-width:930px}.help h2{margin:30px 0 12px}.help p,.help li{font-size:14px;margin:10px 0}.help code{background:#eef3f5;padding:3px 5px;border-radius:4px}.help ol{padding-left:25px}.help .card{margin-top:18px}dialog{border:0;padding:0;border-radius:14px;box-shadow:0 24px 80px #10222e44;width:min(1120px,calc(100vw - 40px));max-height:calc(100vh - 40px);color:#233745}dialog::backdrop{background:#10232e88;backdrop-filter:blur(2px)}.dialog-head{padding:20px 25px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-head h2{font-size:20px}.dialog-head p{font-size:12px;color:var(--muted);margin-top:4px}.dialog-body{padding:24px;overflow:auto;max-height:calc(100vh - 190px)}.dialog-foot{padding:16px 24px;background:#f6f9fa;border-top:1px solid var(--line);display:flex;gap:12px;justify-content:flex-end;align-items:center}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.wide{grid-column:1/-1}.tabs{display:flex;gap:3px;border-bottom:1px solid var(--line);padding:0 22px}.tabs button{border:0;border-radius:0;padding:14px 20px;font-size:13px;background:transparent;color:var(--muted)}.tabs button.active{border-bottom:3px solid var(--teal);color:var(--teal)}.job-body{height:min(65vh,660px);overflow:auto;padding:22px 26px}.notes-list{display:grid;gap:12px;margin-top:23px}.note{border:1px solid var(--line);padding:18px;border-radius:8px;background:#f9fbfc}.note p{white-space:pre-wrap;font-size:14px}.note time{display:block;font-size:11px;color:var(--muted);margin-top:9px}.sheet-hint{font-size:12px;color:var(--muted);margin:10px 0}.formula-bar{display:flex;gap:9px;margin:12px 0}.formula-bar strong{display:grid;place-items:center;width:55px;flex-shrink:0;background:#edf4f2;border-radius:5px;font-size:13px}.formula-bar input{font-family:Consolas,monospace;font-size:13px}.grid-scroll{max-height:365px;overflow:auto;border:1px solid var(--line);border-radius:6px}.sheet{width:max-content;table-layout:fixed}.sheet th{position:sticky;top:0;z-index:1;text-align:center;padding:5px;width:110px;min-width:110px}.sheet th:first-child{width:43px;min-width:43px;left:0;z-index:3}.sheet td{border:1px solid #e4eaee;padding:0;min-width:110px;width:110px;max-width:110px;height:30px}.sheet td.row-head{position:sticky;left:0;background:#edf2f5;text-align:center;font-size:11px;color:#647987;width:43px;min-width:43px}.sheet input{border:0;border-radius:0;width:110px;min-width:110px;padding:5px 7px;height:30px;font-size:12px;background:transparent}.sheet input.formula{color:var(--teal);font-weight:600}.sheet input.error{color:#ad4438}.sheet input:focus{outline:2px solid var(--teal);outline-offset:-2px;background:#f0faf6}.save-hint{font-size:12px;color:var(--muted)}.save-hint.unsaved{color:#a56122;font-weight:600}.file-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:8px;padding:15px;margin:10px 0}.file-row h3{font-size:14px;overflow-wrap:anywhere}.file-row p{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.file-row .row{flex-shrink:0}.file-row button,.file-row a{font-size:12px;padding:7px 10px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#1c5147;color:#fff;box-shadow:0 8px 30px #17332a33;padding:13px 20px;border-radius:8px;z-index:10000;max-width:min(680px,90vw);font-size:14px}.toast.error{background:#9e3f36}.hidden,[hidden]{display:none!important}body.busy{cursor:progress}body.busy button{pointer-events:none;opacity:.65}@media(max-width:1050px){main{padding:24px}.shell{grid-template-columns:180px 1fr}aside{padding:24px 12px}.filters{grid-template-columns:1fr 1fr}.welcome-hero{padding:30px}.welcome-hero h2{font-size:30px}.welcome-grid{gap:10px}.card{padding:20px}.top{align-items:flex-start}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:27px}.stat span{font-size:10px}.file-state{max-width:210px}}@media(max-width:720px){.shell{display:block}aside{position:static;height:auto;padding:15px}.brand{font-size:15px}.mark{height:30px;width:30px}.aside-label,.aside-bottom{display:none}nav{display:flex;overflow:auto;margin-top:12px;gap:4px}nav button{white-space:nowrap;font-size:12px;padding:10px}.top{display:block}.file-state{text-align:left;margin-top:12px;max-width:none}.welcome-grid,.stats{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.welcome-hero{padding:25px}.welcome-hero h2{font-size:26px}main{padding:20px}.tabs{padding:0 5px}.tabs button{padding:12px 10px}.job-body{padding:17px}.file-row{display:block}.file-row .row{margin-top:10px}.filters{grid-template-columns:1fr}h1{font-size:27px}}

#main .table-wrap td:last-child,#main .table-wrap th:last-child{position:sticky;right:0;background:#fff;z-index:1}#main .table-wrap th:last-child{background:#edf2f5}

/* Web/mobile refinements */
body{font-size:16px}button,input,select,textarea{font-size:16px}label{font-size:14px}label input,label select,label textarea{font-size:16px}table{font-size:14px}th{font-size:13px}.cell-sub,.note time,.badge,.count,.save-hint,.sheet-hint,.file-row p{font-size:13px}.settings p,.help p,.help li,.note p{font-size:16px}.file-row h3{font-size:16px}.login-page{display:grid;place-items:center;min-height:100vh}.login-card{max-width:560px;padding:40px;background:#fff;border:1px solid var(--line);border-radius:16px;margin:20px}.login-card p{margin:20px 0;line-height:1.7}.login-card .button{margin:8px 0}.login-card .muted{font-size:14px}.aside-bottom button{margin-top:14px}.file-row>div:first-child{min-width:0}.file-row{align-items:flex-start}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23566' fill='none' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}button:focus-visible,a:focus-visible{outline:3px solid #75c9bb;outline-offset:3px}#voice-status{padding:10px 0;font-size:14px}.sheet input{font-size:14px}.sheet th,.sheet .row-head{font-size:13px}#audit-list li{margin:8px 0;overflow-wrap:anywhere}@media(max-width:720px){nav button{font-size:14px;min-height:44px}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{display:block;padding:12px}.stat span{display:block;font-size:11px;letter-spacing:0}.stat strong{font-size:26px}.job-body{height:65dvh}.tabs button{font-size:14px;min-height:44px}.dialog-head{padding:16px}.dialog-head h2{font-size:18px}.dialog-head p{font-size:13px}.dialog-foot{padding:12px}.formula-bar{flex-wrap:wrap}.formula-bar input{flex:1;min-width:100px}dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.login-card{padding:24px}.file-state{font-size:14px}}
