/* scommweb 화면 — 기기 틀(800×480) 안쪽은 SEN-A107 어두운 판, 바깥 머리만 rksna 형제 색.
   상태 N/S/P/D = :not(:active) · .sel/[aria-selected=true]/[aria-pressed=true] · :active · [disabled] */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--page-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--list-s); outline-offset: 1px;
}
[hidden] { display: none !important; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 바깥 머리 ── */
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 6px 16px; min-height: 40px; background: #fff; border-bottom: 1px solid #e3e8f2;
}
.ph-title { font-size: 14px; }
.ph-title strong { color: var(--page-accent); margin-right: 6px; }
.ph-title span { color: #5b6477; }
.ph-tools { display: flex; gap: 6px; }
.ph-btn {
  font-size: 13px; padding: 5px 10px; border-radius: 6px; border: 1px solid #c9d3ea;
  background: #fff; color: var(--page-accent); text-decoration: none;
}
.ph-btn[aria-pressed="true"] { background: var(--page-accent); color: #fff; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 16px; }
.noscript { padding: 16px; }

/* ── 기기 틀 ── */
.device-box { width: calc(800px * var(--k)); height: calc(480px * var(--k)); position: relative; flex: none; }
.device {
  position: absolute; left: 0; top: 0; width: 800px; height: 480px; overflow: hidden;
  transform: scale(var(--k)); transform-origin: 0 0;
  background: var(--bg); color: var(--text); font-size: 14px;
  border-radius: 6px; box-shadow: 0 0 0 6px #1b1f24, 0 8px 24px rgba(0, 0, 0, .25);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
body.mode-resp .device { border-radius: 0; box-shadow: 0 0 0 2px #1b1f24; }
.mode-resp .stage { padding: 8px; }

/* ── 상태바 32 ── */
.statusbar {
  position: absolute; left: 0; top: 0; width: 800px; height: var(--status-h); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px;
  background: linear-gradient(#1c2328, #0b0f12); font-size: 13px; color: #dfe7ec; cursor: pointer;
  box-shadow: var(--shadow-header);
}
.sb-left, .sb-right { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.sb-right { justify-content: flex-end; }
.sb-center { flex: 1; text-align: center; font-size: 12px; color: var(--clock); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-ico { font-size: 16px; display: inline-flex; }
.sb-audio { color: var(--list-s); }
.sb-rec { color: #ff4d4d; }
.sb-clock { font-variant-numeric: tabular-nums; }
.screen { position: absolute; left: 0; top: var(--status-h); width: 800px; height: calc(480px - var(--status-h)); overflow: hidden; }
.device.nostatus .statusbar { display: none; }
.device.nostatus .screen { top: 0; height: 480px; }
.pip-layer { position: absolute; inset: var(--status-h) 0 0 0; pointer-events: none; z-index: 30; }
.pip-layer > * { pointer-events: auto; }
.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 60; }
.overlay > * { pointer-events: auto; }
.toasts { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; z-index: 80; pointer-events: none; }
.toast {
  background: rgba(30, 34, 38, .95); color: #fff; padding: 10px 18px; border-radius: 4px; font-size: 14px;
  border: 1px solid #555; box-shadow: var(--shadow-popup); max-width: 600px; text-align: center;
}

/* ── 기구 키 줄 ── */
.hwkeys { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 0 16px; max-width: 100%; }
.hwkey {
  min-width: 72px; height: 40px; padding: 0 10px; border-radius: 20px; border: 1px solid #c9d3ea;
  background: #fff; color: #1d2433; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.hwkey:active { background: #e6edff; }
.hwkey kbd { font-size: 10px; color: #7a8499; border: 1px solid #d5dbe8; border-radius: 3px; padding: 0 3px; }
.hw-note { font-size: 11px; color: #7a8499; }

/* ── 공용 단추 · 상태 ── */
.dbtn {
  background: transparent; border: 0; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; font-size: 28px; border-radius: 4px;
}
.dbtn:not(:active):hover { background: rgba(255, 255, 255, .06); }
.dbtn.sel, .dbtn[aria-pressed="true"] { color: var(--list-s); }
.dbtn:active { background: var(--list-p); color: #000; }
.dbtn[disabled] { opacity: var(--list-d-opacity); cursor: default; }
.demo-tag {
  display: inline-block; font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 8px;
  background: #ffcc33; color: #000; font-weight: 700; vertical-align: middle;
}
.none-tag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 8px; background: #555; color: #fff; }

/* ── 팝업(딤 70% · 상태바 제외) ── */
.pop-dim { position: absolute; left: 0; right: 0; top: var(--status-h); bottom: 0; background: var(--dim-popup); display: flex; align-items: center; justify-content: center; }
.device.nostatus .pop-dim { top: 0; }
.pop-dim.nodim { background: transparent; }
.pop-plate {
  background: var(--popup-list); color: #fff; border-radius: 6px; box-shadow: var(--shadow-popup);
  border: 1px solid #3a454d; overflow: hidden; max-height: 420px; display: flex; flex-direction: column;
}
.pop-list { width: var(--pop-w); }
.pop-head { height: var(--pop-head); display: flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; font-size: var(--fs-pophead); font-weight: 700; flex: none; box-shadow: var(--shadow-header); }
.pop-head-ico { font-size: 18px; color: var(--list-s); display: inline-flex; }
.pop-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-x { width: 24px; height: 24px; border: 0; background: transparent; color: #fff; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pop-lines { display: flex; flex-direction: column; flex: none; }
.pop-lines i { display: block; height: 1px; }
.pop-lines i:nth-child(1) { background: var(--popup-line-1); }
.pop-lines i:nth-child(2) { background: var(--popup-line-2); }
.pop-lines i:nth-child(3) { background: var(--popup-line-3); }
.pop-items { overflow: auto; }
.pop-item {
  width: 100%; height: var(--pop-item); display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 0; border-bottom: 1px solid #2c363d; background: var(--list-n); color: #fff; font-size: var(--fs-popitem); text-align: left;
}
.pop-item:hover, .pop-item:focus-visible { background: var(--list-s); color: #000; }
.pop-item:active { background: var(--list-p); color: #000; }
.pop-item[disabled] { opacity: .4; }
.pi-ico { font-size: 18px; display: inline-flex; }
.pop-input-plate { width: var(--pop-in-w); min-height: var(--pop-in-h); }
.pop-in-body { display: flex; align-items: center; gap: 10px; padding: 12px; flex: 1; }
.pop-in-ico { font-size: 36px; color: var(--list-s); display: inline-flex; }
.pop-in-label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sub-list); }
.pop-input {
  height: var(--pop-input-h); border-radius: 4px; border: 2px solid #9aa4ab; padding: 0 8px; font-size: 15px;
  color: var(--input-off); background: #fff; font-family: inherit;
}
.pop-input:focus { border-color: var(--input-focus); color: var(--input-on); outline: none; }
.pop-btns { display: flex; gap: 8px; padding: 8px 12px 12px; justify-content: center; flex: none; }
.pop-btn {
  width: var(--pop-btn-w); height: var(--pop-btn-h); border-radius: 4px; border: 1px solid #9aa4ab;
  background: linear-gradient(#f4f6f7, #cfd5d9); color: var(--popbtn-n); font-size: 13px; font-weight: 600;
}
.pop-btn:focus-visible, .pop-btn.sel { color: var(--popbtn-sp); background: var(--list-s); }
.pop-btn:active { color: var(--popbtn-sp); background: var(--list-p); }
.pop-confirm { width: 400px; }
.pop-msg { margin: 0; padding: 18px 16px; font-size: 14px; line-height: 1.5; text-align: center; white-space: pre-line; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; margin-right: 8px; vertical-align: -3px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 공용 ── */
.scr-missing { padding: 40px; text-align: center; color: var(--sub-list); }
.pick-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.pick-btn {
  height: 36px; padding: 0 14px; border-radius: 4px; border: 1px solid #4d5a62; background: var(--list-n); color: #fff; font-size: 13px;
}
.pick-btn:hover, .pick-btn:focus-visible { background: var(--list-s); color: #000; }
.pick-btn:active { background: var(--list-p); color: #000; }
.pick-btn[disabled] { opacity: .4; }
.list-hint { color: var(--sub-list); font-size: 12px; padding: 10px 14px; margin: 0; }
.list-empty { padding: 40px 20px; text-align: center; color: var(--sub-list); }
.dim-bright .screen { filter: brightness(.7); }

/* ── 재생 화면 ── */
.scr-player { position: absolute; inset: 0; overflow: hidden; }
.pl-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.pl-bg img, .pl-bg .pl-bg-default { position: absolute; left: 50%; top: 50%; width: 250%; height: auto; transform: translate(-50%, -50%); filter: blur(10px); }
.pl-bg .pl-bg-default svg { width: 100%; height: auto; display: block; }
.pl-bg::after { content: ""; position: absolute; inset: 0; background: var(--dim-player); }
.pl-np { position: relative; z-index: 1; height: var(--np-h); display: flex; align-items: center; }
.pl-artbox { width: 384px; display: flex; justify-content: center; align-items: center; height: 100%; }
.pl-art { width: var(--art); height: var(--art); box-shadow: 0 4px 12px rgba(0,0,0,.6); overflow: hidden; }
.pl-art img, .pl-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-info { flex: 1; display: flex; flex-direction: column; gap: 25px; padding-right: 24px; min-width: 0; }
.pl-row { display: flex; align-items: center; gap: 8px; height: 30px; }
.pl-linebtn { width: 30px; height: 30px; flex: none; border: 1px solid #5a666e; border-radius: 4px; background: rgba(0,0,0,.3); color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pl-linebtn:active { background: var(--list-p); }
.pl-line { flex: 1; overflow: hidden; white-space: nowrap; height: 30px; line-height: 30px; border-radius: 3px; cursor: pointer; touch-action: none; }
.pl-line.pressed { background: var(--text-pressed); }
.pl-text-inner { display: inline-block; transition: transform .3s; }
.pl-title { font-size: var(--fs-title); color: #fff; }
.pl-artist, .pl-album { font-size: var(--fs-sub); color: var(--sub-player); }
.pl-status { position: relative; z-index: 1; height: var(--seek-h); display: flex; align-items: center; }
.pl-side { width: 132px; display: flex; justify-content: center; }
.pl-seekbox { width: var(--seek-w); }
.pl-seek { width: 100%; height: 24px; margin: 0; accent-color: var(--list-s); }
.scr-player:not(.st-OSD) .pl-seek::-webkit-slider-thumb { opacity: 0; }
.pl-times { display: flex; justify-content: space-between; font-size: var(--fs-time); color: #fff; margin-top: 10px; font-family: var(--font-latin); }
.pl-shuffle, .pl-repeat { width: var(--osd-sr-w); height: var(--osd-sr-h); font-size: 26px; }
.pl-ctrl { position: relative; z-index: 1; height: var(--ctrl-h); display: flex; background: rgba(0,0,0,.35); border-top: 1px solid rgba(255,255,255,.08); }
.pl-ctrl .dbtn { height: 72px; font-size: 30px; }
.w132 { width: 132px; } .w134, .pl-play { width: 134px; }
.osd-only { visibility: hidden; }
.st-OSD .osd-only { visibility: visible; }
.pl-osdtop { position: absolute; top: 6px; right: 8px; z-index: 2; display: flex; gap: 10px; align-items: flex-start; }
.pl-home { width: var(--osd-home-w); height: var(--osd-home-h); font-size: 26px; background: rgba(0,0,0,.4); }
.pl-x { width: var(--osd-x); height: var(--osd-x); font-size: 20px; background: rgba(0,0,0,.4); }
.pl-volhint { position: absolute; left: 0; right: 0; top: 8px; text-align: center; z-index: 2; color: var(--list-s); font-size: 13px; visibility: hidden; }
.st-VOLUME .pl-volhint { visibility: visible; }

/* ── 목록 ── */
.scr-list { position: absolute; inset: 0; display: flex; flex-direction: column; background: #12181c; }
.tabbar { display: flex; height: var(--tab-h); flex: none; background: #0d1215; box-shadow: var(--shadow-header); position: relative; z-index: 2; }
.tab { flex: 1; border: 0; border-right: 1px solid #1d262b; background: linear-gradient(#2a343a, #1a2125); color: #cfd8dc; font-size: 15px; }
.tab.sel, .tab[aria-selected="true"] { background: var(--list-s); color: #000; font-weight: 700; }
.tab:active { background: var(--list-p); color: #000; }
.tab[disabled] { opacity: .4; }
.list-header { flex: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; background: #1b2429; border-bottom: 1px solid #333; cursor: pointer; font-weight: 700; font-size: 13px; }
.list-header:active { background: var(--list-p); color: #000; }
.list-header.side { min-height: 100px; }
.lh-ico { font-size: 20px; display: inline-flex; color: var(--list-s); }
.lh-side { display: flex; align-items: center; gap: 10px; }
.lh-art { width: 88px; height: 88px; overflow: hidden; display: inline-block; }
.lh-art img, .lh-art svg { width: 88px; height: 88px; object-fit: cover; }
.lh-side-text { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sub-list); }
.lh-side-text b { color: #fff; font-size: 13px; }
.lh-text { flex: 1; }
.list-filter { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #1b2429; }
.filter-input, .search-input, .ab-filter { flex: 1; height: 34px; border-radius: 4px; border: 2px solid #9aa4ab; padding: 0 8px; font-size: 14px; font-family: inherit; }
.filter-input:focus, .search-input:focus { border-color: var(--input-focus); outline: none; }
.list-box { flex: 1; display: flex; min-height: 0; position: relative; }
.list-body { flex: 1; overflow-y: auto; touch-action: pan-y; }
.lrow {
  display: flex; align-items: center; gap: 10px; height: calc(var(--row-h) + 1px); padding-right: 6px;
  background: var(--list-n); border-bottom: 1px solid #10161a; cursor: pointer; position: relative;
}
.lrow:hover, .lrow:focus-visible { background: var(--list-s); }
.lrow:hover .row-t1, .lrow:focus-visible .row-t1 { color: var(--list-s-title); }
.lrow:hover .row-t2, .lrow:focus-visible .row-t2 { color: var(--list-s-sub); }
.lrow.pressed, .lrow:active { background: var(--list-p); }
.lrow.pressed .row-t1 { color: var(--list-p-title); } .lrow.pressed .row-t2 { color: var(--list-p-sub); }
.lrow.dragging { opacity: .8; z-index: 3; box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.lrow.child { padding-left: 30px; background: #1a2226; }
.albums .lrow { border-bottom: 1px solid var(--album3d-line); }
.row-art { width: var(--row-art); height: var(--row-art); flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; color: var(--list-s); background: #11171a; overflow: hidden; }
.row-art img, .row-art svg.art-default { width: 77px; height: 77px; object-fit: cover; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-t1 { font-size: var(--fs-row1); color: var(--list-n-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t2 { font-size: var(--fs-row2); color: var(--list-n-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow.kind-artist .row-t1, .lrow.kind-album .row-t1, .lrow.kind-folder .row-t1 { font-size: var(--fs-row2); }
.row-now { font-size: 20px; color: var(--list-s); display: inline-flex; }
.lrow.now .row-t1 { color: var(--list-s); }
.row-sub, .row-preview { width: var(--subbtn); height: var(--subbtn); flex: none; border: 1px solid #4a565e; border-radius: 4px; background: #11181c; color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.row-sub:active, .row-preview:active { background: var(--list-p); }
.row-drag { width: 30px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--sub-list); font-size: 20px; cursor: grab; touch-action: none; }
.alpha-bar { width: var(--alpha-w); flex: none; overflow-y: auto; background: #0d1215; display: flex; flex-direction: column; }
.alpha { border: 0; background: transparent; color: var(--sub-list); font-size: 11px; height: 22px; padding: 0; }
.alpha:hover { color: var(--list-s); }
.list-pad { min-height: 120px; }
.scan-banner { padding: 8px 12px; background: #2b3a12; color: #e8f5c8; font-size: 13px; }
.action-area {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--action-h); display: flex; gap: 2px; background: #0b0f12;
  transform: translateY(100%); transition: transform .2s ease-in; z-index: 4; border-top: 1px solid #2c363d;
}
.action-area.open { transform: translateY(0); }
.footer-open .list-box { padding-bottom: var(--action-h); }
.action-btn { flex: 1; border: 0; background: linear-gradient(#2c3a42, #1a2328); color: var(--action-n); font-size: 14px; font-weight: 700; }
.action-btn:focus-visible, .action-btn.sel { background: var(--list-s); color: var(--action-sp); }
.action-btn:active { background: var(--list-p); color: var(--action-sp); }
.search-box { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #1b2429; font-size: 20px; }
.search-h { margin: 0; padding: 6px 12px; font-size: 12px; color: var(--list-s); background: #0f1417; }
.week-body { display: flex; align-items: center; gap: 12px; padding: 16px; }
.week-body input { flex: 1; }
.pv-body { display: flex; align-items: center; gap: 10px; padding: 14px; }
.pv-bar { flex: 1; }
.pv-time, .pv-sub { font-size: 12px; color: var(--sub-list); }
.pv-pp { width: 40px; height: 40px; font-size: 24px; }

/* ── 재생목록 편집 ── */
.scr-edit { position: absolute; inset: 0; display: flex; }
.ed-left { width: 400px; background: var(--edit-left); display: flex; flex-direction: column; border-right: 1px solid #222; }
.ed-right { width: 400px; display: flex; flex-direction: column; background: #12181c; }
.scr-edit.dnd .ed-right { outline: 3px dashed var(--list-s); outline-offset: -3px; }
.ed-tabs { display: flex; height: 60px; flex: none; }
.ed-tab { width: 100px; flex: none; }
.ed-title { height: 60px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 14px; background: var(--edit-title); color: #000; font-size: 16px; font-weight: 700; }
.ed-menu { width: 36px; height: 36px; border: 0; background: rgba(0,0,0,.12); border-radius: 4px; font-size: 20px; color: #000; display: inline-flex; align-items: center; justify-content: center; }
.ed-list { flex: 1; overflow-y: auto; touch-action: pan-y; }
.ed-row { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 10px; border-bottom: 1px solid rgba(0,0,0,.35); cursor: pointer; }
.ed-row.lv1 { padding-left: 30px; } .ed-row.lv2 { padding-left: 50px; }
.ed-row:hover { background: rgba(47,188,253,.25); }
.ed-row.dragging { background: var(--list-p); }
.ed-exp { font-size: 18px; color: var(--list-s); display: inline-flex; }
.ed-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ed-t1 { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-t2 { font-size: 10px; color: var(--sub-list); }
.ed-check { width: 22px; height: 22px; accent-color: var(--list-s); }
.ed-footer { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; gap: 2px; transform: translateY(100%); transition: transform .2s ease-in; z-index: 3; }
.scr-edit.footer-open .ed-footer { transform: translateY(0); }
.scr-edit.footer-open .ed-list { padding-bottom: 64px; }
.ed-ghost { position: fixed; z-index: 9999; pointer-events: none; padding: 6px 10px; background: var(--list-s); color: #000; border-radius: 4px; font-size: 13px; box-shadow: 0 4px 10px rgba(0,0,0,.4); }

/* ── 홈 ── */
.scr-home { position: absolute; inset: 0; overflow: hidden; }
.home-wall { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, #1f3340, #0b1216 70%); }
.home-pages { position: absolute; left: 3px; top: 0; width: 685px; height: 417px; }
.home-grid {
  position: absolute; inset: 13px 35px 0 35px; display: none;
  grid-template-columns: repeat(4, var(--cell-w)); grid-template-rows: repeat(3, var(--cell-h)); gap: 0 2px;
}
.home-grid.cur { display: grid; }
.home-cell { border-radius: 6px; }
.home-cell:hover { background: rgba(255,255,255,.03); }
.home-w { position: relative; display: flex; align-items: center; justify-content: center; z-index: 1; min-width: 0; min-height: 0; }
.home-dots { position: absolute; left: 3px; width: 685px; bottom: 13px; height: 18px; display: flex; justify-content: center; gap: 10px; }
.home-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #8c8c8c; background: transparent; padding: 0; }
.home-dot.sel { background: #fff; border-color: #fff; }
.home-dock {
  position: absolute; right: 10px; top: 13px; bottom: 13px; width: var(--dock-w); display: flex; flex-direction: column; justify-content: space-around; align-items: center;
  background: rgba(0,0,0,.45); border-radius: 10px; border: 1px solid rgba(255,255,255,.08);
}
.dock-btn { width: 80px; height: 80px; border-radius: 16px; border: 0; background: linear-gradient(#2c3a42, #182025); color: #fff; font-size: 40px; display: inline-flex; align-items: center; justify-content: center; }
.dock-btn:active { background: var(--list-p); }
.home-add { position: absolute; right: 130px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #555; background: rgba(0,0,0,.5); color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.home-shortcuts { display: flex; gap: 8px; align-items: center; padding: 0 8px; z-index: 1; }
.home-sc { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; width: 100px; padding: 8px 4px; border: 0; border-radius: 8px; background: rgba(0,0,0,.4); color: #fff; font-size: 12px; }
.home-sc .ico { font-size: 34px; color: var(--list-s); }
.scr-apps { position: absolute; inset: 0; background: #0f1519; padding: 10px 20px; overflow: auto; }
.apps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 16px; }
.apps-home { width: 40px; height: 40px; border: 0; border-radius: 6px; background: #22303a; color: #fff; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; }
.apps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.app-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-size: 13px; }
.app-icon:hover, .app-icon:focus-visible { background: rgba(47,188,253,.2); }
.app-icon:active { background: var(--list-p); }
.app-ico { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(#2fbcfd, #185f80); display: inline-flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; }

/* ── 위젯 공통(F-HOME-05 한 배경처럼) ── */
.widget { color: #fff; }
.w-music { width: 510px; height: 130px; }
.home-w .w-music, .home-w .w-dmb { width: 100%; }
.wm-plate { width: 100%; height: 100%; padding: 15px; display: flex; gap: 12px; background: var(--music-plate); border-radius: 8px; border: 1px solid rgba(255,255,255,.06); }
.wm-art { width: 100px; height: 100px; flex: none; padding: 0; border: 0; overflow: hidden; background: #000; border-radius: 3px; }
.wm-art img, .wm-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-right { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.wm-text { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.wm-artist { font-size: 12px; color: var(--sub-widget); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 300; }
.wm-title { font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 300; }
.wm-btns { display: flex; gap: 4px; }
.wm-btn { width: 110px; height: 40px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: linear-gradient(rgba(255,255,255,.08), rgba(0,0,0,.2)); color: #fff; font-size: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.wm-btn:active { background: var(--list-p); color: #000; }
.wm-btn[disabled] { opacity: .4; }
.w80 { transform: scale(.8); transform-origin: left center; }
.w-gps { width: 100%; height: 244px; display: flex; gap: 6px; position: relative; background: rgba(0,0,0,.35); border-radius: 8px; border: 1px solid rgba(255,255,255,.06); padding: 6px; }
.gps-left { display: flex; flex-direction: column; justify-content: space-between; align-items: center; width: 150px; }
.gps-gas { width: 150px; height: 112px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: radial-gradient(circle, #2b3a44, #121a1f); color: #ffcf6b; font-size: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.gps-gas span { font-size: 11px; color: #fff; font-family: var(--font-latin); letter-spacing: .5px; }
.gps-gas:active { background: var(--list-p); }
.gps-gas:focus-visible { background: #1d4a63; }
.gps-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--sub-widget); }
.gps-compass { font-size: 26px; color: var(--list-s); display: inline-flex; transition: transform .3s; }
.gps-speedo { flex: 1; display: flex; align-items: center; justify-content: center; }
.gps-dial { position: relative; width: 228px; height: 228px; border-radius: 50%; padding: 0; border: 0; background: radial-gradient(circle, #1b2730, #070a0c); box-shadow: inset 0 0 0 4px #2a3a44; }
.gps-dial:active { box-shadow: inset 0 0 0 4px var(--list-p); }
.gps-dial:focus-visible { box-shadow: inset 0 0 0 4px var(--list-s); }
.gps-face { position: absolute; inset: 0; width: 100%; height: 100%; }
.gf-ring { fill: none; stroke: #2fbcfd; stroke-opacity: .3; stroke-width: 2; }
.gf-ticks line { stroke: #cfd8dc; stroke-width: 2; }
.gf-ticks text { fill: #9aa7ae; font-size: 13px; text-anchor: middle; font-family: var(--font-latin); }
.gps-needle { position: absolute; left: calc(50% - 2px); top: 18px; width: 4px; height: 96px; background: linear-gradient(#ff5a3c, #b3261e); transform-origin: 2px 96px; border-radius: 2px; }
.gps-spindle { position: absolute; left: calc(50% - 16px); top: calc(50% - 16px); width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle, #888, #222); }
.gps-digits { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 2px; font-family: var(--font-latin); }
.gd { width: 22px; height: 28px; font-size: 24px; line-height: 28px; text-align: center; color: #fff; background: #0a0f12; border-radius: 2px; }
.gd.off { color: #2c3a42; }
.gps-unit { position: absolute; left: 0; right: 0; bottom: 18px; font-size: 10px; color: var(--sub-widget); font-family: var(--font-latin); }
.gps-demo { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11px; width: 150px; }
.gps-demo-btns { display: flex; gap: 4px; }
.gps-slider { width: 100px; accent-color: #ffcc33; }
.gps-geo, .gps-feed { height: 26px; padding: 0 8px; border-radius: 4px; border: 1px solid #555; background: #1b2429; color: #fff; font-size: 11px; }
.gps-geo[aria-pressed="true"], .gps-feed[aria-pressed="true"] { background: #ffcc33; color: #000; }
.home-w.hw-gps { align-items: flex-start; }
.w-clock { width: 152px; height: 244px; display: flex; flex-direction: column; background: rgba(0,0,0,.35); border-radius: 8px; border: 1px solid rgba(255,255,255,.06); cursor: pointer; overflow: hidden; }
.w-clock:active { background: rgba(24,95,128,.6); }
.wc-weather { height: 94px; display: flex; align-items: center; gap: 4px; padding: 6px; position: relative; }
.wc-icon { width: 60px; height: 60px; }
.wx-svg { width: 100%; height: 100%; }
.wc-wright { flex: 1; text-align: right; }
.wc-temp { font-size: 23px; font-weight: 300; text-shadow: var(--shadow-temp); font-family: var(--font-latin); }
.wc-label { font-size: 10px; color: var(--sub-widget); }
.wc-demo { position: absolute; left: 4px; top: 2px; transform: scale(.85); transform-origin: left top; }
.wc-date { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-latin); }
.wc-wday { font-size: 12px; color: var(--sub-widget); letter-spacing: 1px; }
.wc-md { font-size: 15px; display: flex; gap: 6px; }
.wc-day sup { font-size: 9px; }
.wc-clock { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 3px; font-family: var(--font-latin); }
.wc-time { font-size: 33px; color: var(--clock); font-weight: 300; }
.wc-ampm { font-size: 11px; color: var(--clock); }
.w-album { position: relative; cursor: pointer; padding: 0; }
.home-w .w-album { width: 152px !important; height: 122px !important; }
.wa-frame { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; border: 4px solid #e9e4d8; box-shadow: 0 2px 6px rgba(0,0,0,.6); background: #222; }
.wa-img { position: absolute; inset: 0; transition: transform .6s ease; }
.wa-img img, .wa-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.wa-img.enter { transform: translateX(100%); }
.wa-img.on { transform: translateX(0); }
.wa-img.leave { transform: translateX(-100%); }
.w-dmb { height: 100px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--music-plate); border-radius: 8px; }
.wd-ico { font-size: 36px; color: var(--list-s); }
.wd-name { flex: 1; height: 50px; border: 0; background: transparent; color: #fff; font-size: 18px; font-weight: 700; }
.wd-btn { width: 50px; height: 40px; border: 1px solid #555; background: #1b2429; color: #fff; font-size: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }

/* ── 볼륨 팝업 ── */
.vol-popup { position: absolute; left: calc(50% - 192px); top: calc(50% - 128px + 16px); background: var(--popup-list); border-radius: 6px; box-shadow: var(--shadow-vol); border: 1px solid #3a454d; display: flex; flex-direction: column; z-index: 70; touch-action: none; }
.vol-head { height: 45px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 13px; font-weight: 700; }
.vol-title-ico { font-size: 20px; color: var(--list-s); display: inline-flex; }
.vol-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.vol-osd { display: flex; align-items: center; gap: 10px; }
.vol-btn { border: 1px solid #9aa4ab; border-radius: 3px; background: linear-gradient(#f4f6f7, #cfd5d9); color: #333; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 16px; }
.vol-btn:active { background: var(--list-p); color: #000; }
.vol-track { position: relative; flex: 1; height: 12px; border-radius: 6px; cursor: pointer; }
.vol-empty { position: absolute; inset: 0; border-radius: 6px; background: #0b0f12; border: 1px solid #3a454d; }
.vol-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(#7fd8ff, #2fbcfd); }
.vol-pointer { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle, #fff, #b6e8fe); box-shadow: 0 1px 3px rgba(0,0,0,.6); }
.vol-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.vol-mute { width: 40px; height: 32px; border-radius: 4px; border: 1px solid #555; background: #11181c; color: #fff; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.vol-mute[aria-pressed="true"] { color: #ff6b6b; }
.vol-hint { margin: 0; font-size: 11px; color: var(--sub-list); }

/* ── 퀵 패널 ── */
.quickpanel { position: absolute; left: 0; right: 0; top: var(--status-h); z-index: 55; background: rgba(12,16,19,.97); border-bottom: 2px solid var(--list-s); box-shadow: 0 6px 18px rgba(0,0,0,.6); display: flex; flex-direction: column; max-height: 448px; }
.qp-toggles { display: flex; gap: 6px; padding: 8px; }
.qp-toggle { flex: 1; height: 54px; border-radius: 6px; border: 1px solid #3a454d; background: #1b2429; color: #8c8c8c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; }
.qp-toggle .ico { font-size: 22px; }
.qp-toggle.sel { color: #fff; background: #185f80; border-color: var(--list-s); }
.qp-list { height: 272px; overflow-y: auto; }
.qp-clear { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 13px; color: var(--sub-list); }
.qp-clearbtn { height: 28px; padding: 0 12px; border-radius: 4px; border: 1px solid #555; background: #1b2429; color: #fff; }
.qp-sec-h { padding: 2px 12px; font-size: 11px; color: var(--list-s); background: #0b0f12; }
.qp-audio { display: flex; align-items: center; gap: 10px; height: 96px; padding: 0 10px; cursor: pointer; }
.qp-audio:hover { background: rgba(47,188,253,.12); }
.qp-art { width: 77px; height: 77px; flex: none; overflow: hidden; }
.qp-art img, .qp-art svg { width: 77px; height: 77px; object-fit: cover; }
.qp-texts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qp-t1 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-t2 { font-size: 12px; color: var(--sub-widget); }
.qp-btns { display: flex; gap: 6px; }
.qp-btn { width: 48px; height: 48px; border-radius: 6px; border: 1px solid #3a454d; background: #1b2429; color: #fff; font-size: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.qp-btn:active { background: var(--list-p); }
.qp-empty { color: var(--sub-list); font-size: 12px; padding: 8px 12px; margin: 0; }
.qp-notes { padding: 4px 12px; font-size: 12px; }
.qp-note { padding: 4px 0; border-bottom: 1px solid #222; }
.qp-demos { display: flex; gap: 6px; padding: 6px 12px; }
.qp-demo { height: 34px; padding: 0 12px; border-radius: 4px; border: 1px solid #555; background: #1b2429; color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.qp-handle { height: 30px; border: 0; background: #0b0f12; color: var(--sub-list); font-size: 12px; }

/* ── 내비 팝업 ── */
.navipop { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 50; pointer-events: none; }
.np-pop { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 360px; max-width: 640px; padding: 8px 14px; border-radius: 8px; background: rgba(15,20,24,.94); border: 1px solid #3a454d; box-shadow: var(--shadow-popup); font-size: 15px; }
.np-ico { font-size: 26px; display: inline-flex; color: var(--list-s); }
.np-safety .np-ico { color: #ffb020; }
.np-hipass .np-ico { color: #7be07b; }
.np-text { flex: 1; }

/* ── NIP · PIP · 지도 · MultiMode ── */
.scr-nip, .scr-map { position: absolute; inset: 0; }
.mock-map { position: absolute; left: 0; top: 0; bottom: 0; width: 400px; overflow: hidden; }
.scr-map .mock-map, .view-pip .mock-map, .dmb-pipmap, .vid-pipmap { width: 800px; }
.map-host { position: absolute; inset: 0; }
.map-svg { width: 100%; height: 100%; display: block; }
.map-tag { position: absolute; left: 8px; top: 8px; }
.map-title { position: absolute; left: 8px; top: 30px; font-size: 16px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.map-list { position: absolute; right: 16px; top: 16px; width: 300px; margin: 0; padding: 8px; list-style: none; background: rgba(0,0,0,.7); border-radius: 6px; font-size: 13px; }
.map-list li { padding: 8px; border-bottom: 1px solid #333; }
.map-req { position: absolute; left: 8px; bottom: 4px; margin: 0; font-size: 11px; color: var(--sub-list); background: rgba(0,0,0,.6); padding: 2px 6px; }
.nip-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 400px; background: #0e1417; display: flex; flex-direction: column; border-left: 1px solid #2c363d; touch-action: none; }
.view-pip .nip-panel { display: none; }
.nip-info { height: 72px; flex: none; display: flex; align-items: center; padding: 0 8px 0 14px; gap: 8px; }
.nip-texts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nip-sub { font-size: 9px; color: var(--sub-list); }
.nip-title { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nip-x { width: 30px; height: 30px; font-size: 20px; }
.nip-artrow { flex: none; display: flex; align-items: center; justify-content: center; }
.nip-art { width: 180px; height: 180px; overflow: hidden; }
.nip-art img, .nip-art svg { width: 180px; height: 180px; object-fit: cover; }
.nip-seekrow { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.nip-seekbox { width: 200px; display: flex; flex-direction: column; align-items: center; }
.nip-seek { width: 200px; accent-color: var(--list-s); }
.nip-time { font-size: 10px; color: var(--sub-list); }
.nip-shuffle, .nip-repeat { width: 52px; height: 45px; font-size: 24px; visibility: hidden; }
.view-nip_osd .nip-shuffle, .view-nip_osd .nip-repeat { visibility: visible; }
.nip-ctrl { flex: none; height: 72px; display: flex; border-top: 1px solid #2c363d; margin-top: auto; }
.nip-b, .nip-pp { width: 100px; height: 72px; font-size: 28px; }
.nip-listpane { position: absolute; inset: 72px 0 72px 0; background: #11181c; display: flex; flex-direction: column; z-index: 2; }
.nip-listhead { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; }
.nip-tabs { display: flex; height: 40px; }
.nip-list { flex: 1; overflow-y: auto; touch-action: pan-y; }
.nip-gh { padding: 4px 10px; font-size: 11px; color: var(--list-s); background: #0b0f12; }
.nip-li { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 40px; padding: 0 12px; border: 0; border-bottom: 1px solid #1b2429; background: var(--list-n); color: #fff; font-size: 13px; text-align: left; }
.nip-li.now { color: var(--list-s); }
.nip-li:active { background: var(--list-p); }
.nip-li[disabled] { opacity: .4; }
.pip {
  position: absolute; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: rgba(10,14,17,.95);
  border: 1px solid var(--list-s); border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.6); touch-action: none; cursor: move;
}
.pip-art { width: 44px; height: 44px; flex: none; overflow: hidden; }
.pip-art img, .pip-art svg { width: 44px; height: 44px; object-fit: cover; }
.pip-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pip-t1 { font-size: 11px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pip-t2 { font-size: 8px; color: var(--sub-widget); font-weight: 300; }
.pip-btn { width: 44px; height: 44px; flex: none; border: 0; border-radius: 4px; background: #1b2429; color: #fff; font-size: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pip-btn:active { background: var(--list-p); }
.scr-mm { position: absolute; inset: 0; padding: 10px 14px; overflow: auto; background: #0f1519; font-size: 12px; }
.mm-head { display: flex; gap: 8px; align-items: center; font-size: 15px; margin-bottom: 6px; }
.mm-cols { display: flex; gap: 14px; }
.mm-col { flex: 1; min-width: 0; }
.mm-col p { margin: 4px 0; }
.mm-ins { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.mm-in { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--sub-list); }
.mm-ins input { height: 26px; width: 150px; font-size: 11px; }
.mm-ins input[type=number] { width: 60px; }
.mm-btns { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.mm-note { color: var(--sub-list); }
.mm-mode, .mm-act { color: var(--list-s); font-weight: 700; }
.mm-preview { position: relative; width: 320px; height: 192px; border: 1px solid #444; background: #1c2a22; }
.mm-map { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6c8; }
.mm-media { position: absolute; display: none; align-items: center; justify-content: center; background: #185f80; color: #fff; }
.mm-preview[data-mode="PSP"] .mm-media { display: flex; right: 0; top: 0; bottom: 0; width: 50%; }
.mm-preview[data-mode="PIP"] .mm-media { display: flex; left: 70px; bottom: 6px; width: 180px; height: 29px; }
.mm-preview[data-mode="FULL"] .mm-media { display: flex; inset: 0; }
.mm-log { max-height: 180px; overflow: auto; padding-left: 18px; font-family: ui-monospace, monospace; font-size: 10px; }

/* ── DMB ── */
.scr-dmb { position: absolute; inset: 0; background: #000; }
.dmb-main { position: absolute; inset: 0; }
.dmb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; touch-action: none; }
.dmb-video { width: 640px; height: 480px; background: linear-gradient(135deg, hsl(var(--hue, 200) 60% 30%), hsl(calc(var(--hue, 200) + 60) 60% 15%)); position: relative; overflow: hidden; }
.dmb-video::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 40px, transparent 40px 80px); animation: dmbScan 6s linear infinite; }
@keyframes dmbScan { to { transform: translateX(80px); } }
.dmb-main[data-aspect="16:9"] .dmb-video { width: 800px; height: 450px; }
.dmb-video.hidden-by-safe { visibility: hidden; }
.dmb-video.small { width: 400px; height: 236px; }
.dmb-chname { position: absolute; left: 0; right: 0; top: 46%; text-align: center; font-size: 30px; font-weight: 700; text-shadow: 0 2px 6px #000; pointer-events: none; }
.dmb-demo { position: absolute; left: 10px; top: 10px; }
.dmb-safe, .dmb-recv { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); padding: 10px 16px; background: rgba(0,0,0,.8); border-radius: 6px; font-size: 15px; }
.dmb-weak { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 4px; color: #ffb020; font-size: 20px; }
.dmb-osd { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; }
.dmb-osd > * { pointer-events: auto; }
.dmb-osd-top { display: flex; align-items: center; gap: 8px; padding: 8px; background: linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,.4)); }
.dmb-band { flex: 1; display: flex; justify-content: center; gap: 24px; align-items: baseline; }
.bd-prev, .bd-next { color: #fff; font-weight: 400; font-size: 14px; }
.bd-cur { color: #2fbcfd; font-weight: 800; font-size: 20px; }
.dmb-sig { display: inline-flex; align-items: center; gap: 4px; font-size: 18px; }
.dmb-rec { color: #ff4d4d; font-weight: 700; font-family: var(--font-latin); }
.dmb-osd-bottom { display: flex; align-items: center; gap: 6px; padding: 8px; flex-wrap: wrap; background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.85)); }
.dmb-b { min-width: 48px; height: 44px; padding: 0 8px; border-radius: 6px; border: 1px solid #3a454d; background: rgba(27,36,41,.9); color: #fff; font-size: 20px; display: inline-flex; align-items: center; gap: 4px; justify-content: center; }
.dmb-b span { font-size: 12px; }
.dmb-b:active { background: var(--list-p); }
.dmb-b[disabled] { opacity: .35; }
.dmb-b.rec .ico { color: #ff4d4d; }
.dmb-safelab, .dmb-speedlab { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.dmb-safecb { width: 20px; height: 20px; }
.dmb-speed { width: 110px; accent-color: #ffcc33; }
.safe-body { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px; font-size: 22px; }
.safe-btn { width: 52px; height: 44px; border-radius: 4px; border: 1px solid #9aa4ab; background: linear-gradient(#f4f6f7, #cfd5d9); color: #333; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; }
.dmb-list, .dmb-recplay { position: absolute; inset: 0; background: rgba(8,11,13,.97); display: flex; flex-direction: column; z-index: 5; }
.dmb-list-head { display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.dmb-tabs { flex: 1; }
.dmb-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8px; padding: 12px; touch-action: none; }
.dmb-cell { border-radius: 6px; border: 1px solid #3a454d; background: var(--list-n); color: #fff; font-size: 15px; }
.dmb-cell.sel { background: #13405a; border-color: var(--list-s); }
.dmb-cell.picked { background: var(--list-s); color: #000; font-weight: 700; }
.dmb-cell:active { background: var(--list-p); }
.dmb-cell[disabled] { opacity: .3; }
.dmb-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px; }
.dmb-pageno { font-family: var(--font-latin); }
.dmb-search { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 0 8px; font-size: 13px; }
.dmb-recs { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.dmb-recrow { height: 70px; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-radius: 6px; border: 1px solid #3a454d; background: var(--list-n); color: #fff; font-size: 15px; text-align: left; }
.dmb-recrow:active { background: var(--list-p); }
.rr-ch { flex: 1; }
.rr-date, .rr-time { font-family: var(--font-latin); color: var(--sub-list); }
.rp-title { display: flex; align-items: center; gap: 10px; padding: 12px; font-size: 15px; }
.rp-title b { flex: 1; }
.rp-bar { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 16px; }
.rp-seek { flex: 1; accent-color: var(--list-s); }
.dmb-nip { position: absolute; inset: 0; }
.dmb-mini { position: relative; flex: none; touch-action: none; }
.dmb-mini .dmb-chname { font-size: 18px; top: 40%; }
.dmb-niplist { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.dmb-niplist .tabbar { height: 36px; }

/* ── 비디오 ── */
.scr-video { position: absolute; inset: 0; background: #000; }
.vid-list { position: absolute; inset: 0; background: #12181c; display: flex; flex-direction: column; }
.vid-head { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 56px; flex: none; background: #1b2429; font-size: 15px; }
.vid-head b { flex: 1; }
.vid-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 78px; padding: 0 12px; border: 0; border-bottom: 1px solid #10161a; background: var(--list-n); color: #fff; text-align: left; }
.vid-row:hover { background: var(--list-s); color: #000; }
.vid-row:active { background: var(--list-p); }
.vid-thumb { width: 96px; height: 60px; display: inline-flex; align-items: center; justify-content: center; background: #000; font-size: 32px; color: var(--list-s); }
.vid-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.vid-sub2 { font-size: 11px; color: var(--sub-list); }
.vid-lastmark { font-size: 11px; padding: 2px 6px; border-radius: 8px; background: var(--list-s); color: #000; }
.vid-play { position: absolute; inset: 0; }
.vid-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; touch-action: none; }
.vid-el { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vid-play[data-fit="full"] .vid-el { object-fit: fill; }
.vid-sub { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 22px; color: #fff; text-shadow: 0 0 4px #000, 0 2px 2px #000; white-space: pre-line; pointer-events: none; }
.vid-osd { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.vid-osd > * { pointer-events: auto; }
.vid-osd-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: linear-gradient(rgba(0,0,0,.85), transparent); }
.vid-name { font-size: 15px; }
.vid-osd-seek { display: flex; align-items: center; gap: 8px; padding: 0 12px; margin-top: auto; }
.vid-seek { flex: 1; accent-color: var(--list-s); }
.vid-time { font-family: var(--font-latin); font-size: 12px; }
.vid-osd-btns { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.vid-nip { position: absolute; inset: 0; }
.vid-mini { width: 400px; height: 225px; flex: none; background: #000; position: relative; touch-action: none; }
.vid-mini .vid-el { width: 400px; height: 225px; }
.vid-subarea { position: relative; flex: none; height: 60px; background: #0b0f12; }
.vid-subarea .vid-sub { bottom: auto; top: 8px; font-size: 14px; }
.vid-nip-osd { display: flex; justify-content: center; gap: 8px; height: 60px; align-items: center; }
.vid-nip-osd .dbtn { width: 60px; height: 50px; font-size: 26px; }
.vid-pip { position: absolute; width: 300px; height: 169px; background: #000; border: 1px solid var(--list-s); touch-action: none; cursor: move; }
.vid-pip .vid-el { width: 300px; height: 169px; }
.vid-pip .vid-sub { bottom: -30px; font-size: 13px; background: rgba(0,0,0,.7); }

/* ── 갤러리(흰 바탕) ── */
.scr-gallery { position: absolute; inset: 0; background: #fff; color: #222; display: flex; flex-direction: column; }
.gal-title { height: 50px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--gal-title); font-size: 16px; }
.gal-title b { flex: 1; }
.gal-count { font-size: 12px; color: #666; }
.gal-pick { height: 32px; padding: 0 10px; border-radius: 4px; border: 1px solid #c9b8b0; background: #fff; color: #333; font-size: 12px; }
.gal-folders { display: flex; gap: 6px; padding: 6px 10px; flex-wrap: wrap; flex: none; }
.gal-folder { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid #ccc; background: #f6f6f6; color: #333; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.gal-folder.sel { background: #2fbcfd; border-color: #2fbcfd; color: #000; }
.gal-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; gap: 6px; padding: 6px 10px; touch-action: pan-y; }
.gal-cell { position: relative; border: 3px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: #eee; }
.gal-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-cell.sel { border-color: #2fbcfd; }
.gal-check { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 4px; background: #fff; border: 2px solid #888; color: #000; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.gal-cell.sel .gal-check { background: #2fbcfd; border-color: #2fbcfd; }
.gal-bottom { height: 80px; flex: none; display: flex; gap: 10px; align-items: center; justify-content: center; background: var(--gal-bottom); }
.gal-btn { width: 200px; height: 56px; border-radius: 6px; border: 1px solid #555; background: #eee; color: #222; font-size: 18px; }
.gal-btn:active { background: #2fbcfd; }

/* ── 온도계 ── */
.scr-thermo { position: absolute; inset: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; background: radial-gradient(circle at 30% 50%, #2a2a2a, #0b0b0b); }
.th-dial { width: 420px; height: 420px; flex: none; }
.th-svg { width: 100%; height: 100%; }
.th-tick { stroke: #333; stroke-width: 1; }
.th-tick.big { stroke-width: 2; }
.th-lab { font-size: 9px; fill: #333; text-anchor: middle; font-family: var(--font-latin); }
.th-title { font-size: 15px; fill: #4a2a1a; font-family: var(--font-latin); letter-spacing: 1px; }
.th-side { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.th-side h2 { margin: 0; font-size: 20px; }
.th-note { font-size: 12px; color: var(--sub-list); margin: 0; }
.th-ctl { display: flex; align-items: center; gap: 8px; }
.th-slider { flex: 1; accent-color: #ffcc33; }
.th-read { font-size: 18px; font-family: var(--font-latin); }

/* ── 인포메이션 ── */
.scr-about { position: absolute; inset: 0; overflow-y: auto; padding: 10px 16px 20px; background: #0f1519; font-size: 13px; touch-action: pan-y; user-select: text; }
.ab-head { display: flex; align-items: center; gap: 8px; font-size: 22px; color: var(--list-s); }
.ab-head h2 { flex: 1; margin: 0; font-size: 18px; color: #fff; }
.ab-sec { margin: 10px 0; }
.ab-sec h3 { margin: 0 0 6px; font-size: 14px; color: var(--list-s); }
.ab-sec p { margin: 4px 0; line-height: 1.5; }
.ab-small { font-size: 12px; color: var(--sub-list); }
.ab-notes { margin: 0; padding-left: 0; list-style: none; }
.ab-notes li { padding: 5px 0; border-bottom: 1px solid #1f282d; font-size: 12px; }
.ab-sum { color: var(--sub-list); }
.ab-filter { width: 100%; margin: 4px 0 8px; }
.ab-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ab-table th, .ab-table td { border-bottom: 1px solid #1f282d; padding: 4px 6px; text-align: left; vertical-align: top; }
.ab-table th { position: sticky; top: 0; background: #1b2429; }
.ab-id { font-family: ui-monospace, monospace; white-space: nowrap; }
.ab-mark { display: inline-block; padding: 0 6px; border-radius: 8px; background: #185f80; }
.ab-mark.mk-모의 { background: #ffcc33; color: #000; }
.ab-mark.mk-없음 { background: #555; }

@media (prefers-reduced-motion: reduce) {
  .dmb-video::after { animation: none; }
  .wa-img, .action-area, .ed-footer, .pl-text-inner { transition: none; }
}

.home-w > .widget:not(.w80):not(.w-album) { width: 100%; }
.home-w > .w-clock { height: 100%; }

.cfg-banner { flex-basis: 100%; margin: 4px 0 0; padding: 4px 8px; border-radius: 4px; background: #fff4d6; color: #6b4e00; font-size: 12px; }

/* 자체 호스팅 Leaflet 지도 */
.map-host .leaf { position: absolute; inset: 0; background: #1c2a22; }
.map-host.has-leaflet .map-svg { visibility: hidden; }
.mock-map .map-tag, .mock-map .map-title { z-index: 500; }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 10px; }
.map-list { max-height: 400px; overflow-y: auto; z-index: 600; }
.fuel-row small { color: var(--sub-list); }
.dmb-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.dmb-blk { font-size: 10px; color: var(--sub-list); font-family: var(--font-latin); }
