body.web-pwa-mode {
  min-height: 100vh;
  --ui-titlebar-height: 0px;
  --app-titlebar-height: 0px;
}

body.web-pwa-mode #updateAvailableBtn {
  display: none !important;
}

body.web-pwa-mode .player-container {
  box-sizing: border-box;
  min-height: 0;
  width: 100% !important;
  max-width: 100% !important;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)) 16px;
}

.web-pwa-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
  background: #121316;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  isolation: isolate;
}

.web-pwa-auth-backdrop::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 42% at 18% 28%, rgba(122, 185, 201, 0.34), transparent 62%),
    radial-gradient(ellipse 48% 40% at 82% 22%, rgba(200, 204, 210, 0.14), transparent 58%),
    radial-gradient(ellipse 58% 48% at 72% 78%, rgba(70, 70, 74, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 55% at 40% 100%, rgba(14, 15, 17, 0.98), transparent 55%),
    linear-gradient(158deg, #3a3b40 0%, #2a2b30 28%, #1c1d21 58%, #101114 100%);
  transform: translate3d(0, 0, 0) scale(1.04);
  animation: web-pwa-auth-ambient 24s ease-in-out infinite alternate;
  will-change: transform;
}

.web-pwa-auth-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(232, 240, 244, 0.05) 0%, transparent 28%),
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.03) 52%, transparent 64%);
  opacity: 0.85;
}

.web-pwa-auth-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.web-pwa-auth-card {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 44px));
  max-height: min(580px, calc(100dvh - 44px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(198, 204, 212, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    linear-gradient(168deg, #3a3b40 0%, #2c2d32 46%, #222327 100%);
  color: #f0f0f1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 28px 56px rgba(0, 0, 0, 0.48),
    0 8px 18px rgba(0, 0, 0, 0.28);
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  transform: perspective(1400px) translateZ(0) rotateX(0.35deg);
}

.web-pwa-auth-card__titlebar {
  flex: 0 0 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  background: linear-gradient(180deg, #4a4b50 0%, #3c3d42 100%);
  border-bottom: 1px solid rgba(198, 204, 212, 0.12);
}

.web-pwa-auth-card__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b8bcc4;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
}

.web-pwa-auth-card__title i {
  font-size: 0.88rem;
  color: #9aa3ad;
}

.web-pwa-auth-card__body {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 24px 16px;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.web-pwa-auth-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}

.web-pwa-auth-card__logo {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
  animation: web-pwa-auth-logo-breathe 5.5s ease-in-out infinite;
}

.web-pwa-auth-card__logo:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

.web-pwa-auth-card h1 {
  margin: 0;
  color: #f0f0f1;
  font-size: 28px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: 0;
}

.web-pwa-auth-card p {
  margin: 0;
  color: #8e8e93;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
  text-align: center;
}

.web-pwa-auth-card__message {
  min-height: 18px;
  width: 100%;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.web-pwa-auth-card__message-title {
  display: block;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.web-pwa-auth-card__message-detail {
  display: block;
  color: inherit;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.92;
}

.web-pwa-auth-card__message[data-tone="danger"]:not(:empty) {
  color: #ff3b4f;
}

.web-pwa-auth-view {
  width: 100%;
}

.web-pwa-auth-view[hidden] {
  display: none !important;
}

.web-pwa-auth-primary-row {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.web-pwa-auth-primary-row[hidden] {
  display: none !important;
}

.web-pwa-auth-primary-row > .web-pwa-auth-view {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

@property --rl-auth-focus-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.web-pwa-auth-field {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 10px;
  isolation: isolate;
}

.web-pwa-auth-field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--rl-auth-focus-angle, 0deg),
    transparent 0deg,
    rgba(20, 21, 24, 0) 48deg,
    #1a1b1e 92deg,
    #4a4c52 128deg,
    #9a9ea6 158deg,
    #2c2d32 198deg,
    rgba(58, 59, 64, 0.25) 236deg,
    transparent 288deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.web-pwa-auth-field:focus-within::before {
  opacity: 1;
  animation: web-pwa-auth-focus-orbit 2.6s linear infinite;
}

.web-pwa-auth-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  color: #8e8e93;
  font-size: 0.86rem;
  pointer-events: none;
}

.web-pwa-auth-card input,
.web-pwa-auth-card select {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(84, 84, 88, 0.65);
  border-radius: 10px;
  background: rgb(58, 58, 60);
  color: #f0f0f1;
  padding: 0 34px;
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0;
  transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.web-pwa-auth-consent-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.web-pwa-auth-location-consent {
  width: auto;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #b8bcc4;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
  cursor: pointer;
}

.web-pwa-auth-location-consent > span {
  color: #b8bcc4;
}

.web-pwa-auth-card .web-pwa-auth-terms-trigger {
  width: auto;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9ec9d8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.web-pwa-auth-card .web-pwa-auth-terms-trigger:focus-visible {
  outline: 2px solid #7ab9c9;
  outline-offset: 3px;
}

.web-pwa-auth-card .web-pwa-auth-branch-all {
  width: auto;
  margin-top: 8px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9ec9d8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.web-pwa-auth-card .web-pwa-auth-branch-all:focus-visible {
  outline: 2px solid #7ab9c9;
  outline-offset: 3px;
}

.web-pwa-auth-card .web-pwa-auth-location-consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #5a8fa3;
}

.web-pwa-auth-terms {
  width: min(360px, calc(100vw - 44px));
  margin: auto;
  padding: 0;
  border: 1px solid rgba(84, 84, 88, 0.84);
  border-radius: 14px;
  background: rgb(44, 44, 46);
  color: #f0f0f1;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.web-pwa-auth-terms::backdrop {
  background: rgba(8, 10, 14, 0.62);
}

.web-pwa-auth-terms__content {
  display: grid;
  gap: 12px;
  padding: 20px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.web-pwa-auth-terms h2,
.web-pwa-auth-terms p {
  margin: 0;
}

.web-pwa-auth-terms h2 {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 780;
}

.web-pwa-auth-terms p {
  color: #c7c7cc;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 540;
}

.web-pwa-auth-card .web-pwa-auth-terms__close {
  min-height: 38px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f0f0f1;
}

.web-pwa-auth-card select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238e8e93' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 12px;
}

.web-pwa-auth-card select option {
  background: #1f2023;
  color: #f0f0f1;
  font-weight: 600;
}

.web-pwa-auth-card input:focus,
.web-pwa-auth-card input:focus-visible,
.web-pwa-auth-card select:focus,
.web-pwa-auth-card select:focus-visible {
  outline: none !important;
  border-color: rgba(120, 124, 132, 0.55) !important;
  box-shadow: none !important;
  transform: none !important;
}

.web-pwa-auth-card .web-pwa-auth-location-consent input:focus-visible {
  outline: 1px solid #9a9ea6 !important;
  outline-offset: 2px !important;
  border-color: transparent !important;
}

.web-pwa-auth-card input::placeholder {
  color: #8e8e93;
}

.web-pwa-auth-card button {
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--rl-soft-radius, 8px);
  background: #5a8fa3;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s ease, border-color 0.15s ease;
}

.web-pwa-auth-primary-row > .web-pwa-auth-submit {
  flex: 0 0 25%;
  width: 25%;
  max-width: 25%;
  min-width: 0;
  align-self: stretch;
}

.web-pwa-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  position: relative;
  z-index: 2;
  padding: 0 10px;
  background: linear-gradient(180deg, #6aa3b6 0%, #4f8598 100%);
  border-color: rgba(229, 248, 252, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 14px rgba(0, 0, 0, 0.22);
}

.web-pwa-auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  margin-right: auto;
  margin-left: 0;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  position: relative;
  z-index: 2;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f0f0f1 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none;
}

.web-pwa-auth-submit[hidden],
.web-pwa-auth-tv-trigger[hidden],
.web-pwa-auth-secondary[hidden] {
  display: none !important;
}

.web-pwa-auth-card button:hover:not(:disabled) {
  filter: brightness(1.1);
}

.web-pwa-auth-card button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.web-pwa-auth-error {
  min-height: 16px;
  margin-top: 8px;
  color: var(--accent-danger, #f87171);
  font-size: 12px;
  font-weight: 650;
}

.web-pwa-auth-card__footer {
  flex: 0 0 auto;
  min-height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 7px 18px;
  border-top: 1px solid rgba(198, 204, 212, 0.12);
  background: linear-gradient(180deg, #3c3d42 0%, #323338 100%);
  color: #9aa0a8;
  font-size: 12px;
  font-weight: 600;
}

.web-pwa-auth-card__version {
  font-size: 0.78em;
  font-weight: 420;
  opacity: 0.72;
}

.web-pwa-auth-card__footer a {
  color: inherit;
  text-decoration: none;
}

.web-pwa-auth-card__footer a:hover {
  color: #f0f0f1;
}

.web-pwa-session-ended-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 10, 14, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.web-pwa-session-ended-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.web-pwa-session-ended-card {
  width: min(390px, calc(100vw - 44px));
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(84, 84, 88, 0.84);
  border-radius: 18px;
  background: rgb(44, 44, 46);
  color: #f0f0f1;
  padding: 24px;
  text-align: center;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
}

.web-pwa-session-ended-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff9500;
  color: #111214;
  font-weight: 900;
  font-size: 1.3rem;
}

.web-pwa-session-ended-card h2 {
  margin: 2px 0 0;
  font-size: 1.24rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.web-pwa-session-ended-card__message {
  margin: 0;
  color: #c7c7cc;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 600;
}

.web-pwa-session-ended-card__location {
  margin: -8px 0 0;
  color: #9ecdff;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 700;
}

.web-pwa-session-ended-card__location[hidden] {
  display: none;
}

.web-pwa-session-ended-card__guidance {
  margin: -4px 0 2px;
  color: #aeb0b5;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 540;
}

.web-pwa-session-ended-card__guidance a {
  color: #62b6ff;
  font-weight: 750;
  text-underline-offset: 2px;
}

.web-pwa-session-ended-card__actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.web-pwa-session-ended-card__action {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--rl-soft-radius, 8px);
  background: #0077cc;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.web-pwa-session-ended-card__action--primary {
  grid-column: 1 / -1;
}

.web-pwa-session-ended-card__action--secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f1;
}

.web-pwa-session-ended-card__action:hover {
  filter: brightness(1.08);
}

@media (max-width: 420px) {
  .web-pwa-session-ended-card__actions {
    grid-template-columns: 1fr;
  }

  .web-pwa-session-ended-card__action--primary {
    grid-column: auto;
  }
}

@keyframes web-pwa-auth-logo-breathe {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.92;
  }

  to {
    transform: translateY(-2px) scale(1.03);
    opacity: 1;
  }
}

@keyframes web-pwa-auth-ambient {
  from {
    transform: translate3d(-1.2%, 0.6%, 0) scale(1.03) rotate(-0.35deg);
  }

  to {
    transform: translate3d(1.4%, -0.9%, 0) scale(1.07) rotate(0.4deg);
  }
}

@keyframes web-pwa-auth-focus-orbit {
  to {
    --rl-auth-focus-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-pwa-auth-backdrop::before,
  .web-pwa-auth-card__logo {
    animation: none;
  }

  .web-pwa-auth-card {
    transform: none;
  }

  .web-pwa-auth-field:focus-within::before {
    animation: none;
    background: linear-gradient(
      135deg,
      rgba(154, 158, 166, 0.85) 0%,
      rgba(42, 43, 48, 0.2) 38%,
      rgba(26, 27, 30, 0.9) 68%,
      transparent 100%
    );
  }
}

body.performance-lite .web-pwa-auth-backdrop::before,
body.performance-lite .web-pwa-auth-card__logo {
  animation: none;
}

body.performance-lite .web-pwa-auth-card {
  transform: none;
}

body.performance-lite .web-pwa-auth-field:focus-within::before {
  animation: none;
  background: linear-gradient(
    135deg,
    rgba(154, 158, 166, 0.85) 0%,
    rgba(42, 43, 48, 0.2) 38%,
    rgba(26, 27, 30, 0.9) 68%,
    transparent 100%
  );
}

@media (max-width: 760px) {
  .web-pwa-auth-backdrop {
    padding:
      max(12px, env(safe-area-inset-top, 0px))
      14px
      max(12px, env(safe-area-inset-bottom, 0px));
  }

  .web-pwa-auth-card {
    width: min(440px, calc(100vw - 28px));
    max-height: min(640px, calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    min-height: 0;
    border-radius: 14px;
    transform: none;
  }

  .web-pwa-auth-card__titlebar {
    min-height: 38px;
    padding: 8px 16px;
  }

  .web-pwa-auth-card__title {
    gap: 8px;
    font-size: 0.8rem;
  }

  .web-pwa-auth-card__body {
    padding: 14px 16px 12px;
    gap: 10px;
  }

  .web-pwa-auth-card__brand {
    margin-bottom: 0;
  }

  .web-pwa-auth-card__logo {
    width: 34px;
    height: 34px;
    margin-bottom: 7px;
  }

  .web-pwa-auth-card h1 {
    font-size: 24px;
  }

  .web-pwa-auth-card p {
    font-size: 12.5px;
  }

  .web-pwa-auth-card__message {
    min-height: 16px;
    margin-bottom: 4px !important;
  }

  .web-pwa-auth-card input,
  .web-pwa-auth-card select {
    min-height: 40px;
    padding: 0 32px;
    font-size: 12.5px;
  }

  .web-pwa-auth-card button {
    min-height: 36px;
    font-size: 12px;
  }

  .web-pwa-auth-actions {
    gap: 7px;
  }

  .web-pwa-auth-card__footer {
    min-height: 36px;
    font-size: 11.5px;
  }
}

.web-pwa-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483644;
  max-width: min(336px, calc(100vw - 36px));
  padding: 10px 11px;
  border-radius: 13px;
  border: 1px solid var(--border-secondary-solid, var(--theme-accent-strong, #334155));
  background: var(--bg-secondary-solid, #0f172a);
  color: var(--rl-admin-text, var(--text-primary, #f8fafc));
  box-shadow: 0 14px 38px var(--bg-body-fixed, #020617);
  transform: translateY(8px);
  pointer-events: none;
  visibility: hidden;
  transition: transform 180ms ease, visibility 0ms linear 180ms;
}

.web-pwa-toast.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 180ms ease;
}

.playlist-item.web-pwa-loading {
  opacity: 0.72;
}

/* PWA pillar identity: music = blue, announcements = green, calls = orange. */
body.web-pwa-mode {
  --rl-pillar-music: #0ea5e9;
  --rl-pillar-music-strong: #2563eb;
  --rl-pillar-music-soft: rgba(14, 165, 233, 0.16);
  --rl-pillar-music-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 42%, #2563eb 100%);
  --rl-pillar-announcement: #22c55e;
  --rl-pillar-announcement-strong: #15803d;
  --rl-pillar-announcement-soft: rgba(34, 197, 94, 0.16);
  --rl-pillar-announcement-gradient: linear-gradient(135deg, #86efac 0%, #22c55e 45%, #15803d 100%);
  --rl-pillar-call: #f97316;
  --rl-pillar-call-strong: #c2410c;
  --rl-pillar-call-soft: rgba(249, 115, 22, 0.16);
  --rl-pillar-call-gradient: linear-gradient(135deg, #fdba74 0%, #f97316 46%, #c2410c 100%);
  --accent-music: var(--rl-pillar-music) !important;
  --accent-announcement: var(--rl-pillar-announcement) !important;
  --announcement-shuffle-active: var(--rl-pillar-announcement) !important;
  --accent-tts: var(--rl-pillar-call) !important;
  --accent-music-bg: var(--rl-pillar-music-soft) !important;
  --accent-announcement-bg: var(--rl-pillar-announcement-soft) !important;
  --accent-tts-bg: var(--rl-pillar-call-soft) !important;
}

body.web-pwa-mode .volume-control-group.volume-music {
  --fader-fill-gradient: var(--rl-pillar-music-gradient);
  --fader-accent: var(--rl-pillar-music);
}

body.web-pwa-mode .volume-control-group.volume-announcement {
  --fader-fill-gradient: var(--rl-pillar-announcement-gradient);
  --fader-accent: var(--rl-pillar-announcement);
}

body.web-pwa-mode .volume-control-group.volume-call {
  --fader-fill-gradient: var(--rl-pillar-call-gradient);
  --fader-accent: var(--rl-pillar-call);
}

body.web-pwa-mode :is(
  #musicPanelTitle .panel-title-icon,
  #music-panel-header .panel-title-icon,
  .playlist-tabs .playlist-tab[data-tab="music"] i,
  #musicCatalogModal .modal-header i,
  #musicCatalogModal .track-catalog-title-row i,
  #trackCatalogModal .modal-header i,
  #trackCatalogModal .track-catalog-title-row i
) {
  color: var(--rl-pillar-music) !important;
  background: var(--rl-pillar-music-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.28));
}

body.web-pwa-mode :is(
  #announcements-panel-header .panel-title-icon,
  #announcements-panel-header .icon-announcement,
  #music-playlist-panel [data-tab-content="announcement"] .panel-title-icon,
  .playlist-tabs .playlist-tab[data-tab="announcement"] i,
  #spotScheduleModal .modal-header i,
  #track-move-confirmation-modal .track-move-choice-btn.announcement i
) {
  color: var(--rl-pillar-announcement) !important;
  background: var(--rl-pillar-announcement-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.28));
}

body.web-pwa-mode :is(
  #chamadas-panel-header .panel-title-icon,
  #createCallModal .modal-header i,
  #manualCallShareModal .modal-header i,
  #voiceInfoModal .modal-header i
) {
  color: var(--rl-pillar-call) !important;
  background: var(--rl-pillar-call-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.3));
}

body.web-pwa-mode #createCallModal.create-call-purpose-announcement .modal-header i {
  color: var(--rl-pillar-announcement) !important;
  background: var(--rl-pillar-announcement-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.28));
}

body.web-pwa-mode :is(#musicCatalogModal, #trackCatalogModal) {
  --theme-accent: var(--rl-pillar-music);
  --theme-accent-strong: var(--rl-pillar-music-strong);
  --theme-accent-bg-soft: var(--rl-pillar-music-soft);
  --theme-accent-gradient: var(--rl-pillar-music-gradient);
}

body.web-pwa-mode[data-primary-panel-tab="player"] #addMediaModal,
body.web-pwa-mode[data-primary-panel-tab="music"] #addMediaModal,
body.web-pwa-mode:not([data-primary-panel-tab]) #addMediaModal {
  --theme-accent: var(--rl-pillar-music);
  --theme-accent-strong: var(--rl-pillar-music-strong);
  --theme-accent-bg-soft: var(--rl-pillar-music-soft);
  --theme-accent-gradient: var(--rl-pillar-music-gradient);
}

body.web-pwa-mode[data-primary-panel-tab="announcement"] #addMediaModal {
  --theme-accent: var(--rl-pillar-announcement);
  --theme-accent-strong: var(--rl-pillar-announcement-strong);
  --theme-accent-bg-soft: var(--rl-pillar-announcement-soft);
  --theme-accent-gradient: var(--rl-pillar-announcement-gradient);
}

body.web-pwa-mode :is(#spotScheduleModal) {
  --theme-accent: var(--rl-pillar-announcement);
  --theme-accent-strong: var(--rl-pillar-announcement-strong);
  --theme-accent-bg-soft: var(--rl-pillar-announcement-soft);
  --theme-accent-gradient: var(--rl-pillar-announcement-gradient);
}

body.web-pwa-mode :is(#createCallModal, #manualCallShareModal, #voiceInfoModal) {
  --theme-accent: var(--rl-pillar-call);
  --theme-accent-strong: var(--rl-pillar-call-strong);
  --theme-accent-bg-soft: var(--rl-pillar-call-soft);
  --theme-accent-gradient: var(--rl-pillar-call-gradient);
}

body.web-pwa-mode #createCallModal.create-call-purpose-announcement {
  --theme-accent: var(--rl-pillar-announcement);
  --theme-accent-strong: var(--rl-pillar-announcement-strong);
  --theme-accent-bg-soft: var(--rl-pillar-announcement-soft);
  --theme-accent-gradient: var(--rl-pillar-announcement-gradient);
}

body.web-pwa-mode :is(
  #musicCatalogModal .modal-header,
  #musicCatalogModal .track-catalog-header,
  #trackCatalogModal .modal-header,
  #trackCatalogModal .track-catalog-header
) {
  border-top: 2px solid var(--rl-pillar-music) !important;
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.22), 0 10px 30px rgba(14, 165, 233, 0.08);
}

body.web-pwa-mode[data-primary-panel-tab="player"] #addMediaModal .modal-header,
body.web-pwa-mode[data-primary-panel-tab="music"] #addMediaModal .modal-header,
body.web-pwa-mode:not([data-primary-panel-tab]) #addMediaModal .modal-header {
  border-top: 2px solid var(--rl-pillar-music) !important;
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.22), 0 10px 30px rgba(14, 165, 233, 0.08);
}

body.web-pwa-mode #spotScheduleModal .modal-header,
body.web-pwa-mode[data-primary-panel-tab="announcement"] #addMediaModal .modal-header {
  border-top: 2px solid var(--rl-pillar-announcement) !important;
  box-shadow: inset 0 1px 0 rgba(134, 239, 172, 0.22), 0 10px 30px rgba(34, 197, 94, 0.08);
}

body.web-pwa-mode :is(#createCallModal, #manualCallShareModal, #voiceInfoModal) .modal-header {
  border-top: 2px solid var(--rl-pillar-call) !important;
  box-shadow: inset 0 1px 0 rgba(253, 186, 116, 0.22), 0 10px 30px rgba(249, 115, 22, 0.08);
}

body.web-pwa-mode #createCallModal.create-call-purpose-announcement .modal-header {
  border-top-color: var(--rl-pillar-announcement);
  box-shadow: inset 0 1px 0 rgba(134, 239, 172, 0.22), 0 10px 30px rgba(34, 197, 94, 0.08);
}

body.web-pwa-mode :is(
  #addMediaModal .add-media-option-icon i,
  #addMediaModal .modal-header i
) {
  color: var(--theme-accent) !important;
  background: var(--theme-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--theme-accent) 32%, transparent));
}

body.web-pwa-mode #addMediaGeneratorBtn .add-media-option-icon i {
  color: var(--rl-pillar-announcement) !important;
  background: var(--rl-pillar-announcement-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.28));
}

body.web-pwa-mode :is(
  #musicCatalogModal .modal-button.primary,
  #musicCatalogModal .music-catalog-top-action,
  #trackCatalogModal .modal-button.primary
) {
  border-color: rgba(14, 165, 233, 0.38);
  background: var(--rl-pillar-music-gradient);
  color: #ffffff;
}

body.web-pwa-mode :is(#spotScheduleModal .modal-footer .modal-button.primary, #saveSpotScheduleBtn) {
  border-top-color: var(--rl-pillar-announcement-strong, var(--accent-announcement, #16a34a)) !important;
  color: var(--rl-pillar-announcement-strong, var(--accent-announcement, #16a34a)) !important;
  background: var(--rl-admin-control-bg, var(--bg-secondary-solid)) !important;
}

body.web-pwa-mode :is(#createCallModal .save-call-button, #manualCallShareModal .save-call-button) {
  border-color: rgba(249, 115, 22, 0.38);
  background: var(--rl-pillar-call-gradient);
  color: #ffffff;
}

body.web-pwa-mode #createCallModal.create-call-purpose-announcement .save-announcement-button {
  border-color: rgba(34, 197, 94, 0.38);
  background: var(--rl-pillar-announcement-gradient);
  color: #ffffff;
}

:is(button, a, input, select, [tabindex="0"]):not([data-rl-focus="subtle"]):focus-visible,
body.smart-tv-mode :is(button, a, input, select, .tv-navigable):not([data-rl-focus="subtle"]):focus,
body.smart-tv-mode :is(button, a, input, select, .tv-navigable):not([data-rl-focus="subtle"]).tv-focused {
  outline: none !important;
  box-shadow: 0 0 0 4px #3b82f6, 0 0 24px rgba(59, 130, 246, 0.8) !important;
  border-color: #3b82f6 !important;
  transform: scale(1.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.web-pwa-auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  position: relative;
  min-height: 38px;
  overflow: hidden;
}

.web-pwa-auth-actions[hidden],
.web-pwa-auth-consent-row[hidden],
.web-pwa-auth-card__titlebar[hidden],
.web-pwa-auth-card__brand[hidden],
.web-pwa-auth-card__footer[hidden],
.web-pwa-auth-card__message[hidden] {
  display: none !important;
}

.web-pwa-auth-card .web-pwa-auth-tv-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  margin-top: 0;
  margin-left: auto;
  font: 650 12.5px/1.2 inherit;
  color: #e8eef2;
  background: linear-gradient(180deg, rgba(90, 90, 94, 0.72) 0%, rgba(58, 58, 62, 0.9) 100%);
  border: 1px solid rgba(198, 204, 212, 0.18);
  border-radius: var(--rl-soft-radius, 8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    visibility 420ms ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.web-pwa-auth-card .web-pwa-auth-tv-trigger:not(.is-revealed) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-16px, 0, 0);
}

.web-pwa-auth-card .web-pwa-auth-tv-trigger.is-revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .web-pwa-auth-card .web-pwa-auth-tv-trigger {
    transition: opacity 160ms ease, visibility 160ms ease, background-color 0.15s ease, border-color 0.15s ease;
  }

  .web-pwa-auth-card .web-pwa-auth-tv-trigger:not(.is-revealed),
  .web-pwa-auth-card .web-pwa-auth-tv-trigger.is-revealed {
    transform: none;
  }
}

.web-pwa-auth-card .web-pwa-auth-tv-trigger:hover {
  background: linear-gradient(180deg, rgba(104, 104, 110, 0.82) 0%, rgba(68, 68, 74, 0.96) 100%);
  border-color: rgba(198, 204, 212, 0.28);
}

.web-pwa-auth-submit span,
.web-pwa-auth-card .web-pwa-auth-tv-trigger span,
.web-pwa-auth-secondary span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-pwa-auth-card.web-pwa-auth-card--tv {
  width: min(460px, calc(100vw - 32px));
  max-height: min(92dvh, calc(100dvh - 24px));
  min-height: 0;
  transform: none;
}

.web-pwa-auth-card--tv .web-pwa-auth-card__body {
  padding: 20px 22px 18px;
  gap: 0;
  overflow: hidden;
  justify-content: center;
}

.web-pwa-auth-view--tv {
  width: 100%;
}

.web-pwa-tv-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: center;
}

.web-pwa-tv-status {
  margin: 0;
  min-height: 1.35em;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(240, 240, 241, 0.82);
}

.web-pwa-tv-status[data-tone="danger"] {
  color: #fca5a5;
}

.web-pwa-tv-status[data-tone="success"] {
  color: #86efac;
}

.web-pwa-tv-code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--rl-soft-radius, 8px);
}

.web-pwa-tv-code-label {
  max-width: 22rem;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
}

.web-pwa-tv-code-display {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.1;
}

.web-pwa-tv-countdown {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(240, 240, 241, 0.72);
}

.web-pwa-tv-countdown strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #9ec9d8;
}

.web-pwa-tv-countdown.is-urgent strong {
  color: #fbbf24;
}

.web-pwa-tv-countdown[hidden] {
  display: none !important;
}

.web-pwa-tv-qr-box {
  position: relative;
  width: min(168px, 42vw);
  height: min(168px, 42vw);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #ffffff;
  border-radius: var(--rl-soft-radius, 8px);
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  box-sizing: border-box;
}

.web-pwa-tv-qr-native {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  line-height: 0;
}

.web-pwa-tv-qr-native svg,
.web-pwa-tv-qr-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.web-pwa-tv-qr-img[hidden],
.web-pwa-tv-qr-spinner[hidden],
.web-pwa-tv-qr-native[hidden] {
  display: none !important;
}

.web-pwa-tv-qr-spinner {
  font-size: 28px;
  color: #0284c7;
}

.web-pwa-tv-instructions {
  margin: 0;
  max-width: 28rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.web-pwa-tv-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.web-pwa-auth-card .web-pwa-tv-back,
.web-pwa-auth-card .web-pwa-tv-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  margin-top: 0;
  padding: 11px 18px;
  font: 600 0.92rem/1 inherit;
  color: #f0f0f1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--rl-soft-radius, 8px);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.web-pwa-auth-card .web-pwa-tv-back:hover,
.web-pwa-auth-card .web-pwa-tv-help:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f0f0f1;
  filter: none;
}

@media (min-width: 1280px) and (max-width: 1366px) {
  body.smart-tv-mode .web-pwa-auth-card--tv {
    width: min(520px, calc(100vw - 48px));
  }
  body.smart-tv-mode .web-pwa-tv-code-display {
    font-size: 42px;
  }
  body.smart-tv-mode .web-pwa-tv-qr-box {
    width: 190px;
    height: 190px;
  }
}

@media (min-width: 1920px) and (max-width: 2560px) {
  body.smart-tv-mode .web-pwa-auth-card--tv {
    width: min(560px, calc(100vw - 64px));
  }
  body.smart-tv-mode .web-pwa-tv-code-display {
    font-size: 48px;
  }
  body.smart-tv-mode .web-pwa-tv-qr-box {
    width: 220px;
    height: 220px;
  }
  body.smart-tv-mode .web-pwa-tv-instructions {
    font-size: 1.05rem;
  }
}

@media (min-width: 3840px) {
  body.smart-tv-mode .web-pwa-auth-card--tv {
    width: min(760px, calc(100vw - 96px));
  }
  body.smart-tv-mode .web-pwa-tv-code-display {
    font-size: 64px;
    letter-spacing: 0.22em;
  }
  body.smart-tv-mode .web-pwa-tv-qr-box {
    width: 300px;
    height: 300px;
    padding: 16px;
  }
  body.smart-tv-mode .web-pwa-tv-instructions,
  body.smart-tv-mode .web-pwa-tv-status {
    font-size: 1.35rem;
  }
  body.smart-tv-mode .web-pwa-tv-back,
  body.smart-tv-mode .web-pwa-tv-help {
    min-width: 200px;
    padding: 16px 28px;
    font-size: 1.2rem;
  }
}

/* reset choice */
.web-pwa-reset-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg-body-fixed, #101820) 58%, rgba(0, 0, 0, 0.78));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.web-pwa-reset-backdrop.is-visible {
  display: flex;
}

.web-pwa-reset-card {
  width: min(460px, 100%);
  max-height: min(620px, calc(100dvh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--rl-soft-radius, 8px);
  border: 1px solid var(--border-primary);
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg-secondary-solid, var(--bg-secondary)) 96%, var(--theme-accent) 4%) 0%, var(--bg-primary, var(--bg-secondary)) 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent);
  padding: 18px;
  color: var(--text-primary);
}

.web-pwa-reset-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 750;
}

.web-pwa-reset-card__lead {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
}

.web-pwa-reset-card__actions {
  display: grid;
  gap: 8px;
}

.web-pwa-reset-option,
.web-pwa-reset-cancel {
  display: grid;
  gap: 4px;
  text-align: left;
  border-radius: var(--rl-soft-radius, 8px);
  border: 1px solid var(--border-primary);
  background: color-mix(in srgb, var(--bg-tertiary-solid, var(--bg-tertiary)) 84%, transparent);
  color: var(--text-primary);
  padding: 12px 12px;
  cursor: pointer;
  font: inherit;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.web-pwa-reset-option strong {
  font-size: 0.95rem;
}

.web-pwa-reset-option span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.web-pwa-reset-option--danger {
  border-color: color-mix(in srgb, var(--accent-danger) 56%, var(--border-primary));
}

.web-pwa-reset-option--restore {
  border-color: var(--theme-accent-border-strong, var(--border-primary));
}

.web-pwa-reset-cancel {
  justify-content: center;
  text-align: center;
  font-weight: 650;
  margin-top: 2px;
  background: transparent;
}

.web-pwa-reset-option:hover,
.web-pwa-reset-cancel:hover {
  background: color-mix(in srgb, var(--theme-accent) 12%, var(--bg-tertiary-solid, var(--bg-tertiary)));
  border-color: var(--theme-accent-border-strong, var(--border-primary));
}

.web-pwa-reset-option--danger:hover {
  background: color-mix(in srgb, var(--accent-danger) 10%, var(--bg-tertiary-solid, var(--bg-tertiary)));
  border-color: color-mix(in srgb, var(--accent-danger) 72%, var(--border-primary));
}

.web-pwa-reset-option:active,
.web-pwa-reset-cancel:active {
  transform: translateY(1px);
}

.web-pwa-reset-option:focus-visible,
.web-pwa-reset-cancel:focus-visible,
.web-pwa-reset-card:focus-visible {
  outline: 2px solid var(--theme-accent, var(--accent-primary));
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .web-pwa-reset-option,
  .web-pwa-reset-cancel {
    transition: none;
  }
}
