.sbe-open { overflow: hidden; }
.sbe-root, .sbe-root * { box-sizing: border-box; }
.sbe-root { color: #eaf2fc; font: 13px/1.5 Inter, 'Segoe UI', 'Microsoft YaHei', sans-serif; color-scheme: dark; }
.sbe-root [hidden] { display: none !important; }
.sbe-backdrop { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: #030912cb; }
.sbe-dialog { display: flex; flex-direction: column; width: min(1420px, 100%); height: min(940px, calc(100dvh - 32px)); border: 1px solid #3b5067; border-radius: 12px; overflow: hidden; background: #0e1a29; box-shadow: 0 28px 100px #0009; }
.sbe-dialog header, .sbe-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #b9cce224; }
.sbe-dialog header { flex-shrink: 0; }
.sbe-dialog footer { border: 0; border-top: 1px solid #b9cce224; }
.sbe-dialog h2 { margin: 5px 0 2px; font-size: 21px; font-weight: 650; line-height: 1.4; }
.sbe-dialog h3 { margin: 0 0 12px; color: #e6edf7; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.sbe-dialog h3 small { color: #93aac2; font-size: 10px; font-weight: 400; }
.sbe-dialog p { margin: 0; }
.sbe-dialog header small { color: #eeb95a; letter-spacing: 1px; font-size: 11px; }
.sbe-dialog header p { color: #93a6be; font-size: 12px; }
.sbe-dialog button { font: inherit; font-size: 12px; line-height: 1.3; border: 1px solid #48637e85; border-radius: 5px; background: #1a2b40; color: #dce8f7; padding: 8px 11px; cursor: pointer; }
.sbe-dialog button:hover { border-color: #edbb61; }
.sbe-dialog button:disabled { opacity: .4; cursor: default; }
.sbe-dialog button:focus-visible, .sbe-dialog input:focus-visible, .sbe-dialog select:focus-visible { outline: 2px solid #f4c56e; outline-offset: 2px; }
.sbe-dialog button.primary { background: #e7b054; border-color: #e7b054; color: #201608; font-weight: 700; }
.sbe-dialog header button { font-size: 24px; padding: 5px 13px; }
.sbe-dialog label { display: block; color: #aec0d6; font-size: 11px; margin: 0 0 10px; }
.sbe-dialog input, .sbe-dialog select { display: block; width: 100%; min-width: 0; font: inherit; font-size: 12px; padding: 8px; margin: 5px 0 0; border: 1px solid #3c526a; border-radius: 4px; background: #18283a; color: #edf5ff; }
.sbe-dialog input[type=range] { padding: 0; margin: 2px 0 8px; accent-color: #e6b35f; }
.sbe-dialog input[type=checkbox] { width: auto; display: inline-block; margin: 0; accent-color: #e6b35f; }
.sbe-source-lock { padding: 8px 24px; color: #edd39f; background: #89642f35; border-bottom: 1px solid #c797432b; font-size: 11px; }
.sbe-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: 215px minmax(0, 1fr) 285px; }
.sbe-layout > aside { padding: 19px 17px; overflow-y: auto; border-right: 1px solid #b9cce224; }
.sbe-layout > .sbe-inspector { border: 0; border-left: 1px solid #b9cce224; }
.sbe-reference img { width: 100%; height: 102px; object-fit: cover; border-radius: 5px; }
.sbe-reference strong { display: block; margin-top: 7px; font-size: 11px; line-height: 1.6; }
.sbe-reference small { font-size: 10px; color: #8199b4; }
.sbe-plan-wrap { margin: 12px 0 22px; background: #162639; border: 1px solid #ffffff10; border-radius: 5px; min-height: 76px; }
.sbe-plan { width: 100%; height: 92px; object-fit: contain; display: block; }
.sbe-no-plan { display: block; padding: 25px 10px; color: #94a8bd; text-align: center; font-size: 11px; }
.sbe-cast-row { display: flex; align-items: center; gap: 7px; margin: 9px 0; padding-bottom: 9px; border-bottom: 1px solid #ffffff0d; }
.sbe-cast-row img { width: 31px; height: 39px; object-fit: cover; border-radius: 4px; }
.sbe-cast-row span { flex: 1; min-width: 0; font-size: 11px; }
.sbe-cast-row button { padding: 5px 7px; }
.sbe-assets > h3 { margin-top: 20px; }
.sbe-assets > [data-crowd] { width: 100%; margin: 7px 0; border-style: dashed; }
.sbe-empty { font-size: 10px; color: #8da2b9; }
.sbe-previous { width: 100%; height: 110px; object-fit: contain; background: #070e17; border-radius: 5px; margin-bottom: 6px; }
.sbe-stage { display: flex; flex-direction: column; min-width: 0; overflow: auto; padding: 18px; }
.sbe-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.sbe-toolbar > div { display: flex; gap: 5px; }
.sbe-view-tabs button[aria-pressed=true] { background: #bd8c3b2b; border-color: #be9656; color: #f4cc83; }
.sbe-canvas-wrap { flex: 1; display: grid; place-items: center; min-height: 0; overflow: hidden; background: #080f1a; border: 1px solid #344b62; border-radius: 6px; padding: 8px; }
.sbe-board { position: relative; width: min(100%, calc((100dvh - 325px) * var(--sbe-aspect, 1))); aspect-ratio: var(--sbe-aspect, 1); background: #152739; overflow: hidden; touch-action: none; border: 1px solid #ffffff13; }
.sbe-background { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: fill; opacity: .7; pointer-events: none; }
.sbe-board.has-grid:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#c2ddff20 1px,transparent 1px),linear-gradient(#c2ddff20 1px,transparent 1px); background-size: 10% 10%; pointer-events: none; }
.sbe-geometry { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sbe-cone { fill: #f6c16424; stroke: #f6c16490; stroke-width: .3; }
.sbe-axis-line { stroke: #71d4deaa; stroke-width: .4; stroke-dasharray: 1.5 1; }
.sbe-aim-line { stroke: #fbd284; stroke-width: .35; }
.sbe-markers { position: absolute; inset: 0; pointer-events: none; }
.sbe-dialog .sbe-marker { pointer-events: auto; position: absolute; width: 43px; height: 43px; padding: 0; border-radius: 50%; border: 2px solid #56d0f1; background: #1c3d56; transform: translate(-50%,-50%); z-index: 3; box-shadow: 0 3px 10px #0008; touch-action: none; }
.sbe-marker img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: .6; }
.sbe-marker span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 13px; }
.sbe-marker small { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); font: 10px/1.4 'Microsoft YaHei',sans-serif; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: #f1f6ff; text-shadow: 0 1px 4px #000; }
.sbe-marker i { position: absolute; inset: -10px; pointer-events: none; }
.sbe-marker i:before { content: ''; position: absolute; left: calc(50% - 5px); top: -3px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid #79e6ff; }
.sbe-dialog .sbe-marker.is-selected { border-color: #ffd48d; box-shadow: 0 0 0 3px #f6c56d40; }
.sbe-dialog .sbe-camera { width: 35px; height: 35px; background: #d9a54e; border-color: #ffdea0; }
.sbe-camera span { color: #24190c; }
.sbe-dialog .sbe-crowd { border-color: #c2a1fb; background: #655185; }
.sbe-dialog .sbe-aim { position: absolute; transform: translate(-50%,-50%); border-radius: 20px; padding: 4px 7px; color: #271a05; background: #f4c671; border-color: #ffe5b6; z-index: 4; font-size: 9px; touch-action: none; }
.sbe-stage-footer { display: flex; justify-content: space-between; gap: 10px; color: #a4b9cf; font-size: 10px; margin: 10px 0 7px; }
.sbe-framing-notice { margin: 4px 0 8px; padding: 8px 10px; border: 1px solid #e5ac5050; border-radius: 5px; background: #e5ac5012; color: #f1ca89; font-size: 11px; line-height: 1.6; }
.sbe-help { display: block; font-size: 10px; color: #839bb5; line-height: 1.6; }
.sbe-inspector > section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #b9cce21c; }
.sbe-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sbe-number { display: flex; align-items: center; position: relative; }
.sbe-number input { padding-right: 27px; }
.sbe-number em { position: absolute; right: 9px; top: 12px; color: #8099b4; font-size: 10px; font-style: normal; pointer-events: none; }
.sbe-presets, .sbe-faces { display: flex; gap: 5px; margin: 10px 0; }
.sbe-presets button, .sbe-faces button { flex: 1; padding: 7px 4px; }
.sbe-faces button[aria-pressed=true] { border-color: #f2c171; color: #f2c171; }
.sbe-actor-facing { margin: 10px 0 6px; padding: 9px; border: 1px solid #ffffff12; border-radius: 5px; background: #0b1624; }
.sbe-actor-facing label { margin-bottom: 8px; }
.sbe-crowd-fields { margin-top: 12px; }
.sbe-inherit-box label { margin-bottom: 7px; }
.sbe-inherit-note { color: #839bb5; font-size: 10px; margin-top: 9px !important; }
.sbe-preview { position: relative; width: 100%; aspect-ratio: 16/9; background: #111e2f; overflow: hidden; }
.sbe-preview-background { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: blur(2px); }
.sbe-figures { position: absolute; inset: 0; overflow: hidden; }
.sbe-silhouette { position: absolute; width: 15%; transform: translateX(-50%); }
.sbe-silhouette i { display: block; position: absolute; width: 35%; height: 24%; left: 32.5%; top: 0; border-radius: 50%; background: #69c8e7; border: 1px solid #c3effa; }
.sbe-silhouette b { display: block; position: absolute; width: 74%; height: 73%; left: 13%; top: 27%; border-radius: 35% 35% 5% 5%; background: linear-gradient(#5495b0,#233c54); border: 1px solid #a9d9e1; }
.sbe-silhouette span { position: absolute; top: 40%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; color: #f9fcff; text-shadow: 0 1px 4px #000; }
.sbe-preview-caption { position: absolute; bottom: 10px; left: 12px; color: #f5cd8a; font-size: 11px; }
.sbe-preview-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #a4b9ce; font-size: 12px; }
.sbe-status { color: #9ab0c8; font-size: 11px; }
.sbe-status.is-error { color: #ff9999; }
.sbe-dialog footer > div { display: flex; flex-shrink: 0; gap: 8px; }
@media (max-width: 1100px) { .sbe-layout { grid-template-columns: 180px minmax(0,1fr) 245px; } .sbe-layout > aside { padding: 15px 12px; } .sbe-stage { padding: 14px 10px; } .sbe-toolbar { flex-wrap: wrap; } }
@media (max-width: 800px) { .sbe-layout { grid-template-columns: 165px minmax(0,1fr); overflow: auto; } .sbe-stage { overflow: visible; } .sbe-layout > .sbe-inspector { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid #b9cce224; overflow: visible; } .sbe-board { width: 100%; } .sbe-canvas-wrap { min-height: 280px; } .sbe-dialog h2 { font-size: 17px; } }
@media (max-width: 550px) { .sbe-backdrop { padding: 5px; } .sbe-dialog { height: calc(100dvh - 10px); border-radius: 7px; } .sbe-dialog header, .sbe-dialog footer { padding: 12px; } .sbe-dialog header { gap: 6px; } .sbe-dialog h2 { font-size: 15px; } .sbe-dialog header small { font-size: 9px; } .sbe-source-lock { padding: 8px 12px; font-size: 10px; } .sbe-layout { display: block; } .sbe-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .sbe-assets > label { grid-column: 1/-1; } .sbe-assets .sbe-plan-wrap { margin: 0; } .sbe-assets .sbe-reference strong { font-size: 10px; } .sbe-assets > h3 { grid-column: 1/-1; margin: 5px 0 0; } .sbe-assets > [data-crowd] { grid-column: 1/-1; } .sbe-cast-row { flex-wrap: wrap; } .sbe-layout > .sbe-inspector { display: block; } .sbe-dialog footer { display: block; } .sbe-dialog footer > div { margin-top: 8px; justify-content: flex-end; flex-wrap: wrap; } .sbe-canvas-wrap { min-height: 300px; } .sbe-stage-footer { flex-wrap: wrap; } }
