:root{
    --bg:#06111d; --panel:rgba(7,20,34,.82); --panel2:rgba(9,27,45,.74);
    --border:rgba(103,232,249,.15); --border2:rgba(56,189,248,.30);
    --text:#e6eef7; --muted:#7f94aa; --cyan:#35d7ff; --blue:#38bdf8;
    --green:#22c55e; --red:#ef4444; --amber:#f59e0b;
    --shadow:0 16px 40px rgba(0,0,0,.28);
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:linear-gradient(180deg,rgba(2,8,17,.78),rgba(2,9,18,.93)),url('./bg-ysf.jpg') center/cover fixed no-repeat}
a{color:inherit}.site-shell{width:min(1500px,calc(100% - 34px));margin:18px auto 28px}
.hero-header{min-height:104px;padding:15px 20px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;background:linear-gradient(180deg,rgba(7,23,39,.90),rgba(5,17,31,.80));border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow),inset 0 1px rgba(255,255,255,.03);backdrop-filter:blur(12px)}
.hero-brand{min-width:0}.eyebrow{display:block;color:#53dfff;font-size:9px;font-weight:800;letter-spacing:2px;margin-bottom:5px}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:var(--green);box-shadow:0 0 10px rgba(34,197,94,.8);margin-right:7px;vertical-align:middle}.hero-brand h1{margin:0;font-size:29px;letter-spacing:.4px;font-weight:850}.subtitle{font-size:10px;letter-spacing:1.6px;color:#7690a6;margin-top:3px}.ref-meta{display:flex;align-items:center;gap:8px;margin-top:9px;font-size:9px;color:#7190a7}.ref-meta strong{color:#43ddff}.hero-logo{display:flex;align-items:center;justify-content:center}.hero-logo img{width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(56,189,248,.28))}.hero-status{justify-self:end;display:flex;align-items:center;gap:9px}.stat-link,.stat-chip{min-width:64px;padding:7px 11px;border:1px solid rgba(120,180,220,.12);border-radius:11px;background:rgba(6,18,31,.55);text-align:center;text-decoration:none}.stat-link:hover,.stat-chip:hover{border-color:var(--border2);background:rgba(56,189,248,.06)}.stat-label{display:block;color:#688095;font-size:8px;letter-spacing:1.4px}.stat-link strong,.stat-chip strong{display:block;margin-top:1px;color:var(--cyan);font-size:19px;line-height:1}.tx-chip strong{color:#ff6370}.onair-chip{display:flex;align-items:center;padding:8px 10px;border-radius:11px;border:1px solid rgba(34,197,94,.16);background:rgba(34,197,94,.05);color:#62e99a;font-size:10px;font-weight:800;letter-spacing:.7px}
.dashboard-menu{display:flex;align-items:center;gap:3px;margin:10px 0 14px;padding:4px 6px;border:1px solid rgba(139,219,255,.09);background:rgba(5,18,32,.68);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.16);backdrop-filter:blur(10px);overflow:auto}.dash-link{display:flex;align-items:center;gap:7px;padding:9px 12px;color:#8ea4b8;text-decoration:none;font-size:10px;border-radius:9px;border:1px solid transparent;white-space:nowrap}.dash-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.dash-link:hover{color:#d8f6ff;background:rgba(56,189,248,.06)}.dash-link.active{color:#38ddff;background:rgba(56,189,248,.09);border-color:rgba(56,189,248,.18);box-shadow:inset 0 0 18px rgba(56,189,248,.04)}.menu-live{margin-left:auto;color:#728ba0;font-size:9px;white-space:nowrap;padding:0 8px}
.section-card{min-width:0;background:linear-gradient(180deg,rgba(8,25,42,.84),rgba(5,18,31,.78));border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow),inset 0 1px rgba(255,255,255,.025);overflow:hidden;backdrop-filter:blur(10px)}.card-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid rgba(120,180,220,.10)}.card-head h2{margin:0;font-size:12px;font-weight:760;letter-spacing:.2px}.card-kicker{font-size:8px;color:#6f889f;letter-spacing:1.2px;text-transform:uppercase}.badge{padding:3px 7px;border-radius:8px;font-size:8px;font-weight:800;letter-spacing:.8px;border:1px solid rgba(56,189,248,.2);color:#48ddff;background:rgba(56,189,248,.06)}.badge.live{color:#60f39a;border-color:rgba(34,197,94,.24);background:rgba(34,197,94,.05)}.badge.tx{color:#ff6b78;border-color:rgba(239,68,68,.2);background:rgba(239,68,68,.05)}
.live-wide{margin-bottom:12px}.live-table-wrap{overflow:auto}.live-table{width:100%;border-collapse:collapse;min-width:920px}.live-table th,.live-table td{padding:8px 7px;text-align:center;border-bottom:1px solid rgba(120,180,220,.07);font-size:9px;white-space:nowrap}.live-table th{font-size:8px;letter-spacing:1.1px;color:#5f7790;font-weight:600}.tx-row td{color:#e8faff}.tx-state{color:#60f39a;font-weight:800}.callsign{font-weight:800;color:#38ddff}.flag{width:17px;height:11px;object-fit:cover;margin-right:5px;vertical-align:-1px;border-radius:2px}.gps-actions{display:inline-flex;gap:7px;align-items:center}.gps-actions span{cursor:pointer;color:#38bdf8}.gps-actions a{color:#22c55e;text-decoration:none}.rssi-icon{color:#4ade80;letter-spacing:-2px}.no-tx{padding:18px;text-align:center;color:#8196aa;font-size:10px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr);grid-template-rows:minmax(270px,auto) minmax(210px,auto);grid-template-areas:"last map online" "rooms map peanut";gap:12px}.last-card{grid-area:last}.map-card{grid-area:map;min-height:0;display:flex;flex-direction:column}.online-card{grid-area:online}.rooms-card{grid-area:rooms}.peanut-card{grid-area:peanut}.card-body{padding:9px 10px}.scroll-body{max-height:410px;overflow:auto}.last-head,.last-row{display:grid;grid-template-columns:1.4fr 1fr .5fr .9fr .88fr .55fr .8fr;gap:4px;align-items:center}.last-head{padding:4px 6px 7px;color:#62788d;font-size:7px;letter-spacing:1px;border-bottom:1px solid rgba(120,180,220,.09)}.last-row{padding:6px;border-bottom:1px solid rgba(120,180,220,.055);font-size:8px;min-height:29px}.last-row:hover,.online-row:hover,.room-row:hover,.peanut-row:hover{background:rgba(56,189,248,.04)}.last-row span,.online-row span,.peanut-row span,.room-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.last-call{color:#38ddff;font-weight:800;white-space:nowrap}.last-user{color:#87a3b8}.qrz{display:inline-flex;align-items:center;text-decoration:none;color:inherit}.qrz-icon{margin-left:4px;opacity:.6;font-size:10px}.last-radio{display:inline-flex;gap:4px;align-items:center}.online-head,.online-row{display:grid;grid-template-columns:1.42fr .55fr 1.08fr .58fr .82fr .7fr;gap:5px;align-items:center}.online-head{padding:4px 5px 7px;color:#62788d;font-size:7px;letter-spacing:1px;border-bottom:1px solid rgba(120,180,220,.09)}.online-row{padding:6px 5px;border-bottom:1px solid rgba(120,180,220,.055);font-size:8px;min-height:29px}.online-call{color:#38ddff;font-weight:800}.online-status{color:#55dc91}.room-head,.room-row{display:grid;grid-template-columns:70px 1fr 65px;gap:5px;align-items:center}.room-head{padding:4px 7px 7px;color:#62788d;font-size:7px;letter-spacing:1px;border-bottom:1px solid rgba(120,180,220,.09)}.room-row{padding:8px 7px;font-size:9px;border-bottom:1px solid rgba(120,180,220,.055)}.room-dgid{color:#38ddff;font-weight:800}.room-users{color:#55dc91;font-weight:800;text-align:right}.room-active{background:rgba(34,197,94,.035)}.peanut-head,.peanut-row{display:grid;grid-template-columns:1.25fr 1fr .8fr .8fr .7fr .7fr;gap:5px;align-items:center}.peanut-head{padding:4px 6px 7px;color:#62788d;font-size:7px;letter-spacing:1px;border-bottom:1px solid rgba(120,180,220,.09)}.peanut-row{padding:7px 6px;font-size:8px;border-bottom:1px solid rgba(120,180,220,.055)}.peanut-call{color:#f4c44d;font-weight:800}.map-shell{flex:1;min-height:300px}.map-shell #map{width:100%;height:100%;min-height:300px}
.footer-wide{margin-top:12px}.footer-wide .footer-pro{width:100%}.footer-pro{background:linear-gradient(180deg,rgba(7,20,34,.83),rgba(4,14,25,.88));border:1px solid rgba(139,219,255,.10);border-radius:16px;padding:17px 20px;box-shadow:var(--shadow);backdrop-filter:blur(10px)}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.footer-block{font-size:8px;color:#7e95aa;line-height:1.7}.f-title{color:#3ddfff;font-size:8px;letter-spacing:1px;margin-bottom:3px}.footer-buttons{text-align:center;margin-top:12px}.footer-buttons a{display:inline-block;padding:5px 10px;margin:0 3px;border:1px solid rgba(120,180,220,.12);border-radius:7px;background:rgba(255,255,255,.025);text-decoration:none;color:#9db0bf;font-size:8px}.footer-buttons a:hover{color:#e4f8ff;border-color:rgba(56,189,248,.25)}.footer-signature{text-align:center;margin-top:9px;font-size:8px;color:#557086}.glow{color:#38ddff}
.page-view{min-height:560px}.page-title-row{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid rgba(120,180,220,.09)}.page-title-row h2{margin:0;font-size:15px}.page-title-row .sub{color:#72899e;font-size:9px}.full-list{max-height:680px;overflow:auto}.full-list .last-head,.full-list .last-row{grid-template-columns:1.45fr 1.15fr .55fr .9fr 1fr .6fr .9fr}.full-list .last-row{font-size:10px;padding:8px}
.chat-page{min-height:640px}.chat-shell{display:grid;grid-template-columns:1fr;gap:12px;padding:12px}.chat-messages{height:470px;overflow:auto;padding:4px}.chat-line{padding:10px 11px;margin-bottom:7px;border-radius:8px;background:rgba(148,163,184,.06);border:1px solid rgba(148,163,184,.08)}.chat-line.mine{background:rgba(56,189,248,.08);border-color:rgba(56,189,248,.15)}.chat-meta{display:flex;gap:8px;align-items:center;font-size:11px;margin-bottom:4px}.chat-call{font-weight:800;color:#38ddff}.chat-name{opacity:.65}.chat-time{margin-left:auto;opacity:.45;font-size:10px}.chat-text{font-size:13px;line-height:1.45;word-break:break-word}.chat-translation{margin-top:6px;padding-top:6px;border-top:1px solid rgba(148,163,184,.10);font-size:12px;line-height:1.4;opacity:.82}.chat-compose{display:flex;gap:8px}.chat-input{flex:1;height:40px;border:1px solid rgba(148,163,184,.25);border-radius:8px;padding:0 12px;background:rgba(15,23,42,.35);color:inherit;outline:none}.chat-btn{height:40px;padding:0 15px;border:0;border-radius:8px;cursor:pointer;background:rgba(56,189,248,.18);color:inherit;font-weight:700}.chat-btn:disabled{opacity:.5;cursor:not-allowed}.chat-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.chat-status{display:flex;align-items:center;gap:7px}.chat-badge{padding:5px 8px;border-radius:8px;border:1px solid rgba(56,189,248,.20);background:rgba(56,189,248,.07);font-size:10px}.chat-foot{display:flex;justify-content:space-between;align-items:center;margin-top:6px}.chat-logout{border:0;background:transparent;color:inherit;opacity:.65;cursor:pointer;font-size:11px}.chat-login{padding:24px 8px}.chat-hidden{display:none!important}.chat-error{min-height:18px;color:#f87171;font-size:12px;margin-top:7px}
@media(max-width:1120px){.site-shell{width:min(100% - 22px,1500px)}.dashboard-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;grid-template-areas:"last online" "map map" "rooms peanut"}.map-shell #map{min-height:340px}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.hero-header{grid-template-columns:1fr;text-align:center;justify-items:center}.hero-status{justify-self:center;flex-wrap:wrap;justify-content:center}.hero-brand,.hero-logo{justify-self:center}.dashboard-menu{overflow:auto}.menu-live{display:none}.dashboard-grid{grid-template-columns:1fr;grid-template-areas:"last" "map" "online" "rooms" "peanut"}.last-head,.online-head,.peanut-head,.room-head{display:none}.last-row,.online-row,.peanut-row,.room-row{grid-template-columns:1fr 1fr;gap:5px;padding:8px}.last-row span,.online-row span,.peanut-row span,.room-row span{white-space:normal}.live-table{min-width:850px}.map-shell #map{min-height:320px}.footer-grid{grid-template-columns:1fr}.chat-compose{flex-direction:column}.chat-btn{width:100%}.chat-top{flex-direction:column;align-items:flex-start}}


/* =========================================================
   ES-ANDALUCIA PRO++ READABILITY / CHAT / BACKGROUND 2026
   Visual-only layer. Backend, AJAX, database and APIs unchanged.
   ========================================================= */
:root{
    --text:#f4fbff;
    --muted:#9fb3c6;
    --cyan:#44ddff;
    --blue:#3bbef7;
    --panel:rgba(4,17,31,.88);
    --panel2:rgba(7,24,41,.82);
}

body{
    background:
      linear-gradient(180deg,rgba(1,7,14,.56),rgba(1,8,16,.80)),
      url('./bg-ysf-2026.png') center top/cover fixed no-repeat;
    font-size:14px;
}

.site-shell{
    width:min(1660px,calc(100% - 30px));
    margin:16px auto 30px;
}

.hero-header{
    min-height:150px;
    padding:18px 24px;
    border-radius:20px;
    grid-template-columns:1fr 180px 1fr;
}

.hero-brand h1{font-size:38px;line-height:1.05;letter-spacing:.6px}
.eyebrow{font-size:11px;letter-spacing:2.3px}
.subtitle{font-size:12px;letter-spacing:1.8px}
.ref-meta{font-size:11px;margin-top:12px;gap:10px}
.hero-logo{height:118px;overflow:visible}
.hero-logo img{
    width:170px;
    height:125px;
    object-fit:contain;
    transform:scale(1.12);
    mix-blend-mode:screen;
    filter:drop-shadow(0 0 18px rgba(62,221,255,.34));
}
.hero-status{gap:11px}
.stat-link,.stat-chip{min-width:82px;padding:11px 14px;border-radius:12px}
.stat-label{font-size:10px}
.stat-link strong,.stat-chip strong{font-size:23px}
.onair-chip{font-size:12px;padding:11px 14px}
.status-dot{width:8px;height:8px}

.dashboard-menu{gap:5px;margin:12px 0 16px;padding:6px 8px;border-radius:14px}
.dash-link{font-size:13px;padding:11px 14px;gap:8px}
.dash-link svg{width:17px;height:17px}
.menu-live{font-size:11px}

.section-card{border-radius:18px}
.card-head{padding:13px 17px}
.card-head h2{font-size:16px}
.card-kicker{font-size:10px;letter-spacing:1.35px}
.badge{padding:5px 9px;font-size:10px;border-radius:9px}

.live-wide{margin-bottom:14px}
.live-table th{font-size:10px;padding:11px 8px}
.live-table td{font-size:11px;padding:11px 8px}
.no-tx{font-size:12px;padding:20px}

.dashboard-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1.32fr) minmax(0,1fr);
    grid-template-rows:minmax(360px,auto) minmax(340px,auto);
    grid-template-areas:"last chat online" "rooms map peanut";
    gap:14px;
}
.last-card{grid-area:last}
.chat-card{grid-area:chat;min-height:360px;display:flex;flex-direction:column}
.online-card{grid-area:online}
.rooms-card{grid-area:rooms}
.map-card{grid-area:map;min-height:340px}
.peanut-card{grid-area:peanut}

.scroll-body{max-height:none;flex:1}
.last-head{font-size:9px;gap:7px;padding:6px 8px 9px}
.last-row{font-size:10.5px;min-height:34px;padding:8px;gap:6px}
.online-head{font-size:9px;padding:6px 7px 9px}
.online-row{font-size:10.5px;min-height:34px;padding:8px 7px;gap:6px}
.room-head{font-size:9px;padding:6px 9px 9px}
.room-row{font-size:11px;padding:10px 9px;min-height:40px}
.peanut-head{font-size:9px;padding:6px 7px 9px}
.peanut-row{font-size:10.5px;padding:9px 7px;min-height:38px}
.flag{width:19px;height:12px}
.callsign,.online-call,.last-call{font-size:11.5px}
.last-user{font-size:10.5px}

.home-chat-shell{display:flex;flex:1;min-height:0;padding:12px 14px 14px;flex-direction:column}
.home-chat-main{display:flex;flex-direction:column;flex:1;min-height:0}
.home-chat-messages{height:auto;flex:1;min-height:205px;max-height:none;overflow:auto;padding:4px 3px 6px}
.home-chat-messages .chat-line{padding:12px 13px;margin-bottom:8px;border-radius:10px}
.home-chat-messages .chat-meta{font-size:12px;margin-bottom:5px}
.home-chat-messages .chat-time{font-size:11px}
.home-chat-messages .chat-text{font-size:14px;line-height:1.5}
.home-chat-messages .chat-translation{font-size:12px}
.chat-card-head{align-items:center}
.chat-card-status{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.chat-badge{font-size:10px;padding:6px 9px;border-radius:9px}
.chat-compose{margin-top:10px;gap:9px}
.chat-input{height:44px;font-size:14px;padding:0 13px}
.chat-btn{height:44px;padding:0 18px;font-size:13px}
.chat-foot{font-size:11px;margin-top:8px}
.home-chat-login{padding:35px 16px;text-align:center;font-size:14px}
.home-chat-login p{color:var(--muted);font-size:13px;line-height:1.5}
.home-chat-login .chat-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}

.map-shell,#map,.map-shell #map{min-height:340px}

.footer-pro{padding:22px 26px;border-radius:18px}
.footer-grid{gap:26px}
.footer-block{font-size:11px;line-height:1.85;color:#a7bacb}
.f-title{font-size:11px;letter-spacing:1.15px;margin-bottom:5px}
.footer-buttons{margin-top:16px}
.footer-buttons a{font-size:11px;padding:8px 13px;border-radius:9px}
.footer-signature{font-size:10px;margin-top:12px}

@media(max-width:1120px){
    .hero-header{grid-template-columns:1fr 150px 1fr}
    .hero-logo img{width:145px;height:112px}
    .dashboard-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;grid-template-areas:"last online" "chat chat" "rooms peanut" "map map"}
    .chat-card{min-height:390px}
}

@media(max-width:760px){
    .site-shell{width:calc(100% - 18px);margin:9px auto 20px}
    .hero-header{grid-template-columns:1fr;min-height:0;padding:18px 16px;gap:10px;text-align:center}
    .hero-brand,.hero-logo,.hero-status{justify-self:center}
    .hero-logo{height:110px}
    .hero-logo img{width:150px;height:108px}
    .hero-brand h1{font-size:31px}
    .subtitle{font-size:11px}
    .dashboard-menu{margin-top:8px;overflow:auto}
    .dash-link{font-size:12px;padding:10px 12px}
    .dashboard-grid{grid-template-columns:1fr;grid-template-areas:"last" "chat" "online" "rooms" "map" "peanut"}
    .chat-card{min-height:470px}
    .home-chat-messages{min-height:300px}
    .map-shell,#map,.map-shell #map{min-height:330px}
    .live-table{min-width:950px}
    .footer-grid{grid-template-columns:1fr 1fr}
    .footer-block{font-size:10.5px}
}

@media(max-width:520px){
    .footer-grid{grid-template-columns:1fr}
    .footer-block{font-size:11px}
    .footer-buttons a{display:inline-block;margin:2px}
}


/* =========================================================
   QSO TURNOS · HEADER + FLOATING PANEL
   Independent UI layer. No reflector/chat styles changed.
   ========================================================= */
.turns-trigger{display:flex;align-items:center;gap:7px;min-height:43px;padding:8px 11px;border:1px solid rgba(56,189,248,.22);border-radius:12px;background:rgba(56,189,248,.07);color:#dff9ff;cursor:pointer;font:inherit;box-shadow:inset 0 0 18px rgba(56,189,248,.035);transition:.18s ease}
.turns-trigger:hover,.turns-trigger[aria-expanded="true"]{border-color:rgba(68,221,255,.55);background:rgba(56,189,248,.13);transform:translateY(-1px)}
.turns-trigger-icon{font-size:17px;line-height:1}
.turns-trigger-label{font-size:10px;font-weight:850;letter-spacing:1.2px}
.turns-trigger-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#38ddff;color:#03101a;font-size:10px;font-weight:900}
.qso-turns-backdrop[hidden],.qso-turns-modal[hidden]{display:none!important}
.qso-turns-backdrop{position:fixed;inset:0;background:rgba(1,7,14,.62);backdrop-filter:blur(5px);z-index:9998}
.qso-turns-modal{position:fixed;top:92px;right:28px;width:min(460px,calc(100vw - 28px));max-height:calc(100vh - 120px);overflow:hidden;z-index:9999;border:1px solid rgba(68,221,255,.26);border-radius:18px;background:linear-gradient(180deg,rgba(6,22,38,.98),rgba(4,13,24,.98));box-shadow:0 24px 80px rgba(0,0,0,.55),0 0 35px rgba(56,189,248,.08)}
.qso-turns-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:18px 19px 14px;border-bottom:1px solid rgba(120,180,220,.1)}
.qso-turns-header h2{margin:2px 0 4px;font-size:22px;letter-spacing:.2px}.qso-turns-context{color:#8ca4b9;font-size:11px}
.qso-turns-close{width:34px;height:34px;border:1px solid rgba(120,180,220,.12);border-radius:9px;background:rgba(255,255,255,.03);color:#a8c0d2;font-size:22px;line-height:1;cursor:pointer}.qso-turns-close:hover{color:#fff;border-color:rgba(68,221,255,.3)}
.qso-turns-body{padding:15px 17px 17px;overflow:auto;max-height:calc(100vh - 190px)}
.qso-current{padding:18px;border-radius:13px;border:1px solid rgba(120,180,220,.11);background:rgba(255,255,255,.025)}
.qso-current.has-current{border-color:rgba(34,197,94,.28);background:rgba(34,197,94,.045)}
.qso-state{font-size:10px;color:#6f879c;letter-spacing:1.2px;font-weight:800}.qso-current.has-current .qso-state{color:#62e99a}
.qso-current-call{margin-top:4px;font-size:29px;font-weight:900;color:#43ddff;letter-spacing:.5px}.qso-current-meta{margin-top:3px;font-size:12px;color:#91a6b8}
.qso-queue-head{display:flex;justify-content:space-between;align-items:center;margin:17px 2px 8px;color:#7e95aa;font-size:10px;font-weight:850;letter-spacing:1px}.qso-queue-head span:last-child{color:#44ddff}
.qso-queue{display:flex;flex-direction:column;gap:6px;max-height:270px;overflow:auto}.qso-queue-row{display:grid;grid-template-columns:28px 1.1fr 1fr 65px;align-items:center;gap:7px;padding:10px 11px;border:1px solid rgba(120,180,220,.08);border-radius:10px;background:rgba(255,255,255,.018)}.qso-pos{color:#60788d;font-size:10px;font-weight:800;text-align:center}.qso-call{color:#38ddff;font-size:12px;font-weight:900}.qso-name{color:#91a7b9;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qso-wait{color:#6f889e;font-size:10px;text-align:right}.qso-empty{padding:20px;text-align:center;color:#75899b;font-size:12px;border:1px dashed rgba(120,180,220,.1);border-radius:10px}
.qso-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.qso-btn{height:43px;border:1px solid rgba(120,180,220,.16);border-radius:10px;background:rgba(255,255,255,.03);color:#d7eaf5;font-size:11px;font-weight:850;letter-spacing:.7px;cursor:pointer}.qso-btn.primary{border-color:rgba(56,189,248,.3);background:rgba(56,189,248,.11);color:#54e2ff}.qso-btn:hover{border-color:rgba(68,221,255,.5);background:rgba(56,189,248,.13)}.qso-btn:disabled{opacity:.5;cursor:not-allowed}
.qso-status{min-height:18px;margin-top:9px;color:#8fa6b7;font-size:11px}.qso-status.error{color:#f87171}
@media(max-width:760px){.turns-trigger-label{display:none}.turns-trigger{min-width:43px;justify-content:center;padding:8px}.qso-turns-modal{top:72px;right:10px;width:calc(100vw - 20px);max-height:calc(100vh - 86px)}.qso-queue-row{grid-template-columns:24px 1fr 1fr 52px}.qso-actions{grid-template-columns:1fr}.qso-current-call{font-size:25px}}

/* QSO TURNOS AUTOMATICOS */
.qso-last-info{margin-top:10px;padding:9px 11px;border:1px solid rgba(68,221,255,.10);border-radius:9px;background:rgba(56,189,248,.035);color:#7991a6;font-size:10px;text-align:center}
.qso-auto-row{grid-template-columns:28px 1.05fr 1.55fr 80px!important}
.qso-name small{display:block;margin-top:2px;color:#738a9e;font-size:9px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qso-online{color:#5be68f;font-size:9px;font-weight:800;margin-right:5px}
.qso-offline{color:#8aa0b2;font-size:9px;font-weight:800;margin-right:5px}
@media(max-width:760px){.qso-auto-row{grid-template-columns:24px 1fr 1.2fr 58px!important}.qso-name small{white-space:normal}}


/* =========================================================
   HEADER TICKER · MENSAJE DE RED
   Visual-only: no modifica backend, AJAX ni QSO.
   ========================================================= */
.hero-header{
    position:relative;
    min-height:170px;
    padding-bottom:46px;
}
.header-ticker{
    position:absolute;
    left:50%;
    bottom:9px;
    transform:translateX(-50%);
    width:min(680px,58%);
    z-index:5;
    pointer-events:auto;
}
.header-ticker-window{
    position:relative;
    height:30px;
    overflow:hidden;
    border:1px solid rgba(56,189,248,.34);
    border-radius:4px;
    background:linear-gradient(180deg,rgba(8,28,46,.94),rgba(4,17,30,.96));
    box-shadow:inset 0 0 16px rgba(56,189,248,.05),0 0 18px rgba(56,189,248,.07);
}
.header-ticker-window::before,
.header-ticker-window::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    width:42px;
    z-index:2;
    pointer-events:none;
}
.header-ticker-window::before{
    left:0;
    background:linear-gradient(90deg,#06131f,transparent);
}
.header-ticker-window::after{
    right:0;
    background:linear-gradient(270deg,#06131f,transparent);
}
.header-ticker-track{
    height:100%;
    display:flex;
    align-items:center;
    width:max-content;
    min-width:100%;
    animation:headerTickerScroll 22s linear infinite;
}
.header-ticker-item{
    display:inline-flex;
    align-items:center;
    gap:9px;
    flex:none;
    padding:0 42px;
    color:#55e8ff;
    text-decoration:none;
    font-family:"Courier New",monospace;
    font-size:10px;
    font-weight:800;
    letter-spacing:1.1px;
    white-space:nowrap;
    text-shadow:0 0 8px rgba(56,189,248,.35);
}
.header-ticker-dot{
    color:#38ddff;
    font-size:8px;
    text-shadow:0 0 7px rgba(56,189,248,.8);
}
.header-ticker:hover .header-ticker-track{
    animation-play-state:paused;
}
@keyframes headerTickerScroll{
    from{transform:translateX(0)}
    to{transform:translateX(-50%)}
}
@media (prefers-reduced-motion:reduce){
    .header-ticker-track{animation:none;transform:none}
    .header-ticker-item:nth-child(2){display:none}
}
@media(max-width:760px){
    .hero-header{
        min-height:194px;
        padding-bottom:54px;
    }
    .header-ticker{
        width:calc(100% - 30px);
        bottom:10px;
    }
    .header-ticker-window{height:29px}
    .header-ticker-item{
        font-size:9px;
        letter-spacing:.8px;
        padding:0 34px;
    }
}
@media(max-width:460px){
    .hero-header{min-height:202px}
    .header-ticker{width:calc(100% - 22px)}
    .header-ticker-item{font-size:8px;letter-spacing:.6px}
}

/* =========================================================
   SCROLL FIX FINAL · NO TOCAR TICKER NI FUNCIONALIDAD
   ========================================================= */
html, body{
    min-height:100%;
    overflow-x:hidden;
    overflow-y:auto;
}

/* Desktop: rows con altura real para que los scroll-body no hagan crecer las tarjetas */
.dashboard-grid{
    grid-template-rows:360px 340px !important;
    min-height:0 !important;
}

.dashboard-grid > .section-card{
    min-height:0 !important;
    height:100% !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
}

.dashboard-grid > .section-card > .card-head{
    flex:0 0 auto;
}

.dashboard-grid .scroll-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
}

/* Rooms no usa scroll-body en el HTML actual */
.rooms-card > .card-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
}

/* Chat: solo desplaza la lista de mensajes */
.chat-card{
    min-height:0 !important;
}
.chat-card .home-chat-shell{
    flex:1 1 auto !important;
    min-height:0 !important;
}
.chat-card .home-chat-main{
    flex:1 1 auto !important;
    min-height:0 !important;
}
.chat-card .home-chat-messages{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
}

/* El mapa no debe forzar el crecimiento de la fila */
.map-card{
    min-height:0 !important;
}
.map-card .map-shell{
    flex:1 1 auto !important;
    min-height:0 !important;
}
.map-card .map-shell #map,
.map-card #map{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
}

/* Tablet */
@media(max-width:1120px) and (min-width:761px){
    .dashboard-grid{
        grid-template-columns:1fr 1fr !important;
        grid-template-rows:320px 360px 320px 320px !important;
        grid-template-areas:
            "last online"
            "chat chat"
            "rooms peanut"
            "map map";
    }

    .chat-card{
        height:360px !important;
    }
}

/* Móvil: la página completa tiene scroll; cada tarjeta conserva su scroll interno */
@media(max-width:760px){
    html, body{
        overflow-x:hidden !important;
        overflow-y:auto !important;
    }

    .dashboard-grid{
        grid-template-columns:1fr !important;
        grid-template-rows:none !important;
        grid-auto-rows:auto !important;
        grid-template-areas:
            "last"
            "chat"
            "online"
            "rooms"
            "map"
            "peanut";
    }

    .dashboard-grid > .section-card{
        height:auto !important;
    }

    .last-card{height:300px !important;}
    .online-card{height:300px !important;}
    .rooms-card{height:240px !important;}
    .chat-card{height:420px !important; min-height:420px !important;}
    .map-card{height:320px !important; min-height:320px !important;}
    .peanut-card{height:280px !important;}

    .map-card .map-shell{
        height:auto !important;
        min-height:0 !important;
    }

    .map-card .map-shell #map,
    .map-card #map{
        height:100% !important;
        min-height:0 !important;
    }
}

@media(max-width:460px){
    .last-card,.online-card{height:285px !important;}
    .chat-card{height:395px !important;min-height:395px !important;}
    .rooms-card{height:225px !important;}
    .map-card{height:285px !important;min-height:285px !important;}
    .peanut-card{height:265px !important;}
}


/* =========================================================
   XIXONA · CARDS ORDENADAS / TABLAS PRO
   Últimos · Online · Rooms · Peanut
   ========================================================= */

/* ---------------- CONTENEDORES ---------------- */

.dashboard-grid{
    grid-template-columns:
        minmax(0,1fr)
        minmax(0,1.34fr)
        minmax(0,1fr) !important;
    grid-template-rows:
        minmax(350px,360px)
        minmax(270px,290px) !important;
    grid-template-areas:
        "last chat online"
        "rooms map peanut" !important;
    gap:14px !important;
    align-items:stretch !important;
}

.dashboard-grid > .section-card{
    min-width:0 !important;
    min-height:0 !important;
    height:100% !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
}

.dashboard-grid > .section-card > .card-head{
    flex:0 0 auto !important;
}

/* =========================================================
   ÚLTIMOS ESCUCHADOS
   ========================================================= */

.last-card{
    grid-area:last !important;
}

.last-card .card-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    padding:8px 9px !important;
    overflow:hidden !important;
}

.last-card .scroll-body{
    width:100% !important;
    height:100% !important;
    max-height:none !important;
    overflow:auto !important;
    scrollbar-width:thin;
    scrollbar-color:rgba(53,215,255,.38) rgba(3,12,22,.2);
}

/* Encabezado y filas exactamente con las mismas columnas */
.last-card .last-head,
.last-card .last-row{
    display:grid !important;
    grid-template-columns:
        1.65fr
        1.05fr
        .55fr
        1.05fr
        1.00fr
        .65fr
        .90fr !important;
    column-gap:7px !important;
    align-items:center !important;
    width:100% !important;
    min-width:760px !important;
}

.last-card .last-head{
    min-height:30px !important;
    padding:6px 8px !important;
    color:#668197 !important;
    font-size:8px !important;
    font-weight:700 !important;
    letter-spacing:1px !important;
    border-bottom:1px solid rgba(120,180,220,.10) !important;
}

.last-card .last-row{
    min-height:37px !important;
    padding:7px 8px !important;
    font-size:9.5px !important;
    border-bottom:1px solid rgba(120,180,220,.055) !important;
}

.last-card .last-row > span,
.last-card .last-head > span{
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.last-card .last-call{
    display:flex !important;
    align-items:center !important;
    min-width:0 !important;
    color:#42ddff !important;
    font-size:11px !important;
    font-weight:900 !important;
}

.last-card .last-call .qrz{
    display:inline-flex !important;
    align-items:center !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.last-card .last-user{
    color:#a5b9c8 !important;
    font-size:9.5px !important;
}

.last-card .last-radio{
    display:flex !important;
    align-items:center !important;
    gap:4px !important;
    white-space:nowrap !important;
}

.last-card .flag{
    flex:0 0 auto !important;
}

.last-card .qrz-icon{
    flex:0 0 auto !important;
}

/* =========================================================
   ESTACIONES ONLINE
   ========================================================= */

.online-card{
    grid-area:online !important;
}

.online-card .card-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    padding:8px 8px !important;
    overflow:hidden !important;
}

.online-card .scroll-body{
    width:100% !important;
    height:100% !important;
    max-height:none !important;
    overflow:auto !important;
    scrollbar-width:thin;
    scrollbar-color:rgba(53,215,255,.38) rgba(3,12,22,.2);
}

.online-card .online-head,
.online-card .online-row{
    display:grid !important;
    grid-template-columns:
        1.60fr
        .62fr
        1.20fr
        .66fr
        .82fr
        .72fr !important;
    column-gap:6px !important;
    align-items:center !important;
    width:100% !important;
    min-width:820px !important;
}

.online-card .online-head{
    min-height:30px !important;
    padding:6px 7px !important;
    color:#668197 !important;
    font-size:8px !important;
    font-weight:700 !important;
    letter-spacing:1px !important;
    border-bottom:1px solid rgba(120,180,220,.10) !important;
}

.online-card .online-row{
    min-height:37px !important;
    padding:7px !important;
    font-size:9.5px !important;
    border-bottom:1px solid rgba(120,180,220,.055) !important;
}

.online-card .online-row > span,
.online-card .online-head > span{
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.online-card .online-call{
    display:flex !important;
    align-items:center !important;
    gap:4px !important;
    min-width:0 !important;
    color:#42ddff !important;
    font-size:11px !important;
    font-weight:900 !important;
}

.online-card .online-status{
    color:#55df91 !important;
    font-weight:900 !important;
}

/* =========================================================
   ROOMS
   ========================================================= */

.rooms-card{
    grid-area:rooms !important;
}

.rooms-card .card-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    padding:8px 9px !important;
    overflow:hidden !important;
}

.rooms-card .room-head,
.rooms-card .room-row{
    display:grid !important;
    grid-template-columns:
        70px
        minmax(0,1fr)
        65px !important;
    column-gap:7px !important;
    align-items:center !important;
    width:100% !important;
}

.rooms-card .room-head{
    min-height:30px !important;
    padding:6px 7px !important;
    color:#668197 !important;
    font-size:8px !important;
    font-weight:700 !important;
    letter-spacing:1px !important;
    border-bottom:1px solid rgba(120,180,220,.10) !important;
}

.rooms-card .room-row{
    min-height:38px !important;
    padding:8px 7px !important;
    font-size:10px !important;
    border-bottom:1px solid rgba(120,180,220,.055) !important;
}

.rooms-card .room-row > span,
.rooms-card .room-head > span{
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.rooms-card .room-dgid{
    color:#42ddff !important;
    font-weight:900 !important;
}

.rooms-card .room-name{
    color:#d3e2ec !important;
}

.rooms-card .room-users{
    color:#55df91 !important;
    font-weight:900 !important;
    text-align:right !important;
}

/* =========================================================
   PEANUT
   ========================================================= */

.peanut-card{
    grid-area:peanut !important;
}

.peanut-card .card-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    padding:8px !important;
    overflow:hidden !important;
}

.peanut-card .scroll-body{
    height:100% !important;
    max-height:none !important;
    overflow:auto !important;
}

.peanut-card .peanut-head,
.peanut-card .peanut-row{
    display:grid !important;
    grid-template-columns:
        1.30fr
        1.05fr
        .85fr
        .82fr
        .80fr
        .72fr !important;
    column-gap:6px !important;
    align-items:center !important;
    width:100% !important;
    min-width:610px !important;
}

.peanut-card .peanut-head{
    min-height:30px !important;
    padding:6px 7px !important;
    color:#668197 !important;
    font-size:8px !important;
    font-weight:700 !important;
    letter-spacing:1px !important;
    border-bottom:1px solid rgba(120,180,220,.10) !important;
}

.peanut-card .peanut-row{
    min-height:37px !important;
    padding:7px !important;
    font-size:9.5px !important;
    border-bottom:1px solid rgba(120,180,220,.055) !important;
}

.peanut-card .peanut-row > span,
.peanut-card .peanut-head > span{
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.peanut-card .peanut-call{
    display:flex !important;
    align-items:center !important;
    gap:4px !important;
    color:#f4c44d !important;
    font-weight:900 !important;
}

/* =========================================================
   MAPA
   ========================================================= */

.map-card{
    grid-area:map !important;
    min-height:0 !important;
    height:100% !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
}

.map-card .map-shell{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    overflow:hidden !important;
}

.map-card .map-shell #map,
.map-card #map{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
}

/* =========================================================
   INTERACCIONES / ALINEACIÓN
   ========================================================= */

.last-card .last-row:hover,
.online-card .online-row:hover,
.rooms-card .room-row:hover,
.peanut-card .peanut-row:hover{
    background:rgba(56,189,248,.045) !important;
}

/* Scrollbars */
.last-card .scroll-body::-webkit-scrollbar,
.online-card .scroll-body::-webkit-scrollbar,
.peanut-card .scroll-body::-webkit-scrollbar{
    width:6px;
    height:6px;
}

.last-card .scroll-body::-webkit-scrollbar-thumb,
.online-card .scroll-body::-webkit-scrollbar-thumb,
.peanut-card .scroll-body::-webkit-scrollbar-thumb{
    background:rgba(53,215,255,.34);
    border-radius:8px;
}

.last-card .scroll-body::-webkit-scrollbar-track,
.online-card .scroll-body::-webkit-scrollbar-track,
.peanut-card .scroll-body::-webkit-scrollbar-track{
    background:rgba(2,10,18,.24);
}

/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1120px){
    .dashboard-grid{
        grid-template-columns:1fr 1fr !important;
        grid-template-rows:
            330px
            360px
            290px
            300px !important;
        grid-template-areas:
            "last online"
            "chat chat"
            "rooms peanut"
            "map map" !important;
    }

    .last-card .last-head,
    .last-card .last-row{
        min-width:760px !important;
    }

    .online-card .online-head,
    .online-card .online-row{
        min-width:820px !important;
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media(max-width:760px){
    .dashboard-grid{
        grid-template-columns:1fr !important;
        grid-template-rows:auto !important;
        grid-template-areas:
            "last"
            "chat"
            "online"
            "rooms"
            "map"
            "peanut" !important;
        gap:9px !important;
    }

    .last-card,
    .online-card{
        height:300px !important;
    }

    .rooms-card{
        height:235px !important;
    }

    .peanut-card{
        height:270px !important;
    }

    .map-card{
        height:310px !important;
        min-height:310px !important;
    }

    .last-card .last-head,
    .last-card .last-row{
        min-width:760px !important;
    }

    .online-card .online-head,
    .online-card .online-row{
        min-width:820px !important;
    }

    .rooms-card .room-head,
    .rooms-card .room-row{
        min-width:300px !important;
    }

    .peanut-card .peanut-head,
    .peanut-card .peanut-row{
        min-width:610px !important;
    }
}

@media(max-width:460px){
    .last-card,
    .online-card{
        height:285px !important;
    }

    .rooms-card{
        height:220px !important;
    }

    .peanut-card{
        height:250px !important;
    }

    .map-card{
        height:290px !important;
        min-height:290px !important;
    }
}


/* =========================================================
   FIX FINAL XIXONA
   Cards del mismo ancho + SOLO scroll vertical
   NO scroll horizontal en Last / Online / Rooms / Peanut / Chat
   ========================================================= */

/* 3 columnas EXACTAMENTE iguales */
.dashboard-grid{
    grid-template-columns:
        minmax(0,1fr)
        minmax(0,1fr)
        minmax(0,1fr) !important;

    grid-template-rows:
        minmax(350px,360px)
        minmax(270px,290px) !important;

    grid-template-areas:
        "last chat online"
        "rooms map peanut" !important;

    gap:14px !important;
    align-items:stretch !important;
}

/* Todas las cards ocupan exactamente su celda */
.dashboard-grid > .section-card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:0 !important;
    height:100% !important;
    overflow:hidden !important;
}

/* Cuerpos: SOLO scroll vertical */
.dashboard-grid .scroll-body,
.last-card .scroll-body,
.online-card .scroll-body,
.rooms-card .scroll-body,
.peanut-card .scroll-body,
.chat-card .home-chat-messages{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    scrollbar-width:thin !important;
    -webkit-overflow-scrolling:touch;
}

/* =========================================================
   ÚLTIMOS ESCUCHADOS
   ========================================================= */

.last-card .card-body{
    min-width:0 !important;
    overflow:hidden !important;
}

.last-card .scroll-body{
    min-width:0 !important;
    overflow-x:hidden !important;
}

.last-card .last-head,
.last-card .last-row{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    grid-template-columns:
        minmax(0,1.55fr)
        minmax(0,.95fr)
        minmax(0,.48fr)
        minmax(0,.92fr)
        minmax(0,.82fr)
        minmax(0,.55fr)
        minmax(0,.72fr) !important;
    gap:5px !important;
}

.last-card .last-head{
    white-space:normal !important;
    font-size:7px !important;
    line-height:1.15 !important;
}

.last-card .last-row{
    min-height:38px !important;
    padding:7px 5px !important;
    font-size:9px !important;
}

.last-card .last-row > span,
.last-card .last-head > span{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
}

.last-card .last-call,
.last-card .last-radio{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
}

.last-card .last-call .qrz{
    min-width:0 !important;
    max-width:100% !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}

/* =========================================================
   ESTACIONES ONLINE
   ========================================================= */

.online-card .card-body{
    min-width:0 !important;
    overflow:hidden !important;
}

.online-card .scroll-body{
    min-width:0 !important;
    overflow-x:hidden !important;
}

.online-card .online-head,
.online-card .online-row{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    grid-template-columns:
        minmax(0,1.45fr)
        minmax(0,.50fr)
        minmax(0,1.00fr)
        minmax(0,.62fr)
        minmax(0,.72fr)
        minmax(0,.65fr) !important;
    gap:5px !important;
}

.online-card .online-head{
    white-space:normal !important;
    font-size:7px !important;
    line-height:1.15 !important;
}

.online-card .online-row{
    min-height:38px !important;
    padding:7px 5px !important;
    font-size:9px !important;
}

.online-card .online-row > span,
.online-card .online-head > span{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
}

.online-card .online-call{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
}

/* =========================================================
   ROOMS
   ========================================================= */

.rooms-card .card-body{
    min-width:0 !important;
    overflow:hidden !important;
}

.rooms-card .scroll-body{
    min-width:0 !important;
    overflow-x:hidden !important;
}

.rooms-card .room-head,
.rooms-card .room-row{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    grid-template-columns:
        minmax(45px,.65fr)
        minmax(0,1.9fr)
        minmax(45px,.65fr) !important;
    gap:6px !important;
}

.rooms-card .room-head{
    white-space:normal !important;
    font-size:7px !important;
}

.rooms-card .room-row{
    min-height:38px !important;
    padding:8px 6px !important;
    font-size:9.5px !important;
}

.rooms-card .room-row > span,
.rooms-card .room-head > span{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
}

/* =========================================================
   PEANUT
   ========================================================= */

.peanut-card .card-body{
    min-width:0 !important;
    overflow:hidden !important;
}

.peanut-card .scroll-body{
    min-width:0 !important;
    overflow-x:hidden !important;
}

.peanut-card .peanut-head,
.peanut-card .peanut-row{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    grid-template-columns:
        minmax(0,1.15fr)
        minmax(0,1.00fr)
        minmax(0,.78fr)
        minmax(0,.72fr)
        minmax(0,.70fr)
        minmax(0,.60fr) !important;
    gap:5px !important;
}

.peanut-card .peanut-head{
    white-space:normal !important;
    font-size:7px !important;
    line-height:1.15 !important;
}

.peanut-card .peanut-row{
    min-height:38px !important;
    padding:7px 5px !important;
    font-size:8.8px !important;
}

.peanut-card .peanut-row > span,
.peanut-card .peanut-head > span{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
}

.peanut-card .peanut-call{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
}

/* =========================================================
   CHAT
   ========================================================= */

.chat-card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
}

.chat-card .home-chat-shell,
.chat-card .home-chat-main{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
}

.chat-card .home-chat-messages{
    min-width:0 !important;
    max-width:100% !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
}

.chat-card .chat-line{
    max-width:100% !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
}

/* =========================================================
   MAPA
   ========================================================= */

.map-card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
}

.map-card .map-shell{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
}

/* =========================================================
   DESKTOP / TABLET
   ========================================================= */

@media(max-width:1120px){
    .dashboard-grid{
        grid-template-columns:
            minmax(0,1fr)
            minmax(0,1fr) !important;

        grid-template-areas:
            "last online"
            "chat chat"
            "rooms peanut"
            "map map" !important;
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media(max-width:760px){
    .dashboard-grid{
        grid-template-columns:1fr !important;
        grid-template-areas:
            "last"
            "chat"
            "online"
            "rooms"
            "map"
            "peanut" !important;
        gap:9px !important;
    }

    .last-card .last-head,
    .last-card .last-row,
    .online-card .online-head,
    .online-card .online-row,
    .rooms-card .room-head,
    .rooms-card .room-row,
    .peanut-card .peanut-head,
    .peanut-card .peanut-row{
        min-width:0 !important;
        width:100% !important;
    }

    .last-card,
    .online-card,
    .rooms-card,
    .chat-card,
    .map-card,
    .peanut-card{
        width:100% !important;
        max-width:100% !important;
    }

    .last-card .scroll-body,
    .online-card .scroll-body,
    .rooms-card .scroll-body,
    .peanut-card .scroll-body{
        overflow-x:hidden !important;
        overflow-y:auto !important;
    }
}

/* =========================================================
   REMATE: NINGUNA CARD PUEDE GENERAR SCROLL HORIZONTAL
   ========================================================= */

.last-card,
.online-card,
.rooms-card,
.peanut-card,
.chat-card,
.map-card,
.last-card *,
.online-card *,
.rooms-card *,
.peanut-card *,
.chat-card *,
.map-card *{
    box-sizing:border-box !important;
}

.last-card .card-body,
.online-card .card-body,
.rooms-card .card-body,
.peanut-card .card-body,
.chat-card .home-chat-shell,
.chat-card .home-chat-main,
.map-card .map-shell{
    overflow-x:hidden !important;
}

/* =========================================================
   SCROLL VERTICAL SOLO EN:
   - ULTIMOS ESCUCHADOS
   - ESTACIONES ONLINE
   NO MODIFICA EL RESTO DEL DASHBOARD
   ========================================================= */

.last-card .card-body,
.online-card .card-body{
    min-height:0 !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
}

.last-card .scroll-body,
.online-card .scroll-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
}
