:root{--ink:#182a23;--muted:#59685f;--line:#dce2db;--paper:#f5f6f1;--green:#173e30;--lime:#dbef88;--gold:#f2c353;--red:#a0392e;--white:#fff;--radius:18px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--green)}button:focus-visible,a:focus-visible{outline:3px solid #3c8d65;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,3.5vw,42px);letter-spacing:-1.4px;line-height:1.15;margin-bottom:10px;font-weight:650}h2{font-size:22px;letter-spacing:-.5px}h3{font-size:17px}p{line-height:1.55}.muted{color:var(--muted)}.small{font-size:13px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted);margin-bottom:12px}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:#13251f;color:#dce5de;position:sticky;top:0;height:100vh;padding:32px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;font-weight:800;letter-spacing:1px;font-size:19px;margin:0 7px 44px}.brand-mark{display:grid;place-items:center;background:var(--lime);color:#15271e;width:37px;height:37px;border-radius:10px;font-size:22px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#b6c4b8;margin-top:4px}.nav-label{font-size:10px;letter-spacing:1.7px;color:#9caea0;margin:0 15px 12px}.nav{display:grid;gap:7px}.nav button{display:flex;align-items:center;gap:13px;background:none;color:#c4d0c7;border:0;border-radius:11px;padding:13px 15px;text-align:left;font-size:14px}.nav button.active{background:var(--lime);color:#183426;font-weight:750}.nav button:hover:not(.active){background:#233b2f}.nav svg{width:19px;height:19px;flex-shrink:0}.side-bottom{margin-top:auto;padding-top:28px}.machine-chip{padding:16px;border:1px solid #405347;border-radius:13px;font-size:13px;line-height:1.8}.machine-chip strong{display:block;color:#fff}.side-user{display:flex;gap:10px;align-items:center;margin:24px 7px 0}.avatar{background:#e9eddf;color:var(--green);border-radius:50%;width:38px;height:38px;display:grid;place-items:center;font-weight:700;flex-shrink:0}.side-user small{color:#b4c6b8}.logout{background:none;border:0;color:inherit;margin-left:auto;padding:10px}.main{min-width:0}.topbar{height:79px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:#fbfcf8;gap:16px}.breadcrumb{font-size:13px;color:var(--muted)}.breadcrumb b{color:var(--ink)}.top-tools{display:flex;gap:14px;align-items:center}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:20px;padding:6px 10px;font-size:11px;font-weight:650;white-space:nowrap;background:#fff}.dot{width:6px;height:6px;border-radius:50%;background:#468154}.pill.warn{background:#fff2d7;border-color:#ead7ad;color:#805713}.pill.warn .dot{background:#bb8123}.pill.bad{background:#fae6e2;color:var(--red)}.content{padding:34px 36px 44px;max-width:1800px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}.page-head p{margin:0;font-size:14px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{border:1px solid var(--line);background:white;padding:11px 16px;border-radius:9px;color:var(--ink);font-size:13px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;min-height:42px}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.lime{background:var(--lime);border-color:var(--lime);color:#1b3326}.btn.danger{color:var(--red);border-color:#e7c4bf}.btn svg{width:16px;height:16px}.btn.text{border:0;background:transparent;padding:7px 8px;min-height:36px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:21px}.stat-label{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px}.stat-label svg{width:18px;height:18px}.stat strong{display:block;font-size:clamp(22px,2.3vw,33px);font-weight:600;letter-spacing:-1px;margin:15px 0 9px}.stat small{font-size:11px;color:var(--muted)}.stat.dark{background:var(--green);color:#fff;border-color:var(--green)}.stat.dark .stat-label,.stat.dark small{color:#d0dfd2}.grid-two{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);gap:22px;margin-bottom:22px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:23px;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:21px}.card-head h2,.card-head h3{margin:0}.status-card{background:#e9eddf;position:relative;overflow:hidden;min-height:224px}.machine-art{position:absolute;right:5%;top:59px;width:210px;opacity:.85}.status-copy{position:relative;z-index:1;max-width:65%}.status-copy h2{font-size:32px;font-weight:600;margin:18px 0 10px}.status-copy p{font-size:13px}.tag{display:inline-block;padding:5px 9px;border-radius:6px;background:#edf2e9;color:#395b40;font-size:11px;font-weight:700}.tag.working{background:#dcf2c0;color:#33521e}.tag.break{background:#fff0d4;color:#845d22}.tag.closed{background:#edf0ed;color:#59685f}.tag.red{background:#fae5e1;color:#9b3a2d}.gps-empty{border:1px dashed #c7d2c0;background:repeating-linear-gradient(45deg,#f6f8f0,#f6f8f0 15px,#f0f3e9 15px,#f0f3e9 16px);border-radius:12px;padding:25px 20px;text-align:center}.gps-empty svg{width:30px;height:30px;margin-bottom:10px}.gps-empty strong{display:block;font-size:15px;margin-bottom:7px}.gps-empty p{font-size:12px;margin-bottom:0}.timeline{display:grid;gap:0}.time-row{display:grid;grid-template-columns:50px 15px minmax(0,1fr) auto;gap:12px;padding:0 0 22px;position:relative;align-items:start}.time-row:before{content:"";position:absolute;left:69px;top:13px;bottom:0;width:1px;background:var(--line)}.time-row:last-child:before{display:none}.time-dot{width:9px;height:9px;border:2px solid #507457;border-radius:50%;margin-top:4px;background:#fff;z-index:1}.time-row small{font-size:11px;color:var(--muted)}.time-row b{font-size:13px;display:block}.time-row p{font-size:12px;color:var(--muted);margin:5px 0 0}.photo-mini{width:42px;height:42px;border-radius:8px;object-fit:cover;border:1px solid var(--line);cursor:pointer}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}th{font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);padding:12px 14px;background:#f7f8f3;font-weight:650}td{padding:16px 14px;border-bottom:1px solid #edf0e9}tr:last-child td{border-bottom:0}td strong{font-weight:650}td small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.clickrow{cursor:pointer}.clickrow:hover td{background:#f7f9f1}.empty{padding:35px 14px;text-align:center}.empty svg{width:32px;height:32px;color:#738473;margin-bottom:12px}.empty b{display:block;margin-bottom:8px;font-size:15px}.empty p{font-size:13px;color:var(--muted);max-width:360px;margin:0 auto 15px}.search{display:flex;align-items:center;gap:12px;margin-bottom:20px}.search input{max-width:400px}.search select{max-width:180px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}label{font-size:12px;font-weight:650}input,select,textarea{padding:12px 13px;border:1px solid #cfd8cd;border-radius:8px;background:#fff;color:var(--ink);width:100%;min-height:46px;font-size:15px}input:focus,select:focus,textarea:focus{outline:2px solid #8fb291;outline-offset:1px}textarea{min-height:84px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.field.full{grid-column:1/-1}.hint{font-size:11px;font-weight:400;color:var(--muted);line-height:1.5}.notice{padding:13px 16px;border-radius:10px;background:#f4f1df;color:#655526;font-size:12px;line-height:1.6;margin-bottom:18px}.notice.green{background:#edf4e6;color:#365c3a}.notice.red{background:#fceae5;color:#93392b}.form-error{font-size:13px;color:var(--red);margin:12px 0;line-height:1.6}.divider{height:1px;background:var(--line);margin:22px 0}.summary-row{display:flex;justify-content:space-between;gap:14px;font-size:13px;padding:10px 0;border-bottom:1px solid #edf0e9}.summary-row.total{font-size:19px;font-weight:700;border:0;padding-top:17px}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.tabs button{padding:12px 17px;border:0;border-bottom:3px solid transparent;white-space:nowrap;background:transparent;color:var(--muted);font-size:13px}.tabs button.active{border-bottom-color:var(--green);color:var(--green);font-weight:700}.job-detail-head{background:#fff;border:1px solid var(--line);padding:24px;border-radius:var(--radius);margin-bottom:22px}.job-detail-head h2{margin:14px 0 8px;font-size:27px}.job-meta{display:flex;gap:20px;flex-wrap:wrap;color:var(--muted);font-size:13px;line-height:1.8}.event-buttons{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.event-button{border:1px solid var(--line);background:#fff;border-radius:13px;min-height:100px;padding:16px;text-align:left;color:var(--ink)}.event-button svg{display:block;width:23px;height:23px;margin-bottom:12px}.event-button b{font-size:16px}.event-button.start,.event-button.resume{background:var(--green);color:white;border-color:var(--green)}.event-button:disabled{opacity:.35;cursor:not-allowed}.queue-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;margin-bottom:10px}.queue-item p{font-size:12px;margin:4px 0;color:var(--muted)}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-aside{background:#13251f;color:#fff;padding:60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-aside .brand{margin:0 0 50px}.auth-aside h1{font-size:clamp(36px,4.6vw,66px);font-weight:550;letter-spacing:-2px;max-width:500px}.auth-aside h1 em{color:var(--lime);font-style:normal}.auth-aside p{color:#c4d2c5;max-width:380px}.auth-aside .machine-art{position:relative;width:85%;right:auto;top:auto;margin:20px 0}.auth-form{padding:50px 10%;display:flex;align-items:center;justify-content:center}.auth-form>div{width:100%;max-width:450px}.auth-form h2{font-size:30px}.auth-form .btn{width:100%;margin-top:8px}.loading{min-height:100vh;display:grid;place-content:center;gap:20px;font-weight:800;letter-spacing:4px;text-align:center;color:var(--green)}.loading span{font-size:13px;font-weight:400;letter-spacing:0}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;width:min(600px,calc(100% - 24px));max-height:90dvh;overflow:auto;color:var(--ink);box-shadow:0 25px 100px #12251f33}dialog::backdrop{background:#13251f88;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{margin:0}.close{border:0;background:#f1f3eb;border-radius:50%;width:34px;height:34px;font-size:22px}.modal-photo{width:100%;max-height:65vh;object-fit:contain}.capture{padding:24px;background:#f4f6ef;border:1px dashed #b8c8b3;border-radius:12px;text-align:center}.capture input{background:white}.capture img{max-width:100%;max-height:200px;margin:15px auto 0;border-radius:10px}.capture b{display:block;margin-bottom:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#13251f;color:#fff;border-radius:10px;font-size:13px;box-shadow:0 5px 25px #0002;z-index:30;display:none;max-width:90vw}.mobile-brand{display:none}#print{display:none}.report-strip{display:flex;gap:5px;height:100px;align-items:end;padding-top:12px}.report-bar{background:#cbdcba;min-width:10px;flex:1;border-radius:5px 5px 0 0}.report-bar.today{background:var(--green)}.legend{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:12px}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.gallery img{width:100%;height:150px;object-fit:cover;border-radius:10px;cursor:pointer}.gallery small{display:block;margin:7px 0;color:var(--muted);font-size:11px}.footer-note{font-size:11px;color:var(--muted);margin-top:28px;display:flex;justify-content:space-between;gap:15px}.badge-num{margin-left:auto;background:#e9f0e1;border-radius:5px;padding:2px 5px;color:#193a29;font-size:10px}.mobile-menu{display:none}
@media(min-width:1500px){.content{padding:42px 48px}.topbar{padding:0 48px}}@media(max-width:1100px){.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:26px 13px}.brand{font-size:16px;gap:8px}.topbar{padding:0 23px}.content{padding:26px 23px}.stats{gap:10px}.stat{padding:17px}.grid-two{grid-template-columns:1fr}.machine-art{right:9%;width:230px}.status-card{min-height:235px}}@media(max-width:720px){.shell{display:block}.sidebar{display:none}.topbar{height:66px;padding:0 17px}.breadcrumb{display:none}.mobile-brand{display:flex;font-size:15px;gap:8px;align-items:center;font-weight:800}.mobile-brand .brand-mark{width:30px;height:30px;font-size:18px}.top-tools{gap:7px}.top-tools .date{display:none}.content{padding:24px 16px 110px}.page-head{align-items:flex-start;gap:10px;margin-bottom:22px}.page-head .actions .btn{padding:10px;font-size:12px}h1{font-size:30px}.page-head p{font-size:12px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:17px 14px;border-radius:13px}.stat strong{font-size:25px;margin:14px 0 8px}.stat small{font-size:10px}.stat-label{font-size:11px}.card{padding:18px;border-radius:14px}.grid-two{gap:16px;margin-bottom:16px}.machine-art{right:3%;width:155px;top:75px}.status-copy{max-width:65%}.status-copy h2{font-size:27px}.status-card{min-height:220px}.search{flex-wrap:wrap}.search input{max-width:none}.search select{max-width:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.auth{display:block}.auth-aside{padding:28px 24px 22px}.auth-aside .brand{margin-bottom:26px}.auth-aside h1{font-size:35px;letter-spacing:-1px;margin:0}.auth-aside p,.auth-aside .machine-art,.auth-aside>small{display:none}.auth-form{padding:30px 24px}.gallery{grid-template-columns:1fr 1fr}.gallery img{height:130px}.mobile-menu{position:fixed;display:flex;bottom:0;left:0;right:0;z-index:10;overflow-x:auto;justify-content:space-around;gap:1px;padding:9px 5px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #dce2db;background:#fbfcf8f5;backdrop-filter:blur(10px)}.mobile-menu button{display:grid;justify-items:center;gap:5px;border:0;background:none;color:#657263;font-size:9px;min-width:53px;padding:5px 3px}.mobile-menu button.active{color:var(--green);font-weight:800}.mobile-menu svg{width:20px;height:20px}.footer-note{font-size:10px}.job-meta{gap:7px 15px}.time-row{grid-template-columns:43px 10px minmax(0,1fr) auto;gap:9px}.time-row:before{left:56px}.btn{min-height:44px}dialog{padding:22px}.top-tools .btn{padding:7px;font-size:11px}.top-tools .pill{font-size:10px;padding:6px 8px}}
@media print{body>*:not(#print){display:none!important}#print{display:block;font:14px Arial;color:#111;padding:20px}#print h1{font-size:26px}#print table{white-space:normal}#print th,#print td{padding:12px 5px}#print .print-head{display:flex;justify-content:space-between;border-bottom:2px solid #111;margin-bottom:25px;padding-bottom:20px}#print .print-total{margin-left:auto;width:320px}#print .summary-row{border-color:#ddd}#print .notice{border:1px solid #aaa;background:none;color:#111}}

/* V1.1: visible, labelled sign-out control on desktop. */
.sidebar{overflow-y:auto}
.side-user{flex-wrap:wrap;min-width:0}
.side-user>div{min-width:0;flex:1;overflow-wrap:anywhere}
.logout{display:flex;align-items:center;justify-content:center;gap:9px;flex:0 0 100%;width:100%;margin:10px 0 0;padding:11px 14px;border:1px solid #698070;border-radius:9px;font-size:13px;color:#fff;min-height:44px}
.logout svg{display:block;width:19px;height:19px;flex:0 0 19px}
.logout::after{content:"Sign out"}
.logout:hover{background:#294638}

/* V1.2: sign-out is also visible in the top toolbar. */
.top-signout{white-space:nowrap;color:#fff;background:#173e30;border-color:#173e30;flex-shrink:0}
.top-signout svg{width:17px;height:17px;flex:0 0 17px}
@media(max-width:720px){.topbar{flex-wrap:wrap;height:auto;min-height:66px;padding:12px 17px}.top-tools{flex-wrap:wrap;justify-content:flex-end}.top-signout{min-width:88px}}
