/* Blur the desktop without painting a box around the floating controls. */
#menubar-root.tb-control-center-open { z-index: 50; }
#menubar-root.tb-control-center-open::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.tb-cc-panel {
  position: fixed;
  box-sizing: border-box;
  width: 368px;
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 46px);
  top: calc(50dvh + var(--tb-menubar-h) / 2);
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  padding: 4px;
  gap: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow-y: auto;
  scrollbar-width: none;
  color: #fff;
}
.tb-cc-panel::-webkit-scrollbar { display: none; }
.tb-cc-panel[hidden], .tb-cc-panel [hidden] { display: none !important; }
.tb-cc-panel .tb-cc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, 78px);
  gap: 14px;
  flex: none;
}
.tb-cc-panel .tb-cc-glass {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 999px;
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.01) 50%), rgba(20,23,27,.34);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.23), inset 0 -1px 1px rgba(0,0,0,.13), 0 5px 18px rgba(0,0,0,.13);
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
/* The clear Liquid DOM backplate supplies the optical surface. A faint native
   backdrop layer retains a little of the desktop content beneath the panel. */
.tb-cc-panel .tb-cc-glass.tb-liquid-ready {
  background: rgba(12,18,24,.06);
  border-color: rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(6px) saturate(125%);
  backdrop-filter: blur(6px) saturate(125%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22), inset 0 -1px 1px rgba(0,0,0,.12), 0 6px 18px rgba(0,0,0,.16);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.tb-cc-panel .tb-liquid-canvas { opacity: .94; }
.tb-cc-panel button.tb-cc-glass { appearance: none; -webkit-appearance: none; }
.tb-cc-panel button { -webkit-tap-highlight-color: transparent; }
.tb-cc-panel button:not(:disabled) { cursor: pointer; }
.tb-cc-panel button:focus-visible, .tb-cc-panel input:focus-visible {
  outline: 3px solid #1687ff;
  outline-offset: 2px;
}
.tb-cc-panel .tb-cc-connect {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
}
.tb-cc-whatsapp { grid-area: 1 / 1 / 2 / 3; }
.tb-cc-glass-settings { grid-area: 2 / 1 / 3 / 3; }
.tb-cc-panel .tb-cc-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.23);
  color: #fff;
  text-shadow: none;
}
.tb-cc-disc svg { width: 26px; height: 26px; }
.tb-cc-panel .tb-on .tb-cc-disc { background: #fff; color: #008cff; }
.tb-cc-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-cc-panel .tb-cc-label { font-size: 15px; line-height: 1.15; font-weight: 650; letter-spacing: -.25px; }
.tb-cc-status { font-size: 13px; line-height: 1.15; color: rgba(255,255,255,.73); }
.tb-cc-panel .tb-cc-music {
  grid-area: 1 / 3 / 3 / 5;
  height: auto;
  border-radius: 34px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.tb-cc-panel .tb-cc-art { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.1); }
.tb-cc-panel .tb-cc-mtexts { flex: 1; line-height: 1.18; gap: 3px; }
.tb-cc-panel .tb-cc-mtitle { font-size: 15px; font-weight: 650; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-cc-panel .tb-cc-mname { font-size: 13px; color: rgba(255,255,255,.72); }
.tb-cc-panel .tb-cc-mbtns { width: 100%; justify-content: space-between; align-items: center; gap: 0; }
.tb-cc-panel .tb-cc-mbtn { width: 34px; height: 28px; background: none; padding: 0; border-radius: 6px; color: rgba(255,255,255,.88); }
.tb-cc-panel .tb-cc-mbtn svg { width: 28px; height: 28px; }
.tb-cc-panel .tb-cc-mbtn:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,.1); }
.tb-cc-display { grid-area: 3 / 1 / 4 / 5; }
.tb-cc-sound { grid-area: 4 / 1 / 5 / 5; }
.tb-cc-panel .tb-cc-slider-tile { padding: 13px 18px; border-radius: 31px; }
.tb-cc-track { display: flex; align-items: center; gap: 9px; height: 27px; margin-top: 6px; }
.tb-cc-slider-icon { display: flex; flex: 0 0 21px; align-items: center; justify-content: center; }
.tb-cc-slider-icon svg { width: 22px; height: 22px; }
.tb-cc-slider-icon--small { flex-basis: 17px; }
.tb-cc-slider-icon--small svg { width: 17px; height: 17px; }
.tb-cc-panel .tb-cc-slider {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  flex: 1;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  --cc-value: 100%;
}
.tb-cc-panel .tb-cc-slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(to right, #fff var(--cc-value), rgba(255,255,255,.27) var(--cc-value));
}
.tb-cc-panel .tb-cc-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  height: 13px;
  width: 7px;
  margin-top: -4px;
  border-radius: 5px;
  background: #fff;
  opacity: 0;
}
.tb-cc-panel .tb-cc-slider:hover::-webkit-slider-thumb,
.tb-cc-panel .tb-cc-slider:focus-visible::-webkit-slider-thumb { opacity: 1; }
.tb-cc-panel .tb-cc-slider::-moz-range-track { height: 5px; border-radius: 5px; background: rgba(255,255,255,.27); }
.tb-cc-panel .tb-cc-slider::-moz-range-progress { height: 5px; border-radius: 5px; background: #fff; }
.tb-cc-panel .tb-cc-slider::-moz-range-thumb { width: 7px; height: 13px; border: 0; border-radius: 5px; background: #fff; }
.tb-cc-output { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; padding: 6px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; }
.tb-cc-output svg { width: 18px; height: 18px; }
@media (max-width: 400px) {
  .tb-cc-panel .tb-cc-grid { gap: 10px; grid-template-rows: repeat(4, 74px); }
  .tb-cc-panel .tb-cc-connect { padding: 10px 12px; gap: 8px; }
  .tb-cc-panel .tb-cc-music { padding: 13px; gap: 7px; }
  .tb-cc-panel .tb-cc-label, .tb-cc-panel .tb-cc-mtitle { font-size: 14px; }
  .tb-cc-panel .tb-cc-disc { flex-basis: 40px; height: 40px; }
}

.tb-cc-whatsapp .tb-cc-disc { background: transparent; }
.tb-cc-whatsapp .tb-cc-disc img { width: 44px; height: 44px; object-fit: contain; }
.tb-cc-whatsapp[data-status="online"] .tb-cc-status { color: #8df1b2; }
.tb-cc-whatsapp[data-status="away"] .tb-cc-status { color: #ffda8c; }
.tb-cc-whatsapp:not([data-status="unset"]) .tb-cc-status { font-size: 11px; white-space: nowrap; }
.tb-cc-status-menu {
  position: absolute; z-index: 5; top: 87px; left: 4px;
  width: min(248px, calc(100% - 8px)); box-sizing: border-box;
  padding: 16px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(30,36,42,.95); color: white;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 12px 36px rgba(0,0,0,.25); text-shadow: none;
}
.tb-cc-status-heading { display: block; font-size: 14px; }
.tb-cc-status-help { margin: 6px 0 12px; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.75); }
.tb-cc-status-option {
  display: block; width: 100%; padding: 9px 10px; margin-top: 3px;
  border: 0; border-radius: 8px; text-align: left;
  background: transparent; color: inherit; font: inherit; font-size: 13px;
}
.tb-cc-status-option[aria-pressed="true"] { background: rgba(255,255,255,.15); }
.tb-cc-status-option[aria-pressed="true"]::after { content: '✓'; float: right; }
.tb-cc-status-option:hover { background: rgba(255,255,255,.2); }

@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  #menubar-root.tb-control-center-open::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
