:root{--bg:#f4f5f7;--surface:#fff;--line:#e2e5ea;--text:#141821;--text-2:#5b6472;--accent:#1f5fd6;--accent-soft:#e6eefc;--danger:#c0322b;--warn:#9a5b00;--warn-soft:#fff3dc;--radius:12px;--font:"Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0c1017;--surface:#151a23;--line:#262d3a;--text:#e8ebf0;--text-2:#98a2b3;--accent:#6ea0ff;--accent-soft:#1b2942;--danger:#ff7a70;--warn:#f0b860;--warn-soft:#3a2c12}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font:14px/1.5 var(--font);margin:0}h1{margin:0;font-size:24px;font-weight:650}h2{margin:0 0 4px;font-size:15px;font-weight:600}p{color:var(--text-2);margin:0}a{color:inherit;text-decoration:none}.shell{grid-template-columns:200px 1fr;min-height:100vh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;gap:2px;padding:16px 10px;display:flex}.brand{padding:4px 10px 16px;font-size:18px;font-weight:700}.nav-item{border-radius:8px;padding:8px 10px}.nav-item:hover{background:var(--bg)}.nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav-quiet{color:var(--text-2)}.nav-foot{margin-top:auto}.page{max-width:1200px;padding:28px 32px}.page-head{margin-bottom:20px}.page-head p{max-width:70ch;margin-top:6px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}.areas{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.areas p{font-size:13px}.badge{background:var(--bg);color:var(--text-2);border-radius:999px;margin-top:10px;padding:1px 8px;font-size:12px;display:inline-block}.tabs{gap:4px;margin-bottom:12px;display:flex}.tab{color:var(--text-2);border-radius:999px;padding:6px 14px}.tab.active{background:var(--accent);color:#fff;font-weight:600}.board{grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px;display:grid}.count{color:var(--text);font-size:28px;font-weight:650}.notice{margin:0 0 16px}.handheld{flex-direction:column;gap:12px;max-width:480px;min-height:100vh;margin:0 auto;padding:24px 16px;display:flex}.back{color:var(--accent);font-weight:600}.big-button{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);width:100%;color:var(--text);font:600 17px var(--font);text-align:center;padding:18px;display:block}.big-button:disabled{color:var(--text-2)}@media (width<=720px){.shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line);flex-direction:row;overflow-x:auto}.brand{padding:8px 10px}.nav-item{white-space:nowrap}.nav-block{flex-direction:row}.nav-child{padding-left:10px}.nav-gap{display:none}.nav-foot{margin-top:0}.page{padding:16px}.board{grid-template-columns:1fr}}input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:8px;min-width:0;padding:7px 10px}input:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}button{font:inherit;cursor:pointer;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:8px;padding:7px 14px}button:disabled{cursor:default;opacity:.55}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}button.link{color:var(--accent);background:0 0;border:0;padding:0;font-weight:600}button.tab{background:0 0;border:0}button.tab.active{background:var(--accent);color:#fff}label{color:var(--text-2);flex-direction:column;gap:4px;font-size:13px;display:flex}label.check{color:var(--text);flex-direction:row;align-items:center;gap:6px;font-size:14px}label.field{max-width:520px}fieldset{border:0;flex-wrap:wrap;gap:6px 16px;margin:0;padding:0;display:flex}legend{color:var(--text-2);width:100%;padding:0 0 6px;font-size:13px}.error{color:var(--danger)}.muted{color:var(--text-2)}.small{font-size:13px}.nowrap{white-space:nowrap}.mono{font-family:ui-monospace,Consolas,monospace;font-size:12px}.stop-address{min-width:200px}.photos{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.photos li{flex-direction:column;gap:4px;min-width:0;display:flex}.photo-tile{aspect-ratio:4/3;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);cursor:zoom-in;place-items:center;width:100%;padding:0;display:grid;overflow:hidden}.photo-tile img{object-fit:cover;width:100%;height:100%}.photo-pdf{color:var(--text-2);cursor:pointer;font-weight:600}.photo-view{background:var(--surface);border-radius:var(--radius);flex-direction:column;gap:10px;max-width:min(1100px,100%);max-height:100%;margin:0;padding:12px;display:flex}.photo-view img{object-fit:contain;max-width:100%;max-height:calc(100vh - 120px)}.assets-table th{white-space:nowrap}.sign-in{place-items:center;min-height:100vh;padding:16px;display:grid}.sign-in-card{flex-direction:column;gap:12px;width:min(380px,100%);padding:24px;display:flex}.sign-in-card .brand{padding:0 0 4px}.who{border-top:1px solid var(--line);color:var(--text-2);justify-content:space-between;align-items:center;gap:8px;margin-top:8px;padding:10px 10px 0;font-size:13px;display:flex}.section{margin-bottom:24px}.section>h2,.section .row-head h2{margin-bottom:8px}.list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.row-card{flex-direction:column;gap:4px;display:flex}.row-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.row-head .badge{margin:0 0 0 8px}.status-pending{background:var(--warn-soft);color:var(--warn)}.status-disabled{color:var(--text-2)}.editor{border-top:1px solid var(--line);flex-direction:column;gap:14px;margin-top:10px;padding-top:12px;display:flex}.editor.flat{border-top:0;gap:10px;margin-top:0;padding-top:0}.inline,.actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.perm-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;display:grid}.perm-grid fieldset{flex-flow:column;gap:4px}.perm-grid code{font-size:12px}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:13px}.table th,.table td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:7px 8px}.table th{color:var(--text-2);font-weight:600}.table .changes{overflow-wrap:anywhere;max-width:420px;color:var(--text-2);font-family:ui-monospace,Consolas,monospace;font-size:12px}.accounts{grid-template-columns:1fr;align-items:start;gap:16px;display:grid}.accounts.with-detail{grid-template-columns:minmax(0,1fr) minmax(320px,400px)}.toolbar{gap:8px;margin-bottom:10px;display:flex}.toolbar input[type=search]{flex:1;max-width:360px}.chips{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.chip{border-radius:999px;padding:4px 12px;font-size:13px}.chip span{color:var(--text-2);margin-left:2px}.chip.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.accounts-table tbody tr{cursor:pointer}.accounts-table tbody tr:hover{background:var(--bg)}.accounts-table tbody tr.selected{background:var(--accent-soft)}.accounts-table .badge{margin:0 0 0 6px}.accounts-table td .status-active,.accounts-table td .status-pending,.accounts-table td .status-disabled,.accounts-table td .status-rejected{margin:0}.row-link{color:var(--text);text-align:left;background:0 0;border:0;padding:0;font-weight:600}.accounts.with-detail .hide-narrow{display:none}.detail>.row-head{flex-wrap:nowrap;align-items:flex-start}.detail{flex-direction:column;gap:12px;max-height:calc(100vh - 32px);display:flex;position:sticky;top:16px;overflow-y:auto}.detail h2{margin:0}.detail h3{margin:0 0 6px;font-size:14px;font-weight:600}.detail .badge{vertical-align:2px;margin:0 0 0 6px}.detail .actions .badge{margin:0 4px 0 0}.detail-section{border-top:1px solid var(--line);padding-top:12px}.stack{flex-direction:column;gap:12px;display:flex}.plain{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.timeline{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.timeline li{grid-template-columns:auto 1fr;gap:0 10px;display:grid}.timeline li>:last-child{grid-column:2}.status-rejected{color:var(--text-2);text-decoration:line-through}@media (width<=1000px){.accounts.with-detail{grid-template-columns:1fr}.detail{order:-1;max-height:none;position:static}.hide-narrow{display:none}}.narrow{max-width:560px}.section-card{flex-direction:column;gap:12px;display:flex}.section-card h2{margin:0}.facts{grid-template-columns:auto 1fr;gap:4px 16px;margin:0;font-size:14px;display:grid}.facts dt{color:var(--text-2)}.facts dd{overflow-wrap:anywhere;margin:0}.badge.link-active{background:var(--accent-soft);color:var(--accent)}.badge.link-expired,.badge.link-needs_login{background:var(--warn-soft);color:var(--warn)}.detail-section .badge[class*=link-]{margin:0 0 0 6px}.load{flex-direction:column;gap:16px;display:flex}.load-head h2{font-size:20px}.load-head .badge{vertical-align:3px;margin:0 0 0 6px}.load-facts{grid-template-columns:auto 1fr auto 1fr auto 1fr;max-width:960px}@media (width<=900px){.load-facts{grid-template-columns:auto 1fr}}.timeline .badge{margin:0 0 0 6px}a.row-card:hover{border-color:var(--accent)}.confirm{border-radius:var(--radius);background:var(--bg);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.confirm p{color:var(--text)}.outcome-executed{background:var(--accent-soft)}.outcome-check,.outcome-failed{background:var(--warn-soft)}.warn{color:var(--warn)}.overlay{z-index:50;background:#00000059;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog{flex-direction:column;gap:12px;width:min(400px,100%);padding:22px 24px;display:flex;box-shadow:0 12px 40px #0000002e}.dialog h2{margin:0}.who-name{color:var(--text);font-weight:600}.who-name.active{color:var(--accent)}.nav-block{flex-direction:column;gap:2px;display:flex}.nav-child{padding-left:24px;font-size:13px}.nav-gap{height:12px}.day-table tbody tr{cursor:pointer}.day-table tbody tr:hover{background:var(--bg)}.day-table .badge{margin:0 4px 0 0}.photo-view .pdf-view{background:#fff;border:0;width:min(1000px,100vw - 64px);height:calc(100vh - 120px)}.photo-pdf{position:relative}.photo-pdf iframe{pointer-events:none;background:#fff;border:0;width:100%;height:100%}.pdf-tag{color:#fff;background:#0009;border-radius:4px;padding:1px 6px;font-size:11px;font-weight:600;position:absolute;bottom:6px;right:6px}.sheet-block{margin-bottom:14px}.sheet-block h3{margin:10px 0 6px;font-size:14px}.sheet-row{padding:4px 0}.sheet-columns{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;display:grid}.sheet-column{flex-direction:column;gap:4px;display:flex}.sheet-items{margin:4px 0 0;padding:0;font-size:13px;list-style:none}.sheet-items li{padding:2px 0}.sheet-line{padding:2px 0 0 16px}.legs-editor{flex-direction:column;gap:10px;margin:10px 0;display:flex}.leg-row{flex-direction:column;gap:8px;display:flex}.leg-stops select{max-width:260px}.page:has(.map-page){max-width:none;padding:0}.map-page{grid-template-columns:340px 1fr;height:100vh;display:grid}.map-side{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;gap:10px;min-height:0;padding:18px 14px 0;display:flex}.map-side h1{margin:0}.segment{border:1px solid var(--line);border-radius:8px;display:inline-flex;overflow:hidden}.segment button{color:var(--text-2);background:0 0;border:0;border-radius:0;padding:5px 12px}.segment button+button{border-left:1px solid var(--line)}.segment button.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.segment button span{color:var(--text-2);margin-left:5px;font-weight:400}.map-fresh{text-align:right;margin:0 0 8px}.fleet-map{background:var(--bg);height:100%;min-height:0}.truck-list{border-top:1px solid var(--line);flex:1;min-height:0;margin:0 -14px;padding:0;list-style:none;overflow-y:auto}.truck-list li{border-bottom:1px solid var(--line)}.truck-list li.selected{background:var(--accent-soft)}.truck-row{text-align:left;background:0 0;border:0;border-radius:0;grid-template-columns:10px auto 1fr auto;align-items:center;gap:8px;width:100%;padding:8px 14px;display:grid}.truck-name{flex-direction:column;line-height:1.3;display:flex}.hitch{color:#0f766e;white-space:nowrap;font-size:11px;font-weight:600}.hitch.maybe{color:var(--text-2);font-weight:400}.hitch.alert{color:#dc2626}.truck-going{color:#1d4ed8;white-space:nowrap;font-size:11px}.hitched+.hitched:before{content:"；"}.map-side .tabs{flex-wrap:wrap}.map-side .tab{padding:5px 10px}.truck-who{flex-direction:column;min-width:0;line-height:1.3;display:flex}.truck-driver,.truck-where{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.truck-where{font-size:12px}.truck-where.at-place{color:#7c3aed;font-weight:600}.map-side .tabs,.map-side .chips{margin-bottom:0}.place-marker{color:#7c3aed;font:600 11px var(--font);white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #7c3aed;border-radius:4px;padding:1px 7px;box-shadow:0 1px 3px #00000040}.truck-detail{grid-template-columns:56px 1fr;gap:3px 8px;margin:0;padding:2px 14px 12px 32px;display:grid}.truck-detail dt{color:var(--text-2)}.truck-detail dd{overflow-wrap:anywhere;margin:0}.dot{background:#64748b;border-radius:50%;width:9px;height:9px}.dot.moving{background:#16a34a}.dot.stale{background:#cbd5e1}.dot.alert{background:#dc2626}.changes{margin:0;padding:0;list-style:none}.timeline li{border-left:3px solid #cbd5e1;padding:1px 0 1px 6px}.timeline li.drive{border-left-color:#16a34a}.timeline li.gap{border-left-style:dotted}.unit-actions{flex-wrap:wrap;align-items:center;gap:4px 10px;display:flex}.unit-actions select,.unit-actions input{max-width:130px;padding:1px 4px;font-size:12px}.truck-marker{color:#fff;width:max-content;font:600 11px var(--font);white-space:nowrap;cursor:pointer;background:#475569;border:2px solid #fff;border-radius:999px;align-items:center;gap:3px;padding:1px 6px;display:flex;box-shadow:0 1px 3px #00000059}.truck-marker.moving{background:#16a34a}.truck-marker.stale{background:#94a3b8}.truck-marker.alert{background:#dc2626}.truck-marker.trailer{border-radius:3px}.truck-marker.selected{outline:3px solid var(--accent);z-index:2}.truck-marker i{font-size:9px;font-style:normal;line-height:1;display:inline-block}.fleet-map.far .truck-marker:not(.selected){width:12px;height:12px;padding:0}.fleet-map.far .truck-marker:not(.selected) span,.fleet-map.far .truck-marker:not(.selected) i{display:none}@media (width<=800px){.map-page{grid-template-rows:45vh 1fr;grid-template-columns:1fr;height:auto}.map-side{order:2}.fleet-map{height:45vh}}.link-page{background:var(--bg);grid-template-rows:auto 1fr;height:100vh;display:grid}.link-head{background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:baseline;gap:4px 18px;padding:12px 16px;display:flex}.link-head h1{margin:0;font-size:20px}.link-card{flex-direction:column;gap:14px;max-width:440px;margin:0 auto;padding:20px 16px;display:flex}.link-card h1{margin:0;font-size:20px}.link-card .big-button{width:100%}.link-card label.check{align-items:flex-start;gap:8px;display:flex}.link-state{font-size:22px;font-weight:700}.share-link{align-items:center;gap:6px;display:flex}.share-link input{flex:1;min-width:0;padding:1px 4px;font-size:12px}.cam-list{flex-direction:column;gap:8px;margin:4px 0 0;padding:0;list-style:none;display:flex}.cam-list img{border:1px solid var(--line);border-radius:4px;width:100%;max-width:240px;display:block}.external-form{grid-template-columns:1fr 1fr;gap:6px 8px;display:grid}.external-form .wide{grid-column:1/-1}.external-form input,.external-form select{width:100%}.map-side>label{flex-direction:row;align-items:center;gap:6px;display:flex}.map-side>label input{width:auto}
