html, body {
    width: 100%; height: 100%; overflow: hidden;
    padding: 0; margin: 0;
}

.camera-screen {
    display: block; width: 100vw; height: 100vh;
    border: 0px none; background-color: #111;
}

.float-panel {
    position: absolute;
    width: 220px;
    user-select: none;
    z-index: 10;
}

.float-panel fieldset {
    margin: 0;
    padding: 0;
    border: 0.5px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: #555;
    overflow: hidden;
}

.fp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: grab;
    background: rgba(255,255,255,0.05);
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.fp-header:active { cursor: grabbing; }

.fp-grip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

.fp-grip-line {
    display: block;
    width: 14px;
    height: 1.5px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
}

.fp-legend {
    float: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.fp-toggle {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
}
.fp-toggle:hover { color: rgba(255,255,255,0.9); }

.fp-chevron {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    transition: transform 0.18s ease;
    display: inline-block;
}

.fp-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    max-height: 400px;
    transition: max-height 0.18s ease, padding 0.18s ease;
}
.fp-body.fp-collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.fp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 0.5px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.1s;
}
.fp-item:hover { background: rgba(255,255,255,0.07); }
.fp-item:active { transform: scale(0.98); }

.fp-item-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-item-label {
    flex: 1;
}

.fp-select {
    display: flex;
    align-items: center;
}

.toast {
    position: fixed; top: 20px; left: 50%;
    transform: translateX(-50%); z-index: 9999;
    user-select: none;
    pointer-events: none;
    background: rgba(192, 192, 208, 0.85); color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px; font-weight: 500; letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
