/* ksi-pickup 공통 스타일 — 모바일 우선 */
* { box-sizing: border-box; }
body {
  margin: 0; background: #f5f6f8; color: #1f2937;
  font-family: 'Pretendard', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 15px; line-height: 1.5;
}
header.app {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  background: #1e3a5f; color: #fff; padding: 10px 14px;
}
header.app h1 { font-size: 17px; margin: 0; flex: 1; font-weight: 600; }
header.app a, header.app button.link {
  color: #cbd5e1; font-size: 13px; text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: 4px 6px;
}
main { max-width: 720px; margin: 0 auto; padding: 14px; }
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.card h2 { font-size: 16px; margin: 0 0 10px; }
label.f { display: block; margin: 10px 0 4px; font-size: 13px; color: #6b7280; }
input[type=text], input[type=tel], input[type=number], textarea, select {
  width: 100%; padding: 10px 12px; font-size: 15px;
  border: 1px solid #d1d5db; border-radius: 8px; background: #fff;
}
textarea { resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 9px; border: 1px solid #d1d5db;
  background: #fff; color: #1f2937; font-size: 15px; cursor: pointer;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.btn-success { background: #16a34a; border-color: #16a34a; color: #fff; font-weight: 600; }
.btn-danger  { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 20px; font-size: 17px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.muted { color: #6b7280; font-size: 13px; }
.err { color: #dc2626; font-size: 14px; white-space: pre-line; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-stored { background: #dbeafe; color: #1d4ed8; }
.badge-done { background: #dcfce7; color: #15803d; }
.badge-canceled { background: #f3f4f6; color: #6b7280; }
.badge-admin { background: #fee2e2; color: #b91c1c; }
.shelf-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px; margin-top: 8px;
}
.shelf-grid button {
  padding: 12px 4px; border: 1.5px solid #d1d5db; border-radius: 10px;
  background: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.shelf-grid button .cnt { display: block; font-size: 11px; font-weight: 400; color: #6b7280; }
.shelf-grid button.sel { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 2px; border-bottom: 1px solid #f1f2f4;
}
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t { font-weight: 600; }
.list-item .s { font-size: 12.5px; color: #6b7280; }
.shelf-tag {
  min-width: 60px; text-align: center; padding: 8px 6px;
  background: #1e3a5f; color: #fff; border-radius: 9px;
  font-size: 16px; font-weight: 700;
}
#loginOverlay {
  position: fixed; inset: 0; background: #f5f6f8; z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 40px 44px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.login-card h2 { margin: 0 0 6px; }
.login-card p { color: #6b7280; margin: 0 0 18px; }
.tabbar { display: flex; gap: 6px; margin-bottom: 14px; }
.tabbar button {
  flex: 1; padding: 10px; border: 1px solid #d1d5db; background: #fff;
  border-radius: 9px; font-size: 14px; cursor: pointer;
}
.tabbar button.on { background: #1e3a5f; border-color: #1e3a5f; color: #fff; font-weight: 600; }
.preview-img { max-width: 100%; border-radius: 10px; border: 1px solid #e5e7eb; }
.spin {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid #93c5fd; border-top-color: transparent;
  border-radius: 50%; animation: sp 0.8s linear infinite; vertical-align: -4px;
}
@keyframes sp { to { transform: rotate(360deg); } }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 8px 6px; border-bottom: 1px solid #f1f2f4; text-align: left; }
table.tbl th { color: #6b7280; font-weight: 600; font-size: 12.5px; }
