/* /Components/Cameras/AddCameraDialog.razor.rz.scp.css */
/* Holds the progress bar while the camera is being probed and the failure message afterwards,
   at a height that fits either. The dialog's height then never changes while it is open, which
   is what keeps a scrollbar from appearing, narrowing the content, and vanishing again. */
.watchtower-add-camera__status[b-c1osrdgvv3] {
    min-height: 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* /Components/Cameras/CameraRail.razor.rz.scp.css */
/* Wide screens: a column of tiles beside the picture, each the full width of the column. A tile
   that sees something is not resized, only framed. */
.watchtower-rail[b-agdyrihrw9] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.watchtower-rail__tile[b-agdyrihrw9] {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.watchtower-rail__tile:focus-visible[b-agdyrihrw9] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* The same colours as the wall's tiles: green for motion, red for a confirmed object. */
.watchtower-rail__tile--motion[b-agdyrihrw9] {
    outline: 3px solid #4caf50;
    outline-offset: -3px;
}

.watchtower-rail__tile--object[b-agdyrihrw9] {
    outline: 3px solid #f44336;
    outline-offset: -3px;
}

.watchtower-rail__picture[b-agdyrihrw9] {
    display: block;
    aspect-ratio: 16 / 9;
    background: #111;
}

.watchtower-rail__picture img[b-agdyrihrw9],
.watchtower-rail__picture video[b-agdyrihrw9] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Watching a recording, a camera with nothing at that moment shows its nearest picture, dimmed. */
.watchtower-rail__tile--empty[b-agdyrihrw9] {
    opacity: 0.55;
}

.watchtower-rail__caption[b-agdyrihrw9] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.375rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.watchtower-rail__name[b-agdyrihrw9] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The time of the picture, bottom right, while watching a recording. */
.watchtower-rail__time[b-agdyrihrw9] {
    flex: none;
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

/* Narrow screens: a strip under the picture, scrolled sideways. */
@media (max-width: 959.98px) {
    .watchtower-rail[b-agdyrihrw9] {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .watchtower-rail__tile[b-agdyrihrw9] {
        flex: none;
        width: 9rem;
    }
}
/* /Components/Cameras/CameraStreamView.razor.rz.scp.css */
.watchtower-camera-tile[b-xm6uz5oo17] {
    display: flex;
    flex-direction: column;
    /* Clips the video to the surrounding paper's rounded corners. */
    overflow: hidden;
    border-radius: inherit;
}

.watchtower-camera-tile__frame[b-xm6uz5oo17] {
    position: relative;
    /* Reserves the tile's height before any video arrives, so a wall of cameras does not
       reflow as each one connects. */
    aspect-ratio: 16 / 9;
    background: #000;
    /* The picture is the enlarge control. */
    cursor: pointer;
    /* A zoomed picture is clipped to the frame, not spilled over the page. */
    overflow: hidden;
    /* Vertical swipes still scroll the page; a pinch is left to the zoom script. Once zoomed, a
       one-finger drag pans instead. Harmless on a frame that is not zoomable. */
    touch-action: pan-y;
}

.watchtower-camera-tile__frame[data-zoomed][b-xm6uz5oo17] {
    touch-action: none;
    cursor: grab;
}

/* The layer that zooms: the picture and the motion boxes on it. The frame carries the state as
   custom properties (set by CameraStreamView.razor.js); with none set this is the identity. The
   transform origin is the top-left corner, which is what the script's arithmetic assumes. */
.watchtower-camera-tile__zoom[b-xm6uz5oo17] {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
    transform: translate(var(--wt-pan-x, 0), var(--wt-pan-y, 0)) scale(var(--wt-zoom, 1));
}

/* Shown only while zoomed; its label is the zoom factor. Above a recording's layer (z-index 2). */
.watchtower-camera-tile__zoom-reset[b-xm6uz5oo17] {
    display: none;
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    z-index: 3;
    padding: 0.125rem 0.5rem;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.watchtower-camera-tile__zoom-reset[b-xm6uz5oo17]::after {
    content: " ✕";
}

.watchtower-camera-tile__frame[data-zoomed] .watchtower-camera-tile__zoom-reset[b-xm6uz5oo17] {
    display: block;
}

.watchtower-camera-tile__video[b-xm6uz5oo17] {
    width: 100%;
    height: 100%;
    display: block;
    /* Cameras are not all 16:9 -- contain letterboxes the odd one out rather than cropping
       away the part of the scene somebody put the camera there to see. */
    object-fit: contain;
    background: #000;
}

.watchtower-camera-tile__overlay[b-xm6uz5oo17] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
}

.watchtower-camera-tile__caption[b-xm6uz5oo17] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem 0.25rem 0.75rem;
    min-width: 0;
}

.watchtower-camera-tile__caption > :first-child[b-xm6uz5oo17] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* No name to sit opposite -- see CameraStreamView.CaptionClass. The record and audio controls
   line up on the left where the name would have been, instead of being pushed to the far edge. */
.watchtower-camera-tile__caption--controls-only[b-xm6uz5oo17] {
    justify-content: flex-start;
}

/* Motion boxes are drawn by MotionBoxOverlay.razor now -- see its own .razor.css for the
   positioning and green stroke, factored out so the History thumbnail draws them identically. */

/* The glance-worthy "something is moving" signal -- see CameraStreamView.HighlightMotion.
   Drawn as a border on a pseudo-element laid over the frame, not as an outline on the frame
   itself: an outline is painted before the frame's positioned children, so the zoom layer (and
   the video in it) covered it. This sits above them, transparent to clicks, and adds nothing to
   the frame's box size, so a tile does not reflow the instant motion starts. Same green as
   MotionBoxOverlay's stroke, for one consistent "motion" colour across the whole application. */
.watchtower-camera-tile__frame[b-xm6uz5oo17]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 3px solid transparent;
    pointer-events: none;
}

.watchtower-camera-tile--motion .watchtower-camera-tile__frame[b-xm6uz5oo17]::after {
    border-color: #4caf50;
}

/* A confirmed object, not just motion -- see CameraStreamView.HighlightMotion. Declared after
   the green rule above so it wins when a tile has both classes at once: "here's specifically
   what it is" supersedes the plainer "something is moving" signal. Same red as
   MotionBoxOverlay.razor.css's object boxes, for one consistent "found something" colour. */
.watchtower-camera-tile--object .watchtower-camera-tile__frame[b-xm6uz5oo17]::after {
    border-color: #f44336;
}

.watchtower-camera-tile__motion-toggle[b-xm6uz5oo17] {
    padding: 0 0.25rem 0.25rem 0.5rem;
}

.watchtower-camera-tile__record-error[b-xm6uz5oo17] {
    padding: 0 0.75rem 0.25rem;
}

.watchtower-camera-tile__audio[b-xm6uz5oo17] {
    gap: 0.5rem;
}

.watchtower-camera-tile__volume[b-xm6uz5oo17] {
    width: 5rem;
}

/* Enlarged. The page gives the tile the full width of the grid; this caps how tall the picture
   may become, so that the caption, the motion checkbox and the filter panel underneath it stay
   on screen with it rather than being pushed off the bottom. The video is object-fit: contain,
   so a capped frame pillarboxes rather than crops, and the motion overlay is fitted the same
   way -- the boxes stay on the picture at either size. */
.watchtower-camera-tile--expanded .watchtower-camera-tile__frame[b-xm6uz5oo17] {
    /* Tall enough to use a wide window when the menu is hidden, short enough that the page's own
       heading and the caption below the picture still fit on a screen with it. */
    max-height: max(20rem, calc(100vh - 13rem));
    cursor: pointer;
}

.watchtower-camera-tile__actions[b-xm6uz5oo17] {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* ::deep, because the filter panel is a child component and none of its elements carry this
   file's scope attribute. Full-window sliders would be absurdly long and no easier to aim. */
.watchtower-camera-tile--expanded[b-xm6uz5oo17]  .watchtower-motion-filters {
    max-width: 44rem;
}
/* /Components/Cameras/CameraWall.razor.rz.scp.css */
/* The slot wraps the tile so the grip has something to sit over and the whole thing is one
   drag surface. */
.watchtower-camera-slot[b-w8tsr593uy] {
    position: relative;
    border-radius: var(--mud-default-borderradius);
    transition: box-shadow 120ms ease, transform 120ms ease;
}

/* Where a dragged tile would land if dropped now. */
.watchtower-camera-slot--drop[b-w8tsr593uy] {
    box-shadow: 0 0 0 2px var(--mud-palette-primary);
}

/* The grip: a real button so it takes focus and answers the arrow keys, tucked into the top
   corner over the picture. Faint until the slot is hovered or the grip itself is focused, so a
   wall at rest is still just pictures. */
.watchtower-camera-slot__handle[b-w8tsr593uy] {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: var(--mud-default-borderradius);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: grab;
    opacity: 0;
    transition: opacity 120ms ease;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.watchtower-camera-slot:hover .watchtower-camera-slot__handle[b-w8tsr593uy],
.watchtower-camera-slot__handle:focus-visible[b-w8tsr593uy] {
    opacity: 1;
}

.watchtower-camera-slot__handle:active[b-w8tsr593uy] {
    cursor: grabbing;
}

.watchtower-camera-slot__handle:focus-visible[b-w8tsr593uy] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 1px;
}
/* /Components/Cameras/ClipPlayback.razor.rz.scp.css */
/* Covers the live picture exactly: the frame it sits in is position: relative. */
.watchtower-clip-playback[b-tvktkiw8j7] {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
    cursor: default;
    overflow: hidden;
}

/* Zoomed along with the live picture: the state is custom properties on the frame this sits in,
   written by CameraStreamView.razor.js, and is the identity when there are none. Note the
   browser's own control bar belongs to the <video> and so moves with it -- zoom back out (the
   button at the bottom left, or a double-click) to reach it. */
.watchtower-clip-playback__media[b-tvktkiw8j7] {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
    transform: translate(var(--wt-pan-x, 0), var(--wt-pan-y, 0)) scale(var(--wt-zoom, 1));
}

.watchtower-clip-playback__video[b-tvktkiw8j7],
.watchtower-clip-playback__poster[b-tvktkiw8j7],
.watchtower-clip-playback__held[b-tvktkiw8j7] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.watchtower-clip-playback__poster[b-tvktkiw8j7] {
    background: #000;
}

/* No background of its own: a new clip's <video> has nothing to draw until its first frame is
   decoded, and what shows through until then is the last frame of the clip before it, in the
   canvas underneath, rather than the black of this tile. */
.watchtower-clip-playback__video[b-tvktkiw8j7] {
    background: transparent;
}

/* Speed, frame step, download and delete. Top right, on a dark scrim, clear of the browser's own
   controls along the bottom. Blazor's scoped CSS reaches the MudBlazor components' own root
   elements, so no ::deep is needed. */
.watchtower-clip-playback__tools[b-tvktkiw8j7] {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
    padding: 0 0.25rem;
    border-radius: 4px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
}

/* ::deep: the buttons are MudBlazor components, whose elements do not carry this file's scope
   attribute -- a plain rule here matches nothing. MudBlazor gives its buttons a minimum width and
   padding of their own, which the overrides below take back. */
.watchtower-clip-playback__tools[b-tvktkiw8j7]  .watchtower-clip-playback__speed {
    min-width: 0;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    line-height: 1.5rem;
    color: inherit;
}

/* On the wall: the tile underneath stays clickable. */
.watchtower-clip-playback--compact[b-tvktkiw8j7] {
    cursor: pointer;
}

/* /Components/Cameras/DetectionThresholdPanel.razor.rz.scp.css */
.watchtower-detection-threshold[b-zx5898ufgz] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.25rem 0.75rem 0.75rem;
}

.watchtower-detection-threshold__note[b-zx5898ufgz] {
    display: block;
    opacity: 0.7;
    padding-bottom: 0.25rem;
}

.watchtower-detection-threshold__row[b-zx5898ufgz] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.watchtower-detection-threshold__label[b-zx5898ufgz] {
    flex: 0 0 auto;
    min-width: 3.5rem;
    text-transform: capitalize;
}

/* ::deep, because the slider is a MudBlazor component: the scope attribute this file's rules
   are rewritten with is put on elements this component renders, and none of MudSlider's are. */
.watchtower-detection-threshold__row[b-zx5898ufgz]  .mud-slider {
    flex: 1 1 auto;
    min-width: 4rem;
}

.watchtower-detection-threshold__value[b-zx5898ufgz] {
    flex: 0 0 auto;
    min-width: 3.5rem;
    text-align: right;
    /* Digits of the same width, so the slider's label does not jitter sideways as it is dragged. */
    font-variant-numeric: tabular-nums;
}
/* /Components/Cameras/FilterSection.razor.rz.scp.css */
.watchtower-filter-section__header[b-d9ut6ffyeh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    /* Looks like a section heading, not a button, until it is pointed at. */
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.watchtower-filter-section__title[b-d9ut6ffyeh] {
    font-weight: 500;
}

.watchtower-filter-section__content[b-d9ut6ffyeh] {
    padding-bottom: 0.25rem;
}
/* /Components/Cameras/HistoryTimeline.razor.rz.scp.css */
.watchtower-history[b-m8cdvlcg8w] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-top: 0.5rem;
}

/* Two columns: the strip with the month under it, and the buttons beside them.
   The strip's column is as wide as the page leaves it, so the month under it is exactly as wide.
   Every part is placed explicitly: the month is often display: none, and a hidden item takes no
   cell, which would otherwise slide the filter into the strip's column. */
.watchtower-history__grid[b-m8cdvlcg8w] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.25rem;
    align-items: start;
}

.watchtower-history__grid > .watchtower-history__strip[b-m8cdvlcg8w] {
    grid-area: 1 / 1;
}

.watchtower-history__grid > .watchtower-history__controls[b-m8cdvlcg8w] {
    grid-area: 1 / 2;
}

.watchtower-history__grid > .watchtower-days[b-m8cdvlcg8w] {
    grid-area: 2 / 1;
}

.watchtower-history__grid > .watchtower-history__filter[b-m8cdvlcg8w] {
    grid-area: 2 / 2;
}

/* Three columns, two rows: zoom out / zoom in / current on top, previous / next under the zoom pair.
   Fixed to the viewport's height so the buttons sit beside the strip rather than beside the
   month under it. */
.watchtower-history__controls[b-m8cdvlcg8w] {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-auto-rows: min-content;
    align-content: start;
    justify-items: center;
}

/* A phone: the strip takes the whole width and the buttons go under it -- all of them in one row,
   the month's and the filter's at its end -- with the month, when shown, under those. Squeezing a
   column of buttons beside a strip a few dozen pixels wide would leave nothing to drag on. */
@media (max-width: 599.98px) {
    .watchtower-history__grid > .watchtower-history__strip[b-m8cdvlcg8w] {
        grid-area: 1 / 1 / 2 / 3;
    }

    .watchtower-history__grid > .watchtower-history__controls[b-m8cdvlcg8w] {
        grid-area: 2 / 1;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .watchtower-history__grid > .watchtower-history__filter[b-m8cdvlcg8w] {
        grid-area: 2 / 2;
        margin-top: 0;
    }

    .watchtower-history__grid > .watchtower-days[b-m8cdvlcg8w] {
        grid-area: 3 / 1 / 4 / 3;
    }
}

/* The strip: a clipped viewport with the ruler and bars.
   Its children are drawn by HistoryTimeline.razor.js, so they carry no scope attribute -- every
   rule for them is ::deep. touch-action: none keeps a finger on the strip from scrolling the
   page: a vertical drag here is a zoom, and a pinch is a pinch. */
.watchtower-history__strip[b-m8cdvlcg8w] {
    position: relative;
    min-width: 0;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.watchtower-history__strip:focus-visible[b-m8cdvlcg8w] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 1px;
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__viewport {
    position: relative;
    height: 3.75rem;
    overflow: hidden;
    border-radius: 4px;
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__ruler {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1rem;
    pointer-events: none;
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__tick {
    position: absolute;
    top: 0;
    height: 100%;
    padding-left: 3px;
    border-left: 1px solid var(--mud-palette-lines-default);
    font-size: 0.65rem;
    line-height: 1rem;
    white-space: nowrap;
    color: var(--mud-palette-text-secondary);
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__tick--day {
    border-left-color: var(--mud-palette-text-secondary);
    font-weight: 600;
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__bars {
    position: absolute;
    left: 0;
    right: 0;
    top: 1.1rem;
    bottom: 0;
}

/* One column of the histogram, anchored to the bottom: its height is how many clips fall in it
   (see columns() in the script). Inside, the parts stack red / blue / green from the bottom, the
   same colours as the live frame's outline and the motion boxes. */
.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__column {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column-reverse;
    padding: 0 0.5px;
    box-sizing: border-box;
    opacity: 0.85;
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__part {
    flex-basis: 0;
    min-height: 2px;
}

/* Plain motion is the commonest bar by far, so it is drawn faint: the red and blue ones, which
   mean something was recognised or recorded by hand, are what the eye should find. */
.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__part--motion {
    background: color-mix(in srgb, var(--mud-palette-success) 45%, transparent);
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__part--detection {
    background: var(--mud-palette-error);
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__part--manual {
    background: var(--mud-palette-info);
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__column--selected {
    opacity: 1;
    outline: 2px solid var(--mud-palette-text-primary);
    outline-offset: -1px;
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed var(--mud-palette-text-secondary);
    pointer-events: none;
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--mud-palette-primary);
    pointer-events: none;
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__playhead::before {
    content: "";
    position: absolute;
    top: 0;
    left: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--mud-palette-primary);
}

.watchtower-history__strip[b-m8cdvlcg8w]  .watchtower-history__playhead--offscreen {
    opacity: 0.4;
}

/* The month's button and the object filter sit beside the month, and line up with it when it is
   showing. */
.watchtower-history__filter[b-m8cdvlcg8w] {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    min-height: 2rem;
    margin-top: 0.5rem;
}

/* A month at a glance, a cell a day, oldest on the left. The cells are drawn by the script. */
.watchtower-days[b-m8cdvlcg8w] {
    display: flex;
    gap: 2px;
    height: 2.6rem;
    margin-top: 0.5rem;
    align-items: stretch;
}

/* Not showing: the button beside the filter brings it back. */
.watchtower-days--hidden[b-m8cdvlcg8w] {
    display: none;
}

.watchtower-days[b-m8cdvlcg8w]  .watchtower-days__day {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    border-radius: 2px;
    border-bottom: 2px solid transparent;
}

.watchtower-days[b-m8cdvlcg8w]  .watchtower-days__day:hover,
.watchtower-days[b-m8cdvlcg8w]  .watchtower-days__day:focus-visible {
    background: var(--mud-palette-action-default-hover);
    outline: none;
}

.watchtower-days[b-m8cdvlcg8w]  .watchtower-days__day--shown {
    border-bottom-color: var(--mud-palette-primary);
}

.watchtower-days[b-m8cdvlcg8w]  .watchtower-days__day--today .watchtower-days__number {
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.watchtower-days[b-m8cdvlcg8w]  .watchtower-days__bar {
    display: flex;
    flex-direction: column-reverse;
    min-height: 2px;
    margin: 0 1px;
    border-radius: 1px 1px 0 0;
    overflow: hidden;
    /* Fills the room above the number: the script sets the share of it a busy day takes. */
}

.watchtower-days[b-m8cdvlcg8w]  .watchtower-days__hot {
    flex-basis: 0;
    background: var(--mud-palette-error);
}

.watchtower-days[b-m8cdvlcg8w]  .watchtower-days__plain {
    flex-basis: 0;
    background: color-mix(in srgb, var(--mud-palette-success) 45%, transparent);
}

.watchtower-days[b-m8cdvlcg8w]  .watchtower-days__number {
    font-size: 0.6rem;
    line-height: 1rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    color: var(--mud-palette-text-secondary);
}
/* /Components/Cameras/MotionFilterControls.razor.rz.scp.css */
.watchtower-motion-filters[b-2ks6epk2d1] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.25rem 0.75rem 0.75rem;
}

.watchtower-motion-filters__note[b-2ks6epk2d1] {
    display: block;
    opacity: 0.7;
    padding-bottom: 0.25rem;
}

.watchtower-motion-filter__parameter[b-2ks6epk2d1] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Indented under its checkbox, so a slider reads as belonging to the filter above it. */
    padding-left: 2rem;
}

/* ::deep, because the slider is a MudBlazor component: the scope attribute this file's rules
   are rewritten with is put on elements this component renders, and none of MudSlider's are. */
.watchtower-motion-filter__parameter[b-2ks6epk2d1]  .mud-slider {
    flex: 1 1 auto;
    min-width: 4rem;
}

.watchtower-motion-filter__value[b-2ks6epk2d1] {
    flex: 0 0 auto;
    min-width: 3.5rem;
    text-align: right;
    /* Digits of the same width, so a slider's label does not jitter sideways as it is dragged. */
    font-variant-numeric: tabular-nums;
}
/* /Components/Cameras/NetworkScanDialog.razor.rz.scp.css */
/* Holds the progress bar while a sweep runs, and the warnings when none does, at a height that
   fits either. Reserving it keeps the dialog the same height throughout, so pressing Scan
   cannot set a scrollbar appearing and disappearing. */
.watchtower-network-scan__progress[b-jozy27zozh] {
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* /Components/Cameras/ZoneMapPanel.razor.rz.scp.css */
.watchtower-zone-panel[b-c91z31q1fs] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.watchtower-zone-panel__note[b-c91z31q1fs] {
    opacity: 0.8;
}

.watchtower-zone-panel__legend[b-c91z31q1fs] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 0.75rem;
}

.watchtower-zone-panel__swatch[b-c91z31q1fs] {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 2px;
    vertical-align: baseline;
}

.watchtower-zone-panel__swatch--noisy[b-c91z31q1fs] {
    background: #ff7043;
}

.watchtower-zone-panel__swatch--quiet[b-c91z31q1fs] {
    background: #42a5f5;
}

.watchtower-zone-panel__swatch--parked[b-c91z31q1fs] {
    border: 2px dashed #ab47bc;
    box-sizing: border-box;
}
/* /Components/Layout/AccountLayout.razor.rz.scp.css */
.watchtower-account[b-2qg1pbxbbj] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.watchtower-account__card[b-2qg1pbxbbj] {
    width: 100%;
    max-width: 26rem;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
#components-reconnect-modal[b-9i27yu6kcn] {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1400;
    overflow: hidden;
    background-color: transparent;
    border: none;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
}

    #components-reconnect-modal[b-9i27yu6kcn]::backdrop {
        background: rgba(10, 16, 28, 0.5);
    }

    #components-reconnect-modal.components-reconnect-show[b-9i27yu6kcn],
    #components-reconnect-modal[open][b-9i27yu6kcn],
    #components-reconnect-modal.components-reconnect-failed[b-9i27yu6kcn],
    #components-reconnect-modal.components-reconnect-repeated-attempt[b-9i27yu6kcn],
    #components-reconnect-modal.components-reconnect-paused[b-9i27yu6kcn],
    #components-reconnect-modal.components-reconnect-resume-failed[b-9i27yu6kcn],
    #components-reconnect-modal.components-pause[b-9i27yu6kcn],
    #components-reconnect-modal.components-resume-failed[b-9i27yu6kcn] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.components-reconnect-backdrop[b-9i27yu6kcn] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(90% 60% at 80% 0%, color-mix(in srgb, var(--mud-palette-primary, #594AE2) 12%, transparent), transparent 60%), radial-gradient(80% 55% at 0% 100%, color-mix(in srgb, var(--mud-palette-info, #2196f3) 16%, transparent), transparent 62%), rgba(8, 12, 20, 0.5);
}

.components-reconnect-surface[b-9i27yu6kcn] {
    width: min(480px, 100%);
    border-radius: var(--mud-default-borderradius, 12px);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default, #e0e0e0) 70%, transparent);
    background: var(--mud-palette-surface, #fff);
    box-shadow: var(--mud-elevation-24, 0 16px 30px rgba(0, 0, 0, 0.28));
    color: var(--mud-palette-text-primary, #1f2937);
    padding: 20px 20px 18px;
}

.components-reconnect-header[b-9i27yu6kcn] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

    .components-reconnect-header h2[b-9i27yu6kcn] {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.3;
    }

.components-reconnect-status-dot[b-9i27yu6kcn] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mud-palette-warning, #f59e0b);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--mud-palette-warning, #f59e0b) 25%, transparent);
}

.components-reconnect-supporting[b-9i27yu6kcn],
.components-reconnect-message[b-9i27yu6kcn] {
    margin: 0;
    line-height: 1.45;
    font-size: 0.95rem;
}

.components-reconnect-supporting[b-9i27yu6kcn] {
    color: var(--mud-palette-text-secondary, #52607a);
    margin-bottom: 14px;
}

.components-reconnect-message[b-9i27yu6kcn] {
    font-weight: 500;
}

.components-reconnect-danger[b-9i27yu6kcn] {
    color: var(--mud-palette-error, #b00020);
}

.components-reconnect-actions[b-9i27yu6kcn] {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.components-reconnect-first-attempt-visible[b-9i27yu6kcn],
.components-reconnect-repeated-attempt-visible[b-9i27yu6kcn],
.components-reconnect-failed-visible[b-9i27yu6kcn],
.components-pause-visible[b-9i27yu6kcn],
.components-resume-failed-visible[b-9i27yu6kcn] {
    display: none;
}

dialog[open].components-reconnect-show .components-reconnect-first-attempt-visible[b-9i27yu6kcn] {
    display: block;
}

dialog[open].components-reconnect-show .components-rejoin-loader[b-9i27yu6kcn] {
    display: inline-flex;
}

dialog[open].components-reconnect-failed .components-reconnect-failed-visible[b-9i27yu6kcn] {
    display: block;
}

dialog[open].components-reconnect-failed #components-reconnect-button[b-9i27yu6kcn] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-reconnect-repeated-attempt-visible[b-9i27yu6kcn] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-rejoin-loader[b-9i27yu6kcn] {
    display: inline-flex;
}

dialog[open].components-reconnect-paused .components-pause-visible[b-9i27yu6kcn],
dialog[open].components-pause .components-pause-visible[b-9i27yu6kcn] {
    display: block;
}

dialog[open].components-reconnect-paused #components-resume-button[b-9i27yu6kcn],
dialog[open].components-pause #components-resume-button[b-9i27yu6kcn],
dialog[open].components-reconnect-resume-failed #components-resume-button[b-9i27yu6kcn],
dialog[open].components-resume-failed #components-resume-button[b-9i27yu6kcn] {
    display: block;
}

dialog[open].components-reconnect-resume-failed .components-resume-failed-visible[b-9i27yu6kcn],
dialog[open].components-resume-failed .components-resume-failed-visible[b-9i27yu6kcn] {
    display: block;
}

.components-rejoin-loader[b-9i27yu6kcn] {
    display: none;
    margin-bottom: 10px;
    gap: 8px;
}

    .components-rejoin-loader div[b-9i27yu6kcn] {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: var(--mud-palette-primary, #594AE2);
        animation: reconnect-pulse-b-9i27yu6kcn 1.2s infinite ease-in-out both;
    }

        .components-rejoin-loader div:nth-child(1)[b-9i27yu6kcn] {
            animation-delay: -0.24s;
        }

        .components-rejoin-loader div:nth-child(2)[b-9i27yu6kcn] {
            animation-delay: -0.12s;
        }

@keyframes reconnect-pulse-b-9i27yu6kcn {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

#components-reconnect-button[b-9i27yu6kcn],
#components-resume-button[b-9i27yu6kcn] {
    display: none;
    min-width: 92px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--mud-palette-primary, #594AE2);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition: filter 140ms ease, transform 140ms ease;
}

    #components-reconnect-button:hover[b-9i27yu6kcn],
    #components-resume-button:hover[b-9i27yu6kcn] {
        filter: brightness(0.95);
    }

    #components-reconnect-button:active[b-9i27yu6kcn],
    #components-resume-button:active[b-9i27yu6kcn] {
        transform: translateY(1px);
    }

@media (max-width: 600px) {
    .components-reconnect-backdrop[b-9i27yu6kcn] {
        padding: 14px;
    }

    .components-reconnect-surface[b-9i27yu6kcn] {
        padding: 16px;
    }
}
/* /Components/Metrics/MetricBarChart.razor.rz.scp.css */
.watchtower-metric-chart[b-zpcq0wsc6l] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.watchtower-metric-chart__header[b-zpcq0wsc6l] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.watchtower-metric-chart__latest[b-zpcq0wsc6l] {
    opacity: 0.7;
}

.watchtower-metric-chart__bars[b-zpcq0wsc6l] {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 6rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.watchtower-metric-chart__slot[b-zpcq0wsc6l] {
    flex: 1 1 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    min-width: 2px;
}

.watchtower-metric-chart__bar[b-zpcq0wsc6l] {
    width: 100%;
    border-radius: 1px 1px 0 0;
    transition: height 0.3s ease;
}

.watchtower-metric-chart__bar--normal[b-zpcq0wsc6l] {
    background-color: var(--mud-palette-success);
}

.watchtower-metric-chart__bar--elevated[b-zpcq0wsc6l] {
    background-color: var(--mud-palette-warning);
}

.watchtower-metric-chart__bar--high[b-zpcq0wsc6l] {
    background-color: var(--mud-palette-error);
}

.watchtower-metric-chart__bar--accent[b-zpcq0wsc6l] {
    background-color: var(--mud-palette-info);
}
/* /Components/Motion/MotionBoxOverlay.razor.rz.scp.css */
/* Positioned by the caller: this fills whatever ancestor establishes the positioning context
   (the camera tile's frame, the History thumbnail), and never intercepts clicks meant for the
   picture underneath it. */
.watchtower-motion-overlay[b-tww3tmqt1u] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.watchtower-motion-overlay rect[b-tww3tmqt1u] {
    fill: none;
    stroke: #4caf50;
    /* With vector-effect="non-scaling-stroke" on the rect this is device pixels, so the outline
       stays the same weight whether the picture is a thumbnail or the full width of the window. */
    stroke-width: 2px;
}

/* A confirmed object, drawn on top of and instead of the green motion box it came from --
   see MotionBoxOverlay.razor's IsCoveredByADetection. Same red as the manual-recording dot
   (CameraStreamView.razor.css), for one consistent "something specific was found" colour.
   Qualified with the "rect" the class is always on, rather than left as a bare class selector:
   the base ".watchtower-motion-overlay rect" rule above is a class-plus-type selector, which
   beats a bare class on specificity regardless of source order, and was winning outright --
   every confirmed and candidate box rendered green no matter what colour its own rule said. */
.watchtower-motion-overlay rect.watchtower-motion-overlay__object[b-tww3tmqt1u] {
    fill: none;
    stroke: #f44336;
    stroke-width: 2px;
}

/* A candidate DetectionGate turned down -- only ever drawn on the camera setup page's debug
   view (see MotionBoxOverlay.razor's Candidates parameter), and now the History clip player's.
   Dashed and a third colour so it is never mistaken for the solid red of a confirmed object. */
.watchtower-motion-overlay rect.watchtower-motion-overlay__candidate[b-tww3tmqt1u] {
    fill: none;
    stroke: #ffa726;
    stroke-width: 1.5px;
    stroke-dasharray: 4 3;
}

/* ::deep: DetectionLabel is a plain ComponentBase with no .razor.css of its own -- see its own
   remarks on why the <text> it renders can't be written directly in MotionBoxOverlay.razor's
   markup. It carries none of this file's scope attribute, so a rule scoped the normal way can
   never match it; the label rendered, but as unstyled black text with no outline, easy to lose
   against a similarly dark picture. ::deep drops the scope requirement instead. */
.watchtower-motion-overlay[b-tww3tmqt1u]  .watchtower-motion-overlay__candidate-label {
    fill: #ffa726;
    stroke: #000;
    stroke-width: 2px;
    paint-order: stroke;
    font-family: inherit;
    dominant-baseline: text-before-edge;
}

.watchtower-motion-overlay[b-tww3tmqt1u]  .watchtower-motion-overlay__label {
    fill: #f44336;
    /* Outlined rather than given a background rect: legible over both a bright and a dark
       picture with one rule, and does not need its own sized box to sit behind. paint-order
       draws the stroke first so it never covers the fill. */
    stroke: #000;
    stroke-width: 2px;
    paint-order: stroke;
    font-family: inherit;
    dominant-baseline: text-before-edge;
}

/* The glyph that stands for a confirmed object's kind, in the same red as its box. The icon
   markup is Material's, written in with no scope attribute of this file, so ::deep again. Its
   first path is a transparent square the size of the icon, which must not be filled. */
.watchtower-motion-overlay__icon[b-tww3tmqt1u]  path {
    fill: #f44336;
    stroke: #000;
    stroke-width: 1.5px;
    paint-order: stroke;
}

.watchtower-motion-overlay__icon[b-tww3tmqt1u]  path[fill="none"] {
    display: none;
}
/* /Components/Motion/RejectedCandidateList.razor.rz.scp.css */
.watchtower-candidate-list[b-t05j6rjsr9] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.watchtower-candidate-list__note[b-t05j6rjsr9],
.watchtower-candidate-list__empty[b-t05j6rjsr9] {
    color: var(--mud-palette-text-secondary);
}

.watchtower-candidate-list__items[b-t05j6rjsr9] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* A plain button per row rather than a MudList: the row is its own toggle, and this keeps the
   selected/hover states to two CSS rules instead of MudList's selection plumbing. */
.watchtower-candidate-list__item[b-t05j6rjsr9] {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.watchtower-candidate-list__item:hover[b-t05j6rjsr9] {
    background-color: var(--mud-palette-action-default-hover);
}

/* The same red as a confirmed object (MotionBoxOverlay.razor.css), so a picked row and its
   promoted box read as the one thing. */
.watchtower-candidate-list__item[aria-pressed="true"][b-t05j6rjsr9] {
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.12);
}

.watchtower-candidate-list__label[b-t05j6rjsr9] {
    font-weight: 500;
    text-transform: capitalize;
}

.watchtower-candidate-list__confidence[b-t05j6rjsr9] {
    font-variant-numeric: tabular-nums;
}

.watchtower-candidate-list__reason[b-t05j6rjsr9] {
    margin-left: auto;
    color: var(--mud-palette-text-secondary);
    font-size: 0.8125rem;
}
/* /Components/Motion/ZoneHeatmapOverlay.razor.rz.scp.css */
/* Fills whatever ancestor establishes the positioning context, as MotionBoxOverlay does, and
   never takes clicks meant for the picture. */
.watchtower-zone-overlay[b-vk95m4b5lx] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Foliage in the wind and anything else that keeps firing without a real object in it. */
.watchtower-zone-overlay rect.watchtower-zone-overlay__noisy[b-vk95m4b5lx] {
    fill: #ff7043;
    stroke: none;
}

/* Ground that has not moved for hours: where a small, far-off object is easier to catch. */
.watchtower-zone-overlay rect.watchtower-zone-overlay__quiet[b-vk95m4b5lx] {
    fill: #42a5f5;
    stroke: none;
}

/* Something that has stayed put long enough to be treated as part of the scene. */
.watchtower-zone-overlay rect.watchtower-zone-overlay__parked[b-vk95m4b5lx] {
    fill: none;
    stroke: #ab47bc;
    stroke-width: 2px;
    stroke-dasharray: 6 4;
}
/* /Components/Pages/CameraView.razor.rz.scp.css */
/* Both blocks on the page -- the picture and the history timeline under it -- take the full width
   of the content area, so hiding the menu makes them wider rather than leaving a gap. The picture
   keeps its aspect ratio; CameraStreamView.razor.css caps how tall it may grow. */
.watchtower-camera-view[b-nxrln6d4db] {
    width: 100%;
}

/* The picture and its history, with the other cameras' rail beside them. On wide screens the
   rail is a column running down the right of both; on narrow ones it sits between the picture
   and the history. */
.watchtower-camera-page[b-nxrln6d4db] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14rem;
    grid-template-areas:
        "video rail"
        "timeline rail";
    column-gap: 1rem;
    align-items: start;
}

.watchtower-camera-page--alone[b-nxrln6d4db] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "video"
        "timeline";
}

.watchtower-camera-page__video[b-nxrln6d4db] {
    grid-area: video;
    min-width: 0;
}

.watchtower-camera-page__rail[b-nxrln6d4db] {
    grid-area: rail;
    min-width: 0;
}

.watchtower-camera-page__timeline[b-nxrln6d4db] {
    grid-area: timeline;
    min-width: 0;
}

@media (max-width: 959.98px) {
    .watchtower-camera-page[b-nxrln6d4db] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "video"
            "rail"
            "timeline";
    }

    .watchtower-camera-page__rail[b-nxrln6d4db] {
        margin: 0.5rem 0;
    }
}
/* /Components/Pages/ClipView.razor.rz.scp.css */
.watchtower-clip-player[b-2adtfbvt6w] {
    overflow: hidden;
}

.watchtower-clip-player__frame[b-2adtfbvt6w] {
    position: relative;
}

.watchtower-clip-player__video[b-2adtfbvt6w] {
    width: 100%;
    max-height: 70vh;
    display: block;
    background: #000;
}

.watchtower-clip-player__scrubber[b-2adtfbvt6w] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0;
}

.watchtower-clip-player__slider[b-2adtfbvt6w] {
    flex: 1 1 auto;
}

.watchtower-clip-player__time[b-2adtfbvt6w] {
    flex: 0 0 auto;
    min-width: 3rem;
    text-align: center;
    color: var(--mud-palette-text-secondary);
}

.watchtower-clip-player__controls[b-2adtfbvt6w] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    flex-wrap: wrap;
}

.watchtower-clip-player__speed[b-2adtfbvt6w] {
    max-width: 6rem;
}

.watchtower-clip-player__motion-status[b-2adtfbvt6w] {
    margin-left: -0.5rem;
}

.watchtower-clip-player__debug[b-2adtfbvt6w] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.75rem 0.75rem;
}

/* ::deep, because FilterSection is a child component and none of its elements carry this
   file's scope attribute. A border between the two sections, since their own padding already
   separates each header from its content. */
.watchtower-clip-player__debug[b-2adtfbvt6w]  .watchtower-filter-section + .watchtower-filter-section {
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* The clip and its controls, with the other cameras' rail beside them -- a column down the right
   on wide screens, under the clip on narrow ones. Same arrangement as a camera's own page. */
.watchtower-clip-page[b-2adtfbvt6w] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14rem;
    column-gap: 1rem;
    align-items: start;
}

.watchtower-clip-page--alone[b-2adtfbvt6w] {
    grid-template-columns: minmax(0, 1fr);
}

.watchtower-clip-page__main[b-2adtfbvt6w],
.watchtower-clip-page__rail[b-2adtfbvt6w] {
    min-width: 0;
}

@media (max-width: 959.98px) {
    .watchtower-clip-page[b-2adtfbvt6w] {
        grid-template-columns: minmax(0, 1fr);
    }

    .watchtower-clip-page__rail[b-2adtfbvt6w] {
        margin: 0.5rem 0;
    }
}
/* /Components/Pages/History.razor.rz.scp.css */
/* The strip and its buttons stay put under the app bar while the list scrolls beneath them. The
   background is opaque, or the cards would show through it; the z-index keeps the cards -- which
   have positioned children of their own -- under it, and below the app bar and the menus. */
.watchtower-history-page__bar[b-yt1dnn5wlf] {
    position: sticky;
    top: var(--mud-appbar-height, 64px);
    z-index: 5;
    margin: 0 -1rem 1rem;
    padding: 0.5rem 1rem 0.5rem;
    background: var(--mud-palette-background);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.watchtower-history-page__tools[b-yt1dnn5wlf] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* The title takes what the buttons leave, which puts them at the right edge. */
.watchtower-history-page__tools[b-yt1dnn5wlf]  .watchtower-history-page__title {
    flex: 1 1 auto;
}

.watchtower-history-page__list[b-yt1dnn5wlf] {
    min-height: 4rem;
}

.watchtower-clip-card[b-yt1dnn5wlf] {
    display: block;
    color: inherit;
}

.watchtower-clip-card__paper[b-yt1dnn5wlf] {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

/* The clip the viewer picked on the strip, outlined in the playhead's colour. */
.watchtower-clip-card__paper--highlighted[b-yt1dnn5wlf] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}

/* ::deep, because the camera link and the delete button are MudBlazor components: the scope
   attribute this file's rules carry never lands on them -- the same reason MotionBoxOverlay and
   the settings pages reach into their Mud children this way. A plain-div wrapper here would not
   need it, but MudLink and MudIconButton do. */
.watchtower-clip-card__caption-head[b-yt1dnn5wlf]  .watchtower-clip-card__delete {
    flex: 0 0 auto;
    margin-right: -0.375rem;
    color: var(--mud-palette-text-secondary);
}

.watchtower-clip-card__caption-head[b-yt1dnn5wlf]  .watchtower-clip-card__delete:hover {
    color: var(--mud-palette-error);
}

.watchtower-clip-card__thumbnail[b-yt1dnn5wlf] {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.watchtower-clip-card__thumbnail img[b-yt1dnn5wlf] {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Top-right, to leave the top-left corner to the detected-object icons below. */
.watchtower-clip-card__badge[b-yt1dnn5wlf] {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    display: flex;
    padding: 0.125rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
}

/* The objects confirmed in the clip, one Material icon each, over the thumbnail's top-left
   corner -- the tooltip on the row carries the labels and confidences in words. The pill is
   the outer element so MudTooltip's own inline-block wrapper sits inside the rounded
   background; the row does the layout. */
.watchtower-clip-card__detections[b-yt1dnn5wlf] {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    line-height: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.watchtower-clip-card__detections-row[b-yt1dnn5wlf] {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.1875rem 0.3125rem;
}

.watchtower-clip-card__detection[b-yt1dnn5wlf] {
    display: inline-flex;
    align-items: center;
}

.watchtower-clip-card__placeholder[b-yt1dnn5wlf] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
}

.watchtower-clip-card__caption[b-yt1dnn5wlf] {
    padding: 0.5rem 0.75rem;
    min-width: 0;
}

.watchtower-clip-card__caption-head[b-yt1dnn5wlf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.watchtower-clip-card__caption-head[b-yt1dnn5wlf]  .watchtower-clip-card__camera {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}

.watchtower-clip-card__caption-head[b-yt1dnn5wlf]  .watchtower-clip-card__camera > * {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Pages/Logs.razor.rz.scp.css */
/* Wrapper divs, not the MudBlazor fields themselves: the class passed to a Mud field lands on
   an inner element, so flex sizing set there has nothing to grow within. These divs are the
   flex children; each Mud field fills its wrapper at the default 100% width. */
.watchtower-logs-toolbar__level[b-k3949rzphp] {
    flex: 0 0 auto;
    width: 10rem;
    margin-right: 1rem;
}

.watchtower-logs-toolbar__search[b-k3949rzphp] {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 1rem;
}

.watchtower-logs-scroll[b-k3949rzphp] {
    height: 65vh;
    overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8125rem;
}

.watchtower-logs-sentinel[b-k3949rzphp] {
    height: 1px;
}

.watchtower-logs-entry[b-k3949rzphp] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

.watchtower-logs-entry:hover[b-k3949rzphp] {
    background-color: var(--mud-palette-action-default-hover);
}

.watchtower-logs-entry__timestamp[b-k3949rzphp] {
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.watchtower-logs-entry__level[b-k3949rzphp] {
    min-width: 3.5rem;
    justify-content: center;
}

.watchtower-logs-entry__category[b-k3949rzphp] {
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.watchtower-logs-entry__message[b-k3949rzphp] {
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1 1 16rem;
}

.watchtower-logs-entry__exception[b-k3949rzphp] {
    flex-basis: 100%;
    margin-left: 4.5rem;
}

.watchtower-logs-entry__exception summary[b-k3949rzphp] {
    cursor: pointer;
    color: var(--mud-palette-error);
}

.watchtower-logs-entry__exception pre[b-k3949rzphp] {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0.25rem 0 0;
}
/* /Components/Pages/Settings/CameraConfig.razor.rz.scp.css */
/* The shrunk, compact size shown beside the form. Expanded has no cap of its own -- it takes
   whatever width the grid gives its now-full-width row. */
.watchtower-camera-view[b-pcjfezcgc6] {
    max-width: 28rem;
}
/* /Components/Pages/Settings/CameraSettings.razor.rz.scp.css */
/* A camera found on the network but not configured yet. The table renders its own rows, so
   the scoped attribute lands on the wrapper and the row is reached through ::deep. */
.watchtower-camera-list[b-no5fuepcgz]  tr.watchtower-camera-row--new {
    background-color: var(--mud-palette-info-hover);
    color: var(--mud-palette-info-text);
}

.watchtower-camera-list[b-no5fuepcgz]  tr.watchtower-camera-row--new:hover {
    /* Hover has to stay distinguishable from the normal state on a row that is already
       tinted, so it deepens the same colour rather than replacing it. */
    background-color: var(--mud-palette-info-darken);
    color: var(--mud-palette-white);
}

/* Every row does something when clicked -- open a camera's own page, or offer to configure one
   -- and a table that reacts to clicks should say so before it is clicked. */
.watchtower-camera-list[b-no5fuepcgz]  tbody tr {
    cursor: pointer;
}
