/* ===== 기본 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
  font-size: 14px; color: #1f2937; background: #eef1f5;
  display: flex; flex-direction: column; overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
input, select, textarea { user-select: text; -webkit-user-select: text; }
.hidden { display: none !important; }

/* ===== 상단바 ===== */
#topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: #1e293b; color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); z-index: 20;
}
#topbar .brand { font-size: 16px; font-weight: 700; margin-right: 8px; }
#topbar .spacer { flex: 1; }
.zoom-ctl { display: flex; gap: 4px; }

.btn {
  padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; color: #1f2937; font-size: 13px; cursor: pointer;
  transition: background .12s, transform .05s;
}
.btn:hover { background: #f1f5f9; }
.btn:active { transform: scale(.97); }
.btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.btn.sq { width: 32px; padding: 6px 0; text-align: center; }
.btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
#topbar .btn { background: #334155; border-color: #475569; color: #e2e8f0; }
#topbar .btn:hover { background: #475569; }
#topbar .btn.active { background: #2563eb; border-color: #3b82f6; color: #fff; }

#editTools { display: none; gap: 8px; }
body.edit-mode #editTools { display: flex; }

/* ===== 메인 레이아웃 ===== */
#main { flex: 1; display: flex; min-height: 0; position: relative; }

/* 제품 패널 */
#productPanel {
  width: 320px; background: #fff; border-right: 1px solid #dde3ea;
  display: flex; flex-direction: column; min-height: 0; z-index: 10;
  transition: margin-left .18s ease;
}
#productPanel.collapsed { margin-left: -320px; }
#btnTogglePanel {
  position: absolute; left: 320px; top: 10px; z-index: 11;
  width: 22px; height: 44px; border: 1px solid #dde3ea; border-left: none;
  border-radius: 0 8px 8px 0; background: #fff; cursor: pointer; color: #64748b;
  transition: left .18s ease;
}
#productPanel.collapsed + #btnTogglePanel { left: 0; }
.panel-head { padding: 10px; border-bottom: 1px solid #eef1f5; display: flex; flex-direction: column; gap: 8px; }
#prodSearch {
  width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px;
}
.chk { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 5px; }
#prodList { flex: 1; overflow-y: auto; }

.prod-row, .grp-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9; cursor: grab;
}
.prod-row:hover, .grp-row:hover { background: #f1f5f9; }
.grp-row { cursor: pointer; background: #fafbfc; }
.grp-row.open { background: #eef2f7; border-bottom-color: #e2e8f0; }
.grp-caret { flex: none; width: 14px; color: #64748b; font-size: 11px; }
.prod-row.in-grp { padding-left: 30px; background: #fff; }
.prod-row.in-grp:hover { background: #f8fafc; }
.placed-mark { font-size: 10px; }
.prod-main { flex: 1; min-width: 0; }
.prod-name {
  font-size: 12.5px; font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-sub { display: flex; gap: 6px; margin-top: 3px; align-items: center; }
.chip {
  background: #eef2ff; color: #4338ca; font-size: 11px; padding: 1px 7px;
  border-radius: 20px; font-weight: 600; white-space: nowrap;
}
.chip.gray { background: #f1f5f9; color: #64748b; }
.brand { font-size: 11px; color: #94a3b8; }
.prod-nums { text-align: right; flex: none; }
.prod-nums .num { font-size: 11px; color: #64748b; line-height: 1.5; }
.prod-nums .num b { color: #1f2937; }
.prod-nums .num.warn b { color: #d97706; }
.prod-nums .num.danger b { color: #dc2626; }
.prod-nums .num.ok b { color: #16a34a; }
.empty-note { padding: 24px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ===== 캔버스 ===== */
#canvasWrap { flex: 1; position: relative; min-width: 0; overflow: hidden; }
#canvas {
  width: 100%; height: 100%; display: block; touch-action: none;
  background:
    linear-gradient(#e6eaf0 1px, transparent 1px),
    linear-gradient(90deg, #e6eaf0 1px, transparent 1px);
  background-size: 40px 40px; background-color: #eef1f5; cursor: grab;
}
body.dragging { cursor: grabbing !important; }
/* 편집 모드: 배경 드래그 = 선택 */
body.edit-mode #canvas { cursor: crosshair; }
/* Space 누름 = 팬 대기 — 랙/섹션 위에서도 grab 커서 */
body.space-pan #canvas, body.space-pan #canvas * { cursor: grab !important; }

.section-label { font-size: 18px; font-weight: 700; }
.section.locked .section-label { opacity: .8; }
.resize-handle { cursor: nwse-resize; opacity: .85; rx: 3; }
/* 우하단 크기조절 그립 (랙/섹션/오브젝트 공통) */
.resize-grip { cursor: nwse-resize; }
.grip-bg { fill: #fff; fill-opacity: .92; stroke: #94a3b8; stroke-width: 1; }
.grip-lines { stroke: #64748b; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.resize-grip:hover .grip-bg { stroke: #2563eb; stroke-width: 1.5; }
.resize-grip:hover .grip-lines { stroke: #2563eb; }

/* 그룹 레인 */
.grouplane-box {
  fill: #64748b; fill-opacity: .05; stroke: #94a3b8; stroke-width: 1;
  stroke-dasharray: 4 4;
}
.grouplane.selected .grouplane-box { stroke: #2563eb; stroke-width: 2; fill: #2563eb; fill-opacity: .06; }
.grouplane.snap-target .grouplane-box { stroke: #16a34a; stroke-width: 2.5; fill: #16a34a; fill-opacity: .1; stroke-dasharray: none; }
.grp-badge-bg { fill: #64748b; }
.grouplane.selected .grp-badge-bg { fill: #2563eb; }
.grp-badge-t { fill: #fff; font-size: 10px; font-weight: 700; text-anchor: middle; }
.lod-low .grp-badge { display: none; }

/* 배치도 오브젝트 (작업대·기둥 등) */
.mapobj-box { fill-opacity: .72; stroke: rgba(0,0,0,.28); stroke-width: 1; }
.mapobj.selected .mapobj-box { stroke: #2563eb; stroke-width: 3; fill-opacity: .9; }
.mapobj-label {
  fill: #fff; font-size: 13px; font-weight: 700; text-anchor: middle;
  paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 2.5px;
  pointer-events: none;
}
.mapobj-resize { fill: #2563eb; }

.rack { cursor: pointer; }
body.edit-mode .rack { cursor: move; }
.rack-body { fill: #fff; stroke: #94a3b8; stroke-width: 1.5; }
.rack-head { fill: #334155; }
.rack.selected .rack-body { stroke: #2563eb; stroke-width: 3; }
.rack.drop-hover .rack-body { stroke: #16a34a; stroke-width: 3; }
.rack-code {
  fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; pointer-events: none;
}

/* 단(스트립): 중립 색상 — 컬러는 하이라이트에만 사용 */
.strip { fill: #f5f7fa; }
.strip.filled { fill: #e4eaf2; }
.strip.hl { fill: #fde68a; stroke: #f59e0b; stroke-width: 2; }
.strip.drop-strip { stroke: #16a34a; stroke-width: 2.5; fill: #dcfce7; }
.strip.sel-strip { stroke: #2563eb; stroke-width: 2; fill: #dbeafe; }
.strip-text {
  font-size: 8px; line-height: 1.2; color: #1f2937; height: 100%;
  display: flex; align-items: center; gap: 3px; overflow: hidden;
}
.strip-text .lv {
  flex: none; background: rgba(15,23,42,.55); color: #fff; border-radius: 3px;
  font-size: 7px; padding: 0 3px; font-weight: 700; align-self: center;
}
.strip-text .nm {
  flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; word-break: break-all;
}
.strip-text .nm.multi { font-weight: 700; }
.strip-text .nm small { font-weight: 400; color: #64748b; }
.strip-text .meta {
  flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1;
}
.strip-text .meta b { color: #1d4ed8; font-size: 8.5px; white-space: nowrap; }
.strip-text .meta i { font-style: normal; font-weight: 700; color: #0f172a; }
.lod-low .strip-fo { display: none; }
.lod-low .rack-code { font-size: 16px; }
.rack-resize { fill: #2563eb; cursor: nwse-resize; opacity: .9; }

/* 배치도 툴팁 */
#mapTip {
  position: absolute; z-index: 30; pointer-events: none; max-width: 340px;
  background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 10px 12px;
  font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); line-height: 1.45;
}
.tip-loc { font-weight: 800; color: #fbbf24; margin-bottom: 4px; }
.tip-empty { color: #94a3b8; }
.tip-item { padding: 5px 0; border-top: 1px solid rgba(255,255,255,.12); }
.tip-item:first-of-type { border-top: none; }
.tip-name { font-weight: 700; color: #fff; }
.tip-line b { color: #93c5fd; }
.tip-line.dim { color: #94a3b8; font-size: 11px; }

/* 플로팅 툴바 */
#selToolbar {
  position: absolute; display: flex; gap: 4px; padding: 5px;
  background: #1e293b; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 15;
}
.tb-btn {
  border: none; background: #334155; color: #e2e8f0; font-size: 12px;
  padding: 5px 9px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.tb-btn:hover { background: #475569; }
.tb-btn.active { background: #2563eb; color: #fff; }
.tb-btn.danger:hover { background: #b91c1c; }
.tb-btn.disabled { opacity: .4; pointer-events: none; }
.tb-info { color: #cbd5e1; font-size: 12px; padding: 5px 6px; white-space: nowrap; }

/* 러버밴드 선택 박스 */
#selBox {
  position: absolute; z-index: 14; pointer-events: none;
  border: 1.5px dashed #2563eb; background: rgba(37,99,235,.08); border-radius: 4px;
}

/* 빈 배치도 안내 */
#emptyHint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.empty-box {
  pointer-events: auto; background: #fff; padding: 30px 40px; border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12); text-align: center;
}
.empty-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.empty-desc { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 18px; }

/* ===== 랙 상세 패널 ===== */
#detailPanel {
  width: 360px; background: #f8fafc; border-left: 1px solid #dde3ea;
  overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 12px; z-index: 10;
}
.detail-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.detail-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #334155; color: #fff;
}
.detail-code { font-size: 15px; font-weight: 800; }
.detail-name { flex: 1; font-size: 12px; color: #cbd5e1; }
.icon-btn { border: none; background: transparent; color: #fff; font-size: 14px; cursor: pointer; padding: 2px 5px; border-radius: 6px; }
.icon-btn:hover { background: rgba(255,255,255,.15); }

.level-row {
  display: flex; gap: 8px; padding: 9px 10px; border-bottom: 1px solid #f1f5f9; min-height: 62px;
}
.level-row:last-child { border-bottom: none; }
.level-label {
  flex: none; width: 34px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #475569; background: #f1f5f9; border-radius: 8px;
}
.level-zone { flex: 1; min-width: 0; border-radius: 8px; transition: background .1s; padding: 2px; }
.level-zone.drop-hover { background: #dcfce7; outline: 2px dashed #16a34a; outline-offset: -2px; }
.level-cards { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.level-empty {
  color: #b6c1cf; font-size: 12px; display: flex; align-items: center; height: 100%;
  min-height: 42px; justify-content: center; border: 1.5px dashed #dde3ea; border-radius: 8px;
}
.pl-card {
  border: 1.5px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 6px 9px; cursor: grab;
}
.pl-card:hover { border-color: #2563eb; background: #f8fafc; }
.pl-memo { font-size: 11px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card.set { border-style: dashed; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.opt-chip {
  border: 1px solid #c7d2fe; background: #eef2ff; color: #4338ca; font-size: 11px;
  padding: 2px 8px; border-radius: 20px; cursor: pointer; font-weight: 600;
}
.opt-chip:hover { background: #e0e7ff; }
.opt-chip b { color: #1e1b4b; }
.from-code {
  background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 5px; margin-right: 4px;
}

/* ===== 바코드 라벨 인쇄 ===== */
.row-print {
  flex: none; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8;
  cursor: pointer; font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 14px; white-space: nowrap; line-height: 1.3;
}
.row-print:hover { background: #dbeafe; border-color: #93c5fd; }
.lp-form select { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }

.lp-body { display: flex; gap: 18px; align-items: flex-start; }
.lp-form { width: 300px; flex: none; }
.lp-row { display: flex; gap: 10px; }
.lp-row .field { flex: 1; }
.lp-preview-wrap { flex: none; }
.lp-preview .label {
  border: 1px solid #cbd5e1; box-shadow: 0 4px 14px rgba(0,0,0,.12); border-radius: 4px;
}
.pl-name {
  font-size: 12px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pl-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 3px; font-size: 11.5px; }
.pl-qty { font-size: 14px; }

/* ===== 드래그 고스트 ===== */
.drag-ghost {
  position: fixed; z-index: 1000; pointer-events: none; max-width: 300px;
}
.ghost-card {
  background: #1e293b; color: #fff; font-size: 12px; padding: 7px 11px;
  border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  display: flex; align-items: center; gap: 6px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ghost-card b { color: #93c5fd; }
.strip-move-row label { font-size: 12px; color: #1f2937 !important; }
.strip-move-row label b { color: #1d4ed8; }

/* ===== 모달 ===== */
.modal-back {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: #fff; border-radius: 14px; min-width: 340px; max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 18px 20px;
}
.modal.wide { min-width: 620px; }
.modal-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.modal-body { margin-bottom: 16px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 8px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px;
}
.field input[type="color"] { height: 38px; padding: 3px; }
.hint { font-size: 12px; color: #94a3b8; margin-top: 5px; }
.pl-edit-head { font-size: 13px; margin-bottom: 12px; }

/* 이력 */
.hist-body { max-height: 60vh; overflow-y: auto; }
.hist-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hist-table th {
  text-align: left; padding: 6px 8px; background: #f1f5f9; color: #475569;
  position: sticky; top: 0; font-size: 12px;
}
.hist-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; }
.hist-table .ts { color: #94a3b8; white-space: nowrap; }
.hist-table .loc { white-space: nowrap; font-weight: 600; }
.hist-table .qty { text-align: right; font-weight: 700; }
.hist-table .pname { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kind { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.kind.place { background: #dcfce7; color: #15803d; }
.kind.move { background: #dbeafe; color: #1d4ed8; }
.kind.adjust { background: #fef3c7; color: #b45309; }
.kind.remove { background: #fee2e2; color: #b91c1c; }

/* ===== 입고/출고 워크플로우 바 ===== */
#workTools { display: flex; gap: 6px; }
#wfBar {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 90%;
  background: #0f172a; color: #e2e8f0; padding: 10px 16px; border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); z-index: 18; font-size: 13px;
}
.wf-title { font-weight: 800; color: #fbbf24; white-space: nowrap; }
.wf-msg { color: #94a3b8; }
.wf-msg.strong { color: #4ade80; font-weight: 700; }
.wf-prod { max-width: 380px; line-height: 1.3; }
.wf-prod b { color: #93c5fd; }
.wf-prod small { color: #94a3b8; display: block; }
.wf-qty input {
  width: 70px; padding: 5px 8px; border-radius: 8px; border: 1px solid #475569;
  background: #1e293b; color: #fff; font-size: 14px; font-weight: 700;
}
.wf-locs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #94a3b8; }
.wf-loc {
  border: 1px solid #475569; background: #1e293b; color: #e2e8f0;
  padding: 4px 10px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.wf-loc:hover { background: #334155; border-color: #64748b; }
.wf-close {
  border: none; background: #334155; color: #fca5a5; padding: 5px 10px;
  border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; margin-left: 4px;
}
.wf-close:hover { background: #7f1d1d; color: #fff; }

/* ===== 실사 패널 ===== */
#auditPanel {
  width: 380px; background: #fff; border-left: 3px solid #f59e0b;
  overflow-y: auto; display: flex; flex-direction: column; z-index: 10;
}
.audit-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #b45309; color: #fff; position: sticky; top: 0;
}
.audit-step { font-size: 12px; font-weight: 700; opacity: .9; }
.audit-code { flex: 1; font-size: 18px; font-weight: 900; }
.audit-body { flex: 1; padding: 10px; }
.audit-level { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.audit-items { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.audit-item {
  display: flex; align-items: center; gap: 8px; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 9px;
}
.ai-name { flex: 1; font-size: 12px; line-height: 1.25; min-width: 0; }
.ai-name b { color: #1d4ed8; }
.audit-item input {
  width: 80px; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 14px; font-weight: 700; text-align: right;
}
.audit-nav {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e2e8f0;
  position: sticky; bottom: 0; background: #fff;
}
.audit-nav .btn { flex: 1; }

/* ===== 대시보드 ===== */
.modal.dash { min-width: 860px; }
.dash-body { max-height: 70vh; overflow-y: auto; }
.dash-cards { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-card {
  flex: 1; min-width: 140px; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 12px 14px;
}
.dash-card.warn { background: #fffbeb; border-color: #fcd34d; }
.dash-card.danger { background: #fef2f2; border-color: #fca5a5; }
.dc-v { font-size: 17px; font-weight: 800; }
.dc-v small { font-weight: 600; color: #64748b; }
.dc-l { font-size: 12px; color: #64748b; margin-top: 3px; }
.dash-sect-title { font-size: 13px; font-weight: 800; margin: 14px 0 8px; color: #334155; }
.dash-sec { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12.5px; }
.ds-code { width: 110px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-bar { flex: 1; height: 14px; background: #f1f5f9; border-radius: 8px; overflow: hidden; }
.ds-fill { height: 100%; background: #3b82f6; border-radius: 8px; }
.ds-num { width: 110px; text-align: right; color: #64748b; }
.dash-cols { display: flex; gap: 20px; }
.dash-cols > div { flex: 1; min-width: 0; }
.dash-btns { align-items: center; }
.dash-btns .btn { text-decoration: none; }
.kind.inbound { background: #dbeafe; color: #1e40af; }
.kind.outbound { background: #ffedd5; color: #c2410c; }

/* ===== 태블릿/터치 최적화 ===== */
@media (pointer: coarse) {
  .btn { padding: 10px 14px; font-size: 14px; }
  .btn.sq { width: 42px; padding: 10px 0; }
  .tb-btn { padding: 10px 13px; font-size: 14px; }
  .row-print { padding: 6px 12px; font-size: 13px; }
  .opt-chip { padding: 6px 12px; font-size: 13px; }
  .wf-loc { padding: 9px 14px; font-size: 14px; }
  .wf-close { padding: 9px 14px; font-size: 14px; }
  .level-empty { min-height: 54px; }
  .pl-card { padding: 10px 12px; }
  .prod-row, .grp-row { padding: 12px 10px; }
  #topbar { flex-wrap: wrap; row-gap: 6px; }
  .audit-item input { width: 92px; padding: 9px 10px; font-size: 16px; }
  .field input, .field select { padding: 11px 12px; font-size: 16px; }
}
.hist-table .worker { color: #64748b; white-space: nowrap; }
.hint.danger { color: #dc2626; font-weight: 700; }
.qty.dim, .dim { color: #94a3b8; font-weight: 400; }

/* ===== 토스트 ===== */
#toastWrap {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center;
}
.toast {
  background: #1e293b; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(8px); transition: all .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }
