/* ── auth screen ── */
.auth-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 30px 26px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(var(--fg-rgb), 0.09), transparent 70%), var(--glass-bg);
}
.auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--chip-fg);
  background: linear-gradient(135deg, var(--chip-bg), var(--chip-bg-2));
  box-shadow:
    0 6px 18px rgba(var(--shadow-rgb), 0.18),
    inset 0 1px 0 rgba(var(--fg-rgb), 0.28);
}
.auth-logo .ic {
  width: 28px;
  height: 28px;
}
.auth-kicker {
  margin-bottom: 5px;
  color: var(--muted2);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-title {
  margin: 0 0 6px;
  color: var(--txt);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.auth-sub {
  margin: 0 auto 18px;
  max-width: 34ch;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.auth-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  text-align: left;
}
.auth-steps > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11.5px;
  background: rgba(var(--fg-rgb), 0.035);
  border: 1px solid rgba(var(--fg-rgb), 0.08);
}
.auth-steps b {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--chip-fg);
  font-size: 10px;
  background: linear-gradient(135deg, var(--chip-bg), var(--chip-bg-2));
}
.auth-steps strong {
  color: var(--txt);
  font-weight: 700;
}
.auth-primary {
  width: 100%;
  text-align: center;
  text-decoration: none;
}
.auth-card .field {
  text-align: left;
}
.auth-card label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-card label .opt {
  color: var(--muted2);
  font-weight: 400;
  text-transform: none;
}
.auth-err {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--txt);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.2s;
  opacity: 0;
  text-align: left;
  white-space: nowrap;
}
.auth-err-ic {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--fg-rgb), 0.1);
}
.auth-err-ic .ic {
  width: 13px;
  height: 13px;
}
.auth-err-copy {
  min-width: 0;
}
.auth-err.show {
  min-height: 32px;
  max-height: 36px;
  opacity: 1;
  margin-bottom: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb), 0.3);
  background: rgba(var(--fg-rgb), 0.06);
}
.auth-card .btn.primary {
  margin-top: 4px;
}
.auth-switch {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--muted2);
  line-height: 1.5;
}
.auth-switch a {
  color: var(--txt);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.auth-ok {
  color: var(--txt);
  font-size: 12.5px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.2s;
  text-align: left;
}
.auth-ok.show {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(var(--fg-rgb), 0.4);
  background: rgba(var(--fg-rgb), 0.07);
  line-height: 1.4;
}
body.auth-mode .bg {
  filter: blur(8px);
}

/* ── profile ── */
.profile-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(80% 160% at 100% 0%, rgba(var(--fg-rgb), 0.09), transparent 58%),
    var(--glass-bg);
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.p-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  display: block;
  color: var(--chip-fg);
  background: linear-gradient(135deg, var(--chip-bg), var(--chip-bg-2));
  box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.28);
  position: relative;
  overflow: hidden;
  border: 0;
  cursor: default;
  line-height: 0;
}
.p-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
}
.p-avatar.edit {
  cursor: pointer;
}
.avatar-ov {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.18s;
}
.avatar-ov .ic {
  width: 22px;
  height: 22px;
}
.p-avatar.edit:hover .avatar-ov,
.p-avatar.edit:active .avatar-ov {
  opacity: 1;
}
.p-id {
  flex: 1;
  min-width: 0;
}
.p-name {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-handle {
  font-size: 13px;
  color: var(--muted);
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(var(--fg-rgb), 0.14);
  background: rgba(var(--fg-rgb), 0.05);
}
.plan-badge.pro {
  color: var(--chip-fg);
  background: linear-gradient(135deg, var(--chip-bg), var(--chip-bg-2));
  border-color: transparent;
}
.plan-badge .ic {
  width: 13px;
  height: 13px;
}
.profile-sync-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  background: rgba(var(--fg-rgb), 0.035);
  border: 1px solid rgba(var(--fg-rgb), 0.08);
}
.profile-sync-note > .ic {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #fff;
}
.profile-sync-note b {
  color: var(--txt);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.plan-col {
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid rgba(var(--fg-rgb), 0.1);
  background: rgba(var(--fg-rgb), 0.03);
}
.plan-col.hi {
  border-color: rgba(var(--fg-rgb), 0.4);
  background: rgba(var(--fg-rgb), 0.06);
}
.plan-col.current {
  box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.5);
}
.plan-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.plan-title .ic {
  width: 16px;
  height: 16px;
}
.plan-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-feats li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.plan-feats li .ic {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--txt);
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.meta-item {
  border-radius: var(--radius-sm);
  padding: 11px 12px;
}
.meta-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta-item b {
  font-size: 14px;
  font-weight: 700;
}

.full-btn {
  width: 100%;
  margin-top: 14px;
}
.full-btn.no-top-gap {
  margin-top: 0;
}

/* ── home module ── */
.home-hero {
  padding: 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 150% at 100% 0%, rgba(var(--fg-rgb), 0.1), transparent 58%), var(--glass-bg);
}
.home-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -100px;
  border-radius: 50%;
  border: 1px solid rgba(var(--fg-rgb), 0.1);
  pointer-events: none;
}
.home-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-av {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--chip-bg), var(--chip-bg-2));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--chip-fg);
}
.home-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.home-greet {
  font-size: 12px;
  color: var(--muted);
}
.home-name {
  color: var(--txt);
  font-size: 20px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.home-plan {
  max-width: 58ch;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}
.home-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.home-status {
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.home-status > .ic {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #fff;
}
.home-status > span:not(.dot) {
  white-space: nowrap;
}
.home-status b {
  margin-left: auto;
  min-width: 0;
  color: var(--txt);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.tool-card {
  min-height: 132px;
  text-align: left;
  cursor: pointer;
  padding: 15px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  position: relative;
  color: inherit;
  font: inherit;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(var(--fg-rgb), 0.055), rgba(var(--fg-rgb), 0.025));
  border: 1px solid rgba(var(--fg-rgb), 0.09);
  transition:
    transform 0.12s,
    box-shadow 0.18s,
    border-color 0.18s,
    background 0.18s;
}
.tool-card:active {
  transform: scale(0.98);
}
.tool-card.soon {
  cursor: default;
  opacity: 0.72;
}
.tool-ic {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 12px;
  color: var(--txt);
  background: rgba(var(--fg-rgb), 0.08);
  border: 1px solid rgba(var(--fg-rgb), 0.1);
}
.tool-ic .ic {
  width: 20px;
  height: 20px;
}
.tool-title {
  color: var(--txt);
  font-weight: 750;
  font-size: 14px;
}
.tool-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.soon-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px dashed rgba(var(--fg-rgb), 0.35);
  color: var(--muted);
}

/* ── sender ── */
.sender-choice-field {
  margin-top: 4px;
}
.sender-choice-label {
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.sender-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sender-choice {
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  background: rgba(var(--fg-rgb), 0.035);
  border: 1px solid rgba(var(--fg-rgb), 0.09);
  transition:
    color 0.16s,
    border-color 0.16s,
    background 0.16s,
    transform 0.12s;
}
.sender-choice:active {
  transform: scale(0.985);
}
.sender-choice.on {
  color: var(--txt);
  border-color: rgba(var(--fg-rgb), 0.42);
  background: linear-gradient(135deg, rgba(var(--fg-rgb), 0.13), rgba(var(--fg-rgb), 0.065));
  box-shadow:
    inset 0 0 0 1px rgba(var(--fg-rgb), 0.08),
    0 8px 22px rgba(0, 0, 0, 0.22);
}
.sender-choice-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--muted);
  background: rgba(var(--fg-rgb), 0.07);
}
.sender-choice-icon .ic {
  width: 19px;
  height: 19px;
}
.sender-choice.on .sender-choice-icon {
  color: #fff;
  background: rgba(var(--fg-rgb), 0.13);
}
.sender-choice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sender-choice-copy b {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}
.sender-choice-copy small {
  color: var(--muted2);
  font-size: 11px;
  line-height: 1.35;
}
.sender-choice.on .sender-choice-copy small {
  color: var(--muted);
}
.sender-choice-field.compact {
  margin-bottom: 14px;
}
.sender-choice-grid.compact {
  grid-template-columns: repeat(var(--choice-cols, 3), minmax(0, 1fr));
}
.sender-choice-grid.compact .sender-choice {
  min-height: 62px;
  padding: 10px;
  gap: 9px;
}
.sender-choice-grid.compact .sender-choice-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.sender-choice-grid.compact .sender-choice-icon .ic {
  width: 17px;
  height: 17px;
}
.sender-choice-grid.compact .sender-choice-copy b {
  font-size: 12.5px;
}
.sender-choice-grid.compact .sender-choice-copy small {
  font-size: 10.5px;
}
.sender-resource-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  background: rgba(var(--fg-rgb), 0.035);
  border: 1px solid rgba(var(--fg-rgb), 0.08);
}
.sender-resource-note b {
  color: var(--txt);
  font-weight: 650;
}
.sender-resource-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: rgba(var(--fg-rgb), 0.08);
}
.sender-resource-icon .ic {
  width: 15px;
  height: 15px;
}

.sender-settings-hub {
  padding-bottom: 12px;
}
.sender-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sender-settings-tile {
  min-width: 0;
  padding: 11px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  background: rgba(var(--fg-rgb), 0.035);
  border: 1px solid rgba(var(--fg-rgb), 0.09);
  transition:
    color 0.16s,
    border-color 0.16s,
    background 0.16s,
    transform 0.12s;
}
.sender-settings-tile:active {
  transform: scale(0.98);
}
.sender-settings-tile.active {
  color: var(--txt);
  border-color: rgba(var(--fg-rgb), 0.4);
  background: rgba(var(--fg-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.06);
}
.sender-settings-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--fg-rgb), 0.07);
}
.sender-settings-icon .ic {
  width: 17px;
  height: 17px;
}
.sender-settings-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sender-settings-copy b {
  color: inherit;
  font-size: 12.5px;
}
.sender-settings-copy small {
  color: var(--muted2);
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sender-settings-count {
  min-width: 25px;
  padding: 4px 7px;
  border-radius: 999px;
  text-align: center;
  color: var(--txt);
  font-size: 10px;
  font-weight: 700;
  background: rgba(var(--fg-rgb), 0.08);
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2px;
}
.add-step-btn {
  margin-top: 2px;
  align-self: flex-start;
}

.setup-shared {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--fg-rgb), 0.08);
}
.setup-shared .field:first-child {
  margin-top: 0;
}

.step-row {
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step-row .field {
  margin-bottom: 10px;
}
.step-row .field:last-child {
  margin-bottom: 0;
}
.step-head {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.45px;
  margin-bottom: 2px;
}
.field.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.field.inline label {
  margin: 0;
  white-space: nowrap;
}
.field.inline .input-wrap {
  width: 88px;
  flex: 0 0 auto;
}

.toggle-field {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(var(--fg-rgb), 0.035);
  border: 1px solid rgba(var(--fg-rgb), 0.07);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.toggle-field:last-child {
  margin-bottom: 0;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 20px;
}
/* label.toggle-label: must out-cascade `.field label` (same specificity, later wins) —
   otherwise its margin-bottom:7px pushes the text ~3.5px above center in every bubble */
label.toggle-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
  margin: 0;
  font-size: 12.5px;
  color: var(--txt);
  letter-spacing: 0.2px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.hint-inline {
  flex-basis: 100%;
  font-weight: 400;
  color: var(--muted2);
  font-size: 11px;
  line-height: 1.35;
}

/* grouped toggles read as one intentional settings list (no crooked bubbles) */
.toggle-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  border: 1px solid rgba(var(--fg-rgb), 0.09);
  border-radius: var(--radius-sm);
  background: rgba(var(--fg-rgb), 0.035);
  overflow: hidden;
}
.toggle-group:last-child {
  margin-bottom: 0;
}
.toggle-group .toggle-field {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.06);
}
.toggle-group .toggle-field:last-child {
  border-bottom: 0;
}

/* collapsible "Advanced" group for rarely-used fields */
.adv-group {
  margin: 2px 0 12px;
}
.adv-group > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: var(--muted2);
  font-weight: 600;
  padding: 6px 0;
}
.adv-group > summary::-webkit-details-marker {
  display: none;
}
.adv-group > summary::before {
  content: "▸";
  font-size: 10px;
  color: var(--muted2);
  transition: transform 0.15s;
}
.adv-group[open] > summary::before {
  transform: rotate(90deg);
}
.adv-group > summary:hover {
  color: var(--txt);
}
.adv-group > *:not(summary) {
  margin-top: 10px;
}

/* .section-title shares the prominent header style defined with .form-section-title above */

/* results: Grok verdict badges + human-score chip + verified-only toggle */
.gver {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}
.gver.ok {
  background: rgba(52, 199, 120, 0.16);
  color: #7ee0a6;
  border: 1px solid rgba(52, 199, 120, 0.35);
}
.gver.bad {
  background: rgba(255, 99, 99, 0.14);
  color: #ff9d9d;
  border: 1px solid rgba(255, 99, 99, 0.32);
}
.chip.hs b {
  color: #fff;
}
.chip.hs.good b {
  color: #7ee0a6;
}
.chip.hs.mid b {
  color: #f0d98c;
}
.chip.hs.bad b {
  color: #ff9d9d;
}
.rt-verified {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(var(--fg-rgb), 0.05);
  border: 1px solid rgba(var(--fg-rgb), 0.12);
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}
.rt-verified:hover {
  color: var(--txt);
  border-color: rgba(var(--fg-rgb), 0.22);
}
.rt-verified.on {
  color: var(--txt);
  background: rgba(var(--fg-rgb), 0.12);
  border-color: rgba(var(--fg-rgb), 0.28);
}

.switch {
  flex: 0 0 auto;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb), 0.18);
  background: rgba(var(--fg-rgb), 0.08);
  padding: 2px;
  cursor: pointer;
  position: relative;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.switch.on {
  background: var(--chip-bg);
  border-color: var(--chip-bg);
}
.switch-knob {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--chip-bg);
  transition:
    transform 0.18s,
    background 0.18s;
  box-shadow: 0 1px 3px rgba(var(--shadow-rgb), 0.35);
}
.switch.on .switch-knob {
  transform: translateX(18px);
  background: var(--chip-fg);
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.row-actions .btn,
.row-actions a.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.panel-actions {
  margin-top: 12px;
}
.panel-actions.top-actions {
  margin-top: -2px;
  margin-bottom: 12px;
}
.target-editor {
  min-height: 170px;
}
.target-editor textarea {
  min-height: 148px;
}
.target-editor.disabled {
  opacity: 0.55;
  pointer-events: none;
}
.log-list {
  margin-top: 0;
}

.sender-summary {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.sender-msg {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.result .l-err {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  color: #fca5a5;
  font-size: 11.5px;
  line-height: 1.4;
  background: rgba(239, 68, 68, 0.09);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn.sm {
  padding: 6px 10px;
  font-size: 11px;
}
.btn .btn-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn .btn-ic .ic {
  width: 16px;
  height: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 14px;
}
@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
.admin-bulk {
  margin-bottom: 12px;
}
.admin-bulk .btn {
  width: 100%;
}
.admin-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.admin-tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  align-items: stretch;
}
.admin-tools .seg {
  flex: 1;
  min-width: 200px;
}
.admin-tools .seg button {
  text-transform: capitalize;
  font-size: 12px;
  padding: 8px 10px;
}
.admin-search {
  flex: 1;
  min-width: 140px;
  max-width: 240px;
}
.admin-search input {
  padding: 10px 0 !important;
}
.admin-search-ic {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.admin-search-ic .ic {
  width: 16px;
  height: 16px;
}
.nav-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(var(--shadow-rgb), 0.5);
}
.tab .tic {
  position: relative;
  overflow: visible;
}
.icon-btn.hi {
  background: linear-gradient(135deg, var(--chip-bg), var(--chip-bg-2));
  color: var(--chip-fg);
  border-color: transparent;
}
.icon-btn.off {
  opacity: 0.3;
  cursor: not-allowed;
}
.pill.hi {
  color: var(--chip-fg);
  background: var(--chip-bg);
  border-color: transparent;
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.ar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--chip-fg);
  background: linear-gradient(135deg, var(--chip-bg), var(--chip-bg-2));
  overflow: hidden;
}
.ar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ar-main {
  flex: 1;
  min-width: 140px;
}
.ar-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ar-handle {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.ar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.ar-bio {
  font-size: 11.5px;
  color: var(--muted2);
  flex: 1 1 100%;
  line-height: 1.4;
}
.stat {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  padding: 14px 9px;
  text-align: left;
  background: linear-gradient(145deg, rgba(var(--fg-rgb), 0.06), rgba(var(--fg-rgb), 0.025));
}
.stat::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: rgba(var(--fg-rgb), 0.14);
}
.stat-pending::after {
  background: rgba(240, 217, 140, 0.58);
}
.stat-approved::after,
.stat-pro::after {
  background: rgba(var(--fg-rgb), 0.72);
}
.stat-n {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.stat-k {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}
.ar-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(var(--fg-rgb), 0.14);
  background: rgba(var(--fg-rgb), 0.06);
  color: var(--txt);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 0.12s,
    background 0.18s;
}
.icon-btn:active {
  transform: scale(0.94);
}
.icon-btn.ok {
  background: linear-gradient(135deg, var(--chip-bg), var(--chip-bg-2));
  color: var(--chip-fg);
  border-color: transparent;
}
.icon-btn .ic {
  width: 17px;
  height: 17px;
}
.pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb), 0.16);
  color: var(--muted);
}
.pill.ok {
  color: #05120a;
  background: var(--ok);
  border-color: rgba(var(--ok-rgb), 0.9);
}
.pill.warn {
  color: var(--warn);
  background: rgba(var(--warn-rgb), 0.1);
  border-color: rgba(var(--warn-rgb), 0.52);
}
.pill.err {
  color: #fff;
  border-style: dashed;
  border-color: rgba(var(--fg-rgb), 0.5);
}
.pill.bad {
  color: var(--err);
  background: rgba(var(--err-rgb), 0.1);
  border-color: rgba(var(--err-rgb), 0.48);
}
.pill.new {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.42);
}
.pill.warm {
  color: var(--warn);
  border-color: rgba(var(--warn-rgb), 0.5);
  background: rgba(var(--warn-rgb), 0.08);
}
.chip.warm b {
  color: #f0d98c;
}
