button {
  cursor:pointer;
  width:auto;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
#runBtn, #clearBtn {
  width: 104px;
  min-width: 104px;
  justify-content: center;
  text-align: center;
}
#openMultiParcelBtn {
  min-width: 120px;
  padding-left: 12px;
  padding-right: 12px;
  justify-content: center;
  text-align: center;
}
button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2); }
button:active { transform: translateY(0); }
#clearBtn, #revertBtn, #clearAutoBtn { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
#googleOpenBtn, #googleOpenNameAddrBtn { background: #111827; }
.map-actions {
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 0;
}
.map-actions button {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}
.print-label-btn {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: none;
  white-space: nowrap;
}
#sendBackUspsBtn {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: #004b87;
  border-color: #b8d2ef;
  box-shadow: none;
  position: relative;
}
#sendBackUspsBtn::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: -2px;
  background:
    radial-gradient(circle at center, #ffffff 0 28%, transparent 29%),
    linear-gradient(180deg, #c8102e 0 18%, #ffffff 18% 36%, #c8102e 36% 54%, #ffffff 54% 72%, #c8102e 72% 90%, #ffffff 90% 100%);
  border: 2px solid #004b87;
}
#sendBackMilitaryBtn {
  background:
    linear-gradient(135deg, #566046 0%, #6f7756 32%, #3e4634 32%, #3e4634 56%, #777e60 56%, #777e60 100%);
  color: #f4f1de;
  border-color: #414833;
  box-shadow: none;
}
#sendBackWaBtn {
  background: #ffe6e3;
  color: #9f1239;
  border-color: #f7b8b8;
  box-shadow: none;
}
#sendBackOorBtn {
  background: #fff0dc;
  color: #9a3412;
  border-color: #f3c58b;
  box-shadow: none;
}
#sendBackCustomBtn {
  background: #ecfeff;
  color: #155e75;
  border-color: #a5f3fc;
  box-shadow: none;
}
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pill-tab {
  width: auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}
.memo-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.send-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.lookup-notice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid #f7c7c7;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(254,242,242,0.96) 100%);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.05);
}
.lookup-notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lookup-notice-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}
.lookup-notice-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid #f1b9b9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #991b1b;
  background: rgba(255,255,255,0.92);
}
.lookup-notice-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #991b1b;
}
.lookup-notice-text {
  font-size: 14px;
  line-height: 1.45;
  color: #7f1d1d;
  font-weight: 600;
  word-break: break-word;
}
.second-delivery-btn {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}
.second-delivery-btn:disabled {
  cursor: default;
  background: #e5e7eb;
  color: #6b7280;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}
.storage-main-row {
  grid-template-columns: minmax(0, 1.2fr) 220px 240px;
  align-items: start;
}
.storage-main-row.second-delivery-mode {
  grid-template-columns: minmax(0, 1fr) 240px;
}
.second-delivery-combined {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.second-delivery-combined .lookup-notice {
  min-height: 100%;
}
.second-delivery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.storage-spotlight {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
}
.storage-spotlight.highlight {
  border-color: #f3c2c2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}
.storage-spotlight-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.storage-spotlight-id {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  word-break: break-word;
}
.storage-spotlight.highlight .storage-spotlight-id {
  color: #b91c1c;
}
.storage-spotlight-latest {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}
.storage-spotlight-latest-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.storage-spotlight-latest-value {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
}
.storage-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.storage-progress-track {
  width: 100%;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3efe7;
  overflow: hidden;
}
.storage-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0f766e 0%, #16a34a 100%);
  transition: width .25s ease, background .25s ease;
}
.storage-progress.error .storage-progress-fill {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}
.storage-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.storage-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.storage-progress-percent {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.storage-progress-status {
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.storage-progress-status.error {
  color: #b91c1c;
}
.memoInput.is-empty {
  color: var(--muted);
}
.pill {
  display:inline-block; padding: 4px 10px; border:1px solid var(--line);
  border-radius:999px; font-size:12px; background:#fff; color: var(--muted);
}
.ok { border-color:#b8e3c2; background:#f2fff5; color:#1b5e20; }
.bad { border-color:#f3c2c2; background:#fff3f3; color:#7f1d1d; }
.mono { font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; }
.stack { display:flex; flex-direction:column; gap:12px; }
.kv { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
.kv-row { display:grid; grid-template-columns: 220px 1fr; gap:10px; padding:9px 12px; border-bottom:1px solid #f1ede6; }
.kv-row:last-child { border-bottom:0; }
.kv-k {
  font-size: 9px;
  color: #8a857c;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.kv-v {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}
.attempt-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.attempt-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  justify-self: center;
}
.attempt-item {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}
.compact-top-row {
  grid-template-columns: 0.97fr auto minmax(0, 1.27fr) auto minmax(136px, 0.65fr) !important;
}
.compact-top-row .sub-batch-value {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attempt-label {
  color: #8a857c;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.cards { display:grid; gap:12px; }
.card {
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: fadeUp .35s ease both;
}
.card h3 { margin:0 0 8px; font-size:13px; color:#0f172a; }
.empty { font-size:12px; color: var(--muted); }
.red { color:#c62828; font-weight:600; }
.ready-to-handle-text { color:#7C3AED; font-weight:800; }
.hidden { display:none; }
.storage-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.9);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.storage-card.eligible {
  background: #eefbf1;
  border-color: #b8e3c2;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}
.storage-card.not-eligible {
  background: #fff4eb;
  border-color: #f3c2c2;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}
.storage-label {
  margin-bottom: 8px;
}
.criteria-list {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.criteria-list li {
  margin-bottom: 4px;
}
.criteria-list li:last-child {
  margin-bottom: 0;
}
#sendBackBtn.dimmed {
  background: #d1d5db;
  color: #6b7280;
  box-shadow: none;
  border-color: transparent;
}
#sendBackBtn.ready {
  background: #15803d;
}
.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.topbar-actions .status-bar {
  justify-content: flex-end;
  margin-top: 0;
}
.topbar-actions .status-text {
  display: none;
}
.status-bar .pill { font-size: 14px; padding: 6px 12px; }
.status-text { font-size: 14px; color: var(--muted); }
.pod-images { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pod-images img { width: 100%; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
