﻿:root {
  --brand-50: #E8F4F1;
  --brand-100: #CBE5DF;
  --brand-500: #0F5F55;
  --brand-600: #0A4A43;
  --brand-700: #063732;
  --accent-50: #FFF2E8;
  --accent-100: #FFDCC2;
  --accent-500: #F28A3D;
  --success: #2E7D63;
  --success-bg: #E7F3EE;
  --info: #2F6F9F;
  --info-bg: #E6F0F7;
  --danger: #B0443E;
  --danger-bg: #F9E8E6;
  --page: #F7F5EF;
  --surface: #FFFFFF;
  --surface-warm: #FBFAF6;
  --border: #DDE3DD;
  --border-strong: #B8C5BD;
  --text: #17211D;
  --text-2: #48564F;
  --text-3: #76827B;
  --text-disabled: #A8B1AB;
  --shadow-sm: 0 2px 8px rgba(23, 33, 29, 0.05);
  --shadow-md: 0 8px 24px rgba(23, 33, 29, 0.10);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body {
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

input,
select,
textarea,
button {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button.is-busy,
input.is-busy,
select.is-busy,
textarea.is-busy {
  cursor: wait;
  opacity: 0.62;
}

button.is-busy {
  pointer-events: none;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  position: relative;
}

.view {
  min-height: 100vh;
  padding: 15px 18px calc(82px + var(--safe-bottom));
}

.view.no-tab {
  padding-bottom: 28px;
}

.page-enter {
  animation: pageIn 260ms ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  position: sticky;
  top: 0;
  z-index: 8;
  margin: -15px -18px 14px;
  padding: 9px 18px;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 227, 221, 0.66);
}

.topbar-title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.back-btn {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-500);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.hero {
  min-height: 190px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--brand-700);
  box-shadow: var(--shadow-md);
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 55, 50, 0.08), rgba(6, 55, 50, 0.72));
}

.hero-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
}

.hero-kicker {
  font-size: 12px;
  opacity: 0.86;
  margin-bottom: 6px;
}

.hero-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 800;
}

.hero-subtitle {
  margin: 8px 0 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.92;
}

.home-hero {
  position: relative;
  min-height: 136px;
  padding: 17px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  box-shadow: 0 8px 21px rgba(15, 95, 85, 0.18);
  overflow: hidden;
}

.home-hero img,
.hero-bg-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero img {
  object-fit: cover;
}

.hero-bg-shade {
  background:
    linear-gradient(90deg, rgba(6, 50, 45, 0.92) 0%, rgba(8, 62, 55, 0.78) 45%, rgba(8, 62, 55, 0.32) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.08));
}

.home-hero-copy,
.hero-metrics {
  position: relative;
  z-index: 1;
}

.home-hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
}

.home-hero .hero-title {
  margin: 9px 0 6px;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 800;
}

.home-hero .hero-subtitle {
  max-width: 235px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.hero-metrics {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.metric {
  min-width: 66px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
}

.metric strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
}

.metric span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.section {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.section-link {
  color: var(--brand-500);
  font-size: 13px;
  font-weight: 700;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.82);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.progress-section {
  margin-top: 14px;
}

.progress-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 12px;
}

.ring {
  --progress: 0%;
  --ring-color: var(--brand-500);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring-color) var(--progress), var(--brand-50) 0);
  position: relative;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--surface);
}

.ring-content {
  position: relative;
  text-align: center;
}

.ring-number {
  display: block;
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
}

.ring-label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-3);
}

.progress-meta {
  display: grid;
  gap: 7px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  font-size: 12px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.meta-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  flex: 0 0 auto;
}

.meta-row span:first-child {
  color: var(--text-2);
}

.meta-row strong {
  color: var(--brand-500);
  white-space: nowrap;
}

.meta-row .bean-text {
  min-width: 92px;
  text-align: right;
}

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

.quick-card {
  min-height: 84px;
  padding: 11px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.quick-card:active {
  transform: scale(0.98);
}

.quick-icon,
.tab-icon,
.bean-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--brand-500);
  background: var(--brand-50);
  position: relative;
}

.quick-card .quick-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-500);
  font-size: 10px;
  font-weight: 800;
}

.quick-card.accent .quick-icon {
  background: var(--accent-50);
  color: #CC6A25;
}

.quick-card.assessment .quick-icon {
  background: #EAF1FF;
  color: var(--info);
}

.quick-icon::before,
.tab-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
}

.quick-card .quick-icon::before {
  content: none;
}

.icon-appointment::before { border-radius: 4px; border-top-width: 5px; }
.icon-exercise::before { border-radius: 50%; transform: skew(-8deg); }
.icon-timer::before { border-radius: 50%; border-top-color: transparent; }
.icon-pose::before { width: 10px; height: 18px; border-radius: 8px; }
.icon-home::before { width: 16px; height: 13px; border-radius: 3px; transform: rotate(45deg); }
.icon-profile::before { width: 14px; height: 14px; border-radius: 50%; }

.bean-icon {
  width: 24px;
  height: 24px;
  background: #D69A19;
  color: #fff;
  box-shadow: none;
}

.bean-icon::before {
  content: "";
  width: 12px;
  height: 16px;
  border-radius: 50%;
  background: #F2C15D;
  transform: rotate(18deg);
}

.bean-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.quick-title {
  display: block;
  margin-top: 0;
  font-size: 13px;
  font-weight: 800;
}

.quick-sub {
  display: block;
  margin-top: 0;
  color: var(--text-3);
  font-size: 11px;
}

.therapist-row,
.exercise-row {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.therapist-card {
  min-width: 110px;
  padding: 12px;
  scroll-snap-align: start;
}

.home-therapist-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 110px;
  border-radius: 11px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand-500);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-weight: 800;
}

.home-therapist-card .avatar {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  font-size: 16px;
}

.therapist-card .name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.therapist-name {
  font-size: 15px;
  font-weight: 800;
}

.therapist-title,
.muted {
  color: var(--text-3);
  font-size: 12px;
}

.therapist-specialty {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
}

.therapist-rating {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 7px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-50);
  color: #CC6A25;
  font-size: 11px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-50);
  color: var(--brand-500);
}

.pill.info {
  background: var(--info-bg);
  color: var(--info);
}

.pill.warn {
  background: var(--accent-50);
  color: var(--accent-500);
}

.exercise-mini {
  min-width: 150px;
  padding: 14px;
  scroll-snap-align: start;
}

.home-exercise-list {
  display: grid;
  gap: 8px;
}

.home-exercise-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 11px;
  text-align: left;
}

.exercise-icon {
  width: 46px;
  height: 46px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.18;
  word-break: keep-all;
  overflow-wrap: anywhere;
  flex: 0 0 auto;
}

.exercise-info {
  flex: 1;
  min-width: 0;
}

.exercise-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exercise-name {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.exercise-desc {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.difficulty-tag {
  flex: 0 0 auto;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}

.muscle-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.18;
  font-size: 12px;
  font-weight: 800;
  padding: 6px;
  word-break: keep-all;
}

.exercise-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
}

.list {
  display: grid;
  gap: 10px;
}

.list-card {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.media-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-50), var(--accent-50));
  display: grid;
  place-items: center;
  color: var(--brand-500);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.chip.active {
  border-color: var(--brand-500);
  background: var(--brand-500);
  color: #fff;
}

.category-list {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.category-item {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.category-item.active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}

.exercise-library-list {
  display: grid;
  gap: 9px;
}

.exercise-library-card {
  width: 100%;
  display: flex;
  gap: 11px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.78);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.exercise-image {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-50), var(--accent-50));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.exercise-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exercise-image-text {
  color: var(--brand-500);
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 95, 85, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 9px rgba(15, 95, 85, 0.22);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
}

.exercise-content {
  flex: 1;
  min-width: 0;
}

.exercise-header,
.exercise-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
}

.exercise-duration {
  flex: 0 0 auto;
  color: var(--brand-500);
  font-size: 12px;
  font-weight: 800;
}

.exercise-desc.multiline {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}

.difficulty-tag.easy {
  background: var(--success-bg);
  color: var(--success);
}

.difficulty-tag.medium {
  background: #FFF4D8;
  color: #9A6A00;
}

.difficulty-tag.hard {
  background: var(--danger-bg);
  color: var(--danger);
}

.video-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info);
  font-size: 11px;
  font-weight: 700;
}

.exercise-library-card .start-btn {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 12px;
  border: 1px solid var(--brand-500);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-500);
  font-size: 12px;
  font-weight: 800;
}

.detail-video-card {
  width: 100%;
  min-height: 180px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #17211D;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-video {
  width: 100%;
  height: 180px;
  background: #17211D;
}

.video-state {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--brand-50), var(--accent-50));
  color: var(--brand-500);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.video-state-sub {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.detail-info {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.detail-row {
  flex: 1;
  padding: 9px 5px;
  border-radius: 9px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-label {
  margin-bottom: 4px;
  color: var(--text-3);
  font-size: 11px;
}

.detail-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.detail-desc {
  padding: 11px;
  border-radius: 10px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
}

.desc-label {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.desc-text {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.primary-btn,
.ghost-btn,
.danger-btn {
  min-height: 46px;
  width: 100%;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

.primary-btn {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 95, 85, 0.20);
}

.ghost-btn {
  color: var(--brand-500);
  border: 1px solid var(--brand-500);
  background: var(--surface);
}

.danger-btn {
  background: var(--danger-bg);
  color: var(--danger);
}

.button-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-warm);
  padding: 0 13px;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 44px;
}

.field input[type="file"] {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  line-height: 1.2;
}

.field input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #EEF0ED;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.field select,
.hospital-select,
.admin-role-field select {
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field textarea {
  min-height: 88px;
  padding: 11px 13px;
  line-height: 1.5;
  resize: vertical;
}

.hospital-section {
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 9px 18px rgba(15, 95, 85, 0.18);
}

.hospital-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hospital-icon {
  width: 29px;
  height: 29px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}

.hospital-icon::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 3px solid rgba(255, 255, 255, 0.9);
  border-bottom: 3px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg) translateY(-2px);
}

.hospital-select {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  border: 0;
  color: #fff;
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.9) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.hospital-select option {
  color: var(--text);
}

.picker-arrow {
  display: none;
}

.hospital-address {
  margin: 5px 0 0 37px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.search-bar {
  padding: 9px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.72);
  box-shadow: var(--shadow-sm);
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  font-size: 13px;
  outline: none;
}

.filter-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 11px;
  overflow-x: auto;
  white-space: nowrap;
}

.filter-tab {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.filter-tab.active {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-500);
  font-weight: 800;
}

.therapist-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.72);
  box-shadow: var(--shadow-sm);
}

.therapist-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  flex: 0 0 auto;
}

.therapist-info {
  flex: 1;
  min-width: 0;
}

.therapist-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
}

.rating {
  margin-top: 4px;
  color: #CC6A25;
  font-size: 12px;
}

.book-btn {
  min-width: 48px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-500);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.timer-panel {
  padding: 16px;
}

.timer-ring {
  --progress: 0%;
  --ring-color: var(--brand-500);
  width: 220px;
  height: 220px;
  margin: 18px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring-color) var(--progress), var(--brand-50) 0);
  position: relative;
}

.timer-ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--surface);
}

.timer-text {
  position: relative;
  text-align: center;
}

.timer-time {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  color: #111814;
}

.timer-status {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}

.slider-row {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

input[type="range"] {
  accent-color: var(--brand-500);
}

.stepper-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(108px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.stepper-row + .stepper-row {
  border-top: 1px solid rgba(221, 227, 221, 0.74);
}

.stepper-label {
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.number-stepper {
  height: 42px;
  display: grid;
  grid-template-columns: 40px minmax(70px, 88px) 40px;
  align-items: center;
  gap: 6px;
}

.stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-warm);
  color: var(--brand-500);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stepper-btn:active {
  transform: scale(0.96);
  background: var(--brand-50);
  border-color: var(--brand-500);
}

.stepper-value {
  height: 42px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(15, 95, 85, 0.18);
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F8F4 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 5px 14px rgba(21, 48, 39, 0.06);
}

.stepper-value strong {
  min-width: 30px;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-value span {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
}

.mode-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.mode-btn {
  flex: 1;
  min-height: 36px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.mode-btn.active {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 4px 9px rgba(15, 95, 85, 0.18);
}

.timer-intro,
.time-settings,
.training-settings,
.training-info,
.sound-toggle {
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.timer-intro {
  display: block;
  padding: 16px;
  margin-bottom: 16px;
}

.exercise-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--accent-50);
  color: #CC6A25;
  font-size: 11px;
  font-weight: 700;
}

.timer-intro .exercise-name {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
}

.timer-intro .exercise-desc {
  margin: 0;
  white-space: normal;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}

.timer-display {
  display: flex;
  justify-content: center;
  margin: 16px 0 18px;
}

.timer-ring {
  --progress: 0%;
  --ring-color: var(--brand-500);
  width: 205px;
  height: 205px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring-color) var(--progress), var(--brand-50) 0);
  position: relative;
  box-shadow: 0 10px 23px rgba(15, 95, 85, 0.16);
}

.timer-ring::before {
  content: "";
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(15, 95, 85, 0.08);
}

.timer-text {
  position: relative;
  text-align: center;
}

.timer-time {
  color: #17211D;
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 39px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.timer-status {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.control-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: var(--shadow-sm);
}

.control-btn.start-btn,
.control-btn.pause-btn,
.control-btn.stop-btn,
.control-btn.reset-btn {
  background: var(--brand-500);
  color: #fff;
}

.btn-icon {
  color: currentColor;
  font-size: 19px;
  line-height: 1;
}

.flat-reset-icon,
.flat-pause-icon,
.flat-stop-icon {
  width: 19px;
  height: 19px;
}

.flat-reset-icon {
  position: relative;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.flat-reset-icon::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(-28deg);
}

.flat-pause-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.flat-pause-icon i {
  width: 5px;
  height: 15px;
  border-radius: 1px;
  background: currentColor;
}

.flat-stop-icon {
  display: grid;
  place-items: center;
}

.flat-stop-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 2px;
  background: currentColor;
}

.btn-text {
  font-size: 12px;
  font-weight: 700;
}

.time-settings,
.training-settings {
  padding: 14px;
  margin-bottom: 14px;
}

.setting-title {
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 800;
}

.preset-times {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.preset-btn {
  min-width: 63px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
}

.preset-btn.active {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-500);
  font-weight: 800;
}

.sound-toggle {
  min-height: 44px;
  margin-bottom: 13px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sound-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-500);
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.sound-text {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.training-status {
  margin-bottom: 14px;
  text-align: center;
}

.current-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 28px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
}

.current-state.tight {
  background: var(--accent-50);
  color: #CC6A25;
}

.current-state.relax {
  background: var(--success-bg);
  color: var(--success);
}

.current-state.rest {
  background: var(--info-bg);
  color: var(--info);
}

.progress-info {
  display: flex;
  justify-content: center;
  gap: 9px;
  color: var(--text-2);
  font-size: 14px;
}

.training-info {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}

.training-info strong {
  color: var(--text);
  font-size: 14px;
}

.movement-info-empty {
  min-height: 156px;
  padding: 20px 14px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.5;
  display: grid;
  place-items: center;
  text-align: center;
}

.movement-info {
  min-height: 216px;
  padding: 18px 14px 16px;
  border-radius: 10px;
  background: var(--surface-warm);
  border: 1px solid rgba(221, 227, 221, 0.78);
  text-align: left;
}

.movement-headline {
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.movement-camera {
  margin-top: 8px;
  color: var(--brand-500);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.movement-focus {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.movement-steps {
  margin: 14px 0 0;
  padding-left: 23px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

.movement-steps li {
  padding-left: 4px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(23, 33, 29, 0.42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 18px;
}

.modal {
  width: 100%;
  max-width: 430px;
  max-height: 86vh;
  overflow: hidden;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding: 0;
  box-shadow: var(--shadow-md);
  animation: modalIn 220ms ease both;
  display: flex;
  flex-direction: column;
}

.modal > h3,
.modal > p,
.modal > button,
.modal > video,
.modal > .card {
  margin-left: 18px;
  margin-right: 18px;
}

.modal > h3 {
  margin-top: 18px;
}

.modal > button:last-child {
  margin-bottom: 18px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.modal-title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-warm);
  color: var(--text-3);
  font-size: 22px;
  line-height: 32px;
  text-align: center;
}

.modal-body {
  max-height: none;
  padding: 18px 18px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

.selected-therapist {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--brand-50);
}

.therapist-avatar-small {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.required {
  color: var(--danger);
}

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.booking-date-input {
  text-align: left;
}

.time-slot {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-slot.selected {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  box-shadow: 0 4px 9px rgba(15, 95, 85, 0.18);
}

.time-slot.booked {
  background: #EDF0EC;
  border-color: #EDF0EC;
  color: var(--text-disabled);
}

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(18px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
  background: var(--surface);
}

.btn-cancel,
.btn-confirm {
  flex: 1;
  height: 48px;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cancel {
  background: var(--surface-warm);
  color: var(--text-2);
}

.btn-confirm {
  background: var(--brand-500);
  color: #fff;
}

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

.login-page {
  padding-top: 20px;
}

.login-brand {
  text-align: center;
  margin: 20px 0 16px;
}

.login-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.login-title {
  margin: 12px 0 4px;
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-600);
}

.code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code-row input {
  flex: 1;
  min-width: 0;
}

.code-btn {
  flex: 0 0 100px;
  height: 44px;
  border: 1px solid rgba(15, 95, 85, 0.22);
  border-radius: 14px;
  background: #F5FAF7;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 700;
}

.code-btn:disabled {
  background: #EEF0ED;
  color: #9AA59E;
  border-color: #E1E8E3;
}

.code-tip {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 12px;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.agreement input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.agreement-box {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
}

.agreement input:checked + .agreement-box {
  background: var(--brand-500);
  border-color: var(--brand-500);
}

.agreement input:checked + .agreement-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.calendar div {
  min-height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.calendar .day {
  background: var(--surface-warm);
}

.calendar .checked {
  color: #fff;
  background: var(--brand-500);
  font-weight: 800;
}

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

.workbench-btn {
  min-height: 96px;
  padding: 14px 8px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

.profile-hero {
  display: flex;
  align-items: center;
  padding: 17px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 95, 85, 0.18);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  margin-right: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  flex: 0 0 auto;
}

.profile-user-info {
  flex: 1;
  min-width: 0;
}

.profile-phone {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 800;
}

.profile-user-id {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 7px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.workbench-section,
.profile-content,
.privacy-entry {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.72);
  box-shadow: var(--shadow-sm);
}

.section-note {
  color: var(--text-3);
  font-size: 12px;
}

.workbench-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-500);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.workbench-btn.accent .workbench-icon {
  background: var(--accent-50);
  color: #CC6A25;
}

.workbench-name {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.workbench-desc {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.25;
}

.profile-list-item {
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
}

.item-header,
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-header {
  padding-bottom: 10px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

.item-row {
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: 13px;
}

.item-row strong {
  color: var(--text-2);
  text-align: right;
}

.calendar-section {
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
}

.checkin-stats,
.record-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.record-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkin-stats > div,
.record-summary > div {
  min-height: 72px;
  padding: 12px 10px;
  border-radius: 10px;
  background: #F5FAF7;
  border: 1px solid rgba(15, 95, 85, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.checkin-stats strong,
.record-summary strong {
  color: var(--brand-500);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.record-summary .spent {
  color: var(--danger);
}

.record-summary .current {
  color: #CC6A25;
}

.checkin-stats span,
.record-summary span {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
}

.privacy-entry {
  padding: 0;
}

.privacy-item {
  width: 100%;
  min-height: 62px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.privacy-item span {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand-50);
  color: var(--brand-500);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.privacy-item strong {
  flex: 1;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.25;
}

.privacy-item em {
  color: var(--text-3);
  font-style: normal;
  font-size: 20px;
}

.mall-empty {
  margin-top: 90px;
  padding: 22px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.72);
  text-align: center;
}

.points-hero,
.review-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.72);
  box-shadow: var(--shadow-sm);
}

.points-hero {
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
}

.points-kicker,
.points-label,
.points-side {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.points-total {
  margin-top: 5px;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
}

.points-side {
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.points-level {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.weekly-limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.weekly-limit-grid > div {
  min-height: 58px;
  padding: 10px 9px;
  border-radius: 9px;
  background: #F5FAF7;
  border: 1px solid rgba(15, 95, 85, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.weekly-limit-grid strong {
  color: var(--brand-500);
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
}

.weekly-limit-grid span {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}

.review-rule {
  margin-top: 9px;
  padding: 9px;
  border-radius: 8px;
  background: var(--surface-warm);
  color: #5E6A63;
  font-size: 12px;
  line-height: 1.5;
}

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

.benefit-btn {
  min-height: 75px;
  padding: 11px 6px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
}

.benefit-btn.available {
  border-color: rgba(15, 95, 85, 0.38);
  background: #F5FAF7;
}

.benefit-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.benefit-cost {
  color: var(--brand-500);
  font-size: 12px;
  font-weight: 800;
}

.video-review-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 9px 0;
}

.video-review-stats > div {
  min-height: 52px;
  padding: 8px 4px;
  border-radius: 8px;
  background: #F8FAF8;
  border: 1px solid #E1E8E3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-review-stats > div.primary {
  background: var(--brand-50);
  border-color: rgba(15, 95, 85, 0.18);
}

.video-review-stats strong {
  color: var(--brand-500);
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

.video-review-stats span {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
}

.review-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.72);
  box-shadow: var(--shadow-sm);
}

.review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.review-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.review-subtitle {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.35;
}

.review-count {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-500);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.review-filter {
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-warm);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
}

.review-filter.active {
  background: var(--brand-500);
  color: #fff;
}

.review-card-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.review-queue-card {
  width: 190px;
  min-height: 104px;
  padding: 10px;
  border-radius: 9px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  text-align: left;
  flex: 0 0 auto;
}

.review-queue-card.priority-high {
  border-color: rgba(242, 138, 61, 0.55);
  background: #FFF8EF;
}

.review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.review-card-top strong {
  color: var(--text);
  font-size: 12px;
}

.review-patient {
  margin-top: 7px;
  color: var(--text-2);
  font-size: 12px;
}

.review-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.review-mini-tags span {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info);
  font-size: 10px;
  font-weight: 700;
}

.review-mini-tags .risk {
  background: var(--accent-50);
  color: #CC6A25;
}

.review-queue-card p {
  margin: 6px 0 0;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.35;
}

.review-status {
  flex: 0 0 auto;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
}

.review-status.status-reviewed {
  background: var(--success-bg);
  color: var(--success);
}

.review-status.status-pending {
  background: #FFF4D8;
  color: #9A6A00;
}

.review-status.status-viewed {
  background: var(--info-bg);
  color: var(--info);
}

.review-status.status-expired {
  background: #EEF0ED;
  color: var(--text-3);
}

.patient-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.patient-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.72);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.patient-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-500);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.patient-info {
  flex: 1;
  min-width: 0;
}

.patient-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.patient-main strong {
  color: var(--text);
  font-size: 14px;
}

.patient-main span {
  color: var(--text-2);
  font-size: 11px;
}

.patient-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.patient-stats span {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info);
  font-size: 10px;
  font-weight: 700;
}

.patient-stats span.success {
  background: var(--success-bg);
  color: var(--success);
}

.last-checkin,
.no-checkin {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 10px;
}

.view-btn {
  min-width: 42px;
  min-height: 28px;
  border: 1px solid var(--brand-500);
  border-radius: 999px;
  color: var(--brand-500);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.appointment-list {
  display: grid;
  gap: 9px;
}

.appointment-card {
  padding: 12px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.72);
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.card-body {
  display: grid;
  gap: 6px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.info-row > span {
  width: 52px;
  flex: 0 0 auto;
  color: var(--text-3);
}

.info-row > strong {
  flex: 1;
  color: var(--text);
  font-weight: 600;
}

.info-row > strong.highlight {
  color: var(--brand-500);
}

.info-row > strong.remark {
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--surface-warm);
  line-height: 1.45;
}

.status-badge.confirmed {
  background: var(--success-bg);
  color: var(--success);
}

.status-badge.cancelled {
  background: #EEF0ED;
  color: var(--text-3);
}

.patient-checkin-modal-list {
  display: grid;
  gap: 8px;
}

.checkin-photo-preview {
  width: 100%;
  max-height: 180px;
  margin-top: 7px;
  border-radius: 8px;
  object-fit: cover;
}

.schedule-header {
  margin: 0 0 12px;
  padding: 14px 2px 4px;
}

.schedule-header h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.schedule-header p {
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
}

.grid-section.schedule-grid-section {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.78);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.schedule-grid-header,
.schedule-grid-row {
  display: grid;
  grid-template-columns: 54px repeat(7, minmax(42px, 1fr));
  gap: 4px;
  min-width: 360px;
}

.schedule-grid-row {
  margin-top: 4px;
}

.schedule-corner,
.schedule-head-cell,
.schedule-row-label,
.schedule-cell {
  min-height: 40px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.schedule-corner {
  color: var(--text-3);
}

.schedule-head-cell {
  background: var(--brand-50);
  color: var(--text);
}

.schedule-row-label {
  background: var(--surface-warm);
  color: var(--text-2);
}

.schedule-cell.available {
  background: var(--success-bg);
  border: 1px solid rgba(46, 125, 99, 0.28);
  color: var(--success);
}

.schedule-cell.unavailable {
  background: var(--danger-bg);
  border: 1px solid rgba(176, 68, 62, 0.28);
  color: var(--danger);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-tab {
  flex: 1;
  min-height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 800;
}

.admin-tab.active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}

.admin-user-list,
.admin-overview {
  display: grid;
  gap: 10px;
}

.admin-user-item {
  align-items: flex-start;
}

.user-role {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-500);
  font-size: 11px;
  font-weight: 800;
}

.user-role.role-therapist {
  background: var(--info-bg);
  color: var(--info);
}

.user-role.role-admin {
  background: var(--accent-50);
  color: #CC6A25;
}

.user-time {
  color: var(--text-3);
  font-size: 11px;
}

.admin-role-field {
  width: 112px;
  margin-bottom: 0;
}

.admin-role-field label {
  font-size: 11px;
}

.admin-role-field select {
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
}

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

.overview-card {
  min-height: 72px;
  padding: 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.overview-card.warning {
  background: var(--accent-50);
}

.overview-num {
  display: block;
  color: var(--brand-500);
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
}

.overview-label {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}

.overview-section {
  padding: 13px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(221, 227, 221, 0.78);
  box-shadow: var(--shadow-sm);
}

.overview-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.anomaly-item,
.review-admin-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.anomaly-item:last-child,
.review-admin-item:last-child {
  border-bottom: 0;
}

.anomaly-title,
.review-admin-reason {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.anomaly-detail,
.review-admin-meta {
  display: block;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.45;
}

.review-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.review-admin-status {
  flex: 0 0 auto;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.review-admin-status.status-reviewed {
  background: var(--success-bg);
  color: var(--success);
}

.review-admin-status.status-pending {
  background: #FFF4D8;
  color: #9A6A00;
}

.review-admin-status.status-viewed {
  background: var(--info-bg);
  color: var(--info);
}

.review-admin-status.status-expired {
  background: #EEF0ED;
  color: var(--text-3);
}

.overview-empty {
  min-height: 72px;
  color: var(--text-3);
  font-size: 12px;
  display: grid;
  place-items: center;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 7px 12px calc(8px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(221, 227, 221, 0.86);
  backdrop-filter: blur(16px);
}

.tabbar.hidden {
  display: none;
}

.tab-item {
  min-height: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
}

.tab-item.active {
  color: var(--brand-500);
}

.tabbar-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.tab-item.active .tab-icon {
  background: var(--brand-50);
  color: var(--brand-500);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + var(--safe-bottom));
  z-index: 60;
  transform: translateX(-50%) translateY(20px);
  max-width: 80vw;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 33, 29, 0.9);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.legal-hero,
.legal-card {
  margin: 14px 14px 0;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.legal-hero {
  background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%);
}

.legal-kicker {
  color: var(--brand-500);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.legal-hero h2,
.legal-card h3,
.legal-card h4 {
  margin: 0;
  color: var(--text-1);
  letter-spacing: 0;
}

.legal-hero h2 {
  font-size: 22px;
  line-height: 1.25;
}

.legal-card h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.legal-card h4 {
  font-size: 15px;
  margin-top: 16px;
  margin-bottom: 6px;
}

.legal-hero p,
.legal-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.72;
  text-align: justify;
}

.legal-hero p {
  margin-top: 8px;
}

.sensitive-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f7fbf8;
  border: 1px solid rgba(15, 95, 85, 0.14);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.sensitive-consent-title {
  grid-column: 2;
  justify-self: start;
  width: 100%;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  text-align: left;
}

.sensitive-consent > span {
  grid-column: 2;
  display: block;
  justify-self: start;
  width: 100%;
  text-align: left;
}

.sensitive-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-500);
}

.hidden {
  display: none !important;
}

@media (min-width: 700px) {
  body {
    background: #ecefeb;
  }

  .app-shell {
    box-shadow: 0 0 0 1px rgba(221, 227, 221, 0.8), 0 28px 70px rgba(23, 33, 29, 0.12);
  }
}

.bean-empty {
  padding: 14px 12px;
  margin-top: 8px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.sensitive-consent-title {
  justify-self: stretch;
  width: 100%;
  font-weight: 900;
  text-align: center;
}

.sensitive-consent > span {
  text-align: left;
  text-indent: 0;
}

.sensitive-consent {
  display: block;
  position: relative;
  padding: 12px 14px;
}

.sensitive-consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sensitive-consent:has(input:checked) {
  border-color: rgba(15, 95, 85, 0.34);
  background: #f2faf7;
}

.sensitive-consent-title {
  display: block;
  margin-bottom: 6px;
  text-align: center;
}

.sensitive-consent > span {
  display: block;
  width: 100%;
  text-align: left;
  text-indent: 0;
}
