:root {
  --bg: #ffffff;
  --panel: rgba(248, 250, 252, 0.7);
  --panel-strong: rgba(241, 245, 249, 0.9);
  --panel-border: rgba(226, 232, 240, 1);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #1d4ed8;
  --accent-strong: #1745c1;
  --accent-warm: #ea580c;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.05), transparent 32%),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.03), transparent 24%),
    #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 1;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.panel {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.73rem;
  color: var(--accent);
  font-weight: 800;
}

.hero-copy,
.lede,
.status-card p,
.field span,
.field input,
.section-heading span,
.profile-grid dt,
.profile-grid dd,
.message,
.actions-feed,
.memory-list,
.history-table {
  line-height: 1.55;
}

.concierge-shell,
.dashboard-shell {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.concierge-shell {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.concierge-shell-single {
  grid-template-columns: 1fr;
}

.fan-main {
  display: grid;
  gap: 24px;
}

.hero-side {
  display: grid;
  justify-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.fan-call-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
}

.fan-hero,
.dashboard-hero {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 220px;
  background:
    radial-gradient(circle at 20% 20%, rgba(29, 78, 216, 0.06), transparent 22%),
    linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.fan-sidebar,
.live-panel,
.transcript-panel,
.fan-notes-panel,
.kpi-panel,
.profile-dashboard-panel,
.actions-dashboard-panel,
.cases-dashboard-panel,
.memory-dashboard-panel,
.history-dashboard-panel,
.transcript-dashboard-panel {
  padding: 24px;
}

.hero-pulse {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pulse-ring,
.pulse-core {
  border-radius: 999px;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(29, 78, 216, 0.28);
  animation: pulse 2.2s infinite ease-out;
}

.pulse-core {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(29, 78, 216, 0.2));
  border: 1px solid rgba(29, 78, 216, 0.3);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.85rem;
}

.fan-sidebar-stack {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.sr-only-demo-config {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.98rem;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
}

.secondary {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.status-card,
.status-pill,
.dashboard-link,
.kpi-card,
.beat-card,
.action-card,
.memory-card,
.empty-state {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.02);
}

.status-pill,
.dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-color: rgba(29, 78, 216, 0.15);
  background: rgba(29, 78, 216, 0.05);
  color: var(--accent);
  font-weight: 700;
}

.hero-dashboard-link {
  min-width: 190px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.status-card {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.status-card-tight {
  margin-top: 0;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 10px;
  background: var(--muted);
  box-shadow: 0 0 18px transparent;
}

.status-dot.live {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(29, 78, 216, 0.4);
}

.status-dot.warn {
  background: var(--accent-warm);
  box-shadow: 0 0 18px rgba(234, 88, 12, 0.3);
}

.transcript,
.actions-feed,
.memory-list {
  display: grid;
  gap: 12px;
}

.message {
  padding: 14px 16px;
  border-radius: 18px;
}

.message.user {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.message.model {
  background: rgba(29, 78, 216, 0.04);
  border: 1px solid rgba(29, 78, 216, 0.1);
}

.message.system {
  background: rgba(234, 88, 12, 0.03);
  border: 1px solid rgba(234, 88, 12, 0.1);
}

.message-role {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
}

.fan-assist-strip {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.fan-topic-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.fan-topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.fan-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-note-card {
  padding: 20px;
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.05), transparent 28%),
    rgba(255, 255, 255, 0.8);
}

.support-note-card h3 {
  font-size: 1.45rem;
  line-height: 1.12;
}

.support-note-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.fan-suggestions-panel {
  padding: 20px 24px 24px;
}

.fan-topic-list-bottom {
  margin-top: 4px;
}

.beats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.beat-card,
.action-card,
.memory-card,
.empty-state,
.kpi-card {
  padding: 16px;
}

.beat-card strong,
.action-card strong,
.memory-card strong {
  display: block;
  margin-bottom: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.kpi-panel {
  grid-column: span 4;
}

.transcript-dashboard-panel {
  grid-column: span 8;
}

.profile-dashboard-panel {
  grid-column: span 5;
}

.actions-dashboard-panel {
  grid-column: span 3;
}

.cases-dashboard-panel {
  grid-column: span 4;
}

.memory-dashboard-panel {
  grid-column: span 5;
}

.history-dashboard-panel {
  grid-column: span 7;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.kpi-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-grid>div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.02);
}

.profile-grid dt {
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
}

.profile-grid dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.history-table th,
.history-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.history-table th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

@keyframes pulse {
  0% {
    opacity: 0.25;
    transform: scale(0.95);
  }

  70% {
    opacity: 0;
    transform: scale(1.1);
  }

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@media (max-width: 1180px) {
  .concierge-shell {
    grid-template-columns: 1fr;
  }

  .fan-call-grid,
  .fan-service-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .kpi-panel,
  .transcript-dashboard-panel,
  .profile-dashboard-panel,
  .actions-dashboard-panel,
  .cases-dashboard-panel,
  .memory-dashboard-panel,
  .history-dashboard-panel {
    grid-column: auto;
  }
}

@media (max-width: 760px) {

  .concierge-shell,
  .dashboard-shell {
    padding: 16px;
  }

  .fan-hero,
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-side {
    width: 100%;
    justify-items: flex-start;
  }

  .button-row,
  .beats-grid,
  .profile-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}