.sd-drawer {
  width: 520px;
}

@media (max-width: 640px) {
  .sd-drawer {
    width: 100vw;
  }
}

.sd-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sd-body::-webkit-scrollbar {
  width: 4px;
}
.sd-body::-webkit-scrollbar-thumb {
  background: var(--color-gray-200);
  border-radius: 2px;
}

.sd-section {
  background: var(--white-color);
  border: 1px solid rgba(var(--black-color-rgb), 0.07);
  border-radius: 0.85rem;
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sd-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sd-section-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.sd-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.sd-section-title i {
  width: 16px;
  height: 16px;
  color: var(--color-gray-500);
}

.sd-section-sub {
  font-size: 0.78rem;
  color: var(--color-gray-500);
  line-height: 1.5;
}

.sd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: var(--color-neutral-off-white);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  border-radius: 0.7rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.sd-row.is-clickable:hover {
  background: var(--white-color);
  border-color: rgba(var(--primary-color-rgb), 0.35);
}

.sd-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.sd-row-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.sd-row-sub {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  line-height: 1.45;
}

.sd-row.is-clickable:hover .sd-row-cta {
  color: var(--primary-color-dark);
}

.sd-danger-row .sd-row-label {
  color: var(--danger-color, #dc2626);
}

.sd-section--discoverability {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-color-rgb), 0.06),
    var(--white-color) 60%
  );
}

.sd-section--discoverability .sd-row {
  background: rgba(var(--primary-color-rgb), 0.07);
  border-color: rgba(var(--primary-color-rgb), 0.22);
}

.sd-section--discoverability.sd-section--off {
  background: linear-gradient(
    135deg,
    rgba(var(--warning-color-rgb), 0.06),
    var(--white-color) 60%
  );
}

.sd-section--discoverability.sd-section--off .sd-row {
  background: rgba(var(--warning-color-rgb), 0.07);
  border-color: rgba(var(--warning-color-rgb), 0.22);
}

.sd-section.is-focus-target {
  scroll-margin-top: 0.5rem;
}

.sd-section--off.is-focus-target .v-toggle,
.sd-section--off.is-focus-target [role="switch"] {
  animation:
    sdFocusSwitchRipple 1.75s ease-out 4 both,
    sdFocusSwitchScale  1.75s ease-in-out 4 both;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  will-change: transform, box-shadow;
}

@keyframes sdFocusSwitchRipple {
  0% {
    box-shadow:
      0 0 0 0 rgba(var(--warning-color-rgb), 0.32),
      0 0 0 0 rgba(var(--warning-color-rgb), 0.18);
  }
  60% {
    box-shadow:
      0 0 0 9px  rgba(var(--warning-color-rgb), 0),
      0 0 0 16px rgba(var(--warning-color-rgb), 0);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(var(--warning-color-rgb), 0),
      0 0 0 0 rgba(var(--warning-color-rgb), 0);
  }
}

@keyframes sdFocusSwitchScale {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.035); }
}
