/* ── Layout alignment (monochrome look stays; picker stays off) ── */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg2);
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  background: var(--bg0);
  clip-path: polygon(14% 44%, 0 65%, 38% 100%, 100% 18%, 80% 0, 38% 62%);
}
input[type="checkbox"]:checked {
  background: var(--txt);
  border-color: var(--txt);
}
input[type="checkbox"]:checked::before {
  transform: scale(1);
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.audience-verified-toggle,
.audience-tier-check,
.audience-sender-option,
.toggle-row {
  align-items: center;
}
.audience-verified-toggle input,
.audience-tier-check input,
.audience-sender-option input {
  margin: 0;
}
.audience-tier-picker {
  margin: 0 0 4px;
}
.audience-tier-checks {
  gap: 8px 18px;
  margin-top: 10px;
}
.audience-tier-check {
  min-height: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.field {
  margin-bottom: 14px;
}
.field label {
  margin-bottom: 6px;
}
.form-section-title,
.section-title {
  margin: 20px 0 10px;
}
.input-wrap {
  min-height: 40px;
  border-radius: var(--radius-sm);
}
.card {
  border-radius: var(--radius);
  padding: 18px;
}

.audience-analysis-controls {
  gap: 16px;
}
.audience-estimate {
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
}
.audience-estimate .hint {
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.audience-estimate-chips {
  gap: 8px;
}
.audience-estimate-chips .pill {
  white-space: nowrap;
}

.audience-analysis-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.audience-analysis-panel .follower-plan-progress,
.audience-analysis-panel .follower-quality-setup {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}
.audience-analysis-panel .follower-plan-overview,
.follower-plan-overview {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.audience-analysis-panel .follower-plan-overview {
  margin-top: 0;
}
.follower-plan-overview > div {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  gap: 6px;
}
.follower-plan-overview small {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.follower-plan-overview b {
  font-size: 22px;
  line-height: 1.1;
}
.audience-analysis-panel > .row-actions {
  margin: 0;
  gap: 10px;
}
.audience-analysis-panel > .follower-quality-warning,
.audience-analysis-panel > .audience-log,
.audience-analysis-panel > .audience-sender-progress {
  margin: 0;
}
.audience-log {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}
.runbar {
  border-radius: var(--radius);
  padding: 10px 12px;
}

.pill {
  border-radius: 999px;
}

.crumbs.is-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.page-back .btn-ic,
.page-back .ic {
  width: 16px;
  height: 16px;
}
.page-titlebar-name {
  font-size: 15px;
  font-weight: 750;
}
.runbar[hidden] {
  display: none !important;
}
.run-dock {
  padding: 8px 10px;
}
.more-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.more-nav-sheet {
  width: min(420px, 100%);
  padding: 10px;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.more-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.more-nav-item.active {
  background: rgba(var(--fg-rgb), 0.08);
}
.side-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.side-admin.active,
.side-admin:hover {
  color: var(--txt);
  background: rgba(var(--fg-rgb), 0.06);
}
.side-admin .tic,
.side-admin .ic {
  width: 16px;
  height: 16px;
}
.history-row {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.review-sticky-actions {
  position: sticky;
  bottom: 8px;
  z-index: 4;
  padding: 10px;
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(12, 12, 14, 0.92);
  border: 1px solid rgba(var(--fg-rgb), 0.1);
}
.audience-why {
  display: block;
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.audience-score-detail {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.onboarding-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(var(--fg-rgb), 0.05);
  border: 1px solid rgba(var(--fg-rgb), 0.1);
}
.onboarding-next-copy {
  display: grid;
  gap: 2px;
}
.onboarding-next-copy span {
  color: var(--muted);
  font-size: 12px;
}
.onboarding-rest {
  margin-top: 4px;
}
.onboarding-card.is-complete .onboarding-rest {
  margin-top: 2px;
}
.onboarding-step.optional,
.onboarding-step.available {
  opacity: 0.78;
}
.onboarding-step.current {
  opacity: 1;
}
.plan-compare {
  margin: 8px 0 12px;
}
.plan-compare summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.setup-run-actions {
  margin-top: 16px;
}
.sender-brief-grid,
.audience-seed-editor {
  display: grid;
  gap: 12px;
}
.audience-seed-editor {
  gap: 12px;
}
.audience-seed-editor > .page-head {
  margin-bottom: 4px;
}
.audience-seed-editor .page-head-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: var(--muted);
}
.audience-seed-editor .page-head-icon .ic {
  width: 16px;
  height: 16px;
}
.audience-seed-editor .page-head-copy h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: none;
}
.audience-seed-editor .page-head-copy .sub {
  margin: 4px 0 0;
  max-width: 68ch;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.audience-seed-editor .seed-pane {
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(var(--fg-rgb), 0.03);
  border: 1px solid rgba(var(--fg-rgb), 0.08);
}
.audience-seed-editor .seed-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.audience-seed-editor .seed-pane label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--txt);
  letter-spacing: 0;
}
.audience-seed-editor .seed-count {
  flex: 0 0 auto;
  color: var(--muted2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.audience-seed-editor .seed-count:empty {
  display: none;
}
.audience-seed-editor .seed-pane .hint {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}
.audience-seed-editor .seed-pane textarea,
.audience-seed-editor .seed-list {
  flex: 1 1 auto;
  min-height: 176px;
  margin: 0;
  padding: 10px 12px;
  resize: none;
  overflow-y: auto;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--txt);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(var(--fg-rgb), 0.1);
  border-radius: 10px;
  box-shadow: none;
}
.audience-seed-editor .seed-pane textarea::placeholder {
  color: var(--muted2);
  opacity: 0.8;
}
.audience-seed-editor .seed-pane textarea:focus {
  border-color: rgba(var(--fg-rgb), 0.28);
  box-shadow: 0 0 0 3px rgba(var(--fg-rgb), 0.08);
  background: rgba(0, 0, 0, 0.38);
  outline: none;
}
.audience-seed-editor > .adv-group {
  margin: 2px 0 0;
}
.audience-seed-editor > .adv-group > summary {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.audience-seed-editor > .row-actions {
  margin-top: 2px;
}
.audience-seed-editor > .row-actions .btn.primary {
  background: #f2f2f4;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}
@media (min-width: 1100px) {
  .audience-seed-editor {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-items: stretch;
  }
  .audience-seed-editor > .page-head,
  .audience-seed-editor > .row-actions,
  .audience-seed-editor > details {
    grid-column: 1 / -1;
  }
  .sender-brief-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.view:has(.audience-seed-editor) {
  overflow: hidden;
}
.view:has(.audience-seed-editor) > .crumbs,
.view:has(.audience-seed-editor) > .subnav {
  flex: 0 0 auto;
}
.view:has(.audience-seed-editor) > .subview {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.subview:has(> .audience-seed-editor:last-child) > .audience-seed-editor {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.subview:has(> .audience-seed-editor:last-child) > .audience-seed-editor:has(> details[open]) {
  flex: 0 0 auto;
  overflow: visible;
}
@media (min-width: 1100px) {
  .subview:has(> .audience-seed-editor:last-child) > .audience-seed-editor .seed-list {
    min-height: 0;
  }
  .audience-seed-editor:has(> details[open]) {
    grid-template-rows: auto minmax(140px, auto) auto auto;
  }
}
.view:has(.crm-messages) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.view:has(.crm-messages) .crumbs,
.view:has(.crm-messages) .subnav {
  flex: 0 0 auto;
}
.cmdk-item[role="option"] {
  cursor: pointer;
}
.profile-layout,
.setup-layout {
  display: grid;
  gap: 16px;
}
.setup-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  align-self: start;
}
.setup-rail-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}
.setup-rail-row dt {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.setup-rail-row dd {
  margin: 0 0 8px;
  font-size: 13px;
}
.setup-rail-row.is-gap dd {
  color: #fbbf24;
}
.btn.ghost.danger {
  color: #fca5a5;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.crm-messages.crm-unprovisioned .crm-new-message,
.crm-messages.crm-unprovisioned .crm-message-toolbar {
  display: none;
}
.crm-messages.crm-unprovisioned .crm-inbox {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
@media (min-width: 1100px) {
  .profile-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .setup-layout {
    grid-template-columns: minmax(0, 8fr) minmax(240px, 4fr);
    align-items: start;
  }
  .setup-rail {
    position: sticky;
    top: 12px;
  }
}
