:root {
  color: #111827;
  background: #f7f8fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

[hidden] {
  display: none !important;
}

.pin-screen,
.home-screen,
.app,
.fba-screen {
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.pin-screen {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: linear-gradient(145deg, #f7f8fa 0%, #e8edf3 100%);
}

.pin-card {
  width: 100%;
  max-width: 520px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 38px;
  padding: clamp(30px, 6vw, 54px);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 22px 60px rgb(15 23 42 / 14%);
  text-align: center;
}

.pin-card > * + * {
  margin-top: 22px;
}

.pin-card label {
  font-size: 42px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 850;
}

.pin-card input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 92px;
  border: 3px solid #c7ced8;
  border-radius: 22px;
  background: #f8fafc;
  color: #111827;
  font-size: 56px;
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-align: center;
  -webkit-text-security: disc;
}

.pin-card input:focus {
  border-color: #3478f6;
  outline: 5px solid rgb(52 120 246 / 18%);
}

.pin-card button {
  min-height: 82px;
  border: 0;
  border-radius: 22px;
  background: #3478f6;
  color: #fff;
  font-size: 32px;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 800;
}

.pin-error {
  min-height: 1.4em;
  color: #b42318;
  font-size: 20px;
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 650;
}

.home-screen {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.home-tile {
  position: relative;
  width: 29%;
  max-width: 460px;
  height: 36vh;
  min-height: 220px;
  max-height: 340px;
  margin: 16px;
  border: 0;
  border-radius: 40px;
  padding: 42px;
  color: #fff;
  font-size: 52px;
  font-weight: 850;
  line-height: 1.05;
  box-shadow: 0 18px 42px rgb(15 23 42 / 16%);
  touch-action: manipulation;
}

.orders-tile {
  background: linear-gradient(145deg, #3478f6, #1658d3);
}

.amazon-tile {
  background: linear-gradient(145deg, #f59d25, #df6b13);
}

.inventory-tile {
  background: linear-gradient(145deg, #22a447, #08783a);
}

.inventory-screen {
  max-width: 980px;
  margin: auto;
  gap: 20px;
}

.inventory-search-panel,
.inventory-editor,
.inventory-review-panel,
.inventory-success,
.inventory-history-panel {
  border-radius: 28px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(15 23 42 / 9%);
}

.inventory-search-panel label {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 850;
}

.inventory-search-row {
  display: -webkit-flex;
  display: flex;
  gap: 12px;
}

.inventory-search {
  width: 100%;
  min-height: 72px;
  border: 3px solid #c7ced8;
  border-radius: 18px;
  padding: 12px 18px;
  color: #111827;
  background: #f8fafc;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-search:focus,
.inventory-stepper input:focus {
  border-color: #3478f6;
  outline: 5px solid rgb(52 120 246 / 18%);
}

.inventory-hint {
  min-height: 1.4em;
  margin-top: 10px;
  color: #52606d;
  font-size: 17px;
  font-weight: 650;
}

.inventory-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.inventory-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  min-height: 76px;
  border: 2px solid #e1e6ed;
  border-radius: 18px;
  padding: 15px 18px;
  background: #fff;
  color: #111827;
  text-align: left;
  touch-action: manipulation;
}

.inventory-result:disabled {
  border-color: #f0b4ae;
  background: #fff5f3;
  color: #8f1d14;
}

.inventory-result-sku {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 22px;
  font-weight: 900;
}

.inventory-result-title,
.inventory-result-blocked {
  color: #52606d;
  font-size: 17px;
  font-weight: 650;
}

.inventory-result-quantity {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 30px;
  font-weight: 900;
}

.inventory-editor {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.inventory-editor-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  width: 100%;
  text-align: center;
}

.inventory-editor-heading h2 {
  margin: 0;
  font-size: 28px;
}

.inventory-back {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #eef1f4;
  color: #374151;
  font-size: 38px;
}

.inventory-sku {
  margin-top: 6px;
  color: #52606d;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 18px;
  font-weight: 750;
}

.inventory-location {
  margin: 28px 0 16px;
  color: #52606d;
  font-size: 21px;
}

.inventory-modes {
  display: -webkit-flex;
  display: flex;
  border-radius: 18px;
  padding: 4px;
  background: #f0f2f5;
}

.inventory-modes button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 10px 18px;
  background: transparent;
  color: #374151;
  font-size: 19px;
  font-weight: 800;
}

.inventory-modes .selected {
  background: #fff;
  color: #111827;
  box-shadow: 0 3px 10px rgb(15 23 42 / 12%);
}

.inventory-stepper {
  display: grid;
  grid-template-columns: 92px minmax(170px, 260px) 92px;
  gap: 18px;
  margin: 42px 0 28px;
}

.inventory-stepper button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: #e9ebee;
  color: #34383d;
  font-size: 54px;
  line-height: 1;
  touch-action: manipulation;
}

.inventory-stepper input {
  min-width: 0;
  border: 2px solid #e1e4e8;
  border-radius: 42px;
  background: #fff;
  color: #17191c;
  font-size: 68px;
  font-weight: 850;
  text-align: center;
}

.inventory-reason-row,
.inventory-facts {
  width: min(100%, 620px);
  border: 2px solid #edf0f3;
  border-radius: 18px;
  background: #fff;
}

.inventory-reason-row {
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 20px 22px;
  color: #52606d;
  font-size: 19px;
}

.inventory-facts {
  margin-top: 20px;
  overflow: hidden;
}

.inventory-facts > div {
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 20px 22px;
  font-size: 21px;
}

.inventory-facts > div + div {
  border-top: 1px solid #edf0f3;
}

.inventory-facts .active {
  background: #f5f6f7;
  font-weight: 900;
}

.inventory-draft-summary {
  min-height: 1.4em;
  margin: 22px 0 14px;
  font-size: 21px;
  font-weight: 800;
}

.inventory-editor > .fulfill-button,
.inventory-success > .fulfill-button {
  width: min(100%, 620px);
}

.inventory-review-panel,
.inventory-success {
  text-align: center;
}

.inventory-review-label {
  color: #52606d;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-review-change {
  margin: 34px 0 10px;
  font-size: clamp(48px, 9vw, 82px);
  font-weight: 900;
}

.inventory-review-delta {
  color: #52606d;
  font-size: 24px;
  font-weight: 750;
}

.inventory-review-actions {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.inventory-success-mark {
  display: -webkit-flex;
  display: flex;
  width: 94px;
  height: 94px;
  margin: 0 auto 20px;
  border-radius: 50%;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: #22a447;
  color: #fff;
  font-size: 62px;
  font-weight: 900;
}

.inventory-history-panel h2 {
  margin-top: 0;
}

.inventory-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 18px;
  padding: 13px 0;
}

.inventory-history-row + .inventory-history-row {
  border-top: 1px solid #e1e6ed;
}

.inventory-history-row strong {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.inventory-history-row time {
  grid-column: 1 / span 2;
  color: #667085;
  font-size: 15px;
}

.home-tile:active:not(:disabled) {
  transform: scale(0.985);
}

.home-tile:disabled {
  opacity: 0.52;
}

.home-status {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  border: 4px solid #fff;
  border-radius: 999px;
  padding: 8px 13px;
  background: #ff3b30;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgb(84 14 9 / 35%);
}

.app {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.order-number {
  font-size: 46px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1;
}

.queue-position {
  margin-top: 8px;
  color: #52606d;
  font-size: 22px;
  font-size: clamp(18px, 2.4vw, 25px);
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mode-badge {
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffedb5;
  color: #684b00;
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}

.fba-summary-button {
  display: -webkit-inline-flex;
  display: inline-flex;
  margin-top: 12px;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  min-height: 52px;
  border: 3px solid #172033;
  border-radius: 16px;
  padding: 8px 15px;
  background: #fff;
  color: #172033;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.close-button {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border: 0;
  border-radius: 20px;
  background: #d8dde3;
  color: #111827;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  touch-action: manipulation;
}

.content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 28vw);
  gap: 28px;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.address-card,
.item-row {
  border-radius: 16px;
  padding: 20px 24px;
}

.address-card {
  background: #c9edff;
  font-size: 28px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
}

.address-name {
  display: block;
  font-weight: 800;
}

.items {
  display: grid;
  gap: 16px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.3fr) 1fr;
  align-items: center;
  background: #e5e7eb;
  box-shadow: 0 3px 10px rgb(15 23 42 / 8%);
}

.item-row.multi {
  background: #ffd66b;
}

.quantity {
  padding-right: 22px;
  border-right: 4px solid rgb(17 24 39 / 18%);
  font-size: 58px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}

.pack-code {
  padding-left: 28px;
  font-size: 80px;
  font-size: clamp(54px, 9vw, 110px);
  font-weight: 850;
  line-height: 0.95;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nav-button,
.secondary-button {
  min-height: 70px;
  border: 0;
  border-radius: 18px;
  background: #d8dde3;
  color: #111827;
  font-size: 40px;
  font-weight: 750;
}

.fulfill-button {
  flex: 1;
  min-height: 180px;
  border: 0;
  border-radius: 36px;
  padding: 26px;
  background: #22a447;
  color: #fff;
  font-size: 40px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
}

button:disabled {
  cursor: default;
}

.close-button:disabled,
.nav-button:disabled,
.secondary-button:disabled,
.fulfill-button:disabled {
  opacity: 0.42;
}

.fulfill-button.busy {
  background: #53616f;
}

.message-panel {
  flex: 1;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 40px;
}

.message-panel:not([hidden]) {
  display: grid;
}

.message-title {
  font-size: 52px;
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 850;
}

.message-text {
  max-width: 780px;
  margin: 16px 0 28px;
  color: #52606d;
  font-size: 26px;
  font-size: clamp(20px, 3vw, 30px);
}

.secondary-button {
  padding: 14px 30px;
  font-size: 24px;
}

.fba-screen {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.fba-screen > * + * {
  margin-top: 22px;
}

.fba-task-list {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.fba-task-list > * + * {
  margin-top: 16px;
}

.fba-task-card {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  width: 100%;
  min-height: 112px;
  padding: 20px 24px;
  border: 3px solid transparent;
  border-radius: 24px;
  background: #fff;
  color: #111827;
  box-shadow: 0 6px 20px rgb(15 23 42 / 10%);
  text-align: left;
  touch-action: manipulation;
}

.fba-task-card:active {
  transform: scale(0.992);
}

.fba-task-blocked {
  border-color: #d92d20;
  background: #fff5f3;
}

.fba-task-in_progress {
  border-color: #f59d25;
}

.fba-task-card-main {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  min-width: 0;
}

.fba-task-card-main > * + * {
  margin-top: 8px;
}

.fba-task-name {
  overflow: hidden;
  font-size: 34px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fba-task-counts {
  color: #52606d;
  font-size: 23px;
  font-weight: 650;
}

.fba-task-status {
  flex: 0 0 auto;
  margin-left: 20px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #dff4e5;
  color: #146b2e;
  font-size: 21px;
  font-weight: 800;
}

.fba-task-status-blocked {
  background: #fee4e2;
  color: #9b1c14;
}

.fba-task-status-in_progress {
  background: #fff0c2;
  color: #714d00;
}

.fba-action-error,
.fba-blocked-panel,
.fba-stage-panel,
.fba-complete-panel {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 24px;
}

.fba-action-error {
  padding: 16px 20px;
  background: #fee4e2;
  color: #9b1c14;
  font-size: 21px;
  font-weight: 750;
}

.fba-blocked-panel {
  padding: 22px 24px;
  border: 3px solid #d92d20;
  background: #fff5f3;
}

.fba-blocked-reasons {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin-top: 14px;
}

.fba-blocked-reasons > * + * {
  margin-top: 8px;
}

.fba-blocked-reason {
  font-size: 20px;
  line-height: 1.35;
}

.fba-stage-panel {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 24px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(15 23 42 / 10%);
}

.fba-stage-panel > * + * {
  margin-left: 22px;
}

.fba-stage-column {
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.fba-stage-column > * + * {
  margin-top: 18px;
  margin-left: 0;
}

.fba-stage-heading {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.fba-stage-heading > * + * {
  margin-left: 18px;
}

.fba-stage-number {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  background: #f59d25;
  color: #fff;
  font-size: 34px;
  font-weight: 850;
}

.fba-section-title {
  font-size: 31px;
  font-weight: 850;
  line-height: 1.1;
}

.fba-stage-text {
  margin-top: 5px;
  color: #52606d;
  font-size: 21px;
  line-height: 1.3;
}

.fba-primary-button {
  min-height: 72px;
  margin-left: auto;
  border: 0;
  border-radius: 20px;
  padding: 16px 28px;
  background: #22a447;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  touch-action: manipulation;
}

.fba-primary-button:disabled {
  opacity: 0.42;
}

.fba-roll-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top))
    max(28px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(28px, env(safe-area-inset-left));
  background: rgb(17 24 39 / 86%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.fba-roll-dialog {
  display: -webkit-flex;
  display: flex;
  width: 100%;
  max-width: 780px;
  min-height: 560px;
  border: 6px solid #f59d25;
  border-radius: 38px;
  padding: 42px;
  background: #fff;
  box-shadow: 0 28px 90px rgb(0 0 0 / 38%);
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
}

.fba-roll-action-label {
  border-radius: 999px;
  padding: 10px 22px;
  background: #f59d25;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.fba-roll-visual {
  position: relative;
  width: 126px;
  height: 126px;
  margin-top: 24px;
  border: 18px solid #f59d25;
  border-radius: 50%;
  background: #fff4d6;
  box-shadow: inset 0 0 0 6px #fff;
}

.fba-roll-visual::after {
  position: absolute;
  top: 82px;
  left: 82px;
  width: 92px;
  height: 40px;
  border-radius: 0 10px 10px 0;
  background: #f59d25;
  content: "";
  transform: rotate(12deg);
  transform-origin: left center;
}

.fba-roll-visual.shipment {
  width: 150px;
  height: 150px;
  border-width: 22px;
}

.fba-roll-visual.shipment::after {
  top: 96px;
  left: 96px;
  width: 112px;
  height: 48px;
}

.fba-roll-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 8px solid #d6a95b;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.fba-roll-title {
  margin-top: 30px;
  font-size: 43px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.fba-roll-instruction {
  max-width: 650px;
  margin-top: 18px;
  color: #354152;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.fba-roll-confirm-button {
  width: 100%;
  min-height: 92px;
  margin-top: 34px;
  border: 0;
  border-radius: 24px;
  padding: 18px 28px;
  background: #22a447;
  color: #fff;
  box-shadow: 0 10px 24px rgb(34 164 71 / 28%);
  font-size: 29px;
  font-weight: 900;
  line-height: 1.15;
  touch-action: manipulation;
}

.fba-roll-confirm-button:focus {
  outline: 6px solid rgb(52 120 246 / 30%);
  outline-offset: 5px;
}

.fba-roll-confirm-button:disabled {
  opacity: 0.42;
}

.fba-check-list {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.fba-check-list > * + * {
  margin-top: 12px;
}

.fba-empty-prep {
  padding: 24px;
  border-radius: 18px;
  background: #e8f7ec;
  color: #146b2e;
  font-size: 25px;
  font-weight: 750;
  text-align: center;
}

.fba-relabel-instruction {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  border: 3px solid #f59d25;
  border-radius: 18px;
  padding: 16px 20px;
  background: #fff0c2;
  color: #5c3b00;
}

.fba-relabel-instruction[hidden] {
  display: none;
}

.fba-relabel-instruction strong {
  font-size: 23px;
  font-weight: 900;
}

.fba-relabel-instruction span {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.fba-check-button {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  width: 100%;
  min-height: 116px;
  border: 3px solid #c7ced8;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  background: #f8fafc;
  color: #111827;
  text-align: left;
  touch-action: manipulation;
}

.fba-check-button.confirmed {
  border-color: #22a447;
  background: #edf9f0;
}

.fba-check-button:disabled:not(.confirmed) {
  opacity: 0.56;
}

.fba-check-mark {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 76px;
  flex: 0 0 76px;
  background: #d8dde3;
  color: #fff;
  font-size: 43px;
  font-weight: 900;
}

.fba-check-button.confirmed .fba-check-mark {
  background: #22a447;
}

.fba-check-button.confirmed .fba-prep-headline > * + *,
.fba-check-button.confirmed .fba-pack-headline > * + * {
  border-left-color: #a8dcb5;
}

.fba-check-content {
  display: -webkit-flex;
  display: flex;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-width: 0;
  padding: 14px 20px;
}

.fba-check-content > * + * {
  margin-top: 5px;
}

.fba-prep-headline,
.fba-pack-headline {
  display: -webkit-flex;
  display: flex;
  width: 100%;
}

.fba-prep-headline > * + *,
.fba-pack-headline > * + * {
  margin-left: 28px;
  border-left: 5px solid rgb(17 24 39 / 20%);
  padding-left: 28px;
}

.fba-item-metric {
  display: -webkit-flex;
  display: flex;
  -webkit-flex: 1 1 50%;
  flex: 1 1 50%;
  -webkit-flex-direction: column;
  flex-direction: column;
  min-width: 0;
}

.fba-item-metric-quantity {
  -webkit-flex: 0.38 1 38%;
  flex: 0.38 1 38%;
}

.fba-item-metric-sku {
  -webkit-flex: 0.62 1 62%;
  flex: 0.62 1 62%;
}

.fba-item-metric-label {
  -webkit-align-self: flex-start;
  align-self: flex-start;
  margin-bottom: 5px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #52606d;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.fba-item-metric-quantity .fba-item-metric-label {
  background: #ffd66b;
  color: #5c3b00;
}

.fba-item-metric-sku .fba-item-metric-label {
  background: #172033;
  color: #fff;
}

.fba-item-quantity {
  margin-top: 4px;
  font-size: 58px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.fba-item-code {
  margin-top: 2px;
  font-size: 78px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.fba-item-sku {
  overflow: hidden;
  color: #52606d;
  font-size: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fba-barcode-line {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 19px;
}

.fba-barcode-line.target {
  color: #111827;
  font-size: 22px;
  font-weight: 800;
}

.fba-box-identity {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin: -24px -24px 0;
  padding: 18px 24px;
  border-radius: 24px 24px 0 0;
  background: #172033;
  color: #fff;
}

.fba-box-progress {
  font-size: 23px;
  font-weight: 750;
}

.fba-box-code {
  margin-top: 4px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
}

.fba-box-full-id {
  max-width: 50%;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 20px;
  font-weight: 750;
  text-align: right;
  word-break: break-all;
}

.fba-label-panel {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 4px solid #f59d25;
}

.fba-label-panel > * + * {
  margin-top: 16px;
}

.fba-label-instruction {
  padding: 15px 18px;
  border-radius: 16px;
  background: #fff0c2;
  color: #684b00;
  font-size: 19px;
  font-weight: 700;
}

.fba-print-status {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  border: 3px solid #82b1ff;
  border-radius: 18px;
  padding: 15px 18px;
  background: #edf5ff;
  color: #173b6c;
}

.fba-print-status[hidden] {
  display: none;
}

.fba-print-status strong {
  font-size: 22px;
  font-weight: 900;
}

.fba-print-status span {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 700;
}

.fba-print-status button {
  min-height: 54px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  padding: 10px 18px;
  background: #245da8;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  touch-action: manipulation;
}

.fba-print-status.failed {
  border-color: #d92d20;
  background: #fff0ee;
  color: #8f1d14;
}

.fba-print-status.ambiguous {
  border-color: #f59d25;
  background: #fff0c2;
  color: #684b00;
}

.fba-label-buttons {
  display: -webkit-flex;
  display: flex;
}

.fba-label-buttons > * + * {
  margin-left: 16px;
}

.fba-label-button {
  display: -webkit-flex;
  display: flex;
  -webkit-flex: 1 1 50%;
  flex: 1 1 50%;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 150px;
  border: 4px solid #c7ced8;
  border-radius: 24px;
  padding: 18px;
  background: #f8fafc;
  color: #111827;
  touch-action: manipulation;
}

.fba-label-button.confirmed {
  border-color: #22a447;
  background: #e8f7ec;
  box-shadow: inset 0 0 0 4px #22a447;
}

.fba-label-button span {
  font-size: 24px;
  font-weight: 800;
}

.fba-label-button strong {
  margin: 8px 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 39px;
}

.fba-label-button small {
  max-width: 100%;
  overflow: hidden;
  color: #52606d;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fba-complete-panel {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  flex: 1;
  padding: 40px;
  text-align: center;
}

.fba-complete-mark {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #22a447;
  color: #fff;
  font-size: 72px;
  font-weight: 900;
}

@media (max-width: 760px), (orientation: portrait) {
  .home-screen {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .home-tile {
    width: 84%;
    height: 25vh;
    min-height: 160px;
    max-height: 240px;
    margin: 12px;
  }

  .inventory-search-row,
  .inventory-review-actions {
    grid-template-columns: 1fr;
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .inventory-stepper {
    grid-template-columns: 72px minmax(110px, 1fr) 72px;
    gap: 12px;
  }

  .inventory-stepper button {
    width: 72px;
    height: 72px;
    font-size: 44px;
  }

  .inventory-stepper input {
    font-size: 50px;
  }

  .app {
    gap: 18px;
  }

  .fba-screen > * + * {
    margin-top: 16px;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .controls {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) 1fr;
  }

  .fulfill-button {
    min-height: 110px;
    border-radius: 24px;
  }

  .fba-stage-panel {
    padding: 18px;
  }

  .fba-prep-headline > * + *,
  .fba-pack-headline > * + * {
    margin-left: 18px;
    padding-left: 18px;
  }

  .fba-stage-panel:not(.fba-stage-column) {
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .fba-stage-panel:not(.fba-stage-column) > * + * {
    margin-top: 18px;
    margin-left: 0;
  }

  .fba-primary-button {
    width: 100%;
    margin-left: 0;
  }

  .fba-roll-overlay {
    padding: max(18px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  .fba-roll-dialog {
    min-height: 0;
    border-width: 5px;
    border-radius: 30px;
    padding: 30px 24px;
  }

  .fba-roll-title {
    font-size: 36px;
  }

  .fba-roll-instruction {
    font-size: 22px;
  }

  .fba-roll-confirm-button {
    min-height: 84px;
    font-size: 25px;
  }

  .fba-label-buttons {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .fba-label-buttons > * + * {
    margin-top: 16px;
    margin-left: 0;
  }

  .fba-box-identity {
    margin: -18px -18px 0;
    padding: 16px 18px;
  }

  .fba-box-code {
    font-size: 42px;
  }
}

@media (orientation: landscape) {
  .pin-screen {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .pin-card {
    max-width: 760px;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    padding: 16px 20px;
    border-radius: 22px;
  }

  .pin-card > * + * {
    margin-top: 0;
  }

  .pin-card label {
    width: 100%;
    margin-bottom: 12px;
    font-size: 28px;
  }

  .pin-card input {
    width: auto;
    min-width: 0;
    min-height: 66px;
    -webkit-flex: 1 1 280px;
    flex: 1 1 280px;
    margin-right: 12px;
    font-size: 42px;
  }

  .pin-card button {
    min-height: 66px;
    -webkit-flex: 0 0 180px;
    flex: 0 0 180px;
    font-size: 28px;
  }

  .pin-error {
    width: 100%;
    min-height: 1.2em;
    margin-top: 10px;
    font-size: 18px;
  }
}

.fba-bundle-card { padding: 1rem; border: 1px solid var(--border, #d1d5db); border-radius: 12px; }
.fba-bundle-headline {
  display: -webkit-flex;
  display: flex;
  margin: 8px 0 16px;
}
.fba-bundle-headline .fba-item-metric-quantity {
  -webkit-flex: 0 0 30%;
  flex: 0 0 30%;
  padding-right: 24px;
}
.fba-bundle-headline .fba-item-metric-sku {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  border-left: 4px solid #c7ced8;
  padding-left: 24px;
}
.fba-bundle-headline .fba-item-metric-label {
  margin-bottom: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.075em;
}
.fba-bundle-headline .fba-item-quantity {
  margin-top: 0;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}
.fba-bundle-headline .fba-item-code {
  margin-top: 0;
  font-size: 66px;
  font-weight: 850;
  line-height: 0.98;
  white-space: nowrap;
}
@media (max-width: 430px) {
  .fba-bundle-headline .fba-item-metric-quantity { padding-right: 12px; }
  .fba-bundle-headline .fba-item-metric-sku { padding-left: 12px; }
  .fba-bundle-headline .fba-item-metric-label { padding: 6px 7px; font-size: 10px; }
  .fba-bundle-headline .fba-item-quantity { font-size: 34px; }
  .fba-bundle-headline .fba-item-code { font-size: 42px; }
}


.fba-demo-entry { margin: 20px 0; }
.fba-demo-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 16px 20px;
  border: 2px solid #aa730f;
  border-radius: 12px;
  background: #fff5d9;
  color: #5c3c05;
}
.fba-demo-notice span { flex: 1; min-width: 220px; }

body.fba-demo-summary {
  font: 16px system-ui;
  max-width: 760px;
  margin: 30px auto;
  padding: 15px;
  color: #182723;
  background: white;
}
.fba-demo-summary h1 { font-size: 25px; }
.fba-demo-summary h2 { font-size: 20px; }
.fba-demo-summary section { break-inside: avoid; margin: 25px 0; }
@media print {
  @page { size: A4; margin: 18mm; }
  body.fba-demo-summary { font-size: 12px; line-height: 1.35; margin: 0; padding: 0; }
  .fba-demo-summary h1 { font-size: 20px; }
  .fba-demo-summary h2 { font-size: 16px; }
  .fba-demo-summary section { margin: 14px 0; }
  .fba-demo-summary button { display: none; }
}

/* Sequential set preparation and deliberate replacement labels. */
#fbaSequentialPanel { align-items: stretch; gap: 1rem; }
#fbaSequentialPanel > * { margin: 0; }
.fba-sequential-button { width: 100%; min-height: 64px; }
.fba-sequential-steps { margin: 0; padding-left: 1.8em; font-size: clamp(20px, 2.5vw, 28px); }
.fba-sequential-steps li { padding: .4em 0 .4em .3em; }
.fba-reprint-dialog { width: min(640px, calc(100% - 32px)); box-sizing: border-box; border: 0; border-radius: 24px; padding: 28px; color: #17202f; background: #fff; }
.fba-reprint-dialog::backdrop { background: #17202f99; }
.fba-reprint-dialog > button { width: 100%; margin-top: 18px; }
.fba-reprint-dialog h2 { margin-top: 0; }
.fba-reprint-quantity { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.fba-reprint-quantity button { min-width: 60px; min-height: 60px; font-size: 30px; }
.fba-reprint-quantity input { width: 100%; min-width: 0; text-align: center; border: 1px solid #cbd3dd; border-radius: 12px; padding: 12px; font-size: 32px; font-weight: 700; }
.fba-output-check { display: flex; align-items: center; gap: 12px; font-size: 19px; padding: 14px 0; }
.fba-output-check input { min-width: 24px; height: 24px; }

.fba-task-topbar > div:first-child { min-width: 0; }
#fbaTaskTitle { overflow-wrap: anywhere; }

#fbaReprintDialog { margin: auto; }
.fba-reprint-dialog .fba-item-code { font-size: 44px; margin: 18px 0; }
