:root {
  --red:#a52119; --ink:#26221f; --gold:#edbc73; --line:#e6d8cb;
  --display:"Barlow Condensed",Impact,sans-serif;
  font-family:"DM Sans",system-ui,sans-serif; background:#faf6ee; color:var(--ink);
}
body{min-height:100dvh;background:linear-gradient(120deg,#fffcf8f7,#f5f2edf5),url(assets/cuero.webp) center/400px}

header{padding:10px max(4vw,calc((100vw - 1160px)/2));min-height:82px;gap:16px;background:#faf7f6;border:0;border-bottom:1px solid var(--line)}
header img{width:94px;height:58px}header>div{padding-left:17px;border-left:1px solid #dacabb}
header small{font-size:.61rem;letter-spacing:.19em;color:#6d4833}
h1,h2,.station-banner strong,.cover-caption p{font-family:var(--display);letter-spacing:-.025em}
header h1{font-size:1.9rem;line-height:1;color:var(--ink);text-transform:uppercase}
header h1 em{color:var(--red);font-style:normal}
main,main:has(#desk:not([hidden])){max-width:1200px;padding:clamp(16px,3vw,40px) 20px;margin:auto}
button,.button{font-family:inherit;color:var(--ink);border-radius:12px;border-color:var(--line);transition:background-color .15s,box-shadow .15s}
button:hover,.button:hover{background:#f7eddd}
button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,.tools:has(#file:focus-visible) label{outline:3px solid #a54e17;outline-offset:3px}
button.primary,nav button[aria-pressed=true]{background:var(--red);border-color:var(--red);color:white}
button.primary:hover,nav button[aria-pressed=true]:hover{background:#872015}
#access{max-width:none;margin:2vh auto;padding:0;display:grid;grid-template-columns:1.12fr 1fr;overflow:hidden;border-radius:24px;box-shadow:0 12px 40px #6040200d}
.cover,.station-banner{position:relative;isolation:isolate;overflow:hidden;background-color:#321c17;background-image:url(assets/cabina-cuero.webp);background-size:cover;background-position:68% center}
.cover{min-height:560px}
.cover:before,.station-banner:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#23130eda,transparent 55%)}
.cover-caption{position:absolute;left:8%;bottom:7%;color:#fff8ec}
.cover-caption span,.station-banner span{font-size:.71rem;text-transform:uppercase;font-weight:700;letter-spacing:.14em;color:#ffe3a6}
.cover-caption p{margin:.18em 0 0;font-size:clamp(4rem,7.3vw,6.4rem);font-weight:800;line-height:.83;text-transform:uppercase}
.cover-caption em{color:#f4c9b8}
.entry{align-self:center;padding:clamp(24px,4vw,64px)}
.entry h2{font-size:clamp(2.9rem,4.4vw,4.5rem);line-height:.98;text-transform:uppercase}.entry h2 span{color:#cf4b23}
.entry>p{color:#6c5548;line-height:1.55;margin:.85rem 0 1.6rem}
input,textarea{color:var(--ink);border:1px solid #ccbbab;border-radius:10px;background:#fffcf8}
.entry input{min-height:48px;background:#fffdf9}
#listener button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 17px}
#listener button:after{content:"→";font-size:1.3rem;line-height:1}
#staffAccess{margin-top:1.55rem;border-top:1px solid var(--line);padding-top:1rem}
summary{font-weight:600;color:#70442e;cursor:pointer;font-size:.9rem}
.station-banner{border-radius:17px;background-image:linear-gradient(90deg,#27140ffa,transparent 85%),url(assets/cabina-cuero.webp);background-size:cover;background-position:center,center 52%;padding:19px 26px;color:#fff9f4}
.station-banner:before{background:transparent}
.station-banner strong{display:block;font-size:clamp(2rem,3.5vw,3rem);line-height:1;font-weight:800;text-transform:uppercase}
nav{gap:.45rem;margin:1rem 0}nav button{border-radius:24px;padding:.5rem 1.05rem}
#workspace:has(#desk:not([hidden])){gap:0;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:white;align-items:stretch}
#desk,#workspace article{box-shadow:none}
#desk{padding:1.2rem;border-radius:0;border:0;border-right:1px solid var(--line)}
#desk h2{font:700 1.55rem var(--display);text-transform:uppercase}
#filterChats{font-size:.88rem;border-color:#e9dfd3;background:#fbf8f2}
#roomList button{border:0;border-radius:10px;margin:.18rem 0;min-height:54px;justify-content:flex-start}
#roomList button:before{content:attr(data-initial);display:grid;flex:none;place-items:center;width:32px;height:32px;border-radius:50%;background:#ead8c3;color:#63321e;font:700 .9rem "DM Sans",sans-serif}
#roomList button[aria-pressed=true]{background:#f4e9de;box-shadow:inset 3px 0 #ad3020}
#workspace article{padding:0;overflow:hidden;border-radius:18px}
#workspace:has(#desk:not([hidden])) article{border:0;border-radius:0}
.title{padding:14px 20px;border-bottom:1px solid var(--line)}.title h2{font-size:1.7rem}.title small{color:#775945;font-size:.65rem}
#feed{margin:0;border-radius:0;padding:16px 20px;background:linear-gradient(115deg,#f9f6f1f5,#f6f2eef5),url(assets/cuero.webp) center/460px;height:clamp(230px,42dvh,550px)}
.bubble{padding:.65rem .8rem;border-color:#e9ded2;border-radius:3px 15px 15px 15px}
.bubble.mine{background:#f3e5d6;border-color:#dccbb9;border-radius:15px 3px 15px 15px}
.bubble strong{color:#813a22;font-size:.82rem}.bubble time{margin-top:.3rem}
#composer{padding:12px 16px;border-top:1px solid var(--line)}
#body{min-height:46px;height:46px;resize:vertical;background:#faf7f1;border-color:#e4d8c8}
.tools{margin-top:.35rem}.tools>button,.tools>.button{border-radius:24px}
#camera,.tools label,#mic{background:#fff8ed;color:#793b26}
#status:empty{display:none}#older{margin:6px 14px}
@media(max-width:690px){
 header{min-height:62px;padding:6px 14px;gap:9px}header img{width:72px;height:44px}header>div{padding-left:10px}header h1{font-size:1.5rem}
 main,main:has(#desk:not([hidden])){padding:12px 10px}
 #access{display:block;margin:0;border-radius:16px}.cover{min-height:0;height:clamp(164px,27dvh,230px);background-position:65% 52%}
 .cover-caption{left:6%;bottom:10%}.cover-caption p{font-size:2.9rem;line-height:.88}.cover-caption span,.station-banner span{font-size:.6rem}
 .entry{padding:22px}.entry h2{font-size:2.6rem}.entry>p{margin:.6rem 0 1rem}.entry label{margin:.65rem 0}
 .station-banner{padding:11px 16px;background-size:cover}.station-banner strong{font-size:1.7rem}
 nav{margin:.55rem 0}.title{padding:9px 13px}.title h2{font-size:1.4rem}
 #workspace:has(#desk:not([hidden])){display:block}#desk{border-right:0;border-bottom:1px solid var(--line);margin:0;padding:.65rem}
 #roomList{max-height:15dvh}#roomList button{min-height:44px}
 #feed{padding:.75rem;height:clamp(180px,40dvh,480px)}
 #composer{padding:8px}.tools{gap:4px}#composer .tools button,#composer .tools label{font-size:.82rem}
}

@font-face{font-family:"Alfa Slab";src:url(assets/alfa-slab.ttf) format("truetype");font-display:swap}
.cover-caption p{font:400 clamp(3rem,5.5vw,5.1rem)/.98 "Alfa Slab",Georgia,serif;letter-spacing:-.045em;text-shadow:0 2px 14px #21100980}
.cover-caption em{font-style:normal;color:#f8c177}
.cover-caption span{display:flex;align-items:center;gap:.65em}
.cover-caption span:before{content:"";height:2px;width:28px;background:#f2af65}
.station-banner{padding:21px 28px;background-position:center,center 42%}
.station-banner strong{font:400 clamp(1.6rem,3vw,2.75rem)/1.12 "Alfa Slab",Georgia,serif;letter-spacing:-.035em}
#app nav{border-bottom:1px solid var(--line);padding:0;gap:1.3rem}
#app nav button{position:relative;border:0;border-radius:0;background:transparent;color:#685b51;padding:.6rem .15rem}
#app nav button[aria-pressed=true]{color:#902920}
#app nav button[aria-pressed=true]:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;border-radius:3px;background:var(--red)}
#workspace article,.entry{background:#fffefa}
#composer .tools .primary,#listener .primary{box-shadow:0 3px 8px #7a241a22}
#composer .tools{gap:.4rem}
#composer label.button,#composer #camera,#composer #mic{background:#fff;color:#593d30}
#composer #mic:before{content:"";width:1.1rem;height:1.1rem;display:inline-block;vertical-align:-.19em;margin-right:.3em;background:currentColor;mask:url(assets/microfono.svg) center/contain no-repeat}
#composer label.button{display:flex;align-items:center;gap:.3rem}
#composer label.button svg{width:1.07rem;height:1.07rem}
@media(max-width:690px){
 .cover{background-position:center 45%}.cover-caption p{font-size:2.65rem}
 .station-banner{padding:12px 15px}.station-banner strong{font-size:1.55rem}
 #composer .tools{gap:4px}#composer .tools label{font-size:0;width:44px;justify-content:center}
}

/* Superficies de cuero y metal para la cabina nocturna. */
:root{color-scheme:dark;--ink:#fff4e7;--line:#66414c;--red:#a62c3b;background:#170b10}
body{background:#191513 radial-gradient(ellipse at 72% 0%,#65422e75,transparent 64%);background-image:linear-gradient(120deg,#170910df,#401019c9),url(assets/cuero.webp);background-size:auto,680px}
header,#access,#workspace:has(#desk:not([hidden])),#workspace article,.entry,#desk,#composer,#photoDialog{color:var(--ink);background:#25151c}
header,.entry,#desk{background:linear-gradient(135deg,#391823,#201318)}
header small,.title small,.entry>p,summary,.bubble time,#app nav button{color:#dcc4ac}
header h1 em,#status,#app nav button[aria-pressed=true],#roomList small{color:#ffaf77}
#feed{background-color:#291319;background-image:linear-gradient(112deg,#1b0c14cd,#451420b5),url(assets/cuero.webp);background-size:auto,clamp(380px,65vw,850px);background-position:center}
.bubble{background:#34202a;border-color:#66404b;color:#fff7ec}
.bubble.mine{background:#622332;border-color:#934554}
.bubble strong{color:#ffca90}
#body,#filterChats,.entry input,input,textarea,select{color:#fff6ed;background:#1d1016;border-color:#735c4e}
::placeholder{color:#baaaa0}
button,.button,#composer label.button,#composer #camera,#composer #mic,#roomList button{color:#f8ede1;background:#38202a}
button:hover,.button:hover,#roomList button:hover{background:#522735}
#roomList button[aria-pressed=true]{background:#592332;box-shadow:inset 3px 0 #e99651}
#roomList button:before{background:#612b39;color:#ffdbac}
#app nav button[aria-pressed=true]:after{background:#ea9455}
button.primary,.voice-player button{background:var(--red);color:white}
#status{color:#ffbd8e}dialog{color:var(--ink);background:#25151c}

.room-tools{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}
#selectChats,#deleteSelected{margin:.4rem .2rem .4rem 0}
.message-tools{display:inline-block;vertical-align:middle;margin-left:.35rem}
.message-tools summary{cursor:pointer;list-style:none;padding:0 .55rem;font-size:1.3rem}
.message-tools summary::-webkit-details-marker{display:none}
.message-tools[open]{display:block}
@media(max-width:650px){.title:has(.room-tools){flex-wrap:wrap}.room-tools button{font-size:.8rem}}

.bubble video{display:block;width:min(320px,100%);max-height:55dvh;background:#160c10}.bubble video+a{color:#ffcc99}
