:root {
  color-scheme: light;
  font-family: "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: #10284d;
  background: #e7f3fb;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
h1 { margin: 0; font-size: 28px; }
.bar, .note, .save-state, .try, .tabs, #workspace {
  width: min(1100px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 24px;
}
.mark { margin: 0; letter-spacing: 0.18em; font-size: 12px; font-weight: 800; }
.bar-actions { display: flex; gap: 10px; align-items: center; }
.bar a, button {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  background: white;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
#save, .tabs .on { background: #1a459c; color: white; border-color: #1a459c; }
.note { color: #4e6f96; }
.save-state { min-height: 1.2em; font-weight: 700; }
.try {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: end;
  background: white;
  border-radius: 16px;
  padding: 14px;
}
.try label { display: grid; gap: 6px; font-size: 13px; }
.try input, .field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
}
#preview {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}
.tabs { display: flex; gap: 8px; margin-top: 16px; }
#workspace { padding-bottom: 48px; }
.split { display: grid; grid-template-columns: 240px 1fr; gap: 16px; margin-top: 16px; }
.list { display: grid; gap: 6px; margin-top: 8px; }
.list button { text-align: left; border-radius: 12px; }
.list .on { background: #1a459c; color: white; border-color: #1a459c; }
.panel, .settings {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.field { display: grid; gap: 6px; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.warn { color: #9a3b00; margin: 0; }
.floor {
  position: relative;
  height: 360px;
  margin-top: 16px;
  border-radius: 16px;
  background: #163a78;
  overflow: hidden;
}
.zone {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  padding: 6px;
}
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: #444;
  color: white;
  min-width: 28px;
  height: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.pin.on { background: #1a459c; z-index: 2; }
.pin b { font-size: 12px; padding-right: 8px; white-space: nowrap; }
.check { display: flex; gap: 8px; align-items: center; }
.products { display: grid; gap: 12px; margin-top: 16px; }
.product {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
}
.product-head { display: flex; align-items: center; gap: 12px; }
.product-photo {
  width: 46px;
  height: 72px;
  object-fit: contain;
  background: #d0e5f6;
  border-radius: 8px;
}
.product h2 { margin: 0; font-size: 20px; }
.off { opacity: 0.72; }
@media (max-width: 800px) {
  .split, .try, .grid2 { grid-template-columns: 1fr; }
}

/* 비밀번호 화면 */
.lock { width: min(360px, calc(100% - 32px)); margin: 18vh auto 0; display: flex; flex-direction: column; gap: 12px; }
.lock .mark { margin: 0; }
.lock input { height: 48px; padding: 0 14px; border: 1px solid #b9cbe0; border-radius: 10px; background: white; }
.lock button { height: 48px; border: 0; border-radius: 10px; background: #1a459c; color: white; font-weight: 700; cursor: pointer; }
.lock-state { min-height: 1.4em; margin: 0; color: #c0392b; }
.lock[hidden], #app[hidden] { display: none; }

/* 상품 추가·삭제 */
.product-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: min(1100px, calc(100% - 32px)); margin: 16px auto 0; }
.product-tools button { height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: #1a459c; color: white; font-weight: 700; cursor: pointer; }
.product-head h2 { flex: 1; }
.danger { height: 34px; padding: 0 14px; border: 1px solid #e3b4ae; border-radius: 8px; background: white; color: #c0392b; cursor: pointer; }
.mute { color: #5b6f8c; }
.voice-intro { margin-top: 16px; line-height: 1.6; }
.voice-list { display: grid; gap: 12px; margin-top: 16px; }
.voice-item { display: grid; gap: 8px; padding: 16px; border: 1px solid #d7e1ee; border-radius: 14px; background: white; }
.voice-text { margin: 0; line-height: 1.6; white-space: pre-line; }
.voice-status { margin: 0; font-size: 13px; }
.warn-text { color: #b46a00; font-weight: 700; }
.voice-item audio { width: 100%; }
.voice-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.voice-actions.busy { opacity: .6; pointer-events: none; }

/* 제품 사진 올리기 */
.photo-box { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1.5px dashed #b9cbe0; border-radius: 14px; background: #f5f9fd; }
.photo-box.drop { border-color: #1a459c; background: #e6eefb; }
.photo-box.busy { opacity: .6; pointer-events: none; }
.photo-view { width: 96px; height: 128px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #d0e5f6; color: #5b6f8c; font-size: 13px; overflow: hidden; }
.photo-view img { max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.photo-pick { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; background: #1a459c; color: white; font-weight: 700; cursor: pointer; }
.photo-note { width: 100%; margin: 0; font-size: 13px; }

/* 장소 추가·삭제 */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head strong { font-size: 18px; }
.place-count { margin: 8px 0; font-size: 13px; }
