:root { --green:#173f2d; --green2:#246344; --mint:#dff3e7; --paper:#f5f3ec; --line:#dfe5df; --text:#17231b; --muted:#67746c; --danger:#a0443c; --shadow:0 14px 40px rgba(27,54,37,.09); }
* { box-sizing:border-box; }
html { background:var(--paper); }
body { margin:0; color:var(--text); background:linear-gradient(180deg,#e8f1ea 0,#f5f3ec 260px); font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
.mobile-head { position:sticky; top:0; z-index:20; display:grid; grid-template-columns:auto 1fr auto; gap:11px; align-items:center; min-height:68px; padding:10px max(16px,env(safe-area-inset-left)); color:white; background:rgba(18,58,41,.96); backdrop-filter:blur(16px); box-shadow:0 8px 24px rgba(20,52,37,.16); }
.brand-mark { display:grid; width:42px; height:42px; place-items:center; border-radius:13px; color:var(--green); background:#f1d485; font-size:24px; font-weight:900; }
.mobile-head span { color:#9ed1b2; font-size:9px; letter-spacing:.16em; }
.mobile-head h1 { margin:2px 0 0; font-size:18px; }
.mobile-head a { padding:7px 9px; border:1px solid rgba(255,255,255,.22); border-radius:9px; color:#d9eee2; font-size:11px; text-decoration:none; }
main { width:min(720px,100%); margin:0 auto; padding:18px 14px calc(112px + env(safe-area-inset-bottom)); }
.intro-card { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding:21px; border-radius:20px; color:white; background:radial-gradient(circle at 84% 18%,rgba(137,221,171,.23),transparent 27%),linear-gradient(135deg,#173f2d,#0e271c); box-shadow:var(--shadow); }
.intro-card small { color:#91d2aa; font-weight:800; letter-spacing:.12em; }
.intro-card h2 { margin:7px 0 5px; font-size:23px; }
.intro-card p { margin:0; color:#c8ded0; font-size:12px; line-height:1.65; }
.intro-badge { flex:0 0 auto; padding:7px 10px; border-radius:999px; color:#173f2d; background:#a8dfbc; font-size:11px; font-weight:900; }
.progress-strip { display:grid; grid-template-columns:auto 1fr auto 1fr auto 1fr auto; align-items:center; gap:7px; margin:17px 4px; color:#7d8981; font-size:10px; font-weight:800; }
.progress-strip span.is-active { color:var(--green); }
.progress-strip i { height:1px; background:#cfd8d1; }
.mobile-card { margin-top:14px; padding:18px; border:1px solid rgba(213,222,215,.8); border-radius:18px; background:rgba(255,255,255,.9); box-shadow:var(--shadow); }
.card-title { display:flex; gap:11px; align-items:center; margin-bottom:17px; }
.card-title b { display:grid; width:35px; height:35px; place-items:center; border-radius:50%; color:var(--green); background:var(--mint); font-size:12px; }
.card-title h3 { margin:0 0 3px; font-size:17px; }
.card-title p { margin:0; color:var(--muted); font-size:11px; }
.field { display:grid; gap:7px; margin-top:13px; }
.field:first-of-type { margin-top:0; }
.field label,.rating-grid label { color:#39483f; font-size:12px; font-weight:800; }
.field em { color:#c34d43; font-style:normal; }
input,select,textarea { width:100%; min-height:46px; padding:11px 12px; border:1px solid #d4ddd6; border-radius:11px; outline:0; color:var(--text); background:#fbfcfa; }
textarea { resize:vertical; line-height:1.55; }
input:focus,select:focus,textarea:focus { border-color:#5fa57c; box-shadow:0 0 0 3px #e2f1e8; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.switch-row { display:flex; gap:11px; align-items:flex-start; margin-top:15px; padding:13px; border-radius:12px; background:#f2f6f3; }
.switch-row input { width:20px; min-height:auto; height:20px; margin:1px 0 0; accent-color:var(--green2); }
.switch-row span { display:grid; gap:3px; }
.switch-row strong { font-size:13px; }
.switch-row small { color:var(--muted); font-size:10px; line-height:1.5; }
.location-button { display:flex; width:100%; gap:13px; align-items:center; padding:15px; border:0; border-radius:14px; color:white; background:linear-gradient(135deg,#246344,#173f2d); text-align:left; }
.location-button > span { display:grid; width:42px; height:42px; place-items:center; border-radius:50%; background:rgba(255,255,255,.12); font-size:23px; }
.location-button div { display:grid; gap:3px; }
.location-button small { color:#bee0ca; font-size:10px; }
.location-button:disabled { opacity:.65; }
.location-result { margin-top:10px; padding:11px 12px; border-radius:10px; color:#7a6540; background:#fff3dc; font-size:11px; line-height:1.55; }
.location-result.is-ok { color:#1f6440; background:#e5f3e9; }
.location-result.is-error { color:#92463f; background:#f8e8e6; }
.camera-box { display:grid; min-height:155px; place-items:center; align-content:center; gap:5px; border:2px dashed #95b9a3; border-radius:15px; color:var(--green); background:#f1f8f3; text-align:center; cursor:pointer; }
.camera-box span { display:grid; width:45px; height:45px; place-items:center; border-radius:50%; color:white; background:var(--green2); font-size:28px; }
.camera-box small { color:var(--muted); font-size:10px; }
.photo-preview { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#edf4ef; }
.photo-preview img { display:block; width:100%; max-height:470px; object-fit:contain; background:#15241b; }
.photo-preview div { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:11px 13px; }
.photo-preview strong { color:#1f6942; font-size:12px; }
.photo-preview button { border:0; color:var(--green); background:transparent; font-size:12px; font-weight:800; }
.photo-guide { display:grid; gap:6px; margin:13px 0 0; padding-left:19px; color:var(--muted); font-size:11px; line-height:1.45; }
.rating-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.rating-grid label { display:grid; gap:7px; }
.rating-grid select { min-height:43px; padding:8px; font-size:12px; }
.submit-bar { position:fixed; z-index:18; right:0; bottom:0; left:0; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px max(16px,calc((100vw - 690px)/2)) calc(12px + env(safe-area-inset-bottom)); border-top:1px solid #d7e0d9; background:rgba(255,255,255,.96); backdrop-filter:blur(14px); box-shadow:0 -12px 35px rgba(24,48,33,.1); }
.submit-bar div { display:grid; gap:2px; }
.submit-bar small { color:#8a6531; font-size:10px; }
.submit-bar strong { font-size:12px; }
.submit-bar button,.success-card button { min-width:130px; min-height:47px; border:0; border-radius:12px; color:white; background:var(--green); font-weight:900; }
.submit-bar button:disabled { opacity:.55; }
.success-card { margin-top:30px; padding:35px 22px; border-radius:20px; background:white; box-shadow:var(--shadow); text-align:center; }
.success-icon { display:grid; width:64px; height:64px; margin:0 auto 14px; place-items:center; border-radius:50%; color:white; background:#3d9a61; font-size:32px; }
.success-card h2 { margin:0 0 8px; }
.success-card p { margin:0 0 20px; color:var(--muted); font-size:12px; line-height:1.6; }
.mobile-toast { position:fixed; z-index:50; right:16px; bottom:92px; left:16px; padding:13px 15px; border-radius:12px; color:white; background:#162e21; box-shadow:var(--shadow); opacity:0; transform:translateY(10px); pointer-events:none; transition:.2s; text-align:center; font-size:12px; }
.mobile-toast.show { opacity:1; transform:none; }
.scan-guide { text-align:center; padding:30px 22px; }
.scan-icon { display:grid; width:64px; height:64px; margin:0 auto 12px; place-items:center; border:1px solid #a8cbb4; border-radius:20px; color:var(--green2); background:#e9f5ed; font-size:42px; line-height:1; }
.scan-guide h3 { margin:0 0 8px; font-size:19px; }
.scan-guide p { margin:0 auto 16px; max-width:440px; color:var(--muted); font-size:12px; line-height:1.65; }
.scan-guide small { display:block; margin-top:14px; color:#87958b; font-size:10px; line-height:1.5; }
.scan-input { display:grid; grid-template-columns:1fr auto; gap:8px; max-width:500px; margin:0 auto 12px; text-align:left; }
.scan-input input { min-width:0; }
.scan-input button { padding:0 15px; border:0; border-radius:11px; color:white; background:var(--green2); font-size:12px; font-weight:900; }
.demo-link { display:inline-flex; min-height:42px; align-items:center; padding:0 16px; border-radius:11px; color:white; background:var(--green); font-size:12px; font-weight:800; text-decoration:none; }
.order-card { padding:17px 18px; }
.quick-assign-card { padding:16px 18px; }
.quick-driver { display:flex; gap:12px; align-items:center; }
.driver-avatar { display:grid; width:44px; height:44px; flex:0 0 auto; place-items:center; border-radius:14px; color:#fff; background:var(--green2); font-size:16px; font-weight:900; }
.quick-driver small { color:#6b8976; font-size:10px; font-weight:800; }
.quick-driver h3 { margin:3px 0; font-size:17px; }
.quick-driver p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.quick-assign-card .primary-button { margin-top:14px; }
.text-button { width:100%; min-height:38px; margin-top:7px; border:0; color:#547060; background:transparent; font-size:11px; font-weight:800; }
.order-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.eyebrow { color:#6b8976; font-size:10px; font-weight:900; letter-spacing:.1em; }
.order-top h3 { margin:5px 0 0; font-size:21px; letter-spacing:.02em; }
.status-pill { display:inline-flex; align-items:center; min-height:28px; padding:0 10px; border-radius:999px; font-size:11px; font-weight:900; white-space:nowrap; }
.status-ready { color:#815c21; background:#fff0ce; }.status-moving { color:#155e3c; background:#dff3e7; }.status-done { color:#5c6570; background:#edf0f2; }
.order-grid,.readonly-summary { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-top:17px; }
.order-grid > div,.readonly-summary > div { display:grid; gap:4px; }.order-grid small,.readonly-summary small { color:#89958d; font-size:10px; }.order-grid strong,.readonly-summary strong { color:#29372f; font-size:12px; line-height:1.5; }.wide { grid-column:1 / -1; }
.primary-button { width:100%; min-height:48px; margin-top:16px; border:0; border-radius:12px; color:white; background:linear-gradient(135deg,#246344,#173f2d); font-weight:900; }.primary-button:disabled { opacity:.58; }
.inline-message { margin-top:10px; padding:10px; border-radius:9px; color:#28613f; background:#e7f4eb; font-size:11px; }
.delivery-state-card { display:flex; gap:12px; align-items:center; padding:15px 17px; }.state-check { display:grid; width:37px; height:37px; flex:0 0 auto; place-items:center; border-radius:50%; color:white; background:#3e9861; font-weight:900; }.delivery-state-card h3 { margin:0 0 4px; font-size:14px; }.delivery-state-card p { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }.state-actions { display:flex; margin-left:auto; gap:7px; align-items:center; }.secondary-button { min-height:34px; padding:8px 9px; border:1px solid #bdd5c4; border-radius:9px; color:var(--green2); background:#fff; font-size:10px; font-weight:800; text-decoration:none; white-space:nowrap; }
@media (max-width:430px) { .delivery-state-card { align-items:flex-start; flex-wrap:wrap; }.state-actions { width:100%; margin-left:49px; }.order-grid,.readonly-summary { gap:11px; }.scan-input { grid-template-columns:1fr; }.scan-input button { min-height:44px; } }
@media (max-width:560px) { .two-col,.rating-grid { grid-template-columns:1fr; } .rating-grid { gap:12px; } .intro-card { padding:18px; } .intro-card h2 { font-size:20px; } }

.head-button { padding:7px 10px; border:1px solid rgba(255,255,255,.22); border-radius:9px; color:#d9eee2; background:transparent; font-size:11px; }
.login-card { padding:20px; }
.first-setup { margin-top:14px; border:1px solid #d9e3db; border-radius:12px; background:#f7faf7; }
.first-setup summary { padding:12px 13px; color:var(--green); font-size:12px; font-weight:900; cursor:pointer; }
.first-setup > .two-col { padding:0 13px 10px; }
.first-setup > p { margin:0; padding:0 13px 13px; color:var(--muted); font-size:10px; line-height:1.55; }
.identity-card { padding:17px 18px; }
.identity-main { display:flex; align-items:center; gap:12px; }
.identity-main > div:nth-child(2) { min-width:0; flex:1; }
.identity-main small { color:#6b8976; font-size:10px; font-weight:800; }
.identity-main h3 { margin:3px 0 2px; font-size:18px; }
.identity-main p { margin:0; overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.route-chip { flex:0 0 auto; padding:7px 10px; border-radius:999px; color:#155e3c; background:#dff3e7; font-size:11px; font-weight:900; }
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:16px; }
.stats-grid > div { display:grid; gap:4px; padding:12px 9px; border-radius:12px; background:#f2f6f3; text-align:center; }
.stats-grid small { color:var(--muted); font-size:9px; }
.stats-grid strong { color:var(--green); font-size:14px; }
.target-line { display:grid; gap:7px; margin-top:13px; }
.target-line span { color:var(--muted); font-size:10px; }
.target-line i { overflow:hidden; height:6px; border-radius:999px; background:#e2e8e3; }
.target-line b { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#3c9960,#e3bb58); transition:width .35s; }
.loading-card { display:flex; align-items:center; gap:13px; }
.loading-card strong { font-size:14px; }
.loading-card p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.spinner { width:30px; height:30px; flex:0 0 auto; border:3px solid #d9e9df; border-top-color:var(--green2); border-radius:50%; animation:spin .75s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.route-result { display:flex; gap:10px; align-items:center; margin-top:15px; padding:11px 12px; border-radius:12px; color:#255d3e; background:#e8f4ec; }
.route-result span { flex:0 0 auto; padding:5px 8px; border-radius:999px; color:white; background:#3c8e5b; font-size:10px; font-weight:900; }
.route-result p { margin:0; font-size:10px; line-height:1.55; }
.route-result.is-delegated { color:#805923; background:#fff1d6; }
.route-result.is-delegated span { background:#c28731; }
.safety-note { display:flex; gap:9px; align-items:flex-start; padding:12px; border-radius:11px; color:#4d6657; background:#f2f6f3; }
.safety-note span { display:grid; width:20px; height:20px; flex:0 0 auto; place-items:center; border-radius:50%; color:white; background:#3d9460; font-size:11px; }
.safety-note p { margin:1px 0 0; font-size:10px; line-height:1.55; }
.action-button { min-height:54px; font-size:15px; }
.recent-list { display:grid; gap:8px; }
.recent-list article { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:11px 0; border-top:1px solid #edf0ed; }
.recent-list article:first-child { border-top:0; }
.recent-list article > div { display:grid; gap:3px; min-width:0; }
.recent-list article > div:nth-child(2) { text-align:right; }
.recent-list strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.recent-list b { color:var(--green); font-size:12px; }
.recent-list small { overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.recent-list article > span { padding:5px 7px; border-radius:999px; color:#246344; background:#e4f1e8; font-size:9px; font-weight:900; }
.recent-list article > span.is-delegated { color:#895c1f; background:#fff0d1; }
.empty-text { margin:0; padding:18px 0; color:var(--muted); font-size:11px; text-align:center; }
@media (max-width:430px) { .stats-grid strong { font-size:12px; } .recent-list article { grid-template-columns:minmax(0,1fr) auto; } .recent-list article > span { grid-column:1 / -1; justify-self:start; } }
