@charset "utf-8";
/* 공용 UI 조각 — 모달과 토글. assets/ui.js 와 짝이다.
   공개 화면(app.css)과 관리자 화면(admin.css) 양쪽에서 불린다.
   색은 각 화면이 정의한 CSS 변수를 따라가고, 없는 변수는 대체값을 쓴다. */

/* ── 카드 색 20종 ──────────────────────────────────────
   아이콘·제목이 --fg, 카드 바탕이 --bg. 전부 --fg 가 --bg 위에서 4.5:1 이상이다.
   공개 화면의 카드와 관리자의 색 고르기가 같은 값을 봐야 해서 여기 둔다.
   보라·인디고 대역(#6366f1~#8b5cf6)은 쓰지 않는다. */
.t-rose    { --bg:#fde9ee; --fg:#a33a55; }
.t-mint    { --bg:#e2f4ec; --fg:#217052; }
.t-sky     { --bg:#e4f0fb; --fg:#1f5c8f; }
.t-apricot { --bg:#fdeedd; --fg:#9a5a18; }
.t-lilac   { --bg:#f0e9f9; --fg:#6b4a96; }
.t-blue    { --bg:#e6ecfa; --fg:#2a4e9b; }
.t-butter  { --bg:#fbf1d6; --fg:#8a6512; }
.t-coral   { --bg:#fdeae7; --fg:#a8412f; }
.t-peony   { --bg:#fbe7f1; --fg:#9c3468; }
.t-teal    { --bg:#dff1f2; --fg:#146a6e; }
.t-green   { --bg:#e6f3e2; --fg:#366a2c; }
.t-stone   { --bg:#eeedf0; --fg:#55505c; }
/* 여분 8종 */
.t-cocoa   { --bg:#f2e9e1; --fg:#77502e; }
.t-olive   { --bg:#edf0dd; --fg:#59631f; }
.t-navy    { --bg:#e3e7f0; --fg:#2b3a63; }
.t-plum    { --bg:#f3e6ef; --fg:#713257; }
.t-cream   { --bg:#faf3e3; --fg:#6f6136; }
.t-slate   { --bg:#e6ecef; --fg:#3f5a68; }
.t-brick   { --bg:#f7e6e0; --fg:#8c4326; }
.t-forest  { --bg:#e0ece2; --fg:#23533a; }

/* ── 모달 ──────────────────────────────────────────── */
.mcui-lock { overflow: hidden; }

.mcui-back {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px;
  background: rgba(30, 24, 32, .52);
}

.mcui-box {
  width: 100%; max-width: 420px;
  max-height: 84vh; max-height: 84svh;
  display: flex; flex-direction: column;
  padding: 22px 20px 16px;
  background: var(--card, #fff);
  color: var(--ink, #23202a);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(40, 28, 38, .24);
}
.mcui-wide { max-width: 640px; }

.mcui-title {
  margin: 0 0 10px;
  font-size: 20px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em;
}

.mcui-body {
  flex: 1; min-height: 0; overflow-y: auto;
  margin: 0 0 20px;
  font-size: 16px; line-height: 1.7;
  color: var(--sub, var(--ink-sub, #6a6472));
}
.mcui-body p { margin: 0 0 .7em; }
.mcui-body p:last-child { margin-bottom: 0; }

/* 좌측 하단 위험 · 우측 하단 취소. 버튼이 하나면 오른쪽에 붙는다. */
.mcui-acts { display: flex; justify-content: space-between; gap: 10px; }
.mcui-acts > .mcui-btn:only-child { margin-left: auto; }

.mcui-btn {
  min-height: 48px; padding: 10px 20px;
  font: inherit; font-size: 16px; font-weight: 700;
  border: 1px solid var(--line, #e3dfe6); border-radius: 10px;
  background: var(--card, #fff); color: var(--ink, #23202a);
  cursor: pointer;
}
.mcui-btn:hover { filter: brightness(.97); }
.mcui-primary {
  background: var(--accent, #b3455f); border-color: var(--accent, #b3455f); color: #fff;
}
.mcui-danger {
  background: var(--danger-bg, #fdecea); border-color: #e9c3bd;
  color: var(--danger, #a83226);
}

/* 처리방침처럼 긴 글을 넣을 때 */
.mcui-doc { font-size: 15px; color: var(--ink, #23202a); }
.mcui-doc h3 { margin: 18px 0 6px; font-size: 16px; }
.mcui-doc h3:first-child { margin-top: 0; }
.mcui-doc p { margin: 0 0 .6em; }
.mcui-doc ul { margin: 0 0 .8em; padding-left: 1.2em; }
.mcui-doc li { margin: 0 0 .3em; }

/* ── 토글 ──────────────────────────────────────────── */
.mcui-toggle {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; margin: 0;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
}
.mcui-toggle-label { cursor: pointer; }

.mcui-switch {
  flex: none; position: relative;
  width: 54px; height: 30px; padding: 0;
  border: 1px solid var(--line, #e3dfe6); border-radius: 999px;
  background: #ddd7dd;
  cursor: pointer;
  transition: background .16s ease;
}
.mcui-switch[aria-checked='true'] {
  background: var(--accent, #b3455f); border-color: var(--accent, #b3455f);
}
.mcui-switch[disabled] { opacity: .55; cursor: wait; }

.mcui-knob {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(40, 28, 38, .3);
  transition: transform .16s ease;
}
.mcui-switch[aria-checked='true'] .mcui-knob { transform: translateX(24px); }

@media (prefers-reduced-motion: reduce) {
  .mcui-switch, .mcui-knob { transition: none; }
}
