.camera-editor-panel {
 --editor-ink:var(--fg, #282621);
 --editor-accent:color-mix(in srgb, var(--accent) 72%, black);
 --editor-line:var(--border);
 --editor-surface:var(--surface);
 --editor-control:var(--raised);
 --editor-header:var(--soft);
}
.detail.camera-sheet.camera-editor-panel {
 z-index:701;
 top:24px;
 right:16px;
 bottom:21px;
 width:min(642px, calc(100vw - 360px));
 border:1px solid var(--editor-line);
 border-radius:19px;
 background:var(--editor-surface)!important;
 box-shadow:0 12px 30px #0004;
}
.camera-editor-panel #detail-content {overflow:hidden;border-radius:inherit}
.camera-editor-panel #detail-content > :not(.camera-editor-mount) {display:none}
.camera-editor-mount {height:100%;color:var(--editor-ink)}
.camera-editor {height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;margin:0}
.camera-editor-head {
 display:flex;align-items:center;justify-content:flex-start;gap:16px;min-width:0;padding:18px 25px 11px;
 min-height:100px;background:linear-gradient(110deg,var(--editor-header),var(--editor-surface) 58%,var(--editor-header));
 border-bottom:1px solid var(--editor-line);
}
.camera-editor-emblem {display:grid;place-items:center;flex:0 0 58px;color:var(--editor-accent)}
.camera-editor-emblem img.badge {width:54px;height:70px;max-width:none;max-height:none;object-fit:contain}
.camera-editor-emblem svg {width:30px}
.camera-editor-head > div {min-width:0;text-align:left}
.camera-editor-head h2 {color:var(--editor-ink);margin:0 0 5px;font-size:22px;line-height:1.14;font-weight:800}
.camera-editor-head p {display:block;margin:0;font-size:14px;overflow-wrap:anywhere}
.camera-editor-reference {padding:2px 5px;border-radius:7px;background:var(--editor-header);font-weight:700}
.camera-editor-body {
 min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--editor-line) transparent;
 padding:12px 17px 16px;
 background:radial-gradient(ellipse at 93% 100%,var(--editor-header) 0,transparent 57%),var(--editor-surface);
}
.camera-editor-fold {margin:0 0 11px;border:1px solid var(--editor-line);border-radius:15px;background:var(--editor-control);overflow:hidden}
.camera-editor-fold > summary {
 list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;color:var(--editor-accent);
}
.camera-editor-fold > summary::-webkit-details-marker {display:none}
.camera-editor-fold > summary {
 padding:8px 15px;min-height:35px;background:linear-gradient(100deg,var(--editor-surface),var(--editor-header));
 font-size:17px;line-height:1.15;font-weight:800;
}
.camera-editor-fold:not([open]) > summary {min-height:43px}
.camera-editor-fold[open] > summary {border-bottom:1px solid var(--editor-line)}
.camera-editor summary::after {content:"";margin-inline-start:auto;width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);flex:none}
.camera-editor details[open] > summary::after {transform:rotate(225deg)}
.camera-editor svg {width:20px;height:20px;flex:none;vertical-align:middle}
.camera-editor-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 25px;padding:12px 18px;color:var(--editor-ink)}
.camera-editor-fields > :not(label,.camera-editor-coordinates,.camera-editor-level) {grid-column:1/-1}
.camera-editor-fields label,.camera-editor-coordinates,.camera-editor-level legend {display:block;color:inherit;font-size:13px;font-weight:650;margin:0}
.camera-editor-fields b {color:#a44922}
.camera-editor-fields :is(input:not([type=radio]),select,output),.camera-editor-level > div {
 box-sizing:border-box;display:block;margin:2px 0 0;width:100%;min-width:0;min-height:33px;
 border:1px solid var(--editor-line);border-radius:7px;background:var(--editor-control);color:var(--editor-ink);
 padding:5px 10px;font:500 14px/1.3 system-ui,sans-serif;
 box-shadow:inset 0 1px 2px #0001;
}
.camera-editor-fields :is(input,select):disabled {opacity:1;color:var(--editor-ink);-webkit-text-fill-color:currentColor;cursor:default}
.camera-editor-coordinates > div {display:grid;grid-template-columns:1fr 1fr;gap:7px}
.camera-editor-level {min-width:0;padding:0;border:0;margin:0}
.camera-editor-level > div {display:flex;gap:7px 18px;flex-wrap:wrap;align-items:center}
.camera-editor-level label {display:flex;gap:6px;align-items:center;font-weight:500}
.camera-editor-level input[type=radio] {width:16px;height:16px;accent-color:var(--editor-accent);margin:0}
.camera-type-figure {display:flex;align-items:center;gap:12px;margin:0;min-width:0;padding:5px 10px;color:inherit}
.camera-type-figure img {display:block;width:112px;height:112px;max-width:40%;object-fit:contain}
.camera-type-figure svg.camera-spec-icon {width:44px;height:44px;flex:none;color:var(--accent)}
.camera-type-figure figcaption {font-size:13px;font-weight:650;overflow-wrap:anywhere}
.camera-editor-footer {padding:15px 17px;background:linear-gradient(110deg,var(--editor-header),var(--editor-surface));border-top:1px solid var(--editor-line)}
.camera-editor-footer > div {display:grid;grid-template-columns:1fr auto auto;gap:10px}
.camera-editor-footer p {margin:0 0 8px;font-size:13px;overflow-wrap:anywhere}
.camera-editor-footer button {
 display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:45px;padding:7px 17px;
 color:var(--editor-accent);background:var(--editor-control);border:1px solid var(--editor-line);border-radius:12px;
 box-shadow:0 3px 8px #0002;font-size:14px;font-weight:750;
}
.camera-editor-footer [data-editor-save] {grid-column:2;min-width:135px;color:white;background:linear-gradient(color-mix(in srgb, var(--accent) 65%, black),color-mix(in srgb, var(--accent) 46%, black));border-color:var(--editor-accent)}
.camera-editor-footer [data-editor-save]:disabled {opacity:.64}
.camera-editor :focus-visible {outline:2px solid var(--editor-accent);outline-offset:2px}
.camera-editor .camera-sheet-field-grid {color:var(--fg)}
.camera-editor-sr {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
@media (max-width:900px) {
 .detail.camera-sheet.camera-editor-panel {width:min(642px,calc(100vw - 32px))}
}
@media (max-width:700px) {
 .map-workspace .detail.camera-sheet.camera-editor-panel.mobile-map-sheet:not([hidden]):not(.mobile-map-sheet-collapsed) {height:85dvh!important;max-height:85dvh!important}
 .camera-editor-head {padding:45px 12px 10px;min-height:0;gap:9px}
 .camera-editor-head h2 {font-size:18px}
 .camera-editor-head p {font-size:12px}
 .camera-editor-emblem {flex-basis:40px}
 .camera-editor-emblem img.badge {width:38px;height:45px}
 .camera-editor-body {padding:8px}
 .camera-editor-fields {padding:9px;gap:8px 10px}
 .camera-editor-fields label,.camera-editor-level legend,.camera-editor-coordinates {font-size:12px}
 .camera-editor-fields :is(input:not([type=radio]),select,output) {padding-inline:5px;font-size:13px}
 .camera-editor-fold > summary {font-size:15px}
 .camera-editor-footer {padding:8px 8px max(64px,env(safe-area-inset-bottom))}
 body.sidebar-collapsed :is(.camera-editor-head,.camera-editor-body,.camera-editor-footer) {padding-inline-start:26px}
 .camera-editor-footer > div {grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .camera-editor-footer button {padding:4px;gap:3px;font-size:12px;min-height:43px}
 .camera-editor-footer svg {width:15px;height:15px}
 .camera-editor-footer [data-editor-save] {grid-column:auto;min-width:0}
}
@media (max-width:380px) {
 .camera-editor-coordinates {grid-column:1/-1}
}
[data-theme="dark"] .camera-editor-panel { --editor-accent:color-mix(in srgb, var(--accent) 52%, white); }

.camera-recording-layout {
 container-type:inline-size;display:grid;grid-template-columns:minmax(0,56fr) minmax(0,44fr);
 align-items:start;gap:16px;
}
.camera-recording-controls {display:grid;gap:12px;min-width:0;padding-block:4px}
.camera-type-picker {
 --wheel-open:0;--wheel-folded-height:252px;--wheel-open-height:406px;
 --wheel-arc:color-mix(in srgb,var(--editor-control) 31%,white);
 --wheel-bright:color-mix(in srgb,var(--editor-control) 78%,white);
 --wheel-glow:color-mix(in srgb,var(--editor-accent) 19%,var(--editor-control));
 position:relative;min-width:0;color:var(--editor-accent);
}
.camera-type-stage {
 display:grid;grid-template-columns:minmax(0,1fr) 48px;min-width:0;align-items:center;
 height:calc(var(--wheel-folded-height) + (var(--wheel-open-height) - var(--wheel-folded-height))*var(--wheel-open));
 border:1px solid var(--editor-line);border-radius:15px;padding:8px;
 background:linear-gradient(137deg,var(--editor-surface),var(--editor-header));
 overflow:hidden;
}
.camera-type-track {
 grid-area:1/1 / 2/3;position:relative;min-width:0;height:100%;overflow:hidden;
 margin-inline-end:calc(48px*var(--wheel-open));isolation:isolate;
}
.camera-type-arc,.camera-type-focus {
 position:absolute;inset:1.5% 9%;border:3px solid var(--wheel-arc);border-radius:50%;
 pointer-events:none;opacity:var(--wheel-open);
}
.camera-type-arc::after {content:"";position:absolute;inset:3px;border:2px solid var(--wheel-arc);border-radius:inherit;opacity:.68}
.camera-type-focus {
 inset:27% 8%;border:2px solid var(--wheel-bright);
 background:radial-gradient(ellipse,var(--wheel-bright) 4%,var(--wheel-glow) 83%);
 box-shadow:0 0 28px -11px var(--wheel-glow);
}
.camera-type-wheel {
 position:absolute;inset:0;perspective:650px;touch-action:none;user-select:none;
 mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 79%,transparent);
}
.camera-type-wheel:focus-visible {outline-offset:-4px}
.camera-type-picker[data-type-state=closed] .camera-type-wheel {mask-image:none}
.camera-type-option {
 position:absolute;left:50%;top:50%;display:grid;justify-items:center;align-content:center;gap:5px;
 width:min(240px,77%);color:var(--editor-accent);font-size:clamp(17px,2.05cqw,23px);
 font-weight:800;line-height:1.08;text-align:center;overflow-wrap:anywhere;
 cursor:pointer;backface-visibility:hidden;
}
.camera-type-option[data-offstage] {visibility:hidden;pointer-events:none}
.camera-type-art {
 display:flex;align-items:center;justify-content:center;overflow:hidden;
 width:clamp(112px,18cqw,175px);height:clamp(91px,12cqw,132px);max-width:100%
}
.camera-type-art img {display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.camera-editor .camera-type-art svg {width:54px;height:54px;color:var(--editor-accent)}
.camera-type-caption {max-width:17ch;padding:0 2px 1px}
.camera-type-picker[data-type-state=closed] .camera-type-caption {max-width:20ch}
.camera-type-check {
 display:none;position:absolute;top:0;right:0;width:34px;height:34px;border:3px solid var(--wheel-bright);border-radius:50%;
 background:#1d8054;color:white;font-size:22px;line-height:28px;
}
.camera-type-option[data-front][aria-selected=true] .camera-type-check {display:block;opacity:var(--wheel-open)}
.camera-type-rail {
 grid-area:1/2;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:8px;opacity:var(--wheel-open)
}
.camera-type-rail[inert] {pointer-events:none}
.camera-type-dots {display:grid;justify-items:center;gap:4px;padding-block:4px}
.camera-type-dots i {width:4px;height:4px;border-radius:50%;background:var(--editor-accent);opacity:.45}
.camera-type-dots i[data-active] {width:11px;height:11px;border:2px solid var(--editor-accent);background:var(--wheel-bright);opacity:1}
.camera-editor .camera-type-rail button {
 width:39px;height:39px;border:1px solid var(--editor-line);border-radius:50%;
 display:grid;place-items:center;color:var(--editor-accent);background:var(--editor-surface);cursor:pointer;
 box-shadow:0 2px 7px #0001;
}
.camera-type-trigger>span,.camera-type-rail button::before {
 content:"";display:block;width:9px;height:9px;border:solid currentColor;border-width:0 2px 2px 0;
 transform:translateY(-2px) rotate(45deg);
}
.camera-type-rail [data-type-step="-1"]::before,.camera-type-trigger[aria-expanded=true]>span {transform:translateY(2px) rotate(225deg)}
.camera-editor .camera-type-trigger {
 position:absolute;z-index:3;inset:0;width:100%;display:flex;align-items:flex-end;justify-content:flex-end;
 padding:11px;border:0;border-radius:15px;color:var(--editor-accent);background:transparent;cursor:pointer;
}
.camera-editor .camera-type-trigger[hidden] {display:none}
.camera-type-picker:not([data-type-state=closed]) .camera-type-trigger {transition:color .2s}
@media(max-width:720px) {
 .camera-recording-layout {grid-template-columns:minmax(0,1fr)}
 .camera-type-picker {--wheel-folded-height:211px;--wheel-open-height:360px}
 .camera-type-art {width:122px;height:94px}
 .camera-type-option {font-size:18px}
 .camera-editor .camera-type-rail button {width:42px;height:42px}
}
@media(prefers-reduced-motion:reduce) {
 .camera-type-picker:not([data-type-state=closed]) .camera-type-trigger {transition:none}
}
