.echo-device {
  position:relative; isolation:isolate; padding:3.5% 3.1% 4%; background:linear-gradient(160deg,#363738 0%,#151618 10%,#101113 90%,#343638);
  border:1px solid #313337; border-radius:clamp(16px,2.2vw,32px);
  box-shadow:inset 0 0 0 2px #4b4c4d,0 5px 0 -2px #383a3b,0 10px 12px -9px #0007;
}
.echo-device::before {content:"";position:absolute;top:1.4%;right:9%;width:1%;aspect-ratio:1;border-radius:50%;background:#292f40;box-shadow:0 0 0 1px #101112;}
#echo-slot { width:100%; aspect-ratio:16/10; }
.echo-screen { container-type:inline-size; width:100%;height:100%; border-radius:2px; overflow:hidden; background:#0d1927;color:#f6f8fa;font-family:"Segoe UI",Arial,sans-serif; color-scheme:dark; }
.echo-ui { display:flex;flex-direction:column;height:100%;padding:3.1% 7% 3%;box-sizing:border-box; }
.echo-brand { color:#a0f1dd; font-weight:700; font-size:2.1cqw; letter-spacing:.015em; line-height:1.2; }
.echo-screen h2 { font:700 5cqw/1.08 "Segoe UI",Arial,sans-serif;letter-spacing:-.025em;margin:.7% 0; }
.echo-sub,.echo-source,.echo-state { font-size:2.55cqw;line-height:1.25;color:#b5c9d9;margin:.4% 0 1.6%; }
.echo-body { flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6d8c9b #0d1927; }
.echo-choice,.echo-field,.echo-link { display:block;width:100%;text-align:left;border:0;border-radius:1.1cqw;padding:1.35% 2.7%;margin:0 0 1%;background:#1b3446;color:#f6f8fa;font:600 2.7cqw/1.23 "Segoe UI",Arial,sans-serif;text-decoration:none; }
.echo-choice:first-child.primary {background:#a0f1dd;color:#0d1927;}
.echo-choice:hover,.echo-link:hover {background:#284d63;}
.echo-choice:active { filter:brightness(.84); }
.echo-screen :focus-visible { outline:2px solid #ffde9b;outline-offset:-2px; }
.echo-back { align-self:flex-start;margin-top:1%;padding:1% 0 0;border:0;background:none;color:#a0f1dd;font:bold 2.55cqw/1.25 "Segoe UI",sans-serif; }
.echo-copy {font-size:2.7cqw;line-height:1.38;margin:1% 0 2%;}
.echo-field {border:1px solid #7094a8;}
.echo-caption {display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap;}
.echo-caption button {background:none;border:0;padding:.4rem .1rem;color:inherit;text-decoration:underline;cursor:pointer;font:inherit;}
.echo-invite { margin:0 0 .7rem; line-height:1.35; font-size:.98rem; }
.echo-invite strong { display:block; font-size:1.35rem; letter-spacing:-.035em; margin-bottom:.14rem; }
.echo-home { width:100%; height:100%; position:relative; }
.echo-home > * { position:absolute; box-sizing:border-box; }
.echo-station-logo { object-fit:contain; }
.echo-menu-label,.echo-menu-choice { display:flex; align-items:center; line-height:1; white-space:nowrap; font-family:inherit; }
.echo-menu-choice { border:0; margin:0; text-align:left; cursor:pointer; }
.echo-menu-choice:hover { filter:brightness(1.18); box-shadow:inset 0 0 0 2px #b3f2e2; }
.echo-menu-choice:active { filter:brightness(.87); }
.echo-brand { display:flex; align-items:center; gap:.8cqw; }
.echo-brand::before { content:""; width:4.2cqw; height:4.2cqw; flex:none; background:url("../clientes/capdepera.svg") center/contain no-repeat; }
#echo-dialog { position:fixed;padding:0;border:0;margin:auto;width:min(90vw,920px,147vh);max-width:100vw;max-height:96dvh;background:transparent;overflow:auto;color:white; }
#echo-dialog::backdrop {background:rgba(10,15,18,.87);}
.echo-shell {background:#171c20;border:1px solid #414548;border-radius:1.2rem;padding:clamp(8px,1.7vw,22px);}
#echo-large-slot {aspect-ratio:16/10;}
#echo-close {display:block;margin:.55rem 0 0 auto;padding:.5rem .75rem;border:0;background:transparent;color:white;font:600 .95rem/1.2 system-ui;}
.echo-transport {margin:1% 0 2%;width:100%; height:4cqw;accent-color:#a0f1dd;}
.echo-screen label {display:block;font-size:2.65cqw;color:#d2e6ed;}
@media(max-width:740px) {
 #echo-dialog {width:min(97vw,147vh);}
 #echo-large-slot {aspect-ratio:auto;height:min(70dvh,490px);min-height:210px;}
 #echo-large-slot:has(.echo-home:not([hidden])) {aspect-ratio:16/10;height:auto;min-height:0;}
 #echo-dialog .echo-brand {font-size:clamp(.7rem,2cqw,.95rem);}
 #echo-dialog .echo-screen h2 {font-size:clamp(1.4rem,5cqw,2rem);margin:6px 0;}
 #echo-dialog .echo-sub,#echo-dialog .echo-state,#echo-dialog .echo-source {font-size:.86rem;}
 #echo-dialog .echo-copy,#echo-dialog .echo-screen label {font-size:.95rem;}
 #echo-dialog .echo-choice,#echo-dialog .echo-link,#echo-dialog .echo-field,#echo-dialog .echo-back {font-size:.96rem;min-height:44px;margin-bottom:4px;}
 #echo-dialog .echo-ui {padding:4%;}
}
@media (max-height:500px) and (orientation:landscape) {
 #echo-large-slot {height:72dvh;min-height:0;aspect-ratio:auto;}
}

.echo-actions {display:flex;align-items:center;gap:1rem 1.3rem;flex-wrap:wrap;}
