#pi-narrator {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1000;
  font-family: "Red Hat Display", system-ui, sans-serif;
  color-scheme: light;
}
#pi-narrator svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
#pi-narrator [hidden] {
  display: none !important;
}
#pi-narrator .pin-start {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border: 2px solid #fed005;
  border-radius: 999px;
  background: #0f2e38;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 46, 56, 0.28);
}
#pi-narrator .pin-start svg {
  color: #fed005;
}
#pi-narrator .pin-start:hover {
  background: #135e80;
}
#pi-narrator .pin-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(420px, calc(100vw - 32px));
  padding: 8px 8px 8px 10px;
  border-radius: 999px;
  background: #0f2e38;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 46, 56, 0.32);
}
#pi-narrator .pin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #dce9ee;
  cursor: pointer;
}
#pi-narrator .pin-btn:hover:not(:disabled) {
  color: #fed005;
}
#pi-narrator .pin-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
#pi-narrator .pin-main {
  width: 46px;
  height: 46px;
  background: #fed005;
  color: #0f2e38;
}
#pi-narrator .pin-main:hover:not(:disabled) {
  background: #ffe14d;
  color: #0f2e38;
}
#pi-narrator .pin-main.is-loading svg {
  animation: pin-pulse 1s ease-in-out infinite;
}
#pi-narrator .pin-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  padding: 0 6px;
}
#pi-narrator .pin-label {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}
#pi-narrator .pin-status {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: #dce9ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#pi-narrator .pin-track {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(220, 233, 238, 0.25);
  overflow: hidden;
}
#pi-narrator .pin-progress {
  display: block;
  height: 100%;
  width: 0;
  background: #fed005;
  transition: width 0.3s ease;
}
#pi-narrator button:focus-visible {
  outline: 3px solid #fed005;
  outline-offset: 3px;
}
.pi-narrating {
  outline: 2px solid rgba(254, 208, 5, 0.9);
  outline-offset: 6px;
  border-radius: 4px;
  transition: outline-color 0.3s ease;
}
@keyframes pin-pulse {
  50% {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  #pi-narrator .pin-main.is-loading svg {
    animation: none;
  }
  #pi-narrator .pin-progress,
  .pi-narrating {
    transition: none;
  }
}
@media print {
  #pi-narrator {
    display: none;
  }
}
