/* Hub webphone — botón verde + menú radial ordenado */
html.omni-webphone-hidden #omni-phone-hub,
html.omni-webphone-hidden #omni-webphone-dock,
html.omni-webphone-hidden .omni-phone-hub-root {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

:root {
  --omni-fab-size: 76px;
  --omni-orbit: 108px;
  --omni-act-size: 56px;
}

#omni-phone-hub {
  position: fixed;
  left: 88px;
  bottom: 32px;
  z-index: 60;
  width: var(--omni-fab-size);
  height: var(--omni-fab-size);
  overflow: visible;
  pointer-events: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#omni-phone-hub.omni-phone-custom-pos {
  bottom: auto;
}

#omni-phone-hub .omni-phone-hub-inner {
  position: relative;
  width: var(--omni-fab-size);
  height: var(--omni-fab-size);
  overflow: visible;
  pointer-events: auto;
}

/* FAB central */
#omni-phone-hub .omni-phone-fab-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--omni-fab-size);
  height: var(--omni-fab-size);
  transform: translate(-50%, -50%);
  z-index: 16;
}

#omni-phone-hub .omni-phone-timer {
  display: none;
  position: absolute;
  bottom: calc(var(--omni-fab-size) + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 120px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(252, 211, 77, 0.45);
  color: #fcd34d;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  text-align: center;
  white-space: nowrap;
  z-index: 17;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

#omni-phone-hub .omni-phone-fab {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  cursor: grab;
  background: radial-gradient(circle at 32% 28%, #4ade80 0%, #22c55e 38%, #16a34a 72%, #15803d 100%);
  box-shadow:
    0 10px 32px rgba(22, 163, 74, 0.55),
    0 0 0 3px rgba(255, 255, 255, 0.12),
    inset 0 2px 6px rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(0, 0, 0, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#omni-phone-hub .omni-phone-fab svg {
  width: 38px;
  height: 38px;
  display: block;
  shape-rendering: geometricPrecision;
}

#omni-phone-hub:hover .omni-phone-fab,
#omni-phone-hub.omni-phone-expanded .omni-phone-fab {
  transform: scale(1.04);
  box-shadow:
    0 14px 40px rgba(22, 163, 74, 0.6),
    0 0 0 4px rgba(74, 222, 128, 0.25),
    inset 0 2px 6px rgba(255, 255, 255, 0.5);
}

#omni-phone-hub.omni-phone-dragging .omni-phone-fab {
  cursor: grabbing;
}

#omni-phone-hub .omni-phone-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.5);
  animation: omni-phone-pulse 2.6s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes omni-phone-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Órbita */
#omni-phone-hub .omni-phone-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}

#omni-phone-hub .omni-phone-action {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--omni-act-size);
  height: auto;
  min-height: var(--omni-act-size);
  padding: 8px 4px 6px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  color: #f1f5f9;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition:
    opacity 0.18s ease,
    transform 0.26s cubic-bezier(0.34, 1.35, 0.64, 1),
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  transform: translate(-50%, -50%) scale(0.5);
}

#omni-phone-hub .omni-phone-action .omni-act-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#omni-phone-hub .omni-phone-action .omni-act-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  shape-rendering: geometricPrecision;
}

#omni-phone-hub .omni-phone-action .omni-act-label {
  display: block;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

#omni-phone-hub:hover .omni-phone-action,
#omni-phone-hub.omni-phone-expanded .omni-phone-action {
  pointer-events: auto;
  opacity: 1;
}

#omni-phone-hub .omni-phone-action:hover {
  border-color: #4ade80;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
}
#omni-phone-hub .omni-phone-action:hover .omni-act-label {
  color: #fff;
}

/* Posiciones simétricas — un solo translate desde el centro */
#omni-phone-hub .omni-phone-action-top {
  transform: translate(-50%, -50%) translateY(calc(-1 * var(--omni-orbit))) scale(1);
}
#omni-phone-hub .omni-phone-action-top:hover {
  transform: translate(-50%, -50%) translateY(calc(-1 * var(--omni-orbit))) scale(1.06);
}

#omni-phone-hub .omni-phone-action-bottom {
  transform: translate(-50%, -50%) translateY(var(--omni-orbit)) scale(1);
}
#omni-phone-hub .omni-phone-action-bottom:hover {
  transform: translate(-50%, -50%) translateY(var(--omni-orbit)) scale(1.06);
}

#omni-phone-hub .omni-phone-action-left {
  transform: translate(-50%, -50%) translateX(calc(-1 * var(--omni-orbit))) scale(1);
}
#omni-phone-hub .omni-phone-action-left:hover {
  transform: translate(-50%, -50%) translateX(calc(-1 * var(--omni-orbit))) scale(1.06);
}

#omni-phone-hub .omni-phone-action-right {
  transform: translate(-50%, -50%) translateX(var(--omni-orbit)) scale(1);
}
#omni-phone-hub .omni-phone-action-right:hover {
  transform: translate(-50%, -50%) translateX(var(--omni-orbit)) scale(1.06);
}

/* Colapsado */
#omni-phone-hub:not(:hover):not(.omni-phone-expanded) .omni-phone-action-top,
#omni-phone-hub:not(:hover):not(.omni-phone-expanded) .omni-phone-action-bottom,
#omni-phone-hub:not(:hover):not(.omni-phone-expanded) .omni-phone-action-left,
#omni-phone-hub:not(:hover):not(.omni-phone-expanded) .omni-phone-action-right {
  transform: translate(-50%, -50%) scale(0.45);
  opacity: 0;
  pointer-events: none;
}

#omni-phone-hub .omni-phone-action[data-act="more"] {
  border-color: rgba(148, 163, 184, 0.35);
}

#omni-phone-hub .omni-phone-action[data-act="more"]:hover {
  border-color: rgba(148, 163, 184, 0.65);
  box-shadow: 0 10px 28px rgba(100, 116, 139, 0.28);
}

#omni-phone-hub .omni-phone-action[data-act="more"] .omni-act-label {
  color: #94a3b8;
}

#omni-phone-hub .omni-phone-more-menu {
  position: absolute;
  left: calc(var(--omni-fab-size) + 12px);
  bottom: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
  z-index: 12;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

#omni-phone-hub.omni-phone-more-open .omni-phone-more-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

#omni-phone-hub .omni-phone-more-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

#omni-phone-hub .omni-phone-more-menu button:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #4ade80;
}

#omni-phone-hub .omni-phone-more-menu .omni-more-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Paneles laterales compartidos */
#omni-phone-hub .omni-phone-side-panel {
  position: absolute;
  left: calc(var(--omni-fab-size) + 18px);
  top: 50%;
  width: 250px;
  max-height: 360px;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 15%, rgba(74, 222, 128, 0.15), transparent 34%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(52, 211, 153, 0.48);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.58), 0 0 24px rgba(22, 163, 74, 0.18);
  color: #e2e8f0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(10px, -50%) scale(0.96);
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 14;
}

#omni-phone-hub.omni-phone-keypad-open .omni-phone-keypad-panel,
#omni-phone-hub.omni-phone-agenda-open .omni-phone-agenda-panel,
#omni-phone-hub.omni-phone-history-open .omni-phone-history-panel,
#omni-phone-hub.omni-phone-transfer-open .omni-phone-transfer-panel,
#omni-phone-hub.omni-phone-conference-open .omni-phone-conference-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}

#omni-phone-hub.omni-phone-panel-left .omni-phone-side-panel {
  left: auto;
  right: calc(var(--omni-fab-size) + 18px);
  transform: translate(-10px, -50%) scale(0.96);
  transform-origin: right center;
}

#omni-phone-hub.omni-phone-panel-left.omni-phone-keypad-open .omni-phone-keypad-panel,
#omni-phone-hub.omni-phone-panel-left.omni-phone-agenda-open .omni-phone-agenda-panel,
#omni-phone-hub.omni-phone-panel-left.omni-phone-history-open .omni-phone-history-panel,
#omni-phone-hub.omni-phone-panel-left.omni-phone-transfer-open .omni-phone-transfer-panel,
#omni-phone-hub.omni-phone-panel-left.omni-phone-conference-open .omni-phone-conference-panel {
  transform: translate(0, -50%) scale(1);
}

#omni-phone-hub .omni-phone-agenda-panel {
  width: 300px;
  max-height: 420px;
}

#omni-phone-hub .omni-phone-keypad-panel {
  width: 260px;
  max-height: none;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
  padding-bottom: 14px;
}

/* En modo FAB el panel no debe cortar mute/volumen */
#omni-phone-hub:not(.omni-mode-sidebar) .omni-phone-keypad-panel {
  max-height: none;
  overflow: visible;
}

#omni-phone-hub .omni-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#omni-phone-hub .omni-panel-close {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

#omni-phone-hub .omni-panel-close:hover {
  background: rgba(74, 222, 128, 0.2);
  color: #fff;
}

#omni-phone-hub .omni-panel-status {
  padding: 6px 1px 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  min-height: 16px;
}

#omni-phone-hub .omni-panel-status.is-ok { color: #4ade80; }
#omni-phone-hub .omni-panel-status.is-error { color: #f87171; }
#omni-phone-hub .omni-panel-status.is-hangup { color: #fb7185; font-weight: 700; }

#omni-phone-hub .omni-panel-scroll {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  padding-right: 4px;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.14) transparent;
}

#omni-phone-hub .omni-panel-scroll::-webkit-scrollbar {
  width: 7px;
}

#omni-phone-hub .omni-panel-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
  margin: 4px 0;
  border: 1px solid rgba(52, 211, 153, 0.08);
}

#omni-phone-hub .omni-panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.45);
  box-shadow: inset 0 0 6px rgba(74, 222, 128, 0.12);
}

#omni-phone-hub .omni-panel-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.28);
}

#omni-phone-hub .omni-phone-agenda-panel .omni-panel-scroll {
  max-height: 300px;
}

#omni-phone-hub .omni-phone-history-panel {
  width: 292px;
  max-height: min(470px, calc(100vh - 80px));
  overflow: visible;
  box-sizing: border-box;
  padding-bottom: 14px;
}

#omni-phone-hub .omni-phone-history-panel .omni-panel-scroll {
  max-height: 360px;
  padding-right: 6px;
}

#omni-phone-hub .omni-panel-item {
  width: 100%;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  text-align: left;
  position: relative;
}

#omni-phone-hub .omni-panel-item:hover {
  border-color: rgba(74, 222, 128, 0.75);
  background: rgba(22, 163, 74, 0.16);
}

#omni-phone-hub .omni-panel-item-title {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  padding-right: 24px;
}

#omni-phone-hub .omni-panel-item-meta,
#omni-phone-hub .omni-panel-empty {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

#omni-phone-hub .omni-panel-empty {
  padding: 14px 4px;
  text-align: center;
}

#omni-phone-hub .omni-agenda-call {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.75;
}

#omni-phone-hub .omni-dial-input,
#omni-phone-hub .omni-keypad-display,
#omni-phone-hub .omni-agenda-search,
#omni-phone-hub .omni-transfer-search {
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  outline: none;
}

#omni-phone-hub .omni-transfer-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}
#omni-phone-hub .omni-transfer-row .omni-transfer-search {
  flex: 1;
  margin-top: 0;
}
#omni-phone-hub .omni-transfer-go {
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: #042f2e;
  background: linear-gradient(180deg, #4ade80, #22c55e);
}
#omni-phone-hub .omni-transfer-go:hover {
  filter: brightness(1.05);
}
#omni-phone-hub .omni-transfer-direct {
  border-color: rgba(74, 222, 128, 0.55) !important;
}

#omni-phone-hub .omni-dial-input:focus,
#omni-phone-hub .omni-keypad-display:focus,
#omni-phone-hub .omni-agenda-search:focus,
#omni-phone-hub .omni-transfer-search:focus {
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

#omni-phone-hub .omni-keypad-display {
  text-align: center;
  margin-bottom: 8px;
}

#omni-phone-hub .omni-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 8px;
}

#omni-phone-hub .omni-key {
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  color: #fde68a;
  font-size: 18px;
  font-weight: 800;
  padding: 10px 0;
  cursor: pointer;
}

#omni-phone-hub .omni-key:hover {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

#omni-phone-hub .omni-keypad-tools {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

#omni-phone-hub .omni-key-tool {
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.75);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 0;
  cursor: pointer;
}

#omni-phone-hub .omni-call-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

#omni-phone-hub .omni-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  cursor: pointer;
  padding: 5px 6px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

#omni-phone-hub .omni-call-actions .omni-tool-btn {
  min-height: 32px;
  padding: 4px 6px;
}

#omni-phone-hub .omni-tool-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

#omni-phone-hub .omni-call-actions .omni-tool-btn svg {
  width: 19px;
  height: 19px;
}

#omni-phone-hub .omni-btn-call {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.42);
  background: linear-gradient(165deg, rgba(22, 78, 46, 0.72), rgba(15, 23, 42, 0.96));
  box-shadow: inset 0 1px 0 rgba(74, 222, 128, 0.1), 0 4px 14px rgba(22, 163, 74, 0.12);
}

#omni-phone-hub .omni-btn-hangup {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.48);
  background: linear-gradient(165deg, rgba(127, 29, 29, 0.62), rgba(15, 23, 42, 0.96));
  box-shadow: inset 0 1px 0 rgba(251, 113, 133, 0.08), 0 4px 14px rgba(225, 29, 72, 0.1);
}

#omni-phone-hub .omni-tool-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

#omni-phone-hub .omni-tool-btn:active {
  transform: scale(0.96);
}

#omni-phone-hub .omni-incall-actions {
  display: grid;
  grid-template-columns: 32px 32px minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  margin-top: 6px;
}

#omni-phone-hub .omni-incall-actions .omni-tool-btn {
  width: 32px;
  min-height: 32px;
  padding: 5px;
}

#omni-phone-hub .omni-incall-actions .omni-tool-btn svg {
  width: 15px;
  height: 15px;
}

#omni-phone-hub .omni-btn-mute {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: linear-gradient(165deg, rgba(22, 78, 46, 0.45), rgba(15, 23, 42, 0.95));
}

#omni-phone-hub .omni-btn-mute.is-muted {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.55);
  background: linear-gradient(165deg, rgba(127, 29, 29, 0.55), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.15);
}

#omni-phone-hub .omni-btn-transfer {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.42);
  background: linear-gradient(165deg, rgba(30, 58, 95, 0.55), rgba(15, 23, 42, 0.95));
}

#omni-phone-hub .omni-btn-transfer:hover {
  border-color: rgba(147, 197, 253, 0.65);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.18);
}

#omni-phone-hub .omni-volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 2px 6px 2px 2px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.88);
}

#omni-phone-hub .omni-vol-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

#omni-phone-hub .omni-vol-toggle svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

#omni-phone-hub .omni-vol-toggle:hover {
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.55);
}

#omni-phone-hub .omni-volume-wrap.is-muted {
  border-color: rgba(100, 116, 139, 0.35);
}

#omni-phone-hub .omni-volume-wrap.is-muted .omni-vol-toggle {
  color: #64748b;
}

#omni-phone-hub .omni-volume-slider {
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.55), rgba(100, 116, 139, 0.45));
  outline: none;
  cursor: pointer;
}

#omni-phone-hub .omni-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #60a5fa;
  border: 2px solid #1e293b;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
  transition: transform 0.12s ease;
}

#omni-phone-hub .omni-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

#omni-phone-hub .omni-volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #60a5fa;
  border: 2px solid #1e293b;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

#omni-phone-hub .omni-volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.45);
}

#omni-phone-hub .omni-phone-transfer-panel {
  width: min(320px, calc(100vw - 120px));
  max-height: min(420px, calc(100vh - 120px));
}

#omni-phone-hub .omni-phone-conference-panel {
  width: min(320px, calc(100vw - 120px));
  max-height: min(460px, calc(100vh - 120px));
}

#omni-phone-hub .omni-conference-create {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(52, 211, 153, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#omni-phone-hub .omni-conference-create input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(100, 116, 139, 0.45);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font-size: 13px;
}

#omni-phone-hub .omni-conference-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#omni-phone-hub .omni-conference-add {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(22, 163, 74, 0.22);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#omni-phone-hub .omni-conference-add:hover {
  background: rgba(22, 163, 74, 0.35);
}

#omni-phone-hub .omni-history-status,
#omni-phone-hub .omni-agenda-status,
#omni-phone-hub .omni-transfer-status,
#omni-phone-hub .omni-conference-status {
  padding: 8px 1px 6px;
}

html.omni-hub-panel-open #omni-webphone-dock .modalContainer {
  display: none !important;
  pointer-events: none !important;
}

/* Ocultar por completo el launcher Vue viejo (SIP sigue activo en segundo plano) */
#omni-webphone-dock,
div.fixed.bottom-0.right-0.pointer-events-none.flex-col-reverse {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
  z-index: 57 !important;
}

#omni-webphone-dock > *:not(.modalContainer),
#omni-webphone-dock .pointer-events-auto,
div.fixed.bottom-0.right-0.pointer-events-none.flex-col-reverse > *:not(.modalContainer) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

#omni-webphone-dock > .omni-webphone-drag-handle,
.omni-webphone-drag-handle,
.omni-webphone-label {
  display: none !important;
}

#omni-webphone-dock .modalContainer {
  position: fixed !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 57 !important;
}

/* Solo un hub verde visible */
.omni-phone-hub-root ~ .omni-phone-hub-root,
#omni-phone-hub ~ #omni-phone-hub {
  display: none !important;
}

/* ——— Modo panel lateral (derecha) ——— */
#omni-phone-hub .omni-rail-chrome,
#omni-phone-hub .omni-rail-expand,
#omni-phone-hub .omni-rail-compact {
  display: none;
}

html.omni-wp-sidebar #omni-phone-hub {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  width: 64px;
  height: 100vh !important;
  z-index: 70;
  overflow: visible;
  pointer-events: none;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html.omni-wp-sidebar #omni-phone-hub.omni-rail-expanded {
  width: min(320px, 92vw);
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-hub-inner {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.1), transparent 22%),
    linear-gradient(160deg, #0c1222 0%, #0a0f1a 55%, #070b14 100%);
  border-left: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  position: relative;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-orbit,
html.omni-wp-sidebar #omni-phone-hub .omni-phone-fab-wrap,
html.omni-wp-sidebar #omni-phone-hub .omni-phone-pulse {
  display: none !important;
}

/* Compacto (default) */
html.omni-wp-sidebar #omni-phone-hub .omni-rail-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 4.6rem 0.35rem 4.2rem;
  flex: 1 1 auto;
  min-height: 0;
  z-index: 12;
}

html.omni-wp-sidebar #omni-phone-hub.omni-rail-expanded .omni-rail-compact {
  display: none;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-sip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.4rem 0.2rem;
  border-radius: 14px;
  border: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(17, 24, 39, 0.92);
  width: 48px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-sip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.4);
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-sip.is-ok .omni-rail-sip-dot {
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
  animation: omni-rail-pulse 1.8s ease-in-out infinite;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-sip.is-call .omni-rail-sip-dot {
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-sip.is-ring {
  border-color: rgba(74, 222, 128, 0.65);
  background: rgba(22, 163, 74, 0.18);
  animation: omni-rail-glow 1s ease-in-out infinite;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-sip.is-ring .omni-rail-sip-dot {
  background: #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 1);
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-ext {
  font-size: 0.62rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.02em;
  max-width: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, monospace;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-ring {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-ring.is-on {
  display: block;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-ring span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.7);
  animation: omni-ring-wave 1.2s ease-out infinite;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-ring span:last-child {
  animation-delay: 0.4s;
}

@keyframes omni-ring-wave {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes omni-rail-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.25); }
  50% { box-shadow: 0 0 18px 2px rgba(74, 222, 128, 0.45); }
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-mini {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(17, 24, 39, 0.95);
  color: #e2e8f0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s, background 0.15s;
  padding: 0;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-mini svg {
  width: 18px;
  height: 18px;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-mini:hover {
  transform: scale(1.07);
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-ans {
  background: radial-gradient(circle at 30% 25%, #4ade80, #16a34a 70%);
  border-color: rgba(74, 222, 128, 0.55);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

html.omni-wp-sidebar #omni-phone-hub.omni-rail-ringing .omni-rail-ans {
  animation: omni-ans-pulse 0.9s ease-in-out infinite;
}

@keyframes omni-ans-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 22px rgba(74, 222, 128, 0.7); }
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-hang {
  background: radial-gradient(circle at 30% 25%, #f87171, #dc2626 72%);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fff;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-mute-mini.is-muted {
  border-color: rgba(248, 113, 113, 0.55);
  color: #f87171;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-open-dial {
  border-color: rgba(251, 191, 36, 0.35);
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-vol-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  max-height: 160px;
  width: 100%;
  padding: 0.35rem 0;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-vol {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 10px;
  height: 100%;
  min-height: 88px;
  accent-color: #38bdf8;
  cursor: pointer;
  appearance: slider-vertical;
}

html.omni-wp-sidebar #omni-phone-hub.omni-rail-ringing .omni-phone-hub-inner {
  border-left-color: rgba(74, 222, 128, 0.65);
  box-shadow: -12px 0 40px rgba(22, 163, 74, 0.25);
}

/* Expandido: chrome superior */
html.omni-wp-sidebar #omni-phone-hub .omni-rail-chrome {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.75rem 0.65rem 0.4rem;
  flex: 0 0 auto;
  z-index: 15;
}

html.omni-wp-sidebar #omni-phone-hub.omni-rail-expanded .omni-rail-chrome {
  display: flex;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: system-ui, 'Segoe UI', sans-serif;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  animation: omni-rail-pulse 1.8s ease-in-out infinite;
}

@keyframes omni-rail-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-tab {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(17, 24, 39, 0.9);
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, color 0.15s;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-tab svg {
  width: 18px;
  height: 18px;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e2e8f0;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-tab.on {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(56, 189, 248, 0.12));
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.2);
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-status {
  color: #64748b;
  font-size: 0.72rem;
  font-family: system-ui, 'Segoe UI', sans-serif;
  padding: 0 0.15rem;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-expand {
  display: flex;
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: radial-gradient(circle at 30% 25%, #1e293b, #0c1222 70%);
  color: #cbd5e1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s, background 0.18s;
}

html.omni-wp-sidebar #omni-phone-hub.omni-rail-expanded .omni-rail-expand {
  left: auto;
  right: 14px;
  transform: none;
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-expand:hover {
  border-color: rgba(56, 189, 248, 0.75);
  color: #fff;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.35);
  transform: translateX(-50%) scale(1.06);
}

html.omni-wp-sidebar #omni-phone-hub.omni-rail-expanded .omni-rail-expand:hover {
  transform: scale(1.06);
}

html.omni-wp-sidebar #omni-phone-hub .omni-rail-chevrons {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  font-family: system-ui, 'Segoe UI', sans-serif;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-side-panel {
  position: absolute !important;
  left: 0.55rem !important;
  right: 0.55rem !important;
  top: 7.0rem !important;
  bottom: 0.55rem !important;
  width: auto !important;
  max-height: none !important;
  transform: translateY(8px) scale(0.98) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: auto;
  z-index: 20;
}

/* Keypad: que quepa entero sin scroll feo */
html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem;
  padding: 10px 10px 12px !important;
  overflow: hidden !important;
  bottom: 0.45rem !important;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-panel-head,
html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-keypad-tools,
html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-call-actions,
html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-incall-actions,
html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-keypad-status {
  flex-shrink: 0;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-keypad-display {
  margin-top: 6px !important;
  margin-bottom: 4px !important;
  padding: 8px 10px !important;
  font-size: 15px !important;
  flex-shrink: 0;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-keypad-grid {
  flex: 1 1 auto;
  min-height: 0;
  gap: 5px !important;
  align-content: stretch;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-key {
  min-height: 0 !important;
  padding: 0.35rem 0 !important;
  font-size: 0.95rem !important;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-key-tool {
  padding: 6px 0 !important;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-call-actions {
  margin-top: 6px !important;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-incall-actions {
  margin-top: 6px !important;
  margin-bottom: 2px;
  padding-bottom: 2px;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-call-actions .omni-tool-btn,
html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-incall-actions .omni-tool-btn {
  min-height: 34px !important;
}

html.omni-wp-sidebar #omni-phone-hub .omni-phone-keypad-panel .omni-volume-wrap {
  min-height: 34px;
  align-items: center;
}

html.omni-wp-sidebar #omni-phone-hub.omni-phone-keypad-open .omni-phone-keypad-panel,
html.omni-wp-sidebar #omni-phone-hub.omni-phone-agenda-open .omni-phone-agenda-panel,
html.omni-wp-sidebar #omni-phone-hub.omni-phone-history-open .omni-phone-history-panel,
html.omni-wp-sidebar #omni-phone-hub.omni-phone-transfer-open .omni-phone-transfer-panel,
html.omni-wp-sidebar #omni-phone-hub.omni-phone-conference-open .omni-phone-conference-panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* Menú "Más": arriba, junto a la barra de tabs */
html.omni-wp-sidebar #omni-phone-hub .omni-phone-more-menu {
  left: 0.55rem !important;
  right: 0.55rem !important;
  top: 6.9rem !important;
  bottom: auto !important;
  width: auto !important;
  min-width: 0 !important;
  z-index: 25 !important;
  transform: translateY(-4px) !important;
}

html.omni-wp-sidebar #omni-phone-hub.omni-phone-more-open .omni-phone-more-menu {
  transform: translateY(0) !important;
}

/* Desktop/mouse ancho: botón << >> oculto (hover auto); JS sigue pudiendo usarlo */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  html.omni-wp-sidebar #omni-phone-hub .omni-rail-expand {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Responsive / touch: mostrar flechas << >> del webphone lateral */
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  html.omni-wp-sidebar #omni-phone-hub .omni-rail-expand {
    display: flex !important;
    position: absolute !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    z-index: 40 !important;
  }
}

/* ——— Reloj de llamada mm:ss (compacto + panel expandido) ——— */
html.omni-wp-sidebar #omni-phone-hub .omni-call-clock,
#omni-phone-hub .omni-call-clock {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

html.omni-wp-sidebar #omni-phone-hub .omni-call-clock.is-on,
#omni-phone-hub .omni-call-clock.is-on {
  display: flex !important;
}

/* Banner grande dentro del marcador (siempre visible al hablar) */
#omni-phone-hub .omni-keypad-talk-banner {
  display: none;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 30%, rgba(74, 222, 128, 0.25), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.4));
  border: 1px solid rgba(74, 222, 128, 0.45);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 18px rgba(74, 222, 128, 0.15);
  font-variant-numeric: tabular-nums;
}
#omni-phone-hub .omni-keypad-talk-banner.is-on {
  display: flex !important;
}
#omni-phone-hub .omni-keypad-talk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: omni-call-pulse 1.4s ease-out infinite;
  flex: 0 0 auto;
}
#omni-phone-hub .omni-keypad-talk-label {
  flex: 1 1 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.9);
}
#omni-phone-hub .omni-keypad-talk-time {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fef08a;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.45);
}

html.omni-wp-sidebar #omni-phone-hub .omni-call-clock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: omni-call-pulse 1.4s ease-out infinite;
  flex: 0 0 auto;
}

html.omni-wp-sidebar #omni-phone-hub .omni-call-clock-time {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fef08a;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.45);
}

html.omni-wp-sidebar #omni-phone-hub .omni-call-clock-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.1;
}

html.omni-wp-sidebar #omni-phone-hub .omni-call-clock-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

/* Compacto (riel estrecho) */
html.omni-wp-sidebar #omni-phone-hub .omni-call-clock--compact {
  width: calc(100% - 8px);
  margin: 2px 4px 6px;
  padding: 6px 4px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.35),
    inset 0 0 18px rgba(250, 204, 21, 0.08);
}
html.omni-wp-sidebar #omni-phone-hub .omni-call-clock--compact .omni-call-clock-time {
  font-size: 0.78rem;
}

/* Panel expandido: badge grande bajo el estado */
html.omni-wp-sidebar #omni-phone-hub .omni-call-clock--panel {
  width: 100%;
  margin: 0.15rem 0 0.1rem;
  padding: 0.55rem 0.75rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(74, 222, 128, 0.22), transparent 45%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.35) 55%, rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.55),
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(74, 222, 128, 0.18);
  justify-content: flex-start;
  gap: 0.65rem;
  animation: omni-call-glow 2.4s ease-in-out infinite;
}
html.omni-wp-sidebar #omni-phone-hub .omni-call-clock--panel .omni-call-clock-time {
  font-size: 1.35rem;
  line-height: 1;
  color: #fef9c3;
}
html.omni-wp-sidebar #omni-phone-hub .omni-call-clock--panel .omni-call-clock-dot {
  width: 10px;
  height: 10px;
}

@keyframes omni-call-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes omni-call-glow {
  0%, 100% { border-color: rgba(74, 222, 128, 0.35); }
  50% { border-color: rgba(250, 204, 21, 0.55); }
}

/* En modo bola: chrome lateral oculto */
html.omni-wp-fab #omni-phone-hub .omni-rail-chrome,
html.omni-wp-fab #omni-phone-hub .omni-rail-expand,
html.omni-wp-fab #omni-phone-hub .omni-rail-compact,
html:not(.omni-wp-sidebar) #omni-phone-hub .omni-rail-chrome,
html:not(.omni-wp-sidebar) #omni-phone-hub .omni-rail-expand,
html:not(.omni-wp-sidebar) #omni-phone-hub .omni-rail-compact {
  display: none !important;
}


/* ——— Webphone responsive: no descuadrar / rail limpio ——— */
@media (max-width: 1023px) {
  html.omni-wp-sidebar #omni-phone-hub {
    width: 56px !important;
    z-index: 90 !important;
  }
  html.omni-wp-sidebar #omni-phone-hub.omni-rail-expanded {
    width: min(100vw, 360px) !important;
    max-width: 100vw !important;
    box-shadow: -16px 0 48px rgba(0,0,0,.55);
  }
  html.omni-wp-sidebar #omni-phone-hub .omni-rail-compact {
    padding: 3.2rem 0.2rem 4.6rem !important;
    gap: 0.4rem !important;
  }
  html.omni-wp-sidebar #omni-phone-hub .omni-rail-sip {
    width: 44px !important;
    padding: 0.3rem 0.15rem !important;
  }
  html.omni-wp-sidebar #omni-phone-hub .omni-rail-vol-wrap {
    display: none !important;
  }
  html.omni-wp-sidebar #omni-phone-hub .omni-call-clock--compact {
    transform: scale(0.92);
  }
  html.omni-wp-sidebar #omni-phone-hub .omni-rail-expand {
    bottom: 12px !important;
    width: 40px !important;
    height: 40px !important;
  }
  /* FAB más chico y seguro en notch */
  html.omni-wp-fab #omni-phone-hub,
  html:not(.omni-wp-sidebar) #omni-phone-hub {
    left: auto !important;
    right: 1rem !important;
    bottom: max(1rem, env(safe-area-inset-bottom)) !important;
    width: 64px !important;
    height: 64px !important;
  }
  html.omni-wp-fab #omni-phone-hub .omni-phone-hub-inner,
  html:not(.omni-wp-sidebar) #omni-phone-hub .omni-phone-hub-inner {
    width: 64px !important;
    height: 64px !important;
  }
  html.omni-wp-fab #omni-phone-hub .omni-phone-fab-wrap,
  html:not(.omni-wp-sidebar) #omni-phone-hub .omni-phone-fab-wrap {
    width: 64px !important;
    height: 64px !important;
  }
}

@media (max-width: 767px) {
  /* En celular el rail lateral tapa demasiado: modo sheet al expandir */
  html.omni-wp-sidebar #omni-phone-hub.omni-rail-expanded {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  html.omni-wp-sidebar #omni-phone-hub .omni-phone-side-panel {
    max-height: none !important;
  }
  html.omni-wp-sidebar #omni-phone-hub .omni-rail-compact {
    padding-top: 2.8rem !important;
  }
  /* Ocultar botones secundarios que desbordan el rail estrecho */
  html.omni-wp-sidebar #omni-phone-hub .omni-rail-mute-mini,
  html.omni-wp-sidebar #omni-phone-hub .omni-rail-open-dial {
    display: none !important;
  }
}
