:root {
  --sh-bg: #faf6f3;
  --sh-surface: #ffffff;
  --sh-surface-2: #fff7f2;
  --sh-surface-3: #ffefe6;
  --sh-primary: #c2410c;
  --sh-primary-hover: #9a3412;
  --sh-accent: #e8590c;
  --sh-text: #2a1408;
  --sh-muted: #7c685c;
  --sh-border: #f0e4da;
  --sh-danger: #dc2626;
  --sh-ok: #127a45;
  --sh-ozon: #005bff;
  --sh-wb: #cb11ab;
  --sh-radius: 12px;
  --sh-control-radius: 10px;
  --sh-control-height: 40px;
  --sh-text-sm: 12px;
  --sh-text-base: 14px;
  --sh-header-h: 64px;
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --sh-bg: #140e0c;
  --sh-surface: #1c1411;
  --sh-surface-2: #261a16;
  --sh-surface-3: #3a241c;
  --sh-primary: #fb923c;
  --sh-primary-hover: #fdba74;
  --sh-accent: #f97316;
  --sh-text: #fff7ed;
  --sh-muted: #c4a99a;
  --sh-border: #3a2a24;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--sh-bg);
  color: var(--sh-text);
  font-size: var(--sh-text-base);
  min-height: 100vh;
}
a { color: var(--sh-primary); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.sh-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sh-surface);
  border-bottom: 1px solid var(--sh-border);
}
.sh-header-row {
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}
@media (min-width: 640px) {
  .sh-header-row { padding: 12px 24px; }
}
.sh-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sh-brand-menu { position: relative; user-select: none; }
.sh-brand-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--sh-text); }
.sh-brand-drum {
  position: relative;
  display: inline-block;
  height: 1.5rem;
  overflow: hidden;
}
.sh-brand-drum-track {
  display: flex;
  flex-direction: column;
  animation: shBrandDrumSpin 8s ease-in-out infinite;
}
.sh-brand-drum-track > span {
  display: block;
  height: 1.5rem;
  line-height: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.sh-brand-accent-split { display: inline-flex; }
.sh-brand-accent-ozon { color: #005bff; }
.sh-brand-accent-pivot {
  background: linear-gradient(90deg, #005bff, #cb11ab);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sh-brand-accent-wb { color: #cb11ab; }
.sh-brand-consulting {
  background: linear-gradient(180deg, #d2a673 0%, #b8834f 48%, #9a6538 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sh-brand-fulfillment { color: #c2410c; }
.sh-brand > .sh-brand-fulfillment { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.sh-brand-ecosystem {
  color: #127a45;
}
@keyframes shBrandDrumSpin {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-1.5rem); }
  40%, 56% { transform: translateY(-3rem); }
  60%, 76% { transform: translateY(-4.5rem); }
  80%, 100% { transform: translateY(-6rem); }
}
.sh-brand-panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--sh-border);
  background: var(--sh-surface);
  box-shadow: 0 8px 24px rgba(42, 20, 8, 0.12);
  z-index: 30;
}
.sh-brand-panel.is-open { display: block; }
.sh-brand-panel-item {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--sh-text);
  font-size: 0.9rem;
  font-weight: 700;
}
.sh-brand-panel-item:hover { background: var(--sh-surface-2); }
.sh-brand-panel-item--analytics .sh-brand-accent-split { font-size: 0.9rem; }
.sh-brand-panel-item--consulting { color: #b8834f; }
.sh-brand-panel-item--fulfillment { color: #c2410c; }
.sh-brand-panel-item--ecosystem { color: #127a45; }
.sh-header-actions { display: flex; align-items: center; gap: 8px; }
.sh-cab-menu { position: relative; }
.sh-cab-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sh-text);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.sh-cab-trigger:hover { background: var(--sh-surface-2); }
.sh-cab-trigger-label { text-transform: uppercase; white-space: nowrap; }
.sh-cab-chevron { flex-shrink: 0; color: var(--sh-muted); }
.sh-cab-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 260px;
  padding: 12px 0;
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(42, 20, 8, 0.12);
  z-index: 30;
}
.sh-cab-panel.is-open { display: block; }
.sh-cab-panel-inner { padding: 0 12px; }
.sh-cab-group-title { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--sh-muted); }
.sh-cab-user { margin: 0 0 8px; font-weight: 600; }
.sh-cab-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.sh-cab-item.is-danger { color: var(--sh-danger); }
.sh-cab-item:hover { background: var(--sh-surface-2); }
.sh-nav {
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--sh-border);
  padding: 0 16px 4px;
}
.sh-nav::-webkit-scrollbar { display: none; }
.sh-search {
  width: 220px;
  max-width: 100%;
  margin: 0 0 12px;
}
.sh-search-input { min-height: 34px; font-size: 13px; padding: 0 10px; }
.sh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.sh-search-miss { margin: 0 0 12px; color: var(--sh-muted); }
.is-search-hidden, .is-filter-hidden { display: none !important; }
.ff-text-btn {
  background: transparent;
  border: 0;
  color: var(--sh-danger);
  padding: 8px 0;
  cursor: pointer;
  font-weight: 600;
}
.ff-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
}
.ff-check input { width: 22px; height: 22px; accent-color: var(--sh-primary); }
.ff-client-card { position: relative; padding-right: 46px; }
.ff-tiles { display: grid; gap: 0; }
.ff-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--sh-border);
}
.ff-tile-body { display: grid; gap: 2px; min-width: 0; }
.ff-tile time, .ff-tile-body time { color: var(--sh-muted); font-size: 12px; }
.ff-tile-open { text-align: right; font-weight: 650; }
.ff-code-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ff-barcode-thumb { display: block; background: #fff; border-radius: 8px; padding: 4px; max-width: 180px; }
.ff-barcode-thumb svg { width: 160px; height: 48px; display: block; }
.ff-barcode-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.ff-print-card { flex: 0 0 240px; min-width: 220px; }
.ff-print-toolbar { margin-bottom: 10px; }
.ff-grip {
  position: absolute;
  left: 6px;
  top: 8px;
  z-index: 2;
  width: 28px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--sh-muted);
  cursor: grab;
  padding: 0;
}
.ff-rack-card, .ff-shelf, .ff-fold-card { padding-left: 34px; }
.ff-expiry { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ff-expiry .sh-input { width: auto; min-height: 36px; }
.ff-expiry-check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.ff-assign-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--sh-surface);
  border-top: 1px solid var(--sh-border);
  box-shadow: 0 -8px 24px rgba(42, 20, 8, 0.08);
}
.ff-assign-bar[hidden] { display: none !important; }
.ff-assign-count { margin: 0; white-space: nowrap; }
.ff-assign-bar .sh-select { flex: 1; min-width: 0; }
.ff-history { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.ff-history time { display: block; color: var(--sh-muted); font-size: 12px; }
.sh-code { overflow-wrap: anywhere; }
.sh-nav a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sh-muted);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  text-decoration: none;
}
.sh-nav-link-inner { display: inline-flex; align-items: center; gap: 8px; }
.sh-nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sh-nav a:hover { color: var(--sh-text); background: color-mix(in srgb, var(--sh-border) 35%, transparent); }
.sh-nav a.is-active {
  font-weight: 600;
  color: var(--sh-text);
  background: color-mix(in srgb, var(--sh-primary) 12%, transparent);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--sh-border);
  background: var(--sh-surface-2);
  color: var(--sh-text);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle:hover { background: color-mix(in srgb, #c2410c 14%, var(--sh-surface-2)); }
html[data-theme="dark"] .theme-toggle-glyph--sun,
html[data-theme="light"] .theme-toggle-glyph--moon { display: none; }

.sh-main { padding: 20px 16px 48px; max-width: none; width: 100%; margin: 0 auto; }
.sh-pick .sh-main, .sh-pick.sh-wide .sh-main { max-width: none; }
.ff-board { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.ff-board--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ff-board--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.ff-pack-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.8fr repeat(5, minmax(0, 0.7fr)); gap: 8px; }
.ff-pack-list { display: grid; gap: 10px; }
.ff-pack-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ff-pack-money { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 0; font-weight: 650; }
.ff-col-title { margin: 0 0 10px; font-size: 16px; }
.ff-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ff-col-head .ff-col-title { margin: 0; }
.ff-sort { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sh-muted); width: 148px; max-width: 42vw; flex: 0 0 auto; }
.ff-sort .sh-select { min-height: 36px; font-size: 14px; }
.ff-receive { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr); gap: 14px; align-items: start; }
.ff-priority { margin: 8px 0 0; padding-left: 18px; }
.ff-priority li { margin: 8px 0; color: var(--sh-muted); }
.ff-priority li.is-current { color: var(--sh-text); font-weight: 700; }
.ff-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ff-inline { display: flex; gap: 8px; align-items: center; }
.ff-inline .sh-input, .ff-inline .sh-select { width: auto; flex: 1; min-width: 72px; min-height: 40px; }
.ff-scan { position: fixed; inset: 0; background: rgba(20, 14, 12, 0.72); z-index: 40; display: grid; place-items: center; padding: 16px; }
.ff-scan[hidden] { display: none; }
.ff-scan-card { width: min(420px, 100%); background: var(--sh-surface); border-radius: 16px; padding: 16px; }
.ff-scan-card video, #scanReader { width: 100%; border-radius: 12px; background: #000; min-height: 220px; }
@media (max-width: 900px) {
  .ff-board, .ff-board--2, .ff-board--3, .ff-receive, .ff-dims, .ff-pack-grid { grid-template-columns: 1fr; }
  .ff-inline { flex-direction: column; align-items: stretch; }
}
.sh-page-title { font-size: 24px; margin: 0 0 16px; letter-spacing: -0.02em; }
.sh-lead { color: var(--sh-muted); margin: 0 0 16px; }

.sh-card {
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(42, 20, 8, 0.04);
}
.sh-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sh-pill {
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 12px 14px;
  min-width: 140px;
}
.sh-pill b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.sh-pill span { color: var(--sh-muted); font-size: var(--sh-text-sm); }

.sh-table-shell { overflow: auto; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); background: var(--sh-surface); }
.sh-table { width: 100%; border-collapse: collapse; font-size: var(--sh-text-sm); }
.sh-table th, .sh-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--sh-border); vertical-align: top; }
.sh-table th { background: color-mix(in srgb, var(--sh-accent) 8%, var(--sh-surface)); font-weight: 600; color: var(--sh-muted); }
.sh-table tr:last-child td { border-bottom: 0; }
.sh-num { text-align: right; font-variant-numeric: tabular-nums; }
.sh-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: 0.02em; }

.sh-btn, button.sh-btn, a.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sh-control-height);
  padding: 0 14px;
  border-radius: var(--sh-control-radius);
  border: 1px solid transparent;
  background: var(--sh-surface-2);
  color: var(--sh-text);
  font-weight: 650;
  cursor: pointer;
}
button.sh-btn.sh-btn--primary,
a.sh-btn.sh-btn--primary {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}
button.sh-btn.sh-btn--primary:hover,
a.sh-btn.sh-btn--primary:hover {
  background: #9a3412;
  border-color: #9a3412;
  color: #fff;
}
button.sh-btn.sh-btn--ghost,
a.sh-btn.sh-btn--ghost {
  background: transparent;
  border-color: var(--sh-border);
  color: var(--sh-text);
}
.sh-btn--block { width: 100%; }
.sh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

.sh-input, .sh-select {
  width: 100%;
  min-height: 48px;
  border-radius: var(--sh-control-radius);
  border: 1px solid var(--sh-border);
  background: var(--sh-surface);
  padding: 0 12px;
}
.sh-scan {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sh-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sh-field label { font-size: var(--sh-text-sm); color: var(--sh-muted); }

.sh-task {
  border: 1px solid color-mix(in srgb, #c2410c 35%, var(--sh-border));
  background: color-mix(in srgb, #c2410c 8%, var(--sh-surface));
  border-radius: var(--sh-radius);
  padding: 16px;
  margin-bottom: 16px;
}
.sh-kicker { color: #c2410c; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
[data-theme="dark"] .sh-kicker { color: var(--sh-accent); }
.sh-task h2 { margin: 4px 0 8px; font-size: 28px; }
.sh-hint { color: var(--sh-muted); margin: 0 0 12px; }

.sh-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
}
.sh-chip--ozon { color: var(--sh-ozon); background: color-mix(in srgb, var(--sh-ozon) 12%, transparent); }
.sh-chip--wb { color: var(--sh-wb); background: color-mix(in srgb, var(--sh-wb) 12%, transparent); }
.sh-status { font-weight: 700; }

.sh-messages { list-style: none; padding: 0; margin: 0 0 12px; }
.sh-messages li { border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.sh-messages .success { background: color-mix(in srgb, var(--sh-ok) 14%, var(--sh-surface)); }
.sh-messages .error { background: color-mix(in srgb, var(--sh-danger) 12%, var(--sh-surface)); }

.sh-empty { color: var(--sh-muted); padding: 28px 8px; text-align: center; }
.sh-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.sh-login .sh-card { width: min(420px, 100%); }
.sh-login h1 { margin: 8px 0; }
.sh-demo { font-size: var(--sh-text-sm); color: var(--sh-muted); line-height: 1.5; }
.sh-error { color: var(--sh-danger); font-size: var(--sh-text-sm); }

.sh-label-sheet { max-width: 360px; }
.sh-label-code { font-size: 32px; margin: 8px 0; }
.ff-steps { margin: 8px 0 0; padding-left: 18px; }
.ff-steps li { color: var(--sh-muted); margin: 4px 0; }
.ff-steps li.is-current { color: var(--sh-text); font-weight: 700; }
.ff-steps li.is-done { color: var(--sh-ok); }
.ff-rack { margin-top: 12px; }
.ff-col-filter { margin: 0 0 10px; min-height: 40px; font-size: 16px; }
.ff-ladder, .ff-ladder ol { list-style: none; margin: 0; padding: 0; }
.ff-ladder ol {
  margin: 4px 0 4px 6px;
  padding-left: 16px;
  border-left: 2px solid color-mix(in srgb, #c2410c 55%, var(--sh-border));
}
.ff-ladder-card { margin-top: 12px; }
.ff-ladder-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ff-good { padding: 6px 0; }
.ff-good--empty { color: var(--sh-muted); }
.ff-more { position: relative; flex: 0 0 auto; }
.ff-more-btn {
  list-style: none;
  width: 40px;
  height: 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--sh-text);
}
.ff-more-btn::-webkit-details-marker { display: none; }
.ff-more-btn span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: block; }
.ff-more-btn:hover { background: var(--sh-surface-2); }
.ff-more-menu {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 6;
  min-width: 180px;
  padding: 6px;
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(42, 20, 8, 0.12);
}
.ff-more-menu a, .ff-more-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 650;
  cursor: pointer;
  color: var(--sh-text);
}
.ff-more-menu a:hover, .ff-more-menu button:hover { background: var(--sh-surface-2); }
.ff-staff-qr { background: #fff; display: inline-block; padding: 6px; border-radius: 8px; margin-bottom: 8px; }
.ff-staff-qr svg { width: 148px; height: 148px; display: block; }
.ff-dialog {
  width: min(420px, calc(100vw - 24px));
  border: 1px solid var(--sh-border);
  border-radius: 16px;
  padding: 16px;
  background: var(--sh-surface);
  color: var(--sh-text);
}
.ff-dialog::backdrop { background: rgba(20, 14, 12, 0.55); }
.ff-qr-wrap { background: #fff; display: inline-block; padding: 8px; border-radius: 8px; }
.ff-qr-wrap svg { width: 220px; height: 220px; display: block; }
@media print {
  .sh-header, .sh-search, .sh-search-miss, .sh-messages, .sh-task, .ff-print-toolbar, .sh-btn, .sh-nav, .no-print { display: none !important; }
  body.is-print-one .ff-print-card { display: none !important; }
  body.is-print-one .ff-print-card.is-print-target { display: block !important; }
  .ff-barcode-row { display: block; }
  body { background: #fff; }
}

.ff-fold-card { margin-top: 12px; }
.ff-fold-head { position: relative; }
.ff-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 4px 44px 8px 0;
}
.ff-fold > summary::-webkit-details-marker { display: none; }
.ff-fold > summary::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #c2410c;
  transform: rotate(-90deg);
  vertical-align: middle;
}
.ff-fold[open] > summary::before { transform: rotate(0deg); }
.ff-fold-meta { display: inline; margin: 0 0 0 6px; }
.ff-rack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ff-rack-card, .ff-shelf {
  position: relative;
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  background: var(--sh-surface-2);
  padding: 8px 10px 8px 12px;
}
.ff-shelf { background: var(--sh-surface); margin-top: 8px; }
.ff-goods { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.ff-goods li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.ff-goods span { color: var(--sh-muted); }
.ff-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ff-barcode-card { margin-bottom: 12px; overflow: auto; }
.ff-barcode-wrap { background: #fff; border-radius: 8px; padding: 8px; margin: 6px 0 12px; }
.ff-barcode-wrap svg { width: min(100%, 420px); height: auto; display: block; }
.ff-rack-card > .ff-more, .ff-shelf > .ff-more, .ff-fold-head > .ff-more { position: absolute; right: 6px; top: 6px; }

@media (max-width: 720px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .sh-header-row { flex-wrap: wrap; gap: 8px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .sh-nav { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .sh-main { padding: 12px max(12px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .sh-search { width: 100%; }
  .ff-fold > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; }
  .ff-assign-bar { flex-wrap: wrap; }
  .ff-assign-bar .sh-btn { min-height: 44px; flex: 1; }
  .sh-table td form, .sh-table td .sh-btn { width: 100%; }
  .ff-barcode-wrap svg { width: 100%; }
  body.has-assign-bar .sh-main { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .sh-input, .sh-select, .sh-search-input { font-size: 16px; }
  .sh-page-title { font-size: 22px; }
  .sh-nav a span span { font-size: 13px; }
  .ff-ladder ol { margin-left: 2px; padding-left: 10px; }
  .ff-more-menu { right: 0; min-width: min(220px, 70vw); }
  .sh-btn--block { min-height: 48px; }
  .sh-brand-drum, .sh-brand-title { font-size: 1.05rem; }
  .sh-brand-drum { display: none; }
  .sh-cab-trigger { padding: 0 8px; }
  .sh-nav { gap: 4px; }
  .sh-nav a { padding: 8px; }
  .ff-pack-grid, .ff-card-grid, .ff-rack-grid { grid-template-columns: 1fr; }
  .ff-sort { width: 148px; max-width: 46vw; }
  .ff-tile { grid-template-columns: minmax(0, 1fr) 76px; }
  .ff-tile form { grid-column: 1 / -1; }
  .ff-barcode-row { gap: 8px; }
  .ff-print-card { flex-basis: 78vw; }
  .sh-header-row { align-items: flex-start; }
  .ff-dialog { width: calc(100vw - 24px); max-width: none; }
  .ff-col-head { align-items: stretch; flex-direction: column; }
  .sh-table thead { display: none; }
  .sh-table, .sh-table tbody, .sh-table tr, .sh-table td { display: block; width: 100%; }
  .sh-table tr { padding: 8px 0; border-bottom: 1px solid var(--sh-border); }
  .sh-table td { border: 0; padding: 2px 12px; text-align: left; }
  .ff-dialog { max-height: calc(100vh - 24px); overflow: auto; }
  .sh-task h2 { font-size: 22px; }
}
