:root{--ink:#173b32;--green:#153e35;--accent:#bcdf77;--paper:#f5f6f1;--line:#dce3d9;--muted:#69766c;--danger:#ab3e34;--amber:#8d641d;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #4e8ca5;outline-offset:3px}input:focus,textarea:focus{outline:2px solid #82a489;outline-offset:1px}input,textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:16px}input:disabled{background:#f0f2ec;color:#657168}textarea{resize:vertical}label{display:block;font-size:13px;font-weight:650;letter-spacing:.01em;margin-bottom:18px}label input,label textarea{margin-top:8px}h1,h2,h3,p{margin-top:0}h1{font-size:38px;letter-spacing:-1.5px;line-height:1.13;margin-bottom:10px}h2{font-size:19px;letter-spacing:-.4px;margin-bottom:16px}h3{font-size:15px}p{line-height:1.6}small{font-size:10px}[hidden]{display:none!important}.topbar{height:84px;background:var(--green);color:#fff;display:flex;align-items:center;padding:0 max(24px,calc((100vw - 1180px)/2));gap:22px}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;letter-spacing:2px;font-size:17px}.brand small{display:block;letter-spacing:2.5px;font-weight:500;margin-top:3px}.mark{width:39px;height:39px;border:1px solid #a6bbad;border-radius:8px;display:grid;place-items:center;font-size:23px;color:var(--accent);font-style:italic}.pilot{font-size:10px;letter-spacing:1px;border:1px solid #526d5c;border-radius:99px;padding:6px 10px;color:#e2edd9}.connection{margin-left:auto;font-size:12px;color:#d4e2d1;white-space:nowrap}.connection:before{content:"";display:inline-block;width:7px;height:7px;border-radius:100%;background:var(--accent);margin-right:7px}.connection.offline:before{background:#e5ba69}.shell{max-width:1180px;margin:0 auto;padding:34px 24px 60px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#68806a;margin-bottom:14px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:27px;margin-bottom:22px;box-shadow:0 3px 10px #173b3203}.login{max-width:460px;margin:36px auto}.login h1{font-size:42px}.login form{margin-top:28px}.muted{color:var(--muted);font-size:14px}.tiny{color:var(--muted);font-size:12px;line-height:1.6}.primary,.secondary{border-radius:9px;font-weight:650;padding:12px 18px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:16px;text-decoration:none}.primary{background:var(--green);color:#fff}.primary:hover{background:#255847}.primary span{margin-left:auto}.secondary{background:#fff;color:var(--green);border-color:var(--line)}.secondary:hover{background:#f2f5ed}.text-button{border:0;background:transparent;color:#477154;font-size:12px;padding:8px}.login .primary,.count-form>.primary{width:100%;min-height:54px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.page-heading .eyebrow{margin-bottom:7px}.page-heading h1{font-size:34px}.sync-strip{display:flex;align-items:center;gap:20px;font-size:12px;padding:12px 16px;border:1px solid #d9e6ce;background:#ecf3e5;border-radius:9px;margin:10px 0 22px;flex-wrap:wrap}.sync-strip.has-pending{background:#fff7e6;border-color:#e8d6b2}.sync-strip strong{font-size:16px}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:26px}.tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:12px 0;color:var(--muted);font-size:14px;font-weight:600}.tabs .active{color:var(--ink);border-bottom-color:var(--green)}.count-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:24px}.section-title{display:flex;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.section-title h2{margin:0}.section-title>button,.section-title>.muted{margin-left:auto}.step{background:#edf3e5;color:#4f7153;border-radius:8px;font-size:11px;font-weight:700;padding:8px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:15px}.item-results{max-height:220px;overflow:auto;margin-top:-12px;margin-bottom:14px}.item-option{border:0;border-bottom:1px solid #edf0e8;background:#fff;width:100%;display:flex;justify-content:space-between;gap:10px;text-align:left;padding:12px;font-size:14px}.item-option:hover{background:#f2f6ed}.item-option small{font-size:11px;color:var(--muted)}.selected-item{border:1px dashed #c5d5bf;border-radius:9px;padding:16px;background:#f6f9f2;color:#587151;margin-bottom:28px;font-size:14px}.selected-item strong{display:block;font-size:20px;letter-spacing:-.5px;color:var(--ink);margin-bottom:4px}.quantity-heading{margin-bottom:8px}.quantity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:20px 0 8px}.quantity-grid label{background:#f6f7f3;border:1px solid #e6eade;border-radius:10px;padding:12px;color:#62735d;font-size:12px}.quantity-grid label:last-child{background:#f1f5e5;border-color:#d3dfbf}.quantity-grid input{border:0;background:#fff;font-size:24px;font-weight:600;padding:9px;text-align:center;height:50px;font-variant-numeric:tabular-nums}.count-total{display:flex;justify-content:space-between;background:#f3f6ed;padding:16px;border-radius:9px;margin:20px 0;font-size:12px;color:#687961}.count-total span{display:flex;align-items:center;gap:18px}.count-total strong{font-size:23px;color:var(--ink);font-variant-numeric:tabular-nums}.field-guide{align-self:start;background:#f0f3e9}.field-guide h2{font-size:25px;line-height:1.2;margin:20px 0}.field-guide .secondary{width:100%;font-size:12px}.field-guide>.text-button{width:100%}.guide-line{height:1px;background:#d5dfce;margin:25px 0}.session-big{font-size:48px;letter-spacing:-2px;color:#234f3b;line-height:1.2}.session-big small{font-size:12px;letter-spacing:0;color:var(--muted);margin-left:8px}.notice{padding:14px;border-radius:9px;font-size:13px;margin:12px 0}.warning{background:#fff0d4;color:#815a23}.record,.task-card{padding:18px 0;border-bottom:1px solid var(--line)}.record:last-child,.task-card:last-child{border-bottom:0}.record-head{display:flex;gap:12px;justify-content:space-between;align-items:start}.record-head strong{font-size:17px}.record-meta{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.7}.badge{display:inline-block;font-size:10px;font-weight:650;padding:4px 8px;border-radius:5px;background:#eaf1e5;color:#487143}.badge.pending{background:#fff0d4;color:#85601c}.badge.conflict{background:#ffe6e1;color:#a13f31}.record-actions{display:flex;gap:12px;justify-content:flex-end}.empty{padding:36px 18px;text-align:center;color:var(--muted);font-size:14px}.empty strong{display:block;font-size:18px;color:var(--ink);margin-bottom:8px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.metric{background:white;border:1px solid var(--line);padding:20px;border-radius:12px;font-size:12px;color:var(--muted)}.metric strong{display:block;color:var(--ink);font-size:30px;margin-top:10px}.admin-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(250px,1fr);gap:22px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th,td{text-align:left;padding:14px 9px;border-bottom:1px solid #e7ebdf}th{color:var(--muted);font-size:10px;letter-spacing:.03em}td.number,th.number{text-align:right;font-variant-numeric:tabular-nums}.difference{color:var(--danger);font-weight:700}table .text-button{min-height:30px;padding:0 5px}#summary-search{margin-bottom:12px}footer{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding:0 4px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:15px 22px;border-radius:10px;background:#163d34;color:#fff;box-shadow:0 5px 24px #0003;z-index:100;max-width:90vw;min-width:240px;text-align:center;font-size:14px}dialog{max-width:600px;width:calc(100% - 30px);border:1px solid var(--line);border-radius:16px;padding:26px;color:var(--ink)}dialog::backdrop{background:#0b221c88}.dialog-buttons{display:flex;gap:10px;flex-wrap:wrap}#conflict-details{overflow:auto;margin-bottom:20px}.task-card textarea{margin:12px 0}.task-card .secondary{font-size:12px}.task-card .record-actions{justify-content:flex-start;flex-wrap:wrap}
@media(max-width:760px){.topbar{height:70px;padding:0 18px;gap:12px}.brand{font-size:14px}.brand small{font-size:8px}.pilot{font-size:8px;padding:5px 7px}.connection{font-size:10px}.shell{padding:23px 16px 36px}.page-heading h1{font-size:28px}.page-heading .secondary{font-size:12px;padding:10px 12px}.page-heading .muted{font-size:12px}.count-layout,.admin-grid{grid-template-columns:1fr;gap:0}.card{padding:20px;border-radius:12px}.count-form{padding:19px}.section-title{gap:9px}.section-title h2{font-size:17px}.quantity-grid{gap:9px}.quantity-grid label{padding:9px}.quantity-grid input{font-size:22px}.count-total span{gap:10px}.tabs{gap:24px}.metric-grid{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:16px}.login{margin:14px auto}.login h1{font-size:37px}.field-guide h2{font-size:22px}.sync-strip{gap:13px;font-size:11px}.sync-strip strong{font-size:14px}.two-cols{gap:10px}label{font-size:12px}.record-head strong{font-size:15px}.brand .mark{width:33px;height:33px}}
#language{background:#274f43;color:#fff;border:1px solid #60776b;border-radius:6px;padding:7px 5px;font-size:11px;max-width:85px;margin-left:auto;min-height:36px}.connection{margin-left:0}@media(max-width:420px){.topbar{gap:9px;padding:0 12px}.pilot{letter-spacing:0}.connection{font-size:9px}#language{max-width:68px;font-size:10px}}
#summary{max-height:620px;overflow:auto;margin-top:8px}#summary thead{position:sticky;top:0;background:#fff;z-index:1}#audit{max-height:300px;overflow:auto}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,color .15s}}
.check-label{display:flex;align-items:center;gap:10px;font-weight:500;line-height:1.6}.check-label input{width:20px;height:20px;flex:none;margin:0;accent-color:var(--green)}.rm-settings{align-items:center}.rm-ack{margin-top:24px}.rm-table{max-height:520px;overflow:auto}.rm-table thead{position:sticky;top:0;background:#fff;z-index:1}#rm-file-info{overflow-wrap:anywhere}#rm-file-info p{margin:10px 0}#rm-error{overflow-wrap:anywhere}#baseline-status{white-space:pre-line;overflow-wrap:anywhere}#open-rm{margin:0 0 20px;width:100%}.rm-errors{max-height:240px;overflow:auto;color:var(--danger)}.tabs{overflow-x:auto}.tabs button{white-space:nowrap;flex:none}
@media(max-width:600px){#rm-view .two-cols{grid-template-columns:1fr}}
select{font:inherit;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:10px;background:#fff;color:var(--ink);max-width:100%}select:focus-visible{outline:2px solid #82a489;outline-offset:1px}.filter-bar{display:flex;gap:12px;align-items:center;margin-bottom:10px}.filter-bar input{min-width:0;flex:1}.filter-bar select{max-width:45%}.filter-bar button{white-space:nowrap}#summary-search{margin-bottom:0}.progress-card .section-title .tiny{margin-left:auto;margin-bottom:0}#area-progress{max-height:500px;overflow:auto}@media(max-width:760px){.filter-bar{flex-wrap:wrap}.filter-bar input{flex-basis:100%}.filter-bar select{flex:1;max-width:100%}.admin-grid>*,.progress-card{min-width:0}}
