:root {
  --bg: #faf6f0;               /* Warm cream/sand background */
  --bg-darker: #f3ece3;        /* Soft darker sand/beige */
  --surface: #ffffff;          /* Pure white card backgrounds */
  --border: #e5dec9;           /* Soft clay/sandy borders */
  --text: #2c2a29;             /* Elegant matte charcoal text */
  --muted: #706b69;            /* Warm muted gray/brown for subtext */
  --accent: #c96f53;           /* Warm Terracotta-Rust accent */
  --accent-dim: rgba(201, 111, 83, 0.08); /* Transparent terracotta for soft highlights */
  --accent-dark: #8f422b;      /* Deeper rich clay for primary hover states and strong contrast */
  --gold: #b35d3d;             /* Earthy bronze/gold color */
  --gold-dim: rgba(179, 93, 61, 0.08);
  --teal: #5d856d;             /* Grounding Sage Green for success/Personality rows */
  --teal-dim: rgba(93, 133, 109, 0.08);
  --red: #b04f4f;              /* Rust red for errors/Design rows */
  --red-dim: rgba(176, 79, 79, 0.08);
  --shadow: 0 4px 20px rgba(44, 42, 41, 0.04), 0 2px 6px rgba(44, 42, 41, 0.02);
  --shadow-elevated: 0 12px 32px rgba(44, 42, 41, 0.08), 0 4px 12px rgba(44, 42, 41, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Gemeinsame Navigation der drei Reading-Seiten */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
}

.brand-link,
.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.brand-link {
  color: var(--accent-dark) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 13px;
}

.site-nav-links a:hover,
.site-nav-links a.active {
  background: var(--accent-dim);
  color: var(--accent-dark);
}

.page-header {
  padding: 64px 0 40px;
}

.page-header .intro-lead {
  margin-left: 0;
  max-width: 600px;
}

.page-header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.primary-link,
.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
}

.primary-link:hover,
.detail-actions a:hover {
  background: var(--accent);
}

/* Eigene Übersichtsseite der gespeicherten Readings */
.reading-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reading-library-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reading-library-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.reading-card-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: inherit;
  padding: 22px;
  text-decoration: none;
}

.reading-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-dim);
  font-size: 1.35rem;
}

.reading-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.reading-card-copy strong {
  color: var(--accent-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
}

.reading-card-copy span,
.reading-card-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-card-arrow {
  color: var(--accent);
  font-size: 1.35rem;
}

.reading-library-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
}

.reading-library-actions audio {
  width: min(230px, 100%);
  height: 34px;
}

.reading-library-actions a {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.empty-library,
.legacy-reading {
  max-width: 720px;
  margin: 32px auto;
  padding: 48px;
  text-align: center;
}

.empty-library > span {
  font-size: 2.5rem;
}

/* Reduzierte persönliche Detailseite */
.reading-detail-shell {
  max-width: 1200px;
  padding-top: 36px;
}

html {
  scroll-behavior: smooth;
}

.private-reading-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  border-bottom: 1px solid rgba(229, 222, 201, 0.85);
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(14px);
  padding: 10px max(20px, calc((100vw - 1200px) / 2));
}

.private-reading-bar > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.private-reading-brand {
  color: var(--accent-dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.private-reading-name {
  color: var(--muted);
  font-size: 0.78rem;
}

.private-reading-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}

.private-reading-content {
  min-width: 0;
}

.reading-chapter-sidebar {
  min-width: 0;
}

.reading-chapter-nav {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
  scrollbar-width: thin;
}

.reading-chapter-nav > p {
  margin: 0 9px 11px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reading-chapter-nav ol,
.mobile-chapter-nav ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reading-chapter-nav a,
.mobile-chapter-nav a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 8px 9px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.reading-chapter-nav a:hover,
.reading-chapter-nav a.active,
.mobile-chapter-nav a:hover {
  background: var(--accent-dim);
  color: var(--accent-dark);
}

.reading-chapter-nav a.active {
  font-weight: 700;
}

.chapter-number {
  min-width: 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.chapter-menu-button {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 13px;
}

.mobile-chapter-nav {
  position: sticky;
  top: 64px;
  z-index: 29;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px 20px 14px;
}

.mobile-chapter-nav ol {
  max-width: 760px;
  margin: 0 auto;
}

.reading-detail-header {
  scroll-margin-top: 92px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 52px);
  text-align: left;
}

.reading-detail-header > p:not(.eyebrow) {
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.detail-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.detail-actions a {
  min-height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  padding: 7px 14px;
}

.reading-podcast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  border: 1px solid #d9c4b5;
  border-radius: 16px;
  background: #fffaf6;
  padding: 20px;
}

.reading-podcast-copy > span {
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reading-podcast-copy h2 {
  margin: 4px 0 6px;
  color: var(--accent-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.reading-podcast-copy p,
.reading-podcast-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.reading-podcast-controls,
.reading-podcast-actions {
  display: flex;
  gap: 10px;
}

.reading-podcast-controls {
  min-width: 0;
  flex-direction: column;
}

.reading-podcast-controls audio {
  width: 100%;
}

.reading-podcast-actions {
  flex-wrap: wrap;
}

.reading-podcast-actions button,
.reading-podcast-actions a {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 15px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.reading-podcast-actions button {
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.reading-podcast-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.reading-podcast-actions a {
  background: var(--surface);
  color: var(--accent-dark);
}

.personal-answers,
.chart-foundation,
.personal-reading {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 54px);
}

.personal-reading {
  margin-top: 24px;
}

.chart-foundation {
  margin-top: 24px;
}

.chart-foundation > h2 {
  margin: 6px 0 10px;
  color: var(--accent-dark);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 500;
}

.chart-foundation-lead {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.chart-foundation-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 30px;
  align-items: start;
  margin-top: 30px;
}

.chart-foundation-visual {
  position: sticky;
  top: 88px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 20px;
}

.chart-foundation-visual > h3 {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
}

.chart-foundation-visual .bodygraph-map {
  max-width: 330px;
}

.chart-foundation-visual .center-node {
  width: 86px;
  min-height: 46px;
  clip-path: none;
  border-radius: 10px;
  padding: 5px;
}

.chart-foundation-visual .node-Heart,
.chart-foundation-visual .node-Solar-Plexus {
  left: 80%;
}

.chart-foundation-visual .node-Head {
  top: 5%;
}

.chart-foundation-visual .node-Ajna {
  top: 20%;
}

.chart-foundation-visual .node-Throat {
  top: 36%;
}

.chart-foundation-visual .node-Spleen {
  left: 20%;
}

.chart-foundation-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.chart-foundation-facts {
  display: grid;
  gap: 12px;
}

.chart-foundation-fact {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px 20px;
}

.chart-foundation-fact > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-foundation-fact h3 {
  margin: 3px 0 7px;
  color: var(--accent-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 1.18rem;
}

.chart-foundation-fact p {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.62;
}

.reading-anchor-section {
  scroll-margin-top: 92px;
}

.personal-reading .reading-body > section {
  padding-top: 8px;
}

.personal-reading .reading-body > section + section {
  margin-top: 42px;
  border-top: 1px solid var(--border);
  padding-top: 42px;
}

.section-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.personal-answers h2 {
  margin: 6px 0 28px;
  color: var(--accent-dark);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
}

.answer-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--border);
}

.answer-facts > div {
  min-width: 0;
  background: var(--bg);
  padding: 16px;
}

.answer-facts > div:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.answer-facts dt,
.focus-answers span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.answer-facts dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-weight: 600;
}

.focus-answers {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.focus-answers > div {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

.focus-answers p,
.focus-answers ul {
  margin: 5px 0 0;
}

.focus-answers li + li {
  margin-top: 6px;
}

.personal-reading > .reading-body {
  max-width: 760px;
  margin: 12px auto 0;
}

.legacy-reading .back-link {
  display: block;
}

@media (max-width: 760px) {
  .site-nav,
  .page-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    padding: 14px 0;
  }

  .site-nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav-links a {
    padding-left: 8px;
    padding-right: 8px;
  }

  .reading-library {
    grid-template-columns: 1fr;
  }

  .private-reading-layout {
    grid-template-columns: 1fr;
  }

  .reading-chapter-sidebar {
    display: none;
  }

  .chapter-menu-button {
    display: inline-flex;
  }

  .reading-detail-shell {
    padding-top: 24px;
  }

  .answer-facts {
    grid-template-columns: 1fr 1fr;
  }

  .reading-podcast {
    grid-template-columns: 1fr;
  }

  .chart-foundation-layout {
    grid-template-columns: 1fr;
  }

  .chart-foundation-visual {
    position: static;
  }

  .answer-facts > div:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .private-reading-name {
    display: none;
  }

  .answer-facts {
    grid-template-columns: 1fr;
  }

  .answer-facts > div:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .reading-card-link {
    grid-template-columns: auto 1fr;
  }

  .reading-card-arrow {
    display: none;
  }

  .detail-actions,
  .reading-library-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Background blob watercolor shapes */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #e5dec9 0%, transparent 70%);
}

.shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.intro {
  padding: 48px 0 32px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--accent-dark);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.intro-lead {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--muted);
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  line-height: 1.6;
}

.panel.input-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Das hidden-Attribut muss auch gegen display:flex/grid der Komponenten gewinnen,
   z. B. beim Beziehungsfeld, das nur bei "Über eine andere Person" sichtbar ist. */
[hidden] {
  display: none !important;
}

.label-text {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-group.subject-select {
  max-width: 280px;
}

select {
  cursor: pointer;
}

select:focus {
  border-color: var(--accent);
  background: var(--surface);
}

input:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.check-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 15px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-text {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  user-select: none;
}

.detail-level-select {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 4px;
}

.detail-level-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .detail-level-options {
    grid-template-columns: 1fr;
  }
}

.detail-level-option {
  cursor: pointer;
  display: block;
}

.detail-level-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  min-height: 0;
}

.detail-level-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 14px 16px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.detail-level-option:hover .detail-level-card {
  border-color: var(--accent);
}

.detail-level-option input[type="radio"]:checked + .detail-level-card {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.detail-level-option input[type="radio"]:focus-visible + .detail-level-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.detail-level-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.detail-level-desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.btn-submit {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 111, 83, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 111, 83, 0.4);
}

.btn-submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--accent-dark);
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.status.status-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 14px 18px;
  line-height: 1.5;
  text-align: left;
  font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.08);
}

/* Checkliste & Fortschrittsanzeige als Modal-Popup während der Generierung */
.generation-progress-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.generation-progress-modal[hidden] {
  display: none !important;
}

.generation-progress-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.generation-progress-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  padding: 28px 30px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e8dfd5);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18, 14, 10, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  animation: modalZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalZoomIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.progress-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 4px;
  letter-spacing: -0.015em;
}

.progress-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.progress-close-btn:hover {
  background: var(--surface);
  color: var(--text);
  transform: scale(1.08);
}

.progress-header {
  margin-bottom: 20px;
}

.progress-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(201, 111, 83, 0.2);
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.progress-percentage {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

.progress-pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(201, 111, 83, 0.7);
  animation: pulseDot 1.4s infinite ease-out;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(201, 111, 83, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(201, 111, 83, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(201, 111, 83, 0);
  }
}

.progress-subtitle {
  margin: 8px 0 14px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.progress-bar-track {
  height: 8px;
  background: var(--bg-darker);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.progress-bar-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--accent) 0%, #d97706 50%, #2e7d32 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Checkbox-Icon Container */
.step-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  position: relative;
  transition: all 0.25s ease;
  background: var(--surface);
  border: 2px solid #d4cbb8;
}

.step-checkbox .check-icon {
  width: 14px;
  height: 14px;
  display: none;
  color: #ffffff;
}

.step-checkbox .step-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  display: none;
}

/* State: Waiting */
.progress-step[data-state="waiting"] {
  opacity: 0.6;
  background: rgba(248, 245, 240, 0.6);
}

.progress-step[data-state="waiting"] .step-status-badge {
  background: var(--bg-darker);
  color: var(--muted);
}

/* State: Active */
.progress-step[data-state="active"] {
  opacity: 1;
  background: rgba(201, 111, 83, 0.05);
  border-color: rgba(201, 111, 83, 0.3);
  border-left: 3.5px solid var(--accent);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(201, 111, 83, 0.08);
}

.progress-step[data-state="active"] .step-checkbox {
  border-color: var(--accent);
  background: rgba(201, 111, 83, 0.1);
}

.progress-step[data-state="active"] .step-checkbox .step-spinner {
  display: block;
  animation: spin 0.75s linear infinite;
}

.progress-step[data-state="active"] .step-title {
  color: var(--accent-dark);
}

.progress-step[data-state="active"] .step-status-badge {
  background: rgba(201, 111, 83, 0.14);
  color: var(--accent-dark);
  font-weight: 600;
}

/* State: Done / Success */
.progress-step[data-state="done"] {
  opacity: 1;
  background: rgba(46, 125, 50, 0.04);
  border-color: rgba(46, 125, 50, 0.25);
  border-left: 3.5px solid #2e7d32;
}

.progress-step[data-state="done"] .step-checkbox {
  background: #2e7d32;
  border-color: #2e7d32;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.25);
}

.progress-step[data-state="done"] .step-checkbox .check-icon {
  display: block;
  animation: checkBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes checkBounce {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.progress-step[data-state="done"] .step-title {
  color: #1e5922;
}

.progress-step[data-state="done"] .step-status-badge {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
  font-weight: 600;
}

/* State: Error */
.progress-step[data-state="error"] {
  opacity: 1;
  background: rgba(176, 79, 79, 0.06);
  border-color: rgba(176, 79, 79, 0.3);
  border-left: 3.5px solid var(--red);
}

.progress-step[data-state="error"] .step-checkbox {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}
.progress-step[data-state="error"] .step-checkbox::before {
  content: "✕";
  font-size: 0.85rem;
  font-weight: bold;
}

.progress-step[data-state="error"] .step-title {
  color: var(--red);
}

.progress-step[data-state="error"] .step-status-badge {
  background: rgba(176, 79, 79, 0.15);
  color: var(--red);
  font-weight: 600;
}

/* Step Content Elements */
.step-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
}

.step-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step-title {
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 600;
}

.step-status-badge {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.step-description {
  font-size: 0.82rem;
  color: var(--muted);
}

.step-detail {
  font-size: 0.8rem;
  color: #1e5922;
  margin-top: 4px;
  padding: 4px 10px;
  background: rgba(46, 125, 50, 0.08);
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
}

/* Abschluss-Banner nach erfolgreicher Generierung */
.progress-completion-card {
  margin-top: 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(93, 133, 109, 0.12));
  border: 1.5px solid #2e7d32;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeIn 0.4s ease forwards;
}

.completion-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2e7d32;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}

.completion-content {
  flex: 1;
}

.completion-title {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: #1b5e20;
}

.completion-desc {
  margin: 3px 0 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.completion-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-completion-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2e7d32;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-completion-link:hover {
  background: #1b5e20;
  transform: translateY(-1px);
}

.completion-countdown {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Fehlermeldung & Abbruch-Handling im Modal */
.progress-error-card {
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(185, 28, 28, 0.08);
  border: 1.5px solid var(--red);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: fadeIn 0.4s ease forwards;
}

.error-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: bold;
  flex-shrink: 0;
}

.error-content {
  flex: 1;
}

.error-title {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--red);
}

.error-desc {
  margin: 4px 0 10px;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.4;
}

.btn-error-dismiss {
  padding: 7px 16px;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-error-dismiss:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.result {
  margin-top: 48px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

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

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
}

.card-title {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-subtitle {
  margin: -10px 0 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.font-serif {
  font-family: 'Lora', serif;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-darker);
}

.meta-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.meta-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.meta-value {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.variables-arrows-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.arrow-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-darker);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-title {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.arrow-indicator {
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.4s ease;
  user-select: none;
}

.arrow-value {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.arrow-box.is-left {
  border-color: rgba(93, 133, 109, 0.3);
  background: var(--teal-dim);
}

.arrow-box.is-left .arrow-indicator {
  color: var(--teal);
}

.arrow-box.is-right {
  border-color: rgba(201, 111, 83, 0.3);
  background: var(--accent-dim);
}

.arrow-box.is-right .arrow-indicator {
  color: var(--accent);
}

.chart-view-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  padding: 12px;
  background: var(--bg-darker);
  border-radius: 12px;
}

.bodygraph-panel {
  width: 100%;
}

.bodygraph-map {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 0.85;
  margin: 0 auto;
}

.center-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 82px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44, 42, 41, 0.05);
  background: var(--surface);
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 6px;
  transition: all 0.3s ease;
}

.center-node strong {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.center-node span {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Specific SVG positions & shape masks */
.node-Head {
  top: 7%;
  left: 50%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #fdf6e2;
  border-color: #d1ab45;
}
.node-Head.is-defined {
  background: #f4d068;
  border-color: #b38c22;
}

.node-Ajna {
  top: 20%;
  left: 50%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: #fbf6f6;
  border-color: #d8abab;
}
.node-Ajna.is-defined {
  background: #e28a8a;
  border-color: #a34e4e;
}

.node-Throat {
  top: 35%;
  left: 50%;
  background: #f0f7f4;
  border-color: #aacfc0;
}
.node-Throat.is-defined {
  background: #81c2a6;
  border-color: #4a8f71;
}

.node-G {
  top: 50%;
  left: 50%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: #faf6f0;
  border-color: #dcd0bc;
}
.node-G.is-defined {
  background: #dfc18c;
  border-color: #9d7b43;
}

.node-Heart {
  top: 48%;
  left: 70%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #fff8f5;
  border-color: #eab49e;
}
.node-Heart.is-defined {
  background: #eb8c6c;
  border-color: #ad5031;
}

.node-Spleen {
  top: 67%;
  left: 30%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #f5fafd;
  border-color: #b8daf2;
}
.node-Spleen.is-defined {
  background: #8dc1eb;
  border-color: #4c83ad;
}

.node-Sacral {
  top: 67%;
  left: 50%;
  background: #fff8f8;
  border-color: #f7bfbf;
}
.node-Sacral.is-defined {
  background: #f28d8d;
  border-color: #ad3b3b;
}

.node-Solar-Plexus {
  top: 67%;
  left: 70%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: #fdfaf6;
  border-color: #efe2ce;
}
.node-Solar-Plexus.is-defined {
  background: #e6c594;
  border-color: #a17c46;
}

.node-Root {
  top: 85%;
  left: 50%;
  background: #f9f9f9;
  border-color: #dfdfdf;
}
.node-Root.is-defined {
  background: #b5b5b5;
  border-color: #7d7d7d;
}

.channel-rail {
  position: absolute;
  left: 50%;
  bottom: 2%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 90%;
  transform: translateX(-50%);
}

.channel-rail span {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent-dark);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
}

.bodygraph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}

.legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #cccccc;
  display: inline-block;
}

.legend-item.defined i {
  background: var(--accent);
}

.legend-item.open i {
  background: #ffffff;
  border: 1px dashed var(--muted);
}

.legend-item.channel i {
  background: var(--teal);
  border-radius: 99px;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.planets-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--surface);
}

.planets-table th {
  background: var(--bg-darker);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
}

.planets-table td {
  padding: 10px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--bg-darker);
  color: var(--text);
}

.planets-table tr:last-child td {
  border-bottom: 0;
}

.planets-table tr.row-personality td.cell-system {
  color: var(--teal);
  font-weight: 600;
}

.planets-table tr.row-design td.cell-system {
  color: var(--red);
  font-weight: 600;
}

.planets-table td.cell-planet {
  font-weight: 600;
}

.planets-table td.cell-gateline {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.planets-table td.cell-color,
.planets-table td.cell-tone,
.planets-table td.cell-base {
  color: var(--muted);
}

.reading-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bg-darker);
  padding-bottom: 16px;
}

.badge-row {
  display: flex;
  gap: 8px;
}

.badge {
  background: var(--bg-darker);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge.badge-accent {
  background: var(--accent-dim);
  color: var(--accent-dark);
}

.fact-check-link {
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.fact-check-link:hover {
  filter: brightness(0.96);
}

.fact-check-link:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

#fact-check-details {
  scroll-margin-top: 24px;
}

.reading-body {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--accent-dark);
  margin-top: 24px;
  margin-bottom: 12px;
}

.markdown-content h2 { 
  font-size: 1.5rem; 
  border-bottom: 1px solid var(--bg-darker); 
  padding-bottom: 6px; 
}

.markdown-content h3 { 
  font-size: 1.25rem; 
}

.markdown-content p {
  margin: 0 0 16px;
}

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

.markdown-content li {
  margin-bottom: 8px;
}

.markdown-content blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.markdown-content strong {
  color: var(--accent-dark);
}

.chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(44, 42, 41, 0.08);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 500px) {
  .chat-drawer {
    width: 100vw;
  }
}

.chat-drawer.open {
  transform: translateX(0);
}

.chat-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-darker);
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coach-avatar {
  font-size: 1.8rem;
  line-height: 1;
}

.chat-header h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.coach-status {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 600;
}

.btn-close {
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: rgba(44, 42, 41, 0.05);
  color: var(--text);
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow: 0 2px 6px rgba(44, 42, 41, 0.02);
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.user strong {
  color: #ffffff;
}

.chat-bubble.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  color: var(--muted);
}

.pulse-dot {
  animation: pulse 1.2s infinite ease-in-out;
}

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

.chat-suggestions {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--accent-dim);
  color: var(--accent-dark);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.chat-form {
  padding: 16px 20px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.chat-form input {
  flex-grow: 1;
  background: var(--bg);
}

.chat-form button {
  background: var(--accent-dark);
  color: white;
  border: 0;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 0 20px;
  transition: all 0.25s ease;
}

.chat-form button:hover:not(:disabled) {
  background: var(--accent);
}

.chat-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: 0;
  border-radius: 50px;
  height: 54px;
  padding: 0 24px;
  box-shadow: 0 6px 20px rgba(201, 111, 83, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-trigger-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(201, 111, 83, 0.5);
}

.chat-trigger-btn:active {
  transform: translateY(0);
}

.dynamic-review-card {
  margin-top: 24px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-darker);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.review-header strong {
  font-size: 1.1rem;
}

.review-header.has-errors strong { color: var(--red); }
.review-header.has-warnings strong { color: var(--gold); }
.review-header.is-clean strong { color: var(--teal); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.review-check {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 18px;
}

.review-check span {
  display: inline-block;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.review-check.pass span { background: var(--teal-dim); color: var(--teal); }
.review-check.info span { background: var(--accent-dim); color: var(--accent-dark); }
.review-check.warning span { background: var(--gold-dim); color: var(--gold); }
.review-check.error span { background: var(--red-dim); color: var(--red); }

.review-check h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--text);
}

.review-check p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-darker);
  border-radius: 12px;
  padding: 16px 20px;
}

.ai-header strong {
  color: var(--accent-dark);
}

.ai-note {
  background: var(--bg);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px;
  margin-top: 16px;
}

.ai-note h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.ai-note p, .ai-note li {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.ai-note ul {
  padding-left: 20px;
  margin-top: 6px;
}

.ai-note li {
  margin-bottom: 4px;
}

.reading-section {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.reading-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.reading-section h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--accent-dark);
}

.reading-section p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.reading-item {
  background: var(--bg-darker);
  border-left: 4px solid var(--gold);
  padding: 16px;
  border-radius: 0 12px 12px 0;
}

.reading-item.knowledge-source {
  border-left-color: var(--teal);
  background: var(--teal-dim);
}

.reading-item h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.reading-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
}

.reading-item small {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.json-details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
  margin-top: 24px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

pre {
  background: var(--bg-darker);
  color: var(--text);
  font-family: monospace;
  font-size: 0.85rem;
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  margin-top: 12px;
}

/* AI Coach Sources styles */
.chat-bubble-sources {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(143, 66, 43, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.sources-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.source-link-chip {
  display: inline-flex;
  align-items: center;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  color: var(--accent-dark);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
}

.source-link-chip:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

/* Saved Readings History Panel */
.saved-readings-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.saved-readings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
  margin-top: 12px;
}

.saved-reading-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.saved-reading-item:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.saved-reading-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.saved-reading-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.saved-reading-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

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

.saved-reading-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.saved-reading-btn.btn-html {
  background: var(--accent-dark);
  color: white;
  border: 0;
}

.saved-reading-btn.btn-html:hover {
  background: var(--accent);
}

.saved-reading-btn.btn-md {
  background: var(--bg-darker);
  color: var(--text);
}

.saved-reading-btn.btn-md:hover {
  background: var(--border);
}

.saved-reading-btn.btn-audio {
  background: var(--bg-darker);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  cursor: pointer;
}

.saved-reading-btn.btn-audio:hover:not(:disabled) {
  background: var(--accent);
  color: white;
}

.saved-reading-btn.btn-audio:disabled {
  opacity: 0.65;
  cursor: wait;
}

.saved-reading-audio {
  height: 34px;
  max-width: 280px;
}

.saved-readings-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-chip.active {
  background: var(--accent-dark);
  color: white;
  border-color: var(--accent-dark);
}

.badge.fact-pass {
  background: #e8f3e8;
  color: #2c6b2f;
  border: 1px solid #9fc8a1;
}

.badge.fact-warnings {
  background: #fdf3e0;
  color: #8a5a16;
  border: 1px solid #e3c389;
}

.badge.fact-fail {
  background: #fcece8;
  color: #8f422b;
  border: 1px solid var(--accent);
}

.species-badge {
  display: inline-block;
  background: var(--bg-darker);
  color: var(--accent-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Reading Sources Chips Container */
.reading-sources-chips {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Themenbezogene Fokus-Readings */
.reading-mode-options .detail-level-card { min-height: 108px; }

.focus-builder {
  padding: 24px;
  border: 1px solid rgba(201, 111, 83, 0.28);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(252, 241, 235, 0.9), rgba(247, 244, 235, 0.78));
}

.focus-builder[hidden] { display: none; }

.focus-builder-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.focus-builder-head h2 { margin: 4px 0 0; font-family: "Lora", serif; font-size: 1.55rem; }
.focus-builder-head p { max-width: 360px; margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.focus-step { color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.focus-question-field { margin: 18px 0; }
.focus-question-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.focus-question-label small { color: var(--muted); }
.focus-question-list { display: grid; gap: 8px; }
.focus-question-option { position: relative; cursor: pointer; }
.focus-question-option input { position: absolute; opacity: 0; pointer-events: none; }
.focus-question-option span {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  line-height: 1.4;
}
.focus-question-option span::before { content: ""; width: 18px; height: 18px; border: 1px solid #aaa49d; border-radius: 5px; }
.focus-question-option input:checked + span { border-color: var(--accent); background: #fff7f2; }
.focus-question-option input:checked + span::before { content: "✓"; display: grid; place-items: center; color: white; border-color: var(--accent); background: var(--accent); font-size: 0.7rem; }
.focus-question-option input:disabled + span { opacity: 0.46; cursor: not-allowed; }
.focus-builder textarea { resize: vertical; min-height: 86px; }
.focus-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.focus-scope-note { margin: 4px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: rgba(255,255,255,0.58); color: var(--muted); font-size: 0.76rem; line-height: 1.5; }

.focus-kicker, .focus-section-number { color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.focus-lead, .focus-answer { font-size: 1.05rem; line-height: 1.75; }
.focus-question-box, .focus-context { margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: #fcf1eb; }
.focus-question-box > span, .focus-context > span { color: var(--accent-dark); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.focus-question-box ul { margin-bottom: 0; }
.focus-anchor-grid, .focus-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.focus-anchor, .focus-source { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,0.72); }
.focus-anchor span, .focus-source span { color: var(--accent); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.focus-anchor strong { display: block; margin: 7px 0; font-family: "Lora", serif; font-size: 1.04rem; }
.focus-anchor p, .focus-source p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.focus-source h3 { margin: 7px 0 9px; font-size: 1rem; }
.focus-source a { display: inline-block; margin-top: 12px; color: var(--accent-dark); font-size: 0.74rem; font-weight: 700; }
.focus-practice { background: rgba(222, 232, 216, 0.35); }
.focus-practice li, .focus-reflections li { margin-bottom: 10px; line-height: 1.6; }
.focus-disclaimer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.focus-history-badge { background: #fcf1eb; color: var(--accent-dark); }
.saved-reading-focus-question { display: block; max-width: 620px; margin-top: 5px; color: var(--muted); font-size: 0.72rem; line-height: 1.4; }

@media (max-width: 720px) {
  .focus-builder-head { display: block; }
  .focus-builder-head p { margin-top: 9px; }
  .focus-meta-grid, .focus-anchor-grid, .focus-source-grid { grid-template-columns: 1fr; }
}

/* Password access for saved readings */
.readings-login-page {
  min-height: 100vh;
}

.readings-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.readings-login-card {
  width: min(100%, 460px);
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(73, 51, 42, 0.12);
  backdrop-filter: blur(12px);
}

.readings-login-card h1 {
  margin: 6px 0 12px;
  font-family: "Lora", serif;
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--accent-dark);
}

.readings-login-intro {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.65;
}

.readings-login-form {
  display: grid;
  gap: 10px;
}

.readings-login-form label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.readings-login-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
}

.readings-login-form input:focus {
  outline: 3px solid rgba(201, 111, 83, 0.18);
  border-color: var(--accent);
}

.readings-login-form button {
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-dark);
  color: #fff;
  font: 700 0.92rem "Outfit", sans-serif;
  cursor: pointer;
}

.readings-login-form button:hover {
  background: var(--accent);
}

.readings-login-error {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #d6a098;
  border-radius: 10px;
  background: #fff0ed;
  color: #7f3025;
  font-size: 0.84rem;
}

.readings-login-back {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-logout-form {
  display: inline;
  margin: 0;
}

.nav-logout-form button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* =========================================================================
   MyHumanDesign 3-Column BodyGraph Component Styles
   ========================================================================= */
.mhd-mobile-tabs {
  display: none;
  gap: 6px;
  margin-bottom: 12px;
  background: rgba(243, 236, 224, 0.6);
  padding: 4px;
  border-radius: 9999px;
}

.mhd-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #6a625b;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.mhd-tab-btn.active {
  background: #ffffff;
  color: #58548a;
  box-shadow: 0 2px 6px rgba(45, 36, 30, 0.08);
}

.mhd-chart-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.mhd-column-design,
.mhd-column-personality {
  flex: 0 0 145px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mhd-col-header {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #6a625b;
  margin-bottom: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.mhd-planet-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 241, 249, 0.75) 100%);
  border: 1px solid rgba(220, 212, 228, 0.7);
  border-radius: 9px;
  padding: 5px 10px;
  font-size: 13px;
  color: #24201d;
  box-shadow: 0 1px 3px rgba(36, 32, 29, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.mhd-planet-pill:hover,
.mhd-planet-pill.active-highlight {
  transform: translateY(-1.5px) scale(1.02);
  border-color: #58548a;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(88, 84, 138, 0.16);
}

.mhd-planet-pill.design .planet-glyph {
  font-size: 15px;
  color: #8c6b78;
  font-weight: normal;
}

.mhd-planet-pill.personality .planet-glyph {
  font-size: 15px;
  color: #3b3543;
  font-weight: normal;
}

.mhd-planet-pill .gate-num {
  font-weight: 700;
  font-family: 'Outfit', -apple-system, sans-serif;
  letter-spacing: 0.4px;
  font-size: 13.5px;
}

.mhd-column-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
}

.mhd-bodygraph-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95) 0%, rgba(249, 245, 238, 0.7) 100%);
  border: 1px solid #e6ddce;
  border-radius: 16px;
  padding: 10px 4px;
  width: 100%;
}

.mhd-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(45, 36, 30, 0.05));
}

.body-silhouette {
  fill: rgba(238, 232, 222, 0.42);
  stroke: rgba(215, 205, 190, 0.45);
  stroke-width: 1.5;
}

.variable-arrow {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.variable-arrow:hover {
  filter: drop-shadow(0 0 6px rgba(88, 84, 138, 0.6));
}

.center-shape {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
  touch-action: manipulation;
}

.center-shape:hover,
.center-shape:active {
  filter: brightness(1.06) drop-shadow(0 0 12px rgba(88, 84, 138, 0.35));
  transform: scale(1.03);
}

.channel-track-guide {
  stroke: #d8c8a6;
  stroke-width: 2.2;
  opacity: 0.55;
  fill: none;
}

.channel-active-path {
  stroke: #58548a;
  stroke-width: 6.5;
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 0 4px rgba(88, 84, 138, 0.4));
}

.channel-flow-stream {
  stroke: #e2a03f;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
  fill: none;
  animation: channelFlowAnim 1.2s linear infinite;
}

@keyframes channelFlowAnim {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

.channel-pulse-dot {
  fill: #ffffff;
  stroke: #58548a;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 5px #58548a);
  animation: travelStream 2.6s ease-in-out infinite alternate;
}

@keyframes travelStream {
  0% { cx: 270px; cy: 288px; }
  100% { cx: 328px; cy: 455px; }
}

.gate-pin-circle {
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-pin-circle:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 6px rgba(88, 84, 138, 0.8));
}

.gate-pin-circle.highlight-pulse {
  animation: gatePulse 0.8s ease-in-out infinite alternate;
}

@keyframes gatePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 3px #58548a); }
  100% { transform: scale(1.4); filter: drop-shadow(0 0 10px #e2a03f); }
}

.mhd-chart-caption {
  margin-top: 8px;
  font-size: 11px;
  color: #9c938a;
  letter-spacing: 0.4px;
  text-align: center;
}

.channel-highlight-box {
  background: linear-gradient(135deg, rgba(88, 84, 138, 0.08) 0%, rgba(226, 160, 63, 0.07) 100%);
  border: 1px solid rgba(88, 84, 138, 0.18);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #6a625b;
}

.channel-highlight-box .tag {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 700;
  color: #58548a;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.center-detail-drawer {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #c29567;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(45, 36, 30, 0.06);
  font-size: 13px;
  display: none;
  animation: slideUpDrawer 0.25s ease;
  z-index: 20;
}

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

.center-detail-drawer.active { display: block; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.drawer-header strong {
  color: #58548a;
  font-size: 14px;
  font-family: 'Outfit', -apple-system, sans-serif;
}

.drawer-close {
  cursor: pointer;
  color: #9c938a;
  font-weight: bold;
  border: none;
  background: none;
  font-size: 18px;
  padding: 4px;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .mhd-mobile-tabs {
    display: flex;
  }

  .mhd-chart-wrapper {
    flex-direction: column;
  }

  .mhd-column-design,
  .mhd-column-personality {
    display: none;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .mhd-column-design.mobile-active,
  .mhd-column-personality.mobile-active {
    display: grid !important;
  }

  .mhd-column-center.mobile-hidden {
    display: none !important;
  }
}

