.dashboard-content { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 13px 32px 72px; scroll-margin-top: 116px; background: var(--bg); }
/* Sticky navigation reserves its actual height in flow; content cannot slide underneath it. */
.dash-nav { position: sticky; top: 0; z-index: 20; height: auto; overflow: visible; background: transparent; border: 0; backdrop-filter: blur(16px); }
.dash-nav-inner { height: 60px; width: 100%; max-width: none; margin: auto; padding: 0 max(32px, calc((100vw - 1440px) / 2 + 32px)); display:flex; align-items:center; justify-content:space-between; background: var(--bg-panel); border-bottom: 1px solid var(--border); }
.dash-nav-brand,.dash-nav-user,.dash-nav-tabs,.dash-nav-tabs-row { display:flex; align-items:center; }
.dash-nav-brand { gap:12px; }.dash-nav-brand .brand-lockup__symbol { width:60px !important; height:60px !important; min-width:60px; }.dash-nav-brand .brand-lockup__symbol img { width:100%; height:100%; }.dash-nav-brand .brand-lockup__name { font-size:19.5px !important; }.dash-nav-brand .brand-lockup__tagline { font-size:9.1px !important; }.dash-nav-dot { width:5px;height:24px;background:var(--brand); }
.dash-nav-user { gap:14px; }.dash-nav-username { font:500 12px var(--font-ui); color:var(--text-dim); }.dash-nav-theme,.dash-nav-logout { background:transparent;border:1px solid var(--border);color:var(--text-dim);border-radius:var(--radius);padding:7px 10px; }.dash-nav-logout:hover,.dash-nav-theme:hover { border-color:var(--accent); color:var(--text); }
.dash-nav-tabs-row { width:100%; max-width:none; margin:auto; padding:0 max(32px, calc((100vw - 1440px) / 2 + 32px)); height:43px; display:flex; align-items:center; background: var(--bg-raised); border-bottom: 1px solid var(--border); }.dash-nav-tabs { gap:5px; }.dash-tab { border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--text-faint);padding:7px 13px;font:600 11px var(--font-ui);letter-spacing:.035em;cursor:pointer; }.dash-tab:hover,.dash-tab.active { background:var(--accent-dim);color:var(--accent);border-color:var(--border-active); }.dash-tab-live { margin-left:6px;color:var(--green);font:600 10px var(--font-mono); }
.section-header { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap; }.section-header > span { font:500 12px var(--font-ui);color:var(--text-dim); }.panel { background:var(--brand-panel),var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius-lg);padding:22px;margin-bottom:16px;box-shadow:var(--shadow-panel); }.panel-header { display:flex;align-items:center;gap:8px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border); }.panel-header h2 { margin:0;color:var(--text); }.panel-dot { width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent); }
/* Brand composition only.  Full crest for authentication; symbol + readable HTML in headers. */
.brand-lockup { display:inline-flex; align-items:center; gap:12px; color:var(--text); }
.brand-lockup__symbol { flex:0 0 auto; width:60px; height:60px; }
.brand-lockup__symbol img { width:100%; height:100%; object-fit:contain; }
.brand-lockup__copy { display:flex; flex-direction:column; min-width:0; }
.brand-lockup__name { font:700 21px/1.1 var(--font-display); letter-spacing:.10em; }
.brand-lockup__tagline { margin-top:5px; color:var(--text-dim); font:600 9px/1.2 var(--font-ui); letter-spacing:.10em; white-space:nowrap; }
.brand-lockup--vertical { display:flex; justify-content:center; }
.brand-lockup--vertical .brand-lockup__symbol { width:min(260px,100%); height:auto; }
.auth-intro-logo-full { width:100%; padding:12px; border:1px solid var(--brand-line); border-radius:var(--radius-lg); background:var(--brand-panel),var(--bg-panel); box-shadow:var(--shadow-panel); position:relative; }
.auth-intro-logo-full::before,.auth-intro-logo-full::after { content:''; position:absolute; width:24px; height:24px; pointer-events:none; }
.auth-intro-logo-full::before { top:-1px; left:-1px; border-top:2px solid var(--brand); border-left:2px solid var(--brand); }
.auth-intro-logo-full::after { bottom:-1px; right:-1px; border-bottom:2px solid var(--brand); border-right:2px solid var(--brand); }
@media(max-width:850px) { .auth-logo .brand-lockup--vertical .brand-lockup__symbol { width:230px !important; } }
/* ─── Video Player ───────────────────────────────────────────────────────── */
.player {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

/* Pantalla completa por CSS (iOS Safari + fallback móvil) */
.player--fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  z-index: 9000;
  border-radius: 0 !important;
  border: none !important;
}
.player--fullscreen .player__screen {
  flex: 1;
  aspect-ratio: auto !important;
  min-height: 0;
}

.player__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.player__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,10,14,0.85);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.player__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.player__badge {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex: 1;
  min-width: 120px;
}

.player__badge--esperando  { color: var(--text-faint); }
.player__badge--conectando { color: var(--amber); }
.player__badge--en-vivo    { color: var(--green); }
.player__badge--sin-señal  { color: var(--red); }

.player__quality {
  display: flex;
  align-items: center;
  gap: 4px;
}

.player__quality-label {
  font-size: 14px;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}

.player__q-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.player__q-btn:hover { border-color: var(--accent); color: var(--accent); }
.player__q-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.player__live-btn {
  background: var(--red-dim);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--red);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.player__live-btn:hover {
  background: var(--red);
  color: #fff;
}

/* ─── Vista pública /watch/ ──────────────────────────────────────────────── */
.watch-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.watch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.watch-header-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}

.watch-header-brand {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.watch-header h1 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 0; /* permite que el flex child se encoja */
}

.watch-main .player {
  width: 100%;
  /* max-width calculado para que el 16:9 nunca supere el alto disponible.
     100px = header (~50px) + padding vertical (32px) + margen de seguridad */
  max-width: min(1200px, calc((100vh - 100px) * (16 / 9)));
}

.watch-main .player__screen {
  aspect-ratio: 16 / 9;
}

.watch-error, .watch-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.05em;
  flex-direction: column;
  gap: 12px;
}

.watch-error span, .watch-loading span {
  font-size: 13px;
  color: var(--text-faint);
}

/* Header: same brand, dimensions and user controls as the previous CORI. */
#site-header{height:60px;padding:0 max(32px,calc((100vw - 1440px)/2 + 32px));gap:14px;position:relative}#site-header .dash-nav-brand{text-decoration:none;flex:1}#site-header span{flex:initial;letter-spacing:normal}#site-header .brand-lockup{display:inline-flex;align-items:center;gap:12px}#site-header .brand-lockup__symbol{width:60px;height:60px;display:block;flex-shrink:0}#site-header .brand-lockup__symbol img{width:100%;height:100%;max-height:none;object-fit:contain}#site-header .brand-lockup__copy{display:flex;flex-direction:column}#site-header .brand-lockup__name{font:700 19.5px/1.1 var(--font-display);letter-spacing:.1em;color:var(--text)}#site-header .brand-lockup__tagline{margin-top:5px;font:600 9.1px/1.2 var(--font-ui);letter-spacing:.1em;color:var(--text-dim);white-space:nowrap}#site-header #header-user{display:none;align-items:center;gap:14px}.dashboard-mode #site-header #header-user{display:flex}#site-header .dash-nav-username{font:500 12px var(--font-ui);color:var(--text-dim)}#site-header .dash-nav-logout{padding:7px 10px;font-size:12px;background:transparent;color:var(--text-dim);border-color:var(--border)}#viewer-title{display:none}.auth-mode #site-header{height:0;padding:0;border:0}.auth-mode #site-header .dash-nav-brand,.auth-mode #site-header #header-user{display:none}.mobile-user-menu{display:none}.shell{min-height:calc(100vh - 60px)}.shell nav{height:43px;padding:0 max(32px,calc((100vw - 1440px)/2 + 32px))}.shell main{padding:13px 32px 72px}
.groups-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}.groups-sidebar{display:flex;flex-direction:column;gap:12px}.group-panel{background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius-lg);padding:12px}.group-panel h2{font-size:14px;margin:0 0 8px}.group-selection{display:flex;flex-direction:column;gap:5px;max-height:310px;overflow:auto}.group-option{display:flex;align-items:center;gap:6px;padding:5px 8px;margin:0;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer}.group-option.selected{background:var(--accent-dim);border-color:var(--accent)}.group-option>span:nth-child(2){font:400 13px var(--font-mono);color:var(--text-dim);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-option input,.pin-option input{width:auto;flex-shrink:0;accent-color:var(--accent)}.selection-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}.group-modes{display:flex;gap:6px}.group-modes button{flex:1;padding:6px 0;background:var(--bg);border-color:var(--border);font:700 13px var(--font-display);color:var(--text-dim)}.group-modes button.active{background:var(--action-bg);color:var(--on-accent)}.group-panel label{font-size:12px;color:var(--text-dim);margin:8px 0}.pin-option{display:flex;align-items:center;gap:6px}.group-panel #create>button{width:100%;font-size:13px;padding:8px}.group-work-area{min-width:0}.group-preview{min-height:400px;background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius-lg);display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;padding:12px}.group-preview>p{align-self:center;justify-self:center;font-size:13px;color:var(--text-faint)}.selected-channel{min-width:0;padding:12px;background:var(--bg-raised);border:1px solid var(--border);border-radius:var(--radius-lg);align-self:start}.selected-channel-screen{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;background:var(--bg);font-size:12px;color:var(--text-faint)}.selected-channel p{text-align:center;margin:8px 0 0;font-size:13px}.group-preview.is-list{display:flex;flex-direction:column;min-height:240px}.group-preview.is-list .selected-channel{width:100%;padding:10px}.group-preview.is-list .selected-channel-screen{display:none}.group-preview.is-list .selected-channel p{margin:0;text-align:left}.group-links{margin-top:20px}.group-link{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding:12px 0}.group-link>div{display:flex;flex-direction:column;gap:4px;flex:1;min-width:140px}.group-link strong{font-size:13px}.group-link span{font-size:12px;color:var(--text-faint)}.group-link a,.group-link button{font-size:11px;padding:5px 8px}.group-link a{color:var(--accent);text-decoration:none}.group-panel [hidden]{display:none!important}.balance-value{font-size:clamp(28px,4vw,42px);font-family:var(--font-mono)}
.viewer-mode #site-header{height:auto;min-height:60px;padding:10px 20px}.viewer-mode #viewer-title{display:block;flex:1;min-width:0;font:700 17px/1.2 var(--font-display);letter-spacing:.06em;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-mode #site-header .dash-nav-brand{flex:initial}.viewer-mode .watch-main{display:flex;flex-direction:column;gap:12px;justify-content:center;align-items:center;max-width:none;min-height:calc(100dvh - 80px);padding:16px}.viewer-access-bar{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;width:100%;margin:0}.viewer-access-bar label{margin:0;font-size:12px;color:var(--text-dim);display:flex;align-items:center;gap:8px}.viewer-access-bar select{width:auto}.viewer-access-bar p{font-size:12px;color:var(--text-faint);margin:0}.viewer-grid{width:100%;gap:12px}.viewer-grid.single-player{grid-template-columns:1fr!important;max-width:min(1200px,calc((100dvh - 175px)*16/9))}.viewer-tile{min-width:0}.viewer-tile h2{text-align:center;font-size:14px;margin:0 0 8px}.player__overlay[hidden]{display:none}.player__q-btn,.player__live-btn{padding:5px 8px;font-size:12px;white-space:nowrap;background:transparent;border:1px solid var(--border);color:var(--text-dim)}.player__q-btn.active{background:var(--action-bg);color:var(--on-accent);border-color:var(--border-active)}.player__quality{display:flex;gap:4px}.player__badge{font-size:12px;min-width:100px}.player__bar{gap:8px;padding:8px 12px}.player__screen video{height:100%;aspect-ratio:auto}.player__overlay{font-size:12px;pointer-events:none;text-align:center;padding:12px}
@media(max-width:850px){#site-header{padding:0 14px}#site-header .dash-nav-username,#site-header #logout{display:none}.mobile-user-menu{display:block;position:relative}.mobile-user-menu summary{list-style:none;padding:4px 10px;border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;font-size:16px}.mobile-user-menu summary::-webkit-details-marker{display:none}.mobile-user-menu>div{position:absolute;top:40px;right:0;z-index:200;background:var(--bg-panel);border:1px solid var(--border-active);border-radius:var(--radius);padding:10px;min-width:180px;max-width:calc(100vw - 28px);box-shadow:var(--shadow-panel)}.mobile-user-menu p{font:400 12px var(--font-mono);color:var(--text-dim);margin:0 0 8px}.mobile-user-menu button{font-size:12px;width:100%;padding:8px}.shell nav{padding:0 14px}.shell main{padding:13px 14px 50px}.groups-workspace{grid-template-columns:1fr}.groups-sidebar{display:grid;grid-template-columns:1fr 1fr}.groups-sidebar .group-panel:first-child{grid-column:1/-1}.group-preview{min-height:240px;grid-template-columns:1fr}.group-selection{max-height:210px}.viewer-mode #site-header{flex-wrap:wrap;padding:6px 14px;gap:8px}.viewer-mode #viewer-title{font-size:12px;flex-basis:100%;order:3}.viewer-mode .watch-main{padding:12px;min-height:calc(100dvh - 110px)}.viewer-access-bar p{flex-basis:100%;text-align:center}.viewer-grid.single-player{max-width:100%}.player__bar{gap:6px;padding:8px}.player__quality{order:3;flex:1}.player__badge{flex:1}.group-link>div{flex-basis:100%}}
@media(max-width:450px){.groups-sidebar{display:flex}.groups-sidebar .group-panel{width:100%}}
.dashboard-mode #site-header{position:sticky;top:0;z-index:30}.dashboard-mode .shell nav{position:sticky;top:60px;z-index:29}
#site-header .brand-lockup__name,#site-header .brand-lockup__tagline{display:block}.shell nav{overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--border) var(--bg)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:6px}
.viewer-grid.single-player{max-width:min(1200px,calc((100dvh - 215px)*16/9))}@media(max-width:850px){.viewer-grid.single-player{max-width:100%}}
.survey-modal{max-width:560px}.survey-form{display:grid;gap:16px}.survey-form fieldset{border:0;padding:0;margin:0;min-width:0}.survey-form legend{margin-bottom:10px;font-weight:600}.survey-ratings{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.survey-ratings label{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid var(--border);border-radius:8px;padding:10px 5px;cursor:pointer}.survey-ratings label:has(input:checked){border-color:var(--accent);background:rgba(34,197,94,.12)}.survey-issues{display:grid;grid-template-columns:1fr 1fr;gap:8px}.survey-issues label{display:flex;align-items:center;gap:8px}.survey-ratings input,.survey-issues input{width:auto;min-height:0}.survey-form textarea{width:100%;resize:vertical}.survey-error{color:#f87171}.survey-form .actions{justify-content:flex-end}@media(max-width:500px){.survey-ratings{grid-template-columns:1fr}.survey-ratings label{flex-direction:row;justify-content:flex-start;gap:10px}.survey-issues{grid-template-columns:1fr}}
.survey-form{gap:12px;margin:0}.survey-form label{margin:0;gap:6px}.survey-form p{margin:0}.survey-form input[type=radio],.survey-form input[type=checkbox]{padding:0;margin:0;height:16px;width:16px;min-width:16px}.survey-form legend{font-size:13px;margin-bottom:8px}.survey-form textarea{min-height:64px;padding:8px}.survey-modal .channel-modal-body{padding:0}.survey-issues{gap:10px}.survey-ratings label{padding:8px 4px;min-height:62px}.survey-modal .channel-modal-heading h2{font-size:15px}.survey-form .actions{margin:0}
.survey-form textarea{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:var(--radius);font:inherit}.survey-form textarea:focus-visible{outline:2px solid var(--accent)}

/* Video.js controls retain CORI's media transport and billing. */
.viewer-start-overlay,.player__overlay{flex-direction:column;gap:16px}.viewer-play{pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:8px;background:transparent;border:0;color:#fff;padding:12px;font:600 14px var(--font-ui);min-width:80px;min-height:80px}.viewer-play>span:first-child{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:var(--action-bg);border:1px solid var(--border-active);font-size:27px;padding-left:5px;box-shadow:0 4px 24px #0006}.viewer-play[hidden]{display:none!important}.player__screen>.video-js{position:absolute;inset:0;width:100%;height:100%;font-size:12px}.player__screen .video-js video{object-fit:contain}.video-js .vjs-control-bar{background:rgba(8,12,20,.9);height:44px}.video-js .vjs-button{background:none;border:0;border-radius:0;min-width:44px;padding:0;box-shadow:none;color:#fff}.video-js .vjs-control .vjs-icon-placeholder:before{line-height:44px}.video-js .vjs-volume-panel{display:flex;align-items:center}.video-js .vjs-fullscreen-control{margin-left:auto}.video-js .vjs-control-bar .vjs-play-control{height:44px}.player:fullscreen,.cori-fullscreen{border-radius:0!important;width:100%!important;height:100%!important;max-width:none!important;background:#000}.cori-fullscreen{position:fixed!important;inset:0!important;z-index:9000;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.player:fullscreen .player__screen,.player.cori-fullscreen .player__screen{flex:1;min-height:0;aspect-ratio:auto!important}.viewer-grid:fullscreen,.viewer-grid.cori-fullscreen{display:grid;align-content:center;padding:12px;overflow:auto}.viewer-grid:fullscreen .viewer-tile,.viewer-grid.cori-fullscreen .viewer-tile{min-height:0}.video-js .vjs-tech{outline:none}
.player:fullscreen .video-js.vjs-fullscreen,.player.cori-fullscreen .video-js.vjs-fullscreen{position:absolute;inset:0;z-index:auto}.viewer-access-bar [hidden]{display:none!important}
.grid-fullscreen-exit{display:none!important}.viewer-grid:fullscreen>.grid-fullscreen-exit,.viewer-grid.cori-fullscreen>.grid-fullscreen-exit{display:block!important;position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));z-index:2;background:#101d30;color:white;border:1px solid #526176;padding:10px 14px;min-height:44px}.viewer-grid:fullscreen,.viewer-grid.cori-fullscreen{padding-top:64px}
.cori-fullscreen{height:100dvh!important}.video-js .vjs-control-bar{visibility:visible!important;opacity:1!important}
.player__badge[hidden]{display:none!important}.player__quality{margin-left:auto}.player__overlay-message{max-width:min(540px,100%);line-height:1.6;letter-spacing:normal}
@media(max-width:600px){.player__overlay-message{font-family:var(--font-ui);font-size:12px;line-height:1.4}.player__overlay-message+.viewer-play{min-height:0;min-width:0;padding:4px;gap:4px;font-size:12px}.player__overlay-message+.viewer-play>span:first-child{width:46px;height:46px;font-size:21px}.player__overlay{gap:8px}}

/* Compact multichannel selector: retain all checked channels while searching. */
.group-selector-panel h2{display:flex;align-items:center;justify-content:space-between;gap:8px;text-transform:none}.group-selection-count{font-size:11px;font-weight:400;color:var(--text-dim);white-space:nowrap}.group-selector-panel .group-selection{gap:3px;max-height:172px;overscroll-behavior:contain}.group-panel .group-option{margin:0;padding:5px 7px;min-height:32px;box-sizing:border-box;gap:8px}.group-option input[type=checkbox]{width:16px;height:16px;min-width:16px;margin:0;padding:0;flex:0 0 16px}.group-selector-panel .group-search-label{margin:0 0 8px;display:grid;gap:4px;font-size:11px}.group-search-label input{padding:6px 8px;min-height:32px}.group-selection [data-group-no-results]{margin:6px 0}
@media(pointer:coarse){.group-panel .group-option{min-height:44px}.group-selector-panel .group-selection{max-height:232px}}

/* Welcome follows CORI's existing palette and day/night branding. */
.welcome-modal{position:relative;width:min(610px,calc(100vw - 28px));padding:26px;border-color:var(--accent);border-top:4px solid var(--accent);background:var(--bg-panel);line-height:1.55}.welcome-modal .welcome-close{position:absolute;right:12px;top:12px;width:32px;height:32px;padding:0;font-size:16px}.welcome-brand{display:flex;align-items:center;gap:16px;padding-right:32px;margin-bottom:18px}.welcome-brand img{width:70px;height:76px;object-fit:contain}.welcome-brand span{font:500 11px var(--font-mono);color:var(--accent);letter-spacing:.08em;max-width:220px}.welcome-modal h2{color:var(--text);font:600 22px var(--font-display);line-height:1.3;margin:0 0 16px;overflow-wrap:anywhere}.welcome-modal p{font-size:14px;margin:12px 0}.welcome-balance{background:var(--accent-dim);border:1px solid var(--border-active);border-radius:var(--radius);padding:3px 16px;margin:18px 0}.welcome-balance p.small{font-size:12px;color:var(--text-dim)}.welcome-next{color:var(--accent);font-weight:600}.welcome-contact{border-top:1px solid var(--border);padding-top:14px;font-size:12px;color:var(--text-dim)}.welcome-contact a{color:var(--accent);white-space:nowrap}@media(max-width:600px){.welcome-modal{padding:20px}.welcome-modal h2{font-size:19px}.welcome-brand{gap:12px}.welcome-brand img{width:56px;height:62px}}

/* Administrative balance history: compact filters and full-width audit detail. */
.movement-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(130px,1fr)) minmax(180px,1.5fr) auto;align-items:end;gap:12px;margin:18px 0}.movement-filters label{margin:0;min-width:0}.movement-filters input,.movement-filters select{width:100%;min-width:0;box-sizing:border-box}.movement-filters .actions{display:flex;gap:6px;align-items:center}.admin-movements td{vertical-align:top}.admin-movements td small{color:var(--text-dim)}.admin-movements [hidden]{display:none}.movement-detail-box{padding:12px;background:var(--bg-raised);border-left:2px solid var(--accent)}.admin-movements td:nth-child(2){overflow-wrap:anywhere}.admin-movements button{font-size:12px;white-space:nowrap}@media(max-width:1100px){.movement-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.movement-filters .actions{grid-column:1/-1}}@media(max-width:500px){.movement-filters{grid-template-columns:1fr}}

/* Shared beta status without changing streaming or admission behavior. */
.beta-badge{display:inline-flex;align-items:center;vertical-align:middle;white-space:nowrap;font:600 10px var(--font-mono);line-height:1;letter-spacing:.08em;padding:4px 6px;border:1px solid var(--accent);border-radius:4px;background:var(--accent-dim);color:var(--accent)}.brand-lockup__name .beta-badge{margin-left:6px}.beta-note{font-size:12px;line-height:1.5;color:var(--text-dim)}.beta-note .beta-badge{margin-right:5px}.beta-note a{color:var(--accent)}.auth-intro .beta-note{margin:14px 0 0;max-width:440px;font-size:11px}.welcome-modal .beta-note{font-size:12px;margin:14px 0}.welcome-modal h2 .beta-badge{margin-left:4px}.viewer-beta-note{margin:0 0 10px}@media(max-width:600px){.viewer-beta-note{font-size:11px}}
.audit-technical{font-size:12px;max-width:290px}.audit-technical dt{color:var(--text-dim);margin-top:6px}.audit-technical dd{margin:2px 0;overflow-wrap:anywhere}.audit-technical+small{font-size:11px}

/* System status: operational summary, optional technical detail. */
.system-status{display:flex;justify-content:space-between;gap:24px;padding:18px 20px;border:1px solid var(--border-active);border-left:4px solid var(--accent);background:var(--bg-panel);border-radius:var(--radius)}.system-status h2{margin:8px 0;font-size:20px}.system-status p{margin:0;max-width:650px;line-height:1.5}.system-status--warning{border-left-color:#e6ad48}.system-updated{display:flex;flex-direction:column;gap:6px;justify-content:center;min-width:190px}.system-updated small,.system-card span,.system-card small{color:var(--text-dim)}.system-section-title{margin:22px 0 12px}.system-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.system-card{display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius);min-width:0}.system-card strong{font:600 26px var(--font-display);color:var(--text);overflow-wrap:anywhere}.system-card small{font-size:11px;line-height:1.4}.system-detail{margin:12px 0;border:1px solid var(--border);background:var(--bg-panel);border-radius:var(--radius);padding:12px 16px;min-width:0}.system-detail summary{cursor:pointer;font-weight:600;min-height:24px}.system-detail summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.system-detail p{line-height:1.5}.system-table{max-width:100%;overflow:auto}.system-table table{width:100%;margin:12px 0}.system-table th,.system-table td{white-space:nowrap}.system-observed{margin-top:24px}.system-observed h2{margin-bottom:8px}.system-retention{line-height:1.5;color:var(--text-dim)}#system-refresh-status{color:var(--text-dim);font-size:12px}@media(max-width:1000px){.system-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.system-status{flex-direction:column;gap:14px}.system-updated{min-width:0}}@media(max-width:480px){.system-cards{grid-template-columns:1fr}.system-status{padding:14px}.system-card{padding:12px}.system-card strong{font-size:23px}}
.system-status{align-items:center;background:linear-gradient(115deg,color-mix(in srgb,var(--bg-panel) 96%,var(--accent)),var(--bg-panel));border-radius:14px;padding:22px 24px;margin:18px 0 30px;box-shadow:0 8px 24px #0000000b}.system-status--warning{border-left-color:#d19a35}.system-eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--text-dim)}.system-status h2{font-size:23px;letter-spacing:-.025em;margin:7px 0}.system-status-copy p{font-size:13px}.system-updated{border-left:1px solid var(--border);padding-left:22px}.system-updated strong{font-size:13px}.system-updated small{font-size:11px}.system-overview,.system-trends{margin:28px 0}.system-section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:12px}.system-section-heading h2{margin:4px 0 0;font-size:20px;letter-spacing:-.02em}.system-live-label,.system-trend-context{font-size:11px;color:var(--text-dim)}.system-live-label{display:flex;align-items:center;gap:7px}.system-live-label i{width:7px;height:7px;border-radius:50%;background:#4b9a76;box-shadow:0 0 0 3px color-mix(in srgb,#4b9a76 16%,transparent)}.system-cards{gap:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--bg-panel);margin:0}.system-card{position:relative;min-height:142px;padding:20px;border:0;border-right:1px solid var(--border);background:transparent}.system-card strong{font-size:30px;line-height:1.2;font-variant-numeric:tabular-nums}.system-card small{font-size:11px}.system-card-mark{position:absolute;top:22px;right:20px;font-size:9px;color:#708071}.system-card-mark--warning{color:#d19a35}.system-trend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.system-trend{min-width:0;border:1px solid var(--border);border-radius:12px;padding:16px 17px;background:var(--bg-panel)}.system-trend-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.system-trend-heading>span{font-size:12px;color:var(--text-dim)}.system-trend-heading strong{font-size:18px;font-variant-numeric:tabular-nums}.system-sparkline{width:100%;height:78px;margin-top:8px;overflow:visible}.system-sparkline-grid{fill:none;stroke:var(--border);stroke-width:1;stroke-dasharray:3 4}.system-sparkline polyline{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.system-trend-meta{display:flex;justify-content:space-between;gap:8px;color:var(--text-dim);font-size:10px;line-height:1.4}.system-trend-empty{font-size:12px;color:var(--text-dim);min-height:72px;display:flex;align-items:center}.system-section-title{margin-top:34px}.system-observed{padding-top:22px}.system-card:last-child{border-right:0}@media(max-width:1000px){.system-trend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.system-trend:last-child{grid-column:1/-1}.system-card:nth-child(2){border-right:0}.system-card:nth-child(3){border-top:1px solid var(--border)}}@media(max-width:600px){.system-status{padding:18px;border-radius:12px}.system-updated{border-left:0;border-top:1px solid var(--border);padding:12px 0 0;margin-top:2px}.system-section-heading{align-items:flex-start;flex-direction:column;gap:7px}.system-section-heading h2{font-size:18px}.system-trend-grid{grid-template-columns:1fr}.system-trend:last-child{grid-column:auto}.system-trend{padding:14px}.system-card{min-height:126px;padding:16px 13px}.system-card-mark{top:18px;right:14px}.system-card strong{font-size:26px}.system-trend-meta{font-size:9px}.system-trend-context{font-size:10px}}

.reason-options{margin:0;padding:0;border:0;min-width:0}.reason-options legend{font-size:12px;color:var(--text-dim);margin-bottom:7px}.reason-buttons{display:flex;flex-wrap:wrap;gap:6px}.reason-buttons button{font-size:12px;padding:8px 10px;min-height:36px}.reason-buttons button[aria-pressed="true"]{color:var(--accent);border-color:var(--accent);background:var(--accent-dim)}.reason-buttons button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.pilot-survey-card{border:1px solid var(--accent)!important;border-top:3px solid var(--accent)!important;background:var(--accent-dim)!important;display:flex;flex-direction:column;gap:10px}.pilot-survey-card .beta-badge{align-self:flex-start}.pilot-survey-card h2{color:var(--text);margin:0}.pilot-survey-card p{margin:0;line-height:1.5}.pilot-survey-card button{margin-top:auto;align-self:flex-start;white-space:normal}.pilot-survey-card .small{color:var(--text-dim);font-size:11px}.pilot-survey-card button:disabled{opacity:.65;cursor:default}

/* Resumen del piloto: cifras compactas con contexto; la encuesta ocupa su propia franja para no estirar las tarjetas. */
.pilot-summary .stat-card{padding:14px 18px;display:flex;flex-direction:column;gap:2px}.pilot-summary .stat-card h2{margin:0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-dim)}.pilot-summary .stat-card .value{font-size:28px;line-height:1.15}.pilot-summary .stat-hint{margin:2px 0 0;font-size:12px;line-height:1.4;color:var(--text-dim)}
.pilot-summary .pilot-survey-card{grid-column:1/-1}
@media (min-width:760px){.pilot-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.pilot-summary .pilot-survey-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:6px;align-items:center}.pilot-summary .pilot-survey-card>*{grid-column:1}.pilot-summary .pilot-survey-card .beta-badge{justify-self:start}.pilot-summary .pilot-survey-card button{grid-column:2;grid-row:1/span 3;margin:0;align-self:center;max-width:280px}.pilot-summary .pilot-survey-card [data-survey-status]{grid-column:1/-1}}

/* Authentication: consistent spacing and sizing at laptop/mobile widths. */
.auth-mode .auth-page{box-sizing:border-box;min-height:100dvh;padding:32px 24px;gap:40px;grid-template-columns:minmax(250px,360px) minmax(320px,420px)}.auth-mode .auth-page *{box-sizing:border-box}.auth-mode .auth-column{width:100%;min-width:0}.auth-mode .auth-intro{width:100%;max-width:360px}.auth-mode .auth-intro-logo-full{padding:12px;margin:0 auto 18px}.auth-mode .auth-intro .cori-logo{width:220px}.auth-mode .auth-intro .eyebrow{margin:0 0 8px;line-height:1.5;letter-spacing:.1em}.auth-mode .auth-intro-meaning{font-size:17px;line-height:1.45;margin:0 0 14px}.auth-mode .auth-intro h1{font-size:29px;line-height:1.2;letter-spacing:-.015em;margin:0 0 12px;text-wrap:balance}.auth-mode .auth-intro-copy{font-size:14px;line-height:1.55;margin:0 auto;max-width:320px}.auth-mode .auth-intro-footer{font-size:9px;line-height:1.6;letter-spacing:.08em;margin-top:20px}.auth-mode .auth-intro .beta-note{margin:14px 0 0;font-size:11px;line-height:1.55;overflow-wrap:anywhere}.auth-mode .auth-card{padding:26px;gap:14px;min-width:0}.auth-mode .auth-eyebrow{font-size:10px;line-height:1.5;letter-spacing:.1em;margin:0 0 7px}.auth-mode .auth-card .auth-title{font-size:25px;line-height:1.2;margin:0 0 8px;letter-spacing:-.02em;text-wrap:balance}.auth-mode .auth-card .auth-sub{font-size:13px;line-height:1.5;margin:0}.auth-mode .auth-card label{gap:6px;font-size:11px;line-height:1.4;letter-spacing:.025em}.auth-mode .auth-card input{width:100%;min-width:0;min-height:44px;padding:10px 12px;font-size:16px;line-height:1.35}.auth-mode .auth-card .btn-primary{min-height:44px;padding:12px 16px;line-height:1.3;font-size:13px}.auth-mode .auth-forgot{margin:0;font-size:12px;line-height:1.4;letter-spacing:normal}.auth-mode .auth-card .btn-link{font-size:12px;line-height:1.5;padding:3px 0;overflow-wrap:anywhere}.auth-mode .auth-contact{margin:12px 0 0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.auth-mode .auth-resend{margin-top:12px;font-size:12px;line-height:1.5}.auth-mode .auth-resend summary{cursor:pointer;padding:4px 0}.auth-mode .auth-resend .auth-card{margin-top:8px;padding:18px}.auth-mode .welcome-modal{box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto;padding:24px;max-width:calc(100vw - 32px)}.auth-mode .welcome-modal h2{font-size:22px;line-height:1.3;text-wrap:balance}.auth-mode .welcome-modal p{font-size:14px;line-height:1.55;margin:12px 0}.auth-mode .welcome-brand{margin-bottom:16px}.auth-mode .welcome-balance{margin:16px 0;padding:3px 14px}.auth-mode .welcome-modal .small,.auth-mode .welcome-modal .beta-note,.auth-mode .welcome-contact{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:850px){.auth-mode .auth-page{grid-template-columns:minmax(0,420px);padding:44px 16px 24px;gap:0;align-items:center}.auth-mode .auth-logo{margin:0 0 2px}.auth-mode .auth-logo .cori-logo{width:150px}.auth-mode .auth-card{padding:22px;gap:13px}.auth-mode .auth-card .auth-title{font-size:24px}.auth-mode .welcome-modal{padding:20px}.auth-mode .welcome-modal h2{font-size:20px}}
@media(max-width:380px){.auth-mode .auth-page{padding-inline:12px}.auth-mode .auth-card{padding:18px}.auth-mode .auth-logo .cori-logo{width:130px}.auth-mode .auth-card .auth-title{font-size:22px}.auth-mode .welcome-modal{padding:18px}.auth-mode .welcome-modal h2{font-size:18px}}
@media(max-height:600px){.auth-mode .auth-page{align-items:start}.auth-mode .auth-logo .cori-logo{width:120px}}

/* Solicitudes de pilotos: lista en Perfil, cuadro en Resumen del administrador y modales. */
.support-state.review{color:var(--accent)}.support-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
.profile-requests{margin-top:18px}.support-item{border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;margin:0 0 10px;background:var(--bg-raised)}.support-item-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.support-item-head small{color:var(--text-dim);margin-left:auto}.support-item details{margin-top:6px;font-size:12px}.support-responses{border-left:3px solid var(--accent);padding:4px 0 4px 12px;margin-top:8px}.support-responses h3{font-size:12px;margin:0 0 4px;color:var(--accent)}.support-responses ul,.support-decisions,.support-history ul{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px}.support-responses small,.support-history small{color:var(--text-dim)}.support-balance{margin:8px 0 0;font-size:13px}
.support-admin-card{grid-column:1/-1;margin-top:18px}.support-admin-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.support-admin-heading h2{margin:0}.support-table td{vertical-align:top;font-size:13px}.support-preview{max-width:320px;white-space:pre-wrap;overflow-wrap:anywhere}
.support-modal{width:min(640px,calc(100vw - 32px))}.support-facts{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:0 0 12px}.support-facts dt{color:var(--text-dim);font-size:12px}.support-facts dd{margin:0;overflow-wrap:anywhere}.support-message{border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;background:var(--bg-raised);max-height:240px;overflow:auto}.support-form{margin-top:12px}.support-form .actions{display:flex;flex-wrap:wrap;gap:8px}.support-history{margin-top:14px}.support-confirmation{display:grid;gap:8px}.support-confirmation p{margin:0}
.support-modal h3{font-size:13px;margin:12px 0 6px}
.support-table{min-width:760px}.support-table .support-preview{min-width:220px}

/* URLs de canal: texto completo en varias líneas para que ningún carácter quede oculto. */
.channel-field-label{display:grid;gap:5px;font-size:12px;margin:10px 0;color:var(--text-dim)}.channel-field--wrap{flex-wrap:wrap;align-items:flex-start}.channel-value{flex:1 1 260px;min-width:0;display:block;padding:9px 11px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-raised);font:500 13px/1.45 var(--font-mono);white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere;user-select:all;-webkit-user-select:all;color:var(--text)}.channel-field-tools{display:flex;gap:5px;flex-wrap:wrap}
@media (max-width:760px){.channel-field--wrap{display:grid;gap:6px}.channel-field--wrap .channel-value{font-size:14px}.channel-field-tools button{min-height:40px;flex:1 1 auto}}

.profile-security{margin-top:16px}.profile-security form{max-width:480px;display:grid;gap:12px}.profile-security form label{display:grid;gap:6px;margin:0}.profile-security form p{margin:0}.profile-security form button{justify-self:start}.profile-security input{min-width:0;width:100%;box-sizing:border-box}
