.camera-remote-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.72);
}
.camera-remote-drawer.open {
    display: block;
}
.camera-remote-panel {
    position: absolute;
    top: 4vh;
    right: 2vw;
    width: min(520px, 94vw);
    max-height: 92vh;
    overflow: auto;
    background: #2a2a2a;
    border: 2px solid #ff8000;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.camera-remote-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #555;
}
.camera-remote-head h2 {
    margin: 0;
    font-size: 18px;
    color: #ff8000;
}
.camera-remote-head .sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: #bbb;
}
.camera-remote-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.camera-remote-close:hover {
    color: #fff;
}
.camera-remote-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 12px 0;
}
.camera-remote-tabs button {
    flex: 1;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px 4px 0 0;
    padding: 8px 10px;
    font-weight: bold;
    cursor: pointer;
}
.camera-remote-tabs button.active {
    background: #ff8000;
    color: #111;
}
.camera-remote-body {
    padding: 12px 16px 18px;
}
.camera-remote-section {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #333;
    border-radius: 6px;
}
.camera-remote-section h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #ff8000;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.camera-remote-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}
.camera-remote-row label {
    width: 72px;
    flex: 0 0 72px;
    font-size: 12px;
    color: #ddd;
}
.camera-remote-row input[type="range"] {
    flex: 1;
    min-width: 0;
}
.camera-remote-row .val,
.camera-remote-row select {
    min-width: 72px;
    font-size: 12px;
}
.camera-remote-row select,
.camera-remote-actions button {
    background: #444;
    color: #fff;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 6px 8px;
}
.camera-remote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.camera-remote-actions button.active {
    background: #ff8000;
    border-color: #ff8000;
    color: #111;
    font-weight: bold;
}
.camera-remote-status {
    font-size: 12px;
    color: #bbb;
    min-height: 1.2em;
    margin-bottom: 8px;
}
.camera-remote-status.error {
    color: #ff8080;
}
.camera-remote-unavailable {
    color: #999;
    font-size: 12px;
    font-style: italic;
}
.camera-remote-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 8px;
}
.camera-remote-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ddd;
    cursor: pointer;
}
.camera-remote-check input {
    margin: 0;
}
.cwheel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
}
.cwheel-bar-title {
    margin: 0;
    font-size: 13px;
    color: #ff8000;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cwheel-reset-all {
    background: #444;
    color: #fff;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}
.cwheel-reset-all:hover {
    border-color: #ff8000;
    color: #ff8000;
}
.cwheel-reset-all:disabled {
    opacity: 0.5;
    cursor: default;
}
.cwheel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    margin-bottom: 12px;
}
.cwheel-grid-compact .cwheel {
    padding: 6px;
    gap: 4px;
    background: #333;
    border: 1px solid #555;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}
.cwheel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}
.cwheel-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #bbb;
}
.cwheel-reset {
    background: transparent;
    border: 1px solid #555;
    color: #999;
    border-radius: 999px;
    width: 18px;
    height: 18px;
    line-height: 1;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cwheel-reset:hover {
    color: #ff8000;
    border-color: #ff8000;
}
.cwheel-disc {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 112px;
    margin: 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 55%),
        conic-gradient(from 90deg,
            hsl(0, 100%, 50%),
            hsl(30, 100%, 50%),
            hsl(60, 100%, 50%),
            hsl(90, 100%, 50%),
            hsl(120, 100%, 50%),
            hsl(150, 100%, 50%),
            hsl(180, 100%, 50%),
            hsl(210, 100%, 50%),
            hsl(240, 100%, 50%),
            hsl(270, 100%, 50%),
            hsl(300, 100%, 50%),
            hsl(330, 100%, 50%),
            hsl(360, 100%, 50%));
    box-shadow: 0 0 0 1px #555, inset 0 0 16px rgba(0, 0, 0, 0.35);
    cursor: crosshair;
    touch-action: none;
    user-select: none;
}
.cwheel-disc.dragging {
    cursor: grabbing;
}
.cwheel-puck {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.cwheel-luma {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cwheel-luma-range {
    flex: 1;
    width: 100%;
    margin: 0;
}
.cwheel-rgbl {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}
.cwheel-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 0;
}
.cwheel-field label {
    font-size: 8px;
    color: #999;
    letter-spacing: 0.05em;
}
.cwheel-field input {
    width: 100%;
    min-width: 0;
    padding: 2px;
    font-size: 9px;
    text-align: center;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 3px;
    color: #fff;
    font-family: inherit;
    box-sizing: border-box;
}
.cwheel-field input:focus {
    outline: none;
    border-color: #ff8000;
}
@media (max-width: 1100px) {
    .cwheel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cwheel-disc {
        max-width: 128px;
    }
}
