:root {
  --ink: #16324F;
  --text: #243041;
  --muted: #5C738A;
  --bg: #EEF3F8;
  --card: #fff;
  --line: #D5DEE8;
  --line-strong: #8FA3B8;
  --primary: #2F6BFF;
  --primary-deep: #1E54D6;
  --success: #0F9D6E;
  --success-soft: #E6F7F0;
  --amber: #E39B00;
  --amber-soft: #FFF4D6;
  --amber-deep: #B86E00;
  --danger: #D64545;
  --danger-soft: #FDECEC;
  --soft: #E8F0FF;
  --solid: #16324F;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
h1, h2, p { margin: 0; }

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
}
header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--solid);
  color: #fff;
}
header h1 { flex: 1; font-size: 18px; font-weight: 700; }
#wh-switch { max-width: 110px; background: #1E4468; color: #fff; border: 1px solid #4D7AA8; border-radius: 8px; padding: 4px 6px; }
header button {
  border: 0;
  background: transparent;
  color: #fff;
  min-height: 40px;
  padding: 0 8px;
}
#who { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; border-radius: 50%; }
#who[aria-expanded="true"] { background: #1E4468; }
body.put header { gap: 6px; padding: 8px 8px; }
body.put #wh-switch { max-width: 78px; padding: 4px 2px; font-size: 13px; }
body.put #who { padding: 0 4px; }
#user-menu {
  position: absolute;
  top: 56px;
  right: 8px;
  z-index: 20;
  min-width: 200px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(22, 50, 79, .22);
}
#user-menu[hidden] { display: none; }
.um-name { font-size: 18px; font-weight: 800; color: var(--ink); }
.um-meta { font-size: 13px; color: var(--muted); margin-top: -6px; }
.um-lang { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; }
.um-lang button { min-height: 40px; border: 0; background: #fff; color: var(--ink); font-weight: 700; }
.um-lang button.on { background: var(--ink); color: #fff; }
.login-lang { justify-self: end; width: 180px; }
.um-scan { display: grid; gap: 6px; }
.um-scan > span { font-size: 13px; font-weight: 700; color: var(--muted); }
#cam-box { margin: 0 8px 8px; background: #0b1724; border-radius: 12px; overflow: hidden; }
#cam-box[hidden] { display: none; }
#cam-video { display: block; width: 100%; height: 180px; object-fit: cover; background: #000; }
#cam-hint { margin: 0; padding: 6px 10px 8px; color: #d7e3f0; font-size: 13px; font-weight: 700; text-align: center; }
body.phone-scan.noscan #cam-box { display: none; }
.um-logout { min-height: 44px; border: 1px solid var(--danger); border-radius: 10px; background: #fff; color: var(--danger); font-weight: 800; }
header h1.kind-title { display: flex; gap: 6px; min-width: 0; }
header h1.kind-title button {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 0 6px;
  border: 1px solid #4D7AA8;
  border-radius: 8px;
  background: #1E4468;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
header h1.kind-title button.on { background: #fff; color: var(--ink); border-color: #fff; }
header h1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
header h1 .title-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header h1 button.find-btn,
header h1.kind-title button.find-btn {
  flex: 0 0 38px;
  width: 38px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4D7AA8;
  border-radius: 8px;
  background: #1E4468;
  color: #fff;
}
header h1 button.find-btn.on { background: var(--amber); border-color: var(--amber); color: var(--ink); }
#task-find {
  position: absolute;
  top: 56px;
  left: 8px;
  right: 8px;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(22, 50, 79, .22);
}
#task-find[hidden] { display: none; }
#task-find input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 10px; font-size: 18px; font-weight: 700; text-transform: uppercase; }
#task-find button { flex: 0 0 auto; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; }
.find-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-deep); font-size: 13px; font-weight: 700; }
.find-bar b { flex: 1; min-width: 0; color: var(--ink); font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.find-bar button { min-height: 32px; padding: 0 10px; border: 1px solid var(--amber-deep); border-radius: 8px; background: #fff; color: var(--amber-deep); font-weight: 800; }
.job {
  margin-bottom: 8px;
  padding: 8px 10px 8px;
  border-radius: 12px;
  border: 1px solid #C5D4EA;
  background: #fff;
}
.job.open { background: #fff; }
.job.pending { background: var(--success-soft); }
.job.cart { background: var(--soft); }
.job.rush { border-color: var(--danger); }
.job.stop { background: var(--danger-soft); }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-top.has-src {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.job-head { min-width: 0; display: flex; align-items: center; gap: 6px; }
.job-top.has-src .job-head { justify-self: start; }
.job-src-title { font-size: 14px; font-weight: 800; text-align: center; white-space: nowrap; }
.job .part { font-size: 18px; font-weight: 800; line-height: 1.2; }
.job-k { font-size: 12px; color: var(--muted); }
.job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-top: 6px; }
.job-grid .job-v { font-size: 16px; font-weight: 800; }
.job-src { margin: 6px 0 2px; }
.places { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0; padding-bottom: 2px; }
.place-card {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: auto;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 10px;
  background: var(--soft);
}
.place-card b { display: inline; font-size: 15px; }
.place-card span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.place-note { display: block; margin-top: 2px; color: #8A3B12; font-size: 12px; font-style: normal; font-weight: 800; white-space: normal; }
.job-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.job-act { display: flex; gap: 6px; flex: 0 0 auto; }
.job-top.has-src .job-act { justify-self: end; }
.job-act button { min-height: 32px; padding: 0 10px; font-size: 13px; border: 1px solid var(--ink); border-radius: 8px; background: #fff; font-weight: 700; }
.job-act .primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.job-act .bad { color: var(--amber-deep); border-color: var(--amber); background: var(--amber-soft); }
.job-act .rushbtn { color: var(--danger); border-color: var(--danger); }
.badge.rush { background: var(--amber-soft); color: var(--amber-deep); font-weight: 800; }
.badge.stop { background: var(--danger-soft); color: var(--danger); font-weight: 800; }
.job-head .badge, .job-act .badge, .job-head button { white-space: nowrap; }
.job-act .badge.stop { align-self: center; }
.job-head button[data-act="undo-cancel"] { min-height: 32px; padding: 0 10px; font-size: 13px; border: 1px solid var(--ink); border-radius: 8px; background: #fff; font-weight: 700; flex: 0 0 auto; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login { width: min(420px, 100%); background: #fff; border-radius: 16px; padding: 24px; display: grid; gap: 12px; box-shadow: 0 16px 40px rgba(22, 50, 79, .12); }
.login h1 { font-size: 24px; line-height: 1.3; color: var(--ink); }
.login .primary { min-height: 52px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font-size: 18px; font-weight: 700; }

main { padding: 12px 12px 108px; }

#scanbar {
  position: relative;
  padding: 8px 12px 8px;
  background: var(--bg);
}
#scan {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
}
#scan[readonly] { background: #fff; color: inherit; opacity: 1; }
.scan-catch {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  padding: 0;
  pointer-events: none;
}
#suggest {
  margin: 0 12px 8px;
  display: grid;
  gap: 6px;
  max-height: 42vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
#suggest[hidden] { display: none; }
#suggest button, .suggest-list button {
  width: 100%;
  text-align: left;
  min-height: 52px;
  font-size: 22px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.suggest-wrap { position: relative; display: block; }
.suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  display: grid;
  gap: 6px;
  margin-top: 4px;
  max-height: 42vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: var(--bg);
  padding: 2px 0 8px;
}
.suggest-list[hidden] { display: none; }

.grid { display: grid; gap: 10px; }
.tile, .card, .panel {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}
.tile {
  width: 100%;
  text-align: left;
  border: 2px solid var(--ink);
  min-height: 72px;
  font-size: 22px;
  font-weight: 700;
}
.tile small { display: block; font-size: 14px; font-weight: 500; margin-top: 4px; }
body.noscan #scanbar, body.noscan #suggest { display: none; }
.mini { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; margin-bottom: 8px; }
.rowline { display: flex; gap: 10px; align-items: center; }
.rowline input[type=checkbox] { width: 28px; height: 28px; flex: 0 0 auto; }
.loc-parts { display: grid; gap: 8px; margin-bottom: 8px; }
.loc-part { margin-bottom: 0; cursor: pointer; }
.loc-part:has(input:checked) { background: var(--soft); border-color: var(--primary); }
.loc-part .part { font-size: 24px; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.empty-strip { margin-bottom: 10px; }
.strip-head { display: flex; align-items: center; gap: 8px; }
.strip-head h2 { margin: 0; flex: 1; min-width: 0; }
.strip-head .find-btn { flex: 0 0 38px; width: 38px; min-height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); }
.strip-head .find-btn.on { background: var(--amber); border-color: var(--amber); }
.empty-strip .meta { margin: 6px 0 4px; }
.strip button { flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 999px; background: #fff; padding: 8px 12px; }
#return-stage { background: var(--danger); color: #fff; border-radius: 10px; padding: 0 10px; font-weight: 700; }
.tile.big { min-height: 140px; font-size: 32px; text-align: center; }
.tile.big small { font-size: 16px; }
.tile.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.tile.work { background: var(--amber-deep); color: #fff; border-color: var(--amber-deep); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split .tile { font-size: 18px; min-height: 64px; }

.card { border: 1px solid var(--line); margin-bottom: 10px; }
.card button.open {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
}
.part { font-size: 28px; font-weight: 800; letter-spacing: 0.02em; word-break: break-all; }
.loc { font-size: 18px; margin-top: 4px; }
.where { margin-top: 8px; font-size: 16px; }
.warn { margin-top: 8px; color: var(--danger); font-weight: 700; }
.meta { margin-top: 8px; color: var(--muted); font-size: 14px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--soft); }

.actions { display: grid; gap: 8px; margin-top: 12px; }
.actions button, .panel button, .chip {
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 18px;
  font-weight: 700;
}
.actions .primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.actions .good { background: var(--success); color: #fff; border-color: var(--success); }
.actions .bad { background: #fff; color: var(--danger); border-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-size: 14px; position: relative; }
.sheet { border: 2px solid var(--ink); background: #fff; margin-top: 8px; }
.pair { display: flex; gap: 0; align-items: stretch; }
.pair input {
  min-height: 48px;
  border: 0;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  padding: 8px 10px;
  font-size: 18px;
}
.pair .part { flex: 1; min-width: 0; }
.pair .qty {
  flex: 0 0 32%;
  width: 32%;
  border-right: 0;
  text-align: center;
}
.sheet [data-pallet]:last-child .pair:last-child input { border-bottom: 0; }
.sheet .meta, .sheet .warn { margin: 0; padding: 6px 10px; border-bottom: 2px solid var(--ink); }
.sheet [data-pallet]:last-child .meta, .sheet [data-pallet]:last-child .warn { border-bottom: 0; }
.field input, .field select {
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 18px;
}
.siblings { color: var(--muted); font-size: 15px; margin-top: 4px; }
.empty { padding: 24px 8px; color: var(--muted); }
.urls { margin-top: 8px; }
.url { font-size: 18px; font-weight: 800; word-break: break-all; }
.help p { margin: 8px 0; line-height: 1.5; }
.event { padding: 8px 0; border-bottom: 1px solid var(--line); }
.event b { display: block; }

#toast {
  margin: 0 12px 8px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
#toast[hidden] { display: none; margin: 0; }
#toast.ok { background: var(--success); }
#toast.bad { background: var(--danger); }
#toast.warn { background: var(--amber); color: var(--ink); cursor: pointer; }
#toast.rush { background: var(--danger); color: #fff; cursor: pointer; }

body.flash-ok { box-shadow: inset 0 0 0 8px var(--success); }
body.flash-bad { box-shadow: inset 0 0 0 8px var(--danger); }

#name-mask {
  position: fixed;
  inset: 0;
  background: rgba(22, 50, 79, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 5;
}
#name-mask[hidden] { display: none; }
#name-form {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
}
#name-form p { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
#name-form input {
  width: 100%;
  min-height: 52px;
  font-size: 20px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
#name-form button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

#dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  background: var(--solid);
  border-top: 1px solid #1E4468;
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
}
#dock button,
.stock-keys button,
.intake-tabs button {
  border: 1px solid #9BB4D0;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: linear-gradient(#fff, var(--soft));
  box-shadow: 0 2px 0 #3D5A78, inset 0 1px 0 #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  min-height: 48px;
  padding: 6px 4px;
  white-space: nowrap;
}
#dock button:active,
.stock-keys button:active,
.intake-tabs button:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
  box-shadow: inset 0 2px 4px rgba(22, 50, 79, 0.18);
}
#dock button.on,
.stock-keys button.on,
.intake-tabs button.on {
  color: var(--primary-deep);
  background: linear-gradient(#fff, #dbe7fb);
  box-shadow: 0 1px 0 #3D5A78, inset 0 0 0 2px var(--primary);
}
#dock .dock-n {
  display: inline-block;
  margin-left: 2px;
  font-size: 13px;
  font-weight: 800;
}
.stock-keys {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
  margin-bottom: 10px;
  flex: 0 0 auto;
}
.pallet-card { padding: 8px 10px; min-width: 0; overflow: hidden; }
.pallet-head { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.pallet-rows { display: grid; gap: 6px; min-width: 0; }
.pallet-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 32px;
  gap: 4px;
  align-items: center;
  min-width: 0;
}
.pallet-line input.part,
.pallet-line input.qty {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  height: 34px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 2px 6px;
  background: #fff;
}
.pallet-line input.qty { text-align: center; padding: 2px 2px; }
.pallet-drop {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}
.pallet-line.has-bad input.part { border-color: var(--danger); }
.pallet-line .warn { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.pallet-ctc { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1; }
.load-rows { display: grid; gap: 6px; margin: 8px 0; }
.load-line {
  display: grid;
  grid-template-columns: 28px 48px 1fr 72px;
  gap: 6px;
  align-items: center;
}
.load-line input[type=checkbox] { width: 28px; height: 28px; margin: 0; }
.load-brand { font-size: 13px; font-weight: 800; color: var(--muted); }
.load-line input.part,
.load-line input.qty {
  min-height: 34px;
  height: 34px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 2px 8px;
  background: #fff;
}
.load-line input.qty { text-align: center; }
.stock-wrap { overflow-x: auto; margin-top: 8px; }
.stock-sheet { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; font-size: 14px; }
.stock-sheet th, .stock-sheet td {
  border: 1px solid var(--line-strong);
  padding: 6px 4px;
  text-align: center;
  vertical-align: middle;
  word-break: break-all;
}
.stock-sheet th { background: #D7E6F5; color: var(--ink); font-weight: 700; }
.stock-sheet th:nth-child(1), .stock-sheet td.shelf { width: 22%; }
.stock-sheet th:nth-child(2) { width: 16%; }
.stock-sheet th:nth-child(3) { width: 42%; }
.stock-sheet th:nth-child(4) { width: 20%; }
.stock-sheet td.shelf { font-weight: 800; background: var(--soft); }
.stock-part { display: flex; align-items: center; justify-content: center; gap: 4px; }
.stock-part span { font-weight: 700; }
.stock-sheet input {
  min-height: 32px;
  width: 100%;
  max-width: 140px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 2px 6px;
}
.stock-sheet .mark { border: 0; background: none; font-size: 18px; font-weight: 800; padding: 0 2px; color: var(--ink); }
body.intake main {
  padding: 8px 8px 108px;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 52px);
}
.intake-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.intake-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.intake-wh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.intake-wh select {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 800;
  background: #fff;
  color: var(--text);
}
.intake-pane {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.intake-src { font-size: 13px; font-weight: 800; margin: 8px 0 6px; color: var(--text); }
.intake-pallet {
  margin-bottom: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.intake-pane.is-in .intake-pallet { border-color: var(--success); }
.intake-pallet:active { background: var(--success-soft); }
.intake-sheet { margin: 0; }
.intake-sheet th:nth-child(1), .intake-sheet td.shelf { width: 30%; }
.intake-sheet th:nth-child(2) { width: 46%; }
.intake-sheet th:nth-child(3) { width: 24%; }
.intake-sheet tr.is-short td:not(.shelf) { color: var(--danger); font-weight: 800; }
.intake-sheet tr.is-short small { display: block; font-size: 11px; font-weight: 700; color: var(--danger); }
.short-sheet td.short-part { font-weight: 800; }
.short-sheet small { color: var(--text); font-size: 11px; }

#dock { grid-auto-columns: minmax(0, 1fr); }
html[lang="en"] #dock button,
html[lang="en"] .stock-keys button,
html[lang="en"] .intake-tabs button {
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.15;
  font-size: 12px;
  padding: 4px 2px;
}
html[lang="en"] #dock .dock-n { font-size: 12px; }
html[lang="en"] header h1.kind-title button {
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.1;
  font-size: 13px;
  padding: 2px 4px;
}
html[lang="en"] .job-act { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }
html[lang="en"] .job-act button { padding: 0 6px; font-size: 12px; line-height: 1.1; }
html[lang="en"] .job-src-title { white-space: normal; font-size: 13px; }
html[lang="en"] header button { line-height: 1.1; }
@media (max-width: 350px) {
  html[lang="en"] #dock { gap: 4px; padding-left: 4px; padding-right: 4px; }
  html[lang="en"] #dock button, html[lang="en"] #dock .dock-n { font-size: 11px; }
  html[lang="en"] header h1.kind-title button { font-size: 12px; }
}
