/* SAFE V110 — 문자센터 4종 목적 선택 / 회차 완료 알림 / 회차 완료 푸시 설정
   표현 전용 스타일입니다. 마크업·핸들러·결제·출결·등록 로직은 건드리지 않습니다.
   색상은 minimal-dark-safe.css 의 다크 팔레트(배경 #111113 · 카드 #1c1c1f · 표면 #242428 · 선 #39393e)에 맞춥니다. */

/* ---------- 1. 문자 작성: 목적 4종 ---------- */
.msg-purpose-grid-safe-v110 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
}

.msg-purpose-card-safe-v110 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-height: 82px;
  padding: 13px 14px;
  text-align: left;
  background: #232327;
  color: #f5f5f6;
  border: 1px solid #48484f;
  border-radius: 14px;
}

.msg-purpose-card-safe-v110 b {
  font-size: 14px;
  font-weight: 750;
  color: #f7f7f8;
}

.msg-purpose-card-safe-v110 span {
  font-size: 11.5px;
  line-height: 1.45;
  color: #c0c0c8;
}

.msg-purpose-card-safe-v110[aria-pressed="true"] {
  background: #2f4436;
  border-color: #5d8268;
  box-shadow: inset 0 0 0 1px #5d8268;
}

.msg-purpose-card-safe-v110[aria-pressed="true"] b {
  color: #e4f6ea;
}

.msg-purpose-card-safe-v110[aria-pressed="true"] span {
  color: #c9e6d2;
}

.msg-purpose-card-safe-v110:focus-visible {
  outline: 2px solid #a6d3b5;
  outline-offset: 2px;
}

.msg-purpose-hint-safe-v110 {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #b5b5bd;
}

.msg-purpose-link-safe-v110 {
  display: inline;
  min-height: 0;
  padding: 0 2px;
  background: transparent;
  border: 0;
  color: #a5cfb5;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
}

.msg-purpose-note-safe-v110 {
  margin: 4px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #202024;
  border: 1px dashed #42424a;
  color: #b5b5bd;
  font-size: 11.5px;
  line-height: 1.5;
}

.msg-autofill-safe-v110 {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #c9e6d2;
}

.msg-autofill-safe-v110:empty {
  display: none;
}

.msg-autofill-safe-v110 b {
  color: #e4f6ea;
}

.msg-advanced-safe-v110 {
  margin: 6px 0 10px;
  padding: 10px 12px;
  border: 1px solid #39393e;
  border-radius: 13px;
  background: #1a1a1d;
}

.msg-advanced-safe-v110 > summary {
  cursor: pointer;
  color: #c0c0c8;
  font-size: 12.5px;
  font-weight: 750;
  list-style: none;
}

.msg-advanced-safe-v110 > summary::-webkit-details-marker {
  display: none;
}

.msg-advanced-safe-v110 > summary::before {
  content: "▸ ";
  color: #a5cfb5;
}

.msg-advanced-safe-v110[open] > summary::before {
  content: "▾ ";
}

.msg-action-row-safe-v110 {
  margin-top: 6px;
}

#msgSendSmsSafeV110 {
  background: #33473a;
  border: 1px solid #5d8268;
  color: #e4f6ea;
}

/* ---------- 2. 회차 완료 알림 팝업 ---------- */
.completion-alert-root-safe-v110 {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px calc(74px + env(safe-area-inset-bottom));
  background: #06060a99;
  backdrop-filter: blur(2px);
}

.completion-alert-root-safe-v110.hidden {
  display: none;
}

.completion-alert-sheet-safe-v110 {
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow: auto;
  padding: 16px;
  background: #1c1c1f;
  border: 1px solid #46464e;
  border-radius: 18px;
  box-shadow: 0 18px 48px #000000a6;
}

.completion-alert-head-safe-v110 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.completion-alert-head-safe-v110 h3 {
  margin: 0;
  font-size: 16px;
  color: #f7f7f8;
}

.completion-alert-sub-safe-v110 {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #b5b5bd;
}

.completion-alert-list-safe-v110 {
  display: grid;
  gap: 8px;
}

.completion-alert-item-safe-v110 {
  padding: 12px;
  border: 1px solid #3f3f47;
  border-radius: 13px;
  background: #242428;
}

.completion-alert-item-safe-v110 b {
  display: block;
  font-size: 14px;
  color: #f7f7f8;
}

.completion-alert-item-safe-v110 .meta {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #c0c0c8;
}

.completion-alert-actions-safe-v110 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.completion-alert-actions-safe-v110 a,
.completion-alert-actions-safe-v110 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
  background: #33473a;
  border: 1px solid #5d8268;
  color: #e4f6ea;
}

.completion-alert-actions-safe-v110 button {
  background: #2a2a2f;
  border-color: #4a4a52;
  color: #ececf0;
}

.completion-alert-foot-safe-v110 {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.completion-alert-foot-safe-v110 button {
  flex: 1 1 auto;
}

.completion-alert-empty-safe-v110 {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b5b5bd;
}

/* ---------- 3. 더보기: 회차 완료 푸시 설정 ---------- */
.push-settings-safe-v110 label {
  color: #b5b5bd;
}

.push-settings-safe-v110 details {
  margin-top: 6px;
}

.push-settings-safe-v110 details summary {
  cursor: pointer;
  color: #a5cfb5;
  font-size: 12px;
  font-weight: 750;
}

.push-settings-safe-v110 details p {
  margin: 6px 0 0;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .msg-purpose-grid-safe-v110 {
    grid-template-columns: 1fr;
  }

  .completion-alert-root-safe-v110 {
    align-items: flex-end;
    padding: 10px 8px calc(72px + env(safe-area-inset-bottom));
  }

  .completion-alert-sheet-safe-v110 {
    max-height: 78vh;
    border-radius: 16px;
  }
}
