/* finesse · register=h5 · morph=A.1-daily-desk(app-shell furniture, real phone: no fake status bar)
 * A=burnt-orange on warm paper (Amber Ops, accent darkened to #C4561F for 4.5:1 outdoors)
 * B=system CJK 800/400 + tabular mono figures · C=order-hub seg3 (待处理/今日到车/付款, U-218) + one-question wizard + edge bar w/ center FAB
 * D=feedback-only (press, slide, check) · E=weighbridge ticket (磅单) · SOUL=6 SPECTACLE=2 DENSITY=5 */
:root {
  --page: #f3eee6;
  --bg: #fffdf9;
  --panel-2: #f8f3eb;
  --line: rgba(48, 32, 20, .10);
  --line-2: rgba(48, 32, 20, .16);
  --ink-1: #1f1710;
  --ink-2: #4a3f34;
  --ink-3: #75655a;
  --accent: #c4561f;
  --accent-press: #a9461a;
  --accent-soft: rgba(196, 86, 31, .11);
  --on-accent: #fffaf4;
  --glow: rgba(196, 86, 31, .34);
  --teal: #2e6b63;
  --teal-soft: rgba(46, 107, 99, .11);
  --up: #2f7a55;
  --up-soft: rgba(47, 122, 85, .12);
  --down: #b8402f;
  --down-soft: rgba(184, 64, 47, .10);
  --warn: #9a6512;
  --shadow: 0 1px 3px rgba(60, 38, 20, .06), 0 1px 1px rgba(60, 38, 20, .03);
  --shadow-lg: 0 24px 60px -28px rgba(60, 38, 20, .45);
  --ease: cubic-bezier(.32, .86, .28, 1);
  --r: 18px;
  --r-sm: 13px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", "Noto Sans Mono", Menlo, Consolas, monospace;
  --tabbar-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow-x: clip; }
body {
  overflow: hidden; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink-1);
  background: #2a231c; display: flex; align-items: center; justify-content: center;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
[hidden] { display: none !important; }

/* ── the frame: locked body, one scrolling child per view ───────────── */
.phone { position: relative; width: 100%; height: 100%; overflow: hidden; overflow: clip; background: var(--page); display: flex; flex-direction: column; }
.push, .login { overflow: hidden; overflow: clip; }
@media (min-width: 560px) {
  body { background: radial-gradient(120% 90% at 50% 0%, #3a3027 0%, #1c1712 62%); }
  .phone { width: 406px; height: min(880px, 94vh); border-radius: 44px; border: 1px solid rgba(255, 240, 220, .12);
           box-shadow: 0 46px 120px -30px rgba(10, 6, 2, .9), 0 0 0 10px #15110d; }
}
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: clip; -webkit-overflow-scrolling: touch;
        padding: calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + var(--tabbar-h) + 30px); }
.view::-webkit-scrollbar, .push-body::-webkit-scrollbar, .sheet::-webkit-scrollbar { width: 0; }
.view:not(.on) { display: none; }

/* ── type ──────────────────────────────────────────────────────────── */
.h-screen { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.h-sec { font-size: 16px; font-weight: 800; margin: 24px 2px 10px; display: flex; align-items: baseline; gap: 8px; }
.h-sec small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.meta { font-size: 13.5px; color: var(--ink-3); }
.muted { color: var(--ink-3); }

/* ── today hero: the 磅单 slip ─────────────────────────────────────── */
.top { display: flex; justify-content: space-between; align-items: flex-end; margin: 4px 2px 14px; }
.top .who { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.notice { width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 10px 11px 14px;
          font-size: 14.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow); }
.notice:active { background: var(--panel-2); }
.notice b { color: var(--accent); font-weight: 800; flex: none; }
.notice .nmain { flex: 1; min-width: 0; }
.notice .nbody { color: var(--ink-1); white-space: pre-wrap; overflow-wrap: anywhere; display: inline; }
.notice .nmeta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.notice .go { flex: none; color: var(--ink-3); align-self: center; }
.notice.void b { color: var(--ink-3); }
.notice.void .nbody, .nitem.void .nbody { text-decoration: line-through; text-decoration-color: rgba(184, 64, 47, .55); color: var(--ink-3); }
.notice .tag.void { margin-right: 6px; }
.notice.void .nmeta { color: var(--down); }
.nlist { display: flex; flex-direction: column; gap: 10px; }
.nitem { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; box-shadow: var(--shadow); }
.nitem.void { background: var(--panel-2); box-shadow: none; }
.nitem .nh { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.nitem .nh .tag { margin-left: 6px; }
.nitem .nbody { margin-top: 6px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.nitem .nvoid { margin-top: 6px; font-size: 13px; color: var(--down); font-weight: 600; overflow-wrap: anywhere; }
.slip { margin-top: 12px; background: var(--bg); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.slip-main { padding: 18px 18px 14px; }
.slip-label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; }
.slip-big { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.slip-big .n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.slip-big .of { font-family: var(--mono); font-size: 24px; color: var(--ink-3); font-weight: 600; }
.slip-big .say { margin-left: auto; text-align: right; font-size: 14px; font-weight: 700; line-height: 1.35; }
.slip-big .say.ok { color: var(--up); }
.slip-big .say.todo { color: var(--accent); }
.slots { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 5px; margin-top: 14px; }
.slots i { height: 9px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line); }
.slots i.on { background: var(--accent); border-color: transparent; }
.slots i.over { background: var(--teal); border-color: transparent; }
.perf { border-top: 1px dashed var(--line-2); display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.perf::before, .perf::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--page); border: 1px solid var(--line); }
.perf::before { left: -10px; } .perf::after { right: -10px; }
.perf > div { padding: 11px 14px 13px; }
.perf > div + div { border-left: 1px solid var(--line); }
.perf .k { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.perf .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; margin-top: 1px; }

/* ── rows & cards ──────────────────────────────────────────────────── */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card.cpad { padding: 12px 14px; }  /* 直接放文字、输入框的卡片（.card 本身没有内边距；10-29 U-642 排查：请补录、更正、待定价等字贴边） */
.card + .sf-box { margin-top: 10px; }  /* 卡片后面接上传框（登记绿单） */
.rows { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 64px; width: 100%; text-align: left; transition: background .15s; }
.row + .row { border-top: 1px solid var(--line); }
.row:active { background: var(--panel-2); }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.row .s { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.row .go { flex: none; color: var(--ink-3); }
.row .act { flex: none; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.row .act:active { transform: scale(.95); }
.row.upd { align-items: flex-start; background: var(--panel-2); }
.row.upd:active { background: var(--panel-2); }
.row.upd .badge { margin-top: 2px; }
.row b.up { color: var(--up); } .row b.down { color: var(--down); }
.status-now { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 12px; }
.status-now .main { flex: 1; min-width: 0; }
.status-now .t { font-weight: 800; font-size: 17px; }
.status-now .s { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.empty { padding: 22px 18px; text-align: center; color: var(--ink-3); font-size: 14.5px; line-height: 1.6; }
.empty b { color: var(--ink-1); display: block; font-size: 16px; margin-bottom: 4px; }

.badge { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 9px; font-family: var(--mono); font-weight: 800; font-size: 15px; flex: none; }
.i5 { background: var(--accent); color: var(--on-accent); }
.i4 { background: var(--accent-soft); color: var(--accent); }
.i3 { background: var(--teal-soft); color: var(--teal); }
.i2, .i1, .i0 { background: var(--panel-2); color: var(--ink-3); border: 1px solid var(--line); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); vertical-align: 1px; }
.tag.first { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.tag.ok { background: var(--up-soft); color: var(--up); border-color: transparent; }
.tag.void { background: var(--down-soft); color: var(--down); border-color: transparent; }

.outbox { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--down-soft); color: var(--down); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.outbox button { margin-left: auto; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--down); color: var(--on-accent); font-weight: 800; font-size: 13.5px; }

/* ── search & segmented ────────────────────────────────────────────── */
.search { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; margin-top: 14px; }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.seg { display: flex; padding: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 13px; margin-top: 12px; }
.seg button { flex: 1; height: 40px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink-3); }
.seg button.on { background: var(--bg); color: var(--ink-1); box-shadow: var(--shadow); }

/* ── buttons ───────────────────────────────────────────────────────── */
.btn { height: 54px; border-radius: 15px; padding: 0 20px; font-size: 17px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s var(--ease), background .15s; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 28px -14px var(--glow); }
.btn-main:active { background: var(--accent-press); }
.btn-main:disabled { background: #d9cfc3; color: var(--bg); box-shadow: none; }
.btn-ghost { background: var(--bg); color: var(--ink-1); border: 1px solid var(--line-2); }
.btn-text { color: var(--ink-2); height: 48px; padding: 0 12px; font-weight: 700; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ── tab bar: edge bar, filled active state, center record button ── */
.tabbar { position: absolute; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
          padding: 0 6px env(safe-area-inset-bottom); background: rgba(255, 252, 247, .94); backdrop-filter: blur(18px) saturate(150%);
          -webkit-backdrop-filter: blur(18px) saturate(150%); border-top: 1px solid var(--line-2); display: flex; align-items: center; }
.tabbar > button { flex: 1; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); border-radius: 14px; }
.tabbar > button svg { width: 24px; height: 24px; padding: 2px; border-radius: 9px; transition: background .2s, color .2s; }
.tabbar > button.on { color: var(--ink-1); }
.tabbar > button.on svg { background: var(--ink-1); color: var(--bg); width: 40px; height: 26px; padding: 3px 10px; }
.tabbar > button:active { transform: scale(.94); }
.tabbar .fab { flex: none; align-self: flex-start; width: 62px; height: 62px; margin: -22px 6px 0; border-radius: 22px; background: var(--accent); color: var(--on-accent);
               display: grid; place-items: center; box-shadow: 0 16px 30px -14px var(--glow), 0 0 0 5px var(--page); }
.tabbar .fab svg { width: 30px; height: 30px; }
.tabbar .fab:active { transform: scale(.92); background: var(--accent-press); }
.fab-label { position: absolute; z-index: 41; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 3px); font-size: 11.5px; font-weight: 800; color: var(--accent); pointer-events: none; }

/* ── push layers (wizard, details) ─────────────────────────────────── */
.push { position: absolute; inset: 0; z-index: 60; background: var(--page); transform: translateX(100%); transition: transform .42s var(--ease); display: flex; flex-direction: column; }
.push.on { transform: none; }
.push.z2 { z-index: 70; }
.push-head { flex: none; padding: calc(env(safe-area-inset-top) + 8px) 8px 8px; display: flex; align-items: center; gap: 4px; background: var(--page); }
.push-head .title { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.icon-btn { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-1); flex: none; }
.icon-btn:active { background: rgba(48, 32, 20, .07); }
.icon-btn.script { width: auto; padding: 0 12px; gap: 5px; display: flex; align-items: center; font-size: 14px; font-weight: 800; color: var(--teal); background: var(--teal-soft); height: 38px; border-radius: 99px; margin-right: 6px; }
.push-body { flex: 1; overflow-y: auto; overflow-x: clip; padding: 6px 18px 24px; }
.push-foot { flex: none; padding: 10px 18px calc(env(safe-area-inset-bottom) + 12px); background: linear-gradient(to top, var(--page) 70%, rgba(243, 238, 230, 0)); }

/* progress: segmented like a ticket counter */
.prog { height: 6px; margin: 2px 18px 0; border-radius: 99px; background: rgba(48, 32, 20, .08); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .35s var(--ease); }
.prog-meta { display: flex; justify-content: space-between; margin: 7px 20px 0; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }

/* question */
.q { padding-top: 18px; animation: qin .34s var(--ease) both; }
.q.back { animation-name: qback; }
@keyframes qin { from { opacity: 0; transform: translateX(26px); } }
@keyframes qback { from { opacity: 0; transform: translateX(-26px); } }
.q-title { font-size: 23px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.q-title .req { color: var(--accent); margin-left: 4px; }
.q-hint { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.q-last { margin-top: 8px; font-size: 14px; color: var(--teal); font-weight: 700; line-height: 1.5; padding: 0 2px; }
.q-hint b { color: var(--teal); }
.q-body { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.q-sub { font-size: 14px; font-weight: 800; color: var(--ink-2); margin: 10px 2px -2px; }

.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: 1fr 1fr 1fr; }
.choice { min-height: 58px; padding: 12px 16px; border-radius: 15px; background: var(--bg); border: 1.5px solid var(--line-2); text-align: left; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; transition: transform .12s var(--ease), border-color .15s, background .15s; }
.choices.two .choice, .choices.three .choice { justify-content: center; text-align: center; }
.choice small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.choice:active { transform: scale(.97); }
.choice.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-1); }
.choice .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.choice.on .dot { border-color: var(--accent); background: var(--accent); }
.choice.on .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); }
.choice.multi .dot { border-radius: 7px; }
.choice.multi.on .dot::after { width: 10px; height: 6px; border-radius: 0; background: none; border: solid var(--on-accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.intent .choice { align-items: flex-start; }
.intent .badge { margin-top: 1px; }

.field { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 15px; }
.field:focus-within { border-color: var(--accent); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 19px; font-weight: 700; }
.field input::placeholder { color: #b3a698; font-weight: 500; }
.field .unit { color: var(--ink-3); font-weight: 700; font-size: 15px; flex: none; }
.field.num-f input { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { height: 40px; padding: 0 14px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.quick button.on { background: var(--ink-1); color: var(--bg); border-color: transparent; }
.quick button:active { transform: scale(.95); }

/* voice text */
.vt { background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 15px; overflow: hidden; }
.vt:focus-within { border-color: var(--accent); }
.vt textarea { width: 100%; min-height: 108px; border: 0; outline: 0; resize: none; background: none; padding: 14px 16px 6px; font-size: 17px; line-height: 1.55; }
.vt-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px 16px; border-top: 1px dashed var(--line); }
.vt-bar .tip { flex: 1; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.mic { flex: none; height: 52px; padding: 0 18px 0 14px; border-radius: 99px; background: var(--ink-1); color: var(--bg); font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 7px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mic svg { width: 22px; height: 22px; }
.mic.rec { background: var(--accent); }
.mic.busy { opacity: .6; }

.rec-layer { position: absolute; inset: 0; z-index: 90; background: rgba(31, 23, 16, .55); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .18s; }
.rec-layer.on { opacity: 1; }
.rec-card { width: 230px; padding: 26px 20px 20px; border-radius: 26px; background: var(--bg); text-align: center; box-shadow: var(--shadow-lg); }
.rec-card .ring { width: 86px; height: 86px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); position: relative; }
.rec-card .ring::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--accent-soft); animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.rec-card .ring svg { width: 38px; height: 38px; }
.rec-card .tm { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; margin-top: 14px; }
.rec-card .hint { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.rec-layer.cancel .ring { background: var(--down); }
.rec-layer.wait .ring { background: var(--ink-3); }
.rec-layer.wait .ring::before { animation: none; opacity: 0; }
.rec-layer.wait .tm { color: var(--ink-3); }
.rec-layer.cancel .hint { color: var(--down); font-weight: 800; }

/* photo */
.photo-box { border-radius: var(--r); overflow: hidden; background: var(--bg); border: 1.5px dashed var(--line-2); aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; color: var(--ink-3); position: relative; }
.photo-box img { width: 100%; height: 100%; object-fit: contain; display: block; background: #2a231c; }
.photo-box .ph { display: grid; gap: 8px; place-items: center; font-size: 15px; font-weight: 700; }
.photo-box .ph svg { width: 40px; height: 40px; color: var(--ink-2); }
.loc { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.loc.ok { color: var(--up); font-weight: 700; }

/* review */
.review { margin-top: 14px; }
.review .row { min-height: 54px; padding: 10px 14px; align-items: flex-start; }
.review .k { width: 92px; flex: none; font-size: 13.5px; color: var(--ink-3); font-weight: 700; padding-top: 2px; }
.review .v { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.review .v.miss { color: var(--down); }
.review.more { margin-top: 0; }
.more-note { margin: -4px 4px 10px; }
.review .v .tag { margin-left: 4px; font-size: 11.5px; }
.meter { display: flex; align-items: center; gap: 12px; padding: 14px; }
.meter .bar { flex: 1; height: 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--teal); }
.meter b { font-family: var(--mono); font-size: 18px; }

/* done stamp */
.done { position: absolute; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(243, 238, 230, .92); opacity: 0; pointer-events: none; transition: opacity .2s; }
.done.on { opacity: 1; pointer-events: auto; }
.stamp { width: 168px; height: 168px; border-radius: 50%; border: 5px solid var(--up); color: var(--up); display: grid; place-items: center; text-align: center; transform: rotate(-8deg) scale(.6); opacity: 0; transition: transform .45s var(--ease), opacity .2s; font-weight: 900; font-size: 26px; line-height: 1.2; }
.stamp small { display: block; font-size: 13px; font-weight: 700; }
.done.on .stamp { transform: rotate(-8deg) scale(1); opacity: 1; }
.done.queued .stamp { border-color: var(--warn); color: var(--warn); }

/* sheet */
.scrim { position: absolute; inset: 0; z-index: 80; background: rgba(31, 23, 16, .42); opacity: 0; pointer-events: none; transition: opacity .28s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 85; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 18px calc(env(safe-area-inset-bottom) + 18px);
         transform: translateY(102%); transition: transform .42s var(--ease); max-height: 86%; overflow-y: auto; box-shadow: var(--shadow-lg); }
.sheet.on { transform: none; }
.grab { width: 42px; height: 4px; border-radius: 99px; background: rgba(48, 32, 20, .16); margin: 0 auto 12px; }
.sheet h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.sheet .form { display: flex; flex-direction: column; gap: 10px; }
.sheet .field input { font-size: 17px; }
.lbl { font-size: 13.5px; font-weight: 800; color: var(--ink-2); margin: 14px 2px 8px; }  /* 表单标签：上一项输入框和下一个标签留 14px、标签和自己的输入框留 8px，和后台弹层一样（10-26 用户：「间距问题，太挤了」；原来 4px / -4px，各表单都挤） */
.lbl:first-child { margin-top: 2px; }

/* scripts (rendered markdown) */
.md { font-size: 16px; line-height: 1.7; color: var(--ink-1); }
.md h2 { font-size: 19px; margin: 18px 0 8px; } .md h3 { font-size: 17px; margin: 16px 0 6px; } .md h4 { font-size: 16px; margin: 14px 0 4px; }
.md p { margin: 8px 0; }
.md ul, .md ol { padding-left: 22px; margin: 8px 0; }
.md li { margin: 5px 0; }
.md li > ul, .md li > ol { margin: 4px 0; }
.md strong { font-weight: 800; }
.md q { quotes: "「" "」"; background: var(--teal-soft); color: var(--ink-1); padding: 0 3px; border-radius: 4px; }
.md blockquote { border-left: 3px solid var(--teal); padding: 6px 12px; margin: 10px 0; background: var(--bg); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.md hr { border: 0; border-top: 1px dashed var(--line-2); margin: 16px 0; }
.md-table { overflow-x: auto; margin: 10px -18px; padding: 0 18px; }
.md table { border-collapse: collapse; font-size: 14px; line-height: 1.5; min-width: 100%; background: var(--bg); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.md th { background: var(--panel-2); text-align: left; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.md th, .md td { padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 84px; }
.script-card { padding: 16px; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; }
.script-card + .script-card { border-top: 1px solid var(--line); }
.script-card .no { font-family: var(--mono); font-weight: 800; color: var(--accent); font-size: 15px; width: 24px; flex: none; }
.script-card .t { font-weight: 800; font-size: 16.5px; flex: 1; }

/* login */
.login { position: absolute; inset: 0; z-index: 100; background: var(--page); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 40px) 22px calc(env(safe-area-inset-bottom) + 20px); overflow-y: auto; }
.login .brand { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .08em; }
.login h1 { font-size: 28px; font-weight: 800; margin-top: 8px; line-height: 1.25; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.names button { height: 60px; border-radius: 15px; background: var(--bg); border: 1.5px solid var(--line-2); font-size: 18px; font-weight: 800; }
.names button:active { transform: scale(.97); }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 26px 0 8px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-2); }
.pin-dots i.on { background: var(--ink-1); border-color: var(--ink-1); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.keypad button { height: 64px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 26px; font-weight: 700; box-shadow: var(--shadow); }
.keypad button:active { background: var(--panel-2); transform: scale(.96); }
.keypad button.fn { font-family: var(--sans); font-size: 16px; background: none; border: 0; box-shadow: none; color: var(--ink-2); }
.err { color: var(--down); font-weight: 700; font-size: 14.5px; text-align: center; min-height: 22px; }

/* toast */
.toast { position: absolute; z-index: 99; left: 50%; bottom: calc(env(safe-area-inset-bottom) + var(--tabbar-h) + 18px); transform: translate(-50%, 16px); max-width: calc(100% - 40px);
         background: var(--ink-1); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* tower detail */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 16px; font-size: 15px; }
.kv dt { color: var(--ink-3); font-weight: 700; font-size: 13.5px; padding-top: 1px; }
.kv dd { font-weight: 700; overflow-wrap: anywhere; }
.kv dd.loc-dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.loc-t { flex: 1 1 140px; min-width: 0; }
.loc-acts { display: flex; gap: 6px; }
.loc-acts .mini, .loc-dd > .mini { display: inline-flex; align-items: center; gap: 4px; height: 32px; text-decoration: none; }
.call { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 800; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.stat { padding: 14px 16px; }
.stat .k { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.stat .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; margin-top: 2px; }
.stat .v small { font-size: 14px; color: var(--ink-3); margin-left: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rec-card .ring::before { display: none; }
}

/* 线索：打电话 */
.me-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.me-link svg { width: 16px; height: 16px; }
.tag.warn { background: rgba(154, 101, 18, .12); color: var(--warn); border-color: transparent; }
.lead { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; box-shadow: var(--shadow); }
.lead + .lead { margin-top: 10px; }
.lead.invalid { background: var(--panel-2); box-shadow: none; }
.lead .lh { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lead .ln { font-weight: 800; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.lead .lh .tag { flex: none; margin-top: 2px; }
.lead .lm { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; overflow-wrap: anywhere; }
.note-line { color: var(--ink-2) !important; }
.phones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dial { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); font-weight: 800; font-size: 15.5px; font-family: var(--mono); font-variant-numeric: tabular-nums; text-decoration: none; }
.dial svg { width: 16px; height: 16px; flex: none; }
.dial small { font-family: var(--sans); font-size: 12px; font-weight: 700; opacity: .9; }
.dial:active { transform: scale(.96); }
.dial.dead { background: var(--panel-2); color: var(--ink-3); }
.dial.dead span { text-decoration: line-through; }
.dial.shared { background: rgba(154, 101, 18, .10); color: var(--warn); }
.lfoot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 13.5px; font-weight: 700; }
.lfoot.ok { color: var(--up); }
.lfoot .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.link { border: 0; background: none; padding: 4px 2px; color: var(--accent); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.cm-undo { margin-top: 8px; color: var(--down); }
.cm-undo.sure { background: var(--down-soft); border-color: var(--down); }
/* 改标面板下面：这家的打电话记录、改动记录 */
.fx-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.fx-i { display: flex; gap: 10px; align-items: center; padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); }
.fx-i:first-child { border-top: 0; }
.fx-i.on { background: var(--accent-soft); }
.fx-i .main { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.fx-i b { color: var(--ink-1); }
.fx-i small { display: block; font-size: 12.5px; color: var(--ink-3); }
.fx-i .tag, .fx-i .mini { flex: none; }
/* 运输公司详情：问到的信息下面的按钮、沟通记录的图标 */
.cd-acts { display: flex; justify-content: flex-end; padding: 0 16px 14px; margin-top: -4px; }
.note-ic { background: var(--accent-soft); color: var(--accent); }
.mini { height: 36px; padding: 0 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.marks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; }
.marks.three { grid-template-columns: repeat(3, 1fr); }
.marks.four { grid-template-columns: repeat(4, 1fr); }
.mk-hint { margin: 6px 2px 0; font-size: 12.5px; }
.mk { min-height: 60px; padding: 8px 10px; border-radius: 14px; background: var(--bg); border: 1.5px solid var(--line-2); text-align: left; display: flex; flex-direction: column; justify-content: center; }
.mk b { font-size: 16px; font-weight: 800; }
.mk small { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.3; }
.mk.good { border-color: rgba(47, 122, 85, .45); background: var(--up-soft); }
.mk.good b { color: var(--up); }
.mk.good2 { border-color: rgba(46, 107, 99, .4); background: var(--teal-soft); }
.mk.good2 b { color: var(--teal); }
.mk.on { border-color: var(--up); box-shadow: 0 0 0 2px var(--up-soft); }
.mk.cur { position: relative; border-color: var(--ink-2); border-width: 2px; }
.mk.cur::after { content: "现在"; position: absolute; top: 6px; right: 8px; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--ink-1); color: var(--bg); }
.mk.day { align-items: center; text-align: center; min-height: 52px; }
.mk:active { transform: scale(.97); }
.saved { background: var(--up-soft); color: var(--up); font-weight: 800; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.saved small { font-weight: 600; color: var(--warn); }
.row .plan { color: var(--accent); }
.row .plan.late { color: var(--down); }
.row .call-btn { width: 40px; padding: 0; background: var(--teal-soft); color: var(--teal); }
.row .call-btn svg, .call-ic svg { width: 18px; height: 18px; }
.call-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-top: 1px; }

/* 合作成功 */
.badge.deal-b { background: var(--up); color: var(--on-accent); border: 0; }
.choice.deal { border-color: rgba(47, 122, 85, .45); background: var(--up-soft); }
.choice.deal.on { border-color: var(--up); background: var(--up-soft); box-shadow: 0 0 0 2px var(--up-soft); }
.status-now.deal { border-color: rgba(47, 122, 85, .35); background: var(--up-soft); }
.status-now.deal .t { color: var(--up); }

/* 照片和视频 */
.md-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.md-tile, .md-add { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.md-tile { background: #2a231c; }
.md-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #e8dcc6; }
.md-ph svg { width: 34px; height: 34px; }
.md-dur { position: absolute; left: 6px; top: 6px; font-size: 11.5px; font-weight: 800; color: #fffaf4; background: rgba(31, 23, 16, .6); padding: 1px 6px; border-radius: 6px; }
.md-st { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; font-weight: 800; padding: 3px 6px; color: #fffaf4; background: rgba(31, 23, 16, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-st.ok { background: rgba(47, 122, 85, .85); }
.md-st.go { background: rgba(46, 107, 99, .85); }
.md-st.bad { background: rgba(184, 64, 47, .9); }
.md-del { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(31, 23, 16, .6); color: #fffaf4; font-size: 14px; font-weight: 800; }
.md-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--bg); border: 1.5px dashed var(--line-2); font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.md-add svg { width: 28px; height: 28px; }
.md-add:active { transform: scale(.96); }
.gal { display: grid; gap: 10px; margin-bottom: 12px; }
.gal img, .gal video { width: 100%; border-radius: 16px; display: block; background: #2a231c; }
.gal-wait { display: flex; align-items: center; gap: 8px; padding: 18px 16px; border-radius: 16px; background: var(--panel-2); color: var(--ink-3); font-weight: 700; font-size: 14px; }
.gal-wait svg { width: 22px; height: 22px; }

/* 乡镇候选 */
.town-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -2px; max-height: 168px; overflow-y: auto; padding: 2px; }
.town-sug button { height: 36px; padding: 0 12px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.town-sug button small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.town-sug button:active { background: var(--ink-1); color: var(--bg); }
.town-new { font-size: 12.5px; color: var(--ink-3); align-self: center; padding: 0 4px; }
/* 待拜访 */
.row.todo { cursor: pointer; }
.badge.new { background: var(--teal-soft); color: var(--teal); font-family: var(--sans); font-size: 13px; }

/* 首页业绩看板 */
.board { margin-top: 12px; background: var(--bg); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 12px 14px 14px; }
.board-h { font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin: 2px 2px 8px; letter-spacing: .04em; }
.board-h + .st-row + .board-h { margin-top: 14px; }
.st-row { display: grid; gap: 8px; }
.st-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.st .k { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.st .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; line-height: 1.15; overflow-wrap: anywhere; }
.st .v small { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.st .s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.st.big .v { font-size: 26px; }
.st[data-k="developed"] { background: var(--up-soft); }
.st[data-k="developed"] .k, .st .half[data-k="sure_t"] .k { color: var(--up); }
.st.pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
.st.pair .half { padding: 10px 12px; min-width: 0; }
.st.pair .half + .half { border-left: 1px solid var(--line); }

/* 意向转化率：意向/确认那张卡底下一行 */
.st.pair .pf { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 8px 12px 9px; border-top: 1px solid var(--line); }
.st.pair .pf .k { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.st.pair .pf b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 16px; }
.pbar { display: block; height: 6px; border-radius: 99px; background: rgba(48, 32, 20, .08); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--up); border-radius: 99px; }
.st.pair .pf .s { grid-column: 1 / -1; margin-top: 0; }

/* 首页「合作要跟的」 */
.badge.fu { font-family: var(--sans); font-size: 14px; }
.badge.fu.rejected { background: var(--down-soft); color: var(--down); }
.badge.fu.waiting { background: rgba(154, 101, 18, .12); color: var(--warn); }
.badge.fu.cold { background: var(--panel-2); color: var(--ink-3); border: 1px solid var(--line); }
.badge.fu.due { background: var(--accent-soft); color: var(--accent); }

/* 塔详情：合作机会、单子 */
.pcard { padding: 13px 14px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.pcard .ph { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pcard .ph b { font-size: 17px; font-weight: 800; }
.pcard .ph .muted { font-size: 13.5px; }
.ptag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); align-self: center; }
.ptag.opp { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.pkv { font-size: 14px; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.pkv:empty { display: none; }
.pkv.hint { color: var(--warn); font-size: 13px; }
.pact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.mini.main { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.pcard.opp { border-color: rgba(46, 107, 99, .28); }
.pcard.cold { background: var(--panel-2); }
.pcard.none { border-style: dashed; box-shadow: none; }
.pcard.ord.ok { border-color: rgba(47, 122, 85, .35); background: linear-gradient(var(--up-soft), var(--up-soft)), var(--bg); }
.pcard.ord.ok .ph b { color: var(--up); }
.pcard.ord.wait .ph b { color: var(--warn); }
.pcard.ord.bad .ph b { color: var(--down); }
.pprog { height: 8px; border-radius: 99px; background: rgba(48, 32, 20, .08); overflow: hidden; margin-top: 2px; }
.pprog i { display: block; height: 100%; background: var(--up); border-radius: 99px; }
.reject-box { background: var(--down-soft); color: var(--down); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; margin-bottom: 6px; }
.reject-box small { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.rows.ended { margin-bottom: 12px; }
.ev-ic svg { width: 16px; height: 16px; }
.ev-ic.order { background: var(--up-soft); color: var(--up); }
.ev-ic.intake { background: var(--accent-soft); color: var(--accent); }
.ev-ic.tower { background: var(--panel-2); color: var(--ink-3); }

/* 合作机会、申请转合作中的表单 */
.fw { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.fw .lbl { margin: 0 2px; }
.fw .lbl .req { color: var(--accent); }
.fw .lbl .hint { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.fw .choices .choice { min-height: 50px; font-size: 16px; padding: 10px 14px; }
.fw.miss .lbl { color: var(--down); }
.fw.miss .field, .fw.miss .vt, .fw.miss .choices .choice { border-color: var(--down); }
.fw.miss .quick button { border-color: rgba(184, 64, 47, .5); }
.sec-h { font-size: 15px; font-weight: 800; margin: 22px 2px -4px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
#detail-body .err { margin-top: 12px; }

/* 首页卡片都能点开看清单：标签后面一个小箭头，按下有反馈；合作机会卡上的「待转」单独标出来 */
.st[data-card], .st .half[data-card], .st .pf[data-card] { cursor: pointer; transition: background .15s; -webkit-tap-highlight-color: transparent; }
.st[data-card]:active, .st .half[data-card]:active, .st .pf[data-card]:active { background: rgba(48, 32, 20, .07); }
.st.pair { overflow: hidden; }
.st .chev svg { width: 13px; height: 13px; vertical-align: -2px; margin-left: 1px; opacity: .6; }
.st .flag { display: inline-block; margin-top: 5px; font-size: 12.5px; font-weight: 800; color: var(--warn); background: rgba(154, 101, 18, .13); padding: 2px 9px; border-radius: 99px; }
.st .flag b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; }
.row .rv { flex: none; max-width: 40%; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: right; }
.card-note { margin: 2px 2px 12px; line-height: 1.5; }

/* 塔的标签：联盟（青）、风险（红，带 ⚠）、喜好、其他 */
.tg { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; margin: 0 4px 0 0; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; }
.tg.al { background: var(--teal-soft); color: var(--teal); border-color: rgba(46, 107, 99, .35); }
.tg.risk { background: var(--down-soft); color: var(--down); border-color: rgba(184, 64, 47, .35); }
.tg.like { background: var(--accent-soft); color: var(--accent); }
.tg.etc { background: var(--panel-2); color: var(--ink-2); border-color: var(--line); }
.tag-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 0; width: 100%; text-align: left; margin: 2px 0 10px; min-height: 30px; }
.tag-line.sm { margin: 4px 0 0; min-height: 0; }
.tag-line .tag-edit { margin-left: auto; font-size: 13.5px; font-weight: 800; color: var(--accent); padding: 4px 2px 4px 10px; }
.tag-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.tag-pick .tg { height: 38px; padding: 0 13px; font-size: 14px; opacity: .5; }
.tag-pick .tg.on { opacity: 1; box-shadow: 0 0 0 2px currentColor inset; }
.tg-new { display: flex; gap: 8px; margin-top: 8px; }
.tg-new input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 12px; font-size: 16px; background: var(--bg); }

/* 申请转合作中：财务维护的签约单位、收款账户只显示不填 */
.locked-f { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding: 11px 13px; border-radius: 12px; background: var(--panel-2); margin-bottom: 10px; }
.locked-f > b, .locked-f > span:not(.k) { grid-column: 1 / -1; overflow-wrap: anywhere; }
.locked-f .k + b { grid-column: auto; }
.locked-f .k { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.locked-f small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
/* 逐车入库（二期） */
.badge.fu.back { background: var(--down-soft); color: var(--down); }
.badge.fu.noorder { background: rgba(154, 101, 18, .12); color: var(--warn); }
.tk-list { display: grid; gap: 2px; margin-top: 2px; }
.tk-r { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 5px 0; border-top: 1px dashed var(--line); }
.tk-r:first-child { border-top: 0; }
.tk-r .tk-d { flex: none; width: 38px; color: var(--ink-3); font-size: 12.5px; }
.tk-r .tk-w { flex: 1; min-width: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-r b { flex: none; font-size: 14px; }
.tk-r.back .tk-w { color: var(--down); font-weight: 600; }
.plate-s { flex: none; font-family: var(--mono); font-weight: 700; font-size: 12.5px; background: #f2c418; color: #17130f; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .6); border-radius: 4px; padding: 1px 6px; letter-spacing: .02em; }
a.ct-r { color: inherit; text-decoration: none; }
a.ct-r:active { background: var(--panel-2); }
.tag.first { background: var(--teal-soft); color: var(--teal); }
/* 运输公司（10-16） */
.seg.kind { margin-top: 2px; }
/* 分组：没打 / 再打 / 有效 / 无效 / 全部，名字在上、数字在下（五个挤得下） */
.seg.grp button { height: 50px; min-width: 0; padding: 0 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.seg.grp button span { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.seg.grp button b { font-size: 16.5px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.grp-sum { margin: 8px 2px 0; font-size: 13px; }
/* 待打里面再分：没打过 / 打过 */
.seg.sub { margin-top: 8px; padding: 3px; border-radius: 11px; }
.seg.sub button { height: 34px; border-radius: 8px; font-size: 14px; }
.seg.sub[hidden] { display: none; }
/* 二级标签（U-270）：挂在上一级选中项下面的托盘，尖角对准父项；文字按钮，选中是橙色下划线，和一级的白色滑块分开 */
.subtabs { --sub-bg: #ebe4da; position: relative; display: flex; margin-top: 10px; padding: 2px 4px; border-radius: 12px; background: var(--sub-bg); border: 1px solid rgba(48, 32, 20, .08); }
.subtabs::before { content: ''; position: absolute; top: -7px; left: var(--nx, 24px); width: 12px; height: 12px; margin-left: -7px; background: var(--sub-bg); border-left: 1px solid rgba(48, 32, 20, .08); border-top: 1px solid rgba(48, 32, 20, .08); border-radius: 2px 0 0 0; transform: rotate(45deg); }
.subtabs:not(.nx)::before { display: none; }
.subtabs[hidden] { display: none; }
.subtabs button { position: relative; flex: 1; height: 40px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); background: none; }
.subtabs button.on { color: var(--ink-1); font-weight: 800; }
.subtabs button.on::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 28px; margin-left: -14px; height: 3px; border-radius: 3px; background: var(--accent); }
.subtabs.kind { margin-top: 12px; }
.lm.scope-line { font-size: 12.5px; color: var(--ink-3); }
.who.me-switch { color: var(--accent); font-weight: 700; padding: 6px 0 6px 10px; }

/* 结算卡（10-17）：交货确认单一行一张，确认过的带「转给塔主」 */
.dl-r .chip-btn { flex: none; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--accent); color: var(--accent); background: transparent; font-weight: 800; font-size: 13px; }

/* 拜访记录改动记录（10-17）：改了哪几项、改前改后 */
.ed-log { padding: 4px 14px; }
.ed-it { padding: 10px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.ed-it:first-child { border-top: 0; }
.ed-l { color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.ed-top { margin-bottom: 12px; padding: 12px 14px 14px; }
.ed-top .q-sub:first-child { margin-top: 0; }

/* 一批货的流程（10-18）：「今天」顶上要你处理的；门口等回话的左边一道红条 */
.fl-hook { font-size: 15px; font-weight: 700; line-height: 1.5; margin: -4px 2px 10px; color: var(--ink-2); overflow-wrap: anywhere; }
.fl-hot .row { box-shadow: inset 4px 0 0 var(--down); }
.fl-iss { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.fl-ih { font-size: 16px; line-height: 1.5; }
.fl-iss .choice { min-height: 64px; }
.fl-iss .choice small { font-weight: 500; }
.fl-more { display: grid; gap: 10px; }
.fl-pr { padding: 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.fl-prh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fl-prh b { font-size: 17px; }

/* 首页「付款进度」和下面的通知卡片之间留出间距（design-review 10-18） */
#pay-top { margin-bottom: 12px; }
#pay-top:empty { margin-bottom: 0; }
.choices.two .choice { text-wrap: balance; }
.q-rule { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; padding: 0 2px; }
.plate-s { white-space: nowrap; }

/* 10-19（U-183）：进行中的订单卡、运力填写、运力调度 */
.ocards { display: flex; flex-direction: column; gap: 10px; }
.ocard { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ocard.mine { box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.oc-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oc-t { font-size: 17px; font-weight: 800; color: var(--ink-1); }
.oc-now { font-size: 15px; font-weight: 800; color: var(--accent); }
.oc-now small { font-size: 12px; }
.oc-st { display: flex; flex-wrap: wrap; gap: 6px; }
.ost { display: inline-block; padding: 3px 10px; border-radius: 12px; background: var(--panel-2); font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.45; }
.ost small, .oc-now small { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-left: 5px; white-space: nowrap; }
.ost.mine { background: var(--accent-soft); color: var(--accent); }
.ost.gap { background: rgba(154, 101, 18, .1); color: var(--warn); }
.oc-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 8px; }
.oc-cap .mini { flex: none; white-space: nowrap; }
/* 运力方案（10-19，U-184）：出车几辆（加减）、趟次三选一，下面马上排出今日起 5 天和预计交完 */
.cap-f { display: grid; grid-template-columns: auto 52px minmax(0, 1fr) 52px auto; align-items: center; gap: 8px; margin-top: 12px; }
.cap-l, .cap-u { font-weight: 800; font-size: 15px; }
.cap-b { height: 48px; border-radius: 12px; background: var(--panel-2); font-size: 22px; font-weight: 700; color: var(--ink-1); }
.cap-f input { height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); text-align: center; font-size: 20px; font-weight: 800; width: 100%; min-width: 0; }
.cap-seg button { font-size: 13.5px; }
.cap-sum { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.cap-sum b { color: var(--ink-1); font-variant-numeric: tabular-nums; }
.cap-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cap-days span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; background: var(--panel-2); min-width: 0; }
.cap-days span b { font-size: 17px; font-variant-numeric: tabular-nums; }
.cap-days span small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.cap-days span.rest, .wxd.rest { background: repeating-linear-gradient(135deg, rgba(79, 126, 168, .14) 0 5px, transparent 5px 11px), var(--panel-2); }
.cap-days span.rest b { font-size: 14px; color: #2f5d86; }
.cap-note { width: 100%; height: 44px; margin-top: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 12px; font-size: 15px; }
.late { color: var(--warn, #9a6512); }
/* 运力调度首页：未来 5 天天气、雨休 */
.wx-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.wxd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-1); min-width: 0; }
.wxd.wet { border-color: rgba(79, 126, 168, .5); }
.wxd small { font-size: 11.5px; color: var(--ink-3); }
.wxd b { font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.wx-k { font-size: 12px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.wxd.wet .wx-k, .wxd.rest .wx-k { color: #2f5d86; }
.wxd:disabled { opacity: 1; }
/* 运力调度（10-19）：底部只有「今日 · 运输公司」；市场经理没有「运输公司」这一栏（线索在「塔」里，U-218） */
#tabbar .disp { display: none; }
.is-dispatch #tabbar .disp { display: flex; }
.is-dispatch #tabbar [data-tab="orders"], .is-dispatch #tabbar [data-tab="towers"], .is-dispatch #tabbar [data-tab="me"], .is-dispatch #fab, .is-dispatch .fab-label { display: none !important; }
/* 预估总量、塔上剩余（10-19，U-186）：一行「标签 输入框 吨」 */
.cap-f.est-f { grid-template-columns: auto minmax(0, 1fr) auto; }
/* 切换身份（10-19，U-188） */
.role-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; padding: 8px 12px; border-radius: 12px; background: var(--panel-2); font-size: 13px; color: var(--ink-2); }
.role-bar span { font-weight: 700; }
/* 未来 7 天天气（10-19）：市场经理首页顶上一行；运力调度首页 7 格（后 2 天只看天气） */
.wx7m { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: -2px 0 12px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.wx7m > div { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; border-radius: 9px; min-width: 0; text-align: center; }
.wx7m small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wx7m b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wx7m .wet { background: rgba(79, 126, 168, .12); } .wx7m .wet b { color: #2f5d86; }
.wx7m .rest { background: repeating-linear-gradient(135deg, rgba(79, 126, 168, .16) 0 5px, transparent 5px 11px); } .wx7m .rest b { color: #2f5d86; }
.wx-days.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wx-days.seven .wxd { padding: 8px 0; }
.wx-days.seven .wx-k { font-size: 11px; }
.wxd.far { opacity: .8; }

/* 订单流程节点图（U-211）：和后台同一套样式，手机上横向可滑 */
.oc-nodes { display: flex; align-items: flex-start; overflow-x: auto; margin: 8px -2px 2px; padding: 2px; scrollbar-width: none; }
.oc-nodes::-webkit-scrollbar { display: none; }
.oc-n { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 50px; background: none; border: 0; padding: 0; font: inherit; color: var(--ink-3); }
.oc-n i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; font-style: normal; font-size: 12px; font-weight: 800; border: 1.5px dashed var(--line-2); color: var(--ink-3); background: var(--bg); }
.oc-n span { font-size: 11px; font-weight: 600; white-space: nowrap; }
.oc-n em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--down); }
.oc-n.s-done i { border: 1.5px solid var(--teal); background: var(--teal-soft); color: var(--teal); }
.oc-n.s-on i { border: 1.5px solid var(--ink-2); background: var(--ink-1); color: var(--bg); }
.oc-n.s-on span { color: var(--ink-1); font-weight: 800; }
.oc-n.mine i { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.oc-n.mine span { color: var(--accent); font-weight: 800; }
.oc-ln { flex: none; width: 10px; border-top: 1.5px solid var(--teal); margin-top: 13px; }
.oc-ln.s-todo { border-top-style: dashed; border-color: var(--line-2); }

/* ── 以订单为主导（10-19，U-218 线框 B4）：首页顶上切「待处理 / 今日到车 / 付款」 ─────────────── */
:root { --accent-on-ink: #f2a06c; }  /* 深色块上的橙色数字（对 --ink-1 约 8:1） */
/* 选中 = 实心深色块 + 亮橙数字（用户：「激活的 tab 不够显眼」）；有超时的打红点 */
.hseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 10px 0 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; }
.hseg button { position: relative; height: 48px; min-width: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 5px;
               font-size: 15px; font-weight: 800; color: var(--ink-3); white-space: nowrap; transition: background .2s, color .2s; }
.hseg button b { font-family: var(--mono); font-size: 15.5px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hseg button.on { background: var(--ink-1); color: var(--bg); box-shadow: 0 10px 20px -12px rgba(31, 23, 16, .7); }
.hseg button.on b { color: var(--accent-on-ink); }
.hseg button:active { transform: scale(.97); }
.hseg .dot { position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 2px var(--panel-2); }
.hseg .dot[hidden] { display: none; }
.hseg button.on .dot { box-shadow: 0 0 0 2px var(--ink-1); }
.hpane[hidden] { display: none; }
.lane { display: flex; align-items: baseline; gap: 6px; margin: 18px 4px 8px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.lane small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
/* 待处理：一件一行，右侧是这件事的动作；轮到车在门口等的（答复退车、定价）用实心按钮 */
.rows.tasks .row.task { align-items: flex-start; }
.rows.tasks .row.task .badge { margin-top: 1px; }
.row.task .act { align-self: center; }
.row .act.main { background: var(--accent); color: var(--on-accent); }
.row .s.wl { margin-top: 3px; }
.row.is-late { box-shadow: inset 4px 0 0 var(--down); }
/* 超时提示：钟面指针转、外圈向外扩散（只动 transform / opacity；减弱动态效果时停住，见下方） */
.overdue { display: inline-flex; align-items: center; gap: 4px; color: var(--down); font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.lt-ic { width: 16px; height: 16px; flex: none; overflow: visible; }
.lt-ic .lt-hand { transform-origin: 12px 13.5px; animation: lt-spin 2.4s linear infinite; }
.lt-ic .lt-pulse { transform-origin: 12px 13.5px; animation: lt-pulse 1.8s ease-out infinite; }
@keyframes lt-spin { to { transform: rotate(360deg); } }
@keyframes lt-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.75); opacity: 0; } }
/* 今日到车：一车一行，右边是走到哪（已入库 / 卸货中 / 待检验 / 待决定 / 待定价 / 已退车 / 未到） */
.day-sum { margin: 0 4px 2px; font-size: 13.5px; color: var(--ink-2); } .day-sum b { font-family: var(--mono); color: var(--ink-1); }
.row.dtk { min-height: 54px; padding: 10px 14px; }
.row.dtk .s { font-size: 13.5px; color: var(--ink-2); }
.dleft { flex: none; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.dst { flex: none; font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.dst.ok { background: var(--up-soft); color: var(--up); }
.dst.ing { background: var(--teal-soft); color: var(--teal); }
.dst.bad { background: var(--down-soft); color: var(--down); }
.dst.acc { background: var(--accent-soft); color: var(--accent); }
.dst.wait { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
/* 付款：四步进度条（塔主确认 → 审批 → 付款 → 回执），当前一步写名称和等了多久；付过的可「发回执」 */
.row.pay { align-items: center; }
.pl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.pl i { height: 5px; border-radius: 3px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.pl i.d { background: var(--up); box-shadow: none; }
.pl i.n { background: var(--accent); box-shadow: none; }
.pl i.x { background: var(--down); box-shadow: none; }
.pll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.pll span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pll .dn { color: var(--up); } .pll .cur { color: var(--accent); font-weight: 800; }
.row.pay .pnow { color: var(--ink-1); font-weight: 800; }
.row.pay .pact { display: flex; justify-content: flex-end; margin-top: 8px; }
.row .mini.main { flex: none; }  /* .row .main（行内主体 flex:1）会把实心小按钮拉满 */
.mini.main { background: var(--accent); color: var(--on-accent); border-color: transparent; }
/* ＋ 新增：四个选项，新增订单排第一 */
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; margin-bottom: 10px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.opt:active { transform: scale(.98); }
.opt.first { border-color: rgba(196, 86, 31, .45); background: var(--accent-soft); }
.opt .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--panel-2); color: var(--ink-1); flex: none; }
.opt.first .ic { background: var(--accent); color: var(--on-accent); }
.opt .ic svg { width: 24px; height: 24px; }
.opt .ot b { display: block; font-size: 16px; font-weight: 800; }
.opt .ot small { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-3); }
/* 塔 = 我的塔 + 线索；话术是「我的」的二级页 */
.seg.tw-sw { margin: 0 0 12px; }
.back-link { display: inline-flex; align-items: center; gap: 2px; height: 36px; margin: -4px 0 4px -6px; padding: 0 8px 0 2px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); border-radius: 10px; }
.back-link:active { background: var(--panel-2); }
@media (prefers-reduced-motion: reduce) {
  .lt-ic .lt-hand, .lt-ic .lt-pulse { animation: none; }
  .lt-ic .lt-pulse { opacity: 0; }
}

/* ── 通知中心（10-20，U-219）：首页顶上铃铛 + 未读数；二级页一条一张卡，未读左侧橙条 ── */
.top-r { display: flex; align-items: center; gap: 6px; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-2); }
.bell:active { background: var(--panel-2); transform: scale(.94); }
.bell-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--down); color: #fff;
          font-size: 11px; font-weight: 800; font-family: var(--mono); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--page); }
.bell-n[hidden] { display: none; }
.ib-q { margin-bottom: 10px; }  /* 通知中心搜索（U-639） */
.ib-fl { margin: 2px 0 12px; }
.ib-hits { margin: -4px 2px 10px; }
.ib-list { display: flex; flex-direction: column; gap: 10px; }
.ib { padding: 12px 14px; }
.ib.unread { box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.ib.voided .ib-t, .ib.voided .ib-b { text-decoration: line-through; text-decoration-color: rgba(184, 64, 47, .55); color: var(--ink-3); }
.ib-h { display: flex; align-items: center; gap: 6px; }
.ib-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ib-time { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }
.ib-t { margin-top: 7px; font-size: 15.5px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.ib-b { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ib-f { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.ib-f .pact { margin: 0 0 0 auto; }
.ib-bad { color: var(--down); }
/* 催办：订单卡上卡在别人手里的那一步 */
.ost-urge { margin-left: 6px; height: 24px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg); color: var(--accent); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.ost-urge:active { transform: scale(.94); }

/* ── U-222 交互层落在手机端的几处（动效本身在 static/shared/fx.css）──────────── */
.lane:has(.lane-r) small { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane-r { margin-left: auto; flex: none; display: flex; gap: 4px; align-self: center; }
.lane-b { flex: none; white-space: nowrap; height: 30px; padding: 0 4px 0 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 1px; font-size: 13px; font-weight: 800; color: var(--accent); }
.lane-b svg { width: 16px; height: 16px; }
.lane-b:active { opacity: .6; }
.odeck { margin: 0 0 4px; }
.odc { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 14px 0 16px; text-align: left; width: 100%; overflow: hidden; }
.odc.mine { box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.odc:active { background: var(--panel-2); }
.odc-h { display: flex; align-items: center; gap: 7px; min-width: 0; }
.odc-h b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.odc-h .tag { flex: none; }
.odc-h .go { margin-left: auto; flex: none; color: var(--ink-3); display: grid; }
.odc-s { font-size: 13.5px; font-weight: 800; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odc-s .muted { font-weight: 600; }
.dk-hint { margin: 8px 4px 0; font-size: 12.5px; color: var(--ink-3); }
.fx-deck:not(.open) .odc + .odc { box-shadow: 0 1px 2px rgba(60, 38, 20, .05); }
/* 定价按签约主体分组、统一单价、价格范围提示（U-356） */
.pr-grp + .pr-grp { margin-top: 16px; }
.pr-gh { display: grid; gap: 6px; margin: 0 2px 10px; }
.pr-gt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pr-gt b { font-size: 15px; }
.pr-all { max-width: 220px; }
.pr-chk { font-size: 13px; font-weight: 700; }
.pr-chk.bad { color: var(--down); }
.pr-chk.low { color: var(--warn, #b7791f); }
.pr-low .row { align-items: center; gap: 12px; }
.pr-rg { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.fl-all { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 2px 8px; }
.fl-prh .fx-ck { align-self: center; margin-right: 2px; }
.fb-sum { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255, 250, 244, .35); font-weight: 700; font-size: 15px; opacity: .92; }
.fb-sum b { font-weight: 800; }
.cap-f.cap-wf { align-items: center; }
.cap-w { min-width: 0; }
.cap-f .fx-wheel input { height: 42px; border: 0; background: transparent; border-radius: 11px; font-size: 22px; }
.cap-f .fx-wheel input:focus { background: var(--bg); }
.login-alt { display: block; margin: 18px auto 0; padding: 10px 6px; text-align: center; font-size: 14px; font-weight: 700; color: var(--teal); text-decoration: none; }
.login-alt:active { opacity: .6; }

/* 处置详情（10-20，U-227）：问题卡、化验数据格子（超标标红）、照片、电话（点了直接拨）、车辆信息、处理记录 */
.cs-top { padding: 14px 16px; display: grid; gap: 6px; }
.cs-h > .tag, .cs-h > .pill { flex: none; white-space: nowrap; }  /* 状态标签不被长塔名挤成两行（10-26） */
.cs-top.bad { border-color: rgba(184, 64, 47, .35); background: linear-gradient(var(--down-soft), var(--down-soft)), var(--bg); }
.cs-h { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.cs-h b { min-width: 0; overflow-wrap: anywhere; }
.cs-what { font-size: 15.5px; line-height: 1.55; }
.cs-lab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cs-lab > div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.cs-lab span { display: block; font-size: 12.5px; color: var(--ink-3); }
.cs-lab b { font-size: 18px; font-weight: 800; }
.cs-lab small { margin-left: 2px; font-size: 12px; color: var(--ink-3); }
.cs-lab .bad { background: var(--down-soft); border-color: rgba(184, 64, 47, .35); }
.cs-lab .bad b, .cs-lab .bad span { color: var(--down); }
.cs-lab .warn { background: rgba(154, 101, 18, .1); border-color: rgba(154, 101, 18, .35); }
.cs-lab .warn b, .cs-lab .warn span { color: var(--warn); }
.cs-ph { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; }
.cs-ph a { flex: none; width: 120px; text-decoration: none; color: var(--ink-3); font-size: 12.5px; text-align: center; }
.cs-ph img { display: block; width: 120px; height: 90px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: 4px; }
.cs-tels .row { text-decoration: none; color: inherit; }
.cs-kv { padding: 6px 14px; }
.cs-done { margin: 0 2px 6px; line-height: 1.5; }
.cs-rv { float: right; margin: 0 2px 4px 10px; font-size: 12.5px; }  /* 已处理那条右边「修改答复」（U-367） */
.cs-ev { padding: 6px 14px; }
.cs-ev > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; font-size: 13px; padding: 7px 0; color: var(--ink-2); }
.cs-ev > div + div { border-top: 1px dashed var(--line); }
.fl-ih .cs-go { margin-left: 8px; vertical-align: 2px; }
.cs-kv .pkv { display: flex; gap: 10px; padding: 7px 0; }
.cs-kv .pkv + .pkv { border-top: 1px dashed var(--line); }
.cs-kv .pkv span { flex: none; width: 64px; color: var(--ink-3); }
.cs-kv .pkv b { font-weight: 700; min-width: 0; }

/* 统一登录（10-20，U-228）：按角色分组列名字；后台人员用密码框 */
.login .lg-h { margin: 22px 2px 0; font-size: 13.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .04em; }
.login .lg-h + .names { margin-top: 8px; }
.lg-pw { display: grid; gap: 10px; margin-top: 26px; }
.lg-pw input { height: 56px; border-radius: 15px; border: 1.5px solid var(--line-2); background: var(--bg); padding: 0 16px; font-size: 18px; color: var(--ink-1); }
.lg-pw input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lg-pw .btn { height: 56px; font-size: 17px; }
#sheet .field + .field { margin-top: 10px; }
/* 底部弹框里直接拼的输入框、文本框、按钮行、选项（不在 .form 里）和前面的块留 10px；标题、小标签后面不加（10-29 U-642 排查：到库短重处置、修改答复几块贴在一起） */
#sheet-body > :not(h3, .lbl, .q-sub) + :is(.field, .vt, .btn-row, .choices) { margin-top: 10px; }
#sheet .field:first-of-type { margin-top: 14px; }

/* 管理层登录（10-20）：名单底部的入口 + 弹窗 */
.login .lg-mgmt { margin: auto auto 0; padding: 26px 16px 6px; background: none; border: 0; color: var(--ink-3); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lg-modal { position: absolute; inset: 0; z-index: 5; background: rgba(28, 20, 12, .42); display: flex; align-items: center; justify-content: center; padding: 22px; }
.lg-card { width: 100%; max-width: 340px; background: var(--bg); border-radius: 20px; padding: 22px 20px 18px; display: grid; gap: 10px; box-shadow: var(--shadow-lg); }
.lg-card h2 { font-size: 20px; font-weight: 800; }
.lg-card .inp { height: 52px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--page); padding: 0 14px; font-size: 17px; color: var(--ink-1); }
.lg-card .inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lg-card .err { min-height: 18px; color: var(--down); font-size: 13.5px; }
.lg-card .lg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lg-card .lg-btns .btn { height: 50px; font-size: 16px; }

/* 登录页（10-20 用户：「页面登录不要做这个手机背景，做成正常页面登录页即可，背景加上玉米干粮堆在晒场的图片，阳光明媚」）
   手机、app：照旧全屏；宽屏：整页晒场照片，登录卡片居左，不再套手机外框 */
.lg-panel { display: flex; flex-direction: column; flex: 1 0 auto; min-height: 100%; }
@media (min-width: 720px) {
  .login { position: fixed; inset: 0; z-index: 100; padding: 0; display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
           background: linear-gradient(90deg, rgba(34, 22, 8, .34) 0%, rgba(34, 22, 8, .12) 42%, rgba(34, 22, 8, 0) 70%), #d9c79f url(/static/m/login-bg.jpg?v=1) center 62% / cover no-repeat; }
  .lg-panel { flex: 0 0 auto; min-height: 0; width: min(660px, calc(100vw - 64px)); max-height: calc(100vh - 48px); overflow-y: auto; margin-left: max(32px, 8vw);
              scrollbar-width: none;
              padding: 30px 30px 18px; border-radius: 22px; background: rgba(251, 248, 241, .95); border: 1px solid rgba(255, 255, 255, .6);
              box-shadow: 0 34px 90px -24px rgba(40, 24, 6, .55), 0 2px 6px rgba(40, 24, 6, .08); }
  .lg-panel h1 { font-size: 26px; }
  .lg-panel::-webkit-scrollbar { display: none; }
  /* 名单两栏排（10-20 用户：「不要滚动条」）：各组左右并排，组内一行两人，一屏放得下 */
  .lg-panel .lg-gs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; align-items: start; }
  .lg-panel .lg-h { margin-top: 16px; }
  .lg-panel .names { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lg-panel .names button { height: 44px; font-size: 16px; border-radius: 12px; }
  .lg-panel .keypad { width: 100%; max-width: 320px; align-self: center; margin-top: 18px; }
  .login .lg-mgmt { margin-top: 22px; padding-top: 10px; }
}

/* 登录前（10-20 用户：「login 页面刷新的时候，还会闪现手机背景的老的登录页面」）：还没确定登没登录时不画外框和首页，登录页出来前先是登录页的底 */
html.pre-login .phone > :not(.login) { visibility: hidden; }
@media (min-width: 560px) {
  html.pre-login body { background: #d9c79f url(/static/m/login-bg.jpg?v=1) center 62% / cover no-repeat; }
  html.pre-login .phone { background: transparent; border-color: transparent; box-shadow: none; }
}
/* 开关（U-261 锁价锁量） */
.swr { width: 100%; min-height: 62px; padding: 12px 14px 12px 16px; border-radius: 15px; background: var(--bg); border: 1.5px solid var(--line-2); display: flex; align-items: center; gap: 12px; text-align: left; transition: border-color .15s, background .15s; }
.swr-t { flex: 1; min-width: 0; }
.swr-t b { display: block; font-size: 17px; }
.swr-t small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.swr .sw { flex: none; position: relative; width: 50px; height: 30px; border-radius: 99px; background: var(--line-2); transition: background .18s var(--ease); }
.swr .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow); transition: transform .18s var(--ease); }
.swr.on { border-color: var(--accent); background: var(--accent-soft); }
.swr.on .sw { background: var(--accent); }
.swr.on .sw::after { transform: translateX(20px); }
/* 结算确认单图片（U-272：经理在 app 上看图确认） */
.dl-pic { padding: 8px; }
.dl-pic img { display: block; width: 100%; height: auto; border-radius: 8px; }
.dl-pic .meta { margin: 6px 4px 0; text-align: center; }

/* ── 登录页（10-22，U-302 用户：「还原到正常的输入用户名+密码的登录形式」「app 的登录页面背景图沿用当前 pc 端登录页的背景图」）──
   一张卡片：用户名、密码（标签看得见，密码可显示）、登录。手机、app：晒场 + 烘干塔照片铺满，上半屏露天空和塔，卡片在下半屏（拇指够得着）；
   键盘弹起时整页可滚，输入框不被挡。电脑：沿用整页照片 + 左侧卡片（上面 ≥720 的规则），卡片收窄到表单宽 */
.lg-panel.lg-u { flex: 0 0 auto; min-height: 0; margin-top: auto; padding: 22px 20px 16px; border-radius: 22px;
                 background: rgba(251, 248, 241, .96); border: 1px solid rgba(255, 255, 255, .65);
                 box-shadow: 0 24px 60px -24px rgba(40, 24, 6, .55), 0 2px 6px rgba(40, 24, 6, .08); }
.lg-u h1 { font-size: 25px; margin-top: 4px; text-wrap: balance; }
.lg-form { display: grid; gap: 6px; margin-top: 12px; }
.lg-fld { margin: 8px 2px 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.lg-form .inp { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); padding: 0 14px; font-size: 17px; color: var(--ink-1); }
.lg-form .inp::placeholder { color: var(--ink-3); }
.lg-form .inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lg-pwrap { position: relative; }
.lg-pwrap .inp { padding-right: 54px; }
.lg-eye { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-3); }
.lg-eye:active { background: var(--panel-2); }
.lg-eye[aria-pressed="true"] { color: var(--accent); }
.lg-form .err { min-height: 20px; margin: 2px 2px 0; color: var(--down); font-size: 13.5px; text-wrap: pretty; }
.lg-go { width: 100%; height: 54px; font-size: 17px; }
.lg-foot { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-3); }
.lg-peer { display: block; margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--accent); }  /* 去兄弟公司登录（U-651） */
@media (max-width: 719.98px) {
  /* 竖屏上照片放大、往上提：烘干塔和粮堆落在卡片上方（地平线约在照片 53% 高处） */
  .login { padding: calc(env(safe-area-inset-top) + 16px) 14px calc(env(safe-area-inset-bottom) + 14px);
           background: #cfe3ee url(/static/m/login-bg.jpg?v=1) 53% 74% / auto 168% no-repeat; }
  html.pre-login .phone { background: #cfe3ee url(/static/m/login-bg.jpg?v=1) 53% 74% / auto 168% no-repeat; }
}
@media (min-width: 720px) {
  .lg-panel.lg-u { width: min(420px, calc(100vw - 64px)); margin-top: 0; padding: 32px 32px 22px; }
  .lg-u h1 { font-size: 28px; }
}
@media (max-width: 719.98px) and (max-height: 720px) {  /* 矮屏（SE 一类）：卡片收紧，粮堆露在卡片上方 */
  .lg-panel.lg-u { padding: 16px 18px 12px; }
  .lg-u h1 { font-size: 22px; }
  .lg-form { margin-top: 6px; gap: 4px; }
  .lg-fld { margin-top: 4px; }
  .lg-form .inp { height: 48px; }
  .lg-go { height: 50px; }
  .lg-foot { margin-top: 8px; }
}

/* 结算确认单更正（10-22，U-308）：改了什么，一行一项 */
.kv-l { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-l:last-of-type { border-bottom: 0; }
.kv-l > span:first-child { color: var(--ink-3); flex: none; }

/* 塔：搜索放最上面、详情里改基本信息（10-22，U-309） */
.tw-search { margin-top: 12px; }
.kv-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 0; }
.kv-h b { font-size: 14px; color: var(--ink-2); }
.kv-h + .kv { padding-top: 8px; }
.te-note { margin: -2px 2px 4px; }
.te-del { display: block; width: 100%; margin-top: 14px; padding: 10px; background: none; border: 0; color: var(--down); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.btn.btn-main.btn-danger { background: var(--down); color: var(--on-accent); box-shadow: none; }

/* 塔的显示名：俗称（塔名），括号里的正式名称小一号、浅色（U-313，shared/tn.js） */
.tn-f { font-weight: 400; font-size: .9em; color: var(--ink-3); }
/* 不合格、重检（U-317）：重检合格、重检入 29 号库的前一条置灰；行内标签不撑高 */
.tk-r.gone { opacity: .5; }
.tk-r.gone .tk-w { color: var(--ink-3); font-weight: 400; }
.tk-r .tk-w .tag { vertical-align: 0; }

/* 切换身份下拉框（U-331）：「当前身份」+ 一个整行下拉 */
.role-bar { flex-wrap: nowrap; }
.role-bar > span { flex: none; }
.role-bar select { flex: 1; min-width: 0; height: 40px; padding: 0 32px 0 12px; border-radius: 10px; border: 1px solid var(--line-2, rgba(48,32,20,.17)); background: var(--bg, #fffdf9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2375655a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; color: var(--ink-1, #1f1710); font: inherit; font-size: 15px; font-weight: 700; appearance: none; -webkit-appearance: none; }
.role-bar select:focus-visible { outline: 2px solid var(--accent, #c4561f); outline-offset: 1px; }

/* 发车登记二维码（U-351） */
.qr-row { width: 100%; text-align: left; margin: 0 0 12px; }
.qr-box { display: flex; justify-content: center; margin: 12px auto 6px; padding: 12px; background: #fffdf9; border-radius: 14px; border: 1px solid var(--line); width: fit-content; }
.qr-box svg { width: 220px; height: 220px; display: block; }
#sheet a.btn { text-decoration: none; }
.qr-card { margin: 12px 0 4px; text-align: center; }
.qr-card img { width: min(100%, 300px); border-radius: 12px; box-shadow: 0 6px 20px rgba(48, 32, 20, .16); cursor: zoom-in; }

/* ── 全站间距（10-24 全站间距审计，design-review）──
   两组列表 / 列表和卡片上下挨着（总经理「今日」、资金申请单「全部单据」和「收款」）：留 10px；栏目切换和下面那排按钮留 10px（经理「塔」） */
.rows + .rows, .rows + .card, .card + .rows, .push-body > .card + .card, .view > .card + .card { margin-top: 10px; }  /* 10-26 详情里上下两张卡片也留 10px（结算确认单：图、塔、收款三张挨着） */
.seg + #tw-top, .seg + .btn-row { margin-top: 10px; }
/* 标签下面一排选项（签约主体、对应入库日……）：标签的 -4px 下边距是给输入框贴着用的，选项要留 10px；卡片后面紧跟的标签留 16px（10-26 用户：「挤到一起了」） */
:not(.fw) > .lbl + .quick { margin-top: 10px; }  /* .fw 自己有 8px 间隔 */
.push-body > .card + .lbl { margin-top: 16px; }

/* 接口返回的提醒卡（U-407 过磅付到库短重）：底部栏上方，点「知道了」关 */
.tipcard { display: none; position: fixed; z-index: 98; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + var(--tabbar-h, 64px) + 12px); background: var(--panel, #fffcf7); border: 1px solid var(--line, #e4d9c9); border-left: 4px solid var(--warn); border-radius: 14px; box-shadow: 0 12px 30px -12px rgba(40, 28, 18, .45); padding: 14px 16px; }
.tipcard.on { display: block; }
.tipcard b { font-size: 15px; color: var(--warn); }
.tipcard p { margin: 6px 0 12px; font-size: 14.5px; line-height: 1.65; }
.tipcard .btn { width: 100%; }
.rp-card .rp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }  /* 改价（U-452） */
.rp-card .rp-row:last-of-type { border-bottom: 0; }
.rp-card .rp-row input { width: 18px; height: 18px; }
.rp-card .rp-row b { margin-left: auto; }
.rp-card .rp-why { flex-basis: 100%; padding-left: 28px; }
.fr-ask { position: fixed; inset: 0; z-index: 90; background: rgba(31, 23, 16, .42); display: flex; align-items: center; justify-content: center; padding: 20px; }  /* 含运费低价确认（U-455） */
.fr-box { background: var(--bg, #fffdf9); border-radius: 16px; padding: 18px 16px 16px; max-width: 420px; width: 100%; box-shadow: 0 24px 60px -28px rgba(60, 38, 20, .5); }
.fr-box h3 { margin: 0 0 6px; font-size: 17px; }
.fr-box .btn-row { margin-top: 14px; }

/* 在途车的去向（U-520）：经理点「已退车」「车没来」通知专员登记 */
.tl-card { padding: 14px 16px; }
.tl-card .meta { margin: 0 0 10px; line-height: 1.5; }
.tl-card textarea { display: block; width: 100%; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--page); padding: 10px 12px; font-size: 16px; line-height: 1.5; resize: none; }
.tl-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
