/* ATIS REMOTE — ATIS NAS 와 같은 테마(어두운 유리 카드 + 파란 강조 + 서버실 배경). 기본은 어두운 화면, 오른쪽 위 버튼으로 밝은 화면 */
:root {
  --bg: #070d1c;
  --bar: rgba(9, 14, 26, .92);
  --card: rgba(16, 20, 30, .86);
  --card-solid: #141a28;
  --sub: rgba(255, 255, 255, .04);
  --field: rgba(8, 12, 22, .72);
  --text: #e8edf5;
  --muted: #9aa6b8;
  --line: rgba(148, 170, 210, .2);
  --line-strong: rgba(148, 170, 210, .38);
  --accent: #2f7cf6;
  --accent-hover: #4a8ff9;
  --accent-text: #ffffff;
  --title: #5aa2ff;
  --ok: #4cd38a; --err: #ff8a80; --warn: #f3bf5a;
  --l1: #2fa86a; --l2: #d98a1c; --l3: #e0524a; --badge-text: #ffffff;
  --focus: #6aa8ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #e9eef6;
  --bar: rgba(255, 255, 255, .92);
  --card: rgba(255, 255, 255, .9);
  --card-solid: #ffffff;
  --sub: rgba(15, 40, 90, .035);
  --field: #ffffff;
  --text: #16202e;
  --muted: #586579;
  --line: rgba(30, 60, 110, .16);
  --line-strong: rgba(30, 60, 110, .3);
  --accent: #1f63d6;
  --accent-hover: #1a56bb;
  --accent-text: #ffffff;
  --title: #1f63d6;
  --ok: #1b7f3b; --err: #b3261e; --warn: #8a5a00;
  --l1: #2e7d32; --l2: #b26a00; --l3: #b3261e;
  --focus: #1f63d6;
  --shadow: 0 20px 50px rgba(10, 30, 70, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--text);
  background: var(--bg);
  font: 15px/1.55 "Pretendard", "Pretendard Variable", system-ui, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
/* 줄바꿈: 한국어는 단어(어절) 단위로, 긴 코드·주소·이메일만 아무 데서나 끊음 */
body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
button, .badge, .chip, .tab, a.button, .ghostbtn, .ctitle, .btext b, .btext small, .kv dt { white-space: nowrap; }
code, .mono, .rinfo, .dname { word-break: normal; overflow-wrap: anywhere; }
.kv dd { overflow-wrap: anywhere; }

/* ── 배경: NAS 와 같은 데이터센터 사진(고정) + 깊이별 빛 입자
   사진에 이동·확대를 걸면 다시 샘플링돼 흐려지므로 사진은 고정, 움직이는 것은 빛뿐. 소실점 50% 53% */
#atis-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #050b16; }
.dc-photo, .dc-p, .dc-shade { position: absolute; inset: 0; }
.dc-photo { background: url("/bg-dc.webp") 50% 53% / cover no-repeat; }
.dc-core {
  position: absolute; left: 50%; top: 53%; width: 30vw; height: 20vw; border-radius: 50%;
  transform: translate(-50%, -50%); mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(160, 225, 255, .42), rgba(80, 150, 255, .14) 55%, transparent);
  animation: dc-breathe 6s ease-in-out infinite;
}
@keyframes dc-breathe { 50% { opacity: .5; transform: translate(-50%, -50%) scale(1.14); } }
.dc-p { mix-blend-mode: screen; }
.dc-p.far {
  opacity: .5;
  background: radial-gradient(circle, rgba(186, 230, 253, .9) 0 1px, transparent 1.6px) 0 0 / 37px 53px,
              radial-gradient(circle, rgba(167, 139, 250, .75) 0 1px, transparent 1.6px) 19px 29px / 61px 71px;
  -webkit-mask: radial-gradient(ellipse 42% 46% at 50% 42%, #000 30%, transparent 100%);
  mask: radial-gradient(ellipse 42% 46% at 50% 42%, #000 30%, transparent 100%);
  animation: dc-up 24s linear infinite;
}
@keyframes dc-up { to { background-position: 0 -530px, 19px -681px; } }
.dc-p.near {
  opacity: .7; filter: blur(.7px);
  background: radial-gradient(circle, rgba(125, 235, 255, .95) 0 2px, rgba(125, 235, 255, .25) 3px, transparent 5px) 0 0 / 173px 211px,
              radial-gradient(circle, rgba(74, 222, 128, .8) 0 1.6px, transparent 4px) 87px 120px / 239px 263px;
  -webkit-mask: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 25%, #000 70%);
  mask: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 25%, #000 70%);
  animation: dc-up2 16s linear infinite;
}
@keyframes dc-up2 { to { background-position: 0 -844px, 87px -932px; } }
.dc-shade {
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 50%, rgba(2, 6, 14, .62) 100%),
              linear-gradient(180deg, rgba(2, 6, 14, .30), transparent 22%, transparent 78%, rgba(2, 6, 14, .45));
}
/* 빛 입자는 로그인 화면만. 로그인 뒤는 같은 사진을 멈춘 채 어둡게 눌러 글자를 받침 (NAS 와 같음) */
body:not(.is-login) .dc-core, body:not(.is-login) .dc-p { display: none; }
body:not(.is-login) .dc-photo { filter: saturate(.75); }
body:not(.is-login) .dc-shade { background-color: rgba(6, 10, 18, .6); }
:root[data-theme="light"] .dc-shade { background-color: rgba(225, 233, 245, .35); }
body.bg-paused .dc-core, body.bg-paused .dc-p { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .dc-core, .dc-p { animation: none !important; } }
[hidden] { display: none !important; }
a { color: var(--title); }

/* ── 상단 바 */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px clamp(16px, 3vw, 48px); min-height: 64px;
  background: var(--bar); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, #fff, #e8edf5); box-shadow: 0 6px 18px -8px rgba(31, 111, 235, .6); }
.tile img { width: 28px; height: 28px; display: block; }
:root[data-theme="light"] .tile { background: #fff; box-shadow: 0 0 0 1px #e3e8ef, 0 4px 12px -6px rgba(15, 23, 42, .25); }
.btext { display: flex; flex-direction: column; line-height: 1.15; padding-left: 14px; border-left: 1px solid var(--line); }
.btext b { font-size: 15px; font-weight: 700; letter-spacing: .28em; }
.btext small { font-size: 9.5px; font-weight: 600; letter-spacing: .42em; color: var(--muted); margin-top: 3px; }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.whoid { font-weight: 600; }
.iconbtn {
  width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--sub); color: var(--text);
}
.iconbtn:hover { border-color: var(--accent); color: var(--title); }
.ghostbtn { padding: 5px 12px; font-size: 13px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; }
.ghostbtn:hover { border-color: var(--accent); color: var(--title); }

/* ── 본문·카드 */
main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(28px, 7vh, 80px) 16px 32px; }
.card, .panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.card { padding: 30px 30px 26px; }
.panel { padding: 26px 26px 22px; }
.narrow { max-width: 460px; margin: 0 auto; }
#vDevice.narrow { max-width: 540px; }
h1 { font-size: 21px; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 15.5px; margin: 0 0 8px; }
.ctitle { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--title); font-size: 24px; font-weight: 800; margin-bottom: 2px; }
.ctitle img { width: 40px; height: 40px; flex: none; }
.csub { text-align: center; margin: 0 0 14px; color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
#vList .head h1, #vDevice h1 { color: var(--title); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, Consolas, "D2Coding", monospace; letter-spacing: .02em; }
.wrap { overflow-wrap: anywhere; display: block; margin-top: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── 입력·버튼 */
input, select, button { font: inherit; color: inherit; }
input, select {
  background: var(--field); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px 12px; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 124, 246, .25); outline: none; }
input::placeholder { color: var(--muted); opacity: .75; }
input.big { width: 100%; font-size: 16px; padding: 13px 14px; margin: 8px 0 12px; }
button {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 10px;
  padding: 10px 16px; cursor: pointer; font-weight: 600; transition: background .15s, border-color .15s, color .15s;
}
button:hover:not(:disabled) { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px rgba(47, 124, 246, .28); }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.big { width: 100%; padding: 14px; font-size: 16px; }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button.link { border: 0; background: none; color: var(--title); padding: 4px 0; font-weight: 600; }
button.link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#fCode button, #fLoginEmail button, #fLoginAcct button, #fAcctPw button { width: 100%; padding: 13px; font-size: 15.5px; }
.row { display: flex; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.row input, .row select { flex: 1 1 160px; }
a.button {
  display: inline-block; margin: 6px 0; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; border: 1px solid var(--accent);
}
a.button:hover { background: var(--accent-hover); }
a.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
a.button.ghost:hover { border-color: var(--accent); color: var(--title); }
button.small { font-size: 12px; }

/* ── 메시지 */
.msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; white-space: pre-line; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.msg.warn { color: var(--warn); }

/* ── 로그인 탭 (분할 버튼) */
.tabs { display: flex; gap: 4px; margin: 10px 0 16px; padding: 4px; border-radius: 12px; background: var(--sub); border: 1px solid var(--line); }
.tab { flex: 1; border: 0; border-radius: 9px; background: none; padding: 8px 6px; color: var(--muted); font-size: 14px; }
.tab:hover:not(.on) { color: var(--text); }
.tab.on { background: var(--accent); color: var(--accent-text); box-shadow: 0 4px 12px rgba(47, 124, 246, .3); }

/* ── 원격 장비 목록: 카드 = 왼쪽(이름·태그·상태) + 오른쪽 위(동작 버튼), 아래 접힌 안내 */
.head { margin-bottom: 12px; }
.devices { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.devcard {
  display: grid; gap: 8px; min-width: 0; padding: 14px 16px;
  background: var(--sub); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.devcard:hover { border-color: var(--line-strong); }
.devcard.off { opacity: .6; }
.dtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; }
.dmain { flex: 1 1 220px; min-width: 0; display: grid; gap: 5px; }
.dname { font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; justify-self: start; }
.dname:hover { color: var(--title); text-decoration: underline; }
.dtags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.dstatus { margin: 0; }
.dstatus.warn { color: var(--warn); }
.dacts { display: flex; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.dacts button, .dacts a.button { margin: 0; font-size: 14px; padding: 8px 14px; }
.devcard > .msg { margin: 0; }
.devcard > .msg:empty { display: none; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: var(--badge-text); vertical-align: middle; white-space: nowrap; letter-spacing: .02em; }
.badge.l1 { background: var(--l1); }
.badge.l2 { background: var(--l2); }
.badge.l3 { background: var(--l3); }
.badge.ms { background: rgba(47, 124, 246, .18); color: var(--title); border: 1px solid rgba(47, 124, 246, .45); }
/* 인증 수준 범례 — 목록 위 한 줄 */
.legend { margin: 0 0 10px; display: flex; gap: 4px 12px; align-items: center; flex-wrap: wrap; }
.legend .lgtitle { font-weight: 700; }
.legend .lgitem { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.legend .badge { font-size: 10.5px; padding: 1px 7px; }
#mAuto:empty, #mCopyGuide:empty { display: none; }
.otphint { margin: 0 0 10px; }
.otphint a.button { margin: 0 0 0 6px; padding: 5px 12px; font-size: 13px; }

/* ── 접속 정보 — 접힌 요약 한 줄 */
.codecard { background: var(--sub); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.cisum { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 14px 10px 34px; position: relative; }
.cisum::-webkit-details-marker { display: none; }
.cisum::before { content: "▸"; position: absolute; left: 14px; top: 10px; color: var(--title); transition: transform .15s; }
.codecard[open] > .cisum::before { transform: rotate(90deg); }
.cititle { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.cimeta { min-width: 0; }
.cibody { padding: 0 16px 12px; border-top: 1px dashed var(--line); }
.ciact { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; }
.ciact button { padding: 4px 12px; font-size: 12px; }
.envbox { margin: 10px 0 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.envbox h3 { margin: 0; font-size: 13.5px; color: var(--title); }
.envbox dd button { padding: 2px 10px; font-size: 12px; margin-left: 6px; vertical-align: middle; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; margin: 12px 0 8px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
.cmdhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmdhead button { padding: 4px 12px; font-size: 12px; }
.nw { white-space: nowrap; }

/* ── 안내·명령 */
.guide { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--sub); min-width: 0; }
.guide summary { cursor: pointer; color: var(--title); font-weight: 600; }
.guide p { margin: 6px 0; }
.cmdrow { margin: 8px 0; min-width: 0; }
code { background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
code.cmd { padding: 7px 9px; margin-top: 4px; font-size: 12px; white-space: pre-wrap; }
.acc { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.acc button { padding: 3px 10px; font-size: 12px; }

/* ── 장비별 인증 */
.back { margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; counter-reset: st; }
.steps > li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--sub); }
.steps > li h2 { display: flex; align-items: center; gap: 8px; }
.steps > li h2::before {
  counter-increment: st; content: counter(st);
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-size: 12px;
}
.done { color: var(--ok); font-weight: 700; }
.done::before { content: "✓ "; }
#qr, #acctQr { display: block; margin: 10px auto; background: #fff; padding: 6px; border-radius: 10px; width: 200px; height: 200px; image-rendering: pixelated; }
.go { margin-top: 10px; }
.mstsc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.reg { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--sub); }
.reg p { margin: 4px 0; }
.myregs { margin-top: 22px; }
.myregs > p { margin: 0 0 8px; }
.reglist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.reglist li { display: flex; gap: 8px 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--sub); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.reglist .rinfo { min-width: 0; }
#acctPwChange, #acctTotp { margin-top: 4px; }
#loading { color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

/* ── 하단 바 */
.foot {
  text-align: center; padding: 10px 16px 12px; font-size: 12.5px; color: var(--muted);
  background: var(--bar); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.foot p { margin: 2px 0; }
.fnote { font-size: 11.5px; opacity: .85; }
.fline { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; }
.fline b { color: var(--text); font-weight: 700; }
.fline > * + *::before { content: "·"; margin: 0 10px; color: var(--muted); opacity: .6; }
.fline a { color: var(--title); text-decoration: none; }
.fline a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .card { padding: 22px 18px 18px; }
  .panel { padding: 18px 14px; }
  main { padding: 20px 12px 24px; }
  .btext small { letter-spacing: .24em; }
  .ctitle { font-size: 21px; }
  .tab { font-size: 13px; }
  .top { padding: 10px 14px; gap: 8px; }
  .tile { width: 36px; height: 36px; }
  .tile img { width: 25px; height: 25px; }
  .btext { padding-left: 10px; }
  .btext b { font-size: 14px; }
  .tools { flex: 1 1 100%; justify-content: flex-end; flex-wrap: nowrap; min-width: 0; }
  .who { flex: 1; flex-wrap: nowrap; min-width: 0; font-size: 12px; }
  .whoid { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  #whoExp { display: none; }
  .iconbtn { width: 34px; height: 34px; flex: none; }
  .ghostbtn { flex: none; }
  .tools:has(.who[hidden]) { flex: none; margin-left: auto; }
  /* 좁은 화면: 동작 버튼을 이름 아래 한 줄로, 같은 너비로 */
  .dacts { flex: 1 1 100%; justify-content: stretch; }
  .dacts > * { flex: 1 1 0; text-align: center; }
  .kv { grid-template-columns: minmax(84px, max-content) minmax(0, 1fr); gap: 4px 10px; font-size: 13.5px; }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .panel, .top, .foot { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card-solid); }
}

/* 여러 줄 값(접속 환경 공인 IP 등) */
.prel { white-space: pre-line; }

/* §16 관리자가 끈 접속 방식: 버튼은 보이되 비활성 + 작은 안내 */
.mnote { margin: 4px 0 0; color: var(--muted); }
button:disabled[title] { cursor: not-allowed; }
/* 인증번호 메일 버튼 (otp-link.js, 11-26) — 관리 웹·포털 같은 내용 */
.otp-link-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.otp-link-note { margin-top: 8px; font-size: 13px; color: #5ad19a; }
.otp-link-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 10, 22, .92); }
.otp-link-card { width: 100%; max-width: 380px; background: #141a28; border: 1px solid #2a3450; border-radius: 16px; padding: 24px 20px; color: #e8edf5; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.otp-link-title { font-size: 14px; color: #9aa6b8; letter-spacing: .08em; }
.otp-link-code { margin: 10px 0 14px; padding: 12px 0; border: 1px solid #2f7cf6; border-radius: 12px; background: #0b1222; font: 700 34px/1.2 Consolas, 'Courier New', monospace; letter-spacing: 8px; color: #fff; user-select: all; }
.otp-link-msg { font-size: 13px; line-height: 1.7; color: #9aa6b8; word-break: keep-all; }
.otp-link-msg.bad { color: #f08a8a; }
.otp-link-row { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.otp-link-btn { padding: 9px 16px; border-radius: 10px; border: 1px solid #2f7cf6; background: #2f7cf6; color: #fff; font-weight: 700; cursor: pointer; }
.otp-link-btn.ghost { background: transparent; color: #5aa2ff; }

/* 접속 프로그램 (md\31, 11-26 P1) — 긴 명령은 줄바꿈해 보여 주고 복사 버튼은 옆에 */
#appBox .cmdrow { display: flex; gap: 8px; align-items: flex-start; }
#appBox code.cmd { display: block; flex: 1 1 auto; min-width: 0; word-break: break-all; max-height: 120px; overflow: auto; }
#appBox #appInstall { display: block; word-break: break-all; margin: 4px 0; }
#appBox .reg .button { margin: 4px 0 8px; }

/* 장비 카드 (11-26 사용자 "버튼을 밑에 놓지 말고 우측으로, 한눈에"): 왼쪽 정보 · 오른쪽 버튼 세로 열(같은 너비) */
.dtop { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.dacts { flex-direction: column; align-items: stretch; flex-wrap: nowrap; min-width: 196px; }
.dacts > * { text-align: center; white-space: nowrap; }
@media (max-width: 560px) {
  .dtop { grid-template-columns: minmax(0, 1fr); }
  .dacts { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

/* 장비 카드 한 줄 머리(11-26 "좌측 문구 가로로, 여백 최대한 없게"): 이름·태그·상태를 한 줄, 안내 문구는 버튼 옆 왼쪽 칸 */
.dmain { display: grid; gap: 4px; align-content: start; }
.dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dhead .dname { font-size: 16px; }
.dhead .dtags { display: inline-flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.dhead .dstatus::before { content: '·'; margin-right: 6px; color: var(--muted); }
.dmain .mnote, .dmain .dmsg { margin: 0; line-height: 1.45; }
.dmain .dmsg:empty { display: none; }
.dacts { gap: 6px; min-width: 188px; }
.dacts button, .dacts a.button { font-size: 13.5px; padding: 7px 12px; }
.devcard { gap: 6px; padding: 12px 14px; }
/* 접속 정보 아래 각주 */
.fnotes { margin: 8px 0 0; padding-left: 16px; line-height: 1.5; }
.fnotes li { margin: 1px 0; }

/* SSH 연결 설정 명령(11-26): 줄바꿈·긴 명령 감싸기 */
#mstscHowto { white-space: pre-wrap; word-break: break-all; }
.sshsetup { margin-top: 8px; }

