/* The live camera view as a window over the 3D view: see live_view_panel.js.
   The picture itself is styled by the shared .gp-live-* rules in
   scan-wizard.css - this is only the window around it. */

.live-view-panel {
    position: fixed;
    z-index: 60;
    width: min(420px, 42vw);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.live-view-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 8px 12px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    /* The whole bar is the handle, so it says so - and text does not get selected
       out from under a drag. */
    cursor: grab;
    user-select: none;
}

.live-view-panel.is-dragging .live-view-bar {
    cursor: grabbing;
}

.live-view-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.live-view-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.live-view-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.live-view-body {
    padding: 10px;
}

/* The preview's own bottom margin is for a wizard's stacked controls; in here it
   would just leave a gap under the caption. */
.live-view-body .gp-live-preview {
    margin: 0;
}

.live-view-btn.is-active {
    border-color: rgba(167, 78, 158, 0.45);
    background: rgba(167, 78, 158, 0.12);
    color: var(--text-primary);
}
