/* 상담예약 알림 설정 (내 계정 › 알림&기능 › 상담예약) — 2026-11-12 «직접 조작형» 재개편 (샘플 sample/toast-settings/a.html)
   .tset-* = 탭 본문(consultation_toast_settings) · .tui-* = 알림 UI 설정 모달(toast_ui_types). A-4 액센트형 토큰.
   ⚠접두어 .cts-* 는 이관요청 설정(_campaign_transfer_settings.css)이 이미 쓴다 — 같은 이름으로 만들었다가 그쪽 .cts-card{display:flex} 가
     이 화면을 덮어 미리보기가 사라진 사고(10/11~11/12). 새 접두어를 쓰고 test/integration/corner_toast_settings_test 가 이름 충돌을 막는다. */

.tset { padding: 16px; background: var(--ord-surface-2); }
.tset-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tset-title h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ord-text); padding-left: 12px; border-left: 4px solid var(--ord-accent); line-height: 1.3; }
.tset-sp { flex: 1; }
.tset-saved { font-size: 11.5px; font-weight: 700; color: var(--ord-tint-green-fg); opacity: 0; transition: opacity .2s; }
.tset-saved.is-on { opacity: 1; }
.tset-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }

.tset-card { background: var(--ord-panel); border: 1px solid var(--ord-line); border-radius: 12px; overflow: hidden; }
.tset-card + .tset-card { margin-top: 12px; }
.tset-band { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--ord-band); border-bottom: 1px solid var(--ord-line); font-size: 12px; font-weight: 700; color: var(--ord-accent); }
.tset-band-r { margin-left: auto; font-weight: 600; color: var(--ord-text-2); font-size: 11.5px; }
.tset-body { padding: 14px; }
.tset-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.tset-row:last-child { margin-bottom: 0; }
.tset-row.is-between { justify-content: space-between; }
.tset-lbl { font-size: 12px; font-weight: 700; color: var(--ord-text-2); width: 84px; flex: none; }
.tset-dim { opacity: .45; }

/* 버튼 */
.tset-btn { border: 1px solid var(--ord-line); background: var(--ord-panel); color: var(--ord-text-2); border-radius: 9px; padding: 7px 13px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.tset-btn:hover { background: var(--ord-surface-2); }
.tset-btn-solid { background: var(--ord-head-bg); color: var(--ord-on-solid); border-color: var(--ord-head-bg); border-radius: 999px; padding: 8px 16px; }
.tset-btn-solid:hover { background: var(--ord-head-bg); filter: brightness(1.08); }
.tset-btn-pill { border-radius: 999px; color: var(--ord-accent); border-color: var(--ord-line-2); padding: 3px 12px; font-size: 11.5px; }
.tset-band .tset-btn-pill { margin-left: auto; }

/* 세그먼트(라디오 숨김) — 좌/우 · 자동 닫힘 */
.tset-seg { display: inline-flex; gap: 2px; background: var(--ord-band); border: 1px solid var(--ord-line); border-radius: 999px; padding: 3px; }
.tset-seg label { position: relative; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ord-text-3); cursor: pointer; white-space: nowrap; }
.tset-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.tset-seg label:has(input:checked) { background: var(--ord-head-bg); color: var(--ord-on-solid); }
.tset-seg label:has(input:disabled) { cursor: not-allowed; }
.tset-seg.is-grow { display: flex; flex: 1; }
.tset-seg.is-grow label { flex: 1; text-align: center; }

/* 슬라이더 · 스텝퍼 · 프리셋 */
.tset-range { flex: 1; min-width: 0; accent-color: var(--ord-accent); }
.tset-step { display: inline-flex; align-items: center; border: 1px solid var(--ord-line-2); border-radius: 9px; overflow: hidden; background: var(--ord-input-bg); }
.tset-step button { border: 0; background: var(--ord-band); width: 26px; height: 26px; color: var(--ord-text-2); font-weight: 700; cursor: pointer; font-family: inherit; }
.tset-step button:hover { background: var(--ord-line); }
.tset-step b { min-width: 58px; text-align: center; font-size: 12px; color: var(--ord-accent-strong); font-variant-numeric: tabular-nums; }
.tset-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tset-chip { border: 1px solid var(--ord-line); background: var(--ord-panel); border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 600; color: var(--ord-accent); cursor: pointer; font-family: inherit; }
.tset-chip:hover { background: var(--ord-band); }
.tset-chip.is-on { background: var(--ord-head-bg); color: var(--ord-on-solid); border-color: var(--ord-head-bg); }

/* 알림 UI 타입 요약 칩 — 실제 토스트처럼 «타입 색으로 채운 작은 카드» */
.tset-types { display: flex; flex-wrap: wrap; gap: 6px; }
.tset-type { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; box-shadow: 0 1px 3px rgba(15,23,42,.18); }
.tset-type.is-off { opacity: .4; }
.tset-type small { font-weight: 500; font-size: 10.5px; opacity: .8; }

/* 미니 화면 — 실제 1000px 높이 화면을 비율(--k = 미니 높이/1000)로 축소. 알림은 끌어서(grab) 위치 조정 */
.tset-stage { position: relative; background: var(--ord-band); border: 1px solid var(--ord-line); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; user-select: none; touch-action: none; --k: .4; }
.tset-st-hd { height: 7%; background: var(--ord-solid-blue); }
.tset-st-sb { position: absolute; left: 0; top: 7%; bottom: 0; width: 10%; background: var(--ord-surface-2); border-right: 1px solid var(--ord-line); }
.tset-st-ct { position: absolute; left: 12%; right: 2%; top: 11%; bottom: 3%; background: var(--ord-panel); border: 1px solid var(--ord-line); border-radius: 6px; }
.tset-st-ct i { display: block; height: 6.5%; border-bottom: 1px solid var(--ord-line-soft); margin: 0 3%; }
.tset-st-dim { position: absolute; inset: 7% 0 0 0; background: rgba(15,23,42,.28); }
.tset-st-modal { position: absolute; left: 16%; right: 5%; top: 12%; bottom: 3%; background: var(--ord-panel); border: 1px solid var(--ord-line-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); overflow: hidden; }
.tset-st-mh { padding: 4px 8px; background: var(--ord-head-bg); color: var(--ord-on-solid); font-size: 9px; font-weight: 700; }
.tset-st-mb i { display: block; height: 18px; border-bottom: 1px solid var(--ord-line-soft); margin: 0 8px; }
.tset-st-mf { position: absolute; right: 8px; bottom: calc(var(--k) * 24px); display: flex; gap: 4px; }
.tset-st-mf span { padding: 3px 8px; font-size: 8.5px; font-weight: 700; border-radius: 5px; background: var(--ord-head-bg); color: var(--ord-on-solid); outline-offset: 1px; }
.tset-st-mf span.is-ghost { background: var(--ord-line); color: var(--ord-text-2); }
.tset.is-hit .tset-st-mf span { outline: 2px solid var(--ord-badge); }
.tset-st-guide { position: absolute; left: 0; right: 0; bottom: calc(var(--k) * 88px); border-top: 1px dashed var(--ord-text-4); pointer-events: none; }
.tset-st-guide em { position: absolute; left: 6px; top: 1px; font-style: normal; font-size: 8.5px; color: var(--ord-text-3); background: var(--ord-panel); padding: 0 4px; border-radius: 3px; }
.tset-st-warn { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--ord-badge); color: var(--ord-on-solid); font-size: 10px; font-weight: 700; z-index: 6; display: none; white-space: nowrap; }
.tset.is-hit .tset-st-warn { display: block; }
.tset-zone { position: absolute; top: 7%; bottom: 0; width: 50%; display: none; background: var(--ord-accent-soft); opacity: .6; pointer-events: none; z-index: 4; }
.tset-zone.is-l { left: 0; } .tset-zone.is-r { right: 0; }
.tset-stage.is-dragging .tset-zone { display: block; }
.tset-stage[data-side="left"] .tset-zone.is-r, .tset-stage[data-side="right"] .tset-zone.is-l { opacity: .15; }
.tset-tbox { position: absolute; bottom: calc(var(--off) * var(--k) * 1px); width: 25%; left: 1.5%; z-index: 5; transition: bottom .12s; }
.tset[data-pos="right"] .tset-tbox { left: auto; right: 1.5%; }
.tset-stage.is-dragging .tset-tbox { transition: none; }
.tset-toast { position: relative; display: block; padding: 5px 20px 5px 8px; border-radius: 6px; border-left: 3px solid var(--ord-accent); background: var(--ord-panel); color: var(--ord-text); font-size: 8.5px; line-height: 1.35; box-shadow: 0 4px 12px rgba(0,0,0,.28); cursor: grab; outline: 1.5px dashed var(--ord-accent); outline-offset: 2px; }
.tset-toast b { display: block; font-size: 9px; }
.tset-toast i { position: absolute; right: 5px; top: 3px; font-style: normal; font-size: 8px; color: var(--ord-text-4); }
.tset-stage.is-dragging .tset-toast { cursor: grabbing; }

@media (max-width: 900px) {
  .tset-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── 알림 UI 설정 모달 (M-A: 라이브 미리보기 + 타입 카드 그리드) ── */
.tui { padding: 16px; background: var(--ord-surface-2); }
.tui-live { background: var(--ord-band); border: 1px solid var(--ord-line); border-radius: 0 0 12px 12px; border-top: 0; padding: 14px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; min-height: 84px; }
.tui-live-empty { font-size: 12px; color: var(--ord-text-4); align-self: center; }
/* 라이브 미리보기 = 실제 corner-toast-item 골격(제목·본문·핀·X). 커스텀 타입은 배경·글자색을 통째로 */
.tui-toast { position: relative; width: 210px; background: var(--ord-panel); border: 1px solid var(--ord-line); border-left: 4px solid var(--ord-accent); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.16); padding: 10px 50px 10px 12px; font-size: 12px; color: var(--ord-text); }
.tui-toast b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.tui-toast small { font-size: 11px; opacity: .75; }
.tui-toast .tui-toast-ic { position: absolute; right: 8px; top: 8px; display: flex; gap: 8px; font-size: 12px; opacity: .7; }
.tui-toast .tui-toast-name { position: absolute; left: 10px; bottom: -9px; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ord-panel); color: var(--ord-accent); border: 1px solid var(--ord-line-2); }
.tui-band { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--ord-band); border: 1px solid var(--ord-line); border-radius: 12px 12px 0 0; font-size: 12px; font-weight: 700; color: var(--ord-accent); }
.tui-band small { font-weight: 500; color: var(--ord-text-4); font-size: 11px; }
.tui-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tui-row { border: 1px solid var(--ord-line); border-radius: 12px; background: var(--ord-panel); padding: 12px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; position: relative; }
.tui-row[data-builtin="true"] { background: var(--ord-surface-2); }
.tui-preview { width: 56px; height: 40px; border-radius: 8px; border-left: 3px solid rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.18); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; }
.tui-fields { min-width: 0; }
.tui-name { width: 100%; padding: 6px 9px; border: 1.5px solid var(--ord-line-2); border-radius: 9px; font-size: 12.5px; font-weight: 700; background: var(--ord-surface); color: var(--ord-text); box-sizing: border-box; font-family: inherit; }
.tui-name:focus { outline: none; border-color: var(--ord-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ord-accent) 13%, transparent); background: var(--ord-panel); }
.tui-name:disabled { background: var(--ord-band); color: var(--ord-text-2); }
.tui-colorline { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--ord-text-3); flex-wrap: wrap; }
.tui-colorline label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.tui-row input[type="color"] { width: 28px; height: 24px; padding: 0; border: 1px solid var(--ord-line-2); border-radius: 6px; background: var(--ord-panel); cursor: pointer; }
.tui-swatch { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tui-swatch button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ord-panel); box-shadow: 0 0 0 1px var(--ord-line); cursor: pointer; padding: 0; }
.tui-swatch button.is-on { box-shadow: 0 0 0 2px var(--ord-accent); }
.tui-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ord-text-3); margin-top: 2px; }
.tui-foot .tui-sp { flex: 1; }
.tui-active { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ord-text-2); }
.tui-builtin-tag { font-size: 10px; font-weight: 700; color: var(--ord-accent); background: var(--ord-band); padding: 2px 7px; border-radius: 8px; }
.tui-remove { border: none; background: transparent; color: var(--ord-tint-red-fg); font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 2px 4px; font-family: inherit; }
.tui-remove:hover { text-decoration: underline; }
.tui-add { border: 1px dashed var(--ord-line-2); border-radius: 12px; background: var(--ord-panel); color: var(--ord-accent); font-size: 13px; font-weight: 700; cursor: pointer; min-height: 110px; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.tui-add:hover { background: var(--ord-surface-2); }
@media (max-width: 640px) { .tui-grid { grid-template-columns: minmax(0, 1fr); } }
