.performance-share {
  --share-ink: #f5f1e7; --share-muted: #adb6c8; --share-line: #c9dbff25;
  width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 24px; border: 1px solid #cbdeff38; border-radius: 22px;
  color: var(--share-ink); background: linear-gradient(135deg, #18263bf5, #0c1220fa);
  box-shadow: 0 28px 100px #0008; backdrop-filter: blur(22px); overflow: auto; overscroll-behavior: contain;
}
.performance-share::backdrop { background: #030713c9; backdrop-filter: blur(7px); }
.performance-share [hidden] { display: none !important; }
.performance-share * { box-sizing: border-box; }
.performance-share header { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.performance-share h2 { margin: 6px 0 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.15; font-weight: 550; }
.performance-share .section-label { color: #8fd5eb; font-size: 10px; letter-spacing: .14em; }
.performance-share button, .performance-share .share-upload { min-height: 38px; padding: 8px 14px; border: 1px solid #bcd0f43b; border-radius: 10px; background: #c6d8fb08; color: var(--share-ink); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.performance-share button:hover, .performance-share .share-upload:hover { background: #c6d8fb16; }
.performance-share button:disabled { opacity: .4; cursor: default; }
.performance-share :is(button, a, select, input, textarea):focus-visible { outline: 2px solid #6adaf5; outline-offset: 3px; }
.performance-share .share-primary { background: #f5f1e7; color: #121b2b; border-color: #f5f1e7; font-weight: 650; }
.performance-share .share-primary:hover { background: #fff; }
.share-composer { display: grid; grid-template-columns: minmax(180px, .78fr) minmax(0, 1.22fr); gap: 28px; align-items: start; }
.share-picture { aspect-ratio: 9 / 16; background: #050a13; border: 1px solid var(--share-line); border-radius: 16px; overflow: hidden; width: 100%; max-width: 280px; margin-inline: auto; }
.share-picture :is(canvas, video) { display: block; width: 100%; height: 100%; object-fit: contain; }
.share-preview-label { font-size: 11px; text-align: center; color: var(--share-muted); margin: 10px 0; }
.share-controls { min-width: 0; display: grid; gap: 16px; }
.share-control-label { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; }
.share-controls label { font-size: 13px; }
.share-controls select { background: #19283e; color: var(--share-ink); border: 1px solid #afcce03d; border-radius: 8px; padding: 7px 10px; font: inherit; }
.share-controls input[type=range] { width: 100%; accent-color: #5bd5f2; display: block; margin: 12px 0 6px; }
.share-controls input[type=checkbox] { accent-color: #5bd5f2; width: 16px; height: 16px; min-height: 16px; margin: 0 8px 0 0; vertical-align: middle; }
.share-controls p, .share-controls output { color: var(--share-muted); font-size: 12px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.share-controls .share-options label { display: flex; align-items: center; gap: 0; }
.share-controls .share-options { display: flex; gap: 18px; flex-wrap: wrap; }
.share-controls .share-audio-copy { margin-top: -7px; }
.share-action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#share-progress { accent-color: #5bd5f2; width: 100%; height: 5px; display: block; }
#share-status { min-height: 2.6em; color: #c3d4e8; }
.share-ready { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--share-line); }
.share-caption-wrap { display: grid; gap: 8px; border-top: 1px solid var(--share-line); padding-top: 16px; }
.share-controls textarea, .share-controls input[type=text] { width: 100%; min-width: 0; color: var(--share-ink); background: #070f1b6b; border: 1px solid var(--share-line); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 12px; line-height: 1.5; }
.share-controls textarea { resize: vertical; min-height: 90px; }
.share-link-row { display: grid; gap: 8px; }
.share-controls .share-privacy { border-top: 1px solid var(--share-line); padding-top: 12px; color: #ced8e9; }
@media (max-width: 580px) {
  .performance-share { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 17px; border-radius: 16px; }
  .performance-share header { gap: 10px; margin-bottom: 18px; }
  .performance-share header button { flex: none; padding-inline: 10px; }
  .share-composer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .share-picture { max-width: 198px; }
  .share-controls { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .performance-share, .performance-share::backdrop { scroll-behavior: auto; } }

.share-mix {display: grid; gap: 13px; padding-block: 15px; border-block: 1px solid var(--share-line);}
.share-mix-levels {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px;}
.share-voice-levels {display: contents;}
.share-mix-fader {display: grid; min-width: 0; gap: 3px;}
.share-mix-fader>span {display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px;}
.share-mix-fader output {font-size: 10px; font-variant-numeric: tabular-nums;}
.share-controls .share-mix-fader input {margin: 6px 0; height: 4px; accent-color: #b4e6d7;}
.share-mix-fader:has(input:disabled) {opacity: .4;}
.share-controls .share-mix .share-audio-copy {margin: 0; font-size: 11px;}
