/* 상담예약 알림 설정 (내 계정 › 알림&기능 › 상담예약) — 2026-09-16 A안 「미니어처 + 카드형」
   .cts-* = 탭 본문(consultation_toast_settings) · .tui-* = 알림 UI 설정 모달(toast_ui_types). A-4 액센트형 토큰. */

.cts { padding: 16px; background: var(--ord-surface-2); }
.cts-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cts-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; }
.cts-title p { margin: 0; font-size: 11.5px; color: var(--ord-text-3); }
.cts-title .cts-right { margin-left: auto; display: flex; gap: 8px; }
.cts-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }

.cts-card { background: var(--ord-panel); border: 1px solid var(--ord-line); border-radius: 12px; overflow: hidden; }
.cts-card + .cts-card { margin-top: 12px; }
.cts-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); }
.cts-band small { font-weight: 500; color: var(--ord-text-4); font-size: 11px; }
.cts-band .cts-band-r { margin-left: auto; font-weight: 600; color: var(--ord-text-2); font-size: 11.5px; }
.cts-body { padding: 14px; }
.cts-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cts-row:last-child { margin-bottom: 0; }
.cts-lbl { font-size: 12px; font-weight: 700; color: var(--ord-text-2); width: 88px; flex: none; }
.cts-val { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ord-accent); font-weight: 700; min-width: 48px; text-align: right; }
.cts-hint { font-size: 11px; color: var(--ord-text-4); line-height: 1.6; }
.cts-hint.cts-hint-mt { margin-top: 8px; }

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

/* 슬라이더 · 프리셋 */
.cts-range { flex: 1; accent-color: var(--ord-accent); }
.cts-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cts-preset { 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; }
.cts-preset:hover { background: var(--ord-band); }
.cts-preset.is-on { background: var(--ord-head-bg); color: var(--ord-on-solid); border-color: var(--ord-head-bg); }

/* 고정 토글 행 */
.cts-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cts-toggle-row b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ord-text); }

/* 버튼 */
.cts-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; }
.cts-btn:hover { background: var(--ord-surface-2); }
.cts-btn-o { border-color: var(--ord-line-2); color: var(--ord-accent); border-radius: 22px; }
.cts-btn-sm { padding: 3px 12px; font-size: 11.5px; }
.cts-band-btn { margin-left: auto; }

/* 미니 화면 — 실제 1000px 높이 화면을 비율로 축소. 알림 칩은 드래그(ns-resize)로 높이 조정 */
.cts-mini { position: relative; background: var(--ord-band); border: 1px solid var(--ord-line); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; user-select: none; }
.cts-mini-hd { height: 8%; background: var(--ord-solid-blue); }
.cts-mini-sb { position: absolute; left: 0; top: 8%; bottom: 0; width: 11%; background: var(--ord-band); border-right: 1px solid var(--ord-line); }
.cts-mini-ct { position: absolute; left: 14%; right: 3%; top: 14%; bottom: 6%; background: var(--ord-panel); border: 1px solid var(--ord-line); border-radius: 6px; overflow: hidden; }
.cts-mini-ct i { display: block; height: 7%; border-bottom: 1px solid var(--ord-line-soft); margin: 0 4%; }
.cts-mini-btns { position: absolute; right: 5%; bottom: 9%; display: flex; gap: 4px; }
.cts-mini-btns span { display: inline-block; padding: 2px 6px; font-size: 8px; border-radius: 4px; background: var(--ord-head-bg); color: var(--ord-on-solid); }
.cts-mini-btns span.g { background: var(--ord-line); color: var(--ord-text-2); }
.cts-mini-guide { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ord-text-4); font-size: 9px; color: var(--ord-text-3); text-align: center; padding-top: 1px; pointer-events: none; }
.cts-mini-toast { position: absolute; width: 26%; background: var(--ord-panel); border: 1px solid var(--ord-line); border-left: 3px solid var(--ord-accent); border-radius: 5px; box-shadow: 0 4px 10px rgba(0,0,0,.18); padding: 5px 7px; font-size: 7.5px; color: var(--ord-text); transition: bottom .12s, left .12s, right .12s; cursor: ns-resize; touch-action: none; }
.cts-mini-toast b { display: block; font-size: 8px; }
.cts-mini-toast i { position: absolute; right: 5px; top: 4px; font-style: normal; font-size: 8px; color: var(--ord-text-4); }
.cts-mini.is-dragging .cts-mini-toast { transition: none; }

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

@media (max-width: 900px) {
  .cts-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); } }
