.psc-dev {
  position: fixed;
  right: env(safe-area-inset-right);
  top: 50%;
  z-index: 36;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
}
.psc-dev-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #071833;
  color: #fff;
  text-decoration: none;
  font: 800 0.72rem/1.2 "Source Sans 3", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 0.8rem;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 8px 22px rgba(7,24,51,.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.psc-dev:hover .psc-dev-float,
.psc-dev.is-menu-open .psc-dev-float,
.psc-dev-float:hover,
.psc-dev-float:focus-visible {
  background: #f2c14e;
  color: #071833;
}
.psc-dev-menu {
  width: min(18.5rem, calc(100vw - 1.5rem));
  padding: 0.85rem;
  border-radius: 10px;
  background: #fff;
  color: #152033;
  box-shadow: 0 14px 36px rgba(7, 24, 51, 0.28);
}
.psc-dev-menu[hidden] { display: none !important; }
.psc-dev-menu-title {
  margin: 0 0 0.65rem;
  color: #071833;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}
.psc-dev-menu button {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  min-height: 40px;
  border: 1px solid #d5e0da;
  border-radius: 6px;
  background: #f5f7f6;
  color: #071833;
  font: 700 0.88rem/1 "Source Sans 3", "Segoe UI", sans-serif;
  cursor: pointer;
  text-align: left;
  padding: 0.55rem 0.75rem;
}
.psc-dev-menu button:hover,
.psc-dev-menu button:focus-visible {
  background: #071833;
  border-color: #071833;
  color: #fff;
}
.psc-dev-panel {
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(72vh, 36rem);
  overflow: auto;
  padding: 0.85rem;
  border-radius: 12px;
  background: #fff;
  color: #152033;
  box-shadow: 0 14px 36px rgba(7, 24, 51, 0.28);
}
.psc-dev-panel[hidden] { display: none !important; }
.psc-dev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.psc-dev-head strong {
  color: #071833;
  font-size: 1rem;
}
.psc-dev-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eef2f0;
  color: #071833;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.psc-dev-service-label {
  margin: 0 0 0.55rem;
  color: #0c6b3c;
  font-size: 0.82rem;
  font-weight: 800;
}
.psc-dev-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.psc-dev-form[hidden] { display: none !important; }
.psc-dev-form label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #071833;
  font-size: 0.78rem;
  font-weight: 700;
}
.psc-dev-form input,
.psc-dev-form textarea {
  width: 100%;
  border: 1px solid #d5e0da;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  color: #152033;
  font: 400 16px/1.35 "Source Sans 3", "Segoe UI", sans-serif;
  background: #fff;
}
.psc-dev-form textarea { resize: vertical; min-height: 4.2rem; }
.psc-dev-status {
  margin: 0;
  color: #0c6b3c;
  font-size: 0.8rem;
  font-weight: 700;
}
.psc-dev-send,
.psc-dev-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #0c6b3c;
  color: #fff;
  font: 800 0.92rem/1 "Source Sans 3", "Segoe UI", sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.psc-dev-send:hover,
.psc-dev-send:focus-visible,
.psc-dev-wa:hover,
.psc-dev-wa:focus-visible {
  background: #f2c14e;
  color: #071833;
}
.psc-dev-send:disabled { opacity: 0.7; cursor: wait; }
.psc-dev-done {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  min-height: 12rem;
}
.psc-dev-done[hidden] { display: none !important; }
.psc-dev-done .psc-dev-status {
  margin: 0;
  color: #0c6b3c;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}
.psc-dev-done p:last-of-type {
  margin: 0;
  color: #5d6b7c;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 680px) {
  .psc-dev {
    top: auto;
    right: auto;
    left: 0;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    transform: none;
  }
  .psc-dev-float {
    border-radius: 0 8px 8px 0;
    font-size: 0.64rem;
    padding: 0.5rem 0.6rem;
  }
}
