:root {
  --sat: env(safe-area-inset-top,    0px);
  --sar: env(safe-area-inset-right,  0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left,   0px);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111111;
  background: #ececf2;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100dvh;           /* ← das ist meist besser als min-height */
  min-height: -webkit-fill-available;  /* Fallback für ältere iOS */
  width: 100%;
  overflow-x: hidden;
}

#app {
  width: 100%;
  min-height: 100dvh;
}

body {
  background: #ececf2;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f7f8fa;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.home-section[aria-label="Primary actions"] {
  display: grid;
  grid-template-columns: repeat(2, 500px);
  gap: 12px;
  justify-content: center;
}

.home-section[aria-label="Primary actions"] a:nth-child(3) {
  grid-column: span 2;
}

.home-section[aria-label="Quick references"] .home-section-header {
  grid-column: span 2;
}

.home-section[aria-label="Quick references"] {
  display: grid;
  grid-template-columns: repeat(2, 500px);
  gap: 12px;
  justify-content: center;
}
.home-section[aria-label="Quick references"] a:nth-of-type(3) {
  grid-column: span 2;
}

.home-page {
  flex: 1;                    /* wächst und füllt den verfügbaren Raum */
  padding: 
    calc(20px + var(--sat))     /* oben: Statusleiste/Notch */
    calc(16px + var(--sar))     /* rechts */
    calc(40px + var(--sab))     /* unten: mehr Reserve für Home-Indicator + Toolbar */
    calc(16px + var(--sal));    /* links */

  background: #ececf2;
  box-sizing: border-box;
  gap: 18px;
}

.home-header {
  text-align: center;
  margin-bottom: 12px;
}

.home-header h1 {
  margin: 8px 0 18px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;

  text-align: center;   /* wichtig */
}

.home-section {
  display: grid;
  gap: 12px;
}

.ios-card {
  display: grid;
  grid-template-columns: 86px 1fr 20px;
  align-items: center;
  gap: 12px;
  min-height: 98px;
  background: #f7f7f8;
  border-radius: 20px;
  padding: 14px 18px;
}

.ios-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.ios-card-icon ion-icon {
  font-size: clamp(24px, 4.8vw, 36px);
}

.tone-blue {
  background: #d3e7fb;
  color: #187ce6;
}

.tone-green {
  background: #d7efdf;
  color: #2ebd59;
}

.tone-orange {
  background: #f6e4d4;
  color: #ff8c1a;
}

.ios-card-copy {
  display: grid;
  gap: 2px;
}

.ios-card-title {
  font-size: clamp(16px, 3vw, 18px);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.ios-card-subtitle {
  font-size: clamp(16px, 3.2vw, 15px);
  color: #7c7f87;
  line-height: 1.18;
}

.ios-chevron {
  color: #c2c3c8;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1;
  justify-self: end;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.home-section-header h2 {
  margin: 0;
  font-size: clamp(16px, 3vw, 22px);
  letter-spacing: -0.01em;
}

.language-pill {
  border: 0;
  background: #f7f7f8;
  border-radius: 18px;
  color: #187ce6;
  padding: 10px 16px;
  font-size: clamp(14px, 3vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ios-quick-link {
  display: grid;
  grid-template-columns: 48px 1fr 23px;
  align-items: center;
  background: #f7f7f8;
  border-radius: 20px;
  color: #187ce6;
  min-height: 76px;
  padding: 10px 18px;
  font-size: clamp(16px, 3vw, 20px);
}

.ios-quick-icon {
  font-size: clamp(20px, 4.6vw, 34px);
  opacity: 0.55;
}

.language-pill ion-icon {
  font-size: clamp(16px, 3vw, 22px);
}

.home-footer {
  margin-top: 8px;
  justify-content: center;
  text-align: center;
  color: #7e8088;
  font-size: clamp(18px, 3.3vw, 18px);
  gap: 12px;
  flex-wrap: wrap;
}

.home-footer p {
  width: 100%;
  margin: 4px 0 0;
}

.top-bar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;

  height: 56px;
  padding: 0 12px;

  border-bottom: 1px solid #e5e7eb;
  background: white;
}

.top-bar h1 {
  text-align: center;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.icon-btn,
.text-btn {
  border: none;
  background: none;
  color: #1d1d1f;
  font-size: 18px;
  cursor: pointer;
}

.placeholder-card {
  background: #fff;
  margin: 0 12px;
  border-radius: 12px;
  padding: 16px;
}

.placeholder-card h2 {
  margin: 0 0 8px;
}

.back-link {
  display: inline-block;
  padding: 8px 0;
  color: #2463eb;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.search-row input {
  border: 1px solid #d7d9de;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 15px;
}

.text-btn {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 6px;
}

.image-section {
  width: 100%;
}

.image-container {
  width: 100%;
  max-height: 70vh;
  min-height: 60vh;
  overflow: hidden;
  touch-action: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.transform-layer {
  position: relative;
  transform-origin: top left;
  will-change: transform;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame {
  position: relative;
  width: 100%;
}

.image-container img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.marker {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #df1d1d;
  transform: translate(-50%, -50%);
}

.details-panel {
  margin: 0 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
}

.details-panel h2 {
  margin: 0 0 8px;
}

.details-panel ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.4;
}

.hint {
  margin: 0;
  text-align: center;
  color: #6d6d73;
  padding: 0 12px;
}

.toolbar {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid #e7e8ec;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.toolbar .icon-btn {
  font-size: 24px;
}

.legal-links {
  display: flex;
}

.point-selection-page,
.point-category-page {
  background: #ececf2;
  padding: 8px 12px 20px;
}

.point-category-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.point-category-scroll {
  flex: 1;
  overflow-y: auto;
}

.ios-nav-bar {
  padding-top: max(10px, env(safe-area-inset-top));
}

.back-link-btn {
  color: #187ce6;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  text-align: left;
}

.ios-list-card,
.description-card {
  background: #f7f7f8;
  border-radius: 18px;
  margin: 8px 0;
  overflow: hidden;
}

.ios-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e6eb;
  font-size: 18px;
}

.ios-list-row:last-child {
  border-bottom: none;
}

.description-card {
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.description-card p {
  margin: 0;
  color: #6e717a;
  font-size: 14px;
}

.five-level-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0 4px;
  margin: 8px 0;
}

.five-level-header span {
  text-align: center;
  color: #6e717a;
  font-size: 12px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.five-level-grid .point-pill {
  min-width: calc(20% - 8px);
}

.point-pill {
  border: none;
  background: #f7f7f8;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.fivelevel-table-scroll {
  max-height: 65vh;
  overflow-y: auto;
}

.five-level-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.five-level-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
/* --- Global app scale to mimic 67% browser zoom --- */
html { font-size: 67%; }


.language-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 999px;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.language-dropdown .lang-icon,
.language-dropdown .lang-chevron {
  font-size: 18px;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border: 0;
  background: transparent;
  outline: none;

  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;

  padding-right: 6px;
  cursor: pointer;
}

/* ---------- Diagnostics page ---------- */
.diagnostics-page { padding-top: 14px; }

.diagnostics-page.page {
  padding: 24px 28px;
}
.diag-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 14px;
}

.diag-back{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  text-decoration:none;
  color: rgba(0,0,0,0.8);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.diag-topbar-title{
  margin:0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.diag-topbar-spacer{ width:40px; }

.diag-surface{
  background: rgba(255,255,255,0.0);
}

/* header inside page */
.diag-header{
  margin: 4px 2px 12px;
}
.diag-header-text{
  margin:0 0 10px;
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  text-align: center;
}

.diag-divider{
  height:1px;
  background: rgba(0,0,0,0.10);
}

/* grid */
.diag-grid{
  display: grid;
  grid-template-columns: repeat(2, 360px);
  gap: 14px;
  justify-content: center;
}

/* card */
.diag-card{
  display:block;
  text-decoration:none;
  color: inherit;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 14px;
}

.diag-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.diag-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:grid;
  place-items:center;
}
.diag-icon ion-icon{ font-size: 20px; }

.diag-chevron{
  font-size: 20px;
  color: rgba(0,0,0,0.25);
}

.diag-title{
  font-size: 16px;       /* ähnlich titleMedium */
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diag-subtitle{
  font-size: 13px;       /* ähnlich bodySmall */
  color: rgba(0,0,0,0.55);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* wide card spans 2 columns */
.diag-card-wide{
  grid-column: 1 / -1;
  display:flex;
  align-items:center;
  gap: 14px;
}

.diag-wide-copy{ flex:1; }

/* spacer like your GridItemSpan spacer */
.diag-spacer{
  grid-column: 1 / -1;
  height: 4px;
}

/* tones like Android tint boxes */
.tone-red    { background: rgba(244,67,54,0.14); color:#f44336; }
.tone-teal   { background: rgba(0,150,136,0.14); color:#009688; }
.tone-purple { background: rgba(156,39,176,0.14); color:#9c27b0; }

/* ---------- Mu Points Page ---------- */
.mu-page { padding-top: 14px; }

.mu-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mu-back{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  text-decoration:none;
  color: rgba(0,0,0,0.8);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  flex: 0 0 auto;
}

.mu-title{
  margin:0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align:center;
  flex: 1;
}

.mu-actions{
  display:flex;
  gap: 8px;
  flex: 0 0 auto;
}

.mu-icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  cursor: pointer;
  display:grid;
  place-items:center;
}

.mu-icon-btn ion-icon { font-size: 20px; }

/* chips grid 4 columns */
.mu-chips {
  display: flex;
  gap: 8px;
}

.mu-chip {
  flex: 1;              /* alle gleich breit */
  text-align: center;
}

.mu-chip{
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  border-radius: 14px;
  height: 48px;
  padding: 6px 6px;
  cursor:pointer;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 2px;
}

.mu-chip-title{
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 100%;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.mu-chip-code{
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  line-height: 1.1;
}

.mu-chip.is-selected{
  border-color: rgba(46,125,50,0.35);
  background: rgba(46,125,50,0.10);
}

.mu-canvas-wrap{
  margin-top: 8px;
  background: rgba(0,0,0,0.00);
}

.mu-canvas{
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  touch-action: none; /* important for pointer drag */
}

/* image + overlay share same transform */
.mu-image,
.mu-overlay{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform-origin: center center;
}

.mu-image{
  object-fit: contain;
  user-select: none;
  pointer-events: none; /* clicks go to svg */
}

.mu-overlay{
  pointer-events: auto;
}

/* summary */
.mu-summary{
  margin-top: 12px;
  padding: 0 4px;
}

.mu-summary-title{
  font-weight: 800;
  margin-bottom: 6px;
}

.mu-summary-text{
  color: rgba(0,0,0,0.65);
  line-height: 1.35;
}

/* ---------- Shu Points Page ---------- */
./* ---------- Shu Points (iOS-like) ---------- */
.shu-page { padding-top: 14px; display: flex;
  flex-direction: column;
  height: 100vh;}

.shu-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.shu-back{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  text-decoration:none;
  color: #0a84ff;
  background: transparent;
  box-shadow: none;
}

.shu-title{
  margin:0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align:center;
  flex: 1;
}

.shu-spacer{ width:44px; }

.shu-stage {
  display: flex;
  justify-content: center;
  padding: 8px 0 110px;
  flex: 1;
  overflow-y: auto;
}

.shu-chart{
  position: relative;
  background: transparent; 
  border-radius: 18px;
  padding: 6px 0; /* minimaler Sicherheitsrand */
}

.shu-chart-plain{
  position: relative;
  background: transparent;   /* keine Box */
  border-radius: 0;          /* keine runden Ecken */
  overflow: visible;         /* ganz wichtig: nix abschneiden */
}

/* layer order: grid -> labels -> points */
.shu-grid, .shu-labels, .shu-points{
  position:absolute;
  inset:0;
}

.shu-grid{ pointer-events:none; }

/* Black crisp lines like screenshot */
.shu-vline{
  position:absolute;
  width: 2px;
  background: #000;
}

.shu-hline{
  position:absolute;
  height: 2px;
  background: #000;
}

/* Labels always visible (T1..S2) */
.shu-labels{ pointer-events:none; }
.shu-vertebra{
  position:absolute;
  left: 18px;
  font-size: 18px;
  font-weight: 600;
  color: #6b6b6f;
}

/* Points rows */
.shu-row{
  position:absolute;
  display:flex;
  align-items:center;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  cursor:pointer;
  text-align:left;
}

.shu-dot-wrap{ position:relative; display:inline-block; }
.shu-dot{ position:absolute; inset:0; border-radius:999px; }

.shu-ring{
  position:absolute;
  left:-4px; top:-4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 999px;
  border: 2px solid #fff;
  box-sizing:border-box;
}

.shu-name{
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

/* Bottom selected bar */
.shu-selected{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid rgba(0,0,0,0.10);
  padding: 16px;
}

.shu-selected-title{
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.shu-selected-text{
  font-size: 18px;
  color: rgba(0,0,0,0.75);
}

/* =======================
   Tongue Diagnostics (Web)
======================= */
.tongue-topbar{
  display: flex;
  align-items: center;
  justify-content: center;   /* zentriert den Titel */
  position: relative;
}

.tongue-title{
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.tongue-back{
  position: absolute;
  left: 0;
}

.tongue-page .tongue-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 18px;
}

.tongue-subtitle{
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 6px 0 6px;
}

/* =========================================================
   MAIN LAYOUT (Bild bleibt zentriert, Panel "schwebt" rechts)
========================================================= */

.tongue-main{
  position: relative;
  width: fit-content;     /* Container ist so breit wie das Bild */
  max-width: 100%;
  margin: 0 auto;         /* zentriert den ganzen Block auf der Seite */
}
/* Bild + Marker müssen die EXAKT gleiche Fläche haben */
.tongue-overlay{
  position: relative;
  display: inline-block;       /* Größe kommt vom Bild */
  margin: 0 auto;
  padding: 0;
  border: 0;
  line-height: 0;              /* verhindert extra whitespace */
  z-index: 1;
}

/* Hier stellst du die Größe ein, damit es auf eine Seite passt */
.tongue-img{
  display: block;
  width: auto;
  height: auto;
  max-height: 56vh;            /* <- falls zu groß: 50vh / 45vh */
  max-width: min(92vw, 520px);
}

.tongue-markers{
  position: absolute;
  inset: 0;                    /* deckt exakt das Bild ab */
  width: 100%;
  height: 100%;
}

/* Marker wie iOS: blaue Kreise */
.tongue-marker{
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.tongue-marker-dot{
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(90, 170, 255, 0.35);
  box-shadow: 0 0 0 0 rgba(90, 170, 255, 0.0);
}

/* =========================================================
   RIGHT PANEL (nimmt keinen Platz weg -> Bild rutscht nicht)
========================================================= */
.tongue-side{
  position: absolute;

  /* immer direkt neben dem Bild – egal wie breit die Seite ist */
  left: 100%;
  margin-left: 20px;       /* Abstand zum Bild (kleiner = näher) */

  /* vertikal mittig + etwas nach unten */
  top: 50%;
  transform: translateY(-35%); /* -50% wäre exakt Mitte, -35% ist etwas tiefer */

  width: 240px;           
  max-width: 90vw;

  max-height: 56vh;
  overflow: auto;

  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  z-index: 5;
}

.tongue-field{
  display: grid;
  grid-template-columns: 72px 1fr;  /* Label fix, Select nimmt Rest */
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tongue-label{
  font-size: 15px;
}

.tongue-select{
  width: 100%;                      /* alle gleich breit */
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #f1f1f1;
  padding: 0 10px;
  font-size: 15px;
}

/* Optional: kleiner Abstand zum Rand */
@media (max-width: 820px){
  .tongue-main{
    width: 100%;
  }

  .tongue-side{
    position: static;
    transform: none;
    width: min(520px, 92vw);
    max-height: none;
    overflow: visible;
    margin: 12px auto 0;
  }
}

.tongue-panel-title{
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}

/* =========================================================
   Diagnosen Bereich
========================================================= */

.tongue-dx{
  width: 100%;
  max-width: min(92vw, 520px);
  text-align: center;
}

.tongue-dx-title{
  font-size: 20px;
  font-weight: 800;
  margin: 8px 0 6px;
}

.tongue-dx-empty{
  color: #8a8a8a;
  font-size: 16px;
}

.tongue-dx-list{
  display: grid;
  gap: 8px;
}

.tongue-dx-item{
  text-align: left;
  font-size: 18px;        /* größer */
  line-height: 1.4;
  font-weight: 500;
}

/* =========================================================
   Mobile: Panel unter dem Bild (wie vorher)
========================================================= */

@media (max-width: 820px){
  .tongue-main{
    flex-direction: column;
    align-items: center;
  }

  .tongue-side{
    position: absolute;
    top: 0;
    right: 0;
  
    width: 260px;          /* <-- schmaler */
    max-width: 90vw;
  
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 5;
  }
}
.pulse-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
}

.page.pulse-page {
  height: 100vh;
  overflow-y: auto !important;
  overflow-x: hidden;
}

.page.pulse-page .pulse-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 16px 18px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.pulse-page .pulse-content{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:12px 16px 18px;
  max-width:980px;
  margin:0 auto;
}

.pulse-topbar{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:10px 16px;
}

.pulse-back{
  position:absolute;
  left:16px;
}

/* ===============================
   THREE FINGER MODE – FIX 2 COL
================================ */

.pulse-grid.three-mode {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px;
  align-items: start;
  width: 100%;
}

.pulse-grid.three-mode .pulse-col {
  width: 100%;
  min-width: 0;
}
/* Gruppe aus Titel + Toggle */
.pulse-title-group{
  display:flex;
  align-items:center;
  gap:12px;     /* Abstand zwischen Titel und Button */
}

.pulse-title{
  font-size:20px;
  font-weight:800;
  margin:0;
}

.pulse-mode-toggle{
  border:0;
  background:#f1f1f1;
  padding:6px 10px;
  border-radius:10px;
  font-size:14px;
  cursor:pointer;
}

.pulse-grid{ display:flex; flex-direction:column; gap:16px; }
.pulse-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.pulse-col{ min-width:0; }

.pulse-region{
  background:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.pulse-region-side{
  font-weight:800;
  margin-bottom:10px;
  opacity:0.8;
}

.pulse-organ{ padding: 10px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.pulse-organ:first-of-type{ border-top:0; padding-top:0; }
.pulse-organ-title{ font-weight:800; margin-bottom:8px; }

.pulse-qualities-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:0;
  background:#f1f1f1;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}

.pulse-menu{
  margin-top:10px;
  background:#fff;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.08);
  overflow:hidden;
}

.pulse-menu.is-hidden{ display:none; }

.pulse-menu-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:0;
  background:#fff;
  cursor:pointer;
  text-align:left;
}

.pulse-menu-item:hover{ background: rgba(0,0,0,0.03); }

.pulse-check{
  width:18px; height:18px;
  border-radius:6px;
  border:1px solid rgba(0,0,0,0.2);
  display:inline-block;
}
.pulse-check.is-on{
  background: rgba(90,170,255,0.35);
  border-color: rgba(90,170,255,0.8);
}

.pulse-actions{ display:flex; justify-content:center; margin-top: 4px; }
.pulse-toggle{
  border:0;
  background:#111;
  color:#fff;
  padding:10px 14px;
  border-radius: 12px;
  cursor:pointer;
}

.pulse-dx{
  margin-top: 6px;
  background:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.pulse-dx-title{
  text-align:center;
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 10px;
}

.pulse-dx-box{
  margin:0;
  white-space: pre-wrap;
  font-size: 18px;
  line-height: 1.45;
  font-family:inherit;
}

.pulse-dx-empty{ text-align:center; opacity:0.6; }

@media (max-width: 820px){
  .pulse-row{ grid-template-columns: 1fr; }
}

/* unified summary typography */

.summary-item-title,
.summary-item-content,
.summary-card > div,
.summary-chip {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

/* optional: titles slightly stronger */
.summary-item-title {
  font-weight: 600;
}

/* values normal weight */
.summary-item-content {
  font-weight: 400;
}

#summary-def-select,
#summary-add-def {
  font-size: 1rem;
  font-family: inherit;
}

#summary-save-case {
  margin-left: 12px;
}

/* chips: patterns + points */

.summary-section-title {
  font-size: 1rem;
  font-weight: 700;
}

.summary-page .summary-content{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:12px 16px 18px;
  max-width: 820px;
  margin: 0 auto;
}

.summary-topbar{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:10px 16px;
}

.summary-back{ position:absolute; left:16px; }
.summary-save{ position:absolute; right:16px; }

.summary-title{
  font-size:20px;
  font-weight:800;
  margin:0;
  text-align:center;
}

.summary-card{
  background:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}


.summary-patient-name{ font-size:22px; font-weight:900; }
.summary-patient-sub{ opacity:0.75; margin-top:4px; }
.summary-patient-history{ opacity:0.75; margin-top:8px; font-size:13px; }

.summary-item{ padding:12px 0; border-top:1px solid rgba(0,0,0,0.06); }
.summary-item:first-child{ border-top:0; padding-top:0; }
.summary-item-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.summary-item-title{ font-weight:800; }
.summary-edit{ text-decoration:none; font-weight:700; }

.summary-item-content{ margin-top:6px; font-size:16px; }

.summary-section-title{ font-weight:900; margin-bottom:10px; }

.summary-def-list{ display:flex; flex-direction:column; gap:8px; }
.summary-def-item{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.summary-def-remove{ border:0; background:transparent; cursor:pointer; }

.summary-def-add{ display:grid; grid-template-columns: 1fr auto; gap:10px; margin-top:10px; }
.summary-label{ grid-column:1 / -1; font-size:13px; opacity:0.75; }
.summary-select{ width:100%; height:36px; border-radius:10px; border:0; background:#f1f1f1; padding:0 10px; }
.summary-add-btn{ height:36px; border:0; border-radius:10px; padding:0 12px; background:#111; color:#fff; cursor:pointer; }

.summary-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.summary-chip{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#f1f1f1;
  text-decoration:none;
  color:inherit;
  font-weight:700;
}

#summary-notes {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 10px;
  resize: vertical;
}

.summary-muted{ opacity:0.6; }

#summary-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
}
.summary-toast.is-hide{ opacity: 0; transition: opacity 0.25s; }

.saved-cases-page .patient-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.saved-cases-page .patient-row:hover {
  background: #f7f7f7;
}

.patient-name {
  font-weight: 600;
}

.patient-meta {
  font-size: 0.9rem;
  opacity: 0.7;
}

.case-count {
  opacity: 0.7;
}

/* =========================================================
   BASE LAYOUT
========================================================= */

/* =========================================================
   TOPBAR
========================================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.topbar h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.back-button {
  text-decoration: none;
  font-size: 14px;
  color: #6b7280;
}

#save-patient-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

#save-patient-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

#save-patient-btn:not(:disabled):hover {
  background: #1d4ed8;
}

/* =========================================================
   CONTENT AREA
========================================================= */

.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 10px 32px;
}

/* =========================================================
   FORM
========================================================= */

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}

/* Inputs & Select */

input,
select,
textarea {
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: white;
  transition: all 0.2s ease;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Textarea specific */

textarea {
  min-height: 90px;
  resize: vertical;
}

/* =========================================================
   MOBILE OPTIMIZATION
========================================================= */

@media (min-width: 600px) {
  .content {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* =========================================================
   SAVED CASES PAGE
========================================================= */

.saved-cases-page {
  background: #f6f7f9;
}

/* Section Title */

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin: 8px 4px 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Patient Row */

.patient-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: white;
  padding: 14px 16px;
  margin-bottom: 10px;

  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);

  cursor: pointer;
  transition: all 0.18s ease;
}

.patient-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.patient-row:active {
  transform: scale(0.98);
}

/* Patient Info */

.patient-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patient-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.patient-meta {
  font-size: 13px;
  color: #6b7280;
}

/* Case Count */

.case-count {
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Empty State */

.empty {
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
  font-size: 14px;
}

/* Content padding override (if not already styled globally) */

.saved-cases-page .content {
  padding: 16px;
}

/* Responsive */

@media (min-width: 700px) {
  .saved-cases-page .content {
    max-width: 600px;
    margin: 0 auto;
  }
}

.marker {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.marker.surface {
  background: gray;
}

.marker.deep {
  border: 3px solid gray;
  background: transparent;
}

.marker.selected {
  background: red !important;
  border-color: red !important;
}

/* =========================================================
   BASE PAGE
========================================================= */

.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* =========================================================
   AREA SELECTOR
========================================================= */

.area-selector {
  display: flex;
  overflow-x: auto;
  padding: 8px 16px;
  gap: 10px;
  border-bottom: 1px solid #eee;
}

.area-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  transition: 0.2s;
}

.area-chip:hover {
  background: #f5f5f5;
}

.area-chip.selected {
  background: #2E7D32;
  color: white;
  border-color: #2E7D32;
}

/* =========================================================
   MAIN CONTENT LAYOUT
========================================================= */

.joint-areas-page .content {
  display: flex;
  flex: 1;
  padding: 1.5rem 3rem;
  gap: 3rem;
  min-width: 0;
  max-width: 1600px;
  margin: 0 auto;
}

/* LEFT SIDE */

.joint-areas-page .image-section {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RIGHT SIDE */

.joint-areas-page .details-panel {
  flex: 0 0 380px;
  max-width: 420px;
  min-width: 320px;

  padding: 24px;
  border-left: 1px solid #e0e0e0;
  overflow-y: auto;
  background: #fafafa;
}

/* =========================================================
   IMAGE SYSTEM (SWIFTUI IDENTISCH)
========================================================= */

.joint-areas-page .image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container zentriert das Bild */
.joint-areas-page .image-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
background: transparent;
  }
  
}

/* 🔥 Feste Aspect Ratio 3:2 (600x400) */
.joint-areas-page .image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;   /* WICHTIG */
  max-height: 90vh;
}

/* Bild füllt exakt den Frame */
.joint-areas-page .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: fill;  /* KEIN contain */
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Transform Layer */
.transform-layer {
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

/* =========================================================
   MARKERS (RELATIV ZUM FRAME)
========================================================= */

.joint-areas-page .marker {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: 0.15s;
  z-index: 5;
}

.joint-areas-page .marker.selected {
  background-color: #2E7D32 !important; /* 🔥 nur zum Test */
  transform: translate(-50%, -50%) scale(1.2);
}
/* =========================================================
   POINT LIST
========================================================= */

.joint-areas-page .point-row {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s;
}

.joint-areas-page .point-row:hover {
  background: #f0f0f0;
}

.joint-areas-page .point-row.selected {
  background: #E8F5E9;
  font-weight: 500;
}

/* =========================================================
   TOOLBAR
========================================================= */

.toolbar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 10px;
  border-top: 1px solid #e0e0e0;
  background: white;
}

.toolbar button {
  padding: 6px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  transition: 0.15s;
}

.toolbar button:hover {
  background: #f3f3f3;
}

#pointCode {
  font-size: 2.5rem;          /* oder sogar 3.5rem / 4rem – je nach Geschmack */
  font-weight: 700;           /* fett machen */
  margin: 0 0 1rem 0;         /* etwas Abstand nach unten zum Rest */
}

#pointDetails {
  font-size: 1.8rem;          /* Basis für das ganze Details-Feld */
  line-height: 1;            /* mehr Luft zwischen den Zeilen */
}


#pointDetails strong {
  font-size: 2rem;          /* die Labels (Localisation:, Category: usw.) noch etwas stärker */
  font-weight: 600;
  color: #222;
}
/* =========================================================
   INFLUENTIAL POINTS PAGE
========================================================= */

.influential-page {
  background: #f5f5f7;
}

/* ---------- LAYOUT ---------- */

.influential-page .content {
  display: grid;
  grid-template-columns: 650px 420px;
  justify-content: space-between;
  align-items: start;
  gap: 40px;

  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
}

/* ---------- IMAGE ---------- */
.influential-page .image-section {
  background: #f5f5f7;
}
.influential-page .image-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.influential-page .image-frame img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.influential-page .image-container,
.master-page .image-container,
.xi-cleft-page .image-container {
  background: transparent;
}
/* ---------- MARKER ---------- */

.influential-page .marker {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ff3b30;
  border-radius: 50%;
  border: 1px solid white;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
}

.influential-page .marker.selected {
  background: #2e7d32;
}

/* ---------- RIGHT PANEL ---------- */

.influential-page .details-panel {
  width: 420px;
}

/* ---------- LIST ---------- */

.influential-page #pointList {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e5e5;

  display: grid;
  grid-template-columns: 1fr 1fr;
}

.influential-page .point-row {
  font-size: 14px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  cursor: pointer;
}
.influential-page .point-row:nth-child(2n) {
  border-right: none;
}

/* letzte Reihe korrekt */
.influential-page .point-row:nth-last-child(-n+2) {
  border-bottom: none;
}
.influential-page .point-row:hover {
  background: #f7f7f7;
}

/* ---------- DETAILS ---------- */

.influential-page #pointDetails {
  font-size: 12px;
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.influential-page #pointDetails h3 {
  font-size: 14px;
  margin-top: 0;
}
.influential-page #pointDetails strong {
  font-size: 13px;
  color: #666;
}

.influential-page .transform-layer {
  position: relative;
}

/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

  .influential-page .content {
    grid-template-columns: 1fr;
  }

  .influential-page .image-section,
  .influential-page .details-panel {
    width: 100%;
  }

}

.master-page,
.xi-cleft-page {
  background: #f5f5f7;
}

/* ---------- LAYOUT ---------- */

.master-page .content {
  display: grid;
  grid-template-columns: 650px 420px;
  justify-content: space-between;
  align-items: start;
  gap: 40px;

  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
}

.xi-cleft-page .content {
  display: grid;

  grid-template-columns: 650px 420px;

  grid-template-areas:
    "image list"
    "details details";

  gap: 30px;

  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
}
/* ---------- IMAGE ---------- */

.master-page .image-section {
  background: #f5f5f7;
}

.xi-cleft-page .image-section {
  background: #f5f5f7;
  grid-area: image;
}

.xi-cleft-page .body {
  background: #f5f5f7;
}

.xi-cleft-page .image-frame {
  background: transparent;
  position: relative;
}

.master-page .image-frame {
  background: #f5f5f7;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.master-page .image-frame img,
.xi-cleft-page .image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- MARKER ---------- */

.master-page .marker,
.xi-cleft-page .marker {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ff3b30;
  border-radius: 50%;
  border: 1px solid white;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
}

.master-page .marker.selected,
.xi-cleft-page .marker.selected {
  background: #2e7d32;
}

/* ---------- RIGHT PANEL ---------- */

.master-page .details-panel,
.xi-cleft-page .details-panel {
  width: 420px;
}

/* ---------- LIST ---------- */

.master-page #pointList,
.xi-cleft-page #pointList {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e5e5;

  display: grid;
  grid-template-columns: 1fr 1fr;
}
.xi-cleft-page #pointList {
  grid-area: list;
}

.master-page .point-row,
.xi-cleft-page .point-row {
  font-size: 14px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  cursor: pointer;
}

.master-page .point-row:nth-child(2n),
.xi-cleft-page .point-row:nth-child(2n) {
  border-right: none;
}

.master-page .point-row:nth-last-child(-n+2),
.xi-cleft-page .point-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.master-page .point-row:hover,
.xi-cleft-page .point-row:hover {
  background: #f7f7f7;
}
.xi-cleft-page .image-section {
  grid-area: image;
  max-width: 650px;
}

.xi-cleft-page #pointDetails {
  grid-area: details;

  width: 100%;
  max-width: 1200px;

  font-size: 14px;
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

/* ---------- DETAILS ---------- */

.master-page #pointDetails {
  font-size: 12px;
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.master-page #pointDetails h3,
.xi-cleft-page #pointDetails h3 {
  font-size: 14px;
  margin-top: 0;
}

.master-page #pointDetails strong,
.xi-cleft-page #pointDetails strong {
  font-size: 13px;
  color: #666;
}

/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

  .master-page .content,
  .xi-cleft-page .content {
    display: grid;
    grid-template-columns: 1fr 650px;
    gap: 20px;
  }
  .master-page .image-section,
  .master-page .details-panel,
  .xi-cleft-page .image-section,
  .xi-cleft-page .details-panel {
    width: 100%;
  }

}

.xi-cleft-page .content {
  display: grid;

  grid-template-columns: 650px 420px;
  grid-template-rows: auto auto;

  grid-template-areas:
    "image list"
    "details list";

  gap: 30px;

  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
}

.vessel-pair-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-bottom:28px;
}

.vessel-column{
  border:1px solid #eee;
  border-radius:10px;
  padding:12px;
  background:white;
}

.point-row{
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  cursor:pointer;
}

.point-row:hover{
  background:#f6f6f6;
}

.point-code{
  color:#007aff;
  font-weight:600;
}

.vessel-content {
  max-width: 1800px;
  margin: 0 auto;
  padding: 24px;
}
.vessel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.vessel-column {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  background: white;
}

.point-row{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
  cursor:pointer;
}

.point-row:hover{
  background:#f5f5f5;
}

.point-code{
  color:#007aff;
  font-weight:600;
}

.application-row{
  font-size:0.9rem;
  color:#666;
}

.sea-group{
  margin-bottom:28px;
}

.sea-items{
  border:1px solid #eee;
  border-radius:10px;
  overflow:hidden;
  background:white;
}

.sea-row{
  border-bottom:1px solid #f0f0f0;
}

.sea-row:last-child{
  border-bottom:none;
}

.sea-link{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  text-decoration:none;
  color:inherit;
}

.sea-link:hover{
  background:#f6f6f6;
}

.chevron{
  color:#999;
}

.sea-group{
  margin-bottom:28px;
}


.sea-row{
  border-bottom:1px solid #f0f0f0;
}

.sea-row:last-child{
  border-bottom:none;
}

.sea-link{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  text-decoration:none;
  color:inherit;
}

.sea-link:hover{
  background:#f6f6f6;
}

.chevron{
  color:#999;
}

.sea-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sea-row {
  width: 100%;
}

/* Balanced Methods */

/* PAGE LAYOUT */

.balanced-method-page {
  display: flex;
  justify-content: center;   /* horizontal zentrieren */
  align-items: flex-start;   /* oben starten */
  padding-top: 40px;         /* Abstand unter Topbar */
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* CARD */

.balanced-method-card {
  width: 100%;
  max-width: 600px;

  background: #ffffff;
  border-radius: 16px;
  padding: 22px;

  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* HEADER */

.balanced-method-card h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* SELECT */

.balanced-method-select {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

/* RESULT BOX */

.balanced-method-result {
  margin-top: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.balanced-method-result p {
  margin: 6px 0;
}

.balanced-method-page .top-bar {
  width: 100% !important;
  margin: 0 !important;
  align-self: stretch;             /* flex-kind dehnt sich in cross-axis */
}



.acupuncture-page #pointDetails,
.acupuncture-page #pointDetails * {
  font-size: 1.4rem;
  line-height: 1.4;
}
.acupuncture-page #pointCode {
  font-size: 1.6rem;
}

.acupuncture-page {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  height: 100dvh;
}
.acupuncture-page .top-bar {
  grid-column: 1 / span 2;
}

.acupuncture-page .search-row {
  grid-column: 1 / span 2;
}

.acupuncture-page .image-section {
  grid-column: 1;
  grid-row: 3;
}

.acupuncture-page .right-panel {
  grid-column: 2;
  grid-row: 3;
  overflow-y: auto;
}

.acupuncture-page .details-panel {
  background: transparent;
}
.acupuncture-page .toolbar {
  grid-column: 1 / span 2;
}
.acupuncture-page .image-container {
  background: transparent;
}

.acupuncture-page .marker {
  width: 6px;
  height: 6px;
  background: #555;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.new-patient-page .select-patient-page.content {
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
}



.new-patient-page input,
.new-patient-page select,
.new-patient-page textarea {
  height: 44px;
}

