/**
 * RizzBio AI Reply Generator Styles — Production Release v2.0
 * Responsive 2-column web application workspace with mobile adaptive layout.
 * Scoped under .rizzbio-reply-wrapper and #rizzbio-reply-app.
 */

:root,
.rizzbio-reply-wrapper {
  --rb-primary: #4f46e5;
  --rb-primary-hover: #4338ca;
  --rb-primary-light: #eef2ff;
  --rb-gradient: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  --rb-gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --rb-text-main: #0f172a;
  --rb-text-body: #334155;
  --rb-text-muted: #64748b;
  --rb-text-subtle: #94a3b8;
  --rb-bg-canvas: #0f172a;
  --rb-bg-page: #f8fafc;
  --rb-bg-card: #ffffff;
  --rb-bg-input: #f1f5f9;
  --rb-border: #e2e8f0;
  --rb-border-hover: #cbd5e1;
  --rb-border-focus: #4f46e5;
  --rb-accent-rose: #e11d48;
  --rb-accent-rose-bg: #fff1f2;
  --rb-accent-emerald: #059669;
  --rb-accent-emerald-bg: #ecfdf5;
  --rb-accent-amber: #d97706;
  --rb-accent-amber-bg: #fffbeb;
  --rb-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rb-radius-sm: 8px;
  --rb-radius-md: 12px;
  --rb-radius-lg: 16px;
  --rb-radius-xl: 24px;
  --rb-radius-pill: 9999px;
  --rb-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --rb-shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
  --rb-shadow-lg: 0 10px 30px -5px rgba(15, 23, 42, 0.1);
  --rb-shadow-floating: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

.rizzbio-reply-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--rb-font-sans);
  color: var(--rb-text-body);
  position: relative;
  box-sizing: border-box;
}

.rizzbio-reply-wrapper *,
.rizzbio-reply-wrapper *::before,
.rizzbio-reply-wrapper *::after {
  box-sizing: border-box;
}

/* ─── WORKSPACE CONTAINER ─── */
.rizzbio-reply-wrapper .workspace-container {
  width: 100%;
  background: var(--rb-bg-card);
  border: none;
  border-radius: var(--rb-radius-lg);
  box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.08), 0 2px 10px -2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── TOP HEADER TOOLBAR ─── */
.rizzbio-reply-wrapper .workspace-header {
  background: #ffffff;
  border-bottom: 1px solid var(--rb-border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rizzbio-reply-wrapper .brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rizzbio-reply-wrapper .brand-logo {
  font-size: 19px;
  font-weight: 800;
  color: var(--rb-text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.rizzbio-reply-wrapper .brand-logo span {
  background: var(--rb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rizzbio-reply-wrapper .brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--rb-accent-rose);
  border-radius: 50%;
  margin-left: 2px;
}

.rizzbio-reply-wrapper .brand-subline {
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-text-muted);
  border-left: 1px solid var(--rb-border);
  padding-left: 10px;
}

.rizzbio-reply-wrapper .header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── PLATFORM SELECTOR TABS ─── */
.rizzbio-reply-wrapper .platform-tabs {
  display: flex;
  background: var(--rb-bg-input);
  padding: 3px;
  border-radius: var(--rb-radius-pill);
  gap: 2px;
  border: 1px solid var(--rb-border);
}

.rizzbio-reply-wrapper .platform-tab {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--rb-radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--rb-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  min-height: 32px;
}

.rizzbio-reply-wrapper .platform-tab:hover {
  color: var(--rb-text-main);
}

.rizzbio-reply-wrapper .platform-tab.active {
  background: #ffffff;
  color: var(--rb-text-main);
  box-shadow: var(--rb-shadow-sm);
}

#tabHinge.active svg { color: #000; }
#tabTinder.active svg { color: #fe3c72; }
#tabGeneric.active svg { color: var(--rb-primary); }

/* ─── QUOTA BADGE PILL ─── */
.rizzbio-reply-wrapper .app-meta-pill {
  font-size: 12px;
  font-weight: 700;
  background: var(--rb-primary-light);
  color: var(--rb-primary);
  padding: 6px 12px;
  border-radius: var(--rb-radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid rgba(79, 70, 229, 0.2);
  transition: all 0.15s ease;
  min-height: 32px;
}

.rizzbio-reply-wrapper .app-meta-pill:hover {
  background: #e0e7ff;
  border-color: rgba(79, 70, 229, 0.35);
}

/* ─── SUBBAR ─── */
.rizzbio-reply-wrapper .workspace-subbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--rb-border);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--rb-text-muted);
  flex-wrap: wrap;
}

.rizzbio-reply-wrapper .platform-subtitle {
  font-weight: 500;
}

.rizzbio-reply-wrapper .btn-sample-loader {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.rizzbio-reply-wrapper .btn-sample-loader:hover {
  background: var(--rb-primary-light);
  border-color: var(--rb-primary);
}

/* ─── MAIN WORKSPACE GRID (2-Column Desktop / 1-Column Responsive Flow) ─── */
.rizzbio-reply-wrapper .workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  background: var(--rb-bg-page);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.rizzbio-reply-wrapper .workspace-col {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

/* ─── LEFT COLUMN: INPUT WORKSPACE ─── */
.rizzbio-reply-wrapper .input-mode-tabs {
  display: flex;
  background: var(--rb-bg-input);
  padding: 4px;
  border-radius: var(--rb-radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--rb-border);
  gap: 4px;
}

.rizzbio-reply-wrapper .input-mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: var(--rb-radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--rb-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rizzbio-reply-wrapper .input-mode-btn:hover {
  color: var(--rb-text-main);
}

.rizzbio-reply-wrapper .input-mode-btn.active {
  background: #ffffff;
  color: var(--rb-primary);
  box-shadow: var(--rb-shadow-sm);
}

/* ─── HINGE ADAPTIVE WORKFLOW BAR ─── */
.rizzbio-reply-wrapper .hinge-interaction-bar {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(225, 29, 72, 0.05) 100%);
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: var(--rb-radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rizzbio-reply-wrapper .hinge-modes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rizzbio-reply-wrapper .hinge-modes-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rb-primary);
  background: var(--rb-primary-light);
  padding: 2px 8px;
  border-radius: var(--rb-radius-pill);
}

.rizzbio-reply-wrapper .hinge-modes-hint {
  font-size: 12px;
  color: var(--rb-text-muted);
}

.rizzbio-reply-wrapper .hinge-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.rizzbio-reply-wrapper .hinge-mode-btn {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rb-text-body);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  min-height: 44px;
  text-align: center;
}

.rizzbio-reply-wrapper .hinge-mode-btn:hover {
  border-color: var(--rb-primary);
  color: var(--rb-primary);
}

.rizzbio-reply-wrapper .hinge-mode-btn.active {
  background: var(--rb-primary);
  border-color: var(--rb-primary);
  color: #ffffff;
  box-shadow: var(--rb-shadow-sm);
}

.rizzbio-reply-wrapper .hinge-mode-icon {
  font-size: 14px;
  line-height: 1;
}

.rizzbio-reply-wrapper .hinge-mode-title {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Prompt Select & Custom Inputs */
.rizzbio-reply-wrapper .select-wrap {
  position: relative;
  width: 100%;
}

.rizzbio-reply-wrapper .prompt-select,
.rizzbio-reply-wrapper .custom-prompt-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  font-family: inherit;
  font-size: 13px;
  color: var(--rb-text-main);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 42px;
}

.rizzbio-reply-wrapper .prompt-select:focus,
.rizzbio-reply-wrapper .custom-prompt-input:focus {
  border-color: var(--rb-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Revive Strategy Notice */
.rizzbio-reply-wrapper .revive-strategy-notice {
  background: var(--rb-accent-amber-bg);
  border: 1px solid #fde68a;
  border-radius: var(--rb-radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rizzbio-reply-wrapper .strategy-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--rb-accent-amber);
}

.rizzbio-reply-wrapper .strategy-text {
  font-size: 12px;
  color: #92400e;
  line-height: 1.4;
}

/* ─── TINDER ADAPTIVE WORKFLOW BAR ─── */
.rizzbio-reply-wrapper .tinder-interaction-bar {
  background: linear-gradient(135deg, rgba(254, 60, 114, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
  border: 1px solid rgba(254, 60, 114, 0.2);
  border-radius: var(--rb-radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rizzbio-reply-wrapper .tinder-modes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rizzbio-reply-wrapper .tinder-modes-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fe3c72;
  background: #fff0f3;
  padding: 2px 8px;
  border-radius: var(--rb-radius-pill);
}

.rizzbio-reply-wrapper .tinder-modes-hint {
  font-size: 12px;
  color: var(--rb-text-muted);
}

.rizzbio-reply-wrapper .tinder-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.rizzbio-reply-wrapper .tinder-mode-btn {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rb-text-body);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  min-height: 44px;
  text-align: center;
}

.rizzbio-reply-wrapper .tinder-mode-btn:hover {
  border-color: #fe3c72;
  color: #fe3c72;
}

.rizzbio-reply-wrapper .tinder-mode-btn.active {
  background: #fe3c72;
  border-color: #fe3c72;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(254, 60, 114, 0.25);
}

.rizzbio-reply-wrapper .tinder-mode-icon {
  font-size: 14px;
  line-height: 1;
}

.rizzbio-reply-wrapper .tinder-mode-title {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Tinder Opener Context Source Tabs */
.rizzbio-reply-wrapper .tinder-source-tabs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.rizzbio-reply-wrapper .tinder-source-btn {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-text-body);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rizzbio-reply-wrapper .tinder-source-btn:hover {
  border-color: #fe3c72;
  color: #fe3c72;
}

.rizzbio-reply-wrapper .tinder-source-btn.active {
  background: #fe3c72;
  border-color: #fe3c72;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(254, 60, 114, 0.2);
}

/* Tinder Blank Bio Notice */
.rizzbio-reply-wrapper .tinder-no-bio-notice {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: var(--rb-radius-sm);
  padding: 10px 14px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rizzbio-reply-wrapper .no-bio-badge {
  font-size: 11px;
  font-weight: 800;
  color: #db2777;
}

.rizzbio-reply-wrapper .no-bio-text {
  font-size: 12px;
  color: #9d174d;
  margin: 0;
  line-height: 1.4;
}

/* Tinder First Impression Notice */
.rizzbio-reply-wrapper .tinder-first-impression-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--rb-radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rizzbio-reply-wrapper .first-impression-badge {
  font-size: 11px;
  font-weight: 800;
  color: #1d4ed8;
}

.rizzbio-reply-wrapper .first-impression-hint {
  font-size: 12px;
  color: #1e40af;
  line-height: 1.4;
}

/* Tinder 140-Char Platinum Overlong State */
.rizzbio-reply-wrapper .reply-card.card-overlong {
  border: 2px solid #ef4444 !important;
  background: #fffafb;
}

.rizzbio-reply-wrapper .btn-copy.btn-copy-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}

/* ─── FORM & FIELD GROUPS ─── */
.rizzbio-reply-wrapper .input-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rizzbio-reply-wrapper .field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rizzbio-reply-wrapper .field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.rizzbio-reply-wrapper .field-label {
  font-weight: 700;
  color: var(--rb-text-main);
}

.rizzbio-reply-wrapper .required-star {
  color: var(--rb-accent-rose);
  font-weight: bold;
}

.rizzbio-reply-wrapper .optional-tag {
  font-size: 11px;
  font-weight: normal;
  color: var(--rb-text-muted);
}

.rizzbio-reply-wrapper .char-counter {
  font-size: 11px;
  color: var(--rb-text-subtle);
  font-variant-numeric: tabular-nums;
}

/* ─── TEXTAREA WRAPPERS ─── */
.rizzbio-reply-wrapper .textarea-wrap {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rizzbio-reply-wrapper .textarea-wrap:focus-within {
  border-color: var(--rb-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.rizzbio-reply-wrapper .message-textarea {
  width: 100%;
  min-height: 85px;
  border: none;
  background: transparent;
  padding: 12px 14px 36px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rb-text-main);
  resize: vertical;
  outline: none;
}

.rizzbio-reply-wrapper .message-textarea::placeholder {
  color: var(--rb-text-subtle);
}

.rizzbio-reply-wrapper .textarea-footer-actions {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rizzbio-reply-wrapper .btn-clear-text {
  background: transparent;
  border: none;
  color: var(--rb-text-subtle);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.rizzbio-reply-wrapper .btn-clear-text:hover {
  color: var(--rb-accent-rose);
}

.rizzbio-reply-wrapper .btn-quick-paste {
  background: var(--rb-bg-input);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--rb-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rizzbio-reply-wrapper .btn-quick-paste:hover {
  background: #ffffff;
  color: var(--rb-primary);
  border-color: var(--rb-primary);
}

/* ─── MULTI-TURN THREAD MODE ─── */
.rizzbio-reply-wrapper .thread-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rizzbio-reply-wrapper .target-hint {
  font-size: 11px;
  color: var(--rb-primary);
  font-weight: 600;
}

.rizzbio-reply-wrapper .thread-turns-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rizzbio-reply-wrapper .thread-turn {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.rizzbio-reply-wrapper .thread-turn.is-target {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
  background: #fcfdff;
}

.rizzbio-reply-wrapper .turn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rizzbio-reply-wrapper .speaker-toggle {
  display: flex;
  background: var(--rb-bg-input);
  border-radius: var(--rb-radius-pill);
  padding: 2px;
  gap: 2px;
}

.rizzbio-reply-wrapper .speaker-btn {
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: var(--rb-text-muted);
  padding: 3px 10px;
  border-radius: var(--rb-radius-pill);
  cursor: pointer;
}

.rizzbio-reply-wrapper .speaker-btn.active {
  background: var(--rb-primary);
  color: #ffffff;
}

.rizzbio-reply-wrapper .speaker-btn.active.me {
  background: #334155;
  color: #ffffff;
}

.rizzbio-reply-wrapper .target-badge-btn {
  border: 1px solid var(--rb-border);
  background: #ffffff;
  color: var(--rb-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--rb-radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.rizzbio-reply-wrapper .target-badge-btn:hover {
  border-color: var(--rb-primary);
  color: var(--rb-primary);
}

.rizzbio-reply-wrapper .target-badge-btn.active {
  background: var(--rb-primary-light);
  border-color: var(--rb-primary);
  color: var(--rb-primary);
  font-weight: 700;
}

.rizzbio-reply-wrapper .turn-textarea {
  width: 100%;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: var(--rb-text-main);
  resize: vertical;
  outline: none;
  background: #fafafa;
}

.rizzbio-reply-wrapper .turn-textarea:focus {
  border-color: var(--rb-primary);
  background: #ffffff;
}

.rizzbio-reply-wrapper .thread-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.rizzbio-reply-wrapper .btn-thread-action {
  background: #ffffff;
  border: 1px dashed var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-text-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.rizzbio-reply-wrapper .btn-thread-action:hover {
  border-color: var(--rb-primary);
  color: var(--rb-primary);
  background: var(--rb-primary-light);
}

.rizzbio-reply-wrapper .btn-thread-action--danger:hover {
  border-color: var(--rb-accent-rose);
  color: var(--rb-accent-rose);
  background: var(--rb-accent-rose-bg);
}

/* ─── CONTEXT & DRAFT TEXTAREAS ─── */
.rizzbio-reply-wrapper .context-textarea {
  width: 100%;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: var(--rb-text-main);
  resize: vertical;
  background: #ffffff;
  outline: none;
}

.rizzbio-reply-wrapper .context-textarea:focus {
  border-color: var(--rb-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.rizzbio-reply-wrapper .accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px dashed var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.rizzbio-reply-wrapper .accordion-trigger:hover {
  border-color: var(--rb-primary);
  color: var(--rb-primary);
  background: var(--rb-primary-light);
}

.rizzbio-reply-wrapper .accordion-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.rizzbio-reply-wrapper .context-help {
  font-size: 11px;
  color: var(--rb-text-muted);
}

/* ─── LANGUAGE SELECT ─── */
.rizzbio-reply-wrapper .language-select-wrap {
  position: relative;
}

.rizzbio-reply-wrapper .language-select {
  width: 100%;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--rb-text-main);
  background: #ffffff;
  outline: none;
  cursor: pointer;
  min-height: 38px;
}

.rizzbio-reply-wrapper .language-select:focus {
  border-color: var(--rb-primary);
}

/* ─── GOAL PILLS ─── */
.rizzbio-reply-wrapper .goal-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rizzbio-reply-wrapper .goal-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.rizzbio-reply-wrapper .goal-pill {
  border: 1px solid var(--rb-border);
  background: #ffffff;
  border-radius: var(--rb-radius-md);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-text-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  min-height: 44px;
}

.rizzbio-reply-wrapper .goal-pill:hover {
  border-color: var(--rb-primary);
}

.rizzbio-reply-wrapper .goal-pill:focus-visible {
  outline: 2px solid var(--rb-primary);
  outline-offset: 2px;
}

.rizzbio-reply-wrapper .goal-pill.active,
.rizzbio-reply-wrapper .goal-pill[aria-pressed="true"] {
  border-color: var(--rb-primary);
  background: var(--rb-primary-light);
  color: var(--rb-primary);
  font-weight: 700;
}

.rizzbio-reply-wrapper .goal-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rb-text-subtle);
}

.rizzbio-reply-wrapper .goal-pill.active .goal-indicator,
.rizzbio-reply-wrapper .goal-pill[aria-pressed="true"] .goal-indicator {
  background: var(--rb-primary);
}

/* ─── PRIMARY GENERATE BUTTON ─── */
.rizzbio-reply-wrapper .btn-generate {
  width: 100%;
  background: var(--rb-gradient);
  border: none;
  border-radius: var(--rb-radius-md);
  color: #ffffff;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 48px;
}

.rizzbio-reply-wrapper .btn-generate:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.rizzbio-reply-wrapper .btn-generate:active {
  transform: translateY(1px);
}

.rizzbio-reply-wrapper .privacy-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--rb-text-muted);
}

/* ─── SHAKE ANIMATION ─── */
.rizzbio-reply-wrapper .shake-error {
  animation: rbShake 0.35s ease-in-out;
}

@keyframes rbShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ─── RIGHT COLUMN: RESULTS & PREVIEWS ─── */
.rizzbio-reply-wrapper .workspace-col--output {
  display: flex;
  flex-direction: column;
}

/* ─── 1. EMPTY / PREVIEW STATE ─── */
.rizzbio-reply-wrapper .state-empty {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rizzbio-reply-wrapper .empty-preview-card {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.rizzbio-reply-wrapper .empty-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--rb-primary-light);
  color: var(--rb-primary);
  padding: 3px 8px;
  border-radius: var(--rb-radius-pill);
}

.rizzbio-reply-wrapper .empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--rb-text-main);
  margin: 0;
  line-height: 1.3;
}

.rizzbio-reply-wrapper .empty-desc {
  font-size: 13px;
  color: var(--rb-text-body);
  line-height: 1.5;
  margin: 0;
}

.rizzbio-reply-wrapper .trio-preview-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.rizzbio-reply-wrapper .trio-preview-item {
  background: var(--rb-bg-page);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rizzbio-reply-wrapper .trio-preview-header {
  display: flex;
  align-items: center;
}

.rizzbio-reply-wrapper .trio-preview-body {
  font-size: 12px;
  color: var(--rb-text-muted);
  line-height: 1.4;
  margin: 0;
}

.rizzbio-reply-wrapper .empty-coaching-callout {
  margin-top: auto;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--rb-radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.4;
}

/* ─── 2. GENERATION LOADER (Positioned directly below generate button) ─── */
.rizzbio-reply-wrapper .state-loader {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 36px 24px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  width: 100%;
  box-shadow: var(--rb-shadow-sm);
  margin-top: 0;
}

.rizzbio-reply-wrapper .loader-spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid var(--rb-primary-light);
  border-top-color: var(--rb-primary);
  border-radius: 50%;
  animation: rbSpin 0.8s linear infinite;
}

@keyframes rbSpin {
  to { transform: rotate(360deg); }
}

.rizzbio-reply-wrapper .loader-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--rb-text-main);
}

.rizzbio-reply-wrapper .loader-progress-steps {
  font-size: 14px;
  color: var(--rb-text-main);
  font-weight: 600;
  min-height: 22px;
  transition: opacity 0.2s ease;
}

.rizzbio-reply-wrapper .loader-bar-track {
  width: 100%;
  max-width: 320px;
  height: 8px;
  background: var(--rb-bg-input);
  border-radius: var(--rb-radius-pill);
  overflow: hidden;
  margin: 4px auto;
}

.rizzbio-reply-wrapper .loader-bar-fill {
  height: 100%;
  background: var(--rb-gradient);
  border-radius: var(--rb-radius-pill);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  width: 18%;
}

.rizzbio-reply-wrapper .loader-tip-card {
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 14px 18px;
  max-width: 480px;
  text-align: left;
  width: 100%;
}

.rizzbio-reply-wrapper .loader-tip-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rb-primary);
  margin-bottom: 4px;
}

.rizzbio-reply-wrapper .loader-tip-body {
  font-size: 12px;
  color: var(--rb-text-body);
  line-height: 1.45;
}

/* ─── 3. RESULTS STATE (Positioned directly below generate button) ─── */
.rizzbio-reply-wrapper .state-results {
  display: none;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 0;
}

.rizzbio-reply-wrapper .results-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
}

.rizzbio-reply-wrapper .results-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--rb-text-main);
}

.rizzbio-reply-wrapper .results-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rizzbio-reply-wrapper .results-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--rb-accent-emerald-bg);
  color: var(--rb-accent-emerald);
  padding: 3px 8px;
  border-radius: var(--rb-radius-pill);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.rizzbio-reply-wrapper .btn-back-mobile {
  display: none;
  background: transparent;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--rb-text-muted);
  cursor: pointer;
}

.rizzbio-reply-wrapper .results-coaching-box {
  background: #f8fafc;
  border: 1px solid var(--rb-border);
  border-left: 4px solid var(--rb-primary);
  border-radius: var(--rb-radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--rb-text-main);
}

.rizzbio-reply-wrapper .coaching-title {
  font-weight: 700;
  color: var(--rb-primary);
  margin-right: 4px;
}

/* ─── REPLY CARDS ─── */
.rizzbio-reply-wrapper .reply-card {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--rb-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rizzbio-reply-wrapper .reply-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--rb-shadow-md);
}

.rizzbio-reply-wrapper .card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rizzbio-reply-wrapper .angle-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--rb-radius-pill);
  display: inline-flex;
  align-items: center;
}

.rizzbio-reply-wrapper .angle-badge.banter {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.rizzbio-reply-wrapper .angle-badge.direct {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

.rizzbio-reply-wrapper .angle-badge.warm {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.rizzbio-reply-wrapper .length-badge {
  font-size: 11px;
  color: var(--rb-text-subtle);
  font-variant-numeric: tabular-nums;
}

.rizzbio-reply-wrapper .reply-text-container {
  font-size: 15px;
  font-weight: 600;
  color: var(--rb-text-main);
  line-height: 1.45;
  user-select: all;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: var(--rb-radius-sm);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.rizzbio-reply-wrapper .reply-editable-textarea {
  width: 100%;
  min-height: 75px;
  border: 1px solid var(--rb-primary);
  border-radius: var(--rb-radius-sm);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--rb-text-main);
  resize: vertical;
  outline: none;
}

.rizzbio-reply-wrapper .coach-rationale {
  font-size: 12px;
  color: var(--rb-text-muted);
  line-height: 1.4;
}

.rizzbio-reply-wrapper .coach-rationale strong {
  color: var(--rb-text-body);
}

.rizzbio-reply-wrapper .card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.rizzbio-reply-wrapper .btn-copy {
  flex: 1;
  background: var(--rb-primary-light);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--rb-radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rb-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  min-height: 38px;
}

.rizzbio-reply-wrapper .btn-copy:hover {
  background: #e0e7ff;
  border-color: var(--rb-primary);
}

.rizzbio-reply-wrapper .btn-copy.copied {
  background: var(--rb-accent-emerald-bg);
  border-color: var(--rb-accent-emerald);
  color: var(--rb-accent-emerald);
}

.rizzbio-reply-wrapper .btn-card-tool {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-text-body);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rizzbio-reply-wrapper .btn-card-tool:hover {
  border-color: var(--rb-primary);
  color: var(--rb-primary);
}

.rizzbio-reply-wrapper .results-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.rizzbio-reply-wrapper .btn-regen-all {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rb-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  min-height: 42px;
}

.rizzbio-reply-wrapper .btn-regen-all:hover {
  border-color: var(--rb-primary);
  color: var(--rb-primary);
  background: var(--rb-primary-light);
}

/* ─── 4. CLARIFICATION STATE ─── */
.rizzbio-reply-wrapper .state-clarification {
  display: flex;
  flex-direction: column;
}

.rizzbio-reply-wrapper .clarification-card {
  background: #ffffff;
  border: 1px solid var(--rb-border);
  border-left: 4px solid var(--rb-accent-amber);
  border-radius: var(--rb-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rizzbio-reply-wrapper .clarification-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rizzbio-reply-wrapper .clarification-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--rb-accent-amber);
}

.rizzbio-reply-wrapper .clarification-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--rb-text-main);
  line-height: 1.45;
  background: #fffbeb;
  padding: 12px 14px;
  border-radius: var(--rb-radius-sm);
  border: 1px solid #fef3c7;
}

.rizzbio-reply-wrapper .clarification-help {
  font-size: 12px;
  color: var(--rb-text-muted);
  line-height: 1.5;
  margin: 0;
}

.rizzbio-reply-wrapper .btn-add-detail {
  background: var(--rb-accent-amber);
  border: none;
  border-radius: var(--rb-radius-sm);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}

/* ─── 5. SELF-RESPECT / DROP THE ROPE STATE ─── */
.rizzbio-reply-wrapper .state-drop-rope {
  display: flex;
  flex-direction: column;
}

.rizzbio-reply-wrapper .drop-rope-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-top: 4px solid #ea580c;
  border-radius: var(--rb-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rizzbio-reply-wrapper .drop-rope-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.5px;
}

.rizzbio-reply-wrapper .incoming-quote-box {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: var(--rb-radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-style: italic;
  color: var(--rb-text-main);
}

.rizzbio-reply-wrapper .drop-rope-verdict {
  font-size: 14px;
  font-weight: 800;
  color: #c2410c;
}

.rizzbio-reply-wrapper .drop-rope-body {
  font-size: 13px;
  color: var(--rb-text-body);
  line-height: 1.5;
  margin: 0;
}

.rizzbio-reply-wrapper .btn-unmatch-action {
  background: #dc2626;
  border: none;
  border-radius: var(--rb-radius-sm);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rizzbio-reply-wrapper .polite-exit-box {
  background: #f8fafc;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.rizzbio-reply-wrapper .polite-exit-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--rb-text-muted);
}

.rizzbio-reply-wrapper .polite-exit-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--rb-text-main);
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid var(--rb-border);
}

/* ─── PAYWALL / LIMIT MODAL ─── */
.rizzbio-reply-wrapper .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.rizzbio-reply-wrapper .modal-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--rb-radius-xl) var(--rb-radius-xl) 0 0;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: rbSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rbSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.rizzbio-reply-wrapper .btn-modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--rb-bg-input);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--rb-text-muted);
}

.rizzbio-reply-wrapper .modal-drag-bar {
  width: 36px;
  height: 4px;
  background: var(--rb-border);
  border-radius: var(--rb-radius-pill);
  margin: 0 auto 4px;
}

.rizzbio-reply-wrapper .modal-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.rizzbio-reply-wrapper .modal-urgency-pill {
  align-self: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: #fee2e2;
  color: #dc2626;
  padding: 3px 10px;
  border-radius: var(--rb-radius-pill);
}

.rizzbio-reply-wrapper .modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--rb-text-main);
  margin: 0;
}

.rizzbio-reply-wrapper .modal-subtitle {
  font-size: 13px;
  color: var(--rb-text-muted);
  line-height: 1.45;
}

.rizzbio-reply-wrapper .modal-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  color: var(--rb-text-body);
  font-weight: 600;
  margin-top: 4px;
}

.rizzbio-reply-wrapper .pack-card {
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  position: relative;
}

.rizzbio-reply-wrapper .pack-card.featured {
  border-color: var(--rb-primary);
  background: #fcfdff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}

.rizzbio-reply-wrapper .pack-ribbon {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--rb-accent-rose);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--rb-radius-pill);
  letter-spacing: 0.5px;
}

.rizzbio-reply-wrapper .pack-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rizzbio-reply-wrapper .pack-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--rb-text-main);
  display: block;
}

.rizzbio-reply-wrapper .pack-details {
  font-size: 12px;
  color: var(--rb-text-muted);
  display: block;
}

.rizzbio-reply-wrapper .pack-price-wrap {
  text-align: right;
}

.rizzbio-reply-wrapper .pack-price-was {
  font-size: 12px;
  color: var(--rb-text-subtle);
  text-decoration: line-through;
}

.rizzbio-reply-wrapper .pack-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--rb-text-main);
}

.rizzbio-reply-wrapper .pack-unit-price {
  font-size: 10px;
  color: var(--rb-text-muted);
}

.rizzbio-reply-wrapper .pack-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--rb-text-body);
}

.rizzbio-reply-wrapper .check-icon {
  color: var(--rb-accent-emerald);
  font-weight: bold;
  margin-right: 4px;
}

.rizzbio-reply-wrapper .btn-pack-cta {
  border-radius: var(--rb-radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  min-height: 42px;
}

.rizzbio-reply-wrapper .btn-pack-cta--primary {
  background: var(--rb-gradient);
  color: #ffffff;
  border: none;
}

.rizzbio-reply-wrapper .btn-pack-cta--outline {
  background: #ffffff;
  color: var(--rb-text-main);
  border: 1px solid var(--rb-border);
}

.rizzbio-reply-wrapper .modal-guarantee {
  background: var(--rb-bg-page);
  border-radius: var(--rb-radius-sm);
  padding: 10px 12px;
  text-align: center;
  font-size: 11px;
  color: var(--rb-text-muted);
}

.rizzbio-reply-wrapper .btn-close-modal {
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--rb-text-muted);
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
}

/* ─── TOAST NOTIFICATION ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1e293b;
  color: #f8fafc;
  padding: 10px 18px;
  border-radius: var(--rb-radius-pill);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  max-width: 90vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-container svg {
  width: 16px;
  height: 16px;
  color: #34d399;
  flex-shrink: 0;
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── RESPONSIVE BREAKPOINTS (Mobile & Tablet) ─── */
@media (max-width: 991px) {
  .rizzbio-reply-wrapper .workspace-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
  }

  .rizzbio-reply-wrapper .state-empty {
    display: none !important;
  }

  .rizzbio-reply-wrapper .state-loader,
  .rizzbio-reply-wrapper .state-results {
    margin-top: 8px;
  }

  .rizzbio-reply-wrapper .btn-back-mobile {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .rizzbio-reply-wrapper .workspace-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .rizzbio-reply-wrapper .header-right-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .rizzbio-reply-wrapper .platform-tabs {
    padding: 2px;
    gap: 2px;
  }

  .rizzbio-reply-wrapper .platform-tab {
    padding: 5px 8px;
    font-size: 11px;
    gap: 4px;
    min-height: 32px;
    white-space: nowrap;
  }

  .rizzbio-reply-wrapper .app-meta-pill {
    padding: 5px 8px;
    font-size: 11px;
    min-height: 32px;
    white-space: nowrap;
  }

  .rizzbio-reply-wrapper .brand-subline {
    display: none;
  }

  .rizzbio-reply-wrapper .workspace-subbar {
    padding: 8px 12px;
  }

  .rizzbio-reply-wrapper .workspace-grid {
    padding: 12px 10px;
  }

  .rizzbio-reply-wrapper .goal-pills {
    grid-template-columns: 1fr;
  }

  .rizzbio-reply-wrapper .hinge-mode-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .rizzbio-reply-wrapper .hinge-mode-btn {
    padding: 8px 6px;
    min-height: 44px;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
  }

  .rizzbio-reply-wrapper .hinge-mode-title {
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    text-align: left;
  }

  .rizzbio-reply-wrapper .tinder-mode-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .rizzbio-reply-wrapper .tinder-mode-btn {
    padding: 8px 6px;
    min-height: 44px;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
  }

  .rizzbio-reply-wrapper .tinder-mode-title {
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    text-align: left;
  }

  .toast-container {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .rizzbio-reply-wrapper .workspace-header {
    padding: 8px 6px;
  }

  .rizzbio-reply-wrapper .platform-tab {
    padding: 4px 6px;
    font-size: 10px;
    gap: 3px;
  }

  .rizzbio-reply-wrapper .app-meta-pill {
    padding: 4px 6px;
    font-size: 10px;
  }
}
