.scd-dev {
  position: fixed;
  top: 50%;
  right: env(safe-area-inset-right);
  bottom: auto;
  left: auto;
  z-index: 80;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.45rem;
  max-width: min(24rem, calc(100vw - 0.5rem));
  transition: top 0.28s ease, transform 0.28s ease;
}
.scd-dev.is-menu-open,
.scd-dev.is-panel-open {
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  top: var(--scd-dev-top, 11.5rem);
  transform: none;
  max-height: calc(100dvh - var(--scd-dev-top, 11.5rem) - 0.75rem - env(safe-area-inset-bottom));
}
.scd-dev-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #071428;
  color: #fff;
  text-decoration: none;
  font: 800 0.72rem/1.2 "Inter", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  padding: 0.95rem 0.55rem;
  border-radius: 12px 0 0 12px;
  box-shadow: -6px 8px 18px rgba(7, 20, 40, 0.35);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1101px) {
  .scd-dev { max-width: min(42rem, calc(100vw - 1rem)); }
  .scd-dev-float {
    writing-mode: horizontal-tb;
    padding: 0.7rem 1rem;
    letter-spacing: 0.04em;
    min-height: 44px;
  }
}
.scd-dev.is-menu-open .scd-dev-float,
.scd-dev.is-panel-open .scd-dev-float {
  flex: none;
  writing-mode: horizontal-tb;
  padding: 0.7rem 1rem;
  letter-spacing: 0.04em;
  min-height: 44px;
  border-radius: 12px 0 0 0;
}
.scd-dev.is-menu-open .scd-dev-menu,
.scd-dev.is-panel-open .scd-dev-panel {
  min-height: 0;
  max-height: calc(100dvh - var(--scd-dev-top, 11.5rem) - 4.75rem - env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 12px 0 12px 12px;
}
.scd-dev:hover .scd-dev-float,
.scd-dev.is-menu-open .scd-dev-float,
.scd-dev.is-panel-open .scd-dev-float,
.scd-dev-float:hover,
.scd-dev-float:focus-visible {
  background: #c9a227;
  color: #071428;
}
.scd-dev-menu {
  width: min(18.5rem, calc(100vw - 3.4rem));
  padding: 0.85rem;
  border-radius: 10px;
  background: #fff;
  color: #071428;
  box-shadow: 0 14px 36px rgba(7, 20, 40, 0.28);
}
.scd-dev-menu[hidden] { display: none !important; }
.scd-dev-menu-title {
  margin: 0 0 0.65rem;
  color: #071428;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}
.scd-dev-menu button {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  min-height: 40px;
  border: 1px solid #ead9a0;
  border-radius: 6px;
  background: #f8f6f0;
  color: #071428;
  font: 700 0.88rem/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  text-align: left;
  padding: 0.55rem 0.75rem;
}
.scd-dev-menu button:hover,
.scd-dev-menu button:focus-visible {
  background: #071428;
  border-color: #071428;
  color: #fff;
}
.scd-dev-panel {
  width: min(22rem, calc(100vw - 3.4rem));
  max-height: min(70dvh, 36rem);
  overflow: auto;
  padding: 0.85rem;
  border-radius: 12px;
  background: #fff;
  color: #071428;
  box-shadow: 0 14px 36px rgba(7, 20, 40, 0.28);
}
.scd-dev-panel[hidden] { display: none !important; }
.scd-dev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.scd-dev-head strong {
  color: #071428;
  font-size: 1rem;
}
.scd-dev-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f6ecd0;
  color: #071428;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.scd-dev-service-label {
  margin: 0 0 0.55rem;
  color: #8a7018;
  font-size: 0.82rem;
  font-weight: 800;
}
.scd-dev-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.scd-dev-form[hidden] { display: none !important; }
.scd-dev-form label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #071428;
  font-size: 0.78rem;
  font-weight: 700;
}
.scd-dev-form input,
.scd-dev-form textarea {
  width: 100%;
  border: 1px solid #ead9a0;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  color: #071428;
  font: 400 16px/1.35 "Inter", system-ui, sans-serif;
  background: #fff;
}
.scd-dev-form textarea { resize: vertical; min-height: 4.2rem; }
.scd-dev-status {
  margin: 0;
  color: #8a7018;
  font-size: 0.8rem;
  font-weight: 700;
}
.scd-dev-send,
.scd-dev-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #071428;
  color: #fff;
  font: 800 0.92rem/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.scd-dev-send:hover,
.scd-dev-send:focus-visible,
.scd-dev-wa:hover,
.scd-dev-wa:focus-visible {
  background: #c9a227;
  color: #071428;
}
.scd-dev-send:disabled { opacity: 0.7; cursor: wait; }
.scd-dev-done {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  min-height: 12rem;
}
.scd-dev-done[hidden] { display: none !important; }
.scd-dev-done .scd-dev-status {
  margin: 0;
  color: #8a7018;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}
.scd-dev-done p:last-of-type {
  margin: 0;
  color: #5c6570;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}
