.sv-device-list .sv-device-bulk .ui-btn,
.sv-device-list .sv-device-actions .ui-btn,
.sv-device-list .sv-device-panel .ui-btn {
  box-sizing: border-box;
  min-height: 44px;
}

.sv-device-list .sv-device-menu > summary {
  width: 44px;
  height: 44px;
}

.sv-device-list .sv-device-bulk .ui-btn {
  align-self: center;
  white-space: normal;
}

.sv-device-list .sv-device-actions .ui-btn {
  width: 100%;
  text-align: left;
}

.sv-device-list .sv-device-side,
.sv-device-list .sv-device-edit-grid {
  align-items: start;
}

.sv-device-list .sv-device-verdict {
  min-height: 40px;
}

.sv-device-list .sv-device-edit-grid input {
  min-height: 44px;
}

.sv-device-review-modal .kbg-confirm-shell {
  max-width: min(560px, calc(100vw - 32px)) !important;
  text-align: left !important;
}

.sv-device-review-modal .kbg-confirm-body {
  width: 100%;
}

.sv-device-review-intro {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.sv-device-review-intro strong {
  font-size: 16px;
}

.sv-device-review-intro span,
.sv-device-review-note {
  color: var(--text3);
  font-size: 12px;
  line-height: 1.55;
}

.sv-device-review-list {
  display: grid;
  gap: 7px;
}

.sv-device-review-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface2);
  cursor: pointer;
}

.sv-device-review-row input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--sv-blue);
  cursor: pointer;
}

.sv-device-review-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sv-device-review-row strong,
.sv-device-review-row small {
  overflow-wrap: anywhere;
}

.sv-device-review-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.sv-device-review-row small {
  color: var(--text3);
  font-size: 11px;
  line-height: 1.5;
}

.sv-device-review-note {
  margin: 12px 0 0;
}

.sv-device-review-modal #confirmOk:disabled {
  opacity: .5;
  cursor: not-allowed !important;
}

@media (max-width: 470px) {
  .sv-device-list .sv-device-bulk .ui-btn {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }
}

/* 데이터 관리의 독립 기기 현황 화면. 설정 모달의 기기 목록에는 적용하지 않는다. */
.dm-root .dm-device-page {
  --sv-panel: var(--ui-surface);
  --sv-panel-muted: var(--ui-surface-subtle);
  --sv-hover: var(--ui-surface-hover);
  --sv-border: var(--ui-border);
  --sv-border-strong: var(--dm-line-strong);
  --sv-text: var(--ui-text);
  --sv-muted: var(--ui-text-secondary);
  --sv-faint: var(--ui-text-tertiary);
  --sv-blue: var(--ui-primary);
  --sv-blue-soft: var(--ui-primary-soft);
  --sv-green: var(--ui-success);
  --sv-amber: var(--ui-warning);
  --sv-red: var(--ui-danger);
  --add-active-text: var(--ui-primary);
  grid-column: 1 / -1;
  container-type: inline-size;
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}
.dm-device-page .sv-device-section-head {
  align-items: end;
  padding: 6px 0 20px;
}
.dm-device-kicker {
  margin: 0 0 8px;
  color: var(--sv-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.dm-device-page .sv-device-section-title {
  font-size: var(--ui-font-title);
  line-height: 1.25;
}
.dm-device-page .sv-device-section-copy {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
}
.dm-device-page .sv-device-section-head > .ui-btn {
  flex: 0 0 auto;
  min-height: 44px;
}
.dm-device-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.dm-device-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--sv-border);
  border-radius: 14px;
  background: var(--sv-panel);
}
.dm-device-stat > span {
  color: var(--sv-muted);
  font-size: 12px;
  font-weight: 700;
}
.dm-device-stat > strong {
  color: var(--sv-text);
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.dm-device-stat > small {
  color: var(--sv-faint);
  font-size: 11px;
  line-height: 1.4;
}
.dm-device-notice {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--sv-border);
  border-radius: 12px;
  background: var(--sv-blue-soft);
  color: var(--sv-text);
  font-size: 12px;
  line-height: 1.55;
}
.dm-device-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 18px;
}
.dm-device-actions .ui-btn { min-height: 44px; }
.dm-device-actions span { color: var(--sv-muted); font-size: 11px; line-height: 1.5; }
.dm-device-records {
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--sv-border);
  border-radius: 14px;
  background: var(--sv-panel);
}
.dm-device-page .sv-device-tabs { padding: 0 20px; }
.dm-device-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sv-border);
}
.dm-device-toolbar > div {
  display: flex;
  align-items: baseline;
  flex: 1 1 145px;
  gap: 8px;
  min-width: 0;
  color: var(--sv-text);
  font-size: 13px;
}
.dm-device-toolbar > div span { color: var(--sv-muted); font-size: 11px; }
.dm-device-toolbar label { min-width: 0; }
.dm-device-toolbar input,
.dm-device-toolbar select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--sv-border-strong);
  border-radius: 9px;
  background: var(--sv-panel);
  color: var(--sv-text);
  font: inherit;
  font-size: 12px;
}
.dm-device-toolbar label:has(input) { flex: 1 1 185px; }
.dm-device-toolbar label:has(select) { flex: 0 1 145px; }
.dm-device-page .sv-device-row[hidden] { display: none; }
.dm-device-empty-filter {
  margin: 0;
  padding: 24px 20px;
  color: var(--sv-muted);
  font-size: 12px;
  text-align: center;
}
.dm-device-empty-filter[hidden] { display: none; }
.dm-device-page .sv-device-meta,
.dm-device-page .sv-device-client,
.dm-device-page .sv-device-verdict { font-size: 11px; }

@container (max-width: 680px) {
  .dm-device-page .sv-device-main { grid-template-columns: auto minmax(0, 1fr); }
  .dm-device-page .sv-device-side {
    grid-column: 2;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
  }
  .dm-device-page .sv-device-menu { margin-left: auto; }
}
@container (max-width: 520px) {
  .dm-device-summary { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dm-device-stat { padding: 12px 14px; gap: 3px; }
  .dm-device-stat > strong { font-size: 18px; }
  .dm-device-page .sv-device-section-head { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .dm-device-toolbar > div { flex-basis: 100%; }
  .dm-device-toolbar label:has(input) { flex-basis: 100%; }
  .dm-device-toolbar label:has(select) { flex: 1 1 100%; }
  .dm-device-page .sv-device-row,
  .dm-device-page .sv-device-bulk,
  .dm-device-toolbar { padding-left: 14px; padding-right: 14px; }
  .dm-device-page .sv-device-tabs { padding: 0 14px; }
}
