:root{--staff-safe-bottom:env(safe-area-inset-bottom,0px)}
.staff-body{min-height:100vh;background:#f3f7f3;color:var(--ink)}
.staff-login{min-height:100vh;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at 80% 10%,rgba(130,194,112,.28),transparent 32%),linear-gradient(150deg,#0f3228,#215e46)}
.staff-login-card{width:min(480px,100%);padding:30px 22px;border-radius:26px;background:#fff;box-shadow:0 25px 80px rgba(0,0,0,.28)}
.staff-brand{display:flex;align-items:center;gap:11px}.staff-brand>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e8f4e9;font-size:25px}.staff-brand strong,.staff-brand small{display:block}.staff-brand small{color:var(--muted)}
.staff-login h1{margin:.35rem 0 1rem;font-size:clamp(28px,8vw,40px)}.staff-form{display:grid;gap:16px}.staff-form label{display:grid;gap:6px;font-weight:800}.staff-form input,.staff-date-picker input,.staff-dialog input,.staff-dialog textarea{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}.staff-form .btn{width:100%;justify-content:center}.staff-code-row{display:grid;grid-template-columns:1fr auto;gap:8px}.staff-code-row button{padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--red);font-weight:900}.staff-login-note{text-align:center;color:var(--muted);font-size:13px}
.staff-header{position:sticky;z-index:20;top:0;display:flex;align-items:center;gap:12px;min-height:72px;padding:10px 14px;border-bottom:1px solid #dbe5dc;background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}.staff-brand--small>span{width:42px;height:42px}.staff-header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.staff-network{padding:5px 8px;border-radius:999px;background:#edf2ed;color:var(--muted);font-size:11px;font-weight:900}.staff-network.is-online{background:#e5f5e8;color:#22653a}.staff-network.is-offline{background:#fff0df;color:#92520e}.staff-icon-button{min-height:40px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800}
.staff-main{width:min(760px,100%);margin:auto;padding:22px 14px calc(92px + var(--staff-safe-bottom))}.staff-today-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:16px}.staff-today-head h1{margin:0;font-size:34px}.staff-today-head p:not(.eyebrow){margin:.3rem 0 0;color:var(--muted)}.staff-date-picker{display:grid;gap:4px;color:var(--muted);font-size:11px;font-weight:800}.staff-date-picker input{min-height:42px;padding:7px}
.staff-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.staff-stat{padding:12px 8px;border:1px solid #dae5dc;border-radius:14px;background:#fff;text-align:center}.staff-stat small{display:block;color:var(--muted);font-size:11px}.staff-stat strong{display:block;margin-top:3px;color:var(--green-850);font-size:25px}
.staff-sync-panel{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:12px 14px;border:1px solid #dfd8b9;border-radius:14px;background:#fffbee}.staff-sync-panel div{display:grid}.staff-sync-panel small{color:var(--muted)}.staff-sync-panel .btn{margin-left:auto}.staff-sync-panel.is-empty{border-color:#dbe5dc;background:#fff}
.staff-route-list{display:grid;gap:12px}.staff-visit-card{overflow:hidden;border:1px solid #d8e3da;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(20,55,40,.08)}.staff-visit-card__top{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:14px}.staff-route-number{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--green-850);color:#fff;font-size:20px;font-weight:900}.staff-visit-card h2{margin:0;font-size:19px}.staff-visit-card p{margin:.2rem 0 0;color:var(--muted);font-size:13px}.staff-status{padding:5px 8px;border-radius:999px;background:#eaf3ec;color:#276745;font-size:11px;font-weight:900}.staff-status[data-status="working"]{background:#dcf5e2;color:#176133}.staff-status[data-status="arrived"]{background:#e4f2ff;color:#185c8a}.staff-status[data-status="unavailable"],.staff-status[data-status="revisit_required"]{background:#fff0dc;color:#95550c}.staff-status[data-status="completed"]{background:#edf0ed;color:#59645d}
.staff-visit-card__body{padding:0 14px 14px}.staff-visit-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}.staff-visit-meta div{padding:9px;border-radius:10px;background:#f6f9f6}.staff-visit-meta small{display:block;color:var(--muted);font-size:10px}.staff-visit-meta strong{display:block;margin-top:2px;font-size:13px}.staff-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.staff-card-actions button,.staff-card-actions a{min-height:46px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--green-850);font-weight:900;text-decoration:none}.staff-card-actions .staff-primary-action{grid-column:1/-1;background:var(--green-850);border-color:var(--green-850);color:#fff}.staff-empty{padding:42px 18px;border:1px dashed #ccd9cf;border-radius:18px;background:#fff;color:var(--muted);text-align:center}
.staff-bottom-nav{position:fixed;z-index:22;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(3,1fr);padding:7px 10px calc(7px + var(--staff-safe-bottom));border-top:1px solid #d9e3db;background:rgba(255,255,255,.97);backdrop-filter:blur(14px)}.staff-bottom-nav button{display:grid;place-items:center;gap:2px;min-height:50px;border:0;background:transparent;color:var(--green-850);font-weight:900}.staff-bottom-nav span{font-size:18px}
.staff-dialog{width:min(720px,calc(100% - 12px));max-height:96vh;padding:0;border:0;border-radius:22px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.35)}.staff-dialog::backdrop{background:rgba(7,27,19,.62)}.staff-dialog-shell{max-height:96vh;display:flex;flex-direction:column}.staff-dialog header{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid var(--line)}.staff-dialog h2{margin:0}.staff-dialog header button{width:42px;height:42px;border:0;border-radius:50%;background:#eef2ee;font-size:25px}.staff-dialog-body{overflow:auto;padding:16px 16px 30px}.staff-detail-hero{padding:16px;border-radius:16px;background:linear-gradient(135deg,#123d2f,#28684e);color:#fff}.staff-detail-hero h3{margin:0;font-size:24px}.staff-detail-hero p{margin:.35rem 0 0;color:#d9eade}.staff-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.staff-detail-grid div{padding:11px;border:1px solid var(--line);border-radius:12px;background:#f9fbf9}.staff-detail-grid small{display:block;color:var(--muted);font-size:10px}.staff-detail-grid strong{display:block;margin-top:3px}.staff-note{margin-top:10px;padding:12px;border-radius:12px;background:#fff8e8;border:1px solid #ead3a0}.staff-work-form{display:grid;gap:10px;margin-top:14px}.staff-work-form label{display:grid;gap:5px;font-weight:800}.staff-work-form textarea{min-height:90px;resize:vertical}.staff-action-stack{display:grid;gap:8px;margin-top:14px}.staff-action-stack button{min-height:52px;width:100%;justify-content:center}.staff-danger{border-color:#e5b4b4!important;color:#a42e2e!important;background:#fff6f6!important}.staff-offline-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff0dc;color:#95550c;font-size:11px;font-weight:900}
@media(max-width:560px){.staff-today-head{align-items:flex-start;flex-direction:column}.staff-date-picker{width:100%}.staff-stats{grid-template-columns:repeat(2,1fr)}.staff-detail-grid{grid-template-columns:1fr}.staff-visit-meta{grid-template-columns:1fr}.staff-sync-panel{align-items:flex-start;flex-direction:column}.staff-sync-panel .btn{width:100%;margin:0;justify-content:center}}

/* GREEN-8 maintenance report */
.staff-work-section{padding:18px 0;border-top:1px solid rgba(18,56,45,.12)}
.staff-work-section:first-child{border-top:0;padding-top:0}
.staff-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.staff-section-head small{display:block;font-size:.7rem;letter-spacing:.12em;color:#5e7f70;font-weight:800}
.staff-section-head h3{margin:2px 0 0;font-size:1.05rem;color:#12382d}
.staff-work-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.staff-work-check{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #d7e5dc;border-radius:12px;background:#fff;font-weight:700}
.staff-work-check input{width:20px;height:20px;accent-color:#1d6a4c}
.staff-plant-list{display:grid;gap:12px}
.staff-plant-card{border:1px solid #d7e5dc;border-radius:16px;padding:14px;background:#fbfdfb;display:grid;gap:10px}
.staff-plant-card__head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.staff-plant-card__head strong,.staff-plant-card__head small{display:block}
.staff-plant-card__head small{color:#6d8177;margin-top:3px}
.staff-condition-dot{width:14px;height:14px;border-radius:50%;background:#4d9d65;box-shadow:0 0 0 4px rgba(77,157,101,.14)}
.staff-condition-dot[data-condition="observe"],.staff-condition-dot[data-condition="replacement_candidate"]{background:#d59a25;box-shadow:0 0 0 4px rgba(213,154,37,.15)}
.staff-condition-dot[data-condition="replacement_required"],.staff-condition-dot[data-condition="pest_found"],.staff-condition-dot[data-condition="disease_suspected"],.staff-condition-dot[data-condition="damaged"]{background:#c7483c;box-shadow:0 0 0 4px rgba(199,72,60,.14)}
.staff-check-line{display:flex!important;align-items:center;gap:8px;font-weight:700}
.staff-check-line input{width:20px;height:20px;accent-color:#1d6a4c}
.staff-photo-requirements{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.staff-photo-requirements>div{padding:10px;border-radius:12px;background:#eff6f1;display:grid;gap:3px;font-size:.78rem}
.staff-photo-requirements strong:last-child{font-size:1.1rem;color:#12382d}
.staff-required{color:#b53c32;font-size:.72rem}
.staff-photo-upload{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px;background:#f6faf7;border:1px solid #d7e5dc;border-radius:14px}
.staff-photo-upload .full{grid-column:1/-1}
.staff-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.staff-photo-card{margin:0;border:1px solid #d7e5dc;border-radius:14px;overflow:hidden;background:#fff}
.staff-photo-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.staff-photo-card figcaption{padding:9px;display:grid;gap:3px;font-size:.76rem}
.staff-photo-card figcaption small{color:#657b70}
.staff-photo-card button{justify-self:start;border:0;background:none;color:#b53c32;padding:3px 0;font-weight:800}
@media(max-width:480px){.staff-work-check-grid{grid-template-columns:1fr}.staff-photo-requirements{grid-template-columns:1fr}.staff-photo-upload{grid-template-columns:1fr}.staff-photo-upload .full{grid-column:auto}}
