.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-surface-soft);
}

.toggle.toggle-compact {
  padding: 8px 10px;
  min-height: 48px;
}

.toggle.toggle-tight {
  min-height: 38px;
  padding: 7px 9px;
}

.toggle.toggle-compact .title {
  font-size: 11px;
  font-weight: 700;
}

.toggle.toggle-compact .sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.25;
}

.toggle .title {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 800;
}

.toggle .sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(13, 15, 22, 0.18);
  transition: 0.2s;
}

.slider:before {
  position: absolute;
  content: "";
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: var(--color-brand);
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

.switch.switch-sm {
  width: 38px;
  height: 22px;
}

.switch.switch-sm .slider:before {
  width: 16px;
  height: 16px;
}

.switch.switch-sm input:checked + .slider:before {
  transform: translateX(16px);
}

.listrow {
  display: flex;
  gap: 10px;
}

.listrow input {
  flex: 1;
}

.price-slider-control {
  border: 1px solid rgba(86, 110, 140, 0.24);
  border-radius: 14px;
  padding: 10px 12px 12px;
  background: var(--color-surface-soft);
  background-image: none;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.price-slider-control:hover {
  border-color: rgba(103, 63, 180, 0.24);
}

.price-slider-control.price-slider-disabled {
  border-color: rgba(98, 116, 140, 0.2);
  background: var(--color-surface-soft);
  background-image: none;
}

.price-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.price-slider-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.price-slider-check input[type="checkbox"] {
  accent-color: var(--color-brand);
}

.price-slider-head strong {
  min-width: 72px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(103, 63, 180, 0.2);
  background: rgba(103, 63, 180, 0.08);
  color: rgba(13, 15, 22, 0.86);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.price-slider-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(13, 15, 22, 0.14);
  background: rgba(13, 15, 22, 0.06);
  outline: none;
  cursor: pointer;
}

.price-slider-control input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.price-slider-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--color-brand);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.price-slider-control input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.price-slider-control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--color-brand);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.price-slider-control input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--color-brand);
}

.price-slider-control input[type="range"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(103, 63, 180, 0.18);
}

.price-slider-disabled input[type="range"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.price-slider-scale {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-muted);
}

.harvest-variance-wrap {
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--color-surface-soft);
}

.harvest-inline-card {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.harvest-ai-toggle {
  height: 100%;
  min-height: 0;
  padding: 6px 8px;
}

.harvest-variance-compact {
  height: 100%;
  padding: 7px 9px;
}

.harvest-variance-title {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
}

.harvest-ai-toggle .title {
  font-size: 11px;
  line-height: 1.2;
}

.harvest-ai-toggle .sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.harvest-variance-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--color-brand);
}

.harvest-variance-scale {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--color-text-muted);
}

.harvest-variance-scale span {
  flex: 1;
}

.harvest-variance-scale span:nth-child(2) {
  text-align: center;
}

.harvest-variance-scale span:last-child {
  text-align: right;
}

.harvest-variance-scale span.is-active {
  color: var(--color-text);
  font-weight: 700;
}

.harvest-variance-compact .help {
  margin-top: 6px;
}

.stores-policies {
  align-self: start;
}

.stores-policies-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stores-policy-pill {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--color-surface-soft);
  background-image: none;
  box-shadow: none;
}

.stores-policy-pill .title {
  margin-right: 6px;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-slider-control input[type="range"]::-ms-fill-lower {
  background: var(--color-brand);
}

.price-slider-control input[type="range"]::-ms-fill-upper {
  background: rgba(13, 15, 22, 0.06);
}

.price-slider-control input[type="range"]::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--color-brand);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.price-slider-control input[type="range"]::-ms-track {
  width: 100%;
  height: 8px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.price-slider-control .price-slider-head strong {
  min-width: 72px;
}

.price-slider-control.price-slider-disabled .price-slider-head strong {
  border-color: rgba(13, 15, 22, 0.14);
  background: rgba(13, 15, 22, 0.06);
  color: var(--color-text-muted);
}

.stores-policies-row .stores-policy-pill .switch {
  margin-left: auto;
}

.stores-policies-row .stores-policy-pill .switch .slider {
  transition: 0.16s ease;
}

.stores-policies-row .stores-policy-pill .switch .slider:before {
  transition: 0.16s ease;
}

.stores-policies-row .stores-policy-pill .switch input:focus-visible + .slider {
  box-shadow: 0 0 0 3px rgba(103, 63, 180, 0.18);
}

.stores-policies-row .stores-policy-pill .switch input:checked + .slider:before {
  transform: translateX(14px);
}

.stores-policies-row .stores-policy-pill .switch input:checked + .slider {
  background: var(--color-brand);
}

.stores-policies-row .stores-policy-pill .switch .slider:before {
  left: 3px;
  top: 3px;
}

.stores-policies-row .stores-policy-pill .switch.switch-sm .slider:before {
  left: 3px;
  top: 3px;
}

.stores-policies-row .stores-policy-pill .switch.switch-sm input:checked + .slider:before {
  transform: translateX(14px);
}

.stores-policies-row .stores-policy-pill .switch.switch-sm .slider {
  width: 34px;
  height: 20px;
  background: rgba(13, 15, 22, 0.18);
}

.stores-policies-row .stores-policy-pill .switch.switch-sm input:checked + .slider {
  background: var(--color-brand);
}

.stores-policies-row .stores-policy-pill .switch.switch-sm .slider:before {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.stores-policies-row .stores-policy-pill .switch.switch-sm input:focus-visible + .slider {
  box-shadow: 0 0 0 3px rgba(103, 63, 180, 0.18);
}

.stores-policies-row .stores-policy-pill .sub {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-size: 12px;
}

.chip[draggable="true"] {
  cursor: grab;
}

.chip.dragging {
  opacity: 0.55;
}

.chip button {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.chip button:hover {
  color: var(--color-danger);
}

.agents {
  display: grid;
  gap: 10px;
}

.agent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fff;
}

.auth-card {
  max-width: 620px;
  margin: 34px auto;
}

.auth-login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
}

.auth-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.auth-login-head {
  padding-bottom: 12px !important;
}

.auth-login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(103, 63, 180, 0.2);
  background: rgba(103, 63, 180, 0.1);
  color: rgba(13, 15, 22, 0.86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-login-head h2 {
  font-size: 25px !important;
}

.auth-login-head p {
  max-width: 50ch;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.auth-alert + .auth-alert {
  margin-top: 8px;
}

.auth-notice {
  margin-top: 8px;
  border: 1px solid rgba(103, 63, 180, 0.22);
  border-radius: 12px;
  background: rgba(103, 63, 180, 0.08);
  color: rgba(13, 15, 22, 0.86);
  padding: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.auth-method-switch {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.auth-method-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 10px 14px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.auth-method-tab:hover {
  color: var(--color-text);
}

.auth-method-tab.is-active {
  color: #fff;
  background: linear-gradient(130deg, var(--color-brand), var(--color-brand-alt));
  box-shadow: 0 8px 14px rgba(20, 83, 228, 0.24);
}

.auth-method-stack {
  margin-top: 14px;
}

.auth-method-panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(247, 251, 255, 0.88);
  padding: 14px;
  animation: auth-panel-fade 0.2s ease;
}

.auth-method-panel + .auth-method-panel {
  margin-top: 12px;
}

.auth-method-panel-single {
  margin-top: 6px;
}

.auth-method-head h3 {
  margin: 0;
  font-size: 15px;
}

.auth-method-head p {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-form {
  margin-top: 10px;
}

.auth-form input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}

.auth-form input[type="tel"]:focus {
  border-color: rgba(103, 63, 180, 0.58);
  box-shadow: 0 0 0 4px rgba(103, 63, 180, 0.14);
}

.auth-form .iti {
  width: 100%;
}

.auth-form .iti input[type="tel"] {
  padding-top: 11px;
  padding-bottom: 11px;
}

.auth-form .iti__selected-country-primary {
  border-radius: 10px 0 0 10px;
}

.auth-form .iti__selected-country {
  border-radius: 10px;
}

.auth-recaptcha-shell {
  margin-top: 14px;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.auth-recaptcha-shell > div {
  margin: 0 auto;
}

.auth-footerbar {
  margin-top: 14px;
  align-items: center;
}

.auth-footerbar.auth-verify-footer {
  justify-content: flex-end;
}

.auth-footerbar .hint {
  margin-top: 0;
  flex: 1;
  max-width: 45ch;
}

.auth-status {
  display: none;
}

.auth-social-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.auth-social-outside {
  margin-top: 12px;
  padding: 2px 0;
}

.auth-social-outside .auth-social-status {
  text-align: center;
}

.auth-social-outside [data-social-error] {
  text-align: left;
}

.auth-social-btn {
  width: 58px;
  height: 58px;
  padding: 14px;
  box-sizing: border-box;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.auth-social-btn:hover {
  background: rgba(103, 63, 180, 0.05);
}

.auth-social-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.auth-social-btn[disabled] {
  opacity: 0.7;
}

.auth-social-status {
  min-height: 0;
  margin-top: 8px;
}

.auth-verify-actions {
  margin-left: auto;
  gap: 8px;
}

.auth-method-panel [data-phone-error] {
  margin-top: 14px;
}

@keyframes auth-panel-fade {
  from {
    opacity: 0.45;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
