/* Preserve the visual system; the dialog remains the only scroll container. */
#privateDevicesDialog.v10-devices-panel { box-sizing: border-box; width: min(34rem, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-padding-block: 12px; }
.v10-devices-panel .devices-current { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.v10-devices-panel .devices-installation-name { min-width: 0; overflow-wrap: anywhere; }
.v10-devices-panel .devices-current-badge { font-size: .8rem; padding: 4px 8px; border: 1px solid currentColor; border-radius: 999px; }
.v10-devices-panel details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.v10-devices-panel .devices-id-list, .v10-devices-panel .devices-admission { display: grid; grid-template-columns: 1fr; gap: 4px; }
.v10-devices-panel dt { font-size: .85rem; opacity: .85; }
.v10-devices-panel dd { margin: 0 0 8px; overflow-wrap: anywhere; }
.v10-devices-panel .devices-public-code { border-block: 1px solid var(--border, rgba(127,127,127,.35)); padding-block: 12px; margin-block: 12px; }
.v10-devices-panel :is(input,textarea,select,button) { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; }
.v10-devices-panel textarea { resize: vertical; overflow-wrap: anywhere; white-space: pre-wrap; }
.v10-devices-panel #privateDeviceOwnCode { font-family: monospace; height: auto; min-height: 8rem; }
.v10-devices-panel button { white-space: normal; padding-block: 10px; }
.v10-devices-panel .devices-control-reason, .v10-devices-panel .devices-code-help { font-size: .85rem; line-height: 1.45; margin-block: 6px 12px; overflow-wrap: anywhere; }
.v10-devices-panel :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.v10-devices-panel [hidden] { display: none !important; }
@media (max-height: 450px) { #privateDevicesDialog.v10-devices-panel { max-height: calc(100dvh - 12px); margin-block: 6px; } }
/* V11 retains TARVI surfaces and accent roles; disclosure owns technical density. */
.v11-devices-panel .devices-current { margin-block: 8px; }
.v11-devices-panel #privateDeviceReadiness { margin-block: 8px; font-weight: 600; }
.v11-devices-panel .devices-identifiers, .v11-devices-panel .devices-management { border-top: 1px solid var(--border, rgba(127,127,127,.35)); padding-block: 4px; }
.v11-devices-panel .devices-identifiers > :is(.private-installation-label,.private-ux-identity) { display: none; }
.v11-devices-panel .devices-admission { margin-block: 12px; }
.v11-devices-panel #privateDeviceOwnCode { min-height: 6rem; }
.v11-devices-panel .devices-management > :is(p,label,textarea,input,select,button) { overflow-wrap: anywhere; }

#sessionDevicesDialog.sessions-panel { width:min(640px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; box-sizing:border-box; }
.sessions-panel .device-card { display:grid; gap:10px; border:1px solid var(--line); border-radius:12px; padding:12px; margin:10px 0; min-width:0; }
.sessions-panel p,.sessions-panel strong { overflow-wrap:anywhere; white-space:normal; }
.sessions-panel button { min-height:44px; white-space:normal; padding:10px; }
.sessions-panel :focus-visible { outline:2px solid var(--teal);outline-offset:2px; }
.sessions-panel [role=status] { min-height:24px; }

.sessions-panel .device-card p { font-size:.875rem; line-height:1.45; margin:.35rem 0; }
