/* 내 계정 › 알림&기능 › 푸시알림 탭 — 2026-11-12 «분할 뷰» 재개편 (샘플 sample/push-settings/c.html)
   .pset-* = 탭 본문(push_settings 컨트롤러). 아래 «기기 등록 버튼» 규칙은 보안&로그인 › 기기관리 패널(.ord-ps)이 함께 쓴다.
   색은 전부 테마 토큰(var(--ord-*)). ⚠클래스 이름 선점 여부는 grep 으로 먼저 확인(상담예약 탭 .cts-* 충돌 사고 참조). */

/* ── 기기관리 패널 공용 — 버튼 · 기기 등록 (구 푸시알림 패널 인라인 <style> 에서 이관) ── */
.ord-ps .ord-ps-btn { padding: 9px 16px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.ord-ps .ord-ps-btn-primary { background: var(--ord-head-bg); color: var(--ord-on-solid); border: 1.5px solid var(--ord-accent); }
.ord-ps .ord-ps-btn-primary:hover { background: var(--ord-solid-blue); }
.ord-ps .ord-ps-btn-outline { background: var(--ord-surface); color: var(--ord-accent); border: 1.5px solid var(--ord-accent); }
.ord-ps .ord-ps-btn-outline:hover { background: var(--ord-accent-soft); }
.ord-ps .ord-ps-btn-text { background: none; border: none; color: var(--ord-accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 9px 4px; }
.ord-ps .ord-ps-btn-text:hover { text-decoration: underline; }
.ps-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 7px; cursor: pointer; transition: background-color .15s; }
.ps-icon-btn-primary { background: var(--ord-head-bg); color: var(--ord-on-solid); border: none; }
.ps-icon-btn-primary:hover { background: var(--ord-solid-blue); }
.ps-icon-btn-outline { background: var(--ord-surface); color: var(--ord-accent); border: 1px solid var(--ord-line-2); }
.ps-icon-btn-outline:hover { background: var(--ord-accent-soft); }
/* 「이 기기 등록」 라벨 버튼 (2026-08-05) — 웹/앱 공통 모양, 등록 상태별 색상 전환 없음 */
.ps-reg-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 7px; cursor: pointer; background: var(--ord-head-bg); color: var(--ord-on-solid); border: none; font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background-color .15s; }
.ps-reg-btn:hover { background: var(--ord-solid-blue); }
/* 앱(WebView)에서는 웹푸시 켜기 미노출 / 반대로 "이 기기에서 푸시 켜기"는 앱에서만 노출 */
body.native-app .ord-ps #ordars-webpush-enable { display: none; }
.ord-ps #ordars-apppush-enable { display: none; }
body.native-app .ord-ps #ordars-apppush-enable { display: inline-flex; }

/* ── 푸시알림 탭 본문 ── */
.pset { padding: 16px; background: var(--ord-surface-2); container-type: inline-size; container-name: pset; }
.pset-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pset svg { flex: none; }
.pset-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pset-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; }
.pset-sp { flex: 1; }
.pset-saved { font-size: 11.5px; font-weight: 700; color: var(--ord-tint-green-fg); opacity: 0; transition: opacity .2s; }
.pset-saved.is-on { opacity: 1; }

/* 범위 탭 — 내 설정 / 워크스페이스 */
.pset-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pset-tab { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ord-line); background: var(--ord-panel); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--ord-text-3); cursor: pointer; font-family: inherit; }
.pset-tab.is-on { background: var(--ord-head-bg); color: var(--ord-on-solid); border-color: var(--ord-head-bg); }
.pset-tab i { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ord-tint-violet-fg); }
.pset-tab.is-custom i { display: inline-block; }
.pset-tab.is-on i { background: var(--ord-on-solid); }

/* 머리 줄 — 채널 알약(내 설정) · 모드(워크스페이스) */
.pset-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pset-bar b { font-size: 13px; }
.pset-chp { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 1px solid var(--ord-line); border-radius: 999px; background: var(--ord-panel); font-size: 12.5px; font-weight: 700; color: var(--ord-text); }
.pset-chp small { font-weight: 500; font-size: 11px; color: var(--ord-text-4); }
.pset-chp.is-nodev { color: var(--ord-text-4); }
.pset-ic-app { color: var(--ord-tint-blue-fg); } .pset-ic-web { color: var(--ord-tint-violet-fg); }
.pset-note { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--ord-tint-cyan-bg); color: var(--ord-tint-cyan-fg); border: 1px solid var(--ord-tint-cyan-line); font-size: 12px; font-weight: 600; }
.pset-modeseg { display: inline-flex; gap: 2px; background: var(--ord-band); border: 1px solid var(--ord-line); border-radius: 999px; padding: 3px; }
.pset-modeseg label { position: relative; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ord-text-3); cursor: pointer; white-space: nowrap; }
.pset-modeseg input { position: absolute; opacity: 0; width: 0; height: 0; }
.pset-modeseg label:has(input:checked) { background: var(--ord-head-bg); color: var(--ord-on-solid); }
.pset-modeseg label:has(input[value="off"]:checked) { background: var(--ord-tint-red-bg); color: var(--ord-tint-red-fg); box-shadow: inset 0 0 0 1px var(--ord-tint-red-fg); }
.pset-modeseg label:has(input[value="custom"]:checked) { background: var(--ord-tint-violet-bg); color: var(--ord-tint-violet-fg); box-shadow: inset 0 0 0 1px var(--ord-tint-violet-fg); }

/* 분할 뷰 — 왼쪽 목록 / 오른쪽 상세 */
.pset-scope[hidden] { display: none; }
.pset-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: start; }
.pset-scope[data-mode="follow"] .pset-split, .pset-scope[data-mode="off"] .pset-split { display: none; }
.pset-empty { display: none; padding: 28px 16px; text-align: center; color: var(--ord-text-3); font-size: 12.5px; background: var(--ord-panel); border: 1px solid var(--ord-line); border-radius: 12px; }
.pset-scope[data-mode="follow"] .pset-empty.is-follow, .pset-scope[data-mode="off"] .pset-empty.is-off { display: block; }
.pset-list { background: var(--ord-panel); border: 1px solid var(--ord-line); border-radius: 12px; overflow: clip; }
.pset-grp { padding: 7px 16px; font-size: 11px; font-weight: 800; color: var(--ord-accent); background: var(--ord-surface-2); border-top: 1px solid var(--ord-line-soft); }
.pset-grp:first-child { border-top: 0; }
.pset-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--ord-line-soft); background: transparent; padding: 10px 16px; color: var(--ord-text); cursor: pointer; font-family: inherit; }
.pset-row:hover { background: var(--ord-band); }
.pset-row.is-sel { background: var(--ord-accent-soft); box-shadow: inset 3px 0 0 var(--ord-accent); }
.pset-row-t { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; }
.pset-row.is-off .pset-row-t { opacity: .45; font-weight: 600; }
.pset-mini { display: inline-flex; align-items: center; gap: 6px; }
.pset-mini span { display: inline-flex; color: var(--ord-text-5); }
.pset-mini span.is-on[data-ch="app"] { color: var(--ord-tint-blue-fg); }
.pset-mini span.is-on[data-ch="web"] { color: var(--ord-tint-violet-fg); }
.pset-pdot { display: inline-flex; align-items: center; gap: 5px; min-width: 48px; font-size: 11.5px; font-weight: 600; color: var(--ord-text-2); }
.pset-pdot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ord-line-2); }
.pset-pdot[data-pr="low"]::before { background: var(--ord-solid-gray); }
.pset-pdot[data-pr="medium"]::before { background: var(--ord-solid-cyan); }
.pset-pdot[data-pr="high"]::before { background: var(--ord-solid-amber); }

.pset-detail { position: sticky; top: 8px; background: var(--ord-panel); border: 1px solid var(--ord-line); border-radius: 12px; padding: 14px; }
.pset-detail h4 { margin: 0; font-size: 14px; color: var(--ord-text); }
.pset-dd { margin-top: 2px; font-size: 12px; color: var(--ord-text-3); }
.pset-lab { margin: 14px 0 6px; font-size: 11.5px; font-weight: 700; color: var(--ord-text-3); }
.pset-chbig { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pset-chbig button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--ord-line); border-radius: 10px; background: var(--ord-surface); font-weight: 700; font-size: 12.5px; color: var(--ord-text-4); text-align: left; cursor: pointer; font-family: inherit; }
.pset-chbig button small { display: block; font-weight: 500; font-size: 10.5px; opacity: .8; }
.pset-chbig button.is-on[data-ch="app"] { border-color: var(--ord-tint-blue-fg); background: var(--ord-tint-blue-bg); color: var(--ord-tint-blue-fg); }
.pset-chbig button.is-on[data-ch="web"] { border-color: var(--ord-tint-violet-fg); background: var(--ord-tint-violet-bg); color: var(--ord-tint-violet-fg); }
.pset-chbig button:disabled { opacity: .4; cursor: not-allowed; }
.pset-ptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pset-ptile { border: 1.5px solid var(--ord-line); border-radius: 10px; background: var(--ord-surface); padding: 9px 10px; text-align: left; color: var(--ord-text); cursor: pointer; font-family: inherit; }
.pset-ptile b { display: block; font-size: 12.5px; } .pset-ptile small { font-size: 10.5px; color: var(--ord-text-3); }
.pset-ptile.is-on { box-shadow: 0 0 0 3px var(--ord-focus-ring); }
.pset-ptile.is-on[data-pr="low"] { border-color: var(--ord-solid-gray); }
.pset-ptile.is-on[data-pr="medium"] { border-color: var(--ord-solid-cyan); }
.pset-ptile.is-on[data-pr="high"] { border-color: var(--ord-solid-amber); }
.pset-prev { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--ord-band); border: 1px solid var(--ord-line); min-height: 78px; display: flex; align-items: flex-end; justify-content: center; }
.pset-prev-none { align-self: center; font-size: 12.5px; color: var(--ord-text-3); }
.pset-pn { position: relative; width: 100%; background: var(--ord-panel); border-radius: 10px; padding: 8px 12px; box-shadow: 0 2px 6px rgba(0,0,0,.12); font-size: 12px; }
.pset-pn b { display: block; font-size: 12.5px; padding-right: 76px; }
.pset-pn small { color: var(--ord-text-3); }
.pset-pn .fx { position: absolute; right: 10px; top: 8px; font-size: 10.5px; color: var(--ord-text-3); }
.pset-pn[data-pr="high"] { box-shadow: 0 8px 22px rgba(0,0,0,.28); transform: translateY(-14px); border-left: 4px solid var(--ord-solid-amber); }
.pset-pn[data-pr="medium"] { border-left: 4px solid var(--ord-solid-cyan); }
.pset-pn[data-pr="low"] { border-left: 4px solid var(--ord-solid-gray); opacity: .85; }

/* 개발자 전용 — 이메일알림설정 */
.pset-dev { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; background: var(--ord-panel); border: 1px solid var(--ord-line); border-radius: 12px; }
.pset-dev > div { flex: 1; min-width: 200px; }
.pset-dev b { font-size: 13px; color: var(--ord-text); }
.pset-dev b span { font-size: 11px; font-weight: 600; color: var(--ord-tint-violet-fg); }
.pset-dev small { display: block; margin-top: 2px; font-size: 11px; color: var(--ord-text-3); }

/* 좁은 모달 — 상세가 목록 아래로 (뷰포트가 아니라 모달 폭 기준) */
@container pset (max-width: 760px) {
  .pset-split { grid-template-columns: minmax(0, 1fr); }
  .pset-detail { position: static; }
}
