.video-editor-content select {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid #dce6e1;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}
.exercise-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.exercise-editor { display: grid; gap: 10px; padding: 14px; border: 1px solid #dce6e1; border-radius: 12px; background: #fbfdfc; }
.exercise-editor h3 { margin: 0; font-size: 1rem; }
.exercise-editor-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.exercise-video-upload { justify-self: start; margin: -4px 0 2px; padding: 7px 10px; font-size: .78rem; }
.mobility-video-upload { justify-self: start; margin: -2px 0 6px; padding: 7px 10px; font-size: .78rem; }
.video-library-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.video-library-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid #dce8e3; border-radius: 10px; background: #fff; color: #202723; text-align: left; font: inherit; cursor: pointer; }
.video-library-item > span:first-child { display: grid; gap: 3px; }
.video-library-item strong { font-size: .92rem; }
.video-library-item small { color: #647972; }
.video-library-item:hover, .video-library-item:focus-visible { border-color: #3a8970; outline: none; }
.video-library-item.selected { border-color: #2b896c; background: #ecf8f1; }
.video-library-action { color: #176b51; white-space: nowrap; font-size: .78rem; font-weight: 800; }
@media (max-width: 620px) { .exercise-editor-grid, .exercise-editor-options, .video-library-list { grid-template-columns: 1fr; } }

/* Therapeuten-Cockpit: kompakte Kundenübersicht */
.customer-management { display: grid; gap: 14px; }
.customer-management-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.customer-management-head h2 { margin: 2px 0 4px; }
.customer-search-label { display: grid; gap: 6px; color: var(--ink, #1c2521); font-weight: 700; font-size: .9rem; }
.customer-search-label input { width: 100%; padding: 11px 12px; border: 1px solid #d7e4df; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; }
.customer-list { display: grid; gap: 8px; }
.customer-list.empty { padding: 12px 0 2px; color: #6b817a; }
.customer-row { width: 100%; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(155px, auto) auto; align-items: center; gap: 14px; padding: 13px 14px; text-align: left; border: 1px solid #dce8e3; border-radius: 12px; background: #fff; color: #202723; cursor: pointer; font: inherit; }
.customer-row:hover, .customer-row:focus-visible, .customer-row.selected { border-color: #3a8970; background: #f2faf6; outline: none; }
.customer-row-main, .customer-row-meta { display: grid; gap: 3px; }
.customer-row-main strong { font-size: 1rem; }
.customer-row small { color: #647972; font-size: .82rem; }
.customer-row-meta { justify-items: start; }
.customer-status { padding: 3px 8px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.customer-status.active { background: #dff4e9; color: #176542; }
.customer-status.waiting { background: #edf1ef; color: #586761; }
.customer-status.quiet { background: #fff1d8; color: #8a5b12; }
.customer-open { color: #176b51; white-space: nowrap; font-weight: 800; font-size: .88rem; }
@media (max-width: 620px) { .customer-management-head { display: grid; }.customer-row { grid-template-columns: 1fr auto; gap: 8px; }.customer-row-meta { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; }.customer-open { grid-column: 2; grid-row: 1; } }

/* Arbeitsbereiche im Therapeuten-Cockpit */
.plan-library-section {
  grid-column: 1 / -1;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #cfe3da;
  border-radius: 14px;
  background: #f4faf7;
}
.plan-library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.plan-library-heading h3 { margin: 2px 0 0; }
.plan-library-heading #video-library-count {
  padding: 6px 10px;
  color: #176b51;
  white-space: nowrap;
  border: 1px solid #bcdccb;
  border-radius: 999px;
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
}
.therapist-record,
.therapist-admin-hub { border-left: 4px solid #2b896c; }
.therapist-record-content,
.therapist-admin-content { display: grid; gap: 12px; }
.workspace-section-hint { margin: 0; color: #657a73; }
.therapist-record-content > .card,
.therapist-admin-content > .card {
  margin: 0;
  box-shadow: none;
  background: #fbfdfc;
}
.therapist-record-content > section.card,
.therapist-admin-content > details.card { border-color: #d8e7e1; }

/* Praxis und Team */
.practice-team-list { display: grid; gap: 8px; }
.practice-team-list.empty { color: #687d76; }
.practice-team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #d9e7e1;
  border-radius: 11px;
  background: #fff;
}
.practice-team-member > span:first-child { display: grid; gap: 2px; }
.practice-team-member small { color: #687d76; }
.practice-team-current {
  padding: 4px 8px;
  border-radius: 999px;
  background: #dff4e9;
  color: #176542;
  font-size: .76rem;
  font-weight: 800;
}
.practice-owner-controls {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d9e7e1;
}
.practice-owner-controls h3 { margin: 0 0 4px; }

@media (max-width: 620px) {
  .plan-library-section { padding: 13px; }
  .plan-library-heading { display: grid; }
  .plan-library-heading #video-library-count { justify-self: start; }
}

/* Vier klar getrennte Arbeitsbereiche im Therapeuten-Cockpit */
.therapist-area-nav {
  position: sticky;
  top: 10px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid #cfe0d9;
  border-radius: 18px;
  background: rgba(247, 251, 249, .94);
  box-shadow: 0 8px 24px rgba(25, 64, 50, .08);
  backdrop-filter: blur(14px);
}
.therapist-area-nav button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 9px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #61766e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.therapist-area-nav button:hover,
.therapist-area-nav button:focus-visible { background: #e8f4ee; color: #176b51; outline: none; }
.therapist-area-nav button.is-active { background: #176f57; color: #fff; }
.therapist-tab-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.therapist-tab-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.therapist-area-nav [data-therapist-area="overview"] .therapist-tab-icon svg { fill: currentColor; stroke: none; }
.therapist-tab-badge {
  position: absolute;
  top: 5px;
  right: 8px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #f7fbf9;
  border-radius: 999px;
  background: #b34438;
  color: #fff;
  font-size: .68rem;
  line-height: 15px;
  text-align: center;
}
.therapist-area { display: none; }
.therapist-area.is-active { display: block; }
.therapist-area > :first-child { margin-top: 0; }
.therapist-area > :last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  body.therapist-mode #therapist { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .therapist-area-nav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #cbdcd5;
    border-radius: 0;
    background: rgba(248, 251, 249, .97);
    box-shadow: 0 -8px 24px rgba(22, 55, 44, .10);
  }
  .therapist-area-nav button { flex-direction: column; gap: 3px; min-height: 58px; padding: 5px 3px; border-radius: 11px; font-size: .72rem; }
  .therapist-area-nav button.is-active { background: #e1f2e9; color: #176f57; }
  .therapist-tab-icon { width: 23px; height: 23px; flex-basis: 23px; }
  .therapist-tab-badge { top: 1px; right: calc(50% - 27px); border-color: #f8fbf9; }
}
