:root {
  --bg: #eef4f7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #fffdf8;
  --text: #3f413e;
  --muted: #646b72;
  --accent: #ef8600;
  --accent-2: #2c97c9;
  --accent-3: #3ab49c;
  --accent-4: #f3b300;
  --accent-soft: #ffe2bc;
  --border: rgba(63, 65, 62, 0.12);
  --shadow: 0 20px 45px rgba(44, 151, 201, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 134, 0, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(243, 179, 0, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(44, 151, 201, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(58, 180, 156, 0.18), transparent 24%),
    var(--bg);
}

body.web-accessibility-text-small {
  font-size: 15px;
}

body.web-accessibility-text-large {
  font-size: 18px;
}

body.web-accessibility-contrast {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #14181c;
  --muted: #1f2933;
  --accent: #b85f00;
  --accent-2: #0f5e86;
  --border: rgba(20, 24, 28, 0.35);
  --shadow: 0 0 0 rgba(0, 0, 0, 0);
}

body.web-accessibility-contrast .hero,
body.web-accessibility-contrast .controls,
body.web-accessibility-contrast .schedule-panel,
body.web-accessibility-contrast .workshop-modal-card,
body.web-accessibility-contrast .tv-week-board,
body.web-accessibility-contrast .web-week-board-shell {
  backdrop-filter: none;
  box-shadow: none;
  border-width: 2px;
}

body.web-accessibility-invert {
  --bg: #050608;
  --surface: rgba(11, 14, 18, 0.96);
  --surface-strong: #0f1318;
  --text: #f4f7fb;
  --muted: #d8dee7;
  --accent: #ffb347;
  --accent-2: #78cfff;
  --accent-3: #8ddfcf;
  --accent-4: #ffe07b;
  --accent-soft: rgba(255, 179, 71, 0.16);
  --border: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

body.web-accessibility-invert {
  background:
    radial-gradient(circle at top left, rgba(255, 179, 71, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(120, 207, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(141, 223, 207, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 224, 123, 0.16), transparent 24%),
    var(--bg);
}

body.web-accessibility-invert .controls select,
body.web-accessibility-invert .admin-form input,
body.web-accessibility-invert .admin-form select,
body.web-accessibility-invert .admin-form textarea,
body.web-accessibility-invert .workshop-modal-close,
body.web-accessibility-invert .web-accessibility-panel,
body.web-accessibility-invert .web-accessibility-trigger {
  background: #10161d;
  color: var(--text);
  border-color: var(--border);
}

body.web-accessibility-invert .hero,
body.web-accessibility-invert .controls,
body.web-accessibility-invert .summary,
body.web-accessibility-invert .schedule-panel,
body.web-accessibility-invert .workshop-modal-card,
body.web-accessibility-invert .web-week-board-shell,
body.web-accessibility-invert .tv-week-board,
body.web-accessibility-invert .web-view-nav {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

body.web-accessibility-invert .description,
body.web-accessibility-invert .muted,
body.web-accessibility-invert .eyebrow,
body.web-accessibility-invert .web-featured-audience,
body.web-accessibility-invert .web-featured-meta-line,
body.web-accessibility-invert .web-week-meta,
body.web-accessibility-invert .schedule-audience {
  color: var(--muted);
}

body.web-accessibility-invert .web-view-nav-link {
  color: var(--text);
}

body.web-accessibility-invert .web-view-nav-link.is-active,
body.web-accessibility-invert .web-view-nav-link:hover,
body.web-accessibility-invert .web-view-nav-link:focus-visible {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #081018;
}

body.web-accessibility-invert .controls input,
body.web-accessibility-invert .controls select {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

body.web-accessibility-invert .controls input::placeholder {
  color: var(--muted);
}

body.web-accessibility-invert .web-tip-panel {
  border-color: rgba(255, 179, 71, 0.28);
  background: linear-gradient(135deg, rgba(16, 22, 29, 0.98), rgba(12, 17, 23, 0.96));
  box-shadow: var(--shadow);
}

body.web-accessibility-invert .web-tip-text {
  color: var(--text);
  border-left-color: rgba(255, 179, 71, 0.52);
}

body.web-accessibility-invert .web-tip-link,
body.web-accessibility-invert .web-tip-nav {
  color: var(--accent);
}

body.web-accessibility-invert .web-tip-nav {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 179, 71, 0.25);
}

body.web-accessibility-invert .web-tip-nav:hover,
body.web-accessibility-invert .web-tip-nav:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff2db;
}

body.web-accessibility-invert .web-featured-panel {
  border-color: rgba(44, 151, 201, 0.18);
  background: linear-gradient(135deg, rgba(238, 247, 251, 0.98), rgba(255, 253, 248, 0.94));
  box-shadow:
    0 18px 36px rgba(44, 151, 201, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  color: #3f413e;
}

body.web-accessibility-invert .web-featured-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(20, 24, 28, 0.08);
  color: #3f413e;
  box-shadow: none;
}

body.web-accessibility-invert .schedule-item,
body.web-accessibility-invert .tv-week-workshop,
body.web-accessibility-invert .room-card,
body.web-accessibility-invert .room-timeline-room,
body.web-accessibility-invert .room-timeline-entry {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
  box-shadow: none;
}

body.web-accessibility-invert .web-featured-card h3,
body.web-accessibility-invert .subject,
body.web-accessibility-invert .room-card-title,
body.web-accessibility-invert .room-timeline-entry-title,
body.web-accessibility-invert .tv-week-workshop h3,
body.web-accessibility-invert .tv-week-day-head strong,
body.web-accessibility-invert .tv-week-time-cell strong {
  color: var(--text);
}

body.web-accessibility-invert .web-featured-panel .eyebrow,
body.web-accessibility-invert .web-featured-panel h2,
body.web-accessibility-invert .web-featured-card h3 {
  color: #24313a;
}

body.web-accessibility-invert .web-featured-audience,
body.web-accessibility-invert .web-featured-meta-line,
body.web-accessibility-invert .web-featured-description,
body.web-accessibility-invert .web-featured-panel .muted {
  color: #5d6973;
}

body.web-accessibility-invert .attendance-chip,
body.web-accessibility-invert .web-attendance-note {
  background: rgba(255, 255, 255, 0.88);
  color: #16556f;
}

body.web-accessibility-invert .web-featured-time,
body.web-accessibility-invert .time-block,
body.web-accessibility-invert .room-card-chip,
body.web-accessibility-invert .room-timeline-room-chip,
body.web-accessibility-invert .room-timeline-entry-time {
  color: var(--accent);
}

body.web-accessibility-invert .web-featured-time {
  color: #16556f;
}

body.web-accessibility-invert .activity-badge,
body.web-accessibility-invert .kind-taller,
body.web-accessibility-invert .kind-asesoria,
body.web-accessibility-invert .kind-consejeria {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

body.web-accessibility-invert .featured-badge {
  background: rgba(226, 243, 251, 0.96);
  border-color: rgba(44, 151, 201, 0.2);
  color: #16556f;
}

body.web-accessibility-invert .tag {
  color: #081018;
}

body.web-accessibility-invert .empty-state,
body.web-accessibility-invert .room-timeline-cell.is-free {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.14);
}

body.web-accessibility-reduce-motion *,
body.web-accessibility-reduce-motion *::before,
body.web-accessibility-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body.web-accessibility-dyslexia {
  font-family: "OpenDyslexic", "Atkinson Hyperlegible", Verdana, Tahoma, Arial, sans-serif;
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
  line-height: 1.7;
}

body.web-accessibility-dyslexia h1,
body.web-accessibility-dyslexia h2,
body.web-accessibility-dyslexia h3,
body.web-accessibility-dyslexia p,
body.web-accessibility-dyslexia label,
body.web-accessibility-dyslexia button,
body.web-accessibility-dyslexia a,
body.web-accessibility-dyslexia span {
  line-height: 1.7;
}

.app {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 32px;
  display: grid;
  gap: 16px;
}

.hero,
.controls,
.summary,
.schedule-panel {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.schedule-panel {
  position: relative;
  z-index: 1;
}

.room-form-panel {
  z-index: 20;
  isolation: isolate;
  transform: translateZ(0);
}

.room-quick-text {
  margin: 14px 0 18px;
}

.hero {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 18px;
  align-items: center;
  border-radius: 28px;
}

.hero-side {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: stretch;
  gap: 12px;
}

.hero-side--compact {
  grid-template-columns: auto auto;
  justify-content: end;
}

.eyebrow,
.status-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.hero h1,
.schedule-panel h2,
.summary-card h2 {
  margin: 0;
}

.description,
.muted {
  color: var(--muted);
}

.description {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.5;
}

.status-card {
  min-width: 220px;
  padding: 16px 18px;
  background: var(--surface-strong);
  border-radius: 22px;
  border: 1px solid var(--border);
}

.status-card strong {
  display: block;
  font-size: 2.15rem;
}

.controls {
  padding: 16px 20px;
  border-radius: 22px;
  overflow: visible;
}

.controls label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.controls select,
.controls input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
}

.controls input::placeholder {
  color: #7b8791;
}

.web-discovery-controls {
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(220px, 1.15fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) minmax(260px, 1.45fr) auto;
  gap: 14px;
  align-items: end;
}

.web-discovery-field {
  min-width: 0;
}

.web-discovery-field-search input {
  width: 100%;
}

.web-discovery-reset {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(44, 151, 201, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  color: #16556f;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.web-discovery-reset:hover,
.web-discovery-reset:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(44, 151, 201, 0.32);
  background: #ffffff;
  outline: none;
}

@media (max-width: 960px) {
  .web-discovery-controls {
    grid-template-columns: 1fr;
  }

  .web-discovery-reset {
    width: 100%;
  }
}

.action-link,
.primary-button,
.secondary-button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.action-link,
.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.secondary-button,
.file-button {
  color: var(--text);
  background: var(--surface-strong);
}

.small-button {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.accessibility-button {
  padding: 6px 10px;
  font-size: 0.78rem;
  justify-self: start;
}

.danger-button {
  color: #992a10;
}

.warning-button {
  color: #8a3b13;
}

.web-accessibility-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.web-accessibility-widget.is-embedded {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 40;
}

.web-nav-accessibility-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.web-accessibility-widget.is-open {
  z-index: 260;
}

.web-accessibility-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.web-accessibility-trigger:hover,
.web-accessibility-trigger:focus-visible,
.web-accessibility-trigger[aria-expanded="true"] {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  outline: none;
}

.web-accessibility-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}

.web-accessibility-overlay.is-open {
  pointer-events: auto;
}

.web-accessibility-backdrop {
  position: fixed;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(20, 24, 28, 0.12);
  opacity: 0;
  pointer-events: none;
}

.web-accessibility-overlay.is-open .web-accessibility-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.web-accessibility-panel {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(20, 24, 28, 0.12);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 44px rgba(20, 24, 28, 0.18);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 261;
}

.web-accessibility-overlay.is-open .web-accessibility-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.web-accessibility-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.web-accessibility-panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.web-accessibility-panel-eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

.web-accessibility-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
}

.web-accessibility-close:hover,
.web-accessibility-close:focus-visible {
  background: rgba(15, 94, 134, 0.08);
  outline: none;
}

.web-accessibility-group {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(20, 24, 28, 0.08);
}

.web-accessibility-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.web-accessibility-group-title {
  margin: 0;
  font-weight: 700;
}

.web-accessibility-text-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-accessibility-option,
.web-accessibility-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 24, 28, 0.12);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.web-accessibility-option.is-active,
.web-accessibility-toggle.is-active {
  border-color: rgba(15, 94, 134, 0.34);
  background: rgba(15, 94, 134, 0.08);
  color: #0f5e86;
}

.web-accessibility-toggle {
  justify-content: flex-start;
}

.web-accessibility-help {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .web-accessibility-widget.is-embedded {
    justify-items: start;
  }
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  position: relative;
  z-index: 30;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  position: relative;
  z-index: 30;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  position: relative;
  z-index: 31;
  pointer-events: auto;
}

.admin-form textarea {
  resize: vertical;
  min-height: 112px;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.admin-checkbox input {
  width: 18px;
  height: 18px;
}

.admin-sublist {
  margin-top: 18px;
}

.admin-server-panel {
  margin-bottom: 18px;
}

.admin-xlsx-panel {
  margin-bottom: 18px;
}

.admin-xlsx-panel .xlsx-drop-zone {
  min-height: 160px;
}

.admin-xlsx-panel .xlsx-drop-zone h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
}

.xlsx-admin-results {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 48, 64, 0.12);
}

.xlsx-admin-results h3 {
  margin: 4px 0 0;
  color: #123047;
}

.admin-server-status {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(7, 31, 66, 0.14);
  border-radius: 18px;
  background: #f4f7fb;
  color: var(--text);
}

.admin-server-status strong {
  font-size: 1rem;
}

.admin-server-status span {
  color: var(--muted);
  line-height: 1.45;
}

.admin-server-status.is-online {
  border-color: rgba(0, 122, 126, 0.28);
  background: #edfafa;
}

.admin-server-status.is-checking,
.admin-server-status.is-local {
  border-color: rgba(243, 107, 0, 0.26);
  background: #fff7ed;
}

.admin-server-status.is-error {
  border-color: rgba(185, 28, 28, 0.3);
  background: #fff1f2;
}

.rooms-hero-side {
  grid-template-columns: repeat(3, auto);
  justify-content: end;
}

.rooms-grid {
  align-items: start;
}

.room-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-form-full {
  grid-column: 1 / -1;
}

.room-filter-stack label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.room-filter-stack input,
.room-filter-stack select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}

.rooms-summary {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rooms-list {
  display: grid;
  gap: 12px;
}

.room-booking-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: start;
}

.room-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.room-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.room-badge-workshop {
  color: #7a4c00;
  background: #fff0cf;
}

.room-badge-manual {
  color: #156049;
  background: #dff5ed;
}

.room-badge-free {
  color: #5f6870;
  background: #eceff2;
}

.room-message-error {
  color: #992a10;
  font-weight: 700;
}

.room-message-success {
  color: #156049;
  font-weight: 700;
}

.room-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.room-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
}

.print-subtitle {
  margin: 8px 0 0;
}

.free-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.free-selection-bar .muted {
  margin: 0;
}

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.day-tab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  min-width: 130px;
  text-align: left;
}

.day-tab span {
  font-size: 0.78rem;
  text-transform: capitalize;
  color: var(--muted);
}

.day-tab strong {
  font-size: 0.95rem;
  color: var(--text);
}

.day-tab.is-active {
  background: linear-gradient(90deg, rgba(44, 151, 201, 0.14), rgba(239, 134, 0, 0.16));
  border-color: rgba(44, 151, 201, 0.35);
}

.print-header {
  display: none;
}

.print-header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.print-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.print-kicker,
.print-meta-line,
.print-generated-line {
  margin: 0;
  color: var(--muted);
}

.print-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

.print-title {
  margin: 4px 0 6px;
  font-size: 1.8rem;
}

.print-header-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.room-week-grid {
  overflow: visible;
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
}

.day-layout {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.day-hour-rail {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 12px;
}

.day-hour-rail-header {
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-hour-rail-list {
  display: grid;
  gap: 8px;
}

.day-hour-item {
  min-height: 44px;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed rgba(63, 65, 62, 0.16);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.day-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.day-room-section {
  display: grid;
  gap: 10px;
  align-content: start;
}

.day-room-header {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.day-room-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.day-room-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed rgba(63, 65, 62, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 700;
}

.day-room-list {
  display: grid;
  gap: 10px;
}

.day-period-group {
  display: grid;
  gap: 8px;
}

.day-period-header {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(63, 65, 62, 0.08);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.day-period-cards {
  display: grid;
  gap: 10px;
}

.day-room-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(63, 65, 62, 0.12);
  box-shadow: 0 8px 18px rgba(29, 41, 57, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.day-room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(29, 41, 57, 0.14);
}

.day-room-card-workshop {
  border-left: 5px solid #ef8600;
  background: linear-gradient(180deg, #fff7ea, #fffdfa);
}

.day-room-card-manual {
  border-left: 5px solid #2c97c9;
  background: linear-gradient(180deg, #eef7fb, #fbfdff);
}

.day-room-card-free {
  position: relative;
  background: linear-gradient(180deg, #f2f4f6, #fbfbfc);
  border: 1px dashed rgba(95, 104, 112, 0.35);
  color: #495057;
  cursor: pointer;
}

.day-room-card-free:hover {
  background: linear-gradient(180deg, #eceff2, #f7f8f9);
  border-color: rgba(95, 104, 112, 0.55);
}

.day-room-card-free.is-selected {
  background: linear-gradient(180deg, #dfe4e9, #edf1f4);
  border-color: rgba(95, 104, 112, 0.6);
  box-shadow: inset 0 0 0 1px rgba(95, 104, 112, 0.15);
}

.day-room-card-workshop:hover {
  border-color: rgba(239, 134, 0, 0.4);
}

.day-room-card-manual:hover {
  border-color: rgba(44, 151, 201, 0.4);
}

.room-block-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
}

.room-modal-card {
  width: min(760px, calc(100vw - 40px));
}

.day-room-time {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.day-room-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.day-room-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.day-room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.room-color-12 {
  background: linear-gradient(180deg, #fff4d7, #fffaf0);
  color: #7a4c00;
}

.room-color-13 {
  background: linear-gradient(180deg, #dff4ff, #f4fbff);
  color: #16556f;
}

.room-color-22 {
  background: linear-gradient(180deg, #e6f8ee, #f4fdf7);
  color: #176348;
}

.room-color-23 {
  background: linear-gradient(180deg, #f6e8ff, #fcf7ff);
  color: #6e3694;
}

.room-color-meet {
  background: linear-gradient(180deg, #ffe4e6, #fff7f8);
  color: #9a2d43;
}

@media (max-width: 900px) {
  .room-booking-item {
    grid-template-columns: 1fr;
  }

  .rooms-hero-side {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .rooms-summary {
    grid-template-columns: 1fr;
  }
}

.admin-actions,
.tool-stack,
.admin-card-actions,
.panel-header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions {
  grid-column: 1 / -1;
}

.tool-stack {
  margin-top: 18px;
}

.panel-header {
  align-items: end;
  justify-content: space-between;
}

.admin-filter {
  min-width: 260px;
}

.admin-filter label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.admin-filter select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}

.file-button input {
  display: none;
}

.admin-item {
  grid-template-columns: 110px 1fr auto;
}

.admin-attendance-note {
  color: #16556f;
  font-weight: 800;
}

.attendance-badge {
  border-color: rgba(239, 134, 0, 0.22);
  background: linear-gradient(90deg, rgba(255, 234, 204, 0.98), rgba(255, 244, 218, 0.94));
  color: #7a4300;
}

.admin-attendance-panel {
  display: grid;
  gap: 18px;
}

.attendance-panel-header {
  align-items: start;
}

.attendance-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  min-width: min(100%, 680px);
}

.attendance-filters label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.attendance-filters select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.attendance-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.attendance-findings-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 18%, rgba(14, 116, 144, 0.12), transparent 30%),
    radial-gradient(circle at 94% 18%, rgba(239, 134, 0, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 252, 0.76));
  box-shadow: 0 18px 38px rgba(22, 85, 111, 0.1);
}

.attendance-findings-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attendance-findings-card h3 {
  margin: 4px 0 8px;
  color: #16556f;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
}

.attendance-findings-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}

.attendance-findings-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.attendance-findings-tags span {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(44, 151, 201, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #16556f;
  font-size: 0.74rem;
  line-height: 1.2;
  text-transform: none;
}

.attendance-summary-card,
.attendance-monitor-card {
  border: 1px solid rgba(44, 151, 201, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 252, 0.72));
  box-shadow: 0 16px 34px rgba(44, 151, 201, 0.08);
}

.attendance-summary-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: 20px;
}

.attendance-summary-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attendance-summary-card strong {
  color: #16556f;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1;
}

.attendance-summary-card:first-child {
  border-color: rgba(239, 134, 0, 0.24);
  background:
    radial-gradient(circle at 90% 10%, rgba(239, 134, 0, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.98), rgba(239, 248, 252, 0.84));
}

.attendance-summary-card:first-child strong {
  color: #b35d00;
  font-size: clamp(2rem, 3.1vw, 3rem);
}

.attendance-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.32;
}

.attendance-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.attendance-monitor-grid--tables {
  align-items: start;
}

.attendance-monitor-grid--focus {
  grid-template-columns: 0.82fr 1.18fr;
}

.attendance-monitor-card {
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
}

.attendance-workshop-history-card {
  display: grid;
  gap: 16px;
  border-color: rgba(239, 134, 0, 0.18);
  background:
    radial-gradient(circle at 94% 8%, rgba(239, 134, 0, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 252, 0.78));
}

.attendance-card-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.attendance-card-heading--inline {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 16px;
}

.attendance-card-heading h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.attendance-workshop-picker {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.attendance-workshop-picker select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(44, 151, 201, 0.18);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.attendance-workshop-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.attendance-workshop-summary article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(44, 151, 201, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.attendance-workshop-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attendance-workshop-summary strong {
  color: #16556f;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  line-height: 1;
}

.attendance-workshop-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
}

.attendance-session-chart {
  display: grid;
  gap: 9px;
  max-height: 360px;
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.attendance-session-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(180px, 1.25fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(63, 65, 62, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-session-row > div:first-child {
  min-width: 0;
}

.attendance-session-row strong {
  color: var(--text);
}

.attendance-session-row > strong {
  color: #16556f;
  font-size: 1.35rem;
  text-align: right;
}

.attendance-session-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.28;
}

.attendance-session-bar {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(44, 151, 201, 0.12);
}

.attendance-session-bar span {
  display: block;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef8600, #2c97c9);
}

.attendance-workshop-table {
  max-height: 300px;
}

.attendance-history-footnote {
  margin: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.analysis-hero {
  border-color: rgba(14, 116, 144, 0.12);
  background:
    radial-gradient(circle at 78% 20%, rgba(44, 151, 201, 0.18), transparent 30%),
    radial-gradient(circle at 92% 86%, rgba(239, 134, 0, 0.14), transparent 26%),
    rgba(255, 255, 255, 0.94);
}

.analysis-panel {
  gap: 20px;
}

.attendance-zero-alert-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(190, 72, 34, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 10%, rgba(239, 134, 0, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 245, 229, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 16px 34px rgba(190, 72, 34, 0.08);
}

.attendance-zero-alert-card.is-clear {
  display: block;
  border-color: rgba(47, 133, 90, 0.18);
  background:
    radial-gradient(circle at 95% 10%, rgba(47, 133, 90, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(241, 252, 246, 0.96), rgba(255, 255, 255, 0.9));
}

.attendance-zero-alert-card span {
  display: block;
  color: #b35d00;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attendance-zero-alert-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.attendance-zero-alert-card p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.attendance-zero-alert-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attendance-zero-alert-card li {
  padding: 11px 12px;
  border: 1px solid rgba(190, 72, 34, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.attendance-zero-alert-card li strong {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.attendance-zero-alert-card li span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
  text-transform: none;
}

.attendance-zero-alert-card--expanded {
  grid-template-columns: minmax(0, 0.7fr) minmax(360px, 1.3fr);
  align-items: start;
}

.attendance-alert-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.attendance-alert-group {
  display: grid;
  gap: 10px;
}

.attendance-alert-group h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.attendance-zero-alert-card .attendance-alert-group ul {
  grid-template-columns: 1fr;
}

.attendance-zero-alert-card li small {
  display: block;
  margin-top: 4px;
  color: rgba(92, 72, 54, 0.76);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.attendance-alert-empty {
  margin: 0;
  padding: 11px 12px;
  border: 1px dashed rgba(190, 72, 34, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.attendance-line-chart {
  display: grid;
  gap: 10px;
  min-height: 300px;
}

.attendance-line-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.attendance-period-card {
  margin: 16px 0;
  border-color: rgba(14, 116, 144, 0.18);
  background:
    radial-gradient(circle at 14% 18%, rgba(14, 116, 144, 0.08), transparent 34%),
    radial-gradient(circle at 94% 22%, rgba(239, 134, 0, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 252, 0.74));
}

.attendance-period-line-chart {
  min-height: 390px;
}

.attendance-timeblock-card {
  margin: 16px 0;
  border-color: rgba(239, 134, 0, 0.18);
  background:
    radial-gradient(circle at 86% 14%, rgba(239, 134, 0, 0.13), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(44, 151, 201, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 237, 0.72));
}

.attendance-timeblock-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: start;
}

.attendance-timeblock-row.is-top-timeblock {
  border-color: rgba(239, 134, 0, 0.26);
  background:
    radial-gradient(circle at 94% 12%, rgba(239, 134, 0, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.86);
}

.attendance-timeblock-row.is-top-timeblock .attendance-bar-row-head strong {
  color: #b35d00;
}

.attendance-timeblock-table {
  max-height: 430px;
}

.attendance-table tr.is-highlight td {
  background: rgba(255, 241, 221, 0.55);
}

.line-chart-bg {
  fill: rgba(255, 255, 255, 0.64);
  stroke: rgba(14, 116, 144, 0.08);
  stroke-width: 1;
}

.line-chart-grid {
  stroke: rgba(22, 85, 111, 0.09);
  stroke-width: 1;
}

.line-chart-baseline {
  stroke: rgba(22, 85, 111, 0.28);
  stroke-width: 1.4;
}

.line-chart-axis {
  fill: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.line-chart-axis-title {
  fill: #16556f;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.line-chart-end-label {
  font-size: 0.86rem;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 4px;
}

.line-chart-area {
  opacity: 0.11;
  pointer-events: none;
}

.line-chart-line {
  filter: drop-shadow(0 8px 14px rgba(22, 85, 111, 0.13));
}

.line-chart-point {
  filter: drop-shadow(0 5px 8px rgba(22, 85, 111, 0.14));
  transition: transform 180ms ease;
}

.line-chart-hit-area {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  cursor: pointer;
  outline: none;
}

.line-chart-hit-area:hover,
.line-chart-hit-area:focus-visible {
  fill: rgba(14, 116, 144, 0.08);
  stroke: rgba(14, 116, 144, 0.45);
  stroke-width: 2.2;
}

.line-chart-selected-point {
  fill: rgba(239, 134, 0, 0.12);
  stroke: #ef8600;
  stroke-width: 3.5;
  filter: drop-shadow(0 8px 14px rgba(239, 134, 0, 0.24));
  pointer-events: none;
}

.line-chart-highlight line {
  stroke: rgba(22, 85, 111, 0.24);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
}

.line-chart-highlight circle {
  fill: #fff;
  stroke: #16556f;
  stroke-width: 2.8;
  filter: drop-shadow(0 6px 10px rgba(22, 85, 111, 0.16));
}

.line-chart-highlight-box {
  fill: rgba(255, 255, 255, 0.82);
  stroke: rgba(14, 116, 144, 0.13);
  stroke-width: 1;
  filter: drop-shadow(0 8px 16px rgba(22, 85, 111, 0.12));
}

.line-chart-highlight--peak circle {
  stroke: #ef8600;
}

.line-chart-highlight--drop circle {
  stroke: #be4822;
}

.line-chart-highlight--drop .line-chart-highlight-box {
  fill: rgba(255, 248, 238, 0.86);
  stroke: rgba(190, 72, 34, 0.18);
}

.line-chart-highlight-label {
  fill: #16556f;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.line-chart-highlight--drop .line-chart-highlight-label {
  fill: #be4822;
}

.line-chart-highlight-value {
  fill: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.line-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  align-content: flex-start;
}

.line-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(44, 151, 201, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.line-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.attendance-period-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.attendance-period-insights article {
  padding: 12px 14px;
  border: 1px solid rgba(44, 151, 201, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-period-insights span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.attendance-period-insights strong {
  display: block;
  margin-top: 4px;
  color: #16556f;
  font-size: clamp(1.35rem, 2.1vw, 2.1rem);
  line-height: 1;
}

.attendance-period-insights p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
}

.attendance-period-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 8%, rgba(239, 134, 0, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.82);
}

.attendance-period-detail.is-empty {
  padding: 20px;
  border-style: dashed;
  color: var(--muted);
}

.attendance-period-detail.is-empty strong {
  color: #16556f;
  font-size: 1.05rem;
}

.attendance-period-detail.is-empty p {
  margin: 6px 0 0;
  line-height: 1.35;
}

.attendance-period-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 14px;
  align-items: stretch;
}

.attendance-period-detail-head > div:first-child span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.attendance-period-detail-head > div:first-child strong {
  display: block;
  margin-top: 4px;
  color: #16556f;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.attendance-period-detail-head > div:first-child p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.34;
}

.attendance-period-kind-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.attendance-period-kind-pills article {
  padding: 11px 12px;
  border: 1px solid rgba(44, 151, 201, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-period-kind-pills span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attendance-period-kind-pills strong {
  display: block;
  margin-top: 4px;
  color: #16556f;
  font-size: 1.45rem;
  line-height: 1;
}

.attendance-period-kind-pills p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.attendance-period-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.attendance-period-detail-grid section {
  min-width: 0;
}

.attendance-period-detail-grid h4 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 1rem;
}

.attendance-period-detail-list {
  display: grid;
  gap: 8px;
}

.attendance-period-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.85fr) 54px;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(63, 65, 62, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
}

.attendance-period-detail-row > div:first-child {
  min-width: 0;
}

.attendance-period-detail-row strong {
  color: var(--text);
}

.attendance-period-detail-row > strong {
  color: #16556f;
  font-size: 1.15rem;
  text-align: right;
}

.attendance-period-detail-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.attendance-period-detail-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(44, 151, 201, 0.12);
}

.attendance-period-detail-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef8600, #2c97c9);
}

.attendance-professional-profile-card {
  display: grid;
  gap: 16px;
  border-color: rgba(14, 116, 144, 0.16);
  background:
    radial-gradient(circle at 10% 10%, rgba(44, 151, 201, 0.11), transparent 28%),
    radial-gradient(circle at 95% 12%, rgba(239, 134, 0, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 252, 0.8));
}

.attendance-professional-profile {
  display: grid;
  gap: 16px;
}

.attendance-professional-profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(44, 151, 201, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-professional-profile-head span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attendance-professional-profile-head strong {
  display: block;
  margin-top: 4px;
  color: #16556f;
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  line-height: 1.05;
}

.attendance-professional-profile-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.attendance-professional-status {
  justify-self: end;
  padding: 10px 13px;
  border: 1px solid rgba(47, 133, 90, 0.2);
  border-radius: 999px;
  background: rgba(241, 252, 246, 0.9);
  color: #2f855a;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.attendance-professional-status.is-zero {
  border-color: rgba(190, 72, 34, 0.24);
  background: rgba(255, 241, 221, 0.9);
  color: #b35d00;
}

.attendance-professional-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.attendance-professional-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.attendance-professional-profile-box {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(44, 151, 201, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.attendance-professional-profile-box h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
}

.attendance-professional-sessions {
  max-height: 330px;
}

.attendance-ranking-list {
  display: grid;
  gap: 10px;
}

.attendance-chart-list {
  display: grid;
  gap: 14px;
}

.attendance-bar-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(63, 65, 62, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-bar-row.is-workshop {
  border-color: rgba(239, 134, 0, 0.24);
  background: rgba(255, 245, 229, 0.78);
}

.attendance-bar-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.attendance-bar-row-head strong {
  min-width: 0;
  line-height: 1.2;
}

.attendance-bar-row-head span {
  color: #16556f;
  font-weight: 900;
  white-space: nowrap;
}

.attendance-bar-track,
.attendance-mini-bar {
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(44, 151, 201, 0.12);
}

.attendance-bar-track {
  height: 14px;
}

.attendance-mini-bar {
  height: 8px;
  margin-top: 8px;
}

.attendance-bar-track span,
.attendance-mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.attendance-bar-row.is-workshop .attendance-bar-track span {
  background: linear-gradient(90deg, #ef8600, #2c97c9);
}

.attendance-bar-row.is-consejeria {
  border-color: rgba(23, 135, 115, 0.22);
  background: rgba(232, 248, 243, 0.72);
}

.attendance-bar-row.is-consejeria .attendance-bar-track span {
  background: linear-gradient(90deg, #178773, #2c97c9);
}

.attendance-bar-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.attendance-ranking-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(63, 65, 62, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-ranking-item.is-low {
  border-color: rgba(239, 134, 0, 0.22);
  background: rgba(255, 241, 221, 0.76);
}

.attendance-rank-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-weight: 900;
}

.attendance-rank-copy {
  min-width: 0;
}

.attendance-rank-copy h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.18;
}

.attendance-rank-copy p,
.attendance-rank-copy small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.28;
}

.attendance-ranking-item > strong {
  color: #16556f;
  font-size: 1.55rem;
  line-height: 1;
}

.attendance-ranking-item--professional > strong {
  font-size: 1.85rem;
}

.attendance-table-wrap {
  max-height: 430px;
  overflow: auto;
  border: 1px solid rgba(63, 65, 62, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.attendance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.attendance-table th,
.attendance-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(63, 65, 62, 0.08);
  text-align: left;
  vertical-align: top;
}

.attendance-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef8fc;
  color: #16556f;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attendance-table td strong,
.attendance-table td span {
  display: block;
}

.attendance-table td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.28;
}

.attendance-table tr.is-low td {
  background: rgba(255, 241, 221, 0.5);
}

@media (max-width: 1180px) {
  .attendance-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attendance-findings-card {
    grid-template-columns: 1fr;
  }

  .attendance-findings-tags {
    justify-content: flex-start;
  }

  .attendance-monitor-grid,
  .attendance-filters {
    grid-template-columns: 1fr;
  }

  .attendance-card-heading--inline,
  .attendance-workshop-summary,
  .attendance-period-insights,
  .attendance-period-detail-head,
  .attendance-period-detail-grid,
  .attendance-period-kind-pills,
  .attendance-timeblock-grid,
  .attendance-zero-alert-card,
  .attendance-professional-profile-head,
  .attendance-professional-summary,
  .attendance-professional-profile-grid,
  .attendance-period-detail-row,
  .attendance-session-row {
    grid-template-columns: 1fr;
  }

  .attendance-zero-alert-card ul {
    grid-template-columns: 1fr;
  }

  .attendance-alert-groups {
    grid-template-columns: 1fr;
  }

  .attendance-professional-status {
    justify-self: start;
    white-space: normal;
  }

  .attendance-session-row > strong {
    text-align: left;
  }
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
}

.summary--single {
  grid-template-columns: 1fr;
}

.summary-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.summary-card h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.summary-card p,
.summary-card div {
  line-height: 1.4;
}

.schedule-panel {
  padding: 22px;
  border-radius: 24px;
}

.schedule-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

html {
  scroll-behavior: smooth;
}

.web-view-nav {
  position: relative;
  z-index: 70;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(44, 151, 201, 0.12);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.web-view-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.web-view-nav-link.is-active,
.web-view-nav-link:hover,
.web-view-nav-link:focus-visible {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  outline: none;
}

.web-expanded-app {
  gap: 18px;
}

.web-tip-panel {
  position: relative;
  overflow: hidden;
  padding: 16px 20px;
  border-color: rgba(239, 134, 0, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 245, 226, 0.98), rgba(255, 252, 245, 0.94));
  box-shadow:
    0 20px 40px rgba(239, 134, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.web-tip-panel::before {
  content: "";
  position: absolute;
  top: -132px;
  right: -36px;
  width: 270px;
  height: 270px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 134, 0, 0.16), rgba(239, 134, 0, 0));
  pointer-events: none;
  animation: webTipFloatPrimary 18s ease-in-out infinite;
}

.web-tip-panel::after {
  content: "";
  position: absolute;
  left: -72px;
  bottom: -128px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(233, 91, 54, 0.12), rgba(233, 91, 54, 0));
  pointer-events: none;
  animation: webTipFloatSecondary 22s ease-in-out infinite;
}

.web-tip-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.web-tip-actions {
  display: inline-flex;
  align-items: center;
}

.web-tip-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.web-tip-text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid rgba(239, 134, 0, 0.32);
  font-size: clamp(1rem, 1.28vw, 1.14rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--text);
  max-width: 84ch;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.web-tip-text.is-transitioning {
  opacity: 0;
  transform: translateY(6px);
}

.web-tip-text--measure {
  position: absolute;
  left: -9999px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}

.web-tip-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.88;
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.web-tip-nav {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(239, 134, 0, 0.2);
  background: rgba(255, 255, 255, 0.48);
  color: var(--accent-strong);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.web-tip-nav:hover,
.web-tip-nav:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(239, 134, 0, 0.3);
  color: var(--accent);
}

.web-tip-link::after {
  content: "↗";
  font-size: 0.9em;
}

.web-tip-link:hover,
.web-tip-link:focus-visible {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-1px);
}

.web-featured-panel {
  padding: 18px 20px;
  border-color: rgba(44, 151, 201, 0.18);
  background:
    linear-gradient(135deg, rgba(238, 247, 251, 0.98), rgba(255, 253, 248, 0.94));
  box-shadow:
    0 18px 36px rgba(44, 151, 201, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.web-featured-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.web-featured-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.web-featured-card:hover,
.web-featured-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(44, 151, 201, 0.12);
  border-color: rgba(44, 151, 201, 0.24);
  outline: none;
}

.web-featured-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.web-featured-time {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
}

.web-featured-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.28;
}

.web-featured-audience,
.web-featured-meta-line,
.web-featured-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.web-featured-audience {
  font-style: italic;
}

.web-featured-description {
  font-size: 0.95rem;
}

.attendance-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(44, 151, 201, 0.16);
  border-radius: 999px;
  background: rgba(44, 151, 201, 0.09);
  color: #16556f;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.attendance-chip span {
  color: #8a5200;
  font-size: 0.78rem;
  font-weight: 800;
}

.attendance-chip.is-low {
  border-color: rgba(239, 134, 0, 0.22);
  background: rgba(239, 134, 0, 0.13);
  color: #8a5200;
}

.web-featured-attendance {
  margin-top: 2px;
}

@keyframes webTipFloatPrimary {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-28px, 18px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes webTipFloatSecondary {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(32px, -18px, 0) scale(1.06);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.web-expanded-hero {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.web-hero-copy {
  display: grid;
  gap: 8px;
}

.web-hero-copy .description {
  margin: 2px 0 0;
}

.web-hero-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.web-hero-logo {
  width: clamp(128px, 18vw, 220px);
  height: auto;
  display: block;
  object-fit: contain;
}


.web-expanded-clock-panel {
  padding: 16px 20px;
  display: inline-grid;
  gap: 4px;
  width: fit-content;
}

.web-expanded-clock-panel strong {
  font-size: 2rem;
}

.web-expanded-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.web-expanded-summary--single {
  grid-template-columns: 1fr;
}

.web-expanded-week-panel,
.web-expanded-qr-panel {
  overflow: hidden;
}

.web-week-board-shell {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 44px rgba(29, 41, 57, 0.08);
  overflow: auto;
}

.web-week-board-shell .tv-week-board {
  height: auto;
  min-height: 0;
  overflow: visible;
  display: block;
}

.web-week-controls {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(280px, 1fr);
  gap: 14px;
  align-items: end;
}

.web-week-field {
  min-width: 0;
}

.web-week-field-select select,
.web-week-field-search input {
  width: 100%;
}

.web-week-field-search input {
  min-height: 48px;
}

.web-week-grid-like-tv {
  min-width: 900px;
}

.web-expanded-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.web-expanded-day-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 16px 34px rgba(44, 151, 201, 0.08);
  display: grid;
  gap: 14px;
}

#web-day-panel,
#web-week-panel {
  scroll-margin-top: 88px;
}

.web-expanded-day-card.is-current {
  box-shadow: 0 20px 40px rgba(239, 134, 0, 0.12);
  border-color: rgba(239, 134, 0, 0.18);
}

.web-expanded-day-card.is-today {
  background:
    linear-gradient(180deg, rgba(255, 244, 225, 0.96), rgba(255, 253, 248, 0.92));
}

.web-expanded-day-head {
  display: grid;
  gap: 6px;
}

.web-expanded-day-head .eyebrow {
  margin: 0;
}

.web-expanded-day-head h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  text-transform: capitalize;
}

.web-expanded-day-list {
  display: grid;
  gap: 10px;
}

.web-expanded-day-list .schedule-item {
  grid-template-columns: 92px 1fr auto;
  padding: 14px;
  gap: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(44, 151, 201, 0.08);
}

.web-expanded-day-list .time-block {
  font-size: 0.92rem;
}

.web-expanded-day-list .subject {
  font-size: 1rem;
}

.web-results-meta {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

.schedule-item.is-online {
  border-color: rgba(44, 151, 201, 0.22);
  background:
    radial-gradient(circle at 96% 12%, rgba(44, 151, 201, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.74);
}

.web-online-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(44, 151, 201, 0.22);
  border-radius: 999px;
  background: rgba(226, 243, 251, 0.86);
  color: #16556f;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.schedule-online-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(44, 151, 201, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #2c97c9, #16556f);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(44, 151, 201, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.schedule-online-link:hover,
.schedule-online-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(44, 151, 201, 0.22);
  outline: none;
}

.web-featured-card.is-online {
  border-color: rgba(44, 151, 201, 0.22);
}

.web-featured-online-link {
  margin-top: 2px;
}

.web-expanded-day-empty {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: rgba(243, 244, 246, 0.54);
}

.web-expanded-qr-card {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 22px;
  align-items: center;
  padding: 22px;
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(243, 179, 0, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(44, 151, 201, 0.14), transparent 32%),
    rgba(255, 253, 248, 0.92);
}

.web-expanded-qr-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.web-expanded-qr-copy .description,
.web-expanded-qr-link {
  margin: 0;
}

.web-expanded-qr-logo {
  width: clamp(110px, 16vw, 160px);
  height: auto;
}

.web-expanded-qr-link {
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  word-break: break-word;
}

.web-expanded-qr-image-shell {
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.06);
}

.web-expanded-qr-image {
  width: 100%;
  height: auto;
  display: block;
}

.web-rooms-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.room-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.88);
  display: grid;
  gap: 14px;
}

.room-card.is-free {
  background: linear-gradient(180deg, rgba(246, 253, 248, 0.98), rgba(255, 255, 255, 0.96));
}

.room-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.room-card-head .eyebrow {
  margin: 0 0 6px;
}

.room-card-head h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.room-card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 28, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.room-card-chip.is-free {
  color: #237a44;
  border-color: rgba(35, 122, 68, 0.18);
  background: rgba(236, 251, 241, 0.9);
}

.room-card-list,
.rooms-other-list {
  display: grid;
  gap: 10px;
}

.room-activity,
.room-floating-activity {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.room-activity:hover,
.room-activity:focus-visible,
.room-floating-activity:hover,
.room-floating-activity:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(20, 24, 28, 0.08);
  border-color: rgba(239, 134, 0, 0.2);
  outline: none;
}

.room-activity.is-conflict {
  border-color: rgba(196, 62, 62, 0.24);
  background: rgba(255, 245, 245, 0.94);
}

.room-activity-top,
.room-floating-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.room-activity-time {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.room-activity-kind {
  padding: 6px 10px;
  font-size: 0.75rem;
}

.room-activity-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.room-activity-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.room-activity-audience {
  font-style: italic;
}

.room-activity-warning {
  margin: 0;
  color: #b33f30;
  font-size: 0.88rem;
  font-weight: 700;
}

.room-empty,
.room-empty-panel {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.rooms-other-panel {
  margin-top: 18px;
}

.rooms-timeline-shell {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  overflow-x: auto;
}

.rooms-timeline {
  min-width: 100%;
}

.rooms-timeline-board {
  display: grid;
  gap: 1px;
  min-width: 1080px;
  background: rgba(20, 24, 28, 0.08);
}

.room-timeline-corner,
.room-timeline-slot-head,
.room-timeline-room,
.room-timeline-cell {
  background: rgba(255, 255, 255, 0.96);
}

.room-timeline-corner {
  position: sticky;
  left: 0;
  z-index: 4;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  align-content: center;
}

.room-timeline-corner strong {
  font-size: 1.02rem;
}

.room-timeline-slot-head {
  padding: 14px 12px;
  display: grid;
  gap: 4px;
  text-align: center;
  align-content: center;
}

.room-timeline-slot-head strong {
  font-size: 0.92rem;
  line-height: 1.15;
}

.room-timeline-slot-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.room-timeline-room {
  position: sticky;
  left: 0;
  z-index: 3;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.room-timeline-room h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.room-timeline-room-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 28, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.room-timeline-cell {
  min-height: 112px;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.room-timeline-cell.is-free {
  background: rgba(248, 250, 251, 0.96);
}

.room-timeline-entry {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: linear-gradient(180deg, #fff7ea, #fffdfa);
  box-shadow: 0 8px 18px rgba(29, 41, 57, 0.08);
}

.room-timeline-entry.kind-asesoria {
  background: linear-gradient(180deg, #eef7fb, #fbfdff);
}

.room-timeline-entry.kind-consejeria {
  background: linear-gradient(180deg, #e8f8f3, #fbfffd);
}

.room-timeline-entry.is-conflict {
  border-color: rgba(180, 65, 65, 0.28);
  box-shadow: 0 0 0 2px rgba(180, 65, 65, 0.12);
}

.room-timeline-entry-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.room-timeline-entry-time {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.room-timeline-entry-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.22;
}

.room-timeline-entry-meta,
.room-timeline-entry-warning {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.22;
  color: var(--muted);
}

.room-timeline-entry-warning {
  color: #992a10;
  font-weight: 700;
}

.room-timeline-free {
  align-self: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.room-card.occupancy-low,
.room-timeline-room.occupancy-low {
  background: linear-gradient(180deg, rgba(238, 247, 251, 0.98), rgba(255, 255, 255, 0.98));
}

.room-card.occupancy-medium,
.room-timeline-room.occupancy-medium {
  background: linear-gradient(180deg, rgba(255, 246, 231, 0.98), rgba(255, 255, 255, 0.98));
}

.room-card.occupancy-high,
.room-timeline-room.occupancy-high {
  background: linear-gradient(180deg, rgba(255, 238, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.room-card-chip.occupancy-low,
.room-timeline-room-chip.occupancy-low {
  color: #16556f;
  border-color: rgba(22, 85, 111, 0.16);
  background: rgba(226, 243, 251, 0.98);
}

.room-card-chip.occupancy-medium,
.room-timeline-room-chip.occupancy-medium {
  color: #7a4c00;
  border-color: rgba(122, 76, 0, 0.16);
  background: rgba(255, 241, 214, 0.98);
}

.room-card-chip.occupancy-high,
.room-timeline-room-chip.occupancy-high {
  color: #8a3b13;
  border-color: rgba(138, 59, 19, 0.16);
  background: rgba(255, 230, 221, 0.98);
}

@media (max-width: 980px) {
  .web-expanded-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .web-hero-brand {
    justify-content: flex-start;
  }

  .web-expanded-week-grid,
  .web-expanded-qr-card,
  .web-rooms-summary,
  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .rooms-timeline-board {
    min-width: 960px;
  }
}

@media (max-width: 760px) {
  .web-week-controls {
    grid-template-columns: 1fr;
  }

  .web-tip-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .web-tip-actions {
    width: 100%;
  }

  .web-tip-controls {
    flex-wrap: wrap;
    align-items: center;
  }

  .web-tip-link {
    white-space: normal;
  }

  .web-view-nav {
    width: 100%;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .web-view-nav-link {
    flex: 1;
    min-width: 0;
  }

  .web-nav-accessibility-slot {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .web-expanded-day-list .schedule-item {
    grid-template-columns: 1fr;
  }

  .room-card-head,
  .room-activity-top,
  .room-floating-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .room-timeline-slot-head {
    min-width: 158px;
  }

  .room-timeline-cell {
    min-height: 96px;
  }
}

.schedule-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid var(--border);
  align-items: center;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.schedule-item:hover,
.schedule-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(44, 151, 201, 0.12);
  outline: none;
}

.schedule-item.active {
  border-color: rgba(239, 134, 0, 0.45);
  background: linear-gradient(90deg, rgba(255, 226, 188, 0.9), rgba(233, 247, 252, 0.96));
  box-shadow: 0 0 0 3px rgba(239, 134, 0, 0.18), 0 24px 44px rgba(239, 134, 0, 0.18);
}

.schedule-item.status-future {
  background: linear-gradient(145deg, rgba(239, 248, 252, 0.96), rgba(255, 250, 242, 0.9));
}

.schedule-item.status-past {
  background: rgba(242, 243, 244, 0.96);
}

.schedule-item.status-suspended {
  background: linear-gradient(145deg, rgba(253, 238, 238, 0.96), rgba(249, 245, 245, 0.94));
  border-color: rgba(180, 65, 65, 0.28);
}

.time-block {
  font-weight: 700;
  color: var(--accent);
}

.subject {
  font-size: 1.13rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

.subject-row,
.tv-subject-row,
.tv-week-workshop-head,
.tv-week-mobile-workshop-head,
.paiep-subject-row {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.featured-badge {
  border-color: rgba(44, 151, 201, 0.2);
  background: rgba(226, 243, 251, 0.96);
  color: #16556f;
}

.activity-badge-icon {
  display: none;
}

.kind-taller {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.kind-asesoria {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.kind-consejeria {
  border-color: rgba(23, 135, 115, 0.24);
  background: rgba(232, 248, 243, 0.86);
  color: #176f60;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-4), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-marker {
  font-size: 1rem;
  line-height: 1;
}

.schedule-item.active .tag,
.tv-card.active .tv-tag,
.paiep-item.active .paiep-tag {
  background: linear-gradient(90deg, #d84a1b, #ef8600);
  box-shadow: 0 0 0 3px rgba(216, 74, 27, 0.18);
}

.schedule-item.status-future .tag {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.schedule-item.status-past .tag {
  background: linear-gradient(90deg, #7b7f84, #5f605d);
}

.schedule-item.status-suspended .tag,
.tag.status-suspended,
.admin-status-tag.status-suspended {
  background: linear-gradient(90deg, #b34747, #d66a6a);
  color: #fff;
}

.schedule-item.kind-taller,
.schedule-item.kind-asesoria,
.schedule-item.kind-consejeria {
  border-left: none;
}

.empty-state {
  padding: 28px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.tv-empty {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.tv-empty-line,
.tv-empty-highlight {
  display: block;
}

.tv-empty-line {
  font-size: 1.1rem;
  color: var(--muted);
}

.tv-empty-highlight {
  max-width: 26ch;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.workshop-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 50;
}

.workshop-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.workshop-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 38, 42, 0.34);
  backdrop-filter: blur(8px);
}

.workshop-modal-card {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px 24px 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(236, 247, 251, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 26px 70px rgba(28, 52, 61, 0.24);
}

.workshop-modal-card h2 {
  margin: 0 0 10px;
}

.workshop-modal-body {
  margin-top: 18px;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

.web-attendance-note {
  display: grid;
  gap: 2px;
  width: fit-content;
  margin: 14px 0 2px;
  padding: 10px 13px;
  border: 1px solid rgba(44, 151, 201, 0.18);
  border-radius: 16px;
  background: rgba(44, 151, 201, 0.09);
  color: #16556f;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

.web-attendance-note span {
  color: #8a5200;
  font-size: 0.92rem;
  font-weight: 700;
}

.web-attendance-note strong {
  font-weight: 900;
}

.web-attendance-note.is-low {
  border-color: rgba(239, 134, 0, 0.24);
  background: rgba(239, 134, 0, 0.13);
  color: #8a5200;
}

.modal-external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.modal-external-link:hover,
.modal-external-link:focus-visible {
  text-decoration: underline;
}

.workshop-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(63, 65, 62, 0.08);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

#active-time {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.active-name,
.active-meta,
.next-heading,
.next-name,
.countdown,
.day-closed {
  display: block;
}

.active-name {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 151, 201, 0.16);
  color: var(--text);
  font-weight: 700;
}

.active-meta {
  color: var(--muted);
}

.next-heading {
  font-weight: 800;
  color: var(--text);
}

.next-name {
  color: var(--muted);
}

.countdown {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 134, 0, 0.16), rgba(243, 179, 0, 0.22));
  color: #8d4b00;
  font-weight: 800;
  width: fit-content;
}

.day-closed {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(242, 243, 244, 0.96);
  border: 1px solid rgba(95, 96, 93, 0.14);
  color: #5f605d;
  font-weight: 700;
}

.tv-body {
  min-height: 100vh;
  overflow: hidden;
}

.tv-start-alert {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 40;
}

.tv-start-alert.visible {
  opacity: 1;
  pointer-events: auto;
}

.tv-start-alert.visible .tv-start-alert-backdrop {
  animation: tvAlertBackdropIn 420ms ease forwards;
}

.tv-start-alert.visible .tv-start-alert-card {
  animation: tvAlertCardIn 560ms cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

.tv-start-alert.closing .tv-start-alert-backdrop {
  animation: tvAlertBackdropOut 420ms ease forwards;
}

.tv-start-alert.closing .tv-start-alert-card {
  animation: tvAlertCardOut 420ms ease forwards;
}

.tv-start-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 38, 42, 0.34);
  backdrop-filter: blur(10px);
  opacity: 0;
}

.tv-start-alert-card {
  position: relative;
  width: min(980px, calc(100vw - 96px));
  padding: 28px 30px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(circle at top left, rgba(243, 179, 0, 0.24), transparent 30%),
    radial-gradient(circle at bottom right, rgba(44, 151, 201, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(236, 247, 251, 0.96));
  box-shadow: 0 30px 90px rgba(28, 52, 61, 0.28);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
}

.tv-start-alert-card .status-label {
  margin-bottom: 12px;
}

.tv-alert-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(63, 65, 62, 0.08);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease;
}

.tv-alert-close:hover,
.tv-alert-close:focus-visible {
  background: rgba(63, 65, 62, 0.14);
  transform: scale(1.04);
  outline: none;
}

.tv-upcoming-alert .tv-start-alert-card {
  background:
    radial-gradient(circle at top left, rgba(44, 151, 201, 0.24), transparent 30%),
    radial-gradient(circle at bottom right, rgba(58, 180, 156, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(246, 252, 255, 0.98), rgba(236, 247, 251, 0.96));
}

.tv-upcoming-alert .tv-start-alert-time {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.tv-board-alert .tv-start-alert-card {
  background:
    radial-gradient(circle at top left, rgba(58, 180, 156, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(243, 179, 0, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(236, 247, 251, 0.96));
}

.tv-board-alert-body {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(44, 151, 201, 0.14);
  color: var(--text);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  white-space: pre-wrap;
}

.tv-start-alert-card h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
}

.tv-start-alert-list {
  display: grid;
  gap: 14px;
}

.tv-start-alert-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(44, 151, 201, 0.14);
}

.tv-start-alert-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--accent), var(--accent-4));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.tv-start-alert-item h3 {
  margin: 0 0 4px;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.15;
}

.tv-start-alert-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

@keyframes tvAlertBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tvAlertBackdropOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes tvAlertCardIn {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tvAlertCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

.tv-app {
  width: min(1800px, calc(100vw - 40px));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
}

.tv-header,
.tv-summary {
  display: grid;
  gap: 18px;
}

.tv-header {
  grid-template-columns: minmax(0, 1.45fr) minmax(760px, 1.35fr);
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.tv-header > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tv-header-main {
  display: grid;
  gap: 14px;
  align-content: center;
}

.tv-header h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 100%;
}

.tv-header-summary {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  max-width: 92%;
}

.tv-header-summary #tv-active-subject {
  margin: 0;
  font-size: clamp(1.14rem, 1.85vw, 1.58rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--text);
}

.tv-header-summary #tv-active-time {
  display: grid;
  gap: 6px;
  font-size: 0.94rem;
  line-height: 1.22;
}

.tv-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.tv-header-side {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.92fr) minmax(310px, 1.55fr);
  gap: 12px;
}

.tv-clock-card,
.tv-control-card,
.tv-weather-card {
  padding: 16px 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.tv-clock-card strong {
  display: block;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.tv-current-date {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.15;
}

.tv-current-date-day,
.tv-current-date-full {
  display: block;
}

.tv-current-date-day {
  font-size: 1.15rem;
  font-weight: 400;
}

.tv-current-date-full {
  margin-top: 4px;
  font-size: 0.98rem;
  font-weight: 400;
}

.tv-sun-times {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

.tv-sun-time {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.2;
}

.tv-control-title {
  margin-bottom: 10px;
}

.tv-control-card select,
.tv-control-card input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}

.tv-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(63, 65, 62, 0.12);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.tv-edit-link:hover,
.tv-edit-link:focus-visible {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(44, 151, 201, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.tv-hidden-date-control {
  display: none !important;
}

.tv-worldcup-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  color: #112018;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(145deg, rgba(223, 255, 235, 0.94), rgba(180, 229, 197, 0.76));
  border-color: rgba(35, 99, 65, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.tv-worldcup-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  border: 16px solid rgba(28, 84, 55, 0.08);
  pointer-events: none;
}

.tv-worldcup-title {
  margin: 0;
  color: #163c28;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.tv-worldcup-title + .tv-worldcup-section {
  margin-top: -5px;
}

.tv-worldcup-section {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.tv-worldcup-section + .tv-worldcup-section {
  margin-top: 8px;
}

.tv-worldcup-section-label {
  font-size: 0.68rem;
  line-height: 1;
  color: rgba(17, 32, 24, 0.64);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tv-worldcup-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.tv-worldcup-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.6rem;
  line-height: 1.05;
}

.tv-worldcup-match strong {
  font-size: 0.74rem;
  color: #102d1c;
  font-weight: 900;
}

.tv-worldcup-team {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-worldcup-fixtures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.tv-worldcup-fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(18, 61, 38, 0.08);
  font-size: 0.6rem;
  line-height: 1.05;
}

.tv-worldcup-fixture span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-worldcup-fixture small {
  color: rgba(17, 32, 24, 0.58);
  font-weight: 900;
  text-transform: uppercase;
}

.tv-worldcup-status {
  display: inline-grid;
  justify-items: center;
  gap: 1px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #163c28;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.tv-worldcup-status em {
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 900;
}

.tv-worldcup-status b {
  font-size: 0.43rem;
  line-height: 1;
  color: rgba(22, 60, 40, 0.72);
  font-weight: 800;
}

.tv-worldcup-fixture.is-live {
  background: rgba(255, 112, 67, 0.18);
}

.tv-worldcup-fixture.is-live .tv-worldcup-status {
  color: #ffffff;
  background: linear-gradient(135deg, #f45f35, #c43e21);
  animation: tvWorldCupLivePulse 1.35s ease-in-out infinite;
}

.tv-worldcup-fixture.is-live .tv-worldcup-status b {
  color: rgba(255, 255, 255, 0.82);
}

.tv-worldcup-fixture.is-soon .tv-worldcup-status {
  background: rgba(255, 247, 196, 0.9);
  color: #684700;
}

.tv-worldcup-fixture.is-finished .tv-worldcup-status {
  background: rgba(17, 32, 24, 0.12);
  color: rgba(17, 32, 24, 0.72);
}

.tv-worldcup-empty {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 11px;
  color: rgba(17, 32, 24, 0.72);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
}

@keyframes tvWorldCupLivePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 95, 53, 0.26);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(244, 95, 53, 0.08);
  }
}

.tv-weather-city {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.tv-weather-main {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.tv-weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(44, 151, 201, 0.12), rgba(58, 180, 156, 0.18));
  font-size: 2rem;
}

.tv-weather-current {
  display: block;
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  line-height: 1;
}

.tv-weather-status,
.tv-weather-range {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.tv-weather-moon {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  white-space: nowrap;
}

.tv-moon-phase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  font-style: normal;
  flex: 0 0 auto;
}

.tv-moon-phase-label {
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}

.tv-summary {
  display: none;
}

.tv-summary .summary-card {
  padding: 10px 14px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "label title"
    ". body";
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  min-height: 0;
}

.tv-summary .summary-card .status-label {
  grid-area: label;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(239, 134, 0, 0.12);
  border: 1px solid rgba(239, 134, 0, 0.18);
  line-height: 1;
}

.tv-summary #tv-active-subject {
  grid-area: title;
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.1;
}

.tv-summary #tv-active-time {
  grid-area: body;
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.2;
  display: grid;
  gap: 6px;
}

.tv-active-name,
.tv-next-name,
.tv-next-heading,
.tv-countdown,
.tv-day-closed {
  display: block;
}

.tv-active-name {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 151, 201, 0.16);
  color: var(--text);
  font-weight: 700;
}

.tv-active-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-active-separator {
  color: var(--accent);
  font-weight: 800;
}

.tv-active-list-dense .tv-active-name {
  padding: 7px 10px;
  border-radius: 12px;
}

.tv-active-list-dense .tv-active-title {
  font-size: 0.84rem;
}

.tv-active-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: start;
  align-content: start;
  max-height: 96px;
  overflow: hidden;
}

.tv-active-list-single {
  grid-template-columns: minmax(0, 1fr);
}

.tv-active-list-dense {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 8px;
  max-height: 102px;
}

.tv-active-list .tv-active-name {
  width: 100%;
  max-width: 100%;
}

.tv-next-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-start;
  align-content: flex-start;
  max-height: 74px;
  overflow: hidden;
}

.tv-next-list .tv-next-name {
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 5px);
}

.tv-next-heading {
  font-weight: 800;
  color: var(--text);
}

.tv-countdown {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 134, 0, 0.16), rgba(243, 179, 0, 0.22));
  color: #8d4b00;
  font-weight: 800;
  width: fit-content;
}

.tv-next-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(44, 151, 201, 0.12);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-day-closed {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(242, 243, 244, 0.96);
  border: 1px solid rgba(95, 96, 93, 0.14);
  color: #5f605d;
  font-weight: 700;
}

.tv-day-closed-title,
.tv-day-closed-body {
  display: block;
}

.tv-day-closed-title {
  margin-bottom: 6px;
  color: #454744;
  font-size: 1.08rem;
  font-weight: 800;
}

.tv-day-closed-body {
  color: #636764;
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 600;
}

.tv-day-finished-mode .tv-summary .summary-card:first-child {
  background:
    linear-gradient(135deg, rgba(242, 243, 244, 0.98), rgba(255, 255, 255, 0.94)),
    var(--surface-strong);
  border-color: rgba(95, 96, 93, 0.12);
  box-shadow: 0 18px 36px rgba(95, 96, 93, 0.08);
}

.tv-day-finished-mode .tv-summary #tv-active-subject {
  color: #4a4d49;
}

.tv-day-finished-mode .tv-grid {
  opacity: 0.9;
  filter: saturate(0.82);
}

.tv-day-finished-mode .tv-card {
  box-shadow: 0 10px 22px rgba(95, 96, 93, 0.07);
}


.tv-pagination {
  display: flex;
  justify-content: flex-end;
}

.tv-pagination-bottom {
  display: none;
}

.tv-page-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

.tv-live-app {
  width: min(1800px, calc(100vw - 40px));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.tv-live-banner {
  padding: 14px 18px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.tv-live-banner h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 0.98;
}

.tv-live-panel {
  padding: 16px 20px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.tv-live-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.tv-live-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.tv-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 16px;
  align-content: start;
  min-height: 0;
  height: 100%;
}

.tv-card {
  min-height: 0;
  height: auto;
  aspect-ratio: 1.85 / 1;
  align-self: stretch;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease, background 320ms ease, border-color 320ms ease;
}

.tv-card.active {
  border-color: rgba(239, 134, 0, 0.45);
  background: linear-gradient(145deg, rgba(255, 226, 188, 0.95), rgba(233, 247, 252, 0.96));
  box-shadow: 0 0 0 4px rgba(239, 134, 0, 0.15), 0 22px 44px rgba(239, 134, 0, 0.14);
  animation: tvActiveGlow 3.4s ease-in-out infinite;
}

.tv-card.pulse-now {
  animation: tvNowPulse 1.4s ease-out 1;
}

.tv-card.status-future {
  background: linear-gradient(145deg, rgba(239, 248, 252, 0.96), rgba(255, 250, 242, 0.9));
}

.tv-card.status-past {
  background: rgba(242, 243, 244, 0.96);
  box-shadow: 0 12px 28px rgba(95, 96, 93, 0.08);
}

.tv-card.status-suspended {
  background: linear-gradient(145deg, rgba(253, 238, 238, 0.96), rgba(249, 245, 245, 0.94));
  border-color: rgba(180, 65, 65, 0.28);
  box-shadow: 0 12px 28px rgba(179, 71, 71, 0.08);
}

.tv-card.kind-taller,
.tv-card.kind-asesoria,
.tv-card.kind-consejeria {
  border-left: none;
}

.tv-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tag-stack,
.tv-tag-stack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tv-time-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-time {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
}

.tv-progress-ring {
  --progress-angle: 0deg;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(rgba(239, 134, 0, 0.94) 0deg, rgba(243, 179, 0, 0.94) var(--progress-angle), rgba(255, 255, 255, 0.22) var(--progress-angle), rgba(255, 255, 255, 0.22) 360deg);
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 48px;
  box-shadow: 0 0 0 2px rgba(239, 134, 0, 0.12);
}

.tv-progress-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 248, 237, 0.96);
}

.tv-progress-ring-label {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.tv-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-4), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tv-tag-marker {
  font-size: 1rem;
  line-height: 1;
}

.tv-card.status-future .tv-tag {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.tv-card.status-past .tv-tag {
  background: linear-gradient(90deg, #7b7f84, #5f605d);
}

.tv-card.status-suspended .tv-tag,
.tv-tag.status-suspended {
  background: linear-gradient(90deg, #b34747, #d66a6a);
}

.tv-card.active .tv-tag {
  animation: tvNowTagBlink 1.1s ease-in-out infinite;
}

.tv-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #162533;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: balance;
  padding-bottom: 0.12em;
}

.tv-subject-row {
  display: block;
  min-width: 0;
  padding-bottom: 2px;
}

.tv-card-meta {
  margin-top: auto;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tv-card-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.tv-card-bottom-with-qr {
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 12px;
}

.tv-card-bottom-with-qr .tv-card-meta {
  margin-top: 0;
}

.tv-card-qr-box {
  width: 84px;
  display: grid;
  gap: 4px;
  justify-self: end;
  align-self: end;
}

.tv-card-qr-shell {
  width: 100%;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.08);
}

.tv-card-qr-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.tv-card-qr-label {
  font-size: 0.68rem;
  line-height: 1.1;
  color: var(--muted);
  text-align: center;
}

.tv-card-long-title {
  gap: 8px;
}

.tv-card-long-title h3 {
  font-size: 1.08rem;
  line-height: 1.22;
  -webkit-line-clamp: 3;
  text-wrap: balance;
  padding-bottom: 0.16em;
}

.tv-card-long-title .tv-subject-row {
  padding-bottom: 2px;
}

.tv-card-long-title .tv-card-meta {
  gap: 6px;
}

.tv-card-long-title .tv-card-bottom-with-qr {
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 10px;
}

.tv-card-long-title .tv-card-qr-box {
  width: 78px;
}

.tv-card-long-title .tv-card-qr-label {
  font-size: 0.62rem;
}

.tv-card-long-title .tv-detail {
  font-size: 0.9rem;
  gap: 7px;
}

.tv-card-long-title .tv-detail::before {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  font-size: 0.85rem;
}

.tv-activity-badge {
  font-size: 0.85rem;
  padding: 8px 12px;
}

.tv-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.tv-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tv-detail::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(44, 151, 201, 0.16);
  color: var(--accent-2);
  font-size: 1rem;
  font-weight: 800;
  flex: 0 0 24px;
}

.tv-detail-room::before {
  content: "📍";
}

.tv-detail-professional::before {
  content: "👤";
}

.tv-detail-audience::before {
  content: "◆";
}

.schedule-audience {
  margin-top: 2px;
  font-size: 0.88rem;
  line-height: 1.28;
}

.schedule-item .subject-row,
.web-expanded-day-list .subject-row {
  display: block;
  min-width: 0;
  margin-bottom: 4px;
}

.tv-empty {
  grid-column: 1 / -1;
}

@keyframes tvNowPulse {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(239, 134, 0, 0);
  }
  35% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(239, 134, 0, 0.16);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 134, 0, 0);
  }
}

@keyframes tvActiveFlicker {
  0% {
    box-shadow: 0 0 0 4px rgba(239, 134, 0, 0.14), 0 18px 34px rgba(239, 134, 0, 0.12);
  }
  18% {
    box-shadow: 0 0 0 5px rgba(243, 179, 0, 0.18), 0 0 18px rgba(239, 134, 0, 0.16), 0 22px 40px rgba(239, 134, 0, 0.16);
  }
  24% {
    box-shadow: 0 0 0 4px rgba(239, 134, 0, 0.13), 0 18px 34px rgba(239, 134, 0, 0.12);
  }
  52% {
    box-shadow: 0 0 0 6px rgba(243, 179, 0, 0.22), 0 0 30px rgba(239, 134, 0, 0.22), 0 24px 44px rgba(239, 134, 0, 0.2);
  }
  58% {
    box-shadow: 0 0 0 5px rgba(243, 179, 0, 0.18), 0 0 20px rgba(239, 134, 0, 0.18), 0 22px 40px rgba(239, 134, 0, 0.16);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(239, 134, 0, 0.14), 0 18px 34px rgba(239, 134, 0, 0.12);
  }
}

@keyframes tvActiveGlow {
  0% {
    box-shadow: 0 0 0 4px rgba(239, 134, 0, 0.12), 0 18px 34px rgba(239, 134, 0, 0.12);
    filter: saturate(1);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(243, 179, 0, 0.16), 0 0 22px rgba(239, 134, 0, 0.14), 0 24px 42px rgba(239, 134, 0, 0.16);
    filter: saturate(1.04);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(239, 134, 0, 0.12), 0 18px 34px rgba(239, 134, 0, 0.12);
    filter: saturate(1);
  }
}

@keyframes tvNowTagBlink {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(216, 74, 27, 0.18), 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    opacity: 0.72;
    box-shadow: 0 0 0 3px rgba(216, 74, 27, 0.24), 0 0 14px rgba(255, 236, 201, 0.38);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(216, 74, 27, 0.18), 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (max-width: 720px) {
  .hero,
  .summary {
    grid-template-columns: 1fr;
    display: grid;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }

  .hero-side {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .admin-grid,
  .admin-form,
  .admin-item,
  .attendance-filters,
  .attendance-summary-grid,
  .attendance-monitor-grid {
    grid-template-columns: 1fr;
  }

  .status-card {
    min-width: unset;
  }
}

body.accessibility-mode .hero,
body.accessibility-mode .controls,
body.accessibility-mode .summary,
body.accessibility-mode .schedule-panel,
body.accessibility-mode .status-card,
body.accessibility-mode .summary-card,
body.accessibility-mode .schedule-item,
body.accessibility-mode .workshop-modal-card {
  backdrop-filter: none;
  box-shadow: none;
}

body.accessibility-mode .hero,
body.accessibility-mode .controls,
body.accessibility-mode .summary,
body.accessibility-mode .schedule-panel {
  border-color: rgba(20, 24, 28, 0.28);
}

body.accessibility-mode .description,
body.accessibility-mode .muted,
body.accessibility-mode .active-meta,
body.accessibility-mode .next-name,
body.accessibility-mode .workshop-modal-meta {
  color: #2d3136;
}

body.accessibility-mode .schedule-item {
  background: #ffffff;
  border-width: 2px;
}

body.accessibility-mode .schedule-item.active {
  background: #fff6e7;
  border-color: #b95f00;
  box-shadow: 0 0 0 3px rgba(185, 95, 0, 0.14);
}

body.accessibility-mode .schedule-item.status-future {
  background: #eef8fc;
  border-color: #1c7aa3;
}

body.accessibility-mode .schedule-item.status-past {
  background: #f0f2f4;
  border-color: #62676d;
}

body.accessibility-mode .tag {
  min-width: 150px;
  justify-content: center;
  font-size: 0.95rem;
}

body.accessibility-mode .tag-marker {
  font-size: 1.15rem;
}

body.accessibility-mode .schedule-item,
body.accessibility-mode .schedule-item:hover,
body.accessibility-mode .schedule-item:focus-visible,
body.accessibility-mode .summary-card,
body.accessibility-mode .workshop-modal,
body.accessibility-mode .workshop-modal.visible,
body.accessibility-mode .workshop-modal-card {
  transition: none;
}

@media (max-width: 1400px) {
  .tv-grid,
  .tv-live-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .tv-header,
  .tv-summary,
  .tv-header-side,
  .tv-grid,
  .tv-live-grid {
    grid-template-columns: 1fr;
  }
}

.tv-week-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(243, 179, 0, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(44, 151, 201, 0.14), transparent 32%),
    linear-gradient(180deg, #f8f4ea 0%, #f1ede3 100%);
  color: var(--text);
}

.tv-week-app {
  min-height: 100vh;
  padding: 18px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  box-sizing: border-box;
}

.tv-week-side-title {
  border-radius: 22px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.96), rgba(243, 179, 0, 0.16));
  box-shadow: 0 20px 40px rgba(29, 41, 57, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  overflow: hidden;
}

.tv-week-side-title span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #14181c;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.tv-week-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tv-week-board-shell {
  min-height: 0;
  flex: 1;
  border-radius: 22px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 26px 50px rgba(29, 41, 57, 0.1);
  overflow: hidden;
}

.tv-week-board {
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tv-week-fit {
  width: 100%;
  transform-origin: top center;
  will-change: transform;
}

.tv-week-grid {
  display: grid;
  width: 100%;
}

.tv-week-corner,
.tv-week-day-head,
.tv-week-time-cell,
.tv-week-slot {
  border-right: 1px solid rgba(20, 24, 28, 0.08);
  border-bottom: 1px solid rgba(20, 24, 28, 0.08);
}

.tv-week-corner,
.tv-week-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff8ed;
}

.tv-week-corner {
  padding: 8px 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tv-week-day-head {
  padding: 6px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  text-transform: lowercase;
}

.tv-week-day-head strong {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.tv-week-day-head.is-today {
  background: linear-gradient(180deg, rgba(243, 179, 0, 0.18), rgba(255, 248, 237, 0.96));
}

.tv-week-time-cell {
  padding: 6px 6px;
  background: rgba(243, 244, 246, 0.75);
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 74px;
}

.tv-week-time-cell strong {
  font-size: 0.8rem;
}

.tv-week-time-cell span {
  color: rgba(50, 57, 64, 0.72);
  font-weight: 700;
  font-size: 0.68rem;
}

.tv-week-slot {
  min-width: 0;
  padding: 4px;
  min-height: 74px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tv-week-slot.is-today {
  background: rgba(255, 248, 237, 0.88);
}

.tv-week-slot.is-empty {
  background:
    linear-gradient(135deg, rgba(243, 244, 246, 0.9), rgba(255, 255, 255, 0.82));
}

.tv-week-workshop {
  min-width: 0;
  padding: 5px 6px;
  border-radius: 10px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(29, 41, 57, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tv-week-workshop.status-now {
  border-color: rgba(239, 134, 0, 0.44);
  background: linear-gradient(180deg, rgba(255, 245, 226, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 0 0 3px rgba(239, 134, 0, 0.12), 0 14px 26px rgba(239, 134, 0, 0.12);
}

.tv-week-workshop.status-future {
  border-color: rgba(44, 151, 201, 0.24);
}

.tv-week-workshop.status-past {
  background: rgba(243, 244, 246, 0.92);
  border-color: rgba(95, 96, 93, 0.18);
}

.tv-week-workshop.status-suspended {
  background: rgba(253, 240, 240, 0.96);
  border-color: rgba(180, 65, 65, 0.24);
}

.tv-week-workshop.kind-taller,
.tv-week-workshop.kind-asesoria,
.tv-week-workshop.kind-consejeria {
  border-left: none;
}

.tv-week-kind {
  flex: 0 0 auto;
  padding: 4px 6px;
  font-size: 0.6rem;
  white-space: nowrap;
}

.tv-week-status-tag {
  flex: 0 0 auto;
  padding: 4px 6px;
  font-size: 0.6rem;
  white-space: nowrap;
}

.tv-week-workshop-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  min-width: 0;
}

.tv-week-workshop-head h3 {
  min-width: 0;
}

.tv-week-workshop h3 {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tv-week-workshop-title-main {
  font-weight: 700;
}

.tv-week-workshop-audience-inline {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}

.tv-week-workshop-audience {
  margin: 2px 0 0;
  font-size: 0.6rem;
  line-height: 1.2;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.tv-week-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.tv-week-empty h2,
.tv-week-empty p {
  margin: 0;
}

.tv-week-empty-highlight {
  max-width: 24ch;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.16;
  font-weight: 800;
  color: var(--text);
}

@media (max-width: 1400px) {
  .tv-week-app {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

.tv-expanded-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(243, 179, 0, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(44, 151, 201, 0.14), transparent 34%),
    linear-gradient(180deg, #f7f1e7 0%, #ece6da 100%);
  color: var(--text);
  overflow: hidden;
}

.tv-expanded-app {
  min-height: 100vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.tv-expanded-app-full {
  padding: 0;
  position: relative;
}

.tv-expanded-app-full::before,
.tv-expanded-app-full::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(2px);
  animation: tvFloatBlob 12s ease-in-out infinite;
}

.tv-expanded-app-full::before {
  width: 320px;
  height: 320px;
  left: -60px;
  top: 8%;
  background: radial-gradient(circle, rgba(243, 179, 0, 0.34), transparent 72%);
}

.tv-expanded-app-full::after {
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: 6%;
  background: radial-gradient(circle, rgba(44, 151, 201, 0.28), transparent 74%);
  animation-delay: -5s;
}

@keyframes tvFloatBlob {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -34px, 0) scale(1.12);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.tv-expanded-progress-shell {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 4px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.tv-expanded-progress {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(243, 179, 0, 0.96), rgba(239, 134, 0, 0.96), rgba(44, 151, 201, 0.96));
  transition: transform 0.2s linear, filter 0.2s linear;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(243, 179, 0, 0.22);
}

.tv-expanded-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 35%, rgba(255, 255, 255, 0.62) 50%, rgba(255, 255, 255, 0.12) 65%, transparent 100%);
  transform: translateX(-120%);
  animation: tvProgressShimmer 1.8s linear infinite;
}

@keyframes tvProgressShimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.tv-expanded-progress.is-ending {
  animation: tvProgressPulse 0.45s ease-out 1;
}

@keyframes tvProgressPulse {
  0% {
    filter: brightness(1);
    box-shadow: 0 0 16px rgba(243, 179, 0, 0.22);
  }
  50% {
    filter: brightness(1.18);
    box-shadow: 0 0 28px rgba(243, 179, 0, 0.34);
  }
  100% {
    filter: brightness(1);
    box-shadow: 0 0 16px rgba(243, 179, 0, 0.22);
  }
}

.tv-expanded-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
  transition: opacity 0.52s ease, transform 0.52s ease, filter 0.52s ease;
  transform-origin: center center;
}

.tv-expanded-app-full .tv-expanded-frame {
  min-height: 100vh;
}

.tv-expanded-frame.is-switching {
  opacity: 0.08;
  transform: scale(0.986) translateY(10px);
  filter: blur(6px);
}

.tv-expanded-frame.is-entering {
  animation: tvExpandedReveal 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tvExpandedReveal {
  0% {
    opacity: 0.12;
    transform: scale(1.018) translateY(18px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.tv-expanded-controls {
  position: absolute;
  left: 18px;
  bottom: 72px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tv-expanded-page-indicator,
.tv-expanded-countdown {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.tv-expanded-countdown {
  pointer-events: none;
}

.tv-expanded-control {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tv-expanded-control svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tv-expanded-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 42px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(27, 33, 40, 0.72), rgba(44, 151, 201, 0.48), rgba(27, 33, 40, 0.72));
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tv-expanded-ticker-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  height: 100%;
  align-items: center;
  box-sizing: border-box;
  padding-top: 0;
  animation: tvExpandedTickerMove 520s linear infinite;
}

.tv-expanded-ticker-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 24px;
}

.tv-expanded-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 38px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.tv-expanded-ticker-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3b300, #ef8600);
  box-shadow: 0 0 0 3px rgba(243, 179, 0, 0.18);
  flex: 0 0 7px;
}

@keyframes tvExpandedTickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tv-qr-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(243, 179, 0, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(44, 151, 201, 0.18), transparent 30%),
    linear-gradient(180deg, #f8f3e8 0%, #ece5da 100%);
  color: var(--text);
  overflow: hidden;
}

.tv-qr-app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  box-sizing: border-box;
}

.tv-qr-card {
  width: min(880px, 100%);
  padding: 36px 42px;
  border-radius: 32px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 56px rgba(29, 41, 57, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tv-qr-card::before,
.tv-qr-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.42;
  animation: tvQrBreathe 9s ease-in-out infinite;
}

.tv-qr-card::before {
  width: 280px;
  height: 280px;
  top: -90px;
  left: -60px;
  background: radial-gradient(circle, rgba(243, 179, 0, 0.26), transparent 74%);
}

.tv-qr-card::after {
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(44, 151, 201, 0.24), transparent 74%);
  animation-delay: -3s;
}

@keyframes tvQrBreathe {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.12) translateY(-16px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.tv-qr-card h1 {
  margin: 6px 0 14px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
}

.tv-qr-logo {
  width: clamp(120px, 16vw, 180px);
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.tv-qr-description {
  margin: 0 auto 24px;
  max-width: 28ch;
  color: rgba(50, 57, 64, 0.86);
  font-size: 1.15rem;
  line-height: 1.4;
}

.tv-qr-image-shell {
  width: min(420px, 72vw);
  margin: 0 auto 20px;
  padding: 16px;
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.06);
  animation: tvQrPulse 2.4s ease-in-out infinite;
  position: relative;
}

.tv-qr-image {
  width: 100%;
  height: auto;
  display: block;
}

.tv-qr-link {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
}

.tv-featured-body {
  margin: 0;
  min-height: 100vh;
  color: #3f413e;
  background:
    radial-gradient(circle at top left, rgba(239, 134, 0, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(44, 151, 201, 0.14), transparent 28%),
    linear-gradient(145deg, #edf4f8, #f4f8fb 55%, #eef6fb);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.tv-featured-app {
  min-height: 100vh;
  padding: 42px 48px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
}

.tv-featured-hero {
  display: grid;
  gap: 10px;
  padding: 24px 28px;
  border-radius: 28px;
  border: 1px solid rgba(63, 65, 62, 0.12);
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: 0 20px 44px rgba(44, 151, 201, 0.12);
}

.tv-featured-hero .eyebrow {
  color: rgba(239, 134, 0, 0.9);
}

.tv-featured-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  color: #2c3440;
}

.tv-featured-hero-copy {
  margin: 0;
  max-width: 86ch;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(83, 92, 102, 0.92);
}

.tv-featured-page-indicator {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #16556f;
}

.tv-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-content: start;
}

.tv-featured-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(63, 65, 62, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.94));
  box-shadow: 0 18px 36px rgba(44, 151, 201, 0.1);
}

.tv-featured-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tv-featured-card.has-qr .tv-featured-card-body {
  grid-template-columns: minmax(0, 1fr) 118px;
}

.tv-featured-card-copy {
  display: grid;
  gap: 10px;
}

.tv-featured-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.tv-featured-time {
  margin: 0 0 8px;
  color: #16556f;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tv-featured-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(63, 65, 62, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #56606b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tv-featured-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #78cfff, #ffb347);
  color: #081018;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tv-featured-card h2 {
  margin: 0;
  font-size: clamp(1.34rem, 1.85vw, 1.82rem);
  line-height: 1.14;
  color: #2c3440;
  text-wrap: balance;
}

.tv-featured-audience,
.tv-featured-meta,
.tv-featured-description {
  margin: 0;
}

.tv-featured-audience {
  font-size: 0.98rem;
  line-height: 1.35;
  color: #2c97c9;
  font-style: italic;
}

.tv-featured-meta {
  font-size: 0.94rem;
  line-height: 1.4;
  color: rgba(86, 96, 107, 0.92);
}

.tv-featured-attendance {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(44, 151, 201, 0.16);
  border-radius: 999px;
  background: rgba(44, 151, 201, 0.1);
  color: #16556f;
  font-size: clamp(0.86rem, 1vw, 1.02rem);
  font-weight: 900;
  line-height: 1.18;
}

.tv-featured-attendance span {
  color: #8a5200;
  font-size: 0.92em;
  font-weight: 900;
}

.tv-featured-attendance.is-low {
  border-color: rgba(239, 134, 0, 0.24);
  background: rgba(239, 134, 0, 0.13);
  color: #8a5200;
}

.tv-featured-description {
  font-size: 0.98rem;
  line-height: 1.48;
  color: rgba(63, 65, 62, 0.92);
}

.tv-featured-qr {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
}

.tv-featured-qr-image {
  width: 118px;
  height: 118px;
  display: block;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 14px 28px rgba(29, 41, 57, 0.12);
}

.tv-featured-qr-label {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  color: #16556f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tv-salas-body {
  margin: 0;
  min-height: 100vh;
  color: #3f413e;
  background:
    radial-gradient(circle at top left, rgba(239, 134, 0, 0.14), transparent 28%),
      radial-gradient(circle at top right, rgba(44, 151, 201, 0.12), transparent 24%),
      linear-gradient(145deg, #edf4f8, #f5f8fb 56%, #eef6fb);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tv-salas-slides {
  position: relative;
  min-height: 100vh;
}

.tv-salas-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.tv-salas-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tv-salas-slide-controls {
  position: absolute;
  left: auto;
  right: 18px;
  bottom: 14px;
  z-index: 25;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0.36;
  transition: opacity 0.18s ease;
}

.tv-salas-slide-controls:hover {
  opacity: 0.82;
}

.tv-salas-slide-nav-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 25, 36, 0.18);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tv-salas-slide-nav-button:hover {
  background: rgba(20, 24, 28, 0.2);
  transform: translateY(-1px);
}

.tv-salas-slide-nav-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tv-salas-slide-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: rgba(27, 40, 51, 0.76);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(12, 31, 44, 0.14);
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.tv-salas-slide-toggle:hover {
  background: rgba(255, 255, 255, 0.26);
}

.tv-salas-slide-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tv-salas-slide-toggle.is-off {
  color: rgba(27, 40, 51, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.tv-salas-app {
  min-height: 100vh;
  padding: 30px 34px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.tv-salas-slide-welcome {
  background: #0f1c26;
}

.tv-salas-welcome-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.tv-salas-hero,
.tv-salas-floor,
.tv-salas-external {
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(63, 65, 62, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(44, 151, 201, 0.1);
}

.tv-salas-hero {
  padding: 16px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.tv-salas-hero-main {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tv-salas-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  line-height: 0.92;
}

.tv-salas-hero-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tv-salas-hero-logo {
  width: clamp(108px, 13vw, 170px);
  height: auto;
  display: block;
  object-fit: contain;
}

.tv-salas-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tv-salas-clock {
  min-width: 220px;
  padding: 10px 14px 12px;
  border-radius: 20px;
  border: 1px solid rgba(63, 65, 62, 0.1);
  background: rgba(255, 255, 255, 0.76);
  text-align: right;
}

.tv-salas-clock strong {
  display: block;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 0.95;
  color: #16556f;
}

.tv-salas-clock p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tv-salas-floor,
.tv-salas-external {
  padding: 20px 22px 22px;
}

.tv-salas-floor-first {
  background: linear-gradient(145deg, rgba(255, 247, 235, 0.98), rgba(255, 255, 255, 0.92));
  border-color: rgba(239, 134, 0, 0.18);
}

.tv-salas-floor-second {
  background: linear-gradient(145deg, rgba(236, 246, 252, 0.98), rgba(255, 255, 255, 0.92));
  border-color: rgba(44, 151, 201, 0.18);
}

.tv-salas-floor-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.tv-salas-floor-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.tv-salas-floor-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.tv-salas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tv-salas-card {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: stretch;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(63, 65, 62, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.tv-salas-card.is-arrow-left {
  grid-template-columns: 86px minmax(0, 1fr);
}

.tv-salas-card-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.tv-salas-card.is-busy {
  background: linear-gradient(145deg, rgba(255, 244, 230, 0.96), rgba(255, 255, 255, 0.92));
}

.tv-salas-card.is-free {
  background: linear-gradient(145deg, rgba(241, 250, 245, 0.98), rgba(255, 255, 255, 0.92));
}

.tv-salas-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.tv-salas-card-title-wrap {
  min-width: 0;
  display: flex;
  align-items: flex-start;
}

.tv-salas-card-head h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.1;
}

.tv-salas-card-arrow {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tv-salas-card-arrow-image {
  display: block;
  width: 82%;
  max-width: 72px;
  height: auto;
  max-height: 92%;
  object-fit: contain;
}

.tv-salas-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tv-salas-status.is-busy {
  background: rgba(239, 134, 0, 0.14);
  color: #9b5600;
  animation: tvSalasBusyBlink 1.1s ease-in-out infinite;
}

.tv-salas-status.is-free {
  background: rgba(58, 180, 156, 0.14);
  color: #1b7d69;
}

.tv-salas-activity-list {
  display: grid;
  gap: 10px;
}

.tv-salas-activity {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(44, 151, 201, 0.12);
}

.tv-salas-activity-time {
  margin: 0 0 6px;
  color: #16556f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tv-salas-activity h3 {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1.05;
}

.tv-salas-activity-kind {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.64rem;
  font-weight: 800;
  line-height: 1.08;
}

.tv-salas-free-copy {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  color: #1b7d69;
}

.tv-salas-free-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tv-salas-next {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(44, 151, 201, 0.08);
  border: 1px solid rgba(44, 151, 201, 0.12);
}

.tv-salas-next-label {
  margin: 0 0 4px;
  color: #16556f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tv-salas-next-item {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.3;
}

.tv-salas-external-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tv-salas-external-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(63, 65, 62, 0.1);
}

.tv-salas-external-empty {
  display: grid;
  place-items: center;
  min-height: 92px;
  text-align: center;
}

.tv-salas-external-empty p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--muted);
}

.tv-salas-external-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.tv-salas-external-activities {
  display: grid;
  gap: 8px;
}

.tv-salas-external-activities p {
  margin: 0;
  color: var(--muted);
  line-height: 1.3;
}

.tv-salas-external-activities strong {
  color: var(--text);
}

.tv-salas-shared-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.tv-salas-shared-rooms {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.tv-salas-shared-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.tv-salas-grid-shared {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tv-salas-shared-panel {
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(63, 65, 62, 0.1);
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(240, 247, 252, 0.92));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-self: stretch;
}

.tv-salas-shared-media {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #173240, #274e63);
}

.tv-salas-shared-video {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.tv-salas-shared-image {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.tv-salas-shared-media.has-video .tv-salas-shared-video {
  display: block;
}

.tv-salas-shared-media.has-image .tv-salas-shared-image {
  display: block;
}

.tv-salas-shared-media-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tv-salas-shared-control-button {
  border: 0;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(14, 34, 46, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tv-salas-shared-control-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.3);
}

.tv-salas-shared-control-button.is-active {
  background: rgba(20, 54, 71, 0.42);
  color: #fff;
}

.tv-salas-shared-control-button svg {
  width: 24px;
  height: 24px;
  display: block;
}

.tv-salas-shared-media:not(.has-media) .tv-salas-shared-media-controls {
  display: none;
}

.tv-salas-shared-media:not(.has-video) #tv-salas-audio-toggle {
  display: none;
}

.tv-salas-shared-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(160deg, rgba(23, 50, 64, 0.92), rgba(39, 78, 99, 0.9));
}

.tv-salas-shared-media.has-video .tv-salas-shared-placeholder {
  display: none;
}

.tv-salas-shared-media.has-image .tv-salas-shared-placeholder {
  display: none;
}

.tv-salas-shared-placeholder p {
  margin: 0;
  line-height: 1.35;
  font-size: 1rem;
}

.tv-salas-worldcup-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 84, 55, 0.12);
  border-radius: 18px;
  color: #112018;
  background:
    radial-gradient(circle at 6% 0%, rgba(255, 255, 255, 0.76), transparent 32%),
    linear-gradient(145deg, rgba(223, 255, 235, 0.94), rgba(188, 233, 205, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.tv-salas-worldcup-panel--hero {
  min-height: 0;
  height: 100%;
  align-content: stretch;
  gap: clamp(10px, 1.2vw, 16px);
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.8), transparent 24%),
    radial-gradient(circle at 92% 4%, rgba(239, 134, 0, 0.28), transparent 30%),
    linear-gradient(145deg, rgba(218, 255, 231, 0.98), rgba(187, 234, 204, 0.9));
}

.tv-salas-worldcup-panel::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -38px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  border: 15px solid rgba(28, 84, 55, 0.08);
  pointer-events: none;
}

.tv-salas-worldcup-panel--hero::after {
  right: -62px;
  top: -72px;
  width: 220px;
  height: 220px;
  border-width: 28px;
}

.tv-salas-worldcup-head,
.tv-salas-worldcup-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tv-salas-worldcup-head p {
  margin: 0;
  color: #163c28;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.tv-salas-worldcup-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #163c28;
  background: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.62rem, 0.8vw, 0.74rem);
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.tv-salas-worldcup-status.is-live {
  color: #ffffff;
  background: linear-gradient(135deg, #f45f35, #c43e21);
  animation: tvWorldCupLivePulse 1.35s ease-in-out infinite;
}

.tv-salas-worldcup-status.is-soon {
  color: #684700;
  background: rgba(255, 247, 196, 0.94);
}

.tv-salas-worldcup-status.is-finished {
  color: rgba(17, 32, 24, 0.72);
  background: rgba(17, 32, 24, 0.12);
}

.tv-salas-worldcup-main strong,
.tv-salas-worldcup-main em,
.tv-salas-worldcup-results {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-salas-worldcup-main strong {
  color: #0f2e1e;
  font-size: clamp(1rem, 1.28vw, 1.35rem);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.tv-salas-worldcup-main em {
  flex: 0 0 auto;
  color: rgba(17, 32, 24, 0.72);
  font-size: clamp(0.76rem, 0.95vw, 0.95rem);
  font-style: normal;
  font-weight: 850;
}

.tv-salas-worldcup-results {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(17, 32, 24, 0.66);
  font-size: clamp(0.68rem, 0.85vw, 0.82rem);
  font-weight: 800;
  line-height: 1.15;
}

.tv-salas-worldcup-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.tv-salas-worldcup-hero-copy p {
  margin: 0 0 8px;
  color: #163c28;
  font-size: clamp(0.86rem, 1.1vw, 1.05rem);
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.tv-salas-worldcup-hero-copy h2 {
  max-width: 760px;
  margin: 0;
  color: #0e2b1b;
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.tv-salas-worldcup-hero-copy h2 span {
  color: rgba(14, 43, 27, 0.46);
  font-size: 0.46em;
  letter-spacing: -0.02em;
}

.tv-salas-worldcup-hero-copy .tv-salas-worldcup-status {
  margin-top: 4px;
  padding: 9px 12px;
  font-size: clamp(0.72rem, 1vw, 0.95rem);
}

.tv-salas-worldcup-hero-time {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #163c28;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 950;
}

.tv-salas-worldcup-hero-time small {
  margin-left: 10px;
  color: rgba(22, 60, 40, 0.58);
  font-size: 0.56em;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.tv-salas-worldcup-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(10px, 1.2vw, 16px);
  align-items: stretch;
}

.tv-salas-worldcup-hero-grid section {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(10px, 1.1vw, 14px);
  border: 1px solid rgba(28, 84, 55, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.tv-salas-worldcup-hero-grid h3 {
  margin: 0;
  color: rgba(17, 32, 24, 0.64);
  font-size: clamp(0.72rem, 0.95vw, 0.88rem);
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.tv-salas-worldcup-fixture-grid,
.tv-salas-worldcup-result-grid {
  min-height: 0;
  display: grid;
  gap: 6px;
}

.tv-salas-worldcup-fixture-card,
.tv-salas-worldcup-result-card {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: #112018;
}

.tv-salas-worldcup-fixture-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.tv-salas-worldcup-fixture-card.is-live {
  background: rgba(255, 112, 67, 0.18);
}

.tv-salas-worldcup-fixture-card.is-finished {
  background: rgba(17, 32, 24, 0.1);
}

.tv-salas-worldcup-fixture-card.is-scheduled {
  background: rgba(255, 255, 255, 0.62);
}

.tv-salas-worldcup-fixture-card div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-salas-worldcup-fixture-card strong,
.tv-salas-worldcup-fixture-card span,
.tv-salas-worldcup-result-card span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-salas-worldcup-fixture-card strong {
  color: #0f2e1e;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  font-weight: 950;
}

.tv-salas-worldcup-fixture-card small {
  flex: 0 0 auto;
  color: rgba(17, 32, 24, 0.5);
  font-size: 0.65rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tv-salas-worldcup-fixture-card span {
  justify-self: end;
  color: rgba(17, 32, 24, 0.72);
  font-size: clamp(0.68rem, 0.9vw, 0.84rem);
  font-weight: 900;
}

.tv-salas-worldcup-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.tv-salas-worldcup-result-card strong {
  color: #0f2e1e;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 950;
}

.tv-salas-worldcup-result-card span {
  color: rgba(17, 32, 24, 0.78);
  font-size: clamp(0.76rem, 0.95vw, 0.9rem);
  font-weight: 850;
}

.tv-salas-worldcup-result-card span:last-child {
  text-align: right;
}

.tv-salas-worldcup-empty {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(17, 32, 24, 0.72);
  background: rgba(255, 255, 255, 0.56);
  font-size: clamp(0.74rem, 0.95vw, 0.9rem);
  font-weight: 850;
  line-height: 1.2;
}

.tv-salas-shared-info {
  display: grid;
  gap: 10px;
}

.tv-salas-shared-info .eyebrow {
  margin: 0;
}

.tv-salas-shared-info h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.08;
}

.tv-salas-shared-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.tv-salas-shared-copy {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1c3f7a;
}

.tv-salas-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tv-salas-result-card {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(63, 65, 62, 0.08);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 6px;
  align-content: start;
}

.tv-salas-result-card.is-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(255, 245, 226, 0.98), rgba(255, 255, 255, 0.92));
  border-color: rgba(239, 134, 0, 0.18);
}

.tv-salas-result-number {
  display: block;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f4257;
}

.tv-salas-result-card.is-highlight .tv-salas-result-number {
  color: #b25f00;
  font-size: clamp(3rem, 4.8vw, 4.8rem);
}

.tv-salas-result-card p {
  margin: 0;
  color: #45535c;
  font-size: 0.92rem;
  line-height: 1.2;
}

.tv-salas-shared-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.tv-salas-shared-list li {
  line-height: 1.3;
}

.tv-salas-slide-plan {
  background:
    radial-gradient(circle at top left, rgba(239, 134, 0, 0.15), transparent 24%),
    radial-gradient(circle at top right, rgba(44, 151, 201, 0.16), transparent 28%),
    linear-gradient(180deg, #eef4f7 0%, #f6f8fa 100%);
}

.tv-salas-plan-app {
  min-height: 100vh;
  padding: 30px 34px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.tv-salas-plan-hero,
.tv-salas-plan-floor,
.tv-salas-plan-other {
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(63, 65, 62, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(44, 151, 201, 0.1);
}

.tv-salas-plan-hero {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tv-salas-plan-hero-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.tv-salas-plan-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.4vw, 3.8rem);
  line-height: 0.94;
}

.tv-salas-plan-hero-text {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.tv-salas-plan-hero-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tv-salas-plan-hero-logo {
  width: clamp(108px, 13vw, 170px);
  height: auto;
  display: block;
  object-fit: contain;
}

.tv-salas-plan-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tv-salas-plan-floor {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 30px;
}

.tv-salas-plan-floor::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 18px;
  height: 110px;
  border-radius: 24px;
  transform: perspective(1100px) rotateX(68deg);
  transform-origin: center bottom;
  z-index: 0;
  opacity: 0.9;
}

.tv-salas-plan-floor-first {
  background: linear-gradient(145deg, rgba(255, 247, 235, 0.98), rgba(255, 255, 255, 0.92));
  border-color: rgba(239, 134, 0, 0.18);
}

.tv-salas-plan-floor-first::after {
  background: linear-gradient(180deg, rgba(255, 216, 160, 0.42), rgba(255, 236, 207, 0.22));
  border: 1px solid rgba(239, 134, 0, 0.16);
}

.tv-salas-plan-floor-second {
  background: linear-gradient(145deg, rgba(236, 246, 252, 0.98), rgba(255, 255, 255, 0.92));
  border-color: rgba(44, 151, 201, 0.18);
}

.tv-salas-plan-floor-second::after {
  background: linear-gradient(180deg, rgba(183, 223, 241, 0.38), rgba(225, 241, 250, 0.2));
  border: 1px solid rgba(44, 151, 201, 0.15);
}

.tv-salas-plan-floor-head,
.tv-salas-plan-other-head {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.tv-salas-plan-floor-head h2,
.tv-salas-plan-other-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.tv-salas-plan-floor-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.tv-salas-plan-room {
  position: relative;
  padding: 12px 12px 0 0;
  isolation: isolate;
}

.tv-salas-plan-room::before {
  content: "";
  position: absolute;
  inset: 14px 0 0 18px;
  border-radius: 24px;
  transform: skew(-16deg);
  transform-origin: left center;
  z-index: 0;
}

.tv-salas-plan-room.is-busy::before {
  background: linear-gradient(145deg, rgba(239, 134, 0, 0.2), rgba(255, 205, 135, 0.28));
}

.tv-salas-plan-room.is-free::before {
  background: linear-gradient(145deg, rgba(44, 151, 201, 0.16), rgba(204, 235, 248, 0.26));
}

.tv-salas-plan-room-inner {
  position: relative;
  z-index: 1;
  min-height: 240px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(63, 65, 62, 0.1);
  box-shadow: 0 18px 28px rgba(29, 41, 57, 0.12);
}

.tv-salas-plan-room.is-busy .tv-salas-plan-room-inner {
  background: linear-gradient(145deg, rgba(255, 247, 235, 0.98), rgba(255, 255, 255, 0.94));
}

.tv-salas-plan-room.is-free .tv-salas-plan-room-inner {
  background: linear-gradient(145deg, rgba(239, 248, 243, 0.98), rgba(255, 255, 255, 0.94));
}

.tv-salas-plan-room-floor {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.tv-salas-plan-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tv-salas-plan-room-head h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.02;
}

.tv-salas-plan-room-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-salas-plan-room-status.is-busy {
  color: #ffffff;
  background: linear-gradient(90deg, #d84a1b, #ef8600);
}

.tv-salas-plan-room-status.is-free {
  color: #135f49;
  background: rgba(58, 180, 156, 0.2);
}

.tv-salas-plan-room-empty,
.tv-salas-plan-room-next {
  margin: 0;
}

.tv-salas-plan-room-empty {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.15;
  color: #135f49;
}

.tv-salas-plan-room-next {
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--muted);
}

.tv-salas-plan-activity-list {
  display: grid;
  gap: 10px;
}

.tv-salas-plan-activity {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(63, 65, 62, 0.08);
  display: grid;
  gap: 4px;
}

.tv-salas-plan-activity strong,
.tv-salas-plan-activity span {
  display: block;
}

.tv-salas-plan-activity strong {
  font-size: 1.08rem;
  line-height: 1.08;
}

.tv-salas-plan-activity span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.25;
}

.tv-salas-plan-other {
  padding: 18px 22px 20px;
}

.tv-salas-plan-other-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tv-salas-plan-other-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(63, 65, 62, 0.08);
  display: grid;
  gap: 8px;
}

.tv-salas-plan-other-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.tv-salas-plan-other-card.is-empty {
  grid-column: 1 / -1;
  place-items: center;
  min-height: 88px;
  text-align: center;
}

.tv-salas-plan-other-card.is-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.tv-salas-plan-other-activities {
  display: grid;
  gap: 8px;
}

.tv-salas-plan-other-activities p {
  margin: 0;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.24;
}

.tv-salas-plan-other-activities strong {
  color: var(--text);
}

.tv-salas-plan-scene {
  position: relative;
  z-index: 1;
  height: 352px;
  isolation: isolate;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(63, 65, 62, 0.1);
}

.tv-salas-plan-deck {
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.tv-salas-plan-scene-first .tv-salas-plan-deck {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(239, 134, 0, 0.04) 0,
      rgba(239, 134, 0, 0.04) 24px,
      rgba(255, 255, 255, 0.8) 24px,
      rgba(255, 255, 255, 0.8) 48px
    ),
    linear-gradient(180deg, rgba(255, 247, 235, 0.95), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(239, 134, 0, 0.18);
}

.tv-salas-plan-scene-second .tv-salas-plan-deck {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(44, 151, 201, 0.04) 0,
      rgba(44, 151, 201, 0.04) 24px,
      rgba(255, 255, 255, 0.8) 24px,
      rgba(255, 255, 255, 0.8) 48px
    ),
    linear-gradient(180deg, rgba(236, 246, 252, 0.95), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(44, 151, 201, 0.18);
}

.tv-salas-plan-corridor {
  position: absolute;
  top: 66px;
  bottom: 22px;
  left: 43.5%;
  width: 13%;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 245, 247, 0.92));
  border: 1px dashed rgba(63, 65, 62, 0.18);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.tv-salas-plan-corridor span {
  display: block;
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(63, 65, 62, 0.58);
}

.tv-salas-plan-stairs {
  position: absolute;
  top: 14px;
  left: 41%;
  width: 18%;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(63, 65, 62, 0.12), rgba(63, 65, 62, 0.06));
  border: 1px solid rgba(63, 65, 62, 0.12);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(63, 65, 62, 0.68);
  z-index: 2;
}

.tv-salas-plan-room-slot {
  position: absolute;
  z-index: 3;
}

.tv-salas-plan-room-slot-12 {
  left: 16px;
  top: 66px;
  width: calc(43.5% - 24px);
  height: 244px;
}

.tv-salas-plan-room-slot-13 {
  right: 16px;
  top: 66px;
  width: calc(43.5% - 24px);
  height: 244px;
}

.tv-salas-plan-room-slot-22 {
  left: 16px;
  top: 66px;
  width: calc(43.5% - 24px);
  height: 244px;
}

.tv-salas-plan-room-slot-23 {
  right: 16px;
  top: 66px;
  width: calc(43.5% - 24px);
  height: 244px;
}

.tv-salas-plan-room-slot > .tv-salas-plan-room {
  height: 100%;
  padding: 0;
}

.tv-salas-plan-room-slot > .tv-salas-plan-room::before {
  display: none;
}

.tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-room-inner {
  min-height: 100%;
  height: 100%;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.tv-salas-plan-room-slot > .tv-salas-plan-room.is-busy .tv-salas-plan-room-inner {
  background: linear-gradient(145deg, rgba(255, 247, 235, 0.99), rgba(255, 255, 255, 0.95));
  border-color: rgba(239, 134, 0, 0.24);
}

.tv-salas-plan-room-slot > .tv-salas-plan-room.is-free .tv-salas-plan-room-inner {
  background: linear-gradient(145deg, rgba(239, 248, 243, 0.99), rgba(255, 255, 255, 0.95));
  border-color: rgba(58, 180, 156, 0.2);
}

.tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-room-head h3 {
  font-size: 1.5rem;
}

.tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-room-empty {
  font-size: 1.02rem;
}

.tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-room-next {
  font-size: 0.88rem;
}

.tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-activity {
  background: rgba(255, 255, 255, 0.84);
}

@media (max-height: 760px) {
  .tv-salas-body {
    background: linear-gradient(180deg, #eef3f7 0%, #f6f8fa 100%);
  }

  .tv-salas-app {
    padding: 16px 18px;
    gap: 12px;
  }

  .tv-salas-slide-toggle {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .tv-salas-slide-toggle svg {
    width: 18px;
    height: 18px;
  }

  .tv-salas-slide-controls {
    left: 10px;
    bottom: 10px;
  }

  .tv-salas-slide-nav-button {
    width: 36px;
    height: 36px;
  }

  .tv-salas-slide-nav-button svg {
    width: 17px;
    height: 17px;
  }

  .tv-salas-hero,
  .tv-salas-floor,
  .tv-salas-external {
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(44, 151, 201, 0.08);
  }

  .tv-salas-hero {
    padding: 12px 16px;
    gap: 12px;
  }

  .tv-salas-hero-main {
    gap: 14px;
  }

  .tv-salas-hero h1 {
    font-size: clamp(2.25rem, 3.35vw, 3.15rem);
  }

  .tv-salas-hero-logo {
    width: clamp(96px, 12vw, 132px);
  }

  .tv-salas-clock {
    min-width: 180px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .tv-salas-clock strong {
    font-size: 2.2rem;
  }

  .tv-salas-clock p {
    font-size: 0.82rem;
  }

  .tv-salas-floor,
  .tv-salas-external {
    padding: 14px 16px 16px;
  }

  .tv-salas-floor-head {
    margin-bottom: 10px;
  }

  .tv-salas-floor-head h2 {
    font-size: 1.34rem;
  }

  .tv-salas-grid {
    gap: 10px;
  }

  .tv-salas-card {
    min-height: 164px;
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
  }

  .tv-salas-card.is-arrow-left {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .tv-salas-card-main {
    gap: 8px;
  }

  .tv-salas-card-head {
    gap: 8px;
  }

  .tv-salas-card-title-wrap {
    gap: 0;
  }

  .tv-salas-card-head h3 {
    font-size: 1.34rem;
    line-height: 1.05;
  }

  .tv-salas-card-arrow {
    width: 100%;
    height: 100%;
  }

  .tv-salas-card-arrow-image {
    width: 86%;
    max-width: 56px;
    max-height: 96%;
  }

  .tv-salas-status {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .tv-salas-activity {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .tv-salas-activity-time {
    margin: 0 0 4px;
    font-size: 0.74rem;
  }

  .tv-salas-activity h3 {
    font-size: 3.2rem;
    line-height: 0.98;
  }

  .tv-salas-activity-kind {
    margin: 4px 0 0;
    font-size: 1.48rem;
    font-weight: 800;
    line-height: 1.08;
  }

  .tv-salas-free-copy {
    font-size: 1.05rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .tv-salas-free-note {
    font-size: 0.82rem;
    line-height: 1.24;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .tv-salas-next {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .tv-salas-next-label {
    margin: 0 0 2px;
    font-size: 0.74rem;
  }

  .tv-salas-next-item {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .tv-salas-external-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tv-salas-external-card {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .tv-salas-external-empty {
    min-height: 72px;
  }

  .tv-salas-external-empty p {
    font-size: 0.92rem;
  }

  .tv-salas-external-card h3 {
    margin: 0 0 6px;
    font-size: 1.04rem;
  }

  .tv-salas-external-activities {
    gap: 4px;
  }

  .tv-salas-external-activities p {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .tv-salas-shared-screen {
    grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.9fr);
    gap: 12px;
  }

  .tv-salas-shared-rooms {
    gap: 12px;
  }

  .tv-salas-shared-layout {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 12px;
  }

  .tv-salas-grid-shared {
    gap: 10px;
  }

  .tv-salas-shared-panel {
    padding: 12px;
    border-radius: 18px;
    grid-template-rows: minmax(0, 1.35fr) auto;
    gap: 10px;
  }

  .tv-salas-shared-media {
    min-height: 0;
    border-radius: 14px;
  }

  .tv-salas-shared-placeholder {
    padding: 12px;
  }

  .tv-salas-shared-placeholder p {
    font-size: 0.88rem;
  }

  .tv-salas-shared-media-controls {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .tv-salas-shared-control-button {
    width: 42px;
    height: 42px;
  }

  .tv-salas-shared-control-button svg {
    width: 21px;
    height: 21px;
  }

  .tv-salas-shared-info {
    gap: 8px;
  }

  .tv-salas-shared-info h3 {
    font-size: 1.18rem;
  }

  .tv-salas-shared-info p,
  .tv-salas-shared-list li {
    font-size: 0.86rem;
    line-height: 1.22;
  }

  .tv-salas-shared-copy {
    font-size: 0.82rem;
  }

  .tv-salas-results-grid {
    gap: 8px;
  }

  .tv-salas-result-card {
    padding: 10px 11px;
    border-radius: 14px;
    gap: 4px;
  }

  .tv-salas-result-number {
    font-size: 2.25rem;
  }

  .tv-salas-result-card.is-highlight .tv-salas-result-number {
    font-size: 3rem;
  }

  .tv-salas-result-card p {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .tv-salas-shared-list {
    gap: 6px;
    padding-left: 18px;
  }

  .tv-salas-plan-app {
    padding: 18px;
    gap: 12px;
  }

  .tv-salas-plan-hero,
  .tv-salas-plan-floor,
  .tv-salas-plan-other {
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(44, 151, 201, 0.08);
  }

  .tv-salas-plan-hero {
    padding: 14px 16px;
    gap: 14px;
  }

  .tv-salas-plan-hero h1 {
    font-size: clamp(2rem, 3.1vw, 3rem);
  }

  .tv-salas-plan-hero-text {
    font-size: 0.88rem;
  }

  .tv-salas-plan-hero-logo {
    width: clamp(96px, 12vw, 132px);
  }

  .tv-salas-plan-stage {
    gap: 12px;
  }

  .tv-salas-plan-floor {
    padding: 14px 16px 22px;
  }

  .tv-salas-plan-floor::after {
    left: 18px;
    right: 18px;
    bottom: 12px;
    height: 82px;
  }

  .tv-salas-plan-floor-head,
  .tv-salas-plan-other-head {
    margin-bottom: 10px;
  }

  .tv-salas-plan-floor-head h2,
  .tv-salas-plan-other-head h2 {
    font-size: 1.34rem;
  }

  .tv-salas-plan-floor-grid {
    gap: 14px;
  }

  .tv-salas-plan-room {
    padding: 8px 8px 0 0;
  }

  .tv-salas-plan-room::before {
    inset: 10px 0 0 12px;
  }

  .tv-salas-plan-room-inner {
    min-height: 188px;
    padding: 14px;
    border-radius: 18px;
    gap: 10px;
  }

  .tv-salas-plan-room-floor {
    font-size: 0.66rem;
  }

  .tv-salas-plan-room-head h3 {
    font-size: 1.18rem;
  }

  .tv-salas-plan-room-status {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .tv-salas-plan-room-empty {
    font-size: 0.96rem;
  }

  .tv-salas-plan-room-next {
    font-size: 0.78rem;
  }

  .tv-salas-plan-activity {
    padding: 10px 11px;
    border-radius: 12px;
    gap: 3px;
  }

  .tv-salas-plan-activity strong {
    font-size: 0.92rem;
  }

  .tv-salas-plan-activity span {
    font-size: 0.74rem;
  }

  .tv-salas-plan-other {
    padding: 14px 16px 16px;
  }

  .tv-salas-plan-other-list {
    gap: 10px;
  }

  .tv-salas-plan-other-card {
    padding: 10px 12px;
    border-radius: 14px;
    gap: 6px;
  }

  .tv-salas-plan-other-card h3 {
    font-size: 0.96rem;
  }

  .tv-salas-plan-other-card.is-empty {
    min-height: 72px;
  }

  .tv-salas-plan-other-card.is-empty p,
  .tv-salas-plan-other-activities p {
    font-size: 0.82rem;
  }

  .tv-salas-plan-scene {
    height: 288px;
  }

  .tv-salas-plan-deck {
    inset: 10px;
  }

  .tv-salas-plan-corridor {
    top: 52px;
    bottom: 16px;
    border-radius: 14px;
  }

  .tv-salas-plan-corridor span {
    font-size: 0.58rem;
  }

  .tv-salas-plan-stairs {
    top: 10px;
    height: 34px;
    font-size: 0.6rem;
  }

  .tv-salas-plan-room-slot-12,
  .tv-salas-plan-room-slot-13,
  .tv-salas-plan-room-slot-22,
  .tv-salas-plan-room-slot-23 {
    top: 52px;
    height: 210px;
  }

  .tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-room-inner {
    padding: 14px 14px 12px;
    border-radius: 14px;
  }

  .tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-room-head h3 {
    font-size: 1.18rem;
  }

  .tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-room-status {
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  .tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-room-empty {
    font-size: 0.84rem;
  }

  .tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-room-next {
    font-size: 0.72rem;
  }

  .tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-activity {
    padding: 8px 9px;
    border-radius: 10px;
  }

  .tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-activity strong {
    font-size: 0.8rem;
  }

  .tv-salas-plan-room-slot > .tv-salas-plan-room .tv-salas-plan-activity span {
    font-size: 0.68rem;
  }
}

@keyframes tvSalasBusyBlink {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(216, 74, 27, 0.18), 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
  }
  50% {
    opacity: 0.76;
    box-shadow: 0 0 0 3px rgba(216, 74, 27, 0.24), 0 0 14px rgba(255, 236, 201, 0.38);
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(216, 74, 27, 0.18), 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
  }
}

.tv-salas-body {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(239, 134, 0, 0.2), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(44, 151, 201, 0.18), transparent 28%),
    linear-gradient(135deg, #eaf2f6 0%, #f8faf8 48%, #edf5f3 100%);
}

html {
  min-height: 100%;
  background: #eaf2f6;
}

.tv-salas-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 8%, rgba(239, 134, 0, 0.2), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(44, 151, 201, 0.18), transparent 28%),
    linear-gradient(135deg, #eaf2f6 0%, #f8faf8 48%, #edf5f3 100%);
}

.tv-salas-slides {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.tv-salas-slide {
  overflow: hidden;
}

.tv-salas-app {
  height: 100vh;
  min-height: 0;
  padding: 12px 18px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
}

.tv-salas-hero,
.tv-salas-floor,
.tv-salas-external,
.tv-salas-shared-panel {
  border: 1px solid rgba(19, 57, 70, 0.1);
  box-shadow: 0 14px 34px rgba(19, 57, 70, 0.1);
}

.tv-salas-hero {
  min-height: 64px;
  padding: 8px 16px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 252, 0.9)),
    radial-gradient(circle at 75% 20%, rgba(239, 134, 0, 0.14), transparent 26%);
}

.tv-salas-hero h1 {
  font-size: clamp(1.9rem, 2.85vw, 2.85rem);
  letter-spacing: -0.055em;
}

.tv-salas-hero-logo {
  width: clamp(84px, 9vw, 116px);
}

.tv-salas-clock {
  min-width: 154px;
  padding: 6px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.tv-salas-clock strong {
  font-size: clamp(1.8rem, 2.65vw, 2.38rem);
}

.tv-salas-clock p {
  margin-top: 2px;
  font-size: 0.72rem;
}

.tv-salas-shared-screen {
  min-height: 0;
  grid-template-columns: minmax(0, 1.9fr) minmax(330px, 0.9fr);
  gap: 12px;
  overflow: hidden;
}

.tv-salas-shared-rooms {
  min-height: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tv-salas-floor {
  min-height: 0;
  padding: 12px 14px;
  border-radius: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.tv-salas-floor-first {
  background:
    linear-gradient(135deg, rgba(255, 248, 239, 0.96), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(239, 134, 0, 0.16), transparent 32%);
}

.tv-salas-floor-second {
  background:
    linear-gradient(135deg, rgba(234, 246, 252, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(44, 151, 201, 0.16), transparent 32%);
}

.tv-salas-floor-head {
  margin-bottom: 9px;
}

.tv-salas-floor-head h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  letter-spacing: -0.025em;
}

.tv-salas-grid-shared {
  min-height: 0;
  height: 100%;
  gap: 10px;
}

.tv-salas-card {
  min-height: 0;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  border-color: rgba(19, 57, 70, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 252, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: visible;
}

.tv-salas-card.is-arrow-left {
  grid-template-columns: 48px minmax(0, 1fr);
}

.tv-salas-card-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}

.tv-salas-card-head {
  align-items: center;
  gap: 8px;
  min-height: 28px;
  overflow: visible;
}

.tv-salas-card-head h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  letter-spacing: -0.03em;
  overflow: visible;
}

.tv-salas-status {
  box-sizing: border-box;
  min-width: 62px;
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  font-size: 0.64rem;
  letter-spacing: 0.045em;
  box-shadow: 0 6px 14px rgba(19, 57, 70, 0.08);
  transform-origin: center;
}

.tv-salas-status.is-busy {
  animation: tvSalasBusyBadgePulse 1.15s ease-in-out infinite;
}

.tv-salas-card-arrow-image {
  width: 100%;
  max-width: 48px;
  max-height: 100%;
  filter: drop-shadow(0 7px 12px rgba(239, 134, 0, 0.18));
}

.tv-salas-activity-list {
  min-height: 0;
  gap: 7px;
  overflow: hidden;
}

.tv-salas-activity {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 249, 252, 0.9));
  box-shadow: 0 8px 18px rgba(19, 57, 70, 0.08);
  overflow: hidden;
}

.tv-salas-activity-time {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.tv-salas-activity h3 {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(1.42rem, 2.05vw, 1.86rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.035em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-salas-activity-kind {
  margin-top: 5px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(0.78rem, 1.02vw, 0.94rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: #315768;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-salas-free-copy {
  font-size: clamp(0.9rem, 1.12vw, 1.02rem);
  line-height: 1.16;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-salas-free-note {
  font-size: 0.78rem;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-salas-card.has-next .tv-salas-free-copy {
  font-size: 0.8rem;
  line-height: 1.12;
  -webkit-line-clamp: 4;
}

.tv-salas-card.has-next .tv-salas-free-note {
  display: none;
}

.tv-salas-card.has-next .tv-salas-next {
  margin-top: 0;
}

.tv-salas-next {
  padding: 8px 10px;
  border-radius: 14px;
}

.tv-salas-next-label {
  margin-bottom: 2px;
  font-size: 0.7rem;
}

.tv-salas-next-item {
  font-size: 0.86rem;
  line-height: 1.16;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-salas-shared-panel {
  min-height: 0;
  padding: 12px;
  border-radius: 24px;
  grid-template-rows: minmax(150px, 0.95fr) minmax(0, 1fr);
  gap: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 250, 0.9)),
    radial-gradient(circle at 18% 12%, rgba(239, 134, 0, 0.14), transparent 34%);
  overflow: hidden;
}

.tv-salas-shared-media {
  min-height: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.tv-salas-shared-info {
  gap: 6px;
}

.tv-salas-shared-info h3 {
  font-size: 1.04rem;
  letter-spacing: -0.025em;
}

.tv-salas-shared-copy {
  font-size: 0.76rem;
}

.tv-salas-results-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.tv-salas-result-card {
  min-height: 62px;
  padding: 7px 8px;
  border-radius: 14px;
  gap: 2px;
  overflow: hidden;
}

.tv-salas-result-card.is-highlight {
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

.tv-salas-result-number {
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  letter-spacing: -0.06em;
}

.tv-salas-result-card.is-highlight .tv-salas-result-number {
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
}

.tv-salas-result-card p {
  font-size: 0.62rem;
  line-height: 1.08;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-salas-result-card.is-highlight p {
  font-size: 0.72rem;
  -webkit-line-clamp: 2;
}

.tv-salas-external {
  min-height: 54px;
  padding: 7px 14px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 252, 0.9));
  overflow: hidden;
}

.tv-salas-external .tv-salas-floor-head {
  margin: 0;
}

.tv-salas-external-list {
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.tv-salas-external-card {
  padding: 9px 12px;
  border-radius: 14px;
}

.tv-salas-external-empty {
  min-height: 36px;
}

.tv-salas-external-empty p,
.tv-salas-external-activities p {
  font-size: 0.84rem;
  line-height: 1.15;
}

.tv-qr-lion {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: clamp(120px, 16vw, 190px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(29, 41, 57, 0.18));
  animation: tvLionBob 3.8s ease-in-out infinite;
  pointer-events: none;
}

.tv-qr-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.tv-qr-rings span {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 32px;
  border: 2px solid rgba(44, 151, 201, 0.16);
  opacity: 0;
  animation: tvQrRing 3.6s ease-out infinite;
}

.tv-qr-rings span:nth-child(2) {
  animation-delay: 1.2s;
}

.tv-qr-rings span:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes tvQrRing {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }
  20% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes tvQrPulse {
  0% {
    transform: scale(1);
    box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.06), 0 0 0 0 rgba(44, 151, 201, 0);
  }
  50% {
    transform: scale(1.018);
    box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.06), 0 0 0 16px rgba(44, 151, 201, 0.08);
  }
  100% {
    transform: scale(1);
    box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.06), 0 0 0 0 rgba(44, 151, 201, 0);
  }
}

@keyframes tvLionBob {
  0% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
  100% {
    transform: translateY(0) rotate(-1deg);
  }
}

.tv-week-mobile-page-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(243, 179, 0, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(44, 151, 201, 0.14), transparent 32%),
    linear-gradient(180deg, #f8f4ea 0%, #f1ede3 100%);
  color: var(--text);
}

.tv-week-mobile-page {
  min-height: 100vh;
  padding: 14px;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
}

.tv-week-mobile-page-header h1 {
  margin: 4px 0 0;
  font-size: 1.6rem;
  line-height: 1;
}

.tv-week-mobile-board {
  display: grid;
  gap: 12px;
}

.tv-week-mobile-day {
  border: 1px solid rgba(20, 24, 28, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.tv-week-mobile-day.is-today {
  border-color: rgba(239, 134, 0, 0.26);
  box-shadow: 0 0 0 2px rgba(239, 134, 0, 0.08);
}

.tv-week-mobile-head {
  padding: 10px 12px;
  background: #fff8ed;
  color: var(--accent);
  text-transform: lowercase;
}

.tv-week-mobile-head strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.tv-week-mobile-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.tv-week-mobile-workshop {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  background: #fff;
  box-shadow: 0 6px 12px rgba(29, 41, 57, 0.05);
  display: grid;
  gap: 4px;
}

.tv-week-mobile-workshop.status-now {
  border-color: rgba(239, 134, 0, 0.44);
  background: linear-gradient(180deg, rgba(255, 245, 226, 0.98), rgba(255, 255, 255, 0.98));
}

.tv-week-mobile-workshop.status-past {
  background: rgba(243, 244, 246, 0.92);
  border-color: rgba(95, 96, 93, 0.18);
}

.tv-week-mobile-workshop.status-future {
  border-color: rgba(44, 151, 201, 0.24);
}

.tv-week-mobile-workshop.status-suspended {
  background: rgba(253, 240, 240, 0.96);
  border-color: rgba(180, 65, 65, 0.24);
}

.tv-week-mobile-workshop.kind-taller,
.tv-week-mobile-workshop.kind-asesoria,
.tv-week-mobile-workshop.kind-consejeria {
  border-left: none;
}

.tv-week-mobile-time {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.tv-week-mobile-workshop h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tv-week-mobile-audience {
  font-size: 0.76rem;
  line-height: 1.25;
}

.tv-week-mobile-empty {
  padding: 12px;
  border-radius: 12px;
  background: rgba(243, 244, 246, 0.72);
  color: rgba(50, 57, 64, 0.72);
  text-align: center;
  font-size: 0.9rem;
}

@page {
  size: landscape;
  margin: 10mm;
}

/* ANÁLISIS: tablero oscuro inspirado en apps móviles de estadísticas */
body.analysis-dashboard-page {
  --analysis-bg: #210801;
  --analysis-bg-2: #33130c;
  --analysis-card: rgba(54, 22, 15, 0.88);
  --analysis-card-strong: rgba(67, 27, 18, 0.95);
  --analysis-card-soft: rgba(255, 255, 255, 0.055);
  --analysis-border: rgba(255, 230, 210, 0.1);
  --analysis-text: #fff8f4;
  --analysis-muted: rgba(237, 214, 206, 0.66);
  --analysis-muted-strong: rgba(255, 238, 230, 0.82);
  --analysis-orange: #ff9b3d;
  --analysis-red: #ff5a57;
  --analysis-blue: #4aa3ff;
  --analysis-green: #63d66e;
  --analysis-purple: #c13cf4;
  --analysis-cyan: #65d8f7;
  color: var(--analysis-text);
  background:
    radial-gradient(circle at 18% -4%, rgba(255, 118, 54, 0.24), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(193, 60, 244, 0.16), transparent 26%),
    radial-gradient(circle at 12% 88%, rgba(74, 163, 255, 0.12), transparent 30%),
    linear-gradient(160deg, #1a0601 0%, var(--analysis-bg) 44%, #120300 100%);
  font-family: "Aptos Display", "Bahnschrift", "Trebuchet MS", "Segoe UI", sans-serif;
}

body.analysis-dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 70%);
}

.analysis-dashboard-page .app {
  max-width: 1180px;
  padding-bottom: 56px;
}

.analysis-dashboard-page .analysis-hero {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.analysis-dashboard-page .analysis-hero::before {
  content: "Estadísticas";
  position: absolute;
  left: 0;
  top: -18px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  filter: blur(1px);
}

.analysis-dashboard-page .analysis-hero .eyebrow {
  color: var(--analysis-orange);
}

.analysis-dashboard-page .analysis-hero h1 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--analysis-text);
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  letter-spacing: -0.06em;
}

.analysis-dashboard-page .analysis-hero h1::before {
  content: "";
  width: clamp(46px, 5vw, 64px);
  height: clamp(46px, 5vw, 64px);
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 155, 61, 0.26) 0 46%, transparent 48%),
    conic-gradient(from 230deg, #ff5a57, #ff9b3d, #f7c64b, #ff5a57);
  box-shadow:
    0 0 0 9px rgba(255, 155, 61, 0.12),
    0 16px 36px rgba(255, 91, 40, 0.18);
}

.analysis-dashboard-page .analysis-hero .description,
.analysis-dashboard-page .muted {
  color: var(--analysis-muted);
}

.analysis-dashboard-page .hero-side {
  align-self: center;
}

.analysis-dashboard-page .action-link,
.analysis-dashboard-page .secondary-button {
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--analysis-text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.analysis-dashboard-page .action-link {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(135deg, var(--analysis-orange), #ed503a);
}

.analysis-dashboard-page .analysis-jump-nav {
  top: 14px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(50, 20, 14, 0.72);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.analysis-dashboard-page .analysis-jump-link {
  border-color: transparent;
  color: var(--analysis-muted-strong);
  background: transparent;
  box-shadow: none;
}

.analysis-dashboard-page .analysis-jump-link:hover,
.analysis-dashboard-page .analysis-jump-link:focus-visible,
.analysis-dashboard-page .analysis-jump-link.is-active {
  color: #ffd283;
  background: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.analysis-dashboard-page .analysis-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.analysis-dashboard-page .analysis-panel::before {
  display: none;
}

.analysis-dashboard-page .analysis-section {
  padding: clamp(18px, 2.4vw, 30px);
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 155, 61, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(67, 27, 18, 0.9), rgba(39, 14, 9, 0.86));
  box-shadow:
    0 26px 62px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.analysis-dashboard-page .analysis-section::before {
  width: 0;
}

.analysis-dashboard-page .analysis-section::after {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 40%);
}

.analysis-dashboard-page .analysis-section-head h2,
.analysis-dashboard-page .attendance-card-heading h3,
.analysis-dashboard-page .attendance-period-detail-grid h4,
.analysis-dashboard-page .attendance-alert-group h4 {
  color: var(--analysis-text);
}

.analysis-dashboard-page .analysis-section-badge {
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffd283;
  background: rgba(255, 255, 255, 0.07);
}

.analysis-dashboard-page .analysis-section .attendance-filters {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.analysis-dashboard-page .attendance-filters label,
.analysis-dashboard-page .attendance-workshop-picker {
  color: var(--analysis-muted-strong);
}

.analysis-dashboard-page .attendance-filters select,
.analysis-dashboard-page .attendance-workshop-picker select {
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--analysis-text);
  background: rgba(18, 6, 3, 0.72);
}

.analysis-dashboard-page .attendance-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.analysis-dashboard-page .attendance-summary-card,
.analysis-dashboard-page .attendance-monitor-card,
.analysis-dashboard-page .attendance-professional-profile-card,
.analysis-dashboard-page .attendance-zero-alert-card,
.analysis-dashboard-page .attendance-bar-row,
.analysis-dashboard-page .attendance-ranking-item,
.analysis-dashboard-page .attendance-table-wrap,
.analysis-dashboard-page .attendance-period-detail,
.analysis-dashboard-page .attendance-period-kind-pills article,
.analysis-dashboard-page .attendance-period-detail-row,
.analysis-dashboard-page .attendance-professional-profile-head,
.analysis-dashboard-page .attendance-professional-profile-box,
.analysis-dashboard-page .attendance-workshop-summary article,
.analysis-dashboard-page .attendance-session-row,
.analysis-dashboard-page .line-chart-legend span {
  border-color: var(--analysis-border);
  color: var(--analysis-text);
  background: var(--analysis-card);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.analysis-dashboard-page .analysis-section .attendance-monitor-card,
.analysis-dashboard-page .analysis-section .attendance-professional-profile-card {
  border-color: var(--analysis-border);
  background: var(--analysis-card);
}

.analysis-dashboard-page .attendance-summary-card {
  min-height: 190px;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-radius: 30px;
}

.analysis-dashboard-page .attendance-summary-card.is-total {
  grid-column: span 2;
  min-height: 220px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 155, 61, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(73, 28, 18, 0.98), rgba(44, 15, 10, 0.94));
}

.analysis-dashboard-page .attendance-summary-card span,
.analysis-dashboard-page .attendance-workshop-summary span,
.analysis-dashboard-page .attendance-period-insights span,
.analysis-dashboard-page .attendance-professional-profile-head span {
  color: var(--analysis-muted);
}

.analysis-dashboard-page .attendance-summary-card strong {
  color: var(--analysis-text);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  letter-spacing: -0.08em;
}

.analysis-dashboard-page .attendance-summary-card.is-total strong {
  color: #ffffff;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
}

.analysis-dashboard-page .attendance-summary-card p,
.analysis-dashboard-page .attendance-bar-row p,
.analysis-dashboard-page .attendance-ranking-item p,
.analysis-dashboard-page .attendance-ranking-item small,
.analysis-dashboard-page .attendance-table td span,
.analysis-dashboard-page .attendance-session-row span,
.analysis-dashboard-page .attendance-period-detail-row span,
.analysis-dashboard-page .attendance-professional-profile-head p {
  color: var(--analysis-muted);
}

.analysis-dashboard-page .attendance-summary-spark {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 56px;
  margin: 4px 0 0;
}

.analysis-dashboard-page .attendance-summary-spark i {
  display: block;
  width: 100%;
  max-width: 24px;
  height: var(--spark-height);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #ffd26b 0%, var(--analysis-orange) 54%, #e94831 100%);
  box-shadow: 0 10px 22px rgba(255, 100, 45, 0.18);
}

.analysis-dashboard-page .attendance-summary-card.is-advice .attendance-summary-spark i,
.analysis-dashboard-page .attendance-summary-card.is-professionals .attendance-summary-spark i {
  background: linear-gradient(180deg, var(--analysis-blue), var(--analysis-purple));
}

.analysis-dashboard-page .attendance-summary-card.is-counseling .attendance-summary-spark i,
.analysis-dashboard-page .attendance-summary-card.is-average .attendance-summary-spark i {
  background: linear-gradient(180deg, var(--analysis-green), var(--analysis-cyan));
}

.analysis-dashboard-page .attendance-summary-card.is-alert .attendance-summary-spark i {
  background: linear-gradient(180deg, #ff826d, #ed503a);
}

.analysis-dashboard-page .attendance-findings-card {
  border-color: rgba(255, 155, 61, 0.16);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 155, 61, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(55, 22, 15, 0.94), rgba(35, 12, 8, 0.9));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}

.analysis-dashboard-page .attendance-findings-card h3,
.analysis-dashboard-page .attendance-findings-card p,
.analysis-dashboard-page .attendance-period-insights strong,
.analysis-dashboard-page .attendance-period-detail-head > div:first-child strong,
.analysis-dashboard-page .attendance-period-detail-row > strong,
.analysis-dashboard-page .attendance-workshop-summary strong,
.analysis-dashboard-page .attendance-session-row > strong,
.analysis-dashboard-page .attendance-professional-profile-head strong,
.analysis-dashboard-page .attendance-ranking-item > strong,
.analysis-dashboard-page .attendance-bar-row-head span {
  color: var(--analysis-text);
}

.analysis-dashboard-page .attendance-findings-card span,
.analysis-dashboard-page .attendance-zero-alert-card span {
  color: var(--analysis-orange);
}

.analysis-dashboard-page .attendance-findings-tags span {
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffd283;
  background: rgba(255, 255, 255, 0.07);
}

.analysis-dashboard-page .line-chart-bg {
  fill: rgba(42, 16, 10, 0.72);
  stroke: rgba(255, 255, 255, 0.08);
}

.analysis-dashboard-page .line-chart-grid {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-dasharray: 5 9;
}

.analysis-dashboard-page .line-chart-baseline {
  stroke: rgba(255, 255, 255, 0.2);
}

.analysis-dashboard-page .line-chart-axis,
.analysis-dashboard-page .line-chart-highlight-value,
.analysis-dashboard-page .line-chart-legend span {
  fill: var(--analysis-muted);
  color: var(--analysis-muted);
}

.analysis-dashboard-page .line-chart-axis-title,
.analysis-dashboard-page .line-chart-highlight-label {
  fill: #ffd283;
}

.analysis-dashboard-page .line-chart-line {
  stroke-width: 5.4;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}

.analysis-dashboard-page .line-chart-area {
  opacity: 0.18;
}

.analysis-dashboard-page .line-chart-point {
  stroke: rgba(33, 8, 1, 0.92);
  stroke-width: 3.2;
}

.analysis-dashboard-page .line-chart-end-label {
  stroke: rgba(33, 8, 1, 0.9);
  stroke-width: 5px;
}

.analysis-dashboard-page .line-chart-highlight-box {
  fill: rgba(47, 18, 12, 0.92);
  stroke: rgba(255, 255, 255, 0.1);
}

.analysis-dashboard-page .line-chart-highlight line {
  stroke: rgba(255, 255, 255, 0.2);
}

.analysis-dashboard-page .line-chart-highlight circle,
.analysis-dashboard-page .line-chart-selected-point {
  fill: rgba(255, 155, 61, 0.16);
  stroke: var(--analysis-orange);
}

.analysis-dashboard-page .attendance-bar-track,
.analysis-dashboard-page .attendance-mini-bar,
.analysis-dashboard-page .attendance-session-bar,
.analysis-dashboard-page .attendance-period-detail-bar {
  background: rgba(255, 255, 255, 0.1);
}

.analysis-dashboard-page .attendance-bar-track span,
.analysis-dashboard-page .attendance-mini-bar span,
.analysis-dashboard-page .attendance-session-bar span,
.analysis-dashboard-page .attendance-period-detail-bar span {
  background: linear-gradient(90deg, var(--analysis-orange), #ff5a57);
}

.analysis-dashboard-page .attendance-bar-row.is-consejeria .attendance-bar-track span {
  background: linear-gradient(90deg, var(--analysis-green), var(--analysis-cyan));
}

.analysis-dashboard-page .attendance-bar-row.is-workshop .attendance-bar-track span {
  background: linear-gradient(90deg, var(--analysis-purple), var(--analysis-orange));
}

.analysis-dashboard-page .attendance-rank-number {
  color: #2a1009;
  background: linear-gradient(135deg, #ffd26b, var(--analysis-orange));
}

.analysis-dashboard-page .attendance-table th {
  color: #ffd283;
  background: rgba(30, 9, 5, 0.96);
}

.analysis-dashboard-page .attendance-table th,
.analysis-dashboard-page .attendance-table td {
  border-bottom-color: rgba(255, 255, 255, 0.075);
}

.analysis-dashboard-page .attendance-table tr.is-highlight td,
.analysis-dashboard-page .attendance-table tr.is-low td {
  background: rgba(255, 155, 61, 0.09);
}

.analysis-dashboard-page .attendance-zero-alert-card.is-clear {
  background:
    radial-gradient(circle at 96% 10%, rgba(99, 214, 110, 0.16), transparent 30%),
    var(--analysis-card);
}

.analysis-dashboard-page .attendance-professional-status {
  border-color: rgba(99, 214, 110, 0.28);
  color: #b8ffd2;
  background: rgba(99, 214, 110, 0.1);
}

.analysis-dashboard-page .attendance-professional-status.is-zero {
  border-color: rgba(255, 155, 61, 0.28);
  color: #ffd283;
  background: rgba(255, 155, 61, 0.11);
}

.analysis-dashboard-page .empty-state,
.analysis-dashboard-page .attendance-alert-empty {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--analysis-muted);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1180px) {
  .analysis-dashboard-page .attendance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .analysis-dashboard-page .app {
    padding-inline: 14px;
    padding-bottom: 118px;
  }

  .analysis-dashboard-page .analysis-hero {
    min-height: 154px;
    padding-top: 30px;
  }

  .analysis-dashboard-page .hero-side {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .analysis-dashboard-page .analysis-jump-nav {
    position: fixed;
    inset: auto 14px 14px;
    top: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 34px;
    background: rgba(44, 17, 12, 0.82);
  }

  .analysis-dashboard-page .analysis-jump-link {
    min-height: 58px;
    padding: 8px;
    font-size: 0.68rem;
    line-height: 1.08;
  }

  .analysis-dashboard-page .analysis-section {
    padding: 16px;
    border-radius: 30px;
  }

  .analysis-dashboard-page .attendance-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-dashboard-page .attendance-summary-card {
    min-height: 168px;
    padding: 16px;
    border-radius: 26px;
  }

  .analysis-dashboard-page .attendance-summary-card.is-total {
    grid-column: 1 / -1;
  }

  .analysis-dashboard-page .attendance-summary-card strong {
    font-size: clamp(2rem, 13vw, 4.7rem);
  }

  .analysis-dashboard-page .attendance-summary-spark {
    height: 42px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app {
    width: 100%;
    margin: 0;
    gap: 8px;
  }

  .print-header {
    display: flex !important;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    padding: 0 0 8px;
    border-bottom: 2px solid #cfcfcf;
    margin-bottom: 8px;
  }

  .hero,
  .admin-grid {
    display: none !important;
  }

  .schedule-panel {
    background: #fff;
    box-shadow: none;
    border: none;
    border-radius: 0;
    break-inside: avoid;
    padding: 0;
  }

  .panel-header {
    margin-bottom: 8px;
  }

  .room-legend {
    margin-bottom: 10px;
  }

  .room-legend-item,
  .room-badge {
    border: 1px solid #bcbcbc;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .day-room-card {
    box-shadow: none;
    border: 1px solid #9f9f9f;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .day-tab {
    display: none !important;
  }

  .free-selection-bar {
    display: none !important;
  }

  .day-layout {
    display: block;
  }

  .day-hour-rail {
    display: none !important;
  }

  .day-room-time,
  .day-room-title,
  .day-room-meta {
    color: inherit;
  }

  .room-delete-button {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .day-layout {
    grid-template-columns: 1fr;
  }

  .day-hour-rail {
    position: static;
  }
}

.day-layout {
  --slot-height: 36px;
  --slot-gap: 6px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.day-hour-rail-list {
  display: grid;
  grid-template-rows: repeat(var(--timeline-slots, 20), var(--slot-height));
  row-gap: var(--slot-gap);
  position: relative;
}

.day-hour-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(63, 65, 62, 0.16);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.day-hour-item-end {
  align-items: center;
  padding-top: 0;
}

.day-board {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 14px;
  align-items: start;
}

.day-room-section {
  display: grid;
  gap: 10px;
  align-content: start;
}

.room-tabs {
  margin-top: -4px;
  margin-bottom: 16px;
}

.day-room-timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(var(--timeline-slots, 20), var(--slot-height));
  gap: var(--slot-gap);
  position: relative;
}

.day-slot-cell {
  grid-column: 1;
  border-radius: 10px;
  border: 1px solid rgba(63, 65, 62, 0.08);
  background: rgba(255, 255, 255, 0.36);
}

.day-slot-cell.is-hour-start {
  border-top: 2px solid rgba(63, 65, 62, 0.26);
  border-color: rgba(63, 65, 62, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.day-room-card {
  grid-column: 1;
  z-index: 1;
  min-height: 0;
  align-content: start;
  overflow: hidden;
  padding: 8px 10px;
  gap: 4px;
}

.day-room-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(29, 41, 57, 0.14);
}

.day-room-card-free:hover {
  background: linear-gradient(180deg, #e8ecef, #f5f7f8);
  border-color: rgba(95, 104, 112, 0.65);
  box-shadow: 0 0 0 2px rgba(95, 104, 112, 0.14), 0 10px 20px rgba(29, 41, 57, 0.1);
}

.day-room-card.is-short {
  padding: 5px 8px;
  gap: 2px;
}

.day-room-card.is-short .day-room-time {
  font-size: 0.68rem;
  line-height: 1.1;
}

.day-room-card.is-short .day-room-title {
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-room-card.is-medium {
  padding: 7px 9px;
}

.day-room-card.is-medium .day-room-time {
  font-size: 0.7rem;
}

.day-room-card.is-medium .day-room-title {
  font-size: 0.84rem;
}

.day-room-card.is-medium .day-room-meta {
  font-size: 0.72rem;
  line-height: 1.2;
}

.day-room-card.is-long {
  padding: 10px 11px;
}

.day-hour-item {
  border-top: 2px solid rgba(63, 65, 62, 0.22);
}

.day-room-time {
  font-size: 0.72rem;
  line-height: 1.1;
}

.day-room-title {
  font-size: 0.88rem;
  line-height: 1.15;
}

.day-room-meta {
  font-size: 0.75rem;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .day-layout {
    grid-template-columns: 1fr;
  }

  .day-hour-rail {
    display: none;
  }

  .day-board {
    grid-template-columns: 1fr;
  }
}

body.tv-salas-body .tv-salas-slide-controls {
  left: auto;
  right: 18px;
  bottom: 14px;
}

@keyframes tvSalasBusyBadgePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(239, 134, 0, 0.16), 0 6px 14px rgba(19, 57, 70, 0.08);
  }

  50% {
    opacity: 0.86;
    box-shadow: 0 0 0 3px rgba(239, 134, 0, 0.2), 0 8px 18px rgba(239, 134, 0, 0.18);
  }
}

/* Liquid Glass PAIEP: primera capa visual compartida */
:root {
  --glass-panel: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48));
  --glass-panel-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 251, 253, 0.62));
  --glass-card: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.42));
  --glass-warm: linear-gradient(145deg, rgba(255, 248, 238, 0.82), rgba(255, 255, 255, 0.5));
  --glass-cool: linear-gradient(145deg, rgba(236, 248, 253, 0.82), rgba(255, 255, 255, 0.5));
  --glass-green: linear-gradient(145deg, rgba(236, 250, 245, 0.82), rgba(255, 255, 255, 0.5));
  --glass-border: rgba(255, 255, 255, 0.62);
  --glass-border-soft: rgba(255, 255, 255, 0.38);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 26px 64px rgba(22, 85, 111, 0.16), 0 9px 24px rgba(239, 134, 0, 0.08);
  --glass-shadow-soft: 0 16px 36px rgba(22, 85, 111, 0.12);
  --glass-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.54);
}

body {
  font-family: "Aptos Display", "Aptos", "SF Pro Display", "Segoe UI Variable", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 7% 6%, rgba(239, 134, 0, 0.22), transparent 25%),
    radial-gradient(circle at 89% 10%, rgba(44, 151, 201, 0.22), transparent 26%),
    radial-gradient(circle at 8% 88%, rgba(58, 180, 156, 0.18), transparent 28%),
    radial-gradient(circle at 87% 82%, rgba(243, 179, 0, 0.14), transparent 25%),
    linear-gradient(135deg, #eaf3f7 0%, #fbf7ee 48%, #edf8f4 100%);
}

body:not(.tv-expanded-body):not(.tv-salas-body)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 28%, rgba(255, 255, 255, 0.2) 62%, transparent),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.45), transparent 34%);
  opacity: 0.62;
}

.app,
.tv-live-app {
  position: relative;
  z-index: 1;
}

.hero,
.controls,
.summary,
.schedule-panel,
.web-view-nav,
.web-featured-panel,
.web-week-board-shell,
.room-form-panel,
.room-card,
.room-modal-card,
.room-empty-panel,
.room-timeline-corner,
.room-timeline-slot-head,
.room-timeline-room,
.room-timeline-cell,
.analysis-hero,
.analysis-panel,
.attendance-summary-card,
.attendance-monitor-card,
.attendance-professional-profile-card,
.workshop-modal-card,
.tv-live-banner,
.tv-live-panel,
.tv-week-board-shell,
.tv-week-board,
.tv-salas-hero,
.tv-salas-floor,
.tv-salas-external,
.tv-salas-shared-panel {
  background: var(--glass-panel);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
  backdrop-filter: blur(24px) saturate(1.22);
}

.hero,
.controls,
.summary,
.schedule-panel,
.web-view-nav,
.web-featured-panel,
.analysis-panel,
.attendance-summary-card,
.attendance-monitor-card,
.workshop-modal-card,
.tv-salas-hero,
.tv-salas-floor,
.tv-salas-external,
.tv-salas-shared-panel {
  position: relative;
  isolation: isolate;
}

.hero::before,
.controls::before,
.summary::before,
.schedule-panel::before,
.web-view-nav::before,
.web-featured-panel::before,
.analysis-panel::before,
.attendance-summary-card::before,
.attendance-monitor-card::before,
.workshop-modal-card::before,
.tv-salas-hero::before,
.tv-salas-floor::before,
.tv-salas-external::before,
.tv-salas-shared-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), transparent 34%, rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.48), transparent 28%);
  opacity: 0.74;
}

.hero h1,
.subject,
.web-featured-card h3,
.tv-card h3,
.tv-week-workshop h3,
.tv-salas-card-head h3,
.attendance-card-heading h3,
.attendance-professional-profile-head strong {
  text-shadow: var(--glass-text-shadow);
}

.controls input,
.controls select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.room-filter-stack input,
.room-filter-stack select,
.attendance-filters select,
.attendance-workshop-picker select,
.web-accessibility-panel,
.web-accessibility-trigger {
  background: rgba(255, 255, 255, 0.58);
  border-color: var(--glass-border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(22, 85, 111, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

.controls input:focus,
.controls select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.room-filter-stack input:focus,
.room-filter-stack select:focus,
.attendance-filters select:focus,
.attendance-workshop-picker select:focus {
  border-color: rgba(44, 151, 201, 0.45);
  box-shadow:
    0 0 0 4px rgba(44, 151, 201, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  outline: none;
}

.action-link,
.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(120deg, #1f8fbf 0%, #ef8600 100%);
  box-shadow: 0 16px 30px rgba(44, 151, 201, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.secondary-button,
.file-button,
.web-tip-link,
.web-tip-nav,
.tv-expanded-control,
.tv-salas-shared-control-button,
.tv-salas-slide-control,
.tv-salas-slide-toggle {
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 12px 28px rgba(22, 85, 111, 0.1), var(--glass-highlight);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
}

.action-link:hover,
.primary-button:hover,
.secondary-button:hover,
.file-button:hover,
.web-tip-link:hover,
.web-tip-nav:hover,
.tv-expanded-control:hover,
.tv-salas-shared-control-button:hover,
.tv-salas-slide-control:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(22, 85, 111, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.schedule-item,
.web-featured-card,
.web-tip-panel,
.room-activity,
.room-floating-activity,
.room-timeline-entry,
.admin-item,
.attendance-zero-alert-card,
.attendance-professional-profile-head,
.attendance-professional-profile-box,
.attendance-bar-row,
.attendance-ranking-item,
.attendance-table-wrap,
.line-chart-legend span,
.tv-card,
.tv-week-workshop,
.tv-qr-card,
.tv-salas-card,
.tv-salas-activity,
.tv-salas-result-card,
.tv-salas-plan-room,
.day-room-card {
  background: var(--glass-card);
  border-color: var(--glass-border-soft);
  box-shadow: var(--glass-shadow-soft), var(--glass-highlight);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
}

.schedule-item.active,
.tv-card.active,
.tv-salas-card.is-busy,
.attendance-bar-row.is-workshop,
.attendance-ranking-item.is-low {
  background:
    radial-gradient(circle at 92% 10%, rgba(239, 134, 0, 0.2), transparent 26%),
    var(--glass-warm);
}

.schedule-item.status-future,
.tv-card.status-future,
.web-featured-card,
.tv-salas-floor-second {
  background:
    radial-gradient(circle at 96% 6%, rgba(44, 151, 201, 0.14), transparent 28%),
    var(--glass-cool);
}

.tv-salas-card.is-free,
.attendance-zero-alert-card.is-clear,
.attendance-bar-row.is-consejeria {
  background:
    radial-gradient(circle at 94% 8%, rgba(58, 180, 156, 0.16), transparent 28%),
    var(--glass-green);
}

.schedule-item.status-suspended,
.tv-card.status-suspended {
  background:
    radial-gradient(circle at 94% 8%, rgba(190, 72, 34, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 239, 232, 0.82), rgba(255, 255, 255, 0.5));
}

/* Vista experimental de salas */
.rooms2-body {
  --rooms2-safe-inset: clamp(22px, 2.2vw, 36px);
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #10212a;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 193, 94, 0.28), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(51, 144, 164, 0.22), transparent 30%),
    linear-gradient(135deg, #edf4ef 0%, #f9f2e5 48%, #e5f0f2 100%);
  font-family: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
}

.rooms2-deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.rooms2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(2.2%) scale(0.992);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.rooms2-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.rooms2-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  width: 100vw;
  height: 100vh;
  padding: var(--rooms2-safe-inset);
  box-sizing: border-box;
}

.rooms2-floating-control {
  position: fixed;
  right: var(--rooms2-safe-inset);
  bottom: var(--rooms2-safe-inset);
  z-index: 20;
  width: clamp(44px, 4.8vw, 62px);
  height: clamp(44px, 4.8vw, 62px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(18, 45, 52, 0.28);
  box-shadow: 0 18px 38px rgba(14, 34, 40, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.rooms2-floating-control:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(18, 45, 52, 0.38);
}

.rooms2-floating-control svg {
  width: 52%;
  height: 52%;
  display: block;
}

.rooms2-resolution-control {
  position: fixed;
  left: var(--rooms2-safe-inset);
  bottom: var(--rooms2-safe-inset);
  z-index: 21;
  display: grid;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(18, 45, 52, 0.22);
  box-shadow: 0 14px 28px rgba(14, 34, 40, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  opacity: 0.18;
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.rooms2-resolution-control:hover,
.rooms2-resolution-control:focus-within {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(18, 45, 52, 0.42);
}

.rooms2-resolution-control span {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.rooms2-resolution-control select {
  width: 132px;
  border: 0;
  border-radius: 10px;
  padding: 6px 8px;
  color: #10212a;
  background: rgba(255, 255, 255, 0.84);
  font: 800 0.72rem/1 "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
  outline: none;
}

.rooms2-hero,
.rooms2-map-panel,
.rooms2-side-card,
.rooms2-emergency {
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 28px 70px rgba(33, 59, 65, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  backdrop-filter: blur(22px) saturate(1.22);
}

.rooms2-hero {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto auto;
  gap: clamp(10px, 1.4vw, 20px);
  align-items: center;
  min-height: clamp(70px, 9vw, 96px);
  padding: clamp(10px, 1.2vw, 16px) clamp(14px, 1.6vw, 24px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
}

.rooms2-brand {
  display: flex;
  gap: clamp(10px, 1.2vw, 16px);
  align-items: center;
  min-width: 0;
}

.rooms2-brand img {
  width: clamp(70px, 9vw, 112px);
  height: auto;
  object-fit: contain;
}

.rooms2-brand p,
.rooms2-map-head p,
.rooms2-side-kicker {
  margin: 0;
  color: #4d6a66;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rooms2-brand h1 {
  margin: 0;
  color: #10212a;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.rooms2-day-status {
  justify-self: end;
  padding: 13px 18px;
  border-radius: 999px;
  color: #0d4f4c;
  background: rgba(220, 252, 241, 0.86);
  font-size: clamp(0.9rem, 1.4vw, 1.28rem);
  font-weight: 900;
  white-space: nowrap;
}

.rooms2-day-status.is-suspended {
  color: #8b1e14;
  background: rgba(255, 225, 215, 0.92);
}

.rooms2-clock {
  justify-self: end;
  text-align: right;
}

.rooms2-clock strong {
  display: block;
  color: #10212a;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.rooms2-clock span {
  display: block;
  margin-top: 4px;
  color: #53635f;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  font-weight: 800;
}

.rooms2-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.72fr);
  gap: clamp(10px, 1.4vw, 18px);
  min-height: 0;
}

.rooms2-map-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  min-height: 0;
  padding: clamp(12px, 1.4vw, 20px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38)),
    repeating-linear-gradient(135deg, rgba(12, 50, 55, 0.035) 0 1px, transparent 1px 16px);
}

.rooms2-map-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.rooms2-map-head h2 {
  margin: 2px 0 0;
  color: #10212a;
  font-size: clamp(1.4rem, 2.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.rooms2-map-head > span {
  padding: 10px 14px;
  border-radius: 18px;
  color: #36524d;
  background: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 900;
  text-align: right;
}

.rooms2-floors {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  min-height: 0;
}

.rooms2-floor {
  display: grid;
  grid-template-columns: minmax(80px, 0.13fr) minmax(0, 1fr);
  gap: clamp(8px, 1vw, 14px);
  min-height: 0;
}

.rooms2-floor-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 22px;
  color: #17343a;
  background: rgba(255, 255, 255, 0.54);
}

.rooms2-floor-title span {
  color: #2d8b88;
  font-size: clamp(1.6rem, 3.4vw, 3.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.rooms2-floor-title h3 {
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.28rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.rooms2-floor-map {
  display: grid;
  position: relative;
  gap: clamp(8px, 1vw, 13px);
  min-height: 0;
  padding: clamp(9px, 1vw, 14px);
  border: 2px solid rgba(18, 57, 62, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.2)),
    rgba(236, 247, 241, 0.34);
}

.rooms2-floor-map--first {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}

.rooms2-floor-map--second {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}

.rooms2-room {
  min-width: 0;
  min-height: 0;
}

.rooms2-room-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: 100%;
  min-height: clamp(145px, 18vh, 205px);
  padding: clamp(10px, 1vw, 15px);
  border: 2px solid rgba(16, 33, 42, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
  overflow: hidden;
}

.rooms2-room-inner.is-busy {
  border-color: rgba(19, 111, 105, 0.35);
  background:
    radial-gradient(circle at 90% 10%, rgba(45, 139, 136, 0.22), transparent 34%),
    rgba(234, 255, 248, 0.78);
}

.rooms2-room-inner.is-suspended {
  border-color: rgba(190, 72, 34, 0.32);
  background:
    radial-gradient(circle at 90% 10%, rgba(190, 72, 34, 0.24), transparent 34%),
    rgba(255, 239, 233, 0.84);
}

.rooms2-room-inner.has-next {
  border-color: rgba(225, 137, 36, 0.28);
  background:
    radial-gradient(circle at 90% 10%, rgba(243, 169, 63, 0.24), transparent 34%),
    rgba(255, 249, 233, 0.82);
}

.rooms2-room-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
}

.rooms2-room-top span {
  color: #416561;
  font-size: clamp(0.76rem, 1vw, 0.95rem);
  font-weight: 900;
  text-transform: uppercase;
}

.rooms2-room-top strong {
  color: #10212a;
  font-size: clamp(1.45rem, 3vw, 3rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.rooms2-room-top em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: #143a38;
  background: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rooms2-room-free,
.rooms2-room-activity {
  min-height: 0;
  align-self: end;
}

.rooms2-room-free strong,
.rooms2-room-activity h4 {
  display: block;
  margin: 0;
  color: #10212a;
  font-size: clamp(1.05rem, 2vw, 2.05rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.rooms2-room-free p,
.rooms2-room-activity small {
  display: block;
  margin: 7px 0 0;
  color: #4d635f;
  font-size: clamp(0.76rem, 1.05vw, 0.98rem);
  font-weight: 800;
  line-height: 1.2;
}

.rooms2-room-activity p {
  margin: 0 0 6px;
  color: #9a4f19;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rooms2-room-activity h4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.rooms2-room-activity b {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #0c5652;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
}

.rooms2-corridor {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: clamp(34px, 4vh, 50px);
  border: 2px dashed rgba(32, 68, 72, 0.18);
  border-radius: 18px;
  color: #42615e;
  background: rgba(255, 255, 255, 0.38);
  font-weight: 900;
}

.rooms2-corridor span {
  font-size: 0.9rem;
  opacity: 0.78;
}

.rooms2-side-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(10px, 1.2vw, 16px);
  min-height: 0;
}

.rooms2-emergency,
.rooms2-side-card {
  border-radius: 26px;
  padding: clamp(12px, 1.4vw, 18px);
  overflow: hidden;
}

.rooms2-emergency {
  color: #812015;
  background:
    radial-gradient(circle at 92% 8%, rgba(190, 72, 34, 0.22), transparent 34%),
    rgba(255, 239, 232, 0.84);
}

.rooms2-emergency span {
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rooms2-emergency strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.rooms2-emergency p {
  margin: 8px 0 0;
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  font-weight: 800;
  line-height: 1.22;
}

.rooms2-side-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  background: rgba(255, 255, 255, 0.56);
}

.rooms2-side-card h2 {
  margin: 2px 0 10px;
  color: #10212a;
  font-size: clamp(1.12rem, 1.8vw, 1.65rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.rooms2-mini-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.rooms2-mini-item,
.rooms2-mini-empty {
  padding: 10px 11px;
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.rooms2-mini-item.is-suspended {
  background: rgba(255, 237, 230, 0.86);
}

.rooms2-mini-item span {
  display: block;
  color: #a45b19;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rooms2-mini-item strong {
  display: -webkit-box;
  margin-top: 3px;
  color: #10212a;
  font-size: clamp(0.92rem, 1.16vw, 1.08rem);
  line-height: 1.05;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.rooms2-mini-item p {
  margin: 4px 0 0;
  color: #526b66;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.rooms2-mini-empty {
  color: #526b66;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.rooms2-pulse-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  width: 100vw;
  height: 100vh;
  padding: var(--rooms2-safe-inset);
  box-sizing: border-box;
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 134, 0, 0.22), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(44, 151, 201, 0.2), transparent 34%),
    linear-gradient(135deg, #eff6f4 0%, #fbf0dd 52%, #e3f0f5 100%);
}

.rooms2-pulse-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.rooms2-pulse-hero .rooms2-brand h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}

.rooms2-pulse-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.78fr);
  gap: clamp(12px, 1.5vw, 22px);
  min-height: 0;
}

.rooms2-pulse-media-card,
.rooms2-pulse-stats {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 28px 70px rgba(33, 59, 65, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  backdrop-filter: blur(22px) saturate(1.22);
  overflow: hidden;
}

.rooms2-pulse-media-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: clamp(10px, 1.2vw, 16px);
}

.rooms2-pulse-media {
  min-height: 0;
  border-radius: 24px;
}

.rooms2-pulse-stats {
  display: grid;
  align-content: stretch;
  gap: clamp(10px, 1.1vw, 16px);
  padding: clamp(16px, 1.8vw, 28px);
}

.rooms2-pulse-stats .eyebrow {
  margin: 0;
  color: #4d6a66;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rooms2-pulse-stats h2,
.rooms2-pulse-stats .tv-salas-top-workshops h3 {
  margin: 0;
  color: #10212a;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.rooms2-pulse-stats h2 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}

.rooms2-pulse-stats .tv-salas-attention-summary {
  gap: clamp(8px, 1vw, 12px);
}

.rooms2-pulse-stats .tv-salas-attention-stat {
  padding: clamp(12px, 1.35vw, 18px);
  border-radius: 22px;
}

.rooms2-pulse-stats .tv-salas-attention-stat span {
  font-size: clamp(0.65rem, 0.9vw, 0.82rem);
}

.rooms2-pulse-stats .tv-salas-attention-stat strong {
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
}

.rooms2-pulse-stats .tv-salas-attention-chart-wrap {
  padding: clamp(10px, 1.1vw, 15px);
  border-radius: 22px;
}

.rooms2-pulse-stats .tv-salas-attention-chart-head {
  font-size: clamp(0.68rem, 0.9vw, 0.84rem);
}

.rooms2-pulse-stats .tv-salas-attention-chart-head strong {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.rooms2-pulse-stats .tv-salas-attention-line-chart {
  height: clamp(72px, 10vh, 110px);
  margin-top: 6px;
}

.rooms2-pulse-stats .tv-salas-attention-peaks {
  margin-top: 5px;
  font-size: clamp(0.66rem, 0.9vw, 0.82rem);
}

.rooms2-pulse-stats .tv-salas-top-workshops {
  gap: 8px;
}

.rooms2-pulse-stats .tv-salas-top-workshops h3 {
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.rooms2-pulse-stats .tv-salas-top-workshop {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
}

.rooms2-pulse-stats .tv-salas-top-workshop span {
  width: 22px;
  height: 22px;
  font-size: 0.78rem;
}

.rooms2-pulse-stats .tv-salas-top-workshop strong {
  font-size: clamp(0.82rem, 1vw, 1rem);
}

.rooms2-pulse-stats .tv-salas-top-workshop em {
  font-size: clamp(0.9rem, 1.1vw, 1.08rem);
}

.rooms2-legacy-render-targets {
  display: none;
}

.rooms2-body.rooms2-resolution-720 {
  --rooms2-safe-inset: 24px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-shell,
.rooms2-body.rooms2-resolution-720 .rooms2-pulse-shell {
  gap: 8px;
  padding: var(--rooms2-safe-inset);
}

.rooms2-body.rooms2-resolution-720 .rooms2-hero {
  grid-template-columns: minmax(210px, 1fr) auto auto;
  gap: 8px;
  min-height: 58px;
  padding: 7px 12px;
  border-radius: 20px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-brand {
  gap: 8px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-brand img {
  width: 56px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-brand p,
.rooms2-body.rooms2-resolution-720 .rooms2-map-head p,
.rooms2-body.rooms2-resolution-720 .rooms2-side-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.rooms2-body.rooms2-resolution-720 .rooms2-brand h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.rooms2-body.rooms2-resolution-720 .rooms2-day-status {
  padding: 8px 11px;
  font-size: 0.78rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-clock strong {
  font-size: clamp(1.9rem, 4.4vw, 3.25rem);
}

.rooms2-body.rooms2-resolution-720 .rooms2-clock span {
  margin-top: 2px;
  font-size: 0.7rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-stage {
  grid-template-columns: minmax(0, 1.72fr) minmax(250px, 0.56fr);
  gap: 8px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-map-panel {
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-map-head {
  align-items: center;
  gap: 8px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-map-head h2 {
  font-size: clamp(1.2rem, 2.35vw, 2rem);
}

.rooms2-body.rooms2-resolution-720 .rooms2-map-head > span {
  max-width: 178px;
  padding: 7px 9px;
  border-radius: 14px;
  font-size: 0.68rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-floors {
  gap: 8px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-floor {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 7px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-floor-title {
  gap: 5px;
  padding: 8px 6px;
  border-radius: 16px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-floor-title span {
  font-size: 1.55rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-floor-title h3 {
  font-size: 0.82rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-floor-map {
  gap: 7px;
  padding: 7px;
  border-width: 1px;
  border-radius: 18px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-inner {
  gap: 5px;
  min-height: 112px;
  padding: 7px;
  border-radius: 17px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-top {
  gap: 3px 6px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-top span {
  font-size: 0.6rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-top strong {
  font-size: clamp(1.12rem, 2.35vw, 2rem);
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-top em {
  padding: 5px 7px;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-free strong,
.rooms2-body.rooms2-resolution-720 .rooms2-room-activity h4 {
  font-size: clamp(0.94rem, 1.55vw, 1.45rem);
  line-height: 1.04;
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-activity h4 {
  -webkit-line-clamp: 3;
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-free p,
.rooms2-body.rooms2-resolution-720 .rooms2-room-activity small {
  margin-top: 4px;
  font-size: 0.64rem;
  line-height: 1.14;
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-activity p {
  margin-bottom: 4px;
  font-size: 0.62rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-room-activity b {
  margin-top: 4px;
  padding: 4px 6px;
  font-size: 0.62rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-corridor {
  gap: 6px;
  min-height: 24px;
  border-radius: 12px;
  font-size: 0.72rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-corridor span {
  font-size: 0.66rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-side-panel {
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.75fr);
  gap: 8px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-emergency,
.rooms2-body.rooms2-resolution-720 .rooms2-side-card {
  padding: 8px;
  border-radius: 18px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-emergency span {
  font-size: 0.58rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-emergency strong {
  margin-top: 2px;
  font-size: 1rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-emergency p {
  margin-top: 4px;
  font-size: 0.66rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-side-card h2 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-mini-list {
  gap: 5px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-mini-item,
.rooms2-body.rooms2-resolution-720 .rooms2-mini-empty {
  padding: 6px 7px;
  border-radius: 12px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-mini-item span {
  font-size: 0.56rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-mini-item strong {
  font-size: 0.76rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-mini-item p,
.rooms2-body.rooms2-resolution-720 .rooms2-mini-empty {
  font-size: 0.62rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stage {
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.7fr);
  gap: 8px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-media-card {
  gap: 6px;
  padding: 7px;
  border-radius: 22px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-media {
  border-radius: 18px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-panel {
  gap: 4px;
  padding: 7px 9px;
  border-radius: 16px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-panel--hero {
  gap: 7px;
  padding: 10px;
  border-radius: 18px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-head p {
  font-size: 0.58rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-status {
  padding: 4px 6px;
  font-size: 0.54rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-main strong {
  font-size: 0.86rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-main em,
.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-results {
  font-size: 0.6rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-hero-copy {
  gap: 8px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-hero-copy p {
  margin-bottom: 4px;
  font-size: 0.62rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-hero-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 0.94;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-hero-copy .tv-salas-worldcup-status {
  padding: 6px 8px;
  font-size: 0.58rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-hero-time {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.78rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-hero-grid {
  gap: 7px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-hero-grid section {
  gap: 5px;
  padding: 7px;
  border-radius: 14px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-hero-grid h3 {
  font-size: 0.58rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-fixture-grid,
.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-result-grid {
  gap: 4px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-fixture-card,
.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-result-card {
  padding: 5px 6px;
  border-radius: 10px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-fixture-card {
  gap: 6px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-fixture-card div {
  gap: 4px;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-fixture-card strong,
.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-fixture-card span,
.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-result-card span {
  font-size: 0.58rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-fixture-card small {
  font-size: 0.48rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-result-card strong {
  font-size: 0.72rem;
}

.rooms2-body.rooms2-resolution-720 .tv-salas-worldcup-empty {
  padding: 6px 7px;
  font-size: 0.58rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats {
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .eyebrow {
  font-size: 0.62rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats h2 {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-attention-summary {
  gap: 6px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-attention-stat {
  padding: 8px;
  border-radius: 15px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-attention-stat span {
  font-size: 0.58rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-attention-stat strong {
  font-size: clamp(1.65rem, 3.4vw, 2.8rem);
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-attention-chart-wrap {
  padding: 8px;
  border-radius: 16px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-attention-line-chart {
  height: 54px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-attention-chart-head,
.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-attention-peaks {
  font-size: 0.6rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-attention-chart-head strong {
  font-size: 1rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-top-workshops {
  gap: 5px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-top-workshops h3 {
  font-size: 1rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-top-workshop {
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 12px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-top-workshop span {
  width: 17px;
  height: 17px;
  font-size: 0.62rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-top-workshop strong {
  font-size: 0.68rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-pulse-stats .tv-salas-top-workshop em {
  font-size: 0.72rem;
}

.rooms2-body.rooms2-resolution-720 .rooms2-floating-control {
  right: var(--rooms2-safe-inset);
  bottom: var(--rooms2-safe-inset);
  width: 44px;
  height: 44px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-resolution-control {
  left: var(--rooms2-safe-inset);
  bottom: var(--rooms2-safe-inset);
  padding: 5px 6px;
}

.rooms2-body.rooms2-resolution-720 .rooms2-resolution-control select {
  width: 118px;
  padding: 5px 7px;
  font-size: 0.66rem;
}

@media (max-width: 980px) {
  .rooms2-body {
    overflow: auto;
  }

  .rooms2-shell {
    height: auto;
    min-height: 100vh;
  }

  .rooms2-hero,
  .rooms2-stage,
  .rooms2-floor {
    grid-template-columns: 1fr;
  }

  .rooms2-day-status,
  .rooms2-clock {
    justify-self: stretch;
    text-align: left;
  }

  .rooms2-side-panel {
    grid-template-rows: none;
  }

  .rooms2-pulse-stage {
    grid-template-columns: 1fr;
  }
}

.web-tip-panel {
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 16%, rgba(44, 151, 201, 0.18), transparent 32%),
    radial-gradient(circle at 92% 72%, rgba(239, 134, 0, 0.18), transparent 30%),
    var(--glass-panel-strong);
}

.web-tip-panel::before {
  opacity: 0.36;
}

.web-tip-panel::after {
  opacity: 0.52;
  filter: blur(2px);
}

.web-view-nav-link.is-active,
.web-view-nav-link:hover,
.web-view-nav-link:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 32%),
    linear-gradient(120deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 26px rgba(44, 151, 201, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tv-expanded-body {
  background:
    radial-gradient(circle at 8% 12%, rgba(239, 134, 0, 0.26), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(44, 151, 201, 0.26), transparent 30%),
    linear-gradient(135deg, #eaf3f7 0%, #f7fbfa 48%, #eef6f3 100%);
}

.tv-expanded-controls,
.tv-expanded-page-indicator,
.tv-expanded-countdown,
.tv-expanded-ticker {
  background: rgba(13, 32, 43, 0.42);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 34px rgba(3, 13, 19, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.tv-salas-body,
.tv-salas-body::before {
  background:
    radial-gradient(circle at 8% 7%, rgba(239, 134, 0, 0.22), transparent 24%),
    radial-gradient(circle at 92% 14%, rgba(44, 151, 201, 0.24), transparent 30%),
    radial-gradient(circle at 50% 96%, rgba(58, 180, 156, 0.16), transparent 28%),
    linear-gradient(135deg, #e8f2f7 0%, #faf7ef 48%, #edf8f4 100%);
}

.tv-salas-floor-first {
  background:
    radial-gradient(circle at 92% 8%, rgba(239, 134, 0, 0.18), transparent 28%),
    var(--glass-warm);
}

.tv-salas-clock,
.tv-salas-status,
.tv-salas-shared-placeholder,
.tv-salas-shared-info,
.tv-salas-shared-list li {
  background: rgba(255, 255, 255, 0.54);
  border-color: var(--glass-border-soft);
  box-shadow: var(--glass-highlight);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.tv-salas-shared-media {
  border-color: rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(9, 24, 34, 0.94), rgba(18, 43, 54, 0.88));
  box-shadow: 0 20px 44px rgba(9, 24, 34, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.tv-salas-result-number {
  background: linear-gradient(120deg, #16556f, #ef8600);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.web-accessibility-invert {
  --glass-panel: linear-gradient(145deg, rgba(13, 18, 24, 0.95), rgba(17, 24, 31, 0.88));
  --glass-panel-strong: linear-gradient(145deg, rgba(15, 22, 30, 0.98), rgba(18, 26, 34, 0.92));
  --glass-card: linear-gradient(145deg, rgba(16, 23, 31, 0.94), rgba(22, 30, 39, 0.88));
  --glass-warm: linear-gradient(145deg, rgba(53, 36, 18, 0.95), rgba(24, 28, 34, 0.9));
  --glass-cool: linear-gradient(145deg, rgba(12, 37, 50, 0.95), rgba(24, 28, 34, 0.9));
  --glass-green: linear-gradient(145deg, rgba(14, 45, 38, 0.95), rgba(24, 28, 34, 0.9));
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-soft: rgba(255, 255, 255, 0.12);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
  --glass-shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.3);
  --glass-text-shadow: none;
}

body.web-accessibility-invert .hero,
body.web-accessibility-invert .controls,
body.web-accessibility-invert .summary,
body.web-accessibility-invert .schedule-panel,
body.web-accessibility-invert .web-view-nav,
body.web-accessibility-invert .web-featured-panel,
body.web-accessibility-invert .web-week-board-shell,
body.web-accessibility-invert .workshop-modal-card,
body.web-accessibility-invert .schedule-item,
body.web-accessibility-invert .web-featured-card,
body.web-accessibility-invert .web-tip-panel,
body.web-accessibility-invert .attendance-summary-card,
body.web-accessibility-invert .attendance-monitor-card,
body.web-accessibility-invert .attendance-professional-profile-card,
body.web-accessibility-invert .attendance-bar-row,
body.web-accessibility-invert .attendance-ranking-item,
body.web-accessibility-invert .attendance-table-wrap,
body.web-accessibility-invert .room-card,
body.web-accessibility-invert .room-timeline-room,
body.web-accessibility-invert .room-timeline-entry {
  color: var(--text);
  background: var(--glass-card);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.web-accessibility-contrast::before,
body.web-accessibility-reduce-motion::before {
  display: none;
}

body.web-accessibility-contrast .hero,
body.web-accessibility-contrast .controls,
body.web-accessibility-contrast .summary,
body.web-accessibility-contrast .schedule-panel,
body.web-accessibility-contrast .web-view-nav,
body.web-accessibility-contrast .web-featured-panel,
body.web-accessibility-contrast .web-week-board-shell,
body.web-accessibility-contrast .workshop-modal-card,
body.web-accessibility-contrast .attendance-summary-card,
body.web-accessibility-contrast .attendance-monitor-card,
body.web-accessibility-contrast .tv-salas-hero,
body.web-accessibility-contrast .tv-salas-floor,
body.web-accessibility-contrast .tv-salas-external,
body.web-accessibility-contrast .tv-salas-shared-panel {
  background: #ffffff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Liquid Glass PAIEP: ajuste fino de botones */
.action-link,
.primary-button,
.secondary-button,
.file-button {
  min-height: 44px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}

.action-link,
.primary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 94% 12%, rgba(239, 134, 0, 0.34), transparent 26%),
    linear-gradient(135deg, #167f9e 0%, #116b7d 58%, #0d5c70 100%);
  box-shadow:
    0 14px 26px rgba(22, 85, 111, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.secondary-button,
.file-button,
.web-tip-link {
  color: #344149;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    0 10px 22px rgba(22, 85, 111, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.action-link:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 94% 12%, rgba(239, 134, 0, 0.42), transparent 28%),
    linear-gradient(135deg, #198aad 0%, #127789 58%, #0e667a 100%);
  box-shadow:
    0 18px 32px rgba(22, 85, 111, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.secondary-button:hover,
.file-button:hover,
.web-tip-link:hover,
.secondary-button:focus-visible,
.file-button:focus-visible,
.web-tip-link:focus-visible {
  color: #16556f;
  transform: translateY(-1px);
  border-color: rgba(44, 151, 201, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.66);
  box-shadow:
    0 14px 26px rgba(22, 85, 111, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.web-view-nav {
  padding: 8px;
  gap: 6px;
}

.web-view-nav-link {
  border-radius: 999px;
  color: #38464f;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.web-view-nav-link.is-active,
.web-view-nav-link:hover,
.web-view-nav-link:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 94% 12%, rgba(239, 134, 0, 0.34), transparent 28%),
    linear-gradient(135deg, #177f9f 0%, #126f82 58%, #0e6074 100%);
  box-shadow:
    0 12px 24px rgba(22, 85, 111, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.web-tip-nav {
  width: 36px;
  height: 36px;
  color: #344149;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 8px 18px rgba(22, 85, 111, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.web-tip-nav:hover,
.web-tip-nav:focus-visible {
  color: #16556f;
  background: rgba(255, 255, 255, 0.82);
}

.web-tip-link {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.tv-expanded-control,
.tv-salas-shared-control-button,
.tv-salas-slide-control,
.tv-salas-slide-toggle {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 42, 54, 0.44);
  box-shadow:
    0 10px 22px rgba(3, 13, 19, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tv-expanded-control:hover,
.tv-salas-shared-control-button:hover,
.tv-salas-slide-control:hover,
.tv-salas-slide-toggle:hover,
.tv-expanded-control:focus-visible,
.tv-salas-shared-control-button:focus-visible,
.tv-salas-slide-control:focus-visible,
.tv-salas-slide-toggle:focus-visible {
  color: #ffffff;
  background: rgba(20, 42, 54, 0.58);
  transform: translateY(-1px);
}

.tv-salas-shared-control-button {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.32);
}

body.web-accessibility-invert .action-link,
body.web-accessibility-invert .primary-button,
body.web-accessibility-invert .web-view-nav-link.is-active,
body.web-accessibility-invert .web-view-nav-link:hover,
body.web-accessibility-invert .web-view-nav-link:focus-visible {
  color: #081018;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

body.web-accessibility-invert .secondary-button,
body.web-accessibility-invert .file-button,
body.web-accessibility-invert .web-tip-link,
body.web-accessibility-invert .web-tip-nav {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   Juegos PAIEP
   -------------------------------------------------------------------------- */

.web-nav-extra-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.web-game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #344149;
  font-weight: 800;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 26px rgba(22, 85, 111, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
}

.web-game-link:hover,
.web-game-link:focus-visible {
  color: #16556f;
  transform: translateY(-1px);
  border-color: rgba(44, 151, 201, 0.26);
  outline: none;
}

.paiep-games-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(239, 134, 0, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(44, 151, 201, 0.24), transparent 28%),
    linear-gradient(135deg, #f6fbfe 0%, #fff8ec 54%, #edf8f7 100%);
}

.paiep-games-app {
  max-width: 1180px;
}

.paiep-games-nav {
  margin-bottom: 18px;
}

.paiep-games-hero,
.paiep-game-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 58px rgba(22, 85, 111, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
}

.paiep-games-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
}

.paiep-games-hero h1 {
  margin: 4px 0 10px;
  color: #123149;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.paiep-games-hero p {
  max-width: 720px;
  margin: 0;
  color: #4b5d68;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.paiep-games-logo {
  width: clamp(86px, 12vw, 142px);
  height: auto;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(15, 94, 134, 0.12);
}

.paiep-game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.paiep-game-tab {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(44, 151, 201, 0.18);
  border-radius: 999px;
  color: #30505f;
  font: inherit;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 24px rgba(22, 85, 111, 0.08);
  cursor: pointer;
}

.paiep-game-tab.is-active,
.paiep-game-tab:hover,
.paiep-game-tab:focus-visible {
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(239, 134, 0, 0.42), transparent 26%),
    linear-gradient(135deg, #167f9e, #0e6074);
  outline: none;
}

.paiep-game-panel {
  display: none;
  padding: clamp(18px, 3vw, 32px);
}

.paiep-game-panel.is-active {
  display: block;
}

.paiep-game-copy {
  margin-bottom: 18px;
}

.paiep-game-copy h2 {
  margin: 4px 0 8px;
  color: #123149;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: -0.055em;
}

.paiep-game-copy p {
  margin: 0;
  color: #536874;
}

.paiep-snake-layout,
.paiep-memory-layout,
.paiep-reflex-layout,
.paiep-runner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
  align-items: start;
}

.paiep-memory-layout {
  grid-template-columns: 230px minmax(0, 1fr);
}

.paiep-reflex-layout,
.paiep-runner-layout {
  grid-template-columns: minmax(0, 1fr) 230px;
}

.paiep-snake-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.paiep-reflex-stage {
  position: relative;
  min-height: clamp(340px, 48vw, 520px);
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 18%, rgba(239, 134, 0, 0.20), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(44, 151, 201, 0.22), transparent 24%),
    linear-gradient(135deg, #f5fbff, #fff6e4);
  box-shadow: 0 18px 46px rgba(22, 85, 111, 0.16);
}

.paiep-runner-stage {
  position: relative;
  display: grid;
  gap: 12px;
}

#paiep-runner-canvas {
  width: 100%;
  height: auto;
  min-height: 300px;
  border: 10px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  background: linear-gradient(135deg, #f5fbff, #fff6e4);
  box-shadow: 0 18px 46px rgba(22, 85, 111, 0.16);
  cursor: pointer;
  touch-action: manipulation;
}

.paiep-runner-stage .paiep-game-message {
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  color: #254654;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.paiep-reflex-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(14, 96, 116, 0.18);
  border-radius: 22px;
  pointer-events: none;
}

.paiep-reflex-target {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: clamp(78px, 12vw, 112px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.56), transparent 28%),
    linear-gradient(135deg, #ef8600, #0f7f9a);
  box-shadow:
    0 18px 34px rgba(15, 94, 134, 0.24),
    inset 0 0 0 5px rgba(255, 255, 255, 0.28);
  font-weight: 1000;
  letter-spacing: -0.045em;
  cursor: pointer;
  transition:
    transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1),
    scale 140ms ease,
    filter 140ms ease;
}

.paiep-reflex-target:hover,
.paiep-reflex-target:focus-visible {
  filter: brightness(1.06);
  scale: 1.04;
  outline: none;
}

.paiep-reflex-target.is-running {
  animation: paiep-reflex-pulse 820ms ease-in-out infinite;
}

.paiep-reflex-stage .paiep-game-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 18px;
  color: #254654;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

@keyframes paiep-reflex-pulse {
  0%,
  100% {
    box-shadow:
      0 18px 34px rgba(15, 94, 134, 0.24),
      inset 0 0 0 5px rgba(255, 255, 255, 0.28);
  }

  50% {
    box-shadow:
      0 22px 42px rgba(239, 134, 0, 0.30),
      inset 0 0 0 8px rgba(255, 255, 255, 0.36);
  }
}

#paiep-snake-canvas {
  width: min(100%, 520px);
  height: auto;
  border: 10px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  box-shadow: 0 20px 42px rgba(15, 94, 134, 0.18);
  background: #f3fbff;
}

.paiep-game-message {
  min-height: 1.4em;
  margin: 0;
  color: #4a6470;
  font-weight: 800;
  text-align: center;
}

.paiep-game-score-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(44, 151, 201, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 38px rgba(22, 85, 111, 0.1);
}

.paiep-game-score-card span {
  color: #657783;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.paiep-game-score-card strong {
  color: #123149;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.9;
}

.paiep-snake-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 10px;
  max-width: 430px;
  margin: 18px auto 0;
}

.paiep-snake-controls button {
  min-height: 48px;
  border: 1px solid rgba(44, 151, 201, 0.16);
  border-radius: 16px;
  color: #284b5d;
  font: inherit;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.paiep-snake-controls button[data-snake-dir="up"],
.paiep-snake-controls button[data-snake-dir="down"] {
  grid-column: 2;
}

.paiep-snake-controls button[data-snake-dir="left"] {
  grid-column: 1;
}

.paiep-snake-controls button[data-snake-dir="right"] {
  grid-column: 3;
}

.paiep-memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 12px;
}

.paiep-memory-card {
  position: relative;
  min-height: 112px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  font: inherit;
  font-weight: 950;
  letter-spacing: -0.03em;
  perspective: 800px;
  background: transparent;
  cursor: pointer;
}

.paiep-memory-card span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 22px;
  backface-visibility: hidden;
  transition: transform 0.28s ease;
  box-shadow: 0 16px 30px rgba(22, 85, 111, 0.14);
}

.paiep-memory-card-front {
  background:
    radial-gradient(circle at 90% 12%, rgba(239, 134, 0, 0.46), transparent 28%),
    linear-gradient(135deg, #0f5e86, #123149);
}

.paiep-memory-card-back {
  color: #123149;
  transform: rotateY(180deg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 216, 0.86)),
    rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(239, 134, 0, 0.26);
}

.paiep-memory-card.is-open .paiep-memory-card-front,
.paiep-memory-card.is-found .paiep-memory-card-front {
  transform: rotateY(180deg);
}

.paiep-memory-card.is-open .paiep-memory-card-back,
.paiep-memory-card.is-found .paiep-memory-card-back {
  transform: rotateY(0deg);
}

.paiep-memory-card.is-found .paiep-memory-card-back {
  background:
    linear-gradient(135deg, rgba(228, 249, 239, 0.94), rgba(217, 244, 255, 0.9)),
    rgba(255, 255, 255, 0.84);
  border-color: rgba(28, 130, 86, 0.24);
}

body.web-accessibility-invert .web-game-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 900px) {
  .web-nav-extra-actions {
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .web-game-link,
  .web-nav-extra-actions .web-nav-accessibility-slot {
    flex: 1 1 180px;
    width: auto;
  }

  .paiep-games-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .paiep-snake-layout,
  .paiep-memory-layout,
  .paiep-reflex-layout,
  .paiep-runner-layout {
    grid-template-columns: 1fr;
  }

  .paiep-game-score-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .paiep-game-score-card button {
    grid-column: span 2;
  }

  .paiep-memory-layout .paiep-game-score-card {
    order: 2;
  }

  .paiep-memory-board {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 520px) {
  .paiep-memory-card {
    min-height: 96px;
  }

  .paiep-snake-controls {
    grid-template-columns: repeat(3, minmax(56px, 1fr));
  }
}

/* Vista pantalla: controles flotantes translúcidos */
.tv-expanded-controls {
  left: 18px;
  bottom: 72px;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.tv-expanded-page-indicator,
.tv-expanded-countdown {
  min-width: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(18, 28, 34, 0.32);
  box-shadow:
    0 8px 18px rgba(4, 16, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
}

.tv-expanded-control {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(18, 28, 34, 0.3);
  box-shadow:
    0 8px 18px rgba(4, 16, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tv-expanded-control svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

.tv-expanded-control:hover,
.tv-expanded-control:focus-visible {
  color: #ffffff;
  background: rgba(18, 28, 34, 0.44);
  box-shadow:
    0 10px 20px rgba(4, 16, 23, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.tv-expanded-control[aria-pressed="true"] {
  background: rgba(239, 134, 0, 0.48);
  box-shadow:
    0 10px 20px rgba(128, 70, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* ANÁLISIS: separación clara por nivel de lectura */
.analysis-jump-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    0 16px 34px rgba(22, 85, 111, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
}

.analysis-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #344149;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.analysis-jump-link:hover,
.analysis-jump-link:focus-visible,
.analysis-jump-link.is-active {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 44%),
    radial-gradient(circle at 92% 12%, rgba(239, 134, 0, 0.32), transparent 28%),
    linear-gradient(135deg, #177f9f, #126f82 58%, #0e6074);
  box-shadow:
    0 12px 24px rgba(22, 85, 111, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.analysis-jump-link:hover,
.analysis-jump-link:focus-visible {
  transform: translateY(-1px);
}

.analysis-panel {
  display: grid;
  gap: 24px;
}

.analysis-section {
  scroll-margin-top: 96px;
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.5);
  box-shadow:
    0 20px 44px rgba(22, 85, 111, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.14);
  backdrop-filter: blur(20px) saturate(1.14);
}

.analysis-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  border-radius: inherit;
  background: var(--accent-2);
}

.analysis-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 38%);
}

.analysis-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 0 0 2px 8px;
}

.analysis-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  line-height: 1.05;
}

.analysis-section-head .muted {
  max-width: 780px;
  margin-top: 8px;
}

.analysis-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #16556f;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(22, 85, 111, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.analysis-section-general {
  background:
    radial-gradient(circle at 94% 10%, rgba(44, 151, 201, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(240, 250, 253, 0.72), rgba(255, 255, 255, 0.42));
}

.analysis-section-general::before {
  background: linear-gradient(180deg, #2c97c9, #16556f);
}

.analysis-section-professional {
  background:
    radial-gradient(circle at 94% 10%, rgba(58, 180, 156, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(238, 250, 246, 0.72), rgba(255, 255, 255, 0.42));
}

.analysis-section-professional::before {
  background: linear-gradient(180deg, #3ab49c, #178773);
}

.analysis-section-professional .analysis-section-badge {
  color: #178773;
}

.analysis-section-workshop {
  background:
    radial-gradient(circle at 94% 10%, rgba(239, 134, 0, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 246, 232, 0.72), rgba(255, 255, 255, 0.42));
}

.analysis-section-workshop::before {
  background: linear-gradient(180deg, #ef8600, #b35d00);
}

.analysis-section-workshop .analysis-section-badge {
  color: #b35d00;
}

.analysis-section .attendance-filters {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.analysis-section .attendance-monitor-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.54);
}

/* VISTA-SALAS: métricas compactas de atención */
.tv-salas-attention-panel {
  min-height: 0;
  gap: 5px;
}

.tv-salas-attention-panel h3 {
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
}

.tv-salas-attention-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tv-salas-attention-stat {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(22, 85, 111, 0.08);
}

.tv-salas-attention-stat span {
  display: block;
  color: #5a666d;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.tv-salas-attention-stat strong {
  display: block;
  margin-top: 3px;
  color: #16556f;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.tv-salas-attention-stat strong.is-updating,
.tv-salas-attention-chart-head strong.is-updating {
  animation: tvSalasAttentionNumberPulse 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tv-salas-attention-stat.is-total {
  border-color: rgba(239, 134, 0, 0.22);
  background:
    radial-gradient(circle at 90% 8%, rgba(239, 134, 0, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 246, 232, 0.88), rgba(255, 255, 255, 0.52));
}

.tv-salas-attention-stat.is-total strong {
  color: #b35d00;
}

.tv-salas-attention-chart-wrap {
  min-height: 0;
  padding: 4px 8px 5px;
  border: 1px solid rgba(44, 151, 201, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.tv-salas-attention-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: #16556f;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tv-salas-attention-chart-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-salas-attention-chart-head strong {
  color: #b35d00;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.tv-salas-attention-line-chart {
  height: 30px;
  margin-top: 1px;
}

.tv-salas-attention-line-chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.tv-salas-attention-chart-area {
  fill: rgba(44, 151, 201, 0.11);
  animation: tvSalasAttentionAreaReveal 1600ms ease-out both;
}

.tv-salas-attention-chart-line {
  fill: none;
  stroke: #137f9f;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: tvSalasAttentionLineDraw 1600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tv-salas-attention-chart-dot {
  fill: #ef8600;
  stroke: #ffffff;
  stroke-width: 1.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: tvSalasAttentionDotReveal 1600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tv-salas-attention-chart-high-dot {
  fill: #ef8600;
  stroke: #ffffff;
  stroke-width: 2.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: tvSalasAttentionHighPulse 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tv-salas-attention-chart-label {
  fill: #62717a;
  font-size: 0.58rem;
  font-weight: 800;
}

.tv-salas-attention-peaks {
  display: block;
  margin-top: 0;
  overflow: hidden;
  color: #8a4f08;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tv-salas-top-workshops {
  display: grid;
  gap: 4px;
  margin-top: 3px;
}

.tv-salas-top-workshops h4 {
  margin: 0;
  color: #3d464c;
  font-size: 0.7rem;
  line-height: 1.1;
}

.tv-salas-top-workshops-list {
  display: grid;
  gap: 4px;
}

.tv-salas-top-workshop {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid rgba(44, 151, 201, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.tv-salas-top-workshop span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2c97c9, #ef8600);
  font-size: 0.64rem;
  font-weight: 900;
}

.tv-salas-top-workshop strong {
  min-width: 0;
  overflow: hidden;
  color: #344149;
  font-size: 0.66rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-salas-top-workshop em {
  color: #16556f;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.tv-salas-top-workshop-bar {
  grid-column: 2 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(44, 151, 201, 0.12);
}

.tv-salas-top-workshop-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef8600, #2c97c9);
}

.tv-salas-attention-empty {
  display: grid;
  place-items: center;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

@keyframes tvSalasAttentionNumberPulse {
  0% {
    transform: translateY(2px) scale(0.94);
    opacity: 0.72;
  }

  65% {
    transform: translateY(0) scale(1.04);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes tvSalasAttentionLineDraw {
  0% {
    stroke-dashoffset: 1;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes tvSalasAttentionAreaReveal {
  0% {
    opacity: 0;
  }

  55% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes tvSalasAttentionDotReveal {
  0%,
  58% {
    opacity: 0;
    transform: scale(0.45);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tvSalasAttentionHighPulse {
  0% {
    transform: scale(0.8);
  }

  70% {
    transform: scale(1.22);
  }

  100% {
    transform: scale(1);
  }
}

body.tv-salas-body .tv-salas-shared-panel {
  grid-template-rows: minmax(124px, 0.64fr) minmax(0, 1.36fr);
  gap: 8px;
}

body.tv-salas-body .tv-salas-shared-media {
  min-height: 124px;
}

body.tv-salas-worldcup-only .tv-salas-shared-panel {
  grid-template-rows: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

body.tv-salas-worldcup-only .tv-salas-worldcup-panel--hero {
  min-height: 0;
}

body.rooms2-worldcup-only .rooms2-pulse-media-card {
  grid-template-rows: minmax(0, 1fr);
}

body.rooms2-worldcup-only .rooms2-pulse-media-card .tv-salas-worldcup-panel--hero {
  min-height: 0;
  height: 100%;
}

/* Usachín anfitrión: reemplazo compacto del antiguo panel informativo. */
.paiep-host-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: clamp(14px, 2vw, 28px);
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(145deg, #f4fbfb 0%, #ffffff 55%, #fff1df 100%);
}

.paiep-host-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(243, 107, 0, 0.12);
}

.paiep-host-mascot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 280px;
  max-height: 92%;
  margin: auto;
  object-fit: contain;
  image-rendering: pixelated;
  transform-origin: 50% 100%;
  animation: paiepHostWave 2.8s ease-in-out infinite;
}

.paiep-host-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.paiep-host-copy .status-label {
  margin: 0 0 10px;
  color: #007a7e;
}

.paiep-host-bubble {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 20px 20px 20px 5px;
  background: #071f42;
  color: #fff;
  font-size: clamp(22px, 2.3vw, 38px);
  font-weight: 800;
  line-height: 1.08;
  animation: paiepHostBubble 4.2s ease-in-out infinite;
}

.paiep-host-next {
  margin: 16px 0 6px;
  color: #071f42;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 850;
  line-height: 1.1;
}

.paiep-host-meta {
  margin: 12px 0 0;
  color: #f36b00;
  font-size: clamp(16px, 1.4vw, 25px);
  font-weight: 800;
  line-height: 1.2;
}

.paiep-host-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.paiep-host-pills span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #e2f3f3;
  color: #006369;
  font-weight: 800;
}

.paiep-host-card--rooms {
  min-height: 100%;
  grid-template-columns: minmax(96px, 24%) minmax(0, 1fr);
  gap: clamp(10px, 1.25vw, 18px);
  padding: clamp(10px, 1.25vw, 18px);
  border-radius: 22px;
}

.paiep-host-card--rooms .paiep-host-mascot {
  max-width: 160px;
  max-height: 84%;
}

.paiep-host-card--rooms .paiep-host-copy .status-label {
  margin-bottom: 6px;
  font-size: clamp(0.7rem, 0.9vw, 0.92rem);
  line-height: 1;
}

.paiep-host-card--rooms .paiep-host-bubble {
  padding: 8px 12px;
  border-radius: 15px 15px 15px 4px;
  font-size: clamp(0.95rem, 1.25vw, 1.4rem);
  line-height: 1.06;
}

.paiep-host-card--rooms .paiep-host-next,
.paiep-host-card--rooms .paiep-host-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.paiep-host-card--rooms .paiep-host-next {
  margin: 8px 0 4px;
  font-size: clamp(1.15rem, 1.65vw, 1.9rem);
  line-height: 1.05;
  -webkit-line-clamp: 2;
}

.paiep-host-card--rooms .paiep-host-meta {
  margin-top: 6px;
  font-size: clamp(0.78rem, 0.98vw, 1.06rem);
  line-height: 1.13;
  -webkit-line-clamp: 3;
}

.paiep-host-card--rooms .paiep-host-pills {
  gap: 6px;
  margin-top: 8px;
}

.paiep-host-card--rooms .paiep-host-pills span {
  padding: 5px 9px;
  font-size: clamp(0.62rem, 0.72vw, 0.76rem);
}

/* Variante compacta para la tercera tarjeta del encabezado de VISTA-PANTALLA. */
.tv-worldcup-card {
  padding: 0;
}

.tv-worldcup-card > .paiep-host-card {
  min-height: 0;
  padding: 12px 16px;
  gap: 14px;
  grid-template-columns: 104px minmax(0, 1fr);
  border-radius: 24px;
}

.tv-worldcup-card .paiep-host-mascot {
  width: 96px;
  height: 142px;
  max-height: 142px;
}

.tv-worldcup-card .paiep-host-copy .status-label {
  margin-bottom: 7px;
  font-size: clamp(0.72rem, 0.9vw, 1rem);
  line-height: 1;
  white-space: nowrap;
}

.tv-worldcup-card .paiep-host-bubble {
  display: -webkit-box;
  padding: 9px 12px;
  border-radius: 15px 15px 15px 4px;
  font-size: clamp(0.98rem, 1.35vw, 1.3rem);
  line-height: 1.1;
  white-space: normal;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tv-worldcup-card .paiep-host-meta {
  margin-top: 9px;
  display: -webkit-box;
  font-size: clamp(0.72rem, 0.95vw, 0.96rem);
  line-height: 1.18;
  white-space: normal;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

@keyframes paiepHostWave {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  45% { transform: translateY(-12px) rotate(2deg); }
  55% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes paiepHostBubble {
  0%, 82%, 100% { transform: scale(1); }
  88% { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .paiep-host-mascot,
  .paiep-host-bubble { animation: none; }
}

/* Vista pantalla de analisis */
.analysis-screen-body {
  --analysis-screen-safe-inset: clamp(22px, 2.2vw, 36px);
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #10212a;
  background:
    radial-gradient(circle at 6% 10%, rgba(239, 134, 0, 0.26), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(44, 151, 201, 0.24), transparent 34%),
    linear-gradient(135deg, #edf5f3 0%, #fff3dd 52%, #e7f3f7 100%);
  font-family: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
}

.analysis-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.25vw, 18px);
  width: 100vw;
  height: 100vh;
  padding: var(--analysis-screen-safe-inset);
  box-sizing: border-box;
}

.analysis-screen-hero,
.analysis-screen-card,
.analysis-screen-kpi {
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 28px 70px rgba(33, 59, 65, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  backdrop-filter: blur(22px) saturate(1.22);
}

.analysis-screen-hero {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) auto auto;
  gap: clamp(10px, 1.4vw, 20px);
  align-items: center;
  min-height: clamp(72px, 8.4vw, 104px);
  padding: clamp(9px, 1.2vw, 16px) clamp(14px, 1.6vw, 24px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44));
}

.analysis-screen-brand {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  min-width: 0;
}

.analysis-screen-brand img {
  width: clamp(68px, 8vw, 108px);
  height: auto;
  display: block;
  object-fit: contain;
}

.analysis-screen-brand p,
.analysis-screen-card-head p,
.analysis-screen-kpi span {
  margin: 0;
  color: #4d6a66;
  font-size: clamp(0.64rem, 0.9vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analysis-screen-brand h1 {
  margin: 0;
  color: #10212a;
  font-size: clamp(2.1rem, 4.4vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.analysis-screen-period {
  justify-self: end;
  display: grid;
  gap: 6px;
  text-align: right;
}

.analysis-screen-period span,
.analysis-screen-period strong {
  display: inline-block;
  justify-self: end;
  white-space: nowrap;
}

.analysis-screen-period span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #0d4f4c;
  background: rgba(220, 252, 241, 0.86);
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  font-weight: 900;
}

.analysis-screen-period strong {
  color: #52635f;
  font-size: clamp(0.7rem, 0.9vw, 0.86rem);
}

.analysis-screen-clock {
  justify-self: end;
  text-align: right;
}

.analysis-screen-clock strong {
  display: block;
  color: #10212a;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.analysis-screen-clock span {
  display: block;
  margin-top: 4px;
  color: #53635f;
  font-size: clamp(0.76rem, 1vw, 0.96rem);
  font-weight: 800;
}

.analysis-screen-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.88fr 0.78fr;
  grid-template-rows: auto minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-areas:
    "kpis kpis findings"
    "trend trend findings"
    "workshops professionals timeblocks";
  gap: clamp(10px, 1.25vw, 16px);
  min-height: 0;
}

.analysis-screen-kpis {
  grid-area: kpis;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  min-width: 0;
}

.analysis-screen-kpi {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: clamp(96px, 12vh, 132px);
  padding: clamp(12px, 1.4vw, 20px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 12%, rgba(44, 151, 201, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.58);
}

.analysis-screen-kpi.is-main {
  background:
    radial-gradient(circle at 92% 12%, rgba(239, 134, 0, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(255, 248, 236, 0.84), rgba(255, 255, 255, 0.48));
}

.analysis-screen-kpi strong {
  display: block;
  margin-top: 7px;
  color: #135a71;
  font-size: clamp(2.4rem, 5.2vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.analysis-screen-kpi.is-main strong {
  color: #b35d00;
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.analysis-screen-kpi strong.is-counting {
  animation: analysisScreenCountPulse 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.analysis-screen-kpi p {
  margin: 6px 0 0;
  color: #526b66;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 850;
  line-height: 1.16;
}

.analysis-screen-card {
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 1.35vw, 20px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(135deg, rgba(12, 50, 55, 0.032) 0 1px, transparent 1px 16px);
  overflow: hidden;
}

.analysis-screen-trend {
  grid-area: trend;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.analysis-screen-findings {
  grid-area: findings;
}

.analysis-screen-top-workshops {
  grid-area: workshops;
}

.analysis-screen-top-professionals {
  grid-area: professionals;
}

.analysis-screen-timeblocks {
  grid-area: timeblocks;
}

.analysis-screen-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(8px, 1vw, 14px);
}

.analysis-screen-card-head h2 {
  margin: 2px 0 0;
  color: #10212a;
  font-size: clamp(1.15rem, 2vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.analysis-screen-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.analysis-screen-badges span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #8a4f08;
  background: rgba(255, 245, 225, 0.88);
  font-size: clamp(0.62rem, 0.82vw, 0.78rem);
  font-weight: 900;
  white-space: nowrap;
}

.analysis-screen-line-chart {
  min-height: 0;
}

.analysis-screen-line-chart svg {
  width: 100%;
  height: 100%;
  min-height: clamp(190px, 28vh, 280px);
  display: block;
}

.analysis-screen-chart-grid {
  stroke: rgba(19, 90, 113, 0.12);
  stroke-width: 1;
}

.analysis-screen-chart-base {
  stroke: rgba(16, 33, 42, 0.22);
  stroke-width: 2;
}

.analysis-screen-chart-area {
  fill: rgba(44, 151, 201, 0.12);
  animation: analysisScreenAreaIn 1600ms ease-out both;
}

.analysis-screen-chart-line {
  fill: none;
  stroke: #137f9f;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: analysisScreenLineIn 1600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.analysis-screen-chart-dot {
  fill: #ef8600;
  stroke: #ffffff;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: analysisScreenDotIn 1600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.analysis-screen-chart-highlight line {
  stroke: rgba(16, 33, 42, 0.18);
  stroke-dasharray: 5 5;
}

.analysis-screen-chart-highlight circle {
  fill: #ef8600;
  stroke: #ffffff;
  stroke-width: 3;
}

.analysis-screen-chart-highlight.is-drop circle {
  fill: #be4822;
}

.analysis-screen-chart-highlight text {
  fill: #17343a;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.analysis-screen-chart-highlight.is-drop text {
  fill: #8b1e14;
}

.analysis-screen-chart-axis {
  fill: #5d716d;
  font-size: 0.72rem;
  font-weight: 850;
}

.analysis-screen-chart-value {
  fill: #10212a;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 5px;
  stroke-linejoin: round;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: analysisScreenValueIn 1500ms cubic-bezier(0.22, 1, 0.36, 1) 260ms forwards;
}

.analysis-screen-findings-list {
  display: grid;
  gap: clamp(8px, 1vw, 12px);
  min-height: 0;
}

.analysis-screen-findings-list article {
  padding: clamp(10px, 1vw, 14px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.analysis-screen-findings-list span {
  display: block;
  color: #a45b19;
  font-size: clamp(0.58rem, 0.78vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.analysis-screen-findings-list strong {
  display: block;
  margin-top: 4px;
  color: #10212a;
  font-size: clamp(0.88rem, 1.12vw, 1.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.analysis-screen-ranking,
.analysis-screen-timeblock-list {
  display: grid;
  gap: clamp(6px, 0.75vw, 9px);
  min-height: 0;
}

.analysis-screen-rank-row,
.analysis-screen-timeblock,
.analysis-screen-empty {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.analysis-screen-rank-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: clamp(7px, 0.8vw, 10px);
}

.analysis-screen-rank-row > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2c97c9, #ef8600);
  font-size: 0.82rem;
  font-weight: 900;
}

.analysis-screen-rank-row div {
  min-width: 0;
}

.analysis-screen-rank-row strong {
  display: block;
  overflow: hidden;
  color: #10212a;
  font-size: clamp(0.82rem, 1.05vw, 1.02rem);
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-screen-rank-row p {
  margin: 3px 0 5px;
  overflow: hidden;
  color: #526b66;
  font-size: clamp(0.64rem, 0.8vw, 0.76rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-screen-rank-row i,
.analysis-screen-timeblock i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef8600, #2c97c9);
}

.analysis-screen-rank-row em,
.analysis-screen-timeblock em {
  color: #135a71;
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.analysis-screen-timeblock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
  padding: clamp(9px, 1vw, 12px);
}

.analysis-screen-timeblock div {
  min-width: 0;
}

.analysis-screen-timeblock strong,
.analysis-screen-timeblock span {
  display: block;
}

.analysis-screen-timeblock strong {
  color: #10212a;
  font-size: clamp(0.9rem, 1.2vw, 1.16rem);
  line-height: 1;
}

.analysis-screen-timeblock span {
  margin-top: 3px;
  color: #526b66;
  font-size: clamp(0.64rem, 0.82vw, 0.78rem);
  font-weight: 800;
}

.analysis-screen-timeblock i {
  grid-column: 1 / -1;
}

.analysis-screen-empty {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 14px;
  color: #526b66;
  font-size: 0.88rem;
  font-weight: 850;
}

@keyframes analysisScreenCountPulse {
  0% {
    transform: translateY(2px) scale(0.94);
    opacity: 0.72;
  }

  65% {
    transform: translateY(0) scale(1.04);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes analysisScreenLineIn {
  0% {
    stroke-dashoffset: 1;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes analysisScreenAreaIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes analysisScreenDotIn {
  0%,
  58% {
    opacity: 0;
    transform: scale(0.45);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes analysisScreenValueIn {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px), (max-height: 760px) {
  .analysis-screen {
    --analysis-screen-safe-inset: 24px;
    gap: 8px;
    padding: var(--analysis-screen-safe-inset);
  }

  .analysis-screen-hero {
    grid-template-columns: minmax(250px, 1fr) auto auto;
    min-height: 58px;
    padding: 7px 11px;
    border-radius: 20px;
  }

  .analysis-screen-brand img {
    width: 54px;
  }

  .analysis-screen-brand h1 {
    font-size: clamp(1.65rem, 3.6vw, 2.8rem);
  }

  .analysis-screen-brand p,
  .analysis-screen-card-head p,
  .analysis-screen-kpi span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .analysis-screen-period span {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .analysis-screen-period strong,
  .analysis-screen-clock span {
    font-size: 0.62rem;
  }

  .analysis-screen-clock strong {
    font-size: clamp(1.75rem, 4vw, 3rem);
  }

  .analysis-screen-grid {
    gap: 8px;
    grid-template-columns: 1.1fr 0.9fr 0.8fr;
  }

  .analysis-screen-kpis {
    gap: 7px;
  }

  .analysis-screen-kpi {
    min-height: 76px;
    padding: 8px;
    border-radius: 18px;
  }

  .analysis-screen-kpi strong {
    margin-top: 4px;
    font-size: clamp(1.8rem, 4.4vw, 3.3rem);
  }

  .analysis-screen-kpi.is-main strong {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
  }

  .analysis-screen-kpi p {
    margin-top: 4px;
    font-size: 0.62rem;
  }

  .analysis-screen-card {
    padding: 8px;
    border-radius: 18px;
  }

  .analysis-screen-card-head {
    margin-bottom: 6px;
  }

  .analysis-screen-card-head h2 {
    font-size: clamp(1rem, 1.7vw, 1.45rem);
  }

  .analysis-screen-badges span {
    padding: 5px 7px;
    font-size: 0.56rem;
  }

  .analysis-screen-line-chart svg {
    min-height: 150px;
  }

  .analysis-screen-chart-value {
    font-size: 0.62rem;
    stroke-width: 4px;
  }

  .analysis-screen-findings-list {
    gap: 6px;
  }

  .analysis-screen-findings-list article {
    padding: 7px;
    border-radius: 13px;
  }

  .analysis-screen-findings-list span {
    font-size: 0.52rem;
  }

  .analysis-screen-findings-list strong {
    font-size: 0.72rem;
  }

  .analysis-screen-ranking,
  .analysis-screen-timeblock-list {
    gap: 5px;
  }

  .analysis-screen-rank-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 12px;
  }

  .analysis-screen-rank-row > span {
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
  }

  .analysis-screen-rank-row strong {
    font-size: 0.68rem;
  }

  .analysis-screen-rank-row p {
    margin: 2px 0 4px;
    font-size: 0.56rem;
  }

  .analysis-screen-rank-row i,
  .analysis-screen-timeblock i {
    height: 4px;
  }

  .analysis-screen-rank-row em,
  .analysis-screen-timeblock em {
    font-size: 0.86rem;
  }

  .analysis-screen-timeblock {
    gap: 5px 7px;
    padding: 6px 7px;
    border-radius: 12px;
  }

  .analysis-screen-timeblock strong {
    font-size: 0.74rem;
  }

  .analysis-screen-timeblock span {
    font-size: 0.56rem;
  }
}


@media (max-width: 900px) {
  .analysis-jump-nav {
    grid-template-columns: 1fr;
    top: 8px;
  }

  .analysis-jump-link {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .analysis-section {
    padding: 18px;
    border-radius: 24px;
  }

  .analysis-section-head {
    grid-template-columns: 1fr;
  }

  .analysis-section-badge {
    justify-self: start;
  }
}

@media print {
  body::before {
    display: none !important;
  }

  .hero,
  .controls,
  .summary,
  .schedule-panel,
  .web-week-board-shell,
  .tv-week-board {
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* ANÁLISIS: cierre de cascada oscura para evitar bloques blancos heredados */
body.analysis-dashboard-page:not(.tv-expanded-body):not(.tv-salas-body)::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 155, 61, 0.11), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 38%, rgba(255, 255, 255, 0.025));
  opacity: 1;
}

body.analysis-dashboard-page .analysis-hero,
body.analysis-dashboard-page .analysis-panel,
body.analysis-dashboard-page .schedule-panel,
body.analysis-dashboard-page .analysis-section,
body.analysis-dashboard-page .attendance-summary-card,
body.analysis-dashboard-page .attendance-monitor-card,
body.analysis-dashboard-page .attendance-professional-profile-card,
body.analysis-dashboard-page .attendance-findings-card,
body.analysis-dashboard-page .attendance-zero-alert-card,
body.analysis-dashboard-page .attendance-period-detail,
body.analysis-dashboard-page .attendance-period-insights article,
body.analysis-dashboard-page .attendance-period-kind-pills article,
body.analysis-dashboard-page .attendance-period-detail-row,
body.analysis-dashboard-page .attendance-professional-profile-head,
body.analysis-dashboard-page .attendance-professional-profile-box,
body.analysis-dashboard-page .attendance-workshop-summary article,
body.analysis-dashboard-page .attendance-session-row,
body.analysis-dashboard-page .attendance-bar-row,
body.analysis-dashboard-page .attendance-ranking-item,
body.analysis-dashboard-page .attendance-table-wrap,
body.analysis-dashboard-page .attendance-zero-alert-card li,
body.analysis-dashboard-page .line-chart-legend span {
  border-color: var(--analysis-border) !important;
  color: var(--analysis-text) !important;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 155, 61, 0.08), transparent 30%),
    var(--analysis-card) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.analysis-dashboard-page .analysis-hero {
  background: transparent !important;
  box-shadow: none !important;
}

body.analysis-dashboard-page .analysis-panel,
body.analysis-dashboard-page .schedule-panel {
  background: transparent !important;
  box-shadow: none !important;
}

body.analysis-dashboard-page .hero::before,
body.analysis-dashboard-page .schedule-panel::before,
body.analysis-dashboard-page .analysis-panel::before,
body.analysis-dashboard-page .attendance-summary-card::before,
body.analysis-dashboard-page .attendance-monitor-card::before,
body.analysis-dashboard-page .attendance-professional-profile-card::before {
  background: transparent !important;
  opacity: 0 !important;
}

body.analysis-dashboard-page .analysis-hero::before {
  content: "Estadísticas";
  position: absolute;
  left: 0;
  top: -18px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  filter: blur(1px);
  background: transparent !important;
  opacity: 1 !important;
}

body.analysis-dashboard-page .attendance-summary-card.is-total {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 155, 61, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(73, 28, 18, 0.98), rgba(44, 15, 10, 0.94)) !important;
}

body.analysis-dashboard-page .attendance-zero-alert-card.is-clear,
body.analysis-dashboard-page .attendance-bar-row.is-consejeria {
  background:
    radial-gradient(circle at 94% 8%, rgba(99, 214, 110, 0.14), transparent 28%),
    var(--analysis-card) !important;
}

body.analysis-dashboard-page .attendance-bar-row.is-workshop,
body.analysis-dashboard-page .attendance-ranking-item.is-low {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 155, 61, 0.17), transparent 28%),
    var(--analysis-card) !important;
}

body.analysis-dashboard-page .attendance-filters select,
body.analysis-dashboard-page .attendance-workshop-picker select,
body.analysis-dashboard-page .attendance-filters,
body.analysis-dashboard-page .attendance-alert-empty,
body.analysis-dashboard-page .empty-state {
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--analysis-text) !important;
  background: rgba(18, 6, 3, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.analysis-dashboard-page .line-chart-bg {
  fill: rgba(42, 16, 10, 0.82) !important;
  stroke: rgba(255, 255, 255, 0.08) !important;
}

body.analysis-dashboard-page .line-chart-highlight-box {
  fill: rgba(47, 18, 12, 0.94) !important;
  stroke: rgba(255, 255, 255, 0.1) !important;
}

body.analysis-dashboard-page .line-chart-highlight circle,
body.analysis-dashboard-page .line-chart-selected-point {
  fill: rgba(255, 155, 61, 0.18) !important;
  stroke: var(--analysis-orange) !important;
}

body.analysis-dashboard-page .attendance-table th {
  background: rgba(30, 9, 5, 0.98) !important;
}

body.analysis-dashboard-page .attendance-table tr.is-highlight td,
body.analysis-dashboard-page .attendance-table tr.is-low td {
  background: rgba(255, 155, 61, 0.1) !important;
}

/* VISTA-PANTALLA-CHICA: lectura de alto contraste para pantallas 720p */
.small-screen-body {
  --small-bg: #071314;
  --small-card: rgba(244, 239, 220, 0.94);
  --small-card-strong: #fff8dc;
  --small-ink: #112221;
  --small-muted: rgba(17, 34, 33, 0.68);
  --small-glass: rgba(255, 255, 255, 0.13);
  --small-border: rgba(255, 255, 255, 0.22);
  --small-gold: #ffd166;
  --small-mint: #79f2c6;
  --small-coral: #ff795f;
  --small-blue: #7fd1ff;
  --small-safe: clamp(12px, 1.8vw, 26px);
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff7df;
  font-family: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(121, 242, 198, 0.22), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(255, 209, 102, 0.18), transparent 26%),
    linear-gradient(135deg, #071314 0%, #0e2b28 46%, #1f1a0c 100%);
}

.small-screen-body *,
.small-screen-body *::before,
.small-screen-body *::after {
  box-sizing: border-box;
}

.small-screen-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.small-screen-app {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: clamp(84px, 13vh, 112px) minmax(0, 1fr) clamp(42px, 6.5vh, 58px);
  gap: clamp(10px, 1.3vh, 16px);
  padding: var(--small-safe);
}

.small-screen-header,
.small-screen-panel,
.small-screen-footer,
.small-screen-controls {
  border: 1px solid var(--small-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.small-screen-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.25fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  min-height: 0;
  padding: clamp(10px, 1.4vw, 18px);
  border-radius: 26px;
}

.small-screen-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: clamp(10px, 1.6vw, 18px);
}

.small-screen-brand img {
  width: clamp(46px, 6vw, 76px);
  height: clamp(46px, 6vw, 76px);
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.34));
}

.small-screen-brand p,
.small-screen-eyebrow,
.small-screen-card-topline,
.small-screen-week-day header span,
.small-screen-ticker,
.small-screen-page {
  margin: 0;
  color: rgba(255, 247, 223, 0.74);
  font-size: clamp(0.74rem, 1.2vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.small-screen-brand h1,
.small-screen-slide-head h2,
.small-screen-empty-panel h2,
.small-screen-qr-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.65rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.small-screen-live-summary {
  min-width: 0;
  padding: clamp(10px, 1.2vw, 16px) clamp(14px, 1.8vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.22);
}

.small-screen-live-summary span {
  display: block;
  color: var(--small-mint);
  font-size: clamp(0.78rem, 1.25vw, 1rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.small-screen-live-summary strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(1.1rem, 2vw, 2rem);
  line-height: 1.02;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.small-screen-clock {
  display: grid;
  justify-items: end;
  min-width: clamp(150px, 16vw, 230px);
}

.small-screen-clock strong {
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.small-screen-clock span {
  margin-top: 6px;
  color: rgba(255, 247, 223, 0.72);
  font-size: clamp(0.82rem, 1.4vw, 1.12rem);
  font-style: italic;
  white-space: nowrap;
}

.small-screen-slide {
  min-height: 0;
  opacity: 1;
  transform: translateY(0);
}

.small-screen-slide.is-entering {
  animation: smallScreenSlideIn 520ms ease both;
}

@keyframes smallScreenSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.small-screen-panel {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.4vh, 16px);
  padding: clamp(14px, 1.8vw, 24px);
  border-radius: 30px;
}

.small-screen-panel::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -34%;
  width: clamp(220px, 32vw, 430px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.14), transparent 68%);
  pointer-events: none;
}

.small-screen-now-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.small-screen-slide-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.small-screen-slide-head .small-screen-eyebrow {
  grid-column: 1 / -1;
  color: var(--small-gold);
}

.small-screen-slide-head h2 {
  max-width: 100%;
}

.small-screen-slide-head span {
  align-self: center;
  max-width: min(46vw, 620px);
  color: rgba(255, 247, 223, 0.72);
  font-size: clamp(0.92rem, 1.45vw, 1.28rem);
  line-height: 1.2;
  text-align: right;
}

.small-screen-card-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vh, 16px);
  min-height: 0;
}

.small-screen-card-list.is-featured,
.small-screen-card-list.is-now-list {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.small-screen-signal-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 18px);
  min-height: 0;
}

.small-screen-signal {
  min-width: 0;
  padding: clamp(10px, 1.25vw, 16px) clamp(12px, 1.7vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.24);
}

.small-screen-signal span {
  display: block;
  margin-bottom: 4px;
  color: var(--small-gold);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.small-screen-signal strong {
  display: block;
  overflow: hidden;
  color: #fff7df;
  font-size: clamp(1.25rem, 2.25vw, 2.15rem);
  line-height: 1.02;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.small-screen-signal.is-now {
  box-shadow: inset 0 0 0 1px rgba(121, 242, 198, 0.28);
}

.small-screen-card {
  --card-accent: var(--small-mint);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: clamp(10px, 1.4vw, 18px);
  min-height: 0;
  padding: clamp(12px, 1.5vw, 20px);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-left: clamp(9px, 1.1vw, 15px) solid var(--card-accent);
  border-radius: 24px;
  color: var(--small-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), transparent 64%),
    var(--small-card);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.small-screen-card.kind-asesoria {
  --card-accent: var(--small-blue);
}

.small-screen-card.kind-consejeria {
  --card-accent: #d7a5ff;
}

.small-screen-card.is-now {
  --card-accent: #3ee68e;
  background:
    radial-gradient(circle at 92% 16%, rgba(62, 230, 142, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent 64%),
    var(--small-card-strong);
  animation: smallScreenNowPulse 1500ms ease-in-out infinite;
}

.small-screen-card.is-suspended {
  --card-accent: var(--small-coral);
  color: rgba(17, 34, 33, 0.72);
  background: rgba(228, 218, 198, 0.82);
}

.small-screen-card.is-past {
  opacity: 0.78;
}

@keyframes smallScreenNowPulse {
  0%,
  100% {
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24), 0 0 0 rgba(62, 230, 142, 0);
  }
  50% {
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24), 0 0 0 8px rgba(62, 230, 142, 0.16);
  }
}

.small-screen-card-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: clamp(4px, 0.65vh, 8px);
}

.small-screen-card-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(17, 34, 33, 0.72);
}

.small-screen-card-topline strong {
  color: var(--small-ink);
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  letter-spacing: -0.02em;
}

.small-screen-card-topline span {
  padding: 0.28em 0.7em;
  border-radius: 999px;
  color: #06201a;
  background: rgba(121, 242, 198, 0.58);
  background: color-mix(in srgb, var(--card-accent) 62%, white);
}

.small-screen-card h3 {
  display: -webkit-box;
  max-height: 2.12em;
  margin: 0;
  overflow: hidden;
  color: var(--small-ink);
  font-size: clamp(2rem, 4.1vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.065em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.small-screen-card-meta,
.small-screen-card-professional {
  margin: 0;
  color: var(--small-muted);
  font-size: clamp(1.02rem, 1.72vw, 1.48rem);
  line-height: 1.16;
}

.small-screen-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45em 0.7em;
}

.small-screen-card-meta b {
  color: var(--small-ink);
}

.small-screen-card-meta span::before {
  content: "·";
  margin-right: 0.7em;
  color: rgba(17, 34, 33, 0.36);
}

.small-screen-card-professional {
  font-style: italic;
}

.small-screen-optional-detail {
  display: none;
}

.small-screen-featured-panel .small-screen-optional-detail {
  display: block;
}

.small-screen-card-qr {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: clamp(118px, 14vw, 190px);
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.small-screen-card-qr img {
  width: clamp(96px, 12vw, 158px);
  height: clamp(96px, 12vw, 158px);
  border-radius: 10px;
}

.small-screen-card-qr span,
.small-screen-recommended-chip {
  color: rgba(17, 34, 33, 0.76);
  font-size: clamp(0.7rem, 1vw, 0.88rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.small-screen-recommended-chip {
  justify-self: start;
  margin: 0;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.42);
  display: none;
}

.small-screen-empty-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2vh, 22px);
  padding: clamp(26px, 4vw, 64px);
}

.small-screen-empty-panel .small-screen-eyebrow {
  color: var(--small-gold);
}

.small-screen-empty-panel h2 {
  max-width: 980px;
  font-size: clamp(2.7rem, 7vw, 7rem);
}

.small-screen-empty-panel p {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 247, 223, 0.78);
  font-size: clamp(1.2rem, 2.3vw, 2.35rem);
  line-height: 1.18;
}

.small-screen-week-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.small-screen-week-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 14px);
  min-height: 0;
}

.small-screen-week-day {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: clamp(10px, 1.2vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
}

.small-screen-week-day header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.small-screen-week-day header strong {
  display: grid;
  place-items: center;
  width: clamp(32px, 3.3vw, 44px);
  height: clamp(32px, 3.3vw, 44px);
  border-radius: 999px;
  color: #17211d;
  background: var(--small-gold);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}

.small-screen-week-day ul {
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.small-screen-week-day li {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.small-screen-week-day li strong {
  color: var(--small-mint);
  font-size: clamp(0.78rem, 1.1vw, 0.98rem);
}

.small-screen-week-day li span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 247, 223, 0.88);
  font-size: clamp(0.86rem, 1.2vw, 1.1rem);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.small-screen-week-note,
.small-screen-week-more {
  margin: 0;
  color: rgba(255, 247, 223, 0.7);
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  line-height: 1.18;
}

.small-screen-week-more {
  align-self: end;
  color: var(--small-gold);
  font-weight: 900;
}

.small-screen-qr-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.small-screen-qr-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(10px, 1.3vh, 16px);
}

.small-screen-qr-copy h2 {
  max-width: 850px;
  font-size: clamp(3rem, 6.4vw, 7rem);
}

.small-screen-qr-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 247, 223, 0.78);
  font-size: clamp(1.1rem, 2vw, 2rem);
  line-height: 1.15;
}

.small-screen-qr-copy strong {
  display: inline-block;
  padding: 0.45em 0.7em;
  border-radius: 999px;
  color: #10201e;
  background: var(--small-gold);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
}

.small-screen-qr-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(300px, 34vw, 470px);
  aspect-ratio: 1;
  padding: clamp(14px, 2vw, 28px);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.small-screen-qr-shell img {
  width: 100%;
  height: 100%;
}

.small-screen-week-summary {
  display: grid;
  gap: clamp(8px, 1vh, 12px);
  margin-top: clamp(6px, 1vh, 12px);
}

.small-screen-week-summary-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.small-screen-week-summary h3 {
  margin: 0;
  color: #fff7df;
  font-size: clamp(1.3rem, 2.1vw, 2.2rem);
  line-height: 1;
}

.small-screen-week-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.small-screen-week-mini-day {
  min-width: 0;
  padding: clamp(8px, 0.9vw, 12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.small-screen-week-mini-day strong,
.small-screen-week-mini-day span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.small-screen-week-mini-day strong {
  color: var(--small-mint);
  font-size: clamp(0.78rem, 1.05vw, 0.98rem);
  text-transform: uppercase;
}

.small-screen-week-mini-day span {
  margin-top: 3px;
  color: rgba(255, 247, 223, 0.88);
  font-size: clamp(1rem, 1.45vw, 1.36rem);
  font-weight: 900;
}

.small-screen-week-mini-day div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.small-screen-week-mini-day em {
  padding: 0.25em 0.5em;
  border-radius: 999px;
  color: #17211d;
  background: rgba(255, 209, 102, 0.88);
  font-size: clamp(0.65rem, 0.86vw, 0.78rem);
  font-style: normal;
  font-weight: 900;
}

.small-screen-footer {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 0;
  padding: 0 clamp(14px, 2vw, 24px);
  border-radius: 22px;
}

.small-screen-ticker {
  min-width: 0;
  color: rgba(255, 247, 223, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.small-screen-ticker span {
  display: inline-block;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.small-screen-ticker span.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.small-screen-progress-shell {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.small-screen-progress {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--small-mint), var(--small-gold));
  transition-property: transform;
  transition-timing-function: linear;
}

.small-screen-controls {
  position: fixed;
  right: calc(var(--small-safe) + 4px);
  bottom: calc(var(--small-safe) + 4px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  opacity: 0.72;
}

.small-screen-control {
  display: grid;
  place-items: center;
  width: clamp(38px, 4.2vw, 52px);
  height: clamp(38px, 4.2vw, 52px);
  border: 0;
  border-radius: 999px;
  color: rgba(255, 247, 223, 0.92);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.small-screen-control svg {
  width: 58%;
  height: 58%;
}

.small-screen-control:hover,
.small-screen-control:focus-visible,
.small-screen-control[aria-pressed="true"] {
  outline: none;
  color: #17211d;
  background: var(--small-gold);
}

.small-screen-page {
  min-width: 3.3em;
  text-align: center;
}

@media (max-width: 980px), (max-height: 660px) {
  .small-screen-app {
    grid-template-rows: 78px minmax(0, 1fr) 40px;
    gap: 9px;
  }

  .small-screen-header {
    grid-template-columns: minmax(170px, 1fr) minmax(210px, 1.1fr) auto;
    border-radius: 20px;
  }

  .small-screen-brand h1 {
    font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  }

  .small-screen-brand p,
  .small-screen-clock span {
    font-size: 0.72rem;
  }

  .small-screen-brand img {
    width: 44px;
    height: 44px;
  }

  .small-screen-live-summary {
    padding: 8px 12px;
    border-radius: 16px;
  }

  .small-screen-clock {
    min-width: 112px;
  }

  .small-screen-panel {
    padding: 12px;
    border-radius: 22px;
  }

  .small-screen-signal-strip {
    gap: 8px;
  }

  .small-screen-signal {
    padding: 8px 10px;
    border-radius: 16px;
  }

  .small-screen-signal strong {
    font-size: clamp(1rem, 2vw, 1.5rem);
  }

  .small-screen-slide-head {
    gap: 10px;
  }

  .small-screen-slide-head span {
    max-width: 42vw;
    font-size: 0.82rem;
  }

  .small-screen-card {
    border-radius: 18px;
    padding: 10px 12px;
  }

  .small-screen-card h3 {
    font-size: clamp(1.35rem, 3.2vw, 2.2rem);
  }

  .small-screen-card-meta,
  .small-screen-card-professional {
    font-size: clamp(0.78rem, 1.3vw, 1rem);
  }

  .small-screen-optional-detail {
    display: none;
  }

  .small-screen-card-qr {
    min-width: 104px;
  }

  .small-screen-card-qr img {
    width: 92px;
    height: 92px;
  }

  .small-screen-week-grid {
    gap: 7px;
  }

  .small-screen-week-day {
    padding: 8px;
    border-radius: 16px;
  }

  .small-screen-week-day li {
    padding: 6px 0;
  }

  .small-screen-qr-shell {
    width: clamp(250px, 31vw, 340px);
    padding: 14px;
    border-radius: 24px;
  }

  .small-screen-week-mini-grid {
    gap: 6px;
  }

  .small-screen-week-mini-day {
    padding: 7px;
    border-radius: 13px;
  }

  .small-screen-week-mini-day div {
    display: none;
  }
}

@media (orientation: portrait) {
  .small-screen-body {
    overflow: auto;
  }

  .small-screen-app {
    min-height: 100vh;
    height: auto;
    grid-template-rows: auto minmax(560px, 1fr) auto;
  }

  .small-screen-header,
  .small-screen-slide-head,
  .small-screen-qr-panel {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .small-screen-live-summary,
  .small-screen-clock {
    justify-items: start;
  }

  .small-screen-slide-head span {
    max-width: none;
    text-align: left;
  }

  .small-screen-week-grid {
    grid-template-columns: 1fr;
  }

  .small-screen-signal-strip,
  .small-screen-week-mini-grid {
    grid-template-columns: 1fr;
  }
}

.web-wellbeing-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(23, 135, 115, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 20%, rgba(121, 196, 178, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(235, 250, 246, 0.98), rgba(255, 252, 246, 0.94));
  box-shadow: 0 18px 34px rgba(23, 135, 115, 0.08);
}

.web-wellbeing-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 250px;
  height: 250px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 134, 0, 0.15), transparent 70%);
  animation: webTipFloatPrimary 20s ease-in-out infinite;
  pointer-events: none;
}

.web-wellbeing-copy,
.web-wellbeing-actions {
  position: relative;
  z-index: 1;
}

.web-wellbeing-copy h2,
.web-wellbeing-copy p {
  margin: 0;
}

.web-wellbeing-copy {
  display: grid;
  gap: 6px;
}

.web-wellbeing-copy h2 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.web-wellbeing-copy p:not(.eyebrow) {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.45;
}

.web-wellbeing-actions,
.web-featured-badge-stack,
.tv-featured-chip-stack {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.web-wellbeing-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(23, 135, 115, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #176f60;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.web-wellbeing-actions a:first-child {
  background: linear-gradient(90deg, #176f60, #2c97c9);
  color: #ffffff;
}

.schedule-item.theme-wellbeing,
.web-featured-card.theme-wellbeing {
  border-color: rgba(23, 135, 115, 0.22);
  background:
    radial-gradient(circle at 96% 18%, rgba(121, 196, 178, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.9);
}

.wellbeing-badge {
  border-color: rgba(23, 135, 115, 0.2);
  background: rgba(232, 248, 243, 0.9);
  color: #176f60;
}

.modal-wellbeing-note {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid rgba(23, 135, 115, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(232, 248, 243, 0.96), rgba(255, 252, 246, 0.9));
  color: #176f60;
  white-space: normal;
}

.modal-wellbeing-note strong {
  color: #123f38;
}

.modal-wellbeing-note span {
  color: rgba(50, 57, 64, 0.86);
}

.modal-wellbeing-note a {
  width: fit-content;
  color: #0f5e86;
  font-weight: 800;
  text-decoration: none;
}

.tv-card.theme-wellbeing,
.tv-featured-card.theme-wellbeing {
  border-color: rgba(23, 135, 115, 0.22);
  box-shadow: 0 18px 36px rgba(23, 135, 115, 0.11);
}

.tv-featured-chip-stack {
  justify-content: end;
}

.tv-featured-chip--wellbeing {
  background: linear-gradient(90deg, #176f60, #79c4b2);
  color: #ffffff;
}

.small-screen-card.theme-wellbeing {
  --card-accent: #79c4b2;
}

.small-screen-wellbeing-label {
  color: #176f60 !important;
}

.attendance-wellbeing-summary {
  margin: 18px 0 0;
}

.attendance-wellbeing-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(23, 135, 115, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(121, 196, 178, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(232, 248, 243, 0.96), rgba(255, 252, 246, 0.92));
  box-shadow: 0 18px 34px rgba(23, 135, 115, 0.08);
}

.attendance-wellbeing-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.attendance-wellbeing-card span {
  color: #176f60;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attendance-wellbeing-card h3,
.attendance-wellbeing-card p {
  margin: 0;
}

.attendance-wellbeing-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.attendance-wellbeing-card-head > strong {
  color: #123f38;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.9;
}

.attendance-wellbeing-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.attendance-wellbeing-metrics div,
.attendance-wellbeing-list p {
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 24, 28, 0.06);
}

.attendance-wellbeing-metrics strong {
  display: block;
  margin-top: 4px;
  color: #123f38;
  font-size: 1.5rem;
}

.attendance-wellbeing-list {
  display: grid;
  gap: 8px;
}

.attendance-wellbeing-list p {
  display: grid;
  gap: 4px;
}

.attendance-wellbeing-list p span {
  color: rgba(50, 57, 64, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}

body.web-accessibility-invert .web-wellbeing-panel,
body.web-accessibility-invert .modal-wellbeing-note,
body.web-accessibility-invert .attendance-wellbeing-card {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

@media (max-width: 760px) {
  .web-wellbeing-panel,
  .attendance-wellbeing-card-head,
  .attendance-wellbeing-metrics {
    grid-template-columns: 1fr;
  }

  .web-wellbeing-actions {
    justify-content: start;
  }
}

/* Bienestar PAIEP: tono verde transversal y bloque fusionado con consejos. */
.web-wellbeing-tip-panel {
  --wellbeing-green: #137a4f;
  --wellbeing-green-dark: #0b5638;
  --wellbeing-green-soft: #e8f7ef;
  --wellbeing-green-glow: rgba(19, 122, 79, 0.16);
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  border-color: rgba(19, 122, 79, 0.24);
  background:
    radial-gradient(circle at 10% 16%, rgba(54, 168, 112, 0.22), transparent 28%),
    radial-gradient(circle at 96% 82%, rgba(102, 187, 106, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(235, 250, 240, 0.98), rgba(250, 255, 250, 0.94));
  box-shadow: 0 20px 42px rgba(19, 122, 79, 0.11);
}

.web-wellbeing-tip-panel::before,
.web-wellbeing-tip-panel::after {
  background: radial-gradient(circle, rgba(19, 122, 79, 0.16), transparent 70%);
}

.web-wellbeing-tip-panel .eyebrow,
.web-wellbeing-tip-title {
  color: var(--wellbeing-green);
}

.web-wellbeing-tip-title {
  margin: 10px 0 6px;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.web-wellbeing-tip-panel .web-tip-text {
  max-width: 78ch;
  padding: 12px 14px;
  border-left: 4px solid var(--wellbeing-green);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: #12382a;
  font-weight: 850;
  line-height: 1.45;
}

.web-wellbeing-tip-panel .web-wellbeing-actions {
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.web-wellbeing-filter-button,
.web-wellbeing-tip-panel .web-tip-nav,
.web-wellbeing-tip-panel .web-tip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(19, 122, 79, 0.22);
  background: rgba(255, 255, 255, 0.76);
  color: var(--wellbeing-green-dark);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(19, 122, 79, 0.08);
  cursor: pointer;
}

.web-wellbeing-filter-button,
.web-wellbeing-tip-panel .web-tip-link {
  background: linear-gradient(135deg, var(--wellbeing-green), #2f9d68);
  color: #ffffff;
}

.web-wellbeing-filter-button.is-active,
.web-wellbeing-filter-button:hover,
.web-wellbeing-filter-button:focus-visible,
.web-wellbeing-tip-panel .web-tip-nav:hover,
.web-wellbeing-tip-panel .web-tip-nav:focus-visible,
.web-wellbeing-tip-panel .web-tip-link:hover,
.web-wellbeing-tip-panel .web-tip-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(19, 122, 79, 0.34);
  box-shadow: 0 14px 30px rgba(19, 122, 79, 0.14);
  outline: none;
}

.web-wellbeing-tip-panel .web-tip-link::after {
  content: "";
}

.schedule-item.theme-wellbeing,
.web-featured-card.theme-wellbeing,
.tv-card.theme-wellbeing,
.tv-featured-card.theme-wellbeing {
  border-color: rgba(19, 122, 79, 0.34);
  background:
    radial-gradient(circle at 96% 18%, rgba(54, 168, 112, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(248, 255, 250, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 16px 34px rgba(19, 122, 79, 0.1);
}

.schedule-item.theme-wellbeing {
  border-left-color: #137a4f;
}

.wellbeing-badge,
.tv-featured-chip--wellbeing,
.small-screen-wellbeing-label {
  border-color: rgba(19, 122, 79, 0.24);
  background: #dff5e9;
  color: #0b5638 !important;
  font-weight: 950;
}

.small-screen-card.theme-wellbeing {
  --card-accent: #137a4f;
}

.modal-wellbeing-note {
  border-color: rgba(19, 122, 79, 0.24);
  background: linear-gradient(135deg, #e8f7ef, rgba(255, 255, 255, 0.92));
  color: #0b5638;
}

.modal-wellbeing-note strong {
  color: #0b5638;
}

.paiep-games-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(19, 122, 79, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(54, 168, 112, 0.22), transparent 28%),
    linear-gradient(135deg, #f3fbf6 0%, #f8fff9 54%, #edf8f1 100%);
}

.paiep-game-tab.is-active,
.paiep-game-tab:hover,
.paiep-game-tab:focus-visible {
  background:
    radial-gradient(circle at 92% 10%, rgba(104, 196, 128, 0.42), transparent 26%),
    linear-gradient(135deg, #137a4f, #0b5638);
}

@media (max-width: 760px) {
  .web-wellbeing-tip-panel {
    grid-template-columns: 1fr;
  }
}

/* Ajuste visual: recupera el look liviano anterior para el bloque de bienestar/consejos. */
.web-wellbeing-tip-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-color: rgba(19, 122, 79, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 16%, rgba(44, 151, 201, 0.13), transparent 34%),
    radial-gradient(circle at 92% 24%, rgba(239, 134, 0, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(239, 249, 248, 0.9));
  box-shadow:
    0 20px 40px rgba(22, 85, 111, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.web-wellbeing-tip-panel::before {
  top: -130px;
  right: -38px;
  background: radial-gradient(circle, rgba(239, 134, 0, 0.13), transparent 70%);
}

.web-wellbeing-tip-panel::after {
  left: -70px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(44, 151, 201, 0.11), transparent 70%);
}

.web-wellbeing-tip-panel .web-wellbeing-copy {
  gap: 5px;
}

.web-wellbeing-tip-panel .eyebrow,
.web-wellbeing-tip-title {
  color: #ef8600;
}

.web-wellbeing-tip-panel .web-wellbeing-copy h2 {
  color: #394145;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  letter-spacing: -0.035em;
}

.web-wellbeing-tip-panel .web-wellbeing-copy p:not(.eyebrow):not(.web-wellbeing-tip-title):not(.web-tip-text) {
  color: #65727a;
  font-weight: 500;
}

.web-wellbeing-tip-title {
  margin-top: 12px;
}

.web-wellbeing-tip-panel .web-tip-text {
  max-width: 78ch;
  min-height: 58px;
  padding: 7px 0 7px 14px;
  border-left: 3px solid rgba(239, 134, 0, 0.32);
  border-radius: 0;
  background: transparent;
  color: #3f4548;
  font-size: clamp(1rem, 1.28vw, 1.14rem);
  font-weight: 700;
  line-height: 1.55;
}

.web-wellbeing-tip-panel .web-wellbeing-actions {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 420px;
}

.web-wellbeing-tip-panel .web-tip-nav {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  flex: 0 0 34px;
  border-color: rgba(23, 135, 115, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #3f4548;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 85, 111, 0.08);
}

.web-wellbeing-tip-panel .web-tip-nav:hover,
.web-wellbeing-tip-panel .web-tip-nav:focus-visible {
  color: #137a4f;
  background: #ffffff;
}

.web-wellbeing-filter-button,
.web-wellbeing-tip-panel .web-tip-link {
  width: auto;
  min-height: 38px;
  padding: 9px 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 0.84rem;
  box-shadow: 0 10px 22px rgba(19, 122, 79, 0.1);
}

.web-wellbeing-filter-button {
  background: linear-gradient(90deg, #137a4f, #15905b);
  color: #ffffff;
}

.web-wellbeing-tip-panel .web-tip-link {
  border-color: rgba(23, 135, 115, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: #137a4f;
}

.web-wellbeing-tip-panel .web-tip-link::after {
  content: "↗";
  font-size: 0.9em;
}

@media (max-width: 900px) {
  .web-wellbeing-tip-panel {
    grid-template-columns: 1fr;
  }

  .web-wellbeing-tip-panel .web-wellbeing-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

/* Consejos dentro del bloque de bienestar: subbloque distinguible sin perder el estilo suave. */
.web-wellbeing-tip-copy {
  width: min(100%, 820px);
  margin-top: 14px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(239, 134, 0, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 249, 238, 0.66));
  box-shadow:
    0 14px 28px rgba(22, 85, 111, 0.07),
    inset 4px 0 0 rgba(239, 134, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.web-wellbeing-tip-copy .web-wellbeing-tip-title {
  margin: 0 0 9px;
  color: #ef8600 !important;
}

.web-wellbeing-tip-copy .web-tip-text {
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3f4548;
  font-size: clamp(1rem, 1.22vw, 1.12rem);
  line-height: 1.5;
}

/* USACHin recomienda: vuelve al tamano amplio anterior en pantalla y salas. */
.tv-worldcup-card {
  padding: 16px 18px;
}

.tv-worldcup-card > .paiep-host-card,
.paiep-host-card--rooms {
  grid-template-columns: minmax(110px, 34%) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 28px);
  min-height: 220px;
  padding: clamp(14px, 2vw, 28px);
  border-radius: 26px;
}

.tv-worldcup-card .paiep-host-mascot,
.paiep-host-card--rooms .paiep-host-mascot {
  width: 100%;
  height: auto;
  max-width: 280px;
  max-height: 92%;
}

.tv-worldcup-card .paiep-host-copy .status-label,
.paiep-host-card--rooms .paiep-host-copy .status-label {
  margin-bottom: 10px;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
}

.tv-worldcup-card .paiep-host-bubble,
.paiep-host-card--rooms .paiep-host-bubble {
  display: block;
  padding: 14px 18px;
  border-radius: 20px 20px 20px 5px;
  font-size: clamp(22px, 2.3vw, 38px);
  line-height: 1.08;
  white-space: normal;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.paiep-host-card--rooms .paiep-host-next,
.tv-worldcup-card .paiep-host-meta,
.paiep-host-card--rooms .paiep-host-meta {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.paiep-host-card--rooms .paiep-host-next {
  margin: 16px 0 6px;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.1;
}

.tv-worldcup-card .paiep-host-meta,
.paiep-host-card--rooms .paiep-host-meta {
  margin-top: 12px;
  font-size: clamp(16px, 1.4vw, 25px);
  line-height: 1.2;
}

.paiep-host-card--rooms .paiep-host-pills {
  gap: 8px;
  margin-top: 18px;
}

.paiep-host-card--rooms .paiep-host-pills span {
  padding: 7px 12px;
  font-size: inherit;
}

/* VISTA-PANTALLA: Usachin recomienda debe priorizar lectura en pantalla. */
.tv-header-side {
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 0.72fr) minmax(390px, 1.9fr);
}

.tv-worldcup-card {
  min-width: 0;
  padding: 0;
}

.tv-worldcup-card > .paiep-host-card {
  grid-template-columns: clamp(56px, 4.7vw, 82px) minmax(260px, 1fr);
  gap: clamp(10px, 0.95vw, 16px);
  min-height: 0;
  height: 100%;
  padding: clamp(11px, 1vw, 15px);
  border-radius: 22px;
}

.tv-worldcup-card > .paiep-host-card::before {
  width: 120px;
  height: 120px;
  right: -48px;
  bottom: -58px;
}

.tv-worldcup-card .paiep-host-mascot {
  width: clamp(58px, 4.7vw, 82px);
  height: clamp(90px, 6.8vw, 120px);
  max-width: none;
  max-height: 100%;
  align-self: end;
}

.tv-worldcup-card .paiep-host-copy {
  min-width: 0;
}

.tv-worldcup-card .paiep-host-copy .status-label {
  margin-bottom: 7px;
  overflow: visible;
  font-size: clamp(0.74rem, 0.82vw, 0.96rem);
  line-height: 1.08;
  white-space: normal;
  text-overflow: clip;
}

.tv-worldcup-card .paiep-host-bubble {
  display: block;
  width: 100%;
  max-width: none;
  padding: clamp(9px, 0.74vw, 12px) clamp(11px, 0.9vw, 15px);
  border-radius: 14px 14px 14px 4px;
  font-size: clamp(0.88rem, 1vw, 1.14rem);
  line-height: 1.18;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.tv-worldcup-card .paiep-host-meta {
  display: block;
  margin-top: 7px;
  overflow: visible;
  font-size: clamp(0.72rem, 0.8vw, 0.94rem);
  line-height: 1.24;
  -webkit-line-clamp: unset;
}

/* Index web: bloque de bienestar con vidrio verde. */
.web-wellbeing-tip-panel {
  border-color: rgba(18, 134, 91, 0.24);
  background:
    radial-gradient(circle at 10% 14%, rgba(73, 201, 142, 0.24), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(190, 239, 209, 0.36), transparent 30%),
    radial-gradient(circle at 86% 92%, rgba(16, 128, 96, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(244, 255, 248, 0.88), rgba(229, 249, 238, 0.74));
  box-shadow:
    0 22px 44px rgba(11, 86, 56, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(1.18);
}

.web-wellbeing-tip-panel::before {
  background: radial-gradient(circle, rgba(54, 168, 112, 0.16), transparent 70%);
}

.web-wellbeing-tip-panel::after {
  background: radial-gradient(circle, rgba(130, 215, 164, 0.16), transparent 70%);
}

.web-wellbeing-tip-panel .eyebrow {
  color: #0f8a5f;
}

.web-wellbeing-tip-panel .web-wellbeing-copy h2 {
  color: #123f38;
}

.web-wellbeing-tip-panel .web-wellbeing-copy p:not(.eyebrow):not(.web-wellbeing-tip-title):not(.web-tip-text) {
  color: rgba(18, 63, 56, 0.72);
}

/* Accesibilidad: contenido útil para lectores de pantalla y salto rápido por teclado. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10000;
  padding: 12px 16px;
  border: 2px solid rgba(19, 122, 79, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #123f38;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(18, 63, 56, 0.18);
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  outline: 3px solid rgba(239, 134, 0, 0.38);
  outline-offset: 3px;
  transform: translateY(0);
}

/* Index web: navegación dentro de filtros, siempre disponible al desplazarse. */
.web-discovery-controls,
.web-week-controls {
  z-index: 95;
  align-items: end;
}

.web-discovery-controls {
  grid-template-columns:
    minmax(150px, 0.78fr)
    minmax(210px, 1.08fr)
    minmax(128px, 0.68fr)
    minmax(128px, 0.68fr)
    minmax(128px, 0.68fr)
    minmax(245px, 1.32fr)
    max-content;
  gap: 12px;
}

.web-week-controls {
  grid-template-columns: minmax(190px, 250px) minmax(280px, 1fr);
}

.web-controls-nav {
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 4px;
}

.web-discovery-controls label,
.web-week-controls label {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
}

.web-discovery-reset {
  align-self: end;
  min-height: 46px;
  white-space: nowrap;
}

.skip-link:not(:focus):not(:focus-visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 1100px) {
  .web-discovery-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-discovery-reset {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .web-discovery-controls,
  .web-week-controls {
    grid-template-columns: 1fr;
  }

  .web-controls-nav {
    width: 100%;
  }
}

/* Index web: elimina la franja celeste superior que dejaba ver el fondo antes del hero. */
.web-expanded-app {
  margin-top: 0;
  padding-top: 0;
}

/* Index web: USACHin integrado naturalmente en el espacio libre del bloque verde. */
.web-wellbeing-tip-panel {
  position: relative;
}

.web-wellbeing-tip-panel .web-wellbeing-actions {
  position: static;
}

.web-tip-usachin-image {
  position: absolute;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(8px, 1.3vw, 18px);
  z-index: 0;
  display: block;
  width: clamp(150px, 13vw, 220px);
  max-height: clamp(150px, 14vw, 230px);
  margin: 0;
  object-fit: contain;
  opacity: 0.96;
  pointer-events: none;
  filter: drop-shadow(0 18px 22px rgba(18, 63, 56, 0.18));
}

.web-tip-usachin-image[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .web-tip-usachin-image {
    position: static;
    width: min(48vw, 170px);
    margin-left: auto;
    margin-right: 0;
  }
}

/* Vista local para cargar planillas XLSX por arrastre. */
.xlsx-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(242, 143, 28, 0.16), transparent 30rem),
    radial-gradient(circle at 82% 10%, rgba(38, 151, 136, 0.18), transparent 32rem),
    linear-gradient(135deg, #f8f3e9 0%, #eaf6f5 100%);
}

.xlsx-update-app {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 40px 0 64px;
  display: grid;
  gap: 22px;
}

.xlsx-update-hero,
.xlsx-update-card,
.xlsx-results-card,
.xlsx-help-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 48, 64, 0.12);
  backdrop-filter: blur(18px);
}

.xlsx-update-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 30px 34px;
}

.xlsx-update-hero h1 {
  margin: 0;
  color: #123047;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.xlsx-update-hero .muted {
  max-width: 760px;
  margin-top: 12px;
  font-size: 1.08rem;
}

.xlsx-update-card,
.xlsx-results-card,
.xlsx-help-card {
  padding: 26px;
}

.xlsx-drop-zone {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  min-height: 210px;
  padding: 26px;
  border: 3px dashed rgba(17, 126, 119, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(17, 126, 119, 0.08), rgba(242, 143, 28, 0.07)),
    rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.xlsx-drop-zone.is-dragging,
.xlsx-drop-zone:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: #117e77;
  background:
    linear-gradient(135deg, rgba(17, 126, 119, 0.16), rgba(242, 143, 28, 0.12)),
    rgba(255, 255, 255, 0.8);
}

.xlsx-drop-icon {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #117e77, #1a9c91);
  color: #fff;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 38px rgba(17, 126, 119, 0.25);
}

.xlsx-drop-zone h2 {
  margin: 0 0 8px;
  color: #102f45;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.xlsx-drop-zone p {
  margin: 0;
  color: #44515a;
  font-size: 1.08rem;
}

.xlsx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.xlsx-actions button:disabled,
.xlsx-generator-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(0.35);
}

.xlsx-status {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(18, 48, 71, 0.08);
  color: #123047;
  font-weight: 800;
}

.xlsx-status[data-mode="success"] {
  background: rgba(19, 137, 95, 0.13);
  color: #0b704b;
}

.xlsx-status[data-mode="error"] {
  background: rgba(194, 65, 12, 0.13);
  color: #9a3412;
}

.xlsx-status[data-mode="loading"] {
  background: rgba(14, 116, 144, 0.13);
  color: #0e7490;
}

.xlsx-generator-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(15, 88, 96, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(228, 250, 242, 0.62)),
    rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.xlsx-generator-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.xlsx-generator-heading h3 {
  margin: 4px 0 0;
  color: #123047;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.xlsx-progress-shell {
  position: relative;
  overflow: hidden;
  height: 18px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(15, 48, 64, 0.1);
  box-shadow: inset 0 1px 4px rgba(12, 30, 40, 0.16);
}

.xlsx-progress-shell span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(20, 184, 166, 0.95), rgba(37, 99, 235, 0.92)),
    #0f8b7f;
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.45);
  transition: width 420ms ease;
}

.xlsx-progress-shell.is-running span {
  animation: xlsx-progress-flow 1.4s ease-in-out infinite;
}

.xlsx-generation-status {
  margin: 14px 0 0;
  color: #214354;
  font-weight: 800;
}

.xlsx-generation-status[data-mode="success"] {
  color: #0b704b;
}

.xlsx-generation-status[data-mode="error"] {
  color: #9a3412;
}

.xlsx-generation-detail {
  min-height: 1.35em;
  margin: 8px 0 0;
  color: #5a6973;
  font-size: 0.96rem;
}

@keyframes xlsx-progress-flow {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }

  50% {
    filter: hue-rotate(12deg) brightness(1.08);
  }

  100% {
    filter: hue-rotate(0deg) brightness(1);
  }
}

.xlsx-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.xlsx-stat {
  min-height: 108px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(17, 126, 119, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.xlsx-stat strong {
  display: block;
  color: #f27618;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.xlsx-stat span {
  display: block;
  margin-top: 10px;
  color: #42515a;
  font-weight: 800;
}

.xlsx-preview-panel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 48, 64, 0.12);
}

.xlsx-preview-panel h3,
.xlsx-help-card h2 {
  margin: 0 0 14px;
  color: #123047;
}

.xlsx-preview-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.xlsx-preview-list li {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(17, 126, 119, 0.08);
  color: #123047;
}

.xlsx-preview-list span {
  color: #5b6770;
  font-weight: 700;
}

.xlsx-help-card ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #263742;
  line-height: 1.7;
  font-weight: 650;
}

@media (max-width: 820px) {
  .xlsx-update-app {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .xlsx-update-hero,
  .xlsx-drop-zone {
    grid-template-columns: 1fr;
  }

  .xlsx-update-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .xlsx-summary-grid,
  .xlsx-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xlsx-generator-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
