/* owner-actions.js 바텀시트 + 수정/삭제 모달 */
.oa-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
}
.oa-sheet {
  width: 100%; max-width: 480px;
  background: #16171c; border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px 20px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2,.8,.3,1);
}
.oa-sheet.show { transform: none; }
/* 앱 셸 iframe 안에서는 셸 하단 네비(+조그)가 시트를 덮으므로 여백을 넉넉히 더한다
   (72px는 부족 — 삭제/닫기 버튼이 네비에 가려 안 눌림, 사장님 제보 2026-07-24) */
.oa-sheet.oa-shell-pad { padding-bottom: calc(18px + env(safe-area-inset-bottom) + 128px); }
.oa-grab { width: 40px; height: 4px; border-radius: 999px; background: #3a3d46; margin: 6px auto 12px; }
.oa-title { font-size: 13px; font-weight: 700; color: #9aa0ad; text-align: center; margin-bottom: 10px; }
.oa-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 15px 14px; border: none; background: rgba(255,255,255,.03);
  border-radius: 13px; color: #f3f4f6; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; margin-bottom: 8px; text-align: left;
}
.oa-item:active { background: rgba(255,255,255,.07); }
/* 이모지 → SVG. 아이콘 폭을 고정해 라벨 좌측이 정확히 맞물린다 */
.oa-ic { flex: 0 0 22px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.oa-ic svg { width: 21px; height: 21px; display: block; }
.oa-item .oa-ic { color: #c9d1e0; }
.oa-danger .oa-ic { color: #ff4d67; }
.oa-danger { color: #ff4d67; }
.oa-cancel { justify-content: center; color: #9aa0ad; background: none; }

/* 수정/삭제 확인 모달
   상단 앵커 — 세로 중앙이면 키보드가 입력창을 덮어 글을 못 씀(사장님 제보 2026-07-24).
   위에 붙이고 자체 스크롤을 줘서, 키보드가 올라와도 입력창/버튼이 늘 보이게 한다. */
.oa-overlay .oa-modal {
  align-self: flex-start;
  margin-top: max(56px, calc(env(safe-area-inset-top) + 24px));
  margin-bottom: auto;
  max-height: calc(100dvh - 96px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  width: calc(100% - 40px); max-width: 400px;
  background: #16171c; border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 22px 20px;
  transform: scale(.94); opacity: 0; transition: transform .18s ease, opacity .18s ease;
}
.oa-modal.show { transform: none; opacity: 1; }
.oa-modal-title { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.oa-desc { font-size: 13.5px; line-height: 1.6; color: #9aa0ad; margin-bottom: 18px; }
.oa-field { margin-bottom: 13px; }
.oa-label { display: block; font-size: 12px; font-weight: 700; color: #cfd3db; margin-bottom: 6px; }
.oa-input {
  width: 100%; padding: 11px 13px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); border-radius: 11px;
  color: #fff; font-size: 14.5px; font-family: inherit; outline: none;
}
.oa-input:focus { border-color: #3d6bff; }
.oa-textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.oa-select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa0ad' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.oa-select option { background: #16171c; color: #fff; }
.oa-row { display: flex; gap: 10px; margin-top: 20px; }
.oa-btn {
  flex: 1; padding: 13px; border: none; border-radius: 12px;
  font-size: 14.5px; font-weight: 800; font-family: inherit; cursor: pointer;
}
.oa-btn-ghost { background: rgba(255,255,255,.06); color: #cfd3db; }
.oa-btn-gold { background: linear-gradient(135deg,#c9d1e0,#ffe08a); color: #0a0a0b; }
.oa-btn-danger { background: #ff4d67; color: #fff; }
.oa-btn:disabled { opacity: .6; }

/* 토스트 */
.oa-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 10px);
  z-index: 9500; background: rgba(20,21,26,.96); border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: 13.5px; font-weight: 600; padding: 11px 18px; border-radius: 12px;
  opacity: 0; transition: all .28s ease; pointer-events: none;
}
.oa-toast.show { opacity: 1; transform: translate(-50%, 0); }
