:root {
  /* ── Phosphor palette ── */
  --color-cyan:          #00F5FF;
  --color-pink:          #FF2DAA;
  --color-purple:        #7C4DFF;
  --color-purple-light:  #A78BFA;
  --color-lime:          #CCFF00;
  --color-dark:          #0B0F1A;
  --color-light:         #F7F7FF;

  /* ── Derived tokens ── */
  --color-dark-raised:     #141828;
  --color-user-msg:        #F0EEFF;
  --color-coach-msg:       #FFFFFF;
  --color-text-primary:    #0B0F1A;
  --color-text-secondary:  #0B0F1A99;
  --color-text-on-dark:    #F7F7FF;
  --color-text-muted-dark: #F7F7FF99;
  --color-border-light:    #0B0F1A11;
  --color-border-purple:   #7C4DFF33;

  /* ── Backward-compat aliases (templates using old var names auto-update) ── */
  --color-primary:    #0B0F1A;
  --color-warm-cream: #F7F7FF;
  --color-gold:       #00F5FF;
  --color-amber:      #A78BFA;
  --color-burnt:      #FF2DAA;
  --color-steel:      #7C4DFF;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-light);
}

main {
  padding-bottom: 6rem;
}

a {
  color: var(--color-purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  background-color: var(--color-dark);
  color: var(--color-light);
  transition: opacity 0.15s ease;
}

button:hover {
  opacity: 0.88;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Wordmark spans ── */
.brand-run   { color: var(--color-cyan); }
.brand-pulse { color: var(--color-pink); }

/* ── Header (legacy — admin/intake/library pages) ── */
.app-header {
  background-color: var(--color-dark);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  letter-spacing: -0.01em;
}

.header-brand:hover { text-decoration: none; opacity: 0.85; }

.header-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.header-user {
  color: var(--color-text-on-dark);
  opacity: 0.75;
  font-size: 0.875rem;
}

.header-link {
  color: var(--color-text-on-dark);
  font-size: 0.875rem;
}

.header-link:hover { text-decoration: none; opacity: 0.8; }

.header-link-active { color: var(--color-cyan) !important; }

.header-admin {
  color: var(--color-cyan);
  font-weight: 600;
}

.header-admin:hover { opacity: 0.85; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  font-family: var(--font-base);
}

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

.btn-primary {
  background-color: var(--color-pink);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1.5px solid rgba(247, 247, 255, 0.35);
  padding: 0.4rem 0.9rem;
  font-size: 0.825rem;
}

.btn-ghost:hover { background: rgba(247, 247, 255, 0.1); opacity: 1; }

.btn-full { width: 100%; }

/* ── Auth ── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--color-dark);
}

.auth-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.auth-brand-mark {
  width: 36px;
  height: 36px;
  background-color: var(--color-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.auth-brand-mark .brand-run   { color: var(--color-cyan); }
.auth-brand-mark .brand-pulse { color: var(--color-pink); }

.auth-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
}

.auth-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.3rem;
}

.auth-form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--color-border-purple);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--color-dark);
  background: white;
  outline: none;
  transition: border-color 0.15s ease;
  font-family: var(--font-base);
}

.auth-form input:focus {
  border-color: var(--color-purple);
}

.auth-error {
  background: rgba(255, 45, 170, 0.08);
  border: 1px solid var(--color-pink);
  color: var(--color-pink);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ── Page layout ── */
.page-content {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

.page-subtitle {
  color: var(--color-purple);
  font-size: 1rem;
}

/* ── Intake form ── */
.intake-wrapper {
  max-width: 740px;
  margin: 2.5rem auto 5rem;
  padding: 0 1.5rem;
}

.intake-header {
  margin-bottom: 2.5rem;
}

.intake-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.intake-header p {
  color: rgba(11, 15, 26, 0.6);
  line-height: 1.6;
  font-size: 0.975rem;
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.intake-question {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.intake-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.intake-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.45;
}

.intake-label em { font-style: italic; font-weight: 600; }

.q-number {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--color-dark);
  color: var(--color-light);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.intake-example {
  margin-left: 2.25rem;
  font-size: 0.85rem;
  color: rgba(11, 15, 26, 0.5);
  font-style: italic;
  line-height: 1.5;
}

.intake-textarea {
  margin-left: 2.25rem;
  width: calc(100% - 2.25rem);
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--color-border-purple);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-base);
  color: var(--color-text-primary);
  background: white;
  resize: vertical;
  min-height: 5.5rem;
  outline: none;
  line-height: 1.55;
  transition: border-color 0.15s ease;
}

.intake-textarea:focus {
  border-color: var(--color-purple);
}

.intake-radio-group {
  margin-left: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.intake-radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  transition: background 0.1s ease;
  line-height: 1.4;
}

.intake-radio-label:hover {
  background: rgba(11, 15, 26, 0.05);
}

.intake-radio-label input[type="radio"] {
  accent-color: var(--color-purple);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.intake-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid rgba(11, 15, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.save-indicator {
  font-size: 0.8rem;
  color: rgba(11, 15, 26, 0.4);
  min-width: 6rem;
}

.save-indicator.saved  { color: #1a7a44; }
.save-indicator.saving { color: var(--color-purple-light); }
.save-indicator.error  { color: var(--color-pink); }

.intake-error {
  margin-top: 1.25rem;
  background: rgba(255, 45, 170, 0.08);
  border: 1px solid var(--color-pink);
  color: var(--color-pink);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

#followup-section {
  margin-top: 2.75rem;
  padding: 2rem;
  background: rgba(124, 77, 255, 0.05);
  border: 1.5px solid rgba(124, 77, 255, 0.2);
  border-radius: 10px;
}

.followup-header {
  margin-bottom: 2rem;
}

.followup-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

.followup-intro {
  font-size: 0.9rem;
  color: rgba(11, 15, 26, 0.6);
  line-height: 1.6;
}

#followup-section .intake-textarea {
  background: white;
}

/* ── Utility ── */
[hidden] { display: none !important; }

/* ── Deals list ── */
.deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.deals-loading {
  color: rgba(11, 15, 26, 0.45);
  font-size: 0.95rem;
}

.deals-empty {
  padding: 3rem 0;
  text-align: center;
  color: rgba(11, 15, 26, 0.5);
  line-height: 1.8;
}

.deal-list {
  border: 1.5px solid var(--color-border-purple);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

.deal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(11, 15, 26, 0.05);
  transition: background 0.1s ease;
  outline: none;
}

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

.deal-row:hover,
.deal-row:focus-visible { background: rgba(124, 77, 255, 0.04); }

.deal-name {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--color-text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.deal-touched {
  font-size: 0.8rem;
  color: rgba(11, 15, 26, 0.4);
  white-space: nowrap;
}

/* Status pill */
.status-wrap { position: relative; }

.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  border: 1.5px solid;
  cursor: pointer;
  transition: opacity 0.12s ease;
  font-family: var(--font-base);
  background: transparent;
  white-space: nowrap;
}

.status-pill:hover { opacity: 0.78; }

.status-pill.active  { color: var(--color-cyan);          border-color: var(--color-cyan);          background: rgba(0, 245, 255, 0.1); }
.status-pill.won     { color: var(--color-lime);          border-color: var(--color-lime);          background: rgba(204, 255, 0, 0.1); }
.status-pill.lost    { color: var(--color-pink);          border-color: var(--color-pink);          background: rgba(255, 45, 170, 0.1); }
.status-pill.dormant { color: rgba(11, 15, 26, 0.45);    border-color: rgba(11, 15, 26, 0.2);     background: rgba(11, 15, 26, 0.04); }

/* Status dropdown */
.status-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1.5px solid var(--color-border-purple);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  min-width: 130px;
  z-index: 50;
  overflow: hidden;
}

.status-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0;
  font-family: var(--font-base);
  transition: background 0.1s;
}

.status-option:hover    { background: rgba(124, 77, 255, 0.06); opacity: 1; }
.status-option.current  { font-weight: 600; color: var(--color-purple); }

/* Library link */
.library-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: right;
}

.library-link a {
  color: var(--color-purple);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-sm { max-width: 400px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: rgba(11, 15, 26, 0.4);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.1s;
}

.modal-close:hover { color: var(--color-dark); opacity: 1; }

.modal-body { padding: 1.25rem 1.5rem; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 1.5rem 1.25rem;
}

.modal-form-group { margin-bottom: 1rem; }
.modal-form-group:last-child { margin-bottom: 0; }

.modal-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.3rem;
}

.required { color: var(--color-pink); }
.optional  { color: rgba(11, 15, 26, 0.4); font-weight: 400; font-size: 0.8rem; }

.prov-options {
  display: flex;
  gap: 0.5rem;
}

.prov-btn {
  flex: 1;
  background: transparent;
  color: rgba(11, 15, 26, 0.45);
  border: 1.5px solid rgba(11, 15, 26, 0.2);
  border-radius: var(--radius);
  padding: 0.5rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-base);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  white-space: nowrap;
}

.prov-btn:hover {
  border-color: rgba(0, 245, 255, 0.5);
  color: rgba(11, 15, 26, 0.7);
}

.prov-btn.active {
  color: var(--color-cyan);
  border-color: var(--color-cyan);
  background: rgba(0, 245, 255, 0.1);
}

.modal-form-group input,
.modal-form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--color-border-purple);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-base);
  color: var(--color-dark);
  background: white;
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus { border-color: var(--color-purple); }

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-border-purple);
  padding: 0.55rem 1.15rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-base);
  transition: background 0.12s ease;
}

.btn-outline:hover { background: rgba(124, 77, 255, 0.06); opacity: 1; }

.inline-error {
  background: rgba(255, 45, 170, 0.08);
  border: 1px solid var(--color-pink);
  color: var(--color-pink);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ── Feedback modal ── */
.feedback-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feedback-btn {
  width: 100%;
  text-align: left;
  background: white;
  border: 1.5px solid var(--color-border-purple);
  color: var(--color-dark);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-base);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.feedback-btn:hover { border-color: var(--color-purple); background: rgba(124, 77, 255, 0.05); opacity: 1; }

.feedback-btn.selected {
  border-color: var(--color-purple);
  background: var(--color-dark);
  color: var(--color-light);
}

.feedback-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--color-border-purple);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-base);
  color: var(--color-dark);
  background: white;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.feedback-textarea:focus { border-color: var(--color-purple); }

/* ── Deal detail (legacy) ── */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-purple);
}

.back-link:hover { text-decoration: underline; }

.deal-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.deal-buyer-context {
  color: rgba(11, 15, 26, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  white-space: pre-wrap;
}

.deal-placeholder {
  margin-top: 2.5rem;
  padding: 2.5rem;
  background: white;
  border: 1.5px solid var(--color-border-purple);
  border-radius: 10px;
  text-align: center;
  color: rgba(11, 15, 26, 0.4);
  font-size: 0.95rem;
}

/* ── Coach panel (legacy) ── */
.deal-page { max-width: 820px; }

.coach-panel {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 62vh;
  overflow-y: auto;
  padding: 0.25rem 0;
  scroll-behavior: smooth;
}

.thread-empty {
  color: rgba(11, 15, 26, 0.4);
  font-size: 0.925rem;
  padding: 2rem 0;
  text-align: center;
}

.thread-entry { display: flex; flex-direction: column; gap: 0.35rem; }

.entry-user-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.entry-you {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(11, 15, 26, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-user-text {
  background: var(--color-user-msg);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-purple);
  border-radius: 12px 12px 2px 12px;
  padding: 0.75rem 1rem;
  font-size: 1.15rem;
  line-height: 1.55;
  white-space: pre-wrap;
  align-self: flex-end;
  max-width: 88%;
}

.entry-coach-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-coach-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-purple-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-coach-body {
  background: var(--color-coach-msg);
  border: 1.5px solid rgba(11, 15, 26, 0.08);
  border-radius: 2px 12px 12px 12px;
  padding: 1rem 1.15rem;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-text-primary);
  max-width: 95%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.entry-coach-body p  { margin: 0 0 0.6em; }
.entry-coach-body p:last-child { margin-bottom: 0; }
.entry-coach-body br { display: block; content: ''; margin: 0.15em 0; }
.entry-coach-body .coach-h { font-size: 1rem; font-weight: 700; margin: 0.9em 0 0.35em; color: var(--color-text-primary); }
.entry-coach-body .coach-ul { padding-left: 1.4rem; margin: 0.4em 0 0.6em; }
.entry-coach-body .coach-ul li { margin-bottom: 0.25em; }
.entry-coach-body strong { font-weight: 600; }
.entry-coach-body code { background: rgba(124, 77, 255, 0.08); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.875em; }

.entry-thinking .entry-coach-body {
  color: rgba(11, 15, 26, 0.4);
  font-style: italic;
}

.entry-type-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  background: rgba(124, 77, 255, 0.1);
  color: var(--color-purple);
}

.entry-type-tag.tag-coach {
  background: rgba(167, 139, 250, 0.15);
  color: var(--color-purple-light);
}

.why-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.why-toggle {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  background: rgba(124, 77, 255, 0.1);
  color: var(--color-purple);
  border: 1px solid rgba(124, 77, 255, 0.3);
  cursor: pointer;
  transition: background 0.12s;
  font-family: var(--font-base);
  vertical-align: middle;
  white-space: nowrap;
}

.why-toggle:hover { background: rgba(124, 77, 255, 0.18); opacity: 1; }

.why-body {
  display: none;
  font-size: 0.875rem;
  color: rgba(11, 15, 26, 0.65);
  font-style: italic;
  line-height: 1.55;
  padding: 0.35rem 0.65rem;
  background: rgba(124, 77, 255, 0.06);
  border-left: 2px solid var(--color-purple);
  border-radius: 0 4px 4px 0;
  margin-top: 0.25rem;
  width: 100%;
}

.why-wrap.open .why-body { display: block; }


.compose-modes {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mode-btn {
  background: transparent;
  color: rgba(11, 15, 26, 0.5);
  border: 1.5px solid rgba(11, 15, 26, 0.2);
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-base);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.mode-btn:hover { border-color: var(--color-purple); color: var(--color-purple); opacity: 1; }

.mode-btn.active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-light);
}

.mode-btn.active:hover { opacity: 0.88; }

.compose-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.coach-textarea {
  flex: 1;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--color-border-purple);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-base);
  color: var(--color-text-primary);
  background: white;
  resize: vertical;
  outline: none;
  line-height: 1.5;
  transition: border-color 0.15s;
  min-height: 4.5rem;
}

.coach-textarea:focus { border-color: var(--color-purple); }

.send-btn {
  flex-shrink: 0;
  padding: 0.65rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  align-self: flex-end;
  background: var(--color-lime);
  color: var(--color-dark);
}

.compose-error {
  font-size: 0.85rem;
  color: var(--color-pink);
  margin-top: 0.1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   APP SHELL — single-surface layout (nav + sidebar + thread)
   ═══════════════════════════════════════════════════════════════════ */

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Top nav ── */
.app-nav {
  height: 44px;
  min-height: 44px;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.app-nav-brand-zone {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-left: 16px;
}

.app-nav-content-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  min-width: 0;
}

.app-nav-brand {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.app-nav-brand:hover { text-decoration: none; opacity: 0.85; }

.app-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-nav-user {
  font-size: 0.875rem;
  color: rgba(247, 247, 255, 0.5);
  white-space: nowrap;
}

.app-nav-admin {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-cyan);
  text-decoration: none;
}

.app-nav-admin:hover { text-decoration: none; opacity: 0.85; }

.app-nav-signout {
  font-size: 13px;
  color: var(--color-text-on-dark);
  background: transparent;
  border: 1px solid rgba(247, 247, 255, 0.3);
  border-radius: 5px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: var(--font-base);
  transition: opacity 0.12s;
}

.app-nav-signout:hover { opacity: 0.78; }

/* ── Body row ── */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Content column (right of sidebar) ── */
.app-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.app-content-header {
  height: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 0.5px solid rgba(11, 15, 26, 0.08);
  background: var(--color-light);
  flex-shrink: 0;
}

.app-content-user {
  font-size: 0.875rem;
  color: rgba(11, 15, 26, 0.38);
}

/* ── Sidebar ── */
.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--color-dark);
  border-right: 0.5px solid rgba(247, 247, 255, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-purple-light);
  padding: 14px 12px 5px;
  flex-shrink: 0;
}

.sidebar-resource {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 10px 4px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-purple-light);
  background: rgba(124, 77, 255, 0.13);
  border: 1.5px solid rgba(124, 77, 255, 0.28);
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-base);
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.sidebar-resource:hover {
  background: rgba(124, 77, 255, 0.2);
  border-color: rgba(124, 77, 255, 0.42);
  opacity: 1;
}

.sidebar-icon {
  flex-shrink: 0;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid rgba(247, 247, 255, 0.12);
  margin: 18px 0 12px;
  flex-shrink: 0;
}

.sidebar-new-deal {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 8px 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: var(--color-pink);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-base);
  transition: opacity 0.12s;
  flex-shrink: 0;
}

.sidebar-new-deal:hover { opacity: 0.88; }

.sidebar-new-deal-icon {
  color: white;
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
}

.sidebar-deal-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 10px;
}

.sidebar-deal-list::-webkit-scrollbar { width: 3px; }
.sidebar-deal-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-deal-list::-webkit-scrollbar-thumb { background: rgba(247,247,255,0.12); border-radius: 3px; }

.sidebar-no-deals {
  font-size: 11px;
  color: rgba(247, 247, 255, 0.25);
  padding: 8px 12px;
  line-height: 1.5;
}

.sidebar-deal {
  padding: 7px 12px 7px 9px;
  margin: 1px 4px 1px 0;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.1s;
  outline: none;
  border-left: 3px solid transparent;
}

.sidebar-deal:hover     { background: rgba(247, 247, 255, 0.05); }
.sidebar-deal.active    { background: rgba(124, 77, 255, 0.15); border-left-color: var(--color-cyan); }
.sidebar-deal:focus-visible { background: rgba(247, 247, 255, 0.08); }

.sidebar-deal-name {
  font-size: 15px;
  color: var(--color-text-muted-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.sidebar-deal.active .sidebar-deal-name {
  color: var(--color-text-on-dark);
}

.sidebar-deal-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.sidebar-status-pill {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 99px;
}

.sidebar-status-pill.active  { background: rgba(0, 245, 255, 0.15);   color: var(--color-cyan); }
.sidebar-status-pill.won     { background: rgba(204, 255, 0, 0.15);   color: var(--color-lime); }
.sidebar-status-pill.lost    { background: rgba(255, 45, 170, 0.15);  color: var(--color-pink); }
.sidebar-status-pill.dormant { background: rgba(247, 247, 255, 0.1); color: rgba(247,247,255,0.4); }

.sidebar-deal-time {
  font-size: 11px;
  color: rgba(247, 247, 255, 0.3);
}

/* ── Main area ── */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-light);
  overflow: hidden;
  min-width: 0;
}

.thread-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
}

.app-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(11, 15, 26, 0.4);
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.app-empty-state h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

/* ── Thread header ── */
.thread-header {
  padding: 14px 20px 10px;
  border-bottom: 0.5px solid var(--color-border-light);
  flex-shrink: 0;
}

.thread-header-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
}

.thread-header-source {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.8rem;
  color: rgba(11, 15, 26, 0.45);
  margin-top: 5px;
}

.thread-header-source .source-label {
  font-weight: 600;
}

.source-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-base);
  padding: 0.18rem 0.6rem;
  border-radius: 99px;
  border: 1.5px solid rgba(124, 77, 255, 0.45);
  color: var(--color-purple-light);
  background: rgba(124, 77, 255, 0.08);
  white-space: nowrap;
  user-select: none;
}

.thread-header-context {
  font-size: 0.9rem;
  color: rgba(11, 15, 26, 0.5);
  margin-top: 6px;
  line-height: 1.7;
  border-left: 2px solid rgba(124, 77, 255, 0.3);
  padding-left: 10px;
}

.thread-header-context p { margin: 0 0 0.35em; }
.thread-header-context p:last-child { margin-bottom: 0; }

.ctx-toggle {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--color-purple);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-base);
}
.ctx-toggle:hover { opacity: 0.75; }

/* ── Thread body ── */
.thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thread-body { scrollbar-width: none; }
.thread-body::-webkit-scrollbar { display: none; }

.thread-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: rgba(11, 15, 26, 0.4);
  font-size: 13px;
  padding: 40px 0;
}

/* ── Message rows ── */
.msg-row {
  display: flex;
  flex-direction: column;
}

.msg-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.msg-label-user  { color: rgba(11, 15, 26, 0.35); text-align: right; }
.msg-label-coach { color: var(--color-purple-light); }

.msg-row-user  { align-items: flex-end; }
.msg-row-coach { align-items: flex-start; }

.msg-bubble-user {
  align-self: flex-end;
  max-width: 85%;
  background: rgba(124, 77, 255, 0.08);
  color: var(--color-text-primary);
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.msg-bubble-coach {
  align-self: flex-start;
  max-width: 90%;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-dark);
}

.msg-bubble-coach p         { margin: 0 0 0.55em; }
.msg-bubble-coach p:last-child { margin-bottom: 0; }
.msg-bubble-coach h3        { font-size: 1em; font-weight: 700; margin: 0.7em 0 0.25em; }
.msg-bubble-coach ul        { padding-left: 1.3rem; margin: 0.3em 0 0.55em; }
.msg-bubble-coach li        { margin-bottom: 0.2em; }
.msg-bubble-coach strong    { font-weight: 600; }
.msg-bubble-coach em        { font-style: italic; }
.msg-bubble-coach code      { background: rgba(124, 77, 255, 0.08); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.875em; }

.msg-thinking {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 16px;
}

.dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(11, 15, 26, 0.25);
  animation: dot-pulse 1.2s ease-in-out infinite;
}

.dot-pulse:nth-child(2) { animation-delay: 0.2s; }
.dot-pulse:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* ── Why chip ── */
.why-inline {
  display: block;
  margin: 6px 0;
}

.why-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #0B0F1A;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  background: #00F5FF;
  cursor: pointer;
  font-family: var(--font-base);
  transition: background 0.12s;
}

.why-chip:hover { background: rgba(0, 245, 255, 0.8); opacity: 1; }

.why-chip-body {
  display: none;
  margin-top: 8px;
  padding: 16px;
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 12px;
  font-size: 14px;
  color: var(--color-dark);
  font-style: normal;
  line-height: 1.6;
  max-width: 78%;
}


/* ── Compose area (shell) ── */
.compose-area {
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 12px 16px 40px;
}

.compose-input-row {
  position: relative;
  display: flex;
  align-items: flex-end;
}

.compose-textarea {
  flex: 1;
  background: #FFFFFF;
  color: var(--color-dark);
  border: 1.5px solid rgba(0, 245, 255, 0.35);
  border-radius: 24px;
  padding: 14px 56px 14px 20px;
  font-size: 15px;
  font-family: var(--font-base);
  min-height: 44px;
  resize: none;
  overflow: hidden;
  outline: none;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.compose-textarea:focus {
  border-color: rgba(0, 245, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.compose-send-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #CCFF00;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
  padding: 0;
}

.compose-send-btn:hover { opacity: 0.88; }
.compose-send-btn:disabled { cursor: not-allowed; }

.compose-error-msg {
  font-size: 12px;
  color: var(--color-pink);
  margin-top: 5px;
}

/* ── Thread header actions ── */
.thread-header-actions {
  margin-top: 8px;
}

.thread-header-back {
  margin-bottom: 4px;
}

.back-to-opp-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-purple-light);
  cursor: pointer;
  font-family: var(--font-base);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-to-opp-btn:hover { color: var(--color-purple); opacity: 1; }

.thread-conv-title {
  font-size: 14px;
  font-weight: 400;
  color: rgba(11, 15, 26, 0.6);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-conv-btn {
  background: transparent;
  border: 1px solid rgba(11, 15, 26, 0.25);
  color: var(--color-dark);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font-base);
  cursor: pointer;
  transition: background 0.1s;
}

.new-conv-btn:hover { background: rgba(11, 15, 26, 0.05); opacity: 1; }
.new-conv-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Conversation list ── */
.conv-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: none;
}

.conv-list::-webkit-scrollbar { display: none; }

.conv-row {
  display: flex;
  align-items: stretch;
  padding: 10px 14px;
  background: white;
  border: 0.5px solid rgba(11, 15, 26, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
  outline: none;
}

.conv-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.conv-row:hover        { background: rgba(124, 77, 255, 0.04); border-color: rgba(124, 77, 255, 0.2); }
.conv-row:focus-visible { outline: 2px solid var(--color-purple); outline-offset: 2px; }

.conv-row-title {
  font-size: 13px;
  color: var(--color-dark);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.conv-row-time {
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(11, 15, 26, 0.4);
  white-space: nowrap;
}

.conv-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: rgba(11, 15, 26, 0.4);
  font-size: 13px;
  padding: 40px 0;
}

/* ── Conversation timeline ── */
.conv-timeline {
  padding: 8px 4px;
  position: relative;
}

/* timeline connecting line removed */

.timeline-group {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 12px;
  margin-bottom: 8px;
}

.timeline-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  user-select: none;
}

.tl-month {
  font-size: 10px;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: rgba(11, 15, 26, 0.38);
  line-height: 1;
}

.tl-day {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  margin: 1px 0;
}

.tl-dow {
  font-size: 10px;
  color: rgba(11, 15, 26, 0.38);
  line-height: 1;
}

.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 0 10px;
}

.conv-card {
  padding: 9px 13px;
  background: white;
  border: 0.5px solid rgba(124, 77, 255, 0.18);
  border-radius: 8px;
  outline: none;
  overflow: hidden;
  transition: background 0.1s, border-color 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conv-card:hover { background: rgba(124, 77, 255, 0.04); border-color: rgba(124, 77, 255, 0.38); }

.conv-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.conv-card-title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-rename-link {
  display: none;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 4px;
  font-size: 12px;
  font-family: var(--font-base);
  color: rgba(11, 15, 26, 0.38);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.conv-rename-link:hover { color: var(--color-dark); }

.conv-card:hover .conv-rename-link { display: inline; }

@media (hover: none) {
  .conv-rename-link { display: inline !important; opacity: 0.5; }
}

.conv-card-preview {
  font-size: 14px;
  color: rgba(11, 15, 26, 0.42);
  line-height: 1.4;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-no-msgs {
  font-style: italic;
  color: rgba(11, 15, 26, 0.28);
}

.conv-card-nav {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  outline: none;
}

.conv-card-nav:focus-visible { outline: 2px solid var(--color-purple); border-radius: 4px; }

.conv-card-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Action buttons on conv cards */
.conv-action {
  background: none;
  border: none;
  border-radius: 5px;
  padding: 4px 6px;
  cursor: pointer;
  font-family: var(--font-base);
  font-size: 12px;
  line-height: 1;
  color: rgba(11, 15, 26, 0.35);
  transition: background 0.1s, color 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conv-action:hover { opacity: 1; }

.conv-action-delete:hover { background: rgba(255, 45, 170, 0.1); color: var(--color-pink); }

/* Inline title editing */
.conv-title-edit-input {
  width: 100%;
  border: 1px solid rgba(124, 77, 255, 0.4);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-base);
  color: var(--color-dark);
  background: white;
  outline: none;
  line-height: 1.4;
  box-sizing: border-box;
}

/* ── Resource view ── */
.resource-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.resource-date {
  font-size: 12px;
  color: rgba(11, 15, 26, 0.45);
}

.resource-refresh-btn {
  background: transparent;
  border: 1px solid rgba(11, 15, 26, 0.18);
  color: rgba(11, 15, 26, 0.5);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-base);
}

.resource-refresh-btn:hover { color: var(--color-dark); border-color: rgba(11,15,26,0.35); opacity: 1; }
.resource-refresh-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.resource-download-link {
  font-size: 11px;
  color: var(--color-purple);
  text-decoration: none;
}

.resource-download-link:hover { text-decoration: underline; }

.resource-err-msg {
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
}

.resource-body {
  padding: 20px 20px 40px;
}

.resource-content {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-primary);
}

.resource-content h1,
.resource-content h2,
.resource-content h3 {
  color: var(--color-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.resource-content h1 { font-size: 1.25rem; }
.resource-content h2 { font-size: 1.1rem; color: #FF2DAA; }
.resource-content h3 { font-size: 1rem; }

.resource-content p { margin-bottom: 1rem; }

.resource-content hr {
  border: none;
  border-top: 1px solid rgba(11, 15, 26, 0.1);
  margin: 1.5rem 0;
}
