.p360-brand-panel{border:1px solid rgba(212,169,96,.4);border-radius:16px;padding:16px;margin:15px 0;background:linear-gradient(135deg,#112a43,#102138);color:#fff}
.p360-brand-panel h3{margin:0 0 8px;color:#f3c57b}
.p360-brand-panel p,.p360-brand-panel small{color:#d6e1ee;font-size:13px;line-height:1.5}
.p360-brand-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.p360-brand-grid label{display:grid;min-width:0;gap:7px;color:#f8e1b7;font-weight:700;font-size:13px}
.p360-brand-grid input{font-size:13px;min-width:0;max-width:100%;color:#e7edf6}
.p360-brand-grid button{min-height:38px}
.p360-brand-panel #brandFinishStatus[data-error=true]{color:#ffb6a8}
.p360-brand-export{margin:18px 0;padding:16px;border:1px solid #d8ba80;border-radius:14px;background:#f2f6f9;color:#153049}
.p360-brand-export h3{margin:0 0 8px}.p360-brand-export p{font-size:13px;line-height:1.45}.p360-brand-export button{margin-bottom:8px}
.p360-brand-result a{display:inline-block;text-decoration:none;margin:8px 0}
@media(max-width:600px){.p360-brand-grid{grid-template-columns:1fr}.p360-brand-grid button{width:100%}.p360-brand-panel{padding:12px}}

.p360-brand-choices{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:12px 0}.p360-brand-choices label{display:flex;gap:9px;align-items:center;color:#f6e3c1;font-size:13px}.p360-brand-choices select{background:#071b32;color:#fff;border:1px solid #56708c;border-radius:7px;padding:8px}.p360-brand-choices input{accent-color:#e6b76a}.p360-export-options{color:#3b5471;font-weight:600}
@media(max-width:600px){.p360-brand-choices{align-items:stretch;flex-direction:column}.p360-brand-choices label{justify-content:space-between}.p360-brand-choices select{min-width:0}}

.p360-brand-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.p360-brand-identity label{min-width:0;display:grid;gap:6px;font-size:13px;color:#f8e1b7;font-weight:600}.p360-brand-identity input:not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;border-radius:7px;border:1px solid #678199;background:#071b32;color:#fff;padding:9px;font:inherit}.p360-brand-identity input[type=color]{height:39px;padding:3px}.p360-brand-identity .p360-brand-check{display:flex;align-items:center;gap:8px}.p360-brand-preview-wrap{margin:12px 0;display:grid;gap:6px;justify-items:start}.p360-brand-preview-wrap canvas{display:block;width:min(100%,480px);height:auto;border:1px solid #60798f;border-radius:9px;aspect-ratio:16/9}.p360-brand-preview-wrap small{margin:0}.p360-brand-result video{width:100%}@media(max-width:600px){.p360-brand-identity{grid-template-columns:1fr}}

/* Export scene options: responsive and useful at phone widths. */
.p360-brand-build{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.p360-brand-build label{min-width:0;display:grid;gap:6px;color:#f8e1b7;font-weight:600;font-size:13px}
.p360-brand-build select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #607f96;background:#071b32;color:#fff;border-radius:7px;padding:9px;line-height:1.3;font-size:13px}
.p360-brand-preview-wrap canvas{max-height:410px;width:auto;max-width:100%;object-fit:contain;aspect-ratio:auto}
@media(max-width:650px){.p360-brand-build{grid-template-columns:1fr}.p360-brand-preview-wrap canvas{max-height:360px}}

.p360-guide-toggle{display:flex;align-items:center;gap:8px;font-size:13px;color:#d8e5ef}.p360-guide-toggle input{accent-color:#f3c57b}

/* Clip desk - actual source previews, precise clip in/out and source audio levels */
.p360-clip-editor{margin:14px 0;padding:14px;border:1px solid #557b94;border-radius:12px;background:#071b30}
.p360-clip-editor h4{font-size:15px;margin:0 0 6px;color:#ffe0ac}
.p360-clip-editor p{margin:0 0 12px}
.p360-clip-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.p360-clip-section{border:1px solid #304f67;border-radius:10px;background:#0a2238;padding:12px;display:grid;gap:10px;min-width:0}
.p360-clip-section b{color:#dff7fc;font-size:14px}
.p360-clip-section video{width:100%;height:auto;max-height:215px;aspect-ratio:16/9;object-fit:contain;background:#030b14;border:1px solid #314961;border-radius:8px}
.p360-clip-section video:not([src]){opacity:.45}
.p360-clip-time-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.p360-clip-section label,.p360-main-volume label{color:#d6e6f5;display:grid;gap:6px;font-size:13px;min-width:0}
.p360-clip-time-row input{min-width:0;width:100%;padding:9px;background:#061423;border:1px solid #506d81;border-radius:7px;color:#fff}
.p360-clip-actions{display:flex;gap:8px;flex-wrap:wrap}
.p360-clip-actions .btn{font-size:11px;flex:1 1 145px;padding:9px 6px;white-space:normal}
.p360-clip-section input[type=range],.p360-main-volume input[type=range]{width:100%;accent-color:#55d9d0}
.p360-clip-editor output{font-weight:750;color:#6be4d8}
.p360-clip-editor [data-error=true]{color:#ffaba8}
.p360-clip-section small{min-height:20px}
.p360-main-volume{padding:11px 4px 4px}
.p360-timeline-summary{padding:10px;border-radius:8px;border:1px solid #417d83;background:#0e343c;color:#c8fff6;font-size:13px;line-height:1.5;margin:8px 0}
@media(max-width:750px){.p360-clip-editor-grid{grid-template-columns:1fr}.p360-clip-editor{padding:10px}.p360-clip-section{padding:10px}.p360-clip-section video{max-height:260px}}

/* True viewport-sized editing workspace, outside the narrow 300px recorder sidebar. */
.p360-clip-launch{display:grid;gap:8px;justify-items:start;margin:12px 0;padding:10px 0;border-top:1px solid #425a70;border-bottom:1px solid #425a70}
.p360-clip-launch .btn{width:100%;white-space:normal}
.p360-clip-dialog{position:fixed;margin:auto;box-sizing:border-box;width:min(95vw,940px);max-width:95vw;max-height:90dvh;overflow-y:auto;padding:12px;border:1px solid #5b8798;background:#07192b;color:#f5f7fc;border-radius:16px;box-shadow:0 30px 100px #000e}
.p360-clip-dialog::backdrop{background:rgba(0,5,16,.8);backdrop-filter:blur(3px)}
.p360-clip-dialog-top{position:sticky;top:-12px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#07192bf2;padding:11px 8px;border-bottom:1px solid #496f88}
.p360-clip-dialog-top b{font-size:15px;color:#f3d5a8}
.p360-clip-dialog .p360-clip-editor{margin:10px 0;border:0;background:transparent;padding:6px}
.p360-clip-dialog .p360-clip-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.p360-clip-dialog .p360-clip-section video{max-height:230px}
@media(max-width:700px){.p360-clip-dialog{max-height:94dvh;padding:8px}.p360-clip-dialog-top{top:-8px}.p360-clip-dialog .p360-clip-editor-grid{grid-template-columns:1fr}.p360-clip-dialog .p360-clip-section video{max-height:200px}}
