.restream-intro,.restream-target-heading,.restream-source-body,.restream-entry-top,.restream-entry-bottom,.restream-target-stats{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.restream-protocol-tabs button.primary{background:#fbba00;color:#111;border-color:#fbba00}
.restream-intro{margin:0 0 1.5rem}.restream-intro>p{max-width:680px;margin:0}.restream-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}
.restream-input{display:flex;flex-direction:column;gap:.65rem;align-items:stretch;text-align:left;border:1px solid var(--line,#33323b);border-radius:16px;padding:1.25rem;background:var(--surface,#19191e);color:inherit;cursor:pointer;min-width:0;transition:border-color .15s,background .15s}
.restream-input:hover,.restream-input:focus-visible{border-color:#fbba00}.restream-input.selected{border-color:#fbba00;background:rgba(251,186,0,.055);box-shadow:inset 0 0 0 1px #fbba00}.restream-input strong{font-size:1rem;overflow-wrap:anywhere}.restream-number{font-size:.8rem;letter-spacing:.12em;color:#fbba00}.restream-entry-bottom{font-size:.75rem;color:var(--muted,#aaa);padding-top:.6rem;border-top:1px solid var(--line,#33323b)}
.restream-source{border-left:3px solid #fbba00}.restream-source h2{margin:.25rem 0}.restream-source .eyebrow{margin:0}.restream-format{font-size:1.05rem;font-weight:600;margin:.4rem 0}.restream-source-body>div:first-child{min-width:0}.restream-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.restream-target-heading{margin:2rem 0 1rem}.restream-target-heading h2{margin:.3rem 0;font-size:1.2rem}.restream-target-heading .eyebrow{margin:0}
.restream-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.restream-target{display:flex;flex-direction:column;min-width:0}.restream-target h3{margin:0;font-size:1.1rem}.restream-protocol{font-size:.8rem;color:#fbba00;margin:.25rem 0 .65rem}.restream-address{font-family:monospace;font-size:.85rem;overflow-wrap:anywhere;margin:.2rem 0 1rem}.restream-audio-tag{font-size:.82rem;background:rgba(255,255,255,.04);padding:.65rem .75rem;border-radius:8px}.restream-target-stats{padding:1.1rem 0;font-size:.78rem;color:var(--muted,#aaa)}.restream-target-stats strong{font-size:1.1rem;color:var(--text,#eee)}.restream-target>.restream-actions{margin-top:auto;padding-top:.6rem}
.restream-empty{grid-column:1/-1;text-align:center;padding:2.5rem;display:flex;flex-direction:column;align-items:center;gap:.5rem}.restream-empty>div{font-size:2rem;color:#fbba00}.restream-empty h3{margin:.5rem 0}.restream-empty p{max-width:450px}.restream-history{margin-top:1.5rem}.restream-history summary{cursor:pointer;color:var(--muted,#aaa);font-size:.85rem}.restream-protocol-tabs{display:flex;gap:.5rem;margin:1rem 0}.restream-copy-row{display:flex;align-items:flex-end;gap:.75rem;margin:1rem 0}.restream-copy-row>label{flex:1;min-width:0}.restream-copy-row>button{flex-shrink:0;margin-bottom:1px}.restream-copy-row input{width:100%;font-family:monospace;font-size:.85rem}.restream-audio-choice{border:1px solid var(--line,#33323b);border-radius:12px;padding:1rem;margin:.5rem 0}.restream-audio-choice legend{padding:0 .4rem;font-weight:600;font-size:.9rem}.restream-channel-grid{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;margin:.75rem 0;max-height:230px;overflow:auto}.restream-channel-grid .user-area-check{padding:.4rem;margin:0;font-size:.8rem}.restream-loading{min-height:180px}.restream-source-body .muted{font-size:.85rem}
@media(max-width:1000px){.restream-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.restream-source-body{align-items:flex-start;flex-direction:column}.restream-intro{align-items:flex-start;flex-direction:column}.restream-targets{grid-template-columns:1fr}}
@media(max-width:560px){.restream-input{padding:.9rem;gap:.5rem}.restream-inputs{gap:.65rem}.restream-entry-bottom{align-items:flex-start;flex-direction:column;gap:.25rem}.restream-source{padding:1rem}.restream-target-heading{align-items:flex-start}.restream-target-heading h2{font-size:1rem}.restream-copy-row{align-items:stretch;flex-direction:column;gap:.4rem}.restream-copy-row>button{align-self:flex-end}.restream-channel-grid{grid-template-columns:1fr}.restream-empty{padding:1.5rem}.restream-target .panel-head{align-items:flex-start;gap:.65rem}.restream-target .panel-head h3{max-width:55%;overflow-wrap:anywhere}}

.restream-confidence{display:grid;grid-template-columns:minmax(230px,1fr) minmax(300px,1.3fr);gap:1.5rem;align-items:start}.restream-picture img,.restream-no-preview{width:100%;aspect-ratio:16/9;object-fit:contain;background:#09090c;border-radius:10px}.restream-no-preview{display:grid;place-items:center;color:var(--muted,#aaa);font-size:.85rem}.restream-no-preview[hidden]{display:none}.restream-picture img[hidden]{display:none}.restream-levels{display:grid;grid-template-columns:1fr 1fr;gap:.4rem 1rem}.restream-level{display:grid;grid-template-columns:1.5rem minmax(45px,1fr) 5rem;align-items:center;gap:.4rem;font-size:.72rem}.restream-level meter{width:100%;height:15px;accent-color:#fbba00}.restream-level small{text-align:right;font-size:.65rem;font-variant-numeric:tabular-nums}.restream-level.unavailable{opacity:.35}.restream-level.peak small{color:#ff8275}.restream-listen-controls{display:flex;align-items:end;flex-wrap:wrap;gap:.7rem;margin-top:1.2rem}.restream-listen-controls label{margin:0;min-width:120px;flex:1}.restream-listen-controls select{width:100%}#rs-custom-pair{display:flex;gap:.5rem;width:100%}#rs-custom-pair[hidden]{display:none}.restream-audio{width:100%;margin:.6rem 0}
@media(max-width:1100px){.restream-confidence{grid-template-columns:1fr}.restream-picture{max-width:640px}.restream-levels{gap:.5rem 1rem}}
@media(max-width:560px){.restream-levels{grid-template-columns:1fr}.restream-level{grid-template-columns:1.5rem 1fr 5rem}.restream-listen-controls{align-items:stretch;flex-direction:column}.restream-listen-controls label{width:100%}}

.restream-picture{position:relative}.restream-wait{display:flex;align-items:center;gap:.5rem}.restream-wait:before{content:"";display:inline-block;width:.8rem;height:.8rem;flex:0 0 .8rem;border:2px solid #fbba0040;border-top-color:#fbba00;border-radius:50%;animation:restream-spin .8s linear infinite}.restream-wait[hidden]{display:none}#rs-preview-loading{position:absolute;z-index:1;top:.6rem;left:.6rem;background:#101015de;padding:.4rem .6rem;border-radius:6px;font-size:.75rem}@keyframes restream-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.restream-wait:before{animation:none}}

.restream-picture canvas{display:block;width:100%;aspect-ratio:16/9;background:#09090c;border-radius:10px}.restream-picture canvas[hidden]{display:none}
