/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /assets/css/settings.css
   Description: Settings page styles for AutoMarketer AI admin
   Last Edited: 2026-04-14
   ================================================== */

@import url('fonts.css');

#wpcontent,
#wpbody,
#wpbody-content {
  background: #F9FAFB;
}

#amai-settings-page {
  font-family: 'DM Sans', sans-serif;
  color: #1C1917;
  max-width: 860px;
  padding-bottom: 60px;
}

/* --------------------------------------------------
   Header
   -------------------------------------------------- */
.amai-settings-header {
  padding: 32px 0 24px;
  border-bottom: 2px solid #E7DDD5;
  margin-bottom: 32px;
}

.amai-settings-header__title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: #D97757;
  margin: 0 0 6px;
  line-height: 1.2;
}

.amai-settings-header__sub {
  font-size: 0.95rem;
  color: #78716C;
  margin: 0;
}

/* --------------------------------------------------
   Sections
   -------------------------------------------------- */
.amai-settings-section {
  background: #FFFFFF;
  border: 1.5px solid #E7DDD5;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}

.amai-settings-section--danger {
  border-color: #FECACA;
}

.amai-settings-section__head {
  padding: 24px 28px 20px;
  border-bottom: 1.5px solid #F3EDE9;
}

.amai-settings-section--danger .amai-settings-section__head {
  border-bottom-color: #FEE2E2;
}

.amai-settings-section__title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1C1917;
  margin: 0 0 4px;
}

.amai-settings-section--danger .amai-settings-section__title {
  color: #991B1B;
}

.amai-settings-section__desc {
  font-size: 0.875rem;
  color: #78716C;
  margin: 0;
}

.amai-settings-section__body {
  padding: 20px 28px;
}

/* --------------------------------------------------
   Email rows
   -------------------------------------------------- */
.amai-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid #F3EDE9;
}

.amai-email-row:last-child {
  border-bottom: none;
}

.amai-email-row__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1C1917;
  margin-bottom: 3px;
}

.amai-email-row__desc {
  font-size: 0.825rem;
  color: #78716C;
  line-height: 1.5;
}

.amai-email-row--group {
  align-items: flex-start;
}
.amai-email-row__group-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.amai-email-row__group-btns--wrap {
  flex-direction: column;
  align-items: flex-end;
}
.amai-email-row__group-btns--row {
  display: flex;
  gap: 8px;
}
/* --------------------------------------------------
   Nudge threshold inputs
   -------------------------------------------------- */
.amai-recovery-discount {
  padding: 4px 0 8px;
}
.amai-recovery-discount__toggle-row {
  margin-bottom: 20px;
}
.amai-recovery-discount__toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1C1917;
  cursor: pointer;
}
.amai-recovery-discount__toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #D97757;
  cursor: pointer;
}
.amai-recovery-discount__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.amai-recovery-discount__row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.amai-recovery-discount__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #44403C;
  min-width: 160px;
}
.amai-recovery-discount__input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.amai-recovery-discount__input {
  width: 80px;
  padding: 8px 12px;
  border: 1.5px solid #E7DDD5;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1C1917;
  background: #ffffff;
}
.amai-recovery-discount__input:focus {
  outline: none;
  border-color: #D97757;
}
.amai-recovery-discount__unit {
  font-size: 0.875rem;
  color: #78716C;
}
.amai-recovery-discount__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid #F3EDE9;
}

.amai-nudge-thresholds {
  padding: 4px 0 8px;
}

.amai-nudge-threshold-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #F3EDE9;
}

.amai-nudge-threshold-row:last-of-type {
  border-bottom: none;
}

.amai-nudge-threshold-row__label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1C1917;
  width: 140px;
  flex-shrink: 0;
}

.amai-nudge-threshold-row__input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amai-nudge-hours-input {
  width: 72px;
  padding: 7px 10px;
  border: 1.5px solid #E7DDD5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  color: #1C1917;
  background: #FFFFFF;
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease;
}

.amai-nudge-hours-input:focus {
  border-color: #D97757;
}

.amai-nudge-threshold-row__unit {
  font-size: 0.825rem;
  color: #78716C;
}

.amai-nudge-thresholds__footer {
  padding-top: 20px;
}

/* --------------------------------------------------
   System info
   -------------------------------------------------- */
.amai-sysinfo {
  padding: 8px 0;
}

.amai-sysinfo__group {
  padding: 16px 28px;
  border-bottom: 1px solid #F3EDE9;
}

.amai-sysinfo__group:last-of-type {
  border-bottom: none;
}

.amai-sysinfo__group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A8A29E;
  margin-bottom: 12px;
}

.amai-sysinfo__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}

.amai-sysinfo__key {
  font-size: 0.875rem;
  color: #78716C;
  flex-shrink: 0;
}

.amai-sysinfo__val {
  font-size: 0.875rem;
  color: #1C1917;
  font-weight: 500;
  text-align: right;
}

.amai-sysinfo__val--mono {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: #57534E;
}

.amai-sysinfo__val--good {
  color: #15803D;
  font-weight: 600;
}

.amai-sysinfo__val--warn {
  color: #B45309;
  font-weight: 600;
}

.amai-sysinfo__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-top: 1px solid #F3EDE9;
}

.amai-sysinfo__ping-result {
  font-size: 0.875rem;
  color: #78716C;
  font-style: italic;
}

.amai-sysinfo__ping-result--good {
  color: #15803D;
  font-style: normal;
  font-weight: 500;
}

.amai-sysinfo__ping-result--bad {
  color: #DC2626;
  font-style: normal;
  font-weight: 500;
}

/* --------------------------------------------------
   Danger rows
   -------------------------------------------------- */
.amai-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid #FEE2E2;
}

.amai-danger-row:last-child {
  border-bottom: none;
}

.amai-danger-row__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1C1917;
  margin-bottom: 3px;
}

.amai-danger-row--nuclear .amai-danger-row__name {
  color: #991B1B;
}

.amai-danger-row__desc {
  font-size: 0.825rem;
  color: #78716C;
  line-height: 1.5;
  max-width: 520px;
}

/* --------------------------------------------------
   Settings rows
   -------------------------------------------------- */
.amai-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #F3EDE9;
}
.amai-settings-row:last-of-type {
  border-bottom: none;
}
.amai-settings-row--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.amai-settings-row--actions {
  border-bottom: none;
  padding-top: 8px;
  align-items: center;
  gap: 16px;
}
.amai-settings-row__info {
  flex: 1;
  min-width: 0;
}
.amai-settings-row__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1C1917;
  margin-bottom: 3px;
}
.amai-settings-row__desc {
  font-size: 0.825rem;
  color: #78716C;
  line-height: 1.5;
}
.amai-cf-save-msg {
  font-size: 0.875rem;
  color: #78716C;
}
/* --------------------------------------------------
   Toggle switch
   -------------------------------------------------- */
.amai-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.amai-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.amai-toggle__track {
  display: inline-block;
  width: 44px;
  height: 24px;
  background: #D4C9C2;
  border-radius: 999px;
  transition: background 0.18s ease;
  position: relative;
}
.amai-toggle__track::after {
  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 3px rgba(0,0,0,0.18);
}
.amai-toggle input[type="checkbox"]:checked + .amai-toggle__track {
  background: #D97757;
}
.amai-toggle input[type="checkbox"]:checked + .amai-toggle__track::after {
  transform: translateX(20px);
}
/* --------------------------------------------------
   Select, input, textarea form controls
   -------------------------------------------------- */
.amai-select {
  padding: 9px 14px;
  border: 1.5px solid #E7DDD5;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #1C1917;
  background: #FAFAF9;
  cursor: pointer;
  transition: border-color 0.15s ease;
  min-width: 220px;
  flex-shrink: 0;
}
.amai-select:focus {
  outline: none;
  border-color: #D97757;
  background: #fff;
}
.amai-input {
  padding: 9px 14px;
  border: 1.5px solid #E7DDD5;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #1C1917;
  background: #FAFAF9;
  transition: border-color 0.15s ease;
}
.amai-input:focus {
  outline: none;
  border-color: #D97757;
  background: #fff;
}
.amai-input--short {
  width: 80px;
  text-align: center;
}
.amai-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E7DDD5;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #1C1917;
  background: #FAFAF9;
  resize: vertical;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.amai-textarea:focus {
  outline: none;
  border-color: #D97757;
  background: #fff;
}
.amai-textarea--mono {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
}
/* --------------------------------------------------
   Buttons
   -------------------------------------------------- */
.amai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: none;
  text-decoration: none;
}

.amai-btn--primary {
  background: #D97757;
  color: #FFFFFF;
}

.amai-btn--primary:hover {
  background: #C4673A;
  color: #FFFFFF;
}

.amai-btn--secondary {
  background: transparent;
  color: #D97757;
  border: 1.5px solid #D97757;
}

.amai-btn--secondary:hover {
  background: #FDF2EE;
}

.amai-btn--danger {
  background: #DC2626;
  color: #FFFFFF;
  border: none;
}

.amai-btn--danger:hover {
  background: #B91C1C;
  color: #FFFFFF;
}
.amai-btn--danger-outline {
  background: transparent;
  color: #DC2626;
  border: 1.5px solid #DC2626;
}
.amai-btn--danger-outline:hover {
  background: #FEF2F2;
}
.amai-danger-row--critical .amai-danger-row__name {
  color: #991B1B;
}
.amai-danger-row--critical .amai-danger-row__desc {
  max-width: 560px;
}
.amai-danger-confirm {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.amai-danger-confirm__label {
  font-size: 13px;
  color: #78716C;
  font-family: "DM Sans", sans-serif;
  white-space: nowrap;
}
.amai-danger-confirm__input {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  padding: 6px 10px;
  border: 1.5px solid #FECACA;
  border-radius: 7px;
  outline: none;
  width: 160px;
}
.amai-danger-confirm__input:focus {
  border-color: #DC2626;
}
.amai-danger-msg {
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
}

.amai-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --------------------------------------------------
   Modal
   -------------------------------------------------- */
.amai-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amai-modal {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 36px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  animation: amaiModalIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes amaiModalIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.amai-modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #DC2626;
  margin-bottom: 8px;
}

.amai-modal__title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #1C1917;
  margin: 0 0 16px;
}

.amai-modal__body {
  font-size: 0.9rem;
  color: #57534E;
  line-height: 1.6;
  margin: 0 0 14px;
}

.amai-modal__confirm-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E7DDD5;
  border-radius: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  color: #1C1917;
  background: #F9FAFB;
  outline: none;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: border-color 0.18s ease;
}

.amai-modal__confirm-input:focus {
  border-color: #D97757;
  background: #FFFFFF;
}

.amai-modal__notice {
  background: #FEE2E2;
  border: 1.5px solid #FECACA;
  color: #991B1B;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.amai-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* --------------------------------------------------
   Toast
   -------------------------------------------------- */
.amai-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #1C1917;
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 100001;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  animation: amaiToastIn 0.2s ease;
}

.amai-toast--success {
  background: #15803D;
}

.amai-toast--error {
  background: #DC2626;
}

@keyframes amaiToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* == Blog approval bar == */
#amai-blog-approval-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #FAFAF9;
    border: 1px solid #EDE8E4;
    border-radius: 10px;
    padding: 12px 20px;
    flex-wrap: wrap;
}
#amai-blog-approval-bar .amai-approval-bar-left {
    min-width: 0;
    flex: 1;
}
#amai-blog-approval-bar .amai-approval-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 2px;
}
#amai-blog-approval-bar .amai-approval-bar-hint {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.5;
}
#amai-blog-approval-bar .amai-approval-seg {
    display: inline-flex;
    align-items: center;
    background: #F0EBE6;
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}
#amai-blog-approval-bar .amai-approval-seg-btn {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #6B6560;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1;
}
#amai-blog-approval-bar .amai-approval-seg-btn:hover:not(.active) {
    color: #1A1614;
}
#amai-blog-approval-bar .amai-approval-seg-btn.active {
    background: #fff;
    color: #D97757;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* == WordPress comments bar == */
#amai-wp-comments-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #FAFAF9;
    border: 1px solid #EDE8E4;
    border-radius: 10px;
    padding: 12px 20px;
    flex-wrap: wrap;
}
#amai-wp-comments-bar .amai-approval-bar-left {
    min-width: 0;
    flex: 1;
}
#amai-wp-comments-bar .amai-approval-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 2px;
}
#amai-wp-comments-bar .amai-approval-bar-hint {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.5;
}
#amai-wp-comments-bar .amai-approval-seg {
    display: inline-flex;
    align-items: center;
    background: #F0EBE6;
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}
#amai-wp-comments-bar .amai-approval-seg-btn {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #6B6560;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1;
}
#amai-wp-comments-bar .amai-approval-seg-btn:hover:not(.active) {
    color: #1A1614;
}
#amai-wp-comments-bar .amai-approval-seg-btn.active {
    background: #fff;
    color: #D97757;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
/* == Blog image source bar == */
#amai-blog-image-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #FAFAF9;
    border: 1px solid #EDE8E4;
    border-radius: 10px;
    padding: 12px 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}
#amai-blog-image-bar .amai-approval-bar-left {
    min-width: 0;
    flex: 1;
}
#amai-blog-image-bar .amai-approval-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 2px;
}
#amai-blog-image-bar .amai-approval-bar-hint {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.5;
}
#amai-blog-image-bar .amai-approval-seg {
    display: inline-flex;
    align-items: center;
    background: #F0EBE6;
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}
#amai-blog-image-bar .amai-approval-seg-btn {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #6B6560;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1;
}
#amai-blog-image-bar .amai-approval-seg-btn:hover:not(.active) {
    color: #1A1614;
}
#amai-blog-image-bar .amai-approval-seg-btn.active {
    background: #fff;
    color: #D97757;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
/* -- Email Sender section -------------------------------------------------- */
.amai-field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.amai-field-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
}
.amai-field-input {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1A1614;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 9px 12px;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.amai-field-input:focus {
    outline: none;
    border-color: #D97757;
}
.amai-notice {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid transparent;
}
.amai-notice--success {
    background: #F0FDF4;
    border-left-color: #22C55E;
    color: #15803D;
}
.amai-notice--error {
    background: #FEF2F2;
    border-left-color: #EF4444;
    color: #B91C1C;
}



/* ---- Plugin Release ---- */
.amai-rel-suggest {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 10px;
}

.amai-rel-suggest-btn {
    font-family: 'DM Mono', monospace;
    font-size: 12.5px;
    font-weight: 500;
    color: #D97757;
    background: #FDF3EE;
    border: 1.5px solid #F5D5C5;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.amai-rel-suggest-btn span {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #A8A29E;
    margin-left: 4px;
}

.amai-rel-suggest-btn:hover {
    background: #FAE8DF;
    border-color: #D97757;
}

.amai-rel-create-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.amai-rel-ver-input {
    width: 130px;
    padding: 7px 12px;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}

.amai-rel-ver-input:focus {
    border-color: #D97757;
}

.amai-rel-changelog-wrap {
    margin-bottom: 12px;
}

.amai-rel-changelog-input {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    color: #1C1917;
    background: #FAFAF9;
    border: 1.5px solid #E7DDD5;
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
    max-width: 520px;
    min-height: 80px;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
    line-height: 1.6;
    box-sizing: border-box;
}

.amai-rel-changelog-input:focus {
    border-color: #D97757;
}

.amai-rel-msg {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.amai-rel-msg--success { color: #15803d; }
.amai-rel-msg--error   { color: #b91c1c; }
.amai-rel-msg--info    { color: #6B7280; }

/* ---- Release table ---- */
.amai-rel-table-wrap {
    margin-top: 24px;
    border: 1.5px solid #E7DDD5;
    border-radius: 12px;
    overflow: hidden;
}

.amai-rel-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
}

.amai-rel-table thead tr {
    background: #F9FAFB;
    border-bottom: 1.5px solid #E7DDD5;
}

.amai-rel-table thead th {
    padding: 10px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #A8A29E;
}

.amai-rel-row {
    border-bottom: 1px solid #F5F0EC;
    transition: background 0.1s;
}

.amai-rel-row:hover {
    background: #FDFAF8;
}

.amai-rel-row--current {
    background: #FDFAF8;
    border-left: 3px solid #D97757;
}

.amai-rel-row td {
    padding: 12px 16px;
    vertical-align: middle;
    color: #1C1917;
}

.amai-rel-col-ver .amai-rel-ver-label {
    font-family: 'DM Mono', monospace;
    font-size: 13.5px;
    font-weight: 600;
    color: #1C1917;
}

.amai-rel-col-date,
.amai-rel-col-size {
    color: #78716C;
    white-space: nowrap;
}

.amai-rel-col-actions {
    white-space: nowrap;
    display: flex;
    gap: 8px;
    align-items: center;
}

.amai-rel-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.amai-rel-status--current {
    background: #FDF3EE;
    color: #D97757;
    border: 1px solid #F5D5C5;
}

.amai-rel-status--available {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.amai-rel-status--archived {
    background: #F5F5F4;
    color: #A8A29E;
    border: 1px solid #E7E5E4;
}

.amai-rel-delete-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #DC2626;
    background: transparent;
    border: 1.5px solid #FECACA;
    border-radius: 7px;
    padding: 5px 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.amai-rel-delete-btn:hover {
    background: #FEF2F2;
    border-color: #DC2626;
}

.amai-rel-no-action {
    color: #D1CCC8;
    font-size: 13px;
}

/* ---- Changelog row ---- */
.amai-rel-log-row {
    background: #FAFAF9;
    border-bottom: 1.5px solid #F0EBE6;
}

.amai-rel-log-cell {
    padding: 12px 16px 16px;
}

.amai-rel-log-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.amai-rel-log-textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #1C1917;
    background: #ffffff;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 8px 12px;
    flex: 1;
    min-width: 200px;
    min-height: 60px;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
    line-height: 1.6;
}

.amai-rel-log-textarea:focus {
    border-color: #D97757;
}

.amai-rel-log-saved {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #15803D;
    align-self: center;
}

/* -- Release notes generator ----------------------------------------- */
.amai-rel-gen-wrap {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #FAFAF9;
    border: 1px solid #E7DDD5;
    border-radius: 10px;
}
.amai-rel-gen-optional {
    color: #A8A29E;
    font-weight: 400;
}
.amai-rel-gen-input {
    width: 100%;
    min-height: 110px;
    padding: 10px 12px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #44403C;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.amai-rel-gen-input:focus {
    outline: none;
    border-color: #D97757;
    box-shadow: 0 0 0 3px rgba(217,119,87,0.12);
}
.amai-rel-gen-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.amai-rel-gen-status {
    font-size: 13px;
    color: #A8A29E;
}

/* Legal Pages editor */
.amai-legal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.amai-legal-tab {
    padding: 8px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #78716C;
    background: transparent;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.amai-legal-tab:hover {
    border-color: #D97757;
    color: #D97757;
}
.amai-legal-tab.amai-legal-tab--active {
    background: #D97757;
    border-color: #D97757;
    color: #fff;
}
.amai-legal-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.amai-legal-editor--hidden {
    display: none;
}
.amai-legal-textarea {
    width: 100%;
    min-height: 420px;
    padding: 14px 16px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #3D3733;
    background: #FAFAF9;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
}
.amai-legal-textarea:focus {
    outline: none;
    border-color: #D97757;
    box-shadow: 0 0 0 3px rgba(217,119,87,0.12);
}
.amai-legal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.amai-legal-saved {
    font-size: 13px;
    color: #22c55e;
    display: none;
}
.amai-legal-generate-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.amai-legal-generate-label {
    font-size: 13px;
    color: #78716C;
    font-family: "DM Sans", sans-serif;
    white-space: nowrap;
}
.amai-legal-tone-group {
    display: flex;
    gap: 4px;
}
.amai-legal-tone-btn {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1.5px solid #E7DDD5;
    background: #fff;
    color: #78716C;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.amai-legal-tone-btn:hover {
    border-color: #D97757;
    color: #D97757;
}
.amai-legal-tone-btn--active {
    border-color: #D97757;
    background: #FDF3EE;
    color: #D97757;
    font-weight: 600;
}
.amai-legal-generate-status {
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
}

.amai-legal-toggle-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.amai-legal-toggle-btn {
    background: none;
    border: none;
    font-size: 12px;
    font-family: "DM Sans", sans-serif;
    color: #9B8EA0;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.amai-legal-toggle-btn:hover {
    color: #D97757;
}

.amai-legal-editor--collapsed .wp-editor-wrap,
.amai-legal-editor--collapsed .wp-editor-container {
    height: 48px !important;
    min-height: 0 !important;
    overflow: hidden;
}

.amai-legal-editor--collapsed .amai-legal-generate-row,
.amai-legal-editor--collapsed .amai-legal-actions {
    display: none;
}

.amai-legal-url-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E7DDD5;
}

.amai-legal-url-intro {
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
    color: #6B5B6E;
    margin: 0 0 20px;
    line-height: 1.5;
}

.amai-legal-url-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.amai-legal-url-label {
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
    color: #3D2C40;
    font-weight: 600;
    min-width: 160px;
}

.amai-legal-url-input {
    flex: 1;
    max-width: 480px;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    font-size: 13px;
    font-family: "DM Mono", monospace;
    color: #3D2C40;
    background: #FDFBFA;
    outline: none;
    transition: border-color 0.15s;
}

.amai-legal-url-input:focus {
    border-color: #D97757;
}

.amai-legal-url-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.amai-legal-url-saved {
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
    color: #22c55e;
}

/* ── Email Template Groups ─────────────────────────────────────────────── */

.amai-etpl-group {
    margin-bottom: 28px;
}

.amai-etpl-group:last-child {
    margin-bottom: 0;
}

.amai-etpl-group__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9E8D8A;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F0EBE6;
}

.amai-competitor-add-row .amai-input {
    width: 260px;
}
/* -- Email template layout -- */
.amai-etpl-group {
    margin-bottom: 18px;
}
.amai-etpl-group:last-child {
    margin-bottom: 0;
}
.amai-etpl-group__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9E8D8A;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F0EBE6;
}
.amai-etpl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #F5F0EC;
    gap: 16px;
}
.amai-etpl-row:last-child {
    border-bottom: none;
}
.amai-etpl-row__label {
    font-size: 13px;
    font-weight: 600;
    color: #1C1917;
    flex: 1;
    min-width: 0;
}
.amai-etpl-row__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}
.amai-etpl-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #9E8D8A;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #E7DDD5;
    border-radius: 6px;
    background: #fff;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
}
.amai-etpl-edit-btn:hover {
    color: #D97757;
    border-color: #D97757;
    background: #FDF6F3;
}
.amai-etpl-edit-btn svg {
    opacity: .7;
}
.amai-etpl-edit-btn .amai-etpl-custom-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D97757;
    margin-left: 3px;
    vertical-align: middle;
}
.amai-etpl-custom-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #D97757;
    background: #FDF6F3;
    border: 1px solid #F0C4B0;
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: .04em;
}

.amai-etpl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, .55);
    backdrop-filter: blur(3px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.amai-etpl-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(28, 25, 23, .18);
    animation: amai-etpl-spring .25s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes amai-etpl-spring {
    from { opacity: 0; transform: scale(.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.amai-etpl-modal__header {
    padding: 24px 28px 20px;
    border-bottom: 1.5px solid #F0EBE6;
    position: relative;
    flex-shrink: 0;
}

.amai-etpl-modal__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #D97757;
    margin-bottom: 4px;
}

.amai-etpl-modal__title {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1C1917;
    margin: 0;
    padding: 0;
    border: none;
}

.amai-etpl-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #9E8D8A;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.amai-etpl-modal__close:hover {
    background: #F5F0EC;
    color: #1C1917;
}

.amai-etpl-modal__body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.amai-etpl-subject-row {
    margin-bottom: 20px;
}

.amai-etpl-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #57534E;
    margin-bottom: 6px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.amai-etpl-subject-input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #1C1917;
    background: #fff;
    transition: border-color .15s;
    outline: none;
}

.amai-etpl-subject-input:focus {
    border-color: #D97757;
}

.amai-etpl-tokens-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.amai-etpl-tokens-label {
    font-size: 12px;
    font-weight: 600;
    color: #9E8D8A;
    white-space: nowrap;
    padding-top: 5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.amai-etpl-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.amai-etpl-token-chip {
    display: inline-flex;
    align-items: center;
    background: #FAF7F5;
    border: 1.5px solid #E7DDD5;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-family: 'DM Mono', monospace;
    color: #57534E;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    user-select: none;
}

.amai-etpl-token-chip:hover {
    background: #FEF3EE;
    border-color: #D97757;
    color: #D97757;
}

.amai-etpl-token-chip--dynamic {
    background: #F0F4FF;
    border-color: #C7D2FE;
    color: #4F46E5;
}

.amai-etpl-token-chip--dynamic:hover {
    background: #E0E7FF;
    border-color: #818CF8;
    color: #3730A3;
}

.amai-etpl-editor-wrap {
    margin-bottom: 16px;
}

.amai-etpl-modal__notice {
    background: #F0F4FF;
    border: 1.5px solid #C7D2FE;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #3730A3;
    line-height: 1.6;
    margin-bottom: 4px;
}

.amai-etpl-modal__notice code {
    background: #E0E7FF;
    border-radius: 3px;
    padding: 1px 5px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
}

.amai-etpl-modal__footer {
    padding: 16px 28px;
    border-top: 1.5px solid #F0EBE6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
}

.amai-etpl-modal__footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amai-etpl-save-msg {
    font-size: 13px;
    color: #10B981;
}

.amai-etpl-save-msg--error {
    color: #EF4444;
}

/* competitor add row -- remove inline style */
.amai-competitor-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.amai-competitor-add-row .amai-input {
    width: 260px;
}

/* -- Email template flip hover -- */
.amai-etpl-flip {
    position: relative;
    display: inline-flex;
}
.amai-etpl-flip__send {
    position: relative;
    z-index: 1;
    transition: opacity .2s, background .2s, color .2s, border-color .2s;
}
.amai-etpl-flip__edit {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #D97757;
    border: 1.5px solid #D97757;
    border-radius: 6px;
    text-decoration: none;
    opacity: 0;
    transition: opacity .2s;
    white-space: nowrap;
    padding: 0 12px;
}
.amai-etpl-flip:hover .amai-etpl-flip__send {
    opacity: 0;
}
.amai-etpl-flip:hover .amai-etpl-flip__edit {
    opacity: 1;
}
.amai-etpl-flip__edit svg {
    flex-shrink: 0;
}
.amai-etpl-flip__edit .amai-etpl-custom-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    margin-left: 2px;
    vertical-align: middle;
    opacity: .8;
}
/* -- etpl flip edit color fix -- */
.amai-etpl-flip__edit,
.amai-etpl-flip__edit:visited,
.amai-etpl-flip__edit:hover {
    color: #fff;
}
/* -- etpl flip pointer fix -- */
.amai-etpl-flip__edit { pointer-events: none; }
.amai-etpl-flip:hover .amai-etpl-flip__edit { pointer-events: auto; }

/* -- etpl pencil icon -- */
.amai-etpl-pencil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #C4B5B0;
    text-decoration: none;
    opacity: 0;
    transition: opacity .15s, color .15s, background .15s;
    flex-shrink: 0;
}
.amai-etpl-row:hover .amai-etpl-pencil {
    opacity: 1;
}
.amai-etpl-pencil:hover {
    color: #D97757;
    background: #FDF6F3;
}
.amai-etpl-pencil .amai-etpl-custom-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #D97757;
    margin-left: 2px;
    vertical-align: middle;
}
/* disable old flip rules */
.amai-etpl-flip__edit,
.amai-etpl-flip__send { all: unset; }

/* -- etpl smart button dog-ear -- */
.amai-etpl-smart-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.amai-etpl-smart-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 14px 14px;
    border-color: transparent transparent #D97757 transparent;
    opacity: .5;
    transition: opacity .15s, border-width .15s;
}
.amai-etpl-smart-btn--edit-zone::after {
    border-width: 0 0 20px 20px;
    opacity: 1;
}
.amai-etpl-smart-btn__label {
    transition: opacity .15s;
}
.amai-etpl-smart-btn__edit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #D97757;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}
.amai-etpl-smart-btn--edit-zone .amai-etpl-smart-btn__label {
    opacity: 0;
}
.amai-etpl-smart-btn--edit-zone .amai-etpl-smart-btn__edit {
    opacity: 1;
}
.amai-etpl-smart-btn__dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #D97757;
    display: inline-block;
}
/* -- etpl dog-ear refinements -- */
.amai-etpl-smart-btn--edit-zone {
    background: #D97757;
    border-color: #D97757;
    color: #fff;
}
.amai-etpl-smart-btn--edit-zone .amai-etpl-smart-btn__edit {
    color: #fff;
}
.amai-etpl-smart-btn--edit-zone::after {
    border-color: transparent transparent rgba(0,0,0,.2) transparent;
}
/* -- etpl dog-ear refinements v2 -- */
.amai-etpl-smart-btn--edit-zone {
    background: #fff !important;
    border-color: #D97757 !important;
    color: #D97757 !important;
}
.amai-etpl-smart-btn--edit-zone .amai-etpl-smart-btn__edit {
    color: #D97757 !important;
    font-weight: 700;
}
.amai-etpl-smart-btn--edit-zone::after {
    border-color: transparent transparent #D97757 transparent !important;
    border-width: 0 0 22px 22px !important;
    opacity: 1 !important;
}

/* -- Settings panel paged layout -- */
/* -- Settings panel nav -- */
.amai-spanel {
    display: flex;
    gap: 0;
    align-items: flex-start;
}
.amai-spanel__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 10px;
    border-right: 1px solid #F0EBE6;
    flex-shrink: 0;
    width: 48px;
    overflow: hidden;
    background: #FDFAF8;
    border-radius: 12px 0 0 12px;
    transition: width .2s cubic-bezier(.4,0,.2,1);
    position: sticky;
    top: 32px;
}
.amai-spanel__nav:hover { width: 156px; }
.amai-spanel__nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    color: #9E8D8A;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    width: 100%;
    text-align: left;
    transition: color .15s, background .15s, box-shadow .15s;
}
.amai-spanel__nav-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}
.amai-spanel__nav-item span {
    opacity: 0;
    transition: opacity .1s;
}
.amai-spanel__nav:hover .amai-spanel__nav-item span { opacity: 1; }
.amai-spanel__nav-item:hover {
    color: #D97757;
    background: #FDF6F3;
}
.amai-spanel__nav-item--active {
    color: #D97757;
    background: #FDF6F3;
    box-shadow: -3px 0 0 #D97757 inset;
}
.amai-spanel__nav-item--owner:hover,
.amai-spanel__nav-item--owner.amai-spanel__nav-item--active {
    color: #7C3AED;
    background: #F5F3FF;
    box-shadow: -3px 0 0 #7C3AED inset;
}
.amai-spanel__body {
    flex: 1;
    min-width: 0;
    padding-left: 8px;
}

/* -- Spanel page visibility -- */
.amai-spanel__body .amai-spanel__page {
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.amai-spanel__body .amai-spanel__page.amai-spanel__page--active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.amai-spanel__body .amai-spanel__page.amai-spanel__page--entering {
    opacity: 0;
    transform: translateY(4px);
}
