#home-cameras > .section-intro { justify-content: flex-start; align-items: end; flex-wrap: wrap; }
#home-cameras > .section-intro label { margin: 0; }
.home-camera-scan-toolbar { align-items: end; margin-bottom: 1rem; }
.home-camera-scan-toolbar label { margin: 0; min-width: 0; }
#home-camera-vendor-hint { grid-column: 1 / -1; }
#home-camera-scan-results { display: grid; gap: .75rem; max-height: 520px; overflow: auto; }
.home-camera-discovered { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .75rem; border: 1px solid var(--line, #40506b); border-radius: .65rem; }
.home-camera-discovered > div { min-width: 0; overflow-wrap: anywhere; }
.home-camera-discovered .hint { margin: .3rem 0; }
.home-camera-discovered button { flex-shrink: 0; }
@media(max-width: 480px) { .home-camera-discovered { align-items: stretch; flex-direction: column; } }
#home-camera-group-dialog {
 box-sizing: border-box;
 width: min(420px, calc(100% - 1.5rem));
 padding: 1rem;
 border-radius: 0.85rem;
}
#home-camera-group-title { margin-top: 0; overflow-wrap: anywhere; }
#home-camera-archive {
 box-sizing: border-box;
 width: min(960px, calc(100% - 1.5rem));
 max-height: 92dvh;
 overflow: auto;
 padding: 1rem;
 border-radius: 0.85rem;
}
.home-camera-archive-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
 gap: 0.75rem;
 margin-block: 0.75rem;
}
.home-camera-archive-card { min-width: 0; overflow-wrap: anywhere; }
.home-camera-archive-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #111922; }
.home-camera-group { margin-block: 1.25rem; }
.home-camera-group h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
.home-camera-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(min(100%, 463px), 463px));
 gap: 1rem;
 margin-top: 0.65rem;
}
.home-camera-card { min-width: 0; }
.home-camera-thumbnail {
 position: relative;
 display: grid;
 place-items: center;
 width: 100%;
 max-width: 427px;
 aspect-ratio: 427 / 290;
 padding: 0;
 border: 0;
 overflow: hidden;
 background: #111922;
 color: #fff;
 border-radius: 0.5rem;
}
.home-camera-thumbnail:focus-visible { outline: 3px solid #4a8ae8; outline-offset: 3px; }
.home-camera-thumbnail:disabled { opacity: 1; cursor: default; }
.home-camera-thumbnail img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: contain;
}
.home-camera-expand {
 position: absolute;
 inset: auto 0.5rem 0.5rem auto;
 background: #111922e8;
 padding: 0.35rem 0.6rem;
 border-radius: 0.35rem;
}
#home-camera-viewer {
 box-sizing: border-box;
 width: min(1100px, calc(100% - 1.5rem));
 max-height: 94dvh;
 overflow: auto;
 padding: clamp(0.65rem, 2vw, 1.25rem);
 border: 0;
 border-radius: 0.85rem;
 background: #fff;
 color: #182b36;
}
#home-camera-viewer::backdrop { background: #101923d9; }
.home-camera-viewer-head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 0.5rem;
}
.home-camera-viewer-head h2 { margin: 0; overflow-wrap: anywhere; }
.home-camera-viewer-head p { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.home-camera-viewer-head form { margin: 0; }
#home-camera-viewer-image {
 display: block;
 width: 100%;
 height: min(68dvh, 720px);
 margin-block: 0.75rem;
 object-fit: contain;
 background: #111922;
 border-radius: 0.5rem;
}
#home-camera-form {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
 gap: 0.75rem;
 margin-top: 1rem;
}
#home-camera-form .hub-buttons { grid-column: 1 / -1; }
