/* Admin Settings — Communications page
   Tight single-row layout with toggle switches replacing big buttons.
   Mobile overrides are appended at the bottom of THIS file so Propshaft
   loads them with their base rules. */

.as-shell {
  max-width: 880px;
}

.as-section {
  margin: 0 0 28px;
}
.as-section__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border-lo);
  margin-bottom: 14px;
}
.as-section__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.as-section__sub {
  font-size: 12px;
  color: var(--text-3);
}

.as-voice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.as-voice__intro {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0 0 14px;
}
.as-voice__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.as-voice__greeting {
  grid-column: 1 / -1;
}
.as-voice__field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.as-voice__field .form-control {
  font-size: 13px;
}
.as-voice__hint {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.as-voice__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border-lo);
}

.as-master {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--danger);
  border-radius: var(--r-lg);
  margin-bottom: 22px;
}
.as-master.is-on {
  border-left-color: var(--success, #16a34a);
}
.as-master__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.as-master.is-on .as-master__icon {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success, #16a34a);
}
.as-master__body {
  flex: 1;
  min-width: 0;
}
.as-master__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}
.as-master__sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.as-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.as-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-lo);
}
.as-row:first-child {
  border-top: 0;
}
.as-row__body {
  flex: 1;
  min-width: 0;
}
.as-row__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.25;
}
.as-row__desc {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.4;
}
.as-row__fires {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.as-row__badge {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-hi);
  color: var(--text-3);
  margin-left: 6px;
  vertical-align: middle;
}
.as-row__badge--soon {
  color: #b45309;
  background: #fffbeb;
}

.as-switch {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.as-switch form,
.as-switch.button_to {
  margin: 0;
  padding: 0;
  display: inline-flex;
}
.as-switch__btn {
  appearance: none;
  -webkit-appearance: none;
  background: var(--border);
  border: 0;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease;
  outline: none;
  padding: 0;
  font: 0/0 a;
  color: transparent;
}
.as-switch__btn::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.as-switch--on .as-switch__btn {
  background: var(--brass);
}
.as-switch--on .as-switch__btn::before {
  transform: translateX(20px);
}
.as-switch__btn:hover {
  filter: brightness(0.95);
}
.as-switch__btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.as-switch--disabled .as-switch__btn {
  opacity: 0.5;
  cursor: not-allowed;
}
.as-switch__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-3);
  min-width: 24px;
  text-align: right;
}
.as-switch--on .as-switch__label {
  color: var(--brass);
}

@media (max-width: 640px) {
  .as-voice__grid { grid-template-columns: 1fr; }
  .as-row { padding: 12px 14px; }
}
