/* 마이페이지 · 등록 기기 관리 — 2026-11-23
   울트라스테이션 기기 관리 화면 구성(상태 카드 · 자리 칸 · 남은 횟수 · 목록 · 그림 안내 · 이럴 땐 이렇게 · 문의 안내)을
   울트라케이스 다크 디자인(account-hm.css의 --a-* 변수)으로 옮긴 것. 규칙은 그대로이고 모양만 담당한다.
   마크업은 mypage.html의 #mp-device-section, 그리기는 renderDevicePane(). */

.dm { --dm-teal: #46e3d9; --dm-sky: #7cc8ff; --dm-orange: #ff8a3d; --dm-red: #ff8f8f;
  --dm-ink: #f7fafd; --dm-ink2: #eaf0f6; --dm-ink3: #d0dae5; --dm-ink4: #b0bfcf;
  --dm-line: rgba(255,255,255,.13); --dm-line2: rgba(255,255,255,.2);
  --dm-card: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  display: flex; flex-direction: column; gap: 38px; color: var(--dm-ink); font-size: 15px; }
.dm .i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm b, .dm-sheet b { font-weight: 700; color: var(--dm-ink); }
.dm a { color: var(--dm-teal); text-decoration: underline; text-underline-offset: 3px; }

/* 상태 카드 · 알림 · 등록된 기기는 #dm-top 안에 함께 그려지므로 그 사이에도 간격을 둔다 */
#dm-top { display: flex; flex-direction: column; gap: 38px; }
#dm-top > .dm-toast, #dm-top > .dm-alert { margin-bottom: -16px; }

.dm-card { position: relative; background: var(--dm-card); border: 1px solid var(--dm-line); border-radius: 20px; }

/* 돌아가기 안내 (케이스에서 넘어온 경우) */
.dm-return { align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(70,227,217,.35); background: rgba(70,227,217,.08); font-size: 14px; color: #eef3f8; }
.dm-return .i { width: 18px; height: 18px; fill: none; stroke: #46e3d9; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dm-return b { color: #46e3d9; }

/* 불러오는 중 */
.dm-skel { padding: 28px; display: grid; gap: 14px; }
.dm-skel i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: dmSkel 1.4s infinite; }
.dm-skel i:nth-child(1) { width: 30%; } .dm-skel i:nth-child(2) { width: 62%; height: 26px; } .dm-skel i:nth-child(3) { height: 96px; }
@keyframes dmSkel { to { background-position: -200% 0; } }

/* ── ① 상태 카드 ── */
.dm-hero { padding: 30px 30px 26px; overflow: hidden; border-color: rgba(70,227,217,.28);
  background: radial-gradient(520px 260px at 100% 0%, rgba(70,227,217,.16), transparent 70%), linear-gradient(160deg, #1a2d47, #101c2e); }
.dm-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--dm-orange) 0 26%, var(--dm-teal) 26% 74%, var(--dm-sky) 74%); }
.dm-eye { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--dm-teal); background: rgba(70,227,217,.1); border: 1px solid rgba(70,227,217,.25); }
.dm-eye .i { width: 14px; height: 14px; }
.dm-hero h2 { margin: 16px 0 8px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.04em; line-height: 1.3; color: var(--dm-ink); }
.dm-hero h2 em { font-style: normal; color: var(--dm-teal); background: linear-gradient(transparent 62%, rgba(70,227,217,.2) 62%); padding: 0 2px; }
.dm-lead { margin: 0; font-size: 16px; line-height: 1.65; color: var(--dm-ink2); }

/* 자리 칸 */
.dm-slots { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.dm-slots li { position: relative; min-height: 124px; border-radius: 16px; padding: 22px 10px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.dm-slots li.on { background: linear-gradient(170deg, #22364f, #15243a); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 14px 30px -18px rgba(0,0,0,.9); }
.dm-slots li.on .ic { color: var(--dm-ink2); }
.dm-slots li.here { border: 1.5px solid var(--dm-teal); box-shadow: 0 0 0 4px rgba(70,227,217,.1), 0 14px 30px -18px rgba(0,0,0,.9); }
.dm-slots li.here .ic { color: var(--dm-teal); }
.dm-slots li.stale { opacity: .62; border-style: dashed; }
.dm-slots li.empty { border: 1.5px dashed rgba(255,255,255,.28); background: rgba(255,255,255,.03); color: var(--dm-ink3); }
.dm-slots .ic { display: grid; place-items: center; font-size: 26px; line-height: 1; }
.dm-slots li.empty .ic { font-size: 20px; }
.dm-slots b { max-width: 100%; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-slots li.empty b { color: var(--dm-ink3); font-weight: 600; }
.dm-slots small { max-width: 100%; font-size: 12.5px; color: var(--dm-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-slots em { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; color: #05201e; background: var(--dm-teal); }
.dm-slots em.st { color: #2a1505; background: #ffb27a; }

/* 지금 이 브라우저 등록 칸 */
.dm-reg { margin-top: 18px; padding: 16px 18px; border-radius: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid rgba(70,227,217,.32); background: rgba(70,227,217,.06); }
.dm-reg .tx { flex: 1 1 260px; min-width: 0; }
.dm-reg .tx b { display: block; font-size: 16px; }
.dm-reg .tx b span { color: var(--dm-teal); }
.dm-reg .tx p { margin: 5px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--dm-ink2); }
.dm-reg .f { display: flex; gap: 8px; flex: 1 1 320px; }
.dm-reg.full { border-color: rgba(255,138,61,.35); background: rgba(255,138,61,.06); }
.dm-reg.full .tx b { color: #ffd0ad; }
.dm-input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.26); background: rgba(5,8,14,.55); color: var(--dm-ink); font: inherit; font-size: 15px; }
.dm-input::placeholder { color: var(--dm-ink4); }
.dm-input:focus { outline: none; border-color: var(--dm-teal); box-shadow: 0 0 0 3px rgba(70,227,217,.15); }
.dm-pri { height: 44px; padding: 0 20px; border: 0; border-radius: 12px; font: inherit; font-size: 14.5px; font-weight: 800; color: #05201e; background: var(--dm-teal); cursor: pointer; white-space: nowrap; transition: filter .15s, transform .15s; }
.dm-pri:hover { filter: brightness(1.08); transform: translateY(-1px); }
.dm-pri:disabled { opacity: .5; cursor: default; transform: none; }

/* 사실 칸 3개 */
.dm-facts { margin-top: 18px; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.dm-fact { padding: 15px 16px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--dm-line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dm-fact small { font-size: 13.5px; font-weight: 600; color: var(--dm-ink3); }
.dm-fact > b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-fact > b span { font-size: 14px; font-weight: 600; color: var(--dm-ink2); margin-left: 2px; }
.dm-fact .ok, .dm-fact .warn { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; }
.dm-fact .ok { color: var(--dm-teal); }
.dm-fact .warn { color: #ffb27a; }
.dm-fact .mute { font-size: 13.5px; color: var(--dm-ink3); line-height: 1.5; }
.dm-fact .dots { display: flex; gap: 5px; }
.dm-fact .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.dm-fact .dots i.f { background: var(--dm-teal); box-shadow: 0 0 8px rgba(70,227,217,.45); }

/* 앱 안 브라우저 안내 · 알림 */
.dm-alert { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255,190,90,.35); background: rgba(255,170,60,.08); }
.dm-alert > .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #ffc879; background: rgba(255,190,90,.14); font-size: 18px; }
.dm-alert b { display: block; font-size: 15px; color: #ffe1b0; }
.dm-alert p { margin: 4px 0 10px; font-size: 15px; line-height: 1.6; color: var(--dm-ink2); }
.dm-alert button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,190,90,.4); background: transparent; color: #ffe1b0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dm-toast { display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--dm-teal); background: rgba(70,227,217,.08); border: 1px solid rgba(70,227,217,.3); }
.dm-toast.bad { color: var(--dm-red); background: rgba(255,143,143,.07); border-color: rgba(255,143,143,.3); }
.dm-toast .i { width: 17px; height: 17px; }

/* ── 공통 소제목 ── */
.dm-sec { display: flex; flex-direction: column; gap: 12px; }
.dm-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dm-h h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--dm-ink); }
.dm-h h3 span { padding: 2px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--dm-ink); background: rgba(255,255,255,.12); }
.dm-h small { font-size: 13.5px; color: var(--dm-ink3); }
.dm-tip { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 13px 16px; border-radius: 12px; font-size: 15px; line-height: 1.6; color: var(--dm-ink); background: rgba(124,200,255,.11); border: 1px solid rgba(124,200,255,.3); }
.dm-tip .i { margin-top: 3px; color: var(--dm-sky); }
.dm-tip b { color: #cfe9ff; }
.dm-tip.warn { background: rgba(255,138,61,.07); border-color: rgba(255,138,61,.28); }
.dm-tip.warn .i { color: #ffb27a; }

/* ── ② 등록된 기기 ── */
.dm-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.dm-list li { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border-top: 1px solid var(--dm-line); }
.dm-list li:first-child { border-top: 0; }
.dm-list li.here { background: linear-gradient(90deg, rgba(70,227,217,.07), transparent 60%); }
.dm-list li.here::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dm-teal); }
.dm-list .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 22px; color: var(--dm-ink2); background: rgba(255,255,255,.05); border: 1px solid var(--dm-line); }
.dm-list li.here .ic { color: var(--dm-teal); background: rgba(70,227,217,.1); border-color: rgba(70,227,217,.25); }
.dm-list .t { flex: 1; min-width: 0; padding-top: 2px; }
.dm-list .nm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dm-list .nm b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; word-break: break-all; }
.dm-list .pen { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255,255,255,.06); color: var(--dm-ink2); display: grid; place-items: center; cursor: pointer; font-size: 14px; }
.dm-list .pen:hover { color: var(--dm-teal); background: rgba(70,227,217,.1); }
.dm-list em.here { padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--dm-teal); background: rgba(70,227,217,.12); border: 1px solid rgba(70,227,217,.3); }
.dm-list small { display: block; margin-top: 5px; font-size: 14px; color: var(--dm-ink3); line-height: 1.55; }
.dm-list small strong { color: var(--dm-ink); font-weight: 700; }
.dm-list .del { flex: none; height: 40px; padding: 0 17px; border-radius: 11px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.06); color: var(--dm-ink); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: all .15s; }
.dm-list .del:hover:not(:disabled) { color: var(--dm-red); border-color: rgba(255,143,143,.4); background: rgba(255,143,143,.07); }
.dm-list .del:disabled { opacity: .4; cursor: default; }
.dm-rename { display: flex; gap: 6px; flex-wrap: wrap; }
.dm-rename input { flex: 1 1 160px; min-width: 0; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--dm-teal); background: rgba(5,8,14,.6); color: var(--dm-ink); font: inherit; font-size: 14px; outline: none; box-shadow: 0 0 0 3px rgba(70,227,217,.14); }
.dm-rename button { height: 36px; padding: 0 14px; border-radius: 10px; border: 0; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; color: #05201e; background: var(--dm-teal); }
.dm-rename button.ghost { color: var(--dm-ink2); background: rgba(255,255,255,.06); }
.dm-list .stale { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: rgba(255,138,61,.1); border: 1px solid rgba(255,138,61,.3); }
.dm-list .stale .bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 8px; }
.dm-list .stale .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffb27a, var(--dm-orange)); }
.dm-list .stale span { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; color: var(--dm-ink2); line-height: 1.55; }
.dm-list .stale span .i { color: #ffb27a; }
.dm-list .stale span b { color: #ffd0ad; }
.dm-list .stale em { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: var(--dm-teal); background: rgba(70,227,217,.1); }
.dm-empty { padding: 30px 24px; text-align: center; }
.dm-empty b { display: block; font-size: 16px; }
.dm-empty p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--dm-ink2); }
.dm-reset { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.24); background: rgba(255,255,255,.03); }
.dm-reset b { font-size: 16px; }
.dm-reset p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--dm-ink2); }
.dm-reset button { flex: none; height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid rgba(255,143,143,.35); background: transparent; color: var(--dm-red); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.dm-reset button:hover:not(:disabled) { background: rgba(255,143,143,.08); }
.dm-reset button:disabled { opacity: .4; cursor: default; color: var(--dm-ink3); border-color: var(--dm-line2); }

/* ── ③ 그림 안내 4장 ── */
.dm-guide { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dm-guide li { overflow: hidden; display: flex; flex-direction: column; }
.dm-guide .art { padding: 18px 18px 10px; background: radial-gradient(260px 120px at 50% 100%, rgba(70,227,217,.1), transparent 70%), rgba(5,8,14,.25); border-bottom: 1px solid var(--dm-line); }
.dm-guide .art svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif; }
.dm-guide .tx { padding: 16px 20px 20px; }
.dm-guide .tx small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 600; color: var(--dm-teal); letter-spacing: .06em; }
.dm-guide h4 { margin: 4px 0 8px; font-size: 17.5px; font-weight: 800; letter-spacing: -.03em; color: var(--dm-ink); }
.dm-guide p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--dm-ink2); }
.dm-guide p b { color: var(--dm-teal); }

/* ── ④ 이럴 땐 이렇게 ── */
.dm-faq { padding: 4px 0; }
.dm-faq details { border-top: 1px solid var(--dm-line); }
.dm-faq details:first-child { border-top: 0; }
.dm-faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 17px 22px; cursor: pointer; }
.dm-faq summary::-webkit-details-marker { display: none; }
.dm-faq .q { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-family: Inter, sans-serif; font-size: 13px; font-weight: 800; color: var(--dm-teal); background: rgba(70,227,217,.1); }
.dm-faq .tt { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--dm-ink); }
.dm-faq summary:hover .tt { color: var(--dm-ink); }
.dm-faq .chev { color: var(--dm-ink3); font-size: 18px; display: grid; transition: transform .2s; }
.dm-faq details[open] .chev { transform: rotate(180deg); color: var(--dm-teal); }
.dm-faq details[open] .tt { color: var(--dm-ink); }
.dm-faq .a { padding: 2px 22px 22px 60px; font-size: 15.5px; line-height: 1.75; color: var(--dm-ink2); }
.dm-faq .a p { margin: 0 0 8px; }
.dm-faq .a ol, .dm-faq .a ul { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.dm-faq .a li::marker { color: var(--dm-teal); font-weight: 700; }
.dm-faq .a b { color: var(--dm-ink); }
.dm-faq details[open] { background: rgba(255,255,255,.04); }
.dm-faq .a .good { display: flex; gap: 9px; padding: 12px 14px; border-radius: 12px; background: rgba(70,227,217,.1); border: 1px solid rgba(70,227,217,.3); color: var(--dm-ink); }
.dm-faq .a .good .i { margin-top: 4px; color: var(--dm-teal); }

/* ── ⑤ 그래도 안 되면 ── */
.dm-help { display: flex; gap: 26px; align-items: center; padding: 28px 30px; border-radius: 22px; border: 1px solid rgba(124,200,255,.2);
  background: radial-gradient(420px 220px at 0% 0%, rgba(124,200,255,.18), transparent 70%), linear-gradient(160deg, #1c3050, #12203a); }
.dm-help > div:first-child { flex: 1; min-width: 0; }
.dm-help h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--dm-ink); }
.dm-help p { margin: 0 0 14px; font-size: 15px; color: var(--dm-ink2); }
.dm-help ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-help li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-left: 16px; position: relative; font-size: 15px; }
.dm-help li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--dm-sky); }
.dm-help li span { font-size: 14px; color: var(--dm-ink3); }
.dm-help .b { display: flex; flex-direction: column; gap: 8px; flex: none; }
.dm-help .b a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.dm-help .pri { color: #05201e; background: var(--dm-teal); }
.dm-help .pri:hover { filter: brightness(1.08); }
.dm-help .sec { color: var(--dm-ink2); border: 1px solid var(--dm-line2); }
.dm-help .sec:hover { color: var(--dm-ink); border-color: rgba(255,255,255,.3); }

/* ── 삭제 · 초기화 확인 창 ── */
.dm-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: rgba(2,5,10,.72); backdrop-filter: blur(4px); }
.dm-modal[hidden] { display: none; }
.dm-sheet { width: 100%; max-width: 440px; padding: 26px 24px 20px; border-radius: 22px; border: 1px solid var(--dm-line2, rgba(255,255,255,.14)); background: linear-gradient(170deg, #15233a, #0a1220); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); color: #eef3f8; animation: dmIn .18s ease-out; }
@keyframes dmIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dm-sheet .i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-sheet h3 { margin: 0 0 16px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.dm-sheet b { color: #eef3f8; }
.dm-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.dm-pick .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #46e3d9; background: rgba(70,227,217,.1); flex: none; }
.dm-pick small { display: block; margin-top: 2px; font-size: 13.5px; color: #b0bfcf; }
.dm-what { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.dm-what li { display: flex; gap: 8px; font-size: 15px; line-height: 1.6; color: #eaf0f6; }
.dm-what .i { margin-top: 4px; color: #46e3d9; }
.dm-wait { display: flex; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.6; color: #eaf0f6; background: rgba(255,138,61,.08); border: 1px solid rgba(255,138,61,.25); }
.dm-wait .i { margin-top: 3px; color: #ffb27a; }
.dm-sheet-b { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.dm-sheet-b button { height: 44px; padding: 0 20px; border-radius: 12px; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; border: 0; }
.dm-sheet-b .ghost { color: #d2dbe5; background: rgba(255,255,255,.07); }
.dm-sheet-b .go { color: #fff; background: #e5484d; }
.dm-sheet-b .go:hover:not(:disabled) { filter: brightness(1.08); }
.dm-sheet-b .go:disabled { opacity: .6; cursor: default; }

/* ── 휴대폰 ── */
@media (max-width: 720px) {
  .dm, #dm-top { gap: 28px; }
  .dm-hero { padding: 24px 18px 20px; }
  .dm-facts { grid-template-columns: 1fr 1fr; }
  .dm-facts .dm-fact:first-child { grid-column: 1 / -1; }
  .dm-guide { grid-template-columns: 1fr; }
  .dm-help { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .dm-reset { flex-direction: column; align-items: stretch; }
}
@media (max-width: 520px) {
  .dm-slots { gap: 8px; }
  .dm-slots li { min-height: 104px; padding: 20px 6px 12px; border-radius: 14px; }
  .dm-slots .ic { font-size: 22px; }
  .dm-slots b { font-size: 12.5px; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; }
  .dm-slots small { display: none; }
  .dm-slots em { font-size: 10px; padding: 2px 8px; }
  .dm-reg .f { flex-direction: column; }
  .dm-list li { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .dm-list .ic { width: 40px; height: 40px; font-size: 19px; }
  .dm-list .t { flex: 1 1 calc(100% - 52px); }
  .dm-list .del { margin-left: 52px; }
  .dm-faq summary { padding: 15px 16px; }
  .dm-faq .a { padding: 0 16px 18px 16px; }
  .dm-facts { gap: 8px; }
  .dm-fact { padding: 12px 13px; }
}
@media (max-width: 520px) and (min-width: 0) {
  .dm-slots[style*="--n:4"], .dm-slots[style*="--n:5"], .dm-slots[style*="--n:6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
}

/* ── 기기 관리 페이지(devices.html) 머리 · 관리자 안내 ── */
.dm-page-lead { font-size: 16px; line-height: 1.6; color: #d0dae5; }
.dm-admin-note { margin: -10px 0 24px; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; color: #ffe1b0; background: rgba(255,170,60,.1); border: 1px solid rgba(255,190,90,.32); }
.dm-admin-note[hidden] { display: none; }

/* ── 마이페이지의 기기 관리 바로가기 카드 ── */
.dm-link { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 20px; text-decoration: none; color: #f7fafd;
  border: 1px solid rgba(70,227,217,.3); background: radial-gradient(360px 160px at 100% 0%, rgba(70,227,217,.14), transparent 70%), linear-gradient(160deg, #1a2d47, #101c2e); transition: border-color .15s, transform .15s; }
.dm-link:hover { border-color: rgba(70,227,217,.6); transform: translateY(-1px); }
.dm-link svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-link .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 22px; color: #46e3d9; background: rgba(70,227,217,.12); }
.dm-link .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dm-link .t b { font-size: 17px; font-weight: 800; }
.dm-link .t small { font-size: 14px; color: #d0dae5; line-height: 1.5; }
.dm-link .go { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14.5px; font-weight: 800; color: #05201e; background: #46e3d9; }
@media (max-width: 520px) { .dm-link { flex-wrap: wrap; } .dm-link .go { width: 100%; justify-content: center; } }
