:root{--ink:#17211e;--muted:#6d7874;--line:#dfe6e2;--paper:#f4f6f3;--card:#fff;--green:#285e4b;--lime:#d9ee78;--danger:#bd4b3d}*{box-sizing:border-box}body{margin:0;font-family:Inter,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}button,input{font:inherit}.hidden{display:none!important}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.2em;color:var(--green);margin:0 0 10px}.muted{color:var(--muted);line-height:1.6}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,520px) 1fr;background:#eef1ed}.login-card{background:#fff;padding:9vh 10%;display:flex;flex-direction:column;justify-content:center}.brand-mark,.logo span{display:grid;place-items:center;background:var(--ink);color:var(--lime);font-weight:900}.brand-mark{width:48px;height:48px;border-radius:14px;margin-bottom:40px}.login-card h1{font-size:clamp(34px,4vw,58px);line-height:1.02;letter-spacing:-.045em;margin:0 0 22px}.login-card form{margin-top:34px}.login-card label{display:block;font-size:12px;font-weight:700;margin:18px 0}.login-card input{display:block;width:100%;border:0;border-bottom:1px solid #aeb8b3;padding:12px 2px;outline:none}.login-card input:focus{border-color:var(--green)}.login-card button{width:100%;border:0;background:var(--green);color:#fff;padding:16px 20px;border-radius:8px;margin-top:18px;font-weight:700;display:flex;justify-content:space-between}.error{color:var(--danger);min-height:20px;font-size:13px}.login-visual{position:relative;overflow:hidden;background:#172720}.orbit{position:absolute;border:1px solid #547064;border-radius:50%}.orbit-a{width:70vw;height:70vw;left:10%;top:-10%}.orbit-b{width:45vw;height:45vw;left:25%;top:5%;border-color:#d9ee78}.visual-copy{position:absolute;left:9%;bottom:9%;color:white}.visual-copy span{color:var(--lime);font-size:72px;font-weight:200}.visual-copy p{font-size:24px;line-height:1.4}.app-shell{min-height:100vh;display:grid;grid-template-columns:238px 1fr}aside{background:#101b18;color:#dbe3df;padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.logo{display:flex;align-items:center;gap:11px;padding:0 10px 28px;font-size:18px}.logo span{width:32px;height:32px;border-radius:9px;background:var(--lime);color:var(--ink)}nav{overflow:auto}nav p{font-size:9px;letter-spacing:.18em;color:#77847f;margin:24px 12px 8px}nav button,.logout{width:100%;border:0;background:transparent;color:#b9c5c0;text-align:left;padding:11px 13px;border-radius:7px;cursor:pointer}nav button i{font-style:normal;display:inline-block;width:27px;color:#84958e}nav button:hover,nav button.active{background:#22332d;color:#fff}.logout{margin-top:auto;border:1px solid #31453d;text-align:center}main{min-width:0}header{height:92px;background:#fff;border-bottom:1px solid var(--line);padding:20px 34px;display:flex;align-items:center;justify-content:space-between}header h2{margin:0;font-size:25px;letter-spacing:-.03em}.user{display:flex;align-items:center;gap:10px}.user>span{width:39px;height:39px;border-radius:50%;background:#e3ecc0;display:grid;place-items:center;font-weight:800}.user small{display:block;color:var(--muted);margin-top:3px}.content{padding:30px 34px}.hero{display:flex;justify-content:space-between;align-items:end;margin-bottom:26px}.hero h3{font-size:32px;letter-spacing:-.04em;margin:0}.hero p{margin:7px 0 0;color:var(--muted)}.status-pill{background:#e1efda;color:#285e4b;padding:8px 12px;border-radius:30px;font-size:12px;font-weight:700}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.metric{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px}.metric span{font-size:12px;color:var(--muted)}.metric b{display:block;font-size:34px;margin-top:14px}.metric em{font-style:normal;color:var(--green);font-size:11px}.grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px;margin-top:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;overflow:auto}.panel h4{margin:0 0 18px;font-size:15px}.bar-row{display:grid;grid-template-columns:120px 1fr 35px;gap:10px;align-items:center;margin:14px 0;font-size:12px}.bar{height:8px;background:#e8ece9;border-radius:5px;overflow:hidden}.bar i{display:block;height:100%;background:var(--green);border-radius:5px}.issue{padding:12px 0;border-top:1px solid var(--line)}.issue:first-of-type{border:0}.issue b{display:block;font-size:13px}.issue small{color:var(--muted)}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:var(--muted);font-size:10px;letter-spacing:.08em;padding:10px;border-bottom:1px solid var(--line)}td{padding:13px 10px;border-bottom:1px solid #edf0ee;max-width:320px}.empty{padding:55px;text-align:center;color:var(--muted)}.loader{margin:15vh auto;width:34px;height:34px;border:3px solid #dde4e0;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}.menu{display:none;border:0;background:none;font-size:22px}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.login-shell{grid-template-columns:1fr}.login-visual{display:none}.app-shell{grid-template-columns:1fr}aside{position:fixed;z-index:10;transform:translateX(-100%);transition:.2s;width:238px}aside.open{transform:none}.menu{display:block}header{padding:18px}.content{padding:20px}.metrics{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}}@media(max-width:520px){.metrics{grid-template-columns:1fr}.user div{display:none}.login-card{padding:35px 24px}.hero{align-items:start;flex-direction:column;gap:15px}}
.dashboard-metrics .metric{padding:14px 16px;min-height:92px;display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-content:center;align-items:end}
.dashboard-metrics .metric span{grid-column:1/-1;margin-bottom:7px}
.dashboard-metrics .metric b{font-size:27px;line-height:1;margin:0}
.dashboard-metrics .metric em{line-height:1.2;align-self:end}
.dashboard-inspections{margin-top:24px}
.dashboard-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.dashboard-section-head h4,.dashboard-inspections>h4{margin:0;font-size:18px}
@media(max-width:520px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-metrics .metric{grid-template-columns:1fr}.dashboard-metrics .metric em{margin-top:5px}}
.dashboard-summary{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.75fr) minmax(0,1fr);gap:16px;align-items:stretch}
.dashboard-summary .panel{min-width:0}
.dashboard-stat-row{display:grid;grid-template-columns:minmax(115px,1fr) auto minmax(120px,1fr);align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:13px}
.dashboard-stat-row:first-of-type{border-top:0}
.dashboard-stat-row strong{font-size:20px;line-height:1}
.dashboard-stat-row small{color:var(--muted);text-align:right}
.dashboard-summary .bar-row{grid-template-columns:minmax(75px,100px) minmax(30px,1fr) 25px}
@media(max-width:1100px){.dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats{grid-column:1/-1}}
@media(max-width:650px){.dashboard-summary{grid-template-columns:1fr}.dashboard-stats{grid-column:auto}.dashboard-stat-row{grid-template-columns:minmax(0,1fr) auto}.dashboard-stat-row small{grid-column:1/-1;text-align:left;margin-top:-6px}}
.dashboard-summary .panel{padding:12px 16px}
.dashboard-summary .panel h4{margin-bottom:7px}
.dashboard-summary .dashboard-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;align-content:start}
.dashboard-summary .dashboard-stats h4{grid-column:1/-1}
.dashboard-summary .dashboard-stat-row{grid-template-columns:minmax(0,1fr) auto;column-gap:6px;row-gap:0;padding:5px 0}
.dashboard-summary .dashboard-stat-row strong{font-size:17px}
.dashboard-summary .dashboard-stat-row small{grid-column:1/-1;text-align:left;margin:0;font-size:11px}
.dashboard-summary .bar-row{margin:7px 0;gap:7px}
.dashboard-summary .issue{padding:6px 0}
@media(max-width:650px){.dashboard-summary .dashboard-stats{grid-template-columns:1fr 1fr}}
.result-operation{border:1px solid #dfe5e1;border-radius:14px;padding:16px;margin:12px 0;background:#fff}.result-operation-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.result-operation-head span{color:#267143;font-size:13px}.result-control{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-top:1px solid #edf0ee}.result-control>div:first-child{display:flex;flex-direction:column;gap:4px}.result-control small{color:#78827e}.result-media{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.media-preview-overlay{position:fixed;inset:0;background:rgba(4,16,12,.72);z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px}.media-preview-dialog{background:#fff;border-radius:18px;padding:18px;max-width:min(900px,92vw);max-height:90vh;min-width:min(520px,92vw);box-shadow:0 24px 80px rgba(0,0,0,.4)}.media-preview-dialog img,.media-preview-dialog video{display:block;max-width:100%;max-height:72vh;margin:16px auto;border-radius:10px}.media-preview-dialog audio{display:block;width:100%;margin-top:20px}@media(max-width:700px){.result-control{align-items:flex-start;flex-direction:column}.result-media{justify-content:flex-start}.media-preview-dialog{min-width:92vw}}
.demo-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;background:#fff2cc;color:#7a5200;font-size:11px;font-weight:800;letter-spacing:.06em;white-space:nowrap}
td code{font-size:12px;white-space:nowrap;color:#315149}
.instruction-disclosure{margin-top:14px;border:1px solid #d9e1dd;border-radius:12px;background:#f7faf8;overflow:hidden}
.instruction-disclosure summary{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;list-style:none;color:#17352d;user-select:none}
.instruction-disclosure summary::-webkit-details-marker{display:none}
.instruction-disclosure summary::after{content:'';display:block;width:9px;height:9px;margin-left:auto;margin-right:4px;border-right:2px solid #49635a;border-bottom:2px solid #49635a;transform:rotate(45deg) translateY(-2px);transform-origin:center;transition:transform .18s ease;flex:0 0 auto}
.instruction-disclosure[open] summary::after{transform:rotate(225deg) translate(-2px,-2px)}
.instruction-disclosure summary small{color:#78857f;font-weight:400}
.instruction-summary-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:26px;border-radius:7px;background:#e5efd0;color:#315717;font-size:10px;font-weight:900}
.instruction-count{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:999px;background:#dfe9e4;color:#315149;font-size:12px;font-weight:800}
.instruction-document-list{display:grid;gap:8px;padding:0 14px 14px}
.instruction-document{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1px solid #dbe3df;border-radius:10px;background:#fff;color:#10231e;text-align:left;cursor:pointer}
.instruction-document:hover{border-color:#7e9a90;background:#f9fcfa}
.instruction-document span:last-child{display:flex;flex-direction:column;gap:3px}
.instruction-document small{color:#78857f;font-weight:400}
.carousel-dialog{width:min(940px,94vw)}
.carousel-stage{display:flex;align-items:center;justify-content:center;min-height:240px;max-height:70vh;margin:14px 0;background:#101714;border-radius:12px;overflow:hidden}
.carousel-stage img,.carousel-stage video{display:block;max-width:100%;max-height:68vh;margin:0;border-radius:0}
.carousel-stage audio{width:min(620px,86%);margin:40px}
.carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}
.carousel-counter{font-weight:800;color:#4b5c55;white-space:nowrap}
@media(max-width:600px){.carousel-controls button{font-size:12px;padding:8px}.carousel-stage{min-height:180px}}
.result-tabs{display:flex;gap:6px;margin:0 0 18px;padding:5px;width:max-content;max-width:100%;border:1px solid var(--line);border-radius:12px;background:#eaf0ed}
.result-tab{border:0;border-radius:8px;padding:10px 22px;background:transparent;color:#51615b;font-weight:800;cursor:pointer}
.result-tab.active{background:#fff;color:#17352d;box-shadow:0 2px 8px rgba(16,35,29,.1)}
.result-tab span{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;margin-left:5px;border-radius:999px;background:#dce8e2;font-size:11px}
.map-panel{padding:12px}.map-panel #inspection-map{height:clamp(440px,68vh,760px);border-radius:10px;overflow:hidden}
.route-arrow{background:transparent;border:0}.route-arrow span{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#d9ee78;color:#17352d;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.28);font-size:18px;font-weight:900}
.org-structure{overflow:visible}.org-structure h4{margin-bottom:16px}.org-node{margin:8px 0;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.org-node>summary{display:flex;align-items:center;gap:16px;padding:12px 14px;cursor:pointer;list-style:none}.org-node>summary::-webkit-details-marker{display:none}.org-node>summary::before{content:'▸';color:var(--green);font-size:18px;line-height:1}.org-node[open]>summary::before{transform:rotate(90deg)}
.org-node-caption{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.org-node-caption b{font-size:14px}.org-node-caption small,.org-leaf,.org-type-list small{color:var(--muted);font-size:12px}.org-node-actions{display:flex;flex-wrap:wrap;gap:6px}.org-node-actions button{padding:7px 10px;font-size:12px}.org-children{margin:0 14px 12px 28px;padding-left:14px;border-left:2px solid var(--line)}.org-leaf{margin:8px 0;padding:8px}
.org-types{margin-top:16px}.org-types>summary{cursor:pointer;font-weight:800}.org-type-list{margin-top:14px}.org-type-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line)}.org-type-list small{margin-left:10px}
.org-switcher{position:relative;display:grid;gap:4px;min-width:230px;max-width:320px;margin-left:auto;padding:8px 34px 8px 14px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);cursor:pointer}
.org-switcher>span{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.org-switcher strong{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:800}
.org-switcher select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.org-switcher:focus-within{outline:2px solid var(--green);outline-offset:2px}
.org-switcher::after{content:'';position:absolute;right:14px;top:50%;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-65%) rotate(45deg);pointer-events:none}
header>.user{margin-left:20px}
@media(max-width:700px){.org-switcher{min-width:120px;max-width:175px;padding:7px 24px 7px 9px}.org-switcher>span{font-size:9px}header>.user{margin-left:10px}}
@media(max-width:650px){.org-node>summary{align-items:flex-start;flex-wrap:wrap}.org-node-actions{margin-left:20px}.org-children{margin-left:16px;padding-left:8px}}
.employee-ad-picker{display:grid;gap:10px}.employee-ad-results{display:grid;gap:6px;max-height:240px;overflow:auto}.employee-ad-result{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);text-align:left;cursor:pointer}.employee-ad-result.selected{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.employee-ad-result small{color:var(--muted)}
