:root {
  --bg: #f6f2ed;
  --ink: #1f1b16;
  --muted: #5a5147;
  --panel: #ffffff;
  --accent: #c65a2f;
  --accent-soft: rgba(198, 90, 47, 0.12);
  --shadow: 0 24px 50px rgba(32, 22, 10, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Garamond", "Georgia", serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff6ec, var(--bg));
}

.page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  animation: fadeIn 0.6s ease-out;
  width: 100%;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(120deg, #fff, #fff0e6);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: 40px;
  letter-spacing: 0.5px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}

.subhead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  align-items: center;
}

.layout {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  gap: 24px;
}

.panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel h2 {
  margin-top: 0;
  font-size: 20px;
  flex-shrink: 0;
}

.agent-list,
.room-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  flex: 1;
  min-height: 0;
}

/* 滚动条样式 */
.agent-list::-webkit-scrollbar,
.room-list::-webkit-scrollbar {
  width: 8px;
}

.agent-list::-webkit-scrollbar-track,
.room-list::-webkit-scrollbar-track {
  background: rgba(90, 81, 71, 0.05);
  border-radius: 10px;
}

.agent-list::-webkit-scrollbar-thumb,
.room-list::-webkit-scrollbar-thumb {
  background: rgba(198, 90, 47, 0.3);
  border-radius: 10px;
}

.agent-list::-webkit-scrollbar-thumb:hover,
.room-list::-webkit-scrollbar-thumb:hover {
  background: rgba(198, 90, 47, 0.5);
}

.agent-card,
.room-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-card:hover,
.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(32, 22, 10, 0.12);
}

.agent-card:focus,
.room-card:focus {
  outline: 2px solid rgba(198, 90, 47, 0.5);
  outline-offset: 2px;
}

.room-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.room-card-title,
.room-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-card-title {
  min-width: 0;
}

.room-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

button.room-card-name,
.room-action {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

button.room-card-name {
  text-align: left;
}

.room-action {
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
}

.room-action:hover:not(:disabled) {
  background: var(--panel);
  color: var(--ink);
}

.room-card-archived {
  cursor: default;
}

.archived-rooms {
  margin-top: 16px;
}

.archived-rooms summary {
  cursor: pointer;
}

.archived-rooms .room-list {
  margin-top: 8px;
}

#roomStatusMessage {
  color: var(--muted);
  font-size: 13px;
}

.room-card-icon {
  font-size: 18px;
}

.room-card-members {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
}

.room-card-count {
  display: inline-block;
  background: rgba(198, 90, 47, 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 6px;
}

.agent-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.agent-card .agent-mention {
  margin-top: 4px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 16px;
  padding-right: 6px;
  min-height: 0;
}

.message {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fdf8f2;
  border: 1px solid rgba(90, 81, 71, 0.12);
  animation: slideIn 0.3s ease-out;
}

.message.user {
  background: #fff;
  border-color: rgba(198, 90, 47, 0.25);
}

.message .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.message-content {
  line-height: 1.6;
}

.message-content p {
  margin: 0 0 12px 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content strong {
  font-weight: 600;
  color: var(--accent);
}

.message-content em {
  font-style: italic;
}

.message-content code {
  background: rgba(90, 81, 71, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
}

.message-content pre {
  background: rgba(90, 81, 71, 0.08);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 8px 0;
}

.message-content pre code {
  background: none;
  padding: 0;
}

.message-content ul,
.message-content ol {
  margin: 8px 0;
  padding-left: 24px;
}

.message-content li {
  margin: 4px 0;
}

.message-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin: 8px 0;
  color: var(--muted);
  font-style: italic;
}

.message-content a {
  color: var(--accent);
  text-decoration: none;
}

.message-content a:hover {
  text-decoration: underline;
}

.message-content h1,
.message-content h2,
.message-content h3 {
  margin: 16px 0 8px 0;
  font-weight: 600;
}

.message-content h1 {
  font-size: 20px;
}

.message-content h2 {
  font-size: 18px;
}

.message-content h3 {
  font-size: 16px;
}

.chat-form {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(90, 81, 71, 0.1);
}

.meeting-controls {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px;
  background: rgba(198, 90, 47, 0.08);
  border-radius: 12px;
  justify-content: center;
}

.chat-form textarea {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  max-height: 200px;
  min-height: 44px;
  line-height: 1.4;
}

.chat-form button,
button.ghost {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 27, 22, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.team-controls,
.team-editor label {
  display: grid;
  gap: 8px;
}

.team-controls {
  margin-bottom: 20px;
}

.team-controls select,
.team-editor select,
.team-editor textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  border-radius: 10px;
  background: var(--panel);
  color: inherit;
  font: inherit;
}

.team-editor textarea {
  resize: vertical;
}

#teamDialog {
  width: min(600px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: inherit;
}

#teamDialog::backdrop {
  background: rgba(31, 27, 22, 0.6);
}

#teamDialog .modal-content {
  width: 100%;
}

.team-editor {
  overflow-y: auto;
}

#groupEditor[hidden] {
  display: none;
}

.team-editor h3 {
  margin: 0 0 10px;
}

.team-invite {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  border-radius: 14px;
}

.team-invite h3,
.team-invite input {
  margin-bottom: 0;
}

.team-invite-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 12px;
}

.team-invite-fields[hidden] {
  display: none;
}

.team-invite-fields label {
  min-width: 0;
}

.team-invite button {
  justify-self: start;
}

.team-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.team-agent {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  border-radius: 12px;
}

.team-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-person-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-person h4,
.team-person p {
  margin: 0 0 4px;
}

.team-person small {
  color: var(--muted);
}

.team-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: #ede2d5;
  color: #583b25;
  font-weight: 700;
}

.team-avatar[data-kind="fictional"] {
  background: #e1ebe4;
  color: #304e3b;
}

.team-member-details summary {
  cursor: pointer;
}

.team-member-details label {
  margin-top: 10px;
}

.team-editor label[hidden] {
  display: none;
}

#teamError {
  color: #962b26;
}

.team-editor .team-agent input {
  margin-bottom: 0;
}

.team-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-content {
  background: var(--panel);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 64px rgba(32, 22, 10, 0.25);
  animation: slideIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(90, 81, 71, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.close-btn:hover {
  background: rgba(90, 81, 71, 0.1);
}

.modal-body {
  padding: 24px 28px;
}

.modal-body input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

button.primary {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(198, 90, 47, 0.3);
}

button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-actions button.primary {
  padding: 12px 24px;
}

.modal-actions button.ghost {
  padding: 12px 24px;
}

/* History list styles */
.history-list {
  overflow-y: auto;
  max-height: 60vh;
  padding: 12px 28px 24px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 16px rgba(32, 22, 10, 0.1);
}

.history-info {
  flex: 1;
}

.history-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.history-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-actions button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.2s;
}

.history-actions .load-btn {
  background: var(--accent);
  color: #fff;
}

.history-actions .delete-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(90, 81, 71, 0.2);
}

.history-actions button:hover {
  transform: scale(1.05);
}

.empty-message {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  font-style: italic;
}

/* Hero actions spacing */
.hero-actions {
  display: flex;
  gap: 12px;
}

/* ── Provider badges ─────────────────────────────────────────────────────── */

.provider-badge {
  display: inline-block;
  font-size: 10px;
  font-family: "Consolas", "Monaco", monospace;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  vertical-align: middle;
}

.badge-deepseek {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.badge-openrouter {
  background: rgba(16, 163, 127, 0.12);
  color: #0d8a6a;
}

.badge-groq {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

/* ── Agent card header (name + badge row) ────────────────────────────────── */

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.agent-card-name {
  font-weight: 600;
}

/* ── Message meta: name + badge side by side ─────────────────────────────── */

.message .meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Settings modal ──────────────────────────────────────────────────────── */

.settings-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.api-key-form {
  overflow-y: auto;
}

.api-key-picker,
.api-key-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.api-key-picker select,
.api-model-options {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.api-key-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  border-radius: 12px;
}

.api-key-row-actions {
  flex-wrap: wrap;
  margin: 0;
}

.api-key-row p {
  margin: 0;
}

.api-key-test-status {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.api-key-row label {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 6px;
}

.api-key-row input {
  margin-bottom: 0;
}

.api-key-row label[hidden] {
  display: none;
}

.api-model-options {
  width: 100%;
}

.api-model-billing {
  color: var(--muted);
  font-size: 13px;
}

.api-model-billing:empty {
  display: none;
}

.api-model-billing ul {
  margin: 0 0 6px;
  padding-left: 20px;
}

#apiKeyError {
  color: #962b26;
}

.meeting-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.notes-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.settings-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal-body input + .settings-label {
  margin-top: 16px;
}

/* ── Role badges ─────────────────────────────────────────────────────────── */

.role-badge {
  display: inline-block;
  font-size: 10px;
  font-family: "Garamond", "Georgia", serif;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  vertical-align: middle;
}

.badge-role-ceo {
  background: rgba(198, 90, 47, 0.15);
  color: #a03a10;
}

.badge-role-market {
  background: rgba(147, 51, 234, 0.12);
  color: #7c22c9;
}

.badge-role-biz {
  background: rgba(234, 179, 8, 0.15);
  color: #92650a;
}

.badge-role-dev {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

/* ── Opportunity Discovery System ────────────────────────────────────────── */

.mode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  flex-shrink: 0;
}

.mode-btn {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: left;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.mode-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.memory-panel {
  border-top: 1px solid rgba(90, 81, 71, 0.1);
  padding-top: 16px;
  flex-shrink: 0;
}

.memory-panel h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
}

.memory-input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  max-height: 150px;
}

.mode-content {
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.mode-content.active {
  display: block;
}

.mode-intro {
  text-align: center;
  margin-bottom: 32px;
}

.mode-intro h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
}

.mode-intro p {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.opportunity-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.opportunity-form textarea {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(90, 81, 71, 0.2);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.opportunity-form button {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opportunity-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(198, 90, 47, 0.3);
}

.opportunity-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.results-container {
  padding: 20px;
  background: #fdf8f2;
  border-radius: 12px;
  border: 1px solid rgba(90, 81, 71, 0.1);
  line-height: 1.8;
  overflow-y: auto;
  max-height: 70vh;
}

.results-container h1,
.results-container h2,
.results-container h3 {
  margin: 20px 0 12px 0;
  font-weight: 600;
}

.results-container h1 {
  font-size: 20px;
}

.results-container h2 {
  font-size: 18px;
}

.results-container h3 {
  font-size: 16px;
}

.results-container p {
  margin: 0 0 12px 0;
  color: var(--ink);
}

.results-container ul,
.results-container ol {
  margin: 12px 0;
  padding-left: 24px;
}

.results-container li {
  margin: 6px 0;
}

.results-container strong {
  color: var(--accent);
  font-weight: 600;
}

.results-container em {
  font-style: italic;
}

.results-container blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--muted);
  font-style: italic;
}

.results-container a {
  color: var(--accent);
  text-decoration: none;
}

.results-container a:hover {
  text-decoration: underline;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--accent);
  font-size: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

.error {
  color: #dc2626;
  padding: 16px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 8px;
  border-left: 3px solid #dc2626;
}

/* Advisors Grid */
.advisors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
}

.advisor-card {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(32, 22, 10, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.advisor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(32, 22, 10, 0.12);
}

.advisor-header {
  margin-bottom: 12px;
}

.advisor-header h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.advisor-role {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.advisor-intro {
  margin: 12px 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.advisor-focus {
  padding-top: 12px;
  border-top: 1px solid rgba(90, 81, 71, 0.1);
  font-size: 13px;
}

.advisor-focus strong {
  color: var(--accent);
}

.advisor-focus p {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Link button styles */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.primary:hover {
  box-shadow: 0 8px 16px rgba(198, 90, 47, 0.3);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ── Follow-up Container ─────────────────────────────────────────────────── */

.follow-up-container {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed rgba(198, 90, 47, 0.3);
}

.follow-up-container h3 {
  margin-top: 0;
  font-size: 16px;
  color: var(--accent);
}

.results-container.inner {
  background: rgba(198, 90, 47, 0.05);
  margin: 16px 0 0 0;
  padding: 16px;
}

.results-container.inner h1,
.results-container.inner h2,
.results-container.inner h3 {
  margin-top: 12px;
}

.results-container.inner h1:first-child,
.results-container.inner h2:first-child,
.results-container.inner h3:first-child {
  margin-top: 0;
}
