/* Mobile production workspace: one column, readable quantities, explicit actions. */
:root {
  --ink: #102e27; --ink-2: #1c4a3e; --navy: #102e27;
  --hi: #d9eea2; --hi-press: #bfd781; --on-hi: #102e27; --accent: #d9eea2; --accent-press: #bfd781;
  --bg: #eef2ea; --card: #ffffff; --card-edge: rgba(16,46,39,.10); --fill: #e6ede4; --line: #c5d0c4;
  --secondary: #4a5d54; --tertiary: #5f6f66; --label: #102e27;
  --clay: #8f4028; --clay-bg: #fbf1ea; --late-line: #d2ab9c;
  --wood: #325c44; --paint: #9b6229; --check: #326c85; --ship: #477258;
  --stage-wood: #325c44; --stage-paint: #aa7638; --stage-out: #8d7358;
  --stage-check: #326c85; --stage-ship: #477258; --out: #8d7358;
  --app-max: 520px; --bw: 1px; --radius: 14px; --top-bar: 82px; --tabbar: 74px;
  --fs-caption: 15px; --fs-footnote: 16px; --fs-subhead: 18px; --fs-body: 19px;
  --num: "Avenir Next", "SF Pro Rounded", "PingFang SC", system-ui, sans-serif;
}
html, body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #e6ebe4; line-height: 1.5; }
#app { padding: 0; box-shadow: 0 0 50px #102e2710; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #a46b24; outline-offset: 3px; }
.top { justify-content: space-between; padding-right: 20px; padding-left: 20px; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.top .title { font-size: 22px; font-weight: 750; letter-spacing: -.5px; }
.top .sub { opacity: 1; color: var(--secondary); font-size: 15px; margin-top: 3px; }
.top-act { color: var(--ink); min-height: 44px; padding: 8px 12px; background: #e3eadc; border-radius: 10px; font-size: 17px; }
.body { padding: 16px 16px calc(30px + var(--tabbar) + var(--safe-bottom)); }
.body.no-tab { padding-bottom: 32px; }
.tabbar { background: #ffffffed; backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tab { color: var(--secondary); font-size: 15px; gap: 4px; }
.tab.on { color: var(--ink); }
.tab.on svg { background: #e5efd8; border-radius: 6px; }
.btn, .btn-navy, .btn-primary, .wconfirm { border-radius: 10px; min-height: 52px; background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:disabled, .wconfirm:disabled { background: #dce3d9; color: #61705f; border-color: #dce3d9; opacity: 1; cursor: default; }
.card, .dhero, .lot, .outsource-report-card, .tday { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: none; }
.card { padding: 16px; }
.input, .select, textarea.input { border: 1px solid #b5c3b6; background: #fff; border-radius: 9px; min-height: 50px; font-size: 20px; }
.field { margin-top: 18px; }
.field label { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.section-note { font-size: 15px; line-height: 1.7; color: var(--secondary); margin: 10px 0 16px; }
.eyebrow { font-size: 14px; letter-spacing: 2px; font-weight: 650; color: var(--secondary); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; font-weight: 700; margin: 0; }
.section-head a { font-size: 15px; white-space: nowrap; }
.overview-hero { background: var(--ink); color: #fff; border-radius: 18px; padding: 24px; position: relative; overflow: hidden; }
.overview-hero::after { content: ""; position: absolute; width: 180px; height: 180px; border: 34px solid #d9eea216; border-radius: 50%; right: -85px; top: -45px; pointer-events: none; }
.overview-hero .eyebrow { color: #d4dfb4; }
.overview-hero h1 { font-size: 30px; line-height: 1.4; letter-spacing: -1px; margin-top: 10px; }
.hero-metrics { display: flex; gap: 32px; border-top: 1px solid #ffffff2b; padding-top: 20px; margin-top: 24px; }
.hero-metrics strong { font-family: "Avenir Next", "PingFang SC", sans-serif; font-size: 35px; line-height: 1.1; display: block; color: #e0efb7; font-variant-numeric: tabular-nums; }
.hero-metrics span { display: block; font-size: 15px; margin-top: 8px; opacity: .85; }
.attention-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0 28px; }
.attention-grid a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; }
.attention-grid span { font-size: 15px; display: block; color: var(--secondary); }
.attention-grid b { font-size: 25px; display: block; margin-top: 5px; }
.attention-grid small { font-size: 14px; font-weight: 500; }
.attention-grid a:first-child b { color: #af4334; }
.overview-section { margin: 26px 0; }
.pipeline-list { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.pipeline-list a { display: grid; grid-template-columns: 28px 1fr auto 12px; align-items: center; gap: 12px; min-height: 78px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pipeline-list a:last-child { border-bottom: 0; }
.pipeline-index { font-size: 15px; color: var(--tertiary); font-family: "Avenir Next", sans-serif; }
.pipeline-list small { display: block; font-size: 14px; color: var(--secondary); font-weight: 400; }
.pipeline-list b { font-size: 26px; font-variant-numeric: tabular-nums; }
.pipeline-list b small { display: inline; }
.activity-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.activity-list a { display: flex; gap: 12px; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.activity-list a:last-child { border-bottom: 0; }
.activity-list div { flex: 1; min-width: 0; }
.activity-list b { font-size: 17px; display: block; }
.activity-list span:not(.activity-dot), .activity-list small { display: block; font-size: 15px; color: var(--secondary); margin-top: 4px; overflow-wrap: anywhere; }
.activity-dot { width: 7px; height: 7px; background: #819b5b; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.activity-list img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; }
.work-intro { padding: 22px 20px 18px; background: linear-gradient(120deg, #edf2e5, #eef2ea); }
.work-intro h1 { font-size: 23px; letter-spacing: -1px; margin: 7px 0; }
.work-intro p { font-size: 15px; color: var(--secondary); }
.work-screen .wtabs { grid-template-columns: repeat(5,minmax(0,1fr)); background: var(--bg); padding: 8px 12px; gap: 5px; border-bottom: 1px solid var(--line); }
.wtab { border-radius: 9px; min-height: 58px; background: #e5eadd; color: var(--secondary); font-size: 18px; font-weight: 650; }
.wtab.on { background: var(--ink); color: #fff; }
.wtab small { font-size: 14px; margin-top: 3px; }
.work-summary { display: flex; justify-content: space-between; gap: 8px; padding: 18px 18px 6px; font-size: 16px; }
.work-summary span { color: var(--secondary); }
.search { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; padding: 0; }
.search input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; height: 48px; padding: 0 12px; font-size: 18px; }
.search button { min-width: 56px; min-height: 44px; font-size: 16px; color: var(--ink); background: #e6eddd; }
.work-search { margin: 10px 16px 0; }
.work-body { padding-top: 14px; }
.wcards, .orders-list { grid-template-columns: minmax(0,1fr); gap: 12px; }
.wcard { border: 1px solid var(--line); background: #fff; border-radius: 14px; color: var(--ink); padding: 18px 16px 42px; min-height: 148px; }
.wcard-main { min-width: 0; }
.wcard-style { font-size: 26px; overflow-wrap: anywhere; }
.wcard-cust, .wcard-color { font-size: 17px; }
.wcard-orders { font-size: 14px; color: var(--secondary); margin-top: 6px; }
.wcard-num { margin-left: auto; flex-shrink: 0; }
.wcard-num strong { font-family: "Avenir Next", "PingFang SC", sans-serif; font-size: 36px; letter-spacing: -1px; }
.wcard-num span { font-size: 14px; color: var(--secondary); }
.wcard-go { background: #e8efdf; color: var(--ink); font-size: 15px; padding: 5px 12px; border-radius: 9px 0 13px 0; }
.wcard.is-late { border-color: #d9b5a8; }
.wcard-due { background: #f8ede5; color: #9a4a30; font-size: 14px; border-radius: 5px; padding: 3px 7px; }
.wcard .wcard-due { bottom: 10px; top: auto; left: 16px; right: auto; }
.ocard { border: 1px solid var(--line); border-radius: 14px; margin: 0; padding: 16px; overflow: hidden; }
.ocard.is-late { border-color: #d8b4a7; }
.order-identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 16px; }
.order-identity small { display: block; font-size: 14px; color: var(--secondary); margin-top: 2px; overflow-wrap: anywhere; }
.deadline { font-size: 14px; white-space: nowrap; }
.order-product { display: block; padding-top: 14px; }
.order-product h3 { font-size: 26px; overflow-wrap: anywhere; }
.order-product > span { display: flex; align-items: center; gap: 4px; font-size: 16px; color: var(--secondary); margin-top: 4px; flex-wrap: wrap; }
.delivery-progress { margin: 18px 0 14px; }
.delivery-progress > div { display: flex; align-items: baseline; gap: 9px; font-size: 14px; }
.delivery-progress b { font-weight: 500; color: var(--secondary); }
.delivery-progress strong { margin-left: auto; font-size: 17px; }
.delivery-progress progress { appearance: none; width: 100%; height: 5px; border: none; display: block; margin-top: 8px; border-radius: 9px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e4eadf; } progress::-webkit-progress-value { background: #50734e; } progress::-moz-progress-bar { background: #50734e; }
.order-flow { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
.order-flow > div { background: #f5f6f2; border-radius: 7px; text-align: center; padding: 9px 2px; color: #526354; }
.order-flow span { display: block; font-size: 14px; }
.order-flow b { font-size: 20px; font-variant-numeric: tabular-nums; }
.order-flow .has-work { background: #e8efde; color: var(--ink); }
.order-exceptions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; font-size: 14px; color: #8a602f; }
.order-footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; font-size: 14px; color: var(--secondary); }
.order-footer span { color: var(--ink); font-size: 14px; white-space: nowrap; }
.cust-chips { padding: 3px 0 10px; }
.cust-chip { border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 16px; padding: 9px 13px; }
.cust-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sstrip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: visible; border-radius: 10px; padding: 8px 2px; background: #fff; border: 1px solid var(--line); }
.sstrip-cell { border: none; padding: 4px 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.sstrip-cell span { font-size: 14px; }
.sstrip-cell b { font-size: 18px; }
.sstrip-cell span i { display: none; }
.sstrip-cell.on { background: #e5efd9; border-radius: 5px; }
.sstrip-tags { flex-wrap: wrap; gap: 8px; }
.sstrip-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.sstrip-extra-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 15px; text-decoration: none; }
.sstrip-extra-link b { white-space: nowrap; }
.sstrip-extra-link.on { background: var(--hi); border-color: var(--ink); }
.sstrip-tag { gap: 4px; }
.sstrip-unit { display: none; }
.sstrip-tag { font-size: 14px; }
.stage-row { border-radius: 9px; border: 1px solid var(--line); padding: 12px 9px; flex-wrap: wrap; gap: 8px; background: #fff; }
.stage-row > span { min-width: 45px; font-size: 17px; }
.stage-row b { font-size: 20px; margin-right: auto; }
.stage-row button { min-height: 44px; border-radius: 7px; padding: 6px 9px; font-size: 15px; }
.dhero { padding: 20px; }
.dhero-sku { font-size: 27px; overflow-wrap: anywhere; }
.ptable, .plist { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.prow-nm { font-size: 18px; }
.prow-nums b { font-size: 16px; }
.piles { gap: 8px; }
.pile { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pile .v { font-size: 25px; }
.outsource-summary { background: var(--ink); color: #fff; border-radius: 14px; padding: 20px 8px; }
.outsource-summary strong { color: #e0efb7; font-size: 27px; }
.outsource-summary span { color: #d8e1cf; font-size: 15px; }
.outsource-report-card { margin-top: 14px; padding: 16px; }
.outsource-report-head strong { font-size: 24px; overflow-wrap: anywhere; }
.outsource-report-head span { font-size: 15px; }
.outsource-event { border-left: 2px solid #b6c6a6; margin-left: 4px; padding-left: 14px; }
.photo-thumb { max-width: 100%; border-radius: 9px; }
.me-row { border-bottom: 1px solid var(--line); padding: 15px 4px; min-height: 54px; font-size: 18px; }
.wsheet { left: 50%; right: auto; bottom: 0; width: 100%; max-width: 520px; transform: translateX(-50%); border: none; border-radius: 20px 20px 0 0; max-height: 94dvh; padding: 16px 18px 0; }
.wsheet-head b { font-size: 25px; }
.wsheet-head span { font-size: 17px; color: var(--secondary); }
.wsheet-x { width: 44px; height: 44px; border-radius: 50%; background: var(--fill); font-size: 26px; flex-shrink: 0; }
.wsheet-input { background: #f4f7ee; border: 1px solid #aabf99; border-radius: 12px; color: var(--ink); }
.wbtn { border: 1px solid var(--line); border-radius: 9px; background: #edf2e5; color: var(--ink); min-height: 48px; }
.wbtn-all { background: #e0ebd1; }
.wsheet-label { font-size: 17px; }
.wsheet-pallet input { border: 1px solid var(--line); border-radius: 8px; font-size: 17px; }
.wprev { border-radius: 9px; background: #f5f6f2; padding: 12px; }
.wprev-row { font-size: 15px; }
.wprev-title { font-size: 15px; }
.wconfirm { font-size: 20px; }
.cam { border-radius: 10px; background: #f4f6ef; border: 1px dashed #a4b19b; }
.brand-mark { display: inline-block; color: var(--ink); font-size: 16px; letter-spacing: 3px; padding: 6px 0; }
.pick-hero { padding: 32px 6px 22px; }
.pick-hero h1 { font-size: 34px; text-align: left; line-height: 1.4; letter-spacing: -1px; margin: 14px 0; }
.pick-hero p { font-size: 17px; color: var(--secondary); text-align: left; }
.pick-hero + .card .btn { background: var(--ink); color: #fff; }
.empty, .wempty { background: #fff; border: 1px dashed var(--line); border-radius: 14px; color: var(--secondary); font-size: 18px; padding: 34px 20px; text-align: center; }
.inventory-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@keyframes arrive { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.overview-hero, .work-intro { animation: arrive .24s ease-out; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
/* Keep actionable quantities above the fold. */
.overview-hero { padding: 18px 20px; }
.overview-hero h1 { font-size: 26px; margin-top: 5px; }
.overview-hero h1 br { display: none; }
.hero-metrics { margin-top: 14px; padding-top: 14px; }
.hero-metrics strong { font-size: clamp(25px, 7vw, 35px); overflow-wrap: anywhere; }
.attention-grid { margin-bottom: 20px; }
.pipeline-list a { min-height: 62px; padding: 10px 14px; }
.work-intro { padding: 14px 20px; }
.work-intro h1 { font-size: 24px; }
.order-flow b { font-size: clamp(20px, 5.5vw, 24px); overflow-wrap: anywhere; }
.attention-grid b { font-size: clamp(17px, 6vw, 25px); overflow-wrap: anywhere; }
.wcard-num strong { font-size: clamp(38px, 11vw, 46px); overflow-wrap: anywhere; }
.wcard-num { max-width: 42%; }
.top .top-act { color: var(--ink); background: #e3eadc; border: 1px solid #c7d4bf; border-radius: 10px; }
.wcard-num strong { white-space: normal; overflow: visible; text-overflow: clip; }
.top button.top-act { color: #102e27 !important; background: #e3eadc !important; border: 1px solid #c7d4bf !important; }
.outsource-report-meta, .outsource-event span, .outsource-event small { overflow-wrap: anywhere; }
.order-product .sw { flex-shrink: 0; }
.stage-progress { display: grid; gap: 8px; border: 0; }
.tag { border-radius: 6px; }
.section-head .tiny { font-size: 14px; }
.outsource-summary > div { background: transparent; border: 0; }
.outsource-summary > div + div { border-left: 1px solid #ffffff30; }
.outsource-summary strong { color: #e0efb7 !important; }
.outsource-summary span { color: #edf4e7 !important; }

/* Compact utility screens: content starts with quantities and tasks. */
.overview-hero { padding: 20px; }
.hero-metrics { margin-top: 0; padding-top: 0; border-top: 0; }
.order-footer { justify-content: flex-end; }
.pipeline-list a { min-height: 56px; }
.pick-hero { padding-top: 18px; padding-bottom: 12px; }
.pick-hero h1 { font-size: 26px; margin: 10px 0; }

/* Large, high-contrast text for reading at the workstation. */
.top .title { letter-spacing: 0; }
.btn, .btn-sm, .btn-navy, .btn-primary, .wconfirm { font-size: 20px; min-height: 56px; }
.wtab { min-height: 72px; font-size: 20px; line-height: 1.35; }
.work-screen .wtabs { padding: 8px; gap: 4px; }
.work-summary { flex-wrap: wrap; }
.search input { height: 56px; font-size: 18px; }
.search button { min-width: 64px; font-size: 18px; }
.wcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%); padding-bottom: 62px; gap: 8px 12px; }
.wcard-meta { grid-column: 1 / -1; min-width: 0; }
.wcard-orders { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 500; }
.wcard-orders span { white-space: nowrap; }
.wcard-style { display: block; -webkit-line-clamp: unset; overflow: visible; line-height: 1.35; }
.wcard-color { flex-wrap: wrap; }
.wcard-orders, .wcard-cust, .wcard-color { overflow-wrap: anywhere; }
.wcard-num { max-width: 100%; min-width: 0; padding: 8px 0; }
.wcard-go { right: 0; bottom: 0; font-size: 18px; min-height: 44px; display: flex; align-items: center; padding: 7px 14px; }
.wcard .wcard-due { bottom: 10px; max-width: calc(100% - 120px); white-space: normal; }
.order-identity { flex-wrap: wrap; }
.order-flow { gap: 4px; }
.order-flow > div { padding: 12px 2px; }
.order-flow span { font-size: 16px; }
.delivery-progress > div { flex-wrap: wrap; }
.delivery-progress strong { font-size: 22px; }
.sstrip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 8px; }
.sstrip-cell { min-height: 56px; }
.sstrip-cell span { font-size: 16px; }
.sstrip-cell b { font-size: 22px; overflow-wrap: anywhere; }
.cust-chip, .sstrip-tag { font-size: 17px; min-height: 44px; display: inline-flex; align-items: center; }
.stage-row > span { font-size: 18px; }
.stage-row b { font-size: 24px; }
.stage-row button { font-size: 18px; min-height: 48px; padding: 8px 12px; }
.wsheet-head span, .wsheet-label, .wsheet-pallet input { font-size: 18px; }
.wbtn { min-height: 54px; font-size: 20px; }
.wprev-row { flex-wrap: wrap; gap: 6px; font-size: 17px; }
.wprev-title, .wprev-row small { font-size: 16px; }
.pipeline-list a { min-height: 70px; }
.hero-metrics { gap: 20px; }
.hero-metrics > div { flex: 1; min-width: 0; }
.attention-grid a { padding: 14px 8px; }
.attention-grid span { font-size: 16px; }
.section-head { flex-wrap: wrap; }


/* ===== 2026-10-30 visual mock: wood-green spine, five cells, bypass ===== */
html, body { background: #e6ebe4; color: var(--ink); }
#app { background: var(--bg); box-shadow: 0 0 50px rgba(16,46,39,.08); }

/* Late: clay left bar, not full red scream */
.ocard.is-late, .wcard.is-late, .dhero.is-late {
  position: relative;
  border-color: var(--late-line);
  background: linear-gradient(180deg, #fbf6f2 0%, #fff 28%);
  overflow: hidden;
}
.ocard.is-late::before, .dhero.is-late::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--clay);
  z-index: 1;
}
.ocard.is-late { padding-left: 16px; }

.ocard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ocard-customer {
  display: block;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.ocard-sku {
  margin: 4px 0 0;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.ocard-sku a { color: inherit; }
.ocard .tag, .tag.paint, .tag.check, .tag.ship, .tag.out, .tag.wood {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--wood);
}
.tag.paint { background: var(--paint); }
.tag.check { background: var(--check); }
.tag.ship { background: var(--ship); }
.tag.out { background: var(--out); }

.due-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  background: var(--clay-bg);
  color: var(--clay);
}
.due-chip.soon {
  background: #eef3e4;
  color: var(--wood);
}

.goods {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  align-items: end;
}
.goods-meta { min-width: 0; }
.goods-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--secondary);
  margin-top: 4px;
}
.goods-row:first-child { margin-top: 0; }
.sw {
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(16,46,39,.18);
  flex-shrink: 0;
  display: inline-block;
}
.goods-qty { text-align: right; line-height: 1.3; }
.goods-qty strong {
  display: block;
  font-family: var(--num);
  font-size: clamp(30px, 8vw, 36px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.goods-qty span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--secondary);
  font-weight: 600;
}
.goods-qty strong small { margin-left: 4px; font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0; }
.remark, .goods-row.remark {
  margin-top: 8px;
  font-size: 14px;
  color: var(--tertiary);
  overflow-wrap: anywhere;
}

/* Five-stage strip — independent cells, no thick outer frame */
.order-flow, .stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 14px 0 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.order-flow > div, .stage {
  position: relative;
  min-height: 72px;
  border-radius: 10px;
  background: var(--fill);
  border: 1px solid transparent;
  padding: 10px 4px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--secondary);
}
.order-flow > div::before, .stage::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: transparent;
}
.order-flow span, .stage .nm {
  display: block;
  font-size: 16px;
  font-weight: 650;
  color: var(--tertiary);
  letter-spacing: .04em;
}
.order-flow b, .stage .qty {
  display: block;
  font-family: var(--num);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.5px;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.order-flow > div.empty b, .stage.empty .qty {
  opacity: .45;
  font-weight: 600;
  font-size: 18px;
}
.order-flow > div.partial, .order-flow > div.has-work:not(.hot):not(.done), .stage.partial {
  background: #e8efde;
  border-color: #c9d8b8;
}
.order-flow > div.partial span, .order-flow > div.partial b,
.order-flow > div.has-work:not(.hot):not(.done) span,
.order-flow > div.has-work:not(.hot):not(.done) b {
  color: var(--ink);
}
.order-flow > div.done, .stage.done { background: #e4ebe1; }
.order-flow > div.done::before, .stage.done::before { background: var(--wood); }
.order-flow > div.done span, .order-flow > div.done b,
.stage.done .nm, .stage.done .qty { color: var(--wood); }
.order-flow > div.done b, .stage.done .qty { font-size: 16px; font-weight: 700; }
.order-flow > div.hot, .stage.hot {
  background: #fff6df;
  border-color: #e2c56a;
  box-shadow: inset 0 0 0 1px #e2c56a;
}
.order-flow > div.hot::before, .stage.hot::before { background: #c9962a; }
.order-flow > div.hot span, .order-flow > div.hot b,
.stage.hot .nm, .stage.hot .qty { color: var(--ink); }
.order-flow > div.hot b, .stage.hot .qty { font-size: 30px; }
.order-flow > div.tone-paint.partial, .order-flow > div.tone-paint.has-work:not(.hot) {
  background: #f7efe4; border-color: #e2c9a8;
}
.order-flow > div.tone-paint.partial span, .order-flow > div.tone-paint.partial b,
.order-flow > div.tone-paint.has-work:not(.hot) span,
.order-flow > div.tone-paint.has-work:not(.hot) b { color: var(--paint); }
.order-flow > div.tone-check.partial, .order-flow > div.tone-check.has-work:not(.hot) {
  background: #e8f1f5; border-color: #b7ced8;
}
.order-flow > div.tone-check.partial span, .order-flow > div.tone-check.partial b,
.order-flow > div.tone-check.has-work:not(.hot) span,
.order-flow > div.tone-check.has-work:not(.hot) b { color: var(--check); }
.order-flow > div.tone-ship.partial, .order-flow > div.tone-ship.has-work:not(.hot) {
  background: #e8f0ea; border-color: #b7cfbe;
}
.order-flow > div.tone-ship.partial span, .order-flow > div.tone-ship.partial b,
.order-flow > div.tone-ship.has-work:not(.hot) span,
.order-flow > div.tone-ship.has-work:not(.hot) b { color: var(--ship); }

/* Outsource bypass — not a sixth cell */
.bypass {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3eee7;
  color: var(--out);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.bypass i {
  font-style: normal;
  min-width: 24px; height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--out);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--num);
  font-size: 13px;
  flex-shrink: 0;
}
.bypass small {
  display: block;
  font-weight: 500;
  color: var(--secondary);
  font-size: 12px;
  margin-top: 2px;
}
.bypass a, a.bypass { color: var(--ink-2); font-weight: 700; }

.order-exceptions { margin-top: 8px; }
.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--secondary);
}
.order-footer .code { font-variant-numeric: tabular-nums; color: var(--tertiary); }

/* Detail hero: customer → color → big qty */
.dhero-customer {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink-2);
}
.dhero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.dhero-stats strong {
  display: block;
  font-family: var(--num);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--ink);
}
.dhero-stats span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--secondary);
  font-weight: 650;
}

/* Login: wood-green panel, name+password primary */
.pick-hero {
  padding: 28px 20px 18px;
  background:
    radial-gradient(120% 80% at 100% -10%, #d9eea255 0%, transparent 55%),
    linear-gradient(180deg, #e7eee2 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  margin: 0 -16px 0;
}
.pick-hero .brand-mark { color: var(--secondary); letter-spacing: .18em; font-size: 12px; font-weight: 700; }
.pick-hero h1 { font-size: 32px; font-weight: 750; letter-spacing: -.03em; margin: 6px 0 0; color: var(--ink); }
.pick-hero p { font-size: 15px; color: var(--secondary); margin-top: 10px; text-align: left; }
.login-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
}
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--fill);
  border-radius: 12px;
  margin-bottom: 16px;
}
.login-tab {
  min-height: 44px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary);
  background: transparent;
}
.login-tab.on {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16,46,39,.18);
}
.login-pane { display: none; }
.login-pane.on { display: block; }
.login-panel .field { margin-top: 0; margin-bottom: 14px; }
.login-panel .field label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.login-panel .field .hint {
  display: block;
  margin-top: -4px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--tertiary);
  font-weight: 500;
}
.login-panel .input {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid #9bb08a;
  background: #f7faf4;
  font-size: 18px;
}
.login-panel .input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16,46,39,.12);
  background: #fff;
}
.login-panel .btn, .login-panel .btn-primary {
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 750;
}
.login-help { margin-top: 16px; color: var(--secondary); font-size: 14px; text-align: center; }
.login-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef3e4;
  border: 1px solid #d5e0c6;
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.5;
}
.login-note b { color: var(--ink); font-weight: 750; }
.sms-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}
.sms-code-btn {
  min-width: 118px;
  min-height: 56px;
  padding: 0 12px;
  border-radius: 12px;
  background: #dde7d4;
  border: 1px solid #b7c7ad;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.top button.top-act {
  color: #102e27 !important;
  background: #e3eadc !important;
  border: 1px solid #c7d4bf !important;
}

/* 2026-11-02 老板端客户原单行 */
.po-lines-table{width:100%;border-collapse:collapse;font-size:13px;margin:4px 0}
.po-lines-table th,.po-lines-table td{border:1px solid #ddd;padding:2px 4px;text-align:right}
.po-lines-table th:first-child,.po-lines-table td:first-child{text-align:left}
.po-lines-table td.bad{color:#c00;font-weight:600}
