/* devices screen styles (team round, 23.11.2026). Loaded after screens.css; prefix screen-only classes.
   .device-card and .bp-card base rules live in screens.css (W3-A folded the W2-D overrides there). */

/* List */
.dev-toolbar .dev-chips { display: flex; align-items: center; gap: var(--sp-2); flex: none; white-space: nowrap; }
.dev-toolbar .chip { height: 38px; padding: 0 14px; }
.device-card .stats .v.dev-agent { font-family: var(--font-ui); font-size: var(--fs-sm); overflow-wrap: break-word; }
.device-card .dev-status { height: 44px; min-height: 44px; padding: 0 10px; white-space: normal; align-items: center; overflow: visible; }
.device-card .dev-status > span { overflow: visible; text-overflow: clip; line-height: 1.3; }
.dev-reason { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: var(--fs-xs); font-weight: 400; color: #FCA5A5; white-space: normal; overflow-wrap: break-word; }
.dev-reason svg.ic { width: 13px; height: 13px; }
.dev-tbl { table-layout: fixed; width: 100%; }
.dev-tbl td { vertical-align: middle; overflow-wrap: break-word; }
.dev-tbl td.num, .dev-num, .dev-files td.num { font-variant-numeric: tabular-nums; }

/* Shared helpers */
.dev-min0 { min-width: 0; }
.dev-nowrap { white-space: nowrap; flex: none; }
.dev-note { flex-wrap: wrap; align-items: center; }
.dev-kv { margin: 0; grid-template-columns: minmax(140px, 190px) minmax(0, 1fr); }
.dev-kv dd { overflow-wrap: break-word; }
.dev-plain { border: none; border-radius: 0; }
.dev-flathead { padding: var(--sp-4) var(--sp-4) 0; }
.dev-locked { display: flex; align-items: center; gap: var(--sp-2); min-height: 38px; padding: 0 12px; border: 1px dashed var(--border-default); border-radius: var(--r-md); color: var(--text-muted); }
.dev-locked svg.ic { width: 14px; height: 14px; flex: none; }
.dev-spin { width: 12px; height: 12px; }

/* Wizard */
.dev-lis-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
@media (min-width: 1440px) { .dev-lis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dev-lis-grid .radio-card .t, .dev-lis-grid .radio-card .d { overflow-wrap: break-word; }
.dev-review { display: flex; flex-direction: column; gap: var(--sp-4); }
.dev-review-sec { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border-subtle); }
.dev-review-sec h4 { margin: 0 0 var(--sp-2); }
.dev-pick { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--border-subtle); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.dev-pick:hover { background: var(--bg-hover); }

/* Detail */
.dev-fault { align-items: center; margin-bottom: var(--sp-4); }
.dev-alertband { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-2) 14px; margin-bottom: var(--sp-4); border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--bg-surface); font-size: var(--fs-sm); }
.dev-alertline { display: inline-flex; align-items: center; gap: 6px; }
.dev-alertline svg.ic { width: 14px; height: 14px; flex: none; }
.dev-alertline.danger svg.ic { color: var(--danger); }
.dev-alertline.warning svg.ic { color: var(--warning); }
.dev-alertline .t { font-weight: 600; }
.dev-alertband > .btn { margin-left: auto; }
.dev-chain { align-items: stretch; }
.dev-chain .node { justify-content: flex-start; flex: 0 1 160px; }
.dev-chain .node .nm, .dev-chain .node .d { text-align: center; overflow-wrap: break-word; }
.dev-chain .link-wrap { align-self: center; }
.dev-ov-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: var(--sp-6); align-items: start; }
.dev-num { font-weight: 700; }
.dev-files { table-layout: fixed; width: 100%; }
.dev-files td.dev-file { overflow-wrap: break-word; }
.dev-hist { align-items: flex-start; }
.probe-step.warn .ic-s { background: var(--warning-soft); color: var(--warning); }
.dev-lis-select { max-width: 320px; }
/* Fixed card rows (every card the same row positions): header two lines, status line two lines. */
.dev-ov-row .dev-kv { grid-template-columns: 130px minmax(0, 1fr); }
/* Fix round (PM 23.11): config labels on one line, card subtitle wraps only at the dot, status text centred in its box, table cells centred. */
.dev-kv.dev-kv-conf { grid-template-columns: max-content minmax(0, 1fr); }
.dev-kv.dev-kv-conf dt { white-space: nowrap; }
/* FIX-D (wave 3): status pill on the name line so the type · room subtitle gets the full text width and stays on one line. */
.device-card .dev-hdtop { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; }
.device-card .dev-hdtop .nm { min-width: 0; overflow-wrap: break-word; }
.device-card .dev-hdtop .pill { flex: none; }

.dev-hid { gap: 8px; }
.radio-card.dev-dis { opacity: .55; cursor: default; }
.section-title.dev-st0 { margin: 0; }
